Doc fix.
[bpt/emacs.git] / configure
CommitLineData
ba4481b5 1#! /bin/sh
ba4481b5 2# Guess values for system-dependent variables and create Makefiles.
35996d22 3# Generated by GNU Autoconf 2.59.
ba4481b5 4#
35996d22 5# Copyright (C) 2003 Free Software Foundation, Inc.
ba4481b5
DL
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
c0d27fcc
MR
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
503d2be0
AS
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
6bae0ccf
DL
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
503d2be0
AS
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
35996d22 22DUALCASE=1; export DUALCASE # for MKS sh
503d2be0 23
c0d27fcc 24# Support unset when possible.
35996d22 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
c0d27fcc
MR
26 as_unset=unset
27else
28 as_unset=false
29fi
30
6bae0ccf
DL
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
19650fd6
AS
39for 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
6bae0ccf 43do
35996d22 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6bae0ccf
DL
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
c0d27fcc
MR
63
64
503d2be0 65# Name of the executable.
6bae0ccf 66as_me=`$as_basename "$0" ||
c0d27fcc
MR
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
6bae0ccf 77
c0d27fcc
MR
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
19650fd6
AS
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
c0d27fcc
MR
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
19650fd6 96 rm -f conf$$.sh
c0d27fcc
MR
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6bae0ccf
DL
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; }
c0d27fcc
MR
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `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= ;;
192esac
503d2be0
AS
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
6bae0ccf
DL
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
35996d22 221 test -d ./-p && rmdir ./-p
6bae0ccf
DL
222 as_mkdir_p=false
223fi
224
503d2be0
AS
225as_executable_p="test -f"
226
c0d27fcc 227# Sed expression to map a string onto a valid CPP name.
35996d22 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c0d27fcc
MR
229
230# Sed expression to map a string onto a valid variable name.
35996d22 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
503d2be0 232
503d2be0
AS
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
6bae0ccf 241$as_unset CDPATH
c0d27fcc 242
503d2be0
AS
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
ba4481b5 254ac_default_prefix=/usr/local
6bae0ccf 255ac_config_libobj_dir=.
503d2be0
AS
256cross_compiling=no
257subdirs=
c0d27fcc
MR
258MFLAGS=
259MAKEFLAGS=
503d2be0
AS
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
c0d27fcc
MR
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
503d2be0 274ac_unique_file="src/lisp.h"
6bae0ccf 275ac_config_libobj_dir=src
503d2be0
AS
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290# include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295# include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306# include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
ba4481b5 312
19650fd6 313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
6bae0ccf 314ac_subst_files=''
c0d27fcc 315
ba4481b5 316# Initialize some variables set by options.
503d2be0
AS
317ac_init_help=
318ac_init_version=false
ba4481b5
DL
319# The variables have the same names as the options, with
320# dashes changed to underlines.
503d2be0 321cache_file=/dev/null
ba4481b5 322exec_prefix=NONE
ba4481b5 323no_create=
ba4481b5
DL
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
ba4481b5
DL
332verbose=
333x_includes=NONE
334x_libraries=NONE
503d2be0
AS
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
ba4481b5
DL
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
ba4481b5
DL
354ac_prev=
355for ac_option
356do
ba4481b5
DL
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
503d2be0 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
ba4481b5
DL
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
503d2be0 368 case $ac_option in
ba4481b5
DL
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
503d2be0 373 bindir=$ac_optarg ;;
ba4481b5
DL
374
375 -build | --build | --buil | --bui | --bu)
503d2be0 376 ac_prev=build_alias ;;
ba4481b5 377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
503d2be0 378 build_alias=$ac_optarg ;;
ba4481b5
DL
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
503d2be0
AS
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
ba4481b5
DL
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
503d2be0 394 datadir=$ac_optarg ;;
ba4481b5
DL
395
396 -disable-* | --disable-*)
503d2be0 397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
ba4481b5 398 # Reject names that are not valid shell variable names.
503d2be0
AS
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
ba4481b5
DL
404
405 -enable-* | --enable-*)
503d2be0 406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
ba4481b5 407 # Reject names that are not valid shell variable names.
503d2be0
AS
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
ba4481b5
DL
414 *) ac_optarg=yes ;;
415 esac
503d2be0 416 eval "enable_$ac_feature='$ac_optarg'" ;;
ba4481b5
DL
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
503d2be0 425 exec_prefix=$ac_optarg ;;
ba4481b5
DL
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
503d2be0
AS
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
ba4481b5
DL
437
438 -host | --host | --hos | --ho)
503d2be0 439 ac_prev=host_alias ;;
ba4481b5 440 -host=* | --host=* | --hos=* | --ho=*)
503d2be0 441 host_alias=$ac_optarg ;;
ba4481b5
DL
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
503d2be0 448 includedir=$ac_optarg ;;
ba4481b5
DL
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
503d2be0 453 infodir=$ac_optarg ;;
ba4481b5
DL
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
503d2be0 458 libdir=$ac_optarg ;;
ba4481b5
DL
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
503d2be0 465 libexecdir=$ac_optarg ;;
ba4481b5
DL
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
503d2be0 474 localstatedir=$ac_optarg ;;
ba4481b5
DL
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
503d2be0 479 mandir=$ac_optarg ;;
ba4481b5
DL
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c0d27fcc 486 | --no-cr | --no-c | -n)
ba4481b5
DL
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503d2be0 500 oldincludedir=$ac_optarg ;;
ba4481b5
DL
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503d2be0 505 prefix=$ac_optarg ;;
ba4481b5
DL
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
503d2be0 512 program_prefix=$ac_optarg ;;
ba4481b5
DL
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503d2be0 519 program_suffix=$ac_optarg ;;
ba4481b5
DL
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
503d2be0 536 program_transform_name=$ac_optarg ;;
ba4481b5
DL
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
503d2be0 546 sbindir=$ac_optarg ;;
ba4481b5
DL
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
503d2be0 557 sharedstatedir=$ac_optarg ;;
ba4481b5
DL
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
503d2be0 562 site=$ac_optarg ;;
ba4481b5
DL
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
503d2be0 567 srcdir=$ac_optarg ;;
ba4481b5
DL
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
503d2be0 574 sysconfdir=$ac_optarg ;;
ba4481b5
DL
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
503d2be0 577 ac_prev=target_alias ;;
ba4481b5 578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
503d2be0 579 target_alias=$ac_optarg ;;
ba4481b5
DL
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
503d2be0
AS
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
ba4481b5
DL
586
587 -with-* | --with-*)
503d2be0 588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
ba4481b5 589 # Reject names that are not valid shell variable names.
503d2be0
AS
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
ba4481b5 593 ac_package=`echo $ac_package| sed 's/-/_/g'`
503d2be0
AS
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
ba4481b5
DL
596 *) ac_optarg=yes ;;
597 esac
503d2be0 598 eval "with_$ac_package='$ac_optarg'" ;;
ba4481b5
DL
599
600 -without-* | --without-*)
503d2be0 601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
ba4481b5 602 # Reject names that are not valid shell variable names.
503d2be0
AS
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
ba4481b5
DL
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
503d2be0 618 x_includes=$ac_optarg ;;
ba4481b5
DL
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
503d2be0 625 x_libraries=$ac_optarg ;;
ba4481b5 626
503d2be0
AS
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
ba4481b5
DL
630 ;;
631
503d2be0
AS
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
ba4481b5 642 *)
503d2be0
AS
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
ba4481b5
DL
648 ;;
649
650 esac
651done
652
653if test -n "$ac_prev"; then
503d2be0
AS
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
ba4481b5 657fi
ba4481b5 658
503d2be0
AS
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
c0d27fcc 665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
503d2be0
AS
666 { (exit 1); exit 1; }; };;
667 esac
668done
ba4481b5 669
503d2be0
AS
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
35996d22 672 localstatedir libdir includedir oldincludedir infodir mandir
ba4481b5 673do
503d2be0
AS
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
c0d27fcc 677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
503d2be0 678 { (exit 1); exit 1; }; };;
ba4481b5
DL
679 esac
680done
681
503d2be0
AS
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
c0d27fcc 684# FIXME: To remove some day.
503d2be0
AS
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
c0d27fcc 689# FIXME: To remove some day.
503d2be0
AS
690if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698fi
ba4481b5 699
503d2be0
AS
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
ba4481b5 702
503d2be0 703test "$silent" = yes && exec 6>/dev/null
ba4481b5 704
c0d27fcc 705
ba4481b5
DL
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
c0d27fcc
MR
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35996d22
AS
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
c0d27fcc
MR
716echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
ba4481b5
DL
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726else
727 ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
c0d27fcc 731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
503d2be0 732 { (exit 1); exit 1; }; }
ba4481b5 733 else
c0d27fcc 734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
503d2be0 735 { (exit 1); exit 1; }; }
ba4481b5
DL
736 fi
737fi
6bae0ccf
DL
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
503d2be0
AS
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
c0d27fcc 781 cat <<_ACEOF
503d2be0
AS
782\`configure' configures this package to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE. See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
c0d27fcc 802_ACEOF
503d2be0 803
c0d27fcc 804 cat <<_ACEOF
503d2be0
AS
805Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
35996d22 807 [$ac_default_prefix]
503d2be0 808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
35996d22 809 [PREFIX]
503d2be0
AS
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
c0d27fcc 831_ACEOF
503d2be0 832
c0d27fcc 833 cat <<\_ACEOF
503d2be0 834
ba5da88a
PJ
835Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
503d2be0
AS
840X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843
844System types:
845 --build=BUILD configure for building on BUILD [guessed]
c0d27fcc
MR
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847_ACEOF
503d2be0
AS
848fi
849
850if test -n "$ac_init_help"; then
851
c0d27fcc 852 cat <<\_ACEOF
503d2be0
AS
853
854Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
6a3a24fa
JD
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
19650fd6
AS
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
503d2be0
AS
861 --disable-largefile omit support for large files
862
863Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --without-gcc don't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version 5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server host
2c9dccc9 871 --without-sound don't compile with sound support
488dd4c4
JD
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
503d2be0
AS
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
488dd4c4
JD
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
503d2be0 881 --without-toolkit-scroll-bars
cc227489
MB
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don't use X11 XIM
e0f712ba 884 --without-carbon don't use Carbon GUI on Mac OS X
503d2be0
AS
885 --with-x use the X Window System
886
887Some influential environment variables:
888 CC C compiler command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
891 nonstandard directory <lib dir>
892 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
893 headers in a nonstandard directory <include dir>
894 CPP C preprocessor
895
896Use these variables to override the choices made by `configure' or to help
897it to find libraries and programs with nonstandard names/locations.
898
c0d27fcc 899_ACEOF
503d2be0
AS
900fi
901
902if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
c0d27fcc
MR
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
908
909if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913else
914 ac_dir_suffix= ac_top_builddir=
915fi
503d2be0 916
c0d27fcc
MR
917case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931esac
35996d22
AS
932
933# Do not use `cd foo && pwd` to compute absolute paths, because
934# the directories may not exist.
935case `pwd` in
936.) ac_abs_builddir="$ac_dir";;
937*)
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943esac
944case $ac_abs_builddir in
945.) ac_abs_top_builddir=${ac_top_builddir}.;;
946*)
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952esac
953case $ac_abs_builddir in
954.) ac_abs_srcdir=$ac_srcdir;;
955*)
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961esac
962case $ac_abs_builddir in
963.) ac_abs_top_srcdir=$ac_top_srcdir;;
964*)
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970esac
c0d27fcc
MR
971
972 cd $ac_dir
503d2be0 973 # Check for guested configure; otherwise get Cygnus style configure.
c0d27fcc 974 if test -f $ac_srcdir/configure.gnu; then
503d2be0 975 echo
c0d27fcc
MR
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
503d2be0 978 echo
c0d27fcc
MR
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
35996d22 981 test -f $ac_srcdir/configure.in; then
503d2be0
AS
982 echo
983 $ac_configure --help
984 else
c0d27fcc 985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
503d2be0 986 fi
57669b57 987 cd $ac_popdir
503d2be0
AS
988 done
989fi
990
991test -n "$ac_init_help" && exit 0
992if $ac_init_version; then
c0d27fcc 993 cat <<\_ACEOF
503d2be0 994
35996d22 995Copyright (C) 2003 Free Software Foundation, Inc.
503d2be0
AS
996This configure script is free software; the Free Software Foundation
997gives unlimited permission to copy, distribute and modify it.
c0d27fcc 998_ACEOF
503d2be0
AS
999 exit 0
1000fi
1001exec 5>config.log
c0d27fcc 1002cat >&5 <<_ACEOF
503d2be0
AS
1003This file contains any messages produced by compilers while
1004running configure, to aid debugging if configure makes a mistake.
1005
1006It was created by $as_me, which was
35996d22 1007generated by GNU Autoconf 2.59. Invocation command line was
503d2be0
AS
1008
1009 $ $0 $@
1010
c0d27fcc 1011_ACEOF
503d2be0
AS
1012{
1013cat <<_ASUNAME
c0d27fcc
MR
1014## --------- ##
1015## Platform. ##
1016## --------- ##
503d2be0
AS
1017
1018hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023
1024/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026
1027/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1028/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1029/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1031/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1032/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1033/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1034
925c2f3f 1035_ASUNAME
c0d27fcc
MR
1036
1037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038for as_dir in $PATH
1039do
1040 IFS=$as_save_IFS
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1043done
1044
503d2be0
AS
1045} >&5
1046
c0d27fcc
MR
1047cat >&5 <<_ACEOF
1048
1049
1050## ----------- ##
1051## Core tests. ##
1052## ----------- ##
1053
1054_ACEOF
503d2be0 1055
503d2be0
AS
1056
1057# Keep a trace of the command line.
1058# Strip out --no-create and --no-recursion so they do not pile up.
19650fd6 1059# Strip out --silent because we don't want to record it for future runs.
503d2be0 1060# Also quote any args containing shell meta-characters.
19650fd6 1061# Make two passes to allow for proper duplicate-argument suppression.
503d2be0 1062ac_configure_args=
19650fd6
AS
1063ac_configure_args0=
1064ac_configure_args1=
503d2be0 1065ac_sep=
19650fd6
AS
1066ac_must_keep_next=false
1067for ac_pass in 1 2
503d2be0 1068do
19650fd6
AS
1069 for ac_arg
1070 do
1071 case $ac_arg in
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 continue ;;
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 esac
1079 case $ac_pass in
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 2)
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
35996d22 1084 ac_must_keep_next=false # Got value, back to normal.
19650fd6 1085 else
35996d22
AS
1086 case $ac_arg in
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 esac
1094 ;;
1095 -* ) ac_must_keep_next=true ;;
1096 esac
19650fd6
AS
1097 fi
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1100 ac_sep=" "
1101 ;;
1102 esac
1103 done
503d2be0 1104done
19650fd6
AS
1105$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
503d2be0
AS
1107
1108# When interrupted or exit'd, cleanup temporary files, and complete
1109# config.log. We remove comments because anyway the quotes in there
1110# would cause problems or look ugly.
c0d27fcc
MR
1111# WARNING: Be sure not to use single quotes in there, as some shells,
1112# such as our DU 5.0 friend, will then `close' the trap.
503d2be0
AS
1113trap 'exit_status=$?
1114 # Save into config.log some information that might help in debugging.
c0d27fcc
MR
1115 {
1116 echo
6bae0ccf 1117
c0d27fcc
MR
1118 cat <<\_ASBOX
1119## ---------------- ##
1120## Cache variables. ##
1121## ---------------- ##
1122_ASBOX
1123 echo
1124 # The following way of writing the cache mishandles newlines in values,
503d2be0
AS
1125{
1126 (set) 2>&1 |
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 *ac_space=\ *)
1129 sed -n \
35996d22
AS
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
503d2be0
AS
1132 ;;
1133 *)
1134 sed -n \
35996d22 1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
503d2be0
AS
1136 ;;
1137 esac;
c0d27fcc
MR
1138}
1139 echo
6bae0ccf
DL
1140
1141 cat <<\_ASBOX
1142## ----------------- ##
1143## Output variables. ##
1144## ----------------- ##
1145_ASBOX
1146 echo
1147 for ac_var in $ac_subst_vars
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153
1154 if test -n "$ac_subst_files"; then
1155 cat <<\_ASBOX
1156## ------------- ##
1157## Output files. ##
1158## ------------- ##
1159_ASBOX
1160 echo
1161 for ac_var in $ac_subst_files
1162 do
1163 eval ac_val=$`echo $ac_var`
35996d22 1164 echo "$ac_var='"'"'$ac_val'"'"'"
6bae0ccf
DL
1165 done | sort
1166 echo
1167 fi
1168
c0d27fcc
MR
1169 if test -s confdefs.h; then
1170 cat <<\_ASBOX
1171## ----------- ##
1172## confdefs.h. ##
1173## ----------- ##
1174_ASBOX
1175 echo
6bae0ccf 1176 sed "/^$/d" confdefs.h | sort
c0d27fcc
MR
1177 echo
1178 fi
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1182 } >&5
35996d22 1183 rm -f core *.core &&
c0d27fcc 1184 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
503d2be0
AS
1185 exit $exit_status
1186 ' 0
1187for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189done
1190ac_signal=0
1191
1192# confdefs.h avoids OS command line length limits that DEFS can exceed.
1193rm -rf conftest* confdefs.h
1194# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195echo >confdefs.h
ba4481b5 1196
c0d27fcc
MR
1197# Predefined preprocessor variables.
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_NAME "$PACKAGE_NAME"
1201_ACEOF
1202
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_VERSION "$PACKAGE_VERSION"
1211_ACEOF
1212
1213
1214cat >>confdefs.h <<_ACEOF
1215#define PACKAGE_STRING "$PACKAGE_STRING"
1216_ACEOF
1217
1218
1219cat >>confdefs.h <<_ACEOF
1220#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221_ACEOF
1222
1223
503d2be0 1224# Let the site file select an alternate cache file if it wants to.
ba4481b5
DL
1225# Prefer explicitly selected file to automatically selected ones.
1226if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 else
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 fi
1232fi
1233for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
c0d27fcc 1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
503d2be0 1236echo "$as_me: loading site script $ac_site_file" >&6;}
c0d27fcc 1237 sed 's/^/| /' "$ac_site_file" >&5
ba4481b5
DL
1238 . "$ac_site_file"
1239 fi
1240done
1241
1242if test -r "$cache_file"; then
503d2be0
AS
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
c0d27fcc 1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
503d2be0
AS
1247echo "$as_me: loading cache $cache_file" >&6;}
1248 case $cache_file in
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1251 esac
1252 fi
ba4481b5 1253else
c0d27fcc 1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
503d2be0
AS
1255echo "$as_me: creating cache $cache_file" >&6;}
1256 >$cache_file
1257fi
1258
1259# Check that the precious variables saved in the cache have kept the same
1260# value.
1261ac_cache_corrupted=false
1262for ac_var in `(set) 2>&1 |
35996d22 1263 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
503d2be0
AS
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1269 set,)
c0d27fcc 1270 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
503d2be0
AS
1271echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,set)
c0d27fcc 1274 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
503d2be0
AS
1275echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,);;
1278 *)
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
35996d22 1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
503d2be0 1281echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
35996d22 1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
503d2be0 1283echo "$as_me: former value: $ac_old_val" >&2;}
35996d22 1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
503d2be0 1285echo "$as_me: current value: $ac_new_val" >&2;}
35996d22 1286 ac_cache_corrupted=:
503d2be0
AS
1287 fi;;
1288 esac
c0d27fcc 1289 # Pass precious variables to config.status.
503d2be0
AS
1290 if test "$ac_new_set" = set; then
1291 case $ac_new_val in
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
c0d27fcc
MR
1293 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1295 esac
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
503d2be0
AS
1299 esac
1300 fi
1301done
1302if $ac_cache_corrupted; then
c0d27fcc 1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
503d2be0 1304echo "$as_me: error: changes in the environment can compromise the build" >&2;}
c0d27fcc 1305 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
503d2be0
AS
1306echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
ba4481b5
DL
1308fi
1309
1310ac_ext=c
ba4481b5 1311ac_cpp='$CPP $CPPFLAGS'
503d2be0
AS
1312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315
c0d27fcc
MR
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
ba4481b5 1332
6bae0ccf
DL
1333
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
ba4481b5 1335
c0d27fcc 1336
ba5da88a
PJ
1337test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339# Use a double $ so make ignores it.
1340test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342# Double any \ or $. echo might interpret backslashes.
1343# By default was `s,x,x', remove it if useless.
1344cat <<\_ACEOF >conftest.sed
1345s/[\\$]/&&/g;s/;s,x,x,$//
1346_ACEOF
1347program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1348rm conftest.sed
1349
c0d27fcc 1350
ba4481b5
DL
1351lispdir='${datadir}/emacs/${version}/lisp'
1352locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1353'${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354lisppath='${locallisppath}:${lispdir}'
1355etcdir='${datadir}/emacs/${version}/etc'
1356archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1357docdir='${datadir}/emacs/${version}/etc'
24b01ec4 1358gamedir='${localstatedir}/games/emacs'
98418dba
CW
1359
1360gameuser=games
1361
c0d27fcc 1362
ba4481b5
DL
1363# Check whether --with-gcc or --without-gcc was given.
1364if test "${with_gcc+set}" = set; then
1365 withval="$with_gcc"
503d2be0
AS
1366
1367fi;
ba4481b5
DL
1368
1369# Check whether --with-pop or --without-pop was given.
1370if test "${with_pop+set}" = set; then
1371 withval="$with_pop"
243cf185 1372 if test "$withval" = yes; then
c0d27fcc 1373 cat >>confdefs.h <<\_ACEOF
ba4481b5 1374#define MAIL_USE_POP 1
c0d27fcc 1375_ACEOF
ba4481b5 1376
243cf185
DL
1377else :
1378fi
3d9fec71 1379else
c0d27fcc 1380 cat >>confdefs.h <<\_ACEOF
3d9fec71 1381#define MAIL_USE_POP 1
c0d27fcc 1382_ACEOF
3d9fec71 1383
503d2be0 1384fi;
ba4481b5 1385
c0d27fcc 1386
a21616bd
KR
1387# Check whether --with-kerberos or --without-kerberos was given.
1388if test "${with_kerberos+set}" = set; then
1389 withval="$with_kerberos"
c0d27fcc 1390 cat >>confdefs.h <<\_ACEOF
a21616bd 1391#define KERBEROS 1
c0d27fcc 1392_ACEOF
a21616bd 1393
503d2be0 1394fi;
a21616bd 1395
c0d27fcc 1396
a21616bd
KR
1397# Check whether --with-kerberos5 or --without-kerberos5 was given.
1398if test "${with_kerberos5+set}" = set; then
1399 withval="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1402 with_kerberos=yes
c0d27fcc 1403 cat >>confdefs.h <<\_ACEOF
a21616bd 1404#define KERBEROS 1
c0d27fcc 1405_ACEOF
a21616bd
KR
1406
1407 fi
1408fi
b936fae4 1409
c0d27fcc 1410cat >>confdefs.h <<\_ACEOF
a21616bd 1411#define KERBEROS5 1
c0d27fcc 1412_ACEOF
a21616bd 1413
503d2be0 1414fi;
a21616bd 1415
ba4481b5
DL
1416# Check whether --with-hesiod or --without-hesiod was given.
1417if test "${with_hesiod+set}" = set; then
1418 withval="$with_hesiod"
b936fae4 1419
c0d27fcc 1420cat >>confdefs.h <<\_ACEOF
ba4481b5 1421#define HESIOD 1
c0d27fcc 1422_ACEOF
ba4481b5 1423
503d2be0 1424fi;
ba4481b5 1425
c0d27fcc 1426
2c9dccc9
PJ
1427# Check whether --with-sound or --without-sound was given.
1428if test "${with_sound+set}" = set; then
1429 withval="$with_sound"
1430
1431fi;
1432
c0d27fcc 1433
ba4481b5
DL
1434# Check whether --with-x-toolkit or --without-x-toolkit was given.
1435if test "${with_x_toolkit+set}" = set; then
1436 withval="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye | yes ) val=athena ;;
1439 n | no ) val=no ;;
1440 l | lu | luc | luci | lucid ) val=lucid ;;
1441 a | at | ath | athe | athen | athena ) val=athena ;;
1442 m | mo | mot | moti | motif ) val=motif ;;
488dd4c4 1443 g | gt | gtk ) val=gtk ;;
ba4481b5 1444 * )
c0d27fcc 1445{ { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
488dd4c4 1446this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
503d2be0
AS
1447Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
488dd4c4 1449this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
503d2be0
AS
1450Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
ba4481b5
DL
1452 ;;
1453 esac
1454 with_x_toolkit=$val
1455
503d2be0 1456fi;
ba4481b5
DL
1457
1458# Check whether --with-xpm or --without-xpm was given.
1459if test "${with_xpm+set}" = set; then
1460 withval="$with_xpm"
503d2be0
AS
1461
1462fi;
ba4481b5
DL
1463
1464# Check whether --with-jpeg or --without-jpeg was given.
1465if test "${with_jpeg+set}" = set; then
1466 withval="$with_jpeg"
503d2be0
AS
1467
1468fi;
ba4481b5
DL
1469
1470# Check whether --with-tiff or --without-tiff was given.
1471if test "${with_tiff+set}" = set; then
1472 withval="$with_tiff"
503d2be0
AS
1473
1474fi;
ba4481b5
DL
1475
1476# Check whether --with-gif or --without-gif was given.
1477if test "${with_gif+set}" = set; then
1478 withval="$with_gif"
503d2be0
AS
1479
1480fi;
ba4481b5
DL
1481
1482# Check whether --with-png or --without-png was given.
1483if test "${with_png+set}" = set; then
1484 withval="$with_png"
503d2be0
AS
1485
1486fi;
ba4481b5 1487
488dd4c4
JD
1488# Check whether --with-gtk or --without-gtk was given.
1489if test "${with_gtk+set}" = set; then
1490 withval="$with_gtk"
1491
1492fi;
1493
1494# Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495if test "${with_pkg_config_prog+set}" = set; then
1496 withval="$with_pkg_config_prog"
1497
1498fi;
1499
ba4481b5
DL
1500# Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval="$with_toolkit_scroll_bars"
503d2be0
AS
1503
1504fi;
ba4481b5 1505
1d36487c
GM
1506# Check whether --with-xim or --without-xim was given.
1507if test "${with_xim+set}" = set; then
1508 withval="$with_xim"
1d36487c 1509
503d2be0 1510fi;
ba4481b5 1511
e0f712ba
AC
1512# Check whether --with-carbon or --without-carbon was given.
1513if test "${with_carbon+set}" = set; then
1514 withval="$with_carbon"
1515
1516fi;
6a3a24fa
JD
1517# Check whether --enable-carbon-app or --disable-carbon-app was given.
1518if test "${enable_carbon_app+set}" = set; then
1519 enableval="$enable_carbon_app"
1520 carbon_appdir_x=${enableval}
1521fi;
e0f712ba 1522
19650fd6
AS
1523# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524if test "${enable_maintainer_mode+set}" = set; then
1525 enableval="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE=$enableval
1527else
1528 USE_MAINTAINER_MODE=no
1529fi;
1530if test $USE_MAINTAINER_MODE = yes; then
1531 MAINT=
1532else
1533 MAINT=#
1534fi
1535
1536
ba4481b5 1537#### Make srcdir absolute, if it isn't already. It's important to
17494071 1538#### avoid running the path through pwd unnecessarily, since pwd can
ba4481b5
DL
1539#### give you automounter prefixes, which can go away. We do all this
1540#### so Emacs can find its files when run uninstalled.
17494071
GM
1541## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1542unset CDPATH
ba4481b5
DL
1543case "${srcdir}" in
1544 /* ) ;;
1545 . )
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
df645f7c
AS
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
ba4481b5
DL
1552 then
1553 srcdir="$PWD"
1554 else
1555 srcdir="`(cd ${srcdir}; pwd)`"
1556 fi
1557 ;;
1558 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1559esac
1560
1561#### Check if the source directory already has a configured system in it.
1562if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
c0d27fcc 1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
503d2be0
AS
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
ba4481b5
DL
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
503d2be0 1575 and then run $0 again." >&2;}
ba4481b5 1576
22044edf 1577extrasub='/^VPATH[ ]*=/c\
ba4481b5
DL
1578vpath %.c $(srcdir)\
1579vpath %.h $(srcdir)\
1580vpath %.y $(srcdir)\
1581vpath %.l $(srcdir)\
1582vpath %.s $(srcdir)\
1583vpath %.in $(srcdir)\
1584vpath %.texi $(srcdir)'
1585fi
1586
1587#### Given the configuration name, set machfile and opsysfile to the
1588#### names of the m/*.h and s/*.h files we should use.
1589
1590### Canonicalize the configuration name.
1591
1592ac_aux_dir=
1593for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1594 if test -f $ac_dir/install-sh; then
1595 ac_aux_dir=$ac_dir
1596 ac_install_sh="$ac_aux_dir/install-sh -c"
1597 break
1598 elif test -f $ac_dir/install.sh; then
1599 ac_aux_dir=$ac_dir
1600 ac_install_sh="$ac_aux_dir/install.sh -c"
1601 break
503d2be0
AS
1602 elif test -f $ac_dir/shtool; then
1603 ac_aux_dir=$ac_dir
1604 ac_install_sh="$ac_aux_dir/shtool install -c"
1605 break
ba4481b5
DL
1606 fi
1607done
1608if test -z "$ac_aux_dir"; then
c0d27fcc 1609 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
503d2be0
AS
1610echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1611 { (exit 1); exit 1; }; }
ba4481b5 1612fi
503d2be0
AS
1613ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1614ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1615ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
ba4481b5
DL
1616
1617# Make sure we can run config.sub.
503d2be0 1618$ac_config_sub sun4 >/dev/null 2>&1 ||
c0d27fcc 1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
503d2be0
AS
1620echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1622
c0d27fcc 1623echo "$as_me:$LINENO: checking build system type" >&5
503d2be0
AS
1624echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 ac_cv_build_alias=$build_alias
1629test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias=`$ac_config_guess`
1631test -z "$ac_cv_build_alias" &&
c0d27fcc 1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
503d2be0
AS
1633echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
c0d27fcc
MR
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
503d2be0
AS
1638 { (exit 1); exit 1; }; }
1639
1640fi
c0d27fcc 1641echo "$as_me:$LINENO: result: $ac_cv_build" >&5
503d2be0
AS
1642echo "${ECHO_T}$ac_cv_build" >&6
1643build=$ac_cv_build
1644build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
c0d27fcc
MR
1648
1649echo "$as_me:$LINENO: checking host system type" >&5
503d2be0
AS
1650echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654 ac_cv_host_alias=$host_alias
1655test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias=$ac_cv_build_alias
1657ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
c0d27fcc 1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
503d2be0
AS
1659echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1661
1662fi
c0d27fcc 1663echo "$as_me:$LINENO: result: $ac_cv_host" >&5
503d2be0
AS
1664echo "${ECHO_T}$ac_cv_host" >&6
1665host=$ac_cv_host
1666host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
ba4481b5 1669
c0d27fcc 1670
ba4481b5 1671canonical=$host
531a3336 1672configuration=${host_alias-$host}
ba4481b5 1673
c0d27fcc 1674
22044edf 1675
ba4481b5
DL
1676### If you add support for a new configuration, add code to this
1677### switch statement to recognize your configuration name and select
1678### the appropriate operating system and machine description files.
1679
1680### You would hope that you could choose an m/*.h file pretty much
1681### based on the machine portion of the configuration name, and an s-
1682### file based on the operating system portion. However, it turns out
1683### that each m/*.h file is pretty manufacturer-specific - for
1684### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1685### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1686### machines. So we basically have to have a special case for each
1687### configuration name.
1688###
1689### As far as handling version numbers on operating systems is
1690### concerned, make sure things will fail in a fixable way. If
1691### /etc/MACHINES doesn't say anything about version numbers, be
1692### prepared to handle anything reasonably. If version numbers
1693### matter, be sure /etc/MACHINES says something about it.
1694###
1695### Eric Raymond says we should accept strings like "sysvr4" to mean
1696### "System V Release 4"; he writes, "The old convention encouraged
1697### confusion between `system' and `release' levels'."
1698
1699machine='' opsys='' unported=no
1700case "${canonical}" in
1701
1096bcc0
GM
1702 ## FreeBSD ports
1703 *-*-freebsd* )
1704 opsys=freebsd
1705 case "${canonical}" in
1706 alpha*-*-freebsd*) machine=alpha ;;
1707 i[3456]86-*-freebsd*) machine=intel386 ;;
1708 esac
1709 ;;
1710
ba4481b5
DL
1711 ## NetBSD ports
1712 *-*-netbsd* )
1713 opsys=netbsd
dd038e26 1714 if test -f /usr/lib/crti.o; then
f57bd967
DL
1715
1716cat >>confdefs.h <<\_ACEOF
1717#define HAVE_CRTIN
dd038e26
AS
1718_ACEOF
1719
1720 fi
1721
ba4481b5
DL
1722 case "${canonical}" in
1723 alpha*-*-netbsd*) machine=alpha ;;
1724 i[3456]86-*-netbsd*) machine=intel386 ;;
1725 m68k-*-netbsd*)
1726 # This is somewhat bogus.
1727 machine=hp9000s300 ;;
1728 powerpc-apple-netbsd*) machine=macppc ;;
1729 mips-*-netbsd*) machine=pmax ;;
2df636f4 1730 mipsel-*-netbsd*) machine=pmax ;;
97836269 1731 mipseb-*-netbsd*) machine=pmax ;;
ba4481b5 1732 ns32k-*-netbsd*) machine=ns32000 ;;
3a64eef5 1733 powerpc-*-netbsd*) machine=macppc ;;
71c9ec51 1734 sparc*-*-netbsd*) machine=sparc ;;
ba4481b5 1735 vax-*-netbsd*) machine=vax ;;
2df636f4 1736 arm-*-netbsd*) machine=arm ;;
ba4481b5
DL
1737 esac
1738 ;;
1739
1740 ## OpenBSD ports
1741 *-*-openbsd* )
1742 opsys=openbsd
1743 case "${canonical}" in
1744 alpha*-*-openbsd*) machine=alpha ;;
1745 i386-*-openbsd*) machine=intel386 ;;
1746 m68k-*-openbsd*) machine=hp9000s300 ;;
1747 mipsel-*-openbsd*) machine=pmax ;;
1748 ns32k-*-openbsd*) machine=ns32000 ;;
1749 sparc-*-openbsd*) machine=sparc ;;
1750 vax-*-openbsd*) machine=vax ;;
1751 esac
1752 ;;
1753
1754 ## Acorn RISCiX:
1755 arm-acorn-riscix1.1* )
1756 machine=acorn opsys=riscix1-1
1757 ;;
1758 arm-acorn-riscix1.2* | arm-acorn-riscix )
1759 ## This name is riscix12 instead of riscix1.2
1760 ## to avoid a file name conflict on MSDOS.
1761 machine=acorn opsys=riscix12
1762 ;;
1763
1764 ## BSDI ports
1765 *-*-bsdi* )
1766 opsys=bsdi
1767 case "${canonical}" in
1768 i[345]86-*-bsdi*) machine=intel386 ;;
1769 sparc-*-bsdi*) machine=sparc ;;
3aeecf97 1770 powerpc-*-bsdi*) machine=macppc ;;
ba4481b5
DL
1771 esac
1772 case "${canonical}" in
1773 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1774 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1775 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1776 *-*-bsdi3* ) opsys=bsdos3 ;;
1d06fc82 1777 *-*-bsdi[45]* ) opsys=bsdos4 ;;
ba4481b5
DL
1778 esac
1779 ;;
1780
1781 ## Alliant machines
1782 ## Strictly speaking, we need the version of the alliant operating
1783 ## system to choose the right machine file, but currently the
1784 ## configuration name doesn't tell us enough to choose the right
1785 ## one; we need to give alliants their own operating system name to
1786 ## do this right. When someone cares, they can help us.
1787 fx80-alliant-* )
1788 machine=alliant4 opsys=bsd4-2
1789 ;;
1790 i860-alliant-* )
1791 machine=alliant-2800 opsys=bsd4-3
1792 ;;
1793
1794 ## Alpha (DEC) machines.
1795 alpha*-dec-osf* )
1796 machine=alpha opsys=osf1
1797 # This is needed to find X11R6.1 libraries for certain tests.
1798 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1799 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
34979055
DL
1800 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1801 # due to non-traditional preprocessing with the current compiler
1802 # defaults. OSF 4 can also have that compiler version, and there
1803 # seems always to have been a usable /usr/bin/cpp.
1804 NON_GNU_CPP=/usr/bin/cpp
ca512671 1805 case "${canonical}" in
a55b799a 1806 alpha*-dec-osf[5-9]*)
bb17930d 1807 opsys=osf5-0 ;;
ca512671 1808 esac
ba4481b5
DL
1809 ;;
1810
1811 alpha*-*-linux-gnu* )
1812 machine=alpha opsys=gnu-linux
1813 ;;
1814
c4bb2108
DL
1815 arm*-*-linux-gnu* )
1816 machine=arm opsys=gnu-linux
1817 ;;
1818
1819 ppc-*-linux | \
1820 powerpc-*-linux* )
3aeecf97 1821 machine=macppc opsys=gnu-linux
c4bb2108
DL
1822 ;;
1823
ba4481b5
DL
1824 ## Altos 3068
1825 m68*-altos-sysv* )
1826 machine=altos opsys=usg5-2
1827 ;;
1828
1829 ## Amdahl UTS
1830 580-amdahl-sysv* )
1831 machine=amdahl opsys=usg5-2-2
1832 ;;
1833
1834 ## Apollo, Domain/OS
1835 m68*-apollo-* )
1836 machine=apollo opsys=bsd4-3
1837 ;;
1838
1839 ## AT&T 3b2, 3b5, 3b15, 3b20
1840 we32k-att-sysv* )
1841 machine=att3b opsys=usg5-2-2
1842 ;;
1843
1844 ## AT&T 3b1 - The Mighty Unix PC!
1845 m68*-att-sysv* )
1846 machine=7300 opsys=usg5-2-2
1847 ;;
1848
1849 ## Bull dpx20
1850 rs6000-bull-bosx* )
1851 machine=ibmrs6000 opsys=aix3-2
1852 ;;
1853
1854 ## Bull dpx2
1855 m68*-bull-sysv3* )
1856 machine=dpx2 opsys=usg5-3
1857 ;;
1858
1859 ## Bull sps7
1860 m68*-bull-sysv2* )
1861 machine=sps7 opsys=usg5-2
1862 ;;
1863
1864 ## CCI 5/32, 6/32 -- see "Tahoe".
1865
1866 ## Celerity
1867 ## I don't know what configuration name to use for this; config.sub
1868 ## doesn't seem to know anything about it. Hey, Celerity users, get
1869 ## in touch with us!
1870 celerity-celerity-bsd* )
1871 machine=celerity opsys=bsd4-2
1872 ;;
1873
1874 ## Clipper
1875 ## What operating systems does this chip run that Emacs has been
1876 ## tested on?
1877 clipper-* )
1878 machine=clipper
1879 ## We'll use the catch-all code at the bottom to guess the
1880 ## operating system.
1881 ;;
1882
df645f7c
AS
1883 ## Compaq Nonstop
1884 mips-compaq-nonstopux* )
1885 machine=nonstopux opsys=nonstopux
1886 ;;
1887
ba4481b5
DL
1888 ## Convex
1889 *-convex-bsd* | *-convex-convexos* )
1890 machine=convex opsys=bsd4-3
1891 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1892 NON_GNU_CPP="cc -E -P"
1893 ;;
1894
1895 ## Cubix QBx/386
1896 i[3456]86-cubix-sysv* )
1897 machine=intel386 opsys=usg5-3
1898 ;;
1899
1900 ## Cydra 5
1901 cydra*-cydrome-sysv* )
1902 machine=cydra5 opsys=usg5-3
1903 ;;
1904
1905 ## Data General AViiON Machines
1906 ## DG changed naming conventions with the release of 5.4.4.10, they
1907 ## dropped the initial 5.4 but left the intervening R. Because of the
1908 ## R this shouldn't conflict with older versions of the OS (which I
1909 ## think were named like dgux4.*). In addition, DG new AViiONs series
1910 ## uses either Motorola M88k or Intel Pentium CPUs.
1911 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1912 machine=aviion opsys=dgux4
1913 ;;
1914 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1915 ## This name is dgux5-4-3 instead of dgux5-4r3
1916 ## to avoid a file name conflict on MSDOS.
1917 machine=aviion opsys=dgux5-4-3
1918 ;;
1919 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1920 machine=aviion opsys=dgux5-4r2
1921 ;;
1922 m88k-dg-dgux* )
1923 machine=aviion opsys=dgux
1924 ;;
1925
1926 ## Data General AViiON Intel (x86) Machines
1927 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1928 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1929 i[345]86-dg-dguxR4* )
1930 machine=aviion-intel opsys=dgux4
1931 ;;
1932
1933 ## DECstations
1934 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1935 machine=pmax opsys=bsd4-2
1936 ;;
1937 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1938 machine=pmax opsys=bsd4-3
1939 ;;
1940 mips-dec-ultrix* )
1941 machine=pmax opsys=ultrix4-3
1942 ;;
1943 mips-dec-osf* )
1944 machine=pmax opsys=osf1
1945 ;;
1946 mips-dec-mach_bsd4.3* )
1947 machine=pmax opsys=mach-bsd4-3
1948 ;;
1949
cd890796
JD
1950 ## Motorola Delta machines
1951 m68k-motorola-sysv* | m68000-motorola-sysv* )
1952 machine=delta opsys=usg5-3
1953 if test -z "`type gnucc | grep 'not found'`"
1954 then
1955 if test -s /etc/167config
1956 then CC="gnucc -m68040"
1957 else CC="gnucc -m68881"
1958 fi
1959 else
1960 if test -z "`type gcc | grep 'not found'`"
1961 then CC=gcc
1962 else CC=cc
1963 fi
1964 fi
1965 ;;
ba4481b5
DL
1966 m88k-motorola-sysv4* )
1967 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1968 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1969 # I hope there are not other 4.0 versions for this machine
1970 # which really need usg5-4 instead.
1971 machine=delta88k opsys=usg5-4-2
1972 ;;
1973 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1974 machine=delta88k opsys=usg5-3
1975 ;;
1976
1977 ## Dual machines
1978 m68*-dual-sysv* )
1979 machine=dual opsys=usg5-2
1980 ;;
1981 m68*-dual-uniplus* )
1982 machine=dual opsys=unipl5-2
1983 ;;
1984
1985 ## Elxsi 6400
1986 elxsi-elxsi-sysv* )
1987 machine=elxsi opsys=usg5-2
1988 ;;
1989
1990 ## Encore machines
1991 ns16k-encore-bsd* )
1992 machine=ns16000 opsys=umax
1993 ;;
1994
65171e3a
DL
1995 ## The GEC 63 - apparently, this port isn't really finished yet.
1996 # I'm sure we finished off the last of the machines, though. -- fx
ba4481b5
DL
1997
1998 ## Gould Power Node and NP1
1999 pn-gould-bsd4.2* )
2000 machine=gould opsys=bsd4-2
2001 ;;
2002 pn-gould-bsd4.3* )
2003 machine=gould opsys=bsd4-3
2004 ;;
2005 np1-gould-bsd* )
2006 machine=gould-np1 opsys=bsd4-3
2007 ;;
2008
2009 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2010 ## as far as Emacs is concerned).
2011 m88k-harris-cxux* )
2012 # Build needs to be different on 7.0 and later releases
2013 case "`uname -r`" in
2014 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2015 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2016 esac
2017 NON_GNU_CPP="/lib/cpp"
2018 ;;
2019 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2020 m68k-harris-cxux* )
2021 machine=nh3000 opsys=cxux
2022 ;;
2023 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2024 powerpc-harris-powerunix )
2025 machine=nh6000 opsys=powerunix
2026 NON_GNU_CPP="cc -Xo -E -P"
2027 ;;
2028 ## SR2001/SR2201 running HI-UX/MPP
2029 hppa1.1-hitachi-hiuxmpp* )
2030 machine=sr2k opsys=hiuxmpp
2031 ;;
89a336fa
GM
2032 hppa1.1-hitachi-hiuxwe2* )
2033 machine=sr2k opsys=hiuxwe2
2034 ;;
ba4481b5
DL
2035 ## Honeywell XPS100
2036 xps*-honeywell-sysv* )
2037 machine=xps100 opsys=usg5-2
2038 ;;
2039
2040 ## HP 9000 series 200 or 300
2041 m68*-hp-bsd* )
2042 machine=hp9000s300 opsys=bsd4-3
2043 ;;
2044 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2045 m68*-hp-hpux* )
2046 case "`uname -r`" in
2047 ## Someone's system reports A.B8.05 for this.
2048 ## I wonder what other possibilities there are.
2049 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2050 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2051 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2052 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2053 *) machine=hp9000s300 opsys=hpux ;;
2054 esac
2055 ;;
2056
2057 ## HP 9000 series 700 and 800, running HP/UX
2058 hppa*-hp-hpux7* )
2059 machine=hp800 opsys=hpux
2060 ;;
2061 hppa*-hp-hpux8* )
2062 machine=hp800 opsys=hpux8
2063 ;;
2064 hppa*-hp-hpux9shr* )
2065 machine=hp800 opsys=hpux9shr
2066 ;;
2067 hppa*-hp-hpux9* )
2068 machine=hp800 opsys=hpux9
2069 ;;
b0e44248
RB
2070 hppa*-hp-hpux10.2* )
2071 machine=hp800 opsys=hpux10-20
2072 ;;
cc227489 2073 hppa*-hp-hpux10* )
ba4481b5
DL
2074 machine=hp800 opsys=hpux10
2075 ;;
cc227489
MB
2076 hppa*-hp-hpux1[1-9]* )
2077 machine=hp800 opsys=hpux11
2078 ;;
ba4481b5 2079
409d9577
GM
2080 hppa*-*-linux-gnu* )
2081 machine=hp800 opsys=gnu-linux
2082 ;;
2083
ba4481b5
DL
2084 ## HP 9000 series 700 and 800, running HP/UX
2085 hppa*-hp-hpux* )
2086 ## Cross-compilation? Nah!
2087 case "`uname -r`" in
2088 ## Someone's system reports A.B8.05 for this.
2089 ## I wonder what other possibilities there are.
2090 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2091 *.08.* ) machine=hp800 opsys=hpux8 ;;
2092 *.09.* ) machine=hp800 opsys=hpux9 ;;
2093 *) machine=hp800 opsys=hpux10 ;;
2094 esac
2095 ;;
2096 hppa*-*-nextstep* )
2097 machine=hp800 opsys=nextstep
2098 ;;
2099
2100 ## Orion machines
2101 orion-orion-bsd* )
2102 machine=orion opsys=bsd4-2
2103 ;;
2104 clipper-orion-bsd* )
2105 machine=orion105 opsys=bsd4-2
2106 ;;
2107
2108 ## IBM machines
2109 i[3456]86-ibm-aix1.1* )
2110 machine=ibmps2-aix opsys=usg5-2-2
2111 ;;
2112 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2113 machine=ibmps2-aix opsys=usg5-3
2114 ;;
2115 i370-ibm-aix*)
2116 machine=ibm370aix opsys=usg5-3
2117 ;;
55597d70 2118 s390-*-linux-gnu* )
138f0859
GM
2119 machine=ibms390 opsys=gnu-linux
2120 ;;
ba4481b5
DL
2121 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2122 machine=ibmrs6000 opsys=aix3-1
2123 ;;
2124 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2125 machine=ibmrs6000 opsys=aix3-2-5
2126 ;;
2127 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2128 machine=ibmrs6000 opsys=aix4-1
2129 ;;
2130 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2131 machine=ibmrs6000 opsys=aix4-2
2132 ;;
55597d70 2133 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
d6b82250
EZ
2134 machine=ibmrs6000 opsys=aix4-2
2135 ;;
ba4481b5
DL
2136 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2137 machine=ibmrs6000 opsys=aix4
2138 ;;
2139 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2140 machine=ibmrs6000 opsys=aix4-1
2141 ;;
2142 rs6000-ibm-aix* | powerpc-ibm-aix* )
2143 machine=ibmrs6000 opsys=aix3-2
2144 ;;
2145 romp-ibm-bsd4.3* )
2146 machine=ibmrt opsys=bsd4-3
2147 ;;
2148 romp-ibm-bsd4.2* )
2149 machine=ibmrt opsys=bsd4-2
2150 ;;
2151 romp-ibm-aos4.3* )
2152 machine=ibmrt opsys=bsd4-3
2153 ;;
2154 romp-ibm-aos4.2* )
2155 machine=ibmrt opsys=bsd4-2
2156 ;;
2157 romp-ibm-aos* )
2158 machine=ibmrt opsys=bsd4-3
2159 ;;
2160 romp-ibm-bsd* )
2161 machine=ibmrt opsys=bsd4-3
2162 ;;
2163 romp-ibm-aix* )
2164 machine=ibmrt-aix opsys=usg5-2-2
2165 ;;
2166
2167 ## Integrated Solutions `Optimum V'
2168 m68*-isi-bsd4.2* )
2169 machine=isi-ov opsys=bsd4-2
2170 ;;
2171 m68*-isi-bsd4.3* )
2172 machine=isi-ov opsys=bsd4-3
2173 ;;
2174
2175 ## Intel 386 machines where we do care about the manufacturer
2176 i[3456]86-intsys-sysv* )
2177 machine=is386 opsys=usg5-2-2
2178 ;;
2179
2180 ## Prime EXL
2181 i[3456]86-prime-sysv* )
2182 machine=i386 opsys=usg5-3
2183 ;;
2184
2185 ## Sequent Symmetry running Dynix
2186 i[3456]86-sequent-bsd* )
2187 machine=symmetry opsys=bsd4-3
2188 ;;
2189
2190 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2191 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2192 machine=sequent-ptx opsys=ptx4
2193 NON_GNU_CPP=/lib/cpp
2194 ;;
2195
2196 ## Sequent Symmetry running DYNIX/ptx
2197 ## Use the old cpp rather than the newer ANSI one.
2198 i[3456]86-sequent-ptx* )
2199 machine=sequent-ptx opsys=ptx
2200 NON_GNU_CPP="/lib/cpp"
2201 ;;
2202
2203 ## ncr machine running svr4.3.
2204 i[3456]86-ncr-sysv4.3 )
2205 machine=ncr386 opsys=usg5-4-3
2206 ;;
2207
2208 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2209 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2210 i[3456]86-ncr-sysv* )
2211 machine=ncr386 opsys=usg5-4-2
2212 ;;
2213
2214 ## Intel Paragon OSF/1
2215 i860-intel-osf1* )
2216 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2217 ;;
2218
2219 ## Intel 860
2220 i860-*-sysv4* )
2221 machine=i860 opsys=usg5-4
2222 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2223 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2224 ;;
2225
c76e04a8
GM
2226 ## Macintosh PowerPC
2227 powerpc*-*-linux-gnu* )
2228 machine=macppc opsys=gnu-linux
2229 ;;
2230
ba4481b5
DL
2231 ## Masscomp machines
2232 m68*-masscomp-rtu* )
2233 machine=masscomp opsys=rtu
2234 ;;
2235
2236 ## Megatest machines
2237 m68*-megatest-bsd* )
2238 machine=mega68 opsys=bsd4-2
2239 ;;
2240
2241 ## Workstations sold by MIPS
2242 ## This is not necessarily all workstations using the MIPS processor -
2243 ## Irises are produced by SGI, and DECstations by DEC.
2244
2245 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2246 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2247 ## it gives for choosing between the alternatives seems to be "Use
2248 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2249 ## the BSD world." I'll assume that these are instructions for
2250 ## handling two odd situations, and that every other situation
2251 ## should use mips.h and usg5-2-2, they being listed first.
2252 mips-mips-usg* )
2253 machine=mips4
2254 ## Fall through to the general code at the bottom to decide on the OS.
2255 ;;
2256 mips-mips-riscos4* )
2257 machine=mips4 opsys=bsd4-3
2258 NON_GNU_CC="cc -systype bsd43"
2259 NON_GNU_CPP="cc -systype bsd43 -E"
2260 ;;
2261 mips-mips-riscos5* )
2262 machine=mips4 opsys=riscos5
2263 NON_GNU_CC="cc -systype bsd43"
2264 NON_GNU_CPP="cc -systype bsd43 -E"
2265 ;;
2266 mips-mips-bsd* )
2267 machine=mips opsys=bsd4-3
2268 ;;
2269 mips-mips-* )
2270 machine=mips opsys=usg5-2-2
2271 ;;
2272
2273 ## NeXT
2274 m68*-next-* | m68k-*-nextstep* )
2275 machine=m68k opsys=nextstep
2276 ;;
2277
2278 ## The complete machine from National Semiconductor
2279 ns32k-ns-genix* )
2280 machine=ns32000 opsys=usg5-2
2281 ;;
2282
2283 ## NCR machines
2284 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2285 machine=tower32 opsys=usg5-2-2
2286 ;;
2287 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2288 machine=tower32v3 opsys=usg5-3
2289 ;;
2290
2291 ## NEC EWS4800
2292 mips-nec-sysv4*)
2293 machine=ews4800 opsys=ux4800
2294 ;;
2295
2296 ## Nixdorf Targon 31
2297 m68*-nixdorf-sysv* )
2298 machine=targon31 opsys=usg5-2-2
2299 ;;
2300
2301 ## Nu (TI or LMI)
2302 m68*-nu-sysv* )
2303 machine=nu opsys=usg5-2
2304 ;;
2305
2306 ## Plexus
2307 m68*-plexus-sysv* )
2308 machine=plexus opsys=usg5-2
2309 ;;
2310
ba4481b5
DL
2311 ## Pyramid machines
2312 ## I don't really have any idea what sort of processor the Pyramid has,
2313 ## so I'm assuming it is its own architecture.
2314 pyramid-pyramid-bsd* )
2315 machine=pyramid opsys=bsd4-2
2316 ;;
2317
2318 ## Sequent Balance
2319 ns32k-sequent-bsd4.2* )
2320 machine=sequent opsys=bsd4-2
2321 ;;
2322 ns32k-sequent-bsd4.3* )
2323 machine=sequent opsys=bsd4-3
2324 ;;
2325
2326 ## Siemens Nixdorf
2327 mips-siemens-sysv* | mips-sni-sysv*)
2328 machine=mips-siemens opsys=usg5-4
2329 NON_GNU_CC=/usr/ccs/bin/cc
2330 NON_GNU_CPP=/usr/ccs/lib/cpp
2331 ;;
2332
2333 ## Silicon Graphics machines
2334 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2335 m68*-sgi-iris3.5* )
2336 machine=irist opsys=iris3-5
2337 ;;
2338 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2339 machine=irist opsys=iris3-6
2340 ;;
2341 ## Iris 4D
2342 mips-sgi-irix3* )
2343 machine=iris4d opsys=irix3-3
2344 ;;
2345 mips-sgi-irix4* )
2346 machine=iris4d opsys=irix4-0
2347 ;;
2348 mips-sgi-irix6.5 )
2349 machine=iris4d opsys=irix6-5
946173ad
DL
2350 # Without defining _LANGUAGE_C, things get masked out in the headers
2351 # so that, for instance, grepping for `free' in stdlib.h fails and
2352 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2353 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
d42122a3 2354 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
ba4481b5
DL
2355 ;;
2356 mips-sgi-irix6* )
2357 machine=iris4d opsys=irix6-0
c4bb2108 2358 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
946173ad
DL
2359 # but presumably it does no harm.
2360 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
d42122a3 2361 # -32 probably isn't necessary in later v.6s -- anyone know which?
ba4481b5
DL
2362 NON_GCC_TEST_OPTIONS=-32
2363 ;;
2364 mips-sgi-irix5.[01]* )
2365 machine=iris4d opsys=irix5-0
2366 ;;
2367 mips-sgi-irix5* | mips-sgi-irix* )
2368 machine=iris4d opsys=irix5-2
2369 ;;
2370
2371 ## SONY machines
2372 m68*-sony-bsd4.2* )
2373 machine=news opsys=bsd4-2
2374 ;;
2375 m68*-sony-bsd4.3* )
2376 machine=news opsys=bsd4-3
2377 ;;
2378 m68*-sony-newsos3* | m68*-sony-news3*)
2379 machine=news opsys=bsd4-3
2380 ;;
2381 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2382 machine=news-risc opsys=bsd4-3
2383 ;;
2384 mips-sony-newsos6* )
2385 machine=news-r6 opsys=newsos6
2386 ;;
2387 mips-sony-news* )
2388 machine=news-risc opsys=newsos5
2389 ;;
2390
2391 ## Stride
2392 m68*-stride-sysv* )
2393 machine=stride opsys=usg5-2
2394 ;;
2395
2396 ## Suns
2397 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2398 machine=sparc opsys=gnu-linux
2399 ;;
2400
d054101f 2401 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
ba4481b5
DL
2402 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2403 | rs6000-*-solaris2*)
2404 case "${canonical}" in
2405 m68*-sunos1* ) machine=sun1 ;;
2406 m68*-sunos2* ) machine=sun2 ;;
2407 m68* ) machine=sun3 ;;
2408 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2409 i[3456]86-*-* ) machine=intel386 ;;
2410 powerpcle* ) machine=powerpcle ;;
2411 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2412 sparc* ) machine=sparc ;;
2413 * ) unported=yes ;;
2414 esac
2415 case "${canonical}" in
2416 ## The Sun386 didn't get past 4.0.
2417 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2418 *-sunos4.0* ) opsys=sunos4-0 ;;
2419 *-sunos4.1.[3-9]*noshare )
2420 ## This name is sunos413 instead of sunos4-1-3
2421 ## to avoid a file name conflict on MSDOS.
2422 opsys=sunos413
2423 NON_GNU_CPP=/usr/lib/cpp
2424 NON_GCC_TEST_OPTIONS=-Bstatic
2425 GCC_TEST_OPTIONS=-static
2426 ;;
2427 *-sunos4.1.[3-9]* | *-sunos4shr*)
2428 opsys=sunos4shr
2429 NON_GNU_CPP=/usr/lib/cpp
2430 ;;
2431 *-sunos4* | *-sunos )
2432 opsys=sunos4-1
2433 NON_GCC_TEST_OPTIONS=-Bstatic
2434 GCC_TEST_OPTIONS=-static
2435 ;;
2436 *-sunos5.3* | *-solaris2.3* )
2437 opsys=sol2-3
2438 NON_GNU_CPP=/usr/ccs/lib/cpp
2439 ;;
2440 *-sunos5.4* | *-solaris2.4* )
2441 opsys=sol2-4
2442 NON_GNU_CPP=/usr/ccs/lib/cpp
2443 RANLIB="ar -ts"
2444 ;;
2445 *-sunos5.5* | *-solaris2.5* )
2446 opsys=sol2-5
2447 NON_GNU_CPP=/usr/ccs/lib/cpp
2448 RANLIB="ar -ts"
2449 ;;
8e967cf7
MR
2450 *-sunos5.6* | *-solaris2.6* )
2451 opsys=sol2-6
2452 NON_GNU_CPP=/usr/ccs/lib/cpp
2453 RANLIB="ar -ts"
2454 ;;
ba4481b5 2455 *-sunos5* | *-solaris* )
9e71690e 2456 opsys=sol2-6
ba4481b5
DL
2457 NON_GNU_CPP=/usr/ccs/lib/cpp
2458 ;;
2459 * ) opsys=bsd4-2 ;;
2460 esac
2461 ## Watch out for a compiler that we know will not work.
2462 case "${canonical}" in
2463 *-solaris* | *-sunos5* )
2464 if [ "x$CC" = x/usr/ucb/cc ]; then
2465 ## /usr/ucb/cc doesn't work;
2466 ## we should find some other compiler that does work.
2467 unset CC
2468 fi
2469 ;;
2470 *) ;;
2471 esac
2472 ;;
2473 sparc-*-nextstep* )
2474 machine=sparc opsys=nextstep
2475 ;;
2476
2477 ## Tadpole 68k
2478 m68*-tadpole-sysv* )
2479 machine=tad68k opsys=usg5-3
2480 ;;
2481
2482 ## Tahoe machines
2483 tahoe-tahoe-bsd4.2* )
2484 machine=tahoe opsys=bsd4-2
2485 ;;
2486 tahoe-tahoe-bsd4.3* )
2487 machine=tahoe opsys=bsd4-3
2488 ;;
2489
2490 ## Tandem Integrity S2
2491 mips-tandem-sysv* )
2492 machine=tandem-s2 opsys=usg5-3
2493 ;;
2494
2495 ## Tektronix XD88
2496 m88k-tektronix-sysv3* )
2497 machine=tekxd88 opsys=usg5-3
2498 ;;
2499
2500 ## Tektronix 16000 box (6130?)
2501 ns16k-tektronix-bsd* )
2502 machine=ns16000 opsys=bsd4-2
2503 ;;
2504 ## Tektronix 4300
2505 ## src/m/tek4300.h hints that this is a m68k machine.
2506 m68*-tektronix-bsd* )
2507 machine=tek4300 opsys=bsd4-3
2508 ;;
2509
2510 ## Titan P2 or P3
2511 ## We seem to have lost the machine-description file titan.h!
2512 titan-titan-sysv* )
2513 machine=titan opsys=usg5-3
2514 ;;
2515
2516 ## Ustation E30 (SS5E)
2517 m68*-unisys-uniplus* )
2518 machine=ustation opsystem=unipl5-2
2519 ;;
2520
2521 ## Vaxen.
2522 vax-dec-* )
2523 machine=vax
2524 case "${canonical}" in
2525 *-bsd4.1* ) opsys=bsd4-1 ;;
2526 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2527 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2528 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2529 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2530 *-vms* ) opsys=vms ;;
2531 * ) unported=yes
2532 esac
2533 ;;
2534
2535 ## Whitechapel MG1
2536 ns16k-whitechapel-* )
2537 machine=mg1
2538 ## We don't know what sort of OS runs on these; we'll let the
2539 ## operating system guessing code below try.
2540 ;;
2541
2542 ## Wicat
2543 m68*-wicat-sysv* )
2544 machine=wicat opsys=usg5-2
2545 ;;
2546
f4988be7
GM
2547 ## IA-64
2548 ia64*-*-linux* )
2549 machine=ia64 opsys=gnu-linux
2550 ;;
2551
ba4481b5
DL
2552 ## Intel 386 machines where we don't care about the manufacturer
2553 i[3456]86-*-* )
2554 machine=intel386
2555 case "${canonical}" in
c60ee5e7 2556 *-cygwin ) opsys=cygwin ;;
9f817ea4 2557 *-lynxos* ) opsys=lynxos ;;
ba4481b5
DL
2558 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2559 *-isc2.2* ) opsys=isc2-2 ;;
2560 *-isc4.0* ) opsys=isc4-0 ;;
2561 *-isc4.* ) opsys=isc4-1
2562 GCC_TEST_OPTIONS=-posix
2563 NON_GCC_TEST_OPTIONS=-Xp
2564 ;;
2565 *-isc* ) opsys=isc3-0 ;;
2566 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2567 *-esix* ) opsys=esix ;;
2568 *-xenix* ) opsys=xenix ;;
2569 *-linux-gnu* ) opsys=gnu-linux ;;
2570 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
503d2be0 2571 *-sco3.2v5* ) opsys=sco5
ba4481b5
DL
2572 NON_GNU_CPP=/lib/cpp
2573 # Prevent -belf from being passed to $CPP.
2574 # /lib/cpp does not accept it.
2575 OVERRIDE_CPPFLAGS=" "
2576 ;;
2577 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
55597d70
DL
2578 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2579 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
ba4481b5 2580 *-386bsd* ) opsys=386bsd ;;
ba4481b5
DL
2581 *-nextstep* ) opsys=nextstep ;;
2582 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2583 esac
2584 ;;
2585
2586 ## m68k Linux-based GNU system
2587 m68k-*-linux-gnu* )
2588 machine=m68k opsys=gnu-linux
2589 ;;
2590
2591 ## Mips Linux-based GNU system
cd958eb3 2592 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
ba4481b5
DL
2593 machine=mips opsys=gnu-linux
2594 ;;
2595
2596 ## UXP/DS
2597 sparc-fujitsu-sysv4* )
2598 machine=sparc opsys=uxpds
2599 NON_GNU_CPP=/usr/ccs/lib/cpp
2600 RANLIB="ar -ts"
2601 ;;
2602
2603 ## UXP/V
2604 f301-fujitsu-uxpv4.1)
2605 machine=f301 opsys=uxpv
2606 ;;
2607
e0f712ba
AC
2608 ## Darwin / Mac OS X
2609 powerpc-apple-darwin* )
2610 machine=powermac opsys=darwin
2611 # Define CPP as follows to make autoconf work correctly.
2a75d75d 2612 CPP="${CC-cc} -E -no-cpp-precomp"
c14dc0ed
AS
2613 # Use fink packages if available.
2614 if test -d /sw/include && test -d /sw/lib; then
2615 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2616 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2617 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2618 fi
e0f712ba
AC
2619 ;;
2620
598a2813
AS
2621 ## AMD x86-64 Linux-based GNU system
2622 x86_64-*-linux-gnu* )
24b01ec4 2623 machine=amdx86-64 opsys=gnu-linux
598a2813
AS
2624 ;;
2625
ba4481b5
DL
2626 * )
2627 unported=yes
2628 ;;
2629esac
2630
2631### If the code above didn't choose an operating system, just choose
2632### an operating system based on the configuration name. You really
2633### only want to use this when you have no idea what the right
2634### operating system is; if you know what operating systems a machine
2635### runs, it's cleaner to make it explicit in the case statement
2636### above.
2637if test x"${opsys}" = x; then
2638 case "${canonical}" in
2639 *-gnu* ) opsys=gnu ;;
2640 *-bsd4.[01] ) opsys=bsd4-1 ;;
2641 *-bsd4.2 ) opsys=bsd4-2 ;;
2642 *-bsd4.3 ) opsys=bsd4-3 ;;
2643 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2644 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2645 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2646 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2647 *-sysv4.2uw* ) opsys=unixware ;;
55597d70
DL
2648 *-sysv5uw* ) opsys=unixware ;;
2649 *-sysv5OpenUNIX* ) opsys=unixware ;;
ba4481b5
DL
2650 *-sysv4.1* | *-sysvr4.1* )
2651 NON_GNU_CPP=/usr/lib/cpp
2652 opsys=usg5-4 ;;
2653 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2654 if [ x$NON_GNU_CPP = x ]; then
2655 if [ -f /usr/ccs/lib/cpp ]; then
2656 NON_GNU_CPP=/usr/ccs/lib/cpp
2657 else
2658 NON_GNU_CPP=/lib/cpp
2659 fi
2660 fi
2661 opsys=usg5-4-2 ;;
2662 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2663 * )
2664 unported=yes
2665 ;;
2666 esac
2667fi
2668
c0d27fcc 2669
22044edf 2670
ba4481b5 2671if test $unported = yes; then
c0d27fcc 2672 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
503d2be0
AS
2673Check \`etc/MACHINES' for recognized configuration names." >&5
2674echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2675Check \`etc/MACHINES' for recognized configuration names." >&2;}
2676 { (exit 1); exit 1; }; }
ba4481b5
DL
2677fi
2678
2679machfile="m/${machine}.h"
2680opsysfile="s/${opsys}.h"
2681
c0d27fcc 2682
ba4481b5
DL
2683#### Choose a compiler.
2684test -n "$CC" && cc_specified=yes
2685
2686# Save the value of CFLAGS that the user specified.
2687SPECIFIED_CFLAGS="$CFLAGS"
2688
2689case ${with_gcc} in
2690 "yes" ) CC="gcc" GCC=yes ;;
2691 "no" ) : ${CC=cc} ;;
503d2be0
AS
2692 * )
2693esac
2694ac_ext=c
2695ac_cpp='$CPP $CPPFLAGS'
2696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2701set dummy ${ac_tool_prefix}gcc; ac_word=$2
c0d27fcc 2702echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0
AS
2703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2704if test "${ac_cv_prog_CC+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5
DL
2706else
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2709else
c0d27fcc
MR
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721done
503d2be0
AS
2722done
2723
ba4481b5
DL
2724fi
2725fi
503d2be0 2726CC=$ac_cv_prog_CC
ba4481b5 2727if test -n "$CC"; then
c0d27fcc 2728 echo "$as_me:$LINENO: result: $CC" >&5
503d2be0
AS
2729echo "${ECHO_T}$CC" >&6
2730else
c0d27fcc 2731 echo "$as_me:$LINENO: result: no" >&5
503d2be0
AS
2732echo "${ECHO_T}no" >&6
2733fi
2734
2735fi
2736if test -z "$ac_cv_prog_CC"; then
2737 ac_ct_CC=$CC
2738 # Extract the first word of "gcc", so it can be a program name with args.
2739set dummy gcc; ac_word=$2
c0d27fcc 2740echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0
AS
2741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2742if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744else
2745 if test -n "$ac_ct_CC"; then
2746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2747else
c0d27fcc
MR
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH
2750do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_ac_ct_CC="gcc"
2756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759done
503d2be0
AS
2760done
2761
2762fi
2763fi
2764ac_ct_CC=$ac_cv_prog_ac_ct_CC
2765if test -n "$ac_ct_CC"; then
c0d27fcc 2766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
503d2be0 2767echo "${ECHO_T}$ac_ct_CC" >&6
ba4481b5 2768else
c0d27fcc 2769 echo "$as_me:$LINENO: result: no" >&5
503d2be0
AS
2770echo "${ECHO_T}no" >&6
2771fi
2772
2773 CC=$ac_ct_CC
2774else
2775 CC="$ac_cv_prog_CC"
ba4481b5
DL
2776fi
2777
2778if test -z "$CC"; then
503d2be0
AS
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2781set dummy ${ac_tool_prefix}cc; ac_word=$2
c0d27fcc 2782echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0
AS
2783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784if test "${ac_cv_prog_CC+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5
DL
2786else
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2789else
c0d27fcc
MR
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_CC="${ac_tool_prefix}cc"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801done
503d2be0
AS
2802done
2803
2804fi
2805fi
2806CC=$ac_cv_prog_CC
2807if test -n "$CC"; then
c0d27fcc 2808 echo "$as_me:$LINENO: result: $CC" >&5
503d2be0
AS
2809echo "${ECHO_T}$CC" >&6
2810else
c0d27fcc 2811 echo "$as_me:$LINENO: result: no" >&5
503d2be0
AS
2812echo "${ECHO_T}no" >&6
2813fi
2814
2815fi
2816if test -z "$ac_cv_prog_CC"; then
2817 ac_ct_CC=$CC
2818 # Extract the first word of "cc", so it can be a program name with args.
2819set dummy cc; ac_word=$2
c0d27fcc 2820echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0
AS
2821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2824else
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827else
c0d27fcc
MR
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_CC="cc"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839done
503d2be0
AS
2840done
2841
2842fi
2843fi
2844ac_ct_CC=$ac_cv_prog_ac_ct_CC
2845if test -n "$ac_ct_CC"; then
c0d27fcc 2846 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
503d2be0
AS
2847echo "${ECHO_T}$ac_ct_CC" >&6
2848else
c0d27fcc 2849 echo "$as_me:$LINENO: result: no" >&5
503d2be0
AS
2850echo "${ECHO_T}no" >&6
2851fi
2852
2853 CC=$ac_ct_CC
2854else
2855 CC="$ac_cv_prog_CC"
2856fi
2857
2858fi
2859if test -z "$CC"; then
2860 # Extract the first word of "cc", so it can be a program name with args.
2861set dummy cc; ac_word=$2
c0d27fcc 2862echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0
AS
2863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2864if test "${ac_cv_prog_CC+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866else
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC="$CC" # Let the user override the test.
2869else
2870 ac_prog_rejected=no
c0d27fcc
MR
2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872for as_dir in $PATH
2873do
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2879 ac_prog_rejected=yes
2880 continue
2881 fi
2882 ac_cv_prog_CC="cc"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2885 fi
2886done
503d2be0
AS
2887done
2888
ba4481b5
DL
2889if test $ac_prog_rejected = yes; then
2890 # We found a bogon in the path, so make sure we never use it.
2891 set dummy $ac_cv_prog_CC
2892 shift
503d2be0 2893 if test $# != 0; then
ba4481b5
DL
2894 # We chose a different compiler from the bogus one.
2895 # However, it has the same basename, so the bogon will be chosen
2896 # first if we set CC to just the basename; use the full file name.
2897 shift
6bae0ccf 2898 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
ba4481b5
DL
2899 fi
2900fi
2901fi
2902fi
503d2be0 2903CC=$ac_cv_prog_CC
ba4481b5 2904if test -n "$CC"; then
c0d27fcc 2905 echo "$as_me:$LINENO: result: $CC" >&5
503d2be0 2906echo "${ECHO_T}$CC" >&6
ba4481b5 2907else
c0d27fcc 2908 echo "$as_me:$LINENO: result: no" >&5
503d2be0 2909echo "${ECHO_T}no" >&6
ba4481b5
DL
2910fi
2911
503d2be0
AS
2912fi
2913if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2915 for ac_prog in cl
2916 do
2917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2918set dummy $ac_tool_prefix$ac_prog; ac_word=$2
c0d27fcc 2919echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0
AS
2920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921if test "${ac_cv_prog_CC+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
c4bb2108
DL
2923else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926else
c0d27fcc
MR
2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928for as_dir in $PATH
2929do
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2937 fi
2938done
503d2be0
AS
2939done
2940
c4bb2108
DL
2941fi
2942fi
503d2be0 2943CC=$ac_cv_prog_CC
c4bb2108 2944if test -n "$CC"; then
c0d27fcc 2945 echo "$as_me:$LINENO: result: $CC" >&5
503d2be0 2946echo "${ECHO_T}$CC" >&6
c4bb2108 2947else
c0d27fcc 2948 echo "$as_me:$LINENO: result: no" >&5
503d2be0
AS
2949echo "${ECHO_T}no" >&6
2950fi
2951
2952 test -n "$CC" && break
2953 done
2954fi
2955if test -z "$CC"; then
2956 ac_ct_CC=$CC
2957 for ac_prog in cl
2958do
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960set dummy $ac_prog; ac_word=$2
c0d27fcc 2961echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0
AS
2962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2963if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965else
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968else
c0d27fcc
MR
2969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970for as_dir in $PATH
2971do
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_ac_ct_CC="$ac_prog"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2979 fi
2980done
503d2be0
AS
2981done
2982
c4bb2108 2983fi
503d2be0
AS
2984fi
2985ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986if test -n "$ac_ct_CC"; then
c0d27fcc 2987 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
503d2be0
AS
2988echo "${ECHO_T}$ac_ct_CC" >&6
2989else
c0d27fcc 2990 echo "$as_me:$LINENO: result: no" >&5
503d2be0 2991echo "${ECHO_T}no" >&6
ba4481b5
DL
2992fi
2993
503d2be0
AS
2994 test -n "$ac_ct_CC" && break
2995done
ba4481b5 2996
503d2be0
AS
2997 CC=$ac_ct_CC
2998fi
2999
3000fi
ba4481b5 3001
c0d27fcc 3002
19650fd6
AS
3003test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3004See \`config.log' for more details." >&5
3005echo "$as_me: error: no acceptable C compiler found in \$PATH
3006See \`config.log' for more details." >&2;}
503d2be0 3007 { (exit 1); exit 1; }; }
c4bb2108 3008
503d2be0 3009# Provide some information about the compiler.
c0d27fcc 3010echo "$as_me:$LINENO:" \
503d2be0
AS
3011 "checking for C compiler version" >&5
3012ac_compiler=`set X $ac_compile; echo $2`
c0d27fcc 3013{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
503d2be0
AS
3014 (eval $ac_compiler --version </dev/null >&5) 2>&5
3015 ac_status=$?
c0d27fcc 3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 3017 (exit $ac_status); }
c0d27fcc 3018{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
503d2be0
AS
3019 (eval $ac_compiler -v </dev/null >&5) 2>&5
3020 ac_status=$?
c0d27fcc 3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 3022 (exit $ac_status); }
c0d27fcc 3023{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
503d2be0
AS
3024 (eval $ac_compiler -V </dev/null >&5) 2>&5
3025 ac_status=$?
c0d27fcc 3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3027 (exit $ac_status); }
3028
3029cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3030/* confdefs.h. */
3031_ACEOF
3032cat confdefs.h >>conftest.$ac_ext
3033cat >>conftest.$ac_ext <<_ACEOF
3034/* end confdefs.h. */
c4bb2108 3035
503d2be0
AS
3036int
3037main ()
3038{
3039
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044ac_clean_files_save=$ac_clean_files
19650fd6 3045ac_clean_files="$ac_clean_files a.out a.exe b.out"
503d2be0
AS
3046# Try to create an executable without -o first, disregard a.out.
3047# It will help us diagnose broken compilers, and finding out an intuition
3048# of exeext.
35996d22
AS
3049echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3050echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
503d2be0 3051ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
c0d27fcc 3052if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
503d2be0
AS
3053 (eval $ac_link_default) 2>&5
3054 ac_status=$?
c0d27fcc 3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3056 (exit $ac_status); }; then
3057 # Find the output, starting from the most likely. This scheme is
3058# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3059# resort.
c0d27fcc
MR
3060
3061# Be careful to initialize this variable, since it used to be cached.
3062# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3063ac_cv_exeext=
19650fd6
AS
3064# b.out is created by i960 compilers.
3065for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3066do
6bae0ccf 3067 test -f "$ac_file" || continue
503d2be0 3068 case $ac_file in
19650fd6 3069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
35996d22 3070 ;;
19650fd6 3071 conftest.$ac_ext )
35996d22
AS
3072 # This is the source file.
3073 ;;
19650fd6 3074 [ab].out )
35996d22
AS
3075 # We found the default executable, but exeext='' is most
3076 # certainly right.
3077 break;;
19650fd6 3078 *.* )
35996d22
AS
3079 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 # FIXME: I believe we export ac_cv_exeext for Libtool,
3081 # but it would be cool to find out if it's true. Does anybody
3082 # maintain Libtool? --akim.
3083 export ac_cv_exeext
3084 break;;
19650fd6 3085 * )
35996d22 3086 break;;
503d2be0
AS
3087 esac
3088done
3089else
3090 echo "$as_me: failed program was:" >&5
19650fd6
AS
3091sed 's/^/| /' conftest.$ac_ext >&5
3092
6bae0ccf 3093{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
19650fd6 3094See \`config.log' for more details." >&5
6bae0ccf 3095echo "$as_me: error: C compiler cannot create executables
19650fd6 3096See \`config.log' for more details." >&2;}
503d2be0
AS
3097 { (exit 77); exit 77; }; }
3098fi
3099
3100ac_exeext=$ac_cv_exeext
c0d27fcc 3101echo "$as_me:$LINENO: result: $ac_file" >&5
503d2be0
AS
3102echo "${ECHO_T}$ac_file" >&6
3103
3104# Check the compiler produces executables we can run. If not, either
3105# the compiler is broken, or we cross compile.
c0d27fcc 3106echo "$as_me:$LINENO: checking whether the C compiler works" >&5
503d2be0
AS
3107echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3108# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3109# If not cross compiling, check that we can run a simple program.
3110if test "$cross_compiling" != yes; then
3111 if { ac_try='./$ac_file'
c0d27fcc 3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
3113 (eval $ac_try) 2>&5
3114 ac_status=$?
c0d27fcc 3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3116 (exit $ac_status); }; }; then
3117 cross_compiling=no
ba4481b5 3118 else
503d2be0
AS
3119 if test "$cross_compiling" = maybe; then
3120 cross_compiling=yes
3121 else
c0d27fcc 3122 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
19650fd6
AS
3123If you meant to cross compile, use \`--host'.
3124See \`config.log' for more details." >&5
503d2be0 3125echo "$as_me: error: cannot run C compiled programs.
19650fd6
AS
3126If you meant to cross compile, use \`--host'.
3127See \`config.log' for more details." >&2;}
503d2be0
AS
3128 { (exit 1); exit 1; }; }
3129 fi
ba4481b5 3130 fi
503d2be0 3131fi
c0d27fcc 3132echo "$as_me:$LINENO: result: yes" >&5
503d2be0
AS
3133echo "${ECHO_T}yes" >&6
3134
19650fd6 3135rm -f a.out a.exe conftest$ac_cv_exeext b.out
503d2be0
AS
3136ac_clean_files=$ac_clean_files_save
3137# Check the compiler produces executables we can run. If not, either
3138# the compiler is broken, or we cross compile.
c0d27fcc 3139echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
503d2be0 3140echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
c0d27fcc 3141echo "$as_me:$LINENO: result: $cross_compiling" >&5
503d2be0
AS
3142echo "${ECHO_T}$cross_compiling" >&6
3143
c0d27fcc
MR
3144echo "$as_me:$LINENO: checking for suffix of executables" >&5
3145echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
503d2be0
AS
3147 (eval $ac_link) 2>&5
3148 ac_status=$?
c0d27fcc 3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3150 (exit $ac_status); }; then
3151 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3152# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3153# work properly (i.e., refer to `conftest.exe'), while it won't with
3154# `rm'.
6bae0ccf
DL
3155for ac_file in conftest.exe conftest conftest.*; do
3156 test -f "$ac_file" || continue
503d2be0 3157 case $ac_file in
6bae0ccf 3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
503d2be0 3159 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
35996d22
AS
3160 export ac_cv_exeext
3161 break;;
503d2be0
AS
3162 * ) break;;
3163 esac
3164done
ba4481b5 3165else
19650fd6
AS
3166 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3167See \`config.log' for more details." >&5
3168echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3169See \`config.log' for more details." >&2;}
503d2be0 3170 { (exit 1); exit 1; }; }
ba4481b5 3171fi
ba4481b5 3172
503d2be0 3173rm -f conftest$ac_cv_exeext
c0d27fcc 3174echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
503d2be0 3175echo "${ECHO_T}$ac_cv_exeext" >&6
ba4481b5 3176
503d2be0
AS
3177rm -f conftest.$ac_ext
3178EXEEXT=$ac_cv_exeext
3179ac_exeext=$EXEEXT
c0d27fcc
MR
3180echo "$as_me:$LINENO: checking for suffix of object files" >&5
3181echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
503d2be0
AS
3182if test "${ac_cv_objext+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 3184else
503d2be0 3185 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3186/* confdefs.h. */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
ba4481b5 3191
503d2be0
AS
3192int
3193main ()
3194{
ba4481b5 3195
503d2be0
AS
3196 ;
3197 return 0;
3198}
3199_ACEOF
3200rm -f conftest.o conftest.obj
c0d27fcc 3201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
503d2be0
AS
3202 (eval $ac_compile) 2>&5
3203 ac_status=$?
c0d27fcc 3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3205 (exit $ac_status); }; then
3206 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3207 case $ac_file in
6bae0ccf 3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
503d2be0
AS
3209 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3210 break;;
3211 esac
3212done
c4bb2108 3213else
503d2be0 3214 echo "$as_me: failed program was:" >&5
19650fd6
AS
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3218See \`config.log' for more details." >&5
3219echo "$as_me: error: cannot compute suffix of object files: cannot compile
3220See \`config.log' for more details." >&2;}
503d2be0 3221 { (exit 1); exit 1; }; }
c4bb2108
DL
3222fi
3223
503d2be0
AS
3224rm -f conftest.$ac_cv_objext conftest.$ac_ext
3225fi
c0d27fcc 3226echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
503d2be0
AS
3227echo "${ECHO_T}$ac_cv_objext" >&6
3228OBJEXT=$ac_cv_objext
3229ac_objext=$OBJEXT
c0d27fcc 3230echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
503d2be0
AS
3231echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3232if test "${ac_cv_c_compiler_gnu+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 3234else
503d2be0 3235 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3236/* confdefs.h. */
3237_ACEOF
3238cat confdefs.h >>conftest.$ac_ext
3239cat >>conftest.$ac_ext <<_ACEOF
3240/* end confdefs.h. */
503d2be0
AS
3241
3242int
3243main ()
3244{
3245#ifndef __GNUC__
3246 choke me
3247#endif
3248
3249 ;
3250 return 0;
3251}
3252_ACEOF
3253rm -f conftest.$ac_objext
c0d27fcc 3254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 3255 (eval $ac_compile) 2>conftest.er1
503d2be0 3256 ac_status=$?
35996d22
AS
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
c0d27fcc 3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 3261 (exit $ac_status); } &&
35996d22
AS
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
c0d27fcc 3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3274 (exit $ac_status); }; }; then
3275 ac_compiler_gnu=yes
3276else
3277 echo "$as_me: failed program was:" >&5
19650fd6
AS
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
503d2be0
AS
3280ac_compiler_gnu=no
3281fi
35996d22 3282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0
AS
3283ac_cv_c_compiler_gnu=$ac_compiler_gnu
3284
3285fi
c0d27fcc 3286echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
503d2be0
AS
3287echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3288GCC=`test $ac_compiler_gnu = yes && echo yes`
3289ac_test_CFLAGS=${CFLAGS+set}
3290ac_save_CFLAGS=$CFLAGS
3291CFLAGS="-g"
c0d27fcc 3292echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
503d2be0
AS
3293echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3294if test "${ac_cv_prog_cc_g+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296else
3297 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3298/* confdefs.h. */
3299_ACEOF
3300cat confdefs.h >>conftest.$ac_ext
3301cat >>conftest.$ac_ext <<_ACEOF
3302/* end confdefs.h. */
503d2be0
AS
3303
3304int
3305main ()
3306{
3307
3308 ;
3309 return 0;
3310}
3311_ACEOF
3312rm -f conftest.$ac_objext
c0d27fcc 3313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 3314 (eval $ac_compile) 2>conftest.er1
503d2be0 3315 ac_status=$?
35996d22
AS
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
c0d27fcc 3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 3320 (exit $ac_status); } &&
35996d22
AS
3321 { ac_try='test -z "$ac_c_werror_flag"
3322 || test ! -s conftest.err'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
c0d27fcc 3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 3333 (exit $ac_status); }; }; then
ba4481b5
DL
3334 ac_cv_prog_cc_g=yes
3335else
503d2be0 3336 echo "$as_me: failed program was:" >&5
19650fd6
AS
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
503d2be0 3339ac_cv_prog_cc_g=no
ba4481b5 3340fi
35996d22 3341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba4481b5 3342fi
c0d27fcc 3343echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
503d2be0 3344echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c4bb2108 3345if test "$ac_test_CFLAGS" = set; then
503d2be0 3346 CFLAGS=$ac_save_CFLAGS
c4bb2108
DL
3347elif test $ac_cv_prog_cc_g = yes; then
3348 if test "$GCC" = yes; then
ba4481b5
DL
3349 CFLAGS="-g -O2"
3350 else
c4bb2108 3351 CFLAGS="-g"
ba4481b5 3352 fi
22afa6e8 3353else
c4bb2108
DL
3354 if test "$GCC" = yes; then
3355 CFLAGS="-O2"
3356 else
3357 CFLAGS=
3358 fi
ba4481b5 3359fi
6bae0ccf
DL
3360echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3361echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3362if test "${ac_cv_prog_cc_stdc+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364else
3365 ac_cv_prog_cc_stdc=no
3366ac_save_CC=$CC
3367cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3368/* confdefs.h. */
3369_ACEOF
3370cat confdefs.h >>conftest.$ac_ext
3371cat >>conftest.$ac_ext <<_ACEOF
3372/* end confdefs.h. */
6bae0ccf
DL
3373#include <stdarg.h>
3374#include <stdio.h>
3375#include <sys/types.h>
3376#include <sys/stat.h>
3377/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3378struct buf { int x; };
3379FILE * (*rcsopen) (struct buf *, struct stat *, int);
3380static char *e (p, i)
3381 char **p;
3382 int i;
3383{
3384 return p[i];
3385}
3386static char *f (char * (*g) (char **, int), char **p, ...)
3387{
3388 char *s;
3389 va_list v;
3390 va_start (v,p);
3391 s = g (p, va_arg (v,int));
3392 va_end (v);
3393 return s;
3394}
35996d22
AS
3395
3396/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3397 function prototypes and stuff, but not '\xHH' hex character constants.
3398 These don't provoke an error unfortunately, instead are silently treated
3399 as 'x'. The following induces an error, until -std1 is added to get
3400 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3401 array size at least. It's necessary to write '\x00'==0 to get something
3402 that's true only with -std1. */
3403int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3404
6bae0ccf
DL
3405int test (int i, double x);
3406struct s1 {int (*f) (int a);};
3407struct s2 {int (*f) (double a);};
3408int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3409int argc;
3410char **argv;
3411int
3412main ()
3413{
3414return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3415 ;
3416 return 0;
3417}
3418_ACEOF
3419# Don't try gcc -ansi; that turns off useful extensions and
3420# breaks some systems' header files.
3421# AIX -qlanglvl=ansi
3422# Ultrix and OSF/1 -std1
3423# HP-UX 10.20 and later -Ae
3424# HP-UX older versions -Aa -D_HPUX_SOURCE
3425# SVR4 -Xc -D__EXTENSIONS__
3426for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3427do
3428 CC="$ac_save_CC $ac_arg"
3429 rm -f conftest.$ac_objext
3430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 3431 (eval $ac_compile) 2>conftest.er1
6bae0ccf 3432 ac_status=$?
35996d22
AS
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
6bae0ccf
DL
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
35996d22
AS
3438 { ac_try='test -z "$ac_c_werror_flag"
3439 || test ! -s conftest.err'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 (eval $ac_try) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try='test -s conftest.$ac_objext'
6bae0ccf
DL
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 (eval $ac_try) 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_cv_prog_cc_stdc=$ac_arg
3452break
3453else
3454 echo "$as_me: failed program was:" >&5
19650fd6
AS
3455sed 's/^/| /' conftest.$ac_ext >&5
3456
6bae0ccf 3457fi
35996d22 3458rm -f conftest.err conftest.$ac_objext
6bae0ccf
DL
3459done
3460rm -f conftest.$ac_ext conftest.$ac_objext
3461CC=$ac_save_CC
3462
3463fi
3464
3465case "x$ac_cv_prog_cc_stdc" in
3466 x|xno)
3467 echo "$as_me:$LINENO: result: none needed" >&5
3468echo "${ECHO_T}none needed" >&6 ;;
3469 *)
3470 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3471echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3472 CC="$CC $ac_cv_prog_cc_stdc" ;;
3473esac
3474
503d2be0
AS
3475# Some people use a C++ compiler to compile C. Since we use `exit',
3476# in C++ we need to declare it. In case someone uses the same compiler
3477# for both compiling C and C++ we need to have the C++ compiler decide
3478# the declaration of exit, since it's the most demanding environment.
3479cat >conftest.$ac_ext <<_ACEOF
3480#ifndef __cplusplus
3481 choke me
3482#endif
3483_ACEOF
3484rm -f conftest.$ac_objext
c0d27fcc 3485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 3486 (eval $ac_compile) 2>conftest.er1
503d2be0 3487 ac_status=$?
35996d22
AS
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
c0d27fcc 3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 3492 (exit $ac_status); } &&
35996d22
AS
3493 { ac_try='test -z "$ac_c_werror_flag"
3494 || test ! -s conftest.err'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 (eval $ac_try) 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
c0d27fcc 3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3505 (exit $ac_status); }; }; then
3506 for ac_declaration in \
35996d22 3507 '' \
503d2be0
AS
3508 'extern "C" void std::exit (int) throw (); using std::exit;' \
3509 'extern "C" void std::exit (int); using std::exit;' \
3510 'extern "C" void exit (int) throw ();' \
3511 'extern "C" void exit (int);' \
cffcede7 3512 'void exit (int);'
503d2be0
AS
3513do
3514 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3515/* confdefs.h. */
3516_ACEOF
3517cat confdefs.h >>conftest.$ac_ext
3518cat >>conftest.$ac_ext <<_ACEOF
3519/* end confdefs.h. */
57669b57 3520$ac_declaration
35996d22 3521#include <stdlib.h>
503d2be0
AS
3522int
3523main ()
3524{
3525exit (42);
3526 ;
3527 return 0;
3528}
3529_ACEOF
3530rm -f conftest.$ac_objext
c0d27fcc 3531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 3532 (eval $ac_compile) 2>conftest.er1
503d2be0 3533 ac_status=$?
35996d22
AS
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
c0d27fcc 3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 3538 (exit $ac_status); } &&
35996d22
AS
3539 { ac_try='test -z "$ac_c_werror_flag"
3540 || test ! -s conftest.err'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 (eval $ac_try) 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
c0d27fcc 3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3551 (exit $ac_status); }; }; then
3552 :
3553else
3554 echo "$as_me: failed program was:" >&5
19650fd6
AS
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
503d2be0
AS
3557continue
3558fi
35996d22 3559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0 3560 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3561/* confdefs.h. */
3562_ACEOF
3563cat confdefs.h >>conftest.$ac_ext
3564cat >>conftest.$ac_ext <<_ACEOF
3565/* end confdefs.h. */
503d2be0
AS
3566$ac_declaration
3567int
3568main ()
3569{
3570exit (42);
3571 ;
3572 return 0;
3573}
3574_ACEOF
3575rm -f conftest.$ac_objext
c0d27fcc 3576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 3577 (eval $ac_compile) 2>conftest.er1
503d2be0 3578 ac_status=$?
35996d22
AS
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
c0d27fcc 3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 3583 (exit $ac_status); } &&
35996d22
AS
3584 { ac_try='test -z "$ac_c_werror_flag"
3585 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
c0d27fcc 3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3596 (exit $ac_status); }; }; then
3597 break
3598else
3599 echo "$as_me: failed program was:" >&5
19650fd6
AS
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
503d2be0 3602fi
35996d22 3603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0
AS
3604done
3605rm -f conftest*
3606if test -n "$ac_declaration"; then
3607 echo '#ifdef __cplusplus' >>confdefs.h
3608 echo $ac_declaration >>confdefs.h
3609 echo '#endif' >>confdefs.h
3610fi
ba4481b5 3611
503d2be0
AS
3612else
3613 echo "$as_me: failed program was:" >&5
19650fd6
AS
3614sed 's/^/| /' conftest.$ac_ext >&5
3615
503d2be0 3616fi
35996d22 3617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0
AS
3618ac_ext=c
3619ac_cpp='$CPP $CPPFLAGS'
3620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622ac_compiler_gnu=$ac_cv_c_compiler_gnu
ba4481b5 3623
c0d27fcc 3624
ba4481b5
DL
3625# On Suns, sometimes $CPP names a directory.
3626if test -n "$CPP" && test -d "$CPP"; then
3627 CPP=
3628fi
3629
3630#### Some systems specify a CPP to use unless we are using GCC.
3631#### Now that we know whether we are using GCC, we can decide whether
3632#### to use that one.
3633if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3634then
3635 CPP="$NON_GNU_CPP"
3636fi
3637
3638#### Some systems specify a CC to use unless we are using GCC.
3639#### Now that we know whether we are using GCC, we can decide whether
3640#### to use that one.
3641if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3642 test x$cc_specified != xyes
3643then
3644 CC="$NON_GNU_CC"
3645fi
3646
3647if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3648then
3649 CC="$CC $GCC_TEST_OPTIONS"
3650fi
3651
3652if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3653then
3654 CC="$CC $NON_GCC_TEST_OPTIONS"
3655fi
3656
6a3a24fa 3657#### Some other nice autoconf tests.
ba4481b5 3658
c0d27fcc 3659echo "$as_me:$LINENO: checking whether ln -s works" >&5
503d2be0
AS
3660echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3661LN_S=$as_ln_s
3662if test "$LN_S" = "ln -s"; then
c0d27fcc 3663 echo "$as_me:$LINENO: result: yes" >&5
503d2be0 3664echo "${ECHO_T}yes" >&6
ba4481b5 3665else
c0d27fcc 3666 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
503d2be0 3667echo "${ECHO_T}no, using $LN_S" >&6
ba4481b5
DL
3668fi
3669
503d2be0
AS
3670ac_ext=c
3671ac_cpp='$CPP $CPPFLAGS'
3672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674ac_compiler_gnu=$ac_cv_c_compiler_gnu
c0d27fcc 3675echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
503d2be0 3676echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
ba4481b5
DL
3677# On Suns, sometimes $CPP names a directory.
3678if test -n "$CPP" && test -d "$CPP"; then
3679 CPP=
3680fi
3681if test -z "$CPP"; then
503d2be0
AS
3682 if test "${ac_cv_prog_CPP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684else
3685 # Double quotes because CPP needs to be expanded
3686 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3687 do
3688 ac_preproc_ok=false
3689for ac_c_preproc_warn_flag in '' yes
3690do
3691 # Use a header file that comes with gcc, so configuring glibc
3692 # with a fresh cross-compiler works.
19650fd6
AS
3693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3694 # <limits.h> exists even on freestanding compilers.
ba4481b5 3695 # On the NeXT, cc -E runs the code through the compiler's parser,
503d2be0
AS
3696 # not just through cpp. "Syntax error" is here to catch this case.
3697 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3698/* confdefs.h. */
3699_ACEOF
3700cat confdefs.h >>conftest.$ac_ext
3701cat >>conftest.$ac_ext <<_ACEOF
3702/* end confdefs.h. */
3703#ifdef __STDC__
3704# include <limits.h>
3705#else
3706# include <assert.h>
3707#endif
35996d22 3708 Syntax error
503d2be0 3709_ACEOF
c0d27fcc 3710if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
3711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3712 ac_status=$?
6bae0ccf 3713 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
3714 rm -f conftest.er1
3715 cat conftest.err >&5
c0d27fcc 3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3717 (exit $ac_status); } >/dev/null; then
3718 if test -s conftest.err; then
3719 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 3720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
3721 else
3722 ac_cpp_err=
3723 fi
3724else
3725 ac_cpp_err=yes
3726fi
3727if test -z "$ac_cpp_err"; then
ba4481b5
DL
3728 :
3729else
503d2be0 3730 echo "$as_me: failed program was:" >&5
19650fd6
AS
3731sed 's/^/| /' conftest.$ac_ext >&5
3732
503d2be0
AS
3733 # Broken: fails on valid input.
3734continue
3735fi
3736rm -f conftest.err conftest.$ac_ext
3737
3738 # OK, works on sane cases. Now check whether non-existent headers
3739 # can be detected and how.
3740 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3741/* confdefs.h. */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h. */
503d2be0
AS
3746#include <ac_nonexistent.h>
3747_ACEOF
c0d27fcc 3748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
3749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3750 ac_status=$?
6bae0ccf 3751 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
3752 rm -f conftest.er1
3753 cat conftest.err >&5
c0d27fcc 3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3755 (exit $ac_status); } >/dev/null; then
3756 if test -s conftest.err; then
3757 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 3758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
3759 else
3760 ac_cpp_err=
3761 fi
3762else
3763 ac_cpp_err=yes
3764fi
3765if test -z "$ac_cpp_err"; then
3766 # Broken: success on invalid input.
3767continue
c4bb2108 3768else
503d2be0 3769 echo "$as_me: failed program was:" >&5
19650fd6
AS
3770sed 's/^/| /' conftest.$ac_ext >&5
3771
503d2be0
AS
3772 # Passes both tests.
3773ac_preproc_ok=:
3774break
3775fi
3776rm -f conftest.err conftest.$ac_ext
3777
3778done
3779# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3780rm -f conftest.err conftest.$ac_ext
3781if $ac_preproc_ok; then
3782 break
3783fi
3784
3785 done
3786 ac_cv_prog_CPP=$CPP
3787
3788fi
3789 CPP=$ac_cv_prog_CPP
3790else
3791 ac_cv_prog_CPP=$CPP
3792fi
c0d27fcc 3793echo "$as_me:$LINENO: result: $CPP" >&5
503d2be0
AS
3794echo "${ECHO_T}$CPP" >&6
3795ac_preproc_ok=false
3796for ac_c_preproc_warn_flag in '' yes
3797do
3798 # Use a header file that comes with gcc, so configuring glibc
3799 # with a fresh cross-compiler works.
19650fd6
AS
3800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801 # <limits.h> exists even on freestanding compilers.
503d2be0
AS
3802 # On the NeXT, cc -E runs the code through the compiler's parser,
3803 # not just through cpp. "Syntax error" is here to catch this case.
3804 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3805/* confdefs.h. */
3806_ACEOF
3807cat confdefs.h >>conftest.$ac_ext
3808cat >>conftest.$ac_ext <<_ACEOF
3809/* end confdefs.h. */
3810#ifdef __STDC__
3811# include <limits.h>
3812#else
3813# include <assert.h>
3814#endif
35996d22 3815 Syntax error
503d2be0 3816_ACEOF
c0d27fcc 3817if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
3818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3819 ac_status=$?
6bae0ccf 3820 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
3821 rm -f conftest.er1
3822 cat conftest.err >&5
c0d27fcc 3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3824 (exit $ac_status); } >/dev/null; then
3825 if test -s conftest.err; then
3826 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 3827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
3828 else
3829 ac_cpp_err=
3830 fi
3831else
3832 ac_cpp_err=yes
3833fi
3834if test -z "$ac_cpp_err"; then
ba4481b5
DL
3835 :
3836else
503d2be0 3837 echo "$as_me: failed program was:" >&5
19650fd6
AS
3838sed 's/^/| /' conftest.$ac_ext >&5
3839
503d2be0
AS
3840 # Broken: fails on valid input.
3841continue
3842fi
3843rm -f conftest.err conftest.$ac_ext
3844
3845 # OK, works on sane cases. Now check whether non-existent headers
3846 # can be detected and how.
3847 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
3848/* confdefs.h. */
3849_ACEOF
3850cat confdefs.h >>conftest.$ac_ext
3851cat >>conftest.$ac_ext <<_ACEOF
3852/* end confdefs.h. */
503d2be0
AS
3853#include <ac_nonexistent.h>
3854_ACEOF
c0d27fcc 3855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
3856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3857 ac_status=$?
6bae0ccf 3858 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
3859 rm -f conftest.er1
3860 cat conftest.err >&5
c0d27fcc 3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
3862 (exit $ac_status); } >/dev/null; then
3863 if test -s conftest.err; then
3864 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 3865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
3866 else
3867 ac_cpp_err=
3868 fi
3869else
3870 ac_cpp_err=yes
c4bb2108 3871fi
503d2be0
AS
3872if test -z "$ac_cpp_err"; then
3873 # Broken: success on invalid input.
3874continue
3875else
3876 echo "$as_me: failed program was:" >&5
19650fd6
AS
3877sed 's/^/| /' conftest.$ac_ext >&5
3878
503d2be0
AS
3879 # Passes both tests.
3880ac_preproc_ok=:
3881break
ba4481b5 3882fi
503d2be0
AS
3883rm -f conftest.err conftest.$ac_ext
3884
3885done
3886# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3887rm -f conftest.err conftest.$ac_ext
3888if $ac_preproc_ok; then
3889 :
ba4481b5 3890else
19650fd6
AS
3891 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3892See \`config.log' for more details." >&5
3893echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3894See \`config.log' for more details." >&2;}
503d2be0 3895 { (exit 1); exit 1; }; }
ba4481b5 3896fi
503d2be0
AS
3897
3898ac_ext=c
3899ac_cpp='$CPP $CPPFLAGS'
3900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902ac_compiler_gnu=$ac_cv_c_compiler_gnu
ba4481b5
DL
3903
3904# Find a good install program. We prefer a C program (faster),
3905# so one script is as good as another. But avoid the broken or
3906# incompatible versions:
3907# SysV /etc/install, /usr/sbin/install
3908# SunOS /usr/etc/install
3909# IRIX /sbin/install
3910# AIX /bin/install
503d2be0 3911# AmigaOS /C/install, which installs bootblocks on floppy discs
c4bb2108 3912# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
ba4481b5
DL
3913# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3914# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
35996d22 3915# OS/2's system install, which has a completely different semantic
ba4481b5 3916# ./install, which can be erroneously created by make from ./install.sh.
c0d27fcc
MR
3917echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3918echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
ba4481b5 3919if test -z "$INSTALL"; then
503d2be0
AS
3920if test "${ac_cv_path_install+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 3922else
c0d27fcc
MR
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 # Account for people who put trailing slashes in PATH elements.
3929case $as_dir/ in
3930 ./ | .// | /cC/* | \
3931 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
35996d22 3932 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
c0d27fcc
MR
3933 /usr/ucb/* ) ;;
3934 *)
3935 # OSF1 and SCO ODT 3.0 have their own names for install.
3936 # Don't use installbsd from OSF since it installs stuff as root
3937 # by default.
3938 for ac_prog in ginstall scoinst install; do
3939 for ac_exec_ext in '' $ac_executable_extensions; do
35996d22
AS
3940 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3941 if test $ac_prog = install &&
3942 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3943 # AIX install. It has an incompatible calling convention.
3944 :
3945 elif test $ac_prog = install &&
3946 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3947 # program-specific install script used by HP pwplus--don't use.
3948 :
3949 else
3950 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3951 break 3
3952 fi
3953 fi
ba4481b5 3954 done
c0d27fcc
MR
3955 done
3956 ;;
3957esac
3958done
3959
ba4481b5
DL
3960
3961fi
3962 if test "${ac_cv_path_install+set}" = set; then
503d2be0 3963 INSTALL=$ac_cv_path_install
ba4481b5
DL
3964 else
3965 # As a last resort, use the slow shell script. We don't cache a
3966 # path for INSTALL within a source directory, because that will
3967 # break other packages using the cache if that directory is
3968 # removed, or if the path is relative.
503d2be0 3969 INSTALL=$ac_install_sh
ba4481b5
DL
3970 fi
3971fi
c0d27fcc 3972echo "$as_me:$LINENO: result: $INSTALL" >&5
503d2be0 3973echo "${ECHO_T}$INSTALL" >&6
ba4481b5
DL
3974
3975# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3976# It thinks the first close brace ends the variable substitution.
3977test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3978
503d2be0 3979test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
c4bb2108 3980
ba4481b5
DL
3981test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3982
c0d27fcc
MR
3983if test "x$RANLIB" = x; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3986set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3987echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0 3988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c0d27fcc 3989if test "${ac_cv_prog_RANLIB+set}" = set; then
503d2be0 3990 echo $ECHO_N "(cached) $ECHO_C" >&6
7397acc4
DL
3991else
3992 if test -n "$RANLIB"; then
3993 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3994else
c0d27fcc
MR
3995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996for as_dir in $PATH
3997do
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4005 fi
4006done
503d2be0
AS
4007done
4008
7397acc4
DL
4009fi
4010fi
503d2be0 4011RANLIB=$ac_cv_prog_RANLIB
7397acc4 4012if test -n "$RANLIB"; then
c0d27fcc 4013 echo "$as_me:$LINENO: result: $RANLIB" >&5
503d2be0
AS
4014echo "${ECHO_T}$RANLIB" >&6
4015else
c0d27fcc 4016 echo "$as_me:$LINENO: result: no" >&5
503d2be0
AS
4017echo "${ECHO_T}no" >&6
4018fi
4019
4020fi
4021if test -z "$ac_cv_prog_RANLIB"; then
4022 ac_ct_RANLIB=$RANLIB
4023 # Extract the first word of "ranlib", so it can be a program name with args.
4024set dummy ranlib; ac_word=$2
c0d27fcc 4025echo "$as_me:$LINENO: checking for $ac_word" >&5
503d2be0
AS
4026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029else
4030 if test -n "$ac_ct_RANLIB"; then
4031 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4032else
c0d27fcc
MR
4033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034for as_dir in $PATH
4035do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_ac_ct_RANLIB="ranlib"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044done
503d2be0
AS
4045done
4046
4047 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4048fi
4049fi
4050ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4051if test -n "$ac_ct_RANLIB"; then
c0d27fcc 4052 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
503d2be0
AS
4053echo "${ECHO_T}$ac_ct_RANLIB" >&6
4054else
c0d27fcc 4055 echo "$as_me:$LINENO: result: no" >&5
503d2be0
AS
4056echo "${ECHO_T}no" >&6
4057fi
4058
4059 RANLIB=$ac_ct_RANLIB
7397acc4 4060else
503d2be0 4061 RANLIB="$ac_cv_prog_RANLIB"
7397acc4
DL
4062fi
4063
4064fi
9e71690e
DK
4065# Extract the first word of "install-info", so it can be a program name with args.
4066set dummy install-info; ac_word=$2
4067echo "$as_me:$LINENO: checking for $ac_word" >&5
4068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071else
4072 case $INSTALL_INFO in
4073 [\\/]* | ?:[\\/]*)
4074 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4075 ;;
4076 *)
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078for as_dir in $PATH
4079do
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4087 fi
4088done
4089done
4090
4091 ;;
4092esac
4093fi
4094INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4095
4096if test -n "$INSTALL_INFO"; then
4097 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4098echo "${ECHO_T}$INSTALL_INFO" >&6
4099else
4100 echo "$as_me:$LINENO: result: no" >&5
4101echo "${ECHO_T}no" >&6
4102fi
4103
4104# Extract the first word of "install-info", so it can be a program name with args.
4105set dummy install-info; ac_word=$2
4106echo "$as_me:$LINENO: checking for $ac_word" >&5
4107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110else
4111 case $INSTALL_INFO in
4112 [\\/]* | ?:[\\/]*)
4113 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4114 ;;
4115 *)
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in /usr/sbin
4118do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4126 fi
4127done
4128done
4129
4130 ;;
4131esac
4132fi
4133INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4134
4135if test -n "$INSTALL_INFO"; then
4136 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4137echo "${ECHO_T}$INSTALL_INFO" >&6
4138else
4139 echo "$as_me:$LINENO: result: no" >&5
4140echo "${ECHO_T}no" >&6
4141fi
4142
4143# Extract the first word of "install-info", so it can be a program name with args.
4144set dummy install-info; ac_word=$2
4145echo "$as_me:$LINENO: checking for $ac_word" >&5
4146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150 case $INSTALL_INFO in
4151 [\\/]* | ?:[\\/]*)
4152 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4153 ;;
4154 *)
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in /sbin
4157do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166done
4167done
4168
4169 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4170 ;;
4171esac
4172fi
4173INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4174
4175if test -n "$INSTALL_INFO"; then
4176 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4177echo "${ECHO_T}$INSTALL_INFO" >&6
4178else
4179 echo "$as_me:$LINENO: result: no" >&5
4180echo "${ECHO_T}no" >&6
4181fi
4182
ba4481b5 4183
c0d27fcc 4184
8e967cf7
MR
4185if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4186then
4187 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4188fi
4189
4190if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4191then
4192 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4193fi
4194
c0d27fcc
MR
4195
4196
6bae0ccf
DL
4197echo "$as_me:$LINENO: checking for egrep" >&5
4198echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4199if test "${ac_cv_prog_egrep+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4203 then ac_cv_prog_egrep='grep -E'
4204 else ac_cv_prog_egrep='egrep'
4205 fi
4206fi
4207echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4208echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4209 EGREP=$ac_cv_prog_egrep
4210
4211
c0d27fcc
MR
4212
4213echo "$as_me:$LINENO: checking for AIX" >&5
503d2be0
AS
4214echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4215cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4216/* confdefs.h. */
4217_ACEOF
4218cat confdefs.h >>conftest.$ac_ext
4219cat >>conftest.$ac_ext <<_ACEOF
4220/* end confdefs.h. */
ba4481b5
DL
4221#ifdef _AIX
4222 yes
4223#endif
4224
503d2be0 4225_ACEOF
ba4481b5 4226if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 4227 $EGREP "yes" >/dev/null 2>&1; then
c0d27fcc 4228 echo "$as_me:$LINENO: result: yes" >&5
503d2be0 4229echo "${ECHO_T}yes" >&6
c0d27fcc 4230cat >>confdefs.h <<\_ACEOF
ba4481b5 4231#define _ALL_SOURCE 1
c0d27fcc 4232_ACEOF
ba4481b5
DL
4233
4234else
c0d27fcc 4235 echo "$as_me:$LINENO: result: no" >&5
503d2be0 4236echo "${ECHO_T}no" >&6
ba4481b5
DL
4237fi
4238rm -f conftest*
4239
c0d27fcc
MR
4240
4241
3b33a005
DL
4242#### Extract some information from the operating system and machine files.
4243
c0d27fcc 4244{ echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3b33a005 4245 - which libraries the lib-src programs will want, and
503d2be0
AS
4246 - whether the GNU malloc routines are usable..." >&5
4247echo "$as_me: checking the machine- and system-dependent files to find out
3b33a005 4248 - which libraries the lib-src programs will want, and
503d2be0 4249 - whether the GNU malloc routines are usable..." >&6;}
3b33a005
DL
4250
4251### First figure out CFLAGS (which we use for running the compiler here)
4252### and REAL_CFLAGS (which we use for real compilation).
4253### The two are the same except on a few systems, where they are made
4254### different to work around various lossages. For example,
4255### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4256### as implying static linking.
4257
4258### If the CFLAGS env var is specified, we use that value
4259### instead of the default.
4260
4261### It's not important that this name contain the PID; you can't run
4262### two configures in the same directory and have anything work
4263### anyway.
4264tempcname="conftest.c"
4265
4266echo '
4267#include "'${srcdir}'/src/'${opsysfile}'"
4268#include "'${srcdir}'/src/'${machfile}'"
4269#ifndef LIBS_MACHINE
4270#define LIBS_MACHINE
4271#endif
4272#ifndef LIBS_SYSTEM
4273#define LIBS_SYSTEM
4274#endif
4275#ifndef C_SWITCH_SYSTEM
4276#define C_SWITCH_SYSTEM
4277#endif
4278#ifndef C_SWITCH_MACHINE
4279#define C_SWITCH_MACHINE
4280#endif
4281configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4282configure___ c_switch_system=C_SWITCH_SYSTEM
4283configure___ c_switch_machine=C_SWITCH_MACHINE
4284
4285#ifndef LIB_X11_LIB
4286#define LIB_X11_LIB -lX11
4287#endif
4288
4289#ifndef LIBX11_MACHINE
4290#define LIBX11_MACHINE
4291#endif
4292
4293#ifndef LIBX11_SYSTEM
4294#define LIBX11_SYSTEM
4295#endif
4296configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4297
4298#ifdef UNEXEC
4299configure___ unexec=UNEXEC
4300#else
4301configure___ unexec=unexec.o
4302#endif
4303
4304#ifdef SYSTEM_MALLOC
4305configure___ system_malloc=yes
4306#else
4307configure___ system_malloc=no
4308#endif
4309
ef9e4345
GM
4310#ifdef USE_MMAP_FOR_BUFFERS
4311configure___ use_mmap_for_buffers=yes
73b77ee5 4312#else
ef9e4345 4313configure___ use_mmap_for_buffers=no
73b77ee5
GM
4314#endif
4315
3b33a005
DL
4316#ifndef C_DEBUG_SWITCH
4317#define C_DEBUG_SWITCH -g
4318#endif
4319
4320#ifndef C_OPTIMIZE_SWITCH
4321#ifdef __GNUC__
4322#define C_OPTIMIZE_SWITCH -O2
4323#else
4324#define C_OPTIMIZE_SWITCH -O
4325#endif
4326#endif
4327
4328#ifndef LD_SWITCH_MACHINE
4329#define LD_SWITCH_MACHINE
4330#endif
4331
4332#ifndef LD_SWITCH_SYSTEM
4333#define LD_SWITCH_SYSTEM
4334#endif
4335
4336#ifndef LD_SWITCH_X_SITE_AUX
4337#define LD_SWITCH_X_SITE_AUX
503d2be0 4338#endif
3b33a005
DL
4339
4340configure___ ld_switch_system=LD_SWITCH_SYSTEM
4341configure___ ld_switch_machine=LD_SWITCH_MACHINE
4342
4343#ifdef THIS_IS_CONFIGURE
4344
4345/* Get the CFLAGS for tests in configure. */
4346#ifdef __GNUC__
4347configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4348#else
4349configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4350#endif
4351
4352#else /* not THIS_IS_CONFIGURE */
4353
4354/* Get the CFLAGS for real compilation. */
4355#ifdef __GNUC__
4356configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4357#else
4358configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4359#endif
4360
4361#endif /* not THIS_IS_CONFIGURE */
4362' > ${tempcname}
4363
4364# The value of CPP is a quoted variable reference, so we need to do this
4365# to get its actual value...
4366CPP=`eval "echo $CPP"`
4367eval `${CPP} -Isrc ${tempcname} \
4368 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4369if test "x$SPECIFIED_CFLAGS" = x; then
4370 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4371 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4372else
4373 REAL_CFLAGS="$CFLAGS"
4374fi
4375rm ${tempcname}
4376
4377ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4378
4379### Make sure subsequent tests use flags consistent with the build flags.
4380
4381if test x"${OVERRIDE_CPPFLAGS}" != x; then
4382 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4383else
4384 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4385fi
4386
6bae0ccf
DL
4387
4388
22044edf
DL
4389
4390cat >>confdefs.h <<\_ACEOF
4391#define _GNU_SOURCE 1
4392_ACEOF
4393
4394
4395
503d2be0 4396# Check whether --enable-largefile or --disable-largefile was given.
f4988be7
GM
4397if test "${enable_largefile+set}" = set; then
4398 enableval="$enable_largefile"
f4988be7 4399
503d2be0
AS
4400fi;
4401if test "$enable_largefile" != no; then
f4988be7 4402
c0d27fcc 4403 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
503d2be0
AS
4404echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4405if test "${ac_cv_sys_largefile_CC+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 4407else
f4988be7 4408 ac_cv_sys_largefile_CC=no
503d2be0
AS
4409 if test "$GCC" != yes; then
4410 ac_save_CC=$CC
4411 while :; do
4412 # IRIX 6.2 and later do not support large files by default,
4413 # so use the C compiler's -n32 option if that helps.
35996d22 4414 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4415/* confdefs.h. */
4416_ACEOF
4417cat confdefs.h >>conftest.$ac_ext
4418cat >>conftest.$ac_ext <<_ACEOF
4419/* end confdefs.h. */
f4988be7 4420#include <sys/types.h>
503d2be0
AS
4421 /* Check that off_t can represent 2**63 - 1 correctly.
4422 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4423 since some C++ compilers masquerading as C compilers
4424 incorrectly reject 9223372036854775807. */
4425#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4426 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4427 && LARGE_OFF_T % 2147483647 == 1)
4428 ? 1 : -1];
4429int
4430main ()
4431{
f4988be7 4432
503d2be0
AS
4433 ;
4434 return 0;
4435}
4436_ACEOF
4437 rm -f conftest.$ac_objext
c0d27fcc 4438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 4439 (eval $ac_compile) 2>conftest.er1
503d2be0 4440 ac_status=$?
35996d22
AS
4441 grep -v '^ *+' conftest.er1 >conftest.err
4442 rm -f conftest.er1
4443 cat conftest.err >&5
c0d27fcc 4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 4445 (exit $ac_status); } &&
35996d22
AS
4446 { ac_try='test -z "$ac_c_werror_flag"
4447 || test ! -s conftest.err'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; } &&
4453 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
4455 (eval $ac_try) 2>&5
4456 ac_status=$?
c0d27fcc 4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
4458 (exit $ac_status); }; }; then
4459 break
b192d653 4460else
503d2be0 4461 echo "$as_me: failed program was:" >&5
19650fd6
AS
4462sed 's/^/| /' conftest.$ac_ext >&5
4463
503d2be0 4464fi
35996d22 4465rm -f conftest.err conftest.$ac_objext
503d2be0
AS
4466 CC="$CC -n32"
4467 rm -f conftest.$ac_objext
c0d27fcc 4468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 4469 (eval $ac_compile) 2>conftest.er1
503d2be0 4470 ac_status=$?
35996d22
AS
4471 grep -v '^ *+' conftest.er1 >conftest.err
4472 rm -f conftest.er1
4473 cat conftest.err >&5
c0d27fcc 4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 4475 (exit $ac_status); } &&
35996d22
AS
4476 { ac_try='test -z "$ac_c_werror_flag"
4477 || test ! -s conftest.err'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; } &&
4483 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
c0d27fcc 4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
4488 (exit $ac_status); }; }; then
4489 ac_cv_sys_largefile_CC=' -n32'; break
4490else
4491 echo "$as_me: failed program was:" >&5
19650fd6
AS
4492sed 's/^/| /' conftest.$ac_ext >&5
4493
503d2be0 4494fi
35996d22
AS
4495rm -f conftest.err conftest.$ac_objext
4496 break
503d2be0
AS
4497 done
4498 CC=$ac_save_CC
4499 rm -f conftest.$ac_ext
4500 fi
b192d653 4501fi
c0d27fcc 4502echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
503d2be0
AS
4503echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4504 if test "$ac_cv_sys_largefile_CC" != no; then
4505 CC=$CC$ac_cv_sys_largefile_CC
4506 fi
b192d653 4507
c0d27fcc 4508 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
503d2be0
AS
4509echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4510if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 4512else
503d2be0 4513 while :; do
f4988be7 4514 ac_cv_sys_file_offset_bits=no
503d2be0 4515 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4516/* confdefs.h. */
4517_ACEOF
4518cat confdefs.h >>conftest.$ac_ext
4519cat >>conftest.$ac_ext <<_ACEOF
4520/* end confdefs.h. */
f4988be7 4521#include <sys/types.h>
503d2be0
AS
4522 /* Check that off_t can represent 2**63 - 1 correctly.
4523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4524 since some C++ compilers masquerading as C compilers
4525 incorrectly reject 9223372036854775807. */
4526#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4528 && LARGE_OFF_T % 2147483647 == 1)
4529 ? 1 : -1];
4530int
4531main ()
4532{
f4988be7 4533
503d2be0
AS
4534 ;
4535 return 0;
4536}
4537_ACEOF
4538rm -f conftest.$ac_objext
c0d27fcc 4539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 4540 (eval $ac_compile) 2>conftest.er1
503d2be0 4541 ac_status=$?
35996d22
AS
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
c0d27fcc 4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 4546 (exit $ac_status); } &&
35996d22
AS
4547 { ac_try='test -z "$ac_c_werror_flag"
4548 || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
4556 (eval $ac_try) 2>&5
4557 ac_status=$?
c0d27fcc 4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
4559 (exit $ac_status); }; }; then
4560 break
f4988be7 4561else
503d2be0 4562 echo "$as_me: failed program was:" >&5
19650fd6
AS
4563sed 's/^/| /' conftest.$ac_ext >&5
4564
503d2be0 4565fi
35996d22 4566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0 4567 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4568/* confdefs.h. */
4569_ACEOF
4570cat confdefs.h >>conftest.$ac_ext
4571cat >>conftest.$ac_ext <<_ACEOF
4572/* end confdefs.h. */
f4988be7
GM
4573#define _FILE_OFFSET_BITS 64
4574#include <sys/types.h>
503d2be0
AS
4575 /* Check that off_t can represent 2**63 - 1 correctly.
4576 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4577 since some C++ compilers masquerading as C compilers
4578 incorrectly reject 9223372036854775807. */
4579#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4581 && LARGE_OFF_T % 2147483647 == 1)
4582 ? 1 : -1];
4583int
4584main ()
4585{
4586
4587 ;
4588 return 0;
4589}
4590_ACEOF
4591rm -f conftest.$ac_objext
c0d27fcc 4592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 4593 (eval $ac_compile) 2>conftest.er1
503d2be0 4594 ac_status=$?
35996d22
AS
4595 grep -v '^ *+' conftest.er1 >conftest.err
4596 rm -f conftest.er1
4597 cat conftest.err >&5
c0d27fcc 4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 4599 (exit $ac_status); } &&
35996d22
AS
4600 { ac_try='test -z "$ac_c_werror_flag"
4601 || test ! -s conftest.err'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; } &&
4607 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
c0d27fcc 4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
4612 (exit $ac_status); }; }; then
4613 ac_cv_sys_file_offset_bits=64; break
4614else
4615 echo "$as_me: failed program was:" >&5
19650fd6
AS
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
503d2be0 4618fi
35996d22 4619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0
AS
4620 break
4621done
ba4481b5 4622fi
c0d27fcc 4623echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
503d2be0
AS
4624echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4625if test "$ac_cv_sys_file_offset_bits" != no; then
ba4481b5 4626
c0d27fcc 4627cat >>confdefs.h <<_ACEOF
f4988be7 4628#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
c0d27fcc 4629_ACEOF
f4988be7 4630
503d2be0
AS
4631fi
4632rm -f conftest*
c0d27fcc 4633 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
503d2be0
AS
4634echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4635if test "${ac_cv_sys_large_files+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 4637else
503d2be0 4638 while :; do
f4988be7 4639 ac_cv_sys_large_files=no
503d2be0 4640 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4641/* confdefs.h. */
4642_ACEOF
4643cat confdefs.h >>conftest.$ac_ext
4644cat >>conftest.$ac_ext <<_ACEOF
4645/* end confdefs.h. */
503d2be0
AS
4646#include <sys/types.h>
4647 /* Check that off_t can represent 2**63 - 1 correctly.
4648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4649 since some C++ compilers masquerading as C compilers
4650 incorrectly reject 9223372036854775807. */
4651#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4653 && LARGE_OFF_T % 2147483647 == 1)
4654 ? 1 : -1];
4655int
4656main ()
4657{
ba4481b5 4658
503d2be0
AS
4659 ;
4660 return 0;
4661}
4662_ACEOF
4663rm -f conftest.$ac_objext
c0d27fcc 4664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 4665 (eval $ac_compile) 2>conftest.er1
503d2be0 4666 ac_status=$?
35996d22
AS
4667 grep -v '^ *+' conftest.er1 >conftest.err
4668 rm -f conftest.er1
4669 cat conftest.err >&5
c0d27fcc 4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 4671 (exit $ac_status); } &&
35996d22
AS
4672 { ac_try='test -z "$ac_c_werror_flag"
4673 || test ! -s conftest.err'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; } &&
4679 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
c0d27fcc 4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
4684 (exit $ac_status); }; }; then
4685 break
ba4481b5 4686else
503d2be0 4687 echo "$as_me: failed program was:" >&5
19650fd6
AS
4688sed 's/^/| /' conftest.$ac_ext >&5
4689
503d2be0 4690fi
35996d22 4691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0 4692 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4693/* confdefs.h. */
4694_ACEOF
4695cat confdefs.h >>conftest.$ac_ext
4696cat >>conftest.$ac_ext <<_ACEOF
4697/* end confdefs.h. */
f4988be7 4698#define _LARGE_FILES 1
503d2be0
AS
4699#include <sys/types.h>
4700 /* Check that off_t can represent 2**63 - 1 correctly.
4701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4702 since some C++ compilers masquerading as C compilers
4703 incorrectly reject 9223372036854775807. */
4704#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4706 && LARGE_OFF_T % 2147483647 == 1)
4707 ? 1 : -1];
4708int
4709main ()
4710{
f4988be7 4711
503d2be0
AS
4712 ;
4713 return 0;
4714}
4715_ACEOF
4716rm -f conftest.$ac_objext
c0d27fcc 4717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 4718 (eval $ac_compile) 2>conftest.er1
503d2be0 4719 ac_status=$?
35996d22
AS
4720 grep -v '^ *+' conftest.er1 >conftest.err
4721 rm -f conftest.er1
4722 cat conftest.err >&5
c0d27fcc 4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 4724 (exit $ac_status); } &&
35996d22
AS
4725 { ac_try='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
c0d27fcc 4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
4737 (exit $ac_status); }; }; then
4738 ac_cv_sys_large_files=1; break
4739else
4740 echo "$as_me: failed program was:" >&5
19650fd6
AS
4741sed 's/^/| /' conftest.$ac_ext >&5
4742
503d2be0 4743fi
35996d22 4744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0
AS
4745 break
4746done
ba4481b5 4747fi
c0d27fcc 4748echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
503d2be0
AS
4749echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4750if test "$ac_cv_sys_large_files" != no; then
ba4481b5 4751
c0d27fcc 4752cat >>confdefs.h <<_ACEOF
f4988be7 4753#define _LARGE_FILES $ac_cv_sys_large_files
c0d27fcc 4754_ACEOF
ba4481b5 4755
503d2be0
AS
4756fi
4757rm -f conftest*
4758fi
ba4481b5 4759
c0d27fcc 4760
2c9dccc9
PJ
4761if test "${with_sound}" != "no"; then
4762 # Sound support for GNU/Linux and the free BSDs.
c0d27fcc
MR
4763 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4764echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4765if test "${ac_cv_header_stdc+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767else
4768 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4769/* confdefs.h. */
4770_ACEOF
4771cat confdefs.h >>conftest.$ac_ext
4772cat >>conftest.$ac_ext <<_ACEOF
4773/* end confdefs.h. */
c0d27fcc
MR
4774#include <stdlib.h>
4775#include <stdarg.h>
4776#include <string.h>
4777#include <float.h>
98418dba 4778
19650fd6
AS
4779int
4780main ()
4781{
4782
4783 ;
4784 return 0;
4785}
c0d27fcc 4786_ACEOF
19650fd6
AS
4787rm -f conftest.$ac_objext
4788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 4789 (eval $ac_compile) 2>conftest.er1
cd958eb3 4790 ac_status=$?
35996d22
AS
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
cd958eb3 4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650fd6 4795 (exit $ac_status); } &&
35996d22
AS
4796 { ac_try='test -z "$ac_c_werror_flag"
4797 || test ! -s conftest.err'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; } &&
4803 { ac_try='test -s conftest.$ac_objext'
19650fd6
AS
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 (eval $ac_try) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
c0d27fcc
MR
4809 ac_cv_header_stdc=yes
4810else
4811 echo "$as_me: failed program was:" >&5
19650fd6
AS
4812sed 's/^/| /' conftest.$ac_ext >&5
4813
4814ac_cv_header_stdc=no
c0d27fcc 4815fi
35996d22 4816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
4817
4818if test $ac_cv_header_stdc = yes; then
4819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4820 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4821/* confdefs.h. */
4822_ACEOF
4823cat confdefs.h >>conftest.$ac_ext
4824cat >>conftest.$ac_ext <<_ACEOF
4825/* end confdefs.h. */
c0d27fcc
MR
4826#include <string.h>
4827
4828_ACEOF
4829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 4830 $EGREP "memchr" >/dev/null 2>&1; then
c0d27fcc
MR
4831 :
4832else
4833 ac_cv_header_stdc=no
4834fi
4835rm -f conftest*
4836
4837fi
4838
4839if test $ac_cv_header_stdc = yes; then
4840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4841 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4842/* confdefs.h. */
4843_ACEOF
4844cat confdefs.h >>conftest.$ac_ext
4845cat >>conftest.$ac_ext <<_ACEOF
4846/* end confdefs.h. */
c0d27fcc
MR
4847#include <stdlib.h>
4848
4849_ACEOF
4850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 4851 $EGREP "free" >/dev/null 2>&1; then
c0d27fcc
MR
4852 :
4853else
4854 ac_cv_header_stdc=no
4855fi
4856rm -f conftest*
4857
4858fi
4859
4860if test $ac_cv_header_stdc = yes; then
4861 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4862 if test "$cross_compiling" = yes; then
4863 :
4864else
4865 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4866/* confdefs.h. */
4867_ACEOF
4868cat confdefs.h >>conftest.$ac_ext
4869cat >>conftest.$ac_ext <<_ACEOF
4870/* end confdefs.h. */
c0d27fcc
MR
4871#include <ctype.h>
4872#if ((' ' & 0x0FF) == 0x020)
4873# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4874# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4875#else
19650fd6 4876# define ISLOWER(c) \
35996d22
AS
4877 (('a' <= (c) && (c) <= 'i') \
4878 || ('j' <= (c) && (c) <= 'r') \
4879 || ('s' <= (c) && (c) <= 'z'))
c0d27fcc
MR
4880# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4881#endif
4882
4883#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4884int
4885main ()
4886{
4887 int i;
4888 for (i = 0; i < 256; i++)
4889 if (XOR (islower (i), ISLOWER (i))
35996d22 4890 || toupper (i) != TOUPPER (i))
c0d27fcc
MR
4891 exit(2);
4892 exit (0);
4893}
4894_ACEOF
4895rm -f conftest$ac_exeext
4896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4897 (eval $ac_link) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 (eval $ac_try) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 :
4907else
4908 echo "$as_me: program exited with status $ac_status" >&5
4909echo "$as_me: failed program was:" >&5
19650fd6
AS
4910sed 's/^/| /' conftest.$ac_ext >&5
4911
c0d27fcc
MR
4912( exit $ac_status )
4913ac_cv_header_stdc=no
4914fi
35996d22 4915rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
4916fi
4917fi
4918fi
4919echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4920echo "${ECHO_T}$ac_cv_header_stdc" >&6
4921if test $ac_cv_header_stdc = yes; then
4922
4923cat >>confdefs.h <<\_ACEOF
4924#define STDC_HEADERS 1
4925_ACEOF
4926
4927fi
4928
4929# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
35996d22 4940 inttypes.h stdint.h unistd.h
98418dba
CW
4941do
4942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc 4943echo "$as_me:$LINENO: checking for $ac_header" >&5
98418dba
CW
4944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4945if eval "test \"\${$as_ac_Header+set}\" = set"; then
503d2be0 4946 echo $ECHO_N "(cached) $ECHO_C" >&6
f4988be7 4947else
925c2f3f 4948 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
4949/* confdefs.h. */
4950_ACEOF
4951cat confdefs.h >>conftest.$ac_ext
4952cat >>conftest.$ac_ext <<_ACEOF
4953/* end confdefs.h. */
c0d27fcc
MR
4954$ac_includes_default
4955
4956#include <$ac_header>
4957_ACEOF
4958rm -f conftest.$ac_objext
4959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 4960 (eval $ac_compile) 2>conftest.er1
c0d27fcc 4961 ac_status=$?
35996d22
AS
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
c0d27fcc
MR
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
35996d22
AS
4967 { ac_try='test -z "$ac_c_werror_flag"
4968 || test ! -s conftest.err'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 (eval $ac_try) 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; } &&
4974 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4980 eval "$as_ac_Header=yes"
4981else
4982 echo "$as_me: failed program was:" >&5
19650fd6
AS
4983sed 's/^/| /' conftest.$ac_ext >&5
4984
c0d27fcc
MR
4985eval "$as_ac_Header=no"
4986fi
35996d22 4987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
4988fi
4989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4991if test `eval echo '${'$as_ac_Header'}'` = yes; then
4992 cat >>confdefs.h <<_ACEOF
4993#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4994_ACEOF
4995
4996fi
4997
4998done
4999
5000
5001
5002
5003
5004for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5005do
5006as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5007if eval "test \"\${$as_ac_Header+set}\" = set"; then
5008 echo "$as_me:$LINENO: checking for $ac_header" >&5
5009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5010if eval "test \"\${$as_ac_Header+set}\" = set"; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012fi
5013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5014echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5015else
5016 # Is the header compilable?
5017echo "$as_me:$LINENO: checking $ac_header usability" >&5
5018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5019cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5020/* confdefs.h. */
5021_ACEOF
5022cat confdefs.h >>conftest.$ac_ext
5023cat >>conftest.$ac_ext <<_ACEOF
5024/* end confdefs.h. */
c0d27fcc 5025$ac_includes_default
98418dba 5026#include <$ac_header>
503d2be0 5027_ACEOF
c0d27fcc
MR
5028rm -f conftest.$ac_objext
5029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 5030 (eval $ac_compile) 2>conftest.er1
c0d27fcc 5031 ac_status=$?
35996d22
AS
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
c0d27fcc
MR
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
35996d22
AS
5037 { ac_try='test -z "$ac_c_werror_flag"
5038 || test ! -s conftest.err'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; } &&
5044 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 (eval $ac_try) 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 ac_header_compiler=yes
5051else
5052 echo "$as_me: failed program was:" >&5
19650fd6
AS
5053sed 's/^/| /' conftest.$ac_ext >&5
5054
c0d27fcc
MR
5055ac_header_compiler=no
5056fi
35996d22 5057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
5058echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5059echo "${ECHO_T}$ac_header_compiler" >&6
5060
5061# Is the header present?
5062echo "$as_me:$LINENO: checking $ac_header presence" >&5
5063echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5064cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5065/* confdefs.h. */
5066_ACEOF
5067cat confdefs.h >>conftest.$ac_ext
5068cat >>conftest.$ac_ext <<_ACEOF
5069/* end confdefs.h. */
c0d27fcc
MR
5070#include <$ac_header>
5071_ACEOF
5072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba 5073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
503d2be0 5074 ac_status=$?
6bae0ccf 5075 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
5076 rm -f conftest.er1
5077 cat conftest.err >&5
c0d27fcc 5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
5079 (exit $ac_status); } >/dev/null; then
5080 if test -s conftest.err; then
5081 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 5082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
5083 else
5084 ac_cpp_err=
5085 fi
5086else
5087 ac_cpp_err=yes
5088fi
5089if test -z "$ac_cpp_err"; then
c0d27fcc 5090 ac_header_preproc=yes
f4988be7 5091else
503d2be0 5092 echo "$as_me: failed program was:" >&5
19650fd6
AS
5093sed 's/^/| /' conftest.$ac_ext >&5
5094
c0d27fcc 5095 ac_header_preproc=no
f4988be7 5096fi
98418dba 5097rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
5098echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5099echo "${ECHO_T}$ac_header_preproc" >&6
5100
5101# So? What about this header?
35996d22
AS
5102case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5103 yes:no: )
c0d27fcc
MR
5104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5105echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
5106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5107echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5108 ac_header_preproc=yes
19650fd6 5109 ;;
35996d22 5110 no:yes:* )
c0d27fcc
MR
5111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5112echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
5113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5114echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5116echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5118echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 5119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 5120echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5122echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
5123 (
5124 cat <<\_ASBOX
35996d22
AS
5125## ------------------------------------------ ##
5126## Report this to the AC_PACKAGE_NAME lists. ##
5127## ------------------------------------------ ##
19650fd6
AS
5128_ASBOX
5129 ) |
5130 sed "s/^/$as_me: WARNING: /" >&2
5131 ;;
c0d27fcc
MR
5132esac
5133echo "$as_me:$LINENO: checking for $ac_header" >&5
5134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5135if eval "test \"\${$as_ac_Header+set}\" = set"; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
35996d22 5138 eval "$as_ac_Header=\$ac_header_preproc"
f4988be7 5139fi
c0d27fcc 5140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
98418dba 5141echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
5142
5143fi
98418dba 5144if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 5145 cat >>confdefs.h <<_ACEOF
98418dba 5146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 5147_ACEOF
f4988be7
GM
5148
5149fi
c0d27fcc 5150
98418dba
CW
5151done
5152
5153 # Emulation library used on NetBSD.
c0d27fcc 5154 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
98418dba
CW
5155echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5156if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
503d2be0 5157 echo $ECHO_N "(cached) $ECHO_C" >&6
f4988be7 5158else
98418dba
CW
5159 ac_check_lib_save_LIBS=$LIBS
5160LIBS="-lossaudio $LIBS"
5161cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5162/* confdefs.h. */
5163_ACEOF
5164cat confdefs.h >>conftest.$ac_ext
5165cat >>conftest.$ac_ext <<_ACEOF
5166/* end confdefs.h. */
98418dba
CW
5167
5168/* Override any gcc2 internal prototype to avoid an error. */
5169#ifdef __cplusplus
5170extern "C"
f4988be7 5171#endif
98418dba
CW
5172/* We use char because int might match the return type of a gcc2
5173 builtin and then its argument prototype would still apply. */
5174char _oss_ioctl ();
503d2be0
AS
5175int
5176main ()
5177{
98418dba 5178_oss_ioctl ();
503d2be0
AS
5179 ;
5180 return 0;
5181}
5182_ACEOF
98418dba 5183rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 5184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 5185 (eval $ac_link) 2>conftest.er1
503d2be0 5186 ac_status=$?
35996d22
AS
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
c0d27fcc 5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5191 (exit $ac_status); } &&
35996d22
AS
5192 { ac_try='test -z "$ac_c_werror_flag"
5193 || test ! -s conftest.err'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
5201 (eval $ac_try) 2>&5
5202 ac_status=$?
c0d27fcc 5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5204 (exit $ac_status); }; }; then
98418dba 5205 ac_cv_lib_ossaudio__oss_ioctl=yes
f4988be7 5206else
503d2be0 5207 echo "$as_me: failed program was:" >&5
19650fd6
AS
5208sed 's/^/| /' conftest.$ac_ext >&5
5209
98418dba 5210ac_cv_lib_ossaudio__oss_ioctl=no
f4988be7 5211fi
35996d22
AS
5212rm -f conftest.err conftest.$ac_objext \
5213 conftest$ac_exeext conftest.$ac_ext
98418dba 5214LIBS=$ac_check_lib_save_LIBS
f4988be7 5215fi
c0d27fcc 5216echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
98418dba
CW
5217echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5218if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5219 LIBSOUND=-lossaudio
5220else
5221 LIBSOUND=
5222fi
5223
c0d27fcc 5224
f4988be7 5225fi
c0d27fcc
MR
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
22044edf
DL
5244
5245
973a76b1 5246
cffcede7 5247
c0d27fcc 5248
f4988be7 5249
98418dba
CW
5250for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5251 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
25ca0bca 5252 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
cffcede7 5253 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
98418dba
CW
5254do
5255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
5256if eval "test \"\${$as_ac_Header+set}\" = set"; then
5257 echo "$as_me:$LINENO: checking for $ac_header" >&5
98418dba
CW
5258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5259if eval "test \"\${$as_ac_Header+set}\" = set"; then
503d2be0 5260 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
5261fi
5262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5263echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f4988be7 5264else
c0d27fcc
MR
5265 # Is the header compilable?
5266echo "$as_me:$LINENO: checking $ac_header usability" >&5
5267echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5268cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5269/* confdefs.h. */
5270_ACEOF
5271cat confdefs.h >>conftest.$ac_ext
5272cat >>conftest.$ac_ext <<_ACEOF
5273/* end confdefs.h. */
c0d27fcc
MR
5274$ac_includes_default
5275#include <$ac_header>
5276_ACEOF
5277rm -f conftest.$ac_objext
5278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 5279 (eval $ac_compile) 2>conftest.er1
c0d27fcc 5280 ac_status=$?
35996d22
AS
5281 grep -v '^ *+' conftest.er1 >conftest.err
5282 rm -f conftest.er1
5283 cat conftest.err >&5
c0d27fcc
MR
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } &&
35996d22
AS
5286 { ac_try='test -z "$ac_c_werror_flag"
5287 || test ! -s conftest.err'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 (eval $ac_try) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; } &&
5293 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 (eval $ac_try) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; }; then
5299 ac_header_compiler=yes
5300else
5301 echo "$as_me: failed program was:" >&5
19650fd6
AS
5302sed 's/^/| /' conftest.$ac_ext >&5
5303
c0d27fcc
MR
5304ac_header_compiler=no
5305fi
35996d22 5306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
5307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5308echo "${ECHO_T}$ac_header_compiler" >&6
5309
5310# Is the header present?
5311echo "$as_me:$LINENO: checking $ac_header presence" >&5
5312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5313cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5314/* confdefs.h. */
5315_ACEOF
5316cat confdefs.h >>conftest.$ac_ext
5317cat >>conftest.$ac_ext <<_ACEOF
5318/* end confdefs.h. */
98418dba 5319#include <$ac_header>
503d2be0 5320_ACEOF
c0d27fcc 5321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba 5322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
503d2be0 5323 ac_status=$?
6bae0ccf 5324 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
5325 rm -f conftest.er1
5326 cat conftest.err >&5
c0d27fcc 5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
5328 (exit $ac_status); } >/dev/null; then
5329 if test -s conftest.err; then
5330 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 5331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
5332 else
5333 ac_cpp_err=
5334 fi
5335else
5336 ac_cpp_err=yes
5337fi
5338if test -z "$ac_cpp_err"; then
c0d27fcc 5339 ac_header_preproc=yes
34ec9ebe 5340else
503d2be0 5341 echo "$as_me: failed program was:" >&5
19650fd6
AS
5342sed 's/^/| /' conftest.$ac_ext >&5
5343
c0d27fcc 5344 ac_header_preproc=no
34ec9ebe 5345fi
98418dba 5346rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
5347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5348echo "${ECHO_T}$ac_header_preproc" >&6
5349
5350# So? What about this header?
35996d22
AS
5351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5352 yes:no: )
c0d27fcc
MR
5353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
5355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5357 ac_header_preproc=yes
19650fd6 5358 ;;
35996d22 5359 no:yes:* )
c0d27fcc
MR
5360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
5362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 5368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 5369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
5370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
5372 (
5373 cat <<\_ASBOX
35996d22
AS
5374## ------------------------------------------ ##
5375## Report this to the AC_PACKAGE_NAME lists. ##
5376## ------------------------------------------ ##
19650fd6
AS
5377_ASBOX
5378 ) |
5379 sed "s/^/$as_me: WARNING: /" >&2
5380 ;;
c0d27fcc
MR
5381esac
5382echo "$as_me:$LINENO: checking for $ac_header" >&5
5383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5384if eval "test \"\${$as_ac_Header+set}\" = set"; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
35996d22 5387 eval "$as_ac_Header=\$ac_header_preproc"
34ec9ebe 5388fi
c0d27fcc 5389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
98418dba 5390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
5391
5392fi
98418dba 5393if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 5394 cat >>confdefs.h <<_ACEOF
98418dba 5395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 5396_ACEOF
34ec9ebe 5397
98418dba 5398fi
c0d27fcc 5399
98418dba
CW
5400done
5401
22044edf
DL
5402
5403for ac_header in term.h
5404do
5405as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5406echo "$as_me:$LINENO: checking for $ac_header" >&5
5407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5408if eval "test \"\${$as_ac_Header+set}\" = set"; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410else
5411 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5412/* confdefs.h. */
5413_ACEOF
5414cat confdefs.h >>conftest.$ac_ext
5415cat >>conftest.$ac_ext <<_ACEOF
5416/* end confdefs.h. */
22044edf
DL
5417#include <$ac_header>
5418_ACEOF
5419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } >/dev/null; then
5427 if test -s conftest.err; then
5428 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 5429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22044edf
DL
5430 else
5431 ac_cpp_err=
5432 fi
5433else
5434 ac_cpp_err=yes
5435fi
5436if test -z "$ac_cpp_err"; then
5437 eval "$as_ac_Header=yes"
5438else
5439 echo "$as_me: failed program was:" >&5
19650fd6
AS
5440sed 's/^/| /' conftest.$ac_ext >&5
5441
22044edf
DL
5442 eval "$as_ac_Header=no"
5443fi
5444rm -f conftest.err conftest.$ac_ext
5445fi
5446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5448if test `eval echo '${'$as_ac_Header'}'` = yes; then
5449 cat >>confdefs.h <<_ACEOF
5450#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5451_ACEOF
5452
5453fi
5454
5455done
5456
c0d27fcc 5457echo "$as_me:$LINENO: checking for ANSI C header files" >&5
98418dba
CW
5458echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5459if test "${ac_cv_header_stdc+set}" = set; then
503d2be0 5460 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 5461else
503d2be0 5462 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5463/* confdefs.h. */
5464_ACEOF
5465cat confdefs.h >>conftest.$ac_ext
5466cat >>conftest.$ac_ext <<_ACEOF
5467/* end confdefs.h. */
98418dba
CW
5468#include <stdlib.h>
5469#include <stdarg.h>
5470#include <string.h>
5471#include <float.h>
5472
19650fd6
AS
5473int
5474main ()
5475{
5476
5477 ;
5478 return 0;
5479}
98418dba 5480_ACEOF
19650fd6
AS
5481rm -f conftest.$ac_objext
5482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 5483 (eval $ac_compile) 2>conftest.er1
cd958eb3 5484 ac_status=$?
35996d22
AS
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
cd958eb3 5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650fd6 5489 (exit $ac_status); } &&
35996d22
AS
5490 { ac_try='test -z "$ac_c_werror_flag"
5491 || test ! -s conftest.err'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 (eval $ac_try) 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; } &&
5497 { ac_try='test -s conftest.$ac_objext'
19650fd6
AS
5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 (eval $ac_try) 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
98418dba 5503 ac_cv_header_stdc=yes
ba4481b5 5504else
503d2be0 5505 echo "$as_me: failed program was:" >&5
19650fd6
AS
5506sed 's/^/| /' conftest.$ac_ext >&5
5507
5508ac_cv_header_stdc=no
ba4481b5 5509fi
35996d22 5510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
98418dba
CW
5511
5512if test $ac_cv_header_stdc = yes; then
5513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5514 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5515/* confdefs.h. */
5516_ACEOF
5517cat confdefs.h >>conftest.$ac_ext
5518cat >>conftest.$ac_ext <<_ACEOF
5519/* end confdefs.h. */
98418dba
CW
5520#include <string.h>
5521
5522_ACEOF
5523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 5524 $EGREP "memchr" >/dev/null 2>&1; then
98418dba
CW
5525 :
5526else
5527 ac_cv_header_stdc=no
ba4481b5 5528fi
98418dba 5529rm -f conftest*
ba4481b5
DL
5530
5531fi
5532
98418dba
CW
5533if test $ac_cv_header_stdc = yes; then
5534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5535 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5536/* confdefs.h. */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h. */
98418dba
CW
5541#include <stdlib.h>
5542
5543_ACEOF
5544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 5545 $EGREP "free" >/dev/null 2>&1; then
98418dba
CW
5546 :
5547else
5548 ac_cv_header_stdc=no
5549fi
5550rm -f conftest*
5551
5552fi
5553
5554if test $ac_cv_header_stdc = yes; then
5555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5556 if test "$cross_compiling" = yes; then
5557 :
d42122a3 5558else
503d2be0 5559 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5560/* confdefs.h. */
5561_ACEOF
5562cat confdefs.h >>conftest.$ac_ext
5563cat >>conftest.$ac_ext <<_ACEOF
5564/* end confdefs.h. */
98418dba
CW
5565#include <ctype.h>
5566#if ((' ' & 0x0FF) == 0x020)
5567# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5568# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5569#else
19650fd6 5570# define ISLOWER(c) \
35996d22
AS
5571 (('a' <= (c) && (c) <= 'i') \
5572 || ('j' <= (c) && (c) <= 'r') \
5573 || ('s' <= (c) && (c) <= 'z'))
98418dba
CW
5574# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5575#endif
5576
5577#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
503d2be0
AS
5578int
5579main ()
5580{
98418dba
CW
5581 int i;
5582 for (i = 0; i < 256; i++)
5583 if (XOR (islower (i), ISLOWER (i))
35996d22 5584 || toupper (i) != TOUPPER (i))
98418dba
CW
5585 exit(2);
5586 exit (0);
503d2be0
AS
5587}
5588_ACEOF
98418dba 5589rm -f conftest$ac_exeext
c0d27fcc 5590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
98418dba 5591 (eval $ac_link) 2>&5
503d2be0 5592 ac_status=$?
c0d27fcc 5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 5594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c0d27fcc 5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
5596 (eval $ac_try) 2>&5
5597 ac_status=$?
c0d27fcc 5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5599 (exit $ac_status); }; }; then
98418dba 5600 :
d42122a3 5601else
98418dba
CW
5602 echo "$as_me: program exited with status $ac_status" >&5
5603echo "$as_me: failed program was:" >&5
19650fd6
AS
5604sed 's/^/| /' conftest.$ac_ext >&5
5605
c0d27fcc 5606( exit $ac_status )
98418dba 5607ac_cv_header_stdc=no
d42122a3 5608fi
35996d22 5609rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d42122a3 5610fi
98418dba
CW
5611fi
5612fi
c0d27fcc 5613echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
98418dba
CW
5614echo "${ECHO_T}$ac_cv_header_stdc" >&6
5615if test $ac_cv_header_stdc = yes; then
5616
c0d27fcc 5617cat >>confdefs.h <<\_ACEOF
98418dba 5618#define STDC_HEADERS 1
c0d27fcc 5619_ACEOF
d42122a3
DL
5620
5621fi
5622
c0d27fcc 5623echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
98418dba
CW
5624echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5625if test "${ac_cv_header_time+set}" = set; then
503d2be0 5626 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 5627else
503d2be0 5628 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5629/* confdefs.h. */
5630_ACEOF
5631cat confdefs.h >>conftest.$ac_ext
5632cat >>conftest.$ac_ext <<_ACEOF
5633/* end confdefs.h. */
ba4481b5 5634#include <sys/types.h>
98418dba 5635#include <sys/time.h>
ba4481b5 5636#include <time.h>
503d2be0
AS
5637
5638int
5639main ()
5640{
98418dba
CW
5641if ((struct tm *) 0)
5642return 0;
503d2be0
AS
5643 ;
5644 return 0;
5645}
5646_ACEOF
5647rm -f conftest.$ac_objext
c0d27fcc 5648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 5649 (eval $ac_compile) 2>conftest.er1
503d2be0 5650 ac_status=$?
35996d22
AS
5651 grep -v '^ *+' conftest.er1 >conftest.err
5652 rm -f conftest.er1
5653 cat conftest.err >&5
c0d27fcc 5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5655 (exit $ac_status); } &&
35996d22
AS
5656 { ac_try='test -z "$ac_c_werror_flag"
5657 || test ! -s conftest.err'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 (eval $ac_try) 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; } &&
5663 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
5665 (eval $ac_try) 2>&5
5666 ac_status=$?
c0d27fcc 5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5668 (exit $ac_status); }; }; then
98418dba 5669 ac_cv_header_time=yes
ba4481b5 5670else
503d2be0 5671 echo "$as_me: failed program was:" >&5
19650fd6
AS
5672sed 's/^/| /' conftest.$ac_ext >&5
5673
98418dba 5674ac_cv_header_time=no
ba4481b5 5675fi
35996d22 5676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba4481b5 5677fi
c0d27fcc 5678echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
98418dba
CW
5679echo "${ECHO_T}$ac_cv_header_time" >&6
5680if test $ac_cv_header_time = yes; then
503d2be0 5681
c0d27fcc 5682cat >>confdefs.h <<\_ACEOF
98418dba 5683#define TIME_WITH_SYS_TIME 1
c0d27fcc 5684_ACEOF
ba4481b5
DL
5685
5686fi
5687
cd958eb3
MB
5688echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5689echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5690if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
503d2be0 5691 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 5692else
503d2be0 5693 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5694/* confdefs.h. */
5695_ACEOF
5696cat confdefs.h >>conftest.$ac_ext
5697cat >>conftest.$ac_ext <<_ACEOF
5698/* end confdefs.h. */
cd958eb3
MB
5699$ac_includes_default
5700int
5701main ()
5702{
5703#ifndef sys_siglist
5704 char *p = (char *) sys_siglist;
98418dba 5705#endif
503d2be0 5706
cd958eb3
MB
5707 ;
5708 return 0;
5709}
5710_ACEOF
5711rm -f conftest.$ac_objext
5712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 5713 (eval $ac_compile) 2>conftest.er1
cd958eb3 5714 ac_status=$?
35996d22
AS
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
cd958eb3
MB
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
35996d22
AS
5720 { ac_try='test -z "$ac_c_werror_flag"
5721 || test ! -s conftest.err'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 (eval $ac_try) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; } &&
5727 { ac_try='test -s conftest.$ac_objext'
cd958eb3
MB
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_cv_have_decl_sys_siglist=yes
5734else
5735 echo "$as_me: failed program was:" >&5
19650fd6
AS
5736sed 's/^/| /' conftest.$ac_ext >&5
5737
cd958eb3
MB
5738ac_cv_have_decl_sys_siglist=no
5739fi
35996d22 5740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cd958eb3
MB
5741fi
5742echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5743echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5744if test $ac_cv_have_decl_sys_siglist = yes; then
5745
5746cat >>confdefs.h <<_ACEOF
5747#define HAVE_DECL_SYS_SIGLIST 1
5748_ACEOF
5749
5750
5751else
5752 cat >>confdefs.h <<_ACEOF
5753#define HAVE_DECL_SYS_SIGLIST 0
5754_ACEOF
5755
5756
5757fi
5758
5759
5760if test $ac_cv_have_decl_sys_siglist != yes; then
5761 # For Tru64, at least:
5762 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5763echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5764if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766else
5767 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5768/* confdefs.h. */
5769_ACEOF
5770cat confdefs.h >>conftest.$ac_ext
5771cat >>conftest.$ac_ext <<_ACEOF
5772/* end confdefs.h. */
cd958eb3 5773$ac_includes_default
503d2be0
AS
5774int
5775main ()
5776{
cd958eb3
MB
5777#ifndef __sys_siglist
5778 char *p = (char *) __sys_siglist;
5779#endif
5780
503d2be0
AS
5781 ;
5782 return 0;
5783}
5784_ACEOF
5785rm -f conftest.$ac_objext
c0d27fcc 5786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 5787 (eval $ac_compile) 2>conftest.er1
503d2be0 5788 ac_status=$?
35996d22
AS
5789 grep -v '^ *+' conftest.er1 >conftest.err
5790 rm -f conftest.er1
5791 cat conftest.err >&5
c0d27fcc 5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5793 (exit $ac_status); } &&
35996d22
AS
5794 { ac_try='test -z "$ac_c_werror_flag"
5795 || test ! -s conftest.err'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 (eval $ac_try) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; } &&
5801 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
5803 (eval $ac_try) 2>&5
5804 ac_status=$?
c0d27fcc 5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5806 (exit $ac_status); }; }; then
cd958eb3 5807 ac_cv_have_decl___sys_siglist=yes
ba4481b5 5808else
503d2be0 5809 echo "$as_me: failed program was:" >&5
19650fd6
AS
5810sed 's/^/| /' conftest.$ac_ext >&5
5811
cd958eb3 5812ac_cv_have_decl___sys_siglist=no
ba4481b5 5813fi
35996d22 5814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
503d2be0 5815fi
cd958eb3
MB
5816echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5817echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5818if test $ac_cv_have_decl___sys_siglist = yes; then
503d2be0 5819
cd958eb3
MB
5820cat >>confdefs.h <<_ACEOF
5821#define HAVE_DECL___SYS_SIGLIST 1
5822_ACEOF
5823
5824
5825else
5826 cat >>confdefs.h <<_ACEOF
5827#define HAVE_DECL___SYS_SIGLIST 0
c0d27fcc 5828_ACEOF
503d2be0 5829
cd958eb3 5830
ba4481b5
DL
5831fi
5832
cd958eb3
MB
5833
5834 if test $ac_cv_have_decl___sys_siglist = yes; then
5835
5836cat >>confdefs.h <<\_ACEOF
5837#define sys_siglist __sys_siglist
5838_ACEOF
5839
5840 fi
5841fi
c0d27fcc 5842echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
98418dba
CW
5843echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5844if test "${ac_cv_header_sys_wait_h+set}" = set; then
503d2be0 5845 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 5846else
503d2be0 5847 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5848/* confdefs.h. */
5849_ACEOF
5850cat confdefs.h >>conftest.$ac_ext
5851cat >>conftest.$ac_ext <<_ACEOF
5852/* end confdefs.h. */
98418dba
CW
5853#include <sys/types.h>
5854#include <sys/wait.h>
5855#ifndef WEXITSTATUS
5856# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5857#endif
5858#ifndef WIFEXITED
5859# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
ba4481b5 5860#endif
503d2be0
AS
5861
5862int
5863main ()
5864{
98418dba
CW
5865 int s;
5866 wait (&s);
5867 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
503d2be0
AS
5868 ;
5869 return 0;
5870}
5871_ACEOF
98418dba 5872rm -f conftest.$ac_objext
c0d27fcc 5873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 5874 (eval $ac_compile) 2>conftest.er1
503d2be0 5875 ac_status=$?
35996d22
AS
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
c0d27fcc 5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5880 (exit $ac_status); } &&
35996d22
AS
5881 { ac_try='test -z "$ac_c_werror_flag"
5882 || test ! -s conftest.err'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
5890 (eval $ac_try) 2>&5
5891 ac_status=$?
c0d27fcc 5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5893 (exit $ac_status); }; }; then
98418dba 5894 ac_cv_header_sys_wait_h=yes
ba4481b5 5895else
503d2be0 5896 echo "$as_me: failed program was:" >&5
19650fd6
AS
5897sed 's/^/| /' conftest.$ac_ext >&5
5898
98418dba 5899ac_cv_header_sys_wait_h=no
ba4481b5 5900fi
35996d22 5901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba4481b5 5902fi
c0d27fcc 5903echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
98418dba
CW
5904echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5905if test $ac_cv_header_sys_wait_h = yes; then
503d2be0 5906
c0d27fcc 5907cat >>confdefs.h <<\_ACEOF
98418dba 5908#define HAVE_SYS_WAIT_H 1
c0d27fcc 5909_ACEOF
ba4481b5 5910
ba4481b5
DL
5911fi
5912
c0d27fcc
MR
5913
5914echo "$as_me:$LINENO: checking for struct utimbuf" >&5
98418dba
CW
5915echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5916if test "${emacs_cv_struct_utimbuf+set}" = set; then
503d2be0 5917 echo $ECHO_N "(cached) $ECHO_C" >&6
1113b624 5918else
503d2be0 5919 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5920/* confdefs.h. */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h. */
98418dba
CW
5925#ifdef TIME_WITH_SYS_TIME
5926#include <sys/time.h>
5927#include <time.h>
5928#else
5929#ifdef HAVE_SYS_TIME_H
5930#include <sys/time.h>
5931#else
1113b624 5932#include <time.h>
98418dba
CW
5933#endif
5934#endif
5935#ifdef HAVE_UTIME_H
5936#include <utime.h>
5937#endif
503d2be0
AS
5938int
5939main ()
5940{
98418dba 5941static struct utimbuf x; x.actime = x.modtime;
503d2be0
AS
5942 ;
5943 return 0;
5944}
5945_ACEOF
98418dba 5946rm -f conftest.$ac_objext
c0d27fcc 5947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 5948 (eval $ac_compile) 2>conftest.er1
503d2be0 5949 ac_status=$?
35996d22
AS
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
c0d27fcc 5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5954 (exit $ac_status); } &&
35996d22
AS
5955 { ac_try='test -z "$ac_c_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
5964 (eval $ac_try) 2>&5
5965 ac_status=$?
c0d27fcc 5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 5967 (exit $ac_status); }; }; then
98418dba 5968 emacs_cv_struct_utimbuf=yes
1113b624 5969else
503d2be0 5970 echo "$as_me: failed program was:" >&5
19650fd6
AS
5971sed 's/^/| /' conftest.$ac_ext >&5
5972
98418dba 5973emacs_cv_struct_utimbuf=no
1113b624 5974fi
35996d22 5975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1113b624 5976fi
c0d27fcc 5977echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
98418dba
CW
5978echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5979if test $emacs_cv_struct_utimbuf = yes; then
b936fae4 5980
c0d27fcc 5981cat >>confdefs.h <<\_ACEOF
98418dba 5982#define HAVE_STRUCT_UTIMBUF 1
c0d27fcc 5983_ACEOF
1113b624
PE
5984
5985fi
ba4481b5 5986
c0d27fcc 5987echo "$as_me:$LINENO: checking return type of signal handlers" >&5
98418dba
CW
5988echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5989if test "${ac_cv_type_signal+set}" = set; then
503d2be0 5990 echo $ECHO_N "(cached) $ECHO_C" >&6
7397acc4 5991else
98418dba 5992 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
5993/* confdefs.h. */
5994_ACEOF
5995cat confdefs.h >>conftest.$ac_ext
5996cat >>conftest.$ac_ext <<_ACEOF
5997/* end confdefs.h. */
7397acc4 5998#include <sys/types.h>
98418dba
CW
5999#include <signal.h>
6000#ifdef signal
6001# undef signal
6002#endif
6003#ifdef __cplusplus
6004extern "C" void (*signal (int, void (*)(int)))(int);
6005#else
6006void (*signal ()) ();
6007#endif
6008
503d2be0
AS
6009int
6010main ()
6011{
98418dba 6012int i;
503d2be0
AS
6013 ;
6014 return 0;
6015}
6016_ACEOF
98418dba 6017rm -f conftest.$ac_objext
c0d27fcc 6018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6019 (eval $ac_compile) 2>conftest.er1
503d2be0 6020 ac_status=$?
35996d22
AS
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
c0d27fcc 6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 6025 (exit $ac_status); } &&
35996d22
AS
6026 { ac_try='test -z "$ac_c_werror_flag"
6027 || test ! -s conftest.err'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
6035 (eval $ac_try) 2>&5
6036 ac_status=$?
c0d27fcc 6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 6038 (exit $ac_status); }; }; then
98418dba 6039 ac_cv_type_signal=void
503d2be0
AS
6040else
6041 echo "$as_me: failed program was:" >&5
19650fd6
AS
6042sed 's/^/| /' conftest.$ac_ext >&5
6043
98418dba 6044ac_cv_type_signal=int
503d2be0 6045fi
35996d22 6046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7397acc4 6047fi
c0d27fcc 6048echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
98418dba 6049echo "${ECHO_T}$ac_cv_type_signal" >&6
7397acc4 6050
c0d27fcc 6051cat >>confdefs.h <<_ACEOF
98418dba 6052#define RETSIGTYPE $ac_cv_type_signal
c0d27fcc
MR
6053_ACEOF
6054
503d2be0 6055
c0d27fcc
MR
6056
6057echo "$as_me:$LINENO: checking for speed_t" >&5
98418dba
CW
6058echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6059if test "${emacs_cv_speed_t+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
7397acc4 6061else
98418dba 6062 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6063/* confdefs.h. */
6064_ACEOF
6065cat confdefs.h >>conftest.$ac_ext
6066cat >>conftest.$ac_ext <<_ACEOF
6067/* end confdefs.h. */
98418dba 6068#include <termios.h>
98418dba
CW
6069int
6070main ()
6071{
6072speed_t x = 1;
6073 ;
6074 return 0;
6075}
6076_ACEOF
6077rm -f conftest.$ac_objext
c0d27fcc 6078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6079 (eval $ac_compile) 2>conftest.er1
98418dba 6080 ac_status=$?
35996d22
AS
6081 grep -v '^ *+' conftest.er1 >conftest.err
6082 rm -f conftest.er1
6083 cat conftest.err >&5
c0d27fcc 6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 6085 (exit $ac_status); } &&
35996d22
AS
6086 { ac_try='test -z "$ac_c_werror_flag"
6087 || test ! -s conftest.err'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 (eval $ac_try) 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; } &&
6093 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
6095 (eval $ac_try) 2>&5
6096 ac_status=$?
c0d27fcc 6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
6098 (exit $ac_status); }; }; then
6099 emacs_cv_speed_t=yes
6100else
6101 echo "$as_me: failed program was:" >&5
19650fd6
AS
6102sed 's/^/| /' conftest.$ac_ext >&5
6103
98418dba
CW
6104emacs_cv_speed_t=no
6105fi
35996d22 6106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
98418dba 6107fi
c0d27fcc 6108echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
98418dba
CW
6109echo "${ECHO_T}$emacs_cv_speed_t" >&6
6110if test $emacs_cv_speed_t = yes; then
b936fae4 6111
c0d27fcc 6112cat >>confdefs.h <<\_ACEOF
98418dba 6113#define HAVE_SPEED_T 1
c0d27fcc 6114_ACEOF
98418dba 6115
7397acc4
DL
6116fi
6117
c0d27fcc 6118echo "$as_me:$LINENO: checking for struct timeval" >&5
98418dba
CW
6119echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6120if test "${emacs_cv_struct_timeval+set}" = set; then
503d2be0 6121 echo $ECHO_N "(cached) $ECHO_C" >&6
7397acc4 6122else
503d2be0 6123 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6124/* confdefs.h. */
6125_ACEOF
6126cat confdefs.h >>conftest.$ac_ext
6127cat >>conftest.$ac_ext <<_ACEOF
6128/* end confdefs.h. */
98418dba
CW
6129#ifdef TIME_WITH_SYS_TIME
6130#include <sys/time.h>
6131#include <time.h>
6132#else
6133#ifdef HAVE_SYS_TIME_H
6134#include <sys/time.h>
6135#else
6136#include <time.h>
6137#endif
6138#endif
503d2be0
AS
6139int
6140main ()
6141{
98418dba 6142static struct timeval x; x.tv_sec = x.tv_usec;
503d2be0
AS
6143 ;
6144 return 0;
6145}
6146_ACEOF
6147rm -f conftest.$ac_objext
c0d27fcc 6148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6149 (eval $ac_compile) 2>conftest.er1
503d2be0 6150 ac_status=$?
35996d22
AS
6151 grep -v '^ *+' conftest.er1 >conftest.err
6152 rm -f conftest.er1
6153 cat conftest.err >&5
c0d27fcc 6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 6155 (exit $ac_status); } &&
35996d22
AS
6156 { ac_try='test -z "$ac_c_werror_flag"
6157 || test ! -s conftest.err'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 (eval $ac_try) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; } &&
6163 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
6165 (eval $ac_try) 2>&5
6166 ac_status=$?
c0d27fcc 6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 6168 (exit $ac_status); }; }; then
98418dba 6169 emacs_cv_struct_timeval=yes
7397acc4 6170else
503d2be0 6171 echo "$as_me: failed program was:" >&5
19650fd6
AS
6172sed 's/^/| /' conftest.$ac_ext >&5
6173
98418dba 6174emacs_cv_struct_timeval=no
7397acc4 6175fi
35996d22 6176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7397acc4 6177fi
c0d27fcc 6178echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
98418dba
CW
6179echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6180HAVE_TIMEVAL=$emacs_cv_struct_timeval
6181if test $emacs_cv_struct_timeval = yes; then
b936fae4 6182
c0d27fcc 6183cat >>confdefs.h <<\_ACEOF
98418dba 6184#define HAVE_TIMEVAL 1
c0d27fcc 6185_ACEOF
7397acc4
DL
6186
6187fi
6188
c0d27fcc 6189echo "$as_me:$LINENO: checking for struct exception" >&5
98418dba
CW
6190echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6191if test "${emacs_cv_struct_exception+set}" = set; then
503d2be0 6192 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 6193else
503d2be0 6194 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6195/* confdefs.h. */
6196_ACEOF
6197cat confdefs.h >>conftest.$ac_ext
6198cat >>conftest.$ac_ext <<_ACEOF
6199/* end confdefs.h. */
98418dba 6200#include <math.h>
503d2be0
AS
6201int
6202main ()
6203{
98418dba 6204static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
503d2be0
AS
6205 ;
6206 return 0;
ba4481b5 6207}
503d2be0
AS
6208_ACEOF
6209rm -f conftest.$ac_objext
c0d27fcc 6210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6211 (eval $ac_compile) 2>conftest.er1
503d2be0 6212 ac_status=$?
35996d22
AS
6213 grep -v '^ *+' conftest.er1 >conftest.err
6214 rm -f conftest.er1
6215 cat conftest.err >&5
c0d27fcc 6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 6217 (exit $ac_status); } &&
35996d22
AS
6218 { ac_try='test -z "$ac_c_werror_flag"
6219 || test ! -s conftest.err'
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); }; } &&
6225 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
6227 (eval $ac_try) 2>&5
6228 ac_status=$?
c0d27fcc 6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 6230 (exit $ac_status); }; }; then
98418dba 6231 emacs_cv_struct_exception=yes
ba4481b5 6232else
503d2be0 6233 echo "$as_me: failed program was:" >&5
19650fd6
AS
6234sed 's/^/| /' conftest.$ac_ext >&5
6235
98418dba 6236emacs_cv_struct_exception=no
ba4481b5 6237fi
35996d22 6238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba4481b5 6239fi
c0d27fcc 6240echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
98418dba
CW
6241echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6242HAVE_EXCEPTION=$emacs_cv_struct_exception
6243if test $emacs_cv_struct_exception != yes; then
b936fae4 6244
c0d27fcc 6245cat >>confdefs.h <<\_ACEOF
98418dba 6246#define NO_MATHERR 1
c0d27fcc 6247_ACEOF
ba4481b5
DL
6248
6249fi
6250
7862d3a8
AS
6251
6252for ac_header in sys/socket.h
6253do
6254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6255if eval "test \"\${$as_ac_Header+set}\" = set"; then
6256 echo "$as_me:$LINENO: checking for $ac_header" >&5
6257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6258if eval "test \"\${$as_ac_Header+set}\" = set"; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6260fi
6261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6263else
6264 # Is the header compilable?
6265echo "$as_me:$LINENO: checking $ac_header usability" >&5
6266echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6267cat >conftest.$ac_ext <<_ACEOF
6268/* confdefs.h. */
6269_ACEOF
6270cat confdefs.h >>conftest.$ac_ext
6271cat >>conftest.$ac_ext <<_ACEOF
6272/* end confdefs.h. */
6273$ac_includes_default
6274#include <$ac_header>
6275_ACEOF
6276rm -f conftest.$ac_objext
6277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6278 (eval $ac_compile) 2>conftest.er1
6279 ac_status=$?
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try='test -z "$ac_c_werror_flag"
6286 || test ! -s conftest.err'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest.$ac_objext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 ac_header_compiler=yes
6299else
6300 echo "$as_me: failed program was:" >&5
6301sed 's/^/| /' conftest.$ac_ext >&5
6302
6303ac_header_compiler=no
6304fi
6305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6306echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6307echo "${ECHO_T}$ac_header_compiler" >&6
6308
6309# Is the header present?
6310echo "$as_me:$LINENO: checking $ac_header presence" >&5
6311echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6312cat >conftest.$ac_ext <<_ACEOF
6313/* confdefs.h. */
6314_ACEOF
6315cat confdefs.h >>conftest.$ac_ext
6316cat >>conftest.$ac_ext <<_ACEOF
6317/* end confdefs.h. */
6318#include <$ac_header>
6319_ACEOF
6320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } >/dev/null; then
6328 if test -s conftest.err; then
6329 ac_cpp_err=$ac_c_preproc_warn_flag
6330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6331 else
6332 ac_cpp_err=
6333 fi
6334else
6335 ac_cpp_err=yes
6336fi
6337if test -z "$ac_cpp_err"; then
6338 ac_header_preproc=yes
6339else
6340 echo "$as_me: failed program was:" >&5
6341sed 's/^/| /' conftest.$ac_ext >&5
6342
6343 ac_header_preproc=no
6344fi
6345rm -f conftest.err conftest.$ac_ext
6346echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6347echo "${ECHO_T}$ac_header_preproc" >&6
6348
6349# So? What about this header?
6350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6351 yes:no: )
6352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6353echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6355echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6356 ac_header_preproc=yes
6357 ;;
6358 no:yes:* )
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6360echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6362echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6364echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6366echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6368echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6370echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6371 (
6372 cat <<\_ASBOX
6373## ------------------------------------------ ##
6374## Report this to the AC_PACKAGE_NAME lists. ##
6375## ------------------------------------------ ##
6376_ASBOX
6377 ) |
6378 sed "s/^/$as_me: WARNING: /" >&2
6379 ;;
6380esac
6381echo "$as_me:$LINENO: checking for $ac_header" >&5
6382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6383if eval "test \"\${$as_ac_Header+set}\" = set"; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385else
6386 eval "$as_ac_Header=\$ac_header_preproc"
6387fi
6388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6389echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6390
6391fi
6392if test `eval echo '${'$as_ac_Header'}'` = yes; then
6393 cat >>confdefs.h <<_ACEOF
6394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6395_ACEOF
6396
6397fi
6398
6399done
6400
6401
6402for ac_header in net/if.h
6403do
6404as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6405echo "$as_me:$LINENO: checking for $ac_header" >&5
6406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6407if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6409else
6410 cat >conftest.$ac_ext <<_ACEOF
6411/* confdefs.h. */
6412_ACEOF
6413cat confdefs.h >>conftest.$ac_ext
6414cat >>conftest.$ac_ext <<_ACEOF
6415/* end confdefs.h. */
6416$ac_includes_default
6417#if HAVE_SYS_SOCKET_H
6418#include <sys/socket.h>
6419#endif
6420
6421#include <$ac_header>
6422_ACEOF
6423rm -f conftest.$ac_objext
6424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425 (eval $ac_compile) 2>conftest.er1
6426 ac_status=$?
6427 grep -v '^ *+' conftest.er1 >conftest.err
6428 rm -f conftest.er1
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -z "$ac_c_werror_flag"
6433 || test ! -s conftest.err'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; } &&
6439 { ac_try='test -s conftest.$ac_objext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 (eval $ac_try) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 eval "$as_ac_Header=yes"
6446else
6447 echo "$as_me: failed program was:" >&5
6448sed 's/^/| /' conftest.$ac_ext >&5
6449
6450eval "$as_ac_Header=no"
6451fi
6452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6453fi
6454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6455echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6456if test `eval echo '${'$as_ac_Header'}'` = yes; then
6457 cat >>confdefs.h <<_ACEOF
6458#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6459_ACEOF
6460
6461fi
6462
6463done
6464
6465
c0d27fcc 6466echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
98418dba
CW
6467echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6468if test "${ac_cv_struct_tm+set}" = set; then
503d2be0 6469 echo $ECHO_N "(cached) $ECHO_C" >&6
7397acc4 6470else
503d2be0 6471 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6472/* confdefs.h. */
6473_ACEOF
6474cat confdefs.h >>conftest.$ac_ext
6475cat >>conftest.$ac_ext <<_ACEOF
6476/* end confdefs.h. */
98418dba
CW
6477#include <sys/types.h>
6478#include <time.h>
7397acc4 6479
503d2be0
AS
6480int
6481main ()
6482{
98418dba 6483struct tm *tp; tp->tm_sec;
503d2be0
AS
6484 ;
6485 return 0;
6486}
6487_ACEOF
6488rm -f conftest.$ac_objext
c0d27fcc 6489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6490 (eval $ac_compile) 2>conftest.er1
503d2be0 6491 ac_status=$?
35996d22
AS
6492 grep -v '^ *+' conftest.er1 >conftest.err
6493 rm -f conftest.er1
6494 cat conftest.err >&5
c0d27fcc 6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 6496 (exit $ac_status); } &&
35996d22
AS
6497 { ac_try='test -z "$ac_c_werror_flag"
6498 || test ! -s conftest.err'
c0d27fcc 6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
6500 (eval $ac_try) 2>&5
6501 ac_status=$?
c0d27fcc 6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996d22
AS
6503 (exit $ac_status); }; } &&
6504 { ac_try='test -s conftest.$ac_objext'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 (eval $ac_try) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6510 ac_cv_struct_tm=time.h
6511else
503d2be0 6512 echo "$as_me: failed program was:" >&5
19650fd6
AS
6513sed 's/^/| /' conftest.$ac_ext >&5
6514
98418dba 6515ac_cv_struct_tm=sys/time.h
7397acc4 6516fi
35996d22 6517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7397acc4 6518fi
c0d27fcc 6519echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
98418dba
CW
6520echo "${ECHO_T}$ac_cv_struct_tm" >&6
6521if test $ac_cv_struct_tm = sys/time.h; then
7397acc4 6522
c0d27fcc 6523cat >>confdefs.h <<\_ACEOF
98418dba 6524#define TM_IN_SYS_TIME 1
c0d27fcc 6525_ACEOF
7397acc4
DL
6526
6527fi
ba4481b5 6528
c0d27fcc 6529echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
98418dba
CW
6530echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6531if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
503d2be0 6532 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 6533else
98418dba 6534 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6535/* confdefs.h. */
6536_ACEOF
6537cat confdefs.h >>conftest.$ac_ext
6538cat >>conftest.$ac_ext <<_ACEOF
6539/* end confdefs.h. */
98418dba
CW
6540#include <sys/types.h>
6541#include <$ac_cv_struct_tm>
ba4481b5 6542
c0d27fcc 6543
98418dba
CW
6544int
6545main ()
6546{
6547static struct tm ac_aggr;
6548if (ac_aggr.tm_zone)
6549return 0;
6550 ;
6551 return 0;
6552}
6553_ACEOF
6554rm -f conftest.$ac_objext
c0d27fcc 6555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6556 (eval $ac_compile) 2>conftest.er1
98418dba 6557 ac_status=$?
35996d22
AS
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
c0d27fcc 6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 6562 (exit $ac_status); } &&
35996d22
AS
6563 { ac_try='test -z "$ac_c_werror_flag"
6564 || test ! -s conftest.err'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; } &&
6570 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
6572 (eval $ac_try) 2>&5
6573 ac_status=$?
c0d27fcc 6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
6575 (exit $ac_status); }; }; then
6576 ac_cv_member_struct_tm_tm_zone=yes
ba4481b5 6577else
98418dba 6578 echo "$as_me: failed program was:" >&5
19650fd6
AS
6579sed 's/^/| /' conftest.$ac_ext >&5
6580
6bae0ccf 6581cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6582/* confdefs.h. */
6583_ACEOF
6584cat confdefs.h >>conftest.$ac_ext
6585cat >>conftest.$ac_ext <<_ACEOF
6586/* end confdefs.h. */
6bae0ccf
DL
6587#include <sys/types.h>
6588#include <$ac_cv_struct_tm>
6589
6590
6591int
6592main ()
6593{
6594static struct tm ac_aggr;
6595if (sizeof ac_aggr.tm_zone)
6596return 0;
6597 ;
6598 return 0;
6599}
6600_ACEOF
6601rm -f conftest.$ac_objext
6602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6603 (eval $ac_compile) 2>conftest.er1
6bae0ccf 6604 ac_status=$?
35996d22
AS
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6bae0ccf
DL
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } &&
35996d22
AS
6610 { ac_try='test -z "$ac_c_werror_flag"
6611 || test ! -s conftest.err'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; } &&
6617 { ac_try='test -s conftest.$ac_objext'
6bae0ccf
DL
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 (eval $ac_try) 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 ac_cv_member_struct_tm_tm_zone=yes
6624else
6625 echo "$as_me: failed program was:" >&5
19650fd6
AS
6626sed 's/^/| /' conftest.$ac_ext >&5
6627
98418dba 6628ac_cv_member_struct_tm_tm_zone=no
ba4481b5 6629fi
35996d22 6630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba4481b5 6631fi
35996d22 6632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6bae0ccf 6633fi
c0d27fcc 6634echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
98418dba
CW
6635echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6636if test $ac_cv_member_struct_tm_tm_zone = yes; then
503d2be0 6637
c0d27fcc 6638cat >>confdefs.h <<_ACEOF
98418dba 6639#define HAVE_STRUCT_TM_TM_ZONE 1
c0d27fcc
MR
6640_ACEOF
6641
ba4481b5 6642
98418dba 6643fi
ba4481b5 6644
98418dba 6645if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
ba4481b5 6646
c0d27fcc 6647cat >>confdefs.h <<\_ACEOF
98418dba 6648#define HAVE_TM_ZONE 1
c0d27fcc 6649_ACEOF
ba4481b5 6650
ba4481b5 6651else
c0d27fcc 6652 echo "$as_me:$LINENO: checking for tzname" >&5
98418dba
CW
6653echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6654if test "${ac_cv_var_tzname+set}" = set; then
503d2be0 6655 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 6656else
98418dba 6657 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6658/* confdefs.h. */
6659_ACEOF
6660cat confdefs.h >>conftest.$ac_ext
6661cat >>conftest.$ac_ext <<_ACEOF
6662/* end confdefs.h. */
98418dba
CW
6663#include <time.h>
6664#ifndef tzname /* For SGI. */
6665extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6666#endif
6667
98418dba
CW
6668int
6669main ()
6670{
6671atoi(*tzname);
6672 ;
6673 return 0;
6674}
6675_ACEOF
6676rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 6677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 6678 (eval $ac_link) 2>conftest.er1
98418dba 6679 ac_status=$?
35996d22
AS
6680 grep -v '^ *+' conftest.er1 >conftest.err
6681 rm -f conftest.er1
6682 cat conftest.err >&5
c0d27fcc 6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 6684 (exit $ac_status); } &&
35996d22
AS
6685 { ac_try='test -z "$ac_c_werror_flag"
6686 || test ! -s conftest.err'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 (eval $ac_try) 2>&5
6689 ac_status=$?
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; } &&
6692 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 6693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
6694 (eval $ac_try) 2>&5
6695 ac_status=$?
c0d27fcc 6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
6697 (exit $ac_status); }; }; then
6698 ac_cv_var_tzname=yes
6699else
6700 echo "$as_me: failed program was:" >&5
19650fd6
AS
6701sed 's/^/| /' conftest.$ac_ext >&5
6702
98418dba 6703ac_cv_var_tzname=no
ba4481b5 6704fi
35996d22
AS
6705rm -f conftest.err conftest.$ac_objext \
6706 conftest$ac_exeext conftest.$ac_ext
98418dba 6707fi
c0d27fcc 6708echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
98418dba
CW
6709echo "${ECHO_T}$ac_cv_var_tzname" >&6
6710 if test $ac_cv_var_tzname = yes; then
ba4481b5 6711
c0d27fcc 6712cat >>confdefs.h <<\_ACEOF
98418dba 6713#define HAVE_TZNAME 1
c0d27fcc 6714_ACEOF
503d2be0 6715
98418dba
CW
6716 fi
6717fi
503d2be0 6718
c0d27fcc 6719echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
b936fae4
AS
6720echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6721if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
98418dba
CW
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723else
6724 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6725/* confdefs.h. */
6726_ACEOF
6727cat confdefs.h >>conftest.$ac_ext
6728cat >>conftest.$ac_ext <<_ACEOF
6729/* end confdefs.h. */
98418dba 6730#include <time.h>
b936fae4 6731
98418dba
CW
6732int
6733main ()
6734{
b936fae4
AS
6735static struct tm ac_aggr;
6736if (ac_aggr.tm_gmtoff)
6737return 0;
98418dba
CW
6738 ;
6739 return 0;
6740}
6741_ACEOF
b936fae4 6742rm -f conftest.$ac_objext
c0d27fcc 6743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6744 (eval $ac_compile) 2>conftest.er1
98418dba 6745 ac_status=$?
35996d22
AS
6746 grep -v '^ *+' conftest.er1 >conftest.err
6747 rm -f conftest.er1
6748 cat conftest.err >&5
c0d27fcc 6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 6750 (exit $ac_status); } &&
35996d22
AS
6751 { ac_try='test -z "$ac_c_werror_flag"
6752 || test ! -s conftest.err'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 (eval $ac_try) 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; } &&
6758 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
c0d27fcc 6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 6763 (exit $ac_status); }; }; then
b936fae4 6764 ac_cv_member_struct_tm_tm_gmtoff=yes
98418dba
CW
6765else
6766 echo "$as_me: failed program was:" >&5
19650fd6
AS
6767sed 's/^/| /' conftest.$ac_ext >&5
6768
8799b3e4 6769cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
6770/* confdefs.h. */
6771_ACEOF
6772cat confdefs.h >>conftest.$ac_ext
6773cat >>conftest.$ac_ext <<_ACEOF
6774/* end confdefs.h. */
6bae0ccf
DL
6775#include <time.h>
6776
8799b3e4
CW
6777int
6778main ()
6779{
6bae0ccf
DL
6780static struct tm ac_aggr;
6781if (sizeof ac_aggr.tm_gmtoff)
6782return 0;
8799b3e4
CW
6783 ;
6784 return 0;
6785}
6786_ACEOF
6bae0ccf 6787rm -f conftest.$ac_objext
c0d27fcc 6788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6789 (eval $ac_compile) 2>conftest.er1
8799b3e4 6790 ac_status=$?
35996d22
AS
6791 grep -v '^ *+' conftest.er1 >conftest.err
6792 rm -f conftest.er1
6793 cat conftest.err >&5
c0d27fcc 6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799b3e4 6795 (exit $ac_status); } &&
35996d22
AS
6796 { ac_try='test -z "$ac_c_werror_flag"
6797 || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 (eval $ac_try) 2>&5
6800 ac_status=$?
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799b3e4
CW
6805 (eval $ac_try) 2>&5
6806 ac_status=$?
c0d27fcc 6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799b3e4 6808 (exit $ac_status); }; }; then
6bae0ccf 6809 ac_cv_member_struct_tm_tm_gmtoff=yes
8799b3e4
CW
6810else
6811 echo "$as_me: failed program was:" >&5
19650fd6
AS
6812sed 's/^/| /' conftest.$ac_ext >&5
6813
6bae0ccf 6814ac_cv_member_struct_tm_tm_gmtoff=no
8799b3e4 6815fi
35996d22 6816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6bae0ccf 6817fi
35996d22 6818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8799b3e4 6819fi
6bae0ccf
DL
6820echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6821echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6822if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6823
6824cat >>confdefs.h <<\_ACEOF
6825#define HAVE_TM_GMTOFF 1
6826_ACEOF
6827
6828fi
6829
96f3a036
DL
6830echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6831echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6832if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6834else
6835 cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
6836/* confdefs.h. */
6837_ACEOF
6838cat confdefs.h >>conftest.$ac_ext
6839cat >>conftest.$ac_ext <<_ACEOF
6840/* end confdefs.h. */
7862d3a8
AS
6841$ac_includes_default
6842#if HAVE_SYS_SOCKET_H
6843#include <sys/socket.h>
6844#endif
6845#if HAVE_NET_IF_H
96f3a036 6846#include <net/if.h>
7862d3a8 6847#endif
96f3a036
DL
6848
6849int
6850main ()
6851{
6852static struct ifreq ac_aggr;
6853if (ac_aggr.ifr_flags)
6854return 0;
6855 ;
6856 return 0;
6857}
6858_ACEOF
6859rm -f conftest.$ac_objext
6860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6861 (eval $ac_compile) 2>conftest.er1
96f3a036 6862 ac_status=$?
35996d22
AS
6863 grep -v '^ *+' conftest.er1 >conftest.err
6864 rm -f conftest.er1
6865 cat conftest.err >&5
96f3a036
DL
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } &&
35996d22
AS
6868 { ac_try='test -z "$ac_c_werror_flag"
6869 || test ! -s conftest.err'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 (eval $ac_try) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; } &&
6875 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6881 ac_cv_member_struct_ifreq_ifr_flags=yes
6882else
6883 echo "$as_me: failed program was:" >&5
6884sed 's/^/| /' conftest.$ac_ext >&5
6885
6886cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
6887/* confdefs.h. */
6888_ACEOF
6889cat confdefs.h >>conftest.$ac_ext
6890cat >>conftest.$ac_ext <<_ACEOF
6891/* end confdefs.h. */
7862d3a8
AS
6892$ac_includes_default
6893#if HAVE_SYS_SOCKET_H
6894#include <sys/socket.h>
6895#endif
6896#if HAVE_NET_IF_H
96f3a036 6897#include <net/if.h>
7862d3a8 6898#endif
96f3a036
DL
6899
6900int
6901main ()
6902{
6903static struct ifreq ac_aggr;
6904if (sizeof ac_aggr.ifr_flags)
6905return 0;
6906 ;
6907 return 0;
6908}
6909_ACEOF
6910rm -f conftest.$ac_objext
6911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6912 (eval $ac_compile) 2>conftest.er1
96f3a036 6913 ac_status=$?
35996d22
AS
6914 grep -v '^ *+' conftest.er1 >conftest.err
6915 rm -f conftest.er1
6916 cat conftest.err >&5
96f3a036
DL
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } &&
35996d22
AS
6919 { ac_try='test -z "$ac_c_werror_flag"
6920 || test ! -s conftest.err'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 (eval $ac_try) 2>&5
6923 ac_status=$?
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; } &&
6926 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 (eval $ac_try) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6932 ac_cv_member_struct_ifreq_ifr_flags=yes
6933else
6934 echo "$as_me: failed program was:" >&5
6935sed 's/^/| /' conftest.$ac_ext >&5
6936
6937ac_cv_member_struct_ifreq_ifr_flags=no
6938fi
35996d22 6939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036 6940fi
35996d22 6941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036
DL
6942fi
6943echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6944echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6945if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6946
6947cat >>confdefs.h <<_ACEOF
6948#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6949_ACEOF
6950
6951
6952fi
6953echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6954echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6955if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6957else
6958 cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
6959/* confdefs.h. */
6960_ACEOF
6961cat confdefs.h >>conftest.$ac_ext
6962cat >>conftest.$ac_ext <<_ACEOF
6963/* end confdefs.h. */
7862d3a8
AS
6964$ac_includes_default
6965#if HAVE_SYS_SOCKET_H
6966#include <sys/socket.h>
6967#endif
6968#if HAVE_NET_IF_H
96f3a036 6969#include <net/if.h>
7862d3a8 6970#endif
96f3a036
DL
6971
6972int
6973main ()
6974{
6975static struct ifreq ac_aggr;
6976if (ac_aggr.ifr_hwaddr)
6977return 0;
6978 ;
6979 return 0;
6980}
6981_ACEOF
6982rm -f conftest.$ac_objext
6983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 6984 (eval $ac_compile) 2>conftest.er1
96f3a036 6985 ac_status=$?
35996d22
AS
6986 grep -v '^ *+' conftest.er1 >conftest.err
6987 rm -f conftest.er1
6988 cat conftest.err >&5
96f3a036
DL
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } &&
35996d22
AS
6991 { ac_try='test -z "$ac_c_werror_flag"
6992 || test ! -s conftest.err'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 (eval $ac_try) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; } &&
6998 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7005else
7006 echo "$as_me: failed program was:" >&5
7007sed 's/^/| /' conftest.$ac_ext >&5
7008
7009cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
7010/* confdefs.h. */
7011_ACEOF
7012cat confdefs.h >>conftest.$ac_ext
7013cat >>conftest.$ac_ext <<_ACEOF
7014/* end confdefs.h. */
7862d3a8
AS
7015$ac_includes_default
7016#if HAVE_SYS_SOCKET_H
7017#include <sys/socket.h>
7018#endif
7019#if HAVE_NET_IF_H
96f3a036 7020#include <net/if.h>
7862d3a8 7021#endif
96f3a036
DL
7022
7023int
7024main ()
7025{
7026static struct ifreq ac_aggr;
7027if (sizeof ac_aggr.ifr_hwaddr)
7028return 0;
7029 ;
7030 return 0;
7031}
7032_ACEOF
7033rm -f conftest.$ac_objext
7034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7035 (eval $ac_compile) 2>conftest.er1
96f3a036 7036 ac_status=$?
35996d22
AS
7037 grep -v '^ *+' conftest.er1 >conftest.err
7038 rm -f conftest.er1
7039 cat conftest.err >&5
96f3a036
DL
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
35996d22
AS
7042 { ac_try='test -z "$ac_c_werror_flag"
7043 || test ! -s conftest.err'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 (eval $ac_try) 2>&5
7046 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } &&
7049 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7055 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7056else
7057 echo "$as_me: failed program was:" >&5
7058sed 's/^/| /' conftest.$ac_ext >&5
7059
7060ac_cv_member_struct_ifreq_ifr_hwaddr=no
7061fi
35996d22 7062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036 7063fi
35996d22 7064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036
DL
7065fi
7066echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7067echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7068if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7069
7070cat >>confdefs.h <<_ACEOF
7071#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7072_ACEOF
7073
7074
7075fi
7076echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7077echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7078if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080else
7081 cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
7082/* confdefs.h. */
7083_ACEOF
7084cat confdefs.h >>conftest.$ac_ext
7085cat >>conftest.$ac_ext <<_ACEOF
7086/* end confdefs.h. */
7862d3a8
AS
7087$ac_includes_default
7088#if HAVE_SYS_SOCKET_H
7089#include <sys/socket.h>
7090#endif
7091#if HAVE_NET_IF_H
96f3a036 7092#include <net/if.h>
7862d3a8 7093#endif
96f3a036
DL
7094
7095int
7096main ()
7097{
7098static struct ifreq ac_aggr;
7099if (ac_aggr.ifr_netmask)
7100return 0;
7101 ;
7102 return 0;
7103}
7104_ACEOF
7105rm -f conftest.$ac_objext
7106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7107 (eval $ac_compile) 2>conftest.er1
96f3a036 7108 ac_status=$?
35996d22
AS
7109 grep -v '^ *+' conftest.er1 >conftest.err
7110 rm -f conftest.er1
7111 cat conftest.err >&5
96f3a036
DL
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } &&
35996d22
AS
7114 { ac_try='test -z "$ac_c_werror_flag"
7115 || test ! -s conftest.err'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; } &&
7121 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_member_struct_ifreq_ifr_netmask=yes
7128else
7129 echo "$as_me: failed program was:" >&5
7130sed 's/^/| /' conftest.$ac_ext >&5
7131
7132cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
7133/* confdefs.h. */
7134_ACEOF
7135cat confdefs.h >>conftest.$ac_ext
7136cat >>conftest.$ac_ext <<_ACEOF
7137/* end confdefs.h. */
7862d3a8
AS
7138$ac_includes_default
7139#if HAVE_SYS_SOCKET_H
7140#include <sys/socket.h>
7141#endif
7142#if HAVE_NET_IF_H
96f3a036 7143#include <net/if.h>
7862d3a8 7144#endif
96f3a036
DL
7145
7146int
7147main ()
7148{
7149static struct ifreq ac_aggr;
7150if (sizeof ac_aggr.ifr_netmask)
7151return 0;
7152 ;
7153 return 0;
7154}
7155_ACEOF
7156rm -f conftest.$ac_objext
7157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7158 (eval $ac_compile) 2>conftest.er1
96f3a036 7159 ac_status=$?
35996d22
AS
7160 grep -v '^ *+' conftest.er1 >conftest.err
7161 rm -f conftest.er1
7162 cat conftest.err >&5
96f3a036
DL
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
35996d22
AS
7165 { ac_try='test -z "$ac_c_werror_flag"
7166 || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 (eval $ac_try) 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 ac_cv_member_struct_ifreq_ifr_netmask=yes
7179else
7180 echo "$as_me: failed program was:" >&5
7181sed 's/^/| /' conftest.$ac_ext >&5
7182
7183ac_cv_member_struct_ifreq_ifr_netmask=no
7184fi
35996d22 7185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036 7186fi
35996d22 7187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036
DL
7188fi
7189echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7190echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7191if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7192
7193cat >>confdefs.h <<_ACEOF
7194#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7195_ACEOF
7196
7197
7198fi
7199echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7200echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7201if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203else
7204 cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
7205/* confdefs.h. */
7206_ACEOF
7207cat confdefs.h >>conftest.$ac_ext
7208cat >>conftest.$ac_ext <<_ACEOF
7209/* end confdefs.h. */
7862d3a8
AS
7210$ac_includes_default
7211#if HAVE_SYS_SOCKET_H
7212#include <sys/socket.h>
7213#endif
7214#if HAVE_NET_IF_H
96f3a036 7215#include <net/if.h>
7862d3a8 7216#endif
96f3a036
DL
7217
7218int
7219main ()
7220{
7221static struct ifreq ac_aggr;
7222if (ac_aggr.ifr_broadaddr)
7223return 0;
7224 ;
7225 return 0;
7226}
7227_ACEOF
7228rm -f conftest.$ac_objext
7229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7230 (eval $ac_compile) 2>conftest.er1
96f3a036 7231 ac_status=$?
35996d22
AS
7232 grep -v '^ *+' conftest.er1 >conftest.err
7233 rm -f conftest.er1
7234 cat conftest.err >&5
96f3a036
DL
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
35996d22
AS
7237 { ac_try='test -z "$ac_c_werror_flag"
7238 || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 (eval $ac_try) 2>&5
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 (eval $ac_try) 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7251else
7252 echo "$as_me: failed program was:" >&5
7253sed 's/^/| /' conftest.$ac_ext >&5
7254
7255cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
7256/* confdefs.h. */
7257_ACEOF
7258cat confdefs.h >>conftest.$ac_ext
7259cat >>conftest.$ac_ext <<_ACEOF
7260/* end confdefs.h. */
7862d3a8
AS
7261$ac_includes_default
7262#if HAVE_SYS_SOCKET_H
7263#include <sys/socket.h>
7264#endif
7265#if HAVE_NET_IF_H
96f3a036 7266#include <net/if.h>
7862d3a8 7267#endif
96f3a036
DL
7268
7269int
7270main ()
7271{
7272static struct ifreq ac_aggr;
7273if (sizeof ac_aggr.ifr_broadaddr)
7274return 0;
7275 ;
7276 return 0;
7277}
7278_ACEOF
7279rm -f conftest.$ac_objext
7280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7281 (eval $ac_compile) 2>conftest.er1
96f3a036 7282 ac_status=$?
35996d22
AS
7283 grep -v '^ *+' conftest.er1 >conftest.err
7284 rm -f conftest.er1
7285 cat conftest.err >&5
96f3a036
DL
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
35996d22
AS
7288 { ac_try='test -z "$ac_c_werror_flag"
7289 || test ! -s conftest.err'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; } &&
7295 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 (eval $ac_try) 2>&5
7298 ac_status=$?
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7301 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7302else
7303 echo "$as_me: failed program was:" >&5
7304sed 's/^/| /' conftest.$ac_ext >&5
7305
7306ac_cv_member_struct_ifreq_ifr_broadaddr=no
7307fi
35996d22 7308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036 7309fi
35996d22 7310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036
DL
7311fi
7312echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7313echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7314if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7315
7316cat >>confdefs.h <<_ACEOF
7317#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7318_ACEOF
7319
7320
7321fi
7322echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7323echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7324if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326else
7327 cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
7328/* confdefs.h. */
7329_ACEOF
7330cat confdefs.h >>conftest.$ac_ext
7331cat >>conftest.$ac_ext <<_ACEOF
7332/* end confdefs.h. */
7862d3a8
AS
7333$ac_includes_default
7334#if HAVE_SYS_SOCKET_H
7335#include <sys/socket.h>
7336#endif
7337#if HAVE_NET_IF_H
96f3a036 7338#include <net/if.h>
7862d3a8 7339#endif
96f3a036
DL
7340
7341int
7342main ()
7343{
7344static struct ifreq ac_aggr;
7345if (ac_aggr.ifr_addr)
7346return 0;
7347 ;
7348 return 0;
7349}
7350_ACEOF
7351rm -f conftest.$ac_objext
7352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7353 (eval $ac_compile) 2>conftest.er1
96f3a036 7354 ac_status=$?
35996d22
AS
7355 grep -v '^ *+' conftest.er1 >conftest.err
7356 rm -f conftest.er1
7357 cat conftest.err >&5
96f3a036
DL
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } &&
35996d22
AS
7360 { ac_try='test -z "$ac_c_werror_flag"
7361 || test ! -s conftest.err'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 (eval $ac_try) 2>&5
7364 ac_status=$?
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; } &&
7367 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
7368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 (eval $ac_try) 2>&5
7370 ac_status=$?
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; }; then
7373 ac_cv_member_struct_ifreq_ifr_addr=yes
7374else
7375 echo "$as_me: failed program was:" >&5
7376sed 's/^/| /' conftest.$ac_ext >&5
7377
7378cat >conftest.$ac_ext <<_ACEOF
96f3a036
DL
7379/* confdefs.h. */
7380_ACEOF
7381cat confdefs.h >>conftest.$ac_ext
7382cat >>conftest.$ac_ext <<_ACEOF
7383/* end confdefs.h. */
7862d3a8
AS
7384$ac_includes_default
7385#if HAVE_SYS_SOCKET_H
7386#include <sys/socket.h>
7387#endif
7388#if HAVE_NET_IF_H
96f3a036 7389#include <net/if.h>
7862d3a8 7390#endif
96f3a036
DL
7391
7392int
7393main ()
7394{
7395static struct ifreq ac_aggr;
7396if (sizeof ac_aggr.ifr_addr)
7397return 0;
7398 ;
7399 return 0;
7400}
7401_ACEOF
7402rm -f conftest.$ac_objext
7403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7404 (eval $ac_compile) 2>conftest.er1
96f3a036 7405 ac_status=$?
35996d22
AS
7406 grep -v '^ *+' conftest.er1 >conftest.err
7407 rm -f conftest.er1
7408 cat conftest.err >&5
96f3a036
DL
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } &&
35996d22
AS
7411 { ac_try='test -z "$ac_c_werror_flag"
7412 || test ! -s conftest.err'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414 (eval $ac_try) 2>&5
7415 ac_status=$?
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; } &&
7418 { ac_try='test -s conftest.$ac_objext'
96f3a036
DL
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420 (eval $ac_try) 2>&5
7421 ac_status=$?
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7424 ac_cv_member_struct_ifreq_ifr_addr=yes
7425else
7426 echo "$as_me: failed program was:" >&5
7427sed 's/^/| /' conftest.$ac_ext >&5
7428
7429ac_cv_member_struct_ifreq_ifr_addr=no
7430fi
35996d22 7431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036 7432fi
35996d22 7433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96f3a036
DL
7434fi
7435echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7436echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7437if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7438
7439cat >>confdefs.h <<_ACEOF
7440#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7441_ACEOF
7442
7443
7444fi
7445
8799b3e4 7446
8799b3e4 7447
c0d27fcc 7448echo "$as_me:$LINENO: checking for function prototypes" >&5
98418dba
CW
7449echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7450if test "$ac_cv_prog_cc_stdc" != no; then
c0d27fcc 7451 echo "$as_me:$LINENO: result: yes" >&5
98418dba
CW
7452echo "${ECHO_T}yes" >&6
7453
c0d27fcc 7454cat >>confdefs.h <<\_ACEOF
98418dba 7455#define PROTOTYPES 1
c0d27fcc
MR
7456_ACEOF
7457
7458
7459cat >>confdefs.h <<\_ACEOF
7460#define __PROTOTYPES 1
7461_ACEOF
98418dba
CW
7462
7463else
c0d27fcc 7464 echo "$as_me:$LINENO: result: no" >&5
98418dba
CW
7465echo "${ECHO_T}no" >&6
7466fi
7467
c0d27fcc 7468echo "$as_me:$LINENO: checking for working volatile" >&5
98418dba
CW
7469echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7470if test "${ac_cv_c_volatile+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7472else
7473 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
7474/* confdefs.h. */
7475_ACEOF
7476cat confdefs.h >>conftest.$ac_ext
7477cat >>conftest.$ac_ext <<_ACEOF
7478/* end confdefs.h. */
98418dba 7479
98418dba
CW
7480int
7481main ()
7482{
7483
7484volatile int x;
7485int * volatile y;
7486 ;
7487 return 0;
7488}
7489_ACEOF
7490rm -f conftest.$ac_objext
c0d27fcc 7491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7492 (eval $ac_compile) 2>conftest.er1
98418dba 7493 ac_status=$?
35996d22
AS
7494 grep -v '^ *+' conftest.er1 >conftest.err
7495 rm -f conftest.er1
7496 cat conftest.err >&5
c0d27fcc 7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 7498 (exit $ac_status); } &&
35996d22
AS
7499 { ac_try='test -z "$ac_c_werror_flag"
7500 || test ! -s conftest.err'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 (eval $ac_try) 2>&5
7503 ac_status=$?
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; } &&
7506 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
7508 (eval $ac_try) 2>&5
7509 ac_status=$?
c0d27fcc 7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
7511 (exit $ac_status); }; }; then
7512 ac_cv_c_volatile=yes
7513else
7514 echo "$as_me: failed program was:" >&5
19650fd6
AS
7515sed 's/^/| /' conftest.$ac_ext >&5
7516
98418dba
CW
7517ac_cv_c_volatile=no
7518fi
35996d22 7519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
98418dba 7520fi
c0d27fcc 7521echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
98418dba
CW
7522echo "${ECHO_T}$ac_cv_c_volatile" >&6
7523if test $ac_cv_c_volatile = no; then
7524
c0d27fcc 7525cat >>confdefs.h <<\_ACEOF
98418dba 7526#define volatile
c0d27fcc 7527_ACEOF
98418dba
CW
7528
7529fi
7530
c0d27fcc 7531echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
98418dba
CW
7532echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7533if test "${ac_cv_c_const+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535else
7536 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
7537/* confdefs.h. */
7538_ACEOF
7539cat confdefs.h >>conftest.$ac_ext
7540cat >>conftest.$ac_ext <<_ACEOF
7541/* end confdefs.h. */
98418dba 7542
98418dba
CW
7543int
7544main ()
7545{
7546/* FIXME: Include the comments suggested by Paul. */
7547#ifndef __cplusplus
7548 /* Ultrix mips cc rejects this. */
7549 typedef int charset[2];
7550 const charset x;
7551 /* SunOS 4.1.1 cc rejects this. */
7552 char const *const *ccp;
7553 char **p;
7554 /* NEC SVR4.0.2 mips cc rejects this. */
7555 struct point {int x, y;};
7556 static struct point const zero = {0,0};
7557 /* AIX XL C 1.02.0.0 rejects this.
7558 It does not let you subtract one const X* pointer from another in
7559 an arm of an if-expression whose if-part is not a constant
7560 expression */
7561 const char *g = "string";
7562 ccp = &g + (g ? g-g : 0);
7563 /* HPUX 7.0 cc rejects these. */
7564 ++ccp;
7565 p = (char**) ccp;
7566 ccp = (char const *const *) p;
7567 { /* SCO 3.2v4 cc rejects this. */
7568 char *t;
7569 char const *s = 0 ? (char *) 0 : (char const *) 0;
7570
7571 *t++ = 0;
7572 }
7573 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7574 int x[] = {25, 17};
7575 const int *foo = &x[0];
7576 ++foo;
7577 }
7578 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7579 typedef const int *iptr;
7580 iptr p = 0;
7581 ++p;
7582 }
7583 { /* AIX XL C 1.02.0.0 rejects this saying
7584 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7585 struct s { int j; const int *ap[3]; };
7586 struct s *b; b->j = 5;
7587 }
7588 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7589 const int foo = 10;
7590 }
7591#endif
7592
7593 ;
7594 return 0;
7595}
7596_ACEOF
7597rm -f conftest.$ac_objext
c0d27fcc 7598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7599 (eval $ac_compile) 2>conftest.er1
98418dba 7600 ac_status=$?
35996d22
AS
7601 grep -v '^ *+' conftest.er1 >conftest.err
7602 rm -f conftest.er1
7603 cat conftest.err >&5
c0d27fcc 7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 7605 (exit $ac_status); } &&
35996d22
AS
7606 { ac_try='test -z "$ac_c_werror_flag"
7607 || test ! -s conftest.err'
7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 (eval $ac_try) 2>&5
7610 ac_status=$?
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); }; } &&
7613 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
7615 (eval $ac_try) 2>&5
7616 ac_status=$?
c0d27fcc 7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
7618 (exit $ac_status); }; }; then
7619 ac_cv_c_const=yes
7620else
7621 echo "$as_me: failed program was:" >&5
19650fd6
AS
7622sed 's/^/| /' conftest.$ac_ext >&5
7623
98418dba
CW
7624ac_cv_c_const=no
7625fi
35996d22 7626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
98418dba 7627fi
c0d27fcc 7628echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
98418dba
CW
7629echo "${ECHO_T}$ac_cv_c_const" >&6
7630if test $ac_cv_c_const = no; then
7631
c0d27fcc 7632cat >>confdefs.h <<\_ACEOF
98418dba 7633#define const
c0d27fcc 7634_ACEOF
98418dba
CW
7635
7636fi
7637
c0d27fcc 7638echo "$as_me:$LINENO: checking for void * support" >&5
98418dba
CW
7639echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7640if test "${emacs_cv_void_star+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7642else
7643 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
7644/* confdefs.h. */
7645_ACEOF
7646cat confdefs.h >>conftest.$ac_ext
7647cat >>conftest.$ac_ext <<_ACEOF
7648/* end confdefs.h. */
98418dba 7649
98418dba
CW
7650int
7651main ()
7652{
7653void * foo;
7654 ;
7655 return 0;
7656}
7657_ACEOF
7658rm -f conftest.$ac_objext
c0d27fcc 7659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 7660 (eval $ac_compile) 2>conftest.er1
98418dba 7661 ac_status=$?
35996d22
AS
7662 grep -v '^ *+' conftest.er1 >conftest.err
7663 rm -f conftest.er1
7664 cat conftest.err >&5
c0d27fcc 7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 7666 (exit $ac_status); } &&
35996d22
AS
7667 { ac_try='test -z "$ac_c_werror_flag"
7668 || test ! -s conftest.err'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 (eval $ac_try) 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; } &&
7674 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
7676 (eval $ac_try) 2>&5
7677 ac_status=$?
c0d27fcc 7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
7679 (exit $ac_status); }; }; then
7680 emacs_cv_void_star=yes
7681else
7682 echo "$as_me: failed program was:" >&5
19650fd6
AS
7683sed 's/^/| /' conftest.$ac_ext >&5
7684
98418dba
CW
7685emacs_cv_void_star=no
7686fi
35996d22 7687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
98418dba 7688fi
c0d27fcc 7689echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
98418dba
CW
7690echo "${ECHO_T}$emacs_cv_void_star" >&6
7691if test $emacs_cv_void_star = yes; then
c0d27fcc 7692 cat >>confdefs.h <<\_ACEOF
98418dba 7693#define POINTER_TYPE void
c0d27fcc 7694_ACEOF
98418dba
CW
7695
7696else
c0d27fcc 7697 cat >>confdefs.h <<\_ACEOF
98418dba 7698#define POINTER_TYPE char
c0d27fcc 7699_ACEOF
98418dba
CW
7700
7701fi
7702
c0d27fcc 7703
cd958eb3 7704
19650fd6
AS
7705echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7706echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35996d22 7707set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
98418dba
CW
7708if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7710else
c0d27fcc 7711 cat >conftest.make <<\_ACEOF
98418dba 7712all:
19650fd6 7713 @echo 'ac_maketemp="$(MAKE)"'
c0d27fcc 7714_ACEOF
98418dba
CW
7715# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7716eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7717if test -n "$ac_maketemp"; then
7718 eval ac_cv_prog_make_${ac_make}_set=yes
7719else
7720 eval ac_cv_prog_make_${ac_make}_set=no
7721fi
7722rm -f conftest.make
7723fi
7724if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
c0d27fcc 7725 echo "$as_me:$LINENO: result: yes" >&5
98418dba
CW
7726echo "${ECHO_T}yes" >&6
7727 SET_MAKE=
7728else
c0d27fcc 7729 echo "$as_me:$LINENO: result: no" >&5
98418dba
CW
7730echo "${ECHO_T}no" >&6
7731 SET_MAKE="MAKE=${MAKE-make}"
7732fi
7733
c0d27fcc
MR
7734
7735echo "$as_me:$LINENO: checking for long file names" >&5
98418dba
CW
7736echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7737if test "${ac_cv_sys_long_file_names+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7739else
7740 ac_cv_sys_long_file_names=yes
7741# Test for long file names in all the places we know might matter:
7742# . the current directory, where building will happen
7743# $prefix/lib where we will be installing things
7744# $exec_prefix/lib likewise
7745# eval it to expand exec_prefix.
7746# $TMPDIR if set, where it might want to write temporary files
7747# if $TMPDIR is not set:
7748# /tmp where it might want to write temporary files
7749# /var/tmp likewise
7750# /usr/tmp likewise
7751if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7752 ac_tmpdirs=$TMPDIR
7753else
7754 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7755fi
7756for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7757 test -d $ac_dir || continue
7758 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7759 ac_xdir=$ac_dir/cf$$
7760 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7761 ac_tf1=$ac_xdir/conftest9012345
7762 ac_tf2=$ac_xdir/conftest9012346
7763 (echo 1 >$ac_tf1) 2>/dev/null
7764 (echo 2 >$ac_tf2) 2>/dev/null
7765 ac_val=`cat $ac_tf1 2>/dev/null`
7766 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7767 ac_cv_sys_long_file_names=no
7768 rm -rf $ac_xdir 2>/dev/null
7769 break
7770 fi
7771 rm -rf $ac_xdir 2>/dev/null
7772done
7773fi
c0d27fcc 7774echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
98418dba
CW
7775echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7776if test $ac_cv_sys_long_file_names = yes; then
7777
c0d27fcc 7778cat >>confdefs.h <<\_ACEOF
98418dba 7779#define HAVE_LONG_FILE_NAMES 1
c0d27fcc 7780_ACEOF
98418dba
CW
7781
7782fi
7783
c0d27fcc 7784
98418dba
CW
7785#### Choose a window system.
7786
c0d27fcc 7787echo "$as_me:$LINENO: checking for X" >&5
98418dba
CW
7788echo $ECHO_N "checking for X... $ECHO_C" >&6
7789
c0d27fcc 7790
98418dba
CW
7791# Check whether --with-x or --without-x was given.
7792if test "${with_x+set}" = set; then
7793 withval="$with_x"
7794
7795fi;
7796# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7797if test "x$with_x" = xno; then
7798 # The user explicitly disabled X.
7799 have_x=disabled
7800else
7801 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7802 # Both variables are already set.
7803 have_x=yes
7804 else
7805 if test "${ac_cv_have_x+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7807else
7808 # One or both of the vars are not set, and there is no cached value.
7809ac_x_includes=no ac_x_libraries=no
7810rm -fr conftest.dir
7811if mkdir conftest.dir; then
7812 cd conftest.dir
7813 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
c0d27fcc 7814 cat >Imakefile <<'_ACEOF'
98418dba
CW
7815acfindx:
7816 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
c0d27fcc 7817_ACEOF
98418dba
CW
7818 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7819 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7820 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7821 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7822 for ac_extension in a so sl; do
7823 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
35996d22
AS
7824 test -f $ac_im_libdir/libX11.$ac_extension; then
7825 ac_im_usrlibdir=$ac_im_libdir; break
98418dba
CW
7826 fi
7827 done
7828 # Screen out bogus values from the imake configuration. They are
7829 # bogus both because they are the default anyway, and because
7830 # using them would break gcc on systems where it needs fixed includes.
7831 case $ac_im_incroot in
7832 /usr/include) ;;
7833 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7834 esac
7835 case $ac_im_usrlibdir in
7836 /usr/lib | /lib) ;;
7837 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7838 esac
7839 fi
7840 cd ..
7841 rm -fr conftest.dir
7842fi
7843
7844# Standard set of common directories for X headers.
7845# Check X11 before X11Rn because it is often a symlink to the current release.
7846ac_x_header_dirs='
7847/usr/X11/include
7848/usr/X11R6/include
7849/usr/X11R5/include
7850/usr/X11R4/include
7851
7852/usr/include/X11
7853/usr/include/X11R6
7854/usr/include/X11R5
7855/usr/include/X11R4
7856
7857/usr/local/X11/include
7858/usr/local/X11R6/include
7859/usr/local/X11R5/include
7860/usr/local/X11R4/include
7861
7862/usr/local/include/X11
7863/usr/local/include/X11R6
7864/usr/local/include/X11R5
7865/usr/local/include/X11R4
7866
7867/usr/X386/include
7868/usr/x386/include
7869/usr/XFree86/include/X11
7870
7871/usr/include
7872/usr/local/include
7873/usr/unsupported/include
7874/usr/athena/include
7875/usr/local/x11r5/include
7876/usr/lpp/Xamples/include
7877
7878/usr/openwin/include
7879/usr/openwin/share/include'
7880
7881if test "$ac_x_includes" = no; then
7882 # Guess where to find include files, by looking for Intrinsic.h.
7883 # First, try using that file with no special directory specified.
7884 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
7885/* confdefs.h. */
7886_ACEOF
7887cat confdefs.h >>conftest.$ac_ext
7888cat >>conftest.$ac_ext <<_ACEOF
7889/* end confdefs.h. */
98418dba
CW
7890#include <X11/Intrinsic.h>
7891_ACEOF
c0d27fcc 7892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
7893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7894 ac_status=$?
6bae0ccf 7895 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
7896 rm -f conftest.er1
7897 cat conftest.err >&5
c0d27fcc 7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
7899 (exit $ac_status); } >/dev/null; then
7900 if test -s conftest.err; then
7901 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 7902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
7903 else
7904 ac_cpp_err=
7905 fi
7906else
7907 ac_cpp_err=yes
7908fi
7909if test -z "$ac_cpp_err"; then
7910 # We can compile using X headers with no special include directory.
7911ac_x_includes=
7912else
7913 echo "$as_me: failed program was:" >&5
19650fd6
AS
7914sed 's/^/| /' conftest.$ac_ext >&5
7915
98418dba
CW
7916 for ac_dir in $ac_x_header_dirs; do
7917 if test -r "$ac_dir/X11/Intrinsic.h"; then
7918 ac_x_includes=$ac_dir
7919 break
7920 fi
7921done
7922fi
7923rm -f conftest.err conftest.$ac_ext
7924fi # $ac_x_includes = no
7925
7926if test "$ac_x_libraries" = no; then
7927 # Check for the libraries.
7928 # See if we find them without any special options.
7929 # Don't add to $LIBS permanently.
7930 ac_save_LIBS=$LIBS
7931 LIBS="-lXt $LIBS"
7932 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
7933/* confdefs.h. */
7934_ACEOF
7935cat confdefs.h >>conftest.$ac_ext
7936cat >>conftest.$ac_ext <<_ACEOF
7937/* end confdefs.h. */
98418dba 7938#include <X11/Intrinsic.h>
98418dba
CW
7939int
7940main ()
7941{
7942XtMalloc (0)
7943 ;
7944 return 0;
7945}
7946_ACEOF
7947rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 7948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 7949 (eval $ac_link) 2>conftest.er1
98418dba 7950 ac_status=$?
35996d22
AS
7951 grep -v '^ *+' conftest.er1 >conftest.err
7952 rm -f conftest.er1
7953 cat conftest.err >&5
c0d27fcc 7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 7955 (exit $ac_status); } &&
35996d22
AS
7956 { ac_try='test -z "$ac_c_werror_flag"
7957 || test ! -s conftest.err'
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 (eval $ac_try) 2>&5
7960 ac_status=$?
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; } &&
7963 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
c0d27fcc 7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
7968 (exit $ac_status); }; }; then
7969 LIBS=$ac_save_LIBS
7970# We can link X programs with no special library path.
7971ac_x_libraries=
7972else
7973 echo "$as_me: failed program was:" >&5
19650fd6
AS
7974sed 's/^/| /' conftest.$ac_ext >&5
7975
98418dba
CW
7976LIBS=$ac_save_LIBS
7977for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7978do
7979 # Don't even attempt the hair of trying to link an X program!
7980 for ac_extension in a so sl; do
7981 if test -r $ac_dir/libXt.$ac_extension; then
7982 ac_x_libraries=$ac_dir
7983 break 2
7984 fi
7985 done
7986done
7987fi
35996d22
AS
7988rm -f conftest.err conftest.$ac_objext \
7989 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
7990fi # $ac_x_libraries = no
7991
7992if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7993 # Didn't find X anywhere. Cache the known absence of X.
7994 ac_cv_have_x="have_x=no"
7995else
7996 # Record where we found X for the cache.
7997 ac_cv_have_x="have_x=yes \
35996d22 7998 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
98418dba
CW
7999fi
8000fi
8001
8002 fi
8003 eval "$ac_cv_have_x"
8004fi # $with_x != no
8005
8006if test "$have_x" != yes; then
c0d27fcc 8007 echo "$as_me:$LINENO: result: $have_x" >&5
98418dba
CW
8008echo "${ECHO_T}$have_x" >&6
8009 no_x=yes
8010else
8011 # If each of the values was on the command line, it overrides each guess.
8012 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8013 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8014 # Update the cache value to reflect the command line values.
8015 ac_cv_have_x="have_x=yes \
8016 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
c0d27fcc 8017 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
98418dba
CW
8018echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8019fi
8020
8021if test "$no_x" = yes; then
8022 window_system=none
8023else
8024 window_system=x11
8025fi
8026
8027if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8028 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8029 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8030 x_default_search_path=""
8031 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8032 x_search_path="\
8033${x_library}/X11/%L/%T/%N%C%S:\
8034${x_library}/X11/%l/%T/%N%C%S:\
8035${x_library}/X11/%T/%N%C%S:\
8036${x_library}/X11/%L/%T/%N%S:\
8037${x_library}/X11/%l/%T/%N%S:\
8038${x_library}/X11/%T/%N%S"
8039 if test x"${x_default_search_path}" = x; then
8040 x_default_search_path=${x_search_path}
8041 else
8042 x_default_search_path="${x_search_path}:${x_default_search_path}"
8043 fi
8044 done
8045fi
8046if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8047 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8048fi
8049
8050if test x"${x_includes}" = x; then
8051 bitmapdir=/usr/include/X11/bitmaps
8052else
8053 # accumulate include directories that have X11 bitmap subdirectories
8054 bmd_acc="dummyval"
8055 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8056 if test -d "${bmd}/X11/bitmaps"; then
8057 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8058 fi
8059 if test -d "${bmd}/bitmaps"; then
8060 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8061 fi
8062 done
8063 if test ${bmd_acc} != "dummyval"; then
8064 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8065 fi
8066fi
8067
8068case "${window_system}" in
8069 x11 )
8070 HAVE_X_WINDOWS=yes
8071 HAVE_X11=yes
8072 case "${with_x_toolkit}" in
8073 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8074 motif ) USE_X_TOOLKIT=MOTIF ;;
488dd4c4
JD
8075 gtk ) with_gtk=yes
8076 USE_X_TOOLKIT=none ;;
98418dba
CW
8077 no ) USE_X_TOOLKIT=none ;;
8078 * ) USE_X_TOOLKIT=maybe ;;
8079 esac
8080 ;;
8081 none )
8082 HAVE_X_WINDOWS=no
8083 HAVE_X11=no
8084 USE_X_TOOLKIT=none
8085 ;;
8086esac
8087
8088### If we're using X11, we should use the X menu package.
8089HAVE_MENUS=no
8090case ${HAVE_X11} in
8091 yes ) HAVE_MENUS=yes ;;
8092esac
8093
8094if test "${opsys}" = "hpux9"; then
8095 case "${x_libraries}" in
8096 *X11R4* )
8097 opsysfile="s/hpux9-x11r4.h"
8098 ;;
8099 esac
8100fi
8101
8102if test "${opsys}" = "hpux9shr"; then
8103 case "${x_libraries}" in
8104 *X11R4* )
8105 opsysfile="s/hpux9shxr4.h"
8106 ;;
8107 esac
8108fi
8109
8110### Compute the unexec source name from the object name.
8111UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8112
8113# Do the opsystem or machine files prohibit the use of the GNU malloc?
8114# Assume not, until told otherwise.
8115GNU_MALLOC=yes
8116doug_lea_malloc=yes
c0d27fcc 8117echo "$as_me:$LINENO: checking for malloc_get_state" >&5
98418dba
CW
8118echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8119if test "${ac_cv_func_malloc_get_state+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121else
8122 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8123/* confdefs.h. */
8124_ACEOF
8125cat confdefs.h >>conftest.$ac_ext
8126cat >>conftest.$ac_ext <<_ACEOF
8127/* end confdefs.h. */
35996d22
AS
8128/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8130#define malloc_get_state innocuous_malloc_get_state
8131
98418dba 8132/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
8133 which can conflict with char malloc_get_state (); below.
8134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8135 <limits.h> exists even on freestanding compilers. */
35996d22 8136
19650fd6
AS
8137#ifdef __STDC__
8138# include <limits.h>
8139#else
8140# include <assert.h>
8141#endif
35996d22
AS
8142
8143#undef malloc_get_state
8144
98418dba
CW
8145/* Override any gcc2 internal prototype to avoid an error. */
8146#ifdef __cplusplus
8147extern "C"
19650fd6 8148{
98418dba
CW
8149#endif
8150/* We use char because int might match the return type of a gcc2
8151 builtin and then its argument prototype would still apply. */
8152char malloc_get_state ();
98418dba
CW
8153/* The GNU C library defines this for functions which it implements
8154 to always fail with ENOSYS. Some functions are actually named
8155 something starting with __ and the normal name is an alias. */
8156#if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8157choke me
8158#else
19650fd6
AS
8159char (*f) () = malloc_get_state;
8160#endif
8161#ifdef __cplusplus
8162}
98418dba
CW
8163#endif
8164
19650fd6
AS
8165int
8166main ()
8167{
8168return f != malloc_get_state;
98418dba
CW
8169 ;
8170 return 0;
8171}
8172_ACEOF
8173rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 8174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 8175 (eval $ac_link) 2>conftest.er1
98418dba 8176 ac_status=$?
35996d22
AS
8177 grep -v '^ *+' conftest.er1 >conftest.err
8178 rm -f conftest.er1
8179 cat conftest.err >&5
c0d27fcc 8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8181 (exit $ac_status); } &&
35996d22
AS
8182 { ac_try='test -z "$ac_c_werror_flag"
8183 || test ! -s conftest.err'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 (eval $ac_try) 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; } &&
8189 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
8191 (eval $ac_try) 2>&5
8192 ac_status=$?
c0d27fcc 8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
8194 (exit $ac_status); }; }; then
8195 ac_cv_func_malloc_get_state=yes
8196else
8197 echo "$as_me: failed program was:" >&5
19650fd6
AS
8198sed 's/^/| /' conftest.$ac_ext >&5
8199
98418dba
CW
8200ac_cv_func_malloc_get_state=no
8201fi
35996d22
AS
8202rm -f conftest.err conftest.$ac_objext \
8203 conftest$ac_exeext conftest.$ac_ext
98418dba 8204fi
c0d27fcc 8205echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
98418dba
CW
8206echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8207if test $ac_cv_func_malloc_get_state = yes; then
8208 :
8209else
8210 doug_lea_malloc=no
8211fi
8212
c0d27fcc 8213echo "$as_me:$LINENO: checking for malloc_set_state" >&5
98418dba
CW
8214echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8215if test "${ac_cv_func_malloc_set_state+set}" = set; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8217else
8218 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8219/* confdefs.h. */
8220_ACEOF
8221cat confdefs.h >>conftest.$ac_ext
8222cat >>conftest.$ac_ext <<_ACEOF
8223/* end confdefs.h. */
35996d22
AS
8224/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8226#define malloc_set_state innocuous_malloc_set_state
8227
98418dba 8228/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
8229 which can conflict with char malloc_set_state (); below.
8230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8231 <limits.h> exists even on freestanding compilers. */
35996d22 8232
19650fd6
AS
8233#ifdef __STDC__
8234# include <limits.h>
8235#else
8236# include <assert.h>
8237#endif
35996d22
AS
8238
8239#undef malloc_set_state
8240
98418dba
CW
8241/* Override any gcc2 internal prototype to avoid an error. */
8242#ifdef __cplusplus
8243extern "C"
19650fd6 8244{
98418dba
CW
8245#endif
8246/* We use char because int might match the return type of a gcc2
8247 builtin and then its argument prototype would still apply. */
8248char malloc_set_state ();
98418dba
CW
8249/* The GNU C library defines this for functions which it implements
8250 to always fail with ENOSYS. Some functions are actually named
8251 something starting with __ and the normal name is an alias. */
8252#if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8253choke me
8254#else
19650fd6
AS
8255char (*f) () = malloc_set_state;
8256#endif
8257#ifdef __cplusplus
8258}
98418dba
CW
8259#endif
8260
19650fd6
AS
8261int
8262main ()
8263{
8264return f != malloc_set_state;
98418dba
CW
8265 ;
8266 return 0;
8267}
8268_ACEOF
8269rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 8270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 8271 (eval $ac_link) 2>conftest.er1
98418dba 8272 ac_status=$?
35996d22
AS
8273 grep -v '^ *+' conftest.er1 >conftest.err
8274 rm -f conftest.er1
8275 cat conftest.err >&5
c0d27fcc 8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8277 (exit $ac_status); } &&
35996d22
AS
8278 { ac_try='test -z "$ac_c_werror_flag"
8279 || test ! -s conftest.err'
8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 (eval $ac_try) 2>&5
8282 ac_status=$?
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; } &&
8285 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 8286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
8287 (eval $ac_try) 2>&5
8288 ac_status=$?
c0d27fcc 8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
8290 (exit $ac_status); }; }; then
8291 ac_cv_func_malloc_set_state=yes
8292else
8293 echo "$as_me: failed program was:" >&5
19650fd6
AS
8294sed 's/^/| /' conftest.$ac_ext >&5
8295
98418dba
CW
8296ac_cv_func_malloc_set_state=no
8297fi
35996d22
AS
8298rm -f conftest.err conftest.$ac_objext \
8299 conftest$ac_exeext conftest.$ac_ext
98418dba 8300fi
c0d27fcc 8301echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
98418dba
CW
8302echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8303if test $ac_cv_func_malloc_set_state = yes; then
8304 :
8305else
8306 doug_lea_malloc=no
8307fi
8308
c0d27fcc 8309echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
98418dba
CW
8310echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8311if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313else
8314 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8315/* confdefs.h. */
8316_ACEOF
8317cat confdefs.h >>conftest.$ac_ext
8318cat >>conftest.$ac_ext <<_ACEOF
8319/* end confdefs.h. */
98418dba 8320extern void (* __after_morecore_hook)();
98418dba
CW
8321int
8322main ()
8323{
8324__after_morecore_hook = 0
8325 ;
8326 return 0;
8327}
8328_ACEOF
8329rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 8330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 8331 (eval $ac_link) 2>conftest.er1
98418dba 8332 ac_status=$?
35996d22
AS
8333 grep -v '^ *+' conftest.er1 >conftest.err
8334 rm -f conftest.er1
8335 cat conftest.err >&5
c0d27fcc 8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8337 (exit $ac_status); } &&
35996d22
AS
8338 { ac_try='test -z "$ac_c_werror_flag"
8339 || test ! -s conftest.err'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 (eval $ac_try) 2>&5
8342 ac_status=$?
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; } &&
8345 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
8347 (eval $ac_try) 2>&5
8348 ac_status=$?
c0d27fcc 8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
8350 (exit $ac_status); }; }; then
8351 emacs_cv_var___after_morecore_hook=yes
8352else
8353 echo "$as_me: failed program was:" >&5
19650fd6
AS
8354sed 's/^/| /' conftest.$ac_ext >&5
8355
98418dba
CW
8356emacs_cv_var___after_morecore_hook=no
8357fi
35996d22
AS
8358rm -f conftest.err conftest.$ac_objext \
8359 conftest$ac_exeext conftest.$ac_ext
98418dba 8360fi
c0d27fcc 8361echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
98418dba
CW
8362echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8363if test $emacs_cv_var___after_morecore_hook = no; then
8364 doug_lea_malloc=no
8365fi
8366if test "${system_malloc}" = "yes"; then
8367 GNU_MALLOC=no
8368 GNU_MALLOC_reason="
8369 (The GNU allocators don't work with this system configuration.)"
8370fi
8371if test "$doug_lea_malloc" = "yes" ; then
8372 if test "$GNU_MALLOC" = yes ; then
8373 GNU_MALLOC_reason="
8374 (Using Doug Lea's new malloc from the GNU C Library.)"
8375 fi
b936fae4 8376
c0d27fcc 8377cat >>confdefs.h <<\_ACEOF
98418dba 8378#define DOUG_LEA_MALLOC 1
c0d27fcc 8379_ACEOF
98418dba
CW
8380
8381fi
8382
8383if test x"${REL_ALLOC}" = x; then
8384 REL_ALLOC=${GNU_MALLOC}
8385fi
8386
8387
c0d27fcc
MR
8388
8389
8390for ac_header in stdlib.h unistd.h
98418dba
CW
8391do
8392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
8393if eval "test \"\${$as_ac_Header+set}\" = set"; then
8394 echo "$as_me:$LINENO: checking for $ac_header" >&5
98418dba
CW
8395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8396if eval "test \"\${$as_ac_Header+set}\" = set"; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
8398fi
8399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 8401else
c0d27fcc
MR
8402 # Is the header compilable?
8403echo "$as_me:$LINENO: checking $ac_header usability" >&5
8404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8405cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8406/* confdefs.h. */
8407_ACEOF
8408cat confdefs.h >>conftest.$ac_ext
8409cat >>conftest.$ac_ext <<_ACEOF
8410/* end confdefs.h. */
98418dba
CW
8411$ac_includes_default
8412#include <$ac_header>
8413_ACEOF
8414rm -f conftest.$ac_objext
c0d27fcc 8415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 8416 (eval $ac_compile) 2>conftest.er1
98418dba 8417 ac_status=$?
35996d22
AS
8418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
c0d27fcc 8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8422 (exit $ac_status); } &&
35996d22
AS
8423 { ac_try='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
8432 (eval $ac_try) 2>&5
8433 ac_status=$?
c0d27fcc 8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8435 (exit $ac_status); }; }; then
c0d27fcc 8436 ac_header_compiler=yes
98418dba
CW
8437else
8438 echo "$as_me: failed program was:" >&5
19650fd6
AS
8439sed 's/^/| /' conftest.$ac_ext >&5
8440
c0d27fcc 8441ac_header_compiler=no
98418dba 8442fi
35996d22 8443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
8444echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8445echo "${ECHO_T}$ac_header_compiler" >&6
98418dba 8446
c0d27fcc
MR
8447# Is the header present?
8448echo "$as_me:$LINENO: checking $ac_header presence" >&5
8449echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8450cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8451/* confdefs.h. */
8452_ACEOF
8453cat confdefs.h >>conftest.$ac_ext
8454cat >>conftest.$ac_ext <<_ACEOF
8455/* end confdefs.h. */
98418dba
CW
8456#include <$ac_header>
8457_ACEOF
c0d27fcc 8458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
8459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8460 ac_status=$?
6bae0ccf 8461 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
8462 rm -f conftest.er1
8463 cat conftest.err >&5
c0d27fcc 8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
8465 (exit $ac_status); } >/dev/null; then
8466 if test -s conftest.err; then
8467 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 8468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
8469 else
8470 ac_cpp_err=
8471 fi
8472else
8473 ac_cpp_err=yes
8474fi
8475if test -z "$ac_cpp_err"; then
c0d27fcc 8476 ac_header_preproc=yes
98418dba
CW
8477else
8478 echo "$as_me: failed program was:" >&5
19650fd6
AS
8479sed 's/^/| /' conftest.$ac_ext >&5
8480
c0d27fcc 8481 ac_header_preproc=no
98418dba
CW
8482fi
8483rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
8484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8485echo "${ECHO_T}$ac_header_preproc" >&6
8486
8487# So? What about this header?
35996d22
AS
8488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8489 yes:no: )
c0d27fcc
MR
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8491echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8493echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8494 ac_header_preproc=yes
19650fd6 8495 ;;
35996d22 8496 no:yes:* )
c0d27fcc
MR
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8498echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8500echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8502echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8504echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 8505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 8506echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
8507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8508echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
8509 (
8510 cat <<\_ASBOX
35996d22
AS
8511## ------------------------------------------ ##
8512## Report this to the AC_PACKAGE_NAME lists. ##
8513## ------------------------------------------ ##
19650fd6
AS
8514_ASBOX
8515 ) |
8516 sed "s/^/$as_me: WARNING: /" >&2
8517 ;;
c0d27fcc
MR
8518esac
8519echo "$as_me:$LINENO: checking for $ac_header" >&5
8520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8521if eval "test \"\${$as_ac_Header+set}\" = set"; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8523else
35996d22 8524 eval "$as_ac_Header=\$ac_header_preproc"
98418dba 8525fi
c0d27fcc 8526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
98418dba 8527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
8528
8529fi
98418dba 8530if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 8531 cat >>confdefs.h <<_ACEOF
98418dba 8532#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 8533_ACEOF
98418dba
CW
8534
8535fi
c0d27fcc 8536
98418dba
CW
8537done
8538
c0d27fcc 8539
98418dba
CW
8540for ac_func in getpagesize
8541do
8542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 8543echo "$as_me:$LINENO: checking for $ac_func" >&5
98418dba
CW
8544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8545if eval "test \"\${$as_ac_var+set}\" = set"; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547else
8548 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8549/* confdefs.h. */
8550_ACEOF
8551cat confdefs.h >>conftest.$ac_ext
8552cat >>conftest.$ac_ext <<_ACEOF
8553/* end confdefs.h. */
35996d22
AS
8554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8556#define $ac_func innocuous_$ac_func
8557
98418dba 8558/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
8559 which can conflict with char $ac_func (); below.
8560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8561 <limits.h> exists even on freestanding compilers. */
35996d22 8562
19650fd6
AS
8563#ifdef __STDC__
8564# include <limits.h>
8565#else
8566# include <assert.h>
8567#endif
35996d22
AS
8568
8569#undef $ac_func
8570
98418dba
CW
8571/* Override any gcc2 internal prototype to avoid an error. */
8572#ifdef __cplusplus
8573extern "C"
19650fd6 8574{
98418dba
CW
8575#endif
8576/* We use char because int might match the return type of a gcc2
8577 builtin and then its argument prototype would still apply. */
8578char $ac_func ();
98418dba
CW
8579/* The GNU C library defines this for functions which it implements
8580 to always fail with ENOSYS. Some functions are actually named
8581 something starting with __ and the normal name is an alias. */
8582#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8583choke me
8584#else
19650fd6
AS
8585char (*f) () = $ac_func;
8586#endif
8587#ifdef __cplusplus
8588}
98418dba
CW
8589#endif
8590
19650fd6
AS
8591int
8592main ()
8593{
8594return f != $ac_func;
98418dba
CW
8595 ;
8596 return 0;
8597}
8598_ACEOF
8599rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 8600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 8601 (eval $ac_link) 2>conftest.er1
98418dba 8602 ac_status=$?
35996d22
AS
8603 grep -v '^ *+' conftest.er1 >conftest.err
8604 rm -f conftest.er1
8605 cat conftest.err >&5
c0d27fcc 8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8607 (exit $ac_status); } &&
35996d22
AS
8608 { ac_try='test -z "$ac_c_werror_flag"
8609 || test ! -s conftest.err'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 (eval $ac_try) 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; } &&
8615 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
8617 (eval $ac_try) 2>&5
8618 ac_status=$?
c0d27fcc 8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
8620 (exit $ac_status); }; }; then
8621 eval "$as_ac_var=yes"
8622else
8623 echo "$as_me: failed program was:" >&5
19650fd6
AS
8624sed 's/^/| /' conftest.$ac_ext >&5
8625
98418dba
CW
8626eval "$as_ac_var=no"
8627fi
35996d22
AS
8628rm -f conftest.err conftest.$ac_objext \
8629 conftest$ac_exeext conftest.$ac_ext
98418dba 8630fi
c0d27fcc 8631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
98418dba
CW
8632echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8633if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 8634 cat >>confdefs.h <<_ACEOF
98418dba 8635#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 8636_ACEOF
98418dba
CW
8637
8638fi
8639done
8640
c0d27fcc 8641echo "$as_me:$LINENO: checking for working mmap" >&5
98418dba
CW
8642echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8643if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645else
8646 if test "$cross_compiling" = yes; then
8647 ac_cv_func_mmap_fixed_mapped=no
8648else
8649 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8650/* confdefs.h. */
8651_ACEOF
8652cat confdefs.h >>conftest.$ac_ext
8653cat >>conftest.$ac_ext <<_ACEOF
8654/* end confdefs.h. */
98418dba 8655$ac_includes_default
c0d27fcc
MR
8656/* malloc might have been renamed as rpl_malloc. */
8657#undef malloc
8658
98418dba
CW
8659/* Thanks to Mike Haertel and Jim Avera for this test.
8660 Here is a matrix of mmap possibilities:
8661 mmap private not fixed
8662 mmap private fixed at somewhere currently unmapped
8663 mmap private fixed at somewhere already mapped
8664 mmap shared not fixed
8665 mmap shared fixed at somewhere currently unmapped
8666 mmap shared fixed at somewhere already mapped
8667 For private mappings, we should verify that changes cannot be read()
8668 back from the file, nor mmap's back from the file at a different
8669 address. (There have been systems where private was not correctly
8670 implemented like the infamous i386 svr4.0, and systems where the
8671 VM page cache was not coherent with the file system buffer cache
8672 like early versions of FreeBSD and possibly contemporary NetBSD.)
8673 For shared mappings, we should conversely verify that changes get
c0d27fcc 8674 propagated back to all the places they're supposed to be.
98418dba
CW
8675
8676 Grep wants private fixed already mapped.
8677 The main things grep needs to know about mmap are:
8678 * does it exist and is it safe to write into the mmap'd area
8679 * how to use it (BSD variants) */
8680
8681#include <fcntl.h>
8682#include <sys/mman.h>
8683
8684#if !STDC_HEADERS && !HAVE_STDLIB_H
8685char *malloc ();
8686#endif
8687
8688/* This mess was copied from the GNU getpagesize.h. */
8689#if !HAVE_GETPAGESIZE
8690/* Assume that all systems that can run configure have sys/param.h. */
8691# if !HAVE_SYS_PARAM_H
8692# define HAVE_SYS_PARAM_H 1
8693# endif
8694
8695# ifdef _SC_PAGESIZE
8696# define getpagesize() sysconf(_SC_PAGESIZE)
8697# else /* no _SC_PAGESIZE */
8698# if HAVE_SYS_PARAM_H
8699# include <sys/param.h>
8700# ifdef EXEC_PAGESIZE
8701# define getpagesize() EXEC_PAGESIZE
8702# else /* no EXEC_PAGESIZE */
8703# ifdef NBPG
8704# define getpagesize() NBPG * CLSIZE
8705# ifndef CLSIZE
8706# define CLSIZE 1
8707# endif /* no CLSIZE */
8708# else /* no NBPG */
8709# ifdef NBPC
8710# define getpagesize() NBPC
8711# else /* no NBPC */
8712# ifdef PAGESIZE
8713# define getpagesize() PAGESIZE
8714# endif /* PAGESIZE */
8715# endif /* no NBPC */
8716# endif /* no NBPG */
8717# endif /* no EXEC_PAGESIZE */
8718# else /* no HAVE_SYS_PARAM_H */
8719# define getpagesize() 8192 /* punt totally */
8720# endif /* no HAVE_SYS_PARAM_H */
8721# endif /* no _SC_PAGESIZE */
8722
8723#endif /* no HAVE_GETPAGESIZE */
8724
8725int
8726main ()
8727{
8728 char *data, *data2, *data3;
8729 int i, pagesize;
8730 int fd;
8731
8732 pagesize = getpagesize ();
8733
8734 /* First, make a file with some known garbage in it. */
8735 data = (char *) malloc (pagesize);
8736 if (!data)
8737 exit (1);
8738 for (i = 0; i < pagesize; ++i)
8739 *(data + i) = rand ();
8740 umask (0);
8741 fd = creat ("conftest.mmap", 0600);
8742 if (fd < 0)
8743 exit (1);
8744 if (write (fd, data, pagesize) != pagesize)
8745 exit (1);
8746 close (fd);
8747
8748 /* Next, try to mmap the file at a fixed address which already has
8749 something else allocated at it. If we can, also make sure that
8750 we see the same garbage. */
8751 fd = open ("conftest.mmap", O_RDWR);
8752 if (fd < 0)
8753 exit (1);
8754 data2 = (char *) malloc (2 * pagesize);
8755 if (!data2)
8756 exit (1);
35996d22 8757 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
98418dba 8758 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
35996d22 8759 MAP_PRIVATE | MAP_FIXED, fd, 0L))
98418dba
CW
8760 exit (1);
8761 for (i = 0; i < pagesize; ++i)
8762 if (*(data + i) != *(data2 + i))
8763 exit (1);
8764
8765 /* Finally, make sure that changes to the mapped area do not
8766 percolate back to the file as seen by read(). (This is a bug on
8767 some variants of i386 svr4.0.) */
8768 for (i = 0; i < pagesize; ++i)
8769 *(data2 + i) = *(data2 + i) + 1;
8770 data3 = (char *) malloc (pagesize);
8771 if (!data3)
8772 exit (1);
8773 if (read (fd, data3, pagesize) != pagesize)
8774 exit (1);
8775 for (i = 0; i < pagesize; ++i)
8776 if (*(data + i) != *(data3 + i))
8777 exit (1);
8778 close (fd);
8779 exit (0);
8780}
8781_ACEOF
8782rm -f conftest$ac_exeext
c0d27fcc 8783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
98418dba
CW
8784 (eval $ac_link) 2>&5
8785 ac_status=$?
c0d27fcc 8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c0d27fcc 8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
8789 (eval $ac_try) 2>&5
8790 ac_status=$?
c0d27fcc 8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
8792 (exit $ac_status); }; }; then
8793 ac_cv_func_mmap_fixed_mapped=yes
8794else
8795 echo "$as_me: program exited with status $ac_status" >&5
8796echo "$as_me: failed program was:" >&5
19650fd6
AS
8797sed 's/^/| /' conftest.$ac_ext >&5
8798
c0d27fcc 8799( exit $ac_status )
98418dba
CW
8800ac_cv_func_mmap_fixed_mapped=no
8801fi
35996d22 8802rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
98418dba
CW
8803fi
8804fi
c0d27fcc 8805echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
98418dba
CW
8806echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8807if test $ac_cv_func_mmap_fixed_mapped = yes; then
8808
c0d27fcc 8809cat >>confdefs.h <<\_ACEOF
98418dba 8810#define HAVE_MMAP 1
c0d27fcc 8811_ACEOF
98418dba
CW
8812
8813fi
8814rm -f conftest.mmap
8815
8816if test $use_mmap_for_buffers = yes; then
8817 REL_ALLOC=no
8818fi
8819
8820LIBS="$libsrc_libs $LIBS"
8821
c0d27fcc
MR
8822
8823echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
98418dba
CW
8824echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8825if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8827else
8828 ac_check_lib_save_LIBS=$LIBS
8829LIBS="-ldnet $LIBS"
8830cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8831/* confdefs.h. */
8832_ACEOF
8833cat confdefs.h >>conftest.$ac_ext
8834cat >>conftest.$ac_ext <<_ACEOF
8835/* end confdefs.h. */
98418dba
CW
8836
8837/* Override any gcc2 internal prototype to avoid an error. */
8838#ifdef __cplusplus
8839extern "C"
8840#endif
8841/* We use char because int might match the return type of a gcc2
8842 builtin and then its argument prototype would still apply. */
8843char dnet_ntoa ();
98418dba
CW
8844int
8845main ()
8846{
8847dnet_ntoa ();
8848 ;
8849 return 0;
8850}
8851_ACEOF
8852rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 8853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 8854 (eval $ac_link) 2>conftest.er1
98418dba 8855 ac_status=$?
35996d22
AS
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
c0d27fcc 8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8860 (exit $ac_status); } &&
35996d22
AS
8861 { ac_try='test -z "$ac_c_werror_flag"
8862 || test ! -s conftest.err'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 (eval $ac_try) 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
8870 (eval $ac_try) 2>&5
8871 ac_status=$?
c0d27fcc 8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
8873 (exit $ac_status); }; }; then
8874 ac_cv_lib_dnet_dnet_ntoa=yes
8875else
8876 echo "$as_me: failed program was:" >&5
19650fd6
AS
8877sed 's/^/| /' conftest.$ac_ext >&5
8878
98418dba
CW
8879ac_cv_lib_dnet_dnet_ntoa=no
8880fi
35996d22
AS
8881rm -f conftest.err conftest.$ac_objext \
8882 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
8883LIBS=$ac_check_lib_save_LIBS
8884fi
c0d27fcc 8885echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
98418dba
CW
8886echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8887if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
c0d27fcc 8888 cat >>confdefs.h <<_ACEOF
98418dba 8889#define HAVE_LIBDNET 1
c0d27fcc 8890_ACEOF
98418dba
CW
8891
8892 LIBS="-ldnet $LIBS"
8893
8894fi
8895
c0d27fcc
MR
8896
8897echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
98418dba
CW
8898echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8899if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8901else
8902 ac_check_lib_save_LIBS=$LIBS
8903LIBS="-lXbsd $LIBS"
8904cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8905/* confdefs.h. */
8906_ACEOF
8907cat confdefs.h >>conftest.$ac_ext
8908cat >>conftest.$ac_ext <<_ACEOF
8909/* end confdefs.h. */
98418dba 8910
c0d27fcc 8911
98418dba
CW
8912int
8913main ()
8914{
8915main ();
8916 ;
8917 return 0;
8918}
8919_ACEOF
8920rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 8921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 8922 (eval $ac_link) 2>conftest.er1
98418dba 8923 ac_status=$?
35996d22
AS
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
c0d27fcc 8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8928 (exit $ac_status); } &&
35996d22
AS
8929 { ac_try='test -z "$ac_c_werror_flag"
8930 || test ! -s conftest.err'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
8938 (eval $ac_try) 2>&5
8939 ac_status=$?
c0d27fcc 8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
8941 (exit $ac_status); }; }; then
8942 ac_cv_lib_Xbsd_main=yes
8943else
8944 echo "$as_me: failed program was:" >&5
19650fd6
AS
8945sed 's/^/| /' conftest.$ac_ext >&5
8946
98418dba
CW
8947ac_cv_lib_Xbsd_main=no
8948fi
35996d22
AS
8949rm -f conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
8951LIBS=$ac_check_lib_save_LIBS
8952fi
c0d27fcc 8953echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
98418dba
CW
8954echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8955if test $ac_cv_lib_Xbsd_main = yes; then
8956 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8957fi
8958
c0d27fcc
MR
8959
8960
8961echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
98418dba
CW
8962echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
8963if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8965else
8966 ac_check_lib_save_LIBS=$LIBS
8967LIBS="-lpthreads $LIBS"
8968cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
8969/* confdefs.h. */
8970_ACEOF
8971cat confdefs.h >>conftest.$ac_ext
8972cat >>conftest.$ac_ext <<_ACEOF
8973/* end confdefs.h. */
98418dba
CW
8974
8975/* Override any gcc2 internal prototype to avoid an error. */
8976#ifdef __cplusplus
8977extern "C"
8978#endif
8979/* We use char because int might match the return type of a gcc2
8980 builtin and then its argument prototype would still apply. */
8981char cma_open ();
98418dba
CW
8982int
8983main ()
8984{
8985cma_open ();
8986 ;
8987 return 0;
8988}
8989_ACEOF
8990rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 8991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 8992 (eval $ac_link) 2>conftest.er1
98418dba 8993 ac_status=$?
35996d22
AS
8994 grep -v '^ *+' conftest.er1 >conftest.err
8995 rm -f conftest.er1
8996 cat conftest.err >&5
c0d27fcc 8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 8998 (exit $ac_status); } &&
35996d22
AS
8999 { ac_try='test -z "$ac_c_werror_flag"
9000 || test ! -s conftest.err'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 (eval $ac_try) 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'
c0d27fcc 9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9008 (eval $ac_try) 2>&5
9009 ac_status=$?
c0d27fcc 9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
9011 (exit $ac_status); }; }; then
9012 ac_cv_lib_pthreads_cma_open=yes
9013else
9014 echo "$as_me: failed program was:" >&5
19650fd6
AS
9015sed 's/^/| /' conftest.$ac_ext >&5
9016
98418dba
CW
9017ac_cv_lib_pthreads_cma_open=no
9018fi
35996d22
AS
9019rm -f conftest.err conftest.$ac_objext \
9020 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
9021LIBS=$ac_check_lib_save_LIBS
9022fi
c0d27fcc 9023echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
98418dba
CW
9024echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9025if test $ac_cv_lib_pthreads_cma_open = yes; then
c0d27fcc 9026 cat >>confdefs.h <<_ACEOF
98418dba 9027#define HAVE_LIBPTHREADS 1
c0d27fcc 9028_ACEOF
98418dba
CW
9029
9030 LIBS="-lpthreads $LIBS"
9031
9032fi
9033
c0d27fcc
MR
9034
9035echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
98418dba
CW
9036echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9037if test -d /usr/X386/include; then
9038 HAVE_XFREE386=yes
9039 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9040else
9041 HAVE_XFREE386=no
9042fi
c0d27fcc 9043echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
98418dba
CW
9044echo "${ECHO_T}$HAVE_XFREE386" >&6
9045
55597d70
DL
9046
9047case ${host_os} in
9048aix*)
9049 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9050echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9051if test "${gdb_cv_bigtoc+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9053else
9054
9055 case $GCC in
9056 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9057 *) gdb_cv_bigtoc=-bbigtoc ;;
9058 esac
9059
9060 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9061 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9062/* confdefs.h. */
9063_ACEOF
9064cat confdefs.h >>conftest.$ac_ext
9065cat >>conftest.$ac_ext <<_ACEOF
9066/* end confdefs.h. */
55597d70
DL
9067
9068int
9069main ()
9070{
9071int i;
9072 ;
9073 return 0;
9074}
9075_ACEOF
9076rm -f conftest.$ac_objext conftest$ac_exeext
9077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9078 (eval $ac_link) 2>conftest.er1
55597d70 9079 ac_status=$?
35996d22
AS
9080 grep -v '^ *+' conftest.er1 >conftest.err
9081 rm -f conftest.er1
9082 cat conftest.err >&5
55597d70
DL
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } &&
35996d22
AS
9085 { ac_try='test -z "$ac_c_werror_flag"
9086 || test ! -s conftest.err'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 (eval $ac_try) 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; } &&
9092 { ac_try='test -s conftest$ac_exeext'
55597d70
DL
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 (eval $ac_try) 2>&5
9095 ac_status=$?
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; }; then
9098 :
9099else
9100 echo "$as_me: failed program was:" >&5
19650fd6
AS
9101sed 's/^/| /' conftest.$ac_ext >&5
9102
55597d70
DL
9103gdb_cv_bigtoc=
9104fi
35996d22
AS
9105rm -f conftest.err conftest.$ac_objext \
9106 conftest$ac_exeext conftest.$ac_ext
55597d70
DL
9107
9108fi
9109echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9110echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9111 ;;
9112esac
9113
ae1a998c
RS
9114# Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9115# used for the tests that follow. We set them back to REAL_CFLAGS and
9116# REAL_CPPFLAGS later on.
98418dba
CW
9117
9118REAL_CPPFLAGS="$CPPFLAGS"
9119
9120if test "${HAVE_X11}" = "yes"; then
9121 DEFS="$C_SWITCH_X_SITE $DEFS"
9122 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9123 LIBS="$LIBX $LIBS"
9124 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9125 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9126
9127 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9128 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9129 # but it's more convenient here to set LD_RUN_PATH
9130 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9131 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9132 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9133 export LD_RUN_PATH
9134 fi
9135
9136 if test "${opsys}" = "gnu-linux"; then
c0d27fcc 9137 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
98418dba
CW
9138echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9139 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9140/* confdefs.h. */
9141_ACEOF
9142cat confdefs.h >>conftest.$ac_ext
9143cat >>conftest.$ac_ext <<_ACEOF
9144/* end confdefs.h. */
98418dba 9145
98418dba
CW
9146int
9147main ()
9148{
9149XOpenDisplay ("foo");
9150 ;
9151 return 0;
9152}
9153_ACEOF
9154rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9156 (eval $ac_link) 2>conftest.er1
98418dba 9157 ac_status=$?
35996d22
AS
9158 grep -v '^ *+' conftest.er1 >conftest.err
9159 rm -f conftest.er1
9160 cat conftest.err >&5
c0d27fcc 9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 9162 (exit $ac_status); } &&
35996d22
AS
9163 { ac_try='test -z "$ac_c_werror_flag"
9164 || test ! -s conftest.err'
c0d27fcc 9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
c0d27fcc 9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996d22
AS
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest$ac_exeext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176 xlinux_first_failure=no
98418dba
CW
9177else
9178 echo "$as_me: failed program was:" >&5
19650fd6
AS
9179sed 's/^/| /' conftest.$ac_ext >&5
9180
98418dba
CW
9181xlinux_first_failure=yes
9182fi
35996d22
AS
9183rm -f conftest.err conftest.$ac_objext \
9184 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
9185 if test "${xlinux_first_failure}" = "yes"; then
9186 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9187 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9188 OLD_CPPFLAGS="$CPPFLAGS"
9189 OLD_LIBS="$LIBS"
9190 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9191 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9192 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9193 LIBS="$LIBS -b i486-linuxaout"
9194 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9195/* confdefs.h. */
9196_ACEOF
9197cat confdefs.h >>conftest.$ac_ext
9198cat >>conftest.$ac_ext <<_ACEOF
9199/* end confdefs.h. */
98418dba 9200
98418dba
CW
9201int
9202main ()
9203{
9204XOpenDisplay ("foo");
9205 ;
9206 return 0;
9207}
9208_ACEOF
9209rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9211 (eval $ac_link) 2>conftest.er1
98418dba 9212 ac_status=$?
35996d22
AS
9213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
c0d27fcc 9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 9217 (exit $ac_status); } &&
35996d22
AS
9218 { ac_try='test -z "$ac_c_werror_flag"
9219 || test ! -s conftest.err'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 (eval $ac_try) 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; } &&
9225 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9227 (eval $ac_try) 2>&5
9228 ac_status=$?
c0d27fcc 9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
9230 (exit $ac_status); }; }; then
9231 xlinux_second_failure=no
9232else
9233 echo "$as_me: failed program was:" >&5
19650fd6
AS
9234sed 's/^/| /' conftest.$ac_ext >&5
9235
98418dba
CW
9236xlinux_second_failure=yes
9237fi
35996d22
AS
9238rm -f conftest.err conftest.$ac_objext \
9239 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
9240 if test "${xlinux_second_failure}" = "yes"; then
9241 # If we get the same failure with -b, there is no use adding -b.
9242 # So take it out. This plays safe.
9243 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9244 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9245 CPPFLAGS="$OLD_CPPFLAGS"
9246 LIBS="$OLD_LIBS"
c0d27fcc 9247 echo "$as_me:$LINENO: result: no" >&5
98418dba
CW
9248echo "${ECHO_T}no" >&6
9249 else
c0d27fcc 9250 echo "$as_me:$LINENO: result: yes" >&5
98418dba
CW
9251echo "${ECHO_T}yes" >&6
9252 fi
9253 else
c0d27fcc 9254 echo "$as_me:$LINENO: result: no" >&5
98418dba
CW
9255echo "${ECHO_T}no" >&6
9256 fi
9257 fi
9258
9259 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9260 # header files included from there.
c0d27fcc 9261 echo "$as_me:$LINENO: checking for Xkb" >&5
98418dba
CW
9262echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9263 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9264/* confdefs.h. */
9265_ACEOF
9266cat confdefs.h >>conftest.$ac_ext
9267cat >>conftest.$ac_ext <<_ACEOF
9268/* end confdefs.h. */
98418dba
CW
9269#include <X11/Xlib.h>
9270#include <X11/XKBlib.h>
98418dba
CW
9271int
9272main ()
9273{
9274XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9275 ;
9276 return 0;
9277}
9278_ACEOF
9279rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9281 (eval $ac_link) 2>conftest.er1
98418dba 9282 ac_status=$?
35996d22
AS
9283 grep -v '^ *+' conftest.er1 >conftest.err
9284 rm -f conftest.er1
9285 cat conftest.err >&5
c0d27fcc 9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 9287 (exit $ac_status); } &&
35996d22
AS
9288 { ac_try='test -z "$ac_c_werror_flag"
9289 || test ! -s conftest.err'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 (eval $ac_try) 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; } &&
9295 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9297 (eval $ac_try) 2>&5
9298 ac_status=$?
c0d27fcc 9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
9300 (exit $ac_status); }; }; then
9301 emacs_xkb=yes
9302else
9303 echo "$as_me: failed program was:" >&5
19650fd6
AS
9304sed 's/^/| /' conftest.$ac_ext >&5
9305
98418dba
CW
9306emacs_xkb=no
9307fi
35996d22
AS
9308rm -f conftest.err conftest.$ac_objext \
9309 conftest$ac_exeext conftest.$ac_ext
c0d27fcc 9310 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
98418dba
CW
9311echo "${ECHO_T}$emacs_xkb" >&6
9312 if test $emacs_xkb = yes; then
b936fae4 9313
c0d27fcc 9314cat >>confdefs.h <<\_ACEOF
98418dba 9315#define HAVE_XKBGETKEYBOARD 1
c0d27fcc 9316_ACEOF
98418dba
CW
9317
9318 fi
9319
c0d27fcc
MR
9320
9321
9322
9323
98418dba
CW
9324for ac_func in XrmSetDatabase XScreenResourceString \
9325XScreenNumberOfScreen XSetWMProtocols
9326do
9327as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 9328echo "$as_me:$LINENO: checking for $ac_func" >&5
98418dba
CW
9329echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9330if eval "test \"\${$as_ac_var+set}\" = set"; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332else
9333 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9334/* confdefs.h. */
9335_ACEOF
9336cat confdefs.h >>conftest.$ac_ext
9337cat >>conftest.$ac_ext <<_ACEOF
9338/* end confdefs.h. */
35996d22
AS
9339/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9341#define $ac_func innocuous_$ac_func
9342
98418dba 9343/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
9344 which can conflict with char $ac_func (); below.
9345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9346 <limits.h> exists even on freestanding compilers. */
35996d22 9347
19650fd6
AS
9348#ifdef __STDC__
9349# include <limits.h>
9350#else
9351# include <assert.h>
9352#endif
35996d22
AS
9353
9354#undef $ac_func
9355
98418dba
CW
9356/* Override any gcc2 internal prototype to avoid an error. */
9357#ifdef __cplusplus
9358extern "C"
19650fd6 9359{
98418dba
CW
9360#endif
9361/* We use char because int might match the return type of a gcc2
9362 builtin and then its argument prototype would still apply. */
9363char $ac_func ();
98418dba
CW
9364/* The GNU C library defines this for functions which it implements
9365 to always fail with ENOSYS. Some functions are actually named
9366 something starting with __ and the normal name is an alias. */
9367#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9368choke me
9369#else
19650fd6
AS
9370char (*f) () = $ac_func;
9371#endif
9372#ifdef __cplusplus
9373}
98418dba
CW
9374#endif
9375
19650fd6
AS
9376int
9377main ()
9378{
9379return f != $ac_func;
98418dba
CW
9380 ;
9381 return 0;
9382}
9383_ACEOF
9384rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9386 (eval $ac_link) 2>conftest.er1
98418dba 9387 ac_status=$?
35996d22
AS
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
c0d27fcc 9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 9392 (exit $ac_status); } &&
35996d22
AS
9393 { ac_try='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9402 (eval $ac_try) 2>&5
9403 ac_status=$?
c0d27fcc 9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
9405 (exit $ac_status); }; }; then
9406 eval "$as_ac_var=yes"
9407else
9408 echo "$as_me: failed program was:" >&5
19650fd6
AS
9409sed 's/^/| /' conftest.$ac_ext >&5
9410
98418dba
CW
9411eval "$as_ac_var=no"
9412fi
35996d22
AS
9413rm -f conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext conftest.$ac_ext
98418dba 9415fi
c0d27fcc 9416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
98418dba
CW
9417echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9418if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 9419 cat >>confdefs.h <<_ACEOF
98418dba 9420#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 9421_ACEOF
98418dba
CW
9422
9423fi
9424done
9425
9426fi
9427
9428if test "${window_system}" = "x11"; then
c0d27fcc 9429 echo "$as_me:$LINENO: checking X11 version 6" >&5
98418dba
CW
9430echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9431 if test "${emacs_cv_x11_version_6+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9433else
9434 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9435/* confdefs.h. */
9436_ACEOF
9437cat confdefs.h >>conftest.$ac_ext
9438cat >>conftest.$ac_ext <<_ACEOF
9439/* end confdefs.h. */
98418dba 9440#include <X11/Xlib.h>
98418dba
CW
9441int
9442main ()
9443{
9444#if XlibSpecificationRelease < 6
9445fail;
9446#endif
9447
9448 ;
9449 return 0;
9450}
9451_ACEOF
9452rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9454 (eval $ac_link) 2>conftest.er1
98418dba 9455 ac_status=$?
35996d22
AS
9456 grep -v '^ *+' conftest.er1 >conftest.err
9457 rm -f conftest.er1
9458 cat conftest.err >&5
c0d27fcc 9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 9460 (exit $ac_status); } &&
35996d22
AS
9461 { ac_try='test -z "$ac_c_werror_flag"
9462 || test ! -s conftest.err'
9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 (eval $ac_try) 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; } &&
9468 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9470 (eval $ac_try) 2>&5
9471 ac_status=$?
c0d27fcc 9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
9473 (exit $ac_status); }; }; then
9474 emacs_cv_x11_version_6=yes
9475else
9476 echo "$as_me: failed program was:" >&5
19650fd6
AS
9477sed 's/^/| /' conftest.$ac_ext >&5
9478
98418dba
CW
9479emacs_cv_x11_version_6=no
9480fi
35996d22
AS
9481rm -f conftest.err conftest.$ac_objext \
9482 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
9483fi
9484
9485 if test $emacs_cv_x11_version_6 = yes; then
c0d27fcc 9486 echo "$as_me:$LINENO: result: 6 or newer" >&5
98418dba 9487echo "${ECHO_T}6 or newer" >&6
b936fae4 9488
c0d27fcc 9489cat >>confdefs.h <<\_ACEOF
98418dba 9490#define HAVE_X11R6 1
c0d27fcc 9491_ACEOF
98418dba
CW
9492
9493 else
c0d27fcc 9494 echo "$as_me:$LINENO: result: before 6" >&5
98418dba
CW
9495echo "${ECHO_T}before 6" >&6
9496 fi
9497fi
9498
9499if test "${window_system}" = "x11"; then
c0d27fcc 9500 echo "$as_me:$LINENO: checking X11 version 5" >&5
98418dba
CW
9501echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9502 if test "${emacs_cv_x11_version_5+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504else
9505 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9506/* confdefs.h. */
9507_ACEOF
9508cat confdefs.h >>conftest.$ac_ext
9509cat >>conftest.$ac_ext <<_ACEOF
9510/* end confdefs.h. */
98418dba 9511#include <X11/Xlib.h>
98418dba
CW
9512int
9513main ()
9514{
9515#if XlibSpecificationRelease < 5
9516fail;
9517#endif
9518
9519 ;
9520 return 0;
9521}
9522_ACEOF
9523rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9525 (eval $ac_link) 2>conftest.er1
98418dba 9526 ac_status=$?
35996d22
AS
9527 grep -v '^ *+' conftest.er1 >conftest.err
9528 rm -f conftest.er1
9529 cat conftest.err >&5
c0d27fcc 9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 9531 (exit $ac_status); } &&
35996d22
AS
9532 { ac_try='test -z "$ac_c_werror_flag"
9533 || test ! -s conftest.err'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 (eval $ac_try) 2>&5
9536 ac_status=$?
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; } &&
9539 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9541 (eval $ac_try) 2>&5
9542 ac_status=$?
c0d27fcc 9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
9544 (exit $ac_status); }; }; then
9545 emacs_cv_x11_version_5=yes
9546else
9547 echo "$as_me: failed program was:" >&5
19650fd6
AS
9548sed 's/^/| /' conftest.$ac_ext >&5
9549
98418dba
CW
9550emacs_cv_x11_version_5=no
9551fi
35996d22
AS
9552rm -f conftest.err conftest.$ac_objext \
9553 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
9554fi
9555
9556 if test $emacs_cv_x11_version_5 = yes; then
c0d27fcc 9557 echo "$as_me:$LINENO: result: 5 or newer" >&5
98418dba
CW
9558echo "${ECHO_T}5 or newer" >&6
9559 HAVE_X11R5=yes
b936fae4 9560
c0d27fcc 9561cat >>confdefs.h <<\_ACEOF
98418dba 9562#define HAVE_X11R5 1
c0d27fcc 9563_ACEOF
98418dba
CW
9564
9565 else
9566 HAVE_X11R5=no
c0d27fcc 9567 echo "$as_me:$LINENO: result: before 5" >&5
98418dba
CW
9568echo "${ECHO_T}before 5" >&6
9569 fi
9570fi
9571
488dd4c4
JD
9572
9573
9574HAVE_GTK=no
9575if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
cd890796 9576 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
488dd4c4
JD
9577 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9578echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9579 { (exit 1); exit 1; }; };
9580 fi
9581 GLIB_REQUIRED=2.0.1
e512ece1 9582 GTK_REQUIRED=2.0.1
488dd4c4
JD
9583 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9584
9585 if test "X${with_pkg_config_prog}" != X; then
9586 PKG_CONFIG="${with_pkg_config_prog}"
9587 fi
9588
9589 succeeded=no
9590
9591 if test -z "$PKG_CONFIG"; then
9592 # Extract the first word of "pkg-config", so it can be a program name with args.
9593set dummy pkg-config; ac_word=$2
9594echo "$as_me:$LINENO: checking for $ac_word" >&5
9595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9596if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9598else
9599 case $PKG_CONFIG in
9600 [\\/]* | ?:[\\/]*)
9601 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9602 ;;
9603 *)
9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605for as_dir in $PATH
9606do
9607 IFS=$as_save_IFS
9608 test -z "$as_dir" && as_dir=.
9609 for ac_exec_ext in '' $ac_executable_extensions; do
9610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9611 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9613 break 2
9614 fi
9615done
9616done
9617
9618 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9619 ;;
9620esac
9621fi
9622PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9623
9624if test -n "$PKG_CONFIG"; then
9625 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9626echo "${ECHO_T}$PKG_CONFIG" >&6
9627else
9628 echo "$as_me:$LINENO: result: no" >&5
9629echo "${ECHO_T}no" >&6
9630fi
9631
9632 fi
9633
9634 if test "$PKG_CONFIG" = "no" ; then
9635 echo "*** The pkg-config script could not be found. Make sure it is"
9636 echo "*** in your path, or give the full path to pkg-config with"
9637 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9638 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9639 else
9640 PKG_CONFIG_MIN_VERSION=0.9.0
9641 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9642 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9643echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9644
9645 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9646 echo "$as_me:$LINENO: result: yes" >&5
9647echo "${ECHO_T}yes" >&6
9648 succeeded=yes
9649
9650 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9651echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9652 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9653 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9654echo "${ECHO_T}$GTK_CFLAGS" >&6
9655
9656 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9657echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9658 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9659 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9660echo "${ECHO_T}$GTK_LIBS" >&6
9661 else
9662 GTK_CFLAGS=""
9663 GTK_LIBS=""
9664 ## If we have a custom action on failure, don't print errors, but
9665 ## do set a variable so people can do so.
9666 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9667 echo $GTK_PKG_ERRORS
9668 fi
9669
9670
9671
9672 else
9673 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9674 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9675 fi
9676 fi
9677
9678 if test $succeeded = yes; then
9679 :
9680 else
9681 { { 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
9682echo "$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;}
9683 { (exit 1); exit 1; }; }
9684 fi
9685
9686
9687
9688 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
57669b57
JD
9689 CFLAGS="$CFLAGS $GTK_CFLAGS"
9690 LIBS="$GTK_LIBS $LIBS"
488dd4c4
JD
9691 HAVE_GTK=yes
9692
9693cat >>confdefs.h <<\_ACEOF
9694#define HAVE_GTK 1
9695_ACEOF
9696
9697 USE_X_TOOLKIT=none
9698
9699 with_toolkit_scroll_bars=yes
57669b57
JD
9700
9701 HAVE_GTK_MULTIDISPLAY=no
9702
9703for ac_func in gdk_display_open
9704do
9705as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9706echo "$as_me:$LINENO: checking for $ac_func" >&5
9707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9708if eval "test \"\${$as_ac_var+set}\" = set"; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9710else
9711 cat >conftest.$ac_ext <<_ACEOF
57669b57
JD
9712/* confdefs.h. */
9713_ACEOF
9714cat confdefs.h >>conftest.$ac_ext
9715cat >>conftest.$ac_ext <<_ACEOF
9716/* end confdefs.h. */
35996d22
AS
9717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9719#define $ac_func innocuous_$ac_func
9720
57669b57
JD
9721/* System header to define __stub macros and hopefully few prototypes,
9722 which can conflict with char $ac_func (); below.
9723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9724 <limits.h> exists even on freestanding compilers. */
35996d22 9725
57669b57
JD
9726#ifdef __STDC__
9727# include <limits.h>
9728#else
9729# include <assert.h>
9730#endif
35996d22
AS
9731
9732#undef $ac_func
9733
57669b57
JD
9734/* Override any gcc2 internal prototype to avoid an error. */
9735#ifdef __cplusplus
9736extern "C"
9737{
9738#endif
9739/* We use char because int might match the return type of a gcc2
9740 builtin and then its argument prototype would still apply. */
9741char $ac_func ();
9742/* The GNU C library defines this for functions which it implements
9743 to always fail with ENOSYS. Some functions are actually named
9744 something starting with __ and the normal name is an alias. */
9745#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9746choke me
9747#else
9748char (*f) () = $ac_func;
9749#endif
9750#ifdef __cplusplus
9751}
9752#endif
9753
9754int
9755main ()
9756{
9757return f != $ac_func;
9758 ;
9759 return 0;
9760}
9761_ACEOF
9762rm -f conftest.$ac_objext conftest$ac_exeext
9763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9764 (eval $ac_link) 2>conftest.er1
57669b57 9765 ac_status=$?
35996d22
AS
9766 grep -v '^ *+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
57669b57
JD
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
35996d22
AS
9771 { ac_try='test -z "$ac_c_werror_flag"
9772 || test ! -s conftest.err'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; } &&
9778 { ac_try='test -s conftest$ac_exeext'
57669b57
JD
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 (eval $ac_try) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 eval "$as_ac_var=yes"
9785else
9786 echo "$as_me: failed program was:" >&5
9787sed 's/^/| /' conftest.$ac_ext >&5
9788
9789eval "$as_ac_var=no"
9790fi
35996d22
AS
9791rm -f conftest.err conftest.$ac_objext \
9792 conftest$ac_exeext conftest.$ac_ext
57669b57
JD
9793fi
9794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9795echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9796if test `eval echo '${'$as_ac_var'}'` = yes; then
9797 cat >>confdefs.h <<_ACEOF
9798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9799_ACEOF
9800 HAVE_GTK_MULTIDISPLAY=yes
9801fi
9802done
9803
9804 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9805
9806cat >>confdefs.h <<\_ACEOF
9807#define HAVE_GTK_MULTIDISPLAY 1
9808_ACEOF
9809
9810 fi
488dd4c4
JD
9811fi
9812
98418dba
CW
9813if test x"${USE_X_TOOLKIT}" = xmaybe; then
9814 if test x"${HAVE_X11R5}" = xyes; then
c0d27fcc 9815 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
98418dba
CW
9816echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9817 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9819else
9820 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9821/* confdefs.h. */
9822_ACEOF
9823cat confdefs.h >>conftest.$ac_ext
9824cat >>conftest.$ac_ext <<_ACEOF
9825/* end confdefs.h. */
98418dba
CW
9826
9827#include <X11/Intrinsic.h>
9828#include <X11/Xaw/Simple.h>
98418dba
CW
9829int
9830main ()
9831{
9832
9833 ;
9834 return 0;
9835}
9836_ACEOF
9837rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9839 (eval $ac_link) 2>conftest.er1
98418dba 9840 ac_status=$?
35996d22
AS
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
c0d27fcc 9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 9845 (exit $ac_status); } &&
35996d22
AS
9846 { ac_try='test -z "$ac_c_werror_flag"
9847 || test ! -s conftest.err'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9855 (eval $ac_try) 2>&5
9856 ac_status=$?
c0d27fcc 9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
9858 (exit $ac_status); }; }; then
9859 emacs_cv_x11_version_5_with_xaw=yes
9860else
9861 echo "$as_me: failed program was:" >&5
19650fd6
AS
9862sed 's/^/| /' conftest.$ac_ext >&5
9863
98418dba
CW
9864emacs_cv_x11_version_5_with_xaw=no
9865fi
35996d22
AS
9866rm -f conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
9868fi
9869
9870 if test $emacs_cv_x11_version_5_with_xaw = yes; then
c0d27fcc 9871 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
98418dba
CW
9872echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9873 USE_X_TOOLKIT=LUCID
9874 else
c0d27fcc 9875 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
98418dba
CW
9876echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9877 USE_X_TOOLKIT=none
9878 fi
9879 else
9880 USE_X_TOOLKIT=none
9881 fi
9882fi
9883
9884X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9885
9886if test "${USE_X_TOOLKIT}" != "none"; then
c0d27fcc 9887 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
98418dba
CW
9888echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
9889 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9891else
9892 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9893/* confdefs.h. */
9894_ACEOF
9895cat confdefs.h >>conftest.$ac_ext
9896cat >>conftest.$ac_ext <<_ACEOF
9897/* end confdefs.h. */
98418dba 9898#include <X11/Intrinsic.h>
98418dba
CW
9899int
9900main ()
9901{
9902#if XtSpecificationRelease < 6
9903fail;
9904#endif
9905
9906 ;
9907 return 0;
9908}
9909_ACEOF
9910rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9912 (eval $ac_link) 2>conftest.er1
98418dba 9913 ac_status=$?
35996d22
AS
9914 grep -v '^ *+' conftest.er1 >conftest.err
9915 rm -f conftest.er1
9916 cat conftest.err >&5
c0d27fcc 9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 9918 (exit $ac_status); } &&
35996d22
AS
9919 { ac_try='test -z "$ac_c_werror_flag"
9920 || test ! -s conftest.err'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 (eval $ac_try) 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
9926 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
9928 (eval $ac_try) 2>&5
9929 ac_status=$?
c0d27fcc 9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
9931 (exit $ac_status); }; }; then
9932 emacs_cv_x11_toolkit_version_6=yes
9933else
9934 echo "$as_me: failed program was:" >&5
19650fd6
AS
9935sed 's/^/| /' conftest.$ac_ext >&5
9936
98418dba
CW
9937emacs_cv_x11_toolkit_version_6=no
9938fi
35996d22
AS
9939rm -f conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
9941fi
9942
9943 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9944 if test $emacs_cv_x11_toolkit_version_6 = yes; then
c0d27fcc 9945 echo "$as_me:$LINENO: result: 6 or newer" >&5
98418dba 9946echo "${ECHO_T}6 or newer" >&6
b936fae4 9947
c0d27fcc 9948cat >>confdefs.h <<\_ACEOF
98418dba 9949#define HAVE_X11XTR6 1
c0d27fcc 9950_ACEOF
98418dba
CW
9951
9952 else
c0d27fcc 9953 echo "$as_me:$LINENO: result: before 6" >&5
98418dba
CW
9954echo "${ECHO_T}before 6" >&6
9955 fi
9956
9957 OLDLIBS="$LIBS"
9958 if test x$HAVE_X11XTR6 = xyes; then
9959 LIBS="-lXt -lSM -lICE $LIBS"
9960 else
9961 LIBS="-lXt $LIBS"
9962 fi
9963
c0d27fcc 9964echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
98418dba
CW
9965echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
9966if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968else
9969 ac_check_lib_save_LIBS=$LIBS
9970LIBS="-lXmu $LIBS"
9971cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
9972/* confdefs.h. */
9973_ACEOF
9974cat confdefs.h >>conftest.$ac_ext
9975cat >>conftest.$ac_ext <<_ACEOF
9976/* end confdefs.h. */
98418dba
CW
9977
9978/* Override any gcc2 internal prototype to avoid an error. */
9979#ifdef __cplusplus
9980extern "C"
9981#endif
9982/* We use char because int might match the return type of a gcc2
9983 builtin and then its argument prototype would still apply. */
9984char XmuConvertStandardSelection ();
98418dba
CW
9985int
9986main ()
9987{
9988XmuConvertStandardSelection ();
9989 ;
9990 return 0;
9991}
9992_ACEOF
9993rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 9994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 9995 (eval $ac_link) 2>conftest.er1
98418dba 9996 ac_status=$?
35996d22
AS
9997 grep -v '^ *+' conftest.er1 >conftest.err
9998 rm -f conftest.er1
9999 cat conftest.err >&5
c0d27fcc 10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 10001 (exit $ac_status); } &&
35996d22
AS
10002 { ac_try='test -z "$ac_c_werror_flag"
10003 || test ! -s conftest.err'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; } &&
10009 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
10011 (eval $ac_try) 2>&5
10012 ac_status=$?
c0d27fcc 10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
10014 (exit $ac_status); }; }; then
10015 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10016else
10017 echo "$as_me: failed program was:" >&5
19650fd6
AS
10018sed 's/^/| /' conftest.$ac_ext >&5
10019
98418dba
CW
10020ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10021fi
35996d22
AS
10022rm -f conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
10024LIBS=$ac_check_lib_save_LIBS
10025fi
c0d27fcc 10026echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
98418dba
CW
10027echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10028if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
c0d27fcc 10029 cat >>confdefs.h <<_ACEOF
98418dba 10030#define HAVE_LIBXMU 1
c0d27fcc 10031_ACEOF
98418dba
CW
10032
10033 LIBS="-lXmu $LIBS"
10034
10035fi
10036
10037 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10038fi
10039
10040# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10041if test "${HAVE_X11}" = "yes"; then
10042 if test "${USE_X_TOOLKIT}" != "none"; then
10043
c0d27fcc 10044echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
98418dba
CW
10045echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10046if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10047 echo $ECHO_N "(cached) $ECHO_C" >&6
10048else
10049 ac_check_lib_save_LIBS=$LIBS
10050LIBS="-lXext $LIBS"
10051cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10052/* confdefs.h. */
10053_ACEOF
10054cat confdefs.h >>conftest.$ac_ext
10055cat >>conftest.$ac_ext <<_ACEOF
10056/* end confdefs.h. */
98418dba
CW
10057
10058/* Override any gcc2 internal prototype to avoid an error. */
10059#ifdef __cplusplus
10060extern "C"
10061#endif
10062/* We use char because int might match the return type of a gcc2
10063 builtin and then its argument prototype would still apply. */
10064char XShapeQueryExtension ();
98418dba
CW
10065int
10066main ()
10067{
10068XShapeQueryExtension ();
10069 ;
10070 return 0;
10071}
10072_ACEOF
10073rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 10074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 10075 (eval $ac_link) 2>conftest.er1
98418dba 10076 ac_status=$?
35996d22
AS
10077 grep -v '^ *+' conftest.er1 >conftest.err
10078 rm -f conftest.er1
10079 cat conftest.err >&5
c0d27fcc 10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 10081 (exit $ac_status); } &&
35996d22
AS
10082 { ac_try='test -z "$ac_c_werror_flag"
10083 || test ! -s conftest.err'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10086 ac_status=$?
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; } &&
10089 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
10091 (eval $ac_try) 2>&5
10092 ac_status=$?
c0d27fcc 10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
10094 (exit $ac_status); }; }; then
10095 ac_cv_lib_Xext_XShapeQueryExtension=yes
10096else
10097 echo "$as_me: failed program was:" >&5
19650fd6
AS
10098sed 's/^/| /' conftest.$ac_ext >&5
10099
98418dba
CW
10100ac_cv_lib_Xext_XShapeQueryExtension=no
10101fi
35996d22
AS
10102rm -f conftest.err conftest.$ac_objext \
10103 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
10104LIBS=$ac_check_lib_save_LIBS
10105fi
c0d27fcc 10106echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
98418dba
CW
10107echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10108if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
c0d27fcc 10109 cat >>confdefs.h <<_ACEOF
98418dba 10110#define HAVE_LIBXEXT 1
c0d27fcc 10111_ACEOF
98418dba
CW
10112
10113 LIBS="-lXext $LIBS"
10114
10115fi
10116
10117 fi
10118fi
10119
10120if test "${USE_X_TOOLKIT}" = "MOTIF"; then
c0d27fcc 10121 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8e967cf7
MR
10122echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10123if test "${emacs_cv_lesstif+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125else
ae1a998c
RS
10126 # We put this in CFLAGS temporarily to precede other -I options
10127 # that might be in CFLAGS temporarily.
10128 # We put this in CPPFLAGS where it precedes the other -I options.
10129 OLD_CPPFLAGS=$CPPFLAGS
10130 OLD_CFLAGS=$CFLAGS
10131 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10132 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8e967cf7 10133 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10134/* confdefs.h. */
10135_ACEOF
10136cat confdefs.h >>conftest.$ac_ext
10137cat >>conftest.$ac_ext <<_ACEOF
10138/* end confdefs.h. */
8e967cf7
MR
10139#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10140int
10141main ()
10142{
10143int x = 5;
10144 ;
10145 return 0;
10146}
10147_ACEOF
10148rm -f conftest.$ac_objext
c0d27fcc 10149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 10150 (eval $ac_compile) 2>conftest.er1
8e967cf7 10151 ac_status=$?
35996d22
AS
10152 grep -v '^ *+' conftest.er1 >conftest.err
10153 rm -f conftest.er1
10154 cat conftest.err >&5
c0d27fcc 10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8e967cf7 10156 (exit $ac_status); } &&
35996d22
AS
10157 { ac_try='test -z "$ac_c_werror_flag"
10158 || test ! -s conftest.err'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10161 ac_status=$?
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; } &&
10164 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8e967cf7
MR
10166 (eval $ac_try) 2>&5
10167 ac_status=$?
c0d27fcc 10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8e967cf7
MR
10169 (exit $ac_status); }; }; then
10170 emacs_cv_lesstif=yes
10171else
10172 echo "$as_me: failed program was:" >&5
19650fd6
AS
10173sed 's/^/| /' conftest.$ac_ext >&5
10174
8e967cf7
MR
10175emacs_cv_lesstif=no
10176fi
35996d22 10177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8e967cf7 10178fi
c0d27fcc 10179echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8e967cf7
MR
10180echo "${ECHO_T}$emacs_cv_lesstif" >&6
10181 if test $emacs_cv_lesstif = yes; then
ae1a998c
RS
10182 # Make sure this -I option remains in CPPFLAGS after it is set
10183 # back to REAL_CPPFLAGS.
10184 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10185 # have those other -I options anyway. Ultimately, having this
10186 # directory ultimately in CPPFLAGS will be enough.
10187 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8e967cf7 10188 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
ae1a998c
RS
10189 else
10190 CFLAGS=$OLD_CFLAGS
10191 CPPFLAGS=$OLD_CPPFLAGS
8e967cf7 10192 fi
c0d27fcc 10193 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
98418dba
CW
10194echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10195if test "${emacs_cv_motif_version_2_1+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10197else
10198 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10199/* confdefs.h. */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h. */
98418dba 10204#include <Xm/Xm.h>
98418dba
CW
10205int
10206main ()
10207{
10208#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10209int x = 5;
10210#else
10211Motif version prior to 2.1.
10212#endif
10213 ;
10214 return 0;
10215}
10216_ACEOF
10217rm -f conftest.$ac_objext
c0d27fcc 10218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 10219 (eval $ac_compile) 2>conftest.er1
98418dba 10220 ac_status=$?
35996d22
AS
10221 grep -v '^ *+' conftest.er1 >conftest.err
10222 rm -f conftest.er1
10223 cat conftest.err >&5
c0d27fcc 10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 10225 (exit $ac_status); } &&
35996d22
AS
10226 { ac_try='test -z "$ac_c_werror_flag"
10227 || test ! -s conftest.err'
10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229 (eval $ac_try) 2>&5
10230 ac_status=$?
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; } &&
10233 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 10234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
10235 (eval $ac_try) 2>&5
10236 ac_status=$?
c0d27fcc 10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
10238 (exit $ac_status); }; }; then
10239 emacs_cv_motif_version_2_1=yes
10240else
10241 echo "$as_me: failed program was:" >&5
19650fd6
AS
10242sed 's/^/| /' conftest.$ac_ext >&5
10243
98418dba
CW
10244emacs_cv_motif_version_2_1=no
10245fi
35996d22 10246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
98418dba 10247fi
c0d27fcc 10248echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
98418dba
CW
10249echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10250 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10251 if test $emacs_cv_motif_version_2_1 = yes; then
10252 HAVE_LIBXP=no
b936fae4 10253
c0d27fcc 10254cat >>confdefs.h <<\_ACEOF
98418dba 10255#define HAVE_MOTIF_2_1 1
c0d27fcc 10256_ACEOF
98418dba 10257
c0d27fcc 10258 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
98418dba
CW
10259echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10260if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10262else
10263 ac_check_lib_save_LIBS=$LIBS
10264LIBS="-lXp $LIBS"
10265cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10266/* confdefs.h. */
10267_ACEOF
10268cat confdefs.h >>conftest.$ac_ext
10269cat >>conftest.$ac_ext <<_ACEOF
10270/* end confdefs.h. */
98418dba
CW
10271
10272/* Override any gcc2 internal prototype to avoid an error. */
10273#ifdef __cplusplus
10274extern "C"
10275#endif
10276/* We use char because int might match the return type of a gcc2
10277 builtin and then its argument prototype would still apply. */
10278char XpCreateContext ();
98418dba
CW
10279int
10280main ()
10281{
10282XpCreateContext ();
10283 ;
10284 return 0;
10285}
10286_ACEOF
10287rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 10288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 10289 (eval $ac_link) 2>conftest.er1
98418dba 10290 ac_status=$?
35996d22
AS
10291 grep -v '^ *+' conftest.er1 >conftest.err
10292 rm -f conftest.er1
10293 cat conftest.err >&5
c0d27fcc 10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 10295 (exit $ac_status); } &&
35996d22
AS
10296 { ac_try='test -z "$ac_c_werror_flag"
10297 || test ! -s conftest.err'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; } &&
10303 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
10305 (eval $ac_try) 2>&5
10306 ac_status=$?
c0d27fcc 10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
10308 (exit $ac_status); }; }; then
10309 ac_cv_lib_Xp_XpCreateContext=yes
10310else
10311 echo "$as_me: failed program was:" >&5
19650fd6
AS
10312sed 's/^/| /' conftest.$ac_ext >&5
10313
98418dba
CW
10314ac_cv_lib_Xp_XpCreateContext=no
10315fi
35996d22
AS
10316rm -f conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
10318LIBS=$ac_check_lib_save_LIBS
10319fi
c0d27fcc 10320echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
98418dba
CW
10321echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10322if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10323 HAVE_LIBXP=yes
10324fi
503d2be0 10325
98418dba 10326 if test ${HAVE_LIBXP} = yes; then
b936fae4 10327
c0d27fcc 10328cat >>confdefs.h <<\_ACEOF
98418dba 10329#define HAVE_LIBXP 1
c0d27fcc 10330_ACEOF
503d2be0 10331
98418dba
CW
10332 fi
10333 fi
10334fi
10335
10336### Is -lXaw3d available?
10337HAVE_XAW3D=no
10338if test "${HAVE_X11}" = "yes"; then
10339 if test "${USE_X_TOOLKIT}" != "none"; then
22044edf 10340 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
98418dba
CW
10341echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10342if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
98418dba 10344else
22044edf 10345 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10346/* confdefs.h. */
10347_ACEOF
10348cat confdefs.h >>conftest.$ac_ext
10349cat >>conftest.$ac_ext <<_ACEOF
10350/* end confdefs.h. */
98418dba 10351#include <X11/Xaw3d/Scrollbar.h>
503d2be0 10352_ACEOF
c0d27fcc 10353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
10354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10355 ac_status=$?
6bae0ccf 10356 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
10357 rm -f conftest.er1
10358 cat conftest.err >&5
c0d27fcc 10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
10360 (exit $ac_status); } >/dev/null; then
10361 if test -s conftest.err; then
10362 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 10363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
10364 else
10365 ac_cpp_err=
10366 fi
10367else
10368 ac_cpp_err=yes
10369fi
10370if test -z "$ac_cpp_err"; then
22044edf 10371 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
ba4481b5 10372else
503d2be0 10373 echo "$as_me: failed program was:" >&5
19650fd6
AS
10374sed 's/^/| /' conftest.$ac_ext >&5
10375
22044edf 10376 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
ba4481b5 10377fi
503d2be0 10378rm -f conftest.err conftest.$ac_ext
98418dba 10379fi
c0d27fcc 10380echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
98418dba 10381echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
98418dba 10382if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
c0d27fcc 10383 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
98418dba
CW
10384echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10385if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10387else
10388 ac_check_lib_save_LIBS=$LIBS
10389LIBS="-lXaw3d $LIBS"
10390cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10391/* confdefs.h. */
10392_ACEOF
10393cat confdefs.h >>conftest.$ac_ext
10394cat >>conftest.$ac_ext <<_ACEOF
10395/* end confdefs.h. */
98418dba
CW
10396
10397/* Override any gcc2 internal prototype to avoid an error. */
10398#ifdef __cplusplus
10399extern "C"
10400#endif
10401/* We use char because int might match the return type of a gcc2
10402 builtin and then its argument prototype would still apply. */
10403char XawScrollbarSetThumb ();
503d2be0
AS
10404int
10405main ()
10406{
98418dba 10407XawScrollbarSetThumb ();
503d2be0
AS
10408 ;
10409 return 0;
10410}
10411_ACEOF
10412rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 10413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 10414 (eval $ac_link) 2>conftest.er1
503d2be0 10415 ac_status=$?
35996d22
AS
10416 grep -v '^ *+' conftest.er1 >conftest.err
10417 rm -f conftest.er1
10418 cat conftest.err >&5
c0d27fcc 10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 10420 (exit $ac_status); } &&
35996d22
AS
10421 { ac_try='test -z "$ac_c_werror_flag"
10422 || test ! -s conftest.err'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10425 ac_status=$?
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; } &&
10428 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
10430 (eval $ac_try) 2>&5
10431 ac_status=$?
c0d27fcc 10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 10433 (exit $ac_status); }; }; then
98418dba 10434 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
ba4481b5 10435else
503d2be0 10436 echo "$as_me: failed program was:" >&5
19650fd6
AS
10437sed 's/^/| /' conftest.$ac_ext >&5
10438
98418dba 10439ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
ba4481b5 10440fi
35996d22
AS
10441rm -f conftest.err conftest.$ac_objext \
10442 conftest$ac_exeext conftest.$ac_ext
98418dba 10443LIBS=$ac_check_lib_save_LIBS
ba4481b5 10444fi
c0d27fcc 10445echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
98418dba
CW
10446echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10447if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10448 HAVE_XAW3D=yes
ba4481b5 10449fi
503d2be0 10450
ba4481b5
DL
10451fi
10452
c0d27fcc 10453
98418dba 10454 if test "${HAVE_XAW3D}" = "yes"; then
b936fae4 10455
c0d27fcc 10456cat >>confdefs.h <<\_ACEOF
98418dba 10457#define HAVE_XAW3D 1
c0d27fcc 10458_ACEOF
98418dba 10459
ba4481b5 10460 fi
98418dba 10461 fi
ba4481b5
DL
10462fi
10463
c0d27fcc
MR
10464
10465
98418dba
CW
10466USE_TOOLKIT_SCROLL_BARS=no
10467if test "${with_toolkit_scroll_bars}" != "no"; then
10468 if test "${USE_X_TOOLKIT}" != "none"; then
10469 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
c0d27fcc 10470 cat >>confdefs.h <<\_ACEOF
98418dba 10471#define USE_TOOLKIT_SCROLL_BARS 1
c0d27fcc 10472_ACEOF
98418dba
CW
10473
10474 HAVE_XAW3D=no
10475 USE_TOOLKIT_SCROLL_BARS=yes
10476 elif test "${HAVE_XAW3D}" = "yes"; then
c0d27fcc 10477 cat >>confdefs.h <<\_ACEOF
98418dba 10478#define USE_TOOLKIT_SCROLL_BARS 1
c0d27fcc 10479_ACEOF
98418dba
CW
10480
10481 USE_TOOLKIT_SCROLL_BARS=yes
ba4481b5 10482 fi
488dd4c4
JD
10483 elif test "${HAVE_GTK}" = "yes"; then
10484 cat >>confdefs.h <<\_ACEOF
10485#define USE_TOOLKIT_SCROLL_BARS 1
10486_ACEOF
10487
10488 USE_TOOLKIT_SCROLL_BARS=yes
ba4481b5
DL
10489 fi
10490fi
10491
abd39b57 10492cat >conftest.$ac_ext <<_ACEOF
abd39b57
AC
10493/* confdefs.h. */
10494_ACEOF
10495cat confdefs.h >>conftest.$ac_ext
10496cat >>conftest.$ac_ext <<_ACEOF
10497/* end confdefs.h. */
10498
10499 #include <X11/Xlib.h>
10500 #include <X11/Xresource.h>
10501int
10502main ()
10503{
10504XIMProc callback;
10505 ;
10506 return 0;
10507}
10508_ACEOF
10509rm -f conftest.$ac_objext
10510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 10511 (eval $ac_compile) 2>conftest.er1
abd39b57 10512 ac_status=$?
35996d22
AS
10513 grep -v '^ *+' conftest.er1 >conftest.err
10514 rm -f conftest.er1
10515 cat conftest.err >&5
abd39b57
AC
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } &&
35996d22
AS
10518 { ac_try='test -z "$ac_c_werror_flag"
10519 || test ! -s conftest.err'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10522 ac_status=$?
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; } &&
10525 { ac_try='test -s conftest.$ac_objext'
abd39b57
AC
10526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10528 ac_status=$?
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10531 HAVE_XIM=yes
10532
10533cat >>confdefs.h <<\_ACEOF
10534#define HAVE_XIM 1
10535_ACEOF
10536
10537else
10538 echo "$as_me: failed program was:" >&5
10539sed 's/^/| /' conftest.$ac_ext >&5
10540
10541HAVE_XIM=no
10542fi
35996d22 10543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
abd39b57 10544
c0d27fcc 10545
98418dba 10546if test "${with_xim}" != "no"; then
b936fae4 10547
c0d27fcc 10548cat >>confdefs.h <<\_ACEOF
98418dba 10549#define USE_XIM 1
c0d27fcc 10550_ACEOF
98418dba 10551
793fa0d7 10552fi
abd39b57
AC
10553
10554
10555if test "${HAVE_XIM}" != "no"; then
849d80cf
DL
10556 late_CFLAGS=$CFLAGS
10557 if test "$GCC" = yes; then
10558 CFLAGS="$CFLAGS --pedantic-errors"
10559 fi
cffcede7 10560 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10561/* confdefs.h. */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h. */
cffcede7
JD
10566
10567#include <X11/Xlib.h>
10568#include <X11/Xresource.h>
10569int
10570main ()
10571{
10572Display *display;
10573XrmDatabase db;
10574char *res_name;
10575char *res_class;
10576XIMProc callback;
10577XPointer *client_data;
849d80cf
DL
10578#ifndef __GNUC__
10579/* If we're not using GCC, it's probably not XFree86, and this is
10580 probably right, but we can't use something like --pedantic-errors. */
10581extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10582 char*, XIMProc, XPointer*);
10583#endif
cffcede7
JD
10584(void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10585 client_data);
10586 ;
10587 return 0;
10588}
10589_ACEOF
10590rm -f conftest.$ac_objext
10591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 10592 (eval $ac_compile) 2>conftest.er1
cffcede7 10593 ac_status=$?
35996d22
AS
10594 grep -v '^ *+' conftest.er1 >conftest.err
10595 rm -f conftest.er1
10596 cat conftest.err >&5
cffcede7
JD
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } &&
35996d22
AS
10599 { ac_try='test -z "$ac_c_werror_flag"
10600 || test ! -s conftest.err'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; } &&
10606 { ac_try='test -s conftest.$ac_objext'
cffcede7
JD
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 emacs_cv_arg6_star=yes
10613else
10614 echo "$as_me: failed program was:" >&5
19650fd6
AS
10615sed 's/^/| /' conftest.$ac_ext >&5
10616
cffcede7 10617fi
35996d22 10618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cffcede7
JD
10619
10620 if test "$emacs_cv_arg6_star" = yes; then
f57bd967 10621 cat >>confdefs.h <<\_ACEOF
cffcede7
JD
10622#define XRegisterIMInstantiateCallback_arg6 XPointer*
10623_ACEOF
10624
10625 else
f57bd967 10626 cat >>confdefs.h <<\_ACEOF
cffcede7
JD
10627#define XRegisterIMInstantiateCallback_arg6 XPointer
10628_ACEOF
10629
10630 fi
849d80cf 10631 CFLAGS=$late_CFLAGS
98418dba
CW
10632fi
10633
10634### Use -lXpm if available, unless `--with-xpm=no'.
10635HAVE_XPM=no
10636if test "${HAVE_X11}" = "yes"; then
10637 if test "${with_xpm}" != "no"; then
c0d27fcc
MR
10638 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10639 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
98418dba
CW
10640echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10641if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
10643fi
10644echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10645echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
98418dba 10646else
c0d27fcc
MR
10647 # Is the header compilable?
10648echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10649echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10650cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10651/* confdefs.h. */
10652_ACEOF
10653cat confdefs.h >>conftest.$ac_ext
10654cat >>conftest.$ac_ext <<_ACEOF
10655/* end confdefs.h. */
c0d27fcc
MR
10656$ac_includes_default
10657#include <X11/xpm.h>
10658_ACEOF
10659rm -f conftest.$ac_objext
10660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 10661 (eval $ac_compile) 2>conftest.er1
c0d27fcc 10662 ac_status=$?
35996d22
AS
10663 grep -v '^ *+' conftest.er1 >conftest.err
10664 rm -f conftest.er1
10665 cat conftest.err >&5
c0d27fcc
MR
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } &&
35996d22
AS
10668 { ac_try='test -z "$ac_c_werror_flag"
10669 || test ! -s conftest.err'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; } &&
10675 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10678 ac_status=$?
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }; then
10681 ac_header_compiler=yes
10682else
10683 echo "$as_me: failed program was:" >&5
19650fd6
AS
10684sed 's/^/| /' conftest.$ac_ext >&5
10685
c0d27fcc
MR
10686ac_header_compiler=no
10687fi
35996d22 10688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
10689echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10690echo "${ECHO_T}$ac_header_compiler" >&6
10691
10692# Is the header present?
10693echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10694echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10695cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10696/* confdefs.h. */
10697_ACEOF
10698cat confdefs.h >>conftest.$ac_ext
10699cat >>conftest.$ac_ext <<_ACEOF
10700/* end confdefs.h. */
98418dba
CW
10701#include <X11/xpm.h>
10702_ACEOF
c0d27fcc 10703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
10704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10705 ac_status=$?
6bae0ccf 10706 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
10707 rm -f conftest.er1
10708 cat conftest.err >&5
c0d27fcc 10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
10710 (exit $ac_status); } >/dev/null; then
10711 if test -s conftest.err; then
10712 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 10713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
10714 else
10715 ac_cpp_err=
10716 fi
10717else
10718 ac_cpp_err=yes
10719fi
10720if test -z "$ac_cpp_err"; then
c0d27fcc 10721 ac_header_preproc=yes
98418dba
CW
10722else
10723 echo "$as_me: failed program was:" >&5
19650fd6
AS
10724sed 's/^/| /' conftest.$ac_ext >&5
10725
c0d27fcc 10726 ac_header_preproc=no
98418dba
CW
10727fi
10728rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
10729echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10730echo "${ECHO_T}$ac_header_preproc" >&6
10731
10732# So? What about this header?
35996d22
AS
10733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10734 yes:no: )
c0d27fcc
MR
10735 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10736echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
10737 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10738echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10739 ac_header_preproc=yes
19650fd6 10740 ;;
35996d22 10741 no:yes:* )
c0d27fcc
MR
10742 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10743echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
35996d22
AS
10744 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10745echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10747echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10748 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10749echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 10750 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
19650fd6 10751echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
10752 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10753echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
10754 (
10755 cat <<\_ASBOX
35996d22
AS
10756## ------------------------------------------ ##
10757## Report this to the AC_PACKAGE_NAME lists. ##
10758## ------------------------------------------ ##
19650fd6
AS
10759_ASBOX
10760 ) |
10761 sed "s/^/$as_me: WARNING: /" >&2
10762 ;;
c0d27fcc
MR
10763esac
10764echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10765echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10766if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10768else
10769 ac_cv_header_X11_xpm_h=$ac_header_preproc
ba4481b5 10770fi
c0d27fcc 10771echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
98418dba 10772echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
c0d27fcc
MR
10773
10774fi
98418dba 10775if test $ac_cv_header_X11_xpm_h = yes; then
c0d27fcc 10776 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
98418dba
CW
10777echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10778if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
503d2be0 10779 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 10780else
98418dba
CW
10781 ac_check_lib_save_LIBS=$LIBS
10782LIBS="-lXpm -lX11 $LIBS"
10783cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10784/* confdefs.h. */
10785_ACEOF
10786cat confdefs.h >>conftest.$ac_ext
10787cat >>conftest.$ac_ext <<_ACEOF
10788/* end confdefs.h. */
98418dba 10789
ba4481b5 10790/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
10791#ifdef __cplusplus
10792extern "C"
10793#endif
ba4481b5 10794/* We use char because int might match the return type of a gcc2
503d2be0 10795 builtin and then its argument prototype would still apply. */
98418dba 10796char XpmReadFileToPixmap ();
503d2be0
AS
10797int
10798main ()
10799{
98418dba 10800XpmReadFileToPixmap ();
503d2be0
AS
10801 ;
10802 return 0;
10803}
10804_ACEOF
10805rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 10806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 10807 (eval $ac_link) 2>conftest.er1
503d2be0 10808 ac_status=$?
35996d22
AS
10809 grep -v '^ *+' conftest.er1 >conftest.err
10810 rm -f conftest.er1
10811 cat conftest.err >&5
c0d27fcc 10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 10813 (exit $ac_status); } &&
35996d22
AS
10814 { ac_try='test -z "$ac_c_werror_flag"
10815 || test ! -s conftest.err'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
10823 (eval $ac_try) 2>&5
10824 ac_status=$?
c0d27fcc 10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 10826 (exit $ac_status); }; }; then
98418dba 10827 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
503d2be0
AS
10828else
10829 echo "$as_me: failed program was:" >&5
19650fd6
AS
10830sed 's/^/| /' conftest.$ac_ext >&5
10831
98418dba 10832ac_cv_lib_Xpm_XpmReadFileToPixmap=no
503d2be0 10833fi
35996d22
AS
10834rm -f conftest.err conftest.$ac_objext \
10835 conftest$ac_exeext conftest.$ac_ext
98418dba 10836LIBS=$ac_check_lib_save_LIBS
503d2be0 10837fi
c0d27fcc 10838echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
98418dba
CW
10839echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10840if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10841 HAVE_XPM=yes
ba4481b5
DL
10842fi
10843
98418dba
CW
10844fi
10845
c0d27fcc 10846
98418dba 10847 if test "${HAVE_XPM}" = "yes"; then
c0d27fcc 10848 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
98418dba
CW
10849echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10850 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10851/* confdefs.h. */
10852_ACEOF
10853cat confdefs.h >>conftest.$ac_ext
10854cat >>conftest.$ac_ext <<_ACEOF
10855/* end confdefs.h. */
98418dba
CW
10856#include "X11/xpm.h"
10857#ifndef XpmReturnAllocPixels
10858no_return_alloc_pixels
503d2be0 10859#endif
ba4481b5 10860
98418dba
CW
10861_ACEOF
10862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 10863 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
98418dba
CW
10864 HAVE_XPM=no
10865else
10866 HAVE_XPM=yes
10867fi
10868rm -f conftest*
ba4481b5 10869
c0d27fcc 10870
98418dba 10871 if test "${HAVE_XPM}" = "yes"; then
c0d27fcc 10872 echo "$as_me:$LINENO: result: yes" >&5
98418dba
CW
10873echo "${ECHO_T}yes" >&6
10874 else
c0d27fcc 10875 echo "$as_me:$LINENO: result: no" >&5
98418dba
CW
10876echo "${ECHO_T}no" >&6
10877 fi
10878 fi
10879 fi
10880
10881 if test "${HAVE_XPM}" = "yes"; then
b936fae4 10882
c0d27fcc 10883cat >>confdefs.h <<\_ACEOF
98418dba 10884#define HAVE_XPM 1
c0d27fcc 10885_ACEOF
98418dba
CW
10886
10887 fi
10888fi
10889
10890### Use -ljpeg if available, unless `--with-jpeg=no'.
10891HAVE_JPEG=no
10892if test "${HAVE_X11}" = "yes"; then
10893 if test "${with_jpeg}" != "no"; then
c0d27fcc
MR
10894 if test "${ac_cv_header_jerror_h+set}" = set; then
10895 echo "$as_me:$LINENO: checking for jerror.h" >&5
98418dba
CW
10896echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10897if test "${ac_cv_header_jerror_h+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
10899fi
10900echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10901echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
503d2be0 10902else
c0d27fcc
MR
10903 # Is the header compilable?
10904echo "$as_me:$LINENO: checking jerror.h usability" >&5
10905echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
10906cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10907/* confdefs.h. */
10908_ACEOF
10909cat confdefs.h >>conftest.$ac_ext
10910cat >>conftest.$ac_ext <<_ACEOF
10911/* end confdefs.h. */
c0d27fcc
MR
10912$ac_includes_default
10913#include <jerror.h>
10914_ACEOF
10915rm -f conftest.$ac_objext
10916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 10917 (eval $ac_compile) 2>conftest.er1
c0d27fcc 10918 ac_status=$?
35996d22
AS
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
c0d27fcc
MR
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } &&
35996d22
AS
10924 { ac_try='test -z "$ac_c_werror_flag"
10925 || test ! -s conftest.err'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; } &&
10931 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10934 ac_status=$?
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; }; then
10937 ac_header_compiler=yes
10938else
10939 echo "$as_me: failed program was:" >&5
19650fd6
AS
10940sed 's/^/| /' conftest.$ac_ext >&5
10941
c0d27fcc
MR
10942ac_header_compiler=no
10943fi
35996d22 10944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
10945echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10946echo "${ECHO_T}$ac_header_compiler" >&6
10947
10948# Is the header present?
10949echo "$as_me:$LINENO: checking jerror.h presence" >&5
10950echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
10951cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
10952/* confdefs.h. */
10953_ACEOF
10954cat confdefs.h >>conftest.$ac_ext
10955cat >>conftest.$ac_ext <<_ACEOF
10956/* end confdefs.h. */
98418dba
CW
10957#include <jerror.h>
10958_ACEOF
c0d27fcc 10959if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
10960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10961 ac_status=$?
6bae0ccf 10962 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
10963 rm -f conftest.er1
10964 cat conftest.err >&5
c0d27fcc 10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
10966 (exit $ac_status); } >/dev/null; then
10967 if test -s conftest.err; then
10968 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 10969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
10970 else
10971 ac_cpp_err=
10972 fi
10973else
10974 ac_cpp_err=yes
503d2be0 10975fi
98418dba 10976if test -z "$ac_cpp_err"; then
c0d27fcc 10977 ac_header_preproc=yes
ba4481b5 10978else
98418dba 10979 echo "$as_me: failed program was:" >&5
19650fd6
AS
10980sed 's/^/| /' conftest.$ac_ext >&5
10981
c0d27fcc 10982 ac_header_preproc=no
98418dba
CW
10983fi
10984rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
10985echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10986echo "${ECHO_T}$ac_header_preproc" >&6
10987
10988# So? What about this header?
35996d22
AS
10989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10990 yes:no: )
c0d27fcc
MR
10991 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
10992echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
10993 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
10994echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
10995 ac_header_preproc=yes
19650fd6 10996 ;;
35996d22 10997 no:yes:* )
c0d27fcc
MR
10998 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
10999echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
35996d22
AS
11000 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11001echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11003echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11004 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11005echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 11006 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
19650fd6 11007echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
11008 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11009echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
11010 (
11011 cat <<\_ASBOX
35996d22
AS
11012## ------------------------------------------ ##
11013## Report this to the AC_PACKAGE_NAME lists. ##
11014## ------------------------------------------ ##
19650fd6
AS
11015_ASBOX
11016 ) |
11017 sed "s/^/$as_me: WARNING: /" >&2
11018 ;;
c0d27fcc
MR
11019esac
11020echo "$as_me:$LINENO: checking for jerror.h" >&5
11021echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11022if test "${ac_cv_header_jerror_h+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11024else
11025 ac_cv_header_jerror_h=$ac_header_preproc
ba4481b5 11026fi
c0d27fcc 11027echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
98418dba 11028echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
c0d27fcc
MR
11029
11030fi
98418dba 11031if test $ac_cv_header_jerror_h = yes; then
c0d27fcc 11032 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
98418dba
CW
11033echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11034if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
503d2be0 11035 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 11036else
98418dba
CW
11037 ac_check_lib_save_LIBS=$LIBS
11038LIBS="-ljpeg $LIBS"
11039cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11040/* confdefs.h. */
11041_ACEOF
11042cat confdefs.h >>conftest.$ac_ext
11043cat >>conftest.$ac_ext <<_ACEOF
11044/* end confdefs.h. */
98418dba
CW
11045
11046/* Override any gcc2 internal prototype to avoid an error. */
11047#ifdef __cplusplus
11048extern "C"
11049#endif
11050/* We use char because int might match the return type of a gcc2
11051 builtin and then its argument prototype would still apply. */
11052char jpeg_destroy_compress ();
503d2be0
AS
11053int
11054main ()
11055{
98418dba 11056jpeg_destroy_compress ();
503d2be0
AS
11057 ;
11058 return 0;
11059}
11060_ACEOF
11061rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 11062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 11063 (eval $ac_link) 2>conftest.er1
503d2be0 11064 ac_status=$?
35996d22
AS
11065 grep -v '^ *+' conftest.er1 >conftest.err
11066 rm -f conftest.er1
11067 cat conftest.err >&5
c0d27fcc 11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 11069 (exit $ac_status); } &&
35996d22
AS
11070 { ac_try='test -z "$ac_c_werror_flag"
11071 || test ! -s conftest.err'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; } &&
11077 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
11079 (eval $ac_try) 2>&5
11080 ac_status=$?
c0d27fcc 11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 11082 (exit $ac_status); }; }; then
98418dba 11083 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
ba4481b5 11084else
503d2be0 11085 echo "$as_me: failed program was:" >&5
19650fd6
AS
11086sed 's/^/| /' conftest.$ac_ext >&5
11087
98418dba 11088ac_cv_lib_jpeg_jpeg_destroy_compress=no
ba4481b5 11089fi
35996d22
AS
11090rm -f conftest.err conftest.$ac_objext \
11091 conftest$ac_exeext conftest.$ac_ext
98418dba 11092LIBS=$ac_check_lib_save_LIBS
ba4481b5 11093fi
c0d27fcc 11094echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
98418dba
CW
11095echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11096if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11097 HAVE_JPEG=yes
ba4481b5 11098fi
98418dba 11099
ba4481b5 11100fi
98418dba 11101
c0d27fcc 11102
ba4481b5 11103 fi
ba4481b5 11104
c0d27fcc 11105
98418dba 11106 if test "${HAVE_JPEG}" = "yes"; then
c0d27fcc 11107 cat >>confdefs.h <<\_ACEOF
98418dba 11108#define HAVE_JPEG 1
c0d27fcc 11109_ACEOF
98418dba
CW
11110
11111 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11112/* confdefs.h. */
11113_ACEOF
11114cat confdefs.h >>conftest.$ac_ext
11115cat >>conftest.$ac_ext <<_ACEOF
11116/* end confdefs.h. */
22044edf 11117#include <jpeglib.h>
98418dba
CW
11118 version=JPEG_LIB_VERSION
11119
11120_ACEOF
11121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 11122 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
c0d27fcc 11123 cat >>confdefs.h <<\_ACEOF
98418dba 11124#define HAVE_JPEG 1
c0d27fcc 11125_ACEOF
ba4481b5 11126
98418dba 11127else
c0d27fcc 11128 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
98418dba
CW
11129echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11130 HAVE_JPEG=no
ba4481b5 11131fi
98418dba 11132rm -f conftest*
ba4481b5 11133
98418dba
CW
11134 fi
11135fi
503d2be0 11136
98418dba
CW
11137### Use -lpng if available, unless `--with-png=no'.
11138HAVE_PNG=no
11139if test "${HAVE_X11}" = "yes"; then
11140 if test "${with_png}" != "no"; then
f57bd967
DL
11141 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11142 # in /usr/include/libpng.
11143
11144
11145for ac_header in png.h libpng/png.h
11146do
11147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11148if eval "test \"\${$as_ac_Header+set}\" = set"; then
11149 echo "$as_me:$LINENO: checking for $ac_header" >&5
11150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11151if eval "test \"\${$as_ac_Header+set}\" = set"; then
503d2be0 11152 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc 11153fi
f57bd967
DL
11154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11155echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
503d2be0 11156else
c0d27fcc 11157 # Is the header compilable?
f57bd967
DL
11158echo "$as_me:$LINENO: checking $ac_header usability" >&5
11159echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
c0d27fcc 11160cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11161/* confdefs.h. */
11162_ACEOF
11163cat confdefs.h >>conftest.$ac_ext
11164cat >>conftest.$ac_ext <<_ACEOF
11165/* end confdefs.h. */
c0d27fcc 11166$ac_includes_default
f57bd967 11167#include <$ac_header>
c0d27fcc
MR
11168_ACEOF
11169rm -f conftest.$ac_objext
11170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 11171 (eval $ac_compile) 2>conftest.er1
c0d27fcc 11172 ac_status=$?
35996d22
AS
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
c0d27fcc
MR
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
35996d22
AS
11178 { ac_try='test -z "$ac_c_werror_flag"
11179 || test ! -s conftest.err'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_header_compiler=yes
11192else
11193 echo "$as_me: failed program was:" >&5
19650fd6
AS
11194sed 's/^/| /' conftest.$ac_ext >&5
11195
c0d27fcc
MR
11196ac_header_compiler=no
11197fi
35996d22 11198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
11199echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11200echo "${ECHO_T}$ac_header_compiler" >&6
11201
11202# Is the header present?
f57bd967
DL
11203echo "$as_me:$LINENO: checking $ac_header presence" >&5
11204echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
c0d27fcc 11205cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11206/* confdefs.h. */
11207_ACEOF
11208cat confdefs.h >>conftest.$ac_ext
11209cat >>conftest.$ac_ext <<_ACEOF
11210/* end confdefs.h. */
f57bd967 11211#include <$ac_header>
503d2be0 11212_ACEOF
c0d27fcc 11213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
11214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11215 ac_status=$?
6bae0ccf 11216 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
11217 rm -f conftest.er1
11218 cat conftest.err >&5
c0d27fcc 11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
11220 (exit $ac_status); } >/dev/null; then
11221 if test -s conftest.err; then
11222 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 11223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
11224 else
11225 ac_cpp_err=
11226 fi
11227else
11228 ac_cpp_err=yes
11229fi
11230if test -z "$ac_cpp_err"; then
c0d27fcc 11231 ac_header_preproc=yes
503d2be0
AS
11232else
11233 echo "$as_me: failed program was:" >&5
19650fd6
AS
11234sed 's/^/| /' conftest.$ac_ext >&5
11235
c0d27fcc 11236 ac_header_preproc=no
ba4481b5 11237fi
503d2be0 11238rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
11239echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11240echo "${ECHO_T}$ac_header_preproc" >&6
11241
11242# So? What about this header?
35996d22
AS
11243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11244 yes:no: )
f57bd967
DL
11245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11246echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11248echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11249 ac_header_preproc=yes
19650fd6 11250 ;;
35996d22 11251 no:yes:* )
f57bd967
DL
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11253echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11255echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11257echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11259echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
f57bd967 11260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 11261echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11263echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
11264 (
11265 cat <<\_ASBOX
35996d22
AS
11266## ------------------------------------------ ##
11267## Report this to the AC_PACKAGE_NAME lists. ##
11268## ------------------------------------------ ##
19650fd6
AS
11269_ASBOX
11270 ) |
11271 sed "s/^/$as_me: WARNING: /" >&2
11272 ;;
c0d27fcc 11273esac
f57bd967
DL
11274echo "$as_me:$LINENO: checking for $ac_header" >&5
11275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11276if eval "test \"\${$as_ac_Header+set}\" = set"; then
c0d27fcc
MR
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11278else
35996d22 11279 eval "$as_ac_Header=\$ac_header_preproc"
f57bd967
DL
11280fi
11281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11282echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11283
ba4481b5 11284fi
f57bd967
DL
11285if test `eval echo '${'$as_ac_Header'}'` = yes; then
11286 cat >>confdefs.h <<_ACEOF
11287#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11288_ACEOF
c0d27fcc
MR
11289
11290fi
f57bd967
DL
11291
11292done
11293
11294 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11295 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
98418dba
CW
11296echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11297if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
503d2be0 11298 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 11299else
98418dba
CW
11300 ac_check_lib_save_LIBS=$LIBS
11301LIBS="-lpng -lz -lm $LIBS"
11302cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11303/* confdefs.h. */
11304_ACEOF
11305cat confdefs.h >>conftest.$ac_ext
11306cat >>conftest.$ac_ext <<_ACEOF
11307/* end confdefs.h. */
98418dba 11308
ba4481b5 11309/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
11310#ifdef __cplusplus
11311extern "C"
11312#endif
ba4481b5 11313/* We use char because int might match the return type of a gcc2
503d2be0 11314 builtin and then its argument prototype would still apply. */
98418dba 11315char png_get_channels ();
503d2be0
AS
11316int
11317main ()
11318{
98418dba 11319png_get_channels ();
503d2be0
AS
11320 ;
11321 return 0;
11322}
11323_ACEOF
11324rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 11325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 11326 (eval $ac_link) 2>conftest.er1
503d2be0 11327 ac_status=$?
35996d22
AS
11328 grep -v '^ *+' conftest.er1 >conftest.err
11329 rm -f conftest.er1
11330 cat conftest.err >&5
c0d27fcc 11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 11332 (exit $ac_status); } &&
35996d22
AS
11333 { ac_try='test -z "$ac_c_werror_flag"
11334 || test ! -s conftest.err'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; } &&
11340 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
11342 (eval $ac_try) 2>&5
11343 ac_status=$?
c0d27fcc 11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 11345 (exit $ac_status); }; }; then
98418dba 11346 ac_cv_lib_png_png_get_channels=yes
73b77ee5 11347else
98418dba 11348 echo "$as_me: failed program was:" >&5
19650fd6
AS
11349sed 's/^/| /' conftest.$ac_ext >&5
11350
98418dba 11351ac_cv_lib_png_png_get_channels=no
73b77ee5 11352fi
35996d22
AS
11353rm -f conftest.err conftest.$ac_objext \
11354 conftest$ac_exeext conftest.$ac_ext
98418dba 11355LIBS=$ac_check_lib_save_LIBS
73b77ee5 11356fi
c0d27fcc 11357echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
98418dba
CW
11358echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11359if test $ac_cv_lib_png_png_get_channels = yes; then
11360 HAVE_PNG=yes
73b77ee5 11361fi
503d2be0 11362
f57bd967 11363 fi
98418dba
CW
11364 fi
11365
11366 if test "${HAVE_PNG}" = "yes"; then
b936fae4 11367
c0d27fcc 11368cat >>confdefs.h <<\_ACEOF
98418dba 11369#define HAVE_PNG 1
c0d27fcc 11370_ACEOF
73b77ee5 11371
98418dba 11372 fi
73b77ee5
GM
11373fi
11374
98418dba
CW
11375### Use -ltiff if available, unless `--with-tiff=no'.
11376HAVE_TIFF=no
11377if test "${HAVE_X11}" = "yes"; then
11378 if test "${with_tiff}" != "no"; then
c0d27fcc
MR
11379 if test "${ac_cv_header_tiffio_h+set}" = set; then
11380 echo "$as_me:$LINENO: checking for tiffio.h" >&5
98418dba
CW
11381echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11382if test "${ac_cv_header_tiffio_h+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
11384fi
11385echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11386echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
98418dba 11387else
c0d27fcc
MR
11388 # Is the header compilable?
11389echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11390echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11391cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11392/* confdefs.h. */
11393_ACEOF
11394cat confdefs.h >>conftest.$ac_ext
11395cat >>conftest.$ac_ext <<_ACEOF
11396/* end confdefs.h. */
c0d27fcc
MR
11397$ac_includes_default
11398#include <tiffio.h>
11399_ACEOF
11400rm -f conftest.$ac_objext
11401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 11402 (eval $ac_compile) 2>conftest.er1
c0d27fcc 11403 ac_status=$?
35996d22
AS
11404 grep -v '^ *+' conftest.er1 >conftest.err
11405 rm -f conftest.er1
11406 cat conftest.err >&5
c0d27fcc
MR
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } &&
35996d22
AS
11409 { ac_try='test -z "$ac_c_werror_flag"
11410 || test ! -s conftest.err'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; } &&
11416 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
11422 ac_header_compiler=yes
11423else
11424 echo "$as_me: failed program was:" >&5
19650fd6
AS
11425sed 's/^/| /' conftest.$ac_ext >&5
11426
c0d27fcc
MR
11427ac_header_compiler=no
11428fi
35996d22 11429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
11430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11431echo "${ECHO_T}$ac_header_compiler" >&6
11432
11433# Is the header present?
11434echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11435echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11436cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11437/* confdefs.h. */
11438_ACEOF
11439cat confdefs.h >>conftest.$ac_ext
11440cat >>conftest.$ac_ext <<_ACEOF
11441/* end confdefs.h. */
98418dba
CW
11442#include <tiffio.h>
11443_ACEOF
c0d27fcc 11444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
11445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11446 ac_status=$?
6bae0ccf 11447 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
11448 rm -f conftest.er1
11449 cat conftest.err >&5
c0d27fcc 11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
11451 (exit $ac_status); } >/dev/null; then
11452 if test -s conftest.err; then
11453 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 11454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
11455 else
11456 ac_cpp_err=
11457 fi
11458else
11459 ac_cpp_err=yes
11460fi
11461if test -z "$ac_cpp_err"; then
c0d27fcc 11462 ac_header_preproc=yes
98418dba
CW
11463else
11464 echo "$as_me: failed program was:" >&5
19650fd6
AS
11465sed 's/^/| /' conftest.$ac_ext >&5
11466
c0d27fcc 11467 ac_header_preproc=no
98418dba
CW
11468fi
11469rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
11470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11471echo "${ECHO_T}$ac_header_preproc" >&6
11472
11473# So? What about this header?
35996d22
AS
11474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11475 yes:no: )
c0d27fcc
MR
11476 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11477echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
11478 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11479echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11480 ac_header_preproc=yes
19650fd6 11481 ;;
35996d22 11482 no:yes:* )
c0d27fcc
MR
11483 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11484echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
35996d22
AS
11485 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11486echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11488echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11490echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 11491 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19650fd6 11492echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
11493 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11494echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
11495 (
11496 cat <<\_ASBOX
35996d22
AS
11497## ------------------------------------------ ##
11498## Report this to the AC_PACKAGE_NAME lists. ##
11499## ------------------------------------------ ##
19650fd6
AS
11500_ASBOX
11501 ) |
11502 sed "s/^/$as_me: WARNING: /" >&2
11503 ;;
c0d27fcc
MR
11504esac
11505echo "$as_me:$LINENO: checking for tiffio.h" >&5
11506echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11507if test "${ac_cv_header_tiffio_h+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509else
11510 ac_cv_header_tiffio_h=$ac_header_preproc
98418dba 11511fi
c0d27fcc 11512echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
98418dba 11513echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
c0d27fcc
MR
11514
11515fi
98418dba
CW
11516if test $ac_cv_header_tiffio_h = yes; then
11517 tifflibs="-lz -lm"
11518 # At least one tiff package requires the jpeg library.
11519 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
c0d27fcc 11520 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
98418dba
CW
11521echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11522if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
503d2be0 11523 echo $ECHO_N "(cached) $ECHO_C" >&6
73b77ee5 11524else
503d2be0 11525 ac_check_lib_save_LIBS=$LIBS
98418dba 11526LIBS="-ltiff $tifflibs $LIBS"
503d2be0 11527cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11528/* confdefs.h. */
11529_ACEOF
11530cat confdefs.h >>conftest.$ac_ext
11531cat >>conftest.$ac_ext <<_ACEOF
11532/* end confdefs.h. */
503d2be0 11533
73b77ee5 11534/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
11535#ifdef __cplusplus
11536extern "C"
11537#endif
73b77ee5 11538/* We use char because int might match the return type of a gcc2
503d2be0 11539 builtin and then its argument prototype would still apply. */
98418dba 11540char TIFFGetVersion ();
503d2be0
AS
11541int
11542main ()
11543{
98418dba 11544TIFFGetVersion ();
503d2be0
AS
11545 ;
11546 return 0;
11547}
11548_ACEOF
11549rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 11550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 11551 (eval $ac_link) 2>conftest.er1
503d2be0 11552 ac_status=$?
35996d22
AS
11553 grep -v '^ *+' conftest.er1 >conftest.err
11554 rm -f conftest.er1
11555 cat conftest.err >&5
c0d27fcc 11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 11557 (exit $ac_status); } &&
35996d22
AS
11558 { ac_try='test -z "$ac_c_werror_flag"
11559 || test ! -s conftest.err'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; } &&
11565 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
11567 (eval $ac_try) 2>&5
11568 ac_status=$?
c0d27fcc 11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 11570 (exit $ac_status); }; }; then
98418dba 11571 ac_cv_lib_tiff_TIFFGetVersion=yes
503d2be0
AS
11572else
11573 echo "$as_me: failed program was:" >&5
19650fd6
AS
11574sed 's/^/| /' conftest.$ac_ext >&5
11575
98418dba 11576ac_cv_lib_tiff_TIFFGetVersion=no
503d2be0 11577fi
35996d22
AS
11578rm -f conftest.err conftest.$ac_objext \
11579 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
11580LIBS=$ac_check_lib_save_LIBS
11581fi
c0d27fcc 11582echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
98418dba
CW
11583echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11584if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11585 HAVE_TIFF=yes
11586fi
11587
11588fi
73b77ee5 11589
c0d27fcc 11590
98418dba
CW
11591 fi
11592
11593 if test "${HAVE_TIFF}" = "yes"; then
b936fae4 11594
c0d27fcc 11595cat >>confdefs.h <<\_ACEOF
98418dba 11596#define HAVE_TIFF 1
c0d27fcc 11597_ACEOF
98418dba
CW
11598
11599 fi
73b77ee5
GM
11600fi
11601
98418dba
CW
11602### Use -lgif if available, unless `--with-gif=no'.
11603HAVE_GIF=no
11604if test "${HAVE_X11}" = "yes"; then
11605 if test "${with_gif}" != "no"; then
c0d27fcc
MR
11606 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11607 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
98418dba
CW
11608echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11609if test "${ac_cv_header_gif_lib_h+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
11611fi
11612echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11613echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
98418dba 11614else
c0d27fcc
MR
11615 # Is the header compilable?
11616echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11617echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11618cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11619/* confdefs.h. */
11620_ACEOF
11621cat confdefs.h >>conftest.$ac_ext
11622cat >>conftest.$ac_ext <<_ACEOF
11623/* end confdefs.h. */
c0d27fcc
MR
11624$ac_includes_default
11625#include <gif_lib.h>
11626_ACEOF
11627rm -f conftest.$ac_objext
11628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 11629 (eval $ac_compile) 2>conftest.er1
c0d27fcc 11630 ac_status=$?
35996d22
AS
11631 grep -v '^ *+' conftest.er1 >conftest.err
11632 rm -f conftest.er1
11633 cat conftest.err >&5
c0d27fcc
MR
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } &&
35996d22
AS
11636 { ac_try='test -z "$ac_c_werror_flag"
11637 || test ! -s conftest.err'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; } &&
11643 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11646 ac_status=$?
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 ac_header_compiler=yes
11650else
11651 echo "$as_me: failed program was:" >&5
19650fd6
AS
11652sed 's/^/| /' conftest.$ac_ext >&5
11653
c0d27fcc
MR
11654ac_header_compiler=no
11655fi
35996d22 11656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
11657echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11658echo "${ECHO_T}$ac_header_compiler" >&6
11659
11660# Is the header present?
11661echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11662echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11663cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11664/* confdefs.h. */
11665_ACEOF
11666cat confdefs.h >>conftest.$ac_ext
11667cat >>conftest.$ac_ext <<_ACEOF
11668/* end confdefs.h. */
98418dba
CW
11669#include <gif_lib.h>
11670_ACEOF
c0d27fcc 11671if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
11672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11673 ac_status=$?
6bae0ccf 11674 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
11675 rm -f conftest.er1
11676 cat conftest.err >&5
c0d27fcc 11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
11678 (exit $ac_status); } >/dev/null; then
11679 if test -s conftest.err; then
11680 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 11681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
11682 else
11683 ac_cpp_err=
11684 fi
11685else
11686 ac_cpp_err=yes
11687fi
11688if test -z "$ac_cpp_err"; then
c0d27fcc 11689 ac_header_preproc=yes
98418dba
CW
11690else
11691 echo "$as_me: failed program was:" >&5
19650fd6
AS
11692sed 's/^/| /' conftest.$ac_ext >&5
11693
c0d27fcc 11694 ac_header_preproc=no
98418dba
CW
11695fi
11696rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
11697echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11698echo "${ECHO_T}$ac_header_preproc" >&6
11699
11700# So? What about this header?
35996d22
AS
11701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11702 yes:no: )
c0d27fcc
MR
11703 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11704echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
11705 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11706echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11707 ac_header_preproc=yes
19650fd6 11708 ;;
35996d22 11709 no:yes:* )
c0d27fcc
MR
11710 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11711echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
35996d22
AS
11712 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11713echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11715echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11717echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 11718 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
19650fd6 11719echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
11720 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11721echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
11722 (
11723 cat <<\_ASBOX
35996d22
AS
11724## ------------------------------------------ ##
11725## Report this to the AC_PACKAGE_NAME lists. ##
11726## ------------------------------------------ ##
19650fd6
AS
11727_ASBOX
11728 ) |
11729 sed "s/^/$as_me: WARNING: /" >&2
11730 ;;
c0d27fcc
MR
11731esac
11732echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11733echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11734if test "${ac_cv_header_gif_lib_h+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11736else
11737 ac_cv_header_gif_lib_h=$ac_header_preproc
98418dba 11738fi
c0d27fcc 11739echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
98418dba 11740echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
c0d27fcc
MR
11741
11742fi
98418dba
CW
11743if test $ac_cv_header_gif_lib_h = yes; then
11744 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11745# Earlier versions can crash Emacs.
c0d27fcc 11746 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
98418dba
CW
11747echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11748if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
503d2be0 11749 echo $ECHO_N "(cached) $ECHO_C" >&6
73b77ee5 11750else
503d2be0 11751 ac_check_lib_save_LIBS=$LIBS
98418dba 11752LIBS="-lungif $LIBS"
503d2be0 11753cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11754/* confdefs.h. */
11755_ACEOF
11756cat confdefs.h >>conftest.$ac_ext
11757cat >>conftest.$ac_ext <<_ACEOF
11758/* end confdefs.h. */
73b77ee5 11759
98418dba
CW
11760/* Override any gcc2 internal prototype to avoid an error. */
11761#ifdef __cplusplus
11762extern "C"
11763#endif
11764/* We use char because int might match the return type of a gcc2
11765 builtin and then its argument prototype would still apply. */
11766char EGifPutExtensionLast ();
503d2be0
AS
11767int
11768main ()
11769{
98418dba 11770EGifPutExtensionLast ();
503d2be0
AS
11771 ;
11772 return 0;
11773}
11774_ACEOF
11775rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 11776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 11777 (eval $ac_link) 2>conftest.er1
503d2be0 11778 ac_status=$?
35996d22
AS
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
c0d27fcc 11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 11783 (exit $ac_status); } &&
35996d22
AS
11784 { ac_try='test -z "$ac_c_werror_flag"
11785 || test ! -s conftest.err'
c0d27fcc 11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
11787 (eval $ac_try) 2>&5
11788 ac_status=$?
c0d27fcc 11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996d22
AS
11790 (exit $ac_status); }; } &&
11791 { ac_try='test -s conftest$ac_exeext'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11797 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11798else
98418dba 11799 echo "$as_me: failed program was:" >&5
19650fd6
AS
11800sed 's/^/| /' conftest.$ac_ext >&5
11801
98418dba
CW
11802ac_cv_lib_ungif_EGifPutExtensionLast=no
11803fi
35996d22
AS
11804rm -f conftest.err conftest.$ac_objext \
11805 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
11806LIBS=$ac_check_lib_save_LIBS
11807fi
c0d27fcc 11808echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
98418dba
CW
11809echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11810if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11811 HAVE_GIF=yes
11812fi
11813
11814fi
11815
c0d27fcc 11816
98418dba
CW
11817 fi
11818
11819 if test "${HAVE_GIF}" = "yes"; then
b936fae4 11820
c0d27fcc 11821cat >>confdefs.h <<\_ACEOF
98418dba 11822#define HAVE_GIF 1
c0d27fcc 11823_ACEOF
98418dba
CW
11824
11825 fi
11826fi
11827
c0d27fcc
MR
11828### Use Mac OS X Carbon API to implement GUI.
11829HAVE_CARBON=no
11830if test "${with_carbon}" != "no"; then
11831 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11832 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11833echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11834if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11836fi
11837echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11838echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11839else
11840 # Is the header compilable?
11841echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
11842echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
11843cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11844/* confdefs.h. */
11845_ACEOF
11846cat confdefs.h >>conftest.$ac_ext
11847cat >>conftest.$ac_ext <<_ACEOF
11848/* end confdefs.h. */
c0d27fcc
MR
11849$ac_includes_default
11850#include <Carbon/Carbon.h>
11851_ACEOF
11852rm -f conftest.$ac_objext
11853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 11854 (eval $ac_compile) 2>conftest.er1
c0d27fcc 11855 ac_status=$?
35996d22
AS
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
c0d27fcc
MR
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } &&
35996d22
AS
11861 { ac_try='test -z "$ac_c_werror_flag"
11862 || test ! -s conftest.err'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11865 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; } &&
11868 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 ac_header_compiler=yes
11875else
11876 echo "$as_me: failed program was:" >&5
19650fd6
AS
11877sed 's/^/| /' conftest.$ac_ext >&5
11878
c0d27fcc
MR
11879ac_header_compiler=no
11880fi
35996d22 11881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
11882echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11883echo "${ECHO_T}$ac_header_compiler" >&6
11884
11885# Is the header present?
11886echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
11887echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
11888cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
11889/* confdefs.h. */
11890_ACEOF
11891cat confdefs.h >>conftest.$ac_ext
11892cat >>conftest.$ac_ext <<_ACEOF
11893/* end confdefs.h. */
e0f712ba
AC
11894#include <Carbon/Carbon.h>
11895_ACEOF
c0d27fcc 11896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
e0f712ba
AC
11897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11898 ac_status=$?
6bae0ccf 11899 grep -v '^ *+' conftest.er1 >conftest.err
e0f712ba
AC
11900 rm -f conftest.er1
11901 cat conftest.err >&5
c0d27fcc 11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
e0f712ba
AC
11903 (exit $ac_status); } >/dev/null; then
11904 if test -s conftest.err; then
11905 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 11906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e0f712ba
AC
11907 else
11908 ac_cpp_err=
11909 fi
11910else
11911 ac_cpp_err=yes
11912fi
11913if test -z "$ac_cpp_err"; then
c0d27fcc 11914 ac_header_preproc=yes
e0f712ba
AC
11915else
11916 echo "$as_me: failed program was:" >&5
19650fd6
AS
11917sed 's/^/| /' conftest.$ac_ext >&5
11918
c0d27fcc 11919 ac_header_preproc=no
e0f712ba
AC
11920fi
11921rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
11922echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11923echo "${ECHO_T}$ac_header_preproc" >&6
11924
11925# So? What about this header?
35996d22
AS
11926case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11927 yes:no: )
c0d27fcc
MR
11928 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
11929echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
11930 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
11931echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
11932 ac_header_preproc=yes
19650fd6 11933 ;;
35996d22 11934 no:yes:* )
c0d27fcc
MR
11935 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
11936echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
35996d22
AS
11937 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
11938echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
11940echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
11942echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 11943 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
19650fd6 11944echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
11945 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
11946echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
11947 (
11948 cat <<\_ASBOX
35996d22
AS
11949## ------------------------------------------ ##
11950## Report this to the AC_PACKAGE_NAME lists. ##
11951## ------------------------------------------ ##
19650fd6
AS
11952_ASBOX
11953 ) |
11954 sed "s/^/$as_me: WARNING: /" >&2
11955 ;;
c0d27fcc
MR
11956esac
11957echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11958echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11959if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961else
11962 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
e0f712ba 11963fi
c0d27fcc 11964echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
e0f712ba 11965echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
c0d27fcc
MR
11966
11967fi
e0f712ba
AC
11968if test $ac_cv_header_Carbon_Carbon_h = yes; then
11969 HAVE_CARBON=yes
11970fi
11971
c0d27fcc 11972
e0f712ba
AC
11973fi
11974
11975if test "${HAVE_CARBON}" = "yes"; then
e3ba1015 11976
c0d27fcc 11977cat >>confdefs.h <<\_ACEOF
e0f712ba 11978#define HAVE_CARBON 1
c0d27fcc 11979_ACEOF
e0f712ba 11980
6a3a24fa
JD
11981 window_system=mac
11982 ## Specify the install directory
11983 carbon_appdir=
11984 if test "${carbon_appdir_x}" != ""; then
11985 case ${carbon_appdir_x} in
11986 y | ye | yes) carbon_appdir=/Applications ;;
11987 * ) carbon_appdir=${carbon_appdir_x} ;;
11988 esac
11989 fi
8f417b3b
AS
11990 # We also have mouse menus.
11991 HAVE_MENUS=yes
e0f712ba
AC
11992fi
11993
98418dba
CW
11994### Use session management (-lSM -lICE) if available
11995HAVE_X_SM=no
11996if test "${HAVE_X11}" = "yes"; then
c0d27fcc
MR
11997 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11998 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
98418dba
CW
11999echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12000if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
12002fi
12003echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12004echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
503d2be0 12005else
c0d27fcc
MR
12006 # Is the header compilable?
12007echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12008echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12009cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12010/* confdefs.h. */
12011_ACEOF
12012cat confdefs.h >>conftest.$ac_ext
12013cat >>conftest.$ac_ext <<_ACEOF
12014/* end confdefs.h. */
c0d27fcc
MR
12015$ac_includes_default
12016#include <X11/SM/SMlib.h>
12017_ACEOF
12018rm -f conftest.$ac_objext
12019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 12020 (eval $ac_compile) 2>conftest.er1
c0d27fcc 12021 ac_status=$?
35996d22
AS
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
c0d27fcc
MR
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
35996d22
AS
12027 { ac_try='test -z "$ac_c_werror_flag"
12028 || test ! -s conftest.err'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 ac_header_compiler=yes
12041else
12042 echo "$as_me: failed program was:" >&5
19650fd6
AS
12043sed 's/^/| /' conftest.$ac_ext >&5
12044
c0d27fcc
MR
12045ac_header_compiler=no
12046fi
35996d22 12047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
12048echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12049echo "${ECHO_T}$ac_header_compiler" >&6
12050
12051# Is the header present?
12052echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12053echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12054cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12055/* confdefs.h. */
12056_ACEOF
12057cat confdefs.h >>conftest.$ac_ext
12058cat >>conftest.$ac_ext <<_ACEOF
12059/* end confdefs.h. */
98418dba
CW
12060#include <X11/SM/SMlib.h>
12061_ACEOF
c0d27fcc 12062if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
12063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12064 ac_status=$?
6bae0ccf 12065 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
12066 rm -f conftest.er1
12067 cat conftest.err >&5
c0d27fcc 12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
12069 (exit $ac_status); } >/dev/null; then
12070 if test -s conftest.err; then
12071 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 12072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
12073 else
12074 ac_cpp_err=
12075 fi
12076else
12077 ac_cpp_err=yes
503d2be0 12078fi
98418dba 12079if test -z "$ac_cpp_err"; then
c0d27fcc 12080 ac_header_preproc=yes
98418dba
CW
12081else
12082 echo "$as_me: failed program was:" >&5
19650fd6
AS
12083sed 's/^/| /' conftest.$ac_ext >&5
12084
c0d27fcc 12085 ac_header_preproc=no
98418dba
CW
12086fi
12087rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
12088echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12089echo "${ECHO_T}$ac_header_preproc" >&6
12090
12091# So? What about this header?
35996d22
AS
12092case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12093 yes:no: )
c0d27fcc
MR
12094 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12095echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
12096 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12097echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12098 ac_header_preproc=yes
19650fd6 12099 ;;
35996d22 12100 no:yes:* )
c0d27fcc
MR
12101 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12102echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
35996d22
AS
12103 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12104echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12106echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12108echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 12109 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
19650fd6 12110echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
12111 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12112echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
12113 (
12114 cat <<\_ASBOX
35996d22
AS
12115## ------------------------------------------ ##
12116## Report this to the AC_PACKAGE_NAME lists. ##
12117## ------------------------------------------ ##
19650fd6
AS
12118_ASBOX
12119 ) |
12120 sed "s/^/$as_me: WARNING: /" >&2
12121 ;;
c0d27fcc
MR
12122esac
12123echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12124echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12125if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12127else
12128 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
73b77ee5 12129fi
c0d27fcc 12130echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
98418dba 12131echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
c0d27fcc
MR
12132
12133fi
98418dba 12134if test $ac_cv_header_X11_SM_SMlib_h = yes; then
c0d27fcc 12135 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
98418dba
CW
12136echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12137if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
503d2be0 12138 echo $ECHO_N "(cached) $ECHO_C" >&6
73b77ee5 12139else
503d2be0 12140 ac_check_lib_save_LIBS=$LIBS
1660500f 12141LIBS="-lSM -lICE $LIBS"
503d2be0 12142cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12143/* confdefs.h. */
12144_ACEOF
12145cat confdefs.h >>conftest.$ac_ext
12146cat >>conftest.$ac_ext <<_ACEOF
12147/* end confdefs.h. */
503d2be0 12148
73b77ee5 12149/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
12150#ifdef __cplusplus
12151extern "C"
12152#endif
73b77ee5 12153/* We use char because int might match the return type of a gcc2
503d2be0 12154 builtin and then its argument prototype would still apply. */
98418dba 12155char SmcOpenConnection ();
503d2be0
AS
12156int
12157main ()
12158{
98418dba 12159SmcOpenConnection ();
503d2be0
AS
12160 ;
12161 return 0;
12162}
12163_ACEOF
12164rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 12165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 12166 (eval $ac_link) 2>conftest.er1
503d2be0 12167 ac_status=$?
35996d22
AS
12168 grep -v '^ *+' conftest.er1 >conftest.err
12169 rm -f conftest.er1
12170 cat conftest.err >&5
c0d27fcc 12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12172 (exit $ac_status); } &&
35996d22
AS
12173 { ac_try='test -z "$ac_c_werror_flag"
12174 || test ! -s conftest.err'
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12177 ac_status=$?
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; } &&
12180 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 12181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12182 (eval $ac_try) 2>&5
12183 ac_status=$?
c0d27fcc 12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12185 (exit $ac_status); }; }; then
98418dba 12186 ac_cv_lib_SM_SmcOpenConnection=yes
503d2be0
AS
12187else
12188 echo "$as_me: failed program was:" >&5
19650fd6
AS
12189sed 's/^/| /' conftest.$ac_ext >&5
12190
98418dba 12191ac_cv_lib_SM_SmcOpenConnection=no
503d2be0 12192fi
35996d22
AS
12193rm -f conftest.err conftest.$ac_objext \
12194 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
12195LIBS=$ac_check_lib_save_LIBS
12196fi
c0d27fcc 12197echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
98418dba
CW
12198echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12199if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12200 HAVE_X_SM=yes
73b77ee5
GM
12201fi
12202
73b77ee5 12203fi
73b77ee5 12204
c0d27fcc
MR
12205
12206
98418dba 12207 if test "${HAVE_X_SM}" = "yes"; then
b936fae4 12208
c0d27fcc 12209cat >>confdefs.h <<\_ACEOF
98418dba 12210#define HAVE_X_SM 1
c0d27fcc 12211_ACEOF
73b77ee5 12212
98418dba
CW
12213 case "$LIBS" in
12214 *-lSM*) ;;
12215 *) LIBS="-lSM -lICE $LIBS" ;;
12216 esac
73b77ee5 12217 fi
98418dba 12218fi
73b77ee5 12219
98418dba 12220# If netdb.h doesn't declare h_errno, we must declare it by hand.
c0d27fcc 12221echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
98418dba
CW
12222echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12223if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225else
12226 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12227/* confdefs.h. */
12228_ACEOF
12229cat confdefs.h >>conftest.$ac_ext
12230cat >>conftest.$ac_ext <<_ACEOF
12231/* end confdefs.h. */
98418dba 12232#include <netdb.h>
503d2be0
AS
12233int
12234main ()
12235{
98418dba 12236return h_errno;
503d2be0
AS
12237 ;
12238 return 0;
12239}
12240_ACEOF
12241rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 12242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 12243 (eval $ac_link) 2>conftest.er1
503d2be0 12244 ac_status=$?
35996d22
AS
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
c0d27fcc 12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12249 (exit $ac_status); } &&
35996d22
AS
12250 { ac_try='test -z "$ac_c_werror_flag"
12251 || test ! -s conftest.err'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12259 (eval $ac_try) 2>&5
12260 ac_status=$?
c0d27fcc 12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12262 (exit $ac_status); }; }; then
98418dba 12263 emacs_cv_netdb_declares_h_errno=yes
73b77ee5 12264else
503d2be0 12265 echo "$as_me: failed program was:" >&5
19650fd6
AS
12266sed 's/^/| /' conftest.$ac_ext >&5
12267
98418dba 12268emacs_cv_netdb_declares_h_errno=no
73b77ee5 12269fi
35996d22
AS
12270rm -f conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext conftest.$ac_ext
98418dba 12272fi
c0d27fcc 12273echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
98418dba
CW
12274echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12275if test $emacs_cv_netdb_declares_h_errno = yes; then
b936fae4 12276
c0d27fcc 12277cat >>confdefs.h <<\_ACEOF
98418dba 12278#define HAVE_H_ERRNO 1
c0d27fcc 12279_ACEOF
73b77ee5 12280
98418dba
CW
12281fi
12282
12283# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12284# for constant arguments. Useless!
c0d27fcc 12285echo "$as_me:$LINENO: checking for working alloca.h" >&5
98418dba
CW
12286echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12287if test "${ac_cv_working_alloca_h+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289else
12290 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12291/* confdefs.h. */
12292_ACEOF
12293cat confdefs.h >>conftest.$ac_ext
12294cat >>conftest.$ac_ext <<_ACEOF
12295/* end confdefs.h. */
98418dba 12296#include <alloca.h>
503d2be0
AS
12297int
12298main ()
12299{
98418dba 12300char *p = (char *) alloca (2 * sizeof (int));
503d2be0
AS
12301 ;
12302 return 0;
12303}
12304_ACEOF
12305rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 12306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 12307 (eval $ac_link) 2>conftest.er1
503d2be0 12308 ac_status=$?
35996d22
AS
12309 grep -v '^ *+' conftest.er1 >conftest.err
12310 rm -f conftest.er1
12311 cat conftest.err >&5
c0d27fcc 12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12313 (exit $ac_status); } &&
35996d22
AS
12314 { ac_try='test -z "$ac_c_werror_flag"
12315 || test ! -s conftest.err'
12316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317 (eval $ac_try) 2>&5
12318 ac_status=$?
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; } &&
12321 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 12322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12323 (eval $ac_try) 2>&5
12324 ac_status=$?
c0d27fcc 12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12326 (exit $ac_status); }; }; then
98418dba 12327 ac_cv_working_alloca_h=yes
73b77ee5 12328else
503d2be0 12329 echo "$as_me: failed program was:" >&5
19650fd6
AS
12330sed 's/^/| /' conftest.$ac_ext >&5
12331
98418dba 12332ac_cv_working_alloca_h=no
73b77ee5 12333fi
35996d22
AS
12334rm -f conftest.err conftest.$ac_objext \
12335 conftest$ac_exeext conftest.$ac_ext
98418dba 12336fi
c0d27fcc 12337echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
98418dba
CW
12338echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12339if test $ac_cv_working_alloca_h = yes; then
73b77ee5 12340
c0d27fcc 12341cat >>confdefs.h <<\_ACEOF
98418dba 12342#define HAVE_ALLOCA_H 1
c0d27fcc 12343_ACEOF
98418dba
CW
12344
12345fi
12346
c0d27fcc 12347echo "$as_me:$LINENO: checking for alloca" >&5
98418dba
CW
12348echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12349if test "${ac_cv_func_alloca_works+set}" = set; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12351else
503d2be0 12352 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12353/* confdefs.h. */
12354_ACEOF
12355cat confdefs.h >>conftest.$ac_ext
12356cat >>conftest.$ac_ext <<_ACEOF
12357/* end confdefs.h. */
98418dba
CW
12358#ifdef __GNUC__
12359# define alloca __builtin_alloca
12360#else
12361# ifdef _MSC_VER
12362# include <malloc.h>
12363# define alloca _alloca
12364# else
12365# if HAVE_ALLOCA_H
12366# include <alloca.h>
12367# else
12368# ifdef _AIX
12369 #pragma alloca
12370# else
12371# ifndef alloca /* predefined by HP cc +Olibcalls */
12372char *alloca ();
12373# endif
12374# endif
12375# endif
12376# endif
12377#endif
12378
503d2be0
AS
12379int
12380main ()
12381{
98418dba 12382char *p = (char *) alloca (1);
503d2be0
AS
12383 ;
12384 return 0;
12385}
12386_ACEOF
12387rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 12388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 12389 (eval $ac_link) 2>conftest.er1
503d2be0 12390 ac_status=$?
35996d22
AS
12391 grep -v '^ *+' conftest.er1 >conftest.err
12392 rm -f conftest.er1
12393 cat conftest.err >&5
c0d27fcc 12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12395 (exit $ac_status); } &&
35996d22
AS
12396 { ac_try='test -z "$ac_c_werror_flag"
12397 || test ! -s conftest.err'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12405 (eval $ac_try) 2>&5
12406 ac_status=$?
c0d27fcc 12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12408 (exit $ac_status); }; }; then
98418dba 12409 ac_cv_func_alloca_works=yes
ac95a621 12410else
503d2be0 12411 echo "$as_me: failed program was:" >&5
19650fd6
AS
12412sed 's/^/| /' conftest.$ac_ext >&5
12413
98418dba 12414ac_cv_func_alloca_works=no
ac95a621 12415fi
35996d22
AS
12416rm -f conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
98418dba 12418fi
c0d27fcc 12419echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
98418dba 12420echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
ac95a621 12421
98418dba
CW
12422if test $ac_cv_func_alloca_works = yes; then
12423
c0d27fcc 12424cat >>confdefs.h <<\_ACEOF
98418dba 12425#define HAVE_ALLOCA 1
c0d27fcc 12426_ACEOF
98418dba
CW
12427
12428else
12429 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12430# that cause trouble. Some versions do not even contain alloca or
12431# contain a buggy version. If you still want to use their alloca,
12432# use ar to extract alloca.o from them instead of compiling alloca.c.
12433
12434ALLOCA=alloca.$ac_objext
12435
c0d27fcc 12436cat >>confdefs.h <<\_ACEOF
98418dba 12437#define C_ALLOCA 1
c0d27fcc 12438_ACEOF
98418dba 12439
c0d27fcc
MR
12440
12441echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
98418dba
CW
12442echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12443if test "${ac_cv_os_cray+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445else
12446 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12447/* confdefs.h. */
12448_ACEOF
12449cat confdefs.h >>conftest.$ac_ext
12450cat >>conftest.$ac_ext <<_ACEOF
12451/* end confdefs.h. */
98418dba
CW
12452#if defined(CRAY) && ! defined(CRAY2)
12453webecray
12454#else
12455wenotbecray
12456#endif
12457
12458_ACEOF
12459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 12460 $EGREP "webecray" >/dev/null 2>&1; then
98418dba
CW
12461 ac_cv_os_cray=yes
12462else
12463 ac_cv_os_cray=no
12464fi
12465rm -f conftest*
ac95a621 12466
98418dba 12467fi
c0d27fcc 12468echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
98418dba
CW
12469echo "${ECHO_T}$ac_cv_os_cray" >&6
12470if test $ac_cv_os_cray = yes; then
12471 for ac_func in _getb67 GETB67 getb67; do
12472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 12473echo "$as_me:$LINENO: checking for $ac_func" >&5
503d2be0
AS
12474echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12475if eval "test \"\${$as_ac_var+set}\" = set"; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
73b77ee5 12477else
503d2be0 12478 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12479/* confdefs.h. */
12480_ACEOF
12481cat confdefs.h >>conftest.$ac_ext
12482cat >>conftest.$ac_ext <<_ACEOF
12483/* end confdefs.h. */
35996d22
AS
12484/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12486#define $ac_func innocuous_$ac_func
12487
73b77ee5 12488/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
12489 which can conflict with char $ac_func (); below.
12490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12491 <limits.h> exists even on freestanding compilers. */
35996d22 12492
19650fd6
AS
12493#ifdef __STDC__
12494# include <limits.h>
12495#else
12496# include <assert.h>
12497#endif
35996d22
AS
12498
12499#undef $ac_func
12500
73b77ee5 12501/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
12502#ifdef __cplusplus
12503extern "C"
19650fd6 12504{
503d2be0 12505#endif
73b77ee5 12506/* We use char because int might match the return type of a gcc2
503d2be0
AS
12507 builtin and then its argument prototype would still apply. */
12508char $ac_func ();
73b77ee5
GM
12509/* The GNU C library defines this for functions which it implements
12510 to always fail with ENOSYS. Some functions are actually named
12511 something starting with __ and the normal name is an alias. */
12512#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12513choke me
12514#else
19650fd6
AS
12515char (*f) () = $ac_func;
12516#endif
12517#ifdef __cplusplus
12518}
73b77ee5
GM
12519#endif
12520
19650fd6
AS
12521int
12522main ()
12523{
12524return f != $ac_func;
503d2be0
AS
12525 ;
12526 return 0;
12527}
12528_ACEOF
12529rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 12530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 12531 (eval $ac_link) 2>conftest.er1
503d2be0 12532 ac_status=$?
35996d22
AS
12533 grep -v '^ *+' conftest.er1 >conftest.err
12534 rm -f conftest.er1
12535 cat conftest.err >&5
c0d27fcc 12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12537 (exit $ac_status); } &&
35996d22
AS
12538 { ac_try='test -z "$ac_c_werror_flag"
12539 || test ! -s conftest.err'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; } &&
12545 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12547 (eval $ac_try) 2>&5
12548 ac_status=$?
c0d27fcc 12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
12550 (exit $ac_status); }; }; then
12551 eval "$as_ac_var=yes"
12552else
12553 echo "$as_me: failed program was:" >&5
19650fd6
AS
12554sed 's/^/| /' conftest.$ac_ext >&5
12555
503d2be0
AS
12556eval "$as_ac_var=no"
12557fi
35996d22
AS
12558rm -f conftest.err conftest.$ac_objext \
12559 conftest$ac_exeext conftest.$ac_ext
503d2be0 12560fi
c0d27fcc 12561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
503d2be0
AS
12562echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12563if test `eval echo '${'$as_ac_var'}'` = yes; then
73b77ee5 12564
c0d27fcc 12565cat >>confdefs.h <<_ACEOF
98418dba 12566#define CRAY_STACKSEG_END $ac_func
c0d27fcc 12567_ACEOF
98418dba
CW
12568
12569 break
73b77ee5 12570fi
73b77ee5 12571
98418dba 12572 done
73b77ee5
GM
12573fi
12574
c0d27fcc 12575echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
98418dba
CW
12576echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12577if test "${ac_cv_c_stack_direction+set}" = set; then
503d2be0 12578 echo $ECHO_N "(cached) $ECHO_C" >&6
98418dba
CW
12579else
12580 if test "$cross_compiling" = yes; then
12581 ac_cv_c_stack_direction=0
73b77ee5 12582else
503d2be0 12583 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12584/* confdefs.h. */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h. */
503d2be0 12589int
98418dba 12590find_stack_direction ()
503d2be0 12591{
98418dba
CW
12592 static char *addr = 0;
12593 auto char dummy;
12594 if (addr == 0)
12595 {
12596 addr = &dummy;
12597 return find_stack_direction ();
12598 }
73b77ee5 12599 else
98418dba
CW
12600 return (&dummy > addr) ? 1 : -1;
12601}
ba4481b5 12602
503d2be0
AS
12603int
12604main ()
12605{
98418dba 12606 exit (find_stack_direction () < 0);
503d2be0
AS
12607}
12608_ACEOF
98418dba 12609rm -f conftest$ac_exeext
c0d27fcc 12610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
503d2be0
AS
12611 (eval $ac_link) 2>&5
12612 ac_status=$?
c0d27fcc 12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 12614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c0d27fcc 12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12616 (eval $ac_try) 2>&5
12617 ac_status=$?
c0d27fcc 12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12619 (exit $ac_status); }; }; then
98418dba 12620 ac_cv_c_stack_direction=1
ba4481b5 12621else
98418dba
CW
12622 echo "$as_me: program exited with status $ac_status" >&5
12623echo "$as_me: failed program was:" >&5
19650fd6
AS
12624sed 's/^/| /' conftest.$ac_ext >&5
12625
c0d27fcc 12626( exit $ac_status )
98418dba 12627ac_cv_c_stack_direction=-1
ba4481b5 12628fi
35996d22 12629rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ba4481b5 12630fi
98418dba 12631fi
c0d27fcc 12632echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
98418dba
CW
12633echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12634
c0d27fcc 12635cat >>confdefs.h <<_ACEOF
98418dba 12636#define STACK_DIRECTION $ac_cv_c_stack_direction
c0d27fcc
MR
12637_ACEOF
12638
ba4481b5 12639
ba4481b5
DL
12640fi
12641
c0d27fcc 12642
98418dba
CW
12643# fmod, logb, and frexp are found in -lm on most systems.
12644# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12645
c0d27fcc 12646echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
98418dba
CW
12647echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12648if test "${ac_cv_lib_m_sqrt+set}" = set; then
503d2be0 12649 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 12650else
98418dba
CW
12651 ac_check_lib_save_LIBS=$LIBS
12652LIBS="-lm $LIBS"
12653cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12654/* confdefs.h. */
12655_ACEOF
12656cat confdefs.h >>conftest.$ac_ext
12657cat >>conftest.$ac_ext <<_ACEOF
12658/* end confdefs.h. */
ba4481b5 12659
98418dba
CW
12660/* Override any gcc2 internal prototype to avoid an error. */
12661#ifdef __cplusplus
12662extern "C"
12663#endif
12664/* We use char because int might match the return type of a gcc2
12665 builtin and then its argument prototype would still apply. */
12666char sqrt ();
503d2be0
AS
12667int
12668main ()
12669{
98418dba 12670sqrt ();
503d2be0
AS
12671 ;
12672 return 0;
12673}
12674_ACEOF
12675rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 12676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 12677 (eval $ac_link) 2>conftest.er1
503d2be0 12678 ac_status=$?
35996d22
AS
12679 grep -v '^ *+' conftest.er1 >conftest.err
12680 rm -f conftest.er1
12681 cat conftest.err >&5
c0d27fcc 12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12683 (exit $ac_status); } &&
35996d22
AS
12684 { ac_try='test -z "$ac_c_werror_flag"
12685 || test ! -s conftest.err'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; } &&
12691 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12693 (eval $ac_try) 2>&5
12694 ac_status=$?
c0d27fcc 12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12696 (exit $ac_status); }; }; then
98418dba 12697 ac_cv_lib_m_sqrt=yes
ba4481b5 12698else
503d2be0 12699 echo "$as_me: failed program was:" >&5
19650fd6
AS
12700sed 's/^/| /' conftest.$ac_ext >&5
12701
98418dba 12702ac_cv_lib_m_sqrt=no
ba4481b5 12703fi
35996d22
AS
12704rm -f conftest.err conftest.$ac_objext \
12705 conftest$ac_exeext conftest.$ac_ext
98418dba 12706LIBS=$ac_check_lib_save_LIBS
ba4481b5 12707fi
c0d27fcc 12708echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
98418dba
CW
12709echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12710if test $ac_cv_lib_m_sqrt = yes; then
c0d27fcc 12711 cat >>confdefs.h <<_ACEOF
98418dba 12712#define HAVE_LIBM 1
c0d27fcc 12713_ACEOF
98418dba
CW
12714
12715 LIBS="-lm $LIBS"
ba4481b5 12716
ba4481b5
DL
12717fi
12718
c0d27fcc 12719
55597d70
DL
12720# Check for mail-locking functions in a "mail" library. Probably this should
12721# have the same check as for liblockfile below.
98418dba 12722
c0d27fcc 12723echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
98418dba
CW
12724echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12725if test "${ac_cv_lib_mail_maillock+set}" = set; then
503d2be0 12726 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 12727else
98418dba
CW
12728 ac_check_lib_save_LIBS=$LIBS
12729LIBS="-lmail $LIBS"
12730cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12731/* confdefs.h. */
12732_ACEOF
12733cat confdefs.h >>conftest.$ac_ext
12734cat >>conftest.$ac_ext <<_ACEOF
12735/* end confdefs.h. */
98418dba
CW
12736
12737/* Override any gcc2 internal prototype to avoid an error. */
12738#ifdef __cplusplus
12739extern "C"
12740#endif
12741/* We use char because int might match the return type of a gcc2
12742 builtin and then its argument prototype would still apply. */
12743char maillock ();
503d2be0
AS
12744int
12745main ()
12746{
98418dba 12747maillock ();
503d2be0
AS
12748 ;
12749 return 0;
12750}
12751_ACEOF
12752rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 12753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 12754 (eval $ac_link) 2>conftest.er1
503d2be0 12755 ac_status=$?
35996d22
AS
12756 grep -v '^ *+' conftest.er1 >conftest.err
12757 rm -f conftest.er1
12758 cat conftest.err >&5
c0d27fcc 12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12760 (exit $ac_status); } &&
35996d22
AS
12761 { ac_try='test -z "$ac_c_werror_flag"
12762 || test ! -s conftest.err'
12763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764 (eval $ac_try) 2>&5
12765 ac_status=$?
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); }; } &&
12768 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 12769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12770 (eval $ac_try) 2>&5
12771 ac_status=$?
c0d27fcc 12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12773 (exit $ac_status); }; }; then
98418dba 12774 ac_cv_lib_mail_maillock=yes
ba4481b5 12775else
503d2be0 12776 echo "$as_me: failed program was:" >&5
19650fd6
AS
12777sed 's/^/| /' conftest.$ac_ext >&5
12778
98418dba 12779ac_cv_lib_mail_maillock=no
ba4481b5 12780fi
35996d22
AS
12781rm -f conftest.err conftest.$ac_objext \
12782 conftest$ac_exeext conftest.$ac_ext
98418dba 12783LIBS=$ac_check_lib_save_LIBS
ba4481b5 12784fi
c0d27fcc 12785echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
98418dba
CW
12786echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12787if test $ac_cv_lib_mail_maillock = yes; then
c0d27fcc 12788 cat >>confdefs.h <<_ACEOF
98418dba 12789#define HAVE_LIBMAIL 1
c0d27fcc 12790_ACEOF
ba4481b5 12791
98418dba 12792 LIBS="-lmail $LIBS"
ba4481b5 12793
98418dba 12794fi
ba4481b5 12795
c0d27fcc
MR
12796
12797echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
98418dba
CW
12798echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12799if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
503d2be0 12800 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 12801else
503d2be0 12802 ac_check_lib_save_LIBS=$LIBS
98418dba 12803LIBS="-llockfile $LIBS"
503d2be0 12804cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12805/* confdefs.h. */
12806_ACEOF
12807cat confdefs.h >>conftest.$ac_ext
12808cat >>conftest.$ac_ext <<_ACEOF
12809/* end confdefs.h. */
503d2be0 12810
ba4481b5 12811/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
12812#ifdef __cplusplus
12813extern "C"
12814#endif
ba4481b5 12815/* We use char because int might match the return type of a gcc2
503d2be0 12816 builtin and then its argument prototype would still apply. */
98418dba 12817char maillock ();
503d2be0
AS
12818int
12819main ()
12820{
98418dba 12821maillock ();
503d2be0
AS
12822 ;
12823 return 0;
12824}
12825_ACEOF
12826rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 12827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 12828 (eval $ac_link) 2>conftest.er1
503d2be0 12829 ac_status=$?
35996d22
AS
12830 grep -v '^ *+' conftest.er1 >conftest.err
12831 rm -f conftest.er1
12832 cat conftest.err >&5
c0d27fcc 12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12834 (exit $ac_status); } &&
35996d22
AS
12835 { ac_try='test -z "$ac_c_werror_flag"
12836 || test ! -s conftest.err'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; } &&
12842 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
12844 (eval $ac_try) 2>&5
12845 ac_status=$?
c0d27fcc 12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12847 (exit $ac_status); }; }; then
98418dba 12848 ac_cv_lib_lockfile_maillock=yes
503d2be0
AS
12849else
12850 echo "$as_me: failed program was:" >&5
19650fd6
AS
12851sed 's/^/| /' conftest.$ac_ext >&5
12852
98418dba
CW
12853ac_cv_lib_lockfile_maillock=no
12854fi
35996d22
AS
12855rm -f conftest.err conftest.$ac_objext \
12856 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
12857LIBS=$ac_check_lib_save_LIBS
12858fi
c0d27fcc 12859echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
98418dba
CW
12860echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12861if test $ac_cv_lib_lockfile_maillock = yes; then
c0d27fcc 12862 cat >>confdefs.h <<_ACEOF
98418dba 12863#define HAVE_LIBLOCKFILE 1
c0d27fcc 12864_ACEOF
98418dba
CW
12865
12866 LIBS="-llockfile $LIBS"
12867
12868fi
12869
12870# If we have the shared liblockfile, assume we must use it for mail
12871# locking (e.g. Debian). If we couldn't link against liblockfile
12872# (no liblockfile.a installed), ensure that we don't need to.
12873if test "$ac_cv_lib_lockfile_maillock" = no; then
12874 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12875set dummy liblockfile.so; ac_word=$2
c0d27fcc 12876echo "$as_me:$LINENO: checking for $ac_word" >&5
98418dba
CW
12877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12878if test "${ac_cv_prog_liblockfile+set}" = set; then
12879 echo $ECHO_N "(cached) $ECHO_C" >&6
12880else
12881 if test -n "$liblockfile"; then
12882 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12883else
c0d27fcc 12884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6bae0ccf
DL
12885as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12886for as_dir in $as_dummy
c0d27fcc
MR
12887do
12888 IFS=$as_save_IFS
12889 test -z "$as_dir" && as_dir=.
12890 for ac_exec_ext in '' $ac_executable_extensions; do
12891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12892 ac_cv_prog_liblockfile="yes"
12893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12894 break 2
12895 fi
12896done
98418dba
CW
12897done
12898
12899 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
503d2be0 12900fi
503d2be0 12901fi
98418dba
CW
12902liblockfile=$ac_cv_prog_liblockfile
12903if test -n "$liblockfile"; then
c0d27fcc 12904 echo "$as_me:$LINENO: result: $liblockfile" >&5
98418dba
CW
12905echo "${ECHO_T}$liblockfile" >&6
12906else
c0d27fcc 12907 echo "$as_me:$LINENO: result: no" >&5
98418dba 12908echo "${ECHO_T}no" >&6
ba4481b5
DL
12909fi
12910
98418dba 12911 if test $ac_cv_prog_liblockfile = yes; then
c0d27fcc 12912 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
98418dba
CW
12913This probably means that movemail could lose mail.
12914There may be a \`development' package to install containing liblockfile." >&5
12915echo "$as_me: error: Shared liblockfile found but can't link against it.
12916This probably means that movemail could lose mail.
12917There may be a \`development' package to install containing liblockfile." >&2;}
12918 { (exit 1); exit 1; }; }
98418dba 12919 else :
55597d70 12920 fi
98418dba 12921fi
503d2be0 12922
98418dba
CW
12923for ac_func in touchlock
12924do
12925as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 12926echo "$as_me:$LINENO: checking for $ac_func" >&5
98418dba
CW
12927echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12928if eval "test \"\${$as_ac_var+set}\" = set"; then
503d2be0 12929 echo $ECHO_N "(cached) $ECHO_C" >&6
457b792c 12930else
98418dba 12931 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
12932/* confdefs.h. */
12933_ACEOF
12934cat confdefs.h >>conftest.$ac_ext
12935cat >>conftest.$ac_ext <<_ACEOF
12936/* end confdefs.h. */
35996d22
AS
12937/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12939#define $ac_func innocuous_$ac_func
12940
98418dba 12941/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
12942 which can conflict with char $ac_func (); below.
12943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12944 <limits.h> exists even on freestanding compilers. */
35996d22 12945
19650fd6
AS
12946#ifdef __STDC__
12947# include <limits.h>
12948#else
12949# include <assert.h>
12950#endif
35996d22
AS
12951
12952#undef $ac_func
12953
457b792c 12954/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
12955#ifdef __cplusplus
12956extern "C"
19650fd6 12957{
503d2be0 12958#endif
457b792c 12959/* We use char because int might match the return type of a gcc2
503d2be0 12960 builtin and then its argument prototype would still apply. */
98418dba 12961char $ac_func ();
98418dba
CW
12962/* The GNU C library defines this for functions which it implements
12963 to always fail with ENOSYS. Some functions are actually named
12964 something starting with __ and the normal name is an alias. */
12965#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12966choke me
12967#else
19650fd6
AS
12968char (*f) () = $ac_func;
12969#endif
12970#ifdef __cplusplus
12971}
cd958eb3
MB
12972#endif
12973
19650fd6
AS
12974int
12975main ()
12976{
12977return f != $ac_func;
503d2be0
AS
12978 ;
12979 return 0;
12980}
12981_ACEOF
12982rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 12983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 12984 (eval $ac_link) 2>conftest.er1
503d2be0 12985 ac_status=$?
35996d22
AS
12986 grep -v '^ *+' conftest.er1 >conftest.err
12987 rm -f conftest.er1
12988 cat conftest.err >&5
c0d27fcc 12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 12990 (exit $ac_status); } &&
35996d22
AS
12991 { ac_try='test -z "$ac_c_werror_flag"
12992 || test ! -s conftest.err'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; } &&
12998 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
13000 (eval $ac_try) 2>&5
13001 ac_status=$?
c0d27fcc 13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 13003 (exit $ac_status); }; }; then
98418dba 13004 eval "$as_ac_var=yes"
503d2be0
AS
13005else
13006 echo "$as_me: failed program was:" >&5
19650fd6
AS
13007sed 's/^/| /' conftest.$ac_ext >&5
13008
98418dba 13009eval "$as_ac_var=no"
503d2be0 13010fi
35996d22
AS
13011rm -f conftest.err conftest.$ac_objext \
13012 conftest$ac_exeext conftest.$ac_ext
503d2be0 13013fi
c0d27fcc 13014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
98418dba
CW
13015echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13016if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 13017 cat >>confdefs.h <<_ACEOF
98418dba 13018#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 13019_ACEOF
457b792c 13020
457b792c 13021fi
98418dba 13022done
457b792c 13023
c0d27fcc 13024
98418dba
CW
13025for ac_header in maillock.h
13026do
13027as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
13028if eval "test \"\${$as_ac_Header+set}\" = set"; then
13029 echo "$as_me:$LINENO: checking for $ac_header" >&5
98418dba
CW
13030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13031if eval "test \"\${$as_ac_Header+set}\" = set"; then
503d2be0 13032 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
13033fi
13034echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13035echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ba4481b5 13036else
c0d27fcc
MR
13037 # Is the header compilable?
13038echo "$as_me:$LINENO: checking $ac_header usability" >&5
13039echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13040cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13041/* confdefs.h. */
13042_ACEOF
13043cat confdefs.h >>conftest.$ac_ext
13044cat >>conftest.$ac_ext <<_ACEOF
13045/* end confdefs.h. */
c0d27fcc
MR
13046$ac_includes_default
13047#include <$ac_header>
13048_ACEOF
13049rm -f conftest.$ac_objext
13050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 13051 (eval $ac_compile) 2>conftest.er1
c0d27fcc 13052 ac_status=$?
35996d22
AS
13053 grep -v '^ *+' conftest.er1 >conftest.err
13054 rm -f conftest.er1
13055 cat conftest.err >&5
c0d27fcc
MR
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
35996d22
AS
13058 { ac_try='test -z "$ac_c_werror_flag"
13059 || test ! -s conftest.err'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13062 ac_status=$?
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_header_compiler=yes
13072else
13073 echo "$as_me: failed program was:" >&5
19650fd6
AS
13074sed 's/^/| /' conftest.$ac_ext >&5
13075
c0d27fcc
MR
13076ac_header_compiler=no
13077fi
35996d22 13078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
13079echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13080echo "${ECHO_T}$ac_header_compiler" >&6
13081
13082# Is the header present?
13083echo "$as_me:$LINENO: checking $ac_header presence" >&5
13084echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13085cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13086/* confdefs.h. */
13087_ACEOF
13088cat confdefs.h >>conftest.$ac_ext
13089cat >>conftest.$ac_ext <<_ACEOF
13090/* end confdefs.h. */
98418dba 13091#include <$ac_header>
503d2be0 13092_ACEOF
c0d27fcc 13093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba 13094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
503d2be0 13095 ac_status=$?
6bae0ccf 13096 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
13097 rm -f conftest.er1
13098 cat conftest.err >&5
c0d27fcc 13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
13100 (exit $ac_status); } >/dev/null; then
13101 if test -s conftest.err; then
13102 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 13103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
13104 else
13105 ac_cpp_err=
13106 fi
503d2be0 13107else
98418dba 13108 ac_cpp_err=yes
503d2be0 13109fi
98418dba 13110if test -z "$ac_cpp_err"; then
c0d27fcc 13111 ac_header_preproc=yes
98418dba
CW
13112else
13113 echo "$as_me: failed program was:" >&5
19650fd6
AS
13114sed 's/^/| /' conftest.$ac_ext >&5
13115
c0d27fcc 13116 ac_header_preproc=no
503d2be0 13117fi
98418dba 13118rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
13119echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13120echo "${ECHO_T}$ac_header_preproc" >&6
13121
13122# So? What about this header?
35996d22
AS
13123case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13124 yes:no: )
c0d27fcc
MR
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13126echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
13127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13128echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13129 ac_header_preproc=yes
19650fd6 13130 ;;
35996d22 13131 no:yes:* )
c0d27fcc
MR
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13133echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13135echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13137echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13139echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 13140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 13141echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
13142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13143echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
13144 (
13145 cat <<\_ASBOX
35996d22
AS
13146## ------------------------------------------ ##
13147## Report this to the AC_PACKAGE_NAME lists. ##
13148## ------------------------------------------ ##
19650fd6
AS
13149_ASBOX
13150 ) |
13151 sed "s/^/$as_me: WARNING: /" >&2
13152 ;;
c0d27fcc
MR
13153esac
13154echo "$as_me:$LINENO: checking for $ac_header" >&5
13155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13156if eval "test \"\${$as_ac_Header+set}\" = set"; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13158else
35996d22 13159 eval "$as_ac_Header=\$ac_header_preproc"
ba4481b5 13160fi
c0d27fcc 13161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
98418dba 13162echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
13163
13164fi
98418dba 13165if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 13166 cat >>confdefs.h <<_ACEOF
98418dba 13167#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 13168_ACEOF
48d4b120 13169
ba4481b5 13170fi
c0d27fcc 13171
98418dba
CW
13172done
13173
c0d27fcc
MR
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
22044edf
DL
13229
13230
c0d27fcc 13231
b0e44248
RB
13232
13233
973a76b1
DL
13234
13235
13236
cd958eb3 13237
25ca0bca 13238
28127e47 13239
c0d27fcc
MR
13240
13241
98418dba
CW
13242for ac_func in gethostname getdomainname dup2 \
13243rename closedir mkdir rmdir sysinfo \
13244random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13245strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
973a76b1 13246utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
98418dba
CW
13247__fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13248sendto recvfrom getsockopt setsockopt getsockname getpeername \
b0e44248 13249gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
28127e47 13250memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
98418dba
CW
13251do
13252as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 13253echo "$as_me:$LINENO: checking for $ac_func" >&5
98418dba
CW
13254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13255if eval "test \"\${$as_ac_var+set}\" = set"; then
503d2be0 13256 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 13257else
503d2be0 13258 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13259/* confdefs.h. */
13260_ACEOF
13261cat confdefs.h >>conftest.$ac_ext
13262cat >>conftest.$ac_ext <<_ACEOF
13263/* end confdefs.h. */
35996d22
AS
13264/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13266#define $ac_func innocuous_$ac_func
13267
98418dba 13268/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
13269 which can conflict with char $ac_func (); below.
13270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13271 <limits.h> exists even on freestanding compilers. */
35996d22 13272
19650fd6
AS
13273#ifdef __STDC__
13274# include <limits.h>
13275#else
13276# include <assert.h>
13277#endif
35996d22
AS
13278
13279#undef $ac_func
13280
ba4481b5 13281/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
13282#ifdef __cplusplus
13283extern "C"
19650fd6 13284{
503d2be0 13285#endif
ba4481b5 13286/* We use char because int might match the return type of a gcc2
503d2be0 13287 builtin and then its argument prototype would still apply. */
98418dba 13288char $ac_func ();
98418dba
CW
13289/* The GNU C library defines this for functions which it implements
13290 to always fail with ENOSYS. Some functions are actually named
13291 something starting with __ and the normal name is an alias. */
13292#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13293choke me
13294#else
19650fd6
AS
13295char (*f) () = $ac_func;
13296#endif
13297#ifdef __cplusplus
13298}
98418dba
CW
13299#endif
13300
19650fd6
AS
13301int
13302main ()
13303{
13304return f != $ac_func;
503d2be0
AS
13305 ;
13306 return 0;
13307}
13308_ACEOF
13309rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 13310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 13311 (eval $ac_link) 2>conftest.er1
503d2be0 13312 ac_status=$?
35996d22
AS
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
c0d27fcc 13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 13317 (exit $ac_status); } &&
35996d22
AS
13318 { ac_try='test -z "$ac_c_werror_flag"
13319 || test ! -s conftest.err'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
13327 (eval $ac_try) 2>&5
13328 ac_status=$?
c0d27fcc 13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 13330 (exit $ac_status); }; }; then
98418dba 13331 eval "$as_ac_var=yes"
503d2be0
AS
13332else
13333 echo "$as_me: failed program was:" >&5
19650fd6
AS
13334sed 's/^/| /' conftest.$ac_ext >&5
13335
98418dba 13336eval "$as_ac_var=no"
503d2be0 13337fi
35996d22
AS
13338rm -f conftest.err conftest.$ac_objext \
13339 conftest$ac_exeext conftest.$ac_ext
ba4481b5 13340fi
c0d27fcc 13341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
98418dba
CW
13342echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13343if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 13344 cat >>confdefs.h <<_ACEOF
98418dba 13345#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 13346_ACEOF
ba4481b5 13347
ba4481b5 13348fi
98418dba 13349done
ba4481b5 13350
c0d27fcc
MR
13351
13352
98418dba
CW
13353for ac_header in sys/un.h
13354do
13355as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
13356if eval "test \"\${$as_ac_Header+set}\" = set"; then
13357 echo "$as_me:$LINENO: checking for $ac_header" >&5
98418dba
CW
13358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13359if eval "test \"\${$as_ac_Header+set}\" = set"; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
13361fi
13362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 13364else
c0d27fcc
MR
13365 # Is the header compilable?
13366echo "$as_me:$LINENO: checking $ac_header usability" >&5
13367echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13368cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13369/* confdefs.h. */
13370_ACEOF
13371cat confdefs.h >>conftest.$ac_ext
13372cat >>conftest.$ac_ext <<_ACEOF
13373/* end confdefs.h. */
c0d27fcc
MR
13374$ac_includes_default
13375#include <$ac_header>
13376_ACEOF
13377rm -f conftest.$ac_objext
13378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 13379 (eval $ac_compile) 2>conftest.er1
c0d27fcc 13380 ac_status=$?
35996d22
AS
13381 grep -v '^ *+' conftest.er1 >conftest.err
13382 rm -f conftest.er1
13383 cat conftest.err >&5
c0d27fcc
MR
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } &&
35996d22
AS
13386 { ac_try='test -z "$ac_c_werror_flag"
13387 || test ! -s conftest.err'
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13390 ac_status=$?
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; } &&
13393 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13396 ac_status=$?
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; }; then
13399 ac_header_compiler=yes
13400else
13401 echo "$as_me: failed program was:" >&5
19650fd6
AS
13402sed 's/^/| /' conftest.$ac_ext >&5
13403
c0d27fcc
MR
13404ac_header_compiler=no
13405fi
35996d22 13406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
13407echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13408echo "${ECHO_T}$ac_header_compiler" >&6
13409
13410# Is the header present?
13411echo "$as_me:$LINENO: checking $ac_header presence" >&5
13412echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13413cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13414/* confdefs.h. */
13415_ACEOF
13416cat confdefs.h >>conftest.$ac_ext
13417cat >>conftest.$ac_ext <<_ACEOF
13418/* end confdefs.h. */
98418dba 13419#include <$ac_header>
503d2be0 13420_ACEOF
c0d27fcc 13421if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
13422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13423 ac_status=$?
6bae0ccf 13424 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
13425 rm -f conftest.er1
13426 cat conftest.err >&5
c0d27fcc 13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
13428 (exit $ac_status); } >/dev/null; then
13429 if test -s conftest.err; then
13430 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 13431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
13432 else
13433 ac_cpp_err=
13434 fi
13435else
13436 ac_cpp_err=yes
13437fi
13438if test -z "$ac_cpp_err"; then
c0d27fcc 13439 ac_header_preproc=yes
ba4481b5 13440else
503d2be0 13441 echo "$as_me: failed program was:" >&5
19650fd6
AS
13442sed 's/^/| /' conftest.$ac_ext >&5
13443
c0d27fcc 13444 ac_header_preproc=no
ba4481b5 13445fi
503d2be0 13446rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
13447echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13448echo "${ECHO_T}$ac_header_preproc" >&6
13449
13450# So? What about this header?
35996d22
AS
13451case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13452 yes:no: )
c0d27fcc
MR
13453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13454echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
13455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13456echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13457 ac_header_preproc=yes
19650fd6 13458 ;;
35996d22 13459 no:yes:* )
c0d27fcc
MR
13460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13461echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
13462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13463echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13465echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13467echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 13468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 13469echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
13470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13471echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
13472 (
13473 cat <<\_ASBOX
35996d22
AS
13474## ------------------------------------------ ##
13475## Report this to the AC_PACKAGE_NAME lists. ##
13476## ------------------------------------------ ##
19650fd6
AS
13477_ASBOX
13478 ) |
13479 sed "s/^/$as_me: WARNING: /" >&2
13480 ;;
c0d27fcc
MR
13481esac
13482echo "$as_me:$LINENO: checking for $ac_header" >&5
13483echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13484if eval "test \"\${$as_ac_Header+set}\" = set"; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13486else
35996d22 13487 eval "$as_ac_Header=\$ac_header_preproc"
ba4481b5 13488fi
c0d27fcc 13489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
925c2f3f 13490echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
13491
13492fi
925c2f3f 13493if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 13494 cat >>confdefs.h <<_ACEOF
925c2f3f 13495#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 13496_ACEOF
503d2be0 13497
925c2f3f 13498fi
c0d27fcc 13499
925c2f3f
EZ
13500done
13501
c0d27fcc
MR
13502
13503
13504
35996d22
AS
13505
13506for ac_header in stdlib.h sys/time.h unistd.h
925c2f3f
EZ
13507do
13508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
13509if eval "test \"\${$as_ac_Header+set}\" = set"; then
13510 echo "$as_me:$LINENO: checking for $ac_header" >&5
925c2f3f
EZ
13511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13512if eval "test \"\${$as_ac_Header+set}\" = set"; then
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
13514fi
13515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13516echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
925c2f3f 13517else
c0d27fcc
MR
13518 # Is the header compilable?
13519echo "$as_me:$LINENO: checking $ac_header usability" >&5
13520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13521cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13522/* confdefs.h. */
13523_ACEOF
13524cat confdefs.h >>conftest.$ac_ext
13525cat >>conftest.$ac_ext <<_ACEOF
13526/* end confdefs.h. */
c0d27fcc
MR
13527$ac_includes_default
13528#include <$ac_header>
13529_ACEOF
13530rm -f conftest.$ac_objext
13531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 13532 (eval $ac_compile) 2>conftest.er1
c0d27fcc 13533 ac_status=$?
35996d22
AS
13534 grep -v '^ *+' conftest.er1 >conftest.err
13535 rm -f conftest.er1
13536 cat conftest.err >&5
c0d27fcc
MR
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } &&
35996d22
AS
13539 { ac_try='test -z "$ac_c_werror_flag"
13540 || test ! -s conftest.err'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13543 ac_status=$?
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; } &&
13546 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; }; then
13552 ac_header_compiler=yes
13553else
13554 echo "$as_me: failed program was:" >&5
19650fd6
AS
13555sed 's/^/| /' conftest.$ac_ext >&5
13556
c0d27fcc
MR
13557ac_header_compiler=no
13558fi
35996d22 13559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
13560echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13561echo "${ECHO_T}$ac_header_compiler" >&6
13562
13563# Is the header present?
13564echo "$as_me:$LINENO: checking $ac_header presence" >&5
13565echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13566cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13567/* confdefs.h. */
13568_ACEOF
13569cat confdefs.h >>conftest.$ac_ext
13570cat >>conftest.$ac_ext <<_ACEOF
13571/* end confdefs.h. */
98418dba 13572#include <$ac_header>
503d2be0 13573_ACEOF
c0d27fcc 13574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
13575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13576 ac_status=$?
6bae0ccf 13577 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
13578 rm -f conftest.er1
13579 cat conftest.err >&5
c0d27fcc 13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
13581 (exit $ac_status); } >/dev/null; then
13582 if test -s conftest.err; then
13583 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 13584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
13585 else
13586 ac_cpp_err=
13587 fi
13588else
13589 ac_cpp_err=yes
13590fi
13591if test -z "$ac_cpp_err"; then
c0d27fcc 13592 ac_header_preproc=yes
98418dba
CW
13593else
13594 echo "$as_me: failed program was:" >&5
19650fd6
AS
13595sed 's/^/| /' conftest.$ac_ext >&5
13596
c0d27fcc 13597 ac_header_preproc=no
98418dba
CW
13598fi
13599rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
13600echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13601echo "${ECHO_T}$ac_header_preproc" >&6
13602
13603# So? What about this header?
35996d22
AS
13604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13605 yes:no: )
c0d27fcc
MR
13606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
13608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13609echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13610 ac_header_preproc=yes
19650fd6 13611 ;;
35996d22 13612 no:yes:* )
c0d27fcc
MR
13613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
13615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13616echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13618echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13620echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 13621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 13622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
13623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13624echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
13625 (
13626 cat <<\_ASBOX
35996d22
AS
13627## ------------------------------------------ ##
13628## Report this to the AC_PACKAGE_NAME lists. ##
13629## ------------------------------------------ ##
19650fd6
AS
13630_ASBOX
13631 ) |
13632 sed "s/^/$as_me: WARNING: /" >&2
13633 ;;
c0d27fcc
MR
13634esac
13635echo "$as_me:$LINENO: checking for $ac_header" >&5
13636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13637if eval "test \"\${$as_ac_Header+set}\" = set"; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13639else
35996d22 13640 eval "$as_ac_Header=\$ac_header_preproc"
ffe36136 13641fi
c0d27fcc 13642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
98418dba 13643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
13644
13645fi
98418dba 13646if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 13647 cat >>confdefs.h <<_ACEOF
98418dba 13648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 13649_ACEOF
98418dba
CW
13650
13651fi
c0d27fcc 13652
98418dba
CW
13653done
13654
c0d27fcc 13655
98418dba
CW
13656for ac_func in alarm
13657do
13658as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 13659echo "$as_me:$LINENO: checking for $ac_func" >&5
98418dba
CW
13660echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13661if eval "test \"\${$as_ac_var+set}\" = set"; then
503d2be0 13662 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 13663else
98418dba 13664 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13665/* confdefs.h. */
13666_ACEOF
13667cat confdefs.h >>conftest.$ac_ext
13668cat >>conftest.$ac_ext <<_ACEOF
13669/* end confdefs.h. */
35996d22
AS
13670/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13672#define $ac_func innocuous_$ac_func
13673
98418dba 13674/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
13675 which can conflict with char $ac_func (); below.
13676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13677 <limits.h> exists even on freestanding compilers. */
35996d22 13678
19650fd6
AS
13679#ifdef __STDC__
13680# include <limits.h>
13681#else
13682# include <assert.h>
13683#endif
35996d22
AS
13684
13685#undef $ac_func
13686
ba4481b5 13687/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
13688#ifdef __cplusplus
13689extern "C"
19650fd6 13690{
503d2be0 13691#endif
ba4481b5 13692/* We use char because int might match the return type of a gcc2
503d2be0 13693 builtin and then its argument prototype would still apply. */
98418dba 13694char $ac_func ();
98418dba
CW
13695/* The GNU C library defines this for functions which it implements
13696 to always fail with ENOSYS. Some functions are actually named
13697 something starting with __ and the normal name is an alias. */
13698#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13699choke me
13700#else
19650fd6
AS
13701char (*f) () = $ac_func;
13702#endif
13703#ifdef __cplusplus
13704}
98418dba
CW
13705#endif
13706
19650fd6
AS
13707int
13708main ()
13709{
13710return f != $ac_func;
503d2be0
AS
13711 ;
13712 return 0;
13713}
13714_ACEOF
13715rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 13716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 13717 (eval $ac_link) 2>conftest.er1
503d2be0 13718 ac_status=$?
35996d22
AS
13719 grep -v '^ *+' conftest.er1 >conftest.err
13720 rm -f conftest.er1
13721 cat conftest.err >&5
c0d27fcc 13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 13723 (exit $ac_status); } &&
35996d22
AS
13724 { ac_try='test -z "$ac_c_werror_flag"
13725 || test ! -s conftest.err'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
13733 (eval $ac_try) 2>&5
13734 ac_status=$?
c0d27fcc 13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 13736 (exit $ac_status); }; }; then
98418dba 13737 eval "$as_ac_var=yes"
503d2be0
AS
13738else
13739 echo "$as_me: failed program was:" >&5
19650fd6
AS
13740sed 's/^/| /' conftest.$ac_ext >&5
13741
98418dba 13742eval "$as_ac_var=no"
503d2be0 13743fi
35996d22
AS
13744rm -f conftest.err conftest.$ac_objext \
13745 conftest$ac_exeext conftest.$ac_ext
ffe36136 13746fi
c0d27fcc 13747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
98418dba
CW
13748echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13749if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 13750 cat >>confdefs.h <<_ACEOF
98418dba 13751#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 13752_ACEOF
ffe36136 13753
ba4481b5 13754fi
98418dba 13755done
ba4481b5 13756
c0d27fcc 13757echo "$as_me:$LINENO: checking for working mktime" >&5
98418dba
CW
13758echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13759if test "${ac_cv_func_working_mktime+set}" = set; then
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13761else
13762 if test "$cross_compiling" = yes; then
13763 ac_cv_func_working_mktime=no
13764else
13765 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13766/* confdefs.h. */
13767_ACEOF
13768cat confdefs.h >>conftest.$ac_ext
13769cat >>conftest.$ac_ext <<_ACEOF
13770/* end confdefs.h. */
98418dba
CW
13771/* Test program from Paul Eggert and Tony Leneis. */
13772#if TIME_WITH_SYS_TIME
13773# include <sys/time.h>
13774# include <time.h>
13775#else
13776# if HAVE_SYS_TIME_H
13777# include <sys/time.h>
13778# else
13779# include <time.h>
13780# endif
13781#endif
ba4481b5 13782
35996d22
AS
13783#if HAVE_STDLIB_H
13784# include <stdlib.h>
13785#endif
13786
98418dba
CW
13787#if HAVE_UNISTD_H
13788# include <unistd.h>
13789#endif
ba4481b5 13790
98418dba
CW
13791#if !HAVE_ALARM
13792# define alarm(X) /* empty */
13793#endif
df645f7c 13794
98418dba
CW
13795/* Work around redefinition to rpl_putenv by other config tests. */
13796#undef putenv
df645f7c 13797
98418dba 13798static time_t time_t_max;
35996d22 13799static time_t time_t_min;
df645f7c 13800
98418dba 13801/* Values we'll use to set the TZ environment variable. */
35996d22
AS
13802static char *tz_strings[] = {
13803 (char *) 0, "TZ=GMT0", "TZ=JST-9",
98418dba
CW
13804 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13805};
13806#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
503d2be0 13807
98418dba
CW
13808/* Fail if mktime fails to convert a date in the spring-forward gap.
13809 Based on a problem report from Andreas Jaeger. */
13810static void
13811spring_forward_gap ()
13812{
13813 /* glibc (up to about 1998-10-07) failed this test. */
13814 struct tm tm;
13815
13816 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13817 instead of "TZ=America/Vancouver" in order to detect the bug even
13818 on systems that don't support the Olson extension, or don't have the
13819 full zoneinfo tables installed. */
13820 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13821
13822 tm.tm_year = 98;
13823 tm.tm_mon = 3;
13824 tm.tm_mday = 5;
13825 tm.tm_hour = 2;
13826 tm.tm_min = 0;
13827 tm.tm_sec = 0;
13828 tm.tm_isdst = -1;
13829 if (mktime (&tm) == (time_t)-1)
13830 exit (1);
13831}
13832
13833static void
35996d22 13834mktime_test1 (now)
98418dba
CW
13835 time_t now;
13836{
13837 struct tm *lt;
13838 if ((lt = localtime (&now)) && mktime (lt) != now)
13839 exit (1);
35996d22
AS
13840}
13841
13842static void
13843mktime_test (now)
13844 time_t now;
13845{
13846 mktime_test1 (now);
13847 mktime_test1 ((time_t) (time_t_max - now));
13848 mktime_test1 ((time_t) (time_t_min + now));
98418dba
CW
13849}
13850
13851static void
13852irix_6_4_bug ()
13853{
13854 /* Based on code from Ariel Faigon. */
13855 struct tm tm;
13856 tm.tm_year = 96;
13857 tm.tm_mon = 3;
13858 tm.tm_mday = 0;
13859 tm.tm_hour = 0;
13860 tm.tm_min = 0;
13861 tm.tm_sec = 0;
13862 tm.tm_isdst = -1;
13863 mktime (&tm);
13864 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13865 exit (1);
13866}
13867
13868static void
13869bigtime_test (j)
13870 int j;
13871{
13872 struct tm tm;
13873 time_t now;
13874 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13875 now = mktime (&tm);
13876 if (now != (time_t) -1)
13877 {
13878 struct tm *lt = localtime (&now);
13879 if (! (lt
13880 && lt->tm_year == tm.tm_year
13881 && lt->tm_mon == tm.tm_mon
13882 && lt->tm_mday == tm.tm_mday
13883 && lt->tm_hour == tm.tm_hour
13884 && lt->tm_min == tm.tm_min
13885 && lt->tm_sec == tm.tm_sec
13886 && lt->tm_yday == tm.tm_yday
13887 && lt->tm_wday == tm.tm_wday
13888 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13889 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13890 exit (1);
13891 }
13892}
13893
13894int
13895main ()
13896{
13897 time_t t, delta;
13898 int i, j;
13899
13900 /* This test makes some buggy mktime implementations loop.
13901 Give up after 60 seconds; a mktime slower than that
13902 isn't worth using anyway. */
13903 alarm (60);
13904
13905 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13906 continue;
13907 time_t_max--;
35996d22
AS
13908 if ((time_t) -1 < 0)
13909 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
13910 continue;
98418dba
CW
13911 delta = time_t_max / 997; /* a suitable prime number */
13912 for (i = 0; i < N_STRINGS; i++)
13913 {
13914 if (tz_strings[i])
13915 putenv (tz_strings[i]);
503d2be0 13916
98418dba
CW
13917 for (t = 0; t <= time_t_max - delta; t += delta)
13918 mktime_test (t);
35996d22
AS
13919 mktime_test ((time_t) 1);
13920 mktime_test ((time_t) (60 * 60));
13921 mktime_test ((time_t) (60 * 60 * 24));
98418dba
CW
13922
13923 for (j = 1; 0 < j; j *= 2)
35996d22 13924 bigtime_test (j);
98418dba
CW
13925 bigtime_test (j - 1);
13926 }
13927 irix_6_4_bug ();
13928 spring_forward_gap ();
13929 exit (0);
503d2be0
AS
13930}
13931_ACEOF
98418dba 13932rm -f conftest$ac_exeext
c0d27fcc 13933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
503d2be0
AS
13934 (eval $ac_link) 2>&5
13935 ac_status=$?
c0d27fcc 13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 13937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c0d27fcc 13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
13939 (eval $ac_try) 2>&5
13940 ac_status=$?
c0d27fcc 13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 13942 (exit $ac_status); }; }; then
98418dba 13943 ac_cv_func_working_mktime=yes
503d2be0 13944else
98418dba
CW
13945 echo "$as_me: program exited with status $ac_status" >&5
13946echo "$as_me: failed program was:" >&5
19650fd6
AS
13947sed 's/^/| /' conftest.$ac_ext >&5
13948
c0d27fcc 13949( exit $ac_status )
98418dba 13950ac_cv_func_working_mktime=no
503d2be0 13951fi
35996d22 13952rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
503d2be0 13953fi
ba4481b5 13954fi
c0d27fcc 13955echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
98418dba
CW
13956echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
13957if test $ac_cv_func_working_mktime = no; then
35996d22
AS
13958 case $LIBOBJS in
13959 "mktime.$ac_objext" | \
13960 *" mktime.$ac_objext" | \
13961 "mktime.$ac_objext "* | \
13962 *" mktime.$ac_objext "* ) ;;
13963 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
13964esac
13965
ba4481b5
DL
13966fi
13967
98418dba 13968if test "$ac_cv_func_working_mktime" = no; then
b936fae4 13969
c0d27fcc 13970cat >>confdefs.h <<\_ACEOF
98418dba 13971#define BROKEN_MKTIME 1
c0d27fcc 13972_ACEOF
ba4481b5 13973
ba4481b5 13974fi
503d2be0 13975
98418dba
CW
13976ac_have_func=no # yes means we've found a way to get the load average.
13977
6bae0ccf
DL
13978# Make sure getloadavg.c is where it belongs, at configure-time.
13979test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13980 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
13981echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
13982 { (exit 1); exit 1; }; }
13983
98418dba
CW
13984ac_save_LIBS=$LIBS
13985
13986# Check for getloadavg, but be sure not to touch the cache variable.
c0d27fcc 13987(echo "$as_me:$LINENO: checking for getloadavg" >&5
98418dba
CW
13988echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
13989if test "${ac_cv_func_getloadavg+set}" = set; then
503d2be0 13990 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 13991else
503d2be0 13992 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
13993/* confdefs.h. */
13994_ACEOF
13995cat confdefs.h >>conftest.$ac_ext
13996cat >>conftest.$ac_ext <<_ACEOF
13997/* end confdefs.h. */
35996d22
AS
13998/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
13999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14000#define getloadavg innocuous_getloadavg
14001
98418dba 14002/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
14003 which can conflict with char getloadavg (); below.
14004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14005 <limits.h> exists even on freestanding compilers. */
35996d22 14006
19650fd6
AS
14007#ifdef __STDC__
14008# include <limits.h>
14009#else
14010# include <assert.h>
14011#endif
35996d22
AS
14012
14013#undef getloadavg
14014
ba4481b5 14015/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
14016#ifdef __cplusplus
14017extern "C"
19650fd6 14018{
503d2be0 14019#endif
ba4481b5 14020/* We use char because int might match the return type of a gcc2
503d2be0 14021 builtin and then its argument prototype would still apply. */
98418dba 14022char getloadavg ();
98418dba
CW
14023/* The GNU C library defines this for functions which it implements
14024 to always fail with ENOSYS. Some functions are actually named
14025 something starting with __ and the normal name is an alias. */
14026#if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14027choke me
14028#else
19650fd6
AS
14029char (*f) () = getloadavg;
14030#endif
14031#ifdef __cplusplus
14032}
cd958eb3
MB
14033#endif
14034
19650fd6
AS
14035int
14036main ()
14037{
14038return f != getloadavg;
503d2be0
AS
14039 ;
14040 return 0;
14041}
14042_ACEOF
14043rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14045 (eval $ac_link) 2>conftest.er1
503d2be0 14046 ac_status=$?
35996d22
AS
14047 grep -v '^ *+' conftest.er1 >conftest.err
14048 rm -f conftest.er1
14049 cat conftest.err >&5
c0d27fcc 14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14051 (exit $ac_status); } &&
35996d22
AS
14052 { ac_try='test -z "$ac_c_werror_flag"
14053 || test ! -s conftest.err'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14056 ac_status=$?
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; } &&
14059 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
14061 (eval $ac_try) 2>&5
14062 ac_status=$?
c0d27fcc 14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14064 (exit $ac_status); }; }; then
98418dba 14065 ac_cv_func_getloadavg=yes
503d2be0
AS
14066else
14067 echo "$as_me: failed program was:" >&5
19650fd6
AS
14068sed 's/^/| /' conftest.$ac_ext >&5
14069
98418dba 14070ac_cv_func_getloadavg=no
503d2be0 14071fi
35996d22
AS
14072rm -f conftest.err conftest.$ac_objext \
14073 conftest$ac_exeext conftest.$ac_ext
ba4481b5 14074fi
c0d27fcc 14075echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
98418dba
CW
14076echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14077if test $ac_cv_func_getloadavg = yes; then
14078 exit 0
14079else
14080 exit 1
ba4481b5 14081fi
98418dba 14082) && ac_have_func=yes
ba4481b5 14083
98418dba 14084# On HPUX9, an unprivileged user can get load averages through this function.
503d2be0 14085
98418dba
CW
14086for ac_func in pstat_getdynamic
14087do
14088as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 14089echo "$as_me:$LINENO: checking for $ac_func" >&5
98418dba
CW
14090echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14091if eval "test \"\${$as_ac_var+set}\" = set"; then
503d2be0 14092 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 14093else
503d2be0 14094 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14095/* confdefs.h. */
14096_ACEOF
14097cat confdefs.h >>conftest.$ac_ext
14098cat >>conftest.$ac_ext <<_ACEOF
14099/* end confdefs.h. */
35996d22
AS
14100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14102#define $ac_func innocuous_$ac_func
14103
98418dba 14104/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
14105 which can conflict with char $ac_func (); below.
14106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14107 <limits.h> exists even on freestanding compilers. */
35996d22 14108
19650fd6
AS
14109#ifdef __STDC__
14110# include <limits.h>
14111#else
14112# include <assert.h>
14113#endif
35996d22
AS
14114
14115#undef $ac_func
14116
ba4481b5 14117/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
14118#ifdef __cplusplus
14119extern "C"
19650fd6 14120{
503d2be0 14121#endif
ba4481b5 14122/* We use char because int might match the return type of a gcc2
503d2be0 14123 builtin and then its argument prototype would still apply. */
98418dba 14124char $ac_func ();
98418dba
CW
14125/* The GNU C library defines this for functions which it implements
14126 to always fail with ENOSYS. Some functions are actually named
14127 something starting with __ and the normal name is an alias. */
14128#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14129choke me
14130#else
19650fd6
AS
14131char (*f) () = $ac_func;
14132#endif
14133#ifdef __cplusplus
14134}
98418dba
CW
14135#endif
14136
19650fd6
AS
14137int
14138main ()
14139{
14140return f != $ac_func;
98418dba
CW
14141 ;
14142 return 0;
14143}
f21fadcc 14144_ACEOF
98418dba 14145rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14147 (eval $ac_link) 2>conftest.er1
f21fadcc 14148 ac_status=$?
35996d22
AS
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
c0d27fcc 14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 14153 (exit $ac_status); } &&
35996d22
AS
14154 { ac_try='test -z "$ac_c_werror_flag"
14155 || test ! -s conftest.err'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; } &&
14161 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
c0d27fcc 14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
14166 (exit $ac_status); }; }; then
14167 eval "$as_ac_var=yes"
f21fadcc
JD
14168else
14169 echo "$as_me: failed program was:" >&5
19650fd6
AS
14170sed 's/^/| /' conftest.$ac_ext >&5
14171
98418dba 14172eval "$as_ac_var=no"
f21fadcc 14173fi
35996d22
AS
14174rm -f conftest.err conftest.$ac_objext \
14175 conftest$ac_exeext conftest.$ac_ext
f21fadcc 14176fi
c0d27fcc 14177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
98418dba
CW
14178echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14179if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 14180 cat >>confdefs.h <<_ACEOF
98418dba 14181#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 14182_ACEOF
98418dba
CW
14183
14184fi
14185done
14186
c0d27fcc 14187
98418dba
CW
14188# Solaris has libkstat which does not require root.
14189
c0d27fcc 14190echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
98418dba
CW
14191echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14192if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
f21fadcc
JD
14193 echo $ECHO_N "(cached) $ECHO_C" >&6
14194else
14195 ac_check_lib_save_LIBS=$LIBS
98418dba 14196LIBS="-lkstat $LIBS"
f21fadcc 14197cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14198/* confdefs.h. */
14199_ACEOF
14200cat confdefs.h >>conftest.$ac_ext
14201cat >>conftest.$ac_ext <<_ACEOF
14202/* end confdefs.h. */
f21fadcc
JD
14203
14204/* Override any gcc2 internal prototype to avoid an error. */
14205#ifdef __cplusplus
14206extern "C"
14207#endif
14208/* We use char because int might match the return type of a gcc2
14209 builtin and then its argument prototype would still apply. */
98418dba 14210char kstat_open ();
f21fadcc
JD
14211int
14212main ()
14213{
98418dba 14214kstat_open ();
f21fadcc
JD
14215 ;
14216 return 0;
14217}
14218_ACEOF
14219rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14221 (eval $ac_link) 2>conftest.er1
f21fadcc 14222 ac_status=$?
35996d22
AS
14223 grep -v '^ *+' conftest.er1 >conftest.err
14224 rm -f conftest.er1
14225 cat conftest.err >&5
c0d27fcc 14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f21fadcc 14227 (exit $ac_status); } &&
35996d22
AS
14228 { ac_try='test -z "$ac_c_werror_flag"
14229 || test ! -s conftest.err'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f21fadcc
JD
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
c0d27fcc 14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f21fadcc 14240 (exit $ac_status); }; }; then
98418dba 14241 ac_cv_lib_kstat_kstat_open=yes
f21fadcc
JD
14242else
14243 echo "$as_me: failed program was:" >&5
19650fd6
AS
14244sed 's/^/| /' conftest.$ac_ext >&5
14245
98418dba 14246ac_cv_lib_kstat_kstat_open=no
f21fadcc 14247fi
35996d22
AS
14248rm -f conftest.err conftest.$ac_objext \
14249 conftest$ac_exeext conftest.$ac_ext
f21fadcc
JD
14250LIBS=$ac_check_lib_save_LIBS
14251fi
c0d27fcc 14252echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
98418dba
CW
14253echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14254if test $ac_cv_lib_kstat_kstat_open = yes; then
c0d27fcc 14255 cat >>confdefs.h <<_ACEOF
98418dba 14256#define HAVE_LIBKSTAT 1
c0d27fcc 14257_ACEOF
f21fadcc 14258
98418dba 14259 LIBS="-lkstat $LIBS"
f21fadcc 14260
f21fadcc
JD
14261fi
14262
98418dba
CW
14263test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14264
14265# Some systems with -lutil have (and need) -lkvm as well, some do not.
14266# On Solaris, -lkvm requires nlist from -lelf, so check that first
14267# to get the right answer into the cache.
14268# For kstat on solaris, we need libelf to force the definition of SVR4 below.
14269if test $ac_have_func = no; then
c0d27fcc 14270 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
98418dba
CW
14271echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14272if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
503d2be0 14273 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 14274else
98418dba
CW
14275 ac_check_lib_save_LIBS=$LIBS
14276LIBS="-lelf $LIBS"
14277cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14278/* confdefs.h. */
14279_ACEOF
14280cat confdefs.h >>conftest.$ac_ext
14281cat >>conftest.$ac_ext <<_ACEOF
14282/* end confdefs.h. */
98418dba
CW
14283
14284/* Override any gcc2 internal prototype to avoid an error. */
14285#ifdef __cplusplus
14286extern "C"
14287#endif
14288/* We use char because int might match the return type of a gcc2
14289 builtin and then its argument prototype would still apply. */
14290char elf_begin ();
503d2be0
AS
14291int
14292main ()
14293{
98418dba 14294elf_begin ();
503d2be0
AS
14295 ;
14296 return 0;
14297}
14298_ACEOF
14299rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14301 (eval $ac_link) 2>conftest.er1
503d2be0 14302 ac_status=$?
35996d22
AS
14303 grep -v '^ *+' conftest.er1 >conftest.err
14304 rm -f conftest.er1
14305 cat conftest.err >&5
c0d27fcc 14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14307 (exit $ac_status); } &&
35996d22
AS
14308 { ac_try='test -z "$ac_c_werror_flag"
14309 || test ! -s conftest.err'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; } &&
14315 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
14317 (eval $ac_try) 2>&5
14318 ac_status=$?
c0d27fcc 14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14320 (exit $ac_status); }; }; then
98418dba 14321 ac_cv_lib_elf_elf_begin=yes
ba4481b5 14322else
503d2be0 14323 echo "$as_me: failed program was:" >&5
19650fd6
AS
14324sed 's/^/| /' conftest.$ac_ext >&5
14325
98418dba 14326ac_cv_lib_elf_elf_begin=no
ba4481b5 14327fi
35996d22
AS
14328rm -f conftest.err conftest.$ac_objext \
14329 conftest$ac_exeext conftest.$ac_ext
98418dba 14330LIBS=$ac_check_lib_save_LIBS
ba4481b5 14331fi
c0d27fcc 14332echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
98418dba
CW
14333echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14334if test $ac_cv_lib_elf_elf_begin = yes; then
14335 LIBS="-lelf $LIBS"
ba4481b5
DL
14336fi
14337
98418dba
CW
14338fi
14339if test $ac_have_func = no; then
c0d27fcc 14340 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
98418dba
CW
14341echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14342if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
503d2be0 14343 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 14344else
98418dba
CW
14345 ac_check_lib_save_LIBS=$LIBS
14346LIBS="-lkvm $LIBS"
14347cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14348/* confdefs.h. */
14349_ACEOF
14350cat confdefs.h >>conftest.$ac_ext
14351cat >>conftest.$ac_ext <<_ACEOF
14352/* end confdefs.h. */
98418dba
CW
14353
14354/* Override any gcc2 internal prototype to avoid an error. */
14355#ifdef __cplusplus
14356extern "C"
14357#endif
14358/* We use char because int might match the return type of a gcc2
14359 builtin and then its argument prototype would still apply. */
14360char kvm_open ();
503d2be0
AS
14361int
14362main ()
14363{
98418dba 14364kvm_open ();
503d2be0
AS
14365 ;
14366 return 0;
14367}
14368_ACEOF
14369rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14371 (eval $ac_link) 2>conftest.er1
503d2be0 14372 ac_status=$?
35996d22
AS
14373 grep -v '^ *+' conftest.er1 >conftest.err
14374 rm -f conftest.er1
14375 cat conftest.err >&5
c0d27fcc 14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14377 (exit $ac_status); } &&
35996d22
AS
14378 { ac_try='test -z "$ac_c_werror_flag"
14379 || test ! -s conftest.err'
14380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381 (eval $ac_try) 2>&5
14382 ac_status=$?
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; } &&
14385 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
c0d27fcc 14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14390 (exit $ac_status); }; }; then
98418dba 14391 ac_cv_lib_kvm_kvm_open=yes
503d2be0
AS
14392else
14393 echo "$as_me: failed program was:" >&5
19650fd6
AS
14394sed 's/^/| /' conftest.$ac_ext >&5
14395
98418dba 14396ac_cv_lib_kvm_kvm_open=no
503d2be0 14397fi
35996d22
AS
14398rm -f conftest.err conftest.$ac_objext \
14399 conftest$ac_exeext conftest.$ac_ext
98418dba 14400LIBS=$ac_check_lib_save_LIBS
503d2be0 14401fi
c0d27fcc 14402echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
98418dba
CW
14403echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14404if test $ac_cv_lib_kvm_kvm_open = yes; then
14405 LIBS="-lkvm $LIBS"
ba4481b5
DL
14406fi
14407
98418dba 14408 # Check for the 4.4BSD definition of getloadavg.
c0d27fcc 14409 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
98418dba
CW
14410echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14411if test "${ac_cv_lib_util_getloadavg+set}" = set; then
503d2be0 14412 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 14413else
98418dba
CW
14414 ac_check_lib_save_LIBS=$LIBS
14415LIBS="-lutil $LIBS"
14416cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14417/* confdefs.h. */
14418_ACEOF
14419cat confdefs.h >>conftest.$ac_ext
14420cat >>conftest.$ac_ext <<_ACEOF
14421/* end confdefs.h. */
98418dba
CW
14422
14423/* Override any gcc2 internal prototype to avoid an error. */
14424#ifdef __cplusplus
14425extern "C"
14426#endif
14427/* We use char because int might match the return type of a gcc2
14428 builtin and then its argument prototype would still apply. */
14429char getloadavg ();
503d2be0
AS
14430int
14431main ()
14432{
98418dba 14433getloadavg ();
503d2be0
AS
14434 ;
14435 return 0;
14436}
14437_ACEOF
14438rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14440 (eval $ac_link) 2>conftest.er1
503d2be0 14441 ac_status=$?
35996d22
AS
14442 grep -v '^ *+' conftest.er1 >conftest.err
14443 rm -f conftest.er1
14444 cat conftest.err >&5
c0d27fcc 14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14446 (exit $ac_status); } &&
35996d22
AS
14447 { ac_try='test -z "$ac_c_werror_flag"
14448 || test ! -s conftest.err'
c0d27fcc 14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
c0d27fcc 14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996d22
AS
14453 (exit $ac_status); }; } &&
14454 { ac_try='test -s conftest$ac_exeext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 ac_cv_lib_util_getloadavg=yes
14461else
503d2be0 14462 echo "$as_me: failed program was:" >&5
19650fd6
AS
14463sed 's/^/| /' conftest.$ac_ext >&5
14464
98418dba 14465ac_cv_lib_util_getloadavg=no
ba4481b5 14466fi
35996d22
AS
14467rm -f conftest.err conftest.$ac_objext \
14468 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
14469LIBS=$ac_check_lib_save_LIBS
14470fi
c0d27fcc 14471echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
98418dba
CW
14472echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14473if test $ac_cv_lib_util_getloadavg = yes; then
14474 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
ba4481b5 14475fi
503d2be0 14476
98418dba 14477fi
ba4481b5 14478
98418dba
CW
14479if test $ac_have_func = no; then
14480 # There is a commonly available library for RS/6000 AIX.
14481 # Since it is not a standard part of AIX, it might be installed locally.
14482 ac_getloadavg_LIBS=$LIBS
14483 LIBS="-L/usr/local/lib $LIBS"
c0d27fcc 14484 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
98418dba
CW
14485echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14486if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
503d2be0 14487 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 14488else
98418dba
CW
14489 ac_check_lib_save_LIBS=$LIBS
14490LIBS="-lgetloadavg $LIBS"
14491cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14492/* confdefs.h. */
14493_ACEOF
14494cat confdefs.h >>conftest.$ac_ext
14495cat >>conftest.$ac_ext <<_ACEOF
14496/* end confdefs.h. */
ba4481b5 14497
98418dba
CW
14498/* Override any gcc2 internal prototype to avoid an error. */
14499#ifdef __cplusplus
14500extern "C"
14501#endif
14502/* We use char because int might match the return type of a gcc2
14503 builtin and then its argument prototype would still apply. */
14504char getloadavg ();
98418dba
CW
14505int
14506main ()
14507{
14508getloadavg ();
14509 ;
14510 return 0;
14511}
503d2be0 14512_ACEOF
98418dba 14513rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14515 (eval $ac_link) 2>conftest.er1
98418dba 14516 ac_status=$?
35996d22
AS
14517 grep -v '^ *+' conftest.er1 >conftest.err
14518 rm -f conftest.er1
14519 cat conftest.err >&5
c0d27fcc 14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba 14521 (exit $ac_status); } &&
35996d22
AS
14522 { ac_try='test -z "$ac_c_werror_flag"
14523 || test ! -s conftest.err'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14526 ac_status=$?
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; } &&
14529 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
98418dba
CW
14531 (eval $ac_try) 2>&5
14532 ac_status=$?
c0d27fcc 14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
14534 (exit $ac_status); }; }; then
14535 ac_cv_lib_getloadavg_getloadavg=yes
ba4481b5 14536else
98418dba 14537 echo "$as_me: failed program was:" >&5
19650fd6
AS
14538sed 's/^/| /' conftest.$ac_ext >&5
14539
98418dba
CW
14540ac_cv_lib_getloadavg_getloadavg=no
14541fi
35996d22
AS
14542rm -f conftest.err conftest.$ac_objext \
14543 conftest$ac_exeext conftest.$ac_ext
98418dba
CW
14544LIBS=$ac_check_lib_save_LIBS
14545fi
c0d27fcc 14546echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
98418dba
CW
14547echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14548if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14549 LIBS="-lgetloadavg $LIBS"
14550else
14551 LIBS=$ac_getloadavg_LIBS
ba4481b5 14552fi
ba4481b5
DL
14553
14554fi
98418dba
CW
14555
14556# Make sure it is really in the library, if we think we found it,
14557# otherwise set up the replacement function.
14558
14559for ac_func in getloadavg
14560do
14561as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 14562echo "$as_me:$LINENO: checking for $ac_func" >&5
503d2be0
AS
14563echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14564if eval "test \"\${$as_ac_var+set}\" = set"; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 14566else
503d2be0 14567 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14568/* confdefs.h. */
14569_ACEOF
14570cat confdefs.h >>conftest.$ac_ext
14571cat >>conftest.$ac_ext <<_ACEOF
14572/* end confdefs.h. */
35996d22
AS
14573/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14575#define $ac_func innocuous_$ac_func
14576
ba4481b5 14577/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
14578 which can conflict with char $ac_func (); below.
14579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14580 <limits.h> exists even on freestanding compilers. */
35996d22 14581
19650fd6
AS
14582#ifdef __STDC__
14583# include <limits.h>
14584#else
14585# include <assert.h>
14586#endif
35996d22
AS
14587
14588#undef $ac_func
14589
ba4481b5 14590/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
14591#ifdef __cplusplus
14592extern "C"
19650fd6 14593{
503d2be0 14594#endif
ba4481b5 14595/* We use char because int might match the return type of a gcc2
503d2be0
AS
14596 builtin and then its argument prototype would still apply. */
14597char $ac_func ();
ba4481b5
DL
14598/* The GNU C library defines this for functions which it implements
14599 to always fail with ENOSYS. Some functions are actually named
14600 something starting with __ and the normal name is an alias. */
14601#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14602choke me
14603#else
19650fd6
AS
14604char (*f) () = $ac_func;
14605#endif
14606#ifdef __cplusplus
14607}
cd958eb3
MB
14608#endif
14609
19650fd6
AS
14610int
14611main ()
14612{
14613return f != $ac_func;
503d2be0
AS
14614 ;
14615 return 0;
14616}
14617_ACEOF
14618rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14620 (eval $ac_link) 2>conftest.er1
503d2be0 14621 ac_status=$?
35996d22
AS
14622 grep -v '^ *+' conftest.er1 >conftest.err
14623 rm -f conftest.er1
14624 cat conftest.err >&5
c0d27fcc 14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14626 (exit $ac_status); } &&
35996d22
AS
14627 { ac_try='test -z "$ac_c_werror_flag"
14628 || test ! -s conftest.err'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; } &&
14634 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
14636 (eval $ac_try) 2>&5
14637 ac_status=$?
c0d27fcc 14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
14639 (exit $ac_status); }; }; then
14640 eval "$as_ac_var=yes"
14641else
14642 echo "$as_me: failed program was:" >&5
19650fd6
AS
14643sed 's/^/| /' conftest.$ac_ext >&5
14644
503d2be0
AS
14645eval "$as_ac_var=no"
14646fi
35996d22
AS
14647rm -f conftest.err conftest.$ac_objext \
14648 conftest$ac_exeext conftest.$ac_ext
503d2be0 14649fi
c0d27fcc 14650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
503d2be0
AS
14651echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14652if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 14653 cat >>confdefs.h <<_ACEOF
98418dba 14654#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 14655_ACEOF
503d2be0 14656
98418dba 14657else
35996d22
AS
14658 case $LIBOBJS in
14659 "getloadavg.$ac_objext" | \
14660 *" getloadavg.$ac_objext" | \
14661 "getloadavg.$ac_objext "* | \
14662 *" getloadavg.$ac_objext "* ) ;;
14663 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
14664esac
14665
ba4481b5 14666
c0d27fcc 14667cat >>confdefs.h <<\_ACEOF
98418dba 14668#define C_GETLOADAVG 1
c0d27fcc 14669_ACEOF
ba4481b5 14670
98418dba
CW
14671# Figure out what our getloadavg.c needs.
14672ac_have_func=no
c0d27fcc
MR
14673if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14674 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
98418dba
CW
14675echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14676if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
503d2be0 14677 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
14678fi
14679echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14680echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
ba4481b5 14681else
c0d27fcc
MR
14682 # Is the header compilable?
14683echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14684echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14685cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14686/* confdefs.h. */
14687_ACEOF
14688cat confdefs.h >>conftest.$ac_ext
14689cat >>conftest.$ac_ext <<_ACEOF
14690/* end confdefs.h. */
c0d27fcc
MR
14691$ac_includes_default
14692#include <sys/dg_sys_info.h>
14693_ACEOF
14694rm -f conftest.$ac_objext
14695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 14696 (eval $ac_compile) 2>conftest.er1
c0d27fcc 14697 ac_status=$?
35996d22
AS
14698 grep -v '^ *+' conftest.er1 >conftest.err
14699 rm -f conftest.er1
14700 cat conftest.err >&5
c0d27fcc
MR
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
35996d22
AS
14703 { ac_try='test -z "$ac_c_werror_flag"
14704 || test ! -s conftest.err'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14707 ac_status=$?
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; } &&
14710 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14716 ac_header_compiler=yes
14717else
14718 echo "$as_me: failed program was:" >&5
19650fd6
AS
14719sed 's/^/| /' conftest.$ac_ext >&5
14720
c0d27fcc
MR
14721ac_header_compiler=no
14722fi
35996d22 14723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
14724echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14725echo "${ECHO_T}$ac_header_compiler" >&6
14726
14727# Is the header present?
14728echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14729echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14730cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14731/* confdefs.h. */
14732_ACEOF
14733cat confdefs.h >>conftest.$ac_ext
14734cat >>conftest.$ac_ext <<_ACEOF
14735/* end confdefs.h. */
98418dba
CW
14736#include <sys/dg_sys_info.h>
14737_ACEOF
c0d27fcc 14738if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
14739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14740 ac_status=$?
6bae0ccf 14741 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
14742 rm -f conftest.er1
14743 cat conftest.err >&5
c0d27fcc 14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
14745 (exit $ac_status); } >/dev/null; then
14746 if test -s conftest.err; then
14747 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 14748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
14749 else
14750 ac_cpp_err=
14751 fi
14752else
14753 ac_cpp_err=yes
ba4481b5 14754fi
98418dba 14755if test -z "$ac_cpp_err"; then
c0d27fcc 14756 ac_header_preproc=yes
98418dba
CW
14757else
14758 echo "$as_me: failed program was:" >&5
19650fd6
AS
14759sed 's/^/| /' conftest.$ac_ext >&5
14760
c0d27fcc 14761 ac_header_preproc=no
ba4481b5 14762fi
98418dba 14763rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
14764echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14765echo "${ECHO_T}$ac_header_preproc" >&6
14766
14767# So? What about this header?
35996d22
AS
14768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14769 yes:no: )
c0d27fcc
MR
14770 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14771echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
14772 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14773echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14774 ac_header_preproc=yes
19650fd6 14775 ;;
35996d22 14776 no:yes:* )
c0d27fcc
MR
14777 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14778echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
35996d22
AS
14779 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14780echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14781 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14782echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14783 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14784echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 14785 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19650fd6 14786echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
14787 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14788echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
14789 (
14790 cat <<\_ASBOX
35996d22
AS
14791## ------------------------------------------ ##
14792## Report this to the AC_PACKAGE_NAME lists. ##
14793## ------------------------------------------ ##
19650fd6
AS
14794_ASBOX
14795 ) |
14796 sed "s/^/$as_me: WARNING: /" >&2
14797 ;;
c0d27fcc
MR
14798esac
14799echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14800echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14801if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14803else
14804 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
98418dba 14805fi
c0d27fcc 14806echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
98418dba 14807echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
c0d27fcc
MR
14808
14809fi
98418dba
CW
14810if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14811 ac_have_func=yes
ba4481b5 14812
c0d27fcc 14813cat >>confdefs.h <<\_ACEOF
98418dba 14814#define DGUX 1
c0d27fcc
MR
14815_ACEOF
14816
503d2be0 14817
c0d27fcc 14818echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
98418dba
CW
14819echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14820if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
503d2be0 14821 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 14822else
503d2be0 14823 ac_check_lib_save_LIBS=$LIBS
98418dba 14824LIBS="-ldgc $LIBS"
503d2be0 14825cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14826/* confdefs.h. */
14827_ACEOF
14828cat confdefs.h >>conftest.$ac_ext
14829cat >>conftest.$ac_ext <<_ACEOF
14830/* end confdefs.h. */
503d2be0 14831
ba4481b5 14832/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
14833#ifdef __cplusplus
14834extern "C"
14835#endif
ba4481b5 14836/* We use char because int might match the return type of a gcc2
503d2be0 14837 builtin and then its argument prototype would still apply. */
98418dba 14838char dg_sys_info ();
503d2be0
AS
14839int
14840main ()
14841{
98418dba 14842dg_sys_info ();
503d2be0
AS
14843 ;
14844 return 0;
14845}
14846_ACEOF
14847rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 14848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 14849 (eval $ac_link) 2>conftest.er1
503d2be0 14850 ac_status=$?
35996d22
AS
14851 grep -v '^ *+' conftest.er1 >conftest.err
14852 rm -f conftest.er1
14853 cat conftest.err >&5
c0d27fcc 14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14855 (exit $ac_status); } &&
35996d22
AS
14856 { ac_try='test -z "$ac_c_werror_flag"
14857 || test ! -s conftest.err'
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5
14860 ac_status=$?
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; } &&
14863 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 14864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
14865 (eval $ac_try) 2>&5
14866 ac_status=$?
c0d27fcc 14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 14868 (exit $ac_status); }; }; then
98418dba 14869 ac_cv_lib_dgc_dg_sys_info=yes
503d2be0
AS
14870else
14871 echo "$as_me: failed program was:" >&5
19650fd6
AS
14872sed 's/^/| /' conftest.$ac_ext >&5
14873
98418dba 14874ac_cv_lib_dgc_dg_sys_info=no
503d2be0 14875fi
35996d22
AS
14876rm -f conftest.err conftest.$ac_objext \
14877 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
14878LIBS=$ac_check_lib_save_LIBS
14879fi
c0d27fcc 14880echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
98418dba
CW
14881echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14882if test $ac_cv_lib_dgc_dg_sys_info = yes; then
c0d27fcc 14883 cat >>confdefs.h <<_ACEOF
98418dba 14884#define HAVE_LIBDGC 1
c0d27fcc 14885_ACEOF
ba4481b5 14886
98418dba 14887 LIBS="-ldgc $LIBS"
ba4481b5 14888
ba4481b5
DL
14889fi
14890
98418dba 14891fi
503d2be0 14892
c0d27fcc
MR
14893
14894
14895if test "${ac_cv_header_locale_h+set}" = set; then
14896 echo "$as_me:$LINENO: checking for locale.h" >&5
98418dba
CW
14897echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14898if test "${ac_cv_header_locale_h+set}" = set; then
503d2be0 14899 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
14900fi
14901echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14902echo "${ECHO_T}$ac_cv_header_locale_h" >&6
503d2be0 14903else
c0d27fcc
MR
14904 # Is the header compilable?
14905echo "$as_me:$LINENO: checking locale.h usability" >&5
14906echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
14907cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14908/* confdefs.h. */
14909_ACEOF
14910cat confdefs.h >>conftest.$ac_ext
14911cat >>conftest.$ac_ext <<_ACEOF
14912/* end confdefs.h. */
c0d27fcc
MR
14913$ac_includes_default
14914#include <locale.h>
14915_ACEOF
14916rm -f conftest.$ac_objext
14917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 14918 (eval $ac_compile) 2>conftest.er1
c0d27fcc 14919 ac_status=$?
35996d22
AS
14920 grep -v '^ *+' conftest.er1 >conftest.err
14921 rm -f conftest.er1
14922 cat conftest.err >&5
c0d27fcc
MR
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } &&
35996d22
AS
14925 { ac_try='test -z "$ac_c_werror_flag"
14926 || test ! -s conftest.err'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14929 ac_status=$?
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; } &&
14932 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14935 ac_status=$?
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; }; then
14938 ac_header_compiler=yes
14939else
14940 echo "$as_me: failed program was:" >&5
19650fd6
AS
14941sed 's/^/| /' conftest.$ac_ext >&5
14942
c0d27fcc
MR
14943ac_header_compiler=no
14944fi
35996d22 14945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
14946echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14947echo "${ECHO_T}$ac_header_compiler" >&6
14948
14949# Is the header present?
14950echo "$as_me:$LINENO: checking locale.h presence" >&5
14951echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
14952cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
14953/* confdefs.h. */
14954_ACEOF
14955cat confdefs.h >>conftest.$ac_ext
14956cat >>conftest.$ac_ext <<_ACEOF
14957/* end confdefs.h. */
98418dba 14958#include <locale.h>
503d2be0 14959_ACEOF
c0d27fcc 14960if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba 14961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
503d2be0 14962 ac_status=$?
6bae0ccf 14963 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
14964 rm -f conftest.er1
14965 cat conftest.err >&5
c0d27fcc 14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
14967 (exit $ac_status); } >/dev/null; then
14968 if test -s conftest.err; then
14969 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 14970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
14971 else
14972 ac_cpp_err=
14973 fi
503d2be0 14974else
98418dba 14975 ac_cpp_err=yes
503d2be0 14976fi
98418dba 14977if test -z "$ac_cpp_err"; then
c0d27fcc 14978 ac_header_preproc=yes
98418dba
CW
14979else
14980 echo "$as_me: failed program was:" >&5
19650fd6
AS
14981sed 's/^/| /' conftest.$ac_ext >&5
14982
c0d27fcc 14983 ac_header_preproc=no
ba4481b5 14984fi
98418dba 14985rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
14986echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14987echo "${ECHO_T}$ac_header_preproc" >&6
14988
14989# So? What about this header?
35996d22
AS
14990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14991 yes:no: )
c0d27fcc
MR
14992 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
14993echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
14994 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
14995echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
14996 ac_header_preproc=yes
19650fd6 14997 ;;
35996d22 14998 no:yes:* )
c0d27fcc
MR
14999 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15000echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
35996d22
AS
15001 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15002echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15003 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15004echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15005 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15006echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 15007 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19650fd6 15008echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
15009 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15010echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
15011 (
15012 cat <<\_ASBOX
35996d22
AS
15013## ------------------------------------------ ##
15014## Report this to the AC_PACKAGE_NAME lists. ##
15015## ------------------------------------------ ##
19650fd6
AS
15016_ASBOX
15017 ) |
15018 sed "s/^/$as_me: WARNING: /" >&2
15019 ;;
c0d27fcc
MR
15020esac
15021echo "$as_me:$LINENO: checking for locale.h" >&5
15022echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15023if test "${ac_cv_header_locale_h+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15025else
15026 ac_cv_header_locale_h=$ac_header_preproc
ba4481b5 15027fi
c0d27fcc 15028echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
98418dba
CW
15029echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15030
c0d27fcc
MR
15031fi
15032
15033
15034
98418dba 15035for ac_func in setlocale
ba4481b5 15036do
503d2be0 15037as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 15038echo "$as_me:$LINENO: checking for $ac_func" >&5
503d2be0
AS
15039echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15040if eval "test \"\${$as_ac_var+set}\" = set"; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 15042else
503d2be0 15043 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15044/* confdefs.h. */
15045_ACEOF
15046cat confdefs.h >>conftest.$ac_ext
15047cat >>conftest.$ac_ext <<_ACEOF
15048/* end confdefs.h. */
35996d22
AS
15049/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15051#define $ac_func innocuous_$ac_func
15052
ba4481b5 15053/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
15054 which can conflict with char $ac_func (); below.
15055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15056 <limits.h> exists even on freestanding compilers. */
35996d22 15057
19650fd6
AS
15058#ifdef __STDC__
15059# include <limits.h>
15060#else
15061# include <assert.h>
15062#endif
35996d22
AS
15063
15064#undef $ac_func
15065
ba4481b5 15066/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
15067#ifdef __cplusplus
15068extern "C"
19650fd6 15069{
503d2be0 15070#endif
ba4481b5 15071/* We use char because int might match the return type of a gcc2
503d2be0
AS
15072 builtin and then its argument prototype would still apply. */
15073char $ac_func ();
ba4481b5
DL
15074/* The GNU C library defines this for functions which it implements
15075 to always fail with ENOSYS. Some functions are actually named
15076 something starting with __ and the normal name is an alias. */
15077#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15078choke me
15079#else
19650fd6
AS
15080char (*f) () = $ac_func;
15081#endif
15082#ifdef __cplusplus
15083}
ba4481b5
DL
15084#endif
15085
19650fd6
AS
15086int
15087main ()
15088{
15089return f != $ac_func;
503d2be0
AS
15090 ;
15091 return 0;
15092}
15093_ACEOF
15094rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 15095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 15096 (eval $ac_link) 2>conftest.er1
503d2be0 15097 ac_status=$?
35996d22
AS
15098 grep -v '^ *+' conftest.er1 >conftest.err
15099 rm -f conftest.er1
15100 cat conftest.err >&5
c0d27fcc 15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 15102 (exit $ac_status); } &&
35996d22
AS
15103 { ac_try='test -z "$ac_c_werror_flag"
15104 || test ! -s conftest.err'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; } &&
15110 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
15112 (eval $ac_try) 2>&5
15113 ac_status=$?
c0d27fcc 15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
15115 (exit $ac_status); }; }; then
15116 eval "$as_ac_var=yes"
15117else
15118 echo "$as_me: failed program was:" >&5
19650fd6
AS
15119sed 's/^/| /' conftest.$ac_ext >&5
15120
503d2be0
AS
15121eval "$as_ac_var=no"
15122fi
35996d22
AS
15123rm -f conftest.err conftest.$ac_objext \
15124 conftest$ac_exeext conftest.$ac_ext
503d2be0 15125fi
c0d27fcc 15126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
503d2be0
AS
15127echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15128if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 15129 cat >>confdefs.h <<_ACEOF
503d2be0 15130#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 15131_ACEOF
ba4481b5 15132
ba4481b5
DL
15133fi
15134done
15135
c0d27fcc 15136
98418dba
CW
15137# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15138# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15139# Irix 4.0.5F has the header but not the library.
15140if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15141 ac_have_func=yes
15142
c0d27fcc 15143cat >>confdefs.h <<\_ACEOF
98418dba 15144#define SVR4 1
c0d27fcc 15145_ACEOF
98418dba
CW
15146
15147fi
15148
15149if test $ac_have_func = no; then
c0d27fcc
MR
15150 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15151 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
98418dba
CW
15152echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15153if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
503d2be0 15154 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
15155fi
15156echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15157echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
98418dba 15158else
c0d27fcc
MR
15159 # Is the header compilable?
15160echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15161echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15162cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15163/* confdefs.h. */
15164_ACEOF
15165cat confdefs.h >>conftest.$ac_ext
15166cat >>conftest.$ac_ext <<_ACEOF
15167/* end confdefs.h. */
c0d27fcc
MR
15168$ac_includes_default
15169#include <inq_stats/cpustats.h>
15170_ACEOF
15171rm -f conftest.$ac_objext
15172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 15173 (eval $ac_compile) 2>conftest.er1
c0d27fcc 15174 ac_status=$?
35996d22
AS
15175 grep -v '^ *+' conftest.er1 >conftest.err
15176 rm -f conftest.er1
15177 cat conftest.err >&5
c0d27fcc
MR
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } &&
35996d22
AS
15180 { ac_try='test -z "$ac_c_werror_flag"
15181 || test ! -s conftest.err'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; } &&
15187 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_header_compiler=yes
15194else
15195 echo "$as_me: failed program was:" >&5
19650fd6
AS
15196sed 's/^/| /' conftest.$ac_ext >&5
15197
c0d27fcc
MR
15198ac_header_compiler=no
15199fi
35996d22 15200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
15201echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15202echo "${ECHO_T}$ac_header_compiler" >&6
15203
15204# Is the header present?
15205echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15206echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15207cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15208/* confdefs.h. */
15209_ACEOF
15210cat confdefs.h >>conftest.$ac_ext
15211cat >>conftest.$ac_ext <<_ACEOF
15212/* end confdefs.h. */
98418dba 15213#include <inq_stats/cpustats.h>
503d2be0 15214_ACEOF
c0d27fcc 15215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
15216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15217 ac_status=$?
6bae0ccf 15218 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
15219 rm -f conftest.er1
15220 cat conftest.err >&5
c0d27fcc 15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
15222 (exit $ac_status); } >/dev/null; then
15223 if test -s conftest.err; then
15224 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 15225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
15226 else
15227 ac_cpp_err=
15228 fi
15229else
15230 ac_cpp_err=yes
15231fi
15232if test -z "$ac_cpp_err"; then
c0d27fcc 15233 ac_header_preproc=yes
503d2be0
AS
15234else
15235 echo "$as_me: failed program was:" >&5
19650fd6
AS
15236sed 's/^/| /' conftest.$ac_ext >&5
15237
c0d27fcc 15238 ac_header_preproc=no
ba4481b5 15239fi
503d2be0 15240rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
15241echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15242echo "${ECHO_T}$ac_header_preproc" >&6
15243
15244# So? What about this header?
35996d22
AS
15245case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15246 yes:no: )
c0d27fcc
MR
15247 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15248echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
15249 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15250echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15251 ac_header_preproc=yes
19650fd6 15252 ;;
35996d22 15253 no:yes:* )
c0d27fcc
MR
15254 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15255echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
35996d22
AS
15256 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15257echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15259echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15261echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 15262 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19650fd6 15263echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
15264 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15265echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
15266 (
15267 cat <<\_ASBOX
35996d22
AS
15268## ------------------------------------------ ##
15269## Report this to the AC_PACKAGE_NAME lists. ##
15270## ------------------------------------------ ##
19650fd6
AS
15271_ASBOX
15272 ) |
15273 sed "s/^/$as_me: WARNING: /" >&2
15274 ;;
c0d27fcc
MR
15275esac
15276echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15277echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15278if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15280else
15281 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
ba4481b5 15282fi
c0d27fcc 15283echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
98418dba 15284echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
c0d27fcc
MR
15285
15286fi
98418dba
CW
15287if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15288 ac_have_func=yes
ba4481b5 15289
c0d27fcc 15290cat >>confdefs.h <<\_ACEOF
98418dba 15291#define UMAX 1
c0d27fcc 15292_ACEOF
98418dba 15293
c0d27fcc
MR
15294
15295cat >>confdefs.h <<\_ACEOF
98418dba 15296#define UMAX4_3 1
c0d27fcc 15297_ACEOF
98418dba
CW
15298
15299fi
15300
c0d27fcc 15301
98418dba
CW
15302fi
15303
15304if test $ac_have_func = no; then
c0d27fcc
MR
15305 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15306 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
98418dba
CW
15307echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15308if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
503d2be0 15309 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
15310fi
15311echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15312echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
503d2be0 15313else
c0d27fcc
MR
15314 # Is the header compilable?
15315echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15316echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15317cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15318/* confdefs.h. */
15319_ACEOF
15320cat confdefs.h >>conftest.$ac_ext
15321cat >>conftest.$ac_ext <<_ACEOF
15322/* end confdefs.h. */
c0d27fcc
MR
15323$ac_includes_default
15324#include <sys/cpustats.h>
15325_ACEOF
15326rm -f conftest.$ac_objext
15327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 15328 (eval $ac_compile) 2>conftest.er1
c0d27fcc 15329 ac_status=$?
35996d22
AS
15330 grep -v '^ *+' conftest.er1 >conftest.err
15331 rm -f conftest.er1
15332 cat conftest.err >&5
c0d27fcc
MR
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
35996d22
AS
15335 { ac_try='test -z "$ac_c_werror_flag"
15336 || test ! -s conftest.err'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } &&
15342 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_header_compiler=yes
15349else
15350 echo "$as_me: failed program was:" >&5
19650fd6
AS
15351sed 's/^/| /' conftest.$ac_ext >&5
15352
c0d27fcc
MR
15353ac_header_compiler=no
15354fi
35996d22 15355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
15356echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15357echo "${ECHO_T}$ac_header_compiler" >&6
15358
15359# Is the header present?
15360echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15361echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15362cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15363/* confdefs.h. */
15364_ACEOF
15365cat confdefs.h >>conftest.$ac_ext
15366cat >>conftest.$ac_ext <<_ACEOF
15367/* end confdefs.h. */
98418dba
CW
15368#include <sys/cpustats.h>
15369_ACEOF
c0d27fcc 15370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
98418dba
CW
15371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15372 ac_status=$?
6bae0ccf 15373 grep -v '^ *+' conftest.er1 >conftest.err
98418dba
CW
15374 rm -f conftest.er1
15375 cat conftest.err >&5
c0d27fcc 15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
98418dba
CW
15377 (exit $ac_status); } >/dev/null; then
15378 if test -s conftest.err; then
15379 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 15380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
98418dba
CW
15381 else
15382 ac_cpp_err=
15383 fi
15384else
15385 ac_cpp_err=yes
503d2be0 15386fi
98418dba 15387if test -z "$ac_cpp_err"; then
c0d27fcc 15388 ac_header_preproc=yes
98418dba
CW
15389else
15390 echo "$as_me: failed program was:" >&5
19650fd6
AS
15391sed 's/^/| /' conftest.$ac_ext >&5
15392
c0d27fcc 15393 ac_header_preproc=no
98418dba
CW
15394fi
15395rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
15396echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15397echo "${ECHO_T}$ac_header_preproc" >&6
15398
15399# So? What about this header?
35996d22
AS
15400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15401 yes:no: )
c0d27fcc
MR
15402 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15403echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
15404 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15405echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15406 ac_header_preproc=yes
19650fd6 15407 ;;
35996d22 15408 no:yes:* )
c0d27fcc
MR
15409 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15410echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
35996d22
AS
15411 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15412echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15414echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15416echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 15417 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19650fd6 15418echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
15419 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15420echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
15421 (
15422 cat <<\_ASBOX
35996d22
AS
15423## ------------------------------------------ ##
15424## Report this to the AC_PACKAGE_NAME lists. ##
15425## ------------------------------------------ ##
19650fd6
AS
15426_ASBOX
15427 ) |
15428 sed "s/^/$as_me: WARNING: /" >&2
15429 ;;
c0d27fcc
MR
15430esac
15431echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15432echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15433if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15434 echo $ECHO_N "(cached) $ECHO_C" >&6
15435else
15436 ac_cv_header_sys_cpustats_h=$ac_header_preproc
98418dba 15437fi
c0d27fcc 15438echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
98418dba 15439echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
c0d27fcc
MR
15440
15441fi
98418dba 15442if test $ac_cv_header_sys_cpustats_h = yes; then
c0d27fcc 15443 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
98418dba 15444#define UMAX 1
c0d27fcc 15445_ACEOF
ba4481b5 15446
98418dba
CW
15447fi
15448
c0d27fcc 15449
98418dba
CW
15450fi
15451
15452if test $ac_have_func = no; then
15453
15454for ac_header in mach/mach.h
2c9dccc9
PJ
15455do
15456as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
15457if eval "test \"\${$as_ac_Header+set}\" = set"; then
15458 echo "$as_me:$LINENO: checking for $ac_header" >&5
2c9dccc9
PJ
15459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15460if eval "test \"\${$as_ac_Header+set}\" = set"; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
15462fi
15463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 15465else
c0d27fcc
MR
15466 # Is the header compilable?
15467echo "$as_me:$LINENO: checking $ac_header usability" >&5
15468echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15469cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15470/* confdefs.h. */
15471_ACEOF
15472cat confdefs.h >>conftest.$ac_ext
15473cat >>conftest.$ac_ext <<_ACEOF
15474/* end confdefs.h. */
c0d27fcc
MR
15475$ac_includes_default
15476#include <$ac_header>
15477_ACEOF
15478rm -f conftest.$ac_objext
15479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 15480 (eval $ac_compile) 2>conftest.er1
c0d27fcc 15481 ac_status=$?
35996d22
AS
15482 grep -v '^ *+' conftest.er1 >conftest.err
15483 rm -f conftest.er1
15484 cat conftest.err >&5
c0d27fcc
MR
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } &&
35996d22
AS
15487 { ac_try='test -z "$ac_c_werror_flag"
15488 || test ! -s conftest.err'
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; } &&
15494 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_header_compiler=yes
15501else
15502 echo "$as_me: failed program was:" >&5
19650fd6
AS
15503sed 's/^/| /' conftest.$ac_ext >&5
15504
c0d27fcc
MR
15505ac_header_compiler=no
15506fi
35996d22 15507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
15508echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15509echo "${ECHO_T}$ac_header_compiler" >&6
15510
15511# Is the header present?
15512echo "$as_me:$LINENO: checking $ac_header presence" >&5
15513echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15514cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15515/* confdefs.h. */
15516_ACEOF
15517cat confdefs.h >>conftest.$ac_ext
15518cat >>conftest.$ac_ext <<_ACEOF
15519/* end confdefs.h. */
2c9dccc9
PJ
15520#include <$ac_header>
15521_ACEOF
c0d27fcc 15522if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2c9dccc9
PJ
15523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15524 ac_status=$?
6bae0ccf 15525 grep -v '^ *+' conftest.er1 >conftest.err
2c9dccc9
PJ
15526 rm -f conftest.er1
15527 cat conftest.err >&5
c0d27fcc 15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2c9dccc9
PJ
15529 (exit $ac_status); } >/dev/null; then
15530 if test -s conftest.err; then
15531 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 15532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2c9dccc9
PJ
15533 else
15534 ac_cpp_err=
15535 fi
15536else
15537 ac_cpp_err=yes
15538fi
15539if test -z "$ac_cpp_err"; then
c0d27fcc
MR
15540 ac_header_preproc=yes
15541else
15542 echo "$as_me: failed program was:" >&5
19650fd6
AS
15543sed 's/^/| /' conftest.$ac_ext >&5
15544
c0d27fcc
MR
15545 ac_header_preproc=no
15546fi
15547rm -f conftest.err conftest.$ac_ext
15548echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15549echo "${ECHO_T}$ac_header_preproc" >&6
15550
15551# So? What about this header?
35996d22
AS
15552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15553 yes:no: )
c0d27fcc
MR
15554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15555echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
15556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15557echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15558 ac_header_preproc=yes
19650fd6 15559 ;;
35996d22 15560 no:yes:* )
c0d27fcc
MR
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15562echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15564echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15566echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15568echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 15569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 15570echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15572echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
15573 (
15574 cat <<\_ASBOX
35996d22
AS
15575## ------------------------------------------ ##
15576## Report this to the AC_PACKAGE_NAME lists. ##
15577## ------------------------------------------ ##
19650fd6
AS
15578_ASBOX
15579 ) |
15580 sed "s/^/$as_me: WARNING: /" >&2
15581 ;;
c0d27fcc
MR
15582esac
15583echo "$as_me:$LINENO: checking for $ac_header" >&5
15584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15585if eval "test \"\${$as_ac_Header+set}\" = set"; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15587else
35996d22 15588 eval "$as_ac_Header=\$ac_header_preproc"
c0d27fcc
MR
15589fi
15590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15592
15593fi
15594if test `eval echo '${'$as_ac_Header'}'` = yes; then
15595 cat >>confdefs.h <<_ACEOF
15596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15597_ACEOF
15598
15599fi
15600
15601done
15602
15603fi
15604
15605
15606for ac_header in nlist.h
15607do
15608as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15609if eval "test \"\${$as_ac_Header+set}\" = set"; then
15610 echo "$as_me:$LINENO: checking for $ac_header" >&5
15611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15612if eval "test \"\${$as_ac_Header+set}\" = set"; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15614fi
15615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15616echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15617else
15618 # Is the header compilable?
15619echo "$as_me:$LINENO: checking $ac_header usability" >&5
15620echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15621cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15622/* confdefs.h. */
15623_ACEOF
15624cat confdefs.h >>conftest.$ac_ext
15625cat >>conftest.$ac_ext <<_ACEOF
15626/* end confdefs.h. */
c0d27fcc
MR
15627$ac_includes_default
15628#include <$ac_header>
15629_ACEOF
15630rm -f conftest.$ac_objext
15631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 15632 (eval $ac_compile) 2>conftest.er1
c0d27fcc 15633 ac_status=$?
35996d22
AS
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
c0d27fcc
MR
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
35996d22
AS
15639 { ac_try='test -z "$ac_c_werror_flag"
15640 || test ! -s conftest.err'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 ac_header_compiler=yes
2c9dccc9
PJ
15653else
15654 echo "$as_me: failed program was:" >&5
19650fd6
AS
15655sed 's/^/| /' conftest.$ac_ext >&5
15656
c0d27fcc 15657ac_header_compiler=no
98418dba 15658fi
35996d22 15659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
15660echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15661echo "${ECHO_T}$ac_header_compiler" >&6
98418dba 15662
c0d27fcc
MR
15663# Is the header present?
15664echo "$as_me:$LINENO: checking $ac_header presence" >&5
15665echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15666cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15667/* confdefs.h. */
15668_ACEOF
15669cat confdefs.h >>conftest.$ac_ext
15670cat >>conftest.$ac_ext <<_ACEOF
15671/* end confdefs.h. */
503d2be0
AS
15672#include <$ac_header>
15673_ACEOF
c0d27fcc 15674if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
15675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15676 ac_status=$?
6bae0ccf 15677 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
15678 rm -f conftest.er1
15679 cat conftest.err >&5
c0d27fcc 15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
15681 (exit $ac_status); } >/dev/null; then
15682 if test -s conftest.err; then
15683 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 15684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
15685 else
15686 ac_cpp_err=
15687 fi
15688else
15689 ac_cpp_err=yes
15690fi
15691if test -z "$ac_cpp_err"; then
c0d27fcc 15692 ac_header_preproc=yes
503d2be0
AS
15693else
15694 echo "$as_me: failed program was:" >&5
19650fd6
AS
15695sed 's/^/| /' conftest.$ac_ext >&5
15696
c0d27fcc 15697 ac_header_preproc=no
b5de8dc0 15698fi
503d2be0 15699rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
15700echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15701echo "${ECHO_T}$ac_header_preproc" >&6
15702
15703# So? What about this header?
35996d22
AS
15704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15705 yes:no: )
c0d27fcc
MR
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15707echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15709echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15710 ac_header_preproc=yes
19650fd6 15711 ;;
35996d22 15712 no:yes:* )
c0d27fcc
MR
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15714echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15716echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15718echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15720echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 15721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 15722echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15724echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
15725 (
15726 cat <<\_ASBOX
35996d22
AS
15727## ------------------------------------------ ##
15728## Report this to the AC_PACKAGE_NAME lists. ##
15729## ------------------------------------------ ##
19650fd6
AS
15730_ASBOX
15731 ) |
15732 sed "s/^/$as_me: WARNING: /" >&2
15733 ;;
c0d27fcc
MR
15734esac
15735echo "$as_me:$LINENO: checking for $ac_header" >&5
15736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15737if eval "test \"\${$as_ac_Header+set}\" = set"; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15739else
35996d22 15740 eval "$as_ac_Header=\$ac_header_preproc"
b5de8dc0 15741fi
c0d27fcc 15742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 15743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
15744
15745fi
98418dba 15746if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 15747 cat >>confdefs.h <<_ACEOF
98418dba 15748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc
MR
15749_ACEOF
15750 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
98418dba
CW
15751echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15752if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
503d2be0 15753 echo $ECHO_N "(cached) $ECHO_C" >&6
b5de8dc0 15754else
503d2be0 15755 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15756/* confdefs.h. */
15757_ACEOF
15758cat confdefs.h >>conftest.$ac_ext
15759cat >>conftest.$ac_ext <<_ACEOF
15760/* end confdefs.h. */
98418dba 15761#include <nlist.h>
b5de8dc0 15762
503d2be0
AS
15763int
15764main ()
15765{
98418dba
CW
15766static struct nlist ac_aggr;
15767if (ac_aggr.n_un.n_name)
15768return 0;
503d2be0
AS
15769 ;
15770 return 0;
15771}
15772_ACEOF
98418dba 15773rm -f conftest.$ac_objext
c0d27fcc 15774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 15775 (eval $ac_compile) 2>conftest.er1
503d2be0 15776 ac_status=$?
35996d22
AS
15777 grep -v '^ *+' conftest.er1 >conftest.err
15778 rm -f conftest.er1
15779 cat conftest.err >&5
c0d27fcc 15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 15781 (exit $ac_status); } &&
35996d22
AS
15782 { ac_try='test -z "$ac_c_werror_flag"
15783 || test ! -s conftest.err'
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; } &&
15789 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
15791 (eval $ac_try) 2>&5
15792 ac_status=$?
c0d27fcc 15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 15794 (exit $ac_status); }; }; then
98418dba 15795 ac_cv_member_struct_nlist_n_un_n_name=yes
503d2be0
AS
15796else
15797 echo "$as_me: failed program was:" >&5
19650fd6
AS
15798sed 's/^/| /' conftest.$ac_ext >&5
15799
6bae0ccf 15800cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15801/* confdefs.h. */
15802_ACEOF
15803cat confdefs.h >>conftest.$ac_ext
15804cat >>conftest.$ac_ext <<_ACEOF
15805/* end confdefs.h. */
6bae0ccf
DL
15806#include <nlist.h>
15807
15808int
15809main ()
15810{
15811static struct nlist ac_aggr;
15812if (sizeof ac_aggr.n_un.n_name)
15813return 0;
15814 ;
15815 return 0;
15816}
15817_ACEOF
15818rm -f conftest.$ac_objext
15819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 15820 (eval $ac_compile) 2>conftest.er1
6bae0ccf 15821 ac_status=$?
35996d22
AS
15822 grep -v '^ *+' conftest.er1 >conftest.err
15823 rm -f conftest.er1
15824 cat conftest.err >&5
6bae0ccf
DL
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
35996d22
AS
15827 { ac_try='test -z "$ac_c_werror_flag"
15828 || test ! -s conftest.err'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; } &&
15834 { ac_try='test -s conftest.$ac_objext'
6bae0ccf
DL
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15837 ac_status=$?
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; }; then
15840 ac_cv_member_struct_nlist_n_un_n_name=yes
15841else
15842 echo "$as_me: failed program was:" >&5
19650fd6
AS
15843sed 's/^/| /' conftest.$ac_ext >&5
15844
98418dba 15845ac_cv_member_struct_nlist_n_un_n_name=no
503d2be0 15846fi
35996d22 15847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b5de8dc0 15848fi
35996d22 15849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6bae0ccf 15850fi
c0d27fcc 15851echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
98418dba
CW
15852echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15853if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
b5de8dc0 15854
c0d27fcc 15855cat >>confdefs.h <<_ACEOF
98418dba 15856#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
c0d27fcc 15857_ACEOF
b5de8dc0 15858
c0d27fcc
MR
15859
15860cat >>confdefs.h <<\_ACEOF
98418dba 15861#define NLIST_NAME_UNION 1
c0d27fcc 15862_ACEOF
b5de8dc0 15863
98418dba 15864fi
b5de8dc0 15865
c0d27fcc 15866
98418dba 15867fi
c0d27fcc 15868
98418dba 15869done
b5de8dc0 15870
98418dba
CW
15871fi
15872done
b5de8dc0 15873
c0d27fcc 15874
98418dba 15875# Some definitions of getloadavg require that the program be installed setgid.
c0d27fcc 15876echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
98418dba
CW
15877echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15878if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15880else
15881 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15882/* confdefs.h. */
15883_ACEOF
15884cat confdefs.h >>conftest.$ac_ext
15885cat >>conftest.$ac_ext <<_ACEOF
15886/* end confdefs.h. */
6bae0ccf 15887#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
98418dba
CW
15888#ifdef LDAV_PRIVILEGED
15889Yowza Am I SETGID yet
15890#endif
15891_ACEOF
15892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 15893 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
98418dba
CW
15894 ac_cv_func_getloadavg_setgid=yes
15895else
15896 ac_cv_func_getloadavg_setgid=no
15897fi
15898rm -f conftest*
b5de8dc0 15899
98418dba 15900fi
c0d27fcc 15901echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
98418dba
CW
15902echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
15903if test $ac_cv_func_getloadavg_setgid = yes; then
15904 NEED_SETGID=true
b5de8dc0 15905
c0d27fcc 15906cat >>confdefs.h <<\_ACEOF
98418dba 15907#define GETLOADAVG_PRIVILEGED 1
c0d27fcc 15908_ACEOF
98418dba 15909
b5de8dc0 15910else
98418dba 15911 NEED_SETGID=false
b5de8dc0 15912fi
98418dba
CW
15913
15914if test $ac_cv_func_getloadavg_setgid = yes; then
c0d27fcc 15915 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
98418dba
CW
15916echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
15917if test "${ac_cv_group_kmem+set}" = set; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15919else
15920 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15921 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
15922 # If we got an error (system does not support symlinks), try without -L.
15923 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
15924 ac_cv_group_kmem=`echo $ac_ls_output \
35996d22 15925 | sed -ne 's/[ ][ ]*/ /g;
98418dba
CW
15926 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
15927 / /s/.* //;p;'`
15928
b5de8dc0 15929fi
c0d27fcc 15930echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
98418dba
CW
15931echo "${ECHO_T}$ac_cv_group_kmem" >&6
15932 KMEM_GROUP=$ac_cv_group_kmem
b5de8dc0 15933fi
98418dba
CW
15934if test "x$ac_save_LIBS" = x; then
15935 GETLOADAVG_LIBS=$LIBS
15936else
15937 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
b5de8dc0 15938fi
98418dba 15939LIBS=$ac_save_LIBS
b5de8dc0 15940
c0d27fcc
MR
15941
15942
15943echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
b936fae4
AS
15944echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15945if test "${ac_cv_sys_largefile_source+set}" = set; then
503d2be0 15946 echo $ECHO_N "(cached) $ECHO_C" >&6
4c343001 15947else
b936fae4
AS
15948 while :; do
15949 ac_cv_sys_largefile_source=no
503d2be0 15950 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15951/* confdefs.h. */
15952_ACEOF
15953cat confdefs.h >>conftest.$ac_ext
15954cat >>conftest.$ac_ext <<_ACEOF
15955/* end confdefs.h. */
b936fae4 15956#include <stdio.h>
503d2be0
AS
15957int
15958main ()
15959{
b936fae4
AS
15960return !fseeko;
15961 ;
15962 return 0;
15963}
15964_ACEOF
15965rm -f conftest.$ac_objext
c0d27fcc 15966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 15967 (eval $ac_compile) 2>conftest.er1
b936fae4 15968 ac_status=$?
35996d22
AS
15969 grep -v '^ *+' conftest.er1 >conftest.err
15970 rm -f conftest.er1
15971 cat conftest.err >&5
c0d27fcc 15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b936fae4 15973 (exit $ac_status); } &&
35996d22
AS
15974 { ac_try='test -z "$ac_c_werror_flag"
15975 || test ! -s conftest.err'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15978 ac_status=$?
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; } &&
15981 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 15982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
b936fae4
AS
15983 (eval $ac_try) 2>&5
15984 ac_status=$?
c0d27fcc 15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b936fae4
AS
15986 (exit $ac_status); }; }; then
15987 break
15988else
15989 echo "$as_me: failed program was:" >&5
19650fd6
AS
15990sed 's/^/| /' conftest.$ac_ext >&5
15991
b936fae4 15992fi
35996d22 15993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b936fae4 15994 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
15995/* confdefs.h. */
15996_ACEOF
15997cat confdefs.h >>conftest.$ac_ext
15998cat >>conftest.$ac_ext <<_ACEOF
15999/* end confdefs.h. */
b936fae4
AS
16000#define _LARGEFILE_SOURCE 1
16001#include <stdio.h>
b936fae4
AS
16002int
16003main ()
16004{
16005return !fseeko;
16006 ;
16007 return 0;
16008}
16009_ACEOF
16010rm -f conftest.$ac_objext
c0d27fcc 16011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 16012 (eval $ac_compile) 2>conftest.er1
b936fae4 16013 ac_status=$?
35996d22
AS
16014 grep -v '^ *+' conftest.er1 >conftest.err
16015 rm -f conftest.er1
16016 cat conftest.err >&5
c0d27fcc 16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b936fae4 16018 (exit $ac_status); } &&
35996d22
AS
16019 { ac_try='test -z "$ac_c_werror_flag"
16020 || test ! -s conftest.err'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; } &&
16026 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
b936fae4
AS
16028 (eval $ac_try) 2>&5
16029 ac_status=$?
c0d27fcc 16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b936fae4
AS
16031 (exit $ac_status); }; }; then
16032 ac_cv_sys_largefile_source=1; break
16033else
16034 echo "$as_me: failed program was:" >&5
19650fd6
AS
16035sed 's/^/| /' conftest.$ac_ext >&5
16036
b936fae4 16037fi
35996d22 16038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b936fae4
AS
16039 break
16040done
16041fi
c0d27fcc 16042echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
b936fae4
AS
16043echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16044if test "$ac_cv_sys_largefile_source" != no; then
16045
c0d27fcc 16046cat >>confdefs.h <<_ACEOF
b936fae4 16047#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
c0d27fcc 16048_ACEOF
b936fae4
AS
16049
16050fi
16051rm -f conftest*
4c343001 16052
b936fae4
AS
16053# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16054# in glibc 2.1.3, but that breaks too many other things.
16055# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
c0d27fcc 16056echo "$as_me:$LINENO: checking for fseeko" >&5
b936fae4
AS
16057echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16058if test "${ac_cv_func_fseeko+set}" = set; then
16059 echo $ECHO_N "(cached) $ECHO_C" >&6
16060else
16061 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16062/* confdefs.h. */
16063_ACEOF
16064cat confdefs.h >>conftest.$ac_ext
16065cat >>conftest.$ac_ext <<_ACEOF
16066/* end confdefs.h. */
b936fae4 16067#include <stdio.h>
b936fae4
AS
16068int
16069main ()
16070{
16071return fseeko && fseeko (stdin, 0, 0);
503d2be0
AS
16072 ;
16073 return 0;
16074}
16075_ACEOF
16076rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 16077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16078 (eval $ac_link) 2>conftest.er1
503d2be0 16079 ac_status=$?
35996d22
AS
16080 grep -v '^ *+' conftest.er1 >conftest.err
16081 rm -f conftest.er1
16082 cat conftest.err >&5
c0d27fcc 16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 16084 (exit $ac_status); } &&
35996d22
AS
16085 { ac_try='test -z "$ac_c_werror_flag"
16086 || test ! -s conftest.err'
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16089 ac_status=$?
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; } &&
16092 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
16094 (eval $ac_try) 2>&5
16095 ac_status=$?
c0d27fcc 16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 16097 (exit $ac_status); }; }; then
b936fae4 16098 ac_cv_func_fseeko=yes
503d2be0
AS
16099else
16100 echo "$as_me: failed program was:" >&5
19650fd6
AS
16101sed 's/^/| /' conftest.$ac_ext >&5
16102
b936fae4 16103ac_cv_func_fseeko=no
503d2be0 16104fi
35996d22
AS
16105rm -f conftest.err conftest.$ac_objext \
16106 conftest$ac_exeext conftest.$ac_ext
503d2be0 16107fi
c0d27fcc 16108echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
b936fae4
AS
16109echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16110if test $ac_cv_func_fseeko = yes; then
16111
c0d27fcc 16112cat >>confdefs.h <<\_ACEOF
b936fae4 16113#define HAVE_FSEEKO 1
c0d27fcc 16114_ACEOF
b936fae4 16115
4c343001
DL
16116fi
16117
c0d27fcc 16118
cd958eb3
MB
16119echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16120echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16121if test "${ac_cv_func_getpgrp_void+set}" = set; then
16122 echo $ECHO_N "(cached) $ECHO_C" >&6
16123else
16124 # Use it with a single arg.
16125cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16126/* confdefs.h. */
16127_ACEOF
16128cat confdefs.h >>conftest.$ac_ext
16129cat >>conftest.$ac_ext <<_ACEOF
16130/* end confdefs.h. */
cd958eb3
MB
16131$ac_includes_default
16132int
16133main ()
16134{
16135getpgrp (0);
16136 ;
16137 return 0;
16138}
16139_ACEOF
16140rm -f conftest.$ac_objext
16141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 16142 (eval $ac_compile) 2>conftest.er1
cd958eb3 16143 ac_status=$?
35996d22
AS
16144 grep -v '^ *+' conftest.er1 >conftest.err
16145 rm -f conftest.er1
16146 cat conftest.err >&5
cd958eb3
MB
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } &&
35996d22
AS
16149 { ac_try='test -z "$ac_c_werror_flag"
16150 || test ! -s conftest.err'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; } &&
16156 { ac_try='test -s conftest.$ac_objext'
cd958eb3
MB
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 ac_cv_func_getpgrp_void=no
16163else
16164 echo "$as_me: failed program was:" >&5
19650fd6
AS
16165sed 's/^/| /' conftest.$ac_ext >&5
16166
cd958eb3
MB
16167ac_cv_func_getpgrp_void=yes
16168fi
35996d22 16169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cd958eb3
MB
16170
16171fi
16172echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16173echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16174if test $ac_cv_func_getpgrp_void = yes; then
16175
16176cat >>confdefs.h <<\_ACEOF
16177#define GETPGRP_VOID 1
16178_ACEOF
16179
16180fi
16181
16182
973a76b1
DL
16183
16184for ac_func in strftime
16185do
16186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16187echo "$as_me:$LINENO: checking for $ac_func" >&5
16188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16189if eval "test \"\${$as_ac_var+set}\" = set"; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
16191else
16192 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16193/* confdefs.h. */
16194_ACEOF
16195cat confdefs.h >>conftest.$ac_ext
16196cat >>conftest.$ac_ext <<_ACEOF
16197/* end confdefs.h. */
35996d22
AS
16198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16200#define $ac_func innocuous_$ac_func
16201
973a76b1 16202/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
16203 which can conflict with char $ac_func (); below.
16204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16205 <limits.h> exists even on freestanding compilers. */
35996d22 16206
19650fd6
AS
16207#ifdef __STDC__
16208# include <limits.h>
16209#else
16210# include <assert.h>
16211#endif
35996d22
AS
16212
16213#undef $ac_func
16214
973a76b1
DL
16215/* Override any gcc2 internal prototype to avoid an error. */
16216#ifdef __cplusplus
16217extern "C"
19650fd6 16218{
973a76b1
DL
16219#endif
16220/* We use char because int might match the return type of a gcc2
16221 builtin and then its argument prototype would still apply. */
16222char $ac_func ();
16223/* The GNU C library defines this for functions which it implements
16224 to always fail with ENOSYS. Some functions are actually named
16225 something starting with __ and the normal name is an alias. */
16226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16227choke me
16228#else
19650fd6
AS
16229char (*f) () = $ac_func;
16230#endif
16231#ifdef __cplusplus
16232}
973a76b1
DL
16233#endif
16234
19650fd6
AS
16235int
16236main ()
16237{
16238return f != $ac_func;
973a76b1
DL
16239 ;
16240 return 0;
16241}
16242_ACEOF
16243rm -f conftest.$ac_objext conftest$ac_exeext
16244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16245 (eval $ac_link) 2>conftest.er1
973a76b1 16246 ac_status=$?
35996d22
AS
16247 grep -v '^ *+' conftest.er1 >conftest.err
16248 rm -f conftest.er1
16249 cat conftest.err >&5
973a76b1
DL
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } &&
35996d22
AS
16252 { ac_try='test -z "$ac_c_werror_flag"
16253 || test ! -s conftest.err'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; } &&
16259 { ac_try='test -s conftest$ac_exeext'
973a76b1
DL
16260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261 (eval $ac_try) 2>&5
16262 ac_status=$?
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; }; then
16265 eval "$as_ac_var=yes"
16266else
16267 echo "$as_me: failed program was:" >&5
19650fd6
AS
16268sed 's/^/| /' conftest.$ac_ext >&5
16269
973a76b1
DL
16270eval "$as_ac_var=no"
16271fi
35996d22
AS
16272rm -f conftest.err conftest.$ac_objext \
16273 conftest$ac_exeext conftest.$ac_ext
973a76b1
DL
16274fi
16275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16276echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16277if test `eval echo '${'$as_ac_var'}'` = yes; then
16278 cat >>confdefs.h <<_ACEOF
16279#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16280_ACEOF
16281
16282else
16283 # strftime is in -lintl on SCO UNIX.
16284echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16285echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16286if test "${ac_cv_lib_intl_strftime+set}" = set; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16288else
16289 ac_check_lib_save_LIBS=$LIBS
16290LIBS="-lintl $LIBS"
16291cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16292/* confdefs.h. */
16293_ACEOF
16294cat confdefs.h >>conftest.$ac_ext
16295cat >>conftest.$ac_ext <<_ACEOF
16296/* end confdefs.h. */
973a76b1
DL
16297
16298/* Override any gcc2 internal prototype to avoid an error. */
16299#ifdef __cplusplus
16300extern "C"
16301#endif
16302/* We use char because int might match the return type of a gcc2
16303 builtin and then its argument prototype would still apply. */
16304char strftime ();
16305int
16306main ()
16307{
16308strftime ();
16309 ;
16310 return 0;
16311}
16312_ACEOF
16313rm -f conftest.$ac_objext conftest$ac_exeext
16314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16315 (eval $ac_link) 2>conftest.er1
973a76b1 16316 ac_status=$?
35996d22
AS
16317 grep -v '^ *+' conftest.er1 >conftest.err
16318 rm -f conftest.er1
16319 cat conftest.err >&5
973a76b1
DL
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } &&
35996d22
AS
16322 { ac_try='test -z "$ac_c_werror_flag"
16323 || test ! -s conftest.err'
16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325 (eval $ac_try) 2>&5
16326 ac_status=$?
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; } &&
16329 { ac_try='test -s conftest$ac_exeext'
973a76b1
DL
16330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331 (eval $ac_try) 2>&5
16332 ac_status=$?
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; }; then
16335 ac_cv_lib_intl_strftime=yes
16336else
16337 echo "$as_me: failed program was:" >&5
19650fd6
AS
16338sed 's/^/| /' conftest.$ac_ext >&5
16339
973a76b1
DL
16340ac_cv_lib_intl_strftime=no
16341fi
35996d22
AS
16342rm -f conftest.err conftest.$ac_objext \
16343 conftest$ac_exeext conftest.$ac_ext
973a76b1
DL
16344LIBS=$ac_check_lib_save_LIBS
16345fi
16346echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16347echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16348if test $ac_cv_lib_intl_strftime = yes; then
16349 cat >>confdefs.h <<\_ACEOF
16350#define HAVE_STRFTIME 1
16351_ACEOF
16352
16353LIBS="-lintl $LIBS"
16354fi
16355
16356fi
16357done
16358
16359
b936fae4
AS
16360# UNIX98 PTYs.
16361
16362for ac_func in grantpt
503d2be0
AS
16363do
16364as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 16365echo "$as_me:$LINENO: checking for $ac_func" >&5
503d2be0
AS
16366echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16367if eval "test \"\${$as_ac_var+set}\" = set"; then
16368 echo $ECHO_N "(cached) $ECHO_C" >&6
4c343001 16369else
503d2be0 16370 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16371/* confdefs.h. */
16372_ACEOF
16373cat confdefs.h >>conftest.$ac_ext
16374cat >>conftest.$ac_ext <<_ACEOF
16375/* end confdefs.h. */
35996d22
AS
16376/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16378#define $ac_func innocuous_$ac_func
16379
503d2be0 16380/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
16381 which can conflict with char $ac_func (); below.
16382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16383 <limits.h> exists even on freestanding compilers. */
35996d22 16384
19650fd6
AS
16385#ifdef __STDC__
16386# include <limits.h>
16387#else
16388# include <assert.h>
16389#endif
35996d22
AS
16390
16391#undef $ac_func
16392
4c343001 16393/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
16394#ifdef __cplusplus
16395extern "C"
19650fd6 16396{
503d2be0 16397#endif
4c343001 16398/* We use char because int might match the return type of a gcc2
503d2be0
AS
16399 builtin and then its argument prototype would still apply. */
16400char $ac_func ();
503d2be0
AS
16401/* The GNU C library defines this for functions which it implements
16402 to always fail with ENOSYS. Some functions are actually named
16403 something starting with __ and the normal name is an alias. */
16404#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16405choke me
16406#else
19650fd6
AS
16407char (*f) () = $ac_func;
16408#endif
16409#ifdef __cplusplus
16410}
503d2be0 16411#endif
4c343001 16412
19650fd6
AS
16413int
16414main ()
16415{
16416return f != $ac_func;
503d2be0
AS
16417 ;
16418 return 0;
16419}
16420_ACEOF
16421rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 16422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16423 (eval $ac_link) 2>conftest.er1
503d2be0 16424 ac_status=$?
35996d22
AS
16425 grep -v '^ *+' conftest.er1 >conftest.err
16426 rm -f conftest.er1
16427 cat conftest.err >&5
c0d27fcc 16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 16429 (exit $ac_status); } &&
35996d22
AS
16430 { ac_try='test -z "$ac_c_werror_flag"
16431 || test ! -s conftest.err'
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433 (eval $ac_try) 2>&5
16434 ac_status=$?
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; } &&
16437 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 16438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
16439 (eval $ac_try) 2>&5
16440 ac_status=$?
c0d27fcc 16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
16442 (exit $ac_status); }; }; then
16443 eval "$as_ac_var=yes"
16444else
16445 echo "$as_me: failed program was:" >&5
19650fd6
AS
16446sed 's/^/| /' conftest.$ac_ext >&5
16447
503d2be0
AS
16448eval "$as_ac_var=no"
16449fi
35996d22
AS
16450rm -f conftest.err conftest.$ac_objext \
16451 conftest$ac_exeext conftest.$ac_ext
503d2be0 16452fi
c0d27fcc 16453echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
503d2be0
AS
16454echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16455if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 16456 cat >>confdefs.h <<_ACEOF
503d2be0 16457#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 16458_ACEOF
4c343001
DL
16459
16460fi
503d2be0
AS
16461done
16462
c0d27fcc 16463
b936fae4 16464# PTY-related GNU extensions.
4c343001 16465
b936fae4
AS
16466for ac_func in getpt
16467do
16468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 16469echo "$as_me:$LINENO: checking for $ac_func" >&5
b936fae4
AS
16470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16471if eval "test \"\${$as_ac_var+set}\" = set"; then
503d2be0 16472 echo $ECHO_N "(cached) $ECHO_C" >&6
4c343001 16473else
b936fae4 16474 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16475/* confdefs.h. */
16476_ACEOF
16477cat confdefs.h >>conftest.$ac_ext
16478cat >>conftest.$ac_ext <<_ACEOF
16479/* end confdefs.h. */
35996d22
AS
16480/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16482#define $ac_func innocuous_$ac_func
16483
087121cc 16484/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
16485 which can conflict with char $ac_func (); below.
16486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16487 <limits.h> exists even on freestanding compilers. */
35996d22 16488
19650fd6
AS
16489#ifdef __STDC__
16490# include <limits.h>
16491#else
16492# include <assert.h>
16493#endif
35996d22
AS
16494
16495#undef $ac_func
16496
087121cc 16497/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
16498#ifdef __cplusplus
16499extern "C"
19650fd6 16500{
503d2be0 16501#endif
087121cc 16502/* We use char because int might match the return type of a gcc2
503d2be0
AS
16503 builtin and then its argument prototype would still apply. */
16504char $ac_func ();
087121cc
GM
16505/* The GNU C library defines this for functions which it implements
16506 to always fail with ENOSYS. Some functions are actually named
16507 something starting with __ and the normal name is an alias. */
16508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16509choke me
16510#else
19650fd6
AS
16511char (*f) () = $ac_func;
16512#endif
16513#ifdef __cplusplus
16514}
087121cc
GM
16515#endif
16516
19650fd6
AS
16517int
16518main ()
16519{
16520return f != $ac_func;
503d2be0
AS
16521 ;
16522 return 0;
16523}
16524_ACEOF
16525rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 16526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16527 (eval $ac_link) 2>conftest.er1
503d2be0 16528 ac_status=$?
35996d22
AS
16529 grep -v '^ *+' conftest.er1 >conftest.err
16530 rm -f conftest.er1
16531 cat conftest.err >&5
c0d27fcc 16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 16533 (exit $ac_status); } &&
35996d22
AS
16534 { ac_try='test -z "$ac_c_werror_flag"
16535 || test ! -s conftest.err'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; } &&
16541 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 16542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
16543 (eval $ac_try) 2>&5
16544 ac_status=$?
c0d27fcc 16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
16546 (exit $ac_status); }; }; then
16547 eval "$as_ac_var=yes"
16548else
16549 echo "$as_me: failed program was:" >&5
19650fd6
AS
16550sed 's/^/| /' conftest.$ac_ext >&5
16551
503d2be0
AS
16552eval "$as_ac_var=no"
16553fi
35996d22
AS
16554rm -f conftest.err conftest.$ac_objext \
16555 conftest$ac_exeext conftest.$ac_ext
503d2be0 16556fi
c0d27fcc 16557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
503d2be0
AS
16558echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16559if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 16560 cat >>confdefs.h <<_ACEOF
503d2be0 16561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 16562_ACEOF
087121cc 16563
087121cc
GM
16564fi
16565done
16566
c0d27fcc 16567
ba4481b5
DL
16568# Check this now, so that we will NOT find the above functions in ncurses.
16569# That is because we have not set up to link ncurses in lib-src.
16570# It's better to believe a function is not available
16571# than to expect to find it in ncurses.
503d2be0 16572
c0d27fcc 16573echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
503d2be0
AS
16574echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16575if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 16577else
503d2be0 16578 ac_check_lib_save_LIBS=$LIBS
ba4481b5 16579LIBS="-lncurses $LIBS"
503d2be0 16580cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16581/* confdefs.h. */
16582_ACEOF
16583cat confdefs.h >>conftest.$ac_ext
16584cat >>conftest.$ac_ext <<_ACEOF
16585/* end confdefs.h. */
503d2be0 16586
ba4481b5 16587/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
16588#ifdef __cplusplus
16589extern "C"
16590#endif
ba4481b5 16591/* We use char because int might match the return type of a gcc2
503d2be0
AS
16592 builtin and then its argument prototype would still apply. */
16593char tparm ();
16594int
16595main ()
16596{
16597tparm ();
16598 ;
16599 return 0;
16600}
16601_ACEOF
16602rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 16603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16604 (eval $ac_link) 2>conftest.er1
503d2be0 16605 ac_status=$?
35996d22
AS
16606 grep -v '^ *+' conftest.er1 >conftest.err
16607 rm -f conftest.er1
16608 cat conftest.err >&5
c0d27fcc 16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 16610 (exit $ac_status); } &&
35996d22
AS
16611 { ac_try='test -z "$ac_c_werror_flag"
16612 || test ! -s conftest.err'
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; } &&
16618 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
16620 (eval $ac_try) 2>&5
16621 ac_status=$?
c0d27fcc 16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
16623 (exit $ac_status); }; }; then
16624 ac_cv_lib_ncurses_tparm=yes
16625else
16626 echo "$as_me: failed program was:" >&5
19650fd6
AS
16627sed 's/^/| /' conftest.$ac_ext >&5
16628
503d2be0
AS
16629ac_cv_lib_ncurses_tparm=no
16630fi
35996d22
AS
16631rm -f conftest.err conftest.$ac_objext \
16632 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
16633LIBS=$ac_check_lib_save_LIBS
16634fi
c0d27fcc 16635echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
503d2be0
AS
16636echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16637if test $ac_cv_lib_ncurses_tparm = yes; then
c0d27fcc 16638 cat >>confdefs.h <<_ACEOF
503d2be0 16639#define HAVE_LIBNCURSES 1
c0d27fcc 16640_ACEOF
ba4481b5
DL
16641
16642 LIBS="-lncurses $LIBS"
16643
ba4481b5
DL
16644fi
16645
c0d27fcc 16646
84e70f78
KR
16647# Do we need the Hesiod library to provide the support routines?
16648if test "$with_hesiod" = yes ; then
16649 # Don't set $LIBS here -- see comments above.
16650 resolv=no
c0d27fcc 16651 echo "$as_me:$LINENO: checking for res_send" >&5
84e70f78
KR
16652echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16653if test "${ac_cv_func_res_send+set}" = set; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16655else
16656 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16657/* confdefs.h. */
16658_ACEOF
16659cat confdefs.h >>conftest.$ac_ext
16660cat >>conftest.$ac_ext <<_ACEOF
16661/* end confdefs.h. */
35996d22
AS
16662/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16664#define res_send innocuous_res_send
16665
84e70f78 16666/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
16667 which can conflict with char res_send (); below.
16668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16669 <limits.h> exists even on freestanding compilers. */
35996d22 16670
19650fd6
AS
16671#ifdef __STDC__
16672# include <limits.h>
16673#else
16674# include <assert.h>
16675#endif
35996d22
AS
16676
16677#undef res_send
16678
84e70f78
KR
16679/* Override any gcc2 internal prototype to avoid an error. */
16680#ifdef __cplusplus
16681extern "C"
19650fd6 16682{
84e70f78
KR
16683#endif
16684/* We use char because int might match the return type of a gcc2
16685 builtin and then its argument prototype would still apply. */
16686char res_send ();
84e70f78
KR
16687/* The GNU C library defines this for functions which it implements
16688 to always fail with ENOSYS. Some functions are actually named
16689 something starting with __ and the normal name is an alias. */
16690#if defined (__stub_res_send) || defined (__stub___res_send)
16691choke me
16692#else
19650fd6
AS
16693char (*f) () = res_send;
16694#endif
16695#ifdef __cplusplus
16696}
cd958eb3
MB
16697#endif
16698
19650fd6
AS
16699int
16700main ()
16701{
16702return f != res_send;
84e70f78
KR
16703 ;
16704 return 0;
16705}
16706_ACEOF
16707rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 16708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16709 (eval $ac_link) 2>conftest.er1
84e70f78 16710 ac_status=$?
35996d22
AS
16711 grep -v '^ *+' conftest.er1 >conftest.err
16712 rm -f conftest.er1
16713 cat conftest.err >&5
c0d27fcc 16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78 16715 (exit $ac_status); } &&
35996d22
AS
16716 { ac_try='test -z "$ac_c_werror_flag"
16717 || test ! -s conftest.err'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; } &&
16723 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
84e70f78
KR
16725 (eval $ac_try) 2>&5
16726 ac_status=$?
c0d27fcc 16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78
KR
16728 (exit $ac_status); }; }; then
16729 ac_cv_func_res_send=yes
16730else
16731 echo "$as_me: failed program was:" >&5
19650fd6
AS
16732sed 's/^/| /' conftest.$ac_ext >&5
16733
84e70f78
KR
16734ac_cv_func_res_send=no
16735fi
35996d22
AS
16736rm -f conftest.err conftest.$ac_objext \
16737 conftest$ac_exeext conftest.$ac_ext
84e70f78 16738fi
c0d27fcc 16739echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
84e70f78
KR
16740echo "${ECHO_T}$ac_cv_func_res_send" >&6
16741if test $ac_cv_func_res_send = yes; then
16742 :
16743else
c0d27fcc 16744 echo "$as_me:$LINENO: checking for __res_send" >&5
84e70f78
KR
16745echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16746if test "${ac_cv_func___res_send+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16748else
16749 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16750/* confdefs.h. */
16751_ACEOF
16752cat confdefs.h >>conftest.$ac_ext
16753cat >>conftest.$ac_ext <<_ACEOF
16754/* end confdefs.h. */
35996d22
AS
16755/* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16757#define __res_send innocuous___res_send
16758
84e70f78 16759/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
16760 which can conflict with char __res_send (); below.
16761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16762 <limits.h> exists even on freestanding compilers. */
35996d22 16763
19650fd6
AS
16764#ifdef __STDC__
16765# include <limits.h>
16766#else
16767# include <assert.h>
16768#endif
35996d22
AS
16769
16770#undef __res_send
16771
84e70f78
KR
16772/* Override any gcc2 internal prototype to avoid an error. */
16773#ifdef __cplusplus
16774extern "C"
19650fd6 16775{
84e70f78
KR
16776#endif
16777/* We use char because int might match the return type of a gcc2
16778 builtin and then its argument prototype would still apply. */
16779char __res_send ();
84e70f78
KR
16780/* The GNU C library defines this for functions which it implements
16781 to always fail with ENOSYS. Some functions are actually named
16782 something starting with __ and the normal name is an alias. */
16783#if defined (__stub___res_send) || defined (__stub_____res_send)
16784choke me
16785#else
19650fd6
AS
16786char (*f) () = __res_send;
16787#endif
16788#ifdef __cplusplus
16789}
84e70f78
KR
16790#endif
16791
19650fd6
AS
16792int
16793main ()
16794{
16795return f != __res_send;
84e70f78
KR
16796 ;
16797 return 0;
16798}
16799_ACEOF
16800rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 16801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16802 (eval $ac_link) 2>conftest.er1
84e70f78 16803 ac_status=$?
35996d22
AS
16804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
c0d27fcc 16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78 16808 (exit $ac_status); } &&
35996d22
AS
16809 { ac_try='test -z "$ac_c_werror_flag"
16810 || test ! -s conftest.err'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; } &&
16816 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
84e70f78
KR
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
c0d27fcc 16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78
KR
16821 (exit $ac_status); }; }; then
16822 ac_cv_func___res_send=yes
16823else
16824 echo "$as_me: failed program was:" >&5
19650fd6
AS
16825sed 's/^/| /' conftest.$ac_ext >&5
16826
84e70f78
KR
16827ac_cv_func___res_send=no
16828fi
35996d22
AS
16829rm -f conftest.err conftest.$ac_objext \
16830 conftest$ac_exeext conftest.$ac_ext
84e70f78 16831fi
c0d27fcc 16832echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
84e70f78
KR
16833echo "${ECHO_T}$ac_cv_func___res_send" >&6
16834if test $ac_cv_func___res_send = yes; then
16835 :
16836else
c0d27fcc 16837 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
84e70f78
KR
16838echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16839if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16841else
16842 ac_check_lib_save_LIBS=$LIBS
16843LIBS="-lresolv $LIBS"
16844cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16845/* confdefs.h. */
16846_ACEOF
16847cat confdefs.h >>conftest.$ac_ext
16848cat >>conftest.$ac_ext <<_ACEOF
16849/* end confdefs.h. */
84e70f78
KR
16850
16851/* Override any gcc2 internal prototype to avoid an error. */
16852#ifdef __cplusplus
16853extern "C"
16854#endif
16855/* We use char because int might match the return type of a gcc2
16856 builtin and then its argument prototype would still apply. */
16857char res_send ();
16858int
16859main ()
16860{
16861res_send ();
16862 ;
16863 return 0;
16864}
16865_ACEOF
16866rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 16867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16868 (eval $ac_link) 2>conftest.er1
84e70f78 16869 ac_status=$?
35996d22
AS
16870 grep -v '^ *+' conftest.er1 >conftest.err
16871 rm -f conftest.er1
16872 cat conftest.err >&5
c0d27fcc 16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78 16874 (exit $ac_status); } &&
35996d22
AS
16875 { ac_try='test -z "$ac_c_werror_flag"
16876 || test ! -s conftest.err'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; } &&
16882 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
84e70f78
KR
16884 (eval $ac_try) 2>&5
16885 ac_status=$?
c0d27fcc 16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78
KR
16887 (exit $ac_status); }; }; then
16888 ac_cv_lib_resolv_res_send=yes
16889else
16890 echo "$as_me: failed program was:" >&5
19650fd6
AS
16891sed 's/^/| /' conftest.$ac_ext >&5
16892
84e70f78
KR
16893ac_cv_lib_resolv_res_send=no
16894fi
35996d22
AS
16895rm -f conftest.err conftest.$ac_objext \
16896 conftest$ac_exeext conftest.$ac_ext
84e70f78
KR
16897LIBS=$ac_check_lib_save_LIBS
16898fi
c0d27fcc 16899echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
84e70f78
KR
16900echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
16901if test $ac_cv_lib_resolv_res_send = yes; then
16902 resolv=yes
16903else
c0d27fcc 16904 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
84e70f78
KR
16905echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
16906if test "${ac_cv_lib_resolv___res_send+set}" = set; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16908else
16909 ac_check_lib_save_LIBS=$LIBS
16910LIBS="-lresolv $LIBS"
16911cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16912/* confdefs.h. */
16913_ACEOF
16914cat confdefs.h >>conftest.$ac_ext
16915cat >>conftest.$ac_ext <<_ACEOF
16916/* end confdefs.h. */
84e70f78
KR
16917
16918/* Override any gcc2 internal prototype to avoid an error. */
16919#ifdef __cplusplus
16920extern "C"
16921#endif
16922/* We use char because int might match the return type of a gcc2
16923 builtin and then its argument prototype would still apply. */
16924char __res_send ();
16925int
16926main ()
16927{
16928__res_send ();
16929 ;
16930 return 0;
16931}
16932_ACEOF
16933rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 16934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 16935 (eval $ac_link) 2>conftest.er1
84e70f78 16936 ac_status=$?
35996d22
AS
16937 grep -v '^ *+' conftest.er1 >conftest.err
16938 rm -f conftest.er1
16939 cat conftest.err >&5
c0d27fcc 16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78 16941 (exit $ac_status); } &&
35996d22
AS
16942 { ac_try='test -z "$ac_c_werror_flag"
16943 || test ! -s conftest.err'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } &&
16949 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
84e70f78
KR
16951 (eval $ac_try) 2>&5
16952 ac_status=$?
c0d27fcc 16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78
KR
16954 (exit $ac_status); }; }; then
16955 ac_cv_lib_resolv___res_send=yes
16956else
16957 echo "$as_me: failed program was:" >&5
19650fd6
AS
16958sed 's/^/| /' conftest.$ac_ext >&5
16959
84e70f78
KR
16960ac_cv_lib_resolv___res_send=no
16961fi
35996d22
AS
16962rm -f conftest.err conftest.$ac_objext \
16963 conftest$ac_exeext conftest.$ac_ext
84e70f78
KR
16964LIBS=$ac_check_lib_save_LIBS
16965fi
c0d27fcc 16966echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
84e70f78
KR
16967echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
16968if test $ac_cv_lib_resolv___res_send = yes; then
16969 resolv=yes
16970fi
16971
16972fi
16973
16974fi
16975
16976fi
16977
16978 if test "$resolv" = yes ; then
16979 RESOLVLIB=-lresolv
b936fae4 16980
c0d27fcc 16981cat >>confdefs.h <<\_ACEOF
84e70f78 16982#define HAVE_LIBRESOLV 1
c0d27fcc 16983_ACEOF
84e70f78
KR
16984
16985 else
16986 RESOLVLIB=
16987 fi
c0d27fcc 16988 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
84e70f78
KR
16989echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
16990if test "${ac_cv_func_hes_getmailhost+set}" = set; then
16991 echo $ECHO_N "(cached) $ECHO_C" >&6
16992else
16993 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
16994/* confdefs.h. */
16995_ACEOF
16996cat confdefs.h >>conftest.$ac_ext
16997cat >>conftest.$ac_ext <<_ACEOF
16998/* end confdefs.h. */
35996d22
AS
16999/* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17001#define hes_getmailhost innocuous_hes_getmailhost
17002
84e70f78 17003/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
17004 which can conflict with char hes_getmailhost (); below.
17005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17006 <limits.h> exists even on freestanding compilers. */
35996d22 17007
19650fd6
AS
17008#ifdef __STDC__
17009# include <limits.h>
17010#else
17011# include <assert.h>
17012#endif
35996d22
AS
17013
17014#undef hes_getmailhost
17015
84e70f78
KR
17016/* Override any gcc2 internal prototype to avoid an error. */
17017#ifdef __cplusplus
17018extern "C"
19650fd6 17019{
84e70f78
KR
17020#endif
17021/* We use char because int might match the return type of a gcc2
17022 builtin and then its argument prototype would still apply. */
17023char hes_getmailhost ();
84e70f78
KR
17024/* The GNU C library defines this for functions which it implements
17025 to always fail with ENOSYS. Some functions are actually named
17026 something starting with __ and the normal name is an alias. */
17027#if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17028choke me
17029#else
19650fd6
AS
17030char (*f) () = hes_getmailhost;
17031#endif
17032#ifdef __cplusplus
17033}
cd958eb3
MB
17034#endif
17035
19650fd6
AS
17036int
17037main ()
17038{
17039return f != hes_getmailhost;
84e70f78
KR
17040 ;
17041 return 0;
17042}
17043_ACEOF
17044rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17046 (eval $ac_link) 2>conftest.er1
84e70f78 17047 ac_status=$?
35996d22
AS
17048 grep -v '^ *+' conftest.er1 >conftest.err
17049 rm -f conftest.er1
17050 cat conftest.err >&5
c0d27fcc 17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78 17052 (exit $ac_status); } &&
35996d22
AS
17053 { ac_try='test -z "$ac_c_werror_flag"
17054 || test ! -s conftest.err'
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
84e70f78
KR
17062 (eval $ac_try) 2>&5
17063 ac_status=$?
c0d27fcc 17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78
KR
17065 (exit $ac_status); }; }; then
17066 ac_cv_func_hes_getmailhost=yes
17067else
17068 echo "$as_me: failed program was:" >&5
19650fd6
AS
17069sed 's/^/| /' conftest.$ac_ext >&5
17070
84e70f78
KR
17071ac_cv_func_hes_getmailhost=no
17072fi
35996d22
AS
17073rm -f conftest.err conftest.$ac_objext \
17074 conftest$ac_exeext conftest.$ac_ext
84e70f78 17075fi
c0d27fcc 17076echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
84e70f78
KR
17077echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17078if test $ac_cv_func_hes_getmailhost = yes; then
17079 :
17080else
c0d27fcc 17081 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
84e70f78
KR
17082echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17083if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17085else
17086 ac_check_lib_save_LIBS=$LIBS
17087LIBS="-lhesiod $RESOLVLIB $LIBS"
17088cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17089/* confdefs.h. */
17090_ACEOF
17091cat confdefs.h >>conftest.$ac_ext
17092cat >>conftest.$ac_ext <<_ACEOF
17093/* end confdefs.h. */
84e70f78
KR
17094
17095/* Override any gcc2 internal prototype to avoid an error. */
17096#ifdef __cplusplus
17097extern "C"
17098#endif
17099/* We use char because int might match the return type of a gcc2
17100 builtin and then its argument prototype would still apply. */
17101char hes_getmailhost ();
17102int
17103main ()
17104{
17105hes_getmailhost ();
17106 ;
17107 return 0;
17108}
17109_ACEOF
17110rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17112 (eval $ac_link) 2>conftest.er1
84e70f78 17113 ac_status=$?
35996d22
AS
17114 grep -v '^ *+' conftest.er1 >conftest.err
17115 rm -f conftest.er1
17116 cat conftest.err >&5
c0d27fcc 17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78 17118 (exit $ac_status); } &&
35996d22
AS
17119 { ac_try='test -z "$ac_c_werror_flag"
17120 || test ! -s conftest.err'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; } &&
17126 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
84e70f78
KR
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
c0d27fcc 17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
84e70f78
KR
17131 (exit $ac_status); }; }; then
17132 ac_cv_lib_hesiod_hes_getmailhost=yes
17133else
17134 echo "$as_me: failed program was:" >&5
19650fd6
AS
17135sed 's/^/| /' conftest.$ac_ext >&5
17136
84e70f78
KR
17137ac_cv_lib_hesiod_hes_getmailhost=no
17138fi
35996d22
AS
17139rm -f conftest.err conftest.$ac_objext \
17140 conftest$ac_exeext conftest.$ac_ext
84e70f78
KR
17141LIBS=$ac_check_lib_save_LIBS
17142fi
c0d27fcc 17143echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
84e70f78
KR
17144echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17145if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
b936fae4 17146
c0d27fcc 17147cat >>confdefs.h <<\_ACEOF
84e70f78 17148#define HAVE_LIBHESIOD 1
c0d27fcc 17149_ACEOF
84e70f78
KR
17150
17151else
17152 :
17153fi
17154
17155fi
17156
17157fi
17158
a21616bd
KR
17159# These tell us which Kerberos-related libraries to use.
17160if test "${with_kerberos+set}" = set; then
503d2be0 17161
c0d27fcc 17162echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
503d2be0
AS
17163echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17164if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
a21616bd 17166else
503d2be0 17167 ac_check_lib_save_LIBS=$LIBS
a21616bd 17168LIBS="-lcom_err $LIBS"
503d2be0 17169cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17170/* confdefs.h. */
17171_ACEOF
17172cat confdefs.h >>conftest.$ac_ext
17173cat >>conftest.$ac_ext <<_ACEOF
17174/* end confdefs.h. */
503d2be0 17175
a21616bd 17176/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
17177#ifdef __cplusplus
17178extern "C"
17179#endif
a21616bd 17180/* We use char because int might match the return type of a gcc2
503d2be0
AS
17181 builtin and then its argument prototype would still apply. */
17182char com_err ();
17183int
17184main ()
17185{
17186com_err ();
17187 ;
17188 return 0;
17189}
17190_ACEOF
17191rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17193 (eval $ac_link) 2>conftest.er1
503d2be0 17194 ac_status=$?
35996d22
AS
17195 grep -v '^ *+' conftest.er1 >conftest.err
17196 rm -f conftest.er1
17197 cat conftest.err >&5
c0d27fcc 17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 17199 (exit $ac_status); } &&
35996d22
AS
17200 { ac_try='test -z "$ac_c_werror_flag"
17201 || test ! -s conftest.err'
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17204 ac_status=$?
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; } &&
17207 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
17209 (eval $ac_try) 2>&5
17210 ac_status=$?
c0d27fcc 17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17212 (exit $ac_status); }; }; then
17213 ac_cv_lib_com_err_com_err=yes
17214else
17215 echo "$as_me: failed program was:" >&5
19650fd6
AS
17216sed 's/^/| /' conftest.$ac_ext >&5
17217
503d2be0
AS
17218ac_cv_lib_com_err_com_err=no
17219fi
35996d22
AS
17220rm -f conftest.err conftest.$ac_objext \
17221 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
17222LIBS=$ac_check_lib_save_LIBS
17223fi
c0d27fcc 17224echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
503d2be0
AS
17225echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17226if test $ac_cv_lib_com_err_com_err = yes; then
c0d27fcc 17227 cat >>confdefs.h <<_ACEOF
503d2be0 17228#define HAVE_LIBCOM_ERR 1
c0d27fcc 17229_ACEOF
a21616bd
KR
17230
17231 LIBS="-lcom_err $LIBS"
17232
a21616bd
KR
17233fi
17234
c0d27fcc
MR
17235
17236echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
503d2be0
AS
17237echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17238if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17239 echo $ECHO_N "(cached) $ECHO_C" >&6
a21616bd 17240else
503d2be0 17241 ac_check_lib_save_LIBS=$LIBS
a21616bd 17242LIBS="-lk5crypto $LIBS"
503d2be0 17243cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17244/* confdefs.h. */
17245_ACEOF
17246cat confdefs.h >>conftest.$ac_ext
17247cat >>conftest.$ac_ext <<_ACEOF
17248/* end confdefs.h. */
503d2be0 17249
a21616bd 17250/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
17251#ifdef __cplusplus
17252extern "C"
17253#endif
a21616bd 17254/* We use char because int might match the return type of a gcc2
503d2be0
AS
17255 builtin and then its argument prototype would still apply. */
17256char mit_des_cbc_encrypt ();
17257int
17258main ()
17259{
17260mit_des_cbc_encrypt ();
17261 ;
17262 return 0;
17263}
17264_ACEOF
17265rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17267 (eval $ac_link) 2>conftest.er1
503d2be0 17268 ac_status=$?
35996d22
AS
17269 grep -v '^ *+' conftest.er1 >conftest.err
17270 rm -f conftest.er1
17271 cat conftest.err >&5
c0d27fcc 17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 17273 (exit $ac_status); } &&
35996d22
AS
17274 { ac_try='test -z "$ac_c_werror_flag"
17275 || test ! -s conftest.err'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; } &&
17281 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
17283 (eval $ac_try) 2>&5
17284 ac_status=$?
c0d27fcc 17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17286 (exit $ac_status); }; }; then
17287 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17288else
17289 echo "$as_me: failed program was:" >&5
19650fd6
AS
17290sed 's/^/| /' conftest.$ac_ext >&5
17291
503d2be0
AS
17292ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17293fi
35996d22
AS
17294rm -f conftest.err conftest.$ac_objext \
17295 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
17296LIBS=$ac_check_lib_save_LIBS
17297fi
c0d27fcc 17298echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
503d2be0
AS
17299echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17300if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
c0d27fcc 17301 cat >>confdefs.h <<_ACEOF
503d2be0 17302#define HAVE_LIBK5CRYPTO 1
c0d27fcc 17303_ACEOF
a21616bd
KR
17304
17305 LIBS="-lk5crypto $LIBS"
17306
a21616bd
KR
17307fi
17308
c0d27fcc
MR
17309
17310echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
503d2be0
AS
17311echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17312if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
a21616bd 17314else
503d2be0 17315 ac_check_lib_save_LIBS=$LIBS
a21616bd 17316LIBS="-lcrypto $LIBS"
503d2be0 17317cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17318/* confdefs.h. */
17319_ACEOF
17320cat confdefs.h >>conftest.$ac_ext
17321cat >>conftest.$ac_ext <<_ACEOF
17322/* end confdefs.h. */
503d2be0 17323
a21616bd 17324/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
17325#ifdef __cplusplus
17326extern "C"
17327#endif
a21616bd 17328/* We use char because int might match the return type of a gcc2
503d2be0
AS
17329 builtin and then its argument prototype would still apply. */
17330char mit_des_cbc_encrypt ();
17331int
17332main ()
17333{
17334mit_des_cbc_encrypt ();
17335 ;
17336 return 0;
17337}
17338_ACEOF
17339rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17341 (eval $ac_link) 2>conftest.er1
503d2be0 17342 ac_status=$?
35996d22
AS
17343 grep -v '^ *+' conftest.er1 >conftest.err
17344 rm -f conftest.er1
17345 cat conftest.err >&5
c0d27fcc 17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 17347 (exit $ac_status); } &&
35996d22
AS
17348 { ac_try='test -z "$ac_c_werror_flag"
17349 || test ! -s conftest.err'
17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351 (eval $ac_try) 2>&5
17352 ac_status=$?
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; } &&
17355 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
17357 (eval $ac_try) 2>&5
17358 ac_status=$?
c0d27fcc 17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17360 (exit $ac_status); }; }; then
17361 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17362else
17363 echo "$as_me: failed program was:" >&5
19650fd6
AS
17364sed 's/^/| /' conftest.$ac_ext >&5
17365
503d2be0
AS
17366ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17367fi
35996d22
AS
17368rm -f conftest.err conftest.$ac_objext \
17369 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
17370LIBS=$ac_check_lib_save_LIBS
17371fi
c0d27fcc 17372echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
503d2be0
AS
17373echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17374if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
c0d27fcc 17375 cat >>confdefs.h <<_ACEOF
503d2be0 17376#define HAVE_LIBCRYPTO 1
c0d27fcc 17377_ACEOF
a21616bd
KR
17378
17379 LIBS="-lcrypto $LIBS"
17380
a21616bd
KR
17381fi
17382
c0d27fcc
MR
17383
17384echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
503d2be0
AS
17385echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17386if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17387 echo $ECHO_N "(cached) $ECHO_C" >&6
a21616bd 17388else
503d2be0 17389 ac_check_lib_save_LIBS=$LIBS
a21616bd 17390LIBS="-lkrb5 $LIBS"
503d2be0 17391cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17392/* confdefs.h. */
17393_ACEOF
17394cat confdefs.h >>conftest.$ac_ext
17395cat >>conftest.$ac_ext <<_ACEOF
17396/* end confdefs.h. */
a21616bd 17397
503d2be0
AS
17398/* Override any gcc2 internal prototype to avoid an error. */
17399#ifdef __cplusplus
17400extern "C"
17401#endif
17402/* We use char because int might match the return type of a gcc2
17403 builtin and then its argument prototype would still apply. */
17404char krb5_init_context ();
17405int
17406main ()
17407{
17408krb5_init_context ();
17409 ;
17410 return 0;
17411}
17412_ACEOF
17413rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17415 (eval $ac_link) 2>conftest.er1
503d2be0 17416 ac_status=$?
35996d22
AS
17417 grep -v '^ *+' conftest.er1 >conftest.err
17418 rm -f conftest.er1
17419 cat conftest.err >&5
c0d27fcc 17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 17421 (exit $ac_status); } &&
35996d22
AS
17422 { ac_try='test -z "$ac_c_werror_flag"
17423 || test ! -s conftest.err'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; } &&
17429 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
17431 (eval $ac_try) 2>&5
17432 ac_status=$?
c0d27fcc 17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17434 (exit $ac_status); }; }; then
17435 ac_cv_lib_krb5_krb5_init_context=yes
17436else
17437 echo "$as_me: failed program was:" >&5
19650fd6
AS
17438sed 's/^/| /' conftest.$ac_ext >&5
17439
503d2be0
AS
17440ac_cv_lib_krb5_krb5_init_context=no
17441fi
35996d22
AS
17442rm -f conftest.err conftest.$ac_objext \
17443 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
17444LIBS=$ac_check_lib_save_LIBS
17445fi
c0d27fcc 17446echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
503d2be0
AS
17447echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17448if test $ac_cv_lib_krb5_krb5_init_context = yes; then
c0d27fcc 17449 cat >>confdefs.h <<_ACEOF
503d2be0 17450#define HAVE_LIBKRB5 1
c0d27fcc 17451_ACEOF
a21616bd
KR
17452
17453 LIBS="-lkrb5 $LIBS"
17454
a21616bd
KR
17455fi
17456
17457 if test "${with_kerberos5+set}" != set; then
503d2be0 17458
c0d27fcc 17459echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
503d2be0
AS
17460echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17461if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
a21616bd 17463else
503d2be0 17464 ac_check_lib_save_LIBS=$LIBS
a21616bd 17465LIBS="-ldes425 $LIBS"
503d2be0 17466cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17467/* confdefs.h. */
17468_ACEOF
17469cat confdefs.h >>conftest.$ac_ext
17470cat >>conftest.$ac_ext <<_ACEOF
17471/* end confdefs.h. */
503d2be0 17472
a21616bd 17473/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
17474#ifdef __cplusplus
17475extern "C"
17476#endif
a21616bd 17477/* We use char because int might match the return type of a gcc2
503d2be0
AS
17478 builtin and then its argument prototype would still apply. */
17479char des_cbc_encrypt ();
17480int
17481main ()
17482{
17483des_cbc_encrypt ();
17484 ;
17485 return 0;
17486}
17487_ACEOF
17488rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17490 (eval $ac_link) 2>conftest.er1
503d2be0 17491 ac_status=$?
35996d22
AS
17492 grep -v '^ *+' conftest.er1 >conftest.err
17493 rm -f conftest.er1
17494 cat conftest.err >&5
c0d27fcc 17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 17496 (exit $ac_status); } &&
35996d22
AS
17497 { ac_try='test -z "$ac_c_werror_flag"
17498 || test ! -s conftest.err'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; } &&
17504 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
17506 (eval $ac_try) 2>&5
17507 ac_status=$?
c0d27fcc 17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17509 (exit $ac_status); }; }; then
17510 ac_cv_lib_des425_des_cbc_encrypt=yes
17511else
17512 echo "$as_me: failed program was:" >&5
19650fd6
AS
17513sed 's/^/| /' conftest.$ac_ext >&5
17514
503d2be0
AS
17515ac_cv_lib_des425_des_cbc_encrypt=no
17516fi
35996d22
AS
17517rm -f conftest.err conftest.$ac_objext \
17518 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
17519LIBS=$ac_check_lib_save_LIBS
17520fi
c0d27fcc 17521echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
503d2be0
AS
17522echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17523if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
c0d27fcc 17524 cat >>confdefs.h <<_ACEOF
503d2be0 17525#define HAVE_LIBDES425 1
c0d27fcc 17526_ACEOF
a21616bd
KR
17527
17528 LIBS="-ldes425 $LIBS"
17529
17530else
503d2be0 17531
c0d27fcc 17532echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
503d2be0
AS
17533echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17534if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17535 echo $ECHO_N "(cached) $ECHO_C" >&6
a21616bd 17536else
503d2be0 17537 ac_check_lib_save_LIBS=$LIBS
a21616bd 17538LIBS="-ldes $LIBS"
503d2be0 17539cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17540/* confdefs.h. */
17541_ACEOF
17542cat confdefs.h >>conftest.$ac_ext
17543cat >>conftest.$ac_ext <<_ACEOF
17544/* end confdefs.h. */
503d2be0 17545
a21616bd 17546/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
17547#ifdef __cplusplus
17548extern "C"
17549#endif
a21616bd 17550/* We use char because int might match the return type of a gcc2
503d2be0
AS
17551 builtin and then its argument prototype would still apply. */
17552char des_cbc_encrypt ();
17553int
17554main ()
17555{
17556des_cbc_encrypt ();
17557 ;
17558 return 0;
17559}
17560_ACEOF
17561rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17563 (eval $ac_link) 2>conftest.er1
503d2be0 17564 ac_status=$?
35996d22
AS
17565 grep -v '^ *+' conftest.er1 >conftest.err
17566 rm -f conftest.er1
17567 cat conftest.err >&5
c0d27fcc 17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 17569 (exit $ac_status); } &&
35996d22
AS
17570 { ac_try='test -z "$ac_c_werror_flag"
17571 || test ! -s conftest.err'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; } &&
17577 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
17579 (eval $ac_try) 2>&5
17580 ac_status=$?
c0d27fcc 17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17582 (exit $ac_status); }; }; then
17583 ac_cv_lib_des_des_cbc_encrypt=yes
17584else
17585 echo "$as_me: failed program was:" >&5
19650fd6
AS
17586sed 's/^/| /' conftest.$ac_ext >&5
17587
503d2be0
AS
17588ac_cv_lib_des_des_cbc_encrypt=no
17589fi
35996d22
AS
17590rm -f conftest.err conftest.$ac_objext \
17591 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
17592LIBS=$ac_check_lib_save_LIBS
17593fi
c0d27fcc 17594echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
503d2be0
AS
17595echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17596if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
c0d27fcc 17597 cat >>confdefs.h <<_ACEOF
503d2be0 17598#define HAVE_LIBDES 1
c0d27fcc 17599_ACEOF
a21616bd
KR
17600
17601 LIBS="-ldes $LIBS"
17602
a21616bd
KR
17603fi
17604
17605fi
17606
c0d27fcc
MR
17607
17608echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
503d2be0
AS
17609echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17610if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
a21616bd 17612else
503d2be0 17613 ac_check_lib_save_LIBS=$LIBS
a21616bd 17614LIBS="-lkrb4 $LIBS"
503d2be0 17615cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17616/* confdefs.h. */
17617_ACEOF
17618cat confdefs.h >>conftest.$ac_ext
17619cat >>conftest.$ac_ext <<_ACEOF
17620/* end confdefs.h. */
503d2be0 17621
a21616bd 17622/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
17623#ifdef __cplusplus
17624extern "C"
17625#endif
a21616bd 17626/* We use char because int might match the return type of a gcc2
503d2be0
AS
17627 builtin and then its argument prototype would still apply. */
17628char krb_get_cred ();
17629int
17630main ()
17631{
17632krb_get_cred ();
17633 ;
17634 return 0;
17635}
17636_ACEOF
17637rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17639 (eval $ac_link) 2>conftest.er1
503d2be0 17640 ac_status=$?
35996d22
AS
17641 grep -v '^ *+' conftest.er1 >conftest.err
17642 rm -f conftest.er1
17643 cat conftest.err >&5
c0d27fcc 17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 17645 (exit $ac_status); } &&
35996d22
AS
17646 { ac_try='test -z "$ac_c_werror_flag"
17647 || test ! -s conftest.err'
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; } &&
17653 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
c0d27fcc 17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17658 (exit $ac_status); }; }; then
17659 ac_cv_lib_krb4_krb_get_cred=yes
17660else
17661 echo "$as_me: failed program was:" >&5
19650fd6
AS
17662sed 's/^/| /' conftest.$ac_ext >&5
17663
503d2be0
AS
17664ac_cv_lib_krb4_krb_get_cred=no
17665fi
35996d22
AS
17666rm -f conftest.err conftest.$ac_objext \
17667 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
17668LIBS=$ac_check_lib_save_LIBS
17669fi
c0d27fcc 17670echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
503d2be0
AS
17671echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17672if test $ac_cv_lib_krb4_krb_get_cred = yes; then
c0d27fcc 17673 cat >>confdefs.h <<_ACEOF
503d2be0 17674#define HAVE_LIBKRB4 1
c0d27fcc 17675_ACEOF
a21616bd
KR
17676
17677 LIBS="-lkrb4 $LIBS"
17678
17679else
503d2be0 17680
c0d27fcc 17681echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
503d2be0
AS
17682echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17683if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
a21616bd 17685else
503d2be0 17686 ac_check_lib_save_LIBS=$LIBS
a21616bd 17687LIBS="-lkrb $LIBS"
503d2be0 17688cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17689/* confdefs.h. */
17690_ACEOF
17691cat confdefs.h >>conftest.$ac_ext
17692cat >>conftest.$ac_ext <<_ACEOF
17693/* end confdefs.h. */
503d2be0 17694
a21616bd 17695/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
17696#ifdef __cplusplus
17697extern "C"
17698#endif
a21616bd 17699/* We use char because int might match the return type of a gcc2
503d2be0
AS
17700 builtin and then its argument prototype would still apply. */
17701char krb_get_cred ();
17702int
17703main ()
17704{
17705krb_get_cred ();
17706 ;
17707 return 0;
17708}
17709_ACEOF
17710rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 17711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 17712 (eval $ac_link) 2>conftest.er1
503d2be0 17713 ac_status=$?
35996d22
AS
17714 grep -v '^ *+' conftest.er1 >conftest.err
17715 rm -f conftest.er1
17716 cat conftest.err >&5
c0d27fcc 17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 17718 (exit $ac_status); } &&
35996d22
AS
17719 { ac_try='test -z "$ac_c_werror_flag"
17720 || test ! -s conftest.err'
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; } &&
17726 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
17728 (eval $ac_try) 2>&5
17729 ac_status=$?
c0d27fcc 17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17731 (exit $ac_status); }; }; then
17732 ac_cv_lib_krb_krb_get_cred=yes
17733else
17734 echo "$as_me: failed program was:" >&5
19650fd6
AS
17735sed 's/^/| /' conftest.$ac_ext >&5
17736
503d2be0
AS
17737ac_cv_lib_krb_krb_get_cred=no
17738fi
35996d22
AS
17739rm -f conftest.err conftest.$ac_objext \
17740 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
17741LIBS=$ac_check_lib_save_LIBS
17742fi
c0d27fcc 17743echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
503d2be0
AS
17744echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17745if test $ac_cv_lib_krb_krb_get_cred = yes; then
c0d27fcc 17746 cat >>confdefs.h <<_ACEOF
503d2be0 17747#define HAVE_LIBKRB 1
c0d27fcc 17748_ACEOF
a21616bd
KR
17749
17750 LIBS="-lkrb $LIBS"
17751
a21616bd
KR
17752fi
17753
17754fi
17755
17756 fi
17757
17758 if test "${with_kerberos5+set}" = set; then
503d2be0
AS
17759
17760for ac_header in krb5.h
a21616bd 17761do
503d2be0 17762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
17763if eval "test \"\${$as_ac_Header+set}\" = set"; then
17764 echo "$as_me:$LINENO: checking for $ac_header" >&5
503d2be0
AS
17765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17766if eval "test \"\${$as_ac_Header+set}\" = set"; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
17768fi
17769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 17771else
c0d27fcc
MR
17772 # Is the header compilable?
17773echo "$as_me:$LINENO: checking $ac_header usability" >&5
17774echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17775cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17776/* confdefs.h. */
17777_ACEOF
17778cat confdefs.h >>conftest.$ac_ext
17779cat >>conftest.$ac_ext <<_ACEOF
17780/* end confdefs.h. */
c0d27fcc
MR
17781$ac_includes_default
17782#include <$ac_header>
17783_ACEOF
17784rm -f conftest.$ac_objext
17785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 17786 (eval $ac_compile) 2>conftest.er1
c0d27fcc 17787 ac_status=$?
35996d22
AS
17788 grep -v '^ *+' conftest.er1 >conftest.err
17789 rm -f conftest.er1
17790 cat conftest.err >&5
c0d27fcc
MR
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
35996d22
AS
17793 { ac_try='test -z "$ac_c_werror_flag"
17794 || test ! -s conftest.err'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 ac_header_compiler=yes
17807else
17808 echo "$as_me: failed program was:" >&5
19650fd6
AS
17809sed 's/^/| /' conftest.$ac_ext >&5
17810
c0d27fcc
MR
17811ac_header_compiler=no
17812fi
35996d22 17813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
17814echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17815echo "${ECHO_T}$ac_header_compiler" >&6
17816
17817# Is the header present?
17818echo "$as_me:$LINENO: checking $ac_header presence" >&5
17819echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17820cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17821/* confdefs.h. */
17822_ACEOF
17823cat confdefs.h >>conftest.$ac_ext
17824cat >>conftest.$ac_ext <<_ACEOF
17825/* end confdefs.h. */
503d2be0
AS
17826#include <$ac_header>
17827_ACEOF
c0d27fcc 17828if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
17829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17830 ac_status=$?
6bae0ccf 17831 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
17832 rm -f conftest.er1
17833 cat conftest.err >&5
c0d27fcc 17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17835 (exit $ac_status); } >/dev/null; then
17836 if test -s conftest.err; then
17837 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 17838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
17839 else
17840 ac_cpp_err=
17841 fi
17842else
17843 ac_cpp_err=yes
17844fi
17845if test -z "$ac_cpp_err"; then
c0d27fcc 17846 ac_header_preproc=yes
503d2be0
AS
17847else
17848 echo "$as_me: failed program was:" >&5
19650fd6
AS
17849sed 's/^/| /' conftest.$ac_ext >&5
17850
c0d27fcc 17851 ac_header_preproc=no
a21616bd 17852fi
503d2be0 17853rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
17854echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17855echo "${ECHO_T}$ac_header_preproc" >&6
17856
17857# So? What about this header?
35996d22
AS
17858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17859 yes:no: )
c0d27fcc
MR
17860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17861echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
17862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17863echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17864 ac_header_preproc=yes
19650fd6 17865 ;;
35996d22 17866 no:yes:* )
c0d27fcc
MR
17867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17868echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
17869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17870echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17872echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17874echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 17875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 17876echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
17877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17878echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
17879 (
17880 cat <<\_ASBOX
35996d22
AS
17881## ------------------------------------------ ##
17882## Report this to the AC_PACKAGE_NAME lists. ##
17883## ------------------------------------------ ##
19650fd6
AS
17884_ASBOX
17885 ) |
17886 sed "s/^/$as_me: WARNING: /" >&2
17887 ;;
c0d27fcc
MR
17888esac
17889echo "$as_me:$LINENO: checking for $ac_header" >&5
17890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17891if eval "test \"\${$as_ac_Header+set}\" = set"; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17893else
35996d22 17894 eval "$as_ac_Header=\$ac_header_preproc"
a21616bd 17895fi
c0d27fcc 17896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 17897echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
17898
17899fi
503d2be0 17900if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 17901 cat >>confdefs.h <<_ACEOF
503d2be0 17902#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 17903_ACEOF
503d2be0 17904
a21616bd 17905fi
c0d27fcc 17906
a21616bd
KR
17907done
17908
17909 else
503d2be0
AS
17910
17911for ac_header in des.h
a21616bd 17912do
503d2be0 17913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
17914if eval "test \"\${$as_ac_Header+set}\" = set"; then
17915 echo "$as_me:$LINENO: checking for $ac_header" >&5
503d2be0
AS
17916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17917if eval "test \"\${$as_ac_Header+set}\" = set"; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
17919fi
17920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17921echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 17922else
c0d27fcc
MR
17923 # Is the header compilable?
17924echo "$as_me:$LINENO: checking $ac_header usability" >&5
17925echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17926cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17927/* confdefs.h. */
17928_ACEOF
17929cat confdefs.h >>conftest.$ac_ext
17930cat >>conftest.$ac_ext <<_ACEOF
17931/* end confdefs.h. */
c0d27fcc
MR
17932$ac_includes_default
17933#include <$ac_header>
17934_ACEOF
17935rm -f conftest.$ac_objext
17936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 17937 (eval $ac_compile) 2>conftest.er1
c0d27fcc 17938 ac_status=$?
35996d22
AS
17939 grep -v '^ *+' conftest.er1 >conftest.err
17940 rm -f conftest.er1
17941 cat conftest.err >&5
c0d27fcc
MR
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } &&
35996d22
AS
17944 { ac_try='test -z "$ac_c_werror_flag"
17945 || test ! -s conftest.err'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 ac_header_compiler=yes
17958else
17959 echo "$as_me: failed program was:" >&5
19650fd6
AS
17960sed 's/^/| /' conftest.$ac_ext >&5
17961
c0d27fcc
MR
17962ac_header_compiler=no
17963fi
35996d22 17964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
17965echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17966echo "${ECHO_T}$ac_header_compiler" >&6
17967
17968# Is the header present?
17969echo "$as_me:$LINENO: checking $ac_header presence" >&5
17970echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17971cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
17972/* confdefs.h. */
17973_ACEOF
17974cat confdefs.h >>conftest.$ac_ext
17975cat >>conftest.$ac_ext <<_ACEOF
17976/* end confdefs.h. */
503d2be0
AS
17977#include <$ac_header>
17978_ACEOF
c0d27fcc 17979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
17980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17981 ac_status=$?
6bae0ccf 17982 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
17983 rm -f conftest.er1
17984 cat conftest.err >&5
c0d27fcc 17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
17986 (exit $ac_status); } >/dev/null; then
17987 if test -s conftest.err; then
17988 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 17989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
17990 else
17991 ac_cpp_err=
17992 fi
17993else
17994 ac_cpp_err=yes
17995fi
17996if test -z "$ac_cpp_err"; then
c0d27fcc 17997 ac_header_preproc=yes
503d2be0
AS
17998else
17999 echo "$as_me: failed program was:" >&5
19650fd6
AS
18000sed 's/^/| /' conftest.$ac_ext >&5
18001
c0d27fcc 18002 ac_header_preproc=no
a21616bd 18003fi
503d2be0 18004rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
18005echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18006echo "${ECHO_T}$ac_header_preproc" >&6
18007
18008# So? What about this header?
35996d22
AS
18009case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18010 yes:no: )
c0d27fcc
MR
18011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18012echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
18013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18014echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18015 ac_header_preproc=yes
19650fd6 18016 ;;
35996d22 18017 no:yes:* )
c0d27fcc
MR
18018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18019echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
18020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18021echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18023echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18025echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 18026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 18027echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
18028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18029echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
18030 (
18031 cat <<\_ASBOX
35996d22
AS
18032## ------------------------------------------ ##
18033## Report this to the AC_PACKAGE_NAME lists. ##
18034## ------------------------------------------ ##
19650fd6
AS
18035_ASBOX
18036 ) |
18037 sed "s/^/$as_me: WARNING: /" >&2
18038 ;;
c0d27fcc
MR
18039esac
18040echo "$as_me:$LINENO: checking for $ac_header" >&5
18041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18042if eval "test \"\${$as_ac_Header+set}\" = set"; then
18043 echo $ECHO_N "(cached) $ECHO_C" >&6
18044else
35996d22 18045 eval "$as_ac_Header=\$ac_header_preproc"
a21616bd 18046fi
c0d27fcc 18047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 18048echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
18049
18050fi
503d2be0 18051if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 18052 cat >>confdefs.h <<_ACEOF
503d2be0 18053#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 18054_ACEOF
503d2be0 18055
a21616bd 18056else
503d2be0
AS
18057
18058for ac_header in kerberosIV/des.h
a21616bd 18059do
503d2be0 18060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
18061if eval "test \"\${$as_ac_Header+set}\" = set"; then
18062 echo "$as_me:$LINENO: checking for $ac_header" >&5
503d2be0
AS
18063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18064if eval "test \"\${$as_ac_Header+set}\" = set"; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
18066fi
18067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18068echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 18069else
c0d27fcc
MR
18070 # Is the header compilable?
18071echo "$as_me:$LINENO: checking $ac_header usability" >&5
18072echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18073cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18074/* confdefs.h. */
18075_ACEOF
18076cat confdefs.h >>conftest.$ac_ext
18077cat >>conftest.$ac_ext <<_ACEOF
18078/* end confdefs.h. */
c0d27fcc
MR
18079$ac_includes_default
18080#include <$ac_header>
18081_ACEOF
18082rm -f conftest.$ac_objext
18083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 18084 (eval $ac_compile) 2>conftest.er1
c0d27fcc 18085 ac_status=$?
35996d22
AS
18086 grep -v '^ *+' conftest.er1 >conftest.err
18087 rm -f conftest.er1
18088 cat conftest.err >&5
c0d27fcc
MR
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
35996d22
AS
18091 { ac_try='test -z "$ac_c_werror_flag"
18092 || test ! -s conftest.err'
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; } &&
18098 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18101 ac_status=$?
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; }; then
18104 ac_header_compiler=yes
18105else
18106 echo "$as_me: failed program was:" >&5
19650fd6
AS
18107sed 's/^/| /' conftest.$ac_ext >&5
18108
c0d27fcc
MR
18109ac_header_compiler=no
18110fi
35996d22 18111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
18112echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18113echo "${ECHO_T}$ac_header_compiler" >&6
18114
18115# Is the header present?
18116echo "$as_me:$LINENO: checking $ac_header presence" >&5
18117echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18118cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18119/* confdefs.h. */
18120_ACEOF
18121cat confdefs.h >>conftest.$ac_ext
18122cat >>conftest.$ac_ext <<_ACEOF
18123/* end confdefs.h. */
503d2be0
AS
18124#include <$ac_header>
18125_ACEOF
c0d27fcc 18126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
18127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18128 ac_status=$?
6bae0ccf 18129 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
18130 rm -f conftest.er1
18131 cat conftest.err >&5
c0d27fcc 18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
18133 (exit $ac_status); } >/dev/null; then
18134 if test -s conftest.err; then
18135 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 18136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
18137 else
18138 ac_cpp_err=
18139 fi
18140else
18141 ac_cpp_err=yes
18142fi
18143if test -z "$ac_cpp_err"; then
c0d27fcc 18144 ac_header_preproc=yes
503d2be0
AS
18145else
18146 echo "$as_me: failed program was:" >&5
19650fd6
AS
18147sed 's/^/| /' conftest.$ac_ext >&5
18148
c0d27fcc 18149 ac_header_preproc=no
a21616bd 18150fi
503d2be0 18151rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
18152echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18153echo "${ECHO_T}$ac_header_preproc" >&6
18154
18155# So? What about this header?
35996d22
AS
18156case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18157 yes:no: )
c0d27fcc
MR
18158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18159echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
18160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18161echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18162 ac_header_preproc=yes
19650fd6 18163 ;;
35996d22 18164 no:yes:* )
c0d27fcc
MR
18165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18166echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
18167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18168echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18170echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18172echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 18173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 18174echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
18175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18176echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
18177 (
18178 cat <<\_ASBOX
35996d22
AS
18179## ------------------------------------------ ##
18180## Report this to the AC_PACKAGE_NAME lists. ##
18181## ------------------------------------------ ##
19650fd6
AS
18182_ASBOX
18183 ) |
18184 sed "s/^/$as_me: WARNING: /" >&2
18185 ;;
c0d27fcc
MR
18186esac
18187echo "$as_me:$LINENO: checking for $ac_header" >&5
18188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18189if eval "test \"\${$as_ac_Header+set}\" = set"; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18191else
35996d22 18192 eval "$as_ac_Header=\$ac_header_preproc"
a21616bd 18193fi
c0d27fcc 18194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 18195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
18196
18197fi
503d2be0 18198if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 18199 cat >>confdefs.h <<_ACEOF
503d2be0 18200#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 18201_ACEOF
503d2be0 18202
a21616bd 18203else
503d2be0
AS
18204
18205for ac_header in kerberos/des.h
a21616bd 18206do
503d2be0 18207as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
18208if eval "test \"\${$as_ac_Header+set}\" = set"; then
18209 echo "$as_me:$LINENO: checking for $ac_header" >&5
503d2be0
AS
18210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18211if eval "test \"\${$as_ac_Header+set}\" = set"; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
18213fi
18214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 18216else
c0d27fcc
MR
18217 # Is the header compilable?
18218echo "$as_me:$LINENO: checking $ac_header usability" >&5
18219echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18220cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18221/* confdefs.h. */
18222_ACEOF
18223cat confdefs.h >>conftest.$ac_ext
18224cat >>conftest.$ac_ext <<_ACEOF
18225/* end confdefs.h. */
c0d27fcc
MR
18226$ac_includes_default
18227#include <$ac_header>
18228_ACEOF
18229rm -f conftest.$ac_objext
18230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 18231 (eval $ac_compile) 2>conftest.er1
c0d27fcc 18232 ac_status=$?
35996d22
AS
18233 grep -v '^ *+' conftest.er1 >conftest.err
18234 rm -f conftest.er1
18235 cat conftest.err >&5
c0d27fcc
MR
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); } &&
35996d22
AS
18238 { ac_try='test -z "$ac_c_werror_flag"
18239 || test ! -s conftest.err'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18242 ac_status=$?
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; } &&
18245 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18248 ac_status=$?
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; }; then
18251 ac_header_compiler=yes
18252else
18253 echo "$as_me: failed program was:" >&5
19650fd6
AS
18254sed 's/^/| /' conftest.$ac_ext >&5
18255
c0d27fcc
MR
18256ac_header_compiler=no
18257fi
35996d22 18258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
18259echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18260echo "${ECHO_T}$ac_header_compiler" >&6
18261
18262# Is the header present?
18263echo "$as_me:$LINENO: checking $ac_header presence" >&5
18264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18265cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18266/* confdefs.h. */
18267_ACEOF
18268cat confdefs.h >>conftest.$ac_ext
18269cat >>conftest.$ac_ext <<_ACEOF
18270/* end confdefs.h. */
503d2be0
AS
18271#include <$ac_header>
18272_ACEOF
c0d27fcc 18273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
18274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18275 ac_status=$?
6bae0ccf 18276 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
18277 rm -f conftest.er1
18278 cat conftest.err >&5
c0d27fcc 18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
18280 (exit $ac_status); } >/dev/null; then
18281 if test -s conftest.err; then
18282 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 18283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
18284 else
18285 ac_cpp_err=
18286 fi
18287else
18288 ac_cpp_err=yes
18289fi
18290if test -z "$ac_cpp_err"; then
c0d27fcc 18291 ac_header_preproc=yes
503d2be0
AS
18292else
18293 echo "$as_me: failed program was:" >&5
19650fd6
AS
18294sed 's/^/| /' conftest.$ac_ext >&5
18295
c0d27fcc 18296 ac_header_preproc=no
a21616bd 18297fi
503d2be0 18298rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
18299echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18300echo "${ECHO_T}$ac_header_preproc" >&6
18301
18302# So? What about this header?
35996d22
AS
18303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18304 yes:no: )
c0d27fcc
MR
18305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18306echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
18307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18308echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18309 ac_header_preproc=yes
19650fd6 18310 ;;
35996d22 18311 no:yes:* )
c0d27fcc
MR
18312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18313echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
18314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18315echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18317echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18319echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 18320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 18321echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
18322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18323echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
18324 (
18325 cat <<\_ASBOX
35996d22
AS
18326## ------------------------------------------ ##
18327## Report this to the AC_PACKAGE_NAME lists. ##
18328## ------------------------------------------ ##
19650fd6
AS
18329_ASBOX
18330 ) |
18331 sed "s/^/$as_me: WARNING: /" >&2
18332 ;;
c0d27fcc
MR
18333esac
18334echo "$as_me:$LINENO: checking for $ac_header" >&5
18335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18336if eval "test \"\${$as_ac_Header+set}\" = set"; then
18337 echo $ECHO_N "(cached) $ECHO_C" >&6
18338else
35996d22 18339 eval "$as_ac_Header=\$ac_header_preproc"
a21616bd 18340fi
c0d27fcc 18341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 18342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
18343
18344fi
503d2be0 18345if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 18346 cat >>confdefs.h <<_ACEOF
503d2be0 18347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 18348_ACEOF
a21616bd
KR
18349
18350fi
c0d27fcc 18351
a21616bd
KR
18352done
18353
98418dba 18354fi
c0d27fcc 18355
925c2f3f
EZ
18356done
18357
98418dba 18358fi
c0d27fcc 18359
925c2f3f 18360done
98418dba 18361
c0d27fcc 18362
925c2f3f
EZ
18363for ac_header in krb.h
18364do
18365as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
18366if eval "test \"\${$as_ac_Header+set}\" = set"; then
18367 echo "$as_me:$LINENO: checking for $ac_header" >&5
925c2f3f
EZ
18368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18369if eval "test \"\${$as_ac_Header+set}\" = set"; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
18371fi
18372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18374else
18375 # Is the header compilable?
18376echo "$as_me:$LINENO: checking $ac_header usability" >&5
18377echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18378cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18379/* confdefs.h. */
18380_ACEOF
18381cat confdefs.h >>conftest.$ac_ext
18382cat >>conftest.$ac_ext <<_ACEOF
18383/* end confdefs.h. */
c0d27fcc
MR
18384$ac_includes_default
18385#include <$ac_header>
18386_ACEOF
18387rm -f conftest.$ac_objext
18388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 18389 (eval $ac_compile) 2>conftest.er1
c0d27fcc 18390 ac_status=$?
35996d22
AS
18391 grep -v '^ *+' conftest.er1 >conftest.err
18392 rm -f conftest.er1
18393 cat conftest.err >&5
c0d27fcc
MR
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
35996d22
AS
18396 { ac_try='test -z "$ac_c_werror_flag"
18397 || test ! -s conftest.err'
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18400 ac_status=$?
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; } &&
18403 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18406 ac_status=$?
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; }; then
18409 ac_header_compiler=yes
925c2f3f 18410else
c0d27fcc 18411 echo "$as_me: failed program was:" >&5
19650fd6
AS
18412sed 's/^/| /' conftest.$ac_ext >&5
18413
c0d27fcc
MR
18414ac_header_compiler=no
18415fi
35996d22 18416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
18417echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18418echo "${ECHO_T}$ac_header_compiler" >&6
18419
18420# Is the header present?
18421echo "$as_me:$LINENO: checking $ac_header presence" >&5
18422echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18423cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18424/* confdefs.h. */
18425_ACEOF
18426cat confdefs.h >>conftest.$ac_ext
18427cat >>conftest.$ac_ext <<_ACEOF
18428/* end confdefs.h. */
503d2be0
AS
18429#include <$ac_header>
18430_ACEOF
c0d27fcc 18431if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
18432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18433 ac_status=$?
6bae0ccf 18434 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
18435 rm -f conftest.er1
18436 cat conftest.err >&5
c0d27fcc 18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
18438 (exit $ac_status); } >/dev/null; then
18439 if test -s conftest.err; then
18440 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 18441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
18442 else
18443 ac_cpp_err=
18444 fi
18445else
18446 ac_cpp_err=yes
18447fi
18448if test -z "$ac_cpp_err"; then
c0d27fcc 18449 ac_header_preproc=yes
503d2be0
AS
18450else
18451 echo "$as_me: failed program was:" >&5
19650fd6
AS
18452sed 's/^/| /' conftest.$ac_ext >&5
18453
c0d27fcc 18454 ac_header_preproc=no
a21616bd 18455fi
503d2be0 18456rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
18457echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18458echo "${ECHO_T}$ac_header_preproc" >&6
18459
18460# So? What about this header?
35996d22
AS
18461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18462 yes:no: )
c0d27fcc
MR
18463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18464echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
18465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18466echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18467 ac_header_preproc=yes
19650fd6 18468 ;;
35996d22 18469 no:yes:* )
c0d27fcc
MR
18470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18471echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
18472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18473echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18475echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18477echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 18478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 18479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
18480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18481echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
18482 (
18483 cat <<\_ASBOX
35996d22
AS
18484## ------------------------------------------ ##
18485## Report this to the AC_PACKAGE_NAME lists. ##
18486## ------------------------------------------ ##
19650fd6
AS
18487_ASBOX
18488 ) |
18489 sed "s/^/$as_me: WARNING: /" >&2
18490 ;;
c0d27fcc
MR
18491esac
18492echo "$as_me:$LINENO: checking for $ac_header" >&5
18493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18494if eval "test \"\${$as_ac_Header+set}\" = set"; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18496else
35996d22 18497 eval "$as_ac_Header=\$ac_header_preproc"
a21616bd 18498fi
c0d27fcc 18499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 18500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
18501
18502fi
503d2be0 18503if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 18504 cat >>confdefs.h <<_ACEOF
503d2be0 18505#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 18506_ACEOF
503d2be0 18507
a21616bd 18508else
503d2be0
AS
18509
18510for ac_header in kerberosIV/krb.h
a21616bd 18511do
503d2be0 18512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
18513if eval "test \"\${$as_ac_Header+set}\" = set"; then
18514 echo "$as_me:$LINENO: checking for $ac_header" >&5
503d2be0
AS
18515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18516if eval "test \"\${$as_ac_Header+set}\" = set"; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
18518fi
18519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18520echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 18521else
c0d27fcc
MR
18522 # Is the header compilable?
18523echo "$as_me:$LINENO: checking $ac_header usability" >&5
18524echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18525cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18526/* confdefs.h. */
18527_ACEOF
18528cat confdefs.h >>conftest.$ac_ext
18529cat >>conftest.$ac_ext <<_ACEOF
18530/* end confdefs.h. */
c0d27fcc
MR
18531$ac_includes_default
18532#include <$ac_header>
18533_ACEOF
18534rm -f conftest.$ac_objext
18535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 18536 (eval $ac_compile) 2>conftest.er1
c0d27fcc 18537 ac_status=$?
35996d22
AS
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
c0d27fcc
MR
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
35996d22
AS
18543 { ac_try='test -z "$ac_c_werror_flag"
18544 || test ! -s conftest.err'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18547 ac_status=$?
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; } &&
18550 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18556 ac_header_compiler=yes
18557else
18558 echo "$as_me: failed program was:" >&5
19650fd6
AS
18559sed 's/^/| /' conftest.$ac_ext >&5
18560
c0d27fcc
MR
18561ac_header_compiler=no
18562fi
35996d22 18563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
18564echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18565echo "${ECHO_T}$ac_header_compiler" >&6
18566
18567# Is the header present?
18568echo "$as_me:$LINENO: checking $ac_header presence" >&5
18569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18570cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18571/* confdefs.h. */
18572_ACEOF
18573cat confdefs.h >>conftest.$ac_ext
18574cat >>conftest.$ac_ext <<_ACEOF
18575/* end confdefs.h. */
503d2be0
AS
18576#include <$ac_header>
18577_ACEOF
c0d27fcc 18578if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
18579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18580 ac_status=$?
6bae0ccf 18581 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
18582 rm -f conftest.er1
18583 cat conftest.err >&5
c0d27fcc 18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
18585 (exit $ac_status); } >/dev/null; then
18586 if test -s conftest.err; then
18587 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 18588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
18589 else
18590 ac_cpp_err=
18591 fi
18592else
18593 ac_cpp_err=yes
18594fi
18595if test -z "$ac_cpp_err"; then
c0d27fcc 18596 ac_header_preproc=yes
503d2be0
AS
18597else
18598 echo "$as_me: failed program was:" >&5
19650fd6
AS
18599sed 's/^/| /' conftest.$ac_ext >&5
18600
c0d27fcc 18601 ac_header_preproc=no
a21616bd 18602fi
503d2be0 18603rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
18604echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18605echo "${ECHO_T}$ac_header_preproc" >&6
18606
18607# So? What about this header?
35996d22
AS
18608case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18609 yes:no: )
c0d27fcc
MR
18610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18611echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
18612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18613echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18614 ac_header_preproc=yes
19650fd6 18615 ;;
35996d22 18616 no:yes:* )
c0d27fcc
MR
18617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18618echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
18619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18620echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18622echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18624echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 18625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 18626echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
18627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18628echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
18629 (
18630 cat <<\_ASBOX
35996d22
AS
18631## ------------------------------------------ ##
18632## Report this to the AC_PACKAGE_NAME lists. ##
18633## ------------------------------------------ ##
19650fd6
AS
18634_ASBOX
18635 ) |
18636 sed "s/^/$as_me: WARNING: /" >&2
18637 ;;
c0d27fcc
MR
18638esac
18639echo "$as_me:$LINENO: checking for $ac_header" >&5
18640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18641if eval "test \"\${$as_ac_Header+set}\" = set"; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18643else
35996d22 18644 eval "$as_ac_Header=\$ac_header_preproc"
a21616bd 18645fi
c0d27fcc 18646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 18647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
18648
18649fi
503d2be0 18650if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 18651 cat >>confdefs.h <<_ACEOF
503d2be0 18652#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 18653_ACEOF
503d2be0 18654
a21616bd 18655else
503d2be0
AS
18656
18657for ac_header in kerberos/krb.h
a21616bd 18658do
503d2be0 18659as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
18660if eval "test \"\${$as_ac_Header+set}\" = set"; then
18661 echo "$as_me:$LINENO: checking for $ac_header" >&5
503d2be0
AS
18662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18663if eval "test \"\${$as_ac_Header+set}\" = set"; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
18665fi
18666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 18668else
c0d27fcc
MR
18669 # Is the header compilable?
18670echo "$as_me:$LINENO: checking $ac_header usability" >&5
18671echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18672cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18673/* confdefs.h. */
18674_ACEOF
18675cat confdefs.h >>conftest.$ac_ext
18676cat >>conftest.$ac_ext <<_ACEOF
18677/* end confdefs.h. */
c0d27fcc
MR
18678$ac_includes_default
18679#include <$ac_header>
18680_ACEOF
18681rm -f conftest.$ac_objext
18682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 18683 (eval $ac_compile) 2>conftest.er1
c0d27fcc 18684 ac_status=$?
35996d22
AS
18685 grep -v '^ *+' conftest.er1 >conftest.err
18686 rm -f conftest.er1
18687 cat conftest.err >&5
c0d27fcc
MR
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
35996d22
AS
18690 { ac_try='test -z "$ac_c_werror_flag"
18691 || test ! -s conftest.err'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18694 ac_status=$?
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; } &&
18697 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18700 ac_status=$?
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; }; then
18703 ac_header_compiler=yes
18704else
18705 echo "$as_me: failed program was:" >&5
19650fd6
AS
18706sed 's/^/| /' conftest.$ac_ext >&5
18707
c0d27fcc
MR
18708ac_header_compiler=no
18709fi
35996d22 18710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
18711echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18712echo "${ECHO_T}$ac_header_compiler" >&6
18713
18714# Is the header present?
18715echo "$as_me:$LINENO: checking $ac_header presence" >&5
18716echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18717cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18718/* confdefs.h. */
18719_ACEOF
18720cat confdefs.h >>conftest.$ac_ext
18721cat >>conftest.$ac_ext <<_ACEOF
18722/* end confdefs.h. */
503d2be0
AS
18723#include <$ac_header>
18724_ACEOF
c0d27fcc 18725if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
18726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18727 ac_status=$?
6bae0ccf 18728 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
18729 rm -f conftest.er1
18730 cat conftest.err >&5
c0d27fcc 18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
18732 (exit $ac_status); } >/dev/null; then
18733 if test -s conftest.err; then
18734 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 18735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
18736 else
18737 ac_cpp_err=
18738 fi
18739else
18740 ac_cpp_err=yes
18741fi
18742if test -z "$ac_cpp_err"; then
c0d27fcc 18743 ac_header_preproc=yes
503d2be0
AS
18744else
18745 echo "$as_me: failed program was:" >&5
19650fd6
AS
18746sed 's/^/| /' conftest.$ac_ext >&5
18747
c0d27fcc 18748 ac_header_preproc=no
a21616bd 18749fi
503d2be0 18750rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
18751echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18752echo "${ECHO_T}$ac_header_preproc" >&6
35996d22
AS
18753
18754# So? What about this header?
18755case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18756 yes:no: )
18757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18758echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18760echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18761 ac_header_preproc=yes
19650fd6 18762 ;;
35996d22 18763 no:yes:* )
c0d27fcc
MR
18764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18765echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
18766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18767echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18769echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18771echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 18772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 18773echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
18774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18775echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
18776 (
18777 cat <<\_ASBOX
35996d22
AS
18778## ------------------------------------------ ##
18779## Report this to the AC_PACKAGE_NAME lists. ##
18780## ------------------------------------------ ##
19650fd6
AS
18781_ASBOX
18782 ) |
18783 sed "s/^/$as_me: WARNING: /" >&2
18784 ;;
c0d27fcc
MR
18785esac
18786echo "$as_me:$LINENO: checking for $ac_header" >&5
18787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18788if eval "test \"\${$as_ac_Header+set}\" = set"; then
18789 echo $ECHO_N "(cached) $ECHO_C" >&6
18790else
35996d22 18791 eval "$as_ac_Header=\$ac_header_preproc"
a21616bd 18792fi
c0d27fcc 18793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 18794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
18795
18796fi
503d2be0 18797if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 18798 cat >>confdefs.h <<_ACEOF
503d2be0 18799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 18800_ACEOF
503d2be0 18801
a21616bd 18802fi
c0d27fcc 18803
a21616bd
KR
18804done
18805
18806fi
c0d27fcc 18807
a21616bd
KR
18808done
18809
18810fi
c0d27fcc 18811
a21616bd
KR
18812done
18813
18814 fi
503d2be0
AS
18815
18816for ac_header in com_err.h
a21616bd 18817do
503d2be0 18818as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
18819if eval "test \"\${$as_ac_Header+set}\" = set"; then
18820 echo "$as_me:$LINENO: checking for $ac_header" >&5
503d2be0
AS
18821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18822if eval "test \"\${$as_ac_Header+set}\" = set"; then
18823 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
18824fi
18825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18826echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 18827else
c0d27fcc
MR
18828 # Is the header compilable?
18829echo "$as_me:$LINENO: checking $ac_header usability" >&5
18830echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18831cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18832/* confdefs.h. */
18833_ACEOF
18834cat confdefs.h >>conftest.$ac_ext
18835cat >>conftest.$ac_ext <<_ACEOF
18836/* end confdefs.h. */
c0d27fcc
MR
18837$ac_includes_default
18838#include <$ac_header>
18839_ACEOF
18840rm -f conftest.$ac_objext
18841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 18842 (eval $ac_compile) 2>conftest.er1
c0d27fcc 18843 ac_status=$?
35996d22
AS
18844 grep -v '^ *+' conftest.er1 >conftest.err
18845 rm -f conftest.er1
18846 cat conftest.err >&5
c0d27fcc
MR
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
35996d22
AS
18849 { ac_try='test -z "$ac_c_werror_flag"
18850 || test ! -s conftest.err'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_header_compiler=yes
18863else
18864 echo "$as_me: failed program was:" >&5
19650fd6
AS
18865sed 's/^/| /' conftest.$ac_ext >&5
18866
c0d27fcc
MR
18867ac_header_compiler=no
18868fi
35996d22 18869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
18870echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18871echo "${ECHO_T}$ac_header_compiler" >&6
18872
18873# Is the header present?
18874echo "$as_me:$LINENO: checking $ac_header presence" >&5
18875echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18876cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18877/* confdefs.h. */
18878_ACEOF
18879cat confdefs.h >>conftest.$ac_ext
18880cat >>conftest.$ac_ext <<_ACEOF
18881/* end confdefs.h. */
503d2be0
AS
18882#include <$ac_header>
18883_ACEOF
c0d27fcc 18884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
18885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18886 ac_status=$?
6bae0ccf 18887 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
18888 rm -f conftest.er1
18889 cat conftest.err >&5
c0d27fcc 18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
18891 (exit $ac_status); } >/dev/null; then
18892 if test -s conftest.err; then
18893 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 18894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
18895 else
18896 ac_cpp_err=
18897 fi
18898else
18899 ac_cpp_err=yes
18900fi
18901if test -z "$ac_cpp_err"; then
c0d27fcc 18902 ac_header_preproc=yes
503d2be0
AS
18903else
18904 echo "$as_me: failed program was:" >&5
19650fd6
AS
18905sed 's/^/| /' conftest.$ac_ext >&5
18906
c0d27fcc 18907 ac_header_preproc=no
a21616bd 18908fi
503d2be0 18909rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
18910echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18911echo "${ECHO_T}$ac_header_preproc" >&6
18912
18913# So? What about this header?
35996d22
AS
18914case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18915 yes:no: )
c0d27fcc
MR
18916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18917echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
18918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18919echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18920 ac_header_preproc=yes
19650fd6 18921 ;;
35996d22 18922 no:yes:* )
c0d27fcc
MR
18923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18924echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18926echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18928echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18930echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 18931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 18932echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
18933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18934echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
18935 (
18936 cat <<\_ASBOX
35996d22
AS
18937## ------------------------------------------ ##
18938## Report this to the AC_PACKAGE_NAME lists. ##
18939## ------------------------------------------ ##
19650fd6
AS
18940_ASBOX
18941 ) |
18942 sed "s/^/$as_me: WARNING: /" >&2
18943 ;;
c0d27fcc
MR
18944esac
18945echo "$as_me:$LINENO: checking for $ac_header" >&5
18946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18947if eval "test \"\${$as_ac_Header+set}\" = set"; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18949else
35996d22 18950 eval "$as_ac_Header=\$ac_header_preproc"
a21616bd 18951fi
c0d27fcc 18952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 18953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
18954
18955fi
503d2be0 18956if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 18957 cat >>confdefs.h <<_ACEOF
503d2be0 18958#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 18959_ACEOF
503d2be0 18960
a21616bd 18961fi
c0d27fcc 18962
a21616bd
KR
18963done
18964
18965fi
18966
ba4481b5
DL
18967# Solaris requires -lintl if you want strerror (which calls dgettext)
18968# to return localized messages.
503d2be0 18969
c0d27fcc 18970echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
503d2be0
AS
18971echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
18972if test "${ac_cv_lib_intl_dgettext+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 18974else
503d2be0 18975 ac_check_lib_save_LIBS=$LIBS
ba4481b5 18976LIBS="-lintl $LIBS"
503d2be0 18977cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
18978/* confdefs.h. */
18979_ACEOF
18980cat confdefs.h >>conftest.$ac_ext
18981cat >>conftest.$ac_ext <<_ACEOF
18982/* end confdefs.h. */
503d2be0 18983
ba4481b5 18984/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
18985#ifdef __cplusplus
18986extern "C"
18987#endif
ba4481b5 18988/* We use char because int might match the return type of a gcc2
503d2be0
AS
18989 builtin and then its argument prototype would still apply. */
18990char dgettext ();
18991int
18992main ()
18993{
18994dgettext ();
18995 ;
18996 return 0;
18997}
18998_ACEOF
18999rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 19000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 19001 (eval $ac_link) 2>conftest.er1
503d2be0 19002 ac_status=$?
35996d22
AS
19003 grep -v '^ *+' conftest.er1 >conftest.err
19004 rm -f conftest.er1
19005 cat conftest.err >&5
c0d27fcc 19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19007 (exit $ac_status); } &&
35996d22
AS
19008 { ac_try='test -z "$ac_c_werror_flag"
19009 || test ! -s conftest.err'
19010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011 (eval $ac_try) 2>&5
19012 ac_status=$?
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; } &&
19015 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 19016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
19017 (eval $ac_try) 2>&5
19018 ac_status=$?
c0d27fcc 19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
19020 (exit $ac_status); }; }; then
19021 ac_cv_lib_intl_dgettext=yes
19022else
19023 echo "$as_me: failed program was:" >&5
19650fd6
AS
19024sed 's/^/| /' conftest.$ac_ext >&5
19025
503d2be0
AS
19026ac_cv_lib_intl_dgettext=no
19027fi
35996d22
AS
19028rm -f conftest.err conftest.$ac_objext \
19029 conftest$ac_exeext conftest.$ac_ext
503d2be0
AS
19030LIBS=$ac_check_lib_save_LIBS
19031fi
c0d27fcc 19032echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
503d2be0
AS
19033echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19034if test $ac_cv_lib_intl_dgettext = yes; then
c0d27fcc 19035 cat >>confdefs.h <<_ACEOF
503d2be0 19036#define HAVE_LIBINTL 1
c0d27fcc 19037_ACEOF
ba4481b5
DL
19038
19039 LIBS="-lintl $LIBS"
19040
ba4481b5
DL
19041fi
19042
c0d27fcc
MR
19043
19044echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
503d2be0
AS
19045echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19046if test "${emacs_cv_localtime_cache+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5
DL
19048else
19049 if test x$ac_cv_func_tzset = xyes; then
19050if test "$cross_compiling" = yes; then
19051 # If we have tzset, assume the worst when cross-compiling.
19052emacs_cv_localtime_cache=yes
19053else
503d2be0 19054 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19055/* confdefs.h. */
19056_ACEOF
19057cat confdefs.h >>conftest.$ac_ext
19058cat >>conftest.$ac_ext <<_ACEOF
19059/* end confdefs.h. */
ba4481b5 19060#include <time.h>
ba4481b5
DL
19061extern char **environ;
19062unset_TZ ()
19063{
19064 char **from, **to;
19065 for (to = from = environ; (*to = *from); from++)
19066 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19067 to++;
19068}
19069char TZ_GMT0[] = "TZ=GMT0";
19070char TZ_PST8[] = "TZ=PST8";
19071main()
19072{
19073 time_t now = time ((time_t *) 0);
19074 int hour_GMT0, hour_unset;
19075 if (putenv (TZ_GMT0) != 0)
19076 exit (1);
19077 hour_GMT0 = localtime (&now)->tm_hour;
19078 unset_TZ ();
19079 hour_unset = localtime (&now)->tm_hour;
19080 if (putenv (TZ_PST8) != 0)
19081 exit (1);
19082 if (localtime (&now)->tm_hour == hour_GMT0)
19083 exit (1);
19084 unset_TZ ();
19085 if (localtime (&now)->tm_hour != hour_unset)
19086 exit (1);
19087 exit (0);
19088}
503d2be0
AS
19089_ACEOF
19090rm -f conftest$ac_exeext
c0d27fcc 19091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
503d2be0
AS
19092 (eval $ac_link) 2>&5
19093 ac_status=$?
c0d27fcc 19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c0d27fcc 19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
19097 (eval $ac_try) 2>&5
19098 ac_status=$?
c0d27fcc 19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19100 (exit $ac_status); }; }; then
ba4481b5
DL
19101 emacs_cv_localtime_cache=no
19102else
503d2be0
AS
19103 echo "$as_me: program exited with status $ac_status" >&5
19104echo "$as_me: failed program was:" >&5
19650fd6
AS
19105sed 's/^/| /' conftest.$ac_ext >&5
19106
c0d27fcc 19107( exit $ac_status )
503d2be0 19108emacs_cv_localtime_cache=yes
ba4481b5 19109fi
35996d22 19110rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ba4481b5 19111fi
ba4481b5
DL
19112else
19113 # If we lack tzset, report that localtime does not cache TZ,
19114 # since we can't invalidate the cache if we don't have tzset.
19115 emacs_cv_localtime_cache=no
19116fi
19117fi
c0d27fcc 19118echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
503d2be0 19119echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
ba4481b5 19120if test $emacs_cv_localtime_cache = yes; then
b936fae4 19121
c0d27fcc 19122cat >>confdefs.h <<\_ACEOF
ba4481b5 19123#define LOCALTIME_CACHE 1
c0d27fcc 19124_ACEOF
ba4481b5
DL
19125
19126fi
19127
19128if test "x$HAVE_TIMEVAL" = xyes; then
503d2be0
AS
19129
19130for ac_func in gettimeofday
48d4b120 19131do
503d2be0 19132as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 19133echo "$as_me:$LINENO: checking for $ac_func" >&5
503d2be0
AS
19134echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19135if eval "test \"\${$as_ac_var+set}\" = set"; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
48d4b120 19137else
503d2be0 19138 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19139/* confdefs.h. */
19140_ACEOF
19141cat confdefs.h >>conftest.$ac_ext
19142cat >>conftest.$ac_ext <<_ACEOF
19143/* end confdefs.h. */
35996d22
AS
19144/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19146#define $ac_func innocuous_$ac_func
19147
48d4b120 19148/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
19149 which can conflict with char $ac_func (); below.
19150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19151 <limits.h> exists even on freestanding compilers. */
35996d22 19152
19650fd6
AS
19153#ifdef __STDC__
19154# include <limits.h>
19155#else
19156# include <assert.h>
19157#endif
35996d22
AS
19158
19159#undef $ac_func
19160
48d4b120 19161/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
19162#ifdef __cplusplus
19163extern "C"
19650fd6 19164{
503d2be0 19165#endif
48d4b120 19166/* We use char because int might match the return type of a gcc2
503d2be0
AS
19167 builtin and then its argument prototype would still apply. */
19168char $ac_func ();
48d4b120
DL
19169/* The GNU C library defines this for functions which it implements
19170 to always fail with ENOSYS. Some functions are actually named
19171 something starting with __ and the normal name is an alias. */
19172#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19173choke me
19174#else
19650fd6
AS
19175char (*f) () = $ac_func;
19176#endif
19177#ifdef __cplusplus
19178}
cd958eb3
MB
19179#endif
19180
19650fd6
AS
19181int
19182main ()
19183{
19184return f != $ac_func;
503d2be0
AS
19185 ;
19186 return 0;
19187}
19188_ACEOF
19189rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 19190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 19191 (eval $ac_link) 2>conftest.er1
503d2be0 19192 ac_status=$?
35996d22
AS
19193 grep -v '^ *+' conftest.er1 >conftest.err
19194 rm -f conftest.er1
19195 cat conftest.err >&5
c0d27fcc 19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19197 (exit $ac_status); } &&
35996d22
AS
19198 { ac_try='test -z "$ac_c_werror_flag"
19199 || test ! -s conftest.err'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; } &&
19205 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
19207 (eval $ac_try) 2>&5
19208 ac_status=$?
c0d27fcc 19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
19210 (exit $ac_status); }; }; then
19211 eval "$as_ac_var=yes"
19212else
19213 echo "$as_me: failed program was:" >&5
19650fd6
AS
19214sed 's/^/| /' conftest.$ac_ext >&5
19215
503d2be0
AS
19216eval "$as_ac_var=no"
19217fi
35996d22
AS
19218rm -f conftest.err conftest.$ac_objext \
19219 conftest$ac_exeext conftest.$ac_ext
503d2be0 19220fi
c0d27fcc 19221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
503d2be0
AS
19222echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19223if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 19224 cat >>confdefs.h <<_ACEOF
503d2be0 19225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 19226_ACEOF
48d4b120 19227
48d4b120
DL
19228fi
19229done
19230
b936fae4 19231 if test $ac_cv_func_gettimeofday = yes; then
c0d27fcc 19232 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
503d2be0
AS
19233echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19234if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 19236else
503d2be0 19237 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19238/* confdefs.h. */
19239_ACEOF
19240cat confdefs.h >>conftest.$ac_ext
19241cat >>conftest.$ac_ext <<_ACEOF
19242/* end confdefs.h. */
ba4481b5 19243
a3f08d9e
DL
19244#ifdef TIME_WITH_SYS_TIME
19245#include <sys/time.h>
19246#include <time.h>
19247#else
19248#ifdef HAVE_SYS_TIME_H
19249#include <sys/time.h>
19250#else
19251#include <time.h>
19252#endif
19253#endif
503d2be0
AS
19254int
19255main ()
19256{
a3f08d9e 19257struct timeval time;
b936fae4 19258 gettimeofday (&time, 0);
503d2be0
AS
19259 ;
19260 return 0;
19261}
19262_ACEOF
19263rm -f conftest.$ac_objext
c0d27fcc 19264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 19265 (eval $ac_compile) 2>conftest.er1
503d2be0 19266 ac_status=$?
35996d22
AS
19267 grep -v '^ *+' conftest.er1 >conftest.err
19268 rm -f conftest.er1
19269 cat conftest.err >&5
c0d27fcc 19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19271 (exit $ac_status); } &&
35996d22
AS
19272 { ac_try='test -z "$ac_c_werror_flag"
19273 || test ! -s conftest.err'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; } &&
19279 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
19281 (eval $ac_try) 2>&5
19282 ac_status=$?
c0d27fcc 19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19284 (exit $ac_status); }; }; then
ba4481b5
DL
19285 emacs_cv_gettimeofday_two_arguments=yes
19286else
503d2be0 19287 echo "$as_me: failed program was:" >&5
19650fd6
AS
19288sed 's/^/| /' conftest.$ac_ext >&5
19289
503d2be0 19290emacs_cv_gettimeofday_two_arguments=no
ba4481b5 19291fi
35996d22 19292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba4481b5 19293fi
c0d27fcc 19294echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
503d2be0 19295echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
b936fae4
AS
19296 if test $emacs_cv_gettimeofday_two_arguments = no; then
19297
c0d27fcc 19298cat >>confdefs.h <<\_ACEOF
ba4481b5 19299#define GETTIMEOFDAY_ONE_ARGUMENT 1
c0d27fcc 19300_ACEOF
ba4481b5 19301
b936fae4 19302 fi
ba4481b5
DL
19303 fi
19304fi
19305
973a76b1
DL
19306# This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19307echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19308echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19309if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19311else
19312 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19313/* confdefs.h. */
19314_ACEOF
19315cat confdefs.h >>conftest.$ac_ext
19316cat >>conftest.$ac_ext <<_ACEOF
19317/* end confdefs.h. */
973a76b1
DL
19318#include <sys/types.h>
19319#include <$ac_cv_struct_tm>
19320
19321
19322int
19323main ()
19324{
19325static struct tm ac_aggr;
19326if (ac_aggr.tm_zone)
19327return 0;
19328 ;
19329 return 0;
19330}
19331_ACEOF
19332rm -f conftest.$ac_objext
19333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 19334 (eval $ac_compile) 2>conftest.er1
973a76b1 19335 ac_status=$?
35996d22
AS
19336 grep -v '^ *+' conftest.er1 >conftest.err
19337 rm -f conftest.er1
19338 cat conftest.err >&5
973a76b1
DL
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
35996d22
AS
19341 { ac_try='test -z "$ac_c_werror_flag"
19342 || test ! -s conftest.err'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try='test -s conftest.$ac_objext'
973a76b1
DL
19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19351 ac_status=$?
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; }; then
19354 ac_cv_member_struct_tm_tm_zone=yes
19355else
19356 echo "$as_me: failed program was:" >&5
19650fd6
AS
19357sed 's/^/| /' conftest.$ac_ext >&5
19358
973a76b1 19359cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19360/* confdefs.h. */
19361_ACEOF
19362cat confdefs.h >>conftest.$ac_ext
19363cat >>conftest.$ac_ext <<_ACEOF
19364/* end confdefs.h. */
973a76b1
DL
19365#include <sys/types.h>
19366#include <$ac_cv_struct_tm>
19367
19368
19369int
19370main ()
19371{
19372static struct tm ac_aggr;
19373if (sizeof ac_aggr.tm_zone)
19374return 0;
19375 ;
19376 return 0;
19377}
19378_ACEOF
19379rm -f conftest.$ac_objext
19380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 19381 (eval $ac_compile) 2>conftest.er1
973a76b1 19382 ac_status=$?
35996d22
AS
19383 grep -v '^ *+' conftest.er1 >conftest.err
19384 rm -f conftest.er1
19385 cat conftest.err >&5
973a76b1
DL
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
35996d22
AS
19388 { ac_try='test -z "$ac_c_werror_flag"
19389 || test ! -s conftest.err'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest.$ac_objext'
973a76b1
DL
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19401 ac_cv_member_struct_tm_tm_zone=yes
19402else
19403 echo "$as_me: failed program was:" >&5
19650fd6
AS
19404sed 's/^/| /' conftest.$ac_ext >&5
19405
973a76b1
DL
19406ac_cv_member_struct_tm_tm_zone=no
19407fi
35996d22 19408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
973a76b1 19409fi
35996d22 19410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
973a76b1
DL
19411fi
19412echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19413echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19414if test $ac_cv_member_struct_tm_tm_zone = yes; then
19415
19416cat >>confdefs.h <<_ACEOF
19417#define HAVE_STRUCT_TM_TM_ZONE 1
19418_ACEOF
19419
19420
19421fi
19422
19423if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19424
19425cat >>confdefs.h <<\_ACEOF
19426#define HAVE_TM_ZONE 1
19427_ACEOF
19428
19429else
19430 echo "$as_me:$LINENO: checking for tzname" >&5
19431echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19432if test "${ac_cv_var_tzname+set}" = set; then
19433 echo $ECHO_N "(cached) $ECHO_C" >&6
19434else
19435 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19436/* confdefs.h. */
19437_ACEOF
19438cat confdefs.h >>conftest.$ac_ext
19439cat >>conftest.$ac_ext <<_ACEOF
19440/* end confdefs.h. */
973a76b1
DL
19441#include <time.h>
19442#ifndef tzname /* For SGI. */
19443extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19444#endif
19445
19446int
19447main ()
19448{
19449atoi(*tzname);
19450 ;
19451 return 0;
19452}
19453_ACEOF
19454rm -f conftest.$ac_objext conftest$ac_exeext
19455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 19456 (eval $ac_link) 2>conftest.er1
973a76b1 19457 ac_status=$?
35996d22
AS
19458 grep -v '^ *+' conftest.er1 >conftest.err
19459 rm -f conftest.er1
19460 cat conftest.err >&5
973a76b1
DL
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); } &&
35996d22
AS
19463 { ac_try='test -z "$ac_c_werror_flag"
19464 || test ! -s conftest.err'
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19467 ac_status=$?
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; } &&
19470 { ac_try='test -s conftest$ac_exeext'
973a76b1
DL
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476 ac_cv_var_tzname=yes
19477else
19478 echo "$as_me: failed program was:" >&5
19650fd6
AS
19479sed 's/^/| /' conftest.$ac_ext >&5
19480
973a76b1
DL
19481ac_cv_var_tzname=no
19482fi
35996d22
AS
19483rm -f conftest.err conftest.$ac_objext \
19484 conftest$ac_exeext conftest.$ac_ext
973a76b1
DL
19485fi
19486echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19487echo "${ECHO_T}$ac_cv_var_tzname" >&6
19488 if test $ac_cv_var_tzname = yes; then
19489
19490cat >>confdefs.h <<\_ACEOF
19491#define HAVE_TZNAME 1
19492_ACEOF
19493
19494 fi
19495fi
19496
19497
48d4b120 19498if test "$ac_cv_func_gettimeofday" = yes; then
c0d27fcc 19499 echo "$as_me:$LINENO: checking for struct timezone" >&5
503d2be0
AS
19500echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19501if test "${emacs_cv_struct_timezone+set}" = set; then
19502 echo $ECHO_N "(cached) $ECHO_C" >&6
48d4b120 19503else
503d2be0 19504 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19505/* confdefs.h. */
19506_ACEOF
19507cat confdefs.h >>conftest.$ac_ext
19508cat >>conftest.$ac_ext <<_ACEOF
19509/* end confdefs.h. */
48d4b120 19510#include <sys/time.h>
503d2be0
AS
19511int
19512main ()
19513{
48d4b120 19514struct timezone tz;
503d2be0
AS
19515 ;
19516 return 0;
19517}
19518_ACEOF
19519rm -f conftest.$ac_objext
c0d27fcc 19520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 19521 (eval $ac_compile) 2>conftest.er1
503d2be0 19522 ac_status=$?
35996d22
AS
19523 grep -v '^ *+' conftest.er1 >conftest.err
19524 rm -f conftest.er1
19525 cat conftest.err >&5
c0d27fcc 19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19527 (exit $ac_status); } &&
35996d22
AS
19528 { ac_try='test -z "$ac_c_werror_flag"
19529 || test ! -s conftest.err'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; } &&
19535 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 19536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
19537 (eval $ac_try) 2>&5
19538 ac_status=$?
c0d27fcc 19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19540 (exit $ac_status); }; }; then
48d4b120
DL
19541 if test "$cross_compiling" = yes; then
19542 emacs_cv_struct_timezone=yes
19543else
503d2be0 19544 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19545/* confdefs.h. */
19546_ACEOF
19547cat confdefs.h >>conftest.$ac_ext
19548cat >>conftest.$ac_ext <<_ACEOF
19549/* end confdefs.h. */
48d4b120
DL
19550
19551#ifdef TIME_WITH_SYS_TIME
19552#include <sys/time.h>
19553#include <time.h>
19554#else
19555#ifdef HAVE_SYS_TIME_H
19556#include <sys/time.h>
19557#else
19558#include <time.h>
19559#endif
19560#endif
19561main () {
19562 struct timeval time;
19563 struct timezone dummy;
19564 exit (gettimeofday (&time, &dummy));
19565}
503d2be0
AS
19566_ACEOF
19567rm -f conftest$ac_exeext
c0d27fcc 19568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
503d2be0
AS
19569 (eval $ac_link) 2>&5
19570 ac_status=$?
c0d27fcc 19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c0d27fcc 19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
19574 (eval $ac_try) 2>&5
19575 ac_status=$?
c0d27fcc 19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19577 (exit $ac_status); }; }; then
48d4b120
DL
19578 emacs_cv_struct_timezone=yes
19579else
503d2be0
AS
19580 echo "$as_me: program exited with status $ac_status" >&5
19581echo "$as_me: failed program was:" >&5
19650fd6
AS
19582sed 's/^/| /' conftest.$ac_ext >&5
19583
c0d27fcc 19584( exit $ac_status )
503d2be0 19585emacs_cv_struct_timezone=no
48d4b120 19586fi
35996d22 19587rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48d4b120 19588fi
48d4b120 19589else
503d2be0 19590 echo "$as_me: failed program was:" >&5
19650fd6
AS
19591sed 's/^/| /' conftest.$ac_ext >&5
19592
503d2be0 19593emacs_cv_struct_timezone=no
48d4b120 19594fi
35996d22 19595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48d4b120 19596fi
c0d27fcc 19597echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
503d2be0 19598echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
48d4b120
DL
19599fi
19600
ba4481b5 19601ok_so_far=yes
c0d27fcc 19602echo "$as_me:$LINENO: checking for socket" >&5
503d2be0
AS
19603echo $ECHO_N "checking for socket... $ECHO_C" >&6
19604if test "${ac_cv_func_socket+set}" = set; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
ba4481b5 19606else
503d2be0 19607 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19608/* confdefs.h. */
19609_ACEOF
19610cat confdefs.h >>conftest.$ac_ext
19611cat >>conftest.$ac_ext <<_ACEOF
19612/* end confdefs.h. */
35996d22
AS
19613/* Define socket to an innocuous variant, in case <limits.h> declares socket.
19614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19615#define socket innocuous_socket
19616
ba4481b5 19617/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
19618 which can conflict with char socket (); below.
19619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19620 <limits.h> exists even on freestanding compilers. */
35996d22 19621
19650fd6
AS
19622#ifdef __STDC__
19623# include <limits.h>
19624#else
19625# include <assert.h>
19626#endif
35996d22
AS
19627
19628#undef socket
19629
ba4481b5 19630/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
19631#ifdef __cplusplus
19632extern "C"
19650fd6 19633{
503d2be0 19634#endif
ba4481b5 19635/* We use char because int might match the return type of a gcc2
503d2be0
AS
19636 builtin and then its argument prototype would still apply. */
19637char socket ();
ba4481b5
DL
19638/* The GNU C library defines this for functions which it implements
19639 to always fail with ENOSYS. Some functions are actually named
19640 something starting with __ and the normal name is an alias. */
19641#if defined (__stub_socket) || defined (__stub___socket)
19642choke me
19643#else
19650fd6
AS
19644char (*f) () = socket;
19645#endif
19646#ifdef __cplusplus
19647}
cd958eb3
MB
19648#endif
19649
19650fd6
AS
19650int
19651main ()
19652{
19653return f != socket;
503d2be0
AS
19654 ;
19655 return 0;
19656}
19657_ACEOF
19658rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 19659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 19660 (eval $ac_link) 2>conftest.er1
503d2be0 19661 ac_status=$?
35996d22
AS
19662 grep -v '^ *+' conftest.er1 >conftest.err
19663 rm -f conftest.er1
19664 cat conftest.err >&5
c0d27fcc 19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 19666 (exit $ac_status); } &&
35996d22
AS
19667 { ac_try='test -z "$ac_c_werror_flag"
19668 || test ! -s conftest.err'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
19676 (eval $ac_try) 2>&5
19677 ac_status=$?
c0d27fcc 19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
19679 (exit $ac_status); }; }; then
19680 ac_cv_func_socket=yes
19681else
19682 echo "$as_me: failed program was:" >&5
19650fd6
AS
19683sed 's/^/| /' conftest.$ac_ext >&5
19684
503d2be0
AS
19685ac_cv_func_socket=no
19686fi
35996d22
AS
19687rm -f conftest.err conftest.$ac_objext \
19688 conftest$ac_exeext conftest.$ac_ext
503d2be0 19689fi
c0d27fcc 19690echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
503d2be0
AS
19691echo "${ECHO_T}$ac_cv_func_socket" >&6
19692if test $ac_cv_func_socket = yes; then
ba4481b5
DL
19693 :
19694else
503d2be0 19695 ok_so_far=no
ba4481b5
DL
19696fi
19697
19698if test $ok_so_far = yes; then
c0d27fcc
MR
19699 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19700 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
503d2be0
AS
19701echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19702if test "${ac_cv_header_netinet_in_h+set}" = set; then
19703 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
19704fi
19705echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19706echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
98418dba 19707else
c0d27fcc
MR
19708 # Is the header compilable?
19709echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19710echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19711cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19712/* confdefs.h. */
19713_ACEOF
19714cat confdefs.h >>conftest.$ac_ext
19715cat >>conftest.$ac_ext <<_ACEOF
19716/* end confdefs.h. */
c0d27fcc
MR
19717$ac_includes_default
19718#include <netinet/in.h>
19719_ACEOF
19720rm -f conftest.$ac_objext
19721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 19722 (eval $ac_compile) 2>conftest.er1
c0d27fcc 19723 ac_status=$?
35996d22
AS
19724 grep -v '^ *+' conftest.er1 >conftest.err
19725 rm -f conftest.er1
19726 cat conftest.err >&5
c0d27fcc
MR
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } &&
35996d22
AS
19729 { ac_try='test -z "$ac_c_werror_flag"
19730 || test ! -s conftest.err'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; } &&
19736 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 ac_header_compiler=yes
19743else
19744 echo "$as_me: failed program was:" >&5
19650fd6
AS
19745sed 's/^/| /' conftest.$ac_ext >&5
19746
c0d27fcc
MR
19747ac_header_compiler=no
19748fi
35996d22 19749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
19750echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19751echo "${ECHO_T}$ac_header_compiler" >&6
19752
19753# Is the header present?
19754echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19755echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
19756cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19757/* confdefs.h. */
19758_ACEOF
19759cat confdefs.h >>conftest.$ac_ext
19760cat >>conftest.$ac_ext <<_ACEOF
19761/* end confdefs.h. */
ba4481b5 19762#include <netinet/in.h>
503d2be0 19763_ACEOF
c0d27fcc 19764if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
19765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19766 ac_status=$?
6bae0ccf 19767 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
19768 rm -f conftest.er1
19769 cat conftest.err >&5
c0d27fcc 19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
19771 (exit $ac_status); } >/dev/null; then
19772 if test -s conftest.err; then
19773 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 19774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
19775 else
19776 ac_cpp_err=
19777 fi
19778else
19779 ac_cpp_err=yes
19780fi
19781if test -z "$ac_cpp_err"; then
c0d27fcc 19782 ac_header_preproc=yes
ba4481b5 19783else
503d2be0 19784 echo "$as_me: failed program was:" >&5
19650fd6
AS
19785sed 's/^/| /' conftest.$ac_ext >&5
19786
c0d27fcc 19787 ac_header_preproc=no
ba4481b5 19788fi
503d2be0 19789rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
19790echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19791echo "${ECHO_T}$ac_header_preproc" >&6
19792
19793# So? What about this header?
35996d22
AS
19794case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19795 yes:no: )
c0d27fcc
MR
19796 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19797echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
19798 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19799echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19800 ac_header_preproc=yes
19650fd6 19801 ;;
35996d22 19802 no:yes:* )
c0d27fcc
MR
19803 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19804echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
35996d22
AS
19805 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19806echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19807 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19808echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19809 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19810echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 19811 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19650fd6 19812echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
19813 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19814echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
19815 (
19816 cat <<\_ASBOX
35996d22
AS
19817## ------------------------------------------ ##
19818## Report this to the AC_PACKAGE_NAME lists. ##
19819## ------------------------------------------ ##
19650fd6
AS
19820_ASBOX
19821 ) |
19822 sed "s/^/$as_me: WARNING: /" >&2
19823 ;;
c0d27fcc
MR
19824esac
19825echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19826echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19827if test "${ac_cv_header_netinet_in_h+set}" = set; then
19828 echo $ECHO_N "(cached) $ECHO_C" >&6
19829else
19830 ac_cv_header_netinet_in_h=$ac_header_preproc
ba4481b5 19831fi
c0d27fcc 19832echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
503d2be0 19833echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
c0d27fcc
MR
19834
19835fi
503d2be0 19836if test $ac_cv_header_netinet_in_h = yes; then
ba4481b5
DL
19837 :
19838else
503d2be0 19839 ok_so_far=no
ba4481b5
DL
19840fi
19841
c0d27fcc 19842
ba4481b5
DL
19843fi
19844if test $ok_so_far = yes; then
c0d27fcc
MR
19845 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19846 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
503d2be0
AS
19847echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19848if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
19850fi
19851echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19852echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
98418dba 19853else
c0d27fcc
MR
19854 # Is the header compilable?
19855echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
19856echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
19857cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19858/* confdefs.h. */
19859_ACEOF
19860cat confdefs.h >>conftest.$ac_ext
19861cat >>conftest.$ac_ext <<_ACEOF
19862/* end confdefs.h. */
c0d27fcc
MR
19863$ac_includes_default
19864#include <arpa/inet.h>
19865_ACEOF
19866rm -f conftest.$ac_objext
19867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 19868 (eval $ac_compile) 2>conftest.er1
c0d27fcc 19869 ac_status=$?
35996d22
AS
19870 grep -v '^ *+' conftest.er1 >conftest.err
19871 rm -f conftest.er1
19872 cat conftest.err >&5
c0d27fcc
MR
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
35996d22
AS
19875 { ac_try='test -z "$ac_c_werror_flag"
19876 || test ! -s conftest.err'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; } &&
19882 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 ac_header_compiler=yes
19889else
19890 echo "$as_me: failed program was:" >&5
19650fd6
AS
19891sed 's/^/| /' conftest.$ac_ext >&5
19892
c0d27fcc
MR
19893ac_header_compiler=no
19894fi
35996d22 19895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
19896echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19897echo "${ECHO_T}$ac_header_compiler" >&6
19898
19899# Is the header present?
19900echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
19901echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
19902cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
19903/* confdefs.h. */
19904_ACEOF
19905cat confdefs.h >>conftest.$ac_ext
19906cat >>conftest.$ac_ext <<_ACEOF
19907/* end confdefs.h. */
ba4481b5 19908#include <arpa/inet.h>
503d2be0 19909_ACEOF
c0d27fcc 19910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
19911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19912 ac_status=$?
6bae0ccf 19913 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
19914 rm -f conftest.er1
19915 cat conftest.err >&5
c0d27fcc 19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
19917 (exit $ac_status); } >/dev/null; then
19918 if test -s conftest.err; then
19919 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 19920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
19921 else
19922 ac_cpp_err=
19923 fi
19924else
19925 ac_cpp_err=yes
19926fi
19927if test -z "$ac_cpp_err"; then
c0d27fcc 19928 ac_header_preproc=yes
ba4481b5 19929else
503d2be0 19930 echo "$as_me: failed program was:" >&5
19650fd6
AS
19931sed 's/^/| /' conftest.$ac_ext >&5
19932
c0d27fcc 19933 ac_header_preproc=no
ba4481b5 19934fi
503d2be0 19935rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
19936echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19937echo "${ECHO_T}$ac_header_preproc" >&6
19938
19939# So? What about this header?
35996d22
AS
19940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19941 yes:no: )
c0d27fcc
MR
19942 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
19943echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
19944 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
19945echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
19946 ac_header_preproc=yes
19650fd6 19947 ;;
35996d22 19948 no:yes:* )
c0d27fcc
MR
19949 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
19950echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
35996d22
AS
19951 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
19952echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
19954echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
19956echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 19957 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
19650fd6 19958echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
35996d22
AS
19959 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
19960echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
19961 (
19962 cat <<\_ASBOX
35996d22
AS
19963## ------------------------------------------ ##
19964## Report this to the AC_PACKAGE_NAME lists. ##
19965## ------------------------------------------ ##
19650fd6
AS
19966_ASBOX
19967 ) |
19968 sed "s/^/$as_me: WARNING: /" >&2
19969 ;;
c0d27fcc
MR
19970esac
19971echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19972echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19973if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19975else
19976 ac_cv_header_arpa_inet_h=$ac_header_preproc
ba4481b5 19977fi
c0d27fcc 19978echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
503d2be0 19979echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
c0d27fcc
MR
19980
19981fi
503d2be0 19982if test $ac_cv_header_arpa_inet_h = yes; then
ba4481b5
DL
19983 :
19984else
503d2be0 19985 ok_so_far=no
ba4481b5
DL
19986fi
19987
c0d27fcc 19988
ba4481b5
DL
19989fi
19990if test $ok_so_far = yes; then
b936fae4 19991
c0d27fcc 19992cat >>confdefs.h <<\_ACEOF
ba4481b5 19993#define HAVE_INET_SOCKETS 1
c0d27fcc 19994_ACEOF
ba4481b5
DL
19995
19996fi
19997
2d2b6695 19998
7862d3a8 19999for ac_header in sys/ioctl.h
2d2b6695
KS
20000do
20001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20002if eval "test \"\${$as_ac_Header+set}\" = set"; then
20003 echo "$as_me:$LINENO: checking for $ac_header" >&5
20004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20005if eval "test \"\${$as_ac_Header+set}\" = set"; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20007fi
20008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20010else
20011 # Is the header compilable?
20012echo "$as_me:$LINENO: checking $ac_header usability" >&5
20013echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20014cat >conftest.$ac_ext <<_ACEOF
2d2b6695
KS
20015/* confdefs.h. */
20016_ACEOF
20017cat confdefs.h >>conftest.$ac_ext
20018cat >>conftest.$ac_ext <<_ACEOF
20019/* end confdefs.h. */
20020$ac_includes_default
20021#include <$ac_header>
20022_ACEOF
20023rm -f conftest.$ac_objext
20024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 20025 (eval $ac_compile) 2>conftest.er1
2d2b6695 20026 ac_status=$?
35996d22
AS
20027 grep -v '^ *+' conftest.er1 >conftest.err
20028 rm -f conftest.er1
20029 cat conftest.err >&5
2d2b6695
KS
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } &&
35996d22
AS
20032 { ac_try='test -z "$ac_c_werror_flag"
20033 || test ! -s conftest.err'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; } &&
20039 { ac_try='test -s conftest.$ac_objext'
2d2b6695
KS
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20042 ac_status=$?
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; }; then
20045 ac_header_compiler=yes
20046else
20047 echo "$as_me: failed program was:" >&5
20048sed 's/^/| /' conftest.$ac_ext >&5
20049
20050ac_header_compiler=no
20051fi
35996d22 20052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2d2b6695
KS
20053echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20054echo "${ECHO_T}$ac_header_compiler" >&6
20055
20056# Is the header present?
20057echo "$as_me:$LINENO: checking $ac_header presence" >&5
20058echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20059cat >conftest.$ac_ext <<_ACEOF
2d2b6695
KS
20060/* confdefs.h. */
20061_ACEOF
20062cat confdefs.h >>conftest.$ac_ext
20063cat >>conftest.$ac_ext <<_ACEOF
20064/* end confdefs.h. */
20065#include <$ac_header>
20066_ACEOF
20067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20069 ac_status=$?
20070 grep -v '^ *+' conftest.er1 >conftest.err
20071 rm -f conftest.er1
20072 cat conftest.err >&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } >/dev/null; then
20075 if test -s conftest.err; then
20076 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 20077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2d2b6695
KS
20078 else
20079 ac_cpp_err=
20080 fi
20081else
20082 ac_cpp_err=yes
20083fi
20084if test -z "$ac_cpp_err"; then
20085 ac_header_preproc=yes
20086else
20087 echo "$as_me: failed program was:" >&5
20088sed 's/^/| /' conftest.$ac_ext >&5
20089
20090 ac_header_preproc=no
20091fi
20092rm -f conftest.err conftest.$ac_ext
20093echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20094echo "${ECHO_T}$ac_header_preproc" >&6
20095
20096# So? What about this header?
35996d22
AS
20097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20098 yes:no: )
2d2b6695
KS
20099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20100echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
20101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20102echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20103 ac_header_preproc=yes
2d2b6695 20104 ;;
35996d22 20105 no:yes:* )
2d2b6695
KS
20106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20107echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
20108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20109echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20111echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20113echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2d2b6695
KS
20114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20115echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
20116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20117echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2d2b6695
KS
20118 (
20119 cat <<\_ASBOX
35996d22
AS
20120## ------------------------------------------ ##
20121## Report this to the AC_PACKAGE_NAME lists. ##
20122## ------------------------------------------ ##
2d2b6695
KS
20123_ASBOX
20124 ) |
20125 sed "s/^/$as_me: WARNING: /" >&2
20126 ;;
20127esac
20128echo "$as_me:$LINENO: checking for $ac_header" >&5
20129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20130if eval "test \"\${$as_ac_Header+set}\" = set"; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20132else
35996d22 20133 eval "$as_ac_Header=\$ac_header_preproc"
2d2b6695
KS
20134fi
20135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20137
20138fi
20139if test `eval echo '${'$as_ac_Header'}'` = yes; then
20140 cat >>confdefs.h <<_ACEOF
20141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20142_ACEOF
20143
20144fi
20145
20146done
20147
20148
ba4481b5 20149if test -f /usr/lpp/X11/bin/smt.exp; then
b936fae4 20150
c0d27fcc 20151cat >>confdefs.h <<\_ACEOF
ba4481b5 20152#define HAVE_AIX_SMT_EXP 1
c0d27fcc 20153_ACEOF
ba4481b5
DL
20154
20155fi
20156
c0d27fcc 20157echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
503d2be0 20158echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
3d9fec71 20159if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
c0d27fcc 20160 echo "$as_me:$LINENO: result: yes" >&5
503d2be0 20161echo "${ECHO_T}yes" >&6
b936fae4 20162
c0d27fcc 20163cat >>confdefs.h <<\_ACEOF
3d9fec71 20164#define HAVE_DEV_PTMX 1
c0d27fcc 20165_ACEOF
3d9fec71
DL
20166
20167else
c0d27fcc 20168 echo "$as_me:$LINENO: result: no" >&5
503d2be0 20169echo "${ECHO_T}no" >&6
3d9fec71
DL
20170fi
20171
c0d27fcc 20172echo "$as_me:$LINENO: checking for pid_t" >&5
503d2be0
AS
20173echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20174if test "${ac_cv_type_pid_t+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
647847ea 20176else
503d2be0 20177 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20178/* confdefs.h. */
20179_ACEOF
20180cat confdefs.h >>conftest.$ac_ext
20181cat >>conftest.$ac_ext <<_ACEOF
20182/* end confdefs.h. */
503d2be0
AS
20183$ac_includes_default
20184int
20185main ()
20186{
20187if ((pid_t *) 0)
20188 return 0;
20189if (sizeof (pid_t))
20190 return 0;
20191 ;
20192 return 0;
20193}
20194_ACEOF
20195rm -f conftest.$ac_objext
c0d27fcc 20196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 20197 (eval $ac_compile) 2>conftest.er1
503d2be0 20198 ac_status=$?
35996d22
AS
20199 grep -v '^ *+' conftest.er1 >conftest.err
20200 rm -f conftest.er1
20201 cat conftest.err >&5
c0d27fcc 20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 20203 (exit $ac_status); } &&
35996d22
AS
20204 { ac_try='test -z "$ac_c_werror_flag"
20205 || test ! -s conftest.err'
20206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207 (eval $ac_try) 2>&5
20208 ac_status=$?
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; } &&
20211 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 20212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
20213 (eval $ac_try) 2>&5
20214 ac_status=$?
c0d27fcc 20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 20216 (exit $ac_status); }; }; then
647847ea
DL
20217 ac_cv_type_pid_t=yes
20218else
503d2be0 20219 echo "$as_me: failed program was:" >&5
19650fd6
AS
20220sed 's/^/| /' conftest.$ac_ext >&5
20221
503d2be0 20222ac_cv_type_pid_t=no
647847ea 20223fi
35996d22 20224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
647847ea 20225fi
c0d27fcc 20226echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
503d2be0
AS
20227echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20228if test $ac_cv_type_pid_t = yes; then
20229 :
20230else
20231
c0d27fcc 20232cat >>confdefs.h <<_ACEOF
647847ea 20233#define pid_t int
c0d27fcc 20234_ACEOF
647847ea
DL
20235
20236fi
20237
c0d27fcc
MR
20238
20239
503d2be0
AS
20240for ac_header in unistd.h vfork.h
20241do
20242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
c0d27fcc
MR
20243if eval "test \"\${$as_ac_Header+set}\" = set"; then
20244 echo "$as_me:$LINENO: checking for $ac_header" >&5
503d2be0
AS
20245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20246if eval "test \"\${$as_ac_Header+set}\" = set"; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
c0d27fcc
MR
20248fi
20249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
98418dba 20251else
c0d27fcc
MR
20252 # Is the header compilable?
20253echo "$as_me:$LINENO: checking $ac_header usability" >&5
20254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20255cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20256/* confdefs.h. */
20257_ACEOF
20258cat confdefs.h >>conftest.$ac_ext
20259cat >>conftest.$ac_ext <<_ACEOF
20260/* end confdefs.h. */
c0d27fcc
MR
20261$ac_includes_default
20262#include <$ac_header>
20263_ACEOF
20264rm -f conftest.$ac_objext
20265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 20266 (eval $ac_compile) 2>conftest.er1
c0d27fcc 20267 ac_status=$?
35996d22
AS
20268 grep -v '^ *+' conftest.er1 >conftest.err
20269 rm -f conftest.er1
20270 cat conftest.err >&5
c0d27fcc
MR
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } &&
35996d22
AS
20273 { ac_try='test -z "$ac_c_werror_flag"
20274 || test ! -s conftest.err'
20275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276 (eval $ac_try) 2>&5
20277 ac_status=$?
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; } &&
20280 { ac_try='test -s conftest.$ac_objext'
c0d27fcc
MR
20281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282 (eval $ac_try) 2>&5
20283 ac_status=$?
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; }; then
20286 ac_header_compiler=yes
20287else
20288 echo "$as_me: failed program was:" >&5
19650fd6
AS
20289sed 's/^/| /' conftest.$ac_ext >&5
20290
c0d27fcc
MR
20291ac_header_compiler=no
20292fi
35996d22 20293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c0d27fcc
MR
20294echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20295echo "${ECHO_T}$ac_header_compiler" >&6
20296
20297# Is the header present?
20298echo "$as_me:$LINENO: checking $ac_header presence" >&5
20299echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20300cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20301/* confdefs.h. */
20302_ACEOF
20303cat confdefs.h >>conftest.$ac_ext
20304cat >>conftest.$ac_ext <<_ACEOF
20305/* end confdefs.h. */
503d2be0
AS
20306#include <$ac_header>
20307_ACEOF
c0d27fcc 20308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
503d2be0
AS
20309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20310 ac_status=$?
6bae0ccf 20311 grep -v '^ *+' conftest.er1 >conftest.err
503d2be0
AS
20312 rm -f conftest.er1
20313 cat conftest.err >&5
c0d27fcc 20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
20315 (exit $ac_status); } >/dev/null; then
20316 if test -s conftest.err; then
20317 ac_cpp_err=$ac_c_preproc_warn_flag
35996d22 20318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
503d2be0
AS
20319 else
20320 ac_cpp_err=
20321 fi
647847ea 20322else
503d2be0
AS
20323 ac_cpp_err=yes
20324fi
20325if test -z "$ac_cpp_err"; then
c0d27fcc 20326 ac_header_preproc=yes
647847ea 20327else
503d2be0 20328 echo "$as_me: failed program was:" >&5
19650fd6
AS
20329sed 's/^/| /' conftest.$ac_ext >&5
20330
c0d27fcc 20331 ac_header_preproc=no
647847ea 20332fi
503d2be0 20333rm -f conftest.err conftest.$ac_ext
c0d27fcc
MR
20334echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20335echo "${ECHO_T}$ac_header_preproc" >&6
20336
20337# So? What about this header?
35996d22
AS
20338case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20339 yes:no: )
c0d27fcc
MR
20340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20341echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35996d22
AS
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20343echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20344 ac_header_preproc=yes
19650fd6 20345 ;;
35996d22 20346 no:yes:* )
c0d27fcc
MR
20347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20348echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35996d22
AS
20349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20350echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20352echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20354echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
c0d27fcc 20355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650fd6 20356echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35996d22
AS
20357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20358echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19650fd6
AS
20359 (
20360 cat <<\_ASBOX
35996d22
AS
20361## ------------------------------------------ ##
20362## Report this to the AC_PACKAGE_NAME lists. ##
20363## ------------------------------------------ ##
19650fd6
AS
20364_ASBOX
20365 ) |
20366 sed "s/^/$as_me: WARNING: /" >&2
20367 ;;
c0d27fcc
MR
20368esac
20369echo "$as_me:$LINENO: checking for $ac_header" >&5
20370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20371if eval "test \"\${$as_ac_Header+set}\" = set"; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20373else
35996d22 20374 eval "$as_ac_Header=\$ac_header_preproc"
647847ea 20375fi
c0d27fcc 20376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
503d2be0 20377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c0d27fcc
MR
20378
20379fi
503d2be0 20380if test `eval echo '${'$as_ac_Header'}'` = yes; then
c0d27fcc 20381 cat >>confdefs.h <<_ACEOF
503d2be0 20382#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
c0d27fcc 20383_ACEOF
647847ea 20384
73b77ee5 20385fi
c0d27fcc 20386
503d2be0 20387done
73b77ee5 20388
c0d27fcc
MR
20389
20390
503d2be0
AS
20391for ac_func in fork vfork
20392do
20393as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
c0d27fcc 20394echo "$as_me:$LINENO: checking for $ac_func" >&5
503d2be0
AS
20395echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20396if eval "test \"\${$as_ac_var+set}\" = set"; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
fa0b693c 20398else
503d2be0 20399 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20400/* confdefs.h. */
20401_ACEOF
20402cat confdefs.h >>conftest.$ac_ext
20403cat >>conftest.$ac_ext <<_ACEOF
20404/* end confdefs.h. */
35996d22
AS
20405/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20407#define $ac_func innocuous_$ac_func
20408
fa0b693c 20409/* System header to define __stub macros and hopefully few prototypes,
19650fd6
AS
20410 which can conflict with char $ac_func (); below.
20411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20412 <limits.h> exists even on freestanding compilers. */
35996d22 20413
19650fd6
AS
20414#ifdef __STDC__
20415# include <limits.h>
20416#else
20417# include <assert.h>
20418#endif
35996d22
AS
20419
20420#undef $ac_func
20421
fa0b693c 20422/* Override any gcc2 internal prototype to avoid an error. */
503d2be0
AS
20423#ifdef __cplusplus
20424extern "C"
19650fd6 20425{
503d2be0 20426#endif
fa0b693c 20427/* We use char because int might match the return type of a gcc2
503d2be0
AS
20428 builtin and then its argument prototype would still apply. */
20429char $ac_func ();
fa0b693c
GM
20430/* The GNU C library defines this for functions which it implements
20431 to always fail with ENOSYS. Some functions are actually named
20432 something starting with __ and the normal name is an alias. */
503d2be0 20433#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
fa0b693c
GM
20434choke me
20435#else
19650fd6
AS
20436char (*f) () = $ac_func;
20437#endif
20438#ifdef __cplusplus
20439}
fa0b693c
GM
20440#endif
20441
19650fd6
AS
20442int
20443main ()
20444{
20445return f != $ac_func;
503d2be0
AS
20446 ;
20447 return 0;
20448}
20449_ACEOF
20450rm -f conftest.$ac_objext conftest$ac_exeext
c0d27fcc 20451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 20452 (eval $ac_link) 2>conftest.er1
503d2be0 20453 ac_status=$?
35996d22
AS
20454 grep -v '^ *+' conftest.er1 >conftest.err
20455 rm -f conftest.er1
20456 cat conftest.err >&5
c0d27fcc 20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 20458 (exit $ac_status); } &&
35996d22
AS
20459 { ac_try='test -z "$ac_c_werror_flag"
20460 || test ! -s conftest.err'
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; } &&
20466 { ac_try='test -s conftest$ac_exeext'
c0d27fcc 20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
20468 (eval $ac_try) 2>&5
20469 ac_status=$?
c0d27fcc 20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
20471 (exit $ac_status); }; }; then
20472 eval "$as_ac_var=yes"
20473else
20474 echo "$as_me: failed program was:" >&5
19650fd6
AS
20475sed 's/^/| /' conftest.$ac_ext >&5
20476
503d2be0
AS
20477eval "$as_ac_var=no"
20478fi
35996d22
AS
20479rm -f conftest.err conftest.$ac_objext \
20480 conftest$ac_exeext conftest.$ac_ext
503d2be0 20481fi
c0d27fcc 20482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
503d2be0
AS
20483echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20484if test `eval echo '${'$as_ac_var'}'` = yes; then
c0d27fcc 20485 cat >>confdefs.h <<_ACEOF
503d2be0 20486#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
c0d27fcc 20487_ACEOF
503d2be0 20488
fa0b693c 20489fi
503d2be0 20490done
fa0b693c 20491
503d2be0 20492if test "x$ac_cv_func_fork" = xyes; then
c0d27fcc 20493 echo "$as_me:$LINENO: checking for working fork" >&5
503d2be0
AS
20494echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20495if test "${ac_cv_func_fork_works+set}" = set; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
fa0b693c 20497else
503d2be0
AS
20498 if test "$cross_compiling" = yes; then
20499 ac_cv_func_fork_works=cross
20500else
20501 cat >conftest.$ac_ext <<_ACEOF
c0d27fcc 20502/* By Ruediger Kuhlmann. */
503d2be0
AS
20503 #include <sys/types.h>
20504 #if HAVE_UNISTD_H
20505 # include <unistd.h>
20506 #endif
20507 /* Some systems only have a dummy stub for fork() */
20508 int main ()
20509 {
35996d22
AS
20510 if (fork() < 0)
20511 exit (1);
20512 exit (0);
503d2be0
AS
20513 }
20514_ACEOF
20515rm -f conftest$ac_exeext
c0d27fcc 20516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
503d2be0
AS
20517 (eval $ac_link) 2>&5
20518 ac_status=$?
c0d27fcc 20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 20520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c0d27fcc 20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
20522 (eval $ac_try) 2>&5
20523 ac_status=$?
c0d27fcc 20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0
AS
20525 (exit $ac_status); }; }; then
20526 ac_cv_func_fork_works=yes
20527else
20528 echo "$as_me: program exited with status $ac_status" >&5
20529echo "$as_me: failed program was:" >&5
19650fd6
AS
20530sed 's/^/| /' conftest.$ac_ext >&5
20531
c0d27fcc 20532( exit $ac_status )
503d2be0
AS
20533ac_cv_func_fork_works=no
20534fi
35996d22 20535rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
503d2be0
AS
20536fi
20537fi
c0d27fcc 20538echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
503d2be0
AS
20539echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20540
6bae0ccf
DL
20541else
20542 ac_cv_func_fork_works=$ac_cv_func_fork
503d2be0
AS
20543fi
20544if test "x$ac_cv_func_fork_works" = xcross; then
20545 case $host in
20546 *-*-amigaos* | *-*-msdosdjgpp*)
20547 # Override, as these systems have only a dummy fork() stub
20548 ac_cv_func_fork_works=no
20549 ;;
20550 *)
20551 ac_cv_func_fork_works=yes
20552 ;;
20553 esac
c0d27fcc
MR
20554 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20555echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
fa0b693c 20556fi
73b77ee5 20557ac_cv_func_vfork_works=$ac_cv_func_vfork
503d2be0 20558if test "x$ac_cv_func_vfork" = xyes; then
c0d27fcc 20559 echo "$as_me:$LINENO: checking for working vfork" >&5
503d2be0
AS
20560echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20561if test "${ac_cv_func_vfork_works+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20563else
20564 if test "$cross_compiling" = yes; then
20565 ac_cv_func_vfork_works=cross
fa0b693c 20566else
503d2be0 20567 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20568/* confdefs.h. */
20569_ACEOF
20570cat confdefs.h >>conftest.$ac_ext
20571cat >>conftest.$ac_ext <<_ACEOF
20572/* end confdefs.h. */
73b77ee5
GM
20573/* Thanks to Paul Eggert for this test. */
20574#include <stdio.h>
19650fd6 20575#include <stdlib.h>
fa0b693c 20576#include <sys/types.h>
73b77ee5 20577#include <sys/stat.h>
19650fd6 20578#include <sys/wait.h>
503d2be0
AS
20579#if HAVE_UNISTD_H
20580# include <unistd.h>
73b77ee5 20581#endif
503d2be0
AS
20582#if HAVE_VFORK_H
20583# include <vfork.h>
73b77ee5
GM
20584#endif
20585/* On some sparc systems, changes by the child to local and incoming
503d2be0
AS
20586 argument registers are propagated back to the parent. The compiler
20587 is told about this with #include <vfork.h>, but some compilers
20588 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20589 static variable whose address is put into a register that is
20590 clobbered by the vfork. */
19650fd6 20591static void
fa0b693c 20592#ifdef __cplusplus
73b77ee5 20593sparc_address_test (int arg)
503d2be0 20594# else
73b77ee5 20595sparc_address_test (arg) int arg;
fa0b693c 20596#endif
fa0b693c 20597{
73b77ee5
GM
20598 static pid_t child;
20599 if (!child) {
20600 child = vfork ();
20601 if (child < 0) {
20602 perror ("vfork");
20603 _exit(2);
20604 }
20605 if (!child) {
20606 arg = getpid();
20607 write(-1, "", 0);
20608 _exit (arg);
20609 }
20610 }
20611}
503d2be0
AS
20612
20613int
20614main ()
20615{
73b77ee5
GM
20616 pid_t parent = getpid ();
20617 pid_t child;
fa0b693c 20618
19650fd6 20619 sparc_address_test (0);
fa0b693c 20620
73b77ee5 20621 child = vfork ();
fa0b693c 20622
73b77ee5 20623 if (child == 0) {
503d2be0
AS
20624 /* Here is another test for sparc vfork register problems. This
20625 test uses lots of local variables, at least as many local
20626 variables as main has allocated so far including compiler
20627 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20628 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20629 reuse the register of parent for one of the local variables,
20630 since it will think that parent can't possibly be used any more
20631 in this routine. Assigning to the local variable will thus
20632 munge parent in the parent process. */
73b77ee5
GM
20633 pid_t
20634 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20635 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20636 /* Convince the compiler that p..p7 are live; otherwise, it might
20637 use the same hardware register for all 8 local variables. */
20638 if (p != p1 || p != p2 || p != p3 || p != p4
20639 || p != p5 || p != p6 || p != p7)
20640 _exit(1);
fa0b693c 20641
503d2be0
AS
20642 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20643 from child file descriptors. If the child closes a descriptor
20644 before it execs or exits, this munges the parent's descriptor
20645 as well. Test for this by closing stdout in the child. */
73b77ee5
GM
20646 _exit(close(fileno(stdout)) != 0);
20647 } else {
20648 int status;
20649 struct stat st;
20650
20651 while (wait(&status) != child)
20652 ;
20653 exit(
20654 /* Was there some problem with vforking? */
20655 child < 0
20656
20657 /* Did the child fail? (This shouldn't happen.) */
20658 || status
20659
20660 /* Did the vfork/compiler bug occur? */
20661 || parent != getpid()
fa0b693c 20662
73b77ee5
GM
20663 /* Did the file descriptor bug occur? */
20664 || fstat(fileno(stdout), &st) != 0
20665 );
20666 }
20667}
503d2be0
AS
20668_ACEOF
20669rm -f conftest$ac_exeext
c0d27fcc 20670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
503d2be0
AS
20671 (eval $ac_link) 2>&5
20672 ac_status=$?
c0d27fcc 20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 20674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
c0d27fcc 20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
20676 (eval $ac_try) 2>&5
20677 ac_status=$?
c0d27fcc 20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 20679 (exit $ac_status); }; }; then
73b77ee5 20680 ac_cv_func_vfork_works=yes
fa0b693c 20681else
503d2be0
AS
20682 echo "$as_me: program exited with status $ac_status" >&5
20683echo "$as_me: failed program was:" >&5
19650fd6
AS
20684sed 's/^/| /' conftest.$ac_ext >&5
20685
c0d27fcc 20686( exit $ac_status )
503d2be0
AS
20687ac_cv_func_vfork_works=no
20688fi
35996d22 20689rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fa0b693c 20690fi
fa0b693c 20691fi
c0d27fcc 20692echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
503d2be0 20693echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
fa0b693c 20694
503d2be0
AS
20695fi;
20696if test "x$ac_cv_func_fork_works" = xcross; then
35996d22 20697 ac_cv_func_vfork_works=$ac_cv_func_vfork
c0d27fcc
MR
20698 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20699echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
fa0b693c
GM
20700fi
20701
503d2be0
AS
20702if test "x$ac_cv_func_vfork_works" = xyes; then
20703
c0d27fcc 20704cat >>confdefs.h <<\_ACEOF
503d2be0 20705#define HAVE_WORKING_VFORK 1
c0d27fcc 20706_ACEOF
503d2be0
AS
20707
20708else
20709
c0d27fcc 20710cat >>confdefs.h <<\_ACEOF
73b77ee5 20711#define vfork fork
c0d27fcc 20712_ACEOF
fa0b693c
GM
20713
20714fi
503d2be0
AS
20715if test "x$ac_cv_func_fork_works" = xyes; then
20716
c0d27fcc 20717cat >>confdefs.h <<\_ACEOF
503d2be0 20718#define HAVE_WORKING_FORK 1
c0d27fcc 20719_ACEOF
fa0b693c 20720
503d2be0 20721fi
647847ea 20722
c0d27fcc 20723
6a3a24fa
JD
20724echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20725echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20726if test "${emacs_cv_langinfo_codeset+set}" = set; then
20727 echo $ECHO_N "(cached) $ECHO_C" >&6
20728else
20729 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20730/* confdefs.h. */
20731_ACEOF
20732cat confdefs.h >>conftest.$ac_ext
20733cat >>conftest.$ac_ext <<_ACEOF
20734/* end confdefs.h. */
6a3a24fa
JD
20735#include <langinfo.h>
20736int
20737main ()
20738{
20739char* cs = nl_langinfo(CODESET);
20740 ;
20741 return 0;
20742}
20743_ACEOF
20744rm -f conftest.$ac_objext conftest$ac_exeext
20745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35996d22 20746 (eval $ac_link) 2>conftest.er1
6a3a24fa 20747 ac_status=$?
35996d22
AS
20748 grep -v '^ *+' conftest.er1 >conftest.err
20749 rm -f conftest.er1
20750 cat conftest.err >&5
6a3a24fa
JD
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } &&
35996d22
AS
20753 { ac_try='test -z "$ac_c_werror_flag"
20754 || test ! -s conftest.err'
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20757 ac_status=$?
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; } &&
20760 { ac_try='test -s conftest$ac_exeext'
6a3a24fa
JD
20761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20762 (eval $ac_try) 2>&5
20763 ac_status=$?
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; }; then
20766 emacs_cv_langinfo_codeset=yes
20767else
20768 echo "$as_me: failed program was:" >&5
19650fd6
AS
20769sed 's/^/| /' conftest.$ac_ext >&5
20770
6a3a24fa
JD
20771emacs_cv_langinfo_codeset=no
20772fi
35996d22
AS
20773rm -f conftest.err conftest.$ac_objext \
20774 conftest$ac_exeext conftest.$ac_ext
6a3a24fa
JD
20775
20776fi
20777echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20778echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20779if test $emacs_cv_langinfo_codeset = yes; then
20780
20781cat >>confdefs.h <<\_ACEOF
20782#define HAVE_LANGINFO_CODESET 1
20783_ACEOF
20784
20785fi
20786
c0d27fcc 20787echo "$as_me:$LINENO: checking for size_t" >&5
503d2be0
AS
20788echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20789if test "${ac_cv_type_size_t+set}" = set; then
20790 echo $ECHO_N "(cached) $ECHO_C" >&6
8730a8da 20791else
503d2be0 20792 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20793/* confdefs.h. */
20794_ACEOF
20795cat confdefs.h >>conftest.$ac_ext
20796cat >>conftest.$ac_ext <<_ACEOF
20797/* end confdefs.h. */
503d2be0
AS
20798$ac_includes_default
20799int
20800main ()
20801{
20802if ((size_t *) 0)
20803 return 0;
20804if (sizeof (size_t))
20805 return 0;
20806 ;
20807 return 0;
20808}
20809_ACEOF
20810rm -f conftest.$ac_objext
c0d27fcc 20811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 20812 (eval $ac_compile) 2>conftest.er1
503d2be0 20813 ac_status=$?
35996d22
AS
20814 grep -v '^ *+' conftest.er1 >conftest.err
20815 rm -f conftest.er1
20816 cat conftest.err >&5
c0d27fcc 20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 20818 (exit $ac_status); } &&
35996d22
AS
20819 { ac_try='test -z "$ac_c_werror_flag"
20820 || test ! -s conftest.err'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; } &&
20826 { ac_try='test -s conftest.$ac_objext'
c0d27fcc 20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
503d2be0
AS
20828 (eval $ac_try) 2>&5
20829 ac_status=$?
c0d27fcc 20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
503d2be0 20831 (exit $ac_status); }; }; then
8730a8da
DL
20832 ac_cv_type_size_t=yes
20833else
503d2be0 20834 echo "$as_me: failed program was:" >&5
19650fd6
AS
20835sed 's/^/| /' conftest.$ac_ext >&5
20836
503d2be0 20837ac_cv_type_size_t=no
8730a8da 20838fi
35996d22 20839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8730a8da 20840fi
c0d27fcc 20841echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
503d2be0
AS
20842echo "${ECHO_T}$ac_cv_type_size_t" >&6
20843if test $ac_cv_type_size_t = yes; then
503d2be0 20844
c0d27fcc
MR
20845cat >>confdefs.h <<_ACEOF
20846#define HAVE_SIZE_T 1
20847_ACEOF
20848
8730a8da
DL
20849
20850fi
20851
c0d27fcc 20852
973a76b1
DL
20853echo "$as_me:$LINENO: checking for mbstate_t" >&5
20854echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
20855if test "${ac_cv_type_mbstate_t+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20857else
20858 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20859/* confdefs.h. */
20860_ACEOF
20861cat confdefs.h >>conftest.$ac_ext
20862cat >>conftest.$ac_ext <<_ACEOF
20863/* end confdefs.h. */
973a76b1
DL
20864$ac_includes_default
20865# include <wchar.h>
20866int
20867main ()
20868{
20869mbstate_t x; return sizeof x;
20870 ;
20871 return 0;
20872}
20873_ACEOF
20874rm -f conftest.$ac_objext
20875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 20876 (eval $ac_compile) 2>conftest.er1
973a76b1 20877 ac_status=$?
35996d22
AS
20878 grep -v '^ *+' conftest.er1 >conftest.err
20879 rm -f conftest.er1
20880 cat conftest.err >&5
973a76b1
DL
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } &&
35996d22
AS
20883 { ac_try='test -z "$ac_c_werror_flag"
20884 || test ! -s conftest.err'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; } &&
20890 { ac_try='test -s conftest.$ac_objext'
973a76b1
DL
20891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892 (eval $ac_try) 2>&5
20893 ac_status=$?
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; }; then
20896 ac_cv_type_mbstate_t=yes
20897else
20898 echo "$as_me: failed program was:" >&5
19650fd6
AS
20899sed 's/^/| /' conftest.$ac_ext >&5
20900
973a76b1
DL
20901ac_cv_type_mbstate_t=no
20902fi
35996d22 20903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
973a76b1
DL
20904fi
20905echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
20906echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
20907 if test $ac_cv_type_mbstate_t = yes; then
20908
20909cat >>confdefs.h <<\_ACEOF
20910#define HAVE_MBSTATE_T 1
20911_ACEOF
20912
20913 else
20914
20915cat >>confdefs.h <<\_ACEOF
20916#define mbstate_t int
20917_ACEOF
20918
20919 fi
20920
22044edf
DL
20921echo "$as_me:$LINENO: checking for C restrict keyword" >&5
20922echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
20923if test "${emacs_cv_c_restrict+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20925else
20926 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20927/* confdefs.h. */
20928_ACEOF
20929cat confdefs.h >>conftest.$ac_ext
20930cat >>conftest.$ac_ext <<_ACEOF
20931/* end confdefs.h. */
22044edf
DL
20932void fred (int *restrict x);
20933int
20934main ()
20935{
b936fae4 20936
22044edf
DL
20937 ;
20938 return 0;
20939}
c0d27fcc 20940_ACEOF
22044edf
DL
20941rm -f conftest.$ac_objext
20942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 20943 (eval $ac_compile) 2>conftest.er1
22044edf 20944 ac_status=$?
35996d22
AS
20945 grep -v '^ *+' conftest.er1 >conftest.err
20946 rm -f conftest.er1
20947 cat conftest.err >&5
22044edf
DL
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); } &&
35996d22
AS
20950 { ac_try='test -z "$ac_c_werror_flag"
20951 || test ! -s conftest.err'
20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953 (eval $ac_try) 2>&5
20954 ac_status=$?
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; } &&
20957 { ac_try='test -s conftest.$ac_objext'
22044edf
DL
20958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959 (eval $ac_try) 2>&5
20960 ac_status=$?
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; }; then
20963 emacs_cv_c_restrict=yes
20964else
20965 echo "$as_me: failed program was:" >&5
19650fd6
AS
20966sed 's/^/| /' conftest.$ac_ext >&5
20967
22044edf 20968cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
20969/* confdefs.h. */
20970_ACEOF
20971cat confdefs.h >>conftest.$ac_ext
20972cat >>conftest.$ac_ext <<_ACEOF
20973/* end confdefs.h. */
22044edf
DL
20974void fred (int *__restrict x);
20975int
20976main ()
20977{
c0d27fcc 20978
22044edf
DL
20979 ;
20980 return 0;
20981}
c0d27fcc 20982_ACEOF
22044edf
DL
20983rm -f conftest.$ac_objext
20984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 20985 (eval $ac_compile) 2>conftest.er1
22044edf 20986 ac_status=$?
35996d22
AS
20987 grep -v '^ *+' conftest.er1 >conftest.err
20988 rm -f conftest.er1
20989 cat conftest.err >&5
22044edf
DL
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } &&
35996d22
AS
20992 { ac_try='test -z "$ac_c_werror_flag"
20993 || test ! -s conftest.err'
20994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995 (eval $ac_try) 2>&5
20996 ac_status=$?
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; } &&
20999 { ac_try='test -s conftest.$ac_objext'
22044edf
DL
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21002 ac_status=$?
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; }; then
21005 emacs_cv_c_restrict=__restrict
21006else
21007 echo "$as_me: failed program was:" >&5
19650fd6
AS
21008sed 's/^/| /' conftest.$ac_ext >&5
21009
22044edf 21010emacs_cv_c_restrict=no
ba4481b5 21011fi
35996d22 21012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba4481b5 21013fi
35996d22 21014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ba4481b5 21015fi
22044edf
DL
21016echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21017echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21018case "$emacs_cv_c_restrict" in
21019 yes) emacs_restrict=restrict;;
21020 no) emacs_restrict="";;
21021 *) emacs_restrict="$emacs_cv_c_restrict";;
21022esac
21023if test "$emacs_restrict" != __restrict; then
b936fae4 21024
22044edf
DL
21025cat >>confdefs.h <<_ACEOF
21026#define __restrict $emacs_restrict
c0d27fcc 21027_ACEOF
ba4481b5
DL
21028
21029fi
ba4481b5 21030
22044edf
DL
21031echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21032echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21033if test "${emacs_cv_c_restrict_arr+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21035else
21036 cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
21037/* confdefs.h. */
21038_ACEOF
21039cat confdefs.h >>conftest.$ac_ext
21040cat >>conftest.$ac_ext <<_ACEOF
21041/* end confdefs.h. */
22044edf
DL
21042void fred (int x[__restrict]);
21043int
21044main ()
21045{
b936fae4 21046
22044edf
DL
21047 ;
21048 return 0;
21049}
c0d27fcc 21050_ACEOF
22044edf
DL
21051rm -f conftest.$ac_objext
21052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996d22 21053 (eval $ac_compile) 2>conftest.er1
22044edf 21054 ac_status=$?
35996d22
AS
21055 grep -v '^ *+' conftest.er1 >conftest.err
21056 rm -f conftest.er1
21057 cat conftest.err >&5
22044edf
DL
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } &&
35996d22
AS
21060 { ac_try='test -z "$ac_c_werror_flag"
21061 || test ! -s conftest.err'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21064 ac_status=$?
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; } &&
21067 { ac_try='test -s conftest.$ac_objext'
22044edf
DL
21068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069 (eval $ac_try) 2>&5
21070 ac_status=$?
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
21073 emacs_cv_c_restrict_arr=yes
21074else
21075 echo "$as_me: failed program was:" >&5
19650fd6
AS
21076sed 's/^/| /' conftest.$ac_ext >&5
21077
22044edf 21078emacs_cv_c_restrict_arr=no
ba4481b5 21079fi
35996d22 21080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22044edf
DL
21081fi
21082echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21083echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21084if test "$emacs_cv_c_restrict_arr" = yes; then
b936fae4 21085
c0d27fcc 21086cat >>confdefs.h <<\_ACEOF
22044edf 21087#define __restrict_arr __restrict
c0d27fcc 21088_ACEOF
ba4481b5 21089
ba4481b5
DL
21090fi
21091
c0d27fcc 21092
c0d27fcc 21093
22044edf
DL
21094# Set up the CFLAGS for real compilation, so we can substitute it.
21095CFLAGS="$REAL_CFLAGS"
21096CPPFLAGS="$REAL_CPPFLAGS"
21097
21098#### Find out which version of Emacs this is.
21099version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21100 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21101if test x"${version}" = x; then
21102 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21103echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21104 { (exit 1); exit 1; }; }
21105fi
21106
21107### Specify what sort of things we'll be editing into Makefile and config.h.
21108### Use configuration here uncanonicalized to avoid exceeding size limits.
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
6a3a24fa 21141
22044edf
DL
21142
21143
21144cat >>confdefs.h <<_ACEOF
21145#define EMACS_CONFIGURATION "${canonical}"
21146_ACEOF
21147
21148
21149cat >>confdefs.h <<_ACEOF
21150#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21151_ACEOF
21152
21153
21154cat >>confdefs.h <<_ACEOF
21155#define config_machfile "${machfile}"
21156_ACEOF
21157
21158
21159cat >>confdefs.h <<_ACEOF
21160#define config_opsysfile "${opsysfile}"
21161_ACEOF
21162
21163
21164cat >>confdefs.h <<_ACEOF
21165#define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21166_ACEOF
21167
21168
21169cat >>confdefs.h <<_ACEOF
21170#define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21171_ACEOF
21172
21173
21174cat >>confdefs.h <<_ACEOF
21175#define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21176_ACEOF
21177
21178
21179cat >>confdefs.h <<_ACEOF
21180#define UNEXEC_SRC ${UNEXEC_SRC}
21181_ACEOF
21182
21183
21184if test "${HAVE_X_WINDOWS}" = "yes" ; then
21185
21186cat >>confdefs.h <<\_ACEOF
21187#define HAVE_X_WINDOWS 1
21188_ACEOF
21189
21190fi
21191if test "${USE_X_TOOLKIT}" != "none" ; then
21192
21193cat >>confdefs.h <<\_ACEOF
21194#define USE_X_TOOLKIT 1
21195_ACEOF
21196
21197fi
21198if test "${HAVE_X11}" = "yes" ; then
21199
21200cat >>confdefs.h <<\_ACEOF
21201#define HAVE_X11 1
21202_ACEOF
21203
21204fi
21205if test "${HAVE_XFREE386}" = "yes" ; then
21206
21207cat >>confdefs.h <<\_ACEOF
21208#define HAVE_XFREE386 1
21209_ACEOF
21210
21211fi
21212if test "${HAVE_MENUS}" = "yes" ; then
21213
21214cat >>confdefs.h <<\_ACEOF
21215#define HAVE_MENUS 1
21216_ACEOF
21217
21218fi
21219if test "${GNU_MALLOC}" = "yes" ; then
21220
21221cat >>confdefs.h <<\_ACEOF
21222#define GNU_MALLOC 1
21223_ACEOF
21224
21225fi
21226if test "${REL_ALLOC}" = "yes" ; then
21227
21228cat >>confdefs.h <<\_ACEOF
21229#define REL_ALLOC 1
21230_ACEOF
21231
21232fi
21233
21234
21235
c0d27fcc
MR
21236
21237
ba4481b5 21238#### Report on what we decided to do.
488dd4c4
JD
21239#### Report GTK as a toolkit, even if it doesn't use Xt.
21240#### It makes printing result more understandable as using GTK sets
21241#### toolkit_scroll_bars to yes by default.
21242if test "${HAVE_GTK}" = "yes"; then
21243 USE_X_TOOLKIT=GTK
21244fi
21245
ba4481b5
DL
21246echo "
21247Configured for \`${canonical}'.
21248
21249 Where should the build process find the source code? ${srcdir}
21250 What operating system and machine description files should Emacs use?
21251 \`${opsysfile}' and \`${machfile}'
21252 What compiler should emacs be built with? ${CC} ${CFLAGS}
21253 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
73b77ee5 21254 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
ef9e4345 21255 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
ba4481b5 21256 What window system should Emacs use? ${window_system}
8e967cf7 21257 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
ba4481b5
DL
21258
21259if test -n "${x_includes}"; then
21260echo " Where do we find X Windows header files? ${x_includes}"
21261else
21262echo " Where do we find X Windows header files? Standard dirs"
21263fi
21264if test -n "${x_libraries}"; then
21265echo " Where do we find X Windows libraries? ${x_libraries}"
21266else
21267echo " Where do we find X Windows libraries? Standard dirs"
21268fi
21269
21270echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21271echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21272echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21273echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21274echo " Does Emacs use -lungif? ${HAVE_GIF}"
21275echo " Does Emacs use -lpng? ${HAVE_PNG}"
21276echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21277echo
21278
21279# Remove any trailing slashes in these variables.
21280test "${prefix}" != NONE &&
21281 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21282test "${exec_prefix}" != NONE &&
21283 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21284
d0e9bfd2
GM
21285## Check if the C preprocessor will convert `..' to `. .'. If so, set
21286## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21287## from Makefile.c can correctly provide the arg `-traditional' to the
21288## C preprocessor.
21289
503d2be0 21290cat >conftest.$ac_ext <<_ACEOF
19650fd6
AS
21291/* confdefs.h. */
21292_ACEOF
21293cat confdefs.h >>conftest.$ac_ext
21294cat >>conftest.$ac_ext <<_ACEOF
21295/* end confdefs.h. */
d0e9bfd2 21296yes..yes
503d2be0 21297_ACEOF
d0e9bfd2 21298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6bae0ccf 21299 $EGREP "yes..yes" >/dev/null 2>&1; then
d0e9bfd2
GM
21300 CPP_NEED_TRADITIONAL=no
21301else
d0e9bfd2
GM
21302 CPP_NEED_TRADITIONAL=yes
21303fi
21304rm -f conftest*
21305
c0d27fcc 21306
6bae0ccf
DL
21307 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"
21308 ac_config_commands="$ac_config_commands default"
503d2be0 21309cat >confcache <<\_ACEOF
ba4481b5
DL
21310# This file is a shell script that caches the results of configure
21311# tests run on this system so they can be shared between configure
503d2be0
AS
21312# scripts and configure runs, see configure's option --config-cache.
21313# It is not useful on other systems. If it contains results you don't
21314# want to keep, you may remove or edit it.
ba4481b5 21315#
503d2be0
AS
21316# config.status only pays attention to the cache file if you give it
21317# the --recheck option to rerun configure.
ba4481b5 21318#
6bae0ccf 21319# `ac_cv_env_foo' variables (set or unset) will be overridden when
503d2be0
AS
21320# loading this file, other *unset* `ac_cv_foo' will be assigned the
21321# following values.
21322
21323_ACEOF
21324
ba4481b5
DL
21325# The following way of writing the cache mishandles newlines in values,
21326# but we know of no workaround that is simple, portable, and efficient.
21327# So, don't put newlines in cache variables' values.
21328# Ultrix sh set writes to stderr and can't be redirected directly,
21329# and sets the high bit in the cache file unless we assign to the vars.
503d2be0
AS
21330{
21331 (set) 2>&1 |
21332 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21333 *ac_space=\ *)
21334 # `set' does not quote correctly, so add quotes (double-quote
21335 # substitution turns \\\\ into \\, and sed turns \\ into \).
21336 sed -n \
35996d22
AS
21337 "s/'/'\\\\''/g;
21338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
503d2be0
AS
21339 ;;
21340 *)
21341 # `set' quotes correctly as required by POSIX, so do not add quotes.
21342 sed -n \
35996d22 21343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
503d2be0
AS
21344 ;;
21345 esac;
21346} |
21347 sed '
21348 t clear
21349 : clear
21350 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21351 t end
21352 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21353 : end' >>confcache
19650fd6 21354if diff $cache_file confcache >/dev/null 2>&1; then :; else
ba4481b5 21355 if test -w $cache_file; then
503d2be0
AS
21356 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21357 cat confcache >$cache_file
ba4481b5
DL
21358 else
21359 echo "not updating unwritable cache $cache_file"
21360 fi
21361fi
21362rm -f confcache
21363
ba4481b5
DL
21364test "x$prefix" = xNONE && prefix=$ac_default_prefix
21365# Let make expand exec_prefix.
21366test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21367
503d2be0
AS
21368# VPATH may cause trouble with some makes, so we remove $(srcdir),
21369# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21370# trailing colons and then remove the whole line if VPATH becomes empty
21371# (actually we leave an empty line to preserve line numbers).
ba4481b5 21372if test "x$srcdir" = x.; then
35996d22 21373 ac_vpsub='/^[ ]*VPATH[ ]*=/{
503d2be0
AS
21374s/:*\$(srcdir):*/:/;
21375s/:*\${srcdir}:*/:/;
21376s/:*@srcdir@:*/:/;
35996d22 21377s/^\([^=]*=[ ]*\):*/\1/;
503d2be0 21378s/:*$//;
35996d22 21379s/^[^=]*=[ ]*$//;
503d2be0 21380}'
ba4481b5
DL
21381fi
21382
ba4481b5
DL
21383DEFS=-DHAVE_CONFIG_H
21384
6bae0ccf
DL
21385ac_libobjs=
21386ac_ltlibobjs=
21387for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21388 # 1. Remove the extension, and $U if already installed.
21389 ac_i=`echo "$ac_i" |
35996d22 21390 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6bae0ccf
DL
21391 # 2. Add them.
21392 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21393 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21394done
21395LIBOBJS=$ac_libobjs
21396
21397LTLIBOBJS=$ac_ltlibobjs
21398
21399
c0d27fcc 21400
ba4481b5 21401: ${CONFIG_STATUS=./config.status}
503d2be0
AS
21402ac_clean_files_save=$ac_clean_files
21403ac_clean_files="$ac_clean_files $CONFIG_STATUS"
c0d27fcc 21404{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
503d2be0
AS
21405echo "$as_me: creating $CONFIG_STATUS" >&6;}
21406cat >$CONFIG_STATUS <<_ACEOF
21407#! $SHELL
c0d27fcc 21408# Generated by $as_me.
ba4481b5 21409# Run this file to recreate the current configuration.
ba4481b5 21410# Compiler output produced by configure, useful for debugging
503d2be0 21411# configure, is in config.log if it exists.
ba4481b5 21412
503d2be0 21413debug=false
19650fd6
AS
21414ac_cs_recheck=false
21415ac_cs_silent=false
503d2be0 21416SHELL=\${CONFIG_SHELL-$SHELL}
503d2be0
AS
21417_ACEOF
21418
21419cat >>$CONFIG_STATUS <<\_ACEOF
c0d27fcc
MR
21420## --------------------- ##
21421## M4sh Initialization. ##
21422## --------------------- ##
21423
503d2be0
AS
21424# Be Bourne compatible
21425if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21426 emulate sh
21427 NULLCMD=:
6bae0ccf
DL
21428 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21429 # is contrary to our usage. Disable this feature.
21430 alias -g '${1+"$@"}'='"$@"'
503d2be0
AS
21431elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21432 set -o posix
21433fi
35996d22 21434DUALCASE=1; export DUALCASE # for MKS sh
503d2be0 21435
c0d27fcc 21436# Support unset when possible.
35996d22 21437if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
c0d27fcc
MR
21438 as_unset=unset
21439else
21440 as_unset=false
21441fi
21442
6bae0ccf
DL
21443
21444# Work around bugs in pre-3.0 UWIN ksh.
21445$as_unset ENV MAIL MAILPATH
21446PS1='$ '
21447PS2='> '
21448PS4='+ '
21449
21450# NLS nuisances.
19650fd6
AS
21451for as_var in \
21452 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21453 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21454 LC_TELEPHONE LC_TIME
6bae0ccf 21455do
35996d22 21456 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6bae0ccf
DL
21457 eval $as_var=C; export $as_var
21458 else
21459 $as_unset $as_var
21460 fi
21461done
21462
21463# Required to use basename.
21464if expr a : '\(a\)' >/dev/null 2>&1; then
21465 as_expr=expr
21466else
21467 as_expr=false
21468fi
21469
21470if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21471 as_basename=basename
21472else
21473 as_basename=false
21474fi
c0d27fcc
MR
21475
21476
503d2be0 21477# Name of the executable.
6bae0ccf 21478as_me=`$as_basename "$0" ||
c0d27fcc
MR
21479$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21480 X"$0" : 'X\(//\)$' \| \
21481 X"$0" : 'X\(/\)$' \| \
21482 . : '\(.\)' 2>/dev/null ||
21483echo X/"$0" |
21484 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21485 /^X\/\(\/\/\)$/{ s//\1/; q; }
21486 /^X\/\(\/\).*/{ s//\1/; q; }
21487 s/.*/./; q'`
21488
6bae0ccf 21489
c0d27fcc
MR
21490# PATH needs CR, and LINENO needs CR and PATH.
21491# Avoid depending upon Character Ranges.
21492as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21493as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21494as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21495as_cr_digits='0123456789'
21496as_cr_alnum=$as_cr_Letters$as_cr_digits
21497
21498# The user is always right.
21499if test "${PATH_SEPARATOR+set}" != set; then
19650fd6
AS
21500 echo "#! /bin/sh" >conf$$.sh
21501 echo "exit 0" >>conf$$.sh
21502 chmod +x conf$$.sh
21503 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
c0d27fcc
MR
21504 PATH_SEPARATOR=';'
21505 else
21506 PATH_SEPARATOR=:
21507 fi
19650fd6 21508 rm -f conf$$.sh
c0d27fcc
MR
21509fi
21510
21511
21512 as_lineno_1=$LINENO
21513 as_lineno_2=$LINENO
21514 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21515 test "x$as_lineno_1" != "x$as_lineno_2" &&
21516 test "x$as_lineno_3" = "x$as_lineno_2" || {
21517 # Find who we are. Look in the path if we contain no path at all
21518 # relative or not.
21519 case $0 in
21520 *[\\/]* ) as_myself=$0 ;;
21521 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21522for as_dir in $PATH
21523do
21524 IFS=$as_save_IFS
21525 test -z "$as_dir" && as_dir=.
21526 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21527done
21528
21529 ;;
21530 esac
21531 # We did not find ourselves, most probably we were run as `sh COMMAND'
21532 # in which case we are not to be found in the path.
21533 if test "x$as_myself" = x; then
21534 as_myself=$0
21535 fi
21536 if test ! -f "$as_myself"; then
21537 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21538echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21539 { (exit 1); exit 1; }; }
21540 fi
21541 case $CONFIG_SHELL in
21542 '')
21543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21544for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21545do
21546 IFS=$as_save_IFS
21547 test -z "$as_dir" && as_dir=.
21548 for as_base in sh bash ksh sh5; do
21549 case $as_dir in
21550 /*)
21551 if ("$as_dir/$as_base" -c '
21552 as_lineno_1=$LINENO
21553 as_lineno_2=$LINENO
21554 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21555 test "x$as_lineno_1" != "x$as_lineno_2" &&
21556 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6bae0ccf
DL
21557 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21558 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
c0d27fcc
MR
21559 CONFIG_SHELL=$as_dir/$as_base
21560 export CONFIG_SHELL
21561 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21562 fi;;
21563 esac
21564 done
21565done
21566;;
21567 esac
21568
21569 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21570 # uniformly replaced by the line number. The first 'sed' inserts a
21571 # line-number line before each line; the second 'sed' does the real
21572 # work. The second script uses 'N' to pair each line-number line
21573 # with the numbered line, and appends trailing '-' during
21574 # substitution so that $LINENO is not a special case at line end.
21575 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21576 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21577 sed '=' <$as_myself |
21578 sed '
21579 N
21580 s,$,-,
21581 : loop
21582 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21583 t loop
21584 s,-$,,
21585 s,^['$as_cr_digits']*\n,,
21586 ' >$as_me.lineno &&
21587 chmod +x $as_me.lineno ||
21588 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21589echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21590 { (exit 1); exit 1; }; }
21591
21592 # Don't try to exec as it changes $[0], causing all sort of problems
21593 # (the dirname of $[0] is not the place where we might find the
21594 # original and so on. Autoconf is especially sensible to this).
21595 . ./$as_me.lineno
21596 # Exit status is that of the last command.
21597 exit
21598}
21599
21600
21601case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21602 *c*,-n*) ECHO_N= ECHO_C='
21603' ECHO_T=' ' ;;
21604 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21605 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21606esac
503d2be0
AS
21607
21608if expr a : '\(a\)' >/dev/null 2>&1; then
21609 as_expr=expr
21610else
21611 as_expr=false
21612fi
21613
21614rm -f conf$$ conf$$.exe conf$$.file
21615echo >conf$$.file
21616if ln -s conf$$.file conf$$ 2>/dev/null; then
21617 # We could just check for DJGPP; but this test a) works b) is more generic
21618 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21619 if test -f conf$$.exe; then
21620 # Don't use ln at all; we don't have any links
21621 as_ln_s='cp -p'
21622 else
21623 as_ln_s='ln -s'
21624 fi
21625elif ln conf$$.file conf$$ 2>/dev/null; then
21626 as_ln_s=ln
21627else
21628 as_ln_s='cp -p'
21629fi
21630rm -f conf$$ conf$$.exe conf$$.file
21631
6bae0ccf
DL
21632if mkdir -p . 2>/dev/null; then
21633 as_mkdir_p=:
21634else
35996d22 21635 test -d ./-p && rmdir ./-p
6bae0ccf
DL
21636 as_mkdir_p=false
21637fi
21638
503d2be0
AS
21639as_executable_p="test -f"
21640
c0d27fcc 21641# Sed expression to map a string onto a valid CPP name.
35996d22 21642as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c0d27fcc
MR
21643
21644# Sed expression to map a string onto a valid variable name.
35996d22 21645as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
503d2be0 21646
503d2be0
AS
21647
21648# IFS
21649# We need space, tab and new line, in precisely that order.
21650as_nl='
21651'
21652IFS=" $as_nl"
21653
21654# CDPATH.
6bae0ccf 21655$as_unset CDPATH
503d2be0
AS
21656
21657exec 6>&1
21658
c0d27fcc
MR
21659# Open the log real soon, to keep \$[0] and so on meaningful, and to
21660# report actual input values of CONFIG_FILES etc. instead of their
21661# values after options handling. Logging --version etc. is OK.
21662exec 5>>config.log
21663{
21664 echo
21665 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21666## Running $as_me. ##
21667_ASBOX
21668} >&5
21669cat >&5 <<_CSEOF
21670
21671This file was extended by $as_me, which was
35996d22 21672generated by GNU Autoconf 2.59. Invocation command line was
c0d27fcc
MR
21673
21674 CONFIG_FILES = $CONFIG_FILES
21675 CONFIG_HEADERS = $CONFIG_HEADERS
21676 CONFIG_LINKS = $CONFIG_LINKS
21677 CONFIG_COMMANDS = $CONFIG_COMMANDS
21678 $ $0 $@
21679
21680_CSEOF
21681echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21682echo >&5
503d2be0
AS
21683_ACEOF
21684
21685# Files that config.status was made for.
21686if test -n "$ac_config_files"; then
21687 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21688fi
21689
21690if test -n "$ac_config_headers"; then
21691 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21692fi
21693
21694if test -n "$ac_config_links"; then
21695 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21696fi
21697
21698if test -n "$ac_config_commands"; then
21699 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21700fi
21701
c0d27fcc 21702cat >>$CONFIG_STATUS <<\_ACEOF
503d2be0
AS
21703
21704ac_cs_usage="\
21705\`$as_me' instantiates files from templates according to the
21706current configuration.
21707
21708Usage: $0 [OPTIONS] [FILE]...
21709
21710 -h, --help print this help, then exit
21711 -V, --version print version number, then exit
19650fd6 21712 -q, --quiet do not print progress messages
503d2be0
AS
21713 -d, --debug don't remove temporary files
21714 --recheck update $as_me by reconfiguring in the same conditions
21715 --file=FILE[:TEMPLATE]
35996d22 21716 instantiate the configuration file FILE
503d2be0 21717 --header=FILE[:TEMPLATE]
35996d22 21718 instantiate the configuration header FILE
503d2be0
AS
21719
21720Configuration files:
21721$config_files
21722
21723Configuration headers:
21724$config_headers
21725
21726Configuration commands:
21727$config_commands
21728
21729Report bugs to <bug-autoconf@gnu.org>."
c0d27fcc 21730_ACEOF
503d2be0 21731
c0d27fcc 21732cat >>$CONFIG_STATUS <<_ACEOF
503d2be0
AS
21733ac_cs_version="\\
21734config.status
35996d22 21735configured by $0, generated by GNU Autoconf 2.59,
503d2be0
AS
21736 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21737
35996d22 21738Copyright (C) 2003 Free Software Foundation, Inc.
503d2be0
AS
21739This config.status script is free software; the Free Software Foundation
21740gives unlimited permission to copy, distribute and modify it."
21741srcdir=$srcdir
21742INSTALL="$INSTALL"
c0d27fcc 21743_ACEOF
503d2be0 21744
c0d27fcc 21745cat >>$CONFIG_STATUS <<\_ACEOF
503d2be0
AS
21746# If no file are specified by the user, then we need to provide default
21747# value. By we need to know if files were specified by the user.
21748ac_need_defaults=:
21749while test $# != 0
ba4481b5 21750do
503d2be0
AS
21751 case $1 in
21752 --*=*)
21753 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21754 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6bae0ccf
DL
21755 ac_shift=:
21756 ;;
21757 -*)
21758 ac_option=$1
21759 ac_optarg=$2
21760 ac_shift=shift
503d2be0 21761 ;;
503d2be0
AS
21762 *) # This is not an option, so the user has probably given explicit
21763 # arguments.
6bae0ccf 21764 ac_option=$1
503d2be0
AS
21765 ac_need_defaults=false;;
21766 esac
21767
6bae0ccf 21768 case $ac_option in
503d2be0 21769 # Handling of the options.
c0d27fcc 21770_ACEOF
f57bd967 21771cat >>$CONFIG_STATUS <<\_ACEOF
19650fd6
AS
21772 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21773 ac_cs_recheck=: ;;
503d2be0
AS
21774 --version | --vers* | -V )
21775 echo "$ac_cs_version"; exit 0 ;;
21776 --he | --h)
21777 # Conflict between --help and --header
c0d27fcc 21778 { { echo "$as_me:$LINENO: error: ambiguous option: $1
503d2be0
AS
21779Try \`$0 --help' for more information." >&5
21780echo "$as_me: error: ambiguous option: $1
21781Try \`$0 --help' for more information." >&2;}
21782 { (exit 1); exit 1; }; };;
21783 --help | --hel | -h )
21784 echo "$ac_cs_usage"; exit 0 ;;
21785 --debug | --d* | -d )
21786 debug=: ;;
21787 --file | --fil | --fi | --f )
6bae0ccf
DL
21788 $ac_shift
21789 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
503d2be0
AS
21790 ac_need_defaults=false;;
21791 --header | --heade | --head | --hea )
6bae0ccf
DL
21792 $ac_shift
21793 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
503d2be0 21794 ac_need_defaults=false;;
19650fd6
AS
21795 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21796 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21797 ac_cs_silent=: ;;
503d2be0
AS
21798
21799 # This is an error.
c0d27fcc 21800 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
503d2be0
AS
21801Try \`$0 --help' for more information." >&5
21802echo "$as_me: error: unrecognized option: $1
21803Try \`$0 --help' for more information." >&2;}
21804 { (exit 1); exit 1; }; } ;;
21805
21806 *) ac_config_targets="$ac_config_targets $1" ;;
21807
ba4481b5 21808 esac
503d2be0 21809 shift
ba4481b5
DL
21810done
21811
19650fd6
AS
21812ac_configure_extra_args=
21813
21814if $ac_cs_silent; then
21815 exec 6>/dev/null
21816 ac_configure_extra_args="$ac_configure_extra_args --silent"
21817fi
21818
21819_ACEOF
21820cat >>$CONFIG_STATUS <<_ACEOF
21821if \$ac_cs_recheck; then
21822 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21823 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21824fi
21825
503d2be0 21826_ACEOF
ba4481b5 21827
c0d27fcc 21828cat >>$CONFIG_STATUS <<_ACEOF
503d2be0
AS
21829#
21830# INIT-COMMANDS section.
21831#
ba4481b5 21832
503d2be0
AS
21833GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
21834
c0d27fcc
MR
21835_ACEOF
21836
503d2be0 21837
c0d27fcc
MR
21838
21839cat >>$CONFIG_STATUS <<\_ACEOF
503d2be0
AS
21840for ac_config_target in $ac_config_targets
21841do
21842 case "$ac_config_target" in
21843 # Handling of arguments.
21844 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21845 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
21846 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
21847 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21848 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
21849 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
21850 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23b24859 21851 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
981626b7 21852 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
503d2be0
AS
21853 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
21854 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21855 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
c0d27fcc 21856 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
503d2be0
AS
21857echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21858 { (exit 1); exit 1; }; };;
21859 esac
ba4481b5 21860done
503d2be0
AS
21861
21862# If the user did not use the arguments to specify the items to instantiate,
21863# then the envvar interface is used. Set only those that are not.
21864# We use the long form for the default assignment because of an extremely
21865# bizarre bug on SunOS 4.1.3.
21866if $ac_need_defaults; then
21867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
ba4481b5 21870fi
503d2be0 21871
19650fd6
AS
21872# Have a temporary directory for convenience. Make it in the build tree
21873# simply because there is no reason to put it here, and in addition,
21874# creating and moving files from /tmp can sometimes cause problems.
503d2be0
AS
21875# Create a temporary directory, and hook for its removal unless debugging.
21876$debug ||
21877{
21878 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21879 trap '{ (exit 1); exit 1; }' 1 2 13 15
21880}
21881
21882# Create a (secure) tmp directory for tmp files.
19650fd6 21883
503d2be0 21884{
19650fd6 21885 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
503d2be0
AS
21886 test -n "$tmp" && test -d "$tmp"
21887} ||
21888{
19650fd6 21889 tmp=./confstat$$-$RANDOM
503d2be0
AS
21890 (umask 077 && mkdir $tmp)
21891} ||
21892{
19650fd6 21893 echo "$me: cannot create a temporary directory in ." >&2
503d2be0
AS
21894 { (exit 1); exit 1; }
21895}
21896
c0d27fcc 21897_ACEOF
503d2be0 21898
c0d27fcc 21899cat >>$CONFIG_STATUS <<_ACEOF
503d2be0
AS
21900
21901#
21902# CONFIG_FILES section.
21903#
21904
21905# No need to generate the scripts if there are no CONFIG_FILES.
21906# This happens for instance when ./config.status config.h
21907if test -n "\$CONFIG_FILES"; then
21908 # Protect against being on the right side of a sed subst in config.status.
21909 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21910 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21911s,@SHELL@,$SHELL,;t t
c0d27fcc
MR
21912s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21913s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21914s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21915s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21916s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21917s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
503d2be0
AS
21918s,@exec_prefix@,$exec_prefix,;t t
21919s,@prefix@,$prefix,;t t
21920s,@program_transform_name@,$program_transform_name,;t t
21921s,@bindir@,$bindir,;t t
21922s,@sbindir@,$sbindir,;t t
21923s,@libexecdir@,$libexecdir,;t t
21924s,@datadir@,$datadir,;t t
21925s,@sysconfdir@,$sysconfdir,;t t
21926s,@sharedstatedir@,$sharedstatedir,;t t
21927s,@localstatedir@,$localstatedir,;t t
21928s,@libdir@,$libdir,;t t
21929s,@includedir@,$includedir,;t t
21930s,@oldincludedir@,$oldincludedir,;t t
21931s,@infodir@,$infodir,;t t
21932s,@mandir@,$mandir,;t t
503d2be0
AS
21933s,@build_alias@,$build_alias,;t t
21934s,@host_alias@,$host_alias,;t t
21935s,@target_alias@,$target_alias,;t t
c0d27fcc 21936s,@DEFS@,$DEFS,;t t
503d2be0
AS
21937s,@ECHO_C@,$ECHO_C,;t t
21938s,@ECHO_N@,$ECHO_N,;t t
21939s,@ECHO_T@,$ECHO_T,;t t
503d2be0 21940s,@LIBS@,$LIBS,;t t
19650fd6 21941s,@MAINT@,$MAINT,;t t
503d2be0
AS
21942s,@build@,$build,;t t
21943s,@build_cpu@,$build_cpu,;t t
21944s,@build_vendor@,$build_vendor,;t t
21945s,@build_os@,$build_os,;t t
21946s,@host@,$host,;t t
21947s,@host_cpu@,$host_cpu,;t t
21948s,@host_vendor@,$host_vendor,;t t
21949s,@host_os@,$host_os,;t t
21950s,@CC@,$CC,;t t
21951s,@CFLAGS@,$CFLAGS,;t t
21952s,@LDFLAGS@,$LDFLAGS,;t t
21953s,@CPPFLAGS@,$CPPFLAGS,;t t
21954s,@ac_ct_CC@,$ac_ct_CC,;t t
21955s,@EXEEXT@,$EXEEXT,;t t
21956s,@OBJEXT@,$OBJEXT,;t t
21957s,@LN_S@,$LN_S,;t t
21958s,@CPP@,$CPP,;t t
21959s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21960s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21961s,@INSTALL_DATA@,$INSTALL_DATA,;t t
503d2be0
AS
21962s,@RANLIB@,$RANLIB,;t t
21963s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9e71690e 21964s,@INSTALL_INFO@,$INSTALL_INFO,;t t
6bae0ccf 21965s,@EGREP@,$EGREP,;t t
503d2be0
AS
21966s,@LIBSOUND@,$LIBSOUND,;t t
21967s,@SET_MAKE@,$SET_MAKE,;t t
488dd4c4
JD
21968s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21969s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21970s,@GTK_LIBS@,$GTK_LIBS,;t t
503d2be0
AS
21971s,@ALLOCA@,$ALLOCA,;t t
21972s,@liblockfile@,$liblockfile,;t t
21973s,@LIBOBJS@,$LIBOBJS,;t t
21974s,@NEED_SETGID@,$NEED_SETGID,;t t
21975s,@KMEM_GROUP@,$KMEM_GROUP,;t t
21976s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
21977s,@version@,$version,;t t
21978s,@configuration@,$configuration,;t t
21979s,@canonical@,$canonical,;t t
21980s,@srcdir@,$srcdir,;t t
21981s,@lispdir@,$lispdir,;t t
21982s,@locallisppath@,$locallisppath,;t t
21983s,@lisppath@,$lisppath,;t t
21984s,@x_default_search_path@,$x_default_search_path,;t t
21985s,@etcdir@,$etcdir,;t t
21986s,@archlibdir@,$archlibdir,;t t
21987s,@docdir@,$docdir,;t t
21988s,@bitmapdir@,$bitmapdir,;t t
98418dba
CW
21989s,@gamedir@,$gamedir,;t t
21990s,@gameuser@,$gameuser,;t t
503d2be0
AS
21991s,@c_switch_system@,$c_switch_system,;t t
21992s,@c_switch_machine@,$c_switch_machine,;t t
21993s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
21994s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
21995s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
21996s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
21997s,@machfile@,$machfile,;t t
21998s,@opsysfile@,$opsysfile,;t t
6a3a24fa 21999s,@carbon_appdir@,$carbon_appdir,;t t
6bae0ccf 22000s,@LTLIBOBJS@,$LTLIBOBJS,;t t
503d2be0
AS
22001CEOF
22002
c0d27fcc 22003_ACEOF
ba4481b5 22004
c0d27fcc 22005 cat >>$CONFIG_STATUS <<\_ACEOF
503d2be0
AS
22006 # Split the substitutions into bite-sized pieces for seds with
22007 # small command number limits, like on Digital OSF/1 and HP-UX.
22008 ac_max_sed_lines=48
22009 ac_sed_frag=1 # Number of current file.
22010 ac_beg=1 # First line for current file.
22011 ac_end=$ac_max_sed_lines # Line after last line for current file.
22012 ac_more_lines=:
22013 ac_sed_cmds=
22014 while $ac_more_lines; do
22015 if test $ac_beg -gt 1; then
22016 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22017 else
22018 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22019 fi
22020 if test ! -s $tmp/subs.frag; then
22021 ac_more_lines=false
22022 else
22023 # The purpose of the label and of the branching condition is to
22024 # speed up the sed processing (if there are no `@' at all, there
22025 # is no need to browse any of the substitutions).
22026 # These are the two extra sed commands mentioned above.
22027 (echo ':t
22028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22029 if test -z "$ac_sed_cmds"; then
35996d22 22030 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
503d2be0 22031 else
35996d22 22032 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
503d2be0
AS
22033 fi
22034 ac_sed_frag=`expr $ac_sed_frag + 1`
22035 ac_beg=$ac_end
22036 ac_end=`expr $ac_end + $ac_max_sed_lines`
22037 fi
22038 done
22039 if test -z "$ac_sed_cmds"; then
22040 ac_sed_cmds=cat
22041 fi
22042fi # test -n "$CONFIG_FILES"
ba4481b5 22043
c0d27fcc
MR
22044_ACEOF
22045cat >>$CONFIG_STATUS <<\_ACEOF
503d2be0 22046for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
ba4481b5 22047 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
503d2be0
AS
22048 case $ac_file in
22049 - | *:- | *:-:* ) # input from stdin
35996d22
AS
22050 cat >$tmp/stdin
22051 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22052 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
503d2be0 22053 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35996d22 22054 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
503d2be0 22055 * ) ac_file_in=$ac_file.in ;;
ba4481b5
DL
22056 esac
22057
503d2be0 22058 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
c0d27fcc
MR
22059 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22060$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35996d22
AS
22061 X"$ac_file" : 'X\(//\)[^/]' \| \
22062 X"$ac_file" : 'X\(//\)$' \| \
22063 X"$ac_file" : 'X\(/\)' \| \
22064 . : '\(.\)' 2>/dev/null ||
503d2be0
AS
22065echo X"$ac_file" |
22066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22068 /^X\(\/\/\)$/{ s//\1/; q; }
22069 /^X\(\/\).*/{ s//\1/; q; }
22070 s/.*/./; q'`
6bae0ccf
DL
22071 { if $as_mkdir_p; then
22072 mkdir -p "$ac_dir"
22073 else
22074 as_dir="$ac_dir"
22075 as_dirs=
22076 while test ! -d "$as_dir"; do
22077 as_dirs="$as_dir $as_dirs"
22078 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22079$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35996d22
AS
22080 X"$as_dir" : 'X\(//\)[^/]' \| \
22081 X"$as_dir" : 'X\(//\)$' \| \
22082 X"$as_dir" : 'X\(/\)' \| \
22083 . : '\(.\)' 2>/dev/null ||
6bae0ccf
DL
22084echo X"$as_dir" |
22085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22087 /^X\(\/\/\)$/{ s//\1/; q; }
22088 /^X\(\/\).*/{ s//\1/; q; }
22089 s/.*/./; q'`
22090 done
22091 test ! -n "$as_dirs" || mkdir $as_dirs
22092 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22093echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22094 { (exit 1); exit 1; }; }; }
503d2be0 22095
c0d27fcc 22096 ac_builddir=.
98418dba 22097
c0d27fcc
MR
22098if test "$ac_dir" != .; then
22099 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22100 # A "../" for each directory in $ac_dir_suffix.
22101 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22102else
22103 ac_dir_suffix= ac_top_builddir=
22104fi
22105
22106case $srcdir in
22107 .) # No --srcdir option. We are building in place.
22108 ac_srcdir=.
22109 if test -z "$ac_top_builddir"; then
22110 ac_top_srcdir=.
22111 else
22112 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22113 fi ;;
22114 [\\/]* | ?:[\\/]* ) # Absolute path.
22115 ac_srcdir=$srcdir$ac_dir_suffix;
22116 ac_top_srcdir=$srcdir ;;
ba4481b5 22117 *) # Relative path.
c0d27fcc
MR
22118 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22119 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22120esac
35996d22
AS
22121
22122# Do not use `cd foo && pwd` to compute absolute paths, because
22123# the directories may not exist.
22124case `pwd` in
22125.) ac_abs_builddir="$ac_dir";;
22126*)
22127 case "$ac_dir" in
22128 .) ac_abs_builddir=`pwd`;;
22129 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22130 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22131 esac;;
22132esac
22133case $ac_abs_builddir in
22134.) ac_abs_top_builddir=${ac_top_builddir}.;;
22135*)
22136 case ${ac_top_builddir}. in
22137 .) ac_abs_top_builddir=$ac_abs_builddir;;
22138 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22139 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22140 esac;;
22141esac
22142case $ac_abs_builddir in
22143.) ac_abs_srcdir=$ac_srcdir;;
22144*)
22145 case $ac_srcdir in
22146 .) ac_abs_srcdir=$ac_abs_builddir;;
22147 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22148 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22149 esac;;
22150esac
22151case $ac_abs_builddir in
22152.) ac_abs_top_srcdir=$ac_top_srcdir;;
22153*)
22154 case $ac_top_srcdir in
22155 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22156 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22157 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22158 esac;;
22159esac
c0d27fcc 22160
ba4481b5 22161
503d2be0
AS
22162 case $INSTALL in
22163 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
c0d27fcc 22164 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
ba4481b5
DL
22165 esac
22166
503d2be0 22167 if test x"$ac_file" != x-; then
c0d27fcc 22168 { echo "$as_me:$LINENO: creating $ac_file" >&5
503d2be0
AS
22169echo "$as_me: creating $ac_file" >&6;}
22170 rm -f "$ac_file"
22171 fi
22172 # Let's still pretend it is `configure' which instantiates (i.e., don't
22173 # use $as_me), people would be surprised to read:
c0d27fcc
MR
22174 # /* config.h. Generated by config.status. */
22175 if test x"$ac_file" = x-; then
22176 configure_input=
22177 else
22178 configure_input="$ac_file. "
22179 fi
22180 configure_input=$configure_input"Generated from `echo $ac_file_in |
35996d22 22181 sed 's,.*/,,'` by configure."
503d2be0
AS
22182
22183 # First look for the input files in the build tree, otherwise in the
22184 # src tree.
22185 ac_file_inputs=`IFS=:
22186 for f in $ac_file_in; do
22187 case $f in
22188 -) echo $tmp/stdin ;;
22189 [\\/$]*)
35996d22
AS
22190 # Absolute (can't be DOS-style, as IFS=:)
22191 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
503d2be0
AS
22192echo "$as_me: error: cannot find input file: $f" >&2;}
22193 { (exit 1); exit 1; }; }
35996d22 22194 echo "$f";;
503d2be0 22195 *) # Relative
35996d22
AS
22196 if test -f "$f"; then
22197 # Build tree
22198 echo "$f"
22199 elif test -f "$srcdir/$f"; then
22200 # Source tree
22201 echo "$srcdir/$f"
22202 else
22203 # /dev/null tree
22204 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
503d2be0
AS
22205echo "$as_me: error: cannot find input file: $f" >&2;}
22206 { (exit 1); exit 1; }; }
35996d22 22207 fi;;
503d2be0
AS
22208 esac
22209 done` || { (exit 1); exit 1; }
c0d27fcc
MR
22210_ACEOF
22211cat >>$CONFIG_STATUS <<_ACEOF
503d2be0
AS
22212 sed "$ac_vpsub
22213$extrasub
c0d27fcc
MR
22214_ACEOF
22215cat >>$CONFIG_STATUS <<\_ACEOF
503d2be0
AS
22216:t
22217/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22218s,@configure_input@,$configure_input,;t t
22219s,@srcdir@,$ac_srcdir,;t t
c0d27fcc 22220s,@abs_srcdir@,$ac_abs_srcdir,;t t
503d2be0 22221s,@top_srcdir@,$ac_top_srcdir,;t t
c0d27fcc
MR
22222s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22223s,@builddir@,$ac_builddir,;t t
22224s,@abs_builddir@,$ac_abs_builddir,;t t
22225s,@top_builddir@,$ac_top_builddir,;t t
22226s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
503d2be0
AS
22227s,@INSTALL@,$ac_INSTALL,;t t
22228" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22229 rm -f $tmp/stdin
22230 if test x"$ac_file" != x-; then
22231 mv $tmp/out $ac_file
22232 else
22233 cat $tmp/out
22234 rm -f $tmp/out
22235 fi
22236
22237done
c0d27fcc
MR
22238_ACEOF
22239cat >>$CONFIG_STATUS <<\_ACEOF
ba4481b5 22240
503d2be0
AS
22241#
22242# CONFIG_HEADER section.
22243#
ba4481b5
DL
22244
22245# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22246# NAME is the cpp macro being defined and VALUE is the value it is being given.
22247#
22248# ac_d sets the value in "#define NAME VALUE" lines.
35996d22
AS
22249ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22250ac_dB='[ ].*$,\1#\2'
503d2be0
AS
22251ac_dC=' '
22252ac_dD=',;t'
22253# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
35996d22 22254ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
503d2be0 22255ac_uB='$,\1#\2define\3'
ba4481b5 22256ac_uC=' '
503d2be0 22257ac_uD=',;t'
ba4481b5 22258
503d2be0 22259for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
ba4481b5 22260 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
503d2be0
AS
22261 case $ac_file in
22262 - | *:- | *:-:* ) # input from stdin
35996d22
AS
22263 cat >$tmp/stdin
22264 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22265 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
503d2be0 22266 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35996d22 22267 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
503d2be0 22268 * ) ac_file_in=$ac_file.in ;;
ba4481b5
DL
22269 esac
22270
c0d27fcc 22271 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
503d2be0
AS
22272echo "$as_me: creating $ac_file" >&6;}
22273
22274 # First look for the input files in the build tree, otherwise in the
22275 # src tree.
22276 ac_file_inputs=`IFS=:
22277 for f in $ac_file_in; do
22278 case $f in
22279 -) echo $tmp/stdin ;;
22280 [\\/$]*)
35996d22
AS
22281 # Absolute (can't be DOS-style, as IFS=:)
22282 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
503d2be0
AS
22283echo "$as_me: error: cannot find input file: $f" >&2;}
22284 { (exit 1); exit 1; }; }
35996d22
AS
22285 # Do quote $f, to prevent DOS paths from being IFS'd.
22286 echo "$f";;
503d2be0 22287 *) # Relative
35996d22
AS
22288 if test -f "$f"; then
22289 # Build tree
22290 echo "$f"
22291 elif test -f "$srcdir/$f"; then
22292 # Source tree
22293 echo "$srcdir/$f"
22294 else
22295 # /dev/null tree
22296 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
503d2be0
AS
22297echo "$as_me: error: cannot find input file: $f" >&2;}
22298 { (exit 1); exit 1; }; }
35996d22 22299 fi;;
503d2be0
AS
22300 esac
22301 done` || { (exit 1); exit 1; }
22302 # Remove the trailing spaces.
35996d22 22303 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
503d2be0 22304
c0d27fcc 22305_ACEOF
503d2be0
AS
22306
22307# Transform confdefs.h into two sed scripts, `conftest.defines' and
22308# `conftest.undefs', that substitutes the proper values into
22309# config.h.in to produce config.h. The first handles `#define'
22310# templates, and the second `#undef' templates.
22311# And first: Protect against being on the right side of a sed subst in
22312# config.status. Protect against being in an unquoted here document
22313# in config.status.
22314rm -f conftest.defines conftest.undefs
22315# Using a here document instead of a string reduces the quoting nightmare.
22316# Putting comments in sed scripts is not portable.
22317#
22318# `end' is used to avoid that the second main sed command (meant for
22319# 0-ary CPP macros) applies to n-ary macro definitions.
22320# See the Autoconf documentation for `clear'.
c0d27fcc 22321cat >confdef2sed.sed <<\_ACEOF
503d2be0
AS
22322s/[\\&,]/\\&/g
22323s,[\\$`],\\&,g
22324t clear
22325: clear
35996d22 22326s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
503d2be0 22327t end
35996d22 22328s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
503d2be0 22329: end
c0d27fcc 22330_ACEOF
503d2be0
AS
22331# If some macros were called several times there might be several times
22332# the same #defines, which is useless. Nevertheless, we may not want to
22333# sort them, since we want the *last* AC-DEFINE to be honored.
22334uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22335sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22336rm -f confdef2sed.sed
ba4481b5
DL
22337
22338# This sed command replaces #undef with comments. This is necessary, for
22339# example, in the case of _POSIX_SOURCE, which is predefined and required
22340# on some systems where configure will not decide to define it.
c0d27fcc 22341cat >>conftest.undefs <<\_ACEOF
35996d22 22342s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
c0d27fcc 22343_ACEOF
ba4481b5 22344
503d2be0
AS
22345# Break up conftest.defines because some shells have a limit on the size
22346# of here documents, and old seds have small limits too (100 cmds).
22347echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
35996d22 22348echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
503d2be0
AS
22349echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22350echo ' :' >>$CONFIG_STATUS
22351rm -f conftest.tail
22352while grep . conftest.defines >/dev/null
22353do
22354 # Write a limited-size here document to $tmp/defines.sed.
22355 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22356 # Speed up: don't consider the non `#define' lines.
35996d22 22357 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
503d2be0
AS
22358 # Work around the forget-to-reset-the-flag bug.
22359 echo 't clr' >>$CONFIG_STATUS
22360 echo ': clr' >>$CONFIG_STATUS
22361 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22362 echo 'CEOF
22363 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22364 rm -f $tmp/in
22365 mv $tmp/out $tmp/in
22366' >>$CONFIG_STATUS
22367 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22368 rm -f conftest.defines
22369 mv conftest.tail conftest.defines
22370done
22371rm -f conftest.defines
6bae0ccf 22372echo ' fi # grep' >>$CONFIG_STATUS
503d2be0 22373echo >>$CONFIG_STATUS
ba4481b5 22374
503d2be0
AS
22375# Break up conftest.undefs because some shells have a limit on the size
22376# of here documents, and old seds have small limits too (100 cmds).
22377echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
ba4481b5 22378rm -f conftest.tail
503d2be0 22379while grep . conftest.undefs >/dev/null
ba4481b5 22380do
503d2be0
AS
22381 # Write a limited-size here document to $tmp/undefs.sed.
22382 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22383 # Speed up: don't consider the non `#undef'
35996d22 22384 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
503d2be0
AS
22385 # Work around the forget-to-reset-the-flag bug.
22386 echo 't clr' >>$CONFIG_STATUS
22387 echo ': clr' >>$CONFIG_STATUS
22388 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
ba4481b5 22389 echo 'CEOF
503d2be0
AS
22390 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22391 rm -f $tmp/in
22392 mv $tmp/out $tmp/in
22393' >>$CONFIG_STATUS
22394 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22395 rm -f conftest.undefs
22396 mv conftest.tail conftest.undefs
ba4481b5 22397done
503d2be0
AS
22398rm -f conftest.undefs
22399
c0d27fcc 22400cat >>$CONFIG_STATUS <<\_ACEOF
503d2be0
AS
22401 # Let's still pretend it is `configure' which instantiates (i.e., don't
22402 # use $as_me), people would be surprised to read:
c0d27fcc 22403 # /* config.h. Generated by config.status. */
503d2be0 22404 if test x"$ac_file" = x-; then
c0d27fcc 22405 echo "/* Generated by configure. */" >$tmp/config.h
ba4481b5 22406 else
c0d27fcc 22407 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
503d2be0
AS
22408 fi
22409 cat $tmp/in >>$tmp/config.h
22410 rm -f $tmp/in
22411 if test x"$ac_file" != x-; then
19650fd6 22412 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
c0d27fcc 22413 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
503d2be0
AS
22414echo "$as_me: $ac_file is unchanged" >&6;}
22415 else
c0d27fcc
MR
22416 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22417$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35996d22
AS
22418 X"$ac_file" : 'X\(//\)[^/]' \| \
22419 X"$ac_file" : 'X\(//\)$' \| \
22420 X"$ac_file" : 'X\(/\)' \| \
22421 . : '\(.\)' 2>/dev/null ||
503d2be0
AS
22422echo X"$ac_file" |
22423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22425 /^X\(\/\/\)$/{ s//\1/; q; }
22426 /^X\(\/\).*/{ s//\1/; q; }
22427 s/.*/./; q'`
6bae0ccf
DL
22428 { if $as_mkdir_p; then
22429 mkdir -p "$ac_dir"
22430 else
22431 as_dir="$ac_dir"
22432 as_dirs=
22433 while test ! -d "$as_dir"; do
22434 as_dirs="$as_dir $as_dirs"
22435 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22436$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35996d22
AS
22437 X"$as_dir" : 'X\(//\)[^/]' \| \
22438 X"$as_dir" : 'X\(//\)$' \| \
22439 X"$as_dir" : 'X\(/\)' \| \
22440 . : '\(.\)' 2>/dev/null ||
6bae0ccf
DL
22441echo X"$as_dir" |
22442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22444 /^X\(\/\/\)$/{ s//\1/; q; }
22445 /^X\(\/\).*/{ s//\1/; q; }
22446 s/.*/./; q'`
22447 done
22448 test ! -n "$as_dirs" || mkdir $as_dirs
22449 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22450echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22451 { (exit 1); exit 1; }; }; }
503d2be0 22452
503d2be0
AS
22453 rm -f $ac_file
22454 mv $tmp/config.h $ac_file
ba4481b5 22455 fi
503d2be0
AS
22456 else
22457 cat $tmp/config.h
22458 rm -f $tmp/config.h
ba4481b5 22459 fi
503d2be0 22460done
c0d27fcc
MR
22461_ACEOF
22462cat >>$CONFIG_STATUS <<\_ACEOF
503d2be0
AS
22463
22464#
22465# CONFIG_COMMANDS section.
22466#
22467for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22468 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22469 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c0d27fcc
MR
22470 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22471$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35996d22
AS
22472 X"$ac_dest" : 'X\(//\)[^/]' \| \
22473 X"$ac_dest" : 'X\(//\)$' \| \
22474 X"$ac_dest" : 'X\(/\)' \| \
22475 . : '\(.\)' 2>/dev/null ||
c0d27fcc
MR
22476echo X"$ac_dest" |
22477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22479 /^X\(\/\/\)$/{ s//\1/; q; }
22480 /^X\(\/\).*/{ s//\1/; q; }
22481 s/.*/./; q'`
35996d22
AS
22482 { if $as_mkdir_p; then
22483 mkdir -p "$ac_dir"
22484 else
22485 as_dir="$ac_dir"
22486 as_dirs=
22487 while test ! -d "$as_dir"; do
22488 as_dirs="$as_dir $as_dirs"
22489 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22490$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22491 X"$as_dir" : 'X\(//\)[^/]' \| \
22492 X"$as_dir" : 'X\(//\)$' \| \
22493 X"$as_dir" : 'X\(/\)' \| \
22494 . : '\(.\)' 2>/dev/null ||
22495echo X"$as_dir" |
22496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22498 /^X\(\/\/\)$/{ s//\1/; q; }
22499 /^X\(\/\).*/{ s//\1/; q; }
22500 s/.*/./; q'`
22501 done
22502 test ! -n "$as_dirs" || mkdir $as_dirs
22503 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22504echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22505 { (exit 1); exit 1; }; }; }
22506
c0d27fcc
MR
22507 ac_builddir=.
22508
22509if test "$ac_dir" != .; then
22510 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22511 # A "../" for each directory in $ac_dir_suffix.
22512 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22513else
22514 ac_dir_suffix= ac_top_builddir=
22515fi
22516
22517case $srcdir in
22518 .) # No --srcdir option. We are building in place.
22519 ac_srcdir=.
22520 if test -z "$ac_top_builddir"; then
22521 ac_top_srcdir=.
22522 else
22523 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22524 fi ;;
22525 [\\/]* | ?:[\\/]* ) # Absolute path.
22526 ac_srcdir=$srcdir$ac_dir_suffix;
22527 ac_top_srcdir=$srcdir ;;
22528 *) # Relative path.
22529 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22530 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22531esac
35996d22
AS
22532
22533# Do not use `cd foo && pwd` to compute absolute paths, because
22534# the directories may not exist.
22535case `pwd` in
22536.) ac_abs_builddir="$ac_dir";;
22537*)
22538 case "$ac_dir" in
22539 .) ac_abs_builddir=`pwd`;;
22540 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22541 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22542 esac;;
22543esac
22544case $ac_abs_builddir in
22545.) ac_abs_top_builddir=${ac_top_builddir}.;;
22546*)
22547 case ${ac_top_builddir}. in
22548 .) ac_abs_top_builddir=$ac_abs_builddir;;
22549 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22550 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22551 esac;;
22552esac
22553case $ac_abs_builddir in
22554.) ac_abs_srcdir=$ac_srcdir;;
22555*)
22556 case $ac_srcdir in
22557 .) ac_abs_srcdir=$ac_abs_builddir;;
22558 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22559 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22560 esac;;
22561esac
22562case $ac_abs_builddir in
22563.) ac_abs_top_srcdir=$ac_top_srcdir;;
22564*)
22565 case $ac_top_srcdir in
22566 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22567 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22568 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22569 esac;;
22570esac
ba4481b5 22571
c0d27fcc
MR
22572
22573 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22574echo "$as_me: executing $ac_dest commands" >&6;}
503d2be0
AS
22575 case $ac_dest in
22576 default )
ba4481b5
DL
22577
22578### Make the necessary directories, if they don't exist.
22579for dir in etc lisp ; do
22580 test -d ${dir} || mkdir ${dir}
22581done
22582
22583# Build src/Makefile from ${srcdir}/src/Makefile.c
22584# and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22585# This must be done after src/config.h is built, since we rely on that file.
22586
22587# Now get this: Some word that is part of the ${srcdir} directory name
22588# or the ${configuration} value might, just might, happen to be an
22589# identifier like `sun4' or `i386' or something, and be predefined by
22590# the C preprocessor to some helpful value like 1, or maybe the empty
22591# string. Needless to say consequent macro substitutions are less
22592# than conducive to the makefile finding the correct directory.
22593undefs="`echo $top_srcdir $configuration $canonical |
22594sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22595 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22596`"
22597
22598echo creating src/epaths.h
4aa6b955 22599${MAKE-make} epaths-force
ba4481b5 22600
1c203d4c
DL
22601# As of 2000-11-19, newest development versions of GNU cpp preprocess
22602# `..' to `. .' unless invoked with -traditional
22603
d0e9bfd2 22604if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
1c203d4c
DL
22605 CPPFLAGS="$CPPFLAGS -traditional"
22606fi
22607
ba4481b5
DL
22608echo creating lib-src/Makefile
22609( cd lib-src
22610 rm -f junk.c junk1.c junk2.c
22611 sed -e '/start of cpp stuff/q' \
22612 < Makefile.c > junk1.c
22613 sed -e '1,/start of cpp stuff/d'\
9a72e4c1 22614 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
ba4481b5 22615 < Makefile.c > junk.c
503d2be0 22616 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
ba4481b5
DL
22617 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22618 cat junk1.c junk2.c > Makefile.new
22619 rm -f junk.c junk1.c junk2.c
22620 chmod 444 Makefile.new
22621 mv -f Makefile.new Makefile
22622)
22623
22624echo creating src/Makefile
22625( cd src
22626 rm -f junk.c junk1.c junk2.c
22627 sed -e '/start of cpp stuff/q' \
22628 < Makefile.c > junk1.c
22629 sed -e '1,/start of cpp stuff/d'\
9a72e4c1 22630 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
ba4481b5 22631 < Makefile.c > junk.c
503d2be0 22632 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
ba4481b5
DL
22633 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22634 cat junk1.c junk2.c > Makefile.new
22635 rm -f junk.c junk1.c junk2.c
22636 chmod 444 Makefile.new
22637 mv -f Makefile.new Makefile
22638)
22639
503d2be0 22640if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
ba4481b5 22641 echo creating src/.gdbinit
503d2be0 22642 echo source $srcdir/src/.gdbinit > src/.gdbinit
ba4481b5
DL
22643fi
22644
22645# This is how we know whether to re-run configure in certain cases.
22646touch src/config.stamp
22647
503d2be0
AS
22648 ;;
22649 esac
22650done
c0d27fcc 22651_ACEOF
503d2be0 22652
c0d27fcc 22653cat >>$CONFIG_STATUS <<\_ACEOF
ba4481b5 22654
503d2be0 22655{ (exit 0); exit 0; }
c0d27fcc 22656_ACEOF
ba4481b5 22657chmod +x $CONFIG_STATUS
503d2be0
AS
22658ac_clean_files=$ac_clean_files_save
22659
c0d27fcc 22660
503d2be0
AS
22661# configure is writing to config.log, and then calls config.status.
22662# config.status does its own redirection, appending to config.log.
22663# Unfortunately, on DOS this fails, as config.log is still kept open
22664# by configure, so config.status won't be able to write to it; its
22665# output is simply discarded. So we exec the FD to /dev/null,
22666# effectively closing config.log, so it can be properly (re)opened and
22667# appended to by config.status. When coming back to configure, we
22668# need to make the FD available again.
22669if test "$no_create" != yes; then
22670 ac_cs_success=:
19650fd6
AS
22671 ac_config_status_args=
22672 test "$silent" = yes &&
22673 ac_config_status_args="$ac_config_status_args --quiet"
503d2be0 22674 exec 5>/dev/null
19650fd6 22675 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
503d2be0
AS
22676 exec 5>>config.log
22677 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22678 # would make configure fail if this is the last instruction.
22679 $ac_cs_success || { (exit 1); exit 1; }
22680fi
f5f47add 22681
c0d27fcc 22682