Thanks to Hugo Gayosso, fix minor typos.
[bpt/emacs.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
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
43do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
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
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
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
77
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
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
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
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
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
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
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Name of the host.
244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245# so uname gets run too.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248exec 6>&1
249
250#
251# Initializations.
252#
253ac_default_prefix=/usr/local
254ac_config_libobj_dir=.
255cross_compiling=no
256subdirs=
257MFLAGS=
258MAKEFLAGS=
259SHELL=${CONFIG_SHELL-/bin/sh}
260
261# Maximum number of lines to put in a shell here document.
262# This variable seems obsolete. It should probably be removed, and
263# only ac_max_sed_lines should be used.
264: ${ac_max_here_lines=38}
265
266# Identity of this package.
267PACKAGE_NAME=
268PACKAGE_TARNAME=
269PACKAGE_VERSION=
270PACKAGE_STRING=
271PACKAGE_BUGREPORT=
272
273ac_unique_file="src/lisp.h"
274ac_config_libobj_dir=src
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
842
843System types:
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846_ACEOF
847fi
848
849if test -n "$ac_init_help"; then
850
851 cat <<\_ACEOF
852
853Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --enable-carbon-app[=DIR] [DIR=/Application]
857 specify install directory for Emacs.app on Mac OS X
858 --disable-largefile omit support for large files
859
860Optional Packages:
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --without-gcc don't use GCC to compile Emacs if GCC is found
864 --without-pop don't support POP mail retrieval with movemail
865 --with-kerberos support Kerberos-authenticated POP
866 --with-kerberos5 support Kerberos version 5 authenticated POP
867 --with-hesiod support Hesiod to get the POP server host
868 --without-sound don't compile with sound support
869 --with-x-toolkit=KIT use an X toolkit
870 (KIT = yes/lucid/athena/motif/gtk/no)
871 --with-xpm use -lXpm for displaying XPM images
872 --with-jpeg use -ljpeg for displaying JPEG images
873 --with-tiff use -ltiff for displaying TIFF images
874 --with-gif use -lungif for displaying GIF images
875 --with-png use -lpng for displaying PNG images
876 --with-gtk use GTK (same as --with-x-toolkit=gtk)
877 --with-pkg-config-prog Path to pkg-config to use for finding GTK
878 --without-toolkit-scroll-bars
879 don't use Motif or Xaw3d scroll bars
880 --without-xim don't use X11 XIM
881 --without-carbon don't use Carbon GUI on Mac OS X
882 --with-x use the X Window System
883
884Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
891 CPP C preprocessor
892
893Use these variables to override the choices made by `configure' or to help
894it to find libraries and programs with nonstandard names/locations.
895
896_ACEOF
897fi
898
899if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
901 ac_popdir=`pwd`
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
904 ac_builddir=.
905
906if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910else
911 ac_dir_suffix= ac_top_builddir=
912fi
913
914case $srcdir in
915 .) # No --srcdir option. We are building in place.
916 ac_srcdir=.
917 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=.
919 else
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 fi ;;
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
925 *) # Relative path.
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928esac
929# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
930# absolute.
931ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
932ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
933ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
935
936 cd $ac_dir
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
939 echo
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
942 echo
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
946 echo
947 $ac_configure --help
948 else
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 fi
951 cd $ac_popdir
952 done
953fi
954
955test -n "$ac_init_help" && exit 0
956if $ac_init_version; then
957 cat <<\_ACEOF
958
959Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
960Free Software Foundation, Inc.
961This configure script is free software; the Free Software Foundation
962gives unlimited permission to copy, distribute and modify it.
963_ACEOF
964 exit 0
965fi
966exec 5>config.log
967cat >&5 <<_ACEOF
968This file contains any messages produced by compilers while
969running configure, to aid debugging if configure makes a mistake.
970
971It was created by $as_me, which was
972generated by GNU Autoconf 2.57. Invocation command line was
973
974 $ $0 $@
975
976_ACEOF
977{
978cat <<_ASUNAME
979## --------- ##
980## Platform. ##
981## --------- ##
982
983hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984uname -m = `(uname -m) 2>/dev/null || echo unknown`
985uname -r = `(uname -r) 2>/dev/null || echo unknown`
986uname -s = `(uname -s) 2>/dev/null || echo unknown`
987uname -v = `(uname -v) 2>/dev/null || echo unknown`
988
989/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991
992/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
993/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
994/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
996/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
997/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
998/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
999
1000_ASUNAME
1001
1002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003for as_dir in $PATH
1004do
1005 IFS=$as_save_IFS
1006 test -z "$as_dir" && as_dir=.
1007 echo "PATH: $as_dir"
1008done
1009
1010} >&5
1011
1012cat >&5 <<_ACEOF
1013
1014
1015## ----------- ##
1016## Core tests. ##
1017## ----------- ##
1018
1019_ACEOF
1020
1021
1022# Keep a trace of the command line.
1023# Strip out --no-create and --no-recursion so they do not pile up.
1024# Strip out --silent because we don't want to record it for future runs.
1025# Also quote any args containing shell meta-characters.
1026# Make two passes to allow for proper duplicate-argument suppression.
1027ac_configure_args=
1028ac_configure_args0=
1029ac_configure_args1=
1030ac_sep=
1031ac_must_keep_next=false
1032for ac_pass in 1 2
1033do
1034 for ac_arg
1035 do
1036 case $ac_arg in
1037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1040 continue ;;
1041 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1042 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1043 esac
1044 case $ac_pass in
1045 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1046 2)
1047 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1048 if test $ac_must_keep_next = true; then
1049 ac_must_keep_next=false # Got value, back to normal.
1050 else
1051 case $ac_arg in
1052 *=* | --config-cache | -C | -disable-* | --disable-* \
1053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1055 | -with-* | --with-* | -without-* | --without-* | --x)
1056 case "$ac_configure_args0 " in
1057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1058 esac
1059 ;;
1060 -* ) ac_must_keep_next=true ;;
1061 esac
1062 fi
1063 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1064 # Get rid of the leading space.
1065 ac_sep=" "
1066 ;;
1067 esac
1068 done
1069done
1070$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1071$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1072
1073# When interrupted or exit'd, cleanup temporary files, and complete
1074# config.log. We remove comments because anyway the quotes in there
1075# would cause problems or look ugly.
1076# WARNING: Be sure not to use single quotes in there, as some shells,
1077# such as our DU 5.0 friend, will then `close' the trap.
1078trap 'exit_status=$?
1079 # Save into config.log some information that might help in debugging.
1080 {
1081 echo
1082
1083 cat <<\_ASBOX
1084## ---------------- ##
1085## Cache variables. ##
1086## ---------------- ##
1087_ASBOX
1088 echo
1089 # The following way of writing the cache mishandles newlines in values,
1090{
1091 (set) 2>&1 |
1092 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1093 *ac_space=\ *)
1094 sed -n \
1095 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1097 ;;
1098 *)
1099 sed -n \
1100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1101 ;;
1102 esac;
1103}
1104 echo
1105
1106 cat <<\_ASBOX
1107## ----------------- ##
1108## Output variables. ##
1109## ----------------- ##
1110_ASBOX
1111 echo
1112 for ac_var in $ac_subst_vars
1113 do
1114 eval ac_val=$`echo $ac_var`
1115 echo "$ac_var='"'"'$ac_val'"'"'"
1116 done | sort
1117 echo
1118
1119 if test -n "$ac_subst_files"; then
1120 cat <<\_ASBOX
1121## ------------- ##
1122## Output files. ##
1123## ------------- ##
1124_ASBOX
1125 echo
1126 for ac_var in $ac_subst_files
1127 do
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1130 done | sort
1131 echo
1132 fi
1133
1134 if test -s confdefs.h; then
1135 cat <<\_ASBOX
1136## ----------- ##
1137## confdefs.h. ##
1138## ----------- ##
1139_ASBOX
1140 echo
1141 sed "/^$/d" confdefs.h | sort
1142 echo
1143 fi
1144 test "$ac_signal" != 0 &&
1145 echo "$as_me: caught signal $ac_signal"
1146 echo "$as_me: exit $exit_status"
1147 } >&5
1148 rm -f core core.* *.core &&
1149 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1150 exit $exit_status
1151 ' 0
1152for ac_signal in 1 2 13 15; do
1153 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1154done
1155ac_signal=0
1156
1157# confdefs.h avoids OS command line length limits that DEFS can exceed.
1158rm -rf conftest* confdefs.h
1159# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1160echo >confdefs.h
1161
1162# Predefined preprocessor variables.
1163
1164cat >>confdefs.h <<_ACEOF
1165#define PACKAGE_NAME "$PACKAGE_NAME"
1166_ACEOF
1167
1168
1169cat >>confdefs.h <<_ACEOF
1170#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1171_ACEOF
1172
1173
1174cat >>confdefs.h <<_ACEOF
1175#define PACKAGE_VERSION "$PACKAGE_VERSION"
1176_ACEOF
1177
1178
1179cat >>confdefs.h <<_ACEOF
1180#define PACKAGE_STRING "$PACKAGE_STRING"
1181_ACEOF
1182
1183
1184cat >>confdefs.h <<_ACEOF
1185#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1186_ACEOF
1187
1188
1189# Let the site file select an alternate cache file if it wants to.
1190# Prefer explicitly selected file to automatically selected ones.
1191if test -z "$CONFIG_SITE"; then
1192 if test "x$prefix" != xNONE; then
1193 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1194 else
1195 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1196 fi
1197fi
1198for ac_site_file in $CONFIG_SITE; do
1199 if test -r "$ac_site_file"; then
1200 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1201echo "$as_me: loading site script $ac_site_file" >&6;}
1202 sed 's/^/| /' "$ac_site_file" >&5
1203 . "$ac_site_file"
1204 fi
1205done
1206
1207if test -r "$cache_file"; then
1208 # Some versions of bash will fail to source /dev/null (special
1209 # files actually), so we avoid doing that.
1210 if test -f "$cache_file"; then
1211 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1212echo "$as_me: loading cache $cache_file" >&6;}
1213 case $cache_file in
1214 [\\/]* | ?:[\\/]* ) . $cache_file;;
1215 *) . ./$cache_file;;
1216 esac
1217 fi
1218else
1219 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1220echo "$as_me: creating cache $cache_file" >&6;}
1221 >$cache_file
1222fi
1223
1224# Check that the precious variables saved in the cache have kept the same
1225# value.
1226ac_cache_corrupted=false
1227for ac_var in `(set) 2>&1 |
1228 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1230 eval ac_new_set=\$ac_env_${ac_var}_set
1231 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1232 eval ac_new_val="\$ac_env_${ac_var}_value"
1233 case $ac_old_set,$ac_new_set in
1234 set,)
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1236echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1237 ac_cache_corrupted=: ;;
1238 ,set)
1239 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1240echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1242 ,);;
1243 *)
1244 if test "x$ac_old_val" != "x$ac_new_val"; then
1245 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1246echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1247 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1248echo "$as_me: former value: $ac_old_val" >&2;}
1249 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1250echo "$as_me: current value: $ac_new_val" >&2;}
1251 ac_cache_corrupted=:
1252 fi;;
1253 esac
1254 # Pass precious variables to config.status.
1255 if test "$ac_new_set" = set; then
1256 case $ac_new_val in
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1259 *) ac_arg=$ac_var=$ac_new_val ;;
1260 esac
1261 case " $ac_configure_args " in
1262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1263 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1264 esac
1265 fi
1266done
1267if $ac_cache_corrupted; then
1268 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1269echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1270 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1271echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1272 { (exit 1); exit 1; }; }
1273fi
1274
1275ac_ext=c
1276ac_cpp='$CPP $CPPFLAGS'
1277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1279ac_compiler_gnu=$ac_cv_c_compiler_gnu
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1300
1301
1302test "$program_prefix" != NONE &&
1303 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1304# Use a double $ so make ignores it.
1305test "$program_suffix" != NONE &&
1306 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1307# Double any \ or $. echo might interpret backslashes.
1308# By default was `s,x,x', remove it if useless.
1309cat <<\_ACEOF >conftest.sed
1310s/[\\$]/&&/g;s/;s,x,x,$//
1311_ACEOF
1312program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1313rm conftest.sed
1314
1315
1316lispdir='${datadir}/emacs/${version}/lisp'
1317locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1318'${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1319lisppath='${locallisppath}:${lispdir}'
1320etcdir='${datadir}/emacs/${version}/etc'
1321archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1322docdir='${datadir}/emacs/${version}/etc'
1323gamedir='${localstatedir}/games/emacs'
1324
1325gameuser=games
1326
1327
1328# Check whether --with-gcc or --without-gcc was given.
1329if test "${with_gcc+set}" = set; then
1330 withval="$with_gcc"
1331
1332fi;
1333
1334# Check whether --with-pop or --without-pop was given.
1335if test "${with_pop+set}" = set; then
1336 withval="$with_pop"
1337 if test "$withval" = yes; then
1338 cat >>confdefs.h <<\_ACEOF
1339#define MAIL_USE_POP 1
1340_ACEOF
1341
1342else :
1343fi
1344else
1345 cat >>confdefs.h <<\_ACEOF
1346#define MAIL_USE_POP 1
1347_ACEOF
1348
1349fi;
1350
1351
1352# Check whether --with-kerberos or --without-kerberos was given.
1353if test "${with_kerberos+set}" = set; then
1354 withval="$with_kerberos"
1355 cat >>confdefs.h <<\_ACEOF
1356#define KERBEROS 1
1357_ACEOF
1358
1359fi;
1360
1361
1362# Check whether --with-kerberos5 or --without-kerberos5 was given.
1363if test "${with_kerberos5+set}" = set; then
1364 withval="$with_kerberos5"
1365 if test "${with_kerberos5+set}" = set; then
1366 if test "${with_kerberos+set}" != set; then
1367 with_kerberos=yes
1368 cat >>confdefs.h <<\_ACEOF
1369#define KERBEROS 1
1370_ACEOF
1371
1372 fi
1373fi
1374
1375cat >>confdefs.h <<\_ACEOF
1376#define KERBEROS5 1
1377_ACEOF
1378
1379fi;
1380
1381# Check whether --with-hesiod or --without-hesiod was given.
1382if test "${with_hesiod+set}" = set; then
1383 withval="$with_hesiod"
1384
1385cat >>confdefs.h <<\_ACEOF
1386#define HESIOD 1
1387_ACEOF
1388
1389fi;
1390
1391
1392# Check whether --with-sound or --without-sound was given.
1393if test "${with_sound+set}" = set; then
1394 withval="$with_sound"
1395
1396fi;
1397
1398
1399# Check whether --with-x-toolkit or --without-x-toolkit was given.
1400if test "${with_x_toolkit+set}" = set; then
1401 withval="$with_x_toolkit"
1402 case "${withval}" in
1403 y | ye | yes ) val=athena ;;
1404 n | no ) val=no ;;
1405 l | lu | luc | luci | lucid ) val=lucid ;;
1406 a | at | ath | athe | athen | athena ) val=athena ;;
1407 m | mo | mot | moti | motif ) val=motif ;;
1408 g | gt | gtk ) val=gtk ;;
1409 * )
1410{ { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1411this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1412Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1413echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1414this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1415Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1416 { (exit 1); exit 1; }; }
1417 ;;
1418 esac
1419 with_x_toolkit=$val
1420
1421fi;
1422
1423# Check whether --with-xpm or --without-xpm was given.
1424if test "${with_xpm+set}" = set; then
1425 withval="$with_xpm"
1426
1427fi;
1428
1429# Check whether --with-jpeg or --without-jpeg was given.
1430if test "${with_jpeg+set}" = set; then
1431 withval="$with_jpeg"
1432
1433fi;
1434
1435# Check whether --with-tiff or --without-tiff was given.
1436if test "${with_tiff+set}" = set; then
1437 withval="$with_tiff"
1438
1439fi;
1440
1441# Check whether --with-gif or --without-gif was given.
1442if test "${with_gif+set}" = set; then
1443 withval="$with_gif"
1444
1445fi;
1446
1447# Check whether --with-png or --without-png was given.
1448if test "${with_png+set}" = set; then
1449 withval="$with_png"
1450
1451fi;
1452
1453# Check whether --with-gtk or --without-gtk was given.
1454if test "${with_gtk+set}" = set; then
1455 withval="$with_gtk"
1456
1457fi;
1458
1459# Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1460if test "${with_pkg_config_prog+set}" = set; then
1461 withval="$with_pkg_config_prog"
1462
1463fi;
1464
1465# Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1466if test "${with_toolkit_scroll_bars+set}" = set; then
1467 withval="$with_toolkit_scroll_bars"
1468
1469fi;
1470
1471# Check whether --with-xim or --without-xim was given.
1472if test "${with_xim+set}" = set; then
1473 withval="$with_xim"
1474
1475fi;
1476
1477# Check whether --with-carbon or --without-carbon was given.
1478if test "${with_carbon+set}" = set; then
1479 withval="$with_carbon"
1480
1481fi;
1482# Check whether --enable-carbon-app or --disable-carbon-app was given.
1483if test "${enable_carbon_app+set}" = set; then
1484 enableval="$enable_carbon_app"
1485 carbon_appdir_x=${enableval}
1486fi;
1487
1488#### Make srcdir absolute, if it isn't already. It's important to
1489#### avoid running the path through pwd unnecessarily, since pwd can
1490#### give you automounter prefixes, which can go away. We do all this
1491#### so Emacs can find its files when run uninstalled.
1492## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1493unset CDPATH
1494case "${srcdir}" in
1495 /* ) ;;
1496 . )
1497 ## We may be able to use the $PWD environment variable to make this
1498 ## absolute. But sometimes PWD is inaccurate.
1499 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1500 ## but that tested only for a well-formed and valid PWD,
1501 ## it did not object when PWD was well-formed and valid but just wrong.
1502 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1503 then
1504 srcdir="$PWD"
1505 else
1506 srcdir="`(cd ${srcdir}; pwd)`"
1507 fi
1508 ;;
1509 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1510esac
1511
1512#### Check if the source directory already has a configured system in it.
1513if test `pwd` != `(cd ${srcdir} && pwd)` \
1514 && test -f "${srcdir}/src/config.h" ; then
1515 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1516 as a build directory right now; it has been configured in its own
1517 right. To configure in another directory as well, you MUST
1518 use GNU make. If you do not have GNU make, then you must
1519 now do \`make distclean' in ${srcdir},
1520 and then run $0 again." >&5
1521echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1522 as a build directory right now; it has been configured in its own
1523 right. To configure in another directory as well, you MUST
1524 use GNU make. If you do not have GNU make, then you must
1525 now do \`make distclean' in ${srcdir},
1526 and then run $0 again." >&2;}
1527
1528extrasub='/^VPATH[ ]*=/c\
1529vpath %.c $(srcdir)\
1530vpath %.h $(srcdir)\
1531vpath %.y $(srcdir)\
1532vpath %.l $(srcdir)\
1533vpath %.s $(srcdir)\
1534vpath %.in $(srcdir)\
1535vpath %.texi $(srcdir)'
1536fi
1537
1538#### Given the configuration name, set machfile and opsysfile to the
1539#### names of the m/*.h and s/*.h files we should use.
1540
1541### Canonicalize the configuration name.
1542
1543ac_aux_dir=
1544for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 break
1549 elif test -f $ac_dir/install.sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 break
1553 elif test -f $ac_dir/shtool; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 break
1557 fi
1558done
1559if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
1563fi
1564ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1567
1568# Make sure we can run config.sub.
1569$ac_config_sub sun4 >/dev/null 2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1573
1574echo "$as_me:$LINENO: checking build system type" >&5
1575echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579 ac_cv_build_alias=$build_alias
1580test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias=`$ac_config_guess`
1582test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1590
1591fi
1592echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593echo "${ECHO_T}$ac_cv_build" >&6
1594build=$ac_cv_build
1595build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598
1599
1600echo "$as_me:$LINENO: checking host system type" >&5
1601echo $ECHO_N "checking host system type... $ECHO_C" >&6
1602if test "${ac_cv_host+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604else
1605 ac_cv_host_alias=$host_alias
1606test -z "$ac_cv_host_alias" &&
1607 ac_cv_host_alias=$ac_cv_build_alias
1608ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1610echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1612
1613fi
1614echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1615echo "${ECHO_T}$ac_cv_host" >&6
1616host=$ac_cv_host
1617host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1620
1621
1622canonical=$host
1623configuration=${host_alias-$host}
1624
1625
1626
1627### If you add support for a new configuration, add code to this
1628### switch statement to recognize your configuration name and select
1629### the appropriate operating system and machine description files.
1630
1631### You would hope that you could choose an m/*.h file pretty much
1632### based on the machine portion of the configuration name, and an s-
1633### file based on the operating system portion. However, it turns out
1634### that each m/*.h file is pretty manufacturer-specific - for
1635### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1636### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1637### machines. So we basically have to have a special case for each
1638### configuration name.
1639###
1640### As far as handling version numbers on operating systems is
1641### concerned, make sure things will fail in a fixable way. If
1642### /etc/MACHINES doesn't say anything about version numbers, be
1643### prepared to handle anything reasonably. If version numbers
1644### matter, be sure /etc/MACHINES says something about it.
1645###
1646### Eric Raymond says we should accept strings like "sysvr4" to mean
1647### "System V Release 4"; he writes, "The old convention encouraged
1648### confusion between `system' and `release' levels'."
1649
1650machine='' opsys='' unported=no
1651case "${canonical}" in
1652
1653 ## FreeBSD ports
1654 *-*-freebsd* )
1655 opsys=freebsd
1656 case "${canonical}" in
1657 alpha*-*-freebsd*) machine=alpha ;;
1658 i[3456]86-*-freebsd*) machine=intel386 ;;
1659 esac
1660 ;;
1661
1662 ## NetBSD ports
1663 *-*-netbsd* )
1664 opsys=netbsd
1665 case "${canonical}" in
1666 alpha*-*-netbsd*) machine=alpha ;;
1667 i[3456]86-*-netbsd*) machine=intel386 ;;
1668 m68k-*-netbsd*)
1669 # This is somewhat bogus.
1670 machine=hp9000s300 ;;
1671 powerpc-apple-netbsd*) machine=macppc ;;
1672 mips-*-netbsd*) machine=pmax ;;
1673 mipsel-*-netbsd*) machine=pmax ;;
1674 mipseb-*-netbsd*) machine=pmax ;;
1675 ns32k-*-netbsd*) machine=ns32000 ;;
1676 powerpc-*-netbsd*) machine=macppc ;;
1677 sparc*-*-netbsd*) machine=sparc ;;
1678 vax-*-netbsd*) machine=vax ;;
1679 arm-*-netbsd*) machine=arm ;;
1680 esac
1681 ;;
1682
1683 ## OpenBSD ports
1684 *-*-openbsd* )
1685 opsys=openbsd
1686 case "${canonical}" in
1687 alpha*-*-openbsd*) machine=alpha ;;
1688 i386-*-openbsd*) machine=intel386 ;;
1689 m68k-*-openbsd*) machine=hp9000s300 ;;
1690 mipsel-*-openbsd*) machine=pmax ;;
1691 ns32k-*-openbsd*) machine=ns32000 ;;
1692 sparc-*-openbsd*) machine=sparc ;;
1693 vax-*-openbsd*) machine=vax ;;
1694 esac
1695 ;;
1696
1697 ## Acorn RISCiX:
1698 arm-acorn-riscix1.1* )
1699 machine=acorn opsys=riscix1-1
1700 ;;
1701 arm-acorn-riscix1.2* | arm-acorn-riscix )
1702 ## This name is riscix12 instead of riscix1.2
1703 ## to avoid a file name conflict on MSDOS.
1704 machine=acorn opsys=riscix12
1705 ;;
1706
1707 ## BSDI ports
1708 *-*-bsdi* )
1709 opsys=bsdi
1710 case "${canonical}" in
1711 i[345]86-*-bsdi*) machine=intel386 ;;
1712 sparc-*-bsdi*) machine=sparc ;;
1713 powerpc-*-bsdi*) machine=macppc ;;
1714 esac
1715 case "${canonical}" in
1716 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1717 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1718 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1719 *-*-bsdi3* ) opsys=bsdos3 ;;
1720 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1721 esac
1722 ;;
1723
1724 ## Alliant machines
1725 ## Strictly speaking, we need the version of the alliant operating
1726 ## system to choose the right machine file, but currently the
1727 ## configuration name doesn't tell us enough to choose the right
1728 ## one; we need to give alliants their own operating system name to
1729 ## do this right. When someone cares, they can help us.
1730 fx80-alliant-* )
1731 machine=alliant4 opsys=bsd4-2
1732 ;;
1733 i860-alliant-* )
1734 machine=alliant-2800 opsys=bsd4-3
1735 ;;
1736
1737 ## Alpha (DEC) machines.
1738 alpha*-dec-osf* )
1739 machine=alpha opsys=osf1
1740 # This is needed to find X11R6.1 libraries for certain tests.
1741 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1742 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1743 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1744 # due to non-traditional preprocessing with the current compiler
1745 # defaults. OSF 4 can also have that compiler version, and there
1746 # seems always to have been a usable /usr/bin/cpp.
1747 NON_GNU_CPP=/usr/bin/cpp
1748 case "${canonical}" in
1749 alpha*-dec-osf[5-9]*)
1750 opsys=osf5-0 ;;
1751 esac
1752 ;;
1753
1754 alpha*-*-linux-gnu* )
1755 machine=alpha opsys=gnu-linux
1756 ;;
1757
1758 arm*-*-linux-gnu* )
1759 machine=arm opsys=gnu-linux
1760 ;;
1761
1762 ppc-*-linux | \
1763 powerpc-*-linux* )
1764 machine=macppc opsys=gnu-linux
1765 ;;
1766
1767 ## Altos 3068
1768 m68*-altos-sysv* )
1769 machine=altos opsys=usg5-2
1770 ;;
1771
1772 ## Amdahl UTS
1773 580-amdahl-sysv* )
1774 machine=amdahl opsys=usg5-2-2
1775 ;;
1776
1777 ## Apollo, Domain/OS
1778 m68*-apollo-* )
1779 machine=apollo opsys=bsd4-3
1780 ;;
1781
1782 ## AT&T 3b2, 3b5, 3b15, 3b20
1783 we32k-att-sysv* )
1784 machine=att3b opsys=usg5-2-2
1785 ;;
1786
1787 ## AT&T 3b1 - The Mighty Unix PC!
1788 m68*-att-sysv* )
1789 machine=7300 opsys=usg5-2-2
1790 ;;
1791
1792 ## Bull dpx20
1793 rs6000-bull-bosx* )
1794 machine=ibmrs6000 opsys=aix3-2
1795 ;;
1796
1797 ## Bull dpx2
1798 m68*-bull-sysv3* )
1799 machine=dpx2 opsys=usg5-3
1800 ;;
1801
1802 ## Bull sps7
1803 m68*-bull-sysv2* )
1804 machine=sps7 opsys=usg5-2
1805 ;;
1806
1807 ## CCI 5/32, 6/32 -- see "Tahoe".
1808
1809 ## Celerity
1810 ## I don't know what configuration name to use for this; config.sub
1811 ## doesn't seem to know anything about it. Hey, Celerity users, get
1812 ## in touch with us!
1813 celerity-celerity-bsd* )
1814 machine=celerity opsys=bsd4-2
1815 ;;
1816
1817 ## Clipper
1818 ## What operating systems does this chip run that Emacs has been
1819 ## tested on?
1820 clipper-* )
1821 machine=clipper
1822 ## We'll use the catch-all code at the bottom to guess the
1823 ## operating system.
1824 ;;
1825
1826 ## Compaq Nonstop
1827 mips-compaq-nonstopux* )
1828 machine=nonstopux opsys=nonstopux
1829 ;;
1830
1831 ## Convex
1832 *-convex-bsd* | *-convex-convexos* )
1833 machine=convex opsys=bsd4-3
1834 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1835 NON_GNU_CPP="cc -E -P"
1836 ;;
1837
1838 ## Cubix QBx/386
1839 i[3456]86-cubix-sysv* )
1840 machine=intel386 opsys=usg5-3
1841 ;;
1842
1843 ## Cydra 5
1844 cydra*-cydrome-sysv* )
1845 machine=cydra5 opsys=usg5-3
1846 ;;
1847
1848 ## Data General AViiON Machines
1849 ## DG changed naming conventions with the release of 5.4.4.10, they
1850 ## dropped the initial 5.4 but left the intervening R. Because of the
1851 ## R this shouldn't conflict with older versions of the OS (which I
1852 ## think were named like dgux4.*). In addition, DG new AViiONs series
1853 ## uses either Motorola M88k or Intel Pentium CPUs.
1854 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1855 machine=aviion opsys=dgux4
1856 ;;
1857 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1858 ## This name is dgux5-4-3 instead of dgux5-4r3
1859 ## to avoid a file name conflict on MSDOS.
1860 machine=aviion opsys=dgux5-4-3
1861 ;;
1862 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1863 machine=aviion opsys=dgux5-4r2
1864 ;;
1865 m88k-dg-dgux* )
1866 machine=aviion opsys=dgux
1867 ;;
1868
1869 ## Data General AViiON Intel (x86) Machines
1870 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1871 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1872 i[345]86-dg-dguxR4* )
1873 machine=aviion-intel opsys=dgux4
1874 ;;
1875
1876 ## DECstations
1877 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1878 machine=pmax opsys=bsd4-2
1879 ;;
1880 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1881 machine=pmax opsys=bsd4-3
1882 ;;
1883 mips-dec-ultrix* )
1884 machine=pmax opsys=ultrix4-3
1885 ;;
1886 mips-dec-osf* )
1887 machine=pmax opsys=osf1
1888 ;;
1889 mips-dec-mach_bsd4.3* )
1890 machine=pmax opsys=mach-bsd4-3
1891 ;;
1892
1893 ## Motorola Delta machines
1894 m68k-motorola-sysv* | m68000-motorola-sysv* )
1895 machine=delta opsys=usg5-3
1896 if test -z "`type gnucc | grep 'not found'`"
1897 then
1898 if test -s /etc/167config
1899 then CC="gnucc -m68040"
1900 else CC="gnucc -m68881"
1901 fi
1902 else
1903 if test -z "`type gcc | grep 'not found'`"
1904 then CC=gcc
1905 else CC=cc
1906 fi
1907 fi
1908 ;;
1909 m88k-motorola-sysv4* )
1910 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1911 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1912 # I hope there are not other 4.0 versions for this machine
1913 # which really need usg5-4 instead.
1914 machine=delta88k opsys=usg5-4-2
1915 ;;
1916 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1917 machine=delta88k opsys=usg5-3
1918 ;;
1919
1920 ## Dual machines
1921 m68*-dual-sysv* )
1922 machine=dual opsys=usg5-2
1923 ;;
1924 m68*-dual-uniplus* )
1925 machine=dual opsys=unipl5-2
1926 ;;
1927
1928 ## Elxsi 6400
1929 elxsi-elxsi-sysv* )
1930 machine=elxsi opsys=usg5-2
1931 ;;
1932
1933 ## Encore machines
1934 ns16k-encore-bsd* )
1935 machine=ns16000 opsys=umax
1936 ;;
1937
1938 ## The GEC 63 - apparently, this port isn't really finished yet.
1939 # I'm sure we finished off the last of the machines, though. -- fx
1940
1941 ## Gould Power Node and NP1
1942 pn-gould-bsd4.2* )
1943 machine=gould opsys=bsd4-2
1944 ;;
1945 pn-gould-bsd4.3* )
1946 machine=gould opsys=bsd4-3
1947 ;;
1948 np1-gould-bsd* )
1949 machine=gould-np1 opsys=bsd4-3
1950 ;;
1951
1952 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1953 ## as far as Emacs is concerned).
1954 m88k-harris-cxux* )
1955 # Build needs to be different on 7.0 and later releases
1956 case "`uname -r`" in
1957 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1958 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1959 esac
1960 NON_GNU_CPP="/lib/cpp"
1961 ;;
1962 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1963 m68k-harris-cxux* )
1964 machine=nh3000 opsys=cxux
1965 ;;
1966 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1967 powerpc-harris-powerunix )
1968 machine=nh6000 opsys=powerunix
1969 NON_GNU_CPP="cc -Xo -E -P"
1970 ;;
1971 ## SR2001/SR2201 running HI-UX/MPP
1972 hppa1.1-hitachi-hiuxmpp* )
1973 machine=sr2k opsys=hiuxmpp
1974 ;;
1975 hppa1.1-hitachi-hiuxwe2* )
1976 machine=sr2k opsys=hiuxwe2
1977 ;;
1978 ## Honeywell XPS100
1979 xps*-honeywell-sysv* )
1980 machine=xps100 opsys=usg5-2
1981 ;;
1982
1983 ## HP 9000 series 200 or 300
1984 m68*-hp-bsd* )
1985 machine=hp9000s300 opsys=bsd4-3
1986 ;;
1987 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1988 m68*-hp-hpux* )
1989 case "`uname -r`" in
1990 ## Someone's system reports A.B8.05 for this.
1991 ## I wonder what other possibilities there are.
1992 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1993 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1994 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1995 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1996 *) machine=hp9000s300 opsys=hpux ;;
1997 esac
1998 ;;
1999
2000 ## HP 9000 series 700 and 800, running HP/UX
2001 hppa*-hp-hpux7* )
2002 machine=hp800 opsys=hpux
2003 ;;
2004 hppa*-hp-hpux8* )
2005 machine=hp800 opsys=hpux8
2006 ;;
2007 hppa*-hp-hpux9shr* )
2008 machine=hp800 opsys=hpux9shr
2009 ;;
2010 hppa*-hp-hpux9* )
2011 machine=hp800 opsys=hpux9
2012 ;;
2013 hppa*-hp-hpux10.2* )
2014 machine=hp800 opsys=hpux10-20
2015 ;;
2016 hppa*-hp-hpux10* )
2017 machine=hp800 opsys=hpux10
2018 ;;
2019 hppa*-hp-hpux1[1-9]* )
2020 machine=hp800 opsys=hpux11
2021 ;;
2022
2023 hppa*-*-linux-gnu* )
2024 machine=hp800 opsys=gnu-linux
2025 ;;
2026
2027 ## HP 9000 series 700 and 800, running HP/UX
2028 hppa*-hp-hpux* )
2029 ## Cross-compilation? Nah!
2030 case "`uname -r`" in
2031 ## Someone's system reports A.B8.05 for this.
2032 ## I wonder what other possibilities there are.
2033 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2034 *.08.* ) machine=hp800 opsys=hpux8 ;;
2035 *.09.* ) machine=hp800 opsys=hpux9 ;;
2036 *) machine=hp800 opsys=hpux10 ;;
2037 esac
2038 ;;
2039 hppa*-*-nextstep* )
2040 machine=hp800 opsys=nextstep
2041 ;;
2042
2043 ## Orion machines
2044 orion-orion-bsd* )
2045 machine=orion opsys=bsd4-2
2046 ;;
2047 clipper-orion-bsd* )
2048 machine=orion105 opsys=bsd4-2
2049 ;;
2050
2051 ## IBM machines
2052 i[3456]86-ibm-aix1.1* )
2053 machine=ibmps2-aix opsys=usg5-2-2
2054 ;;
2055 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2056 machine=ibmps2-aix opsys=usg5-3
2057 ;;
2058 i370-ibm-aix*)
2059 machine=ibm370aix opsys=usg5-3
2060 ;;
2061 s390-*-linux-gnu)
2062 machine=ibms390 opsys=gnu-linux
2063 ;;
2064 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2065 machine=ibmrs6000 opsys=aix3-1
2066 ;;
2067 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2068 machine=ibmrs6000 opsys=aix3-2-5
2069 ;;
2070 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2071 machine=ibmrs6000 opsys=aix4-1
2072 ;;
2073 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2074 machine=ibmrs6000 opsys=aix4-2
2075 ;;
2076 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
2077 machine=ibmrs6000 opsys=aix4-2
2078 ;;
2079 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2080 machine=ibmrs6000 opsys=aix4
2081 ;;
2082 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2083 machine=ibmrs6000 opsys=aix4-1
2084 ;;
2085 rs6000-ibm-aix* | powerpc-ibm-aix* )
2086 machine=ibmrs6000 opsys=aix3-2
2087 ;;
2088 romp-ibm-bsd4.3* )
2089 machine=ibmrt opsys=bsd4-3
2090 ;;
2091 romp-ibm-bsd4.2* )
2092 machine=ibmrt opsys=bsd4-2
2093 ;;
2094 romp-ibm-aos4.3* )
2095 machine=ibmrt opsys=bsd4-3
2096 ;;
2097 romp-ibm-aos4.2* )
2098 machine=ibmrt opsys=bsd4-2
2099 ;;
2100 romp-ibm-aos* )
2101 machine=ibmrt opsys=bsd4-3
2102 ;;
2103 romp-ibm-bsd* )
2104 machine=ibmrt opsys=bsd4-3
2105 ;;
2106 romp-ibm-aix* )
2107 machine=ibmrt-aix opsys=usg5-2-2
2108 ;;
2109
2110 ## Integrated Solutions `Optimum V'
2111 m68*-isi-bsd4.2* )
2112 machine=isi-ov opsys=bsd4-2
2113 ;;
2114 m68*-isi-bsd4.3* )
2115 machine=isi-ov opsys=bsd4-3
2116 ;;
2117
2118 ## Intel 386 machines where we do care about the manufacturer
2119 i[3456]86-intsys-sysv* )
2120 machine=is386 opsys=usg5-2-2
2121 ;;
2122
2123 ## Prime EXL
2124 i[3456]86-prime-sysv* )
2125 machine=i386 opsys=usg5-3
2126 ;;
2127
2128 ## Sequent Symmetry running Dynix
2129 i[3456]86-sequent-bsd* )
2130 machine=symmetry opsys=bsd4-3
2131 ;;
2132
2133 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2134 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2135 machine=sequent-ptx opsys=ptx4
2136 NON_GNU_CPP=/lib/cpp
2137 ;;
2138
2139 ## Sequent Symmetry running DYNIX/ptx
2140 ## Use the old cpp rather than the newer ANSI one.
2141 i[3456]86-sequent-ptx* )
2142 machine=sequent-ptx opsys=ptx
2143 NON_GNU_CPP="/lib/cpp"
2144 ;;
2145
2146 ## ncr machine running svr4.3.
2147 i[3456]86-ncr-sysv4.3 )
2148 machine=ncr386 opsys=usg5-4-3
2149 ;;
2150
2151 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2152 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2153 i[3456]86-ncr-sysv* )
2154 machine=ncr386 opsys=usg5-4-2
2155 ;;
2156
2157 ## Intel Paragon OSF/1
2158 i860-intel-osf1* )
2159 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2160 ;;
2161
2162 ## Intel 860
2163 i860-*-sysv4* )
2164 machine=i860 opsys=usg5-4
2165 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2166 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2167 ;;
2168
2169 ## Macintosh PowerPC
2170 powerpc*-*-linux-gnu* )
2171 machine=macppc opsys=gnu-linux
2172 ;;
2173
2174 ## Masscomp machines
2175 m68*-masscomp-rtu* )
2176 machine=masscomp opsys=rtu
2177 ;;
2178
2179 ## Megatest machines
2180 m68*-megatest-bsd* )
2181 machine=mega68 opsys=bsd4-2
2182 ;;
2183
2184 ## Workstations sold by MIPS
2185 ## This is not necessarily all workstations using the MIPS processor -
2186 ## Irises are produced by SGI, and DECstations by DEC.
2187
2188 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2189 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2190 ## it gives for choosing between the alternatives seems to be "Use
2191 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2192 ## the BSD world." I'll assume that these are instructions for
2193 ## handling two odd situations, and that every other situation
2194 ## should use mips.h and usg5-2-2, they being listed first.
2195 mips-mips-usg* )
2196 machine=mips4
2197 ## Fall through to the general code at the bottom to decide on the OS.
2198 ;;
2199 mips-mips-riscos4* )
2200 machine=mips4 opsys=bsd4-3
2201 NON_GNU_CC="cc -systype bsd43"
2202 NON_GNU_CPP="cc -systype bsd43 -E"
2203 ;;
2204 mips-mips-riscos5* )
2205 machine=mips4 opsys=riscos5
2206 NON_GNU_CC="cc -systype bsd43"
2207 NON_GNU_CPP="cc -systype bsd43 -E"
2208 ;;
2209 mips-mips-bsd* )
2210 machine=mips opsys=bsd4-3
2211 ;;
2212 mips-mips-* )
2213 machine=mips opsys=usg5-2-2
2214 ;;
2215
2216 ## NeXT
2217 m68*-next-* | m68k-*-nextstep* )
2218 machine=m68k opsys=nextstep
2219 ;;
2220
2221 ## The complete machine from National Semiconductor
2222 ns32k-ns-genix* )
2223 machine=ns32000 opsys=usg5-2
2224 ;;
2225
2226 ## NCR machines
2227 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2228 machine=tower32 opsys=usg5-2-2
2229 ;;
2230 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2231 machine=tower32v3 opsys=usg5-3
2232 ;;
2233
2234 ## NEC EWS4800
2235 mips-nec-sysv4*)
2236 machine=ews4800 opsys=ux4800
2237 ;;
2238
2239 ## Nixdorf Targon 31
2240 m68*-nixdorf-sysv* )
2241 machine=targon31 opsys=usg5-2-2
2242 ;;
2243
2244 ## Nu (TI or LMI)
2245 m68*-nu-sysv* )
2246 machine=nu opsys=usg5-2
2247 ;;
2248
2249 ## Plexus
2250 m68*-plexus-sysv* )
2251 machine=plexus opsys=usg5-2
2252 ;;
2253
2254 ## Pyramid machines
2255 ## I don't really have any idea what sort of processor the Pyramid has,
2256 ## so I'm assuming it is its own architecture.
2257 pyramid-pyramid-bsd* )
2258 machine=pyramid opsys=bsd4-2
2259 ;;
2260
2261 ## Sequent Balance
2262 ns32k-sequent-bsd4.2* )
2263 machine=sequent opsys=bsd4-2
2264 ;;
2265 ns32k-sequent-bsd4.3* )
2266 machine=sequent opsys=bsd4-3
2267 ;;
2268
2269 ## Siemens Nixdorf
2270 mips-siemens-sysv* | mips-sni-sysv*)
2271 machine=mips-siemens opsys=usg5-4
2272 NON_GNU_CC=/usr/ccs/bin/cc
2273 NON_GNU_CPP=/usr/ccs/lib/cpp
2274 ;;
2275
2276 ## Silicon Graphics machines
2277 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2278 m68*-sgi-iris3.5* )
2279 machine=irist opsys=iris3-5
2280 ;;
2281 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2282 machine=irist opsys=iris3-6
2283 ;;
2284 ## Iris 4D
2285 mips-sgi-irix3* )
2286 machine=iris4d opsys=irix3-3
2287 ;;
2288 mips-sgi-irix4* )
2289 machine=iris4d opsys=irix4-0
2290 ;;
2291 mips-sgi-irix6.5 )
2292 machine=iris4d opsys=irix6-5
2293 # Without defining _LANGUAGE_C, things get masked out in the headers
2294 # so that, for instance, grepping for `free' in stdlib.h fails and
2295 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2296 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2297 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2298 ;;
2299 mips-sgi-irix6* )
2300 machine=iris4d opsys=irix6-0
2301 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2302 # but presumably it does no harm.
2303 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2304 # -32 probably isn't necessary in later v.6s -- anyone know which?
2305 NON_GCC_TEST_OPTIONS=-32
2306 ;;
2307 mips-sgi-irix5.[01]* )
2308 machine=iris4d opsys=irix5-0
2309 ;;
2310 mips-sgi-irix5* | mips-sgi-irix* )
2311 machine=iris4d opsys=irix5-2
2312 ;;
2313
2314 ## SONY machines
2315 m68*-sony-bsd4.2* )
2316 machine=news opsys=bsd4-2
2317 ;;
2318 m68*-sony-bsd4.3* )
2319 machine=news opsys=bsd4-3
2320 ;;
2321 m68*-sony-newsos3* | m68*-sony-news3*)
2322 machine=news opsys=bsd4-3
2323 ;;
2324 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2325 machine=news-risc opsys=bsd4-3
2326 ;;
2327 mips-sony-newsos6* )
2328 machine=news-r6 opsys=newsos6
2329 ;;
2330 mips-sony-news* )
2331 machine=news-risc opsys=newsos5
2332 ;;
2333
2334 ## Stride
2335 m68*-stride-sysv* )
2336 machine=stride opsys=usg5-2
2337 ;;
2338
2339 ## Suns
2340 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2341 machine=sparc opsys=gnu-linux
2342 ;;
2343
2344 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2345 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2346 | rs6000-*-solaris2*)
2347 case "${canonical}" in
2348 m68*-sunos1* ) machine=sun1 ;;
2349 m68*-sunos2* ) machine=sun2 ;;
2350 m68* ) machine=sun3 ;;
2351 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2352 i[3456]86-*-* ) machine=intel386 ;;
2353 powerpcle* ) machine=powerpcle ;;
2354 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2355 sparc* ) machine=sparc ;;
2356 * ) unported=yes ;;
2357 esac
2358 case "${canonical}" in
2359 ## The Sun386 didn't get past 4.0.
2360 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2361 *-sunos4.0* ) opsys=sunos4-0 ;;
2362 *-sunos4.1.[3-9]*noshare )
2363 ## This name is sunos413 instead of sunos4-1-3
2364 ## to avoid a file name conflict on MSDOS.
2365 opsys=sunos413
2366 NON_GNU_CPP=/usr/lib/cpp
2367 NON_GCC_TEST_OPTIONS=-Bstatic
2368 GCC_TEST_OPTIONS=-static
2369 ;;
2370 *-sunos4.1.[3-9]* | *-sunos4shr*)
2371 opsys=sunos4shr
2372 NON_GNU_CPP=/usr/lib/cpp
2373 ;;
2374 *-sunos4* | *-sunos )
2375 opsys=sunos4-1
2376 NON_GCC_TEST_OPTIONS=-Bstatic
2377 GCC_TEST_OPTIONS=-static
2378 ;;
2379 *-sunos5.3* | *-solaris2.3* )
2380 opsys=sol2-3
2381 NON_GNU_CPP=/usr/ccs/lib/cpp
2382 ;;
2383 *-sunos5.4* | *-solaris2.4* )
2384 opsys=sol2-4
2385 NON_GNU_CPP=/usr/ccs/lib/cpp
2386 RANLIB="ar -ts"
2387 ;;
2388 *-sunos5.5* | *-solaris2.5* )
2389 opsys=sol2-5
2390 NON_GNU_CPP=/usr/ccs/lib/cpp
2391 RANLIB="ar -ts"
2392 ;;
2393 *-sunos5.6* | *-solaris2.6* )
2394 opsys=sol2-6
2395 NON_GNU_CPP=/usr/ccs/lib/cpp
2396 RANLIB="ar -ts"
2397 ;;
2398 *-sunos5* | *-solaris* )
2399 opsys=sol2-6
2400 NON_GNU_CPP=/usr/ccs/lib/cpp
2401 ;;
2402 * ) opsys=bsd4-2 ;;
2403 esac
2404 ## Watch out for a compiler that we know will not work.
2405 case "${canonical}" in
2406 *-solaris* | *-sunos5* )
2407 if [ "x$CC" = x/usr/ucb/cc ]; then
2408 ## /usr/ucb/cc doesn't work;
2409 ## we should find some other compiler that does work.
2410 unset CC
2411 fi
2412 ;;
2413 *) ;;
2414 esac
2415 ;;
2416 sparc-*-nextstep* )
2417 machine=sparc opsys=nextstep
2418 ;;
2419
2420 ## Tadpole 68k
2421 m68*-tadpole-sysv* )
2422 machine=tad68k opsys=usg5-3
2423 ;;
2424
2425 ## Tahoe machines
2426 tahoe-tahoe-bsd4.2* )
2427 machine=tahoe opsys=bsd4-2
2428 ;;
2429 tahoe-tahoe-bsd4.3* )
2430 machine=tahoe opsys=bsd4-3
2431 ;;
2432
2433 ## Tandem Integrity S2
2434 mips-tandem-sysv* )
2435 machine=tandem-s2 opsys=usg5-3
2436 ;;
2437
2438 ## Tektronix XD88
2439 m88k-tektronix-sysv3* )
2440 machine=tekxd88 opsys=usg5-3
2441 ;;
2442
2443 ## Tektronix 16000 box (6130?)
2444 ns16k-tektronix-bsd* )
2445 machine=ns16000 opsys=bsd4-2
2446 ;;
2447 ## Tektronix 4300
2448 ## src/m/tek4300.h hints that this is a m68k machine.
2449 m68*-tektronix-bsd* )
2450 machine=tek4300 opsys=bsd4-3
2451 ;;
2452
2453 ## Titan P2 or P3
2454 ## We seem to have lost the machine-description file titan.h!
2455 titan-titan-sysv* )
2456 machine=titan opsys=usg5-3
2457 ;;
2458
2459 ## Ustation E30 (SS5E)
2460 m68*-unisys-uniplus* )
2461 machine=ustation opsystem=unipl5-2
2462 ;;
2463
2464 ## Vaxen.
2465 vax-dec-* )
2466 machine=vax
2467 case "${canonical}" in
2468 *-bsd4.1* ) opsys=bsd4-1 ;;
2469 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2470 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2471 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2472 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2473 *-vms* ) opsys=vms ;;
2474 * ) unported=yes
2475 esac
2476 ;;
2477
2478 ## Whitechapel MG1
2479 ns16k-whitechapel-* )
2480 machine=mg1
2481 ## We don't know what sort of OS runs on these; we'll let the
2482 ## operating system guessing code below try.
2483 ;;
2484
2485 ## Wicat
2486 m68*-wicat-sysv* )
2487 machine=wicat opsys=usg5-2
2488 ;;
2489
2490 ## IA-64
2491 ia64*-*-linux* )
2492 machine=ia64 opsys=gnu-linux
2493 ;;
2494
2495 ## Intel 386 machines where we don't care about the manufacturer
2496 i[3456]86-*-* )
2497 machine=intel386
2498 case "${canonical}" in
2499 *-cygwin ) opsys=cygwin ;;
2500 *-lynxos* ) opsys=lynxos ;;
2501 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2502 *-isc2.2* ) opsys=isc2-2 ;;
2503 *-isc4.0* ) opsys=isc4-0 ;;
2504 *-isc4.* ) opsys=isc4-1
2505 GCC_TEST_OPTIONS=-posix
2506 NON_GCC_TEST_OPTIONS=-Xp
2507 ;;
2508 *-isc* ) opsys=isc3-0 ;;
2509 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2510 *-esix* ) opsys=esix ;;
2511 *-xenix* ) opsys=xenix ;;
2512 *-linux-gnu* ) opsys=gnu-linux ;;
2513 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2514 *-sco3.2v5* ) opsys=sco5
2515 NON_GNU_CPP=/lib/cpp
2516 # Prevent -belf from being passed to $CPP.
2517 # /lib/cpp does not accept it.
2518 OVERRIDE_CPPFLAGS=" "
2519 ;;
2520 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2521 *-386bsd* ) opsys=386bsd ;;
2522 *-nextstep* ) opsys=nextstep ;;
2523 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2524 esac
2525 ;;
2526
2527 ## m68k Linux-based GNU system
2528 m68k-*-linux-gnu* )
2529 machine=m68k opsys=gnu-linux
2530 ;;
2531
2532 ## Mips Linux-based GNU system
2533 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2534 machine=mips opsys=gnu-linux
2535 ;;
2536
2537 ## UXP/DS
2538 sparc-fujitsu-sysv4* )
2539 machine=sparc opsys=uxpds
2540 NON_GNU_CPP=/usr/ccs/lib/cpp
2541 RANLIB="ar -ts"
2542 ;;
2543
2544 ## UXP/V
2545 f301-fujitsu-uxpv4.1)
2546 machine=f301 opsys=uxpv
2547 ;;
2548
2549 ## Darwin / Mac OS X
2550 powerpc-apple-darwin* )
2551 machine=powermac opsys=darwin
2552 # Define CPP as follows to make autoconf work correctly.
2553 CPP="cc -E -traditional-cpp"
2554 ;;
2555
2556 ## AMD x86-64 Linux-based GNU system
2557 x86_64-*-linux-gnu* )
2558 machine=amdx86-64 opsys=gnu-linux
2559 ;;
2560
2561 * )
2562 unported=yes
2563 ;;
2564esac
2565
2566### If the code above didn't choose an operating system, just choose
2567### an operating system based on the configuration name. You really
2568### only want to use this when you have no idea what the right
2569### operating system is; if you know what operating systems a machine
2570### runs, it's cleaner to make it explicit in the case statement
2571### above.
2572if test x"${opsys}" = x; then
2573 case "${canonical}" in
2574 *-gnu* ) opsys=gnu ;;
2575 *-bsd4.[01] ) opsys=bsd4-1 ;;
2576 *-bsd4.2 ) opsys=bsd4-2 ;;
2577 *-bsd4.3 ) opsys=bsd4-3 ;;
2578 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2579 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2580 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2581 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2582 *-sysv4.2uw* ) opsys=unixware ;;
2583 *-sysv4.1* | *-sysvr4.1* )
2584 NON_GNU_CPP=/usr/lib/cpp
2585 opsys=usg5-4 ;;
2586 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2587 if [ x$NON_GNU_CPP = x ]; then
2588 if [ -f /usr/ccs/lib/cpp ]; then
2589 NON_GNU_CPP=/usr/ccs/lib/cpp
2590 else
2591 NON_GNU_CPP=/lib/cpp
2592 fi
2593 fi
2594 opsys=usg5-4-2 ;;
2595 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2596 * )
2597 unported=yes
2598 ;;
2599 esac
2600fi
2601
2602
2603
2604if test $unported = yes; then
2605 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2606Check \`etc/MACHINES' for recognized configuration names." >&5
2607echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2608Check \`etc/MACHINES' for recognized configuration names." >&2;}
2609 { (exit 1); exit 1; }; }
2610fi
2611
2612machfile="m/${machine}.h"
2613opsysfile="s/${opsys}.h"
2614
2615
2616#### Choose a compiler.
2617test -n "$CC" && cc_specified=yes
2618
2619# Save the value of CFLAGS that the user specified.
2620SPECIFIED_CFLAGS="$CFLAGS"
2621
2622case ${with_gcc} in
2623 "yes" ) CC="gcc" GCC=yes ;;
2624 "no" ) : ${CC=cc} ;;
2625 * )
2626esac
2627ac_ext=c
2628ac_cpp='$CPP $CPPFLAGS'
2629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632if test -n "$ac_tool_prefix"; then
2633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2634set dummy ${ac_tool_prefix}gcc; ac_word=$2
2635echo "$as_me:$LINENO: checking for $ac_word" >&5
2636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2637if test "${ac_cv_prog_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639else
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC="$CC" # Let the user override the test.
2642else
2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2653 fi
2654done
2655done
2656
2657fi
2658fi
2659CC=$ac_cv_prog_CC
2660if test -n "$CC"; then
2661 echo "$as_me:$LINENO: result: $CC" >&5
2662echo "${ECHO_T}$CC" >&6
2663else
2664 echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6
2666fi
2667
2668fi
2669if test -z "$ac_cv_prog_CC"; then
2670 ac_ct_CC=$CC
2671 # Extract the first word of "gcc", so it can be a program name with args.
2672set dummy gcc; ac_word=$2
2673echo "$as_me:$LINENO: checking for $ac_word" >&5
2674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2675if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677else
2678 if test -n "$ac_ct_CC"; then
2679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_ac_ct_CC="gcc"
2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692done
2693done
2694
2695fi
2696fi
2697ac_ct_CC=$ac_cv_prog_ac_ct_CC
2698if test -n "$ac_ct_CC"; then
2699 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2700echo "${ECHO_T}$ac_ct_CC" >&6
2701else
2702 echo "$as_me:$LINENO: result: no" >&5
2703echo "${ECHO_T}no" >&6
2704fi
2705
2706 CC=$ac_ct_CC
2707else
2708 CC="$ac_cv_prog_CC"
2709fi
2710
2711if test -z "$CC"; then
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2714set dummy ${ac_tool_prefix}cc; ac_word=$2
2715echo "$as_me:$LINENO: checking for $ac_word" >&5
2716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2717if test "${ac_cv_prog_CC+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719else
2720 if test -n "$CC"; then
2721 ac_cv_prog_CC="$CC" # Let the user override the test.
2722else
2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH
2725do
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 ac_cv_prog_CC="${ac_tool_prefix}cc"
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 break 2
2733 fi
2734done
2735done
2736
2737fi
2738fi
2739CC=$ac_cv_prog_CC
2740if test -n "$CC"; then
2741 echo "$as_me:$LINENO: result: $CC" >&5
2742echo "${ECHO_T}$CC" >&6
2743else
2744 echo "$as_me:$LINENO: result: no" >&5
2745echo "${ECHO_T}no" >&6
2746fi
2747
2748fi
2749if test -z "$ac_cv_prog_CC"; then
2750 ac_ct_CC=$CC
2751 # Extract the first word of "cc", so it can be a program name with args.
2752set dummy cc; ac_word=$2
2753echo "$as_me:$LINENO: checking for $ac_word" >&5
2754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2755if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757else
2758 if test -n "$ac_ct_CC"; then
2759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2760else
2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762for as_dir in $PATH
2763do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_ac_ct_CC="cc"
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2771 fi
2772done
2773done
2774
2775fi
2776fi
2777ac_ct_CC=$ac_cv_prog_ac_ct_CC
2778if test -n "$ac_ct_CC"; then
2779 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2780echo "${ECHO_T}$ac_ct_CC" >&6
2781else
2782 echo "$as_me:$LINENO: result: no" >&5
2783echo "${ECHO_T}no" >&6
2784fi
2785
2786 CC=$ac_ct_CC
2787else
2788 CC="$ac_cv_prog_CC"
2789fi
2790
2791fi
2792if test -z "$CC"; then
2793 # Extract the first word of "cc", so it can be a program name with args.
2794set dummy cc; ac_word=$2
2795echo "$as_me:$LINENO: checking for $ac_word" >&5
2796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2797if test "${ac_cv_prog_CC+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799else
2800 if test -n "$CC"; then
2801 ac_cv_prog_CC="$CC" # Let the user override the test.
2802else
2803 ac_prog_rejected=no
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH
2806do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2812 ac_prog_rejected=yes
2813 continue
2814 fi
2815 ac_cv_prog_CC="cc"
2816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 break 2
2818 fi
2819done
2820done
2821
2822if test $ac_prog_rejected = yes; then
2823 # We found a bogon in the path, so make sure we never use it.
2824 set dummy $ac_cv_prog_CC
2825 shift
2826 if test $# != 0; then
2827 # We chose a different compiler from the bogus one.
2828 # However, it has the same basename, so the bogon will be chosen
2829 # first if we set CC to just the basename; use the full file name.
2830 shift
2831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2832 fi
2833fi
2834fi
2835fi
2836CC=$ac_cv_prog_CC
2837if test -n "$CC"; then
2838 echo "$as_me:$LINENO: result: $CC" >&5
2839echo "${ECHO_T}$CC" >&6
2840else
2841 echo "$as_me:$LINENO: result: no" >&5
2842echo "${ECHO_T}no" >&6
2843fi
2844
2845fi
2846if test -z "$CC"; then
2847 if test -n "$ac_tool_prefix"; then
2848 for ac_prog in cl
2849 do
2850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2851set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2852echo "$as_me:$LINENO: checking for $ac_word" >&5
2853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2854if test "${ac_cv_prog_CC+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856else
2857 if test -n "$CC"; then
2858 ac_cv_prog_CC="$CC" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2870 fi
2871done
2872done
2873
2874fi
2875fi
2876CC=$ac_cv_prog_CC
2877if test -n "$CC"; then
2878 echo "$as_me:$LINENO: result: $CC" >&5
2879echo "${ECHO_T}$CC" >&6
2880else
2881 echo "$as_me:$LINENO: result: no" >&5
2882echo "${ECHO_T}no" >&6
2883fi
2884
2885 test -n "$CC" && break
2886 done
2887fi
2888if test -z "$CC"; then
2889 ac_ct_CC=$CC
2890 for ac_prog in cl
2891do
2892 # Extract the first word of "$ac_prog", so it can be a program name with args.
2893set dummy $ac_prog; ac_word=$2
2894echo "$as_me:$LINENO: checking for $ac_word" >&5
2895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2898else
2899 if test -n "$ac_ct_CC"; then
2900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2901else
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_ac_ct_CC="$ac_prog"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913done
2914done
2915
2916fi
2917fi
2918ac_ct_CC=$ac_cv_prog_ac_ct_CC
2919if test -n "$ac_ct_CC"; then
2920 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2921echo "${ECHO_T}$ac_ct_CC" >&6
2922else
2923 echo "$as_me:$LINENO: result: no" >&5
2924echo "${ECHO_T}no" >&6
2925fi
2926
2927 test -n "$ac_ct_CC" && break
2928done
2929
2930 CC=$ac_ct_CC
2931fi
2932
2933fi
2934
2935
2936test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2937See \`config.log' for more details." >&5
2938echo "$as_me: error: no acceptable C compiler found in \$PATH
2939See \`config.log' for more details." >&2;}
2940 { (exit 1); exit 1; }; }
2941
2942# Provide some information about the compiler.
2943echo "$as_me:$LINENO:" \
2944 "checking for C compiler version" >&5
2945ac_compiler=`set X $ac_compile; echo $2`
2946{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2947 (eval $ac_compiler --version </dev/null >&5) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }
2951{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2952 (eval $ac_compiler -v </dev/null >&5) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }
2956{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2957 (eval $ac_compiler -V </dev/null >&5) 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }
2961
2962cat >conftest.$ac_ext <<_ACEOF
2963#line $LINENO "configure"
2964/* confdefs.h. */
2965_ACEOF
2966cat confdefs.h >>conftest.$ac_ext
2967cat >>conftest.$ac_ext <<_ACEOF
2968/* end confdefs.h. */
2969
2970int
2971main ()
2972{
2973
2974 ;
2975 return 0;
2976}
2977_ACEOF
2978ac_clean_files_save=$ac_clean_files
2979ac_clean_files="$ac_clean_files a.out a.exe b.out"
2980# Try to create an executable without -o first, disregard a.out.
2981# It will help us diagnose broken compilers, and finding out an intuition
2982# of exeext.
2983echo "$as_me:$LINENO: checking for C compiler default output" >&5
2984echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2985ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2986if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2987 (eval $ac_link_default) 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; then
2991 # Find the output, starting from the most likely. This scheme is
2992# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2993# resort.
2994
2995# Be careful to initialize this variable, since it used to be cached.
2996# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2997ac_cv_exeext=
2998# b.out is created by i960 compilers.
2999for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3000do
3001 test -f "$ac_file" || continue
3002 case $ac_file in
3003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3004 ;;
3005 conftest.$ac_ext )
3006 # This is the source file.
3007 ;;
3008 [ab].out )
3009 # We found the default executable, but exeext='' is most
3010 # certainly right.
3011 break;;
3012 *.* )
3013 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3014 # FIXME: I believe we export ac_cv_exeext for Libtool,
3015 # but it would be cool to find out if it's true. Does anybody
3016 # maintain Libtool? --akim.
3017 export ac_cv_exeext
3018 break;;
3019 * )
3020 break;;
3021 esac
3022done
3023else
3024 echo "$as_me: failed program was:" >&5
3025sed 's/^/| /' conftest.$ac_ext >&5
3026
3027{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3028See \`config.log' for more details." >&5
3029echo "$as_me: error: C compiler cannot create executables
3030See \`config.log' for more details." >&2;}
3031 { (exit 77); exit 77; }; }
3032fi
3033
3034ac_exeext=$ac_cv_exeext
3035echo "$as_me:$LINENO: result: $ac_file" >&5
3036echo "${ECHO_T}$ac_file" >&6
3037
3038# Check the compiler produces executables we can run. If not, either
3039# the compiler is broken, or we cross compile.
3040echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3041echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3042# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3043# If not cross compiling, check that we can run a simple program.
3044if test "$cross_compiling" != yes; then
3045 if { ac_try='./$ac_file'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 cross_compiling=no
3052 else
3053 if test "$cross_compiling" = maybe; then
3054 cross_compiling=yes
3055 else
3056 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3057If you meant to cross compile, use \`--host'.
3058See \`config.log' for more details." >&5
3059echo "$as_me: error: cannot run C compiled programs.
3060If you meant to cross compile, use \`--host'.
3061See \`config.log' for more details." >&2;}
3062 { (exit 1); exit 1; }; }
3063 fi
3064 fi
3065fi
3066echo "$as_me:$LINENO: result: yes" >&5
3067echo "${ECHO_T}yes" >&6
3068
3069rm -f a.out a.exe conftest$ac_cv_exeext b.out
3070ac_clean_files=$ac_clean_files_save
3071# Check the compiler produces executables we can run. If not, either
3072# the compiler is broken, or we cross compile.
3073echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3074echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3075echo "$as_me:$LINENO: result: $cross_compiling" >&5
3076echo "${ECHO_T}$cross_compiling" >&6
3077
3078echo "$as_me:$LINENO: checking for suffix of executables" >&5
3079echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3081 (eval $ac_link) 2>&5
3082 ac_status=$?
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; then
3085 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3086# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3087# work properly (i.e., refer to `conftest.exe'), while it won't with
3088# `rm'.
3089for ac_file in conftest.exe conftest conftest.*; do
3090 test -f "$ac_file" || continue
3091 case $ac_file in
3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3093 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3094 export ac_cv_exeext
3095 break;;
3096 * ) break;;
3097 esac
3098done
3099else
3100 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3101See \`config.log' for more details." >&5
3102echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3103See \`config.log' for more details." >&2;}
3104 { (exit 1); exit 1; }; }
3105fi
3106
3107rm -f conftest$ac_cv_exeext
3108echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3109echo "${ECHO_T}$ac_cv_exeext" >&6
3110
3111rm -f conftest.$ac_ext
3112EXEEXT=$ac_cv_exeext
3113ac_exeext=$EXEEXT
3114echo "$as_me:$LINENO: checking for suffix of object files" >&5
3115echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3116if test "${ac_cv_objext+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118else
3119 cat >conftest.$ac_ext <<_ACEOF
3120#line $LINENO "configure"
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126
3127int
3128main ()
3129{
3130
3131 ;
3132 return 0;
3133}
3134_ACEOF
3135rm -f conftest.o conftest.obj
3136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3137 (eval $ac_compile) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; then
3141 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3142 case $ac_file in
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3144 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3145 break;;
3146 esac
3147done
3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3153See \`config.log' for more details." >&5
3154echo "$as_me: error: cannot compute suffix of object files: cannot compile
3155See \`config.log' for more details." >&2;}
3156 { (exit 1); exit 1; }; }
3157fi
3158
3159rm -f conftest.$ac_cv_objext conftest.$ac_ext
3160fi
3161echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3162echo "${ECHO_T}$ac_cv_objext" >&6
3163OBJEXT=$ac_cv_objext
3164ac_objext=$OBJEXT
3165echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3166echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3167if test "${ac_cv_c_compiler_gnu+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3169else
3170 cat >conftest.$ac_ext <<_ACEOF
3171#line $LINENO "configure"
3172/* confdefs.h. */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h. */
3177
3178int
3179main ()
3180{
3181#ifndef __GNUC__
3182 choke me
3183#endif
3184
3185 ;
3186 return 0;
3187}
3188_ACEOF
3189rm -f conftest.$ac_objext
3190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197 (eval $ac_try) 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 ac_compiler_gnu=yes
3202else
3203 echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206ac_compiler_gnu=no
3207fi
3208rm -f conftest.$ac_objext conftest.$ac_ext
3209ac_cv_c_compiler_gnu=$ac_compiler_gnu
3210
3211fi
3212echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3213echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3214GCC=`test $ac_compiler_gnu = yes && echo yes`
3215ac_test_CFLAGS=${CFLAGS+set}
3216ac_save_CFLAGS=$CFLAGS
3217CFLAGS="-g"
3218echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3219echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3220if test "${ac_cv_prog_cc_g+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3222else
3223 cat >conftest.$ac_ext <<_ACEOF
3224#line $LINENO "configure"
3225/* confdefs.h. */
3226_ACEOF
3227cat confdefs.h >>conftest.$ac_ext
3228cat >>conftest.$ac_ext <<_ACEOF
3229/* end confdefs.h. */
3230
3231int
3232main ()
3233{
3234
3235 ;
3236 return 0;
3237}
3238_ACEOF
3239rm -f conftest.$ac_objext
3240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3241 (eval $ac_compile) 2>&5
3242 ac_status=$?
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try='test -s conftest.$ac_objext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 (eval $ac_try) 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3251 ac_cv_prog_cc_g=yes
3252else
3253 echo "$as_me: failed program was:" >&5
3254sed 's/^/| /' conftest.$ac_ext >&5
3255
3256ac_cv_prog_cc_g=no
3257fi
3258rm -f conftest.$ac_objext conftest.$ac_ext
3259fi
3260echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3261echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3262if test "$ac_test_CFLAGS" = set; then
3263 CFLAGS=$ac_save_CFLAGS
3264elif test $ac_cv_prog_cc_g = yes; then
3265 if test "$GCC" = yes; then
3266 CFLAGS="-g -O2"
3267 else
3268 CFLAGS="-g"
3269 fi
3270else
3271 if test "$GCC" = yes; then
3272 CFLAGS="-O2"
3273 else
3274 CFLAGS=
3275 fi
3276fi
3277echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3278echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3279if test "${ac_cv_prog_cc_stdc+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281else
3282 ac_cv_prog_cc_stdc=no
3283ac_save_CC=$CC
3284cat >conftest.$ac_ext <<_ACEOF
3285#line $LINENO "configure"
3286/* confdefs.h. */
3287_ACEOF
3288cat confdefs.h >>conftest.$ac_ext
3289cat >>conftest.$ac_ext <<_ACEOF
3290/* end confdefs.h. */
3291#include <stdarg.h>
3292#include <stdio.h>
3293#include <sys/types.h>
3294#include <sys/stat.h>
3295/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3296struct buf { int x; };
3297FILE * (*rcsopen) (struct buf *, struct stat *, int);
3298static char *e (p, i)
3299 char **p;
3300 int i;
3301{
3302 return p[i];
3303}
3304static char *f (char * (*g) (char **, int), char **p, ...)
3305{
3306 char *s;
3307 va_list v;
3308 va_start (v,p);
3309 s = g (p, va_arg (v,int));
3310 va_end (v);
3311 return s;
3312}
3313int test (int i, double x);
3314struct s1 {int (*f) (int a);};
3315struct s2 {int (*f) (double a);};
3316int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3317int argc;
3318char **argv;
3319int
3320main ()
3321{
3322return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3323 ;
3324 return 0;
3325}
3326_ACEOF
3327# Don't try gcc -ansi; that turns off useful extensions and
3328# breaks some systems' header files.
3329# AIX -qlanglvl=ansi
3330# Ultrix and OSF/1 -std1
3331# HP-UX 10.20 and later -Ae
3332# HP-UX older versions -Aa -D_HPUX_SOURCE
3333# SVR4 -Xc -D__EXTENSIONS__
3334for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3335do
3336 CC="$ac_save_CC $ac_arg"
3337 rm -f conftest.$ac_objext
3338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3339 (eval $ac_compile) 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } &&
3343 { ac_try='test -s conftest.$ac_objext'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 (eval $ac_try) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
3349 ac_cv_prog_cc_stdc=$ac_arg
3350break
3351else
3352 echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355fi
3356rm -f conftest.$ac_objext
3357done
3358rm -f conftest.$ac_ext conftest.$ac_objext
3359CC=$ac_save_CC
3360
3361fi
3362
3363case "x$ac_cv_prog_cc_stdc" in
3364 x|xno)
3365 echo "$as_me:$LINENO: result: none needed" >&5
3366echo "${ECHO_T}none needed" >&6 ;;
3367 *)
3368 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3369echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3370 CC="$CC $ac_cv_prog_cc_stdc" ;;
3371esac
3372
3373# Some people use a C++ compiler to compile C. Since we use `exit',
3374# in C++ we need to declare it. In case someone uses the same compiler
3375# for both compiling C and C++ we need to have the C++ compiler decide
3376# the declaration of exit, since it's the most demanding environment.
3377cat >conftest.$ac_ext <<_ACEOF
3378#ifndef __cplusplus
3379 choke me
3380#endif
3381_ACEOF
3382rm -f conftest.$ac_objext
3383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384 (eval $ac_compile) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try='test -s conftest.$ac_objext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 for ac_declaration in \
3395 ''\
3396 '#include <stdlib.h>' \
3397 'extern "C" void std::exit (int) throw (); using std::exit;' \
3398 'extern "C" void std::exit (int); using std::exit;' \
3399 'extern "C" void exit (int) throw ();' \
3400 'extern "C" void exit (int);' \
3401 'void exit (int);'
3402do
3403 cat >conftest.$ac_ext <<_ACEOF
3404#line $LINENO "configure"
3405/* confdefs.h. */
3406_ACEOF
3407cat confdefs.h >>conftest.$ac_ext
3408cat >>conftest.$ac_ext <<_ACEOF
3409/* end confdefs.h. */
3410#include <stdlib.h>
3411$ac_declaration
3412int
3413main ()
3414{
3415exit (42);
3416 ;
3417 return 0;
3418}
3419_ACEOF
3420rm -f conftest.$ac_objext
3421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>&5
3423 ac_status=$?
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } &&
3426 { ac_try='test -s conftest.$ac_objext'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428 (eval $ac_try) 2>&5
3429 ac_status=$?
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3432 :
3433else
3434 echo "$as_me: failed program was:" >&5
3435sed 's/^/| /' conftest.$ac_ext >&5
3436
3437continue
3438fi
3439rm -f conftest.$ac_objext conftest.$ac_ext
3440 cat >conftest.$ac_ext <<_ACEOF
3441#line $LINENO "configure"
3442/* confdefs.h. */
3443_ACEOF
3444cat confdefs.h >>conftest.$ac_ext
3445cat >>conftest.$ac_ext <<_ACEOF
3446/* end confdefs.h. */
3447$ac_declaration
3448int
3449main ()
3450{
3451exit (42);
3452 ;
3453 return 0;
3454}
3455_ACEOF
3456rm -f conftest.$ac_objext
3457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3458 (eval $ac_compile) 2>&5
3459 ac_status=$?
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -s conftest.$ac_objext'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 (eval $ac_try) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; }; then
3468 break
3469else
3470 echo "$as_me: failed program was:" >&5
3471sed 's/^/| /' conftest.$ac_ext >&5
3472
3473fi
3474rm -f conftest.$ac_objext conftest.$ac_ext
3475done
3476rm -f conftest*
3477if test -n "$ac_declaration"; then
3478 echo '#ifdef __cplusplus' >>confdefs.h
3479 echo $ac_declaration >>confdefs.h
3480 echo '#endif' >>confdefs.h
3481fi
3482
3483else
3484 echo "$as_me: failed program was:" >&5
3485sed 's/^/| /' conftest.$ac_ext >&5
3486
3487fi
3488rm -f conftest.$ac_objext conftest.$ac_ext
3489ac_ext=c
3490ac_cpp='$CPP $CPPFLAGS'
3491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494
3495
3496# On Suns, sometimes $CPP names a directory.
3497if test -n "$CPP" && test -d "$CPP"; then
3498 CPP=
3499fi
3500
3501#### Some systems specify a CPP to use unless we are using GCC.
3502#### Now that we know whether we are using GCC, we can decide whether
3503#### to use that one.
3504if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3505then
3506 CPP="$NON_GNU_CPP"
3507fi
3508
3509#### Some systems specify a CC to use unless we are using GCC.
3510#### Now that we know whether we are using GCC, we can decide whether
3511#### to use that one.
3512if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3513 test x$cc_specified != xyes
3514then
3515 CC="$NON_GNU_CC"
3516fi
3517
3518if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3519then
3520 CC="$CC $GCC_TEST_OPTIONS"
3521fi
3522
3523if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3524then
3525 CC="$CC $NON_GCC_TEST_OPTIONS"
3526fi
3527
3528#### Some other nice autoconf tests.
3529
3530echo "$as_me:$LINENO: checking whether ln -s works" >&5
3531echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3532LN_S=$as_ln_s
3533if test "$LN_S" = "ln -s"; then
3534 echo "$as_me:$LINENO: result: yes" >&5
3535echo "${ECHO_T}yes" >&6
3536else
3537 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3538echo "${ECHO_T}no, using $LN_S" >&6
3539fi
3540
3541ac_ext=c
3542ac_cpp='$CPP $CPPFLAGS'
3543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3547echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3548# On Suns, sometimes $CPP names a directory.
3549if test -n "$CPP" && test -d "$CPP"; then
3550 CPP=
3551fi
3552if test -z "$CPP"; then
3553 if test "${ac_cv_prog_CPP+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555else
3556 # Double quotes because CPP needs to be expanded
3557 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3558 do
3559 ac_preproc_ok=false
3560for ac_c_preproc_warn_flag in '' yes
3561do
3562 # Use a header file that comes with gcc, so configuring glibc
3563 # with a fresh cross-compiler works.
3564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3565 # <limits.h> exists even on freestanding compilers.
3566 # On the NeXT, cc -E runs the code through the compiler's parser,
3567 # not just through cpp. "Syntax error" is here to catch this case.
3568 cat >conftest.$ac_ext <<_ACEOF
3569#line $LINENO "configure"
3570/* confdefs.h. */
3571_ACEOF
3572cat confdefs.h >>conftest.$ac_ext
3573cat >>conftest.$ac_ext <<_ACEOF
3574/* end confdefs.h. */
3575#ifdef __STDC__
3576# include <limits.h>
3577#else
3578# include <assert.h>
3579#endif
3580 Syntax error
3581_ACEOF
3582if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } >/dev/null; then
3590 if test -s conftest.err; then
3591 ac_cpp_err=$ac_c_preproc_warn_flag
3592 else
3593 ac_cpp_err=
3594 fi
3595else
3596 ac_cpp_err=yes
3597fi
3598if test -z "$ac_cpp_err"; then
3599 :
3600else
3601 echo "$as_me: failed program was:" >&5
3602sed 's/^/| /' conftest.$ac_ext >&5
3603
3604 # Broken: fails on valid input.
3605continue
3606fi
3607rm -f conftest.err conftest.$ac_ext
3608
3609 # OK, works on sane cases. Now check whether non-existent headers
3610 # can be detected and how.
3611 cat >conftest.$ac_ext <<_ACEOF
3612#line $LINENO "configure"
3613/* confdefs.h. */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h. */
3618#include <ac_nonexistent.h>
3619_ACEOF
3620if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } >/dev/null; then
3628 if test -s conftest.err; then
3629 ac_cpp_err=$ac_c_preproc_warn_flag
3630 else
3631 ac_cpp_err=
3632 fi
3633else
3634 ac_cpp_err=yes
3635fi
3636if test -z "$ac_cpp_err"; then
3637 # Broken: success on invalid input.
3638continue
3639else
3640 echo "$as_me: failed program was:" >&5
3641sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 # Passes both tests.
3644ac_preproc_ok=:
3645break
3646fi
3647rm -f conftest.err conftest.$ac_ext
3648
3649done
3650# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3651rm -f conftest.err conftest.$ac_ext
3652if $ac_preproc_ok; then
3653 break
3654fi
3655
3656 done
3657 ac_cv_prog_CPP=$CPP
3658
3659fi
3660 CPP=$ac_cv_prog_CPP
3661else
3662 ac_cv_prog_CPP=$CPP
3663fi
3664echo "$as_me:$LINENO: result: $CPP" >&5
3665echo "${ECHO_T}$CPP" >&6
3666ac_preproc_ok=false
3667for ac_c_preproc_warn_flag in '' yes
3668do
3669 # Use a header file that comes with gcc, so configuring glibc
3670 # with a fresh cross-compiler works.
3671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3672 # <limits.h> exists even on freestanding compilers.
3673 # On the NeXT, cc -E runs the code through the compiler's parser,
3674 # not just through cpp. "Syntax error" is here to catch this case.
3675 cat >conftest.$ac_ext <<_ACEOF
3676#line $LINENO "configure"
3677/* confdefs.h. */
3678_ACEOF
3679cat confdefs.h >>conftest.$ac_ext
3680cat >>conftest.$ac_ext <<_ACEOF
3681/* end confdefs.h. */
3682#ifdef __STDC__
3683# include <limits.h>
3684#else
3685# include <assert.h>
3686#endif
3687 Syntax error
3688_ACEOF
3689if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3691 ac_status=$?
3692 grep -v '^ *+' conftest.er1 >conftest.err
3693 rm -f conftest.er1
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } >/dev/null; then
3697 if test -s conftest.err; then
3698 ac_cpp_err=$ac_c_preproc_warn_flag
3699 else
3700 ac_cpp_err=
3701 fi
3702else
3703 ac_cpp_err=yes
3704fi
3705if test -z "$ac_cpp_err"; then
3706 :
3707else
3708 echo "$as_me: failed program was:" >&5
3709sed 's/^/| /' conftest.$ac_ext >&5
3710
3711 # Broken: fails on valid input.
3712continue
3713fi
3714rm -f conftest.err conftest.$ac_ext
3715
3716 # OK, works on sane cases. Now check whether non-existent headers
3717 # can be detected and how.
3718 cat >conftest.$ac_ext <<_ACEOF
3719#line $LINENO "configure"
3720/* confdefs.h. */
3721_ACEOF
3722cat confdefs.h >>conftest.$ac_ext
3723cat >>conftest.$ac_ext <<_ACEOF
3724/* end confdefs.h. */
3725#include <ac_nonexistent.h>
3726_ACEOF
3727if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3729 ac_status=$?
3730 grep -v '^ *+' conftest.er1 >conftest.err
3731 rm -f conftest.er1
3732 cat conftest.err >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } >/dev/null; then
3735 if test -s conftest.err; then
3736 ac_cpp_err=$ac_c_preproc_warn_flag
3737 else
3738 ac_cpp_err=
3739 fi
3740else
3741 ac_cpp_err=yes
3742fi
3743if test -z "$ac_cpp_err"; then
3744 # Broken: success on invalid input.
3745continue
3746else
3747 echo "$as_me: failed program was:" >&5
3748sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 # Passes both tests.
3751ac_preproc_ok=:
3752break
3753fi
3754rm -f conftest.err conftest.$ac_ext
3755
3756done
3757# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3758rm -f conftest.err conftest.$ac_ext
3759if $ac_preproc_ok; then
3760 :
3761else
3762 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3763See \`config.log' for more details." >&5
3764echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3765See \`config.log' for more details." >&2;}
3766 { (exit 1); exit 1; }; }
3767fi
3768
3769ac_ext=c
3770ac_cpp='$CPP $CPPFLAGS'
3771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774
3775# Find a good install program. We prefer a C program (faster),
3776# so one script is as good as another. But avoid the broken or
3777# incompatible versions:
3778# SysV /etc/install, /usr/sbin/install
3779# SunOS /usr/etc/install
3780# IRIX /sbin/install
3781# AIX /bin/install
3782# AmigaOS /C/install, which installs bootblocks on floppy discs
3783# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3784# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3785# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3786# ./install, which can be erroneously created by make from ./install.sh.
3787echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3788echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3789if test -z "$INSTALL"; then
3790if test "${ac_cv_path_install+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794for as_dir in $PATH
3795do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 # Account for people who put trailing slashes in PATH elements.
3799case $as_dir/ in
3800 ./ | .// | /cC/* | \
3801 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3802 /usr/ucb/* ) ;;
3803 *)
3804 # OSF1 and SCO ODT 3.0 have their own names for install.
3805 # Don't use installbsd from OSF since it installs stuff as root
3806 # by default.
3807 for ac_prog in ginstall scoinst install; do
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3810 if test $ac_prog = install &&
3811 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3812 # AIX install. It has an incompatible calling convention.
3813 :
3814 elif test $ac_prog = install &&
3815 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3816 # program-specific install script used by HP pwplus--don't use.
3817 :
3818 else
3819 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3820 break 3
3821 fi
3822 fi
3823 done
3824 done
3825 ;;
3826esac
3827done
3828
3829
3830fi
3831 if test "${ac_cv_path_install+set}" = set; then
3832 INSTALL=$ac_cv_path_install
3833 else
3834 # As a last resort, use the slow shell script. We don't cache a
3835 # path for INSTALL within a source directory, because that will
3836 # break other packages using the cache if that directory is
3837 # removed, or if the path is relative.
3838 INSTALL=$ac_install_sh
3839 fi
3840fi
3841echo "$as_me:$LINENO: result: $INSTALL" >&5
3842echo "${ECHO_T}$INSTALL" >&6
3843
3844# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3845# It thinks the first close brace ends the variable substitution.
3846test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3847
3848test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3849
3850test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3851
3852if test "x$RANLIB" = x; then
3853 if test -n "$ac_tool_prefix"; then
3854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3855set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3856echo "$as_me:$LINENO: checking for $ac_word" >&5
3857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3858if test "${ac_cv_prog_RANLIB+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860else
3861 if test -n "$RANLIB"; then
3862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3863else
3864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865for as_dir in $PATH
3866do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 break 2
3874 fi
3875done
3876done
3877
3878fi
3879fi
3880RANLIB=$ac_cv_prog_RANLIB
3881if test -n "$RANLIB"; then
3882 echo "$as_me:$LINENO: result: $RANLIB" >&5
3883echo "${ECHO_T}$RANLIB" >&6
3884else
3885 echo "$as_me:$LINENO: result: no" >&5
3886echo "${ECHO_T}no" >&6
3887fi
3888
3889fi
3890if test -z "$ac_cv_prog_RANLIB"; then
3891 ac_ct_RANLIB=$RANLIB
3892 # Extract the first word of "ranlib", so it can be a program name with args.
3893set dummy ranlib; ac_word=$2
3894echo "$as_me:$LINENO: checking for $ac_word" >&5
3895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3896if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
3899 if test -n "$ac_ct_RANLIB"; then
3900 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3901else
3902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903for as_dir in $PATH
3904do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_ac_ct_RANLIB="ranlib"
3910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3912 fi
3913done
3914done
3915
3916 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3917fi
3918fi
3919ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3920if test -n "$ac_ct_RANLIB"; then
3921 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3922echo "${ECHO_T}$ac_ct_RANLIB" >&6
3923else
3924 echo "$as_me:$LINENO: result: no" >&5
3925echo "${ECHO_T}no" >&6
3926fi
3927
3928 RANLIB=$ac_ct_RANLIB
3929else
3930 RANLIB="$ac_cv_prog_RANLIB"
3931fi
3932
3933fi
3934# Extract the first word of "install-info", so it can be a program name with args.
3935set dummy install-info; ac_word=$2
3936echo "$as_me:$LINENO: checking for $ac_word" >&5
3937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3938if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3940else
3941 case $INSTALL_INFO in
3942 [\\/]* | ?:[\\/]*)
3943 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3944 ;;
3945 *)
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH
3948do
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 break 2
3956 fi
3957done
3958done
3959
3960 ;;
3961esac
3962fi
3963INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3964
3965if test -n "$INSTALL_INFO"; then
3966 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3967echo "${ECHO_T}$INSTALL_INFO" >&6
3968else
3969 echo "$as_me:$LINENO: result: no" >&5
3970echo "${ECHO_T}no" >&6
3971fi
3972
3973# Extract the first word of "install-info", so it can be a program name with args.
3974set dummy install-info; ac_word=$2
3975echo "$as_me:$LINENO: checking for $ac_word" >&5
3976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3977if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979else
3980 case $INSTALL_INFO in
3981 [\\/]* | ?:[\\/]*)
3982 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3983 ;;
3984 *)
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986for as_dir in /usr/sbin
3987do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3992 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 break 2
3995 fi
3996done
3997done
3998
3999 ;;
4000esac
4001fi
4002INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4003
4004if test -n "$INSTALL_INFO"; then
4005 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4006echo "${ECHO_T}$INSTALL_INFO" >&6
4007else
4008 echo "$as_me:$LINENO: result: no" >&5
4009echo "${ECHO_T}no" >&6
4010fi
4011
4012# Extract the first word of "install-info", so it can be a program name with args.
4013set dummy install-info; ac_word=$2
4014echo "$as_me:$LINENO: checking for $ac_word" >&5
4015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4016if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019 case $INSTALL_INFO in
4020 [\\/]* | ?:[\\/]*)
4021 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4022 ;;
4023 *)
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025for as_dir in /sbin
4026do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 break 2
4034 fi
4035done
4036done
4037
4038 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4039 ;;
4040esac
4041fi
4042INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4043
4044if test -n "$INSTALL_INFO"; then
4045 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4046echo "${ECHO_T}$INSTALL_INFO" >&6
4047else
4048 echo "$as_me:$LINENO: result: no" >&5
4049echo "${ECHO_T}no" >&6
4050fi
4051
4052
4053
4054if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4055then
4056 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4057fi
4058
4059if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4060then
4061 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4062fi
4063
4064
4065
4066echo "$as_me:$LINENO: checking for egrep" >&5
4067echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4068if test "${ac_cv_prog_egrep+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070else
4071 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4072 then ac_cv_prog_egrep='grep -E'
4073 else ac_cv_prog_egrep='egrep'
4074 fi
4075fi
4076echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4077echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4078 EGREP=$ac_cv_prog_egrep
4079
4080
4081
4082echo "$as_me:$LINENO: checking for AIX" >&5
4083echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4084cat >conftest.$ac_ext <<_ACEOF
4085#line $LINENO "configure"
4086/* confdefs.h. */
4087_ACEOF
4088cat confdefs.h >>conftest.$ac_ext
4089cat >>conftest.$ac_ext <<_ACEOF
4090/* end confdefs.h. */
4091#ifdef _AIX
4092 yes
4093#endif
4094
4095_ACEOF
4096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097 $EGREP "yes" >/dev/null 2>&1; then
4098 echo "$as_me:$LINENO: result: yes" >&5
4099echo "${ECHO_T}yes" >&6
4100cat >>confdefs.h <<\_ACEOF
4101#define _ALL_SOURCE 1
4102_ACEOF
4103
4104else
4105 echo "$as_me:$LINENO: result: no" >&5
4106echo "${ECHO_T}no" >&6
4107fi
4108rm -f conftest*
4109
4110
4111
4112#### Extract some information from the operating system and machine files.
4113
4114{ echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4115 - which libraries the lib-src programs will want, and
4116 - whether the GNU malloc routines are usable..." >&5
4117echo "$as_me: checking the machine- and system-dependent files to find out
4118 - which libraries the lib-src programs will want, and
4119 - whether the GNU malloc routines are usable..." >&6;}
4120
4121### First figure out CFLAGS (which we use for running the compiler here)
4122### and REAL_CFLAGS (which we use for real compilation).
4123### The two are the same except on a few systems, where they are made
4124### different to work around various lossages. For example,
4125### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4126### as implying static linking.
4127
4128### If the CFLAGS env var is specified, we use that value
4129### instead of the default.
4130
4131### It's not important that this name contain the PID; you can't run
4132### two configures in the same directory and have anything work
4133### anyway.
4134tempcname="conftest.c"
4135
4136echo '
4137#include "'${srcdir}'/src/'${opsysfile}'"
4138#include "'${srcdir}'/src/'${machfile}'"
4139#ifndef LIBS_MACHINE
4140#define LIBS_MACHINE
4141#endif
4142#ifndef LIBS_SYSTEM
4143#define LIBS_SYSTEM
4144#endif
4145#ifndef C_SWITCH_SYSTEM
4146#define C_SWITCH_SYSTEM
4147#endif
4148#ifndef C_SWITCH_MACHINE
4149#define C_SWITCH_MACHINE
4150#endif
4151configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4152configure___ c_switch_system=C_SWITCH_SYSTEM
4153configure___ c_switch_machine=C_SWITCH_MACHINE
4154
4155#ifndef LIB_X11_LIB
4156#define LIB_X11_LIB -lX11
4157#endif
4158
4159#ifndef LIBX11_MACHINE
4160#define LIBX11_MACHINE
4161#endif
4162
4163#ifndef LIBX11_SYSTEM
4164#define LIBX11_SYSTEM
4165#endif
4166configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4167
4168#ifdef UNEXEC
4169configure___ unexec=UNEXEC
4170#else
4171configure___ unexec=unexec.o
4172#endif
4173
4174#ifdef SYSTEM_MALLOC
4175configure___ system_malloc=yes
4176#else
4177configure___ system_malloc=no
4178#endif
4179
4180#ifdef USE_MMAP_FOR_BUFFERS
4181configure___ use_mmap_for_buffers=yes
4182#else
4183configure___ use_mmap_for_buffers=no
4184#endif
4185
4186#ifndef C_DEBUG_SWITCH
4187#define C_DEBUG_SWITCH -g
4188#endif
4189
4190#ifndef C_OPTIMIZE_SWITCH
4191#ifdef __GNUC__
4192#define C_OPTIMIZE_SWITCH -O2
4193#else
4194#define C_OPTIMIZE_SWITCH -O
4195#endif
4196#endif
4197
4198#ifndef LD_SWITCH_MACHINE
4199#define LD_SWITCH_MACHINE
4200#endif
4201
4202#ifndef LD_SWITCH_SYSTEM
4203#define LD_SWITCH_SYSTEM
4204#endif
4205
4206#ifndef LD_SWITCH_X_SITE_AUX
4207#define LD_SWITCH_X_SITE_AUX
4208#endif
4209
4210configure___ ld_switch_system=LD_SWITCH_SYSTEM
4211configure___ ld_switch_machine=LD_SWITCH_MACHINE
4212
4213#ifdef THIS_IS_CONFIGURE
4214
4215/* Get the CFLAGS for tests in configure. */
4216#ifdef __GNUC__
4217configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4218#else
4219configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4220#endif
4221
4222#else /* not THIS_IS_CONFIGURE */
4223
4224/* Get the CFLAGS for real compilation. */
4225#ifdef __GNUC__
4226configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4227#else
4228configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4229#endif
4230
4231#endif /* not THIS_IS_CONFIGURE */
4232' > ${tempcname}
4233
4234# The value of CPP is a quoted variable reference, so we need to do this
4235# to get its actual value...
4236CPP=`eval "echo $CPP"`
4237eval `${CPP} -Isrc ${tempcname} \
4238 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4239if test "x$SPECIFIED_CFLAGS" = x; then
4240 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4241 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4242else
4243 REAL_CFLAGS="$CFLAGS"
4244fi
4245rm ${tempcname}
4246
4247ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4248
4249### Make sure subsequent tests use flags consistent with the build flags.
4250
4251if test x"${OVERRIDE_CPPFLAGS}" != x; then
4252 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4253else
4254 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4255fi
4256
4257
4258
4259
4260cat >>confdefs.h <<\_ACEOF
4261#define _GNU_SOURCE 1
4262_ACEOF
4263
4264
4265
4266# Check whether --enable-largefile or --disable-largefile was given.
4267if test "${enable_largefile+set}" = set; then
4268 enableval="$enable_largefile"
4269
4270fi;
4271if test "$enable_largefile" != no; then
4272
4273 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4274echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4275if test "${ac_cv_sys_largefile_CC+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4277else
4278 ac_cv_sys_largefile_CC=no
4279 if test "$GCC" != yes; then
4280 ac_save_CC=$CC
4281 while :; do
4282 # IRIX 6.2 and later do not support large files by default,
4283 # so use the C compiler's -n32 option if that helps.
4284 cat >conftest.$ac_ext <<_ACEOF
4285#line $LINENO "configure"
4286/* confdefs.h. */
4287_ACEOF
4288cat confdefs.h >>conftest.$ac_ext
4289cat >>conftest.$ac_ext <<_ACEOF
4290/* end confdefs.h. */
4291#include <sys/types.h>
4292 /* Check that off_t can represent 2**63 - 1 correctly.
4293 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4294 since some C++ compilers masquerading as C compilers
4295 incorrectly reject 9223372036854775807. */
4296#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4297 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4298 && LARGE_OFF_T % 2147483647 == 1)
4299 ? 1 : -1];
4300int
4301main ()
4302{
4303
4304 ;
4305 return 0;
4306}
4307_ACEOF
4308 rm -f conftest.$ac_objext
4309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4310 (eval $ac_compile) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 (eval $ac_try) 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; }; then
4320 break
4321else
4322 echo "$as_me: failed program was:" >&5
4323sed 's/^/| /' conftest.$ac_ext >&5
4324
4325fi
4326rm -f conftest.$ac_objext
4327 CC="$CC -n32"
4328 rm -f conftest.$ac_objext
4329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4330 (eval $ac_compile) 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } &&
4334 { ac_try='test -s conftest.$ac_objext'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 (eval $ac_try) 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_cv_sys_largefile_CC=' -n32'; break
4341else
4342 echo "$as_me: failed program was:" >&5
4343sed 's/^/| /' conftest.$ac_ext >&5
4344
4345fi
4346rm -f conftest.$ac_objext
4347 break
4348 done
4349 CC=$ac_save_CC
4350 rm -f conftest.$ac_ext
4351 fi
4352fi
4353echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4354echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4355 if test "$ac_cv_sys_largefile_CC" != no; then
4356 CC=$CC$ac_cv_sys_largefile_CC
4357 fi
4358
4359 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4360echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4361if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4363else
4364 while :; do
4365 ac_cv_sys_file_offset_bits=no
4366 cat >conftest.$ac_ext <<_ACEOF
4367#line $LINENO "configure"
4368/* confdefs.h. */
4369_ACEOF
4370cat confdefs.h >>conftest.$ac_ext
4371cat >>conftest.$ac_ext <<_ACEOF
4372/* end confdefs.h. */
4373#include <sys/types.h>
4374 /* Check that off_t can represent 2**63 - 1 correctly.
4375 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4376 since some C++ compilers masquerading as C compilers
4377 incorrectly reject 9223372036854775807. */
4378#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4380 && LARGE_OFF_T % 2147483647 == 1)
4381 ? 1 : -1];
4382int
4383main ()
4384{
4385
4386 ;
4387 return 0;
4388}
4389_ACEOF
4390rm -f conftest.$ac_objext
4391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392 (eval $ac_compile) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try='test -s conftest.$ac_objext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 break
4403else
4404 echo "$as_me: failed program was:" >&5
4405sed 's/^/| /' conftest.$ac_ext >&5
4406
4407fi
4408rm -f conftest.$ac_objext conftest.$ac_ext
4409 cat >conftest.$ac_ext <<_ACEOF
4410#line $LINENO "configure"
4411/* confdefs.h. */
4412_ACEOF
4413cat confdefs.h >>conftest.$ac_ext
4414cat >>conftest.$ac_ext <<_ACEOF
4415/* end confdefs.h. */
4416#define _FILE_OFFSET_BITS 64
4417#include <sys/types.h>
4418 /* Check that off_t can represent 2**63 - 1 correctly.
4419 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4420 since some C++ compilers masquerading as C compilers
4421 incorrectly reject 9223372036854775807. */
4422#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4423 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4424 && LARGE_OFF_T % 2147483647 == 1)
4425 ? 1 : -1];
4426int
4427main ()
4428{
4429
4430 ;
4431 return 0;
4432}
4433_ACEOF
4434rm -f conftest.$ac_objext
4435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4436 (eval $ac_compile) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -s conftest.$ac_objext'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 ac_cv_sys_file_offset_bits=64; break
4447else
4448 echo "$as_me: failed program was:" >&5
4449sed 's/^/| /' conftest.$ac_ext >&5
4450
4451fi
4452rm -f conftest.$ac_objext conftest.$ac_ext
4453 break
4454done
4455fi
4456echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4457echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4458if test "$ac_cv_sys_file_offset_bits" != no; then
4459
4460cat >>confdefs.h <<_ACEOF
4461#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4462_ACEOF
4463
4464fi
4465rm -f conftest*
4466 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4467echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4468if test "${ac_cv_sys_large_files+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470else
4471 while :; do
4472 ac_cv_sys_large_files=no
4473 cat >conftest.$ac_ext <<_ACEOF
4474#line $LINENO "configure"
4475/* confdefs.h. */
4476_ACEOF
4477cat confdefs.h >>conftest.$ac_ext
4478cat >>conftest.$ac_ext <<_ACEOF
4479/* end confdefs.h. */
4480#include <sys/types.h>
4481 /* Check that off_t can represent 2**63 - 1 correctly.
4482 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4483 since some C++ compilers masquerading as C compilers
4484 incorrectly reject 9223372036854775807. */
4485#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4486 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4487 && LARGE_OFF_T % 2147483647 == 1)
4488 ? 1 : -1];
4489int
4490main ()
4491{
4492
4493 ;
4494 return 0;
4495}
4496_ACEOF
4497rm -f conftest.$ac_objext
4498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499 (eval $ac_compile) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } &&
4503 { ac_try='test -s conftest.$ac_objext'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505 (eval $ac_try) 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 break
4510else
4511 echo "$as_me: failed program was:" >&5
4512sed 's/^/| /' conftest.$ac_ext >&5
4513
4514fi
4515rm -f conftest.$ac_objext conftest.$ac_ext
4516 cat >conftest.$ac_ext <<_ACEOF
4517#line $LINENO "configure"
4518/* confdefs.h. */
4519_ACEOF
4520cat confdefs.h >>conftest.$ac_ext
4521cat >>conftest.$ac_ext <<_ACEOF
4522/* end confdefs.h. */
4523#define _LARGE_FILES 1
4524#include <sys/types.h>
4525 /* Check that off_t can represent 2**63 - 1 correctly.
4526 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4527 since some C++ compilers masquerading as C compilers
4528 incorrectly reject 9223372036854775807. */
4529#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4530 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4531 && LARGE_OFF_T % 2147483647 == 1)
4532 ? 1 : -1];
4533int
4534main ()
4535{
4536
4537 ;
4538 return 0;
4539}
4540_ACEOF
4541rm -f conftest.$ac_objext
4542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 ac_cv_sys_large_files=1; break
4554else
4555 echo "$as_me: failed program was:" >&5
4556sed 's/^/| /' conftest.$ac_ext >&5
4557
4558fi
4559rm -f conftest.$ac_objext conftest.$ac_ext
4560 break
4561done
4562fi
4563echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4564echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4565if test "$ac_cv_sys_large_files" != no; then
4566
4567cat >>confdefs.h <<_ACEOF
4568#define _LARGE_FILES $ac_cv_sys_large_files
4569_ACEOF
4570
4571fi
4572rm -f conftest*
4573fi
4574
4575
4576if test "${with_sound}" != "no"; then
4577 # Sound support for GNU/Linux and the free BSDs.
4578 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4579echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4580if test "${ac_cv_header_stdc+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583 cat >conftest.$ac_ext <<_ACEOF
4584#line $LINENO "configure"
4585/* confdefs.h. */
4586_ACEOF
4587cat confdefs.h >>conftest.$ac_ext
4588cat >>conftest.$ac_ext <<_ACEOF
4589/* end confdefs.h. */
4590#include <stdlib.h>
4591#include <stdarg.h>
4592#include <string.h>
4593#include <float.h>
4594
4595int
4596main ()
4597{
4598
4599 ;
4600 return 0;
4601}
4602_ACEOF
4603rm -f conftest.$ac_objext
4604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try='test -s conftest.$ac_objext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 ac_cv_header_stdc=yes
4616else
4617 echo "$as_me: failed program was:" >&5
4618sed 's/^/| /' conftest.$ac_ext >&5
4619
4620ac_cv_header_stdc=no
4621fi
4622rm -f conftest.$ac_objext conftest.$ac_ext
4623
4624if test $ac_cv_header_stdc = yes; then
4625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4626 cat >conftest.$ac_ext <<_ACEOF
4627#line $LINENO "configure"
4628/* confdefs.h. */
4629_ACEOF
4630cat confdefs.h >>conftest.$ac_ext
4631cat >>conftest.$ac_ext <<_ACEOF
4632/* end confdefs.h. */
4633#include <string.h>
4634
4635_ACEOF
4636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4637 $EGREP "memchr" >/dev/null 2>&1; then
4638 :
4639else
4640 ac_cv_header_stdc=no
4641fi
4642rm -f conftest*
4643
4644fi
4645
4646if test $ac_cv_header_stdc = yes; then
4647 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4648 cat >conftest.$ac_ext <<_ACEOF
4649#line $LINENO "configure"
4650/* confdefs.h. */
4651_ACEOF
4652cat confdefs.h >>conftest.$ac_ext
4653cat >>conftest.$ac_ext <<_ACEOF
4654/* end confdefs.h. */
4655#include <stdlib.h>
4656
4657_ACEOF
4658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4659 $EGREP "free" >/dev/null 2>&1; then
4660 :
4661else
4662 ac_cv_header_stdc=no
4663fi
4664rm -f conftest*
4665
4666fi
4667
4668if test $ac_cv_header_stdc = yes; then
4669 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4670 if test "$cross_compiling" = yes; then
4671 :
4672else
4673 cat >conftest.$ac_ext <<_ACEOF
4674#line $LINENO "configure"
4675/* confdefs.h. */
4676_ACEOF
4677cat confdefs.h >>conftest.$ac_ext
4678cat >>conftest.$ac_ext <<_ACEOF
4679/* end confdefs.h. */
4680#include <ctype.h>
4681#if ((' ' & 0x0FF) == 0x020)
4682# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4683# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4684#else
4685# define ISLOWER(c) \
4686 (('a' <= (c) && (c) <= 'i') \
4687 || ('j' <= (c) && (c) <= 'r') \
4688 || ('s' <= (c) && (c) <= 'z'))
4689# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4690#endif
4691
4692#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4693int
4694main ()
4695{
4696 int i;
4697 for (i = 0; i < 256; i++)
4698 if (XOR (islower (i), ISLOWER (i))
4699 || toupper (i) != TOUPPER (i))
4700 exit(2);
4701 exit (0);
4702}
4703_ACEOF
4704rm -f conftest$ac_exeext
4705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4706 (eval $ac_link) 2>&5
4707 ac_status=$?
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 (eval $ac_try) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; }; then
4715 :
4716else
4717 echo "$as_me: program exited with status $ac_status" >&5
4718echo "$as_me: failed program was:" >&5
4719sed 's/^/| /' conftest.$ac_ext >&5
4720
4721( exit $ac_status )
4722ac_cv_header_stdc=no
4723fi
4724rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4725fi
4726fi
4727fi
4728echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4729echo "${ECHO_T}$ac_cv_header_stdc" >&6
4730if test $ac_cv_header_stdc = yes; then
4731
4732cat >>confdefs.h <<\_ACEOF
4733#define STDC_HEADERS 1
4734_ACEOF
4735
4736fi
4737
4738# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4749 inttypes.h stdint.h unistd.h
4750do
4751as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4752echo "$as_me:$LINENO: checking for $ac_header" >&5
4753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4754if eval "test \"\${$as_ac_Header+set}\" = set"; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4756else
4757 cat >conftest.$ac_ext <<_ACEOF
4758#line $LINENO "configure"
4759/* confdefs.h. */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h. */
4764$ac_includes_default
4765
4766#include <$ac_header>
4767_ACEOF
4768rm -f conftest.$ac_objext
4769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 eval "$as_ac_Header=yes"
4781else
4782 echo "$as_me: failed program was:" >&5
4783sed 's/^/| /' conftest.$ac_ext >&5
4784
4785eval "$as_ac_Header=no"
4786fi
4787rm -f conftest.$ac_objext conftest.$ac_ext
4788fi
4789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4791if test `eval echo '${'$as_ac_Header'}'` = yes; then
4792 cat >>confdefs.h <<_ACEOF
4793#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4794_ACEOF
4795
4796fi
4797
4798done
4799
4800
4801
4802
4803
4804for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4805do
4806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4807if eval "test \"\${$as_ac_Header+set}\" = set"; then
4808 echo "$as_me:$LINENO: checking for $ac_header" >&5
4809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4810if eval "test \"\${$as_ac_Header+set}\" = set"; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812fi
4813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4815else
4816 # Is the header compilable?
4817echo "$as_me:$LINENO: checking $ac_header usability" >&5
4818echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4819cat >conftest.$ac_ext <<_ACEOF
4820#line $LINENO "configure"
4821/* confdefs.h. */
4822_ACEOF
4823cat confdefs.h >>conftest.$ac_ext
4824cat >>conftest.$ac_ext <<_ACEOF
4825/* end confdefs.h. */
4826$ac_includes_default
4827#include <$ac_header>
4828_ACEOF
4829rm -f conftest.$ac_objext
4830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } &&
4835 { ac_try='test -s conftest.$ac_objext'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 (eval $ac_try) 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4841 ac_header_compiler=yes
4842else
4843 echo "$as_me: failed program was:" >&5
4844sed 's/^/| /' conftest.$ac_ext >&5
4845
4846ac_header_compiler=no
4847fi
4848rm -f conftest.$ac_objext conftest.$ac_ext
4849echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4850echo "${ECHO_T}$ac_header_compiler" >&6
4851
4852# Is the header present?
4853echo "$as_me:$LINENO: checking $ac_header presence" >&5
4854echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4855cat >conftest.$ac_ext <<_ACEOF
4856#line $LINENO "configure"
4857/* confdefs.h. */
4858_ACEOF
4859cat confdefs.h >>conftest.$ac_ext
4860cat >>conftest.$ac_ext <<_ACEOF
4861/* end confdefs.h. */
4862#include <$ac_header>
4863_ACEOF
4864if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4866 ac_status=$?
4867 grep -v '^ *+' conftest.er1 >conftest.err
4868 rm -f conftest.er1
4869 cat conftest.err >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } >/dev/null; then
4872 if test -s conftest.err; then
4873 ac_cpp_err=$ac_c_preproc_warn_flag
4874 else
4875 ac_cpp_err=
4876 fi
4877else
4878 ac_cpp_err=yes
4879fi
4880if test -z "$ac_cpp_err"; then
4881 ac_header_preproc=yes
4882else
4883 echo "$as_me: failed program was:" >&5
4884sed 's/^/| /' conftest.$ac_ext >&5
4885
4886 ac_header_preproc=no
4887fi
4888rm -f conftest.err conftest.$ac_ext
4889echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4890echo "${ECHO_T}$ac_header_preproc" >&6
4891
4892# So? What about this header?
4893case $ac_header_compiler:$ac_header_preproc in
4894 yes:no )
4895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4896echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4898echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4899 (
4900 cat <<\_ASBOX
4901## ------------------------------------ ##
4902## Report this to bug-autoconf@gnu.org. ##
4903## ------------------------------------ ##
4904_ASBOX
4905 ) |
4906 sed "s/^/$as_me: WARNING: /" >&2
4907 ;;
4908 no:yes )
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4910echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4912echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4914echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4915 (
4916 cat <<\_ASBOX
4917## ------------------------------------ ##
4918## Report this to bug-autoconf@gnu.org. ##
4919## ------------------------------------ ##
4920_ASBOX
4921 ) |
4922 sed "s/^/$as_me: WARNING: /" >&2
4923 ;;
4924esac
4925echo "$as_me:$LINENO: checking for $ac_header" >&5
4926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4927if eval "test \"\${$as_ac_Header+set}\" = set"; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4929else
4930 eval "$as_ac_Header=$ac_header_preproc"
4931fi
4932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4933echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4934
4935fi
4936if test `eval echo '${'$as_ac_Header'}'` = yes; then
4937 cat >>confdefs.h <<_ACEOF
4938#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4939_ACEOF
4940
4941fi
4942
4943done
4944
4945 # Emulation library used on NetBSD.
4946 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4947echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4948if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950else
4951 ac_check_lib_save_LIBS=$LIBS
4952LIBS="-lossaudio $LIBS"
4953cat >conftest.$ac_ext <<_ACEOF
4954#line $LINENO "configure"
4955/* confdefs.h. */
4956_ACEOF
4957cat confdefs.h >>conftest.$ac_ext
4958cat >>conftest.$ac_ext <<_ACEOF
4959/* end confdefs.h. */
4960
4961/* Override any gcc2 internal prototype to avoid an error. */
4962#ifdef __cplusplus
4963extern "C"
4964#endif
4965/* We use char because int might match the return type of a gcc2
4966 builtin and then its argument prototype would still apply. */
4967char _oss_ioctl ();
4968int
4969main ()
4970{
4971_oss_ioctl ();
4972 ;
4973 return 0;
4974}
4975_ACEOF
4976rm -f conftest.$ac_objext conftest$ac_exeext
4977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4978 (eval $ac_link) 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try='test -s conftest$ac_exeext'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 (eval $ac_try) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4988 ac_cv_lib_ossaudio__oss_ioctl=yes
4989else
4990 echo "$as_me: failed program was:" >&5
4991sed 's/^/| /' conftest.$ac_ext >&5
4992
4993ac_cv_lib_ossaudio__oss_ioctl=no
4994fi
4995rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4996LIBS=$ac_check_lib_save_LIBS
4997fi
4998echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4999echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5000if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5001 LIBSOUND=-lossaudio
5002else
5003 LIBSOUND=
5004fi
5005
5006
5007fi
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5032 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5033 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \
5034 sys/param.h sys/vlimit.h sys/resource.h
5035do
5036as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5037if eval "test \"\${$as_ac_Header+set}\" = set"; then
5038 echo "$as_me:$LINENO: checking for $ac_header" >&5
5039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5040if eval "test \"\${$as_ac_Header+set}\" = set"; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042fi
5043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5045else
5046 # Is the header compilable?
5047echo "$as_me:$LINENO: checking $ac_header usability" >&5
5048echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5049cat >conftest.$ac_ext <<_ACEOF
5050#line $LINENO "configure"
5051/* confdefs.h. */
5052_ACEOF
5053cat confdefs.h >>conftest.$ac_ext
5054cat >>conftest.$ac_ext <<_ACEOF
5055/* end confdefs.h. */
5056$ac_includes_default
5057#include <$ac_header>
5058_ACEOF
5059rm -f conftest.$ac_objext
5060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5061 (eval $ac_compile) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } &&
5065 { ac_try='test -s conftest.$ac_objext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 (eval $ac_try) 2>&5
5068 ac_status=$?
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 ac_header_compiler=yes
5072else
5073 echo "$as_me: failed program was:" >&5
5074sed 's/^/| /' conftest.$ac_ext >&5
5075
5076ac_header_compiler=no
5077fi
5078rm -f conftest.$ac_objext conftest.$ac_ext
5079echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5080echo "${ECHO_T}$ac_header_compiler" >&6
5081
5082# Is the header present?
5083echo "$as_me:$LINENO: checking $ac_header presence" >&5
5084echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5085cat >conftest.$ac_ext <<_ACEOF
5086#line $LINENO "configure"
5087/* confdefs.h. */
5088_ACEOF
5089cat confdefs.h >>conftest.$ac_ext
5090cat >>conftest.$ac_ext <<_ACEOF
5091/* end confdefs.h. */
5092#include <$ac_header>
5093_ACEOF
5094if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } >/dev/null; then
5102 if test -s conftest.err; then
5103 ac_cpp_err=$ac_c_preproc_warn_flag
5104 else
5105 ac_cpp_err=
5106 fi
5107else
5108 ac_cpp_err=yes
5109fi
5110if test -z "$ac_cpp_err"; then
5111 ac_header_preproc=yes
5112else
5113 echo "$as_me: failed program was:" >&5
5114sed 's/^/| /' conftest.$ac_ext >&5
5115
5116 ac_header_preproc=no
5117fi
5118rm -f conftest.err conftest.$ac_ext
5119echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5120echo "${ECHO_T}$ac_header_preproc" >&6
5121
5122# So? What about this header?
5123case $ac_header_compiler:$ac_header_preproc in
5124 yes:no )
5125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5126echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5128echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5129 (
5130 cat <<\_ASBOX
5131## ------------------------------------ ##
5132## Report this to bug-autoconf@gnu.org. ##
5133## ------------------------------------ ##
5134_ASBOX
5135 ) |
5136 sed "s/^/$as_me: WARNING: /" >&2
5137 ;;
5138 no:yes )
5139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5142echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5144echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5145 (
5146 cat <<\_ASBOX
5147## ------------------------------------ ##
5148## Report this to bug-autoconf@gnu.org. ##
5149## ------------------------------------ ##
5150_ASBOX
5151 ) |
5152 sed "s/^/$as_me: WARNING: /" >&2
5153 ;;
5154esac
5155echo "$as_me:$LINENO: checking for $ac_header" >&5
5156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5157if eval "test \"\${$as_ac_Header+set}\" = set"; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159else
5160 eval "$as_ac_Header=$ac_header_preproc"
5161fi
5162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5164
5165fi
5166if test `eval echo '${'$as_ac_Header'}'` = yes; then
5167 cat >>confdefs.h <<_ACEOF
5168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5169_ACEOF
5170
5171fi
5172
5173done
5174
5175
5176for ac_header in term.h
5177do
5178as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5179echo "$as_me:$LINENO: checking for $ac_header" >&5
5180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5181if eval "test \"\${$as_ac_Header+set}\" = set"; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183else
5184 cat >conftest.$ac_ext <<_ACEOF
5185#line $LINENO "configure"
5186/* confdefs.h. */
5187_ACEOF
5188cat confdefs.h >>conftest.$ac_ext
5189cat >>conftest.$ac_ext <<_ACEOF
5190/* end confdefs.h. */
5191#include <$ac_header>
5192_ACEOF
5193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5195 ac_status=$?
5196 grep -v '^ *+' conftest.er1 >conftest.err
5197 rm -f conftest.er1
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } >/dev/null; then
5201 if test -s conftest.err; then
5202 ac_cpp_err=$ac_c_preproc_warn_flag
5203 else
5204 ac_cpp_err=
5205 fi
5206else
5207 ac_cpp_err=yes
5208fi
5209if test -z "$ac_cpp_err"; then
5210 eval "$as_ac_Header=yes"
5211else
5212 echo "$as_me: failed program was:" >&5
5213sed 's/^/| /' conftest.$ac_ext >&5
5214
5215 eval "$as_ac_Header=no"
5216fi
5217rm -f conftest.err conftest.$ac_ext
5218fi
5219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5221if test `eval echo '${'$as_ac_Header'}'` = yes; then
5222 cat >>confdefs.h <<_ACEOF
5223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5224_ACEOF
5225
5226fi
5227
5228done
5229
5230echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5231echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5232if test "${ac_cv_header_stdc+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234else
5235 cat >conftest.$ac_ext <<_ACEOF
5236#line $LINENO "configure"
5237/* confdefs.h. */
5238_ACEOF
5239cat confdefs.h >>conftest.$ac_ext
5240cat >>conftest.$ac_ext <<_ACEOF
5241/* end confdefs.h. */
5242#include <stdlib.h>
5243#include <stdarg.h>
5244#include <string.h>
5245#include <float.h>
5246
5247int
5248main ()
5249{
5250
5251 ;
5252 return 0;
5253}
5254_ACEOF
5255rm -f conftest.$ac_objext
5256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5257 (eval $ac_compile) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
5261 { ac_try='test -s conftest.$ac_objext'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 (eval $ac_try) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5267 ac_cv_header_stdc=yes
5268else
5269 echo "$as_me: failed program was:" >&5
5270sed 's/^/| /' conftest.$ac_ext >&5
5271
5272ac_cv_header_stdc=no
5273fi
5274rm -f conftest.$ac_objext conftest.$ac_ext
5275
5276if test $ac_cv_header_stdc = yes; then
5277 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5278 cat >conftest.$ac_ext <<_ACEOF
5279#line $LINENO "configure"
5280/* confdefs.h. */
5281_ACEOF
5282cat confdefs.h >>conftest.$ac_ext
5283cat >>conftest.$ac_ext <<_ACEOF
5284/* end confdefs.h. */
5285#include <string.h>
5286
5287_ACEOF
5288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 $EGREP "memchr" >/dev/null 2>&1; then
5290 :
5291else
5292 ac_cv_header_stdc=no
5293fi
5294rm -f conftest*
5295
5296fi
5297
5298if test $ac_cv_header_stdc = yes; then
5299 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5300 cat >conftest.$ac_ext <<_ACEOF
5301#line $LINENO "configure"
5302/* confdefs.h. */
5303_ACEOF
5304cat confdefs.h >>conftest.$ac_ext
5305cat >>conftest.$ac_ext <<_ACEOF
5306/* end confdefs.h. */
5307#include <stdlib.h>
5308
5309_ACEOF
5310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5311 $EGREP "free" >/dev/null 2>&1; then
5312 :
5313else
5314 ac_cv_header_stdc=no
5315fi
5316rm -f conftest*
5317
5318fi
5319
5320if test $ac_cv_header_stdc = yes; then
5321 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5322 if test "$cross_compiling" = yes; then
5323 :
5324else
5325 cat >conftest.$ac_ext <<_ACEOF
5326#line $LINENO "configure"
5327/* confdefs.h. */
5328_ACEOF
5329cat confdefs.h >>conftest.$ac_ext
5330cat >>conftest.$ac_ext <<_ACEOF
5331/* end confdefs.h. */
5332#include <ctype.h>
5333#if ((' ' & 0x0FF) == 0x020)
5334# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5335# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5336#else
5337# define ISLOWER(c) \
5338 (('a' <= (c) && (c) <= 'i') \
5339 || ('j' <= (c) && (c) <= 'r') \
5340 || ('s' <= (c) && (c) <= 'z'))
5341# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5342#endif
5343
5344#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5345int
5346main ()
5347{
5348 int i;
5349 for (i = 0; i < 256; i++)
5350 if (XOR (islower (i), ISLOWER (i))
5351 || toupper (i) != TOUPPER (i))
5352 exit(2);
5353 exit (0);
5354}
5355_ACEOF
5356rm -f conftest$ac_exeext
5357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5358 (eval $ac_link) 2>&5
5359 ac_status=$?
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 (eval $ac_try) 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5367 :
5368else
5369 echo "$as_me: program exited with status $ac_status" >&5
5370echo "$as_me: failed program was:" >&5
5371sed 's/^/| /' conftest.$ac_ext >&5
5372
5373( exit $ac_status )
5374ac_cv_header_stdc=no
5375fi
5376rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5377fi
5378fi
5379fi
5380echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5381echo "${ECHO_T}$ac_cv_header_stdc" >&6
5382if test $ac_cv_header_stdc = yes; then
5383
5384cat >>confdefs.h <<\_ACEOF
5385#define STDC_HEADERS 1
5386_ACEOF
5387
5388fi
5389
5390echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5391echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5392if test "${ac_cv_header_time+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5394else
5395 cat >conftest.$ac_ext <<_ACEOF
5396#line $LINENO "configure"
5397/* confdefs.h. */
5398_ACEOF
5399cat confdefs.h >>conftest.$ac_ext
5400cat >>conftest.$ac_ext <<_ACEOF
5401/* end confdefs.h. */
5402#include <sys/types.h>
5403#include <sys/time.h>
5404#include <time.h>
5405
5406int
5407main ()
5408{
5409if ((struct tm *) 0)
5410return 0;
5411 ;
5412 return 0;
5413}
5414_ACEOF
5415rm -f conftest.$ac_objext
5416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5417 (eval $ac_compile) 2>&5
5418 ac_status=$?
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } &&
5421 { ac_try='test -s conftest.$ac_objext'
5422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 (eval $ac_try) 2>&5
5424 ac_status=$?
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; }; then
5427 ac_cv_header_time=yes
5428else
5429 echo "$as_me: failed program was:" >&5
5430sed 's/^/| /' conftest.$ac_ext >&5
5431
5432ac_cv_header_time=no
5433fi
5434rm -f conftest.$ac_objext conftest.$ac_ext
5435fi
5436echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5437echo "${ECHO_T}$ac_cv_header_time" >&6
5438if test $ac_cv_header_time = yes; then
5439
5440cat >>confdefs.h <<\_ACEOF
5441#define TIME_WITH_SYS_TIME 1
5442_ACEOF
5443
5444fi
5445
5446echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5447echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5448if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450else
5451 cat >conftest.$ac_ext <<_ACEOF
5452#line $LINENO "configure"
5453/* confdefs.h. */
5454_ACEOF
5455cat confdefs.h >>conftest.$ac_ext
5456cat >>conftest.$ac_ext <<_ACEOF
5457/* end confdefs.h. */
5458$ac_includes_default
5459int
5460main ()
5461{
5462#ifndef sys_siglist
5463 char *p = (char *) sys_siglist;
5464#endif
5465
5466 ;
5467 return 0;
5468}
5469_ACEOF
5470rm -f conftest.$ac_objext
5471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5472 (eval $ac_compile) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } &&
5476 { ac_try='test -s conftest.$ac_objext'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 (eval $ac_try) 2>&5
5479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5482 ac_cv_have_decl_sys_siglist=yes
5483else
5484 echo "$as_me: failed program was:" >&5
5485sed 's/^/| /' conftest.$ac_ext >&5
5486
5487ac_cv_have_decl_sys_siglist=no
5488fi
5489rm -f conftest.$ac_objext conftest.$ac_ext
5490fi
5491echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5492echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5493if test $ac_cv_have_decl_sys_siglist = yes; then
5494
5495cat >>confdefs.h <<_ACEOF
5496#define HAVE_DECL_SYS_SIGLIST 1
5497_ACEOF
5498
5499
5500else
5501 cat >>confdefs.h <<_ACEOF
5502#define HAVE_DECL_SYS_SIGLIST 0
5503_ACEOF
5504
5505
5506fi
5507
5508
5509if test $ac_cv_have_decl_sys_siglist != yes; then
5510 # For Tru64, at least:
5511 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5512echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5513if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515else
5516 cat >conftest.$ac_ext <<_ACEOF
5517#line $LINENO "configure"
5518/* confdefs.h. */
5519_ACEOF
5520cat confdefs.h >>conftest.$ac_ext
5521cat >>conftest.$ac_ext <<_ACEOF
5522/* end confdefs.h. */
5523$ac_includes_default
5524int
5525main ()
5526{
5527#ifndef __sys_siglist
5528 char *p = (char *) __sys_siglist;
5529#endif
5530
5531 ;
5532 return 0;
5533}
5534_ACEOF
5535rm -f conftest.$ac_objext
5536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5537 (eval $ac_compile) 2>&5
5538 ac_status=$?
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try='test -s conftest.$ac_objext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 (eval $ac_try) 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 ac_cv_have_decl___sys_siglist=yes
5548else
5549 echo "$as_me: failed program was:" >&5
5550sed 's/^/| /' conftest.$ac_ext >&5
5551
5552ac_cv_have_decl___sys_siglist=no
5553fi
5554rm -f conftest.$ac_objext conftest.$ac_ext
5555fi
5556echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5557echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5558if test $ac_cv_have_decl___sys_siglist = yes; then
5559
5560cat >>confdefs.h <<_ACEOF
5561#define HAVE_DECL___SYS_SIGLIST 1
5562_ACEOF
5563
5564
5565else
5566 cat >>confdefs.h <<_ACEOF
5567#define HAVE_DECL___SYS_SIGLIST 0
5568_ACEOF
5569
5570
5571fi
5572
5573
5574 if test $ac_cv_have_decl___sys_siglist = yes; then
5575
5576cat >>confdefs.h <<\_ACEOF
5577#define sys_siglist __sys_siglist
5578_ACEOF
5579
5580 fi
5581fi
5582echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5583echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5584if test "${ac_cv_header_sys_wait_h+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586else
5587 cat >conftest.$ac_ext <<_ACEOF
5588#line $LINENO "configure"
5589/* confdefs.h. */
5590_ACEOF
5591cat confdefs.h >>conftest.$ac_ext
5592cat >>conftest.$ac_ext <<_ACEOF
5593/* end confdefs.h. */
5594#include <sys/types.h>
5595#include <sys/wait.h>
5596#ifndef WEXITSTATUS
5597# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5598#endif
5599#ifndef WIFEXITED
5600# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5601#endif
5602
5603int
5604main ()
5605{
5606 int s;
5607 wait (&s);
5608 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5609 ;
5610 return 0;
5611}
5612_ACEOF
5613rm -f conftest.$ac_objext
5614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615 (eval $ac_compile) 2>&5
5616 ac_status=$?
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } &&
5619 { ac_try='test -s conftest.$ac_objext'
5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 (eval $ac_try) 2>&5
5622 ac_status=$?
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; }; then
5625 ac_cv_header_sys_wait_h=yes
5626else
5627 echo "$as_me: failed program was:" >&5
5628sed 's/^/| /' conftest.$ac_ext >&5
5629
5630ac_cv_header_sys_wait_h=no
5631fi
5632rm -f conftest.$ac_objext conftest.$ac_ext
5633fi
5634echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5635echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5636if test $ac_cv_header_sys_wait_h = yes; then
5637
5638cat >>confdefs.h <<\_ACEOF
5639#define HAVE_SYS_WAIT_H 1
5640_ACEOF
5641
5642fi
5643
5644
5645echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5646echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5647if test "${emacs_cv_struct_utimbuf+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649else
5650 cat >conftest.$ac_ext <<_ACEOF
5651#line $LINENO "configure"
5652/* confdefs.h. */
5653_ACEOF
5654cat confdefs.h >>conftest.$ac_ext
5655cat >>conftest.$ac_ext <<_ACEOF
5656/* end confdefs.h. */
5657#ifdef TIME_WITH_SYS_TIME
5658#include <sys/time.h>
5659#include <time.h>
5660#else
5661#ifdef HAVE_SYS_TIME_H
5662#include <sys/time.h>
5663#else
5664#include <time.h>
5665#endif
5666#endif
5667#ifdef HAVE_UTIME_H
5668#include <utime.h>
5669#endif
5670int
5671main ()
5672{
5673static struct utimbuf x; x.actime = x.modtime;
5674 ;
5675 return 0;
5676}
5677_ACEOF
5678rm -f conftest.$ac_objext
5679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5680 (eval $ac_compile) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try='test -s conftest.$ac_objext'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 (eval $ac_try) 2>&5
5687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5690 emacs_cv_struct_utimbuf=yes
5691else
5692 echo "$as_me: failed program was:" >&5
5693sed 's/^/| /' conftest.$ac_ext >&5
5694
5695emacs_cv_struct_utimbuf=no
5696fi
5697rm -f conftest.$ac_objext conftest.$ac_ext
5698fi
5699echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5700echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5701if test $emacs_cv_struct_utimbuf = yes; then
5702
5703cat >>confdefs.h <<\_ACEOF
5704#define HAVE_STRUCT_UTIMBUF 1
5705_ACEOF
5706
5707fi
5708
5709echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5710echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5711if test "${ac_cv_type_signal+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5713else
5714 cat >conftest.$ac_ext <<_ACEOF
5715#line $LINENO "configure"
5716/* confdefs.h. */
5717_ACEOF
5718cat confdefs.h >>conftest.$ac_ext
5719cat >>conftest.$ac_ext <<_ACEOF
5720/* end confdefs.h. */
5721#include <sys/types.h>
5722#include <signal.h>
5723#ifdef signal
5724# undef signal
5725#endif
5726#ifdef __cplusplus
5727extern "C" void (*signal (int, void (*)(int)))(int);
5728#else
5729void (*signal ()) ();
5730#endif
5731
5732int
5733main ()
5734{
5735int i;
5736 ;
5737 return 0;
5738}
5739_ACEOF
5740rm -f conftest.$ac_objext
5741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742 (eval $ac_compile) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } &&
5746 { ac_try='test -s conftest.$ac_objext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 ac_cv_type_signal=void
5753else
5754 echo "$as_me: failed program was:" >&5
5755sed 's/^/| /' conftest.$ac_ext >&5
5756
5757ac_cv_type_signal=int
5758fi
5759rm -f conftest.$ac_objext conftest.$ac_ext
5760fi
5761echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5762echo "${ECHO_T}$ac_cv_type_signal" >&6
5763
5764cat >>confdefs.h <<_ACEOF
5765#define RETSIGTYPE $ac_cv_type_signal
5766_ACEOF
5767
5768
5769
5770echo "$as_me:$LINENO: checking for speed_t" >&5
5771echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5772if test "${emacs_cv_speed_t+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5774else
5775 cat >conftest.$ac_ext <<_ACEOF
5776#line $LINENO "configure"
5777/* confdefs.h. */
5778_ACEOF
5779cat confdefs.h >>conftest.$ac_ext
5780cat >>conftest.$ac_ext <<_ACEOF
5781/* end confdefs.h. */
5782#include <termios.h>
5783int
5784main ()
5785{
5786speed_t x = 1;
5787 ;
5788 return 0;
5789}
5790_ACEOF
5791rm -f conftest.$ac_objext
5792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5793 (eval $ac_compile) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } &&
5797 { ac_try='test -s conftest.$ac_objext'
5798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 (eval $ac_try) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 emacs_cv_speed_t=yes
5804else
5805 echo "$as_me: failed program was:" >&5
5806sed 's/^/| /' conftest.$ac_ext >&5
5807
5808emacs_cv_speed_t=no
5809fi
5810rm -f conftest.$ac_objext conftest.$ac_ext
5811fi
5812echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5813echo "${ECHO_T}$emacs_cv_speed_t" >&6
5814if test $emacs_cv_speed_t = yes; then
5815
5816cat >>confdefs.h <<\_ACEOF
5817#define HAVE_SPEED_T 1
5818_ACEOF
5819
5820fi
5821
5822echo "$as_me:$LINENO: checking for struct timeval" >&5
5823echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5824if test "${emacs_cv_struct_timeval+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826else
5827 cat >conftest.$ac_ext <<_ACEOF
5828#line $LINENO "configure"
5829/* confdefs.h. */
5830_ACEOF
5831cat confdefs.h >>conftest.$ac_ext
5832cat >>conftest.$ac_ext <<_ACEOF
5833/* end confdefs.h. */
5834#ifdef TIME_WITH_SYS_TIME
5835#include <sys/time.h>
5836#include <time.h>
5837#else
5838#ifdef HAVE_SYS_TIME_H
5839#include <sys/time.h>
5840#else
5841#include <time.h>
5842#endif
5843#endif
5844int
5845main ()
5846{
5847static struct timeval x; x.tv_sec = x.tv_usec;
5848 ;
5849 return 0;
5850}
5851_ACEOF
5852rm -f conftest.$ac_objext
5853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854 (eval $ac_compile) 2>&5
5855 ac_status=$?
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } &&
5858 { ac_try='test -s conftest.$ac_objext'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 (eval $ac_try) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; }; then
5864 emacs_cv_struct_timeval=yes
5865else
5866 echo "$as_me: failed program was:" >&5
5867sed 's/^/| /' conftest.$ac_ext >&5
5868
5869emacs_cv_struct_timeval=no
5870fi
5871rm -f conftest.$ac_objext conftest.$ac_ext
5872fi
5873echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5874echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5875HAVE_TIMEVAL=$emacs_cv_struct_timeval
5876if test $emacs_cv_struct_timeval = yes; then
5877
5878cat >>confdefs.h <<\_ACEOF
5879#define HAVE_TIMEVAL 1
5880_ACEOF
5881
5882fi
5883
5884echo "$as_me:$LINENO: checking for struct exception" >&5
5885echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5886if test "${emacs_cv_struct_exception+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888else
5889 cat >conftest.$ac_ext <<_ACEOF
5890#line $LINENO "configure"
5891/* confdefs.h. */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h. */
5896#include <math.h>
5897int
5898main ()
5899{
5900static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5901 ;
5902 return 0;
5903}
5904_ACEOF
5905rm -f conftest.$ac_objext
5906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try='test -s conftest.$ac_objext'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 (eval $ac_try) 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 emacs_cv_struct_exception=yes
5918else
5919 echo "$as_me: failed program was:" >&5
5920sed 's/^/| /' conftest.$ac_ext >&5
5921
5922emacs_cv_struct_exception=no
5923fi
5924rm -f conftest.$ac_objext conftest.$ac_ext
5925fi
5926echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5927echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5928HAVE_EXCEPTION=$emacs_cv_struct_exception
5929if test $emacs_cv_struct_exception != yes; then
5930
5931cat >>confdefs.h <<\_ACEOF
5932#define NO_MATHERR 1
5933_ACEOF
5934
5935fi
5936
5937echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5938echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5939if test "${ac_cv_struct_tm+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5941else
5942 cat >conftest.$ac_ext <<_ACEOF
5943#line $LINENO "configure"
5944/* confdefs.h. */
5945_ACEOF
5946cat confdefs.h >>conftest.$ac_ext
5947cat >>conftest.$ac_ext <<_ACEOF
5948/* end confdefs.h. */
5949#include <sys/types.h>
5950#include <time.h>
5951
5952int
5953main ()
5954{
5955struct tm *tp; tp->tm_sec;
5956 ;
5957 return 0;
5958}
5959_ACEOF
5960rm -f conftest.$ac_objext
5961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5962 (eval $ac_compile) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } &&
5966 { ac_try='test -s conftest.$ac_objext'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5972 ac_cv_struct_tm=time.h
5973else
5974 echo "$as_me: failed program was:" >&5
5975sed 's/^/| /' conftest.$ac_ext >&5
5976
5977ac_cv_struct_tm=sys/time.h
5978fi
5979rm -f conftest.$ac_objext conftest.$ac_ext
5980fi
5981echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5982echo "${ECHO_T}$ac_cv_struct_tm" >&6
5983if test $ac_cv_struct_tm = sys/time.h; then
5984
5985cat >>confdefs.h <<\_ACEOF
5986#define TM_IN_SYS_TIME 1
5987_ACEOF
5988
5989fi
5990
5991echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5992echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5993if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995else
5996 cat >conftest.$ac_ext <<_ACEOF
5997#line $LINENO "configure"
5998/* confdefs.h. */
5999_ACEOF
6000cat confdefs.h >>conftest.$ac_ext
6001cat >>conftest.$ac_ext <<_ACEOF
6002/* end confdefs.h. */
6003#include <sys/types.h>
6004#include <$ac_cv_struct_tm>
6005
6006
6007int
6008main ()
6009{
6010static struct tm ac_aggr;
6011if (ac_aggr.tm_zone)
6012return 0;
6013 ;
6014 return 0;
6015}
6016_ACEOF
6017rm -f conftest.$ac_objext
6018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019 (eval $ac_compile) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -s conftest.$ac_objext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 ac_cv_member_struct_tm_tm_zone=yes
6030else
6031 echo "$as_me: failed program was:" >&5
6032sed 's/^/| /' conftest.$ac_ext >&5
6033
6034cat >conftest.$ac_ext <<_ACEOF
6035#line $LINENO "configure"
6036/* confdefs.h. */
6037_ACEOF
6038cat confdefs.h >>conftest.$ac_ext
6039cat >>conftest.$ac_ext <<_ACEOF
6040/* end confdefs.h. */
6041#include <sys/types.h>
6042#include <$ac_cv_struct_tm>
6043
6044
6045int
6046main ()
6047{
6048static struct tm ac_aggr;
6049if (sizeof ac_aggr.tm_zone)
6050return 0;
6051 ;
6052 return 0;
6053}
6054_ACEOF
6055rm -f conftest.$ac_objext
6056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6057 (eval $ac_compile) 2>&5
6058 ac_status=$?
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } &&
6061 { ac_try='test -s conftest.$ac_objext'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 (eval $ac_try) 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6067 ac_cv_member_struct_tm_tm_zone=yes
6068else
6069 echo "$as_me: failed program was:" >&5
6070sed 's/^/| /' conftest.$ac_ext >&5
6071
6072ac_cv_member_struct_tm_tm_zone=no
6073fi
6074rm -f conftest.$ac_objext conftest.$ac_ext
6075fi
6076rm -f conftest.$ac_objext conftest.$ac_ext
6077fi
6078echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6079echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6080if test $ac_cv_member_struct_tm_tm_zone = yes; then
6081
6082cat >>confdefs.h <<_ACEOF
6083#define HAVE_STRUCT_TM_TM_ZONE 1
6084_ACEOF
6085
6086
6087fi
6088
6089if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6090
6091cat >>confdefs.h <<\_ACEOF
6092#define HAVE_TM_ZONE 1
6093_ACEOF
6094
6095else
6096 echo "$as_me:$LINENO: checking for tzname" >&5
6097echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6098if test "${ac_cv_var_tzname+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100else
6101 cat >conftest.$ac_ext <<_ACEOF
6102#line $LINENO "configure"
6103/* confdefs.h. */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
6107/* end confdefs.h. */
6108#include <time.h>
6109#ifndef tzname /* For SGI. */
6110extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6111#endif
6112
6113int
6114main ()
6115{
6116atoi(*tzname);
6117 ;
6118 return 0;
6119}
6120_ACEOF
6121rm -f conftest.$ac_objext conftest$ac_exeext
6122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6123 (eval $ac_link) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -s conftest$ac_exeext'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 ac_cv_var_tzname=yes
6134else
6135 echo "$as_me: failed program was:" >&5
6136sed 's/^/| /' conftest.$ac_ext >&5
6137
6138ac_cv_var_tzname=no
6139fi
6140rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6141fi
6142echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6143echo "${ECHO_T}$ac_cv_var_tzname" >&6
6144 if test $ac_cv_var_tzname = yes; then
6145
6146cat >>confdefs.h <<\_ACEOF
6147#define HAVE_TZNAME 1
6148_ACEOF
6149
6150 fi
6151fi
6152
6153echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6154echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6155if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157else
6158 cat >conftest.$ac_ext <<_ACEOF
6159#line $LINENO "configure"
6160/* confdefs.h. */
6161_ACEOF
6162cat confdefs.h >>conftest.$ac_ext
6163cat >>conftest.$ac_ext <<_ACEOF
6164/* end confdefs.h. */
6165#include <time.h>
6166
6167int
6168main ()
6169{
6170static struct tm ac_aggr;
6171if (ac_aggr.tm_gmtoff)
6172return 0;
6173 ;
6174 return 0;
6175}
6176_ACEOF
6177rm -f conftest.$ac_objext
6178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -s conftest.$ac_objext'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 (eval $ac_try) 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6189 ac_cv_member_struct_tm_tm_gmtoff=yes
6190else
6191 echo "$as_me: failed program was:" >&5
6192sed 's/^/| /' conftest.$ac_ext >&5
6193
6194cat >conftest.$ac_ext <<_ACEOF
6195#line $LINENO "configure"
6196/* confdefs.h. */
6197_ACEOF
6198cat confdefs.h >>conftest.$ac_ext
6199cat >>conftest.$ac_ext <<_ACEOF
6200/* end confdefs.h. */
6201#include <time.h>
6202
6203int
6204main ()
6205{
6206static struct tm ac_aggr;
6207if (sizeof ac_aggr.tm_gmtoff)
6208return 0;
6209 ;
6210 return 0;
6211}
6212_ACEOF
6213rm -f conftest.$ac_objext
6214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6215 (eval $ac_compile) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } &&
6219 { ac_try='test -s conftest.$ac_objext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 (eval $ac_try) 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 ac_cv_member_struct_tm_tm_gmtoff=yes
6226else
6227 echo "$as_me: failed program was:" >&5
6228sed 's/^/| /' conftest.$ac_ext >&5
6229
6230ac_cv_member_struct_tm_tm_gmtoff=no
6231fi
6232rm -f conftest.$ac_objext conftest.$ac_ext
6233fi
6234rm -f conftest.$ac_objext conftest.$ac_ext
6235fi
6236echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6237echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6238if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6239
6240cat >>confdefs.h <<\_ACEOF
6241#define HAVE_TM_GMTOFF 1
6242_ACEOF
6243
6244fi
6245
6246
6247
6248echo "$as_me:$LINENO: checking for function prototypes" >&5
6249echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6250if test "$ac_cv_prog_cc_stdc" != no; then
6251 echo "$as_me:$LINENO: result: yes" >&5
6252echo "${ECHO_T}yes" >&6
6253
6254cat >>confdefs.h <<\_ACEOF
6255#define PROTOTYPES 1
6256_ACEOF
6257
6258
6259cat >>confdefs.h <<\_ACEOF
6260#define __PROTOTYPES 1
6261_ACEOF
6262
6263else
6264 echo "$as_me:$LINENO: result: no" >&5
6265echo "${ECHO_T}no" >&6
6266fi
6267
6268echo "$as_me:$LINENO: checking for working volatile" >&5
6269echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6270if test "${ac_cv_c_volatile+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272else
6273 cat >conftest.$ac_ext <<_ACEOF
6274#line $LINENO "configure"
6275/* confdefs.h. */
6276_ACEOF
6277cat confdefs.h >>conftest.$ac_ext
6278cat >>conftest.$ac_ext <<_ACEOF
6279/* end confdefs.h. */
6280
6281int
6282main ()
6283{
6284
6285volatile int x;
6286int * volatile y;
6287 ;
6288 return 0;
6289}
6290_ACEOF
6291rm -f conftest.$ac_objext
6292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6293 (eval $ac_compile) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try='test -s conftest.$ac_objext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 ac_cv_c_volatile=yes
6304else
6305 echo "$as_me: failed program was:" >&5
6306sed 's/^/| /' conftest.$ac_ext >&5
6307
6308ac_cv_c_volatile=no
6309fi
6310rm -f conftest.$ac_objext conftest.$ac_ext
6311fi
6312echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6313echo "${ECHO_T}$ac_cv_c_volatile" >&6
6314if test $ac_cv_c_volatile = no; then
6315
6316cat >>confdefs.h <<\_ACEOF
6317#define volatile
6318_ACEOF
6319
6320fi
6321
6322echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6323echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6324if test "${ac_cv_c_const+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326else
6327 cat >conftest.$ac_ext <<_ACEOF
6328#line $LINENO "configure"
6329/* confdefs.h. */
6330_ACEOF
6331cat confdefs.h >>conftest.$ac_ext
6332cat >>conftest.$ac_ext <<_ACEOF
6333/* end confdefs.h. */
6334
6335int
6336main ()
6337{
6338/* FIXME: Include the comments suggested by Paul. */
6339#ifndef __cplusplus
6340 /* Ultrix mips cc rejects this. */
6341 typedef int charset[2];
6342 const charset x;
6343 /* SunOS 4.1.1 cc rejects this. */
6344 char const *const *ccp;
6345 char **p;
6346 /* NEC SVR4.0.2 mips cc rejects this. */
6347 struct point {int x, y;};
6348 static struct point const zero = {0,0};
6349 /* AIX XL C 1.02.0.0 rejects this.
6350 It does not let you subtract one const X* pointer from another in
6351 an arm of an if-expression whose if-part is not a constant
6352 expression */
6353 const char *g = "string";
6354 ccp = &g + (g ? g-g : 0);
6355 /* HPUX 7.0 cc rejects these. */
6356 ++ccp;
6357 p = (char**) ccp;
6358 ccp = (char const *const *) p;
6359 { /* SCO 3.2v4 cc rejects this. */
6360 char *t;
6361 char const *s = 0 ? (char *) 0 : (char const *) 0;
6362
6363 *t++ = 0;
6364 }
6365 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6366 int x[] = {25, 17};
6367 const int *foo = &x[0];
6368 ++foo;
6369 }
6370 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6371 typedef const int *iptr;
6372 iptr p = 0;
6373 ++p;
6374 }
6375 { /* AIX XL C 1.02.0.0 rejects this saying
6376 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6377 struct s { int j; const int *ap[3]; };
6378 struct s *b; b->j = 5;
6379 }
6380 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6381 const int foo = 10;
6382 }
6383#endif
6384
6385 ;
6386 return 0;
6387}
6388_ACEOF
6389rm -f conftest.$ac_objext
6390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try='test -s conftest.$ac_objext'
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 (eval $ac_try) 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; }; then
6401 ac_cv_c_const=yes
6402else
6403 echo "$as_me: failed program was:" >&5
6404sed 's/^/| /' conftest.$ac_ext >&5
6405
6406ac_cv_c_const=no
6407fi
6408rm -f conftest.$ac_objext conftest.$ac_ext
6409fi
6410echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6411echo "${ECHO_T}$ac_cv_c_const" >&6
6412if test $ac_cv_c_const = no; then
6413
6414cat >>confdefs.h <<\_ACEOF
6415#define const
6416_ACEOF
6417
6418fi
6419
6420echo "$as_me:$LINENO: checking for void * support" >&5
6421echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6422if test "${emacs_cv_void_star+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424else
6425 cat >conftest.$ac_ext <<_ACEOF
6426#line $LINENO "configure"
6427/* confdefs.h. */
6428_ACEOF
6429cat confdefs.h >>conftest.$ac_ext
6430cat >>conftest.$ac_ext <<_ACEOF
6431/* end confdefs.h. */
6432
6433int
6434main ()
6435{
6436void * foo;
6437 ;
6438 return 0;
6439}
6440_ACEOF
6441rm -f conftest.$ac_objext
6442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443 (eval $ac_compile) 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try='test -s conftest.$ac_objext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449 (eval $ac_try) 2>&5
6450 ac_status=$?
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 emacs_cv_void_star=yes
6454else
6455 echo "$as_me: failed program was:" >&5
6456sed 's/^/| /' conftest.$ac_ext >&5
6457
6458emacs_cv_void_star=no
6459fi
6460rm -f conftest.$ac_objext conftest.$ac_ext
6461fi
6462echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6463echo "${ECHO_T}$emacs_cv_void_star" >&6
6464if test $emacs_cv_void_star = yes; then
6465 cat >>confdefs.h <<\_ACEOF
6466#define POINTER_TYPE void
6467_ACEOF
6468
6469else
6470 cat >>confdefs.h <<\_ACEOF
6471#define POINTER_TYPE char
6472_ACEOF
6473
6474fi
6475
6476
6477
6478echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6479echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6480set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6481if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483else
6484 cat >conftest.make <<\_ACEOF
6485all:
6486 @echo 'ac_maketemp="$(MAKE)"'
6487_ACEOF
6488# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6489eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6490if test -n "$ac_maketemp"; then
6491 eval ac_cv_prog_make_${ac_make}_set=yes
6492else
6493 eval ac_cv_prog_make_${ac_make}_set=no
6494fi
6495rm -f conftest.make
6496fi
6497if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6498 echo "$as_me:$LINENO: result: yes" >&5
6499echo "${ECHO_T}yes" >&6
6500 SET_MAKE=
6501else
6502 echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6
6504 SET_MAKE="MAKE=${MAKE-make}"
6505fi
6506
6507
6508echo "$as_me:$LINENO: checking for long file names" >&5
6509echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6510if test "${ac_cv_sys_long_file_names+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512else
6513 ac_cv_sys_long_file_names=yes
6514# Test for long file names in all the places we know might matter:
6515# . the current directory, where building will happen
6516# $prefix/lib where we will be installing things
6517# $exec_prefix/lib likewise
6518# eval it to expand exec_prefix.
6519# $TMPDIR if set, where it might want to write temporary files
6520# if $TMPDIR is not set:
6521# /tmp where it might want to write temporary files
6522# /var/tmp likewise
6523# /usr/tmp likewise
6524if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6525 ac_tmpdirs=$TMPDIR
6526else
6527 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6528fi
6529for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6530 test -d $ac_dir || continue
6531 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6532 ac_xdir=$ac_dir/cf$$
6533 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6534 ac_tf1=$ac_xdir/conftest9012345
6535 ac_tf2=$ac_xdir/conftest9012346
6536 (echo 1 >$ac_tf1) 2>/dev/null
6537 (echo 2 >$ac_tf2) 2>/dev/null
6538 ac_val=`cat $ac_tf1 2>/dev/null`
6539 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6540 ac_cv_sys_long_file_names=no
6541 rm -rf $ac_xdir 2>/dev/null
6542 break
6543 fi
6544 rm -rf $ac_xdir 2>/dev/null
6545done
6546fi
6547echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6548echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6549if test $ac_cv_sys_long_file_names = yes; then
6550
6551cat >>confdefs.h <<\_ACEOF
6552#define HAVE_LONG_FILE_NAMES 1
6553_ACEOF
6554
6555fi
6556
6557
6558#### Choose a window system.
6559
6560echo "$as_me:$LINENO: checking for X" >&5
6561echo $ECHO_N "checking for X... $ECHO_C" >&6
6562
6563
6564# Check whether --with-x or --without-x was given.
6565if test "${with_x+set}" = set; then
6566 withval="$with_x"
6567
6568fi;
6569# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6570if test "x$with_x" = xno; then
6571 # The user explicitly disabled X.
6572 have_x=disabled
6573else
6574 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6575 # Both variables are already set.
6576 have_x=yes
6577 else
6578 if test "${ac_cv_have_x+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580else
6581 # One or both of the vars are not set, and there is no cached value.
6582ac_x_includes=no ac_x_libraries=no
6583rm -fr conftest.dir
6584if mkdir conftest.dir; then
6585 cd conftest.dir
6586 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6587 cat >Imakefile <<'_ACEOF'
6588acfindx:
6589 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6590_ACEOF
6591 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6592 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6593 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6594 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6595 for ac_extension in a so sl; do
6596 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6597 test -f $ac_im_libdir/libX11.$ac_extension; then
6598 ac_im_usrlibdir=$ac_im_libdir; break
6599 fi
6600 done
6601 # Screen out bogus values from the imake configuration. They are
6602 # bogus both because they are the default anyway, and because
6603 # using them would break gcc on systems where it needs fixed includes.
6604 case $ac_im_incroot in
6605 /usr/include) ;;
6606 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6607 esac
6608 case $ac_im_usrlibdir in
6609 /usr/lib | /lib) ;;
6610 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6611 esac
6612 fi
6613 cd ..
6614 rm -fr conftest.dir
6615fi
6616
6617# Standard set of common directories for X headers.
6618# Check X11 before X11Rn because it is often a symlink to the current release.
6619ac_x_header_dirs='
6620/usr/X11/include
6621/usr/X11R6/include
6622/usr/X11R5/include
6623/usr/X11R4/include
6624
6625/usr/include/X11
6626/usr/include/X11R6
6627/usr/include/X11R5
6628/usr/include/X11R4
6629
6630/usr/local/X11/include
6631/usr/local/X11R6/include
6632/usr/local/X11R5/include
6633/usr/local/X11R4/include
6634
6635/usr/local/include/X11
6636/usr/local/include/X11R6
6637/usr/local/include/X11R5
6638/usr/local/include/X11R4
6639
6640/usr/X386/include
6641/usr/x386/include
6642/usr/XFree86/include/X11
6643
6644/usr/include
6645/usr/local/include
6646/usr/unsupported/include
6647/usr/athena/include
6648/usr/local/x11r5/include
6649/usr/lpp/Xamples/include
6650
6651/usr/openwin/include
6652/usr/openwin/share/include'
6653
6654if test "$ac_x_includes" = no; then
6655 # Guess where to find include files, by looking for Intrinsic.h.
6656 # First, try using that file with no special directory specified.
6657 cat >conftest.$ac_ext <<_ACEOF
6658#line $LINENO "configure"
6659/* confdefs.h. */
6660_ACEOF
6661cat confdefs.h >>conftest.$ac_ext
6662cat >>conftest.$ac_ext <<_ACEOF
6663/* end confdefs.h. */
6664#include <X11/Intrinsic.h>
6665_ACEOF
6666if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6668 ac_status=$?
6669 grep -v '^ *+' conftest.er1 >conftest.err
6670 rm -f conftest.er1
6671 cat conftest.err >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } >/dev/null; then
6674 if test -s conftest.err; then
6675 ac_cpp_err=$ac_c_preproc_warn_flag
6676 else
6677 ac_cpp_err=
6678 fi
6679else
6680 ac_cpp_err=yes
6681fi
6682if test -z "$ac_cpp_err"; then
6683 # We can compile using X headers with no special include directory.
6684ac_x_includes=
6685else
6686 echo "$as_me: failed program was:" >&5
6687sed 's/^/| /' conftest.$ac_ext >&5
6688
6689 for ac_dir in $ac_x_header_dirs; do
6690 if test -r "$ac_dir/X11/Intrinsic.h"; then
6691 ac_x_includes=$ac_dir
6692 break
6693 fi
6694done
6695fi
6696rm -f conftest.err conftest.$ac_ext
6697fi # $ac_x_includes = no
6698
6699if test "$ac_x_libraries" = no; then
6700 # Check for the libraries.
6701 # See if we find them without any special options.
6702 # Don't add to $LIBS permanently.
6703 ac_save_LIBS=$LIBS
6704 LIBS="-lXt $LIBS"
6705 cat >conftest.$ac_ext <<_ACEOF
6706#line $LINENO "configure"
6707/* confdefs.h. */
6708_ACEOF
6709cat confdefs.h >>conftest.$ac_ext
6710cat >>conftest.$ac_ext <<_ACEOF
6711/* end confdefs.h. */
6712#include <X11/Intrinsic.h>
6713int
6714main ()
6715{
6716XtMalloc (0)
6717 ;
6718 return 0;
6719}
6720_ACEOF
6721rm -f conftest.$ac_objext conftest$ac_exeext
6722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6723 (eval $ac_link) 2>&5
6724 ac_status=$?
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } &&
6727 { ac_try='test -s conftest$ac_exeext'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 (eval $ac_try) 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
6733 LIBS=$ac_save_LIBS
6734# We can link X programs with no special library path.
6735ac_x_libraries=
6736else
6737 echo "$as_me: failed program was:" >&5
6738sed 's/^/| /' conftest.$ac_ext >&5
6739
6740LIBS=$ac_save_LIBS
6741for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6742do
6743 # Don't even attempt the hair of trying to link an X program!
6744 for ac_extension in a so sl; do
6745 if test -r $ac_dir/libXt.$ac_extension; then
6746 ac_x_libraries=$ac_dir
6747 break 2
6748 fi
6749 done
6750done
6751fi
6752rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6753fi # $ac_x_libraries = no
6754
6755if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6756 # Didn't find X anywhere. Cache the known absence of X.
6757 ac_cv_have_x="have_x=no"
6758else
6759 # Record where we found X for the cache.
6760 ac_cv_have_x="have_x=yes \
6761 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6762fi
6763fi
6764
6765 fi
6766 eval "$ac_cv_have_x"
6767fi # $with_x != no
6768
6769if test "$have_x" != yes; then
6770 echo "$as_me:$LINENO: result: $have_x" >&5
6771echo "${ECHO_T}$have_x" >&6
6772 no_x=yes
6773else
6774 # If each of the values was on the command line, it overrides each guess.
6775 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6776 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6777 # Update the cache value to reflect the command line values.
6778 ac_cv_have_x="have_x=yes \
6779 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6780 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6781echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6782fi
6783
6784if test "$no_x" = yes; then
6785 window_system=none
6786else
6787 window_system=x11
6788fi
6789
6790if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6791 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6792 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6793 x_default_search_path=""
6794 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6795 x_search_path="\
6796${x_library}/X11/%L/%T/%N%C%S:\
6797${x_library}/X11/%l/%T/%N%C%S:\
6798${x_library}/X11/%T/%N%C%S:\
6799${x_library}/X11/%L/%T/%N%S:\
6800${x_library}/X11/%l/%T/%N%S:\
6801${x_library}/X11/%T/%N%S"
6802 if test x"${x_default_search_path}" = x; then
6803 x_default_search_path=${x_search_path}
6804 else
6805 x_default_search_path="${x_search_path}:${x_default_search_path}"
6806 fi
6807 done
6808fi
6809if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6810 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6811fi
6812
6813if test x"${x_includes}" = x; then
6814 bitmapdir=/usr/include/X11/bitmaps
6815else
6816 # accumulate include directories that have X11 bitmap subdirectories
6817 bmd_acc="dummyval"
6818 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6819 if test -d "${bmd}/X11/bitmaps"; then
6820 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6821 fi
6822 if test -d "${bmd}/bitmaps"; then
6823 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6824 fi
6825 done
6826 if test ${bmd_acc} != "dummyval"; then
6827 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6828 fi
6829fi
6830
6831case "${window_system}" in
6832 x11 )
6833 HAVE_X_WINDOWS=yes
6834 HAVE_X11=yes
6835 case "${with_x_toolkit}" in
6836 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6837 motif ) USE_X_TOOLKIT=MOTIF ;;
6838 gtk ) with_gtk=yes
6839 USE_X_TOOLKIT=none ;;
6840 no ) USE_X_TOOLKIT=none ;;
6841 * ) USE_X_TOOLKIT=maybe ;;
6842 esac
6843 ;;
6844 none )
6845 HAVE_X_WINDOWS=no
6846 HAVE_X11=no
6847 USE_X_TOOLKIT=none
6848 ;;
6849esac
6850
6851### If we're using X11, we should use the X menu package.
6852HAVE_MENUS=no
6853case ${HAVE_X11} in
6854 yes ) HAVE_MENUS=yes ;;
6855esac
6856
6857if test "${opsys}" = "hpux9"; then
6858 case "${x_libraries}" in
6859 *X11R4* )
6860 opsysfile="s/hpux9-x11r4.h"
6861 ;;
6862 esac
6863fi
6864
6865if test "${opsys}" = "hpux9shr"; then
6866 case "${x_libraries}" in
6867 *X11R4* )
6868 opsysfile="s/hpux9shxr4.h"
6869 ;;
6870 esac
6871fi
6872
6873### Compute the unexec source name from the object name.
6874UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6875
6876# Do the opsystem or machine files prohibit the use of the GNU malloc?
6877# Assume not, until told otherwise.
6878GNU_MALLOC=yes
6879doug_lea_malloc=yes
6880echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6881echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6882if test "${ac_cv_func_malloc_get_state+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884else
6885 cat >conftest.$ac_ext <<_ACEOF
6886#line $LINENO "configure"
6887/* confdefs.h. */
6888_ACEOF
6889cat confdefs.h >>conftest.$ac_ext
6890cat >>conftest.$ac_ext <<_ACEOF
6891/* end confdefs.h. */
6892/* System header to define __stub macros and hopefully few prototypes,
6893 which can conflict with char malloc_get_state (); below.
6894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6895 <limits.h> exists even on freestanding compilers. */
6896#ifdef __STDC__
6897# include <limits.h>
6898#else
6899# include <assert.h>
6900#endif
6901/* Override any gcc2 internal prototype to avoid an error. */
6902#ifdef __cplusplus
6903extern "C"
6904{
6905#endif
6906/* We use char because int might match the return type of a gcc2
6907 builtin and then its argument prototype would still apply. */
6908char malloc_get_state ();
6909/* The GNU C library defines this for functions which it implements
6910 to always fail with ENOSYS. Some functions are actually named
6911 something starting with __ and the normal name is an alias. */
6912#if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6913choke me
6914#else
6915char (*f) () = malloc_get_state;
6916#endif
6917#ifdef __cplusplus
6918}
6919#endif
6920
6921int
6922main ()
6923{
6924return f != malloc_get_state;
6925 ;
6926 return 0;
6927}
6928_ACEOF
6929rm -f conftest.$ac_objext conftest$ac_exeext
6930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6931 (eval $ac_link) 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } &&
6935 { ac_try='test -s conftest$ac_exeext'
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 (eval $ac_try) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; }; then
6941 ac_cv_func_malloc_get_state=yes
6942else
6943 echo "$as_me: failed program was:" >&5
6944sed 's/^/| /' conftest.$ac_ext >&5
6945
6946ac_cv_func_malloc_get_state=no
6947fi
6948rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6949fi
6950echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6951echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6952if test $ac_cv_func_malloc_get_state = yes; then
6953 :
6954else
6955 doug_lea_malloc=no
6956fi
6957
6958echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6959echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6960if test "${ac_cv_func_malloc_set_state+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962else
6963 cat >conftest.$ac_ext <<_ACEOF
6964#line $LINENO "configure"
6965/* confdefs.h. */
6966_ACEOF
6967cat confdefs.h >>conftest.$ac_ext
6968cat >>conftest.$ac_ext <<_ACEOF
6969/* end confdefs.h. */
6970/* System header to define __stub macros and hopefully few prototypes,
6971 which can conflict with char malloc_set_state (); below.
6972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6973 <limits.h> exists even on freestanding compilers. */
6974#ifdef __STDC__
6975# include <limits.h>
6976#else
6977# include <assert.h>
6978#endif
6979/* Override any gcc2 internal prototype to avoid an error. */
6980#ifdef __cplusplus
6981extern "C"
6982{
6983#endif
6984/* We use char because int might match the return type of a gcc2
6985 builtin and then its argument prototype would still apply. */
6986char malloc_set_state ();
6987/* The GNU C library defines this for functions which it implements
6988 to always fail with ENOSYS. Some functions are actually named
6989 something starting with __ and the normal name is an alias. */
6990#if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6991choke me
6992#else
6993char (*f) () = malloc_set_state;
6994#endif
6995#ifdef __cplusplus
6996}
6997#endif
6998
6999int
7000main ()
7001{
7002return f != malloc_set_state;
7003 ;
7004 return 0;
7005}
7006_ACEOF
7007rm -f conftest.$ac_objext conftest$ac_exeext
7008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009 (eval $ac_link) 2>&5
7010 ac_status=$?
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try='test -s conftest$ac_exeext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7019 ac_cv_func_malloc_set_state=yes
7020else
7021 echo "$as_me: failed program was:" >&5
7022sed 's/^/| /' conftest.$ac_ext >&5
7023
7024ac_cv_func_malloc_set_state=no
7025fi
7026rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7027fi
7028echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7029echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7030if test $ac_cv_func_malloc_set_state = yes; then
7031 :
7032else
7033 doug_lea_malloc=no
7034fi
7035
7036echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7037echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7038if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7040else
7041 cat >conftest.$ac_ext <<_ACEOF
7042#line $LINENO "configure"
7043/* confdefs.h. */
7044_ACEOF
7045cat confdefs.h >>conftest.$ac_ext
7046cat >>conftest.$ac_ext <<_ACEOF
7047/* end confdefs.h. */
7048extern void (* __after_morecore_hook)();
7049int
7050main ()
7051{
7052__after_morecore_hook = 0
7053 ;
7054 return 0;
7055}
7056_ACEOF
7057rm -f conftest.$ac_objext conftest$ac_exeext
7058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059 (eval $ac_link) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try='test -s conftest$ac_exeext'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 (eval $ac_try) 2>&5
7066 ac_status=$?
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; }; then
7069 emacs_cv_var___after_morecore_hook=yes
7070else
7071 echo "$as_me: failed program was:" >&5
7072sed 's/^/| /' conftest.$ac_ext >&5
7073
7074emacs_cv_var___after_morecore_hook=no
7075fi
7076rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7077fi
7078echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7079echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7080if test $emacs_cv_var___after_morecore_hook = no; then
7081 doug_lea_malloc=no
7082fi
7083if test "${system_malloc}" = "yes"; then
7084 GNU_MALLOC=no
7085 GNU_MALLOC_reason="
7086 (The GNU allocators don't work with this system configuration.)"
7087fi
7088if test "$doug_lea_malloc" = "yes" ; then
7089 if test "$GNU_MALLOC" = yes ; then
7090 GNU_MALLOC_reason="
7091 (Using Doug Lea's new malloc from the GNU C Library.)"
7092 fi
7093
7094cat >>confdefs.h <<\_ACEOF
7095#define DOUG_LEA_MALLOC 1
7096_ACEOF
7097
7098fi
7099
7100if test x"${REL_ALLOC}" = x; then
7101 REL_ALLOC=${GNU_MALLOC}
7102fi
7103
7104
7105
7106
7107for ac_header in stdlib.h unistd.h
7108do
7109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7110if eval "test \"\${$as_ac_Header+set}\" = set"; then
7111 echo "$as_me:$LINENO: checking for $ac_header" >&5
7112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7113if eval "test \"\${$as_ac_Header+set}\" = set"; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7115fi
7116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7117echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7118else
7119 # Is the header compilable?
7120echo "$as_me:$LINENO: checking $ac_header usability" >&5
7121echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7122cat >conftest.$ac_ext <<_ACEOF
7123#line $LINENO "configure"
7124/* confdefs.h. */
7125_ACEOF
7126cat confdefs.h >>conftest.$ac_ext
7127cat >>conftest.$ac_ext <<_ACEOF
7128/* end confdefs.h. */
7129$ac_includes_default
7130#include <$ac_header>
7131_ACEOF
7132rm -f conftest.$ac_objext
7133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7134 (eval $ac_compile) 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
7138 { ac_try='test -s conftest.$ac_objext'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 (eval $ac_try) 2>&5
7141 ac_status=$?
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; }; then
7144 ac_header_compiler=yes
7145else
7146 echo "$as_me: failed program was:" >&5
7147sed 's/^/| /' conftest.$ac_ext >&5
7148
7149ac_header_compiler=no
7150fi
7151rm -f conftest.$ac_objext conftest.$ac_ext
7152echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7153echo "${ECHO_T}$ac_header_compiler" >&6
7154
7155# Is the header present?
7156echo "$as_me:$LINENO: checking $ac_header presence" >&5
7157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7158cat >conftest.$ac_ext <<_ACEOF
7159#line $LINENO "configure"
7160/* confdefs.h. */
7161_ACEOF
7162cat confdefs.h >>conftest.$ac_ext
7163cat >>conftest.$ac_ext <<_ACEOF
7164/* end confdefs.h. */
7165#include <$ac_header>
7166_ACEOF
7167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7169 ac_status=$?
7170 grep -v '^ *+' conftest.er1 >conftest.err
7171 rm -f conftest.er1
7172 cat conftest.err >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } >/dev/null; then
7175 if test -s conftest.err; then
7176 ac_cpp_err=$ac_c_preproc_warn_flag
7177 else
7178 ac_cpp_err=
7179 fi
7180else
7181 ac_cpp_err=yes
7182fi
7183if test -z "$ac_cpp_err"; then
7184 ac_header_preproc=yes
7185else
7186 echo "$as_me: failed program was:" >&5
7187sed 's/^/| /' conftest.$ac_ext >&5
7188
7189 ac_header_preproc=no
7190fi
7191rm -f conftest.err conftest.$ac_ext
7192echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7193echo "${ECHO_T}$ac_header_preproc" >&6
7194
7195# So? What about this header?
7196case $ac_header_compiler:$ac_header_preproc in
7197 yes:no )
7198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7202 (
7203 cat <<\_ASBOX
7204## ------------------------------------ ##
7205## Report this to bug-autoconf@gnu.org. ##
7206## ------------------------------------ ##
7207_ASBOX
7208 ) |
7209 sed "s/^/$as_me: WARNING: /" >&2
7210 ;;
7211 no:yes )
7212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7213echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7215echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7217echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7218 (
7219 cat <<\_ASBOX
7220## ------------------------------------ ##
7221## Report this to bug-autoconf@gnu.org. ##
7222## ------------------------------------ ##
7223_ASBOX
7224 ) |
7225 sed "s/^/$as_me: WARNING: /" >&2
7226 ;;
7227esac
7228echo "$as_me:$LINENO: checking for $ac_header" >&5
7229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7230if eval "test \"\${$as_ac_Header+set}\" = set"; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232else
7233 eval "$as_ac_Header=$ac_header_preproc"
7234fi
7235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7236echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7237
7238fi
7239if test `eval echo '${'$as_ac_Header'}'` = yes; then
7240 cat >>confdefs.h <<_ACEOF
7241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7242_ACEOF
7243
7244fi
7245
7246done
7247
7248
7249for ac_func in getpagesize
7250do
7251as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7252echo "$as_me:$LINENO: checking for $ac_func" >&5
7253echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7254if eval "test \"\${$as_ac_var+set}\" = set"; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256else
7257 cat >conftest.$ac_ext <<_ACEOF
7258#line $LINENO "configure"
7259/* confdefs.h. */
7260_ACEOF
7261cat confdefs.h >>conftest.$ac_ext
7262cat >>conftest.$ac_ext <<_ACEOF
7263/* end confdefs.h. */
7264/* System header to define __stub macros and hopefully few prototypes,
7265 which can conflict with char $ac_func (); below.
7266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7267 <limits.h> exists even on freestanding compilers. */
7268#ifdef __STDC__
7269# include <limits.h>
7270#else
7271# include <assert.h>
7272#endif
7273/* Override any gcc2 internal prototype to avoid an error. */
7274#ifdef __cplusplus
7275extern "C"
7276{
7277#endif
7278/* We use char because int might match the return type of a gcc2
7279 builtin and then its argument prototype would still apply. */
7280char $ac_func ();
7281/* The GNU C library defines this for functions which it implements
7282 to always fail with ENOSYS. Some functions are actually named
7283 something starting with __ and the normal name is an alias. */
7284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7285choke me
7286#else
7287char (*f) () = $ac_func;
7288#endif
7289#ifdef __cplusplus
7290}
7291#endif
7292
7293int
7294main ()
7295{
7296return f != $ac_func;
7297 ;
7298 return 0;
7299}
7300_ACEOF
7301rm -f conftest.$ac_objext conftest$ac_exeext
7302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7303 (eval $ac_link) 2>&5
7304 ac_status=$?
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } &&
7307 { ac_try='test -s conftest$ac_exeext'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 (eval $ac_try) 2>&5
7310 ac_status=$?
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 eval "$as_ac_var=yes"
7314else
7315 echo "$as_me: failed program was:" >&5
7316sed 's/^/| /' conftest.$ac_ext >&5
7317
7318eval "$as_ac_var=no"
7319fi
7320rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7321fi
7322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7323echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7324if test `eval echo '${'$as_ac_var'}'` = yes; then
7325 cat >>confdefs.h <<_ACEOF
7326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7327_ACEOF
7328
7329fi
7330done
7331
7332echo "$as_me:$LINENO: checking for working mmap" >&5
7333echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7334if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336else
7337 if test "$cross_compiling" = yes; then
7338 ac_cv_func_mmap_fixed_mapped=no
7339else
7340 cat >conftest.$ac_ext <<_ACEOF
7341#line $LINENO "configure"
7342/* confdefs.h. */
7343_ACEOF
7344cat confdefs.h >>conftest.$ac_ext
7345cat >>conftest.$ac_ext <<_ACEOF
7346/* end confdefs.h. */
7347$ac_includes_default
7348/* malloc might have been renamed as rpl_malloc. */
7349#undef malloc
7350
7351/* Thanks to Mike Haertel and Jim Avera for this test.
7352 Here is a matrix of mmap possibilities:
7353 mmap private not fixed
7354 mmap private fixed at somewhere currently unmapped
7355 mmap private fixed at somewhere already mapped
7356 mmap shared not fixed
7357 mmap shared fixed at somewhere currently unmapped
7358 mmap shared fixed at somewhere already mapped
7359 For private mappings, we should verify that changes cannot be read()
7360 back from the file, nor mmap's back from the file at a different
7361 address. (There have been systems where private was not correctly
7362 implemented like the infamous i386 svr4.0, and systems where the
7363 VM page cache was not coherent with the file system buffer cache
7364 like early versions of FreeBSD and possibly contemporary NetBSD.)
7365 For shared mappings, we should conversely verify that changes get
7366 propagated back to all the places they're supposed to be.
7367
7368 Grep wants private fixed already mapped.
7369 The main things grep needs to know about mmap are:
7370 * does it exist and is it safe to write into the mmap'd area
7371 * how to use it (BSD variants) */
7372
7373#include <fcntl.h>
7374#include <sys/mman.h>
7375
7376#if !STDC_HEADERS && !HAVE_STDLIB_H
7377char *malloc ();
7378#endif
7379
7380/* This mess was copied from the GNU getpagesize.h. */
7381#if !HAVE_GETPAGESIZE
7382/* Assume that all systems that can run configure have sys/param.h. */
7383# if !HAVE_SYS_PARAM_H
7384# define HAVE_SYS_PARAM_H 1
7385# endif
7386
7387# ifdef _SC_PAGESIZE
7388# define getpagesize() sysconf(_SC_PAGESIZE)
7389# else /* no _SC_PAGESIZE */
7390# if HAVE_SYS_PARAM_H
7391# include <sys/param.h>
7392# ifdef EXEC_PAGESIZE
7393# define getpagesize() EXEC_PAGESIZE
7394# else /* no EXEC_PAGESIZE */
7395# ifdef NBPG
7396# define getpagesize() NBPG * CLSIZE
7397# ifndef CLSIZE
7398# define CLSIZE 1
7399# endif /* no CLSIZE */
7400# else /* no NBPG */
7401# ifdef NBPC
7402# define getpagesize() NBPC
7403# else /* no NBPC */
7404# ifdef PAGESIZE
7405# define getpagesize() PAGESIZE
7406# endif /* PAGESIZE */
7407# endif /* no NBPC */
7408# endif /* no NBPG */
7409# endif /* no EXEC_PAGESIZE */
7410# else /* no HAVE_SYS_PARAM_H */
7411# define getpagesize() 8192 /* punt totally */
7412# endif /* no HAVE_SYS_PARAM_H */
7413# endif /* no _SC_PAGESIZE */
7414
7415#endif /* no HAVE_GETPAGESIZE */
7416
7417int
7418main ()
7419{
7420 char *data, *data2, *data3;
7421 int i, pagesize;
7422 int fd;
7423
7424 pagesize = getpagesize ();
7425
7426 /* First, make a file with some known garbage in it. */
7427 data = (char *) malloc (pagesize);
7428 if (!data)
7429 exit (1);
7430 for (i = 0; i < pagesize; ++i)
7431 *(data + i) = rand ();
7432 umask (0);
7433 fd = creat ("conftest.mmap", 0600);
7434 if (fd < 0)
7435 exit (1);
7436 if (write (fd, data, pagesize) != pagesize)
7437 exit (1);
7438 close (fd);
7439
7440 /* Next, try to mmap the file at a fixed address which already has
7441 something else allocated at it. If we can, also make sure that
7442 we see the same garbage. */
7443 fd = open ("conftest.mmap", O_RDWR);
7444 if (fd < 0)
7445 exit (1);
7446 data2 = (char *) malloc (2 * pagesize);
7447 if (!data2)
7448 exit (1);
7449 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7450 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7451 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7452 exit (1);
7453 for (i = 0; i < pagesize; ++i)
7454 if (*(data + i) != *(data2 + i))
7455 exit (1);
7456
7457 /* Finally, make sure that changes to the mapped area do not
7458 percolate back to the file as seen by read(). (This is a bug on
7459 some variants of i386 svr4.0.) */
7460 for (i = 0; i < pagesize; ++i)
7461 *(data2 + i) = *(data2 + i) + 1;
7462 data3 = (char *) malloc (pagesize);
7463 if (!data3)
7464 exit (1);
7465 if (read (fd, data3, pagesize) != pagesize)
7466 exit (1);
7467 for (i = 0; i < pagesize; ++i)
7468 if (*(data + i) != *(data3 + i))
7469 exit (1);
7470 close (fd);
7471 exit (0);
7472}
7473_ACEOF
7474rm -f conftest$ac_exeext
7475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7476 (eval $ac_link) 2>&5
7477 ac_status=$?
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 (eval $ac_try) 2>&5
7482 ac_status=$?
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); }; }; then
7485 ac_cv_func_mmap_fixed_mapped=yes
7486else
7487 echo "$as_me: program exited with status $ac_status" >&5
7488echo "$as_me: failed program was:" >&5
7489sed 's/^/| /' conftest.$ac_ext >&5
7490
7491( exit $ac_status )
7492ac_cv_func_mmap_fixed_mapped=no
7493fi
7494rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7495fi
7496fi
7497echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7498echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7499if test $ac_cv_func_mmap_fixed_mapped = yes; then
7500
7501cat >>confdefs.h <<\_ACEOF
7502#define HAVE_MMAP 1
7503_ACEOF
7504
7505fi
7506rm -f conftest.mmap
7507
7508if test $use_mmap_for_buffers = yes; then
7509 REL_ALLOC=no
7510fi
7511
7512LIBS="$libsrc_libs $LIBS"
7513
7514
7515echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7516echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7517if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519else
7520 ac_check_lib_save_LIBS=$LIBS
7521LIBS="-ldnet $LIBS"
7522cat >conftest.$ac_ext <<_ACEOF
7523#line $LINENO "configure"
7524/* confdefs.h. */
7525_ACEOF
7526cat confdefs.h >>conftest.$ac_ext
7527cat >>conftest.$ac_ext <<_ACEOF
7528/* end confdefs.h. */
7529
7530/* Override any gcc2 internal prototype to avoid an error. */
7531#ifdef __cplusplus
7532extern "C"
7533#endif
7534/* We use char because int might match the return type of a gcc2
7535 builtin and then its argument prototype would still apply. */
7536char dnet_ntoa ();
7537int
7538main ()
7539{
7540dnet_ntoa ();
7541 ;
7542 return 0;
7543}
7544_ACEOF
7545rm -f conftest.$ac_objext conftest$ac_exeext
7546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7547 (eval $ac_link) 2>&5
7548 ac_status=$?
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } &&
7551 { ac_try='test -s conftest$ac_exeext'
7552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553 (eval $ac_try) 2>&5
7554 ac_status=$?
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; }; then
7557 ac_cv_lib_dnet_dnet_ntoa=yes
7558else
7559 echo "$as_me: failed program was:" >&5
7560sed 's/^/| /' conftest.$ac_ext >&5
7561
7562ac_cv_lib_dnet_dnet_ntoa=no
7563fi
7564rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7565LIBS=$ac_check_lib_save_LIBS
7566fi
7567echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7568echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7569if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7570 cat >>confdefs.h <<_ACEOF
7571#define HAVE_LIBDNET 1
7572_ACEOF
7573
7574 LIBS="-ldnet $LIBS"
7575
7576fi
7577
7578
7579echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7580echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7581if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583else
7584 ac_check_lib_save_LIBS=$LIBS
7585LIBS="-lXbsd $LIBS"
7586cat >conftest.$ac_ext <<_ACEOF
7587#line $LINENO "configure"
7588/* confdefs.h. */
7589_ACEOF
7590cat confdefs.h >>conftest.$ac_ext
7591cat >>conftest.$ac_ext <<_ACEOF
7592/* end confdefs.h. */
7593
7594
7595int
7596main ()
7597{
7598main ();
7599 ;
7600 return 0;
7601}
7602_ACEOF
7603rm -f conftest.$ac_objext conftest$ac_exeext
7604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605 (eval $ac_link) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
7609 { ac_try='test -s conftest$ac_exeext'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 (eval $ac_try) 2>&5
7612 ac_status=$?
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; }; then
7615 ac_cv_lib_Xbsd_main=yes
7616else
7617 echo "$as_me: failed program was:" >&5
7618sed 's/^/| /' conftest.$ac_ext >&5
7619
7620ac_cv_lib_Xbsd_main=no
7621fi
7622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7623LIBS=$ac_check_lib_save_LIBS
7624fi
7625echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7626echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7627if test $ac_cv_lib_Xbsd_main = yes; then
7628 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7629fi
7630
7631
7632
7633echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7634echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7635if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637else
7638 ac_check_lib_save_LIBS=$LIBS
7639LIBS="-lpthreads $LIBS"
7640cat >conftest.$ac_ext <<_ACEOF
7641#line $LINENO "configure"
7642/* confdefs.h. */
7643_ACEOF
7644cat confdefs.h >>conftest.$ac_ext
7645cat >>conftest.$ac_ext <<_ACEOF
7646/* end confdefs.h. */
7647
7648/* Override any gcc2 internal prototype to avoid an error. */
7649#ifdef __cplusplus
7650extern "C"
7651#endif
7652/* We use char because int might match the return type of a gcc2
7653 builtin and then its argument prototype would still apply. */
7654char cma_open ();
7655int
7656main ()
7657{
7658cma_open ();
7659 ;
7660 return 0;
7661}
7662_ACEOF
7663rm -f conftest.$ac_objext conftest$ac_exeext
7664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7665 (eval $ac_link) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } &&
7669 { ac_try='test -s conftest$ac_exeext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 (eval $ac_try) 2>&5
7672 ac_status=$?
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 ac_cv_lib_pthreads_cma_open=yes
7676else
7677 echo "$as_me: failed program was:" >&5
7678sed 's/^/| /' conftest.$ac_ext >&5
7679
7680ac_cv_lib_pthreads_cma_open=no
7681fi
7682rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7683LIBS=$ac_check_lib_save_LIBS
7684fi
7685echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7686echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7687if test $ac_cv_lib_pthreads_cma_open = yes; then
7688 cat >>confdefs.h <<_ACEOF
7689#define HAVE_LIBPTHREADS 1
7690_ACEOF
7691
7692 LIBS="-lpthreads $LIBS"
7693
7694fi
7695
7696
7697echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7698echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7699if test -d /usr/X386/include; then
7700 HAVE_XFREE386=yes
7701 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7702else
7703 HAVE_XFREE386=no
7704fi
7705echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7706echo "${ECHO_T}$HAVE_XFREE386" >&6
7707
7708# Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7709# used for the tests that follow. We set them back to REAL_CFLAGS and
7710# REAL_CPPFLAGS later on.
7711
7712REAL_CPPFLAGS="$CPPFLAGS"
7713
7714if test "${HAVE_X11}" = "yes"; then
7715 DEFS="$C_SWITCH_X_SITE $DEFS"
7716 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7717 LIBS="$LIBX $LIBS"
7718 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7719 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7720
7721 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7722 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7723 # but it's more convenient here to set LD_RUN_PATH
7724 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7725 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7726 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7727 export LD_RUN_PATH
7728 fi
7729
7730 if test "${opsys}" = "gnu-linux"; then
7731 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7732echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7733 cat >conftest.$ac_ext <<_ACEOF
7734#line $LINENO "configure"
7735/* confdefs.h. */
7736_ACEOF
7737cat confdefs.h >>conftest.$ac_ext
7738cat >>conftest.$ac_ext <<_ACEOF
7739/* end confdefs.h. */
7740
7741int
7742main ()
7743{
7744XOpenDisplay ("foo");
7745 ;
7746 return 0;
7747}
7748_ACEOF
7749rm -f conftest.$ac_objext conftest$ac_exeext
7750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7751 (eval $ac_link) 2>&5
7752 ac_status=$?
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } &&
7755 { ac_try='test -s conftest$ac_exeext'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757 (eval $ac_try) 2>&5
7758 ac_status=$?
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7761 xlinux_first_failure=no
7762else
7763 echo "$as_me: failed program was:" >&5
7764sed 's/^/| /' conftest.$ac_ext >&5
7765
7766xlinux_first_failure=yes
7767fi
7768rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7769 if test "${xlinux_first_failure}" = "yes"; then
7770 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7771 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7772 OLD_CPPFLAGS="$CPPFLAGS"
7773 OLD_LIBS="$LIBS"
7774 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7775 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7776 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7777 LIBS="$LIBS -b i486-linuxaout"
7778 cat >conftest.$ac_ext <<_ACEOF
7779#line $LINENO "configure"
7780/* confdefs.h. */
7781_ACEOF
7782cat confdefs.h >>conftest.$ac_ext
7783cat >>conftest.$ac_ext <<_ACEOF
7784/* end confdefs.h. */
7785
7786int
7787main ()
7788{
7789XOpenDisplay ("foo");
7790 ;
7791 return 0;
7792}
7793_ACEOF
7794rm -f conftest.$ac_objext conftest$ac_exeext
7795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7796 (eval $ac_link) 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); } &&
7800 { ac_try='test -s conftest$ac_exeext'
7801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 (eval $ac_try) 2>&5
7803 ac_status=$?
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; }; then
7806 xlinux_second_failure=no
7807else
7808 echo "$as_me: failed program was:" >&5
7809sed 's/^/| /' conftest.$ac_ext >&5
7810
7811xlinux_second_failure=yes
7812fi
7813rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7814 if test "${xlinux_second_failure}" = "yes"; then
7815 # If we get the same failure with -b, there is no use adding -b.
7816 # So take it out. This plays safe.
7817 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7818 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7819 CPPFLAGS="$OLD_CPPFLAGS"
7820 LIBS="$OLD_LIBS"
7821 echo "$as_me:$LINENO: result: no" >&5
7822echo "${ECHO_T}no" >&6
7823 else
7824 echo "$as_me:$LINENO: result: yes" >&5
7825echo "${ECHO_T}yes" >&6
7826 fi
7827 else
7828 echo "$as_me:$LINENO: result: no" >&5
7829echo "${ECHO_T}no" >&6
7830 fi
7831 fi
7832
7833 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7834 # header files included from there.
7835 echo "$as_me:$LINENO: checking for Xkb" >&5
7836echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7837 cat >conftest.$ac_ext <<_ACEOF
7838#line $LINENO "configure"
7839/* confdefs.h. */
7840_ACEOF
7841cat confdefs.h >>conftest.$ac_ext
7842cat >>conftest.$ac_ext <<_ACEOF
7843/* end confdefs.h. */
7844#include <X11/Xlib.h>
7845#include <X11/XKBlib.h>
7846int
7847main ()
7848{
7849XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7850 ;
7851 return 0;
7852}
7853_ACEOF
7854rm -f conftest.$ac_objext conftest$ac_exeext
7855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7856 (eval $ac_link) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } &&
7860 { ac_try='test -s conftest$ac_exeext'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; }; then
7866 emacs_xkb=yes
7867else
7868 echo "$as_me: failed program was:" >&5
7869sed 's/^/| /' conftest.$ac_ext >&5
7870
7871emacs_xkb=no
7872fi
7873rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7874 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7875echo "${ECHO_T}$emacs_xkb" >&6
7876 if test $emacs_xkb = yes; then
7877
7878cat >>confdefs.h <<\_ACEOF
7879#define HAVE_XKBGETKEYBOARD 1
7880_ACEOF
7881
7882 fi
7883
7884
7885
7886
7887
7888for ac_func in XrmSetDatabase XScreenResourceString \
7889XScreenNumberOfScreen XSetWMProtocols
7890do
7891as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7892echo "$as_me:$LINENO: checking for $ac_func" >&5
7893echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7894if eval "test \"\${$as_ac_var+set}\" = set"; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896else
7897 cat >conftest.$ac_ext <<_ACEOF
7898#line $LINENO "configure"
7899/* confdefs.h. */
7900_ACEOF
7901cat confdefs.h >>conftest.$ac_ext
7902cat >>conftest.$ac_ext <<_ACEOF
7903/* end confdefs.h. */
7904/* System header to define __stub macros and hopefully few prototypes,
7905 which can conflict with char $ac_func (); below.
7906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7907 <limits.h> exists even on freestanding compilers. */
7908#ifdef __STDC__
7909# include <limits.h>
7910#else
7911# include <assert.h>
7912#endif
7913/* Override any gcc2 internal prototype to avoid an error. */
7914#ifdef __cplusplus
7915extern "C"
7916{
7917#endif
7918/* We use char because int might match the return type of a gcc2
7919 builtin and then its argument prototype would still apply. */
7920char $ac_func ();
7921/* The GNU C library defines this for functions which it implements
7922 to always fail with ENOSYS. Some functions are actually named
7923 something starting with __ and the normal name is an alias. */
7924#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7925choke me
7926#else
7927char (*f) () = $ac_func;
7928#endif
7929#ifdef __cplusplus
7930}
7931#endif
7932
7933int
7934main ()
7935{
7936return f != $ac_func;
7937 ;
7938 return 0;
7939}
7940_ACEOF
7941rm -f conftest.$ac_objext conftest$ac_exeext
7942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7943 (eval $ac_link) 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -s conftest$ac_exeext'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 (eval $ac_try) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 eval "$as_ac_var=yes"
7954else
7955 echo "$as_me: failed program was:" >&5
7956sed 's/^/| /' conftest.$ac_ext >&5
7957
7958eval "$as_ac_var=no"
7959fi
7960rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7961fi
7962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7963echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7964if test `eval echo '${'$as_ac_var'}'` = yes; then
7965 cat >>confdefs.h <<_ACEOF
7966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7967_ACEOF
7968
7969fi
7970done
7971
7972fi
7973
7974if test "${window_system}" = "x11"; then
7975 echo "$as_me:$LINENO: checking X11 version 6" >&5
7976echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7977 if test "${emacs_cv_x11_version_6+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7979else
7980 cat >conftest.$ac_ext <<_ACEOF
7981#line $LINENO "configure"
7982/* confdefs.h. */
7983_ACEOF
7984cat confdefs.h >>conftest.$ac_ext
7985cat >>conftest.$ac_ext <<_ACEOF
7986/* end confdefs.h. */
7987#include <X11/Xlib.h>
7988int
7989main ()
7990{
7991#if XlibSpecificationRelease < 6
7992fail;
7993#endif
7994
7995 ;
7996 return 0;
7997}
7998_ACEOF
7999rm -f conftest.$ac_objext conftest$ac_exeext
8000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8001 (eval $ac_link) 2>&5
8002 ac_status=$?
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -s conftest$ac_exeext'
8006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 (eval $ac_try) 2>&5
8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
8011 emacs_cv_x11_version_6=yes
8012else
8013 echo "$as_me: failed program was:" >&5
8014sed 's/^/| /' conftest.$ac_ext >&5
8015
8016emacs_cv_x11_version_6=no
8017fi
8018rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8019fi
8020
8021 if test $emacs_cv_x11_version_6 = yes; then
8022 echo "$as_me:$LINENO: result: 6 or newer" >&5
8023echo "${ECHO_T}6 or newer" >&6
8024
8025cat >>confdefs.h <<\_ACEOF
8026#define HAVE_X11R6 1
8027_ACEOF
8028
8029 else
8030 echo "$as_me:$LINENO: result: before 6" >&5
8031echo "${ECHO_T}before 6" >&6
8032 fi
8033fi
8034
8035if test "${window_system}" = "x11"; then
8036 echo "$as_me:$LINENO: checking X11 version 5" >&5
8037echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8038 if test "${emacs_cv_x11_version_5+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040else
8041 cat >conftest.$ac_ext <<_ACEOF
8042#line $LINENO "configure"
8043/* confdefs.h. */
8044_ACEOF
8045cat confdefs.h >>conftest.$ac_ext
8046cat >>conftest.$ac_ext <<_ACEOF
8047/* end confdefs.h. */
8048#include <X11/Xlib.h>
8049int
8050main ()
8051{
8052#if XlibSpecificationRelease < 5
8053fail;
8054#endif
8055
8056 ;
8057 return 0;
8058}
8059_ACEOF
8060rm -f conftest.$ac_objext conftest$ac_exeext
8061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8062 (eval $ac_link) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } &&
8066 { ac_try='test -s conftest$ac_exeext'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 (eval $ac_try) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
8072 emacs_cv_x11_version_5=yes
8073else
8074 echo "$as_me: failed program was:" >&5
8075sed 's/^/| /' conftest.$ac_ext >&5
8076
8077emacs_cv_x11_version_5=no
8078fi
8079rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8080fi
8081
8082 if test $emacs_cv_x11_version_5 = yes; then
8083 echo "$as_me:$LINENO: result: 5 or newer" >&5
8084echo "${ECHO_T}5 or newer" >&6
8085 HAVE_X11R5=yes
8086
8087cat >>confdefs.h <<\_ACEOF
8088#define HAVE_X11R5 1
8089_ACEOF
8090
8091 else
8092 HAVE_X11R5=no
8093 echo "$as_me:$LINENO: result: before 5" >&5
8094echo "${ECHO_T}before 5" >&6
8095 fi
8096fi
8097
8098
8099
8100HAVE_GTK=no
8101if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
8102 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8103 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8104echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8105 { (exit 1); exit 1; }; };
8106 fi
8107 GLIB_REQUIRED=2.0.1
8108 GTK_REQUIRED=2.0.1
8109 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8110
8111 if test "X${with_pkg_config_prog}" != X; then
8112 PKG_CONFIG="${with_pkg_config_prog}"
8113 fi
8114
8115 succeeded=no
8116
8117 if test -z "$PKG_CONFIG"; then
8118 # Extract the first word of "pkg-config", so it can be a program name with args.
8119set dummy pkg-config; ac_word=$2
8120echo "$as_me:$LINENO: checking for $ac_word" >&5
8121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8122if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8124else
8125 case $PKG_CONFIG in
8126 [\\/]* | ?:[\\/]*)
8127 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8128 ;;
8129 *)
8130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131for as_dir in $PATH
8132do
8133 IFS=$as_save_IFS
8134 test -z "$as_dir" && as_dir=.
8135 for ac_exec_ext in '' $ac_executable_extensions; do
8136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8137 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 break 2
8140 fi
8141done
8142done
8143
8144 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8145 ;;
8146esac
8147fi
8148PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8149
8150if test -n "$PKG_CONFIG"; then
8151 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8152echo "${ECHO_T}$PKG_CONFIG" >&6
8153else
8154 echo "$as_me:$LINENO: result: no" >&5
8155echo "${ECHO_T}no" >&6
8156fi
8157
8158 fi
8159
8160 if test "$PKG_CONFIG" = "no" ; then
8161 echo "*** The pkg-config script could not be found. Make sure it is"
8162 echo "*** in your path, or give the full path to pkg-config with"
8163 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8164 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8165 else
8166 PKG_CONFIG_MIN_VERSION=0.9.0
8167 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8168 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8169echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8170
8171 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8172 echo "$as_me:$LINENO: result: yes" >&5
8173echo "${ECHO_T}yes" >&6
8174 succeeded=yes
8175
8176 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8177echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8178 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8179 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8180echo "${ECHO_T}$GTK_CFLAGS" >&6
8181
8182 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8183echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8184 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
8185 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8186echo "${ECHO_T}$GTK_LIBS" >&6
8187 else
8188 GTK_CFLAGS=""
8189 GTK_LIBS=""
8190 ## If we have a custom action on failure, don't print errors, but
8191 ## do set a variable so people can do so.
8192 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8193 echo $GTK_PKG_ERRORS
8194 fi
8195
8196
8197
8198 else
8199 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8200 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8201 fi
8202 fi
8203
8204 if test $succeeded = yes; then
8205 :
8206 else
8207 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8208echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8209 { (exit 1); exit 1; }; }
8210 fi
8211
8212
8213
8214 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8215 HAVE_GTK=yes
8216
8217cat >>confdefs.h <<\_ACEOF
8218#define HAVE_GTK 1
8219_ACEOF
8220
8221 USE_X_TOOLKIT=none
8222
8223 with_toolkit_scroll_bars=yes
8224fi
8225
8226if test x"${USE_X_TOOLKIT}" = xmaybe; then
8227 if test x"${HAVE_X11R5}" = xyes; then
8228 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8229echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8230 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232else
8233 cat >conftest.$ac_ext <<_ACEOF
8234#line $LINENO "configure"
8235/* confdefs.h. */
8236_ACEOF
8237cat confdefs.h >>conftest.$ac_ext
8238cat >>conftest.$ac_ext <<_ACEOF
8239/* end confdefs.h. */
8240
8241#include <X11/Intrinsic.h>
8242#include <X11/Xaw/Simple.h>
8243int
8244main ()
8245{
8246
8247 ;
8248 return 0;
8249}
8250_ACEOF
8251rm -f conftest.$ac_objext conftest$ac_exeext
8252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253 (eval $ac_link) 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try='test -s conftest$ac_exeext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 emacs_cv_x11_version_5_with_xaw=yes
8264else
8265 echo "$as_me: failed program was:" >&5
8266sed 's/^/| /' conftest.$ac_ext >&5
8267
8268emacs_cv_x11_version_5_with_xaw=no
8269fi
8270rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8271fi
8272
8273 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8274 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8275echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8276 USE_X_TOOLKIT=LUCID
8277 else
8278 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8279echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8280 USE_X_TOOLKIT=none
8281 fi
8282 else
8283 USE_X_TOOLKIT=none
8284 fi
8285fi
8286
8287X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8288
8289if test "${USE_X_TOOLKIT}" != "none"; then
8290 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8291echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8292 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294else
8295 cat >conftest.$ac_ext <<_ACEOF
8296#line $LINENO "configure"
8297/* confdefs.h. */
8298_ACEOF
8299cat confdefs.h >>conftest.$ac_ext
8300cat >>conftest.$ac_ext <<_ACEOF
8301/* end confdefs.h. */
8302#include <X11/Intrinsic.h>
8303int
8304main ()
8305{
8306#if XtSpecificationRelease < 6
8307fail;
8308#endif
8309
8310 ;
8311 return 0;
8312}
8313_ACEOF
8314rm -f conftest.$ac_objext conftest$ac_exeext
8315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8316 (eval $ac_link) 2>&5
8317 ac_status=$?
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } &&
8320 { ac_try='test -s conftest$ac_exeext'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8326 emacs_cv_x11_toolkit_version_6=yes
8327else
8328 echo "$as_me: failed program was:" >&5
8329sed 's/^/| /' conftest.$ac_ext >&5
8330
8331emacs_cv_x11_toolkit_version_6=no
8332fi
8333rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8334fi
8335
8336 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8337 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8338 echo "$as_me:$LINENO: result: 6 or newer" >&5
8339echo "${ECHO_T}6 or newer" >&6
8340
8341cat >>confdefs.h <<\_ACEOF
8342#define HAVE_X11XTR6 1
8343_ACEOF
8344
8345 else
8346 echo "$as_me:$LINENO: result: before 6" >&5
8347echo "${ECHO_T}before 6" >&6
8348 fi
8349
8350 OLDLIBS="$LIBS"
8351 if test x$HAVE_X11XTR6 = xyes; then
8352 LIBS="-lXt -lSM -lICE $LIBS"
8353 else
8354 LIBS="-lXt $LIBS"
8355 fi
8356
8357echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8358echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8359if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361else
8362 ac_check_lib_save_LIBS=$LIBS
8363LIBS="-lXmu $LIBS"
8364cat >conftest.$ac_ext <<_ACEOF
8365#line $LINENO "configure"
8366/* confdefs.h. */
8367_ACEOF
8368cat confdefs.h >>conftest.$ac_ext
8369cat >>conftest.$ac_ext <<_ACEOF
8370/* end confdefs.h. */
8371
8372/* Override any gcc2 internal prototype to avoid an error. */
8373#ifdef __cplusplus
8374extern "C"
8375#endif
8376/* We use char because int might match the return type of a gcc2
8377 builtin and then its argument prototype would still apply. */
8378char XmuConvertStandardSelection ();
8379int
8380main ()
8381{
8382XmuConvertStandardSelection ();
8383 ;
8384 return 0;
8385}
8386_ACEOF
8387rm -f conftest.$ac_objext conftest$ac_exeext
8388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389 (eval $ac_link) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } &&
8393 { ac_try='test -s conftest$ac_exeext'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 (eval $ac_try) 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; }; then
8399 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8400else
8401 echo "$as_me: failed program was:" >&5
8402sed 's/^/| /' conftest.$ac_ext >&5
8403
8404ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8405fi
8406rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8407LIBS=$ac_check_lib_save_LIBS
8408fi
8409echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8410echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8411if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8412 cat >>confdefs.h <<_ACEOF
8413#define HAVE_LIBXMU 1
8414_ACEOF
8415
8416 LIBS="-lXmu $LIBS"
8417
8418fi
8419
8420 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8421fi
8422
8423# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8424if test "${HAVE_X11}" = "yes"; then
8425 if test "${USE_X_TOOLKIT}" != "none"; then
8426
8427echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8428echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8429if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8431else
8432 ac_check_lib_save_LIBS=$LIBS
8433LIBS="-lXext $LIBS"
8434cat >conftest.$ac_ext <<_ACEOF
8435#line $LINENO "configure"
8436/* confdefs.h. */
8437_ACEOF
8438cat confdefs.h >>conftest.$ac_ext
8439cat >>conftest.$ac_ext <<_ACEOF
8440/* end confdefs.h. */
8441
8442/* Override any gcc2 internal prototype to avoid an error. */
8443#ifdef __cplusplus
8444extern "C"
8445#endif
8446/* We use char because int might match the return type of a gcc2
8447 builtin and then its argument prototype would still apply. */
8448char XShapeQueryExtension ();
8449int
8450main ()
8451{
8452XShapeQueryExtension ();
8453 ;
8454 return 0;
8455}
8456_ACEOF
8457rm -f conftest.$ac_objext conftest$ac_exeext
8458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8459 (eval $ac_link) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
8463 { ac_try='test -s conftest$ac_exeext'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 (eval $ac_try) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8469 ac_cv_lib_Xext_XShapeQueryExtension=yes
8470else
8471 echo "$as_me: failed program was:" >&5
8472sed 's/^/| /' conftest.$ac_ext >&5
8473
8474ac_cv_lib_Xext_XShapeQueryExtension=no
8475fi
8476rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8477LIBS=$ac_check_lib_save_LIBS
8478fi
8479echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8480echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8481if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8482 cat >>confdefs.h <<_ACEOF
8483#define HAVE_LIBXEXT 1
8484_ACEOF
8485
8486 LIBS="-lXext $LIBS"
8487
8488fi
8489
8490 fi
8491fi
8492
8493if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8494 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8495echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8496if test "${emacs_cv_lesstif+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8498else
8499 # We put this in CFLAGS temporarily to precede other -I options
8500 # that might be in CFLAGS temporarily.
8501 # We put this in CPPFLAGS where it precedes the other -I options.
8502 OLD_CPPFLAGS=$CPPFLAGS
8503 OLD_CFLAGS=$CFLAGS
8504 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8505 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8506 cat >conftest.$ac_ext <<_ACEOF
8507#line $LINENO "configure"
8508/* confdefs.h. */
8509_ACEOF
8510cat confdefs.h >>conftest.$ac_ext
8511cat >>conftest.$ac_ext <<_ACEOF
8512/* end confdefs.h. */
8513#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8514int
8515main ()
8516{
8517int x = 5;
8518 ;
8519 return 0;
8520}
8521_ACEOF
8522rm -f conftest.$ac_objext
8523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8524 (eval $ac_compile) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -s conftest.$ac_objext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 (eval $ac_try) 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 emacs_cv_lesstif=yes
8535else
8536 echo "$as_me: failed program was:" >&5
8537sed 's/^/| /' conftest.$ac_ext >&5
8538
8539emacs_cv_lesstif=no
8540fi
8541rm -f conftest.$ac_objext conftest.$ac_ext
8542fi
8543echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8544echo "${ECHO_T}$emacs_cv_lesstif" >&6
8545 if test $emacs_cv_lesstif = yes; then
8546 # Make sure this -I option remains in CPPFLAGS after it is set
8547 # back to REAL_CPPFLAGS.
8548 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8549 # have those other -I options anyway. Ultimately, having this
8550 # directory ultimately in CPPFLAGS will be enough.
8551 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8552 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8553 else
8554 CFLAGS=$OLD_CFLAGS
8555 CPPFLAGS=$OLD_CPPFLAGS
8556 fi
8557 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8558echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8559if test "${emacs_cv_motif_version_2_1+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561else
8562 cat >conftest.$ac_ext <<_ACEOF
8563#line $LINENO "configure"
8564/* confdefs.h. */
8565_ACEOF
8566cat confdefs.h >>conftest.$ac_ext
8567cat >>conftest.$ac_ext <<_ACEOF
8568/* end confdefs.h. */
8569#include <Xm/Xm.h>
8570int
8571main ()
8572{
8573#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8574int x = 5;
8575#else
8576Motif version prior to 2.1.
8577#endif
8578 ;
8579 return 0;
8580}
8581_ACEOF
8582rm -f conftest.$ac_objext
8583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8584 (eval $ac_compile) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -s conftest.$ac_objext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 emacs_cv_motif_version_2_1=yes
8595else
8596 echo "$as_me: failed program was:" >&5
8597sed 's/^/| /' conftest.$ac_ext >&5
8598
8599emacs_cv_motif_version_2_1=no
8600fi
8601rm -f conftest.$ac_objext conftest.$ac_ext
8602fi
8603echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8604echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8605 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8606 if test $emacs_cv_motif_version_2_1 = yes; then
8607 HAVE_LIBXP=no
8608
8609cat >>confdefs.h <<\_ACEOF
8610#define HAVE_MOTIF_2_1 1
8611_ACEOF
8612
8613 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8614echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8615if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8617else
8618 ac_check_lib_save_LIBS=$LIBS
8619LIBS="-lXp $LIBS"
8620cat >conftest.$ac_ext <<_ACEOF
8621#line $LINENO "configure"
8622/* confdefs.h. */
8623_ACEOF
8624cat confdefs.h >>conftest.$ac_ext
8625cat >>conftest.$ac_ext <<_ACEOF
8626/* end confdefs.h. */
8627
8628/* Override any gcc2 internal prototype to avoid an error. */
8629#ifdef __cplusplus
8630extern "C"
8631#endif
8632/* We use char because int might match the return type of a gcc2
8633 builtin and then its argument prototype would still apply. */
8634char XpCreateContext ();
8635int
8636main ()
8637{
8638XpCreateContext ();
8639 ;
8640 return 0;
8641}
8642_ACEOF
8643rm -f conftest.$ac_objext conftest$ac_exeext
8644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8645 (eval $ac_link) 2>&5
8646 ac_status=$?
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } &&
8649 { ac_try='test -s conftest$ac_exeext'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 (eval $ac_try) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; }; then
8655 ac_cv_lib_Xp_XpCreateContext=yes
8656else
8657 echo "$as_me: failed program was:" >&5
8658sed 's/^/| /' conftest.$ac_ext >&5
8659
8660ac_cv_lib_Xp_XpCreateContext=no
8661fi
8662rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8663LIBS=$ac_check_lib_save_LIBS
8664fi
8665echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8666echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8667if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8668 HAVE_LIBXP=yes
8669fi
8670
8671 if test ${HAVE_LIBXP} = yes; then
8672
8673cat >>confdefs.h <<\_ACEOF
8674#define HAVE_LIBXP 1
8675_ACEOF
8676
8677 fi
8678 fi
8679fi
8680
8681### Is -lXaw3d available?
8682HAVE_XAW3D=no
8683if test "${HAVE_X11}" = "yes"; then
8684 if test "${USE_X_TOOLKIT}" != "none"; then
8685 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8686echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8687if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689else
8690 cat >conftest.$ac_ext <<_ACEOF
8691#line $LINENO "configure"
8692/* confdefs.h. */
8693_ACEOF
8694cat confdefs.h >>conftest.$ac_ext
8695cat >>conftest.$ac_ext <<_ACEOF
8696/* end confdefs.h. */
8697#include <X11/Xaw3d/Scrollbar.h>
8698_ACEOF
8699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } >/dev/null; then
8707 if test -s conftest.err; then
8708 ac_cpp_err=$ac_c_preproc_warn_flag
8709 else
8710 ac_cpp_err=
8711 fi
8712else
8713 ac_cpp_err=yes
8714fi
8715if test -z "$ac_cpp_err"; then
8716 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
8717else
8718 echo "$as_me: failed program was:" >&5
8719sed 's/^/| /' conftest.$ac_ext >&5
8720
8721 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
8722fi
8723rm -f conftest.err conftest.$ac_ext
8724fi
8725echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8726echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8727if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8728 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8729echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8730if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8732else
8733 ac_check_lib_save_LIBS=$LIBS
8734LIBS="-lXaw3d $LIBS"
8735cat >conftest.$ac_ext <<_ACEOF
8736#line $LINENO "configure"
8737/* confdefs.h. */
8738_ACEOF
8739cat confdefs.h >>conftest.$ac_ext
8740cat >>conftest.$ac_ext <<_ACEOF
8741/* end confdefs.h. */
8742
8743/* Override any gcc2 internal prototype to avoid an error. */
8744#ifdef __cplusplus
8745extern "C"
8746#endif
8747/* We use char because int might match the return type of a gcc2
8748 builtin and then its argument prototype would still apply. */
8749char XawScrollbarSetThumb ();
8750int
8751main ()
8752{
8753XawScrollbarSetThumb ();
8754 ;
8755 return 0;
8756}
8757_ACEOF
8758rm -f conftest.$ac_objext conftest$ac_exeext
8759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760 (eval $ac_link) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try='test -s conftest$ac_exeext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8771else
8772 echo "$as_me: failed program was:" >&5
8773sed 's/^/| /' conftest.$ac_ext >&5
8774
8775ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8776fi
8777rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8778LIBS=$ac_check_lib_save_LIBS
8779fi
8780echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8781echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8782if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8783 HAVE_XAW3D=yes
8784fi
8785
8786fi
8787
8788
8789 if test "${HAVE_XAW3D}" = "yes"; then
8790
8791cat >>confdefs.h <<\_ACEOF
8792#define HAVE_XAW3D 1
8793_ACEOF
8794
8795 fi
8796 fi
8797fi
8798
8799
8800
8801USE_TOOLKIT_SCROLL_BARS=no
8802if test "${with_toolkit_scroll_bars}" != "no"; then
8803 if test "${USE_X_TOOLKIT}" != "none"; then
8804 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8805 cat >>confdefs.h <<\_ACEOF
8806#define USE_TOOLKIT_SCROLL_BARS 1
8807_ACEOF
8808
8809 HAVE_XAW3D=no
8810 USE_TOOLKIT_SCROLL_BARS=yes
8811 elif test "${HAVE_XAW3D}" = "yes"; then
8812 cat >>confdefs.h <<\_ACEOF
8813#define USE_TOOLKIT_SCROLL_BARS 1
8814_ACEOF
8815
8816 USE_TOOLKIT_SCROLL_BARS=yes
8817 fi
8818 elif test "${HAVE_GTK}" = "yes"; then
8819 cat >>confdefs.h <<\_ACEOF
8820#define USE_TOOLKIT_SCROLL_BARS 1
8821_ACEOF
8822
8823 USE_TOOLKIT_SCROLL_BARS=yes
8824 fi
8825fi
8826
8827
8828if test "${with_xim}" != "no"; then
8829
8830cat >>confdefs.h <<\_ACEOF
8831#define USE_XIM 1
8832_ACEOF
8833
8834fi
8835
8836### Use -lXpm if available, unless `--with-xpm=no'.
8837HAVE_XPM=no
8838if test "${HAVE_X11}" = "yes"; then
8839 if test "${with_xpm}" != "no"; then
8840 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8841 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8842echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8843if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8845fi
8846echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8847echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8848else
8849 # Is the header compilable?
8850echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8851echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8852cat >conftest.$ac_ext <<_ACEOF
8853#line $LINENO "configure"
8854/* confdefs.h. */
8855_ACEOF
8856cat confdefs.h >>conftest.$ac_ext
8857cat >>conftest.$ac_ext <<_ACEOF
8858/* end confdefs.h. */
8859$ac_includes_default
8860#include <X11/xpm.h>
8861_ACEOF
8862rm -f conftest.$ac_objext
8863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8864 (eval $ac_compile) 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } &&
8868 { ac_try='test -s conftest.$ac_objext'
8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 (eval $ac_try) 2>&5
8871 ac_status=$?
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 ac_header_compiler=yes
8875else
8876 echo "$as_me: failed program was:" >&5
8877sed 's/^/| /' conftest.$ac_ext >&5
8878
8879ac_header_compiler=no
8880fi
8881rm -f conftest.$ac_objext conftest.$ac_ext
8882echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8883echo "${ECHO_T}$ac_header_compiler" >&6
8884
8885# Is the header present?
8886echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8887echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8888cat >conftest.$ac_ext <<_ACEOF
8889#line $LINENO "configure"
8890/* confdefs.h. */
8891_ACEOF
8892cat confdefs.h >>conftest.$ac_ext
8893cat >>conftest.$ac_ext <<_ACEOF
8894/* end confdefs.h. */
8895#include <X11/xpm.h>
8896_ACEOF
8897if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8899 ac_status=$?
8900 grep -v '^ *+' conftest.er1 >conftest.err
8901 rm -f conftest.er1
8902 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } >/dev/null; then
8905 if test -s conftest.err; then
8906 ac_cpp_err=$ac_c_preproc_warn_flag
8907 else
8908 ac_cpp_err=
8909 fi
8910else
8911 ac_cpp_err=yes
8912fi
8913if test -z "$ac_cpp_err"; then
8914 ac_header_preproc=yes
8915else
8916 echo "$as_me: failed program was:" >&5
8917sed 's/^/| /' conftest.$ac_ext >&5
8918
8919 ac_header_preproc=no
8920fi
8921rm -f conftest.err conftest.$ac_ext
8922echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8923echo "${ECHO_T}$ac_header_preproc" >&6
8924
8925# So? What about this header?
8926case $ac_header_compiler:$ac_header_preproc in
8927 yes:no )
8928 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8929echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8930 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8931echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8932 (
8933 cat <<\_ASBOX
8934## ------------------------------------ ##
8935## Report this to bug-autoconf@gnu.org. ##
8936## ------------------------------------ ##
8937_ASBOX
8938 ) |
8939 sed "s/^/$as_me: WARNING: /" >&2
8940 ;;
8941 no:yes )
8942 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8943echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8944 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8945echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8946 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8947echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8948 (
8949 cat <<\_ASBOX
8950## ------------------------------------ ##
8951## Report this to bug-autoconf@gnu.org. ##
8952## ------------------------------------ ##
8953_ASBOX
8954 ) |
8955 sed "s/^/$as_me: WARNING: /" >&2
8956 ;;
8957esac
8958echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8959echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8960if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8962else
8963 ac_cv_header_X11_xpm_h=$ac_header_preproc
8964fi
8965echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8966echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8967
8968fi
8969if test $ac_cv_header_X11_xpm_h = yes; then
8970 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8971echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8972if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8974else
8975 ac_check_lib_save_LIBS=$LIBS
8976LIBS="-lXpm -lX11 $LIBS"
8977cat >conftest.$ac_ext <<_ACEOF
8978#line $LINENO "configure"
8979/* confdefs.h. */
8980_ACEOF
8981cat confdefs.h >>conftest.$ac_ext
8982cat >>conftest.$ac_ext <<_ACEOF
8983/* end confdefs.h. */
8984
8985/* Override any gcc2 internal prototype to avoid an error. */
8986#ifdef __cplusplus
8987extern "C"
8988#endif
8989/* We use char because int might match the return type of a gcc2
8990 builtin and then its argument prototype would still apply. */
8991char XpmReadFileToPixmap ();
8992int
8993main ()
8994{
8995XpmReadFileToPixmap ();
8996 ;
8997 return 0;
8998}
8999_ACEOF
9000rm -f conftest.$ac_objext conftest$ac_exeext
9001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9002 (eval $ac_link) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
9006 { ac_try='test -s conftest$ac_exeext'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 (eval $ac_try) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; }; then
9012 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9013else
9014 echo "$as_me: failed program was:" >&5
9015sed 's/^/| /' conftest.$ac_ext >&5
9016
9017ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9018fi
9019rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9020LIBS=$ac_check_lib_save_LIBS
9021fi
9022echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9023echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9024if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9025 HAVE_XPM=yes
9026fi
9027
9028fi
9029
9030
9031 if test "${HAVE_XPM}" = "yes"; then
9032 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9033echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9034 cat >conftest.$ac_ext <<_ACEOF
9035#line $LINENO "configure"
9036/* confdefs.h. */
9037_ACEOF
9038cat confdefs.h >>conftest.$ac_ext
9039cat >>conftest.$ac_ext <<_ACEOF
9040/* end confdefs.h. */
9041#include "X11/xpm.h"
9042#ifndef XpmReturnAllocPixels
9043no_return_alloc_pixels
9044#endif
9045
9046_ACEOF
9047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9048 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9049 HAVE_XPM=no
9050else
9051 HAVE_XPM=yes
9052fi
9053rm -f conftest*
9054
9055
9056 if test "${HAVE_XPM}" = "yes"; then
9057 echo "$as_me:$LINENO: result: yes" >&5
9058echo "${ECHO_T}yes" >&6
9059 else
9060 echo "$as_me:$LINENO: result: no" >&5
9061echo "${ECHO_T}no" >&6
9062 fi
9063 fi
9064 fi
9065
9066 if test "${HAVE_XPM}" = "yes"; then
9067
9068cat >>confdefs.h <<\_ACEOF
9069#define HAVE_XPM 1
9070_ACEOF
9071
9072 fi
9073fi
9074
9075### Use -ljpeg if available, unless `--with-jpeg=no'.
9076HAVE_JPEG=no
9077if test "${HAVE_X11}" = "yes"; then
9078 if test "${with_jpeg}" != "no"; then
9079 if test "${ac_cv_header_jerror_h+set}" = set; then
9080 echo "$as_me:$LINENO: checking for jerror.h" >&5
9081echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9082if test "${ac_cv_header_jerror_h+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9084fi
9085echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9086echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9087else
9088 # Is the header compilable?
9089echo "$as_me:$LINENO: checking jerror.h usability" >&5
9090echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9091cat >conftest.$ac_ext <<_ACEOF
9092#line $LINENO "configure"
9093/* confdefs.h. */
9094_ACEOF
9095cat confdefs.h >>conftest.$ac_ext
9096cat >>conftest.$ac_ext <<_ACEOF
9097/* end confdefs.h. */
9098$ac_includes_default
9099#include <jerror.h>
9100_ACEOF
9101rm -f conftest.$ac_objext
9102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9103 (eval $ac_compile) 2>&5
9104 ac_status=$?
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try='test -s conftest.$ac_objext'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 (eval $ac_try) 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; }; then
9113 ac_header_compiler=yes
9114else
9115 echo "$as_me: failed program was:" >&5
9116sed 's/^/| /' conftest.$ac_ext >&5
9117
9118ac_header_compiler=no
9119fi
9120rm -f conftest.$ac_objext conftest.$ac_ext
9121echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9122echo "${ECHO_T}$ac_header_compiler" >&6
9123
9124# Is the header present?
9125echo "$as_me:$LINENO: checking jerror.h presence" >&5
9126echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9127cat >conftest.$ac_ext <<_ACEOF
9128#line $LINENO "configure"
9129/* confdefs.h. */
9130_ACEOF
9131cat confdefs.h >>conftest.$ac_ext
9132cat >>conftest.$ac_ext <<_ACEOF
9133/* end confdefs.h. */
9134#include <jerror.h>
9135_ACEOF
9136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9138 ac_status=$?
9139 grep -v '^ *+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } >/dev/null; then
9144 if test -s conftest.err; then
9145 ac_cpp_err=$ac_c_preproc_warn_flag
9146 else
9147 ac_cpp_err=
9148 fi
9149else
9150 ac_cpp_err=yes
9151fi
9152if test -z "$ac_cpp_err"; then
9153 ac_header_preproc=yes
9154else
9155 echo "$as_me: failed program was:" >&5
9156sed 's/^/| /' conftest.$ac_ext >&5
9157
9158 ac_header_preproc=no
9159fi
9160rm -f conftest.err conftest.$ac_ext
9161echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9162echo "${ECHO_T}$ac_header_preproc" >&6
9163
9164# So? What about this header?
9165case $ac_header_compiler:$ac_header_preproc in
9166 yes:no )
9167 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9168echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9169 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9170echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9171 (
9172 cat <<\_ASBOX
9173## ------------------------------------ ##
9174## Report this to bug-autoconf@gnu.org. ##
9175## ------------------------------------ ##
9176_ASBOX
9177 ) |
9178 sed "s/^/$as_me: WARNING: /" >&2
9179 ;;
9180 no:yes )
9181 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9182echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9184echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9185 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9186echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9187 (
9188 cat <<\_ASBOX
9189## ------------------------------------ ##
9190## Report this to bug-autoconf@gnu.org. ##
9191## ------------------------------------ ##
9192_ASBOX
9193 ) |
9194 sed "s/^/$as_me: WARNING: /" >&2
9195 ;;
9196esac
9197echo "$as_me:$LINENO: checking for jerror.h" >&5
9198echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9199if test "${ac_cv_header_jerror_h+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9201else
9202 ac_cv_header_jerror_h=$ac_header_preproc
9203fi
9204echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9205echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9206
9207fi
9208if test $ac_cv_header_jerror_h = yes; then
9209 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9210echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9211if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9213else
9214 ac_check_lib_save_LIBS=$LIBS
9215LIBS="-ljpeg $LIBS"
9216cat >conftest.$ac_ext <<_ACEOF
9217#line $LINENO "configure"
9218/* confdefs.h. */
9219_ACEOF
9220cat confdefs.h >>conftest.$ac_ext
9221cat >>conftest.$ac_ext <<_ACEOF
9222/* end confdefs.h. */
9223
9224/* Override any gcc2 internal prototype to avoid an error. */
9225#ifdef __cplusplus
9226extern "C"
9227#endif
9228/* We use char because int might match the return type of a gcc2
9229 builtin and then its argument prototype would still apply. */
9230char jpeg_destroy_compress ();
9231int
9232main ()
9233{
9234jpeg_destroy_compress ();
9235 ;
9236 return 0;
9237}
9238_ACEOF
9239rm -f conftest.$ac_objext conftest$ac_exeext
9240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241 (eval $ac_link) 2>&5
9242 ac_status=$?
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } &&
9245 { ac_try='test -s conftest$ac_exeext'
9246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 (eval $ac_try) 2>&5
9248 ac_status=$?
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; }; then
9251 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9252else
9253 echo "$as_me: failed program was:" >&5
9254sed 's/^/| /' conftest.$ac_ext >&5
9255
9256ac_cv_lib_jpeg_jpeg_destroy_compress=no
9257fi
9258rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9259LIBS=$ac_check_lib_save_LIBS
9260fi
9261echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9262echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9263if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9264 HAVE_JPEG=yes
9265fi
9266
9267fi
9268
9269
9270 fi
9271
9272
9273 if test "${HAVE_JPEG}" = "yes"; then
9274 cat >>confdefs.h <<\_ACEOF
9275#define HAVE_JPEG 1
9276_ACEOF
9277
9278 cat >conftest.$ac_ext <<_ACEOF
9279#line $LINENO "configure"
9280/* confdefs.h. */
9281_ACEOF
9282cat confdefs.h >>conftest.$ac_ext
9283cat >>conftest.$ac_ext <<_ACEOF
9284/* end confdefs.h. */
9285#include <jpeglib.h>
9286 version=JPEG_LIB_VERSION
9287
9288_ACEOF
9289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9290 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9291 cat >>confdefs.h <<\_ACEOF
9292#define HAVE_JPEG 1
9293_ACEOF
9294
9295else
9296 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9297echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9298 HAVE_JPEG=no
9299fi
9300rm -f conftest*
9301
9302 fi
9303fi
9304
9305### Use -lpng if available, unless `--with-png=no'.
9306HAVE_PNG=no
9307if test "${HAVE_X11}" = "yes"; then
9308 if test "${with_png}" != "no"; then
9309 if test "${ac_cv_header_png_h+set}" = set; then
9310 echo "$as_me:$LINENO: checking for png.h" >&5
9311echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9312if test "${ac_cv_header_png_h+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9314fi
9315echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9316echo "${ECHO_T}$ac_cv_header_png_h" >&6
9317else
9318 # Is the header compilable?
9319echo "$as_me:$LINENO: checking png.h usability" >&5
9320echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9321cat >conftest.$ac_ext <<_ACEOF
9322#line $LINENO "configure"
9323/* confdefs.h. */
9324_ACEOF
9325cat confdefs.h >>conftest.$ac_ext
9326cat >>conftest.$ac_ext <<_ACEOF
9327/* end confdefs.h. */
9328$ac_includes_default
9329#include <png.h>
9330_ACEOF
9331rm -f conftest.$ac_objext
9332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9333 (eval $ac_compile) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -s conftest.$ac_objext'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 (eval $ac_try) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 ac_header_compiler=yes
9344else
9345 echo "$as_me: failed program was:" >&5
9346sed 's/^/| /' conftest.$ac_ext >&5
9347
9348ac_header_compiler=no
9349fi
9350rm -f conftest.$ac_objext conftest.$ac_ext
9351echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9352echo "${ECHO_T}$ac_header_compiler" >&6
9353
9354# Is the header present?
9355echo "$as_me:$LINENO: checking png.h presence" >&5
9356echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9357cat >conftest.$ac_ext <<_ACEOF
9358#line $LINENO "configure"
9359/* confdefs.h. */
9360_ACEOF
9361cat confdefs.h >>conftest.$ac_ext
9362cat >>conftest.$ac_ext <<_ACEOF
9363/* end confdefs.h. */
9364#include <png.h>
9365_ACEOF
9366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } >/dev/null; then
9374 if test -s conftest.err; then
9375 ac_cpp_err=$ac_c_preproc_warn_flag
9376 else
9377 ac_cpp_err=
9378 fi
9379else
9380 ac_cpp_err=yes
9381fi
9382if test -z "$ac_cpp_err"; then
9383 ac_header_preproc=yes
9384else
9385 echo "$as_me: failed program was:" >&5
9386sed 's/^/| /' conftest.$ac_ext >&5
9387
9388 ac_header_preproc=no
9389fi
9390rm -f conftest.err conftest.$ac_ext
9391echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9392echo "${ECHO_T}$ac_header_preproc" >&6
9393
9394# So? What about this header?
9395case $ac_header_compiler:$ac_header_preproc in
9396 yes:no )
9397 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9398echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9399 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9400echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9401 (
9402 cat <<\_ASBOX
9403## ------------------------------------ ##
9404## Report this to bug-autoconf@gnu.org. ##
9405## ------------------------------------ ##
9406_ASBOX
9407 ) |
9408 sed "s/^/$as_me: WARNING: /" >&2
9409 ;;
9410 no:yes )
9411 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9412echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9414echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9416echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9417 (
9418 cat <<\_ASBOX
9419## ------------------------------------ ##
9420## Report this to bug-autoconf@gnu.org. ##
9421## ------------------------------------ ##
9422_ASBOX
9423 ) |
9424 sed "s/^/$as_me: WARNING: /" >&2
9425 ;;
9426esac
9427echo "$as_me:$LINENO: checking for png.h" >&5
9428echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9429if test "${ac_cv_header_png_h+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431else
9432 ac_cv_header_png_h=$ac_header_preproc
9433fi
9434echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9435echo "${ECHO_T}$ac_cv_header_png_h" >&6
9436
9437fi
9438if test $ac_cv_header_png_h = yes; then
9439 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9440echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9441if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9443else
9444 ac_check_lib_save_LIBS=$LIBS
9445LIBS="-lpng -lz -lm $LIBS"
9446cat >conftest.$ac_ext <<_ACEOF
9447#line $LINENO "configure"
9448/* confdefs.h. */
9449_ACEOF
9450cat confdefs.h >>conftest.$ac_ext
9451cat >>conftest.$ac_ext <<_ACEOF
9452/* end confdefs.h. */
9453
9454/* Override any gcc2 internal prototype to avoid an error. */
9455#ifdef __cplusplus
9456extern "C"
9457#endif
9458/* We use char because int might match the return type of a gcc2
9459 builtin and then its argument prototype would still apply. */
9460char png_get_channels ();
9461int
9462main ()
9463{
9464png_get_channels ();
9465 ;
9466 return 0;
9467}
9468_ACEOF
9469rm -f conftest.$ac_objext conftest$ac_exeext
9470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9471 (eval $ac_link) 2>&5
9472 ac_status=$?
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } &&
9475 { ac_try='test -s conftest$ac_exeext'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 (eval $ac_try) 2>&5
9478 ac_status=$?
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; }; then
9481 ac_cv_lib_png_png_get_channels=yes
9482else
9483 echo "$as_me: failed program was:" >&5
9484sed 's/^/| /' conftest.$ac_ext >&5
9485
9486ac_cv_lib_png_png_get_channels=no
9487fi
9488rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9489LIBS=$ac_check_lib_save_LIBS
9490fi
9491echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9492echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9493if test $ac_cv_lib_png_png_get_channels = yes; then
9494 HAVE_PNG=yes
9495fi
9496
9497fi
9498
9499
9500 fi
9501
9502 if test "${HAVE_PNG}" = "yes"; then
9503
9504cat >>confdefs.h <<\_ACEOF
9505#define HAVE_PNG 1
9506_ACEOF
9507
9508 fi
9509fi
9510
9511### Use -ltiff if available, unless `--with-tiff=no'.
9512HAVE_TIFF=no
9513if test "${HAVE_X11}" = "yes"; then
9514 if test "${with_tiff}" != "no"; then
9515 if test "${ac_cv_header_tiffio_h+set}" = set; then
9516 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9517echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9518if test "${ac_cv_header_tiffio_h+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520fi
9521echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9522echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9523else
9524 # Is the header compilable?
9525echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9526echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9527cat >conftest.$ac_ext <<_ACEOF
9528#line $LINENO "configure"
9529/* confdefs.h. */
9530_ACEOF
9531cat confdefs.h >>conftest.$ac_ext
9532cat >>conftest.$ac_ext <<_ACEOF
9533/* end confdefs.h. */
9534$ac_includes_default
9535#include <tiffio.h>
9536_ACEOF
9537rm -f conftest.$ac_objext
9538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9539 (eval $ac_compile) 2>&5
9540 ac_status=$?
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -s conftest.$ac_objext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 (eval $ac_try) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 ac_header_compiler=yes
9550else
9551 echo "$as_me: failed program was:" >&5
9552sed 's/^/| /' conftest.$ac_ext >&5
9553
9554ac_header_compiler=no
9555fi
9556rm -f conftest.$ac_objext conftest.$ac_ext
9557echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9558echo "${ECHO_T}$ac_header_compiler" >&6
9559
9560# Is the header present?
9561echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9562echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9563cat >conftest.$ac_ext <<_ACEOF
9564#line $LINENO "configure"
9565/* confdefs.h. */
9566_ACEOF
9567cat confdefs.h >>conftest.$ac_ext
9568cat >>conftest.$ac_ext <<_ACEOF
9569/* end confdefs.h. */
9570#include <tiffio.h>
9571_ACEOF
9572if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } >/dev/null; then
9580 if test -s conftest.err; then
9581 ac_cpp_err=$ac_c_preproc_warn_flag
9582 else
9583 ac_cpp_err=
9584 fi
9585else
9586 ac_cpp_err=yes
9587fi
9588if test -z "$ac_cpp_err"; then
9589 ac_header_preproc=yes
9590else
9591 echo "$as_me: failed program was:" >&5
9592sed 's/^/| /' conftest.$ac_ext >&5
9593
9594 ac_header_preproc=no
9595fi
9596rm -f conftest.err conftest.$ac_ext
9597echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9598echo "${ECHO_T}$ac_header_preproc" >&6
9599
9600# So? What about this header?
9601case $ac_header_compiler:$ac_header_preproc in
9602 yes:no )
9603 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9604echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9605 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9606echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9607 (
9608 cat <<\_ASBOX
9609## ------------------------------------ ##
9610## Report this to bug-autoconf@gnu.org. ##
9611## ------------------------------------ ##
9612_ASBOX
9613 ) |
9614 sed "s/^/$as_me: WARNING: /" >&2
9615 ;;
9616 no:yes )
9617 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9618echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9620echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9622echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9623 (
9624 cat <<\_ASBOX
9625## ------------------------------------ ##
9626## Report this to bug-autoconf@gnu.org. ##
9627## ------------------------------------ ##
9628_ASBOX
9629 ) |
9630 sed "s/^/$as_me: WARNING: /" >&2
9631 ;;
9632esac
9633echo "$as_me:$LINENO: checking for tiffio.h" >&5
9634echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9635if test "${ac_cv_header_tiffio_h+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9637else
9638 ac_cv_header_tiffio_h=$ac_header_preproc
9639fi
9640echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9641echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9642
9643fi
9644if test $ac_cv_header_tiffio_h = yes; then
9645 tifflibs="-lz -lm"
9646 # At least one tiff package requires the jpeg library.
9647 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9648 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9649echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9650if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9652else
9653 ac_check_lib_save_LIBS=$LIBS
9654LIBS="-ltiff $tifflibs $LIBS"
9655cat >conftest.$ac_ext <<_ACEOF
9656#line $LINENO "configure"
9657/* confdefs.h. */
9658_ACEOF
9659cat confdefs.h >>conftest.$ac_ext
9660cat >>conftest.$ac_ext <<_ACEOF
9661/* end confdefs.h. */
9662
9663/* Override any gcc2 internal prototype to avoid an error. */
9664#ifdef __cplusplus
9665extern "C"
9666#endif
9667/* We use char because int might match the return type of a gcc2
9668 builtin and then its argument prototype would still apply. */
9669char TIFFGetVersion ();
9670int
9671main ()
9672{
9673TIFFGetVersion ();
9674 ;
9675 return 0;
9676}
9677_ACEOF
9678rm -f conftest.$ac_objext conftest$ac_exeext
9679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9680 (eval $ac_link) 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } &&
9684 { ac_try='test -s conftest$ac_exeext'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 (eval $ac_try) 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; }; then
9690 ac_cv_lib_tiff_TIFFGetVersion=yes
9691else
9692 echo "$as_me: failed program was:" >&5
9693sed 's/^/| /' conftest.$ac_ext >&5
9694
9695ac_cv_lib_tiff_TIFFGetVersion=no
9696fi
9697rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9698LIBS=$ac_check_lib_save_LIBS
9699fi
9700echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9701echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9702if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9703 HAVE_TIFF=yes
9704fi
9705
9706fi
9707
9708
9709 fi
9710
9711 if test "${HAVE_TIFF}" = "yes"; then
9712
9713cat >>confdefs.h <<\_ACEOF
9714#define HAVE_TIFF 1
9715_ACEOF
9716
9717 fi
9718fi
9719
9720### Use -lgif if available, unless `--with-gif=no'.
9721HAVE_GIF=no
9722if test "${HAVE_X11}" = "yes"; then
9723 if test "${with_gif}" != "no"; then
9724 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9725 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9726echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9727if test "${ac_cv_header_gif_lib_h+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9729fi
9730echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9731echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9732else
9733 # Is the header compilable?
9734echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9735echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9736cat >conftest.$ac_ext <<_ACEOF
9737#line $LINENO "configure"
9738/* confdefs.h. */
9739_ACEOF
9740cat confdefs.h >>conftest.$ac_ext
9741cat >>conftest.$ac_ext <<_ACEOF
9742/* end confdefs.h. */
9743$ac_includes_default
9744#include <gif_lib.h>
9745_ACEOF
9746rm -f conftest.$ac_objext
9747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9748 (eval $ac_compile) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -s conftest.$ac_objext'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 (eval $ac_try) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 ac_header_compiler=yes
9759else
9760 echo "$as_me: failed program was:" >&5
9761sed 's/^/| /' conftest.$ac_ext >&5
9762
9763ac_header_compiler=no
9764fi
9765rm -f conftest.$ac_objext conftest.$ac_ext
9766echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9767echo "${ECHO_T}$ac_header_compiler" >&6
9768
9769# Is the header present?
9770echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9771echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9772cat >conftest.$ac_ext <<_ACEOF
9773#line $LINENO "configure"
9774/* confdefs.h. */
9775_ACEOF
9776cat confdefs.h >>conftest.$ac_ext
9777cat >>conftest.$ac_ext <<_ACEOF
9778/* end confdefs.h. */
9779#include <gif_lib.h>
9780_ACEOF
9781if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9783 ac_status=$?
9784 grep -v '^ *+' conftest.er1 >conftest.err
9785 rm -f conftest.er1
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } >/dev/null; then
9789 if test -s conftest.err; then
9790 ac_cpp_err=$ac_c_preproc_warn_flag
9791 else
9792 ac_cpp_err=
9793 fi
9794else
9795 ac_cpp_err=yes
9796fi
9797if test -z "$ac_cpp_err"; then
9798 ac_header_preproc=yes
9799else
9800 echo "$as_me: failed program was:" >&5
9801sed 's/^/| /' conftest.$ac_ext >&5
9802
9803 ac_header_preproc=no
9804fi
9805rm -f conftest.err conftest.$ac_ext
9806echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9807echo "${ECHO_T}$ac_header_preproc" >&6
9808
9809# So? What about this header?
9810case $ac_header_compiler:$ac_header_preproc in
9811 yes:no )
9812 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9813echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9814 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9815echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9816 (
9817 cat <<\_ASBOX
9818## ------------------------------------ ##
9819## Report this to bug-autoconf@gnu.org. ##
9820## ------------------------------------ ##
9821_ASBOX
9822 ) |
9823 sed "s/^/$as_me: WARNING: /" >&2
9824 ;;
9825 no:yes )
9826 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9827echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9829echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9831echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9832 (
9833 cat <<\_ASBOX
9834## ------------------------------------ ##
9835## Report this to bug-autoconf@gnu.org. ##
9836## ------------------------------------ ##
9837_ASBOX
9838 ) |
9839 sed "s/^/$as_me: WARNING: /" >&2
9840 ;;
9841esac
9842echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9843echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9844if test "${ac_cv_header_gif_lib_h+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9846else
9847 ac_cv_header_gif_lib_h=$ac_header_preproc
9848fi
9849echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9850echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9851
9852fi
9853if test $ac_cv_header_gif_lib_h = yes; then
9854 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9855# Earlier versions can crash Emacs.
9856 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9857echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9858if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9860else
9861 ac_check_lib_save_LIBS=$LIBS
9862LIBS="-lungif $LIBS"
9863cat >conftest.$ac_ext <<_ACEOF
9864#line $LINENO "configure"
9865/* confdefs.h. */
9866_ACEOF
9867cat confdefs.h >>conftest.$ac_ext
9868cat >>conftest.$ac_ext <<_ACEOF
9869/* end confdefs.h. */
9870
9871/* Override any gcc2 internal prototype to avoid an error. */
9872#ifdef __cplusplus
9873extern "C"
9874#endif
9875/* We use char because int might match the return type of a gcc2
9876 builtin and then its argument prototype would still apply. */
9877char EGifPutExtensionLast ();
9878int
9879main ()
9880{
9881EGifPutExtensionLast ();
9882 ;
9883 return 0;
9884}
9885_ACEOF
9886rm -f conftest.$ac_objext conftest$ac_exeext
9887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9888 (eval $ac_link) 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 (eval $ac_try) 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9899else
9900 echo "$as_me: failed program was:" >&5
9901sed 's/^/| /' conftest.$ac_ext >&5
9902
9903ac_cv_lib_ungif_EGifPutExtensionLast=no
9904fi
9905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9906LIBS=$ac_check_lib_save_LIBS
9907fi
9908echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9909echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9910if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9911 HAVE_GIF=yes
9912fi
9913
9914fi
9915
9916
9917 fi
9918
9919 if test "${HAVE_GIF}" = "yes"; then
9920
9921cat >>confdefs.h <<\_ACEOF
9922#define HAVE_GIF 1
9923_ACEOF
9924
9925 fi
9926fi
9927
9928### Use Mac OS X Carbon API to implement GUI.
9929HAVE_CARBON=no
9930if test "${with_carbon}" != "no"; then
9931 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9932 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9933echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9934if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9936fi
9937echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9938echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9939else
9940 # Is the header compilable?
9941echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9942echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9943cat >conftest.$ac_ext <<_ACEOF
9944#line $LINENO "configure"
9945/* confdefs.h. */
9946_ACEOF
9947cat confdefs.h >>conftest.$ac_ext
9948cat >>conftest.$ac_ext <<_ACEOF
9949/* end confdefs.h. */
9950$ac_includes_default
9951#include <Carbon/Carbon.h>
9952_ACEOF
9953rm -f conftest.$ac_objext
9954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955 (eval $ac_compile) 2>&5
9956 ac_status=$?
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -s conftest.$ac_objext'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 (eval $ac_try) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_header_compiler=yes
9966else
9967 echo "$as_me: failed program was:" >&5
9968sed 's/^/| /' conftest.$ac_ext >&5
9969
9970ac_header_compiler=no
9971fi
9972rm -f conftest.$ac_objext conftest.$ac_ext
9973echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9974echo "${ECHO_T}$ac_header_compiler" >&6
9975
9976# Is the header present?
9977echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9978echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9979cat >conftest.$ac_ext <<_ACEOF
9980#line $LINENO "configure"
9981/* confdefs.h. */
9982_ACEOF
9983cat confdefs.h >>conftest.$ac_ext
9984cat >>conftest.$ac_ext <<_ACEOF
9985/* end confdefs.h. */
9986#include <Carbon/Carbon.h>
9987_ACEOF
9988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } >/dev/null; then
9996 if test -s conftest.err; then
9997 ac_cpp_err=$ac_c_preproc_warn_flag
9998 else
9999 ac_cpp_err=
10000 fi
10001else
10002 ac_cpp_err=yes
10003fi
10004if test -z "$ac_cpp_err"; then
10005 ac_header_preproc=yes
10006else
10007 echo "$as_me: failed program was:" >&5
10008sed 's/^/| /' conftest.$ac_ext >&5
10009
10010 ac_header_preproc=no
10011fi
10012rm -f conftest.err conftest.$ac_ext
10013echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10014echo "${ECHO_T}$ac_header_preproc" >&6
10015
10016# So? What about this header?
10017case $ac_header_compiler:$ac_header_preproc in
10018 yes:no )
10019 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10020echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10021 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10022echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10023 (
10024 cat <<\_ASBOX
10025## ------------------------------------ ##
10026## Report this to bug-autoconf@gnu.org. ##
10027## ------------------------------------ ##
10028_ASBOX
10029 ) |
10030 sed "s/^/$as_me: WARNING: /" >&2
10031 ;;
10032 no:yes )
10033 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10034echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10035 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10036echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10037 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10038echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10039 (
10040 cat <<\_ASBOX
10041## ------------------------------------ ##
10042## Report this to bug-autoconf@gnu.org. ##
10043## ------------------------------------ ##
10044_ASBOX
10045 ) |
10046 sed "s/^/$as_me: WARNING: /" >&2
10047 ;;
10048esac
10049echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10050echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10051if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10053else
10054 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10055fi
10056echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10057echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10058
10059fi
10060if test $ac_cv_header_Carbon_Carbon_h = yes; then
10061 HAVE_CARBON=yes
10062fi
10063
10064
10065fi
10066
10067if test "${HAVE_CARBON}" = "yes"; then
10068
10069cat >>confdefs.h <<\_ACEOF
10070#define HAVE_CARBON 1
10071_ACEOF
10072
10073 window_system=mac
10074 ## Specify the install directory
10075 carbon_appdir=
10076 if test "${carbon_appdir_x}" != ""; then
10077 case ${carbon_appdir_x} in
10078 y | ye | yes) carbon_appdir=/Applications ;;
10079 * ) carbon_appdir=${carbon_appdir_x} ;;
10080 esac
10081 fi
10082 # We also have mouse menus.
10083 HAVE_MENUS=yes
10084fi
10085
10086### Use session management (-lSM -lICE) if available
10087HAVE_X_SM=no
10088if test "${HAVE_X11}" = "yes"; then
10089 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10090 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10091echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10092if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10094fi
10095echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10096echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10097else
10098 # Is the header compilable?
10099echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10100echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10101cat >conftest.$ac_ext <<_ACEOF
10102#line $LINENO "configure"
10103/* confdefs.h. */
10104_ACEOF
10105cat confdefs.h >>conftest.$ac_ext
10106cat >>conftest.$ac_ext <<_ACEOF
10107/* end confdefs.h. */
10108$ac_includes_default
10109#include <X11/SM/SMlib.h>
10110_ACEOF
10111rm -f conftest.$ac_objext
10112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10113 (eval $ac_compile) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } &&
10117 { ac_try='test -s conftest.$ac_objext'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 ac_header_compiler=yes
10124else
10125 echo "$as_me: failed program was:" >&5
10126sed 's/^/| /' conftest.$ac_ext >&5
10127
10128ac_header_compiler=no
10129fi
10130rm -f conftest.$ac_objext conftest.$ac_ext
10131echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10132echo "${ECHO_T}$ac_header_compiler" >&6
10133
10134# Is the header present?
10135echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10136echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10137cat >conftest.$ac_ext <<_ACEOF
10138#line $LINENO "configure"
10139/* confdefs.h. */
10140_ACEOF
10141cat confdefs.h >>conftest.$ac_ext
10142cat >>conftest.$ac_ext <<_ACEOF
10143/* end confdefs.h. */
10144#include <X11/SM/SMlib.h>
10145_ACEOF
10146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } >/dev/null; then
10154 if test -s conftest.err; then
10155 ac_cpp_err=$ac_c_preproc_warn_flag
10156 else
10157 ac_cpp_err=
10158 fi
10159else
10160 ac_cpp_err=yes
10161fi
10162if test -z "$ac_cpp_err"; then
10163 ac_header_preproc=yes
10164else
10165 echo "$as_me: failed program was:" >&5
10166sed 's/^/| /' conftest.$ac_ext >&5
10167
10168 ac_header_preproc=no
10169fi
10170rm -f conftest.err conftest.$ac_ext
10171echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10172echo "${ECHO_T}$ac_header_preproc" >&6
10173
10174# So? What about this header?
10175case $ac_header_compiler:$ac_header_preproc in
10176 yes:no )
10177 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10178echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10179 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10180echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10181 (
10182 cat <<\_ASBOX
10183## ------------------------------------ ##
10184## Report this to bug-autoconf@gnu.org. ##
10185## ------------------------------------ ##
10186_ASBOX
10187 ) |
10188 sed "s/^/$as_me: WARNING: /" >&2
10189 ;;
10190 no:yes )
10191 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10192echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10193 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10194echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10195 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10196echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10197 (
10198 cat <<\_ASBOX
10199## ------------------------------------ ##
10200## Report this to bug-autoconf@gnu.org. ##
10201## ------------------------------------ ##
10202_ASBOX
10203 ) |
10204 sed "s/^/$as_me: WARNING: /" >&2
10205 ;;
10206esac
10207echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10208echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10209if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10211else
10212 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
10213fi
10214echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10215echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10216
10217fi
10218if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10219 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10220echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10221if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223else
10224 ac_check_lib_save_LIBS=$LIBS
10225LIBS="-lSM $LIBS"
10226cat >conftest.$ac_ext <<_ACEOF
10227#line $LINENO "configure"
10228/* confdefs.h. */
10229_ACEOF
10230cat confdefs.h >>conftest.$ac_ext
10231cat >>conftest.$ac_ext <<_ACEOF
10232/* end confdefs.h. */
10233
10234/* Override any gcc2 internal prototype to avoid an error. */
10235#ifdef __cplusplus
10236extern "C"
10237#endif
10238/* We use char because int might match the return type of a gcc2
10239 builtin and then its argument prototype would still apply. */
10240char SmcOpenConnection ();
10241int
10242main ()
10243{
10244SmcOpenConnection ();
10245 ;
10246 return 0;
10247}
10248_ACEOF
10249rm -f conftest.$ac_objext conftest$ac_exeext
10250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251 (eval $ac_link) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -s conftest$ac_exeext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_cv_lib_SM_SmcOpenConnection=yes
10262else
10263 echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
10265
10266ac_cv_lib_SM_SmcOpenConnection=no
10267fi
10268rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10269LIBS=$ac_check_lib_save_LIBS
10270fi
10271echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10272echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10273if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10274 HAVE_X_SM=yes
10275else
10276 -lICE
10277fi
10278
10279fi
10280
10281
10282
10283 if test "${HAVE_X_SM}" = "yes"; then
10284
10285cat >>confdefs.h <<\_ACEOF
10286#define HAVE_X_SM 1
10287_ACEOF
10288
10289 case "$LIBS" in
10290 *-lSM*) ;;
10291 *) LIBS="-lSM -lICE $LIBS" ;;
10292 esac
10293 fi
10294fi
10295
10296# If netdb.h doesn't declare h_errno, we must declare it by hand.
10297echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10298echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10299if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10301else
10302 cat >conftest.$ac_ext <<_ACEOF
10303#line $LINENO "configure"
10304/* confdefs.h. */
10305_ACEOF
10306cat confdefs.h >>conftest.$ac_ext
10307cat >>conftest.$ac_ext <<_ACEOF
10308/* end confdefs.h. */
10309#include <netdb.h>
10310int
10311main ()
10312{
10313return h_errno;
10314 ;
10315 return 0;
10316}
10317_ACEOF
10318rm -f conftest.$ac_objext conftest$ac_exeext
10319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10320 (eval $ac_link) 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } &&
10324 { ac_try='test -s conftest$ac_exeext'
10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326 (eval $ac_try) 2>&5
10327 ac_status=$?
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; }; then
10330 emacs_cv_netdb_declares_h_errno=yes
10331else
10332 echo "$as_me: failed program was:" >&5
10333sed 's/^/| /' conftest.$ac_ext >&5
10334
10335emacs_cv_netdb_declares_h_errno=no
10336fi
10337rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10338fi
10339echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10340echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10341if test $emacs_cv_netdb_declares_h_errno = yes; then
10342
10343cat >>confdefs.h <<\_ACEOF
10344#define HAVE_H_ERRNO 1
10345_ACEOF
10346
10347fi
10348
10349# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10350# for constant arguments. Useless!
10351echo "$as_me:$LINENO: checking for working alloca.h" >&5
10352echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10353if test "${ac_cv_working_alloca_h+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10355else
10356 cat >conftest.$ac_ext <<_ACEOF
10357#line $LINENO "configure"
10358/* confdefs.h. */
10359_ACEOF
10360cat confdefs.h >>conftest.$ac_ext
10361cat >>conftest.$ac_ext <<_ACEOF
10362/* end confdefs.h. */
10363#include <alloca.h>
10364int
10365main ()
10366{
10367char *p = (char *) alloca (2 * sizeof (int));
10368 ;
10369 return 0;
10370}
10371_ACEOF
10372rm -f conftest.$ac_objext conftest$ac_exeext
10373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374 (eval $ac_link) 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } &&
10378 { ac_try='test -s conftest$ac_exeext'
10379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380 (eval $ac_try) 2>&5
10381 ac_status=$?
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; }; then
10384 ac_cv_working_alloca_h=yes
10385else
10386 echo "$as_me: failed program was:" >&5
10387sed 's/^/| /' conftest.$ac_ext >&5
10388
10389ac_cv_working_alloca_h=no
10390fi
10391rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10392fi
10393echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10394echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10395if test $ac_cv_working_alloca_h = yes; then
10396
10397cat >>confdefs.h <<\_ACEOF
10398#define HAVE_ALLOCA_H 1
10399_ACEOF
10400
10401fi
10402
10403echo "$as_me:$LINENO: checking for alloca" >&5
10404echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10405if test "${ac_cv_func_alloca_works+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10407else
10408 cat >conftest.$ac_ext <<_ACEOF
10409#line $LINENO "configure"
10410/* confdefs.h. */
10411_ACEOF
10412cat confdefs.h >>conftest.$ac_ext
10413cat >>conftest.$ac_ext <<_ACEOF
10414/* end confdefs.h. */
10415#ifdef __GNUC__
10416# define alloca __builtin_alloca
10417#else
10418# ifdef _MSC_VER
10419# include <malloc.h>
10420# define alloca _alloca
10421# else
10422# if HAVE_ALLOCA_H
10423# include <alloca.h>
10424# else
10425# ifdef _AIX
10426 #pragma alloca
10427# else
10428# ifndef alloca /* predefined by HP cc +Olibcalls */
10429char *alloca ();
10430# endif
10431# endif
10432# endif
10433# endif
10434#endif
10435
10436int
10437main ()
10438{
10439char *p = (char *) alloca (1);
10440 ;
10441 return 0;
10442}
10443_ACEOF
10444rm -f conftest.$ac_objext conftest$ac_exeext
10445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10446 (eval $ac_link) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } &&
10450 { ac_try='test -s conftest$ac_exeext'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10453 ac_status=$?
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456 ac_cv_func_alloca_works=yes
10457else
10458 echo "$as_me: failed program was:" >&5
10459sed 's/^/| /' conftest.$ac_ext >&5
10460
10461ac_cv_func_alloca_works=no
10462fi
10463rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10464fi
10465echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10466echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10467
10468if test $ac_cv_func_alloca_works = yes; then
10469
10470cat >>confdefs.h <<\_ACEOF
10471#define HAVE_ALLOCA 1
10472_ACEOF
10473
10474else
10475 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10476# that cause trouble. Some versions do not even contain alloca or
10477# contain a buggy version. If you still want to use their alloca,
10478# use ar to extract alloca.o from them instead of compiling alloca.c.
10479
10480ALLOCA=alloca.$ac_objext
10481
10482cat >>confdefs.h <<\_ACEOF
10483#define C_ALLOCA 1
10484_ACEOF
10485
10486
10487echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10488echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10489if test "${ac_cv_os_cray+set}" = set; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10491else
10492 cat >conftest.$ac_ext <<_ACEOF
10493#line $LINENO "configure"
10494/* confdefs.h. */
10495_ACEOF
10496cat confdefs.h >>conftest.$ac_ext
10497cat >>conftest.$ac_ext <<_ACEOF
10498/* end confdefs.h. */
10499#if defined(CRAY) && ! defined(CRAY2)
10500webecray
10501#else
10502wenotbecray
10503#endif
10504
10505_ACEOF
10506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10507 $EGREP "webecray" >/dev/null 2>&1; then
10508 ac_cv_os_cray=yes
10509else
10510 ac_cv_os_cray=no
10511fi
10512rm -f conftest*
10513
10514fi
10515echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10516echo "${ECHO_T}$ac_cv_os_cray" >&6
10517if test $ac_cv_os_cray = yes; then
10518 for ac_func in _getb67 GETB67 getb67; do
10519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10520echo "$as_me:$LINENO: checking for $ac_func" >&5
10521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10522if eval "test \"\${$as_ac_var+set}\" = set"; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10524else
10525 cat >conftest.$ac_ext <<_ACEOF
10526#line $LINENO "configure"
10527/* confdefs.h. */
10528_ACEOF
10529cat confdefs.h >>conftest.$ac_ext
10530cat >>conftest.$ac_ext <<_ACEOF
10531/* end confdefs.h. */
10532/* System header to define __stub macros and hopefully few prototypes,
10533 which can conflict with char $ac_func (); below.
10534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10535 <limits.h> exists even on freestanding compilers. */
10536#ifdef __STDC__
10537# include <limits.h>
10538#else
10539# include <assert.h>
10540#endif
10541/* Override any gcc2 internal prototype to avoid an error. */
10542#ifdef __cplusplus
10543extern "C"
10544{
10545#endif
10546/* We use char because int might match the return type of a gcc2
10547 builtin and then its argument prototype would still apply. */
10548char $ac_func ();
10549/* The GNU C library defines this for functions which it implements
10550 to always fail with ENOSYS. Some functions are actually named
10551 something starting with __ and the normal name is an alias. */
10552#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10553choke me
10554#else
10555char (*f) () = $ac_func;
10556#endif
10557#ifdef __cplusplus
10558}
10559#endif
10560
10561int
10562main ()
10563{
10564return f != $ac_func;
10565 ;
10566 return 0;
10567}
10568_ACEOF
10569rm -f conftest.$ac_objext conftest$ac_exeext
10570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10571 (eval $ac_link) 2>&5
10572 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -s conftest$ac_exeext'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10581 eval "$as_ac_var=yes"
10582else
10583 echo "$as_me: failed program was:" >&5
10584sed 's/^/| /' conftest.$ac_ext >&5
10585
10586eval "$as_ac_var=no"
10587fi
10588rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10589fi
10590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10591echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10592if test `eval echo '${'$as_ac_var'}'` = yes; then
10593
10594cat >>confdefs.h <<_ACEOF
10595#define CRAY_STACKSEG_END $ac_func
10596_ACEOF
10597
10598 break
10599fi
10600
10601 done
10602fi
10603
10604echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10605echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10606if test "${ac_cv_c_stack_direction+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10608else
10609 if test "$cross_compiling" = yes; then
10610 ac_cv_c_stack_direction=0
10611else
10612 cat >conftest.$ac_ext <<_ACEOF
10613#line $LINENO "configure"
10614/* confdefs.h. */
10615_ACEOF
10616cat confdefs.h >>conftest.$ac_ext
10617cat >>conftest.$ac_ext <<_ACEOF
10618/* end confdefs.h. */
10619int
10620find_stack_direction ()
10621{
10622 static char *addr = 0;
10623 auto char dummy;
10624 if (addr == 0)
10625 {
10626 addr = &dummy;
10627 return find_stack_direction ();
10628 }
10629 else
10630 return (&dummy > addr) ? 1 : -1;
10631}
10632
10633int
10634main ()
10635{
10636 exit (find_stack_direction () < 0);
10637}
10638_ACEOF
10639rm -f conftest$ac_exeext
10640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641 (eval $ac_link) 2>&5
10642 ac_status=$?
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650 ac_cv_c_stack_direction=1
10651else
10652 echo "$as_me: program exited with status $ac_status" >&5
10653echo "$as_me: failed program was:" >&5
10654sed 's/^/| /' conftest.$ac_ext >&5
10655
10656( exit $ac_status )
10657ac_cv_c_stack_direction=-1
10658fi
10659rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10660fi
10661fi
10662echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10663echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10664
10665cat >>confdefs.h <<_ACEOF
10666#define STACK_DIRECTION $ac_cv_c_stack_direction
10667_ACEOF
10668
10669
10670fi
10671
10672
10673# fmod, logb, and frexp are found in -lm on most systems.
10674# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10675
10676echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10677echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10678if test "${ac_cv_lib_m_sqrt+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10680else
10681 ac_check_lib_save_LIBS=$LIBS
10682LIBS="-lm $LIBS"
10683cat >conftest.$ac_ext <<_ACEOF
10684#line $LINENO "configure"
10685/* confdefs.h. */
10686_ACEOF
10687cat confdefs.h >>conftest.$ac_ext
10688cat >>conftest.$ac_ext <<_ACEOF
10689/* end confdefs.h. */
10690
10691/* Override any gcc2 internal prototype to avoid an error. */
10692#ifdef __cplusplus
10693extern "C"
10694#endif
10695/* We use char because int might match the return type of a gcc2
10696 builtin and then its argument prototype would still apply. */
10697char sqrt ();
10698int
10699main ()
10700{
10701sqrt ();
10702 ;
10703 return 0;
10704}
10705_ACEOF
10706rm -f conftest.$ac_objext conftest$ac_exeext
10707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10708 (eval $ac_link) 2>&5
10709 ac_status=$?
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } &&
10712 { ac_try='test -s conftest$ac_exeext'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10715 ac_status=$?
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; }; then
10718 ac_cv_lib_m_sqrt=yes
10719else
10720 echo "$as_me: failed program was:" >&5
10721sed 's/^/| /' conftest.$ac_ext >&5
10722
10723ac_cv_lib_m_sqrt=no
10724fi
10725rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10726LIBS=$ac_check_lib_save_LIBS
10727fi
10728echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10729echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10730if test $ac_cv_lib_m_sqrt = yes; then
10731 cat >>confdefs.h <<_ACEOF
10732#define HAVE_LIBM 1
10733_ACEOF
10734
10735 LIBS="-lm $LIBS"
10736
10737fi
10738
10739
10740# Check for mail-locking functions in a "mail" library
10741
10742echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10743echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10744if test "${ac_cv_lib_mail_maillock+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10746else
10747 ac_check_lib_save_LIBS=$LIBS
10748LIBS="-lmail $LIBS"
10749cat >conftest.$ac_ext <<_ACEOF
10750#line $LINENO "configure"
10751/* confdefs.h. */
10752_ACEOF
10753cat confdefs.h >>conftest.$ac_ext
10754cat >>conftest.$ac_ext <<_ACEOF
10755/* end confdefs.h. */
10756
10757/* Override any gcc2 internal prototype to avoid an error. */
10758#ifdef __cplusplus
10759extern "C"
10760#endif
10761/* We use char because int might match the return type of a gcc2
10762 builtin and then its argument prototype would still apply. */
10763char maillock ();
10764int
10765main ()
10766{
10767maillock ();
10768 ;
10769 return 0;
10770}
10771_ACEOF
10772rm -f conftest.$ac_objext conftest$ac_exeext
10773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10774 (eval $ac_link) 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try='test -s conftest$ac_exeext'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_cv_lib_mail_maillock=yes
10785else
10786 echo "$as_me: failed program was:" >&5
10787sed 's/^/| /' conftest.$ac_ext >&5
10788
10789ac_cv_lib_mail_maillock=no
10790fi
10791rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10792LIBS=$ac_check_lib_save_LIBS
10793fi
10794echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10795echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10796if test $ac_cv_lib_mail_maillock = yes; then
10797 cat >>confdefs.h <<_ACEOF
10798#define HAVE_LIBMAIL 1
10799_ACEOF
10800
10801 LIBS="-lmail $LIBS"
10802
10803fi
10804
10805
10806echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10807echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10808if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10810else
10811 ac_check_lib_save_LIBS=$LIBS
10812LIBS="-llockfile $LIBS"
10813cat >conftest.$ac_ext <<_ACEOF
10814#line $LINENO "configure"
10815/* confdefs.h. */
10816_ACEOF
10817cat confdefs.h >>conftest.$ac_ext
10818cat >>conftest.$ac_ext <<_ACEOF
10819/* end confdefs.h. */
10820
10821/* Override any gcc2 internal prototype to avoid an error. */
10822#ifdef __cplusplus
10823extern "C"
10824#endif
10825/* We use char because int might match the return type of a gcc2
10826 builtin and then its argument prototype would still apply. */
10827char maillock ();
10828int
10829main ()
10830{
10831maillock ();
10832 ;
10833 return 0;
10834}
10835_ACEOF
10836rm -f conftest.$ac_objext conftest$ac_exeext
10837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10838 (eval $ac_link) 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } &&
10842 { ac_try='test -s conftest$ac_exeext'
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_cv_lib_lockfile_maillock=yes
10849else
10850 echo "$as_me: failed program was:" >&5
10851sed 's/^/| /' conftest.$ac_ext >&5
10852
10853ac_cv_lib_lockfile_maillock=no
10854fi
10855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10856LIBS=$ac_check_lib_save_LIBS
10857fi
10858echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10859echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10860if test $ac_cv_lib_lockfile_maillock = yes; then
10861 cat >>confdefs.h <<_ACEOF
10862#define HAVE_LIBLOCKFILE 1
10863_ACEOF
10864
10865 LIBS="-llockfile $LIBS"
10866
10867fi
10868
10869# If we have the shared liblockfile, assume we must use it for mail
10870# locking (e.g. Debian). If we couldn't link against liblockfile
10871# (no liblockfile.a installed), ensure that we don't need to.
10872if test "$ac_cv_lib_lockfile_maillock" = no; then
10873 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10874set dummy liblockfile.so; ac_word=$2
10875echo "$as_me:$LINENO: checking for $ac_word" >&5
10876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10877if test "${ac_cv_prog_liblockfile+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10879else
10880 if test -n "$liblockfile"; then
10881 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10882else
10883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10885for as_dir in $as_dummy
10886do
10887 IFS=$as_save_IFS
10888 test -z "$as_dir" && as_dir=.
10889 for ac_exec_ext in '' $ac_executable_extensions; do
10890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10891 ac_cv_prog_liblockfile="yes"
10892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10893 break 2
10894 fi
10895done
10896done
10897
10898 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10899fi
10900fi
10901liblockfile=$ac_cv_prog_liblockfile
10902if test -n "$liblockfile"; then
10903 echo "$as_me:$LINENO: result: $liblockfile" >&5
10904echo "${ECHO_T}$liblockfile" >&6
10905else
10906 echo "$as_me:$LINENO: result: no" >&5
10907echo "${ECHO_T}no" >&6
10908fi
10909
10910 if test $ac_cv_prog_liblockfile = yes; then
10911 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10912This probably means that movemail could lose mail.
10913There may be a \`development' package to install containing liblockfile." >&5
10914echo "$as_me: error: Shared liblockfile found but can't link against it.
10915This probably means that movemail could lose mail.
10916There may be a \`development' package to install containing liblockfile." >&2;}
10917 { (exit 1); exit 1; }; }
10918 else
10919cat >>confdefs.h <<\_ACEOF
10920#define LIBMAIL -llockfile
10921_ACEOF
10922
10923 fi
10924 else :
10925fi
10926
10927for ac_func in touchlock
10928do
10929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10930echo "$as_me:$LINENO: checking for $ac_func" >&5
10931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10932if eval "test \"\${$as_ac_var+set}\" = set"; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10934else
10935 cat >conftest.$ac_ext <<_ACEOF
10936#line $LINENO "configure"
10937/* confdefs.h. */
10938_ACEOF
10939cat confdefs.h >>conftest.$ac_ext
10940cat >>conftest.$ac_ext <<_ACEOF
10941/* end confdefs.h. */
10942/* System header to define __stub macros and hopefully few prototypes,
10943 which can conflict with char $ac_func (); below.
10944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10945 <limits.h> exists even on freestanding compilers. */
10946#ifdef __STDC__
10947# include <limits.h>
10948#else
10949# include <assert.h>
10950#endif
10951/* Override any gcc2 internal prototype to avoid an error. */
10952#ifdef __cplusplus
10953extern "C"
10954{
10955#endif
10956/* We use char because int might match the return type of a gcc2
10957 builtin and then its argument prototype would still apply. */
10958char $ac_func ();
10959/* The GNU C library defines this for functions which it implements
10960 to always fail with ENOSYS. Some functions are actually named
10961 something starting with __ and the normal name is an alias. */
10962#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10963choke me
10964#else
10965char (*f) () = $ac_func;
10966#endif
10967#ifdef __cplusplus
10968}
10969#endif
10970
10971int
10972main ()
10973{
10974return f != $ac_func;
10975 ;
10976 return 0;
10977}
10978_ACEOF
10979rm -f conftest.$ac_objext conftest$ac_exeext
10980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10981 (eval $ac_link) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } &&
10985 { ac_try='test -s conftest$ac_exeext'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10991 eval "$as_ac_var=yes"
10992else
10993 echo "$as_me: failed program was:" >&5
10994sed 's/^/| /' conftest.$ac_ext >&5
10995
10996eval "$as_ac_var=no"
10997fi
10998rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10999fi
11000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11001echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11002if test `eval echo '${'$as_ac_var'}'` = yes; then
11003 cat >>confdefs.h <<_ACEOF
11004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11005_ACEOF
11006
11007fi
11008done
11009
11010
11011for ac_header in maillock.h
11012do
11013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11014if eval "test \"\${$as_ac_Header+set}\" = set"; then
11015 echo "$as_me:$LINENO: checking for $ac_header" >&5
11016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11017if eval "test \"\${$as_ac_Header+set}\" = set"; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11019fi
11020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11022else
11023 # Is the header compilable?
11024echo "$as_me:$LINENO: checking $ac_header usability" >&5
11025echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11026cat >conftest.$ac_ext <<_ACEOF
11027#line $LINENO "configure"
11028/* confdefs.h. */
11029_ACEOF
11030cat confdefs.h >>conftest.$ac_ext
11031cat >>conftest.$ac_ext <<_ACEOF
11032/* end confdefs.h. */
11033$ac_includes_default
11034#include <$ac_header>
11035_ACEOF
11036rm -f conftest.$ac_objext
11037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11038 (eval $ac_compile) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -s conftest.$ac_objext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_header_compiler=yes
11049else
11050 echo "$as_me: failed program was:" >&5
11051sed 's/^/| /' conftest.$ac_ext >&5
11052
11053ac_header_compiler=no
11054fi
11055rm -f conftest.$ac_objext conftest.$ac_ext
11056echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11057echo "${ECHO_T}$ac_header_compiler" >&6
11058
11059# Is the header present?
11060echo "$as_me:$LINENO: checking $ac_header presence" >&5
11061echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11062cat >conftest.$ac_ext <<_ACEOF
11063#line $LINENO "configure"
11064/* confdefs.h. */
11065_ACEOF
11066cat confdefs.h >>conftest.$ac_ext
11067cat >>conftest.$ac_ext <<_ACEOF
11068/* end confdefs.h. */
11069#include <$ac_header>
11070_ACEOF
11071if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11073 ac_status=$?
11074 grep -v '^ *+' conftest.er1 >conftest.err
11075 rm -f conftest.er1
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } >/dev/null; then
11079 if test -s conftest.err; then
11080 ac_cpp_err=$ac_c_preproc_warn_flag
11081 else
11082 ac_cpp_err=
11083 fi
11084else
11085 ac_cpp_err=yes
11086fi
11087if test -z "$ac_cpp_err"; then
11088 ac_header_preproc=yes
11089else
11090 echo "$as_me: failed program was:" >&5
11091sed 's/^/| /' conftest.$ac_ext >&5
11092
11093 ac_header_preproc=no
11094fi
11095rm -f conftest.err conftest.$ac_ext
11096echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11097echo "${ECHO_T}$ac_header_preproc" >&6
11098
11099# So? What about this header?
11100case $ac_header_compiler:$ac_header_preproc in
11101 yes:no )
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11103echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11105echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11106 (
11107 cat <<\_ASBOX
11108## ------------------------------------ ##
11109## Report this to bug-autoconf@gnu.org. ##
11110## ------------------------------------ ##
11111_ASBOX
11112 ) |
11113 sed "s/^/$as_me: WARNING: /" >&2
11114 ;;
11115 no:yes )
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11117echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11119echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11121echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11122 (
11123 cat <<\_ASBOX
11124## ------------------------------------ ##
11125## Report this to bug-autoconf@gnu.org. ##
11126## ------------------------------------ ##
11127_ASBOX
11128 ) |
11129 sed "s/^/$as_me: WARNING: /" >&2
11130 ;;
11131esac
11132echo "$as_me:$LINENO: checking for $ac_header" >&5
11133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11134if eval "test \"\${$as_ac_Header+set}\" = set"; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11136else
11137 eval "$as_ac_Header=$ac_header_preproc"
11138fi
11139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11140echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11141
11142fi
11143if test `eval echo '${'$as_ac_Header'}'` = yes; then
11144 cat >>confdefs.h <<_ACEOF
11145#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11146_ACEOF
11147
11148fi
11149
11150done
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215for ac_func in gethostname getdomainname dup2 \
11216rename closedir mkdir rmdir sysinfo \
11217random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11218strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11219utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
11220__fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11221sendto recvfrom getsockopt setsockopt getsockname getpeername \
11222gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11223memset memcmp memmove
11224do
11225as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11226echo "$as_me:$LINENO: checking for $ac_func" >&5
11227echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11228if eval "test \"\${$as_ac_var+set}\" = set"; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11230else
11231 cat >conftest.$ac_ext <<_ACEOF
11232#line $LINENO "configure"
11233/* confdefs.h. */
11234_ACEOF
11235cat confdefs.h >>conftest.$ac_ext
11236cat >>conftest.$ac_ext <<_ACEOF
11237/* end confdefs.h. */
11238/* System header to define __stub macros and hopefully few prototypes,
11239 which can conflict with char $ac_func (); below.
11240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11241 <limits.h> exists even on freestanding compilers. */
11242#ifdef __STDC__
11243# include <limits.h>
11244#else
11245# include <assert.h>
11246#endif
11247/* Override any gcc2 internal prototype to avoid an error. */
11248#ifdef __cplusplus
11249extern "C"
11250{
11251#endif
11252/* We use char because int might match the return type of a gcc2
11253 builtin and then its argument prototype would still apply. */
11254char $ac_func ();
11255/* The GNU C library defines this for functions which it implements
11256 to always fail with ENOSYS. Some functions are actually named
11257 something starting with __ and the normal name is an alias. */
11258#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11259choke me
11260#else
11261char (*f) () = $ac_func;
11262#endif
11263#ifdef __cplusplus
11264}
11265#endif
11266
11267int
11268main ()
11269{
11270return f != $ac_func;
11271 ;
11272 return 0;
11273}
11274_ACEOF
11275rm -f conftest.$ac_objext conftest$ac_exeext
11276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11277 (eval $ac_link) 2>&5
11278 ac_status=$?
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -s conftest$ac_exeext'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11284 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11287 eval "$as_ac_var=yes"
11288else
11289 echo "$as_me: failed program was:" >&5
11290sed 's/^/| /' conftest.$ac_ext >&5
11291
11292eval "$as_ac_var=no"
11293fi
11294rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11295fi
11296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11297echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11298if test `eval echo '${'$as_ac_var'}'` = yes; then
11299 cat >>confdefs.h <<_ACEOF
11300#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11301_ACEOF
11302
11303fi
11304done
11305
11306
11307
11308for ac_header in sys/un.h
11309do
11310as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11311if eval "test \"\${$as_ac_Header+set}\" = set"; then
11312 echo "$as_me:$LINENO: checking for $ac_header" >&5
11313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11314if eval "test \"\${$as_ac_Header+set}\" = set"; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11316fi
11317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11318echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11319else
11320 # Is the header compilable?
11321echo "$as_me:$LINENO: checking $ac_header usability" >&5
11322echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11323cat >conftest.$ac_ext <<_ACEOF
11324#line $LINENO "configure"
11325/* confdefs.h. */
11326_ACEOF
11327cat confdefs.h >>conftest.$ac_ext
11328cat >>conftest.$ac_ext <<_ACEOF
11329/* end confdefs.h. */
11330$ac_includes_default
11331#include <$ac_header>
11332_ACEOF
11333rm -f conftest.$ac_objext
11334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11335 (eval $ac_compile) 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -s conftest.$ac_objext'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 ac_header_compiler=yes
11346else
11347 echo "$as_me: failed program was:" >&5
11348sed 's/^/| /' conftest.$ac_ext >&5
11349
11350ac_header_compiler=no
11351fi
11352rm -f conftest.$ac_objext conftest.$ac_ext
11353echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11354echo "${ECHO_T}$ac_header_compiler" >&6
11355
11356# Is the header present?
11357echo "$as_me:$LINENO: checking $ac_header presence" >&5
11358echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11359cat >conftest.$ac_ext <<_ACEOF
11360#line $LINENO "configure"
11361/* confdefs.h. */
11362_ACEOF
11363cat confdefs.h >>conftest.$ac_ext
11364cat >>conftest.$ac_ext <<_ACEOF
11365/* end confdefs.h. */
11366#include <$ac_header>
11367_ACEOF
11368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } >/dev/null; then
11376 if test -s conftest.err; then
11377 ac_cpp_err=$ac_c_preproc_warn_flag
11378 else
11379 ac_cpp_err=
11380 fi
11381else
11382 ac_cpp_err=yes
11383fi
11384if test -z "$ac_cpp_err"; then
11385 ac_header_preproc=yes
11386else
11387 echo "$as_me: failed program was:" >&5
11388sed 's/^/| /' conftest.$ac_ext >&5
11389
11390 ac_header_preproc=no
11391fi
11392rm -f conftest.err conftest.$ac_ext
11393echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394echo "${ECHO_T}$ac_header_preproc" >&6
11395
11396# So? What about this header?
11397case $ac_header_compiler:$ac_header_preproc in
11398 yes:no )
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11402echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11403 (
11404 cat <<\_ASBOX
11405## ------------------------------------ ##
11406## Report this to bug-autoconf@gnu.org. ##
11407## ------------------------------------ ##
11408_ASBOX
11409 ) |
11410 sed "s/^/$as_me: WARNING: /" >&2
11411 ;;
11412 no:yes )
11413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11414echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11416echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11418echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11419 (
11420 cat <<\_ASBOX
11421## ------------------------------------ ##
11422## Report this to bug-autoconf@gnu.org. ##
11423## ------------------------------------ ##
11424_ASBOX
11425 ) |
11426 sed "s/^/$as_me: WARNING: /" >&2
11427 ;;
11428esac
11429echo "$as_me:$LINENO: checking for $ac_header" >&5
11430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11431if eval "test \"\${$as_ac_Header+set}\" = set"; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11433else
11434 eval "$as_ac_Header=$ac_header_preproc"
11435fi
11436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11437echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11438
11439fi
11440if test `eval echo '${'$as_ac_Header'}'` = yes; then
11441 cat >>confdefs.h <<_ACEOF
11442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11443_ACEOF
11444
11445fi
11446
11447done
11448
11449
11450
11451
11452for ac_header in sys/time.h unistd.h
11453do
11454as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11455if eval "test \"\${$as_ac_Header+set}\" = set"; then
11456 echo "$as_me:$LINENO: checking for $ac_header" >&5
11457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11458if eval "test \"\${$as_ac_Header+set}\" = set"; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11460fi
11461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11463else
11464 # Is the header compilable?
11465echo "$as_me:$LINENO: checking $ac_header usability" >&5
11466echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11467cat >conftest.$ac_ext <<_ACEOF
11468#line $LINENO "configure"
11469/* confdefs.h. */
11470_ACEOF
11471cat confdefs.h >>conftest.$ac_ext
11472cat >>conftest.$ac_ext <<_ACEOF
11473/* end confdefs.h. */
11474$ac_includes_default
11475#include <$ac_header>
11476_ACEOF
11477rm -f conftest.$ac_objext
11478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479 (eval $ac_compile) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } &&
11483 { ac_try='test -s conftest.$ac_objext'
11484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485 (eval $ac_try) 2>&5
11486 ac_status=$?
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; }; then
11489 ac_header_compiler=yes
11490else
11491 echo "$as_me: failed program was:" >&5
11492sed 's/^/| /' conftest.$ac_ext >&5
11493
11494ac_header_compiler=no
11495fi
11496rm -f conftest.$ac_objext conftest.$ac_ext
11497echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11498echo "${ECHO_T}$ac_header_compiler" >&6
11499
11500# Is the header present?
11501echo "$as_me:$LINENO: checking $ac_header presence" >&5
11502echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11503cat >conftest.$ac_ext <<_ACEOF
11504#line $LINENO "configure"
11505/* confdefs.h. */
11506_ACEOF
11507cat confdefs.h >>conftest.$ac_ext
11508cat >>conftest.$ac_ext <<_ACEOF
11509/* end confdefs.h. */
11510#include <$ac_header>
11511_ACEOF
11512if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } >/dev/null; then
11520 if test -s conftest.err; then
11521 ac_cpp_err=$ac_c_preproc_warn_flag
11522 else
11523 ac_cpp_err=
11524 fi
11525else
11526 ac_cpp_err=yes
11527fi
11528if test -z "$ac_cpp_err"; then
11529 ac_header_preproc=yes
11530else
11531 echo "$as_me: failed program was:" >&5
11532sed 's/^/| /' conftest.$ac_ext >&5
11533
11534 ac_header_preproc=no
11535fi
11536rm -f conftest.err conftest.$ac_ext
11537echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11538echo "${ECHO_T}$ac_header_preproc" >&6
11539
11540# So? What about this header?
11541case $ac_header_compiler:$ac_header_preproc in
11542 yes:no )
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11544echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11547 (
11548 cat <<\_ASBOX
11549## ------------------------------------ ##
11550## Report this to bug-autoconf@gnu.org. ##
11551## ------------------------------------ ##
11552_ASBOX
11553 ) |
11554 sed "s/^/$as_me: WARNING: /" >&2
11555 ;;
11556 no:yes )
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11558echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11560echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11562echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11563 (
11564 cat <<\_ASBOX
11565## ------------------------------------ ##
11566## Report this to bug-autoconf@gnu.org. ##
11567## ------------------------------------ ##
11568_ASBOX
11569 ) |
11570 sed "s/^/$as_me: WARNING: /" >&2
11571 ;;
11572esac
11573echo "$as_me:$LINENO: checking for $ac_header" >&5
11574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11575if eval "test \"\${$as_ac_Header+set}\" = set"; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11577else
11578 eval "$as_ac_Header=$ac_header_preproc"
11579fi
11580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11581echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11582
11583fi
11584if test `eval echo '${'$as_ac_Header'}'` = yes; then
11585 cat >>confdefs.h <<_ACEOF
11586#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11587_ACEOF
11588
11589fi
11590
11591done
11592
11593
11594for ac_func in alarm
11595do
11596as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11597echo "$as_me:$LINENO: checking for $ac_func" >&5
11598echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11599if eval "test \"\${$as_ac_var+set}\" = set"; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601else
11602 cat >conftest.$ac_ext <<_ACEOF
11603#line $LINENO "configure"
11604/* confdefs.h. */
11605_ACEOF
11606cat confdefs.h >>conftest.$ac_ext
11607cat >>conftest.$ac_ext <<_ACEOF
11608/* end confdefs.h. */
11609/* System header to define __stub macros and hopefully few prototypes,
11610 which can conflict with char $ac_func (); below.
11611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11612 <limits.h> exists even on freestanding compilers. */
11613#ifdef __STDC__
11614# include <limits.h>
11615#else
11616# include <assert.h>
11617#endif
11618/* Override any gcc2 internal prototype to avoid an error. */
11619#ifdef __cplusplus
11620extern "C"
11621{
11622#endif
11623/* We use char because int might match the return type of a gcc2
11624 builtin and then its argument prototype would still apply. */
11625char $ac_func ();
11626/* The GNU C library defines this for functions which it implements
11627 to always fail with ENOSYS. Some functions are actually named
11628 something starting with __ and the normal name is an alias. */
11629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11630choke me
11631#else
11632char (*f) () = $ac_func;
11633#endif
11634#ifdef __cplusplus
11635}
11636#endif
11637
11638int
11639main ()
11640{
11641return f != $ac_func;
11642 ;
11643 return 0;
11644}
11645_ACEOF
11646rm -f conftest.$ac_objext conftest$ac_exeext
11647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648 (eval $ac_link) 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } &&
11652 { ac_try='test -s conftest$ac_exeext'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 eval "$as_ac_var=yes"
11659else
11660 echo "$as_me: failed program was:" >&5
11661sed 's/^/| /' conftest.$ac_ext >&5
11662
11663eval "$as_ac_var=no"
11664fi
11665rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11666fi
11667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11668echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11669if test `eval echo '${'$as_ac_var'}'` = yes; then
11670 cat >>confdefs.h <<_ACEOF
11671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11672_ACEOF
11673
11674fi
11675done
11676
11677echo "$as_me:$LINENO: checking for working mktime" >&5
11678echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11679if test "${ac_cv_func_working_mktime+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11681else
11682 if test "$cross_compiling" = yes; then
11683 ac_cv_func_working_mktime=no
11684else
11685 cat >conftest.$ac_ext <<_ACEOF
11686#line $LINENO "configure"
11687/* confdefs.h. */
11688_ACEOF
11689cat confdefs.h >>conftest.$ac_ext
11690cat >>conftest.$ac_ext <<_ACEOF
11691/* end confdefs.h. */
11692/* Test program from Paul Eggert and Tony Leneis. */
11693#if TIME_WITH_SYS_TIME
11694# include <sys/time.h>
11695# include <time.h>
11696#else
11697# if HAVE_SYS_TIME_H
11698# include <sys/time.h>
11699# else
11700# include <time.h>
11701# endif
11702#endif
11703
11704#if HAVE_UNISTD_H
11705# include <unistd.h>
11706#endif
11707
11708#if !HAVE_ALARM
11709# define alarm(X) /* empty */
11710#endif
11711
11712/* Work around redefinition to rpl_putenv by other config tests. */
11713#undef putenv
11714
11715static time_t time_t_max;
11716
11717/* Values we'll use to set the TZ environment variable. */
11718static const char *const tz_strings[] = {
11719 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11720 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11721};
11722#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11723
11724/* Fail if mktime fails to convert a date in the spring-forward gap.
11725 Based on a problem report from Andreas Jaeger. */
11726static void
11727spring_forward_gap ()
11728{
11729 /* glibc (up to about 1998-10-07) failed this test. */
11730 struct tm tm;
11731
11732 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11733 instead of "TZ=America/Vancouver" in order to detect the bug even
11734 on systems that don't support the Olson extension, or don't have the
11735 full zoneinfo tables installed. */
11736 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11737
11738 tm.tm_year = 98;
11739 tm.tm_mon = 3;
11740 tm.tm_mday = 5;
11741 tm.tm_hour = 2;
11742 tm.tm_min = 0;
11743 tm.tm_sec = 0;
11744 tm.tm_isdst = -1;
11745 if (mktime (&tm) == (time_t)-1)
11746 exit (1);
11747}
11748
11749static void
11750mktime_test (now)
11751 time_t now;
11752{
11753 struct tm *lt;
11754 if ((lt = localtime (&now)) && mktime (lt) != now)
11755 exit (1);
11756 now = time_t_max - now;
11757 if ((lt = localtime (&now)) && mktime (lt) != now)
11758 exit (1);
11759}
11760
11761static void
11762irix_6_4_bug ()
11763{
11764 /* Based on code from Ariel Faigon. */
11765 struct tm tm;
11766 tm.tm_year = 96;
11767 tm.tm_mon = 3;
11768 tm.tm_mday = 0;
11769 tm.tm_hour = 0;
11770 tm.tm_min = 0;
11771 tm.tm_sec = 0;
11772 tm.tm_isdst = -1;
11773 mktime (&tm);
11774 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11775 exit (1);
11776}
11777
11778static void
11779bigtime_test (j)
11780 int j;
11781{
11782 struct tm tm;
11783 time_t now;
11784 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11785 now = mktime (&tm);
11786 if (now != (time_t) -1)
11787 {
11788 struct tm *lt = localtime (&now);
11789 if (! (lt
11790 && lt->tm_year == tm.tm_year
11791 && lt->tm_mon == tm.tm_mon
11792 && lt->tm_mday == tm.tm_mday
11793 && lt->tm_hour == tm.tm_hour
11794 && lt->tm_min == tm.tm_min
11795 && lt->tm_sec == tm.tm_sec
11796 && lt->tm_yday == tm.tm_yday
11797 && lt->tm_wday == tm.tm_wday
11798 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11799 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11800 exit (1);
11801 }
11802}
11803
11804int
11805main ()
11806{
11807 time_t t, delta;
11808 int i, j;
11809
11810 /* This test makes some buggy mktime implementations loop.
11811 Give up after 60 seconds; a mktime slower than that
11812 isn't worth using anyway. */
11813 alarm (60);
11814
11815 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11816 continue;
11817 time_t_max--;
11818 delta = time_t_max / 997; /* a suitable prime number */
11819 for (i = 0; i < N_STRINGS; i++)
11820 {
11821 if (tz_strings[i])
11822 putenv (tz_strings[i]);
11823
11824 for (t = 0; t <= time_t_max - delta; t += delta)
11825 mktime_test (t);
11826 mktime_test ((time_t) 60 * 60);
11827 mktime_test ((time_t) 60 * 60 * 24);
11828
11829 for (j = 1; 0 < j; j *= 2)
11830 bigtime_test (j);
11831 bigtime_test (j - 1);
11832 }
11833 irix_6_4_bug ();
11834 spring_forward_gap ();
11835 exit (0);
11836}
11837_ACEOF
11838rm -f conftest$ac_exeext
11839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11840 (eval $ac_link) 2>&5
11841 ac_status=$?
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849 ac_cv_func_working_mktime=yes
11850else
11851 echo "$as_me: program exited with status $ac_status" >&5
11852echo "$as_me: failed program was:" >&5
11853sed 's/^/| /' conftest.$ac_ext >&5
11854
11855( exit $ac_status )
11856ac_cv_func_working_mktime=no
11857fi
11858rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11859fi
11860fi
11861echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11862echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11863if test $ac_cv_func_working_mktime = no; then
11864 LIBOBJS="$LIBOBJS mktime.$ac_objext"
11865fi
11866
11867if test "$ac_cv_func_working_mktime" = no; then
11868
11869cat >>confdefs.h <<\_ACEOF
11870#define BROKEN_MKTIME 1
11871_ACEOF
11872
11873fi
11874
11875ac_have_func=no # yes means we've found a way to get the load average.
11876
11877# Make sure getloadavg.c is where it belongs, at configure-time.
11878test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11879 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11880echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11881 { (exit 1); exit 1; }; }
11882
11883ac_save_LIBS=$LIBS
11884
11885# Check for getloadavg, but be sure not to touch the cache variable.
11886(echo "$as_me:$LINENO: checking for getloadavg" >&5
11887echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11888if test "${ac_cv_func_getloadavg+set}" = set; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
11890else
11891 cat >conftest.$ac_ext <<_ACEOF
11892#line $LINENO "configure"
11893/* confdefs.h. */
11894_ACEOF
11895cat confdefs.h >>conftest.$ac_ext
11896cat >>conftest.$ac_ext <<_ACEOF
11897/* end confdefs.h. */
11898/* System header to define __stub macros and hopefully few prototypes,
11899 which can conflict with char getloadavg (); below.
11900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11901 <limits.h> exists even on freestanding compilers. */
11902#ifdef __STDC__
11903# include <limits.h>
11904#else
11905# include <assert.h>
11906#endif
11907/* Override any gcc2 internal prototype to avoid an error. */
11908#ifdef __cplusplus
11909extern "C"
11910{
11911#endif
11912/* We use char because int might match the return type of a gcc2
11913 builtin and then its argument prototype would still apply. */
11914char getloadavg ();
11915/* The GNU C library defines this for functions which it implements
11916 to always fail with ENOSYS. Some functions are actually named
11917 something starting with __ and the normal name is an alias. */
11918#if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11919choke me
11920#else
11921char (*f) () = getloadavg;
11922#endif
11923#ifdef __cplusplus
11924}
11925#endif
11926
11927int
11928main ()
11929{
11930return f != getloadavg;
11931 ;
11932 return 0;
11933}
11934_ACEOF
11935rm -f conftest.$ac_objext conftest$ac_exeext
11936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11937 (eval $ac_link) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -s conftest$ac_exeext'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11947 ac_cv_func_getloadavg=yes
11948else
11949 echo "$as_me: failed program was:" >&5
11950sed 's/^/| /' conftest.$ac_ext >&5
11951
11952ac_cv_func_getloadavg=no
11953fi
11954rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11955fi
11956echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11957echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11958if test $ac_cv_func_getloadavg = yes; then
11959 exit 0
11960else
11961 exit 1
11962fi
11963) && ac_have_func=yes
11964
11965# On HPUX9, an unprivileged user can get load averages through this function.
11966
11967for ac_func in pstat_getdynamic
11968do
11969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11970echo "$as_me:$LINENO: checking for $ac_func" >&5
11971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11972if eval "test \"\${$as_ac_var+set}\" = set"; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974else
11975 cat >conftest.$ac_ext <<_ACEOF
11976#line $LINENO "configure"
11977/* confdefs.h. */
11978_ACEOF
11979cat confdefs.h >>conftest.$ac_ext
11980cat >>conftest.$ac_ext <<_ACEOF
11981/* end confdefs.h. */
11982/* System header to define __stub macros and hopefully few prototypes,
11983 which can conflict with char $ac_func (); below.
11984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11985 <limits.h> exists even on freestanding compilers. */
11986#ifdef __STDC__
11987# include <limits.h>
11988#else
11989# include <assert.h>
11990#endif
11991/* Override any gcc2 internal prototype to avoid an error. */
11992#ifdef __cplusplus
11993extern "C"
11994{
11995#endif
11996/* We use char because int might match the return type of a gcc2
11997 builtin and then its argument prototype would still apply. */
11998char $ac_func ();
11999/* The GNU C library defines this for functions which it implements
12000 to always fail with ENOSYS. Some functions are actually named
12001 something starting with __ and the normal name is an alias. */
12002#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12003choke me
12004#else
12005char (*f) () = $ac_func;
12006#endif
12007#ifdef __cplusplus
12008}
12009#endif
12010
12011int
12012main ()
12013{
12014return f != $ac_func;
12015 ;
12016 return 0;
12017}
12018_ACEOF
12019rm -f conftest.$ac_objext conftest$ac_exeext
12020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12021 (eval $ac_link) 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } &&
12025 { ac_try='test -s conftest$ac_exeext'
12026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027 (eval $ac_try) 2>&5
12028 ac_status=$?
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; }; then
12031 eval "$as_ac_var=yes"
12032else
12033 echo "$as_me: failed program was:" >&5
12034sed 's/^/| /' conftest.$ac_ext >&5
12035
12036eval "$as_ac_var=no"
12037fi
12038rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12039fi
12040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12041echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12042if test `eval echo '${'$as_ac_var'}'` = yes; then
12043 cat >>confdefs.h <<_ACEOF
12044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12045_ACEOF
12046
12047fi
12048done
12049
12050
12051# Solaris has libkstat which does not require root.
12052
12053echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12054echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12055if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057else
12058 ac_check_lib_save_LIBS=$LIBS
12059LIBS="-lkstat $LIBS"
12060cat >conftest.$ac_ext <<_ACEOF
12061#line $LINENO "configure"
12062/* confdefs.h. */
12063_ACEOF
12064cat confdefs.h >>conftest.$ac_ext
12065cat >>conftest.$ac_ext <<_ACEOF
12066/* end confdefs.h. */
12067
12068/* Override any gcc2 internal prototype to avoid an error. */
12069#ifdef __cplusplus
12070extern "C"
12071#endif
12072/* We use char because int might match the return type of a gcc2
12073 builtin and then its argument prototype would still apply. */
12074char kstat_open ();
12075int
12076main ()
12077{
12078kstat_open ();
12079 ;
12080 return 0;
12081}
12082_ACEOF
12083rm -f conftest.$ac_objext conftest$ac_exeext
12084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12085 (eval $ac_link) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } &&
12089 { ac_try='test -s conftest$ac_exeext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 ac_cv_lib_kstat_kstat_open=yes
12096else
12097 echo "$as_me: failed program was:" >&5
12098sed 's/^/| /' conftest.$ac_ext >&5
12099
12100ac_cv_lib_kstat_kstat_open=no
12101fi
12102rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12103LIBS=$ac_check_lib_save_LIBS
12104fi
12105echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12106echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12107if test $ac_cv_lib_kstat_kstat_open = yes; then
12108 cat >>confdefs.h <<_ACEOF
12109#define HAVE_LIBKSTAT 1
12110_ACEOF
12111
12112 LIBS="-lkstat $LIBS"
12113
12114fi
12115
12116test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12117
12118# Some systems with -lutil have (and need) -lkvm as well, some do not.
12119# On Solaris, -lkvm requires nlist from -lelf, so check that first
12120# to get the right answer into the cache.
12121# For kstat on solaris, we need libelf to force the definition of SVR4 below.
12122if test $ac_have_func = no; then
12123 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12124echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12125if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12127else
12128 ac_check_lib_save_LIBS=$LIBS
12129LIBS="-lelf $LIBS"
12130cat >conftest.$ac_ext <<_ACEOF
12131#line $LINENO "configure"
12132/* confdefs.h. */
12133_ACEOF
12134cat confdefs.h >>conftest.$ac_ext
12135cat >>conftest.$ac_ext <<_ACEOF
12136/* end confdefs.h. */
12137
12138/* Override any gcc2 internal prototype to avoid an error. */
12139#ifdef __cplusplus
12140extern "C"
12141#endif
12142/* We use char because int might match the return type of a gcc2
12143 builtin and then its argument prototype would still apply. */
12144char elf_begin ();
12145int
12146main ()
12147{
12148elf_begin ();
12149 ;
12150 return 0;
12151}
12152_ACEOF
12153rm -f conftest.$ac_objext conftest$ac_exeext
12154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12155 (eval $ac_link) 2>&5
12156 ac_status=$?
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } &&
12159 { ac_try='test -s conftest$ac_exeext'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 ac_cv_lib_elf_elf_begin=yes
12166else
12167 echo "$as_me: failed program was:" >&5
12168sed 's/^/| /' conftest.$ac_ext >&5
12169
12170ac_cv_lib_elf_elf_begin=no
12171fi
12172rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12173LIBS=$ac_check_lib_save_LIBS
12174fi
12175echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12176echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12177if test $ac_cv_lib_elf_elf_begin = yes; then
12178 LIBS="-lelf $LIBS"
12179fi
12180
12181fi
12182if test $ac_have_func = no; then
12183 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12184echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12185if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12187else
12188 ac_check_lib_save_LIBS=$LIBS
12189LIBS="-lkvm $LIBS"
12190cat >conftest.$ac_ext <<_ACEOF
12191#line $LINENO "configure"
12192/* confdefs.h. */
12193_ACEOF
12194cat confdefs.h >>conftest.$ac_ext
12195cat >>conftest.$ac_ext <<_ACEOF
12196/* end confdefs.h. */
12197
12198/* Override any gcc2 internal prototype to avoid an error. */
12199#ifdef __cplusplus
12200extern "C"
12201#endif
12202/* We use char because int might match the return type of a gcc2
12203 builtin and then its argument prototype would still apply. */
12204char kvm_open ();
12205int
12206main ()
12207{
12208kvm_open ();
12209 ;
12210 return 0;
12211}
12212_ACEOF
12213rm -f conftest.$ac_objext conftest$ac_exeext
12214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215 (eval $ac_link) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
12219 { ac_try='test -s conftest$ac_exeext'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 ac_cv_lib_kvm_kvm_open=yes
12226else
12227 echo "$as_me: failed program was:" >&5
12228sed 's/^/| /' conftest.$ac_ext >&5
12229
12230ac_cv_lib_kvm_kvm_open=no
12231fi
12232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12233LIBS=$ac_check_lib_save_LIBS
12234fi
12235echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12236echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12237if test $ac_cv_lib_kvm_kvm_open = yes; then
12238 LIBS="-lkvm $LIBS"
12239fi
12240
12241 # Check for the 4.4BSD definition of getloadavg.
12242 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12243echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12244if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12246else
12247 ac_check_lib_save_LIBS=$LIBS
12248LIBS="-lutil $LIBS"
12249cat >conftest.$ac_ext <<_ACEOF
12250#line $LINENO "configure"
12251/* confdefs.h. */
12252_ACEOF
12253cat confdefs.h >>conftest.$ac_ext
12254cat >>conftest.$ac_ext <<_ACEOF
12255/* end confdefs.h. */
12256
12257/* Override any gcc2 internal prototype to avoid an error. */
12258#ifdef __cplusplus
12259extern "C"
12260#endif
12261/* We use char because int might match the return type of a gcc2
12262 builtin and then its argument prototype would still apply. */
12263char getloadavg ();
12264int
12265main ()
12266{
12267getloadavg ();
12268 ;
12269 return 0;
12270}
12271_ACEOF
12272rm -f conftest.$ac_objext conftest$ac_exeext
12273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274 (eval $ac_link) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try='test -s conftest$ac_exeext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 ac_cv_lib_util_getloadavg=yes
12285else
12286 echo "$as_me: failed program was:" >&5
12287sed 's/^/| /' conftest.$ac_ext >&5
12288
12289ac_cv_lib_util_getloadavg=no
12290fi
12291rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12292LIBS=$ac_check_lib_save_LIBS
12293fi
12294echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12295echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12296if test $ac_cv_lib_util_getloadavg = yes; then
12297 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12298fi
12299
12300fi
12301
12302if test $ac_have_func = no; then
12303 # There is a commonly available library for RS/6000 AIX.
12304 # Since it is not a standard part of AIX, it might be installed locally.
12305 ac_getloadavg_LIBS=$LIBS
12306 LIBS="-L/usr/local/lib $LIBS"
12307 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12308echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12309if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311else
12312 ac_check_lib_save_LIBS=$LIBS
12313LIBS="-lgetloadavg $LIBS"
12314cat >conftest.$ac_ext <<_ACEOF
12315#line $LINENO "configure"
12316/* confdefs.h. */
12317_ACEOF
12318cat confdefs.h >>conftest.$ac_ext
12319cat >>conftest.$ac_ext <<_ACEOF
12320/* end confdefs.h. */
12321
12322/* Override any gcc2 internal prototype to avoid an error. */
12323#ifdef __cplusplus
12324extern "C"
12325#endif
12326/* We use char because int might match the return type of a gcc2
12327 builtin and then its argument prototype would still apply. */
12328char getloadavg ();
12329int
12330main ()
12331{
12332getloadavg ();
12333 ;
12334 return 0;
12335}
12336_ACEOF
12337rm -f conftest.$ac_objext conftest$ac_exeext
12338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12339 (eval $ac_link) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -s conftest$ac_exeext'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12346 ac_status=$?
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12349 ac_cv_lib_getloadavg_getloadavg=yes
12350else
12351 echo "$as_me: failed program was:" >&5
12352sed 's/^/| /' conftest.$ac_ext >&5
12353
12354ac_cv_lib_getloadavg_getloadavg=no
12355fi
12356rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12357LIBS=$ac_check_lib_save_LIBS
12358fi
12359echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12360echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12361if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12362 LIBS="-lgetloadavg $LIBS"
12363else
12364 LIBS=$ac_getloadavg_LIBS
12365fi
12366
12367fi
12368
12369# Make sure it is really in the library, if we think we found it,
12370# otherwise set up the replacement function.
12371
12372for ac_func in getloadavg
12373do
12374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12375echo "$as_me:$LINENO: checking for $ac_func" >&5
12376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12377if eval "test \"\${$as_ac_var+set}\" = set"; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12379else
12380 cat >conftest.$ac_ext <<_ACEOF
12381#line $LINENO "configure"
12382/* confdefs.h. */
12383_ACEOF
12384cat confdefs.h >>conftest.$ac_ext
12385cat >>conftest.$ac_ext <<_ACEOF
12386/* end confdefs.h. */
12387/* System header to define __stub macros and hopefully few prototypes,
12388 which can conflict with char $ac_func (); below.
12389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12390 <limits.h> exists even on freestanding compilers. */
12391#ifdef __STDC__
12392# include <limits.h>
12393#else
12394# include <assert.h>
12395#endif
12396/* Override any gcc2 internal prototype to avoid an error. */
12397#ifdef __cplusplus
12398extern "C"
12399{
12400#endif
12401/* We use char because int might match the return type of a gcc2
12402 builtin and then its argument prototype would still apply. */
12403char $ac_func ();
12404/* The GNU C library defines this for functions which it implements
12405 to always fail with ENOSYS. Some functions are actually named
12406 something starting with __ and the normal name is an alias. */
12407#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12408choke me
12409#else
12410char (*f) () = $ac_func;
12411#endif
12412#ifdef __cplusplus
12413}
12414#endif
12415
12416int
12417main ()
12418{
12419return f != $ac_func;
12420 ;
12421 return 0;
12422}
12423_ACEOF
12424rm -f conftest.$ac_objext conftest$ac_exeext
12425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12426 (eval $ac_link) 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
12430 { ac_try='test -s conftest$ac_exeext'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 eval "$as_ac_var=yes"
12437else
12438 echo "$as_me: failed program was:" >&5
12439sed 's/^/| /' conftest.$ac_ext >&5
12440
12441eval "$as_ac_var=no"
12442fi
12443rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12444fi
12445echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12446echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12447if test `eval echo '${'$as_ac_var'}'` = yes; then
12448 cat >>confdefs.h <<_ACEOF
12449#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12450_ACEOF
12451
12452else
12453 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12454
12455cat >>confdefs.h <<\_ACEOF
12456#define C_GETLOADAVG 1
12457_ACEOF
12458
12459# Figure out what our getloadavg.c needs.
12460ac_have_func=no
12461if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12462 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12463echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12464if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466fi
12467echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12468echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12469else
12470 # Is the header compilable?
12471echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12472echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12473cat >conftest.$ac_ext <<_ACEOF
12474#line $LINENO "configure"
12475/* confdefs.h. */
12476_ACEOF
12477cat confdefs.h >>conftest.$ac_ext
12478cat >>conftest.$ac_ext <<_ACEOF
12479/* end confdefs.h. */
12480$ac_includes_default
12481#include <sys/dg_sys_info.h>
12482_ACEOF
12483rm -f conftest.$ac_objext
12484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -s conftest.$ac_objext'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12495 ac_header_compiler=yes
12496else
12497 echo "$as_me: failed program was:" >&5
12498sed 's/^/| /' conftest.$ac_ext >&5
12499
12500ac_header_compiler=no
12501fi
12502rm -f conftest.$ac_objext conftest.$ac_ext
12503echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12504echo "${ECHO_T}$ac_header_compiler" >&6
12505
12506# Is the header present?
12507echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12508echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12509cat >conftest.$ac_ext <<_ACEOF
12510#line $LINENO "configure"
12511/* confdefs.h. */
12512_ACEOF
12513cat confdefs.h >>conftest.$ac_ext
12514cat >>conftest.$ac_ext <<_ACEOF
12515/* end confdefs.h. */
12516#include <sys/dg_sys_info.h>
12517_ACEOF
12518if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12520 ac_status=$?
12521 grep -v '^ *+' conftest.er1 >conftest.err
12522 rm -f conftest.er1
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } >/dev/null; then
12526 if test -s conftest.err; then
12527 ac_cpp_err=$ac_c_preproc_warn_flag
12528 else
12529 ac_cpp_err=
12530 fi
12531else
12532 ac_cpp_err=yes
12533fi
12534if test -z "$ac_cpp_err"; then
12535 ac_header_preproc=yes
12536else
12537 echo "$as_me: failed program was:" >&5
12538sed 's/^/| /' conftest.$ac_ext >&5
12539
12540 ac_header_preproc=no
12541fi
12542rm -f conftest.err conftest.$ac_ext
12543echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12544echo "${ECHO_T}$ac_header_preproc" >&6
12545
12546# So? What about this header?
12547case $ac_header_compiler:$ac_header_preproc in
12548 yes:no )
12549 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12550echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12551 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12552echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12553 (
12554 cat <<\_ASBOX
12555## ------------------------------------ ##
12556## Report this to bug-autoconf@gnu.org. ##
12557## ------------------------------------ ##
12558_ASBOX
12559 ) |
12560 sed "s/^/$as_me: WARNING: /" >&2
12561 ;;
12562 no:yes )
12563 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12564echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12566echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12568echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12569 (
12570 cat <<\_ASBOX
12571## ------------------------------------ ##
12572## Report this to bug-autoconf@gnu.org. ##
12573## ------------------------------------ ##
12574_ASBOX
12575 ) |
12576 sed "s/^/$as_me: WARNING: /" >&2
12577 ;;
12578esac
12579echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12580echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12581if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12583else
12584 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12585fi
12586echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12587echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12588
12589fi
12590if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12591 ac_have_func=yes
12592
12593cat >>confdefs.h <<\_ACEOF
12594#define DGUX 1
12595_ACEOF
12596
12597
12598echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12599echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12600if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12602else
12603 ac_check_lib_save_LIBS=$LIBS
12604LIBS="-ldgc $LIBS"
12605cat >conftest.$ac_ext <<_ACEOF
12606#line $LINENO "configure"
12607/* confdefs.h. */
12608_ACEOF
12609cat confdefs.h >>conftest.$ac_ext
12610cat >>conftest.$ac_ext <<_ACEOF
12611/* end confdefs.h. */
12612
12613/* Override any gcc2 internal prototype to avoid an error. */
12614#ifdef __cplusplus
12615extern "C"
12616#endif
12617/* We use char because int might match the return type of a gcc2
12618 builtin and then its argument prototype would still apply. */
12619char dg_sys_info ();
12620int
12621main ()
12622{
12623dg_sys_info ();
12624 ;
12625 return 0;
12626}
12627_ACEOF
12628rm -f conftest.$ac_objext conftest$ac_exeext
12629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12630 (eval $ac_link) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -s conftest$ac_exeext'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 ac_cv_lib_dgc_dg_sys_info=yes
12641else
12642 echo "$as_me: failed program was:" >&5
12643sed 's/^/| /' conftest.$ac_ext >&5
12644
12645ac_cv_lib_dgc_dg_sys_info=no
12646fi
12647rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12648LIBS=$ac_check_lib_save_LIBS
12649fi
12650echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12651echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12652if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12653 cat >>confdefs.h <<_ACEOF
12654#define HAVE_LIBDGC 1
12655_ACEOF
12656
12657 LIBS="-ldgc $LIBS"
12658
12659fi
12660
12661fi
12662
12663
12664
12665if test "${ac_cv_header_locale_h+set}" = set; then
12666 echo "$as_me:$LINENO: checking for locale.h" >&5
12667echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12668if test "${ac_cv_header_locale_h+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12670fi
12671echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12672echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12673else
12674 # Is the header compilable?
12675echo "$as_me:$LINENO: checking locale.h usability" >&5
12676echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12677cat >conftest.$ac_ext <<_ACEOF
12678#line $LINENO "configure"
12679/* confdefs.h. */
12680_ACEOF
12681cat confdefs.h >>conftest.$ac_ext
12682cat >>conftest.$ac_ext <<_ACEOF
12683/* end confdefs.h. */
12684$ac_includes_default
12685#include <locale.h>
12686_ACEOF
12687rm -f conftest.$ac_objext
12688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12689 (eval $ac_compile) 2>&5
12690 ac_status=$?
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } &&
12693 { ac_try='test -s conftest.$ac_objext'
12694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695 (eval $ac_try) 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12699 ac_header_compiler=yes
12700else
12701 echo "$as_me: failed program was:" >&5
12702sed 's/^/| /' conftest.$ac_ext >&5
12703
12704ac_header_compiler=no
12705fi
12706rm -f conftest.$ac_objext conftest.$ac_ext
12707echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12708echo "${ECHO_T}$ac_header_compiler" >&6
12709
12710# Is the header present?
12711echo "$as_me:$LINENO: checking locale.h presence" >&5
12712echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12713cat >conftest.$ac_ext <<_ACEOF
12714#line $LINENO "configure"
12715/* confdefs.h. */
12716_ACEOF
12717cat confdefs.h >>conftest.$ac_ext
12718cat >>conftest.$ac_ext <<_ACEOF
12719/* end confdefs.h. */
12720#include <locale.h>
12721_ACEOF
12722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12724 ac_status=$?
12725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } >/dev/null; then
12730 if test -s conftest.err; then
12731 ac_cpp_err=$ac_c_preproc_warn_flag
12732 else
12733 ac_cpp_err=
12734 fi
12735else
12736 ac_cpp_err=yes
12737fi
12738if test -z "$ac_cpp_err"; then
12739 ac_header_preproc=yes
12740else
12741 echo "$as_me: failed program was:" >&5
12742sed 's/^/| /' conftest.$ac_ext >&5
12743
12744 ac_header_preproc=no
12745fi
12746rm -f conftest.err conftest.$ac_ext
12747echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12748echo "${ECHO_T}$ac_header_preproc" >&6
12749
12750# So? What about this header?
12751case $ac_header_compiler:$ac_header_preproc in
12752 yes:no )
12753 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12754echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12756echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12757 (
12758 cat <<\_ASBOX
12759## ------------------------------------ ##
12760## Report this to bug-autoconf@gnu.org. ##
12761## ------------------------------------ ##
12762_ASBOX
12763 ) |
12764 sed "s/^/$as_me: WARNING: /" >&2
12765 ;;
12766 no:yes )
12767 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12768echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12769 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12770echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12771 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12772echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12773 (
12774 cat <<\_ASBOX
12775## ------------------------------------ ##
12776## Report this to bug-autoconf@gnu.org. ##
12777## ------------------------------------ ##
12778_ASBOX
12779 ) |
12780 sed "s/^/$as_me: WARNING: /" >&2
12781 ;;
12782esac
12783echo "$as_me:$LINENO: checking for locale.h" >&5
12784echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12785if test "${ac_cv_header_locale_h+set}" = set; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12787else
12788 ac_cv_header_locale_h=$ac_header_preproc
12789fi
12790echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12791echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12792
12793fi
12794
12795
12796
12797for ac_func in setlocale
12798do
12799as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12800echo "$as_me:$LINENO: checking for $ac_func" >&5
12801echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12802if eval "test \"\${$as_ac_var+set}\" = set"; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12804else
12805 cat >conftest.$ac_ext <<_ACEOF
12806#line $LINENO "configure"
12807/* confdefs.h. */
12808_ACEOF
12809cat confdefs.h >>conftest.$ac_ext
12810cat >>conftest.$ac_ext <<_ACEOF
12811/* end confdefs.h. */
12812/* System header to define __stub macros and hopefully few prototypes,
12813 which can conflict with char $ac_func (); below.
12814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12815 <limits.h> exists even on freestanding compilers. */
12816#ifdef __STDC__
12817# include <limits.h>
12818#else
12819# include <assert.h>
12820#endif
12821/* Override any gcc2 internal prototype to avoid an error. */
12822#ifdef __cplusplus
12823extern "C"
12824{
12825#endif
12826/* We use char because int might match the return type of a gcc2
12827 builtin and then its argument prototype would still apply. */
12828char $ac_func ();
12829/* The GNU C library defines this for functions which it implements
12830 to always fail with ENOSYS. Some functions are actually named
12831 something starting with __ and the normal name is an alias. */
12832#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12833choke me
12834#else
12835char (*f) () = $ac_func;
12836#endif
12837#ifdef __cplusplus
12838}
12839#endif
12840
12841int
12842main ()
12843{
12844return f != $ac_func;
12845 ;
12846 return 0;
12847}
12848_ACEOF
12849rm -f conftest.$ac_objext conftest$ac_exeext
12850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12851 (eval $ac_link) 2>&5
12852 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try='test -s conftest$ac_exeext'
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12858 ac_status=$?
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
12861 eval "$as_ac_var=yes"
12862else
12863 echo "$as_me: failed program was:" >&5
12864sed 's/^/| /' conftest.$ac_ext >&5
12865
12866eval "$as_ac_var=no"
12867fi
12868rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12869fi
12870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12871echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12872if test `eval echo '${'$as_ac_var'}'` = yes; then
12873 cat >>confdefs.h <<_ACEOF
12874#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12875_ACEOF
12876
12877fi
12878done
12879
12880
12881# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12882# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12883# Irix 4.0.5F has the header but not the library.
12884if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12885 ac_have_func=yes
12886
12887cat >>confdefs.h <<\_ACEOF
12888#define SVR4 1
12889_ACEOF
12890
12891fi
12892
12893if test $ac_have_func = no; then
12894 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12895 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12896echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12897if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12899fi
12900echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12901echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12902else
12903 # Is the header compilable?
12904echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12905echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12906cat >conftest.$ac_ext <<_ACEOF
12907#line $LINENO "configure"
12908/* confdefs.h. */
12909_ACEOF
12910cat confdefs.h >>conftest.$ac_ext
12911cat >>conftest.$ac_ext <<_ACEOF
12912/* end confdefs.h. */
12913$ac_includes_default
12914#include <inq_stats/cpustats.h>
12915_ACEOF
12916rm -f conftest.$ac_objext
12917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12918 (eval $ac_compile) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } &&
12922 { ac_try='test -s conftest.$ac_objext'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; }; then
12928 ac_header_compiler=yes
12929else
12930 echo "$as_me: failed program was:" >&5
12931sed 's/^/| /' conftest.$ac_ext >&5
12932
12933ac_header_compiler=no
12934fi
12935rm -f conftest.$ac_objext conftest.$ac_ext
12936echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12937echo "${ECHO_T}$ac_header_compiler" >&6
12938
12939# Is the header present?
12940echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
12941echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
12942cat >conftest.$ac_ext <<_ACEOF
12943#line $LINENO "configure"
12944/* confdefs.h. */
12945_ACEOF
12946cat confdefs.h >>conftest.$ac_ext
12947cat >>conftest.$ac_ext <<_ACEOF
12948/* end confdefs.h. */
12949#include <inq_stats/cpustats.h>
12950_ACEOF
12951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12953 ac_status=$?
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } >/dev/null; then
12959 if test -s conftest.err; then
12960 ac_cpp_err=$ac_c_preproc_warn_flag
12961 else
12962 ac_cpp_err=
12963 fi
12964else
12965 ac_cpp_err=yes
12966fi
12967if test -z "$ac_cpp_err"; then
12968 ac_header_preproc=yes
12969else
12970 echo "$as_me: failed program was:" >&5
12971sed 's/^/| /' conftest.$ac_ext >&5
12972
12973 ac_header_preproc=no
12974fi
12975rm -f conftest.err conftest.$ac_ext
12976echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12977echo "${ECHO_T}$ac_header_preproc" >&6
12978
12979# So? What about this header?
12980case $ac_header_compiler:$ac_header_preproc in
12981 yes:no )
12982 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12983echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12984 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12985echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12986 (
12987 cat <<\_ASBOX
12988## ------------------------------------ ##
12989## Report this to bug-autoconf@gnu.org. ##
12990## ------------------------------------ ##
12991_ASBOX
12992 ) |
12993 sed "s/^/$as_me: WARNING: /" >&2
12994 ;;
12995 no:yes )
12996 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
12997echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
12998 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
12999echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13000 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13001echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13002 (
13003 cat <<\_ASBOX
13004## ------------------------------------ ##
13005## Report this to bug-autoconf@gnu.org. ##
13006## ------------------------------------ ##
13007_ASBOX
13008 ) |
13009 sed "s/^/$as_me: WARNING: /" >&2
13010 ;;
13011esac
13012echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13013echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13014if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13016else
13017 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13018fi
13019echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13020echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13021
13022fi
13023if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13024 ac_have_func=yes
13025
13026cat >>confdefs.h <<\_ACEOF
13027#define UMAX 1
13028_ACEOF
13029
13030
13031cat >>confdefs.h <<\_ACEOF
13032#define UMAX4_3 1
13033_ACEOF
13034
13035fi
13036
13037
13038fi
13039
13040if test $ac_have_func = no; then
13041 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13042 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13043echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13044if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13046fi
13047echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13048echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13049else
13050 # Is the header compilable?
13051echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13052echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13053cat >conftest.$ac_ext <<_ACEOF
13054#line $LINENO "configure"
13055/* confdefs.h. */
13056_ACEOF
13057cat confdefs.h >>conftest.$ac_ext
13058cat >>conftest.$ac_ext <<_ACEOF
13059/* end confdefs.h. */
13060$ac_includes_default
13061#include <sys/cpustats.h>
13062_ACEOF
13063rm -f conftest.$ac_objext
13064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13065 (eval $ac_compile) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } &&
13069 { ac_try='test -s conftest.$ac_objext'
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13072 ac_status=$?
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
13075 ac_header_compiler=yes
13076else
13077 echo "$as_me: failed program was:" >&5
13078sed 's/^/| /' conftest.$ac_ext >&5
13079
13080ac_header_compiler=no
13081fi
13082rm -f conftest.$ac_objext conftest.$ac_ext
13083echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13084echo "${ECHO_T}$ac_header_compiler" >&6
13085
13086# Is the header present?
13087echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13088echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13089cat >conftest.$ac_ext <<_ACEOF
13090#line $LINENO "configure"
13091/* confdefs.h. */
13092_ACEOF
13093cat confdefs.h >>conftest.$ac_ext
13094cat >>conftest.$ac_ext <<_ACEOF
13095/* end confdefs.h. */
13096#include <sys/cpustats.h>
13097_ACEOF
13098if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13100 ac_status=$?
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } >/dev/null; then
13106 if test -s conftest.err; then
13107 ac_cpp_err=$ac_c_preproc_warn_flag
13108 else
13109 ac_cpp_err=
13110 fi
13111else
13112 ac_cpp_err=yes
13113fi
13114if test -z "$ac_cpp_err"; then
13115 ac_header_preproc=yes
13116else
13117 echo "$as_me: failed program was:" >&5
13118sed 's/^/| /' conftest.$ac_ext >&5
13119
13120 ac_header_preproc=no
13121fi
13122rm -f conftest.err conftest.$ac_ext
13123echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13124echo "${ECHO_T}$ac_header_preproc" >&6
13125
13126# So? What about this header?
13127case $ac_header_compiler:$ac_header_preproc in
13128 yes:no )
13129 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13130echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13131 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13132echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13133 (
13134 cat <<\_ASBOX
13135## ------------------------------------ ##
13136## Report this to bug-autoconf@gnu.org. ##
13137## ------------------------------------ ##
13138_ASBOX
13139 ) |
13140 sed "s/^/$as_me: WARNING: /" >&2
13141 ;;
13142 no:yes )
13143 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13144echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13145 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13146echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13147 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13148echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13149 (
13150 cat <<\_ASBOX
13151## ------------------------------------ ##
13152## Report this to bug-autoconf@gnu.org. ##
13153## ------------------------------------ ##
13154_ASBOX
13155 ) |
13156 sed "s/^/$as_me: WARNING: /" >&2
13157 ;;
13158esac
13159echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13160echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13161if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13163else
13164 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13165fi
13166echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13167echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13168
13169fi
13170if test $ac_cv_header_sys_cpustats_h = yes; then
13171 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13172#define UMAX 1
13173_ACEOF
13174
13175fi
13176
13177
13178fi
13179
13180if test $ac_have_func = no; then
13181
13182for ac_header in mach/mach.h
13183do
13184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13185if eval "test \"\${$as_ac_Header+set}\" = set"; then
13186 echo "$as_me:$LINENO: checking for $ac_header" >&5
13187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13188if eval "test \"\${$as_ac_Header+set}\" = set"; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13190fi
13191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13192echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13193else
13194 # Is the header compilable?
13195echo "$as_me:$LINENO: checking $ac_header usability" >&5
13196echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13197cat >conftest.$ac_ext <<_ACEOF
13198#line $LINENO "configure"
13199/* confdefs.h. */
13200_ACEOF
13201cat confdefs.h >>conftest.$ac_ext
13202cat >>conftest.$ac_ext <<_ACEOF
13203/* end confdefs.h. */
13204$ac_includes_default
13205#include <$ac_header>
13206_ACEOF
13207rm -f conftest.$ac_objext
13208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209 (eval $ac_compile) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } &&
13213 { ac_try='test -s conftest.$ac_objext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_header_compiler=yes
13220else
13221 echo "$as_me: failed program was:" >&5
13222sed 's/^/| /' conftest.$ac_ext >&5
13223
13224ac_header_compiler=no
13225fi
13226rm -f conftest.$ac_objext conftest.$ac_ext
13227echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13228echo "${ECHO_T}$ac_header_compiler" >&6
13229
13230# Is the header present?
13231echo "$as_me:$LINENO: checking $ac_header presence" >&5
13232echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13233cat >conftest.$ac_ext <<_ACEOF
13234#line $LINENO "configure"
13235/* confdefs.h. */
13236_ACEOF
13237cat confdefs.h >>conftest.$ac_ext
13238cat >>conftest.$ac_ext <<_ACEOF
13239/* end confdefs.h. */
13240#include <$ac_header>
13241_ACEOF
13242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13244 ac_status=$?
13245 grep -v '^ *+' conftest.er1 >conftest.err
13246 rm -f conftest.er1
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } >/dev/null; then
13250 if test -s conftest.err; then
13251 ac_cpp_err=$ac_c_preproc_warn_flag
13252 else
13253 ac_cpp_err=
13254 fi
13255else
13256 ac_cpp_err=yes
13257fi
13258if test -z "$ac_cpp_err"; then
13259 ac_header_preproc=yes
13260else
13261 echo "$as_me: failed program was:" >&5
13262sed 's/^/| /' conftest.$ac_ext >&5
13263
13264 ac_header_preproc=no
13265fi
13266rm -f conftest.err conftest.$ac_ext
13267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13268echo "${ECHO_T}$ac_header_preproc" >&6
13269
13270# So? What about this header?
13271case $ac_header_compiler:$ac_header_preproc in
13272 yes:no )
13273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13276echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13277 (
13278 cat <<\_ASBOX
13279## ------------------------------------ ##
13280## Report this to bug-autoconf@gnu.org. ##
13281## ------------------------------------ ##
13282_ASBOX
13283 ) |
13284 sed "s/^/$as_me: WARNING: /" >&2
13285 ;;
13286 no:yes )
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13293 (
13294 cat <<\_ASBOX
13295## ------------------------------------ ##
13296## Report this to bug-autoconf@gnu.org. ##
13297## ------------------------------------ ##
13298_ASBOX
13299 ) |
13300 sed "s/^/$as_me: WARNING: /" >&2
13301 ;;
13302esac
13303echo "$as_me:$LINENO: checking for $ac_header" >&5
13304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13305if eval "test \"\${$as_ac_Header+set}\" = set"; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13307else
13308 eval "$as_ac_Header=$ac_header_preproc"
13309fi
13310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13312
13313fi
13314if test `eval echo '${'$as_ac_Header'}'` = yes; then
13315 cat >>confdefs.h <<_ACEOF
13316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13317_ACEOF
13318
13319fi
13320
13321done
13322
13323fi
13324
13325
13326for ac_header in nlist.h
13327do
13328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13329if eval "test \"\${$as_ac_Header+set}\" = set"; then
13330 echo "$as_me:$LINENO: checking for $ac_header" >&5
13331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13332if eval "test \"\${$as_ac_Header+set}\" = set"; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13334fi
13335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13337else
13338 # Is the header compilable?
13339echo "$as_me:$LINENO: checking $ac_header usability" >&5
13340echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13341cat >conftest.$ac_ext <<_ACEOF
13342#line $LINENO "configure"
13343/* confdefs.h. */
13344_ACEOF
13345cat confdefs.h >>conftest.$ac_ext
13346cat >>conftest.$ac_ext <<_ACEOF
13347/* end confdefs.h. */
13348$ac_includes_default
13349#include <$ac_header>
13350_ACEOF
13351rm -f conftest.$ac_objext
13352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13353 (eval $ac_compile) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } &&
13357 { ac_try='test -s conftest.$ac_objext'
13358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359 (eval $ac_try) 2>&5
13360 ac_status=$?
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; }; then
13363 ac_header_compiler=yes
13364else
13365 echo "$as_me: failed program was:" >&5
13366sed 's/^/| /' conftest.$ac_ext >&5
13367
13368ac_header_compiler=no
13369fi
13370rm -f conftest.$ac_objext conftest.$ac_ext
13371echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13372echo "${ECHO_T}$ac_header_compiler" >&6
13373
13374# Is the header present?
13375echo "$as_me:$LINENO: checking $ac_header presence" >&5
13376echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13377cat >conftest.$ac_ext <<_ACEOF
13378#line $LINENO "configure"
13379/* confdefs.h. */
13380_ACEOF
13381cat confdefs.h >>conftest.$ac_ext
13382cat >>conftest.$ac_ext <<_ACEOF
13383/* end confdefs.h. */
13384#include <$ac_header>
13385_ACEOF
13386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13388 ac_status=$?
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } >/dev/null; then
13394 if test -s conftest.err; then
13395 ac_cpp_err=$ac_c_preproc_warn_flag
13396 else
13397 ac_cpp_err=
13398 fi
13399else
13400 ac_cpp_err=yes
13401fi
13402if test -z "$ac_cpp_err"; then
13403 ac_header_preproc=yes
13404else
13405 echo "$as_me: failed program was:" >&5
13406sed 's/^/| /' conftest.$ac_ext >&5
13407
13408 ac_header_preproc=no
13409fi
13410rm -f conftest.err conftest.$ac_ext
13411echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13412echo "${ECHO_T}$ac_header_preproc" >&6
13413
13414# So? What about this header?
13415case $ac_header_compiler:$ac_header_preproc in
13416 yes:no )
13417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13418echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13421 (
13422 cat <<\_ASBOX
13423## ------------------------------------ ##
13424## Report this to bug-autoconf@gnu.org. ##
13425## ------------------------------------ ##
13426_ASBOX
13427 ) |
13428 sed "s/^/$as_me: WARNING: /" >&2
13429 ;;
13430 no:yes )
13431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13432echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13434echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13436echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13437 (
13438 cat <<\_ASBOX
13439## ------------------------------------ ##
13440## Report this to bug-autoconf@gnu.org. ##
13441## ------------------------------------ ##
13442_ASBOX
13443 ) |
13444 sed "s/^/$as_me: WARNING: /" >&2
13445 ;;
13446esac
13447echo "$as_me:$LINENO: checking for $ac_header" >&5
13448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13449if eval "test \"\${$as_ac_Header+set}\" = set"; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13451else
13452 eval "$as_ac_Header=$ac_header_preproc"
13453fi
13454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13455echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13456
13457fi
13458if test `eval echo '${'$as_ac_Header'}'` = yes; then
13459 cat >>confdefs.h <<_ACEOF
13460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13461_ACEOF
13462 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13463echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13464if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13466else
13467 cat >conftest.$ac_ext <<_ACEOF
13468#line $LINENO "configure"
13469/* confdefs.h. */
13470_ACEOF
13471cat confdefs.h >>conftest.$ac_ext
13472cat >>conftest.$ac_ext <<_ACEOF
13473/* end confdefs.h. */
13474#include <nlist.h>
13475
13476int
13477main ()
13478{
13479static struct nlist ac_aggr;
13480if (ac_aggr.n_un.n_name)
13481return 0;
13482 ;
13483 return 0;
13484}
13485_ACEOF
13486rm -f conftest.$ac_objext
13487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13488 (eval $ac_compile) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -s conftest.$ac_objext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_cv_member_struct_nlist_n_un_n_name=yes
13499else
13500 echo "$as_me: failed program was:" >&5
13501sed 's/^/| /' conftest.$ac_ext >&5
13502
13503cat >conftest.$ac_ext <<_ACEOF
13504#line $LINENO "configure"
13505/* confdefs.h. */
13506_ACEOF
13507cat confdefs.h >>conftest.$ac_ext
13508cat >>conftest.$ac_ext <<_ACEOF
13509/* end confdefs.h. */
13510#include <nlist.h>
13511
13512int
13513main ()
13514{
13515static struct nlist ac_aggr;
13516if (sizeof ac_aggr.n_un.n_name)
13517return 0;
13518 ;
13519 return 0;
13520}
13521_ACEOF
13522rm -f conftest.$ac_objext
13523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13524 (eval $ac_compile) 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try='test -s conftest.$ac_objext'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13531 ac_status=$?
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 ac_cv_member_struct_nlist_n_un_n_name=yes
13535else
13536 echo "$as_me: failed program was:" >&5
13537sed 's/^/| /' conftest.$ac_ext >&5
13538
13539ac_cv_member_struct_nlist_n_un_n_name=no
13540fi
13541rm -f conftest.$ac_objext conftest.$ac_ext
13542fi
13543rm -f conftest.$ac_objext conftest.$ac_ext
13544fi
13545echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13546echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13547if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13548
13549cat >>confdefs.h <<_ACEOF
13550#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13551_ACEOF
13552
13553
13554cat >>confdefs.h <<\_ACEOF
13555#define NLIST_NAME_UNION 1
13556_ACEOF
13557
13558fi
13559
13560
13561fi
13562
13563done
13564
13565fi
13566done
13567
13568
13569# Some definitions of getloadavg require that the program be installed setgid.
13570echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13571echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13572if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13574else
13575 cat >conftest.$ac_ext <<_ACEOF
13576#line $LINENO "configure"
13577/* confdefs.h. */
13578_ACEOF
13579cat confdefs.h >>conftest.$ac_ext
13580cat >>conftest.$ac_ext <<_ACEOF
13581/* end confdefs.h. */
13582#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13583#ifdef LDAV_PRIVILEGED
13584Yowza Am I SETGID yet
13585#endif
13586_ACEOF
13587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13588 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
13589 ac_cv_func_getloadavg_setgid=yes
13590else
13591 ac_cv_func_getloadavg_setgid=no
13592fi
13593rm -f conftest*
13594
13595fi
13596echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13597echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13598if test $ac_cv_func_getloadavg_setgid = yes; then
13599 NEED_SETGID=true
13600
13601cat >>confdefs.h <<\_ACEOF
13602#define GETLOADAVG_PRIVILEGED 1
13603_ACEOF
13604
13605else
13606 NEED_SETGID=false
13607fi
13608
13609if test $ac_cv_func_getloadavg_setgid = yes; then
13610 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13611echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13612if test "${ac_cv_group_kmem+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13614else
13615 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13616 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13617 # If we got an error (system does not support symlinks), try without -L.
13618 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13619 ac_cv_group_kmem=`echo $ac_ls_output \
13620 | sed -ne 's/[ ][ ]*/ /g;
13621 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13622 / /s/.* //;p;'`
13623
13624fi
13625echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13626echo "${ECHO_T}$ac_cv_group_kmem" >&6
13627 KMEM_GROUP=$ac_cv_group_kmem
13628fi
13629if test "x$ac_save_LIBS" = x; then
13630 GETLOADAVG_LIBS=$LIBS
13631else
13632 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13633fi
13634LIBS=$ac_save_LIBS
13635
13636
13637
13638echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13639echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13640if test "${ac_cv_sys_largefile_source+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13642else
13643 while :; do
13644 ac_cv_sys_largefile_source=no
13645 cat >conftest.$ac_ext <<_ACEOF
13646#line $LINENO "configure"
13647/* confdefs.h. */
13648_ACEOF
13649cat confdefs.h >>conftest.$ac_ext
13650cat >>conftest.$ac_ext <<_ACEOF
13651/* end confdefs.h. */
13652#include <stdio.h>
13653int
13654main ()
13655{
13656return !fseeko;
13657 ;
13658 return 0;
13659}
13660_ACEOF
13661rm -f conftest.$ac_objext
13662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663 (eval $ac_compile) 2>&5
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
13667 { ac_try='test -s conftest.$ac_objext'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13670 ac_status=$?
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
13673 break
13674else
13675 echo "$as_me: failed program was:" >&5
13676sed 's/^/| /' conftest.$ac_ext >&5
13677
13678fi
13679rm -f conftest.$ac_objext conftest.$ac_ext
13680 cat >conftest.$ac_ext <<_ACEOF
13681#line $LINENO "configure"
13682/* confdefs.h. */
13683_ACEOF
13684cat confdefs.h >>conftest.$ac_ext
13685cat >>conftest.$ac_ext <<_ACEOF
13686/* end confdefs.h. */
13687#define _LARGEFILE_SOURCE 1
13688#include <stdio.h>
13689int
13690main ()
13691{
13692return !fseeko;
13693 ;
13694 return 0;
13695}
13696_ACEOF
13697rm -f conftest.$ac_objext
13698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13699 (eval $ac_compile) 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } &&
13703 { ac_try='test -s conftest.$ac_objext'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_cv_sys_largefile_source=1; break
13710else
13711 echo "$as_me: failed program was:" >&5
13712sed 's/^/| /' conftest.$ac_ext >&5
13713
13714fi
13715rm -f conftest.$ac_objext conftest.$ac_ext
13716 break
13717done
13718fi
13719echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13720echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13721if test "$ac_cv_sys_largefile_source" != no; then
13722
13723cat >>confdefs.h <<_ACEOF
13724#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13725_ACEOF
13726
13727fi
13728rm -f conftest*
13729
13730# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13731# in glibc 2.1.3, but that breaks too many other things.
13732# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13733echo "$as_me:$LINENO: checking for fseeko" >&5
13734echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13735if test "${ac_cv_func_fseeko+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13737else
13738 cat >conftest.$ac_ext <<_ACEOF
13739#line $LINENO "configure"
13740/* confdefs.h. */
13741_ACEOF
13742cat confdefs.h >>conftest.$ac_ext
13743cat >>conftest.$ac_ext <<_ACEOF
13744/* end confdefs.h. */
13745#include <stdio.h>
13746int
13747main ()
13748{
13749return fseeko && fseeko (stdin, 0, 0);
13750 ;
13751 return 0;
13752}
13753_ACEOF
13754rm -f conftest.$ac_objext conftest$ac_exeext
13755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13756 (eval $ac_link) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -s conftest$ac_exeext'
13761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762 (eval $ac_try) 2>&5
13763 ac_status=$?
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
13766 ac_cv_func_fseeko=yes
13767else
13768 echo "$as_me: failed program was:" >&5
13769sed 's/^/| /' conftest.$ac_ext >&5
13770
13771ac_cv_func_fseeko=no
13772fi
13773rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13774fi
13775echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13776echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13777if test $ac_cv_func_fseeko = yes; then
13778
13779cat >>confdefs.h <<\_ACEOF
13780#define HAVE_FSEEKO 1
13781_ACEOF
13782
13783fi
13784
13785
13786echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13787echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13788if test "${ac_cv_func_getpgrp_void+set}" = set; then
13789 echo $ECHO_N "(cached) $ECHO_C" >&6
13790else
13791 # Use it with a single arg.
13792cat >conftest.$ac_ext <<_ACEOF
13793#line $LINENO "configure"
13794/* confdefs.h. */
13795_ACEOF
13796cat confdefs.h >>conftest.$ac_ext
13797cat >>conftest.$ac_ext <<_ACEOF
13798/* end confdefs.h. */
13799$ac_includes_default
13800int
13801main ()
13802{
13803getpgrp (0);
13804 ;
13805 return 0;
13806}
13807_ACEOF
13808rm -f conftest.$ac_objext
13809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13810 (eval $ac_compile) 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } &&
13814 { ac_try='test -s conftest.$ac_objext'
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13817 ac_status=$?
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; }; then
13820 ac_cv_func_getpgrp_void=no
13821else
13822 echo "$as_me: failed program was:" >&5
13823sed 's/^/| /' conftest.$ac_ext >&5
13824
13825ac_cv_func_getpgrp_void=yes
13826fi
13827rm -f conftest.$ac_objext conftest.$ac_ext
13828
13829fi
13830echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13831echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13832if test $ac_cv_func_getpgrp_void = yes; then
13833
13834cat >>confdefs.h <<\_ACEOF
13835#define GETPGRP_VOID 1
13836_ACEOF
13837
13838fi
13839
13840
13841# UNIX98 PTYs.
13842
13843for ac_func in grantpt
13844do
13845as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13846echo "$as_me:$LINENO: checking for $ac_func" >&5
13847echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13848if eval "test \"\${$as_ac_var+set}\" = set"; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13850else
13851 cat >conftest.$ac_ext <<_ACEOF
13852#line $LINENO "configure"
13853/* confdefs.h. */
13854_ACEOF
13855cat confdefs.h >>conftest.$ac_ext
13856cat >>conftest.$ac_ext <<_ACEOF
13857/* end confdefs.h. */
13858/* System header to define __stub macros and hopefully few prototypes,
13859 which can conflict with char $ac_func (); below.
13860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13861 <limits.h> exists even on freestanding compilers. */
13862#ifdef __STDC__
13863# include <limits.h>
13864#else
13865# include <assert.h>
13866#endif
13867/* Override any gcc2 internal prototype to avoid an error. */
13868#ifdef __cplusplus
13869extern "C"
13870{
13871#endif
13872/* We use char because int might match the return type of a gcc2
13873 builtin and then its argument prototype would still apply. */
13874char $ac_func ();
13875/* The GNU C library defines this for functions which it implements
13876 to always fail with ENOSYS. Some functions are actually named
13877 something starting with __ and the normal name is an alias. */
13878#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13879choke me
13880#else
13881char (*f) () = $ac_func;
13882#endif
13883#ifdef __cplusplus
13884}
13885#endif
13886
13887int
13888main ()
13889{
13890return f != $ac_func;
13891 ;
13892 return 0;
13893}
13894_ACEOF
13895rm -f conftest.$ac_objext conftest$ac_exeext
13896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13897 (eval $ac_link) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try='test -s conftest$ac_exeext'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13904 ac_status=$?
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 eval "$as_ac_var=yes"
13908else
13909 echo "$as_me: failed program was:" >&5
13910sed 's/^/| /' conftest.$ac_ext >&5
13911
13912eval "$as_ac_var=no"
13913fi
13914rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13915fi
13916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13917echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13918if test `eval echo '${'$as_ac_var'}'` = yes; then
13919 cat >>confdefs.h <<_ACEOF
13920#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13921_ACEOF
13922
13923fi
13924done
13925
13926
13927# PTY-related GNU extensions.
13928
13929for ac_func in getpt
13930do
13931as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13932echo "$as_me:$LINENO: checking for $ac_func" >&5
13933echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13934if eval "test \"\${$as_ac_var+set}\" = set"; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936else
13937 cat >conftest.$ac_ext <<_ACEOF
13938#line $LINENO "configure"
13939/* confdefs.h. */
13940_ACEOF
13941cat confdefs.h >>conftest.$ac_ext
13942cat >>conftest.$ac_ext <<_ACEOF
13943/* end confdefs.h. */
13944/* System header to define __stub macros and hopefully few prototypes,
13945 which can conflict with char $ac_func (); below.
13946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13947 <limits.h> exists even on freestanding compilers. */
13948#ifdef __STDC__
13949# include <limits.h>
13950#else
13951# include <assert.h>
13952#endif
13953/* Override any gcc2 internal prototype to avoid an error. */
13954#ifdef __cplusplus
13955extern "C"
13956{
13957#endif
13958/* We use char because int might match the return type of a gcc2
13959 builtin and then its argument prototype would still apply. */
13960char $ac_func ();
13961/* The GNU C library defines this for functions which it implements
13962 to always fail with ENOSYS. Some functions are actually named
13963 something starting with __ and the normal name is an alias. */
13964#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13965choke me
13966#else
13967char (*f) () = $ac_func;
13968#endif
13969#ifdef __cplusplus
13970}
13971#endif
13972
13973int
13974main ()
13975{
13976return f != $ac_func;
13977 ;
13978 return 0;
13979}
13980_ACEOF
13981rm -f conftest.$ac_objext conftest$ac_exeext
13982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983 (eval $ac_link) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } &&
13987 { ac_try='test -s conftest$ac_exeext'
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 eval "$as_ac_var=yes"
13994else
13995 echo "$as_me: failed program was:" >&5
13996sed 's/^/| /' conftest.$ac_ext >&5
13997
13998eval "$as_ac_var=no"
13999fi
14000rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14001fi
14002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14003echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14004if test `eval echo '${'$as_ac_var'}'` = yes; then
14005 cat >>confdefs.h <<_ACEOF
14006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14007_ACEOF
14008
14009fi
14010done
14011
14012
14013# Check this now, so that we will NOT find the above functions in ncurses.
14014# That is because we have not set up to link ncurses in lib-src.
14015# It's better to believe a function is not available
14016# than to expect to find it in ncurses.
14017
14018echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14019echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14020if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14022else
14023 ac_check_lib_save_LIBS=$LIBS
14024LIBS="-lncurses $LIBS"
14025cat >conftest.$ac_ext <<_ACEOF
14026#line $LINENO "configure"
14027/* confdefs.h. */
14028_ACEOF
14029cat confdefs.h >>conftest.$ac_ext
14030cat >>conftest.$ac_ext <<_ACEOF
14031/* end confdefs.h. */
14032
14033/* Override any gcc2 internal prototype to avoid an error. */
14034#ifdef __cplusplus
14035extern "C"
14036#endif
14037/* We use char because int might match the return type of a gcc2
14038 builtin and then its argument prototype would still apply. */
14039char tparm ();
14040int
14041main ()
14042{
14043tparm ();
14044 ;
14045 return 0;
14046}
14047_ACEOF
14048rm -f conftest.$ac_objext conftest$ac_exeext
14049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14050 (eval $ac_link) 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } &&
14054 { ac_try='test -s conftest$ac_exeext'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14057 ac_status=$?
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; }; then
14060 ac_cv_lib_ncurses_tparm=yes
14061else
14062 echo "$as_me: failed program was:" >&5
14063sed 's/^/| /' conftest.$ac_ext >&5
14064
14065ac_cv_lib_ncurses_tparm=no
14066fi
14067rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14068LIBS=$ac_check_lib_save_LIBS
14069fi
14070echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14071echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14072if test $ac_cv_lib_ncurses_tparm = yes; then
14073 cat >>confdefs.h <<_ACEOF
14074#define HAVE_LIBNCURSES 1
14075_ACEOF
14076
14077 LIBS="-lncurses $LIBS"
14078
14079fi
14080
14081
14082# Do we need the Hesiod library to provide the support routines?
14083if test "$with_hesiod" = yes ; then
14084 # Don't set $LIBS here -- see comments above.
14085 resolv=no
14086 echo "$as_me:$LINENO: checking for res_send" >&5
14087echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14088if test "${ac_cv_func_res_send+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14090else
14091 cat >conftest.$ac_ext <<_ACEOF
14092#line $LINENO "configure"
14093/* confdefs.h. */
14094_ACEOF
14095cat confdefs.h >>conftest.$ac_ext
14096cat >>conftest.$ac_ext <<_ACEOF
14097/* end confdefs.h. */
14098/* System header to define __stub macros and hopefully few prototypes,
14099 which can conflict with char res_send (); below.
14100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14101 <limits.h> exists even on freestanding compilers. */
14102#ifdef __STDC__
14103# include <limits.h>
14104#else
14105# include <assert.h>
14106#endif
14107/* Override any gcc2 internal prototype to avoid an error. */
14108#ifdef __cplusplus
14109extern "C"
14110{
14111#endif
14112/* We use char because int might match the return type of a gcc2
14113 builtin and then its argument prototype would still apply. */
14114char res_send ();
14115/* The GNU C library defines this for functions which it implements
14116 to always fail with ENOSYS. Some functions are actually named
14117 something starting with __ and the normal name is an alias. */
14118#if defined (__stub_res_send) || defined (__stub___res_send)
14119choke me
14120#else
14121char (*f) () = res_send;
14122#endif
14123#ifdef __cplusplus
14124}
14125#endif
14126
14127int
14128main ()
14129{
14130return f != res_send;
14131 ;
14132 return 0;
14133}
14134_ACEOF
14135rm -f conftest.$ac_objext conftest$ac_exeext
14136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14137 (eval $ac_link) 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try='test -s conftest$ac_exeext'
14142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143 (eval $ac_try) 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; }; then
14147 ac_cv_func_res_send=yes
14148else
14149 echo "$as_me: failed program was:" >&5
14150sed 's/^/| /' conftest.$ac_ext >&5
14151
14152ac_cv_func_res_send=no
14153fi
14154rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14155fi
14156echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14157echo "${ECHO_T}$ac_cv_func_res_send" >&6
14158if test $ac_cv_func_res_send = yes; then
14159 :
14160else
14161 echo "$as_me:$LINENO: checking for __res_send" >&5
14162echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14163if test "${ac_cv_func___res_send+set}" = set; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14165else
14166 cat >conftest.$ac_ext <<_ACEOF
14167#line $LINENO "configure"
14168/* confdefs.h. */
14169_ACEOF
14170cat confdefs.h >>conftest.$ac_ext
14171cat >>conftest.$ac_ext <<_ACEOF
14172/* end confdefs.h. */
14173/* System header to define __stub macros and hopefully few prototypes,
14174 which can conflict with char __res_send (); below.
14175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14176 <limits.h> exists even on freestanding compilers. */
14177#ifdef __STDC__
14178# include <limits.h>
14179#else
14180# include <assert.h>
14181#endif
14182/* Override any gcc2 internal prototype to avoid an error. */
14183#ifdef __cplusplus
14184extern "C"
14185{
14186#endif
14187/* We use char because int might match the return type of a gcc2
14188 builtin and then its argument prototype would still apply. */
14189char __res_send ();
14190/* The GNU C library defines this for functions which it implements
14191 to always fail with ENOSYS. Some functions are actually named
14192 something starting with __ and the normal name is an alias. */
14193#if defined (__stub___res_send) || defined (__stub_____res_send)
14194choke me
14195#else
14196char (*f) () = __res_send;
14197#endif
14198#ifdef __cplusplus
14199}
14200#endif
14201
14202int
14203main ()
14204{
14205return f != __res_send;
14206 ;
14207 return 0;
14208}
14209_ACEOF
14210rm -f conftest.$ac_objext conftest$ac_exeext
14211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14212 (eval $ac_link) 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
14216 { ac_try='test -s conftest$ac_exeext'
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14219 ac_status=$?
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; }; then
14222 ac_cv_func___res_send=yes
14223else
14224 echo "$as_me: failed program was:" >&5
14225sed 's/^/| /' conftest.$ac_ext >&5
14226
14227ac_cv_func___res_send=no
14228fi
14229rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14230fi
14231echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14232echo "${ECHO_T}$ac_cv_func___res_send" >&6
14233if test $ac_cv_func___res_send = yes; then
14234 :
14235else
14236 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14237echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14238if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14240else
14241 ac_check_lib_save_LIBS=$LIBS
14242LIBS="-lresolv $LIBS"
14243cat >conftest.$ac_ext <<_ACEOF
14244#line $LINENO "configure"
14245/* confdefs.h. */
14246_ACEOF
14247cat confdefs.h >>conftest.$ac_ext
14248cat >>conftest.$ac_ext <<_ACEOF
14249/* end confdefs.h. */
14250
14251/* Override any gcc2 internal prototype to avoid an error. */
14252#ifdef __cplusplus
14253extern "C"
14254#endif
14255/* We use char because int might match the return type of a gcc2
14256 builtin and then its argument prototype would still apply. */
14257char res_send ();
14258int
14259main ()
14260{
14261res_send ();
14262 ;
14263 return 0;
14264}
14265_ACEOF
14266rm -f conftest.$ac_objext conftest$ac_exeext
14267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14268 (eval $ac_link) 2>&5
14269 ac_status=$?
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try='test -s conftest$ac_exeext'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; }; then
14278 ac_cv_lib_resolv_res_send=yes
14279else
14280 echo "$as_me: failed program was:" >&5
14281sed 's/^/| /' conftest.$ac_ext >&5
14282
14283ac_cv_lib_resolv_res_send=no
14284fi
14285rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14286LIBS=$ac_check_lib_save_LIBS
14287fi
14288echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14289echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14290if test $ac_cv_lib_resolv_res_send = yes; then
14291 resolv=yes
14292else
14293 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14294echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14295if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14296 echo $ECHO_N "(cached) $ECHO_C" >&6
14297else
14298 ac_check_lib_save_LIBS=$LIBS
14299LIBS="-lresolv $LIBS"
14300cat >conftest.$ac_ext <<_ACEOF
14301#line $LINENO "configure"
14302/* confdefs.h. */
14303_ACEOF
14304cat confdefs.h >>conftest.$ac_ext
14305cat >>conftest.$ac_ext <<_ACEOF
14306/* end confdefs.h. */
14307
14308/* Override any gcc2 internal prototype to avoid an error. */
14309#ifdef __cplusplus
14310extern "C"
14311#endif
14312/* We use char because int might match the return type of a gcc2
14313 builtin and then its argument prototype would still apply. */
14314char __res_send ();
14315int
14316main ()
14317{
14318__res_send ();
14319 ;
14320 return 0;
14321}
14322_ACEOF
14323rm -f conftest.$ac_objext conftest$ac_exeext
14324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14325 (eval $ac_link) 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } &&
14329 { ac_try='test -s conftest$ac_exeext'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 ac_cv_lib_resolv___res_send=yes
14336else
14337 echo "$as_me: failed program was:" >&5
14338sed 's/^/| /' conftest.$ac_ext >&5
14339
14340ac_cv_lib_resolv___res_send=no
14341fi
14342rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14343LIBS=$ac_check_lib_save_LIBS
14344fi
14345echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14346echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14347if test $ac_cv_lib_resolv___res_send = yes; then
14348 resolv=yes
14349fi
14350
14351fi
14352
14353fi
14354
14355fi
14356
14357 if test "$resolv" = yes ; then
14358 RESOLVLIB=-lresolv
14359
14360cat >>confdefs.h <<\_ACEOF
14361#define HAVE_LIBRESOLV 1
14362_ACEOF
14363
14364 else
14365 RESOLVLIB=
14366 fi
14367 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14368echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14369if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371else
14372 cat >conftest.$ac_ext <<_ACEOF
14373#line $LINENO "configure"
14374/* confdefs.h. */
14375_ACEOF
14376cat confdefs.h >>conftest.$ac_ext
14377cat >>conftest.$ac_ext <<_ACEOF
14378/* end confdefs.h. */
14379/* System header to define __stub macros and hopefully few prototypes,
14380 which can conflict with char hes_getmailhost (); below.
14381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14382 <limits.h> exists even on freestanding compilers. */
14383#ifdef __STDC__
14384# include <limits.h>
14385#else
14386# include <assert.h>
14387#endif
14388/* Override any gcc2 internal prototype to avoid an error. */
14389#ifdef __cplusplus
14390extern "C"
14391{
14392#endif
14393/* We use char because int might match the return type of a gcc2
14394 builtin and then its argument prototype would still apply. */
14395char hes_getmailhost ();
14396/* The GNU C library defines this for functions which it implements
14397 to always fail with ENOSYS. Some functions are actually named
14398 something starting with __ and the normal name is an alias. */
14399#if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14400choke me
14401#else
14402char (*f) () = hes_getmailhost;
14403#endif
14404#ifdef __cplusplus
14405}
14406#endif
14407
14408int
14409main ()
14410{
14411return f != hes_getmailhost;
14412 ;
14413 return 0;
14414}
14415_ACEOF
14416rm -f conftest.$ac_objext conftest$ac_exeext
14417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14418 (eval $ac_link) 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } &&
14422 { ac_try='test -s conftest$ac_exeext'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 ac_cv_func_hes_getmailhost=yes
14429else
14430 echo "$as_me: failed program was:" >&5
14431sed 's/^/| /' conftest.$ac_ext >&5
14432
14433ac_cv_func_hes_getmailhost=no
14434fi
14435rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14436fi
14437echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14438echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14439if test $ac_cv_func_hes_getmailhost = yes; then
14440 :
14441else
14442 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14443echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14444if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14446else
14447 ac_check_lib_save_LIBS=$LIBS
14448LIBS="-lhesiod $RESOLVLIB $LIBS"
14449cat >conftest.$ac_ext <<_ACEOF
14450#line $LINENO "configure"
14451/* confdefs.h. */
14452_ACEOF
14453cat confdefs.h >>conftest.$ac_ext
14454cat >>conftest.$ac_ext <<_ACEOF
14455/* end confdefs.h. */
14456
14457/* Override any gcc2 internal prototype to avoid an error. */
14458#ifdef __cplusplus
14459extern "C"
14460#endif
14461/* We use char because int might match the return type of a gcc2
14462 builtin and then its argument prototype would still apply. */
14463char hes_getmailhost ();
14464int
14465main ()
14466{
14467hes_getmailhost ();
14468 ;
14469 return 0;
14470}
14471_ACEOF
14472rm -f conftest.$ac_objext conftest$ac_exeext
14473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14474 (eval $ac_link) 2>&5
14475 ac_status=$?
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } &&
14478 { ac_try='test -s conftest$ac_exeext'
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5
14481 ac_status=$?
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; }; then
14484 ac_cv_lib_hesiod_hes_getmailhost=yes
14485else
14486 echo "$as_me: failed program was:" >&5
14487sed 's/^/| /' conftest.$ac_ext >&5
14488
14489ac_cv_lib_hesiod_hes_getmailhost=no
14490fi
14491rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14492LIBS=$ac_check_lib_save_LIBS
14493fi
14494echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14495echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14496if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14497
14498cat >>confdefs.h <<\_ACEOF
14499#define HAVE_LIBHESIOD 1
14500_ACEOF
14501
14502else
14503 :
14504fi
14505
14506fi
14507
14508fi
14509
14510# These tell us which Kerberos-related libraries to use.
14511if test "${with_kerberos+set}" = set; then
14512
14513echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14514echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14515if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14517else
14518 ac_check_lib_save_LIBS=$LIBS
14519LIBS="-lcom_err $LIBS"
14520cat >conftest.$ac_ext <<_ACEOF
14521#line $LINENO "configure"
14522/* confdefs.h. */
14523_ACEOF
14524cat confdefs.h >>conftest.$ac_ext
14525cat >>conftest.$ac_ext <<_ACEOF
14526/* end confdefs.h. */
14527
14528/* Override any gcc2 internal prototype to avoid an error. */
14529#ifdef __cplusplus
14530extern "C"
14531#endif
14532/* We use char because int might match the return type of a gcc2
14533 builtin and then its argument prototype would still apply. */
14534char com_err ();
14535int
14536main ()
14537{
14538com_err ();
14539 ;
14540 return 0;
14541}
14542_ACEOF
14543rm -f conftest.$ac_objext conftest$ac_exeext
14544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14545 (eval $ac_link) 2>&5
14546 ac_status=$?
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
14549 { ac_try='test -s conftest$ac_exeext'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
14555 ac_cv_lib_com_err_com_err=yes
14556else
14557 echo "$as_me: failed program was:" >&5
14558sed 's/^/| /' conftest.$ac_ext >&5
14559
14560ac_cv_lib_com_err_com_err=no
14561fi
14562rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14563LIBS=$ac_check_lib_save_LIBS
14564fi
14565echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14566echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14567if test $ac_cv_lib_com_err_com_err = yes; then
14568 cat >>confdefs.h <<_ACEOF
14569#define HAVE_LIBCOM_ERR 1
14570_ACEOF
14571
14572 LIBS="-lcom_err $LIBS"
14573
14574fi
14575
14576
14577echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14578echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14579if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14581else
14582 ac_check_lib_save_LIBS=$LIBS
14583LIBS="-lk5crypto $LIBS"
14584cat >conftest.$ac_ext <<_ACEOF
14585#line $LINENO "configure"
14586/* confdefs.h. */
14587_ACEOF
14588cat confdefs.h >>conftest.$ac_ext
14589cat >>conftest.$ac_ext <<_ACEOF
14590/* end confdefs.h. */
14591
14592/* Override any gcc2 internal prototype to avoid an error. */
14593#ifdef __cplusplus
14594extern "C"
14595#endif
14596/* We use char because int might match the return type of a gcc2
14597 builtin and then its argument prototype would still apply. */
14598char mit_des_cbc_encrypt ();
14599int
14600main ()
14601{
14602mit_des_cbc_encrypt ();
14603 ;
14604 return 0;
14605}
14606_ACEOF
14607rm -f conftest.$ac_objext conftest$ac_exeext
14608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14609 (eval $ac_link) 2>&5
14610 ac_status=$?
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); } &&
14613 { ac_try='test -s conftest$ac_exeext'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14620else
14621 echo "$as_me: failed program was:" >&5
14622sed 's/^/| /' conftest.$ac_ext >&5
14623
14624ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14625fi
14626rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14627LIBS=$ac_check_lib_save_LIBS
14628fi
14629echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14630echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14631if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14632 cat >>confdefs.h <<_ACEOF
14633#define HAVE_LIBK5CRYPTO 1
14634_ACEOF
14635
14636 LIBS="-lk5crypto $LIBS"
14637
14638fi
14639
14640
14641echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14642echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14643if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14645else
14646 ac_check_lib_save_LIBS=$LIBS
14647LIBS="-lcrypto $LIBS"
14648cat >conftest.$ac_ext <<_ACEOF
14649#line $LINENO "configure"
14650/* confdefs.h. */
14651_ACEOF
14652cat confdefs.h >>conftest.$ac_ext
14653cat >>conftest.$ac_ext <<_ACEOF
14654/* end confdefs.h. */
14655
14656/* Override any gcc2 internal prototype to avoid an error. */
14657#ifdef __cplusplus
14658extern "C"
14659#endif
14660/* We use char because int might match the return type of a gcc2
14661 builtin and then its argument prototype would still apply. */
14662char mit_des_cbc_encrypt ();
14663int
14664main ()
14665{
14666mit_des_cbc_encrypt ();
14667 ;
14668 return 0;
14669}
14670_ACEOF
14671rm -f conftest.$ac_objext conftest$ac_exeext
14672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14673 (eval $ac_link) 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } &&
14677 { ac_try='test -s conftest$ac_exeext'
14678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14679 (eval $ac_try) 2>&5
14680 ac_status=$?
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); }; }; then
14683 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14684else
14685 echo "$as_me: failed program was:" >&5
14686sed 's/^/| /' conftest.$ac_ext >&5
14687
14688ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14689fi
14690rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14691LIBS=$ac_check_lib_save_LIBS
14692fi
14693echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14694echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14695if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14696 cat >>confdefs.h <<_ACEOF
14697#define HAVE_LIBCRYPTO 1
14698_ACEOF
14699
14700 LIBS="-lcrypto $LIBS"
14701
14702fi
14703
14704
14705echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14706echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14707if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14709else
14710 ac_check_lib_save_LIBS=$LIBS
14711LIBS="-lkrb5 $LIBS"
14712cat >conftest.$ac_ext <<_ACEOF
14713#line $LINENO "configure"
14714/* confdefs.h. */
14715_ACEOF
14716cat confdefs.h >>conftest.$ac_ext
14717cat >>conftest.$ac_ext <<_ACEOF
14718/* end confdefs.h. */
14719
14720/* Override any gcc2 internal prototype to avoid an error. */
14721#ifdef __cplusplus
14722extern "C"
14723#endif
14724/* We use char because int might match the return type of a gcc2
14725 builtin and then its argument prototype would still apply. */
14726char krb5_init_context ();
14727int
14728main ()
14729{
14730krb5_init_context ();
14731 ;
14732 return 0;
14733}
14734_ACEOF
14735rm -f conftest.$ac_objext conftest$ac_exeext
14736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14737 (eval $ac_link) 2>&5
14738 ac_status=$?
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } &&
14741 { ac_try='test -s conftest$ac_exeext'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
14747 ac_cv_lib_krb5_krb5_init_context=yes
14748else
14749 echo "$as_me: failed program was:" >&5
14750sed 's/^/| /' conftest.$ac_ext >&5
14751
14752ac_cv_lib_krb5_krb5_init_context=no
14753fi
14754rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14755LIBS=$ac_check_lib_save_LIBS
14756fi
14757echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14758echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14759if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14760 cat >>confdefs.h <<_ACEOF
14761#define HAVE_LIBKRB5 1
14762_ACEOF
14763
14764 LIBS="-lkrb5 $LIBS"
14765
14766fi
14767
14768 if test "${with_kerberos5+set}" != set; then
14769
14770echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14771echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14772if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14774else
14775 ac_check_lib_save_LIBS=$LIBS
14776LIBS="-ldes425 $LIBS"
14777cat >conftest.$ac_ext <<_ACEOF
14778#line $LINENO "configure"
14779/* confdefs.h. */
14780_ACEOF
14781cat confdefs.h >>conftest.$ac_ext
14782cat >>conftest.$ac_ext <<_ACEOF
14783/* end confdefs.h. */
14784
14785/* Override any gcc2 internal prototype to avoid an error. */
14786#ifdef __cplusplus
14787extern "C"
14788#endif
14789/* We use char because int might match the return type of a gcc2
14790 builtin and then its argument prototype would still apply. */
14791char des_cbc_encrypt ();
14792int
14793main ()
14794{
14795des_cbc_encrypt ();
14796 ;
14797 return 0;
14798}
14799_ACEOF
14800rm -f conftest.$ac_objext conftest$ac_exeext
14801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14802 (eval $ac_link) 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); } &&
14806 { ac_try='test -s conftest$ac_exeext'
14807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 (eval $ac_try) 2>&5
14809 ac_status=$?
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; }; then
14812 ac_cv_lib_des425_des_cbc_encrypt=yes
14813else
14814 echo "$as_me: failed program was:" >&5
14815sed 's/^/| /' conftest.$ac_ext >&5
14816
14817ac_cv_lib_des425_des_cbc_encrypt=no
14818fi
14819rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14820LIBS=$ac_check_lib_save_LIBS
14821fi
14822echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14823echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
14824if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
14825 cat >>confdefs.h <<_ACEOF
14826#define HAVE_LIBDES425 1
14827_ACEOF
14828
14829 LIBS="-ldes425 $LIBS"
14830
14831else
14832
14833echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14834echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14835if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14837else
14838 ac_check_lib_save_LIBS=$LIBS
14839LIBS="-ldes $LIBS"
14840cat >conftest.$ac_ext <<_ACEOF
14841#line $LINENO "configure"
14842/* confdefs.h. */
14843_ACEOF
14844cat confdefs.h >>conftest.$ac_ext
14845cat >>conftest.$ac_ext <<_ACEOF
14846/* end confdefs.h. */
14847
14848/* Override any gcc2 internal prototype to avoid an error. */
14849#ifdef __cplusplus
14850extern "C"
14851#endif
14852/* We use char because int might match the return type of a gcc2
14853 builtin and then its argument prototype would still apply. */
14854char des_cbc_encrypt ();
14855int
14856main ()
14857{
14858des_cbc_encrypt ();
14859 ;
14860 return 0;
14861}
14862_ACEOF
14863rm -f conftest.$ac_objext conftest$ac_exeext
14864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14865 (eval $ac_link) 2>&5
14866 ac_status=$?
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
14869 { ac_try='test -s conftest$ac_exeext'
14870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14872 ac_status=$?
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; }; then
14875 ac_cv_lib_des_des_cbc_encrypt=yes
14876else
14877 echo "$as_me: failed program was:" >&5
14878sed 's/^/| /' conftest.$ac_ext >&5
14879
14880ac_cv_lib_des_des_cbc_encrypt=no
14881fi
14882rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14883LIBS=$ac_check_lib_save_LIBS
14884fi
14885echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14886echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
14887if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
14888 cat >>confdefs.h <<_ACEOF
14889#define HAVE_LIBDES 1
14890_ACEOF
14891
14892 LIBS="-ldes $LIBS"
14893
14894fi
14895
14896fi
14897
14898
14899echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
14900echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
14901if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14903else
14904 ac_check_lib_save_LIBS=$LIBS
14905LIBS="-lkrb4 $LIBS"
14906cat >conftest.$ac_ext <<_ACEOF
14907#line $LINENO "configure"
14908/* confdefs.h. */
14909_ACEOF
14910cat confdefs.h >>conftest.$ac_ext
14911cat >>conftest.$ac_ext <<_ACEOF
14912/* end confdefs.h. */
14913
14914/* Override any gcc2 internal prototype to avoid an error. */
14915#ifdef __cplusplus
14916extern "C"
14917#endif
14918/* We use char because int might match the return type of a gcc2
14919 builtin and then its argument prototype would still apply. */
14920char krb_get_cred ();
14921int
14922main ()
14923{
14924krb_get_cred ();
14925 ;
14926 return 0;
14927}
14928_ACEOF
14929rm -f conftest.$ac_objext conftest$ac_exeext
14930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14931 (eval $ac_link) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } &&
14935 { ac_try='test -s conftest$ac_exeext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_cv_lib_krb4_krb_get_cred=yes
14942else
14943 echo "$as_me: failed program was:" >&5
14944sed 's/^/| /' conftest.$ac_ext >&5
14945
14946ac_cv_lib_krb4_krb_get_cred=no
14947fi
14948rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14949LIBS=$ac_check_lib_save_LIBS
14950fi
14951echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14952echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
14953if test $ac_cv_lib_krb4_krb_get_cred = yes; then
14954 cat >>confdefs.h <<_ACEOF
14955#define HAVE_LIBKRB4 1
14956_ACEOF
14957
14958 LIBS="-lkrb4 $LIBS"
14959
14960else
14961
14962echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
14963echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
14964if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14966else
14967 ac_check_lib_save_LIBS=$LIBS
14968LIBS="-lkrb $LIBS"
14969cat >conftest.$ac_ext <<_ACEOF
14970#line $LINENO "configure"
14971/* confdefs.h. */
14972_ACEOF
14973cat confdefs.h >>conftest.$ac_ext
14974cat >>conftest.$ac_ext <<_ACEOF
14975/* end confdefs.h. */
14976
14977/* Override any gcc2 internal prototype to avoid an error. */
14978#ifdef __cplusplus
14979extern "C"
14980#endif
14981/* We use char because int might match the return type of a gcc2
14982 builtin and then its argument prototype would still apply. */
14983char krb_get_cred ();
14984int
14985main ()
14986{
14987krb_get_cred ();
14988 ;
14989 return 0;
14990}
14991_ACEOF
14992rm -f conftest.$ac_objext conftest$ac_exeext
14993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14994 (eval $ac_link) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } &&
14998 { ac_try='test -s conftest$ac_exeext'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; }; then
15004 ac_cv_lib_krb_krb_get_cred=yes
15005else
15006 echo "$as_me: failed program was:" >&5
15007sed 's/^/| /' conftest.$ac_ext >&5
15008
15009ac_cv_lib_krb_krb_get_cred=no
15010fi
15011rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15012LIBS=$ac_check_lib_save_LIBS
15013fi
15014echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15015echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15016if test $ac_cv_lib_krb_krb_get_cred = yes; then
15017 cat >>confdefs.h <<_ACEOF
15018#define HAVE_LIBKRB 1
15019_ACEOF
15020
15021 LIBS="-lkrb $LIBS"
15022
15023fi
15024
15025fi
15026
15027 fi
15028
15029 if test "${with_kerberos5+set}" = set; then
15030
15031for ac_header in krb5.h
15032do
15033as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15034if eval "test \"\${$as_ac_Header+set}\" = set"; then
15035 echo "$as_me:$LINENO: checking for $ac_header" >&5
15036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15037if eval "test \"\${$as_ac_Header+set}\" = set"; then
15038 echo $ECHO_N "(cached) $ECHO_C" >&6
15039fi
15040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15042else
15043 # Is the header compilable?
15044echo "$as_me:$LINENO: checking $ac_header usability" >&5
15045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15046cat >conftest.$ac_ext <<_ACEOF
15047#line $LINENO "configure"
15048/* confdefs.h. */
15049_ACEOF
15050cat confdefs.h >>conftest.$ac_ext
15051cat >>conftest.$ac_ext <<_ACEOF
15052/* end confdefs.h. */
15053$ac_includes_default
15054#include <$ac_header>
15055_ACEOF
15056rm -f conftest.$ac_objext
15057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058 (eval $ac_compile) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
15062 { ac_try='test -s conftest.$ac_objext'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15068 ac_header_compiler=yes
15069else
15070 echo "$as_me: failed program was:" >&5
15071sed 's/^/| /' conftest.$ac_ext >&5
15072
15073ac_header_compiler=no
15074fi
15075rm -f conftest.$ac_objext conftest.$ac_ext
15076echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15077echo "${ECHO_T}$ac_header_compiler" >&6
15078
15079# Is the header present?
15080echo "$as_me:$LINENO: checking $ac_header presence" >&5
15081echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15082cat >conftest.$ac_ext <<_ACEOF
15083#line $LINENO "configure"
15084/* confdefs.h. */
15085_ACEOF
15086cat confdefs.h >>conftest.$ac_ext
15087cat >>conftest.$ac_ext <<_ACEOF
15088/* end confdefs.h. */
15089#include <$ac_header>
15090_ACEOF
15091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15093 ac_status=$?
15094 grep -v '^ *+' conftest.er1 >conftest.err
15095 rm -f conftest.er1
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } >/dev/null; then
15099 if test -s conftest.err; then
15100 ac_cpp_err=$ac_c_preproc_warn_flag
15101 else
15102 ac_cpp_err=
15103 fi
15104else
15105 ac_cpp_err=yes
15106fi
15107if test -z "$ac_cpp_err"; then
15108 ac_header_preproc=yes
15109else
15110 echo "$as_me: failed program was:" >&5
15111sed 's/^/| /' conftest.$ac_ext >&5
15112
15113 ac_header_preproc=no
15114fi
15115rm -f conftest.err conftest.$ac_ext
15116echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15117echo "${ECHO_T}$ac_header_preproc" >&6
15118
15119# So? What about this header?
15120case $ac_header_compiler:$ac_header_preproc in
15121 yes:no )
15122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15123echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15125echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15126 (
15127 cat <<\_ASBOX
15128## ------------------------------------ ##
15129## Report this to bug-autoconf@gnu.org. ##
15130## ------------------------------------ ##
15131_ASBOX
15132 ) |
15133 sed "s/^/$as_me: WARNING: /" >&2
15134 ;;
15135 no:yes )
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15137echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15139echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15141echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15142 (
15143 cat <<\_ASBOX
15144## ------------------------------------ ##
15145## Report this to bug-autoconf@gnu.org. ##
15146## ------------------------------------ ##
15147_ASBOX
15148 ) |
15149 sed "s/^/$as_me: WARNING: /" >&2
15150 ;;
15151esac
15152echo "$as_me:$LINENO: checking for $ac_header" >&5
15153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15154if eval "test \"\${$as_ac_Header+set}\" = set"; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15156else
15157 eval "$as_ac_Header=$ac_header_preproc"
15158fi
15159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15161
15162fi
15163if test `eval echo '${'$as_ac_Header'}'` = yes; then
15164 cat >>confdefs.h <<_ACEOF
15165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15166_ACEOF
15167
15168fi
15169
15170done
15171
15172 else
15173
15174for ac_header in des.h
15175do
15176as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15177if eval "test \"\${$as_ac_Header+set}\" = set"; then
15178 echo "$as_me:$LINENO: checking for $ac_header" >&5
15179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15180if eval "test \"\${$as_ac_Header+set}\" = set"; then
15181 echo $ECHO_N "(cached) $ECHO_C" >&6
15182fi
15183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15185else
15186 # Is the header compilable?
15187echo "$as_me:$LINENO: checking $ac_header usability" >&5
15188echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15189cat >conftest.$ac_ext <<_ACEOF
15190#line $LINENO "configure"
15191/* confdefs.h. */
15192_ACEOF
15193cat confdefs.h >>conftest.$ac_ext
15194cat >>conftest.$ac_ext <<_ACEOF
15195/* end confdefs.h. */
15196$ac_includes_default
15197#include <$ac_header>
15198_ACEOF
15199rm -f conftest.$ac_objext
15200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15201 (eval $ac_compile) 2>&5
15202 ac_status=$?
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } &&
15205 { ac_try='test -s conftest.$ac_objext'
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15208 ac_status=$?
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; }; then
15211 ac_header_compiler=yes
15212else
15213 echo "$as_me: failed program was:" >&5
15214sed 's/^/| /' conftest.$ac_ext >&5
15215
15216ac_header_compiler=no
15217fi
15218rm -f conftest.$ac_objext conftest.$ac_ext
15219echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15220echo "${ECHO_T}$ac_header_compiler" >&6
15221
15222# Is the header present?
15223echo "$as_me:$LINENO: checking $ac_header presence" >&5
15224echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15225cat >conftest.$ac_ext <<_ACEOF
15226#line $LINENO "configure"
15227/* confdefs.h. */
15228_ACEOF
15229cat confdefs.h >>conftest.$ac_ext
15230cat >>conftest.$ac_ext <<_ACEOF
15231/* end confdefs.h. */
15232#include <$ac_header>
15233_ACEOF
15234if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15236 ac_status=$?
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } >/dev/null; then
15242 if test -s conftest.err; then
15243 ac_cpp_err=$ac_c_preproc_warn_flag
15244 else
15245 ac_cpp_err=
15246 fi
15247else
15248 ac_cpp_err=yes
15249fi
15250if test -z "$ac_cpp_err"; then
15251 ac_header_preproc=yes
15252else
15253 echo "$as_me: failed program was:" >&5
15254sed 's/^/| /' conftest.$ac_ext >&5
15255
15256 ac_header_preproc=no
15257fi
15258rm -f conftest.err conftest.$ac_ext
15259echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15260echo "${ECHO_T}$ac_header_preproc" >&6
15261
15262# So? What about this header?
15263case $ac_header_compiler:$ac_header_preproc in
15264 yes:no )
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15266echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15269 (
15270 cat <<\_ASBOX
15271## ------------------------------------ ##
15272## Report this to bug-autoconf@gnu.org. ##
15273## ------------------------------------ ##
15274_ASBOX
15275 ) |
15276 sed "s/^/$as_me: WARNING: /" >&2
15277 ;;
15278 no:yes )
15279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15280echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15282echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15284echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15285 (
15286 cat <<\_ASBOX
15287## ------------------------------------ ##
15288## Report this to bug-autoconf@gnu.org. ##
15289## ------------------------------------ ##
15290_ASBOX
15291 ) |
15292 sed "s/^/$as_me: WARNING: /" >&2
15293 ;;
15294esac
15295echo "$as_me:$LINENO: checking for $ac_header" >&5
15296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15297if eval "test \"\${$as_ac_Header+set}\" = set"; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15299else
15300 eval "$as_ac_Header=$ac_header_preproc"
15301fi
15302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15304
15305fi
15306if test `eval echo '${'$as_ac_Header'}'` = yes; then
15307 cat >>confdefs.h <<_ACEOF
15308#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15309_ACEOF
15310
15311else
15312
15313for ac_header in kerberosIV/des.h
15314do
15315as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15316if eval "test \"\${$as_ac_Header+set}\" = set"; then
15317 echo "$as_me:$LINENO: checking for $ac_header" >&5
15318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15319if eval "test \"\${$as_ac_Header+set}\" = set"; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15321fi
15322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15323echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15324else
15325 # Is the header compilable?
15326echo "$as_me:$LINENO: checking $ac_header usability" >&5
15327echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15328cat >conftest.$ac_ext <<_ACEOF
15329#line $LINENO "configure"
15330/* confdefs.h. */
15331_ACEOF
15332cat confdefs.h >>conftest.$ac_ext
15333cat >>conftest.$ac_ext <<_ACEOF
15334/* end confdefs.h. */
15335$ac_includes_default
15336#include <$ac_header>
15337_ACEOF
15338rm -f conftest.$ac_objext
15339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15340 (eval $ac_compile) 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } &&
15344 { ac_try='test -s conftest.$ac_objext'
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15347 ac_status=$?
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15350 ac_header_compiler=yes
15351else
15352 echo "$as_me: failed program was:" >&5
15353sed 's/^/| /' conftest.$ac_ext >&5
15354
15355ac_header_compiler=no
15356fi
15357rm -f conftest.$ac_objext conftest.$ac_ext
15358echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15359echo "${ECHO_T}$ac_header_compiler" >&6
15360
15361# Is the header present?
15362echo "$as_me:$LINENO: checking $ac_header presence" >&5
15363echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15364cat >conftest.$ac_ext <<_ACEOF
15365#line $LINENO "configure"
15366/* confdefs.h. */
15367_ACEOF
15368cat confdefs.h >>conftest.$ac_ext
15369cat >>conftest.$ac_ext <<_ACEOF
15370/* end confdefs.h. */
15371#include <$ac_header>
15372_ACEOF
15373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15375 ac_status=$?
15376 grep -v '^ *+' conftest.er1 >conftest.err
15377 rm -f conftest.er1
15378 cat conftest.err >&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } >/dev/null; then
15381 if test -s conftest.err; then
15382 ac_cpp_err=$ac_c_preproc_warn_flag
15383 else
15384 ac_cpp_err=
15385 fi
15386else
15387 ac_cpp_err=yes
15388fi
15389if test -z "$ac_cpp_err"; then
15390 ac_header_preproc=yes
15391else
15392 echo "$as_me: failed program was:" >&5
15393sed 's/^/| /' conftest.$ac_ext >&5
15394
15395 ac_header_preproc=no
15396fi
15397rm -f conftest.err conftest.$ac_ext
15398echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15399echo "${ECHO_T}$ac_header_preproc" >&6
15400
15401# So? What about this header?
15402case $ac_header_compiler:$ac_header_preproc in
15403 yes:no )
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15405echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15407echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15408 (
15409 cat <<\_ASBOX
15410## ------------------------------------ ##
15411## Report this to bug-autoconf@gnu.org. ##
15412## ------------------------------------ ##
15413_ASBOX
15414 ) |
15415 sed "s/^/$as_me: WARNING: /" >&2
15416 ;;
15417 no:yes )
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15419echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15421echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15423echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15424 (
15425 cat <<\_ASBOX
15426## ------------------------------------ ##
15427## Report this to bug-autoconf@gnu.org. ##
15428## ------------------------------------ ##
15429_ASBOX
15430 ) |
15431 sed "s/^/$as_me: WARNING: /" >&2
15432 ;;
15433esac
15434echo "$as_me:$LINENO: checking for $ac_header" >&5
15435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15436if eval "test \"\${$as_ac_Header+set}\" = set"; then
15437 echo $ECHO_N "(cached) $ECHO_C" >&6
15438else
15439 eval "$as_ac_Header=$ac_header_preproc"
15440fi
15441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15443
15444fi
15445if test `eval echo '${'$as_ac_Header'}'` = yes; then
15446 cat >>confdefs.h <<_ACEOF
15447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15448_ACEOF
15449
15450else
15451
15452for ac_header in kerberos/des.h
15453do
15454as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15455if eval "test \"\${$as_ac_Header+set}\" = set"; then
15456 echo "$as_me:$LINENO: checking for $ac_header" >&5
15457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15458if eval "test \"\${$as_ac_Header+set}\" = set"; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15460fi
15461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15463else
15464 # Is the header compilable?
15465echo "$as_me:$LINENO: checking $ac_header usability" >&5
15466echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15467cat >conftest.$ac_ext <<_ACEOF
15468#line $LINENO "configure"
15469/* confdefs.h. */
15470_ACEOF
15471cat confdefs.h >>conftest.$ac_ext
15472cat >>conftest.$ac_ext <<_ACEOF
15473/* end confdefs.h. */
15474$ac_includes_default
15475#include <$ac_header>
15476_ACEOF
15477rm -f conftest.$ac_objext
15478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15479 (eval $ac_compile) 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } &&
15483 { ac_try='test -s conftest.$ac_objext'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15489 ac_header_compiler=yes
15490else
15491 echo "$as_me: failed program was:" >&5
15492sed 's/^/| /' conftest.$ac_ext >&5
15493
15494ac_header_compiler=no
15495fi
15496rm -f conftest.$ac_objext conftest.$ac_ext
15497echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15498echo "${ECHO_T}$ac_header_compiler" >&6
15499
15500# Is the header present?
15501echo "$as_me:$LINENO: checking $ac_header presence" >&5
15502echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15503cat >conftest.$ac_ext <<_ACEOF
15504#line $LINENO "configure"
15505/* confdefs.h. */
15506_ACEOF
15507cat confdefs.h >>conftest.$ac_ext
15508cat >>conftest.$ac_ext <<_ACEOF
15509/* end confdefs.h. */
15510#include <$ac_header>
15511_ACEOF
15512if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15514 ac_status=$?
15515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } >/dev/null; then
15520 if test -s conftest.err; then
15521 ac_cpp_err=$ac_c_preproc_warn_flag
15522 else
15523 ac_cpp_err=
15524 fi
15525else
15526 ac_cpp_err=yes
15527fi
15528if test -z "$ac_cpp_err"; then
15529 ac_header_preproc=yes
15530else
15531 echo "$as_me: failed program was:" >&5
15532sed 's/^/| /' conftest.$ac_ext >&5
15533
15534 ac_header_preproc=no
15535fi
15536rm -f conftest.err conftest.$ac_ext
15537echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15538echo "${ECHO_T}$ac_header_preproc" >&6
15539
15540# So? What about this header?
15541case $ac_header_compiler:$ac_header_preproc in
15542 yes:no )
15543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15544echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15547 (
15548 cat <<\_ASBOX
15549## ------------------------------------ ##
15550## Report this to bug-autoconf@gnu.org. ##
15551## ------------------------------------ ##
15552_ASBOX
15553 ) |
15554 sed "s/^/$as_me: WARNING: /" >&2
15555 ;;
15556 no:yes )
15557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15558echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15560echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15562echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15563 (
15564 cat <<\_ASBOX
15565## ------------------------------------ ##
15566## Report this to bug-autoconf@gnu.org. ##
15567## ------------------------------------ ##
15568_ASBOX
15569 ) |
15570 sed "s/^/$as_me: WARNING: /" >&2
15571 ;;
15572esac
15573echo "$as_me:$LINENO: checking for $ac_header" >&5
15574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15575if eval "test \"\${$as_ac_Header+set}\" = set"; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15577else
15578 eval "$as_ac_Header=$ac_header_preproc"
15579fi
15580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15581echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15582
15583fi
15584if test `eval echo '${'$as_ac_Header'}'` = yes; then
15585 cat >>confdefs.h <<_ACEOF
15586#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15587_ACEOF
15588
15589fi
15590
15591done
15592
15593fi
15594
15595done
15596
15597fi
15598
15599done
15600
15601
15602for ac_header in krb.h
15603do
15604as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15605if eval "test \"\${$as_ac_Header+set}\" = set"; then
15606 echo "$as_me:$LINENO: checking for $ac_header" >&5
15607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15608if eval "test \"\${$as_ac_Header+set}\" = set"; then
15609 echo $ECHO_N "(cached) $ECHO_C" >&6
15610fi
15611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15613else
15614 # Is the header compilable?
15615echo "$as_me:$LINENO: checking $ac_header usability" >&5
15616echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15617cat >conftest.$ac_ext <<_ACEOF
15618#line $LINENO "configure"
15619/* confdefs.h. */
15620_ACEOF
15621cat confdefs.h >>conftest.$ac_ext
15622cat >>conftest.$ac_ext <<_ACEOF
15623/* end confdefs.h. */
15624$ac_includes_default
15625#include <$ac_header>
15626_ACEOF
15627rm -f conftest.$ac_objext
15628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15629 (eval $ac_compile) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } &&
15633 { ac_try='test -s conftest.$ac_objext'
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15636 ac_status=$?
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; }; then
15639 ac_header_compiler=yes
15640else
15641 echo "$as_me: failed program was:" >&5
15642sed 's/^/| /' conftest.$ac_ext >&5
15643
15644ac_header_compiler=no
15645fi
15646rm -f conftest.$ac_objext conftest.$ac_ext
15647echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15648echo "${ECHO_T}$ac_header_compiler" >&6
15649
15650# Is the header present?
15651echo "$as_me:$LINENO: checking $ac_header presence" >&5
15652echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15653cat >conftest.$ac_ext <<_ACEOF
15654#line $LINENO "configure"
15655/* confdefs.h. */
15656_ACEOF
15657cat confdefs.h >>conftest.$ac_ext
15658cat >>conftest.$ac_ext <<_ACEOF
15659/* end confdefs.h. */
15660#include <$ac_header>
15661_ACEOF
15662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15664 ac_status=$?
15665 grep -v '^ *+' conftest.er1 >conftest.err
15666 rm -f conftest.er1
15667 cat conftest.err >&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } >/dev/null; then
15670 if test -s conftest.err; then
15671 ac_cpp_err=$ac_c_preproc_warn_flag
15672 else
15673 ac_cpp_err=
15674 fi
15675else
15676 ac_cpp_err=yes
15677fi
15678if test -z "$ac_cpp_err"; then
15679 ac_header_preproc=yes
15680else
15681 echo "$as_me: failed program was:" >&5
15682sed 's/^/| /' conftest.$ac_ext >&5
15683
15684 ac_header_preproc=no
15685fi
15686rm -f conftest.err conftest.$ac_ext
15687echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15688echo "${ECHO_T}$ac_header_preproc" >&6
15689
15690# So? What about this header?
15691case $ac_header_compiler:$ac_header_preproc in
15692 yes:no )
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15694echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15697 (
15698 cat <<\_ASBOX
15699## ------------------------------------ ##
15700## Report this to bug-autoconf@gnu.org. ##
15701## ------------------------------------ ##
15702_ASBOX
15703 ) |
15704 sed "s/^/$as_me: WARNING: /" >&2
15705 ;;
15706 no:yes )
15707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15708echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15710echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15713 (
15714 cat <<\_ASBOX
15715## ------------------------------------ ##
15716## Report this to bug-autoconf@gnu.org. ##
15717## ------------------------------------ ##
15718_ASBOX
15719 ) |
15720 sed "s/^/$as_me: WARNING: /" >&2
15721 ;;
15722esac
15723echo "$as_me:$LINENO: checking for $ac_header" >&5
15724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15725if eval "test \"\${$as_ac_Header+set}\" = set"; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15727else
15728 eval "$as_ac_Header=$ac_header_preproc"
15729fi
15730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15732
15733fi
15734if test `eval echo '${'$as_ac_Header'}'` = yes; then
15735 cat >>confdefs.h <<_ACEOF
15736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15737_ACEOF
15738
15739else
15740
15741for ac_header in kerberosIV/krb.h
15742do
15743as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15744if eval "test \"\${$as_ac_Header+set}\" = set"; then
15745 echo "$as_me:$LINENO: checking for $ac_header" >&5
15746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15747if eval "test \"\${$as_ac_Header+set}\" = set"; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15749fi
15750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15751echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15752else
15753 # Is the header compilable?
15754echo "$as_me:$LINENO: checking $ac_header usability" >&5
15755echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15756cat >conftest.$ac_ext <<_ACEOF
15757#line $LINENO "configure"
15758/* confdefs.h. */
15759_ACEOF
15760cat confdefs.h >>conftest.$ac_ext
15761cat >>conftest.$ac_ext <<_ACEOF
15762/* end confdefs.h. */
15763$ac_includes_default
15764#include <$ac_header>
15765_ACEOF
15766rm -f conftest.$ac_objext
15767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15768 (eval $ac_compile) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } &&
15772 { ac_try='test -s conftest.$ac_objext'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 ac_header_compiler=yes
15779else
15780 echo "$as_me: failed program was:" >&5
15781sed 's/^/| /' conftest.$ac_ext >&5
15782
15783ac_header_compiler=no
15784fi
15785rm -f conftest.$ac_objext conftest.$ac_ext
15786echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15787echo "${ECHO_T}$ac_header_compiler" >&6
15788
15789# Is the header present?
15790echo "$as_me:$LINENO: checking $ac_header presence" >&5
15791echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15792cat >conftest.$ac_ext <<_ACEOF
15793#line $LINENO "configure"
15794/* confdefs.h. */
15795_ACEOF
15796cat confdefs.h >>conftest.$ac_ext
15797cat >>conftest.$ac_ext <<_ACEOF
15798/* end confdefs.h. */
15799#include <$ac_header>
15800_ACEOF
15801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15803 ac_status=$?
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } >/dev/null; then
15809 if test -s conftest.err; then
15810 ac_cpp_err=$ac_c_preproc_warn_flag
15811 else
15812 ac_cpp_err=
15813 fi
15814else
15815 ac_cpp_err=yes
15816fi
15817if test -z "$ac_cpp_err"; then
15818 ac_header_preproc=yes
15819else
15820 echo "$as_me: failed program was:" >&5
15821sed 's/^/| /' conftest.$ac_ext >&5
15822
15823 ac_header_preproc=no
15824fi
15825rm -f conftest.err conftest.$ac_ext
15826echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15827echo "${ECHO_T}$ac_header_preproc" >&6
15828
15829# So? What about this header?
15830case $ac_header_compiler:$ac_header_preproc in
15831 yes:no )
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15835echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15836 (
15837 cat <<\_ASBOX
15838## ------------------------------------ ##
15839## Report this to bug-autoconf@gnu.org. ##
15840## ------------------------------------ ##
15841_ASBOX
15842 ) |
15843 sed "s/^/$as_me: WARNING: /" >&2
15844 ;;
15845 no:yes )
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15847echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15849echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15852 (
15853 cat <<\_ASBOX
15854## ------------------------------------ ##
15855## Report this to bug-autoconf@gnu.org. ##
15856## ------------------------------------ ##
15857_ASBOX
15858 ) |
15859 sed "s/^/$as_me: WARNING: /" >&2
15860 ;;
15861esac
15862echo "$as_me:$LINENO: checking for $ac_header" >&5
15863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15864if eval "test \"\${$as_ac_Header+set}\" = set"; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15866else
15867 eval "$as_ac_Header=$ac_header_preproc"
15868fi
15869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15871
15872fi
15873if test `eval echo '${'$as_ac_Header'}'` = yes; then
15874 cat >>confdefs.h <<_ACEOF
15875#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15876_ACEOF
15877
15878else
15879
15880for ac_header in kerberos/krb.h
15881do
15882as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15883if eval "test \"\${$as_ac_Header+set}\" = set"; then
15884 echo "$as_me:$LINENO: checking for $ac_header" >&5
15885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15886if eval "test \"\${$as_ac_Header+set}\" = set"; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15888fi
15889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15890echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15891else
15892 # Is the header compilable?
15893echo "$as_me:$LINENO: checking $ac_header usability" >&5
15894echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15895cat >conftest.$ac_ext <<_ACEOF
15896#line $LINENO "configure"
15897/* confdefs.h. */
15898_ACEOF
15899cat confdefs.h >>conftest.$ac_ext
15900cat >>conftest.$ac_ext <<_ACEOF
15901/* end confdefs.h. */
15902$ac_includes_default
15903#include <$ac_header>
15904_ACEOF
15905rm -f conftest.$ac_objext
15906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15907 (eval $ac_compile) 2>&5
15908 ac_status=$?
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } &&
15911 { ac_try='test -s conftest.$ac_objext'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15914 ac_status=$?
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; }; then
15917 ac_header_compiler=yes
15918else
15919 echo "$as_me: failed program was:" >&5
15920sed 's/^/| /' conftest.$ac_ext >&5
15921
15922ac_header_compiler=no
15923fi
15924rm -f conftest.$ac_objext conftest.$ac_ext
15925echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15926echo "${ECHO_T}$ac_header_compiler" >&6
15927
15928# Is the header present?
15929echo "$as_me:$LINENO: checking $ac_header presence" >&5
15930echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15931cat >conftest.$ac_ext <<_ACEOF
15932#line $LINENO "configure"
15933/* confdefs.h. */
15934_ACEOF
15935cat confdefs.h >>conftest.$ac_ext
15936cat >>conftest.$ac_ext <<_ACEOF
15937/* end confdefs.h. */
15938#include <$ac_header>
15939_ACEOF
15940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15942 ac_status=$?
15943 grep -v '^ *+' conftest.er1 >conftest.err
15944 rm -f conftest.er1
15945 cat conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } >/dev/null; then
15948 if test -s conftest.err; then
15949 ac_cpp_err=$ac_c_preproc_warn_flag
15950 else
15951 ac_cpp_err=
15952 fi
15953else
15954 ac_cpp_err=yes
15955fi
15956if test -z "$ac_cpp_err"; then
15957 ac_header_preproc=yes
15958else
15959 echo "$as_me: failed program was:" >&5
15960sed 's/^/| /' conftest.$ac_ext >&5
15961
15962 ac_header_preproc=no
15963fi
15964rm -f conftest.err conftest.$ac_ext
15965echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15966echo "${ECHO_T}$ac_header_preproc" >&6
15967
15968# So? What about this header?
15969case $ac_header_compiler:$ac_header_preproc in
15970 yes:no )
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15972echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15974echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15975 (
15976 cat <<\_ASBOX
15977## ------------------------------------ ##
15978## Report this to bug-autoconf@gnu.org. ##
15979## ------------------------------------ ##
15980_ASBOX
15981 ) |
15982 sed "s/^/$as_me: WARNING: /" >&2
15983 ;;
15984 no:yes )
15985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15986echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15988echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15990echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15991 (
15992 cat <<\_ASBOX
15993## ------------------------------------ ##
15994## Report this to bug-autoconf@gnu.org. ##
15995## ------------------------------------ ##
15996_ASBOX
15997 ) |
15998 sed "s/^/$as_me: WARNING: /" >&2
15999 ;;
16000esac
16001echo "$as_me:$LINENO: checking for $ac_header" >&5
16002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16003if eval "test \"\${$as_ac_Header+set}\" = set"; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16005else
16006 eval "$as_ac_Header=$ac_header_preproc"
16007fi
16008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16010
16011fi
16012if test `eval echo '${'$as_ac_Header'}'` = yes; then
16013 cat >>confdefs.h <<_ACEOF
16014#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16015_ACEOF
16016
16017fi
16018
16019done
16020
16021fi
16022
16023done
16024
16025fi
16026
16027done
16028
16029 fi
16030
16031for ac_header in com_err.h
16032do
16033as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16034if eval "test \"\${$as_ac_Header+set}\" = set"; then
16035 echo "$as_me:$LINENO: checking for $ac_header" >&5
16036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16037if eval "test \"\${$as_ac_Header+set}\" = set"; then
16038 echo $ECHO_N "(cached) $ECHO_C" >&6
16039fi
16040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16042else
16043 # Is the header compilable?
16044echo "$as_me:$LINENO: checking $ac_header usability" >&5
16045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16046cat >conftest.$ac_ext <<_ACEOF
16047#line $LINENO "configure"
16048/* confdefs.h. */
16049_ACEOF
16050cat confdefs.h >>conftest.$ac_ext
16051cat >>conftest.$ac_ext <<_ACEOF
16052/* end confdefs.h. */
16053$ac_includes_default
16054#include <$ac_header>
16055_ACEOF
16056rm -f conftest.$ac_objext
16057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16058 (eval $ac_compile) 2>&5
16059 ac_status=$?
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } &&
16062 { ac_try='test -s conftest.$ac_objext'
16063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16065 ac_status=$?
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; }; then
16068 ac_header_compiler=yes
16069else
16070 echo "$as_me: failed program was:" >&5
16071sed 's/^/| /' conftest.$ac_ext >&5
16072
16073ac_header_compiler=no
16074fi
16075rm -f conftest.$ac_objext conftest.$ac_ext
16076echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16077echo "${ECHO_T}$ac_header_compiler" >&6
16078
16079# Is the header present?
16080echo "$as_me:$LINENO: checking $ac_header presence" >&5
16081echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16082cat >conftest.$ac_ext <<_ACEOF
16083#line $LINENO "configure"
16084/* confdefs.h. */
16085_ACEOF
16086cat confdefs.h >>conftest.$ac_ext
16087cat >>conftest.$ac_ext <<_ACEOF
16088/* end confdefs.h. */
16089#include <$ac_header>
16090_ACEOF
16091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16093 ac_status=$?
16094 grep -v '^ *+' conftest.er1 >conftest.err
16095 rm -f conftest.er1
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } >/dev/null; then
16099 if test -s conftest.err; then
16100 ac_cpp_err=$ac_c_preproc_warn_flag
16101 else
16102 ac_cpp_err=
16103 fi
16104else
16105 ac_cpp_err=yes
16106fi
16107if test -z "$ac_cpp_err"; then
16108 ac_header_preproc=yes
16109else
16110 echo "$as_me: failed program was:" >&5
16111sed 's/^/| /' conftest.$ac_ext >&5
16112
16113 ac_header_preproc=no
16114fi
16115rm -f conftest.err conftest.$ac_ext
16116echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16117echo "${ECHO_T}$ac_header_preproc" >&6
16118
16119# So? What about this header?
16120case $ac_header_compiler:$ac_header_preproc in
16121 yes:no )
16122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16123echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16125echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16126 (
16127 cat <<\_ASBOX
16128## ------------------------------------ ##
16129## Report this to bug-autoconf@gnu.org. ##
16130## ------------------------------------ ##
16131_ASBOX
16132 ) |
16133 sed "s/^/$as_me: WARNING: /" >&2
16134 ;;
16135 no:yes )
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16137echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16139echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16141echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16142 (
16143 cat <<\_ASBOX
16144## ------------------------------------ ##
16145## Report this to bug-autoconf@gnu.org. ##
16146## ------------------------------------ ##
16147_ASBOX
16148 ) |
16149 sed "s/^/$as_me: WARNING: /" >&2
16150 ;;
16151esac
16152echo "$as_me:$LINENO: checking for $ac_header" >&5
16153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16154if eval "test \"\${$as_ac_Header+set}\" = set"; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16156else
16157 eval "$as_ac_Header=$ac_header_preproc"
16158fi
16159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16161
16162fi
16163if test `eval echo '${'$as_ac_Header'}'` = yes; then
16164 cat >>confdefs.h <<_ACEOF
16165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16166_ACEOF
16167
16168fi
16169
16170done
16171
16172fi
16173
16174# Solaris requires -lintl if you want strerror (which calls dgettext)
16175# to return localized messages.
16176
16177echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16178echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16179if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16181else
16182 ac_check_lib_save_LIBS=$LIBS
16183LIBS="-lintl $LIBS"
16184cat >conftest.$ac_ext <<_ACEOF
16185#line $LINENO "configure"
16186/* confdefs.h. */
16187_ACEOF
16188cat confdefs.h >>conftest.$ac_ext
16189cat >>conftest.$ac_ext <<_ACEOF
16190/* end confdefs.h. */
16191
16192/* Override any gcc2 internal prototype to avoid an error. */
16193#ifdef __cplusplus
16194extern "C"
16195#endif
16196/* We use char because int might match the return type of a gcc2
16197 builtin and then its argument prototype would still apply. */
16198char dgettext ();
16199int
16200main ()
16201{
16202dgettext ();
16203 ;
16204 return 0;
16205}
16206_ACEOF
16207rm -f conftest.$ac_objext conftest$ac_exeext
16208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16209 (eval $ac_link) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } &&
16213 { ac_try='test -s conftest$ac_exeext'
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219 ac_cv_lib_intl_dgettext=yes
16220else
16221 echo "$as_me: failed program was:" >&5
16222sed 's/^/| /' conftest.$ac_ext >&5
16223
16224ac_cv_lib_intl_dgettext=no
16225fi
16226rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16227LIBS=$ac_check_lib_save_LIBS
16228fi
16229echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16230echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16231if test $ac_cv_lib_intl_dgettext = yes; then
16232 cat >>confdefs.h <<_ACEOF
16233#define HAVE_LIBINTL 1
16234_ACEOF
16235
16236 LIBS="-lintl $LIBS"
16237
16238fi
16239
16240
16241echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16242echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16243if test "${emacs_cv_localtime_cache+set}" = set; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16245else
16246 if test x$ac_cv_func_tzset = xyes; then
16247if test "$cross_compiling" = yes; then
16248 # If we have tzset, assume the worst when cross-compiling.
16249emacs_cv_localtime_cache=yes
16250else
16251 cat >conftest.$ac_ext <<_ACEOF
16252#line $LINENO "configure"
16253/* confdefs.h. */
16254_ACEOF
16255cat confdefs.h >>conftest.$ac_ext
16256cat >>conftest.$ac_ext <<_ACEOF
16257/* end confdefs.h. */
16258#include <time.h>
16259extern char **environ;
16260unset_TZ ()
16261{
16262 char **from, **to;
16263 for (to = from = environ; (*to = *from); from++)
16264 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16265 to++;
16266}
16267char TZ_GMT0[] = "TZ=GMT0";
16268char TZ_PST8[] = "TZ=PST8";
16269main()
16270{
16271 time_t now = time ((time_t *) 0);
16272 int hour_GMT0, hour_unset;
16273 if (putenv (TZ_GMT0) != 0)
16274 exit (1);
16275 hour_GMT0 = localtime (&now)->tm_hour;
16276 unset_TZ ();
16277 hour_unset = localtime (&now)->tm_hour;
16278 if (putenv (TZ_PST8) != 0)
16279 exit (1);
16280 if (localtime (&now)->tm_hour == hour_GMT0)
16281 exit (1);
16282 unset_TZ ();
16283 if (localtime (&now)->tm_hour != hour_unset)
16284 exit (1);
16285 exit (0);
16286}
16287_ACEOF
16288rm -f conftest$ac_exeext
16289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16290 (eval $ac_link) 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16296 ac_status=$?
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; }; then
16299 emacs_cv_localtime_cache=no
16300else
16301 echo "$as_me: program exited with status $ac_status" >&5
16302echo "$as_me: failed program was:" >&5
16303sed 's/^/| /' conftest.$ac_ext >&5
16304
16305( exit $ac_status )
16306emacs_cv_localtime_cache=yes
16307fi
16308rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16309fi
16310else
16311 # If we lack tzset, report that localtime does not cache TZ,
16312 # since we can't invalidate the cache if we don't have tzset.
16313 emacs_cv_localtime_cache=no
16314fi
16315fi
16316echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16317echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16318if test $emacs_cv_localtime_cache = yes; then
16319
16320cat >>confdefs.h <<\_ACEOF
16321#define LOCALTIME_CACHE 1
16322_ACEOF
16323
16324fi
16325
16326if test "x$HAVE_TIMEVAL" = xyes; then
16327
16328for ac_func in gettimeofday
16329do
16330as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16331echo "$as_me:$LINENO: checking for $ac_func" >&5
16332echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16333if eval "test \"\${$as_ac_var+set}\" = set"; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16335else
16336 cat >conftest.$ac_ext <<_ACEOF
16337#line $LINENO "configure"
16338/* confdefs.h. */
16339_ACEOF
16340cat confdefs.h >>conftest.$ac_ext
16341cat >>conftest.$ac_ext <<_ACEOF
16342/* end confdefs.h. */
16343/* System header to define __stub macros and hopefully few prototypes,
16344 which can conflict with char $ac_func (); below.
16345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16346 <limits.h> exists even on freestanding compilers. */
16347#ifdef __STDC__
16348# include <limits.h>
16349#else
16350# include <assert.h>
16351#endif
16352/* Override any gcc2 internal prototype to avoid an error. */
16353#ifdef __cplusplus
16354extern "C"
16355{
16356#endif
16357/* We use char because int might match the return type of a gcc2
16358 builtin and then its argument prototype would still apply. */
16359char $ac_func ();
16360/* The GNU C library defines this for functions which it implements
16361 to always fail with ENOSYS. Some functions are actually named
16362 something starting with __ and the normal name is an alias. */
16363#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16364choke me
16365#else
16366char (*f) () = $ac_func;
16367#endif
16368#ifdef __cplusplus
16369}
16370#endif
16371
16372int
16373main ()
16374{
16375return f != $ac_func;
16376 ;
16377 return 0;
16378}
16379_ACEOF
16380rm -f conftest.$ac_objext conftest$ac_exeext
16381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16382 (eval $ac_link) 2>&5
16383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } &&
16386 { ac_try='test -s conftest$ac_exeext'
16387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
16389 ac_status=$?
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; }; then
16392 eval "$as_ac_var=yes"
16393else
16394 echo "$as_me: failed program was:" >&5
16395sed 's/^/| /' conftest.$ac_ext >&5
16396
16397eval "$as_ac_var=no"
16398fi
16399rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16400fi
16401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16402echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16403if test `eval echo '${'$as_ac_var'}'` = yes; then
16404 cat >>confdefs.h <<_ACEOF
16405#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16406_ACEOF
16407
16408fi
16409done
16410
16411 if test $ac_cv_func_gettimeofday = yes; then
16412 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16413echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16414if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16416else
16417 cat >conftest.$ac_ext <<_ACEOF
16418#line $LINENO "configure"
16419/* confdefs.h. */
16420_ACEOF
16421cat confdefs.h >>conftest.$ac_ext
16422cat >>conftest.$ac_ext <<_ACEOF
16423/* end confdefs.h. */
16424
16425#ifdef TIME_WITH_SYS_TIME
16426#include <sys/time.h>
16427#include <time.h>
16428#else
16429#ifdef HAVE_SYS_TIME_H
16430#include <sys/time.h>
16431#else
16432#include <time.h>
16433#endif
16434#endif
16435int
16436main ()
16437{
16438struct timeval time;
16439 gettimeofday (&time, 0);
16440 ;
16441 return 0;
16442}
16443_ACEOF
16444rm -f conftest.$ac_objext
16445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16446 (eval $ac_compile) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } &&
16450 { ac_try='test -s conftest.$ac_objext'
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16453 ac_status=$?
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; }; then
16456 emacs_cv_gettimeofday_two_arguments=yes
16457else
16458 echo "$as_me: failed program was:" >&5
16459sed 's/^/| /' conftest.$ac_ext >&5
16460
16461emacs_cv_gettimeofday_two_arguments=no
16462fi
16463rm -f conftest.$ac_objext conftest.$ac_ext
16464fi
16465echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16466echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16467 if test $emacs_cv_gettimeofday_two_arguments = no; then
16468
16469cat >>confdefs.h <<\_ACEOF
16470#define GETTIMEOFDAY_ONE_ARGUMENT 1
16471_ACEOF
16472
16473 fi
16474 fi
16475fi
16476
16477if test "$ac_cv_func_gettimeofday" = yes; then
16478 echo "$as_me:$LINENO: checking for struct timezone" >&5
16479echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16480if test "${emacs_cv_struct_timezone+set}" = set; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16482else
16483 cat >conftest.$ac_ext <<_ACEOF
16484#line $LINENO "configure"
16485/* confdefs.h. */
16486_ACEOF
16487cat confdefs.h >>conftest.$ac_ext
16488cat >>conftest.$ac_ext <<_ACEOF
16489/* end confdefs.h. */
16490#include <sys/time.h>
16491int
16492main ()
16493{
16494struct timezone tz;
16495 ;
16496 return 0;
16497}
16498_ACEOF
16499rm -f conftest.$ac_objext
16500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16501 (eval $ac_compile) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } &&
16505 { ac_try='test -s conftest.$ac_objext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 if test "$cross_compiling" = yes; then
16512 emacs_cv_struct_timezone=yes
16513else
16514 cat >conftest.$ac_ext <<_ACEOF
16515#line $LINENO "configure"
16516/* confdefs.h. */
16517_ACEOF
16518cat confdefs.h >>conftest.$ac_ext
16519cat >>conftest.$ac_ext <<_ACEOF
16520/* end confdefs.h. */
16521
16522#ifdef TIME_WITH_SYS_TIME
16523#include <sys/time.h>
16524#include <time.h>
16525#else
16526#ifdef HAVE_SYS_TIME_H
16527#include <sys/time.h>
16528#else
16529#include <time.h>
16530#endif
16531#endif
16532main () {
16533 struct timeval time;
16534 struct timezone dummy;
16535 exit (gettimeofday (&time, &dummy));
16536}
16537_ACEOF
16538rm -f conftest$ac_exeext
16539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16540 (eval $ac_link) 2>&5
16541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16549 emacs_cv_struct_timezone=yes
16550else
16551 echo "$as_me: program exited with status $ac_status" >&5
16552echo "$as_me: failed program was:" >&5
16553sed 's/^/| /' conftest.$ac_ext >&5
16554
16555( exit $ac_status )
16556emacs_cv_struct_timezone=no
16557fi
16558rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16559fi
16560else
16561 echo "$as_me: failed program was:" >&5
16562sed 's/^/| /' conftest.$ac_ext >&5
16563
16564emacs_cv_struct_timezone=no
16565fi
16566rm -f conftest.$ac_objext conftest.$ac_ext
16567fi
16568echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16569echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16570fi
16571
16572ok_so_far=yes
16573echo "$as_me:$LINENO: checking for socket" >&5
16574echo $ECHO_N "checking for socket... $ECHO_C" >&6
16575if test "${ac_cv_func_socket+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16577else
16578 cat >conftest.$ac_ext <<_ACEOF
16579#line $LINENO "configure"
16580/* confdefs.h. */
16581_ACEOF
16582cat confdefs.h >>conftest.$ac_ext
16583cat >>conftest.$ac_ext <<_ACEOF
16584/* end confdefs.h. */
16585/* System header to define __stub macros and hopefully few prototypes,
16586 which can conflict with char socket (); below.
16587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16588 <limits.h> exists even on freestanding compilers. */
16589#ifdef __STDC__
16590# include <limits.h>
16591#else
16592# include <assert.h>
16593#endif
16594/* Override any gcc2 internal prototype to avoid an error. */
16595#ifdef __cplusplus
16596extern "C"
16597{
16598#endif
16599/* We use char because int might match the return type of a gcc2
16600 builtin and then its argument prototype would still apply. */
16601char socket ();
16602/* The GNU C library defines this for functions which it implements
16603 to always fail with ENOSYS. Some functions are actually named
16604 something starting with __ and the normal name is an alias. */
16605#if defined (__stub_socket) || defined (__stub___socket)
16606choke me
16607#else
16608char (*f) () = socket;
16609#endif
16610#ifdef __cplusplus
16611}
16612#endif
16613
16614int
16615main ()
16616{
16617return f != socket;
16618 ;
16619 return 0;
16620}
16621_ACEOF
16622rm -f conftest.$ac_objext conftest$ac_exeext
16623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16624 (eval $ac_link) 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } &&
16628 { ac_try='test -s conftest$ac_exeext'
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; }; then
16634 ac_cv_func_socket=yes
16635else
16636 echo "$as_me: failed program was:" >&5
16637sed 's/^/| /' conftest.$ac_ext >&5
16638
16639ac_cv_func_socket=no
16640fi
16641rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16642fi
16643echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16644echo "${ECHO_T}$ac_cv_func_socket" >&6
16645if test $ac_cv_func_socket = yes; then
16646 :
16647else
16648 ok_so_far=no
16649fi
16650
16651if test $ok_so_far = yes; then
16652 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16653 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16654echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16655if test "${ac_cv_header_netinet_in_h+set}" = set; then
16656 echo $ECHO_N "(cached) $ECHO_C" >&6
16657fi
16658echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16659echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16660else
16661 # Is the header compilable?
16662echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
16663echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
16664cat >conftest.$ac_ext <<_ACEOF
16665#line $LINENO "configure"
16666/* confdefs.h. */
16667_ACEOF
16668cat confdefs.h >>conftest.$ac_ext
16669cat >>conftest.$ac_ext <<_ACEOF
16670/* end confdefs.h. */
16671$ac_includes_default
16672#include <netinet/in.h>
16673_ACEOF
16674rm -f conftest.$ac_objext
16675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16676 (eval $ac_compile) 2>&5
16677 ac_status=$?
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } &&
16680 { ac_try='test -s conftest.$ac_objext'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16683 ac_status=$?
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; }; then
16686 ac_header_compiler=yes
16687else
16688 echo "$as_me: failed program was:" >&5
16689sed 's/^/| /' conftest.$ac_ext >&5
16690
16691ac_header_compiler=no
16692fi
16693rm -f conftest.$ac_objext conftest.$ac_ext
16694echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16695echo "${ECHO_T}$ac_header_compiler" >&6
16696
16697# Is the header present?
16698echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
16699echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
16700cat >conftest.$ac_ext <<_ACEOF
16701#line $LINENO "configure"
16702/* confdefs.h. */
16703_ACEOF
16704cat confdefs.h >>conftest.$ac_ext
16705cat >>conftest.$ac_ext <<_ACEOF
16706/* end confdefs.h. */
16707#include <netinet/in.h>
16708_ACEOF
16709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16711 ac_status=$?
16712 grep -v '^ *+' conftest.er1 >conftest.err
16713 rm -f conftest.er1
16714 cat conftest.err >&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } >/dev/null; then
16717 if test -s conftest.err; then
16718 ac_cpp_err=$ac_c_preproc_warn_flag
16719 else
16720 ac_cpp_err=
16721 fi
16722else
16723 ac_cpp_err=yes
16724fi
16725if test -z "$ac_cpp_err"; then
16726 ac_header_preproc=yes
16727else
16728 echo "$as_me: failed program was:" >&5
16729sed 's/^/| /' conftest.$ac_ext >&5
16730
16731 ac_header_preproc=no
16732fi
16733rm -f conftest.err conftest.$ac_ext
16734echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16735echo "${ECHO_T}$ac_header_preproc" >&6
16736
16737# So? What about this header?
16738case $ac_header_compiler:$ac_header_preproc in
16739 yes:no )
16740 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
16741echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16742 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16743echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16744 (
16745 cat <<\_ASBOX
16746## ------------------------------------ ##
16747## Report this to bug-autoconf@gnu.org. ##
16748## ------------------------------------ ##
16749_ASBOX
16750 ) |
16751 sed "s/^/$as_me: WARNING: /" >&2
16752 ;;
16753 no:yes )
16754 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
16755echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
16756 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
16757echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
16758 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16759echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16760 (
16761 cat <<\_ASBOX
16762## ------------------------------------ ##
16763## Report this to bug-autoconf@gnu.org. ##
16764## ------------------------------------ ##
16765_ASBOX
16766 ) |
16767 sed "s/^/$as_me: WARNING: /" >&2
16768 ;;
16769esac
16770echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16771echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16772if test "${ac_cv_header_netinet_in_h+set}" = set; then
16773 echo $ECHO_N "(cached) $ECHO_C" >&6
16774else
16775 ac_cv_header_netinet_in_h=$ac_header_preproc
16776fi
16777echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16778echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16779
16780fi
16781if test $ac_cv_header_netinet_in_h = yes; then
16782 :
16783else
16784 ok_so_far=no
16785fi
16786
16787
16788fi
16789if test $ok_so_far = yes; then
16790 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16791 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16792echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16793if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16794 echo $ECHO_N "(cached) $ECHO_C" >&6
16795fi
16796echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16797echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16798else
16799 # Is the header compilable?
16800echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
16801echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
16802cat >conftest.$ac_ext <<_ACEOF
16803#line $LINENO "configure"
16804/* confdefs.h. */
16805_ACEOF
16806cat confdefs.h >>conftest.$ac_ext
16807cat >>conftest.$ac_ext <<_ACEOF
16808/* end confdefs.h. */
16809$ac_includes_default
16810#include <arpa/inet.h>
16811_ACEOF
16812rm -f conftest.$ac_objext
16813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16814 (eval $ac_compile) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } &&
16818 { ac_try='test -s conftest.$ac_objext'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16824 ac_header_compiler=yes
16825else
16826 echo "$as_me: failed program was:" >&5
16827sed 's/^/| /' conftest.$ac_ext >&5
16828
16829ac_header_compiler=no
16830fi
16831rm -f conftest.$ac_objext conftest.$ac_ext
16832echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16833echo "${ECHO_T}$ac_header_compiler" >&6
16834
16835# Is the header present?
16836echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
16837echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
16838cat >conftest.$ac_ext <<_ACEOF
16839#line $LINENO "configure"
16840/* confdefs.h. */
16841_ACEOF
16842cat confdefs.h >>conftest.$ac_ext
16843cat >>conftest.$ac_ext <<_ACEOF
16844/* end confdefs.h. */
16845#include <arpa/inet.h>
16846_ACEOF
16847if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16849 ac_status=$?
16850 grep -v '^ *+' conftest.er1 >conftest.err
16851 rm -f conftest.er1
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } >/dev/null; then
16855 if test -s conftest.err; then
16856 ac_cpp_err=$ac_c_preproc_warn_flag
16857 else
16858 ac_cpp_err=
16859 fi
16860else
16861 ac_cpp_err=yes
16862fi
16863if test -z "$ac_cpp_err"; then
16864 ac_header_preproc=yes
16865else
16866 echo "$as_me: failed program was:" >&5
16867sed 's/^/| /' conftest.$ac_ext >&5
16868
16869 ac_header_preproc=no
16870fi
16871rm -f conftest.err conftest.$ac_ext
16872echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16873echo "${ECHO_T}$ac_header_preproc" >&6
16874
16875# So? What about this header?
16876case $ac_header_compiler:$ac_header_preproc in
16877 yes:no )
16878 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
16879echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16880 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16881echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16882 (
16883 cat <<\_ASBOX
16884## ------------------------------------ ##
16885## Report this to bug-autoconf@gnu.org. ##
16886## ------------------------------------ ##
16887_ASBOX
16888 ) |
16889 sed "s/^/$as_me: WARNING: /" >&2
16890 ;;
16891 no:yes )
16892 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
16893echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
16894 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
16895echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
16896 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16897echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16898 (
16899 cat <<\_ASBOX
16900## ------------------------------------ ##
16901## Report this to bug-autoconf@gnu.org. ##
16902## ------------------------------------ ##
16903_ASBOX
16904 ) |
16905 sed "s/^/$as_me: WARNING: /" >&2
16906 ;;
16907esac
16908echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16909echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16910if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16912else
16913 ac_cv_header_arpa_inet_h=$ac_header_preproc
16914fi
16915echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16916echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16917
16918fi
16919if test $ac_cv_header_arpa_inet_h = yes; then
16920 :
16921else
16922 ok_so_far=no
16923fi
16924
16925
16926fi
16927if test $ok_so_far = yes; then
16928
16929cat >>confdefs.h <<\_ACEOF
16930#define HAVE_INET_SOCKETS 1
16931_ACEOF
16932
16933fi
16934
16935if test -f /usr/lpp/X11/bin/smt.exp; then
16936
16937cat >>confdefs.h <<\_ACEOF
16938#define HAVE_AIX_SMT_EXP 1
16939_ACEOF
16940
16941fi
16942
16943echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
16944echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
16945if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16946 echo "$as_me:$LINENO: result: yes" >&5
16947echo "${ECHO_T}yes" >&6
16948
16949cat >>confdefs.h <<\_ACEOF
16950#define HAVE_DEV_PTMX 1
16951_ACEOF
16952
16953else
16954 echo "$as_me:$LINENO: result: no" >&5
16955echo "${ECHO_T}no" >&6
16956fi
16957
16958echo "$as_me:$LINENO: checking for pid_t" >&5
16959echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16960if test "${ac_cv_type_pid_t+set}" = set; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16962else
16963 cat >conftest.$ac_ext <<_ACEOF
16964#line $LINENO "configure"
16965/* confdefs.h. */
16966_ACEOF
16967cat confdefs.h >>conftest.$ac_ext
16968cat >>conftest.$ac_ext <<_ACEOF
16969/* end confdefs.h. */
16970$ac_includes_default
16971int
16972main ()
16973{
16974if ((pid_t *) 0)
16975 return 0;
16976if (sizeof (pid_t))
16977 return 0;
16978 ;
16979 return 0;
16980}
16981_ACEOF
16982rm -f conftest.$ac_objext
16983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16984 (eval $ac_compile) 2>&5
16985 ac_status=$?
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } &&
16988 { ac_try='test -s conftest.$ac_objext'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 ac_cv_type_pid_t=yes
16995else
16996 echo "$as_me: failed program was:" >&5
16997sed 's/^/| /' conftest.$ac_ext >&5
16998
16999ac_cv_type_pid_t=no
17000fi
17001rm -f conftest.$ac_objext conftest.$ac_ext
17002fi
17003echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17004echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17005if test $ac_cv_type_pid_t = yes; then
17006 :
17007else
17008
17009cat >>confdefs.h <<_ACEOF
17010#define pid_t int
17011_ACEOF
17012
17013fi
17014
17015
17016
17017for ac_header in unistd.h vfork.h
17018do
17019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17020if eval "test \"\${$as_ac_Header+set}\" = set"; then
17021 echo "$as_me:$LINENO: checking for $ac_header" >&5
17022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17023if eval "test \"\${$as_ac_Header+set}\" = set"; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17025fi
17026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17028else
17029 # Is the header compilable?
17030echo "$as_me:$LINENO: checking $ac_header usability" >&5
17031echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17032cat >conftest.$ac_ext <<_ACEOF
17033#line $LINENO "configure"
17034/* confdefs.h. */
17035_ACEOF
17036cat confdefs.h >>conftest.$ac_ext
17037cat >>conftest.$ac_ext <<_ACEOF
17038/* end confdefs.h. */
17039$ac_includes_default
17040#include <$ac_header>
17041_ACEOF
17042rm -f conftest.$ac_objext
17043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17044 (eval $ac_compile) 2>&5
17045 ac_status=$?
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
17048 { ac_try='test -s conftest.$ac_objext'
17049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17051 ac_status=$?
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; }; then
17054 ac_header_compiler=yes
17055else
17056 echo "$as_me: failed program was:" >&5
17057sed 's/^/| /' conftest.$ac_ext >&5
17058
17059ac_header_compiler=no
17060fi
17061rm -f conftest.$ac_objext conftest.$ac_ext
17062echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17063echo "${ECHO_T}$ac_header_compiler" >&6
17064
17065# Is the header present?
17066echo "$as_me:$LINENO: checking $ac_header presence" >&5
17067echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17068cat >conftest.$ac_ext <<_ACEOF
17069#line $LINENO "configure"
17070/* confdefs.h. */
17071_ACEOF
17072cat confdefs.h >>conftest.$ac_ext
17073cat >>conftest.$ac_ext <<_ACEOF
17074/* end confdefs.h. */
17075#include <$ac_header>
17076_ACEOF
17077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17079 ac_status=$?
17080 grep -v '^ *+' conftest.er1 >conftest.err
17081 rm -f conftest.er1
17082 cat conftest.err >&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } >/dev/null; then
17085 if test -s conftest.err; then
17086 ac_cpp_err=$ac_c_preproc_warn_flag
17087 else
17088 ac_cpp_err=
17089 fi
17090else
17091 ac_cpp_err=yes
17092fi
17093if test -z "$ac_cpp_err"; then
17094 ac_header_preproc=yes
17095else
17096 echo "$as_me: failed program was:" >&5
17097sed 's/^/| /' conftest.$ac_ext >&5
17098
17099 ac_header_preproc=no
17100fi
17101rm -f conftest.err conftest.$ac_ext
17102echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17103echo "${ECHO_T}$ac_header_preproc" >&6
17104
17105# So? What about this header?
17106case $ac_header_compiler:$ac_header_preproc in
17107 yes:no )
17108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17111echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17112 (
17113 cat <<\_ASBOX
17114## ------------------------------------ ##
17115## Report this to bug-autoconf@gnu.org. ##
17116## ------------------------------------ ##
17117_ASBOX
17118 ) |
17119 sed "s/^/$as_me: WARNING: /" >&2
17120 ;;
17121 no:yes )
17122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17123echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17125echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17127echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17128 (
17129 cat <<\_ASBOX
17130## ------------------------------------ ##
17131## Report this to bug-autoconf@gnu.org. ##
17132## ------------------------------------ ##
17133_ASBOX
17134 ) |
17135 sed "s/^/$as_me: WARNING: /" >&2
17136 ;;
17137esac
17138echo "$as_me:$LINENO: checking for $ac_header" >&5
17139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17140if eval "test \"\${$as_ac_Header+set}\" = set"; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17142else
17143 eval "$as_ac_Header=$ac_header_preproc"
17144fi
17145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17147
17148fi
17149if test `eval echo '${'$as_ac_Header'}'` = yes; then
17150 cat >>confdefs.h <<_ACEOF
17151#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17152_ACEOF
17153
17154fi
17155
17156done
17157
17158
17159
17160for ac_func in fork vfork
17161do
17162as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17163echo "$as_me:$LINENO: checking for $ac_func" >&5
17164echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17165if eval "test \"\${$as_ac_var+set}\" = set"; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17167else
17168 cat >conftest.$ac_ext <<_ACEOF
17169#line $LINENO "configure"
17170/* confdefs.h. */
17171_ACEOF
17172cat confdefs.h >>conftest.$ac_ext
17173cat >>conftest.$ac_ext <<_ACEOF
17174/* end confdefs.h. */
17175/* System header to define __stub macros and hopefully few prototypes,
17176 which can conflict with char $ac_func (); below.
17177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17178 <limits.h> exists even on freestanding compilers. */
17179#ifdef __STDC__
17180# include <limits.h>
17181#else
17182# include <assert.h>
17183#endif
17184/* Override any gcc2 internal prototype to avoid an error. */
17185#ifdef __cplusplus
17186extern "C"
17187{
17188#endif
17189/* We use char because int might match the return type of a gcc2
17190 builtin and then its argument prototype would still apply. */
17191char $ac_func ();
17192/* The GNU C library defines this for functions which it implements
17193 to always fail with ENOSYS. Some functions are actually named
17194 something starting with __ and the normal name is an alias. */
17195#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17196choke me
17197#else
17198char (*f) () = $ac_func;
17199#endif
17200#ifdef __cplusplus
17201}
17202#endif
17203
17204int
17205main ()
17206{
17207return f != $ac_func;
17208 ;
17209 return 0;
17210}
17211_ACEOF
17212rm -f conftest.$ac_objext conftest$ac_exeext
17213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17214 (eval $ac_link) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } &&
17218 { ac_try='test -s conftest$ac_exeext'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 eval "$as_ac_var=yes"
17225else
17226 echo "$as_me: failed program was:" >&5
17227sed 's/^/| /' conftest.$ac_ext >&5
17228
17229eval "$as_ac_var=no"
17230fi
17231rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17232fi
17233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17234echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17235if test `eval echo '${'$as_ac_var'}'` = yes; then
17236 cat >>confdefs.h <<_ACEOF
17237#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17238_ACEOF
17239
17240fi
17241done
17242
17243if test "x$ac_cv_func_fork" = xyes; then
17244 echo "$as_me:$LINENO: checking for working fork" >&5
17245echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17246if test "${ac_cv_func_fork_works+set}" = set; then
17247 echo $ECHO_N "(cached) $ECHO_C" >&6
17248else
17249 if test "$cross_compiling" = yes; then
17250 ac_cv_func_fork_works=cross
17251else
17252 cat >conftest.$ac_ext <<_ACEOF
17253/* By Ruediger Kuhlmann. */
17254 #include <sys/types.h>
17255 #if HAVE_UNISTD_H
17256 # include <unistd.h>
17257 #endif
17258 /* Some systems only have a dummy stub for fork() */
17259 int main ()
17260 {
17261 if (fork() < 0)
17262 exit (1);
17263 exit (0);
17264 }
17265_ACEOF
17266rm -f conftest$ac_exeext
17267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17268 (eval $ac_link) 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 ac_cv_func_fork_works=yes
17278else
17279 echo "$as_me: program exited with status $ac_status" >&5
17280echo "$as_me: failed program was:" >&5
17281sed 's/^/| /' conftest.$ac_ext >&5
17282
17283( exit $ac_status )
17284ac_cv_func_fork_works=no
17285fi
17286rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17287fi
17288fi
17289echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17290echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17291
17292else
17293 ac_cv_func_fork_works=$ac_cv_func_fork
17294fi
17295if test "x$ac_cv_func_fork_works" = xcross; then
17296 case $host in
17297 *-*-amigaos* | *-*-msdosdjgpp*)
17298 # Override, as these systems have only a dummy fork() stub
17299 ac_cv_func_fork_works=no
17300 ;;
17301 *)
17302 ac_cv_func_fork_works=yes
17303 ;;
17304 esac
17305 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17306echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17307fi
17308ac_cv_func_vfork_works=$ac_cv_func_vfork
17309if test "x$ac_cv_func_vfork" = xyes; then
17310 echo "$as_me:$LINENO: checking for working vfork" >&5
17311echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17312if test "${ac_cv_func_vfork_works+set}" = set; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
17314else
17315 if test "$cross_compiling" = yes; then
17316 ac_cv_func_vfork_works=cross
17317else
17318 cat >conftest.$ac_ext <<_ACEOF
17319#line $LINENO "configure"
17320/* confdefs.h. */
17321_ACEOF
17322cat confdefs.h >>conftest.$ac_ext
17323cat >>conftest.$ac_ext <<_ACEOF
17324/* end confdefs.h. */
17325/* Thanks to Paul Eggert for this test. */
17326#include <stdio.h>
17327#include <stdlib.h>
17328#include <sys/types.h>
17329#include <sys/stat.h>
17330#include <sys/wait.h>
17331#if HAVE_UNISTD_H
17332# include <unistd.h>
17333#endif
17334#if HAVE_VFORK_H
17335# include <vfork.h>
17336#endif
17337/* On some sparc systems, changes by the child to local and incoming
17338 argument registers are propagated back to the parent. The compiler
17339 is told about this with #include <vfork.h>, but some compilers
17340 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17341 static variable whose address is put into a register that is
17342 clobbered by the vfork. */
17343static void
17344#ifdef __cplusplus
17345sparc_address_test (int arg)
17346# else
17347sparc_address_test (arg) int arg;
17348#endif
17349{
17350 static pid_t child;
17351 if (!child) {
17352 child = vfork ();
17353 if (child < 0) {
17354 perror ("vfork");
17355 _exit(2);
17356 }
17357 if (!child) {
17358 arg = getpid();
17359 write(-1, "", 0);
17360 _exit (arg);
17361 }
17362 }
17363}
17364
17365int
17366main ()
17367{
17368 pid_t parent = getpid ();
17369 pid_t child;
17370
17371 sparc_address_test (0);
17372
17373 child = vfork ();
17374
17375 if (child == 0) {
17376 /* Here is another test for sparc vfork register problems. This
17377 test uses lots of local variables, at least as many local
17378 variables as main has allocated so far including compiler
17379 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17380 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17381 reuse the register of parent for one of the local variables,
17382 since it will think that parent can't possibly be used any more
17383 in this routine. Assigning to the local variable will thus
17384 munge parent in the parent process. */
17385 pid_t
17386 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17387 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17388 /* Convince the compiler that p..p7 are live; otherwise, it might
17389 use the same hardware register for all 8 local variables. */
17390 if (p != p1 || p != p2 || p != p3 || p != p4
17391 || p != p5 || p != p6 || p != p7)
17392 _exit(1);
17393
17394 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17395 from child file descriptors. If the child closes a descriptor
17396 before it execs or exits, this munges the parent's descriptor
17397 as well. Test for this by closing stdout in the child. */
17398 _exit(close(fileno(stdout)) != 0);
17399 } else {
17400 int status;
17401 struct stat st;
17402
17403 while (wait(&status) != child)
17404 ;
17405 exit(
17406 /* Was there some problem with vforking? */
17407 child < 0
17408
17409 /* Did the child fail? (This shouldn't happen.) */
17410 || status
17411
17412 /* Did the vfork/compiler bug occur? */
17413 || parent != getpid()
17414
17415 /* Did the file descriptor bug occur? */
17416 || fstat(fileno(stdout), &st) != 0
17417 );
17418 }
17419}
17420_ACEOF
17421rm -f conftest$ac_exeext
17422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17423 (eval $ac_link) 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; }; then
17432 ac_cv_func_vfork_works=yes
17433else
17434 echo "$as_me: program exited with status $ac_status" >&5
17435echo "$as_me: failed program was:" >&5
17436sed 's/^/| /' conftest.$ac_ext >&5
17437
17438( exit $ac_status )
17439ac_cv_func_vfork_works=no
17440fi
17441rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17442fi
17443fi
17444echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17445echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17446
17447fi;
17448if test "x$ac_cv_func_fork_works" = xcross; then
17449 ac_cv_func_vfork_works=ac_cv_func_vfork
17450 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17451echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17452fi
17453
17454if test "x$ac_cv_func_vfork_works" = xyes; then
17455
17456cat >>confdefs.h <<\_ACEOF
17457#define HAVE_WORKING_VFORK 1
17458_ACEOF
17459
17460else
17461
17462cat >>confdefs.h <<\_ACEOF
17463#define vfork fork
17464_ACEOF
17465
17466fi
17467if test "x$ac_cv_func_fork_works" = xyes; then
17468
17469cat >>confdefs.h <<\_ACEOF
17470#define HAVE_WORKING_FORK 1
17471_ACEOF
17472
17473fi
17474
17475
17476echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17477echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17478if test "${emacs_cv_langinfo_codeset+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17480else
17481 cat >conftest.$ac_ext <<_ACEOF
17482#line $LINENO "configure"
17483/* confdefs.h. */
17484_ACEOF
17485cat confdefs.h >>conftest.$ac_ext
17486cat >>conftest.$ac_ext <<_ACEOF
17487/* end confdefs.h. */
17488#include <langinfo.h>
17489int
17490main ()
17491{
17492char* cs = nl_langinfo(CODESET);
17493 ;
17494 return 0;
17495}
17496_ACEOF
17497rm -f conftest.$ac_objext conftest$ac_exeext
17498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17499 (eval $ac_link) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } &&
17503 { ac_try='test -s conftest$ac_exeext'
17504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505 (eval $ac_try) 2>&5
17506 ac_status=$?
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; }; then
17509 emacs_cv_langinfo_codeset=yes
17510else
17511 echo "$as_me: failed program was:" >&5
17512sed 's/^/| /' conftest.$ac_ext >&5
17513
17514emacs_cv_langinfo_codeset=no
17515fi
17516rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17517
17518fi
17519echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17520echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17521if test $emacs_cv_langinfo_codeset = yes; then
17522
17523cat >>confdefs.h <<\_ACEOF
17524#define HAVE_LANGINFO_CODESET 1
17525_ACEOF
17526
17527fi
17528
17529echo "$as_me:$LINENO: checking for size_t" >&5
17530echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17531if test "${ac_cv_type_size_t+set}" = set; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17533else
17534 cat >conftest.$ac_ext <<_ACEOF
17535#line $LINENO "configure"
17536/* confdefs.h. */
17537_ACEOF
17538cat confdefs.h >>conftest.$ac_ext
17539cat >>conftest.$ac_ext <<_ACEOF
17540/* end confdefs.h. */
17541$ac_includes_default
17542int
17543main ()
17544{
17545if ((size_t *) 0)
17546 return 0;
17547if (sizeof (size_t))
17548 return 0;
17549 ;
17550 return 0;
17551}
17552_ACEOF
17553rm -f conftest.$ac_objext
17554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17555 (eval $ac_compile) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
17559 { ac_try='test -s conftest.$ac_objext'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_cv_type_size_t=yes
17566else
17567 echo "$as_me: failed program was:" >&5
17568sed 's/^/| /' conftest.$ac_ext >&5
17569
17570ac_cv_type_size_t=no
17571fi
17572rm -f conftest.$ac_objext conftest.$ac_ext
17573fi
17574echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17575echo "${ECHO_T}$ac_cv_type_size_t" >&6
17576if test $ac_cv_type_size_t = yes; then
17577
17578cat >>confdefs.h <<_ACEOF
17579#define HAVE_SIZE_T 1
17580_ACEOF
17581
17582
17583fi
17584
17585
17586echo "$as_me:$LINENO: checking for C restrict keyword" >&5
17587echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
17588if test "${emacs_cv_c_restrict+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17590else
17591 cat >conftest.$ac_ext <<_ACEOF
17592#line $LINENO "configure"
17593/* confdefs.h. */
17594_ACEOF
17595cat confdefs.h >>conftest.$ac_ext
17596cat >>conftest.$ac_ext <<_ACEOF
17597/* end confdefs.h. */
17598void fred (int *restrict x);
17599int
17600main ()
17601{
17602
17603 ;
17604 return 0;
17605}
17606_ACEOF
17607rm -f conftest.$ac_objext
17608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17609 (eval $ac_compile) 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } &&
17613 { ac_try='test -s conftest.$ac_objext'
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; }; then
17619 emacs_cv_c_restrict=yes
17620else
17621 echo "$as_me: failed program was:" >&5
17622sed 's/^/| /' conftest.$ac_ext >&5
17623
17624cat >conftest.$ac_ext <<_ACEOF
17625#line $LINENO "configure"
17626/* confdefs.h. */
17627_ACEOF
17628cat confdefs.h >>conftest.$ac_ext
17629cat >>conftest.$ac_ext <<_ACEOF
17630/* end confdefs.h. */
17631void fred (int *__restrict x);
17632int
17633main ()
17634{
17635
17636 ;
17637 return 0;
17638}
17639_ACEOF
17640rm -f conftest.$ac_objext
17641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17642 (eval $ac_compile) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -s conftest.$ac_objext'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
17652 emacs_cv_c_restrict=__restrict
17653else
17654 echo "$as_me: failed program was:" >&5
17655sed 's/^/| /' conftest.$ac_ext >&5
17656
17657emacs_cv_c_restrict=no
17658fi
17659rm -f conftest.$ac_objext conftest.$ac_ext
17660fi
17661rm -f conftest.$ac_objext conftest.$ac_ext
17662fi
17663echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
17664echo "${ECHO_T}$emacs_cv_c_restrict" >&6
17665case "$emacs_cv_c_restrict" in
17666 yes) emacs_restrict=restrict;;
17667 no) emacs_restrict="";;
17668 *) emacs_restrict="$emacs_cv_c_restrict";;
17669esac
17670if test "$emacs_restrict" != __restrict; then
17671
17672cat >>confdefs.h <<_ACEOF
17673#define __restrict $emacs_restrict
17674_ACEOF
17675
17676fi
17677
17678echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
17679echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
17680if test "${emacs_cv_c_restrict_arr+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17682else
17683 cat >conftest.$ac_ext <<_ACEOF
17684#line $LINENO "configure"
17685/* confdefs.h. */
17686_ACEOF
17687cat confdefs.h >>conftest.$ac_ext
17688cat >>conftest.$ac_ext <<_ACEOF
17689/* end confdefs.h. */
17690void fred (int x[__restrict]);
17691int
17692main ()
17693{
17694
17695 ;
17696 return 0;
17697}
17698_ACEOF
17699rm -f conftest.$ac_objext
17700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17701 (eval $ac_compile) 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
17705 { ac_try='test -s conftest.$ac_objext'
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17708 ac_status=$?
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
17711 emacs_cv_c_restrict_arr=yes
17712else
17713 echo "$as_me: failed program was:" >&5
17714sed 's/^/| /' conftest.$ac_ext >&5
17715
17716emacs_cv_c_restrict_arr=no
17717fi
17718rm -f conftest.$ac_objext conftest.$ac_ext
17719fi
17720echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
17721echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
17722if test "$emacs_cv_c_restrict_arr" = yes; then
17723
17724cat >>confdefs.h <<\_ACEOF
17725#define __restrict_arr __restrict
17726_ACEOF
17727
17728fi
17729
17730
17731for ac_header in nlist.h
17732do
17733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17734if eval "test \"\${$as_ac_Header+set}\" = set"; then
17735 echo "$as_me:$LINENO: checking for $ac_header" >&5
17736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17737if eval "test \"\${$as_ac_Header+set}\" = set"; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17739fi
17740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17741echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17742else
17743 # Is the header compilable?
17744echo "$as_me:$LINENO: checking $ac_header usability" >&5
17745echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17746cat >conftest.$ac_ext <<_ACEOF
17747#line $LINENO "configure"
17748/* confdefs.h. */
17749_ACEOF
17750cat confdefs.h >>conftest.$ac_ext
17751cat >>conftest.$ac_ext <<_ACEOF
17752/* end confdefs.h. */
17753$ac_includes_default
17754#include <$ac_header>
17755_ACEOF
17756rm -f conftest.$ac_objext
17757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17758 (eval $ac_compile) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
17762 { ac_try='test -s conftest.$ac_objext'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; }; then
17768 ac_header_compiler=yes
17769else
17770 echo "$as_me: failed program was:" >&5
17771sed 's/^/| /' conftest.$ac_ext >&5
17772
17773ac_header_compiler=no
17774fi
17775rm -f conftest.$ac_objext conftest.$ac_ext
17776echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17777echo "${ECHO_T}$ac_header_compiler" >&6
17778
17779# Is the header present?
17780echo "$as_me:$LINENO: checking $ac_header presence" >&5
17781echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17782cat >conftest.$ac_ext <<_ACEOF
17783#line $LINENO "configure"
17784/* confdefs.h. */
17785_ACEOF
17786cat confdefs.h >>conftest.$ac_ext
17787cat >>conftest.$ac_ext <<_ACEOF
17788/* end confdefs.h. */
17789#include <$ac_header>
17790_ACEOF
17791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17793 ac_status=$?
17794 grep -v '^ *+' conftest.er1 >conftest.err
17795 rm -f conftest.er1
17796 cat conftest.err >&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } >/dev/null; then
17799 if test -s conftest.err; then
17800 ac_cpp_err=$ac_c_preproc_warn_flag
17801 else
17802 ac_cpp_err=
17803 fi
17804else
17805 ac_cpp_err=yes
17806fi
17807if test -z "$ac_cpp_err"; then
17808 ac_header_preproc=yes
17809else
17810 echo "$as_me: failed program was:" >&5
17811sed 's/^/| /' conftest.$ac_ext >&5
17812
17813 ac_header_preproc=no
17814fi
17815rm -f conftest.err conftest.$ac_ext
17816echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17817echo "${ECHO_T}$ac_header_preproc" >&6
17818
17819# So? What about this header?
17820case $ac_header_compiler:$ac_header_preproc in
17821 yes:no )
17822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17823echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17825echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17826 (
17827 cat <<\_ASBOX
17828## ------------------------------------ ##
17829## Report this to bug-autoconf@gnu.org. ##
17830## ------------------------------------ ##
17831_ASBOX
17832 ) |
17833 sed "s/^/$as_me: WARNING: /" >&2
17834 ;;
17835 no:yes )
17836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17837echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17839echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17841echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17842 (
17843 cat <<\_ASBOX
17844## ------------------------------------ ##
17845## Report this to bug-autoconf@gnu.org. ##
17846## ------------------------------------ ##
17847_ASBOX
17848 ) |
17849 sed "s/^/$as_me: WARNING: /" >&2
17850 ;;
17851esac
17852echo "$as_me:$LINENO: checking for $ac_header" >&5
17853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17854if eval "test \"\${$as_ac_Header+set}\" = set"; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17856else
17857 eval "$as_ac_Header=$ac_header_preproc"
17858fi
17859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17860echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17861
17862fi
17863if test `eval echo '${'$as_ac_Header'}'` = yes; then
17864 cat >>confdefs.h <<_ACEOF
17865#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17866_ACEOF
17867
17868cat >>confdefs.h <<\_ACEOF
17869#define NLIST_STRUCT 1
17870_ACEOF
17871
17872fi
17873
17874done
17875
17876
17877
17878
17879# Set up the CFLAGS for real compilation, so we can substitute it.
17880CFLAGS="$REAL_CFLAGS"
17881CPPFLAGS="$REAL_CPPFLAGS"
17882
17883#### Find out which version of Emacs this is.
17884version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
17885 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17886if test x"${version}" = x; then
17887 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17888echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17889 { (exit 1); exit 1; }; }
17890fi
17891
17892### Specify what sort of things we'll be editing into Makefile and config.h.
17893### Use configuration here uncanonicalized to avoid exceeding size limits.
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929cat >>confdefs.h <<_ACEOF
17930#define EMACS_CONFIGURATION "${canonical}"
17931_ACEOF
17932
17933
17934cat >>confdefs.h <<_ACEOF
17935#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17936_ACEOF
17937
17938
17939cat >>confdefs.h <<_ACEOF
17940#define config_machfile "${machfile}"
17941_ACEOF
17942
17943
17944cat >>confdefs.h <<_ACEOF
17945#define config_opsysfile "${opsysfile}"
17946_ACEOF
17947
17948
17949cat >>confdefs.h <<_ACEOF
17950#define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
17951_ACEOF
17952
17953
17954cat >>confdefs.h <<_ACEOF
17955#define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
17956_ACEOF
17957
17958
17959cat >>confdefs.h <<_ACEOF
17960#define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
17961_ACEOF
17962
17963
17964cat >>confdefs.h <<_ACEOF
17965#define UNEXEC_SRC ${UNEXEC_SRC}
17966_ACEOF
17967
17968
17969if test "${HAVE_X_WINDOWS}" = "yes" ; then
17970
17971cat >>confdefs.h <<\_ACEOF
17972#define HAVE_X_WINDOWS 1
17973_ACEOF
17974
17975fi
17976if test "${USE_X_TOOLKIT}" != "none" ; then
17977
17978cat >>confdefs.h <<\_ACEOF
17979#define USE_X_TOOLKIT 1
17980_ACEOF
17981
17982fi
17983if test "${HAVE_X11}" = "yes" ; then
17984
17985cat >>confdefs.h <<\_ACEOF
17986#define HAVE_X11 1
17987_ACEOF
17988
17989fi
17990if test "${HAVE_XFREE386}" = "yes" ; then
17991
17992cat >>confdefs.h <<\_ACEOF
17993#define HAVE_XFREE386 1
17994_ACEOF
17995
17996fi
17997if test "${HAVE_MENUS}" = "yes" ; then
17998
17999cat >>confdefs.h <<\_ACEOF
18000#define HAVE_MENUS 1
18001_ACEOF
18002
18003fi
18004if test "${GNU_MALLOC}" = "yes" ; then
18005
18006cat >>confdefs.h <<\_ACEOF
18007#define GNU_MALLOC 1
18008_ACEOF
18009
18010fi
18011if test "${REL_ALLOC}" = "yes" ; then
18012
18013cat >>confdefs.h <<\_ACEOF
18014#define REL_ALLOC 1
18015_ACEOF
18016
18017fi
18018
18019
18020
18021
18022
18023#### Report on what we decided to do.
18024#### Report GTK as a toolkit, even if it doesn't use Xt.
18025#### It makes printing result more understandable as using GTK sets
18026#### toolkit_scroll_bars to yes by default.
18027if test "${HAVE_GTK}" = "yes"; then
18028 USE_X_TOOLKIT=GTK
18029fi
18030
18031echo "
18032Configured for \`${canonical}'.
18033
18034 Where should the build process find the source code? ${srcdir}
18035 What operating system and machine description files should Emacs use?
18036 \`${opsysfile}' and \`${machfile}'
18037 What compiler should emacs be built with? ${CC} ${CFLAGS}
18038 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18039 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18040 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18041 What window system should Emacs use? ${window_system}
18042 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18043
18044if test -n "${x_includes}"; then
18045echo " Where do we find X Windows header files? ${x_includes}"
18046else
18047echo " Where do we find X Windows header files? Standard dirs"
18048fi
18049if test -n "${x_libraries}"; then
18050echo " Where do we find X Windows libraries? ${x_libraries}"
18051else
18052echo " Where do we find X Windows libraries? Standard dirs"
18053fi
18054
18055echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18056echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18057echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18058echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18059echo " Does Emacs use -lungif? ${HAVE_GIF}"
18060echo " Does Emacs use -lpng? ${HAVE_PNG}"
18061echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18062echo
18063
18064# Remove any trailing slashes in these variables.
18065test "${prefix}" != NONE &&
18066 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18067test "${exec_prefix}" != NONE &&
18068 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18069
18070## Check if the C preprocessor will convert `..' to `. .'. If so, set
18071## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18072## from Makefile.c can correctly provide the arg `-traditional' to the
18073## C preprocessor.
18074
18075cat >conftest.$ac_ext <<_ACEOF
18076#line $LINENO "configure"
18077/* confdefs.h. */
18078_ACEOF
18079cat confdefs.h >>conftest.$ac_ext
18080cat >>conftest.$ac_ext <<_ACEOF
18081/* end confdefs.h. */
18082yes..yes
18083_ACEOF
18084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18085 $EGREP "yes..yes" >/dev/null 2>&1; then
18086 CPP_NEED_TRADITIONAL=no
18087else
18088 CPP_NEED_TRADITIONAL=yes
18089fi
18090rm -f conftest*
18091
18092
18093 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
18094 ac_config_commands="$ac_config_commands default"
18095cat >confcache <<\_ACEOF
18096# This file is a shell script that caches the results of configure
18097# tests run on this system so they can be shared between configure
18098# scripts and configure runs, see configure's option --config-cache.
18099# It is not useful on other systems. If it contains results you don't
18100# want to keep, you may remove or edit it.
18101#
18102# config.status only pays attention to the cache file if you give it
18103# the --recheck option to rerun configure.
18104#
18105# `ac_cv_env_foo' variables (set or unset) will be overridden when
18106# loading this file, other *unset* `ac_cv_foo' will be assigned the
18107# following values.
18108
18109_ACEOF
18110
18111# The following way of writing the cache mishandles newlines in values,
18112# but we know of no workaround that is simple, portable, and efficient.
18113# So, don't put newlines in cache variables' values.
18114# Ultrix sh set writes to stderr and can't be redirected directly,
18115# and sets the high bit in the cache file unless we assign to the vars.
18116{
18117 (set) 2>&1 |
18118 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18119 *ac_space=\ *)
18120 # `set' does not quote correctly, so add quotes (double-quote
18121 # substitution turns \\\\ into \\, and sed turns \\ into \).
18122 sed -n \
18123 "s/'/'\\\\''/g;
18124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18125 ;;
18126 *)
18127 # `set' quotes correctly as required by POSIX, so do not add quotes.
18128 sed -n \
18129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18130 ;;
18131 esac;
18132} |
18133 sed '
18134 t clear
18135 : clear
18136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18137 t end
18138 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18139 : end' >>confcache
18140if diff $cache_file confcache >/dev/null 2>&1; then :; else
18141 if test -w $cache_file; then
18142 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18143 cat confcache >$cache_file
18144 else
18145 echo "not updating unwritable cache $cache_file"
18146 fi
18147fi
18148rm -f confcache
18149
18150test "x$prefix" = xNONE && prefix=$ac_default_prefix
18151# Let make expand exec_prefix.
18152test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18153
18154# VPATH may cause trouble with some makes, so we remove $(srcdir),
18155# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18156# trailing colons and then remove the whole line if VPATH becomes empty
18157# (actually we leave an empty line to preserve line numbers).
18158if test "x$srcdir" = x.; then
18159 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18160s/:*\$(srcdir):*/:/;
18161s/:*\${srcdir}:*/:/;
18162s/:*@srcdir@:*/:/;
18163s/^\([^=]*=[ ]*\):*/\1/;
18164s/:*$//;
18165s/^[^=]*=[ ]*$//;
18166}'
18167fi
18168
18169DEFS=-DHAVE_CONFIG_H
18170
18171ac_libobjs=
18172ac_ltlibobjs=
18173for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18174 # 1. Remove the extension, and $U if already installed.
18175 ac_i=`echo "$ac_i" |
18176 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18177 # 2. Add them.
18178 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18179 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18180done
18181LIBOBJS=$ac_libobjs
18182
18183LTLIBOBJS=$ac_ltlibobjs
18184
18185
18186
18187: ${CONFIG_STATUS=./config.status}
18188ac_clean_files_save=$ac_clean_files
18189ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18190{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18191echo "$as_me: creating $CONFIG_STATUS" >&6;}
18192cat >$CONFIG_STATUS <<_ACEOF
18193#! $SHELL
18194# Generated by $as_me.
18195# Run this file to recreate the current configuration.
18196# Compiler output produced by configure, useful for debugging
18197# configure, is in config.log if it exists.
18198
18199debug=false
18200ac_cs_recheck=false
18201ac_cs_silent=false
18202SHELL=\${CONFIG_SHELL-$SHELL}
18203_ACEOF
18204
18205cat >>$CONFIG_STATUS <<\_ACEOF
18206## --------------------- ##
18207## M4sh Initialization. ##
18208## --------------------- ##
18209
18210# Be Bourne compatible
18211if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18212 emulate sh
18213 NULLCMD=:
18214 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18215 # is contrary to our usage. Disable this feature.
18216 alias -g '${1+"$@"}'='"$@"'
18217elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18218 set -o posix
18219fi
18220
18221# Support unset when possible.
18222if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18223 as_unset=unset
18224else
18225 as_unset=false
18226fi
18227
18228
18229# Work around bugs in pre-3.0 UWIN ksh.
18230$as_unset ENV MAIL MAILPATH
18231PS1='$ '
18232PS2='> '
18233PS4='+ '
18234
18235# NLS nuisances.
18236for as_var in \
18237 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18238 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18239 LC_TELEPHONE LC_TIME
18240do
18241 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18242 eval $as_var=C; export $as_var
18243 else
18244 $as_unset $as_var
18245 fi
18246done
18247
18248# Required to use basename.
18249if expr a : '\(a\)' >/dev/null 2>&1; then
18250 as_expr=expr
18251else
18252 as_expr=false
18253fi
18254
18255if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18256 as_basename=basename
18257else
18258 as_basename=false
18259fi
18260
18261
18262# Name of the executable.
18263as_me=`$as_basename "$0" ||
18264$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18265 X"$0" : 'X\(//\)$' \| \
18266 X"$0" : 'X\(/\)$' \| \
18267 . : '\(.\)' 2>/dev/null ||
18268echo X/"$0" |
18269 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18270 /^X\/\(\/\/\)$/{ s//\1/; q; }
18271 /^X\/\(\/\).*/{ s//\1/; q; }
18272 s/.*/./; q'`
18273
18274
18275# PATH needs CR, and LINENO needs CR and PATH.
18276# Avoid depending upon Character Ranges.
18277as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18278as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18279as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18280as_cr_digits='0123456789'
18281as_cr_alnum=$as_cr_Letters$as_cr_digits
18282
18283# The user is always right.
18284if test "${PATH_SEPARATOR+set}" != set; then
18285 echo "#! /bin/sh" >conf$$.sh
18286 echo "exit 0" >>conf$$.sh
18287 chmod +x conf$$.sh
18288 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18289 PATH_SEPARATOR=';'
18290 else
18291 PATH_SEPARATOR=:
18292 fi
18293 rm -f conf$$.sh
18294fi
18295
18296
18297 as_lineno_1=$LINENO
18298 as_lineno_2=$LINENO
18299 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18300 test "x$as_lineno_1" != "x$as_lineno_2" &&
18301 test "x$as_lineno_3" = "x$as_lineno_2" || {
18302 # Find who we are. Look in the path if we contain no path at all
18303 # relative or not.
18304 case $0 in
18305 *[\\/]* ) as_myself=$0 ;;
18306 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18307for as_dir in $PATH
18308do
18309 IFS=$as_save_IFS
18310 test -z "$as_dir" && as_dir=.
18311 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18312done
18313
18314 ;;
18315 esac
18316 # We did not find ourselves, most probably we were run as `sh COMMAND'
18317 # in which case we are not to be found in the path.
18318 if test "x$as_myself" = x; then
18319 as_myself=$0
18320 fi
18321 if test ! -f "$as_myself"; then
18322 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18323echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18324 { (exit 1); exit 1; }; }
18325 fi
18326 case $CONFIG_SHELL in
18327 '')
18328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18329for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18330do
18331 IFS=$as_save_IFS
18332 test -z "$as_dir" && as_dir=.
18333 for as_base in sh bash ksh sh5; do
18334 case $as_dir in
18335 /*)
18336 if ("$as_dir/$as_base" -c '
18337 as_lineno_1=$LINENO
18338 as_lineno_2=$LINENO
18339 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18340 test "x$as_lineno_1" != "x$as_lineno_2" &&
18341 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18342 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18343 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18344 CONFIG_SHELL=$as_dir/$as_base
18345 export CONFIG_SHELL
18346 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18347 fi;;
18348 esac
18349 done
18350done
18351;;
18352 esac
18353
18354 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18355 # uniformly replaced by the line number. The first 'sed' inserts a
18356 # line-number line before each line; the second 'sed' does the real
18357 # work. The second script uses 'N' to pair each line-number line
18358 # with the numbered line, and appends trailing '-' during
18359 # substitution so that $LINENO is not a special case at line end.
18360 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18361 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18362 sed '=' <$as_myself |
18363 sed '
18364 N
18365 s,$,-,
18366 : loop
18367 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18368 t loop
18369 s,-$,,
18370 s,^['$as_cr_digits']*\n,,
18371 ' >$as_me.lineno &&
18372 chmod +x $as_me.lineno ||
18373 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18374echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18375 { (exit 1); exit 1; }; }
18376
18377 # Don't try to exec as it changes $[0], causing all sort of problems
18378 # (the dirname of $[0] is not the place where we might find the
18379 # original and so on. Autoconf is especially sensible to this).
18380 . ./$as_me.lineno
18381 # Exit status is that of the last command.
18382 exit
18383}
18384
18385
18386case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18387 *c*,-n*) ECHO_N= ECHO_C='
18388' ECHO_T=' ' ;;
18389 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18390 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18391esac
18392
18393if expr a : '\(a\)' >/dev/null 2>&1; then
18394 as_expr=expr
18395else
18396 as_expr=false
18397fi
18398
18399rm -f conf$$ conf$$.exe conf$$.file
18400echo >conf$$.file
18401if ln -s conf$$.file conf$$ 2>/dev/null; then
18402 # We could just check for DJGPP; but this test a) works b) is more generic
18403 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18404 if test -f conf$$.exe; then
18405 # Don't use ln at all; we don't have any links
18406 as_ln_s='cp -p'
18407 else
18408 as_ln_s='ln -s'
18409 fi
18410elif ln conf$$.file conf$$ 2>/dev/null; then
18411 as_ln_s=ln
18412else
18413 as_ln_s='cp -p'
18414fi
18415rm -f conf$$ conf$$.exe conf$$.file
18416
18417if mkdir -p . 2>/dev/null; then
18418 as_mkdir_p=:
18419else
18420 as_mkdir_p=false
18421fi
18422
18423as_executable_p="test -f"
18424
18425# Sed expression to map a string onto a valid CPP name.
18426as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18427
18428# Sed expression to map a string onto a valid variable name.
18429as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18430
18431
18432# IFS
18433# We need space, tab and new line, in precisely that order.
18434as_nl='
18435'
18436IFS=" $as_nl"
18437
18438# CDPATH.
18439$as_unset CDPATH
18440
18441exec 6>&1
18442
18443# Open the log real soon, to keep \$[0] and so on meaningful, and to
18444# report actual input values of CONFIG_FILES etc. instead of their
18445# values after options handling. Logging --version etc. is OK.
18446exec 5>>config.log
18447{
18448 echo
18449 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18450## Running $as_me. ##
18451_ASBOX
18452} >&5
18453cat >&5 <<_CSEOF
18454
18455This file was extended by $as_me, which was
18456generated by GNU Autoconf 2.57. Invocation command line was
18457
18458 CONFIG_FILES = $CONFIG_FILES
18459 CONFIG_HEADERS = $CONFIG_HEADERS
18460 CONFIG_LINKS = $CONFIG_LINKS
18461 CONFIG_COMMANDS = $CONFIG_COMMANDS
18462 $ $0 $@
18463
18464_CSEOF
18465echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18466echo >&5
18467_ACEOF
18468
18469# Files that config.status was made for.
18470if test -n "$ac_config_files"; then
18471 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18472fi
18473
18474if test -n "$ac_config_headers"; then
18475 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18476fi
18477
18478if test -n "$ac_config_links"; then
18479 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18480fi
18481
18482if test -n "$ac_config_commands"; then
18483 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18484fi
18485
18486cat >>$CONFIG_STATUS <<\_ACEOF
18487
18488ac_cs_usage="\
18489\`$as_me' instantiates files from templates according to the
18490current configuration.
18491
18492Usage: $0 [OPTIONS] [FILE]...
18493
18494 -h, --help print this help, then exit
18495 -V, --version print version number, then exit
18496 -q, --quiet do not print progress messages
18497 -d, --debug don't remove temporary files
18498 --recheck update $as_me by reconfiguring in the same conditions
18499 --file=FILE[:TEMPLATE]
18500 instantiate the configuration file FILE
18501 --header=FILE[:TEMPLATE]
18502 instantiate the configuration header FILE
18503
18504Configuration files:
18505$config_files
18506
18507Configuration headers:
18508$config_headers
18509
18510Configuration commands:
18511$config_commands
18512
18513Report bugs to <bug-autoconf@gnu.org>."
18514_ACEOF
18515
18516cat >>$CONFIG_STATUS <<_ACEOF
18517ac_cs_version="\\
18518config.status
18519configured by $0, generated by GNU Autoconf 2.57,
18520 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18521
18522Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18523Free Software Foundation, Inc.
18524This config.status script is free software; the Free Software Foundation
18525gives unlimited permission to copy, distribute and modify it."
18526srcdir=$srcdir
18527INSTALL="$INSTALL"
18528_ACEOF
18529
18530cat >>$CONFIG_STATUS <<\_ACEOF
18531# If no file are specified by the user, then we need to provide default
18532# value. By we need to know if files were specified by the user.
18533ac_need_defaults=:
18534while test $# != 0
18535do
18536 case $1 in
18537 --*=*)
18538 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18539 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18540 ac_shift=:
18541 ;;
18542 -*)
18543 ac_option=$1
18544 ac_optarg=$2
18545 ac_shift=shift
18546 ;;
18547 *) # This is not an option, so the user has probably given explicit
18548 # arguments.
18549 ac_option=$1
18550 ac_need_defaults=false;;
18551 esac
18552
18553 case $ac_option in
18554 # Handling of the options.
18555_ACEOF
18556cat >>$CONFIG_STATUS <<\_ACEOF
18557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18558 ac_cs_recheck=: ;;
18559 --version | --vers* | -V )
18560 echo "$ac_cs_version"; exit 0 ;;
18561 --he | --h)
18562 # Conflict between --help and --header
18563 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18564Try \`$0 --help' for more information." >&5
18565echo "$as_me: error: ambiguous option: $1
18566Try \`$0 --help' for more information." >&2;}
18567 { (exit 1); exit 1; }; };;
18568 --help | --hel | -h )
18569 echo "$ac_cs_usage"; exit 0 ;;
18570 --debug | --d* | -d )
18571 debug=: ;;
18572 --file | --fil | --fi | --f )
18573 $ac_shift
18574 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18575 ac_need_defaults=false;;
18576 --header | --heade | --head | --hea )
18577 $ac_shift
18578 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18579 ac_need_defaults=false;;
18580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18581 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18582 ac_cs_silent=: ;;
18583
18584 # This is an error.
18585 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18586Try \`$0 --help' for more information." >&5
18587echo "$as_me: error: unrecognized option: $1
18588Try \`$0 --help' for more information." >&2;}
18589 { (exit 1); exit 1; }; } ;;
18590
18591 *) ac_config_targets="$ac_config_targets $1" ;;
18592
18593 esac
18594 shift
18595done
18596
18597ac_configure_extra_args=
18598
18599if $ac_cs_silent; then
18600 exec 6>/dev/null
18601 ac_configure_extra_args="$ac_configure_extra_args --silent"
18602fi
18603
18604_ACEOF
18605cat >>$CONFIG_STATUS <<_ACEOF
18606if \$ac_cs_recheck; then
18607 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18608 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18609fi
18610
18611_ACEOF
18612
18613cat >>$CONFIG_STATUS <<_ACEOF
18614#
18615# INIT-COMMANDS section.
18616#
18617
18618GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18619
18620_ACEOF
18621
18622
18623
18624cat >>$CONFIG_STATUS <<\_ACEOF
18625for ac_config_target in $ac_config_targets
18626do
18627 case "$ac_config_target" in
18628 # Handling of arguments.
18629 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18630 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18631 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18632 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18633 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18634 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18635 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18636 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
18637 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
18638 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18639 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18640 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18641 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18642echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18643 { (exit 1); exit 1; }; };;
18644 esac
18645done
18646
18647# If the user did not use the arguments to specify the items to instantiate,
18648# then the envvar interface is used. Set only those that are not.
18649# We use the long form for the default assignment because of an extremely
18650# bizarre bug on SunOS 4.1.3.
18651if $ac_need_defaults; then
18652 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18653 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18655fi
18656
18657# Have a temporary directory for convenience. Make it in the build tree
18658# simply because there is no reason to put it here, and in addition,
18659# creating and moving files from /tmp can sometimes cause problems.
18660# Create a temporary directory, and hook for its removal unless debugging.
18661$debug ||
18662{
18663 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18664 trap '{ (exit 1); exit 1; }' 1 2 13 15
18665}
18666
18667# Create a (secure) tmp directory for tmp files.
18668
18669{
18670 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18671 test -n "$tmp" && test -d "$tmp"
18672} ||
18673{
18674 tmp=./confstat$$-$RANDOM
18675 (umask 077 && mkdir $tmp)
18676} ||
18677{
18678 echo "$me: cannot create a temporary directory in ." >&2
18679 { (exit 1); exit 1; }
18680}
18681
18682_ACEOF
18683
18684cat >>$CONFIG_STATUS <<_ACEOF
18685
18686#
18687# CONFIG_FILES section.
18688#
18689
18690# No need to generate the scripts if there are no CONFIG_FILES.
18691# This happens for instance when ./config.status config.h
18692if test -n "\$CONFIG_FILES"; then
18693 # Protect against being on the right side of a sed subst in config.status.
18694 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18695 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18696s,@SHELL@,$SHELL,;t t
18697s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18698s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18699s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18700s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18701s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18702s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18703s,@exec_prefix@,$exec_prefix,;t t
18704s,@prefix@,$prefix,;t t
18705s,@program_transform_name@,$program_transform_name,;t t
18706s,@bindir@,$bindir,;t t
18707s,@sbindir@,$sbindir,;t t
18708s,@libexecdir@,$libexecdir,;t t
18709s,@datadir@,$datadir,;t t
18710s,@sysconfdir@,$sysconfdir,;t t
18711s,@sharedstatedir@,$sharedstatedir,;t t
18712s,@localstatedir@,$localstatedir,;t t
18713s,@libdir@,$libdir,;t t
18714s,@includedir@,$includedir,;t t
18715s,@oldincludedir@,$oldincludedir,;t t
18716s,@infodir@,$infodir,;t t
18717s,@mandir@,$mandir,;t t
18718s,@build_alias@,$build_alias,;t t
18719s,@host_alias@,$host_alias,;t t
18720s,@target_alias@,$target_alias,;t t
18721s,@DEFS@,$DEFS,;t t
18722s,@ECHO_C@,$ECHO_C,;t t
18723s,@ECHO_N@,$ECHO_N,;t t
18724s,@ECHO_T@,$ECHO_T,;t t
18725s,@LIBS@,$LIBS,;t t
18726s,@build@,$build,;t t
18727s,@build_cpu@,$build_cpu,;t t
18728s,@build_vendor@,$build_vendor,;t t
18729s,@build_os@,$build_os,;t t
18730s,@host@,$host,;t t
18731s,@host_cpu@,$host_cpu,;t t
18732s,@host_vendor@,$host_vendor,;t t
18733s,@host_os@,$host_os,;t t
18734s,@CC@,$CC,;t t
18735s,@CFLAGS@,$CFLAGS,;t t
18736s,@LDFLAGS@,$LDFLAGS,;t t
18737s,@CPPFLAGS@,$CPPFLAGS,;t t
18738s,@ac_ct_CC@,$ac_ct_CC,;t t
18739s,@EXEEXT@,$EXEEXT,;t t
18740s,@OBJEXT@,$OBJEXT,;t t
18741s,@LN_S@,$LN_S,;t t
18742s,@CPP@,$CPP,;t t
18743s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18744s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18745s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18746s,@RANLIB@,$RANLIB,;t t
18747s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18748s,@INSTALL_INFO@,$INSTALL_INFO,;t t
18749s,@EGREP@,$EGREP,;t t
18750s,@LIBSOUND@,$LIBSOUND,;t t
18751s,@SET_MAKE@,$SET_MAKE,;t t
18752s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18753s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18754s,@GTK_LIBS@,$GTK_LIBS,;t t
18755s,@ALLOCA@,$ALLOCA,;t t
18756s,@liblockfile@,$liblockfile,;t t
18757s,@LIBOBJS@,$LIBOBJS,;t t
18758s,@NEED_SETGID@,$NEED_SETGID,;t t
18759s,@KMEM_GROUP@,$KMEM_GROUP,;t t
18760s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
18761s,@version@,$version,;t t
18762s,@configuration@,$configuration,;t t
18763s,@canonical@,$canonical,;t t
18764s,@srcdir@,$srcdir,;t t
18765s,@lispdir@,$lispdir,;t t
18766s,@locallisppath@,$locallisppath,;t t
18767s,@lisppath@,$lisppath,;t t
18768s,@x_default_search_path@,$x_default_search_path,;t t
18769s,@etcdir@,$etcdir,;t t
18770s,@archlibdir@,$archlibdir,;t t
18771s,@docdir@,$docdir,;t t
18772s,@bitmapdir@,$bitmapdir,;t t
18773s,@gamedir@,$gamedir,;t t
18774s,@gameuser@,$gameuser,;t t
18775s,@c_switch_system@,$c_switch_system,;t t
18776s,@c_switch_machine@,$c_switch_machine,;t t
18777s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
18778s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
18779s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
18780s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
18781s,@machfile@,$machfile,;t t
18782s,@opsysfile@,$opsysfile,;t t
18783s,@carbon_appdir@,$carbon_appdir,;t t
18784s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18785CEOF
18786
18787_ACEOF
18788
18789 cat >>$CONFIG_STATUS <<\_ACEOF
18790 # Split the substitutions into bite-sized pieces for seds with
18791 # small command number limits, like on Digital OSF/1 and HP-UX.
18792 ac_max_sed_lines=48
18793 ac_sed_frag=1 # Number of current file.
18794 ac_beg=1 # First line for current file.
18795 ac_end=$ac_max_sed_lines # Line after last line for current file.
18796 ac_more_lines=:
18797 ac_sed_cmds=
18798 while $ac_more_lines; do
18799 if test $ac_beg -gt 1; then
18800 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18801 else
18802 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18803 fi
18804 if test ! -s $tmp/subs.frag; then
18805 ac_more_lines=false
18806 else
18807 # The purpose of the label and of the branching condition is to
18808 # speed up the sed processing (if there are no `@' at all, there
18809 # is no need to browse any of the substitutions).
18810 # These are the two extra sed commands mentioned above.
18811 (echo ':t
18812 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18813 if test -z "$ac_sed_cmds"; then
18814 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18815 else
18816 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18817 fi
18818 ac_sed_frag=`expr $ac_sed_frag + 1`
18819 ac_beg=$ac_end
18820 ac_end=`expr $ac_end + $ac_max_sed_lines`
18821 fi
18822 done
18823 if test -z "$ac_sed_cmds"; then
18824 ac_sed_cmds=cat
18825 fi
18826fi # test -n "$CONFIG_FILES"
18827
18828_ACEOF
18829cat >>$CONFIG_STATUS <<\_ACEOF
18830for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18831 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18832 case $ac_file in
18833 - | *:- | *:-:* ) # input from stdin
18834 cat >$tmp/stdin
18835 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18836 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18837 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18838 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18839 * ) ac_file_in=$ac_file.in ;;
18840 esac
18841
18842 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18843 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18844$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18845 X"$ac_file" : 'X\(//\)[^/]' \| \
18846 X"$ac_file" : 'X\(//\)$' \| \
18847 X"$ac_file" : 'X\(/\)' \| \
18848 . : '\(.\)' 2>/dev/null ||
18849echo X"$ac_file" |
18850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18851 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18852 /^X\(\/\/\)$/{ s//\1/; q; }
18853 /^X\(\/\).*/{ s//\1/; q; }
18854 s/.*/./; q'`
18855 { if $as_mkdir_p; then
18856 mkdir -p "$ac_dir"
18857 else
18858 as_dir="$ac_dir"
18859 as_dirs=
18860 while test ! -d "$as_dir"; do
18861 as_dirs="$as_dir $as_dirs"
18862 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18863$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18864 X"$as_dir" : 'X\(//\)[^/]' \| \
18865 X"$as_dir" : 'X\(//\)$' \| \
18866 X"$as_dir" : 'X\(/\)' \| \
18867 . : '\(.\)' 2>/dev/null ||
18868echo X"$as_dir" |
18869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18871 /^X\(\/\/\)$/{ s//\1/; q; }
18872 /^X\(\/\).*/{ s//\1/; q; }
18873 s/.*/./; q'`
18874 done
18875 test ! -n "$as_dirs" || mkdir $as_dirs
18876 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18877echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18878 { (exit 1); exit 1; }; }; }
18879
18880 ac_builddir=.
18881
18882if test "$ac_dir" != .; then
18883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18884 # A "../" for each directory in $ac_dir_suffix.
18885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18886else
18887 ac_dir_suffix= ac_top_builddir=
18888fi
18889
18890case $srcdir in
18891 .) # No --srcdir option. We are building in place.
18892 ac_srcdir=.
18893 if test -z "$ac_top_builddir"; then
18894 ac_top_srcdir=.
18895 else
18896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18897 fi ;;
18898 [\\/]* | ?:[\\/]* ) # Absolute path.
18899 ac_srcdir=$srcdir$ac_dir_suffix;
18900 ac_top_srcdir=$srcdir ;;
18901 *) # Relative path.
18902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18904esac
18905# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18906# absolute.
18907ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18908ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18909ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18910ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18911
18912
18913 case $INSTALL in
18914 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18915 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18916 esac
18917
18918 if test x"$ac_file" != x-; then
18919 { echo "$as_me:$LINENO: creating $ac_file" >&5
18920echo "$as_me: creating $ac_file" >&6;}
18921 rm -f "$ac_file"
18922 fi
18923 # Let's still pretend it is `configure' which instantiates (i.e., don't
18924 # use $as_me), people would be surprised to read:
18925 # /* config.h. Generated by config.status. */
18926 if test x"$ac_file" = x-; then
18927 configure_input=
18928 else
18929 configure_input="$ac_file. "
18930 fi
18931 configure_input=$configure_input"Generated from `echo $ac_file_in |
18932 sed 's,.*/,,'` by configure."
18933
18934 # First look for the input files in the build tree, otherwise in the
18935 # src tree.
18936 ac_file_inputs=`IFS=:
18937 for f in $ac_file_in; do
18938 case $f in
18939 -) echo $tmp/stdin ;;
18940 [\\/$]*)
18941 # Absolute (can't be DOS-style, as IFS=:)
18942 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18943echo "$as_me: error: cannot find input file: $f" >&2;}
18944 { (exit 1); exit 1; }; }
18945 echo $f;;
18946 *) # Relative
18947 if test -f "$f"; then
18948 # Build tree
18949 echo $f
18950 elif test -f "$srcdir/$f"; then
18951 # Source tree
18952 echo $srcdir/$f
18953 else
18954 # /dev/null tree
18955 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18956echo "$as_me: error: cannot find input file: $f" >&2;}
18957 { (exit 1); exit 1; }; }
18958 fi;;
18959 esac
18960 done` || { (exit 1); exit 1; }
18961_ACEOF
18962cat >>$CONFIG_STATUS <<_ACEOF
18963 sed "$ac_vpsub
18964$extrasub
18965_ACEOF
18966cat >>$CONFIG_STATUS <<\_ACEOF
18967:t
18968/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18969s,@configure_input@,$configure_input,;t t
18970s,@srcdir@,$ac_srcdir,;t t
18971s,@abs_srcdir@,$ac_abs_srcdir,;t t
18972s,@top_srcdir@,$ac_top_srcdir,;t t
18973s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18974s,@builddir@,$ac_builddir,;t t
18975s,@abs_builddir@,$ac_abs_builddir,;t t
18976s,@top_builddir@,$ac_top_builddir,;t t
18977s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18978s,@INSTALL@,$ac_INSTALL,;t t
18979" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18980 rm -f $tmp/stdin
18981 if test x"$ac_file" != x-; then
18982 mv $tmp/out $ac_file
18983 else
18984 cat $tmp/out
18985 rm -f $tmp/out
18986 fi
18987
18988done
18989_ACEOF
18990cat >>$CONFIG_STATUS <<\_ACEOF
18991
18992#
18993# CONFIG_HEADER section.
18994#
18995
18996# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18997# NAME is the cpp macro being defined and VALUE is the value it is being given.
18998#
18999# ac_d sets the value in "#define NAME VALUE" lines.
19000ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19001ac_dB='[ ].*$,\1#\2'
19002ac_dC=' '
19003ac_dD=',;t'
19004# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19005ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19006ac_uB='$,\1#\2define\3'
19007ac_uC=' '
19008ac_uD=',;t'
19009
19010for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19011 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19012 case $ac_file in
19013 - | *:- | *:-:* ) # input from stdin
19014 cat >$tmp/stdin
19015 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19016 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19017 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19018 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19019 * ) ac_file_in=$ac_file.in ;;
19020 esac
19021
19022 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19023echo "$as_me: creating $ac_file" >&6;}
19024
19025 # First look for the input files in the build tree, otherwise in the
19026 # src tree.
19027 ac_file_inputs=`IFS=:
19028 for f in $ac_file_in; do
19029 case $f in
19030 -) echo $tmp/stdin ;;
19031 [\\/$]*)
19032 # Absolute (can't be DOS-style, as IFS=:)
19033 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19034echo "$as_me: error: cannot find input file: $f" >&2;}
19035 { (exit 1); exit 1; }; }
19036 echo $f;;
19037 *) # Relative
19038 if test -f "$f"; then
19039 # Build tree
19040 echo $f
19041 elif test -f "$srcdir/$f"; then
19042 # Source tree
19043 echo $srcdir/$f
19044 else
19045 # /dev/null tree
19046 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19047echo "$as_me: error: cannot find input file: $f" >&2;}
19048 { (exit 1); exit 1; }; }
19049 fi;;
19050 esac
19051 done` || { (exit 1); exit 1; }
19052 # Remove the trailing spaces.
19053 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19054
19055_ACEOF
19056
19057# Transform confdefs.h into two sed scripts, `conftest.defines' and
19058# `conftest.undefs', that substitutes the proper values into
19059# config.h.in to produce config.h. The first handles `#define'
19060# templates, and the second `#undef' templates.
19061# And first: Protect against being on the right side of a sed subst in
19062# config.status. Protect against being in an unquoted here document
19063# in config.status.
19064rm -f conftest.defines conftest.undefs
19065# Using a here document instead of a string reduces the quoting nightmare.
19066# Putting comments in sed scripts is not portable.
19067#
19068# `end' is used to avoid that the second main sed command (meant for
19069# 0-ary CPP macros) applies to n-ary macro definitions.
19070# See the Autoconf documentation for `clear'.
19071cat >confdef2sed.sed <<\_ACEOF
19072s/[\\&,]/\\&/g
19073s,[\\$`],\\&,g
19074t clear
19075: clear
19076s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19077t end
19078s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19079: end
19080_ACEOF
19081# If some macros were called several times there might be several times
19082# the same #defines, which is useless. Nevertheless, we may not want to
19083# sort them, since we want the *last* AC-DEFINE to be honored.
19084uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19085sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19086rm -f confdef2sed.sed
19087
19088# This sed command replaces #undef with comments. This is necessary, for
19089# example, in the case of _POSIX_SOURCE, which is predefined and required
19090# on some systems where configure will not decide to define it.
19091cat >>conftest.undefs <<\_ACEOF
19092s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19093_ACEOF
19094
19095# Break up conftest.defines because some shells have a limit on the size
19096# of here documents, and old seds have small limits too (100 cmds).
19097echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19098echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19099echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19100echo ' :' >>$CONFIG_STATUS
19101rm -f conftest.tail
19102while grep . conftest.defines >/dev/null
19103do
19104 # Write a limited-size here document to $tmp/defines.sed.
19105 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19106 # Speed up: don't consider the non `#define' lines.
19107 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19108 # Work around the forget-to-reset-the-flag bug.
19109 echo 't clr' >>$CONFIG_STATUS
19110 echo ': clr' >>$CONFIG_STATUS
19111 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19112 echo 'CEOF
19113 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19114 rm -f $tmp/in
19115 mv $tmp/out $tmp/in
19116' >>$CONFIG_STATUS
19117 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19118 rm -f conftest.defines
19119 mv conftest.tail conftest.defines
19120done
19121rm -f conftest.defines
19122echo ' fi # grep' >>$CONFIG_STATUS
19123echo >>$CONFIG_STATUS
19124
19125# Break up conftest.undefs because some shells have a limit on the size
19126# of here documents, and old seds have small limits too (100 cmds).
19127echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19128rm -f conftest.tail
19129while grep . conftest.undefs >/dev/null
19130do
19131 # Write a limited-size here document to $tmp/undefs.sed.
19132 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19133 # Speed up: don't consider the non `#undef'
19134 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19135 # Work around the forget-to-reset-the-flag bug.
19136 echo 't clr' >>$CONFIG_STATUS
19137 echo ': clr' >>$CONFIG_STATUS
19138 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19139 echo 'CEOF
19140 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19141 rm -f $tmp/in
19142 mv $tmp/out $tmp/in
19143' >>$CONFIG_STATUS
19144 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19145 rm -f conftest.undefs
19146 mv conftest.tail conftest.undefs
19147done
19148rm -f conftest.undefs
19149
19150cat >>$CONFIG_STATUS <<\_ACEOF
19151 # Let's still pretend it is `configure' which instantiates (i.e., don't
19152 # use $as_me), people would be surprised to read:
19153 # /* config.h. Generated by config.status. */
19154 if test x"$ac_file" = x-; then
19155 echo "/* Generated by configure. */" >$tmp/config.h
19156 else
19157 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19158 fi
19159 cat $tmp/in >>$tmp/config.h
19160 rm -f $tmp/in
19161 if test x"$ac_file" != x-; then
19162 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19163 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19164echo "$as_me: $ac_file is unchanged" >&6;}
19165 else
19166 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19167$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19168 X"$ac_file" : 'X\(//\)[^/]' \| \
19169 X"$ac_file" : 'X\(//\)$' \| \
19170 X"$ac_file" : 'X\(/\)' \| \
19171 . : '\(.\)' 2>/dev/null ||
19172echo X"$ac_file" |
19173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19175 /^X\(\/\/\)$/{ s//\1/; q; }
19176 /^X\(\/\).*/{ s//\1/; q; }
19177 s/.*/./; q'`
19178 { if $as_mkdir_p; then
19179 mkdir -p "$ac_dir"
19180 else
19181 as_dir="$ac_dir"
19182 as_dirs=
19183 while test ! -d "$as_dir"; do
19184 as_dirs="$as_dir $as_dirs"
19185 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19186$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19187 X"$as_dir" : 'X\(//\)[^/]' \| \
19188 X"$as_dir" : 'X\(//\)$' \| \
19189 X"$as_dir" : 'X\(/\)' \| \
19190 . : '\(.\)' 2>/dev/null ||
19191echo X"$as_dir" |
19192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19194 /^X\(\/\/\)$/{ s//\1/; q; }
19195 /^X\(\/\).*/{ s//\1/; q; }
19196 s/.*/./; q'`
19197 done
19198 test ! -n "$as_dirs" || mkdir $as_dirs
19199 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19200echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19201 { (exit 1); exit 1; }; }; }
19202
19203 rm -f $ac_file
19204 mv $tmp/config.h $ac_file
19205 fi
19206 else
19207 cat $tmp/config.h
19208 rm -f $tmp/config.h
19209 fi
19210done
19211_ACEOF
19212cat >>$CONFIG_STATUS <<\_ACEOF
19213
19214#
19215# CONFIG_COMMANDS section.
19216#
19217for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19218 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19219 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19220 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19221$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19222 X"$ac_dest" : 'X\(//\)[^/]' \| \
19223 X"$ac_dest" : 'X\(//\)$' \| \
19224 X"$ac_dest" : 'X\(/\)' \| \
19225 . : '\(.\)' 2>/dev/null ||
19226echo X"$ac_dest" |
19227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19229 /^X\(\/\/\)$/{ s//\1/; q; }
19230 /^X\(\/\).*/{ s//\1/; q; }
19231 s/.*/./; q'`
19232 ac_builddir=.
19233
19234if test "$ac_dir" != .; then
19235 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19236 # A "../" for each directory in $ac_dir_suffix.
19237 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19238else
19239 ac_dir_suffix= ac_top_builddir=
19240fi
19241
19242case $srcdir in
19243 .) # No --srcdir option. We are building in place.
19244 ac_srcdir=.
19245 if test -z "$ac_top_builddir"; then
19246 ac_top_srcdir=.
19247 else
19248 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19249 fi ;;
19250 [\\/]* | ?:[\\/]* ) # Absolute path.
19251 ac_srcdir=$srcdir$ac_dir_suffix;
19252 ac_top_srcdir=$srcdir ;;
19253 *) # Relative path.
19254 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19255 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19256esac
19257# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19258# absolute.
19259ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19260ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19261ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19262ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19263
19264
19265 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19266echo "$as_me: executing $ac_dest commands" >&6;}
19267 case $ac_dest in
19268 default )
19269
19270### Make the necessary directories, if they don't exist.
19271for dir in etc lisp ; do
19272 test -d ${dir} || mkdir ${dir}
19273done
19274
19275# Build src/Makefile from ${srcdir}/src/Makefile.c
19276# and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19277# This must be done after src/config.h is built, since we rely on that file.
19278
19279# Now get this: Some word that is part of the ${srcdir} directory name
19280# or the ${configuration} value might, just might, happen to be an
19281# identifier like `sun4' or `i386' or something, and be predefined by
19282# the C preprocessor to some helpful value like 1, or maybe the empty
19283# string. Needless to say consequent macro substitutions are less
19284# than conducive to the makefile finding the correct directory.
19285undefs="`echo $top_srcdir $configuration $canonical |
19286sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19287 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19288`"
19289
19290echo creating src/epaths.h
19291${MAKE-make} epaths-force
19292
19293# As of 2000-11-19, newest development versions of GNU cpp preprocess
19294# `..' to `. .' unless invoked with -traditional
19295
19296if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
19297 CPPFLAGS="$CPPFLAGS -traditional"
19298fi
19299
19300echo creating lib-src/Makefile
19301( cd lib-src
19302 rm -f junk.c junk1.c junk2.c
19303 sed -e '/start of cpp stuff/q' \
19304 < Makefile.c > junk1.c
19305 sed -e '1,/start of cpp stuff/d'\
19306 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19307 < Makefile.c > junk.c
19308 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19309 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19310 cat junk1.c junk2.c > Makefile.new
19311 rm -f junk.c junk1.c junk2.c
19312 chmod 444 Makefile.new
19313 mv -f Makefile.new Makefile
19314)
19315
19316echo creating src/Makefile
19317( cd src
19318 rm -f junk.c junk1.c junk2.c
19319 sed -e '/start of cpp stuff/q' \
19320 < Makefile.c > junk1.c
19321 sed -e '1,/start of cpp stuff/d'\
19322 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19323 < Makefile.c > junk.c
19324 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19325 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19326 cat junk1.c junk2.c > Makefile.new
19327 rm -f junk.c junk1.c junk2.c
19328 chmod 444 Makefile.new
19329 mv -f Makefile.new Makefile
19330)
19331
19332if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19333 echo creating src/.gdbinit
19334 echo source $srcdir/src/.gdbinit > src/.gdbinit
19335fi
19336
19337# This is how we know whether to re-run configure in certain cases.
19338touch src/config.stamp
19339
19340 ;;
19341 esac
19342done
19343_ACEOF
19344
19345cat >>$CONFIG_STATUS <<\_ACEOF
19346
19347{ (exit 0); exit 0; }
19348_ACEOF
19349chmod +x $CONFIG_STATUS
19350ac_clean_files=$ac_clean_files_save
19351
19352
19353# configure is writing to config.log, and then calls config.status.
19354# config.status does its own redirection, appending to config.log.
19355# Unfortunately, on DOS this fails, as config.log is still kept open
19356# by configure, so config.status won't be able to write to it; its
19357# output is simply discarded. So we exec the FD to /dev/null,
19358# effectively closing config.log, so it can be properly (re)opened and
19359# appended to by config.status. When coming back to configure, we
19360# need to make the FD available again.
19361if test "$no_create" != yes; then
19362 ac_cs_success=:
19363 ac_config_status_args=
19364 test "$silent" = yes &&
19365 ac_config_status_args="$ac_config_status_args --quiet"
19366 exec 5>/dev/null
19367 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19368 exec 5>>config.log
19369 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19370 # would make configure fail if this is the last instruction.
19371 $ac_cs_success || { (exit 1); exit 1; }
19372fi
19373
19374