(delete_all_overlays): New function.
[emacs.git] / configure
blob4496a368c164def46470a556f64e2f91321b8a4f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
43 else
44 $as_unset $as_var
46 done
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50 as_expr=expr
51 else
52 as_expr=false
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56 as_basename=basename
57 else
58 as_basename=false
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
72 s/.*/./; q'`
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
93 rm -f conftest.sh
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
144 export CONFIG_SHELL
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146 fi;;
147 esac
148 done
149 done
151 esac
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
162 sed '
164 s,$,-,
165 : loop
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 t loop
168 s,-$,,
169 s,^['$as_cr_digits']*\n,,
170 ' >$as_me.lineno &&
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
178 . ./$as_me.lineno
179 # Exit status is that of the last command.
180 exit
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T=' ' ;;
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192 as_expr=expr
193 else
194 as_expr=false
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
204 as_ln_s='cp -p'
205 else
206 as_ln_s='ln -s'
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209 as_ln_s=ln
210 else
211 as_ln_s='cp -p'
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
216 as_mkdir_p=:
217 else
218 as_mkdir_p=false
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
234 IFS=" $as_nl"
236 # CDPATH.
237 $as_unset CDPATH
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
245 exec 6>&1
248 # Initializations.
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 # Identity of this package.
264 PACKAGE_NAME=
265 PACKAGE_TARNAME=
266 PACKAGE_VERSION=
267 PACKAGE_STRING=
268 PACKAGE_BUGREPORT=
270 ac_unique_file="src/lisp.h"
271 ac_config_libobj_dir=src
272 # Factoring default headers for most tests.
273 ac_includes_default="\
274 #include <stdio.h>
275 #if HAVE_SYS_TYPES_H
276 # include <sys/types.h>
277 #endif
278 #if HAVE_SYS_STAT_H
279 # include <sys/stat.h>
280 #endif
281 #if STDC_HEADERS
282 # include <stdlib.h>
283 # include <stddef.h>
284 #else
285 # if HAVE_STDLIB_H
286 # include <stdlib.h>
287 # endif
288 #endif
289 #if HAVE_STRING_H
290 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <memory.h>
292 # endif
293 # include <string.h>
294 #endif
295 #if HAVE_STRINGS_H
296 # include <strings.h>
297 #endif
298 #if HAVE_INTTYPES_H
299 # include <inttypes.h>
300 #else
301 # if HAVE_STDINT_H
302 # include <stdint.h>
303 # endif
304 #endif
305 #if HAVE_UNISTD_H
306 # include <unistd.h>
307 #endif"
309 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
310 ac_subst_files=''
312 # Initialize some variables set by options.
313 ac_init_help=
314 ac_init_version=false
315 # The variables have the same names as the options, with
316 # dashes changed to underlines.
317 cache_file=/dev/null
318 exec_prefix=NONE
319 no_create=
320 no_recursion=
321 prefix=NONE
322 program_prefix=NONE
323 program_suffix=NONE
324 program_transform_name=s,x,x,
325 silent=
326 site=
327 srcdir=
328 verbose=
329 x_includes=NONE
330 x_libraries=NONE
332 # Installation directory options.
333 # These are left unexpanded so users can "make install exec_prefix=/foo"
334 # and all the variables that are supposed to be based on exec_prefix
335 # by default will actually change.
336 # Use braces instead of parens because sh, perl, etc. also accept them.
337 bindir='${exec_prefix}/bin'
338 sbindir='${exec_prefix}/sbin'
339 libexecdir='${exec_prefix}/libexec'
340 datadir='${prefix}/share'
341 sysconfdir='${prefix}/etc'
342 sharedstatedir='${prefix}/com'
343 localstatedir='${prefix}/var'
344 libdir='${exec_prefix}/lib'
345 includedir='${prefix}/include'
346 oldincludedir='/usr/include'
347 infodir='${prefix}/info'
348 mandir='${prefix}/man'
350 ac_prev=
351 for ac_option
353 # If the previous option needs an argument, assign it.
354 if test -n "$ac_prev"; then
355 eval "$ac_prev=\$ac_option"
356 ac_prev=
357 continue
360 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
362 # Accept the important Cygnus configure options, so we can diagnose typos.
364 case $ac_option in
366 -bindir | --bindir | --bindi | --bind | --bin | --bi)
367 ac_prev=bindir ;;
368 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
369 bindir=$ac_optarg ;;
371 -build | --build | --buil | --bui | --bu)
372 ac_prev=build_alias ;;
373 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
374 build_alias=$ac_optarg ;;
376 -cache-file | --cache-file | --cache-fil | --cache-fi \
377 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
378 ac_prev=cache_file ;;
379 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
380 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
381 cache_file=$ac_optarg ;;
383 --config-cache | -C)
384 cache_file=config.cache ;;
386 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
387 ac_prev=datadir ;;
388 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
389 | --da=*)
390 datadir=$ac_optarg ;;
392 -disable-* | --disable-*)
393 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
394 # Reject names that are not valid shell variable names.
395 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
396 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
397 { (exit 1); exit 1; }; }
398 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
399 eval "enable_$ac_feature=no" ;;
401 -enable-* | --enable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 case $ac_option in
409 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
410 *) ac_optarg=yes ;;
411 esac
412 eval "enable_$ac_feature='$ac_optarg'" ;;
414 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
415 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
416 | --exec | --exe | --ex)
417 ac_prev=exec_prefix ;;
418 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
419 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
420 | --exec=* | --exe=* | --ex=*)
421 exec_prefix=$ac_optarg ;;
423 -gas | --gas | --ga | --g)
424 # Obsolete; use --with-gas.
425 with_gas=yes ;;
427 -help | --help | --hel | --he | -h)
428 ac_init_help=long ;;
429 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
430 ac_init_help=recursive ;;
431 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
432 ac_init_help=short ;;
434 -host | --host | --hos | --ho)
435 ac_prev=host_alias ;;
436 -host=* | --host=* | --hos=* | --ho=*)
437 host_alias=$ac_optarg ;;
439 -includedir | --includedir | --includedi | --included | --include \
440 | --includ | --inclu | --incl | --inc)
441 ac_prev=includedir ;;
442 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
443 | --includ=* | --inclu=* | --incl=* | --inc=*)
444 includedir=$ac_optarg ;;
446 -infodir | --infodir | --infodi | --infod | --info | --inf)
447 ac_prev=infodir ;;
448 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
449 infodir=$ac_optarg ;;
451 -libdir | --libdir | --libdi | --libd)
452 ac_prev=libdir ;;
453 -libdir=* | --libdir=* | --libdi=* | --libd=*)
454 libdir=$ac_optarg ;;
456 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
457 | --libexe | --libex | --libe)
458 ac_prev=libexecdir ;;
459 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
460 | --libexe=* | --libex=* | --libe=*)
461 libexecdir=$ac_optarg ;;
463 -localstatedir | --localstatedir | --localstatedi | --localstated \
464 | --localstate | --localstat | --localsta | --localst \
465 | --locals | --local | --loca | --loc | --lo)
466 ac_prev=localstatedir ;;
467 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
468 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
469 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
470 localstatedir=$ac_optarg ;;
472 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
473 ac_prev=mandir ;;
474 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
475 mandir=$ac_optarg ;;
477 -nfp | --nfp | --nf)
478 # Obsolete; use --without-fp.
479 with_fp=no ;;
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c | -n)
483 no_create=yes ;;
485 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
487 no_recursion=yes ;;
489 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
490 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
491 | --oldin | --oldi | --old | --ol | --o)
492 ac_prev=oldincludedir ;;
493 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
494 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
495 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
496 oldincludedir=$ac_optarg ;;
498 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
499 ac_prev=prefix ;;
500 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
501 prefix=$ac_optarg ;;
503 -program-prefix | --program-prefix | --program-prefi | --program-pref \
504 | --program-pre | --program-pr | --program-p)
505 ac_prev=program_prefix ;;
506 -program-prefix=* | --program-prefix=* | --program-prefi=* \
507 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
508 program_prefix=$ac_optarg ;;
510 -program-suffix | --program-suffix | --program-suffi | --program-suff \
511 | --program-suf | --program-su | --program-s)
512 ac_prev=program_suffix ;;
513 -program-suffix=* | --program-suffix=* | --program-suffi=* \
514 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
515 program_suffix=$ac_optarg ;;
517 -program-transform-name | --program-transform-name \
518 | --program-transform-nam | --program-transform-na \
519 | --program-transform-n | --program-transform- \
520 | --program-transform | --program-transfor \
521 | --program-transfo | --program-transf \
522 | --program-trans | --program-tran \
523 | --progr-tra | --program-tr | --program-t)
524 ac_prev=program_transform_name ;;
525 -program-transform-name=* | --program-transform-name=* \
526 | --program-transform-nam=* | --program-transform-na=* \
527 | --program-transform-n=* | --program-transform-=* \
528 | --program-transform=* | --program-transfor=* \
529 | --program-transfo=* | --program-transf=* \
530 | --program-trans=* | --program-tran=* \
531 | --progr-tra=* | --program-tr=* | --program-t=*)
532 program_transform_name=$ac_optarg ;;
534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
535 | -silent | --silent | --silen | --sile | --sil)
536 silent=yes ;;
538 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
539 ac_prev=sbindir ;;
540 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
541 | --sbi=* | --sb=*)
542 sbindir=$ac_optarg ;;
544 -sharedstatedir | --sharedstatedir | --sharedstatedi \
545 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
546 | --sharedst | --shareds | --shared | --share | --shar \
547 | --sha | --sh)
548 ac_prev=sharedstatedir ;;
549 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
550 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
551 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
552 | --sha=* | --sh=*)
553 sharedstatedir=$ac_optarg ;;
555 -site | --site | --sit)
556 ac_prev=site ;;
557 -site=* | --site=* | --sit=*)
558 site=$ac_optarg ;;
560 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
561 ac_prev=srcdir ;;
562 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
563 srcdir=$ac_optarg ;;
565 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
566 | --syscon | --sysco | --sysc | --sys | --sy)
567 ac_prev=sysconfdir ;;
568 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
569 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
570 sysconfdir=$ac_optarg ;;
572 -target | --target | --targe | --targ | --tar | --ta | --t)
573 ac_prev=target_alias ;;
574 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
575 target_alias=$ac_optarg ;;
577 -v | -verbose | --verbose | --verbos | --verbo | --verb)
578 verbose=yes ;;
580 -version | --version | --versio | --versi | --vers | -V)
581 ac_init_version=: ;;
583 -with-* | --with-*)
584 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
585 # Reject names that are not valid shell variable names.
586 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
587 { echo "$as_me: error: invalid package name: $ac_package" >&2
588 { (exit 1); exit 1; }; }
589 ac_package=`echo $ac_package| sed 's/-/_/g'`
590 case $ac_option in
591 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
592 *) ac_optarg=yes ;;
593 esac
594 eval "with_$ac_package='$ac_optarg'" ;;
596 -without-* | --without-*)
597 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
598 # Reject names that are not valid shell variable names.
599 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
600 { echo "$as_me: error: invalid package name: $ac_package" >&2
601 { (exit 1); exit 1; }; }
602 ac_package=`echo $ac_package | sed 's/-/_/g'`
603 eval "with_$ac_package=no" ;;
605 --x)
606 # Obsolete; use --with-x.
607 with_x=yes ;;
609 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
610 | --x-incl | --x-inc | --x-in | --x-i)
611 ac_prev=x_includes ;;
612 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
613 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
614 x_includes=$ac_optarg ;;
616 -x-libraries | --x-libraries | --x-librarie | --x-librari \
617 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
618 ac_prev=x_libraries ;;
619 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
620 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
621 x_libraries=$ac_optarg ;;
623 -*) { echo "$as_me: error: unrecognized option: $ac_option
624 Try \`$0 --help' for more information." >&2
625 { (exit 1); exit 1; }; }
628 *=*)
629 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
630 # Reject names that are not valid shell variable names.
631 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
632 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
633 { (exit 1); exit 1; }; }
634 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
635 eval "$ac_envvar='$ac_optarg'"
636 export $ac_envvar ;;
639 # FIXME: should be removed in autoconf 3.0.
640 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
641 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
642 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
643 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 esac
647 done
649 if test -n "$ac_prev"; then
650 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
651 { echo "$as_me: error: missing argument to $ac_option" >&2
652 { (exit 1); exit 1; }; }
655 # Be sure to have absolute paths.
656 for ac_var in exec_prefix prefix
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
666 # Be sure to have absolute paths.
667 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
668 localstatedir libdir includedir oldincludedir infodir mandir
670 eval ac_val=$`echo $ac_var`
671 case $ac_val in
672 [\\/$]* | ?:[\\/]* ) ;;
673 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
674 { (exit 1); exit 1; }; };;
675 esac
676 done
678 # There might be people who depend on the old broken behavior: `$host'
679 # used to hold the argument of --host etc.
680 # FIXME: To remove some day.
681 build=$build_alias
682 host=$host_alias
683 target=$target_alias
685 # FIXME: To remove some day.
686 if test "x$host_alias" != x; then
687 if test "x$build_alias" = x; then
688 cross_compiling=maybe
689 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
690 If a cross compiler is detected then cross compile mode will be used." >&2
691 elif test "x$build_alias" != "x$host_alias"; then
692 cross_compiling=yes
696 ac_tool_prefix=
697 test -n "$host_alias" && ac_tool_prefix=$host_alias-
699 test "$silent" = yes && exec 6>/dev/null
702 # Find the source files, if location was not specified.
703 if test -z "$srcdir"; then
704 ac_srcdir_defaulted=yes
705 # Try the directory containing this script, then its parent.
706 ac_confdir=`(dirname "$0") 2>/dev/null ||
707 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
708 X"$0" : 'X\(//\)[^/]' \| \
709 X"$0" : 'X\(//\)$' \| \
710 X"$0" : 'X\(/\)' \| \
711 . : '\(.\)' 2>/dev/null ||
712 echo X"$0" |
713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
715 /^X\(\/\/\)$/{ s//\1/; q; }
716 /^X\(\/\).*/{ s//\1/; q; }
717 s/.*/./; q'`
718 srcdir=$ac_confdir
719 if test ! -r $srcdir/$ac_unique_file; then
720 srcdir=..
722 else
723 ac_srcdir_defaulted=no
725 if test ! -r $srcdir/$ac_unique_file; then
726 if test "$ac_srcdir_defaulted" = yes; then
727 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
728 { (exit 1); exit 1; }; }
729 else
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
731 { (exit 1); exit 1; }; }
734 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
735 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
736 { (exit 1); exit 1; }; }
737 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
738 ac_env_build_alias_set=${build_alias+set}
739 ac_env_build_alias_value=$build_alias
740 ac_cv_env_build_alias_set=${build_alias+set}
741 ac_cv_env_build_alias_value=$build_alias
742 ac_env_host_alias_set=${host_alias+set}
743 ac_env_host_alias_value=$host_alias
744 ac_cv_env_host_alias_set=${host_alias+set}
745 ac_cv_env_host_alias_value=$host_alias
746 ac_env_target_alias_set=${target_alias+set}
747 ac_env_target_alias_value=$target_alias
748 ac_cv_env_target_alias_set=${target_alias+set}
749 ac_cv_env_target_alias_value=$target_alias
750 ac_env_CC_set=${CC+set}
751 ac_env_CC_value=$CC
752 ac_cv_env_CC_set=${CC+set}
753 ac_cv_env_CC_value=$CC
754 ac_env_CFLAGS_set=${CFLAGS+set}
755 ac_env_CFLAGS_value=$CFLAGS
756 ac_cv_env_CFLAGS_set=${CFLAGS+set}
757 ac_cv_env_CFLAGS_value=$CFLAGS
758 ac_env_LDFLAGS_set=${LDFLAGS+set}
759 ac_env_LDFLAGS_value=$LDFLAGS
760 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_cv_env_LDFLAGS_value=$LDFLAGS
762 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
763 ac_env_CPPFLAGS_value=$CPPFLAGS
764 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
766 ac_env_CPP_set=${CPP+set}
767 ac_env_CPP_value=$CPP
768 ac_cv_env_CPP_set=${CPP+set}
769 ac_cv_env_CPP_value=$CPP
772 # Report the --help message.
774 if test "$ac_init_help" = "long"; then
775 # Omit some internal or obsolete options to make the list less imposing.
776 # This message is too long to be a string in the A/UX 3.1 sh.
777 cat <<_ACEOF
778 \`configure' configures this package to adapt to many kinds of systems.
780 Usage: $0 [OPTION]... [VAR=VALUE]...
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE. See below for descriptions of some of the useful variables.
785 Defaults for the options are specified in brackets.
787 Configuration:
788 -h, --help display this help and exit
789 --help=short display options specific to this package
790 --help=recursive display the short help of all the included packages
791 -V, --version display version information and exit
792 -q, --quiet, --silent do not print \`checking...' messages
793 --cache-file=FILE cache test results in FILE [disabled]
794 -C, --config-cache alias for \`--cache-file=config.cache'
795 -n, --no-create do not create output files
796 --srcdir=DIR find the sources in DIR [configure dir or \`..']
798 _ACEOF
800 cat <<_ACEOF
801 Installation directories:
802 --prefix=PREFIX install architecture-independent files in PREFIX
803 [$ac_default_prefix]
804 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
805 [PREFIX]
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
812 For better control, use the options below.
814 Fine tuning of the installation directories:
815 --bindir=DIR user executables [EPREFIX/bin]
816 --sbindir=DIR system admin executables [EPREFIX/sbin]
817 --libexecdir=DIR program executables [EPREFIX/libexec]
818 --datadir=DIR read-only architecture-independent data [PREFIX/share]
819 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
820 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
821 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
822 --libdir=DIR object code libraries [EPREFIX/lib]
823 --includedir=DIR C header files [PREFIX/include]
824 --oldincludedir=DIR C header files for non-gcc [/usr/include]
825 --infodir=DIR info documentation [PREFIX/info]
826 --mandir=DIR man documentation [PREFIX/man]
827 _ACEOF
829 cat <<\_ACEOF
831 Program names:
832 --program-prefix=PREFIX prepend PREFIX to installed program names
833 --program-suffix=SUFFIX append SUFFIX to installed program names
834 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
836 X features:
837 --x-includes=DIR X include files are in DIR
838 --x-libraries=DIR X library files are in DIR
840 System types:
841 --build=BUILD configure for building on BUILD [guessed]
842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-carbon-app[=DIR] [DIR=/Application]
854 specify install directory for Emacs.app on Mac OS X
855 --disable-largefile omit support for large files
857 Optional Packages:
858 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
859 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --without-gcc don't use GCC to compile Emacs if GCC is found
861 --without-pop don't support POP mail retrieval with movemail
862 --with-kerberos support Kerberos-authenticated POP
863 --with-kerberos5 support Kerberos version 5 authenticated POP
864 --with-hesiod support Hesiod to get the POP server host
865 --without-sound don't compile with sound support
866 --with-x-toolkit=KIT use an X toolkit
867 (KIT = yes/lucid/athena/motif/gtk/no)
868 --with-xpm use -lXpm for displaying XPM images
869 --with-jpeg use -ljpeg for displaying JPEG images
870 --with-tiff use -ltiff for displaying TIFF images
871 --with-gif use -lungif for displaying GIF images
872 --with-png use -lpng for displaying PNG images
873 --with-gtk use GTK (same as --with-x-toolkit=gtk)
874 --with-pkg-config-prog Path to pkg-config to use for finding GTK
875 --without-toolkit-scroll-bars
876 don't use Motif or Xaw3d scroll bars
877 --without-xim don't use X11 XIM
878 --without-carbon don't use Carbon GUI on Mac OS X
879 --with-x use the X Window System
881 Some influential environment variables:
882 CC C compiler command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
885 nonstandard directory <lib dir>
886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
887 headers in a nonstandard directory <include dir>
888 CPP C preprocessor
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 _ACEOF
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
898 ac_popdir=`pwd`
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
901 ac_builddir=.
903 if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907 else
908 ac_dir_suffix= ac_top_builddir=
911 case $srcdir in
912 .) # No --srcdir option. We are building in place.
913 ac_srcdir=.
914 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=.
916 else
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918 fi ;;
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
922 *) # Relative path.
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925 esac
926 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
927 # absolute.
928 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
929 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
930 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
931 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
933 cd $ac_dir
934 # Check for guested configure; otherwise get Cygnus style configure.
935 if test -f $ac_srcdir/configure.gnu; then
936 echo
937 $SHELL $ac_srcdir/configure.gnu --help=recursive
938 elif test -f $ac_srcdir/configure; then
939 echo
940 $SHELL $ac_srcdir/configure --help=recursive
941 elif test -f $ac_srcdir/configure.ac ||
942 test -f $ac_srcdir/configure.in; then
943 echo
944 $ac_configure --help
945 else
946 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
948 cd $ac_popdir
949 done
952 test -n "$ac_init_help" && exit 0
953 if $ac_init_version; then
954 cat <<\_ACEOF
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
960 _ACEOF
961 exit 0
963 exec 5>config.log
964 cat >&5 <<_ACEOF
965 This file contains any messages produced by compilers while
966 running configure, to aid debugging if configure makes a mistake.
968 It was created by $as_me, which was
969 generated by GNU Autoconf 2.54. Invocation command line was
971 $ $0 $@
973 _ACEOF
975 cat <<_ASUNAME
976 ## --------- ##
977 ## Platform. ##
978 ## --------- ##
980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
987 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
989 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
990 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
992 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
993 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
994 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
995 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
997 _ASUNAME
999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1000 for as_dir in $PATH
1002 IFS=$as_save_IFS
1003 test -z "$as_dir" && as_dir=.
1004 echo "PATH: $as_dir"
1005 done
1007 } >&5
1009 cat >&5 <<_ACEOF
1012 ## ----------- ##
1013 ## Core tests. ##
1014 ## ----------- ##
1016 _ACEOF
1019 # Keep a trace of the command line.
1020 # Strip out --no-create and --no-recursion so they do not pile up.
1021 # Also quote any args containing shell meta-characters.
1022 ac_configure_args=
1023 ac_sep=
1024 for ac_arg
1026 case $ac_arg in
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n ) continue ;;
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 continue ;;
1032 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1033 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1034 esac
1035 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1036 # Get rid of the leading space.
1037 ac_sep=" "
1038 done
1040 # When interrupted or exit'd, cleanup temporary files, and complete
1041 # config.log. We remove comments because anyway the quotes in there
1042 # would cause problems or look ugly.
1043 # WARNING: Be sure not to use single quotes in there, as some shells,
1044 # such as our DU 5.0 friend, will then `close' the trap.
1045 trap 'exit_status=$?
1046 # Save into config.log some information that might help in debugging.
1048 echo
1050 cat <<\_ASBOX
1051 ## ---------------- ##
1052 ## Cache variables. ##
1053 ## ---------------- ##
1054 _ASBOX
1055 echo
1056 # The following way of writing the cache mishandles newlines in values,
1058 (set) 2>&1 |
1059 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1060 *ac_space=\ *)
1061 sed -n \
1062 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1066 sed -n \
1067 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1069 esac;
1071 echo
1073 cat <<\_ASBOX
1074 ## ----------------- ##
1075 ## Output variables. ##
1076 ## ----------------- ##
1077 _ASBOX
1078 echo
1079 for ac_var in $ac_subst_vars
1081 eval ac_val=$`echo $ac_var`
1082 echo "$ac_var='"'"'$ac_val'"'"'"
1083 done | sort
1084 echo
1086 if test -n "$ac_subst_files"; then
1087 cat <<\_ASBOX
1088 ## ------------- ##
1089 ## Output files. ##
1090 ## ------------- ##
1091 _ASBOX
1092 echo
1093 for ac_var in $ac_subst_files
1095 eval ac_val=$`echo $ac_var`
1096 echo "$ac_var='"'"'$ac_val'"'"'"
1097 done | sort
1098 echo
1101 if test -s confdefs.h; then
1102 cat <<\_ASBOX
1103 ## ----------- ##
1104 ## confdefs.h. ##
1105 ## ----------- ##
1106 _ASBOX
1107 echo
1108 sed "/^$/d" confdefs.h | sort
1109 echo
1111 test "$ac_signal" != 0 &&
1112 echo "$as_me: caught signal $ac_signal"
1113 echo "$as_me: exit $exit_status"
1114 } >&5
1115 rm -f core core.* *.core &&
1116 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1117 exit $exit_status
1119 for ac_signal in 1 2 13 15; do
1120 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1121 done
1122 ac_signal=0
1124 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1125 rm -rf conftest* confdefs.h
1126 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1127 echo >confdefs.h
1129 # Predefined preprocessor variables.
1131 cat >>confdefs.h <<_ACEOF
1132 #define PACKAGE_NAME "$PACKAGE_NAME"
1133 _ACEOF
1136 cat >>confdefs.h <<_ACEOF
1137 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1138 _ACEOF
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1143 _ACEOF
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_STRING "$PACKAGE_STRING"
1148 _ACEOF
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1153 _ACEOF
1156 # Let the site file select an alternate cache file if it wants to.
1157 # Prefer explicitly selected file to automatically selected ones.
1158 if test -z "$CONFIG_SITE"; then
1159 if test "x$prefix" != xNONE; then
1160 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1161 else
1162 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1165 for ac_site_file in $CONFIG_SITE; do
1166 if test -r "$ac_site_file"; then
1167 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1168 echo "$as_me: loading site script $ac_site_file" >&6;}
1169 sed 's/^/| /' "$ac_site_file" >&5
1170 . "$ac_site_file"
1172 done
1174 if test -r "$cache_file"; then
1175 # Some versions of bash will fail to source /dev/null (special
1176 # files actually), so we avoid doing that.
1177 if test -f "$cache_file"; then
1178 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1179 echo "$as_me: loading cache $cache_file" >&6;}
1180 case $cache_file in
1181 [\\/]* | ?:[\\/]* ) . $cache_file;;
1182 *) . ./$cache_file;;
1183 esac
1185 else
1186 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1187 echo "$as_me: creating cache $cache_file" >&6;}
1188 >$cache_file
1191 # Check that the precious variables saved in the cache have kept the same
1192 # value.
1193 ac_cache_corrupted=false
1194 for ac_var in `(set) 2>&1 |
1195 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1196 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1197 eval ac_new_set=\$ac_env_${ac_var}_set
1198 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1199 eval ac_new_val="\$ac_env_${ac_var}_value"
1200 case $ac_old_set,$ac_new_set in
1201 set,)
1202 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1203 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1204 ac_cache_corrupted=: ;;
1205 ,set)
1206 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1207 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1208 ac_cache_corrupted=: ;;
1209 ,);;
1211 if test "x$ac_old_val" != "x$ac_new_val"; then
1212 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1213 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1214 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1215 echo "$as_me: former value: $ac_old_val" >&2;}
1216 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1217 echo "$as_me: current value: $ac_new_val" >&2;}
1218 ac_cache_corrupted=:
1219 fi;;
1220 esac
1221 # Pass precious variables to config.status.
1222 if test "$ac_new_set" = set; then
1223 case $ac_new_val in
1224 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1226 *) ac_arg=$ac_var=$ac_new_val ;;
1227 esac
1228 case " $ac_configure_args " in
1229 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1230 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1231 esac
1233 done
1234 if $ac_cache_corrupted; then
1235 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1236 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1237 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1238 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1239 { (exit 1); exit 1; }; }
1242 ac_ext=c
1243 ac_cpp='$CPP $CPPFLAGS'
1244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1266 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1269 test "$program_prefix" != NONE &&
1270 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1271 # Use a double $ so make ignores it.
1272 test "$program_suffix" != NONE &&
1273 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1274 # Double any \ or $. echo might interpret backslashes.
1275 # By default was `s,x,x', remove it if useless.
1276 cat <<\_ACEOF >conftest.sed
1277 s/[\\$]/&&/g;s/;s,x,x,$//
1278 _ACEOF
1279 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1280 rm conftest.sed
1283 lispdir='${datadir}/emacs/${version}/lisp'
1284 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1285 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1286 lisppath='${locallisppath}:${lispdir}'
1287 etcdir='${datadir}/emacs/${version}/etc'
1288 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1289 docdir='${datadir}/emacs/${version}/etc'
1290 gamedir='${localstatedir}/games/emacs'
1292 gameuser=games
1295 # Check whether --with-gcc or --without-gcc was given.
1296 if test "${with_gcc+set}" = set; then
1297 withval="$with_gcc"
1301 # Check whether --with-pop or --without-pop was given.
1302 if test "${with_pop+set}" = set; then
1303 withval="$with_pop"
1304 if test "$withval" = yes; then
1305 cat >>confdefs.h <<\_ACEOF
1306 #define MAIL_USE_POP 1
1307 _ACEOF
1309 else :
1311 else
1312 cat >>confdefs.h <<\_ACEOF
1313 #define MAIL_USE_POP 1
1314 _ACEOF
1319 # Check whether --with-kerberos or --without-kerberos was given.
1320 if test "${with_kerberos+set}" = set; then
1321 withval="$with_kerberos"
1322 cat >>confdefs.h <<\_ACEOF
1323 #define KERBEROS 1
1324 _ACEOF
1329 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1330 if test "${with_kerberos5+set}" = set; then
1331 withval="$with_kerberos5"
1332 if test "${with_kerberos5+set}" = set; then
1333 if test "${with_kerberos+set}" != set; then
1334 with_kerberos=yes
1335 cat >>confdefs.h <<\_ACEOF
1336 #define KERBEROS 1
1337 _ACEOF
1342 cat >>confdefs.h <<\_ACEOF
1343 #define KERBEROS5 1
1344 _ACEOF
1348 # Check whether --with-hesiod or --without-hesiod was given.
1349 if test "${with_hesiod+set}" = set; then
1350 withval="$with_hesiod"
1352 cat >>confdefs.h <<\_ACEOF
1353 #define HESIOD 1
1354 _ACEOF
1359 # Check whether --with-sound or --without-sound was given.
1360 if test "${with_sound+set}" = set; then
1361 withval="$with_sound"
1366 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1367 if test "${with_x_toolkit+set}" = set; then
1368 withval="$with_x_toolkit"
1369 case "${withval}" in
1370 y | ye | yes ) val=athena ;;
1371 n | no ) val=no ;;
1372 l | lu | luc | luci | lucid ) val=lucid ;;
1373 a | at | ath | athe | athen | athena ) val=athena ;;
1374 m | mo | mot | moti | motif ) val=motif ;;
1375 g | gt | gtk ) val=gtk ;;
1377 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1378 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1379 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1380 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1381 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1382 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1383 { (exit 1); exit 1; }; }
1385 esac
1386 with_x_toolkit=$val
1390 # Check whether --with-xpm or --without-xpm was given.
1391 if test "${with_xpm+set}" = set; then
1392 withval="$with_xpm"
1396 # Check whether --with-jpeg or --without-jpeg was given.
1397 if test "${with_jpeg+set}" = set; then
1398 withval="$with_jpeg"
1402 # Check whether --with-tiff or --without-tiff was given.
1403 if test "${with_tiff+set}" = set; then
1404 withval="$with_tiff"
1408 # Check whether --with-gif or --without-gif was given.
1409 if test "${with_gif+set}" = set; then
1410 withval="$with_gif"
1414 # Check whether --with-png or --without-png was given.
1415 if test "${with_png+set}" = set; then
1416 withval="$with_png"
1420 # Check whether --with-gtk or --without-gtk was given.
1421 if test "${with_gtk+set}" = set; then
1422 withval="$with_gtk"
1426 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1427 if test "${with_pkg_config_prog+set}" = set; then
1428 withval="$with_pkg_config_prog"
1432 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1433 if test "${with_toolkit_scroll_bars+set}" = set; then
1434 withval="$with_toolkit_scroll_bars"
1438 # Check whether --with-xim or --without-xim was given.
1439 if test "${with_xim+set}" = set; then
1440 withval="$with_xim"
1444 # Check whether --with-carbon or --without-carbon was given.
1445 if test "${with_carbon+set}" = set; then
1446 withval="$with_carbon"
1449 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1450 if test "${enable_carbon_app+set}" = set; then
1451 enableval="$enable_carbon_app"
1452 carbon_appdir_x=${enableval}
1455 #### Make srcdir absolute, if it isn't already. It's important to
1456 #### avoid running the path through pwd unnecessarily, since pwd can
1457 #### give you automounter prefixes, which can go away. We do all this
1458 #### so Emacs can find its files when run uninstalled.
1459 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1460 unset CDPATH
1461 case "${srcdir}" in
1462 /* ) ;;
1464 ## We may be able to use the $PWD environment variable to make this
1465 ## absolute. But sometimes PWD is inaccurate.
1466 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1467 ## but that tested only for a well-formed and valid PWD,
1468 ## it did not object when PWD was well-formed and valid but just wrong.
1469 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1470 then
1471 srcdir="$PWD"
1472 else
1473 srcdir="`(cd ${srcdir}; pwd)`"
1476 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1477 esac
1479 #### Check if the source directory already has a configured system in it.
1480 if test `pwd` != `(cd ${srcdir} && pwd)` \
1481 && test -f "${srcdir}/src/config.h" ; then
1482 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1483 as a build directory right now; it has been configured in its own
1484 right. To configure in another directory as well, you MUST
1485 use GNU make. If you do not have GNU make, then you must
1486 now do \`make distclean' in ${srcdir},
1487 and then run $0 again." >&5
1488 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1489 as a build directory right now; it has been configured in its own
1490 right. To configure in another directory as well, you MUST
1491 use GNU make. If you do not have GNU make, then you must
1492 now do \`make distclean' in ${srcdir},
1493 and then run $0 again." >&2;}
1495 extrasub='/^VPATH[ ]*=/c\
1496 vpath %.c $(srcdir)\
1497 vpath %.h $(srcdir)\
1498 vpath %.y $(srcdir)\
1499 vpath %.l $(srcdir)\
1500 vpath %.s $(srcdir)\
1501 vpath %.in $(srcdir)\
1502 vpath %.texi $(srcdir)'
1505 #### Given the configuration name, set machfile and opsysfile to the
1506 #### names of the m/*.h and s/*.h files we should use.
1508 ### Canonicalize the configuration name.
1510 ac_aux_dir=
1511 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1512 if test -f $ac_dir/install-sh; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/install-sh -c"
1515 break
1516 elif test -f $ac_dir/install.sh; then
1517 ac_aux_dir=$ac_dir
1518 ac_install_sh="$ac_aux_dir/install.sh -c"
1519 break
1520 elif test -f $ac_dir/shtool; then
1521 ac_aux_dir=$ac_dir
1522 ac_install_sh="$ac_aux_dir/shtool install -c"
1523 break
1525 done
1526 if test -z "$ac_aux_dir"; then
1527 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1528 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1529 { (exit 1); exit 1; }; }
1531 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1532 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1533 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1535 # Make sure we can run config.sub.
1536 $ac_config_sub sun4 >/dev/null 2>&1 ||
1537 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1538 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1539 { (exit 1); exit 1; }; }
1541 echo "$as_me:$LINENO: checking build system type" >&5
1542 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1543 if test "${ac_cv_build+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 else
1546 ac_cv_build_alias=$build_alias
1547 test -z "$ac_cv_build_alias" &&
1548 ac_cv_build_alias=`$ac_config_guess`
1549 test -z "$ac_cv_build_alias" &&
1550 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1551 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1552 { (exit 1); exit 1; }; }
1553 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1554 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1555 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1556 { (exit 1); exit 1; }; }
1559 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1560 echo "${ECHO_T}$ac_cv_build" >&6
1561 build=$ac_cv_build
1562 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567 echo "$as_me:$LINENO: checking host system type" >&5
1568 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1569 if test "${ac_cv_host+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572 ac_cv_host_alias=$host_alias
1573 test -z "$ac_cv_host_alias" &&
1574 ac_cv_host_alias=$ac_cv_build_alias
1575 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1577 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1581 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1582 echo "${ECHO_T}$ac_cv_host" >&6
1583 host=$ac_cv_host
1584 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589 canonical=$host
1590 configuration=${host_alias-$host}
1594 ### If you add support for a new configuration, add code to this
1595 ### switch statement to recognize your configuration name and select
1596 ### the appropriate operating system and machine description files.
1598 ### You would hope that you could choose an m/*.h file pretty much
1599 ### based on the machine portion of the configuration name, and an s-
1600 ### file based on the operating system portion. However, it turns out
1601 ### that each m/*.h file is pretty manufacturer-specific - for
1602 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1603 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1604 ### machines. So we basically have to have a special case for each
1605 ### configuration name.
1607 ### As far as handling version numbers on operating systems is
1608 ### concerned, make sure things will fail in a fixable way. If
1609 ### /etc/MACHINES doesn't say anything about version numbers, be
1610 ### prepared to handle anything reasonably. If version numbers
1611 ### matter, be sure /etc/MACHINES says something about it.
1613 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1614 ### "System V Release 4"; he writes, "The old convention encouraged
1615 ### confusion between `system' and `release' levels'."
1617 machine='' opsys='' unported=no
1618 case "${canonical}" in
1620 ## FreeBSD ports
1621 *-*-freebsd* )
1622 opsys=freebsd
1623 case "${canonical}" in
1624 alpha*-*-freebsd*) machine=alpha ;;
1625 i[3456]86-*-freebsd*) machine=intel386 ;;
1626 esac
1629 ## NetBSD ports
1630 *-*-netbsd* )
1631 opsys=netbsd
1632 if test -f /usr/lib/crti.o; then
1634 cat >>confdefs.h <<\_ACEOF
1635 #define HAVE_CRTIN
1636 _ACEOF
1640 case "${canonical}" in
1641 alpha*-*-netbsd*) machine=alpha ;;
1642 i[3456]86-*-netbsd*) machine=intel386 ;;
1643 m68k-*-netbsd*)
1644 # This is somewhat bogus.
1645 machine=hp9000s300 ;;
1646 powerpc-apple-netbsd*) machine=macppc ;;
1647 mips-*-netbsd*) machine=pmax ;;
1648 mipsel-*-netbsd*) machine=pmax ;;
1649 mipseb-*-netbsd*) machine=pmax ;;
1650 ns32k-*-netbsd*) machine=ns32000 ;;
1651 powerpc-*-netbsd*) machine=macppc ;;
1652 sparc*-*-netbsd*) machine=sparc ;;
1653 vax-*-netbsd*) machine=vax ;;
1654 arm-*-netbsd*) machine=arm ;;
1655 esac
1658 ## OpenBSD ports
1659 *-*-openbsd* )
1660 opsys=openbsd
1661 case "${canonical}" in
1662 alpha*-*-openbsd*) machine=alpha ;;
1663 i386-*-openbsd*) machine=intel386 ;;
1664 m68k-*-openbsd*) machine=hp9000s300 ;;
1665 mipsel-*-openbsd*) machine=pmax ;;
1666 ns32k-*-openbsd*) machine=ns32000 ;;
1667 sparc-*-openbsd*) machine=sparc ;;
1668 vax-*-openbsd*) machine=vax ;;
1669 esac
1672 ## Acorn RISCiX:
1673 arm-acorn-riscix1.1* )
1674 machine=acorn opsys=riscix1-1
1676 arm-acorn-riscix1.2* | arm-acorn-riscix )
1677 ## This name is riscix12 instead of riscix1.2
1678 ## to avoid a file name conflict on MSDOS.
1679 machine=acorn opsys=riscix12
1682 ## BSDI ports
1683 *-*-bsdi* )
1684 opsys=bsdi
1685 case "${canonical}" in
1686 i[345]86-*-bsdi*) machine=intel386 ;;
1687 sparc-*-bsdi*) machine=sparc ;;
1688 powerpc-*-bsdi*) machine=macppc ;;
1689 esac
1690 case "${canonical}" in
1691 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1692 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1693 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1694 *-*-bsdi3* ) opsys=bsdos3 ;;
1695 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1696 esac
1699 ## Alliant machines
1700 ## Strictly speaking, we need the version of the alliant operating
1701 ## system to choose the right machine file, but currently the
1702 ## configuration name doesn't tell us enough to choose the right
1703 ## one; we need to give alliants their own operating system name to
1704 ## do this right. When someone cares, they can help us.
1705 fx80-alliant-* )
1706 machine=alliant4 opsys=bsd4-2
1708 i860-alliant-* )
1709 machine=alliant-2800 opsys=bsd4-3
1712 ## Alpha (DEC) machines.
1713 alpha*-dec-osf* )
1714 machine=alpha opsys=osf1
1715 # This is needed to find X11R6.1 libraries for certain tests.
1716 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1717 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1718 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1719 # due to non-traditional preprocessing with the current compiler
1720 # defaults. OSF 4 can also have that compiler version, and there
1721 # seems always to have been a usable /usr/bin/cpp.
1722 NON_GNU_CPP=/usr/bin/cpp
1723 case "${canonical}" in
1724 alpha*-dec-osf[5-9]*)
1725 opsys=osf5-0 ;;
1726 esac
1729 alpha*-*-linux-gnu* )
1730 machine=alpha opsys=gnu-linux
1733 arm*-*-linux-gnu* )
1734 machine=arm opsys=gnu-linux
1737 ppc-*-linux | \
1738 powerpc-*-linux* )
1739 machine=macppc opsys=gnu-linux
1742 ## Altos 3068
1743 m68*-altos-sysv* )
1744 machine=altos opsys=usg5-2
1747 ## Amdahl UTS
1748 580-amdahl-sysv* )
1749 machine=amdahl opsys=usg5-2-2
1752 ## Apollo, Domain/OS
1753 m68*-apollo-* )
1754 machine=apollo opsys=bsd4-3
1757 ## AT&T 3b2, 3b5, 3b15, 3b20
1758 we32k-att-sysv* )
1759 machine=att3b opsys=usg5-2-2
1762 ## AT&T 3b1 - The Mighty Unix PC!
1763 m68*-att-sysv* )
1764 machine=7300 opsys=usg5-2-2
1767 ## Bull dpx20
1768 rs6000-bull-bosx* )
1769 machine=ibmrs6000 opsys=aix3-2
1772 ## Bull dpx2
1773 m68*-bull-sysv3* )
1774 machine=dpx2 opsys=usg5-3
1777 ## Bull sps7
1778 m68*-bull-sysv2* )
1779 machine=sps7 opsys=usg5-2
1782 ## CCI 5/32, 6/32 -- see "Tahoe".
1784 ## Celerity
1785 ## I don't know what configuration name to use for this; config.sub
1786 ## doesn't seem to know anything about it. Hey, Celerity users, get
1787 ## in touch with us!
1788 celerity-celerity-bsd* )
1789 machine=celerity opsys=bsd4-2
1792 ## Clipper
1793 ## What operating systems does this chip run that Emacs has been
1794 ## tested on?
1795 clipper-* )
1796 machine=clipper
1797 ## We'll use the catch-all code at the bottom to guess the
1798 ## operating system.
1801 ## Compaq Nonstop
1802 mips-compaq-nonstopux* )
1803 machine=nonstopux opsys=nonstopux
1806 ## Convex
1807 *-convex-bsd* | *-convex-convexos* )
1808 machine=convex opsys=bsd4-3
1809 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1810 NON_GNU_CPP="cc -E -P"
1813 ## Cubix QBx/386
1814 i[3456]86-cubix-sysv* )
1815 machine=intel386 opsys=usg5-3
1818 ## Cydra 5
1819 cydra*-cydrome-sysv* )
1820 machine=cydra5 opsys=usg5-3
1823 ## Data General AViiON Machines
1824 ## DG changed naming conventions with the release of 5.4.4.10, they
1825 ## dropped the initial 5.4 but left the intervening R. Because of the
1826 ## R this shouldn't conflict with older versions of the OS (which I
1827 ## think were named like dgux4.*). In addition, DG new AViiONs series
1828 ## uses either Motorola M88k or Intel Pentium CPUs.
1829 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1830 machine=aviion opsys=dgux4
1832 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1833 ## This name is dgux5-4-3 instead of dgux5-4r3
1834 ## to avoid a file name conflict on MSDOS.
1835 machine=aviion opsys=dgux5-4-3
1837 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1838 machine=aviion opsys=dgux5-4r2
1840 m88k-dg-dgux* )
1841 machine=aviion opsys=dgux
1844 ## Data General AViiON Intel (x86) Machines
1845 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1846 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1847 i[345]86-dg-dguxR4* )
1848 machine=aviion-intel opsys=dgux4
1851 ## DECstations
1852 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1853 machine=pmax opsys=bsd4-2
1855 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1856 machine=pmax opsys=bsd4-3
1858 mips-dec-ultrix* )
1859 machine=pmax opsys=ultrix4-3
1861 mips-dec-osf* )
1862 machine=pmax opsys=osf1
1864 mips-dec-mach_bsd4.3* )
1865 machine=pmax opsys=mach-bsd4-3
1868 ## Motorola Delta machines
1869 m68k-motorola-sysv* | m68000-motorola-sysv* )
1870 machine=delta opsys=usg5-3
1871 if test -z "`type gnucc | grep 'not found'`"
1872 then
1873 if test -s /etc/167config
1874 then CC="gnucc -m68040"
1875 else CC="gnucc -m68881"
1877 else
1878 if test -z "`type gcc | grep 'not found'`"
1879 then CC=gcc
1880 else CC=cc
1884 m88k-motorola-sysv4* )
1885 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1886 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1887 # I hope there are not other 4.0 versions for this machine
1888 # which really need usg5-4 instead.
1889 machine=delta88k opsys=usg5-4-2
1891 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1892 machine=delta88k opsys=usg5-3
1895 ## Dual machines
1896 m68*-dual-sysv* )
1897 machine=dual opsys=usg5-2
1899 m68*-dual-uniplus* )
1900 machine=dual opsys=unipl5-2
1903 ## Elxsi 6400
1904 elxsi-elxsi-sysv* )
1905 machine=elxsi opsys=usg5-2
1908 ## Encore machines
1909 ns16k-encore-bsd* )
1910 machine=ns16000 opsys=umax
1913 ## The GEC 63 - apparently, this port isn't really finished yet.
1914 # I'm sure we finished off the last of the machines, though. -- fx
1916 ## Gould Power Node and NP1
1917 pn-gould-bsd4.2* )
1918 machine=gould opsys=bsd4-2
1920 pn-gould-bsd4.3* )
1921 machine=gould opsys=bsd4-3
1923 np1-gould-bsd* )
1924 machine=gould-np1 opsys=bsd4-3
1927 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1928 ## as far as Emacs is concerned).
1929 m88k-harris-cxux* )
1930 # Build needs to be different on 7.0 and later releases
1931 case "`uname -r`" in
1932 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1933 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1934 esac
1935 NON_GNU_CPP="/lib/cpp"
1937 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1938 m68k-harris-cxux* )
1939 machine=nh3000 opsys=cxux
1941 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1942 powerpc-harris-powerunix )
1943 machine=nh6000 opsys=powerunix
1944 NON_GNU_CPP="cc -Xo -E -P"
1946 ## SR2001/SR2201 running HI-UX/MPP
1947 hppa1.1-hitachi-hiuxmpp* )
1948 machine=sr2k opsys=hiuxmpp
1950 hppa1.1-hitachi-hiuxwe2* )
1951 machine=sr2k opsys=hiuxwe2
1953 ## Honeywell XPS100
1954 xps*-honeywell-sysv* )
1955 machine=xps100 opsys=usg5-2
1958 ## HP 9000 series 200 or 300
1959 m68*-hp-bsd* )
1960 machine=hp9000s300 opsys=bsd4-3
1962 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1963 m68*-hp-hpux* )
1964 case "`uname -r`" in
1965 ## Someone's system reports A.B8.05 for this.
1966 ## I wonder what other possibilities there are.
1967 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1968 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1969 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1970 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1971 *) machine=hp9000s300 opsys=hpux ;;
1972 esac
1975 ## HP 9000 series 700 and 800, running HP/UX
1976 hppa*-hp-hpux7* )
1977 machine=hp800 opsys=hpux
1979 hppa*-hp-hpux8* )
1980 machine=hp800 opsys=hpux8
1982 hppa*-hp-hpux9shr* )
1983 machine=hp800 opsys=hpux9shr
1985 hppa*-hp-hpux9* )
1986 machine=hp800 opsys=hpux9
1988 hppa*-hp-hpux10.2* )
1989 machine=hp800 opsys=hpux10-20
1991 hppa*-hp-hpux10* )
1992 machine=hp800 opsys=hpux10
1994 hppa*-hp-hpux1[1-9]* )
1995 machine=hp800 opsys=hpux11
1998 hppa*-*-linux-gnu* )
1999 machine=hp800 opsys=gnu-linux
2002 ## HP 9000 series 700 and 800, running HP/UX
2003 hppa*-hp-hpux* )
2004 ## Cross-compilation? Nah!
2005 case "`uname -r`" in
2006 ## Someone's system reports A.B8.05 for this.
2007 ## I wonder what other possibilities there are.
2008 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2009 *.08.* ) machine=hp800 opsys=hpux8 ;;
2010 *.09.* ) machine=hp800 opsys=hpux9 ;;
2011 *) machine=hp800 opsys=hpux10 ;;
2012 esac
2014 hppa*-*-nextstep* )
2015 machine=hp800 opsys=nextstep
2018 ## Orion machines
2019 orion-orion-bsd* )
2020 machine=orion opsys=bsd4-2
2022 clipper-orion-bsd* )
2023 machine=orion105 opsys=bsd4-2
2026 ## IBM machines
2027 i[3456]86-ibm-aix1.1* )
2028 machine=ibmps2-aix opsys=usg5-2-2
2030 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2031 machine=ibmps2-aix opsys=usg5-3
2033 i370-ibm-aix*)
2034 machine=ibm370aix opsys=usg5-3
2036 s390-*-linux-gnu* )
2037 machine=ibms390 opsys=gnu-linux
2039 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2040 machine=ibmrs6000 opsys=aix3-1
2042 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2043 machine=ibmrs6000 opsys=aix3-2-5
2045 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2046 machine=ibmrs6000 opsys=aix4-1
2048 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2049 machine=ibmrs6000 opsys=aix4-2
2051 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2052 machine=ibmrs6000 opsys=aix4-2
2054 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2055 machine=ibmrs6000 opsys=aix4
2057 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2058 machine=ibmrs6000 opsys=aix4-1
2060 rs6000-ibm-aix* | powerpc-ibm-aix* )
2061 machine=ibmrs6000 opsys=aix3-2
2063 romp-ibm-bsd4.3* )
2064 machine=ibmrt opsys=bsd4-3
2066 romp-ibm-bsd4.2* )
2067 machine=ibmrt opsys=bsd4-2
2069 romp-ibm-aos4.3* )
2070 machine=ibmrt opsys=bsd4-3
2072 romp-ibm-aos4.2* )
2073 machine=ibmrt opsys=bsd4-2
2075 romp-ibm-aos* )
2076 machine=ibmrt opsys=bsd4-3
2078 romp-ibm-bsd* )
2079 machine=ibmrt opsys=bsd4-3
2081 romp-ibm-aix* )
2082 machine=ibmrt-aix opsys=usg5-2-2
2085 ## Integrated Solutions `Optimum V'
2086 m68*-isi-bsd4.2* )
2087 machine=isi-ov opsys=bsd4-2
2089 m68*-isi-bsd4.3* )
2090 machine=isi-ov opsys=bsd4-3
2093 ## Intel 386 machines where we do care about the manufacturer
2094 i[3456]86-intsys-sysv* )
2095 machine=is386 opsys=usg5-2-2
2098 ## Prime EXL
2099 i[3456]86-prime-sysv* )
2100 machine=i386 opsys=usg5-3
2103 ## Sequent Symmetry running Dynix
2104 i[3456]86-sequent-bsd* )
2105 machine=symmetry opsys=bsd4-3
2108 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2109 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2110 machine=sequent-ptx opsys=ptx4
2111 NON_GNU_CPP=/lib/cpp
2114 ## Sequent Symmetry running DYNIX/ptx
2115 ## Use the old cpp rather than the newer ANSI one.
2116 i[3456]86-sequent-ptx* )
2117 machine=sequent-ptx opsys=ptx
2118 NON_GNU_CPP="/lib/cpp"
2121 ## ncr machine running svr4.3.
2122 i[3456]86-ncr-sysv4.3 )
2123 machine=ncr386 opsys=usg5-4-3
2126 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2127 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2128 i[3456]86-ncr-sysv* )
2129 machine=ncr386 opsys=usg5-4-2
2132 ## Intel Paragon OSF/1
2133 i860-intel-osf1* )
2134 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2137 ## Intel 860
2138 i860-*-sysv4* )
2139 machine=i860 opsys=usg5-4
2140 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2141 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2144 ## Macintosh PowerPC
2145 powerpc*-*-linux-gnu* )
2146 machine=macppc opsys=gnu-linux
2149 ## Masscomp machines
2150 m68*-masscomp-rtu* )
2151 machine=masscomp opsys=rtu
2154 ## Megatest machines
2155 m68*-megatest-bsd* )
2156 machine=mega68 opsys=bsd4-2
2159 ## Workstations sold by MIPS
2160 ## This is not necessarily all workstations using the MIPS processor -
2161 ## Irises are produced by SGI, and DECstations by DEC.
2163 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2164 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2165 ## it gives for choosing between the alternatives seems to be "Use
2166 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2167 ## the BSD world." I'll assume that these are instructions for
2168 ## handling two odd situations, and that every other situation
2169 ## should use mips.h and usg5-2-2, they being listed first.
2170 mips-mips-usg* )
2171 machine=mips4
2172 ## Fall through to the general code at the bottom to decide on the OS.
2174 mips-mips-riscos4* )
2175 machine=mips4 opsys=bsd4-3
2176 NON_GNU_CC="cc -systype bsd43"
2177 NON_GNU_CPP="cc -systype bsd43 -E"
2179 mips-mips-riscos5* )
2180 machine=mips4 opsys=riscos5
2181 NON_GNU_CC="cc -systype bsd43"
2182 NON_GNU_CPP="cc -systype bsd43 -E"
2184 mips-mips-bsd* )
2185 machine=mips opsys=bsd4-3
2187 mips-mips-* )
2188 machine=mips opsys=usg5-2-2
2191 ## NeXT
2192 m68*-next-* | m68k-*-nextstep* )
2193 machine=m68k opsys=nextstep
2196 ## The complete machine from National Semiconductor
2197 ns32k-ns-genix* )
2198 machine=ns32000 opsys=usg5-2
2201 ## NCR machines
2202 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2203 machine=tower32 opsys=usg5-2-2
2205 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2206 machine=tower32v3 opsys=usg5-3
2209 ## NEC EWS4800
2210 mips-nec-sysv4*)
2211 machine=ews4800 opsys=ux4800
2214 ## Nixdorf Targon 31
2215 m68*-nixdorf-sysv* )
2216 machine=targon31 opsys=usg5-2-2
2219 ## Nu (TI or LMI)
2220 m68*-nu-sysv* )
2221 machine=nu opsys=usg5-2
2224 ## Plexus
2225 m68*-plexus-sysv* )
2226 machine=plexus opsys=usg5-2
2229 ## Pyramid machines
2230 ## I don't really have any idea what sort of processor the Pyramid has,
2231 ## so I'm assuming it is its own architecture.
2232 pyramid-pyramid-bsd* )
2233 machine=pyramid opsys=bsd4-2
2236 ## Sequent Balance
2237 ns32k-sequent-bsd4.2* )
2238 machine=sequent opsys=bsd4-2
2240 ns32k-sequent-bsd4.3* )
2241 machine=sequent opsys=bsd4-3
2244 ## Siemens Nixdorf
2245 mips-siemens-sysv* | mips-sni-sysv*)
2246 machine=mips-siemens opsys=usg5-4
2247 NON_GNU_CC=/usr/ccs/bin/cc
2248 NON_GNU_CPP=/usr/ccs/lib/cpp
2251 ## Silicon Graphics machines
2252 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2253 m68*-sgi-iris3.5* )
2254 machine=irist opsys=iris3-5
2256 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2257 machine=irist opsys=iris3-6
2259 ## Iris 4D
2260 mips-sgi-irix3* )
2261 machine=iris4d opsys=irix3-3
2263 mips-sgi-irix4* )
2264 machine=iris4d opsys=irix4-0
2266 mips-sgi-irix6.5 )
2267 machine=iris4d opsys=irix6-5
2268 # Without defining _LANGUAGE_C, things get masked out in the headers
2269 # so that, for instance, grepping for `free' in stdlib.h fails and
2270 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2271 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2272 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2274 mips-sgi-irix6* )
2275 machine=iris4d opsys=irix6-0
2276 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2277 # but presumably it does no harm.
2278 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2279 # -32 probably isn't necessary in later v.6s -- anyone know which?
2280 NON_GCC_TEST_OPTIONS=-32
2282 mips-sgi-irix5.[01]* )
2283 machine=iris4d opsys=irix5-0
2285 mips-sgi-irix5* | mips-sgi-irix* )
2286 machine=iris4d opsys=irix5-2
2289 ## SONY machines
2290 m68*-sony-bsd4.2* )
2291 machine=news opsys=bsd4-2
2293 m68*-sony-bsd4.3* )
2294 machine=news opsys=bsd4-3
2296 m68*-sony-newsos3* | m68*-sony-news3*)
2297 machine=news opsys=bsd4-3
2299 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2300 machine=news-risc opsys=bsd4-3
2302 mips-sony-newsos6* )
2303 machine=news-r6 opsys=newsos6
2305 mips-sony-news* )
2306 machine=news-risc opsys=newsos5
2309 ## Stride
2310 m68*-stride-sysv* )
2311 machine=stride opsys=usg5-2
2314 ## Suns
2315 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2316 machine=sparc opsys=gnu-linux
2319 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2320 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2321 | rs6000-*-solaris2*)
2322 case "${canonical}" in
2323 m68*-sunos1* ) machine=sun1 ;;
2324 m68*-sunos2* ) machine=sun2 ;;
2325 m68* ) machine=sun3 ;;
2326 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2327 i[3456]86-*-* ) machine=intel386 ;;
2328 powerpcle* ) machine=powerpcle ;;
2329 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2330 sparc* ) machine=sparc ;;
2331 * ) unported=yes ;;
2332 esac
2333 case "${canonical}" in
2334 ## The Sun386 didn't get past 4.0.
2335 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2336 *-sunos4.0* ) opsys=sunos4-0 ;;
2337 *-sunos4.1.[3-9]*noshare )
2338 ## This name is sunos413 instead of sunos4-1-3
2339 ## to avoid a file name conflict on MSDOS.
2340 opsys=sunos413
2341 NON_GNU_CPP=/usr/lib/cpp
2342 NON_GCC_TEST_OPTIONS=-Bstatic
2343 GCC_TEST_OPTIONS=-static
2345 *-sunos4.1.[3-9]* | *-sunos4shr*)
2346 opsys=sunos4shr
2347 NON_GNU_CPP=/usr/lib/cpp
2349 *-sunos4* | *-sunos )
2350 opsys=sunos4-1
2351 NON_GCC_TEST_OPTIONS=-Bstatic
2352 GCC_TEST_OPTIONS=-static
2354 *-sunos5.3* | *-solaris2.3* )
2355 opsys=sol2-3
2356 NON_GNU_CPP=/usr/ccs/lib/cpp
2358 *-sunos5.4* | *-solaris2.4* )
2359 opsys=sol2-4
2360 NON_GNU_CPP=/usr/ccs/lib/cpp
2361 RANLIB="ar -ts"
2363 *-sunos5.5* | *-solaris2.5* )
2364 opsys=sol2-5
2365 NON_GNU_CPP=/usr/ccs/lib/cpp
2366 RANLIB="ar -ts"
2368 *-sunos5.6* | *-solaris2.6* )
2369 opsys=sol2-6
2370 NON_GNU_CPP=/usr/ccs/lib/cpp
2371 RANLIB="ar -ts"
2373 *-sunos5* | *-solaris* )
2374 opsys=sol2-6
2375 NON_GNU_CPP=/usr/ccs/lib/cpp
2377 * ) opsys=bsd4-2 ;;
2378 esac
2379 ## Watch out for a compiler that we know will not work.
2380 case "${canonical}" in
2381 *-solaris* | *-sunos5* )
2382 if [ "x$CC" = x/usr/ucb/cc ]; then
2383 ## /usr/ucb/cc doesn't work;
2384 ## we should find some other compiler that does work.
2385 unset CC
2388 *) ;;
2389 esac
2391 sparc-*-nextstep* )
2392 machine=sparc opsys=nextstep
2395 ## Tadpole 68k
2396 m68*-tadpole-sysv* )
2397 machine=tad68k opsys=usg5-3
2400 ## Tahoe machines
2401 tahoe-tahoe-bsd4.2* )
2402 machine=tahoe opsys=bsd4-2
2404 tahoe-tahoe-bsd4.3* )
2405 machine=tahoe opsys=bsd4-3
2408 ## Tandem Integrity S2
2409 mips-tandem-sysv* )
2410 machine=tandem-s2 opsys=usg5-3
2413 ## Tektronix XD88
2414 m88k-tektronix-sysv3* )
2415 machine=tekxd88 opsys=usg5-3
2418 ## Tektronix 16000 box (6130?)
2419 ns16k-tektronix-bsd* )
2420 machine=ns16000 opsys=bsd4-2
2422 ## Tektronix 4300
2423 ## src/m/tek4300.h hints that this is a m68k machine.
2424 m68*-tektronix-bsd* )
2425 machine=tek4300 opsys=bsd4-3
2428 ## Titan P2 or P3
2429 ## We seem to have lost the machine-description file titan.h!
2430 titan-titan-sysv* )
2431 machine=titan opsys=usg5-3
2434 ## Ustation E30 (SS5E)
2435 m68*-unisys-uniplus* )
2436 machine=ustation opsystem=unipl5-2
2439 ## Vaxen.
2440 vax-dec-* )
2441 machine=vax
2442 case "${canonical}" in
2443 *-bsd4.1* ) opsys=bsd4-1 ;;
2444 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2445 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2446 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2447 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2448 *-vms* ) opsys=vms ;;
2449 * ) unported=yes
2450 esac
2453 ## Whitechapel MG1
2454 ns16k-whitechapel-* )
2455 machine=mg1
2456 ## We don't know what sort of OS runs on these; we'll let the
2457 ## operating system guessing code below try.
2460 ## Wicat
2461 m68*-wicat-sysv* )
2462 machine=wicat opsys=usg5-2
2465 ## IA-64
2466 ia64*-*-linux* )
2467 machine=ia64 opsys=gnu-linux
2470 ## Intel 386 machines where we don't care about the manufacturer
2471 i[3456]86-*-* )
2472 machine=intel386
2473 case "${canonical}" in
2474 *-cygwin ) opsys=cygwin ;;
2475 *-lynxos* ) opsys=lynxos ;;
2476 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2477 *-isc2.2* ) opsys=isc2-2 ;;
2478 *-isc4.0* ) opsys=isc4-0 ;;
2479 *-isc4.* ) opsys=isc4-1
2480 GCC_TEST_OPTIONS=-posix
2481 NON_GCC_TEST_OPTIONS=-Xp
2483 *-isc* ) opsys=isc3-0 ;;
2484 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2485 *-esix* ) opsys=esix ;;
2486 *-xenix* ) opsys=xenix ;;
2487 *-linux-gnu* ) opsys=gnu-linux ;;
2488 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2489 *-sco3.2v5* ) opsys=sco5
2490 NON_GNU_CPP=/lib/cpp
2491 # Prevent -belf from being passed to $CPP.
2492 # /lib/cpp does not accept it.
2493 OVERRIDE_CPPFLAGS=" "
2495 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2496 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2497 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2498 *-386bsd* ) opsys=386bsd ;;
2499 *-nextstep* ) opsys=nextstep ;;
2500 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2501 esac
2504 ## m68k Linux-based GNU system
2505 m68k-*-linux-gnu* )
2506 machine=m68k opsys=gnu-linux
2509 ## Mips Linux-based GNU system
2510 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2511 machine=mips opsys=gnu-linux
2514 ## UXP/DS
2515 sparc-fujitsu-sysv4* )
2516 machine=sparc opsys=uxpds
2517 NON_GNU_CPP=/usr/ccs/lib/cpp
2518 RANLIB="ar -ts"
2521 ## UXP/V
2522 f301-fujitsu-uxpv4.1)
2523 machine=f301 opsys=uxpv
2526 ## Darwin / Mac OS X
2527 powerpc-apple-darwin* )
2528 machine=powermac opsys=darwin
2529 # Define CPP as follows to make autoconf work correctly.
2530 CPP="cc -E -traditional-cpp"
2533 ## AMD x86-64 Linux-based GNU system
2534 x86_64-*-linux-gnu* )
2535 machine=amdx86-64 opsys=gnu-linux
2539 unported=yes
2541 esac
2543 ### If the code above didn't choose an operating system, just choose
2544 ### an operating system based on the configuration name. You really
2545 ### only want to use this when you have no idea what the right
2546 ### operating system is; if you know what operating systems a machine
2547 ### runs, it's cleaner to make it explicit in the case statement
2548 ### above.
2549 if test x"${opsys}" = x; then
2550 case "${canonical}" in
2551 *-gnu* ) opsys=gnu ;;
2552 *-bsd4.[01] ) opsys=bsd4-1 ;;
2553 *-bsd4.2 ) opsys=bsd4-2 ;;
2554 *-bsd4.3 ) opsys=bsd4-3 ;;
2555 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2556 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2557 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2558 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2559 *-sysv4.2uw* ) opsys=unixware ;;
2560 *-sysv5uw* ) opsys=unixware ;;
2561 *-sysv5OpenUNIX* ) opsys=unixware ;;
2562 *-sysv4.1* | *-sysvr4.1* )
2563 NON_GNU_CPP=/usr/lib/cpp
2564 opsys=usg5-4 ;;
2565 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2566 if [ x$NON_GNU_CPP = x ]; then
2567 if [ -f /usr/ccs/lib/cpp ]; then
2568 NON_GNU_CPP=/usr/ccs/lib/cpp
2569 else
2570 NON_GNU_CPP=/lib/cpp
2573 opsys=usg5-4-2 ;;
2574 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2576 unported=yes
2578 esac
2583 if test $unported = yes; then
2584 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2585 Check \`etc/MACHINES' for recognized configuration names." >&5
2586 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2587 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2588 { (exit 1); exit 1; }; }
2591 machfile="m/${machine}.h"
2592 opsysfile="s/${opsys}.h"
2595 #### Choose a compiler.
2596 test -n "$CC" && cc_specified=yes
2598 # Save the value of CFLAGS that the user specified.
2599 SPECIFIED_CFLAGS="$CFLAGS"
2601 case ${with_gcc} in
2602 "yes" ) CC="gcc" GCC=yes ;;
2603 "no" ) : ${CC=cc} ;;
2605 esac
2606 ac_ext=c
2607 ac_cpp='$CPP $CPPFLAGS'
2608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2611 if test -n "$ac_tool_prefix"; then
2612 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2613 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2614 echo "$as_me:$LINENO: checking for $ac_word" >&5
2615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2616 if test "${ac_cv_prog_CC+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
2618 else
2619 if test -n "$CC"; then
2620 ac_cv_prog_CC="$CC" # Let the user override the test.
2621 else
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2629 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 break 2
2633 done
2634 done
2638 CC=$ac_cv_prog_CC
2639 if test -n "$CC"; then
2640 echo "$as_me:$LINENO: result: $CC" >&5
2641 echo "${ECHO_T}$CC" >&6
2642 else
2643 echo "$as_me:$LINENO: result: no" >&5
2644 echo "${ECHO_T}no" >&6
2648 if test -z "$ac_cv_prog_CC"; then
2649 ac_ct_CC=$CC
2650 # Extract the first word of "gcc", so it can be a program name with args.
2651 set dummy gcc; ac_word=$2
2652 echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2654 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 else
2657 if test -n "$ac_ct_CC"; then
2658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2667 ac_cv_prog_ac_ct_CC="gcc"
2668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 break 2
2671 done
2672 done
2676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677 if test -n "$ac_ct_CC"; then
2678 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2679 echo "${ECHO_T}$ac_ct_CC" >&6
2680 else
2681 echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6
2685 CC=$ac_ct_CC
2686 else
2687 CC="$ac_cv_prog_CC"
2690 if test -z "$CC"; then
2691 if test -n "$ac_tool_prefix"; then
2692 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2693 set dummy ${ac_tool_prefix}cc; ac_word=$2
2694 echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2696 if test "${ac_cv_prog_CC+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC="$CC" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 ac_cv_prog_CC="${ac_tool_prefix}cc"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2713 done
2714 done
2718 CC=$ac_cv_prog_CC
2719 if test -n "$CC"; then
2720 echo "$as_me:$LINENO: result: $CC" >&5
2721 echo "${ECHO_T}$CC" >&6
2722 else
2723 echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6
2728 if test -z "$ac_cv_prog_CC"; then
2729 ac_ct_CC=$CC
2730 # Extract the first word of "cc", so it can be a program name with args.
2731 set dummy cc; ac_word=$2
2732 echo "$as_me:$LINENO: checking for $ac_word" >&5
2733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737 if test -n "$ac_ct_CC"; then
2738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 ac_cv_prog_ac_ct_CC="cc"
2748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2751 done
2752 done
2756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2757 if test -n "$ac_ct_CC"; then
2758 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2759 echo "${ECHO_T}$ac_ct_CC" >&6
2760 else
2761 echo "$as_me:$LINENO: result: no" >&5
2762 echo "${ECHO_T}no" >&6
2765 CC=$ac_ct_CC
2766 else
2767 CC="$ac_cv_prog_CC"
2771 if test -z "$CC"; then
2772 # Extract the first word of "cc", so it can be a program name with args.
2773 set dummy cc; ac_word=$2
2774 echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2776 if test "${ac_cv_prog_CC+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779 if test -n "$CC"; then
2780 ac_cv_prog_CC="$CC" # Let the user override the test.
2781 else
2782 ac_prog_rejected=no
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2791 ac_prog_rejected=yes
2792 continue
2794 ac_cv_prog_CC="cc"
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2798 done
2799 done
2801 if test $ac_prog_rejected = yes; then
2802 # We found a bogon in the path, so make sure we never use it.
2803 set dummy $ac_cv_prog_CC
2804 shift
2805 if test $# != 0; then
2806 # We chose a different compiler from the bogus one.
2807 # However, it has the same basename, so the bogon will be chosen
2808 # first if we set CC to just the basename; use the full file name.
2809 shift
2810 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2815 CC=$ac_cv_prog_CC
2816 if test -n "$CC"; then
2817 echo "$as_me:$LINENO: result: $CC" >&5
2818 echo "${ECHO_T}$CC" >&6
2819 else
2820 echo "$as_me:$LINENO: result: no" >&5
2821 echo "${ECHO_T}no" >&6
2825 if test -z "$CC"; then
2826 if test -n "$ac_tool_prefix"; then
2827 for ac_prog in cl
2829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2831 echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2833 if test "${ac_cv_prog_CC+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836 if test -n "$CC"; then
2837 ac_cv_prog_CC="$CC" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2850 done
2851 done
2855 CC=$ac_cv_prog_CC
2856 if test -n "$CC"; then
2857 echo "$as_me:$LINENO: result: $CC" >&5
2858 echo "${ECHO_T}$CC" >&6
2859 else
2860 echo "$as_me:$LINENO: result: no" >&5
2861 echo "${ECHO_T}no" >&6
2864 test -n "$CC" && break
2865 done
2867 if test -z "$CC"; then
2868 ac_ct_CC=$CC
2869 for ac_prog in cl
2871 # Extract the first word of "$ac_prog", so it can be a program name with args.
2872 set dummy $ac_prog; ac_word=$2
2873 echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878 if test -n "$ac_ct_CC"; then
2879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_ac_ct_CC="$ac_prog"
2889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2892 done
2893 done
2897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2898 if test -n "$ac_ct_CC"; then
2899 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2900 echo "${ECHO_T}$ac_ct_CC" >&6
2901 else
2902 echo "$as_me:$LINENO: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2906 test -n "$ac_ct_CC" && break
2907 done
2909 CC=$ac_ct_CC
2915 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2916 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2917 { (exit 1); exit 1; }; }
2919 # Provide some information about the compiler.
2920 echo "$as_me:$LINENO:" \
2921 "checking for C compiler version" >&5
2922 ac_compiler=`set X $ac_compile; echo $2`
2923 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2924 (eval $ac_compiler --version </dev/null >&5) 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }
2928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2929 (eval $ac_compiler -v </dev/null >&5) 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }
2933 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2934 (eval $ac_compiler -V </dev/null >&5) 2>&5
2935 ac_status=$?
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }
2939 cat >conftest.$ac_ext <<_ACEOF
2940 #line $LINENO "configure"
2941 #include "confdefs.h"
2944 main ()
2948 return 0;
2950 _ACEOF
2951 ac_clean_files_save=$ac_clean_files
2952 ac_clean_files="$ac_clean_files a.out a.exe"
2953 # Try to create an executable without -o first, disregard a.out.
2954 # It will help us diagnose broken compilers, and finding out an intuition
2955 # of exeext.
2956 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2957 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2958 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2959 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2960 (eval $ac_link_default) 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; then
2964 # Find the output, starting from the most likely. This scheme is
2965 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2966 # resort.
2968 # Be careful to initialize this variable, since it used to be cached.
2969 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2970 ac_cv_exeext=
2971 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
2972 test -f "$ac_file" || continue
2973 case $ac_file in
2974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2975 a.out ) # We found the default executable, but exeext='' is most
2976 # certainly right.
2977 break;;
2978 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2979 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2980 export ac_cv_exeext
2981 break;;
2982 * ) break;;
2983 esac
2984 done
2985 else
2986 echo "$as_me: failed program was:" >&5
2987 cat conftest.$ac_ext >&5
2988 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2989 check \`config.log' for details." >&5
2990 echo "$as_me: error: C compiler cannot create executables
2991 check \`config.log' for details." >&2;}
2992 { (exit 77); exit 77; }; }
2995 ac_exeext=$ac_cv_exeext
2996 echo "$as_me:$LINENO: result: $ac_file" >&5
2997 echo "${ECHO_T}$ac_file" >&6
2999 # Check the compiler produces executables we can run. If not, either
3000 # the compiler is broken, or we cross compile.
3001 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3002 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3003 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3004 # If not cross compiling, check that we can run a simple program.
3005 if test "$cross_compiling" != yes; then
3006 if { ac_try='./$ac_file'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 (eval $ac_try) 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3012 cross_compiling=no
3013 else
3014 if test "$cross_compiling" = maybe; then
3015 cross_compiling=yes
3016 else
3017 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3018 If you meant to cross compile, use \`--host'." >&5
3019 echo "$as_me: error: cannot run C compiled programs.
3020 If you meant to cross compile, use \`--host'." >&2;}
3021 { (exit 1); exit 1; }; }
3025 echo "$as_me:$LINENO: result: yes" >&5
3026 echo "${ECHO_T}yes" >&6
3028 rm -f a.out a.exe conftest$ac_cv_exeext
3029 ac_clean_files=$ac_clean_files_save
3030 # Check the compiler produces executables we can run. If not, either
3031 # the compiler is broken, or we cross compile.
3032 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3033 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3034 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3035 echo "${ECHO_T}$cross_compiling" >&6
3037 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3038 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3040 (eval $ac_link) 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; then
3044 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3045 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3046 # work properly (i.e., refer to `conftest.exe'), while it won't with
3047 # `rm'.
3048 for ac_file in conftest.exe conftest conftest.*; do
3049 test -f "$ac_file" || continue
3050 case $ac_file in
3051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3052 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3053 export ac_cv_exeext
3054 break;;
3055 * ) break;;
3056 esac
3057 done
3058 else
3059 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
3060 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
3061 { (exit 1); exit 1; }; }
3064 rm -f conftest$ac_cv_exeext
3065 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3066 echo "${ECHO_T}$ac_cv_exeext" >&6
3068 rm -f conftest.$ac_ext
3069 EXEEXT=$ac_cv_exeext
3070 ac_exeext=$EXEEXT
3071 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3072 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3073 if test "${ac_cv_objext+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076 cat >conftest.$ac_ext <<_ACEOF
3077 #line $LINENO "configure"
3078 #include "confdefs.h"
3081 main ()
3085 return 0;
3087 _ACEOF
3088 rm -f conftest.o conftest.obj
3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; then
3094 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3095 case $ac_file in
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3097 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3098 break;;
3099 esac
3100 done
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 cat conftest.$ac_ext >&5
3104 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
3105 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
3106 { (exit 1); exit 1; }; }
3109 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3111 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3112 echo "${ECHO_T}$ac_cv_objext" >&6
3113 OBJEXT=$ac_cv_objext
3114 ac_objext=$OBJEXT
3115 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3116 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3117 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120 cat >conftest.$ac_ext <<_ACEOF
3121 #line $LINENO "configure"
3122 #include "confdefs.h"
3125 main ()
3127 #ifndef __GNUC__
3128 choke me
3129 #endif
3132 return 0;
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3137 (eval $ac_compile) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 (eval $ac_try) 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_compiler_gnu=yes
3148 else
3149 echo "$as_me: failed program was:" >&5
3150 cat conftest.$ac_ext >&5
3151 ac_compiler_gnu=no
3153 rm -f conftest.$ac_objext conftest.$ac_ext
3154 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3157 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3158 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3159 GCC=`test $ac_compiler_gnu = yes && echo yes`
3160 ac_test_CFLAGS=${CFLAGS+set}
3161 ac_save_CFLAGS=$CFLAGS
3162 CFLAGS="-g"
3163 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3164 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3165 if test "${ac_cv_prog_cc_g+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168 cat >conftest.$ac_ext <<_ACEOF
3169 #line $LINENO "configure"
3170 #include "confdefs.h"
3173 main ()
3177 return 0;
3179 _ACEOF
3180 rm -f conftest.$ac_objext
3181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3182 (eval $ac_compile) 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -s conftest.$ac_objext'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 (eval $ac_try) 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3192 ac_cv_prog_cc_g=yes
3193 else
3194 echo "$as_me: failed program was:" >&5
3195 cat conftest.$ac_ext >&5
3196 ac_cv_prog_cc_g=no
3198 rm -f conftest.$ac_objext conftest.$ac_ext
3200 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3201 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3202 if test "$ac_test_CFLAGS" = set; then
3203 CFLAGS=$ac_save_CFLAGS
3204 elif test $ac_cv_prog_cc_g = yes; then
3205 if test "$GCC" = yes; then
3206 CFLAGS="-g -O2"
3207 else
3208 CFLAGS="-g"
3210 else
3211 if test "$GCC" = yes; then
3212 CFLAGS="-O2"
3213 else
3214 CFLAGS=
3217 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3218 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3219 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222 ac_cv_prog_cc_stdc=no
3223 ac_save_CC=$CC
3224 cat >conftest.$ac_ext <<_ACEOF
3225 #line $LINENO "configure"
3226 #include "confdefs.h"
3227 #include <stdarg.h>
3228 #include <stdio.h>
3229 #include <sys/types.h>
3230 #include <sys/stat.h>
3231 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3232 struct buf { int x; };
3233 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3234 static char *e (p, i)
3235 char **p;
3236 int i;
3238 return p[i];
3240 static char *f (char * (*g) (char **, int), char **p, ...)
3242 char *s;
3243 va_list v;
3244 va_start (v,p);
3245 s = g (p, va_arg (v,int));
3246 va_end (v);
3247 return s;
3249 int test (int i, double x);
3250 struct s1 {int (*f) (int a);};
3251 struct s2 {int (*f) (double a);};
3252 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3253 int argc;
3254 char **argv;
3256 main ()
3258 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3260 return 0;
3262 _ACEOF
3263 # Don't try gcc -ansi; that turns off useful extensions and
3264 # breaks some systems' header files.
3265 # AIX -qlanglvl=ansi
3266 # Ultrix and OSF/1 -std1
3267 # HP-UX 10.20 and later -Ae
3268 # HP-UX older versions -Aa -D_HPUX_SOURCE
3269 # SVR4 -Xc -D__EXTENSIONS__
3270 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3272 CC="$ac_save_CC $ac_arg"
3273 rm -f conftest.$ac_objext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275 (eval $ac_compile) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } &&
3279 { ac_try='test -s conftest.$ac_objext'
3280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281 (eval $ac_try) 2>&5
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; }; then
3285 ac_cv_prog_cc_stdc=$ac_arg
3286 break
3287 else
3288 echo "$as_me: failed program was:" >&5
3289 cat conftest.$ac_ext >&5
3291 rm -f conftest.$ac_objext
3292 done
3293 rm -f conftest.$ac_ext conftest.$ac_objext
3294 CC=$ac_save_CC
3298 case "x$ac_cv_prog_cc_stdc" in
3299 x|xno)
3300 echo "$as_me:$LINENO: result: none needed" >&5
3301 echo "${ECHO_T}none needed" >&6 ;;
3303 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3304 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3305 CC="$CC $ac_cv_prog_cc_stdc" ;;
3306 esac
3308 # Some people use a C++ compiler to compile C. Since we use `exit',
3309 # in C++ we need to declare it. In case someone uses the same compiler
3310 # for both compiling C and C++ we need to have the C++ compiler decide
3311 # the declaration of exit, since it's the most demanding environment.
3312 cat >conftest.$ac_ext <<_ACEOF
3313 #ifndef __cplusplus
3314 choke me
3315 #endif
3316 _ACEOF
3317 rm -f conftest.$ac_objext
3318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } &&
3323 { ac_try='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 (eval $ac_try) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 for ac_declaration in \
3331 '#include <stdlib.h>' \
3332 'extern "C" void std::exit (int) throw (); using std::exit;' \
3333 'extern "C" void std::exit (int); using std::exit;' \
3334 'extern "C" void exit (int) throw ();' \
3335 'extern "C" void exit (int);' \
3336 'void exit (int);'
3338 cat >conftest.$ac_ext <<_ACEOF
3339 #line $LINENO "configure"
3340 #include "confdefs.h"
3341 #include <stdlib.h>
3342 $ac_declaration
3344 main ()
3346 exit (42);
3348 return 0;
3350 _ACEOF
3351 rm -f conftest.$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 (eval $ac_try) 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3364 else
3365 echo "$as_me: failed program was:" >&5
3366 cat conftest.$ac_ext >&5
3367 continue
3369 rm -f conftest.$ac_objext conftest.$ac_ext
3370 cat >conftest.$ac_ext <<_ACEOF
3371 #line $LINENO "configure"
3372 #include "confdefs.h"
3373 $ac_declaration
3375 main ()
3377 exit (42);
3379 return 0;
3381 _ACEOF
3382 rm -f conftest.$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384 (eval $ac_compile) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try='test -s conftest.$ac_objext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 break
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 cat conftest.$ac_ext >&5
3399 rm -f conftest.$ac_objext conftest.$ac_ext
3400 done
3401 rm -f conftest*
3402 if test -n "$ac_declaration"; then
3403 echo '#ifdef __cplusplus' >>confdefs.h
3404 echo $ac_declaration >>confdefs.h
3405 echo '#endif' >>confdefs.h
3408 else
3409 echo "$as_me: failed program was:" >&5
3410 cat conftest.$ac_ext >&5
3412 rm -f conftest.$ac_objext conftest.$ac_ext
3413 ac_ext=c
3414 ac_cpp='$CPP $CPPFLAGS'
3415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420 # On Suns, sometimes $CPP names a directory.
3421 if test -n "$CPP" && test -d "$CPP"; then
3422 CPP=
3425 #### Some systems specify a CPP to use unless we are using GCC.
3426 #### Now that we know whether we are using GCC, we can decide whether
3427 #### to use that one.
3428 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3429 then
3430 CPP="$NON_GNU_CPP"
3433 #### Some systems specify a CC to use unless we are using GCC.
3434 #### Now that we know whether we are using GCC, we can decide whether
3435 #### to use that one.
3436 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3437 test x$cc_specified != xyes
3438 then
3439 CC="$NON_GNU_CC"
3442 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3443 then
3444 CC="$CC $GCC_TEST_OPTIONS"
3447 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3448 then
3449 CC="$CC $NON_GCC_TEST_OPTIONS"
3452 #### Some other nice autoconf tests.
3454 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3455 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3456 LN_S=$as_ln_s
3457 if test "$LN_S" = "ln -s"; then
3458 echo "$as_me:$LINENO: result: yes" >&5
3459 echo "${ECHO_T}yes" >&6
3460 else
3461 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3462 echo "${ECHO_T}no, using $LN_S" >&6
3465 ac_ext=c
3466 ac_cpp='$CPP $CPPFLAGS'
3467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3471 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3472 # On Suns, sometimes $CPP names a directory.
3473 if test -n "$CPP" && test -d "$CPP"; then
3474 CPP=
3476 if test -z "$CPP"; then
3477 if test "${ac_cv_prog_CPP+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480 # Double quotes because CPP needs to be expanded
3481 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3483 ac_preproc_ok=false
3484 for ac_c_preproc_warn_flag in '' yes
3486 # Use a header file that comes with gcc, so configuring glibc
3487 # with a fresh cross-compiler works.
3488 # On the NeXT, cc -E runs the code through the compiler's parser,
3489 # not just through cpp. "Syntax error" is here to catch this case.
3490 cat >conftest.$ac_ext <<_ACEOF
3491 #line $LINENO "configure"
3492 #include "confdefs.h"
3493 #include <assert.h>
3494 Syntax error
3495 _ACEOF
3496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3498 ac_status=$?
3499 grep -v '^ *+' conftest.er1 >conftest.err
3500 rm -f conftest.er1
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } >/dev/null; then
3504 if test -s conftest.err; then
3505 ac_cpp_err=$ac_c_preproc_warn_flag
3506 else
3507 ac_cpp_err=
3509 else
3510 ac_cpp_err=yes
3512 if test -z "$ac_cpp_err"; then
3514 else
3515 echo "$as_me: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3517 # Broken: fails on valid input.
3518 continue
3520 rm -f conftest.err conftest.$ac_ext
3522 # OK, works on sane cases. Now check whether non-existent headers
3523 # can be detected and how.
3524 cat >conftest.$ac_ext <<_ACEOF
3525 #line $LINENO "configure"
3526 #include "confdefs.h"
3527 #include <ac_nonexistent.h>
3528 _ACEOF
3529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3531 ac_status=$?
3532 grep -v '^ *+' conftest.er1 >conftest.err
3533 rm -f conftest.er1
3534 cat conftest.err >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } >/dev/null; then
3537 if test -s conftest.err; then
3538 ac_cpp_err=$ac_c_preproc_warn_flag
3539 else
3540 ac_cpp_err=
3542 else
3543 ac_cpp_err=yes
3545 if test -z "$ac_cpp_err"; then
3546 # Broken: success on invalid input.
3547 continue
3548 else
3549 echo "$as_me: failed program was:" >&5
3550 cat conftest.$ac_ext >&5
3551 # Passes both tests.
3552 ac_preproc_ok=:
3553 break
3555 rm -f conftest.err conftest.$ac_ext
3557 done
3558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3559 rm -f conftest.err conftest.$ac_ext
3560 if $ac_preproc_ok; then
3561 break
3564 done
3565 ac_cv_prog_CPP=$CPP
3568 CPP=$ac_cv_prog_CPP
3569 else
3570 ac_cv_prog_CPP=$CPP
3572 echo "$as_me:$LINENO: result: $CPP" >&5
3573 echo "${ECHO_T}$CPP" >&6
3574 ac_preproc_ok=false
3575 for ac_c_preproc_warn_flag in '' yes
3577 # Use a header file that comes with gcc, so configuring glibc
3578 # with a fresh cross-compiler works.
3579 # On the NeXT, cc -E runs the code through the compiler's parser,
3580 # not just through cpp. "Syntax error" is here to catch this case.
3581 cat >conftest.$ac_ext <<_ACEOF
3582 #line $LINENO "configure"
3583 #include "confdefs.h"
3584 #include <assert.h>
3585 Syntax error
3586 _ACEOF
3587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3589 ac_status=$?
3590 grep -v '^ *+' conftest.er1 >conftest.err
3591 rm -f conftest.er1
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } >/dev/null; then
3595 if test -s conftest.err; then
3596 ac_cpp_err=$ac_c_preproc_warn_flag
3597 else
3598 ac_cpp_err=
3600 else
3601 ac_cpp_err=yes
3603 if test -z "$ac_cpp_err"; then
3605 else
3606 echo "$as_me: failed program was:" >&5
3607 cat conftest.$ac_ext >&5
3608 # Broken: fails on valid input.
3609 continue
3611 rm -f conftest.err conftest.$ac_ext
3613 # OK, works on sane cases. Now check whether non-existent headers
3614 # can be detected and how.
3615 cat >conftest.$ac_ext <<_ACEOF
3616 #line $LINENO "configure"
3617 #include "confdefs.h"
3618 #include <ac_nonexistent.h>
3619 _ACEOF
3620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } >/dev/null; then
3628 if test -s conftest.err; then
3629 ac_cpp_err=$ac_c_preproc_warn_flag
3630 else
3631 ac_cpp_err=
3633 else
3634 ac_cpp_err=yes
3636 if test -z "$ac_cpp_err"; then
3637 # Broken: success on invalid input.
3638 continue
3639 else
3640 echo "$as_me: failed program was:" >&5
3641 cat conftest.$ac_ext >&5
3642 # Passes both tests.
3643 ac_preproc_ok=:
3644 break
3646 rm -f conftest.err conftest.$ac_ext
3648 done
3649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3650 rm -f conftest.err conftest.$ac_ext
3651 if $ac_preproc_ok; then
3653 else
3654 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3655 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3656 { (exit 1); exit 1; }; }
3659 ac_ext=c
3660 ac_cpp='$CPP $CPPFLAGS'
3661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665 # Find a good install program. We prefer a C program (faster),
3666 # so one script is as good as another. But avoid the broken or
3667 # incompatible versions:
3668 # SysV /etc/install, /usr/sbin/install
3669 # SunOS /usr/etc/install
3670 # IRIX /sbin/install
3671 # AIX /bin/install
3672 # AmigaOS /C/install, which installs bootblocks on floppy discs
3673 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3674 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3675 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3676 # ./install, which can be erroneously created by make from ./install.sh.
3677 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3678 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3679 if test -z "$INSTALL"; then
3680 if test "${ac_cv_path_install+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 # Account for people who put trailing slashes in PATH elements.
3689 case $as_dir/ in
3690 ./ | .// | /cC/* | \
3691 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3692 /usr/ucb/* ) ;;
3694 # OSF1 and SCO ODT 3.0 have their own names for install.
3695 # Don't use installbsd from OSF since it installs stuff as root
3696 # by default.
3697 for ac_prog in ginstall scoinst install; do
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3700 if test $ac_prog = install &&
3701 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3702 # AIX install. It has an incompatible calling convention.
3704 elif test $ac_prog = install &&
3705 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3706 # program-specific install script used by HP pwplus--don't use.
3708 else
3709 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3710 break 3
3713 done
3714 done
3716 esac
3717 done
3721 if test "${ac_cv_path_install+set}" = set; then
3722 INSTALL=$ac_cv_path_install
3723 else
3724 # As a last resort, use the slow shell script. We don't cache a
3725 # path for INSTALL within a source directory, because that will
3726 # break other packages using the cache if that directory is
3727 # removed, or if the path is relative.
3728 INSTALL=$ac_install_sh
3731 echo "$as_me:$LINENO: result: $INSTALL" >&5
3732 echo "${ECHO_T}$INSTALL" >&6
3734 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3735 # It thinks the first close brace ends the variable substitution.
3736 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3738 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3740 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3742 if test "x$RANLIB" = x; then
3743 if test -n "$ac_tool_prefix"; then
3744 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3745 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3746 echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748 if test "${ac_cv_prog_RANLIB+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 if test -n "$RANLIB"; then
3752 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3765 done
3766 done
3770 RANLIB=$ac_cv_prog_RANLIB
3771 if test -n "$RANLIB"; then
3772 echo "$as_me:$LINENO: result: $RANLIB" >&5
3773 echo "${ECHO_T}$RANLIB" >&6
3774 else
3775 echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6
3780 if test -z "$ac_cv_prog_RANLIB"; then
3781 ac_ct_RANLIB=$RANLIB
3782 # Extract the first word of "ranlib", so it can be a program name with args.
3783 set dummy ranlib; ac_word=$2
3784 echo "$as_me:$LINENO: checking for $ac_word" >&5
3785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3786 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789 if test -n "$ac_ct_RANLIB"; then
3790 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3791 else
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_ac_ct_RANLIB="ranlib"
3800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 break 2
3803 done
3804 done
3806 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3809 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3810 if test -n "$ac_ct_RANLIB"; then
3811 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3812 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3813 else
3814 echo "$as_me:$LINENO: result: no" >&5
3815 echo "${ECHO_T}no" >&6
3818 RANLIB=$ac_ct_RANLIB
3819 else
3820 RANLIB="$ac_cv_prog_RANLIB"
3824 # Extract the first word of "install-info", so it can be a program name with args.
3825 set dummy install-info; ac_word=$2
3826 echo "$as_me:$LINENO: checking for $ac_word" >&5
3827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3828 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 case $INSTALL_INFO in
3832 [\\/]* | ?:[\\/]*)
3833 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 break 2
3847 done
3848 done
3851 esac
3853 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3855 if test -n "$INSTALL_INFO"; then
3856 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3857 echo "${ECHO_T}$INSTALL_INFO" >&6
3858 else
3859 echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3863 # Extract the first word of "install-info", so it can be a program name with args.
3864 set dummy install-info; ac_word=$2
3865 echo "$as_me:$LINENO: checking for $ac_word" >&5
3866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3867 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 case $INSTALL_INFO in
3871 [\\/]* | ?:[\\/]*)
3872 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in /usr/sbin
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 break 2
3886 done
3887 done
3890 esac
3892 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3894 if test -n "$INSTALL_INFO"; then
3895 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3896 echo "${ECHO_T}$INSTALL_INFO" >&6
3897 else
3898 echo "$as_me:$LINENO: result: no" >&5
3899 echo "${ECHO_T}no" >&6
3902 # Extract the first word of "install-info", so it can be a program name with args.
3903 set dummy install-info; ac_word=$2
3904 echo "$as_me:$LINENO: checking for $ac_word" >&5
3905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909 case $INSTALL_INFO in
3910 [\\/]* | ?:[\\/]*)
3911 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in /sbin
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3921 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 break 2
3925 done
3926 done
3928 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
3930 esac
3932 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3934 if test -n "$INSTALL_INFO"; then
3935 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3936 echo "${ECHO_T}$INSTALL_INFO" >&6
3937 else
3938 echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3944 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
3945 then
3946 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
3949 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3950 then
3951 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3956 echo "$as_me:$LINENO: checking for egrep" >&5
3957 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3958 if test "${ac_cv_prog_egrep+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3962 then ac_cv_prog_egrep='grep -E'
3963 else ac_cv_prog_egrep='egrep'
3966 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3967 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3968 EGREP=$ac_cv_prog_egrep
3972 echo "$as_me:$LINENO: checking for AIX" >&5
3973 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3974 cat >conftest.$ac_ext <<_ACEOF
3975 #line $LINENO "configure"
3976 #include "confdefs.h"
3977 #ifdef _AIX
3979 #endif
3981 _ACEOF
3982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3983 $EGREP "yes" >/dev/null 2>&1; then
3984 echo "$as_me:$LINENO: result: yes" >&5
3985 echo "${ECHO_T}yes" >&6
3986 cat >>confdefs.h <<\_ACEOF
3987 #define _ALL_SOURCE 1
3988 _ACEOF
3990 else
3991 echo "$as_me:$LINENO: result: no" >&5
3992 echo "${ECHO_T}no" >&6
3994 rm -f conftest*
3998 #### Extract some information from the operating system and machine files.
4000 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4001 - which libraries the lib-src programs will want, and
4002 - whether the GNU malloc routines are usable..." >&5
4003 echo "$as_me: checking the machine- and system-dependent files to find out
4004 - which libraries the lib-src programs will want, and
4005 - whether the GNU malloc routines are usable..." >&6;}
4007 ### First figure out CFLAGS (which we use for running the compiler here)
4008 ### and REAL_CFLAGS (which we use for real compilation).
4009 ### The two are the same except on a few systems, where they are made
4010 ### different to work around various lossages. For example,
4011 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4012 ### as implying static linking.
4014 ### If the CFLAGS env var is specified, we use that value
4015 ### instead of the default.
4017 ### It's not important that this name contain the PID; you can't run
4018 ### two configures in the same directory and have anything work
4019 ### anyway.
4020 tempcname="conftest.c"
4022 echo '
4023 #include "'${srcdir}'/src/'${opsysfile}'"
4024 #include "'${srcdir}'/src/'${machfile}'"
4025 #ifndef LIBS_MACHINE
4026 #define LIBS_MACHINE
4027 #endif
4028 #ifndef LIBS_SYSTEM
4029 #define LIBS_SYSTEM
4030 #endif
4031 #ifndef C_SWITCH_SYSTEM
4032 #define C_SWITCH_SYSTEM
4033 #endif
4034 #ifndef C_SWITCH_MACHINE
4035 #define C_SWITCH_MACHINE
4036 #endif
4037 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4038 configure___ c_switch_system=C_SWITCH_SYSTEM
4039 configure___ c_switch_machine=C_SWITCH_MACHINE
4041 #ifndef LIB_X11_LIB
4042 #define LIB_X11_LIB -lX11
4043 #endif
4045 #ifndef LIBX11_MACHINE
4046 #define LIBX11_MACHINE
4047 #endif
4049 #ifndef LIBX11_SYSTEM
4050 #define LIBX11_SYSTEM
4051 #endif
4052 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4054 #ifdef UNEXEC
4055 configure___ unexec=UNEXEC
4056 #else
4057 configure___ unexec=unexec.o
4058 #endif
4060 #ifdef SYSTEM_MALLOC
4061 configure___ system_malloc=yes
4062 #else
4063 configure___ system_malloc=no
4064 #endif
4066 #ifdef USE_MMAP_FOR_BUFFERS
4067 configure___ use_mmap_for_buffers=yes
4068 #else
4069 configure___ use_mmap_for_buffers=no
4070 #endif
4072 #ifndef C_DEBUG_SWITCH
4073 #define C_DEBUG_SWITCH -g
4074 #endif
4076 #ifndef C_OPTIMIZE_SWITCH
4077 #ifdef __GNUC__
4078 #define C_OPTIMIZE_SWITCH -O2
4079 #else
4080 #define C_OPTIMIZE_SWITCH -O
4081 #endif
4082 #endif
4084 #ifndef LD_SWITCH_MACHINE
4085 #define LD_SWITCH_MACHINE
4086 #endif
4088 #ifndef LD_SWITCH_SYSTEM
4089 #define LD_SWITCH_SYSTEM
4090 #endif
4092 #ifndef LD_SWITCH_X_SITE_AUX
4093 #define LD_SWITCH_X_SITE_AUX
4094 #endif
4096 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4097 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4099 #ifdef THIS_IS_CONFIGURE
4101 /* Get the CFLAGS for tests in configure. */
4102 #ifdef __GNUC__
4103 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4104 #else
4105 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4106 #endif
4108 #else /* not THIS_IS_CONFIGURE */
4110 /* Get the CFLAGS for real compilation. */
4111 #ifdef __GNUC__
4112 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4113 #else
4114 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4115 #endif
4117 #endif /* not THIS_IS_CONFIGURE */
4118 ' > ${tempcname}
4120 # The value of CPP is a quoted variable reference, so we need to do this
4121 # to get its actual value...
4122 CPP=`eval "echo $CPP"`
4123 eval `${CPP} -Isrc ${tempcname} \
4124 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4125 if test "x$SPECIFIED_CFLAGS" = x; then
4126 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4127 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4128 else
4129 REAL_CFLAGS="$CFLAGS"
4131 rm ${tempcname}
4133 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4135 ### Make sure subsequent tests use flags consistent with the build flags.
4137 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4138 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4139 else
4140 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4146 cat >>confdefs.h <<\_ACEOF
4147 #define _GNU_SOURCE 1
4148 _ACEOF
4152 # Check whether --enable-largefile or --disable-largefile was given.
4153 if test "${enable_largefile+set}" = set; then
4154 enableval="$enable_largefile"
4157 if test "$enable_largefile" != no; then
4159 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4160 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4161 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164 ac_cv_sys_largefile_CC=no
4165 if test "$GCC" != yes; then
4166 ac_save_CC=$CC
4167 while :; do
4168 # IRIX 6.2 and later do not support large files by default,
4169 # so use the C compiler's -n32 option if that helps.
4170 cat >conftest.$ac_ext <<_ACEOF
4171 #line $LINENO "configure"
4172 #include "confdefs.h"
4173 #include <sys/types.h>
4174 /* Check that off_t can represent 2**63 - 1 correctly.
4175 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4176 since some C++ compilers masquerading as C compilers
4177 incorrectly reject 9223372036854775807. */
4178 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4179 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4180 && LARGE_OFF_T % 2147483647 == 1)
4181 ? 1 : -1];
4183 main ()
4187 return 0;
4189 _ACEOF
4190 rm -f conftest.$ac_objext
4191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4192 (eval $ac_compile) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 break
4203 else
4204 echo "$as_me: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4207 rm -f conftest.$ac_objext
4208 CC="$CC -n32"
4209 rm -f conftest.$ac_objext
4210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4211 (eval $ac_compile) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } &&
4215 { ac_try='test -s conftest.$ac_objext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_cv_sys_largefile_CC=' -n32'; break
4222 else
4223 echo "$as_me: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4226 rm -f conftest.$ac_objext
4227 break
4228 done
4229 CC=$ac_save_CC
4230 rm -f conftest.$ac_ext
4233 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4234 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4235 if test "$ac_cv_sys_largefile_CC" != no; then
4236 CC=$CC$ac_cv_sys_largefile_CC
4239 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4240 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4241 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244 while :; do
4245 ac_cv_sys_file_offset_bits=no
4246 cat >conftest.$ac_ext <<_ACEOF
4247 #line $LINENO "configure"
4248 #include "confdefs.h"
4249 #include <sys/types.h>
4250 /* Check that off_t can represent 2**63 - 1 correctly.
4251 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4252 since some C++ compilers masquerading as C compilers
4253 incorrectly reject 9223372036854775807. */
4254 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4255 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4256 && LARGE_OFF_T % 2147483647 == 1)
4257 ? 1 : -1];
4259 main ()
4263 return 0;
4265 _ACEOF
4266 rm -f conftest.$ac_objext
4267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4268 (eval $ac_compile) 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } &&
4272 { ac_try='test -s conftest.$ac_objext'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 (eval $ac_try) 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4278 break
4279 else
4280 echo "$as_me: failed program was:" >&5
4281 cat conftest.$ac_ext >&5
4283 rm -f conftest.$ac_objext conftest.$ac_ext
4284 cat >conftest.$ac_ext <<_ACEOF
4285 #line $LINENO "configure"
4286 #include "confdefs.h"
4287 #define _FILE_OFFSET_BITS 64
4288 #include <sys/types.h>
4289 /* Check that off_t can represent 2**63 - 1 correctly.
4290 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4291 since some C++ compilers masquerading as C compilers
4292 incorrectly reject 9223372036854775807. */
4293 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4294 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4295 && LARGE_OFF_T % 2147483647 == 1)
4296 ? 1 : -1];
4298 main ()
4302 return 0;
4304 _ACEOF
4305 rm -f conftest.$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try='test -s conftest.$ac_objext'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 (eval $ac_try) 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 ac_cv_sys_file_offset_bits=64; break
4318 else
4319 echo "$as_me: failed program was:" >&5
4320 cat conftest.$ac_ext >&5
4322 rm -f conftest.$ac_objext conftest.$ac_ext
4323 break
4324 done
4326 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4327 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4328 if test "$ac_cv_sys_file_offset_bits" != no; then
4330 cat >>confdefs.h <<_ACEOF
4331 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4332 _ACEOF
4335 rm -f conftest*
4336 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4337 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4338 if test "${ac_cv_sys_large_files+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341 while :; do
4342 ac_cv_sys_large_files=no
4343 cat >conftest.$ac_ext <<_ACEOF
4344 #line $LINENO "configure"
4345 #include "confdefs.h"
4346 #include <sys/types.h>
4347 /* Check that off_t can represent 2**63 - 1 correctly.
4348 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4349 since some C++ compilers masquerading as C compilers
4350 incorrectly reject 9223372036854775807. */
4351 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4352 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4353 && LARGE_OFF_T % 2147483647 == 1)
4354 ? 1 : -1];
4356 main ()
4360 return 0;
4362 _ACEOF
4363 rm -f conftest.$ac_objext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365 (eval $ac_compile) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -s conftest.$ac_objext'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 (eval $ac_try) 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 break
4376 else
4377 echo "$as_me: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4380 rm -f conftest.$ac_objext conftest.$ac_ext
4381 cat >conftest.$ac_ext <<_ACEOF
4382 #line $LINENO "configure"
4383 #include "confdefs.h"
4384 #define _LARGE_FILES 1
4385 #include <sys/types.h>
4386 /* Check that off_t can represent 2**63 - 1 correctly.
4387 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4388 since some C++ compilers masquerading as C compilers
4389 incorrectly reject 9223372036854775807. */
4390 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4391 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4392 && LARGE_OFF_T % 2147483647 == 1)
4393 ? 1 : -1];
4395 main ()
4399 return 0;
4401 _ACEOF
4402 rm -f conftest.$ac_objext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404 (eval $ac_compile) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -s conftest.$ac_objext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 ac_cv_sys_large_files=1; break
4415 else
4416 echo "$as_me: failed program was:" >&5
4417 cat conftest.$ac_ext >&5
4419 rm -f conftest.$ac_objext conftest.$ac_ext
4420 break
4421 done
4423 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4424 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4425 if test "$ac_cv_sys_large_files" != no; then
4427 cat >>confdefs.h <<_ACEOF
4428 #define _LARGE_FILES $ac_cv_sys_large_files
4429 _ACEOF
4432 rm -f conftest*
4436 if test "${with_sound}" != "no"; then
4437 # Sound support for GNU/Linux and the free BSDs.
4438 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4439 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4440 if test "${ac_cv_header_stdc+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443 cat >conftest.$ac_ext <<_ACEOF
4444 #line $LINENO "configure"
4445 #include "confdefs.h"
4446 #include <stdlib.h>
4447 #include <stdarg.h>
4448 #include <string.h>
4449 #include <float.h>
4451 _ACEOF
4452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4454 ac_status=$?
4455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } >/dev/null; then
4460 if test -s conftest.err; then
4461 ac_cpp_err=$ac_c_preproc_warn_flag
4462 else
4463 ac_cpp_err=
4465 else
4466 ac_cpp_err=yes
4468 if test -z "$ac_cpp_err"; then
4469 ac_cv_header_stdc=yes
4470 else
4471 echo "$as_me: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4473 ac_cv_header_stdc=no
4475 rm -f conftest.err conftest.$ac_ext
4477 if test $ac_cv_header_stdc = yes; then
4478 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4479 cat >conftest.$ac_ext <<_ACEOF
4480 #line $LINENO "configure"
4481 #include "confdefs.h"
4482 #include <string.h>
4484 _ACEOF
4485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 $EGREP "memchr" >/dev/null 2>&1; then
4488 else
4489 ac_cv_header_stdc=no
4491 rm -f conftest*
4495 if test $ac_cv_header_stdc = yes; then
4496 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4497 cat >conftest.$ac_ext <<_ACEOF
4498 #line $LINENO "configure"
4499 #include "confdefs.h"
4500 #include <stdlib.h>
4502 _ACEOF
4503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4504 $EGREP "free" >/dev/null 2>&1; then
4506 else
4507 ac_cv_header_stdc=no
4509 rm -f conftest*
4513 if test $ac_cv_header_stdc = yes; then
4514 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4515 if test "$cross_compiling" = yes; then
4517 else
4518 cat >conftest.$ac_ext <<_ACEOF
4519 #line $LINENO "configure"
4520 #include "confdefs.h"
4521 #include <ctype.h>
4522 #if ((' ' & 0x0FF) == 0x020)
4523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4525 #else
4526 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4527 || ('j' <= (c) && (c) <= 'r') \
4528 || ('s' <= (c) && (c) <= 'z'))
4529 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4530 #endif
4532 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4534 main ()
4536 int i;
4537 for (i = 0; i < 256; i++)
4538 if (XOR (islower (i), ISLOWER (i))
4539 || toupper (i) != TOUPPER (i))
4540 exit(2);
4541 exit (0);
4543 _ACEOF
4544 rm -f conftest$ac_exeext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4546 (eval $ac_link) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4556 else
4557 echo "$as_me: program exited with status $ac_status" >&5
4558 echo "$as_me: failed program was:" >&5
4559 cat conftest.$ac_ext >&5
4560 ( exit $ac_status )
4561 ac_cv_header_stdc=no
4563 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4567 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4568 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4569 if test $ac_cv_header_stdc = yes; then
4571 cat >>confdefs.h <<\_ACEOF
4572 #define STDC_HEADERS 1
4573 _ACEOF
4577 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4587 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4588 inttypes.h stdint.h unistd.h
4590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4591 echo "$as_me:$LINENO: checking for $ac_header" >&5
4592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596 cat >conftest.$ac_ext <<_ACEOF
4597 #line $LINENO "configure"
4598 #include "confdefs.h"
4599 $ac_includes_default
4601 #include <$ac_header>
4602 _ACEOF
4603 rm -f conftest.$ac_objext
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>&5
4606 ac_status=$?
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try='test -s conftest.$ac_objext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 eval "$as_ac_Header=yes"
4616 else
4617 echo "$as_me: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4619 eval "$as_ac_Header=no"
4621 rm -f conftest.$ac_objext conftest.$ac_ext
4623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4626 cat >>confdefs.h <<_ACEOF
4627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4628 _ACEOF
4632 done
4638 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4642 echo "$as_me:$LINENO: checking for $ac_header" >&5
4643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4649 else
4650 # Is the header compilable?
4651 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4653 cat >conftest.$ac_ext <<_ACEOF
4654 #line $LINENO "configure"
4655 #include "confdefs.h"
4656 $ac_includes_default
4657 #include <$ac_header>
4658 _ACEOF
4659 rm -f conftest.$ac_objext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661 (eval $ac_compile) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -s conftest.$ac_objext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 (eval $ac_try) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 ac_header_compiler=yes
4672 else
4673 echo "$as_me: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4675 ac_header_compiler=no
4677 rm -f conftest.$ac_objext conftest.$ac_ext
4678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4679 echo "${ECHO_T}$ac_header_compiler" >&6
4681 # Is the header present?
4682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4684 cat >conftest.$ac_ext <<_ACEOF
4685 #line $LINENO "configure"
4686 #include "confdefs.h"
4687 #include <$ac_header>
4688 _ACEOF
4689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4691 ac_status=$?
4692 grep -v '^ *+' conftest.er1 >conftest.err
4693 rm -f conftest.er1
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } >/dev/null; then
4697 if test -s conftest.err; then
4698 ac_cpp_err=$ac_c_preproc_warn_flag
4699 else
4700 ac_cpp_err=
4702 else
4703 ac_cpp_err=yes
4705 if test -z "$ac_cpp_err"; then
4706 ac_header_preproc=yes
4707 else
4708 echo "$as_me: failed program was:" >&5
4709 cat conftest.$ac_ext >&5
4710 ac_header_preproc=no
4712 rm -f conftest.err conftest.$ac_ext
4713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4714 echo "${ECHO_T}$ac_header_preproc" >&6
4716 # So? What about this header?
4717 case $ac_header_compiler:$ac_header_preproc in
4718 yes:no )
4719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4723 no:yes )
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4730 esac
4731 echo "$as_me:$LINENO: checking for $ac_header" >&5
4732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736 eval "$as_ac_Header=$ac_header_preproc"
4738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4743 cat >>confdefs.h <<_ACEOF
4744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4745 _ACEOF
4749 done
4751 # Emulation library used on NetBSD.
4752 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4753 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4754 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757 ac_check_lib_save_LIBS=$LIBS
4758 LIBS="-lossaudio $LIBS"
4759 cat >conftest.$ac_ext <<_ACEOF
4760 #line $LINENO "configure"
4761 #include "confdefs.h"
4763 /* Override any gcc2 internal prototype to avoid an error. */
4764 #ifdef __cplusplus
4765 extern "C"
4766 #endif
4767 /* We use char because int might match the return type of a gcc2
4768 builtin and then its argument prototype would still apply. */
4769 char _oss_ioctl ();
4771 main ()
4773 _oss_ioctl ();
4775 return 0;
4777 _ACEOF
4778 rm -f conftest.$ac_objext conftest$ac_exeext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4780 (eval $ac_link) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try='test -s conftest$ac_exeext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 (eval $ac_try) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 ac_cv_lib_ossaudio__oss_ioctl=yes
4791 else
4792 echo "$as_me: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4794 ac_cv_lib_ossaudio__oss_ioctl=no
4796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4797 LIBS=$ac_check_lib_save_LIBS
4799 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4800 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4801 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4802 LIBSOUND=-lossaudio
4803 else
4804 LIBSOUND=
4833 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
4834 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
4835 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
4836 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
4838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4840 echo "$as_me:$LINENO: checking for $ac_header" >&5
4841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4847 else
4848 # Is the header compilable?
4849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4851 cat >conftest.$ac_ext <<_ACEOF
4852 #line $LINENO "configure"
4853 #include "confdefs.h"
4854 $ac_includes_default
4855 #include <$ac_header>
4856 _ACEOF
4857 rm -f conftest.$ac_objext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859 (eval $ac_compile) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_header_compiler=yes
4870 else
4871 echo "$as_me: failed program was:" >&5
4872 cat conftest.$ac_ext >&5
4873 ac_header_compiler=no
4875 rm -f conftest.$ac_objext conftest.$ac_ext
4876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4877 echo "${ECHO_T}$ac_header_compiler" >&6
4879 # Is the header present?
4880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4882 cat >conftest.$ac_ext <<_ACEOF
4883 #line $LINENO "configure"
4884 #include "confdefs.h"
4885 #include <$ac_header>
4886 _ACEOF
4887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4889 ac_status=$?
4890 grep -v '^ *+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } >/dev/null; then
4895 if test -s conftest.err; then
4896 ac_cpp_err=$ac_c_preproc_warn_flag
4897 else
4898 ac_cpp_err=
4900 else
4901 ac_cpp_err=yes
4903 if test -z "$ac_cpp_err"; then
4904 ac_header_preproc=yes
4905 else
4906 echo "$as_me: failed program was:" >&5
4907 cat conftest.$ac_ext >&5
4908 ac_header_preproc=no
4910 rm -f conftest.err conftest.$ac_ext
4911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4912 echo "${ECHO_T}$ac_header_preproc" >&6
4914 # So? What about this header?
4915 case $ac_header_compiler:$ac_header_preproc in
4916 yes:no )
4917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4921 no:yes )
4922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4928 esac
4929 echo "$as_me:$LINENO: checking for $ac_header" >&5
4930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934 eval "$as_ac_Header=$ac_header_preproc"
4936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4941 cat >>confdefs.h <<_ACEOF
4942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4943 _ACEOF
4947 done
4950 for ac_header in term.h
4952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4953 echo "$as_me:$LINENO: checking for $ac_header" >&5
4954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958 cat >conftest.$ac_ext <<_ACEOF
4959 #line $LINENO "configure"
4960 #include "confdefs.h"
4961 #include <$ac_header>
4962 _ACEOF
4963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4965 ac_status=$?
4966 grep -v '^ *+' conftest.er1 >conftest.err
4967 rm -f conftest.er1
4968 cat conftest.err >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } >/dev/null; then
4971 if test -s conftest.err; then
4972 ac_cpp_err=$ac_c_preproc_warn_flag
4973 else
4974 ac_cpp_err=
4976 else
4977 ac_cpp_err=yes
4979 if test -z "$ac_cpp_err"; then
4980 eval "$as_ac_Header=yes"
4981 else
4982 echo "$as_me: failed program was:" >&5
4983 cat conftest.$ac_ext >&5
4984 eval "$as_ac_Header=no"
4986 rm -f conftest.err conftest.$ac_ext
4988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4991 cat >>confdefs.h <<_ACEOF
4992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4993 _ACEOF
4997 done
4999 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5000 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5001 if test "${ac_cv_header_stdc+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 cat >conftest.$ac_ext <<_ACEOF
5005 #line $LINENO "configure"
5006 #include "confdefs.h"
5007 #include <stdlib.h>
5008 #include <stdarg.h>
5009 #include <string.h>
5010 #include <float.h>
5012 _ACEOF
5013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5015 ac_status=$?
5016 grep -v '^ *+' conftest.er1 >conftest.err
5017 rm -f conftest.er1
5018 cat conftest.err >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } >/dev/null; then
5021 if test -s conftest.err; then
5022 ac_cpp_err=$ac_c_preproc_warn_flag
5023 else
5024 ac_cpp_err=
5026 else
5027 ac_cpp_err=yes
5029 if test -z "$ac_cpp_err"; then
5030 ac_cv_header_stdc=yes
5031 else
5032 echo "$as_me: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5034 ac_cv_header_stdc=no
5036 rm -f conftest.err conftest.$ac_ext
5038 if test $ac_cv_header_stdc = yes; then
5039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5040 cat >conftest.$ac_ext <<_ACEOF
5041 #line $LINENO "configure"
5042 #include "confdefs.h"
5043 #include <string.h>
5045 _ACEOF
5046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5047 $EGREP "memchr" >/dev/null 2>&1; then
5049 else
5050 ac_cv_header_stdc=no
5052 rm -f conftest*
5056 if test $ac_cv_header_stdc = yes; then
5057 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5058 cat >conftest.$ac_ext <<_ACEOF
5059 #line $LINENO "configure"
5060 #include "confdefs.h"
5061 #include <stdlib.h>
5063 _ACEOF
5064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5065 $EGREP "free" >/dev/null 2>&1; then
5067 else
5068 ac_cv_header_stdc=no
5070 rm -f conftest*
5074 if test $ac_cv_header_stdc = yes; then
5075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5076 if test "$cross_compiling" = yes; then
5078 else
5079 cat >conftest.$ac_ext <<_ACEOF
5080 #line $LINENO "configure"
5081 #include "confdefs.h"
5082 #include <ctype.h>
5083 #if ((' ' & 0x0FF) == 0x020)
5084 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5085 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5086 #else
5087 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5088 || ('j' <= (c) && (c) <= 'r') \
5089 || ('s' <= (c) && (c) <= 'z'))
5090 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5091 #endif
5093 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5095 main ()
5097 int i;
5098 for (i = 0; i < 256; i++)
5099 if (XOR (islower (i), ISLOWER (i))
5100 || toupper (i) != TOUPPER (i))
5101 exit(2);
5102 exit (0);
5104 _ACEOF
5105 rm -f conftest$ac_exeext
5106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5107 (eval $ac_link) 2>&5
5108 ac_status=$?
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 (eval $ac_try) 2>&5
5113 ac_status=$?
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5117 else
5118 echo "$as_me: program exited with status $ac_status" >&5
5119 echo "$as_me: failed program was:" >&5
5120 cat conftest.$ac_ext >&5
5121 ( exit $ac_status )
5122 ac_cv_header_stdc=no
5124 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5128 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5129 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5130 if test $ac_cv_header_stdc = yes; then
5132 cat >>confdefs.h <<\_ACEOF
5133 #define STDC_HEADERS 1
5134 _ACEOF
5138 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5139 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5140 if test "${ac_cv_header_time+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143 cat >conftest.$ac_ext <<_ACEOF
5144 #line $LINENO "configure"
5145 #include "confdefs.h"
5146 #include <sys/types.h>
5147 #include <sys/time.h>
5148 #include <time.h>
5151 main ()
5153 if ((struct tm *) 0)
5154 return 0;
5156 return 0;
5158 _ACEOF
5159 rm -f conftest.$ac_objext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5161 (eval $ac_compile) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try='test -s conftest.$ac_objext'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 (eval $ac_try) 2>&5
5168 ac_status=$?
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; }; then
5171 ac_cv_header_time=yes
5172 else
5173 echo "$as_me: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5175 ac_cv_header_time=no
5177 rm -f conftest.$ac_objext conftest.$ac_ext
5179 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5180 echo "${ECHO_T}$ac_cv_header_time" >&6
5181 if test $ac_cv_header_time = yes; then
5183 cat >>confdefs.h <<\_ACEOF
5184 #define TIME_WITH_SYS_TIME 1
5185 _ACEOF
5189 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5190 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5191 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194 cat >conftest.$ac_ext <<_ACEOF
5195 #line $LINENO "configure"
5196 #include "confdefs.h"
5197 $ac_includes_default
5199 main ()
5201 #ifndef sys_siglist
5202 char *p = (char *) sys_siglist;
5203 #endif
5206 return 0;
5208 _ACEOF
5209 rm -f conftest.$ac_objext
5210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5211 (eval $ac_compile) 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } &&
5215 { ac_try='test -s conftest.$ac_objext'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 (eval $ac_try) 2>&5
5218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; }; then
5221 ac_cv_have_decl_sys_siglist=yes
5222 else
5223 echo "$as_me: failed program was:" >&5
5224 cat conftest.$ac_ext >&5
5225 ac_cv_have_decl_sys_siglist=no
5227 rm -f conftest.$ac_objext conftest.$ac_ext
5229 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5230 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5231 if test $ac_cv_have_decl_sys_siglist = yes; then
5233 cat >>confdefs.h <<_ACEOF
5234 #define HAVE_DECL_SYS_SIGLIST 1
5235 _ACEOF
5238 else
5239 cat >>confdefs.h <<_ACEOF
5240 #define HAVE_DECL_SYS_SIGLIST 0
5241 _ACEOF
5247 if test $ac_cv_have_decl_sys_siglist != yes; then
5248 # For Tru64, at least:
5249 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5250 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5251 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 else
5254 cat >conftest.$ac_ext <<_ACEOF
5255 #line $LINENO "configure"
5256 #include "confdefs.h"
5257 $ac_includes_default
5259 main ()
5261 #ifndef __sys_siglist
5262 char *p = (char *) __sys_siglist;
5263 #endif
5266 return 0;
5268 _ACEOF
5269 rm -f conftest.$ac_objext
5270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5271 (eval $ac_compile) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try='test -s conftest.$ac_objext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 (eval $ac_try) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5281 ac_cv_have_decl___sys_siglist=yes
5282 else
5283 echo "$as_me: failed program was:" >&5
5284 cat conftest.$ac_ext >&5
5285 ac_cv_have_decl___sys_siglist=no
5287 rm -f conftest.$ac_objext conftest.$ac_ext
5289 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5290 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5291 if test $ac_cv_have_decl___sys_siglist = yes; then
5293 cat >>confdefs.h <<_ACEOF
5294 #define HAVE_DECL___SYS_SIGLIST 1
5295 _ACEOF
5298 else
5299 cat >>confdefs.h <<_ACEOF
5300 #define HAVE_DECL___SYS_SIGLIST 0
5301 _ACEOF
5307 if test $ac_cv_have_decl___sys_siglist = yes; then
5309 cat >>confdefs.h <<\_ACEOF
5310 #define sys_siglist __sys_siglist
5311 _ACEOF
5315 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5316 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5317 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320 cat >conftest.$ac_ext <<_ACEOF
5321 #line $LINENO "configure"
5322 #include "confdefs.h"
5323 #include <sys/types.h>
5324 #include <sys/wait.h>
5325 #ifndef WEXITSTATUS
5326 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5327 #endif
5328 #ifndef WIFEXITED
5329 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5330 #endif
5333 main ()
5335 int s;
5336 wait (&s);
5337 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5339 return 0;
5341 _ACEOF
5342 rm -f conftest.$ac_objext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344 (eval $ac_compile) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try='test -s conftest.$ac_objext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 (eval $ac_try) 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_cv_header_sys_wait_h=yes
5355 else
5356 echo "$as_me: failed program was:" >&5
5357 cat conftest.$ac_ext >&5
5358 ac_cv_header_sys_wait_h=no
5360 rm -f conftest.$ac_objext conftest.$ac_ext
5362 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5363 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5364 if test $ac_cv_header_sys_wait_h = yes; then
5366 cat >>confdefs.h <<\_ACEOF
5367 #define HAVE_SYS_WAIT_H 1
5368 _ACEOF
5373 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5374 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5375 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378 cat >conftest.$ac_ext <<_ACEOF
5379 #line $LINENO "configure"
5380 #include "confdefs.h"
5381 #ifdef TIME_WITH_SYS_TIME
5382 #include <sys/time.h>
5383 #include <time.h>
5384 #else
5385 #ifdef HAVE_SYS_TIME_H
5386 #include <sys/time.h>
5387 #else
5388 #include <time.h>
5389 #endif
5390 #endif
5391 #ifdef HAVE_UTIME_H
5392 #include <utime.h>
5393 #endif
5395 main ()
5397 static struct utimbuf x; x.actime = x.modtime;
5399 return 0;
5401 _ACEOF
5402 rm -f conftest.$ac_objext
5403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5404 (eval $ac_compile) 2>&5
5405 ac_status=$?
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } &&
5408 { ac_try='test -s conftest.$ac_objext'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 (eval $ac_try) 2>&5
5411 ac_status=$?
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; }; then
5414 emacs_cv_struct_utimbuf=yes
5415 else
5416 echo "$as_me: failed program was:" >&5
5417 cat conftest.$ac_ext >&5
5418 emacs_cv_struct_utimbuf=no
5420 rm -f conftest.$ac_objext conftest.$ac_ext
5422 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5423 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5424 if test $emacs_cv_struct_utimbuf = yes; then
5426 cat >>confdefs.h <<\_ACEOF
5427 #define HAVE_STRUCT_UTIMBUF 1
5428 _ACEOF
5432 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5433 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5434 if test "${ac_cv_type_signal+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437 cat >conftest.$ac_ext <<_ACEOF
5438 #line $LINENO "configure"
5439 #include "confdefs.h"
5440 #include <sys/types.h>
5441 #include <signal.h>
5442 #ifdef signal
5443 # undef signal
5444 #endif
5445 #ifdef __cplusplus
5446 extern "C" void (*signal (int, void (*)(int)))(int);
5447 #else
5448 void (*signal ()) ();
5449 #endif
5452 main ()
5454 int i;
5456 return 0;
5458 _ACEOF
5459 rm -f conftest.$ac_objext
5460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5461 (eval $ac_compile) 2>&5
5462 ac_status=$?
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } &&
5465 { ac_try='test -s conftest.$ac_objext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 (eval $ac_try) 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5471 ac_cv_type_signal=void
5472 else
5473 echo "$as_me: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5475 ac_cv_type_signal=int
5477 rm -f conftest.$ac_objext conftest.$ac_ext
5479 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5480 echo "${ECHO_T}$ac_cv_type_signal" >&6
5482 cat >>confdefs.h <<_ACEOF
5483 #define RETSIGTYPE $ac_cv_type_signal
5484 _ACEOF
5488 echo "$as_me:$LINENO: checking for speed_t" >&5
5489 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5490 if test "${emacs_cv_speed_t+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 else
5493 cat >conftest.$ac_ext <<_ACEOF
5494 #line $LINENO "configure"
5495 #include "confdefs.h"
5496 #include <termios.h>
5498 main ()
5500 speed_t x = 1;
5502 return 0;
5504 _ACEOF
5505 rm -f conftest.$ac_objext
5506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5507 (eval $ac_compile) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try='test -s conftest.$ac_objext'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; }; then
5517 emacs_cv_speed_t=yes
5518 else
5519 echo "$as_me: failed program was:" >&5
5520 cat conftest.$ac_ext >&5
5521 emacs_cv_speed_t=no
5523 rm -f conftest.$ac_objext conftest.$ac_ext
5525 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5526 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5527 if test $emacs_cv_speed_t = yes; then
5529 cat >>confdefs.h <<\_ACEOF
5530 #define HAVE_SPEED_T 1
5531 _ACEOF
5535 echo "$as_me:$LINENO: checking for struct timeval" >&5
5536 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5537 if test "${emacs_cv_struct_timeval+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 else
5540 cat >conftest.$ac_ext <<_ACEOF
5541 #line $LINENO "configure"
5542 #include "confdefs.h"
5543 #ifdef TIME_WITH_SYS_TIME
5544 #include <sys/time.h>
5545 #include <time.h>
5546 #else
5547 #ifdef HAVE_SYS_TIME_H
5548 #include <sys/time.h>
5549 #else
5550 #include <time.h>
5551 #endif
5552 #endif
5554 main ()
5556 static struct timeval x; x.tv_sec = x.tv_usec;
5558 return 0;
5560 _ACEOF
5561 rm -f conftest.$ac_objext
5562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563 (eval $ac_compile) 2>&5
5564 ac_status=$?
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } &&
5567 { ac_try='test -s conftest.$ac_objext'
5568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569 (eval $ac_try) 2>&5
5570 ac_status=$?
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); }; }; then
5573 emacs_cv_struct_timeval=yes
5574 else
5575 echo "$as_me: failed program was:" >&5
5576 cat conftest.$ac_ext >&5
5577 emacs_cv_struct_timeval=no
5579 rm -f conftest.$ac_objext conftest.$ac_ext
5581 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5582 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5583 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5584 if test $emacs_cv_struct_timeval = yes; then
5586 cat >>confdefs.h <<\_ACEOF
5587 #define HAVE_TIMEVAL 1
5588 _ACEOF
5592 echo "$as_me:$LINENO: checking for struct exception" >&5
5593 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5594 if test "${emacs_cv_struct_exception+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597 cat >conftest.$ac_ext <<_ACEOF
5598 #line $LINENO "configure"
5599 #include "confdefs.h"
5600 #include <math.h>
5602 main ()
5604 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5606 return 0;
5608 _ACEOF
5609 rm -f conftest.$ac_objext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611 (eval $ac_compile) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 (eval $ac_try) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 emacs_cv_struct_exception=yes
5622 else
5623 echo "$as_me: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5625 emacs_cv_struct_exception=no
5627 rm -f conftest.$ac_objext conftest.$ac_ext
5629 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5630 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5631 HAVE_EXCEPTION=$emacs_cv_struct_exception
5632 if test $emacs_cv_struct_exception != yes; then
5634 cat >>confdefs.h <<\_ACEOF
5635 #define NO_MATHERR 1
5636 _ACEOF
5640 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5641 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5642 if test "${ac_cv_struct_tm+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645 cat >conftest.$ac_ext <<_ACEOF
5646 #line $LINENO "configure"
5647 #include "confdefs.h"
5648 #include <sys/types.h>
5649 #include <time.h>
5652 main ()
5654 struct tm *tp; tp->tm_sec;
5656 return 0;
5658 _ACEOF
5659 rm -f conftest.$ac_objext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661 (eval $ac_compile) 2>&5
5662 ac_status=$?
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } &&
5665 { ac_try='test -s conftest.$ac_objext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 (eval $ac_try) 2>&5
5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_struct_tm=time.h
5672 else
5673 echo "$as_me: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5675 ac_cv_struct_tm=sys/time.h
5677 rm -f conftest.$ac_objext conftest.$ac_ext
5679 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5680 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5681 if test $ac_cv_struct_tm = sys/time.h; then
5683 cat >>confdefs.h <<\_ACEOF
5684 #define TM_IN_SYS_TIME 1
5685 _ACEOF
5689 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5690 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5691 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694 cat >conftest.$ac_ext <<_ACEOF
5695 #line $LINENO "configure"
5696 #include "confdefs.h"
5697 #include <sys/types.h>
5698 #include <$ac_cv_struct_tm>
5702 main ()
5704 static struct tm ac_aggr;
5705 if (ac_aggr.tm_zone)
5706 return 0;
5708 return 0;
5710 _ACEOF
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_cv_member_struct_tm_tm_zone=yes
5724 else
5725 echo "$as_me: failed program was:" >&5
5726 cat conftest.$ac_ext >&5
5727 cat >conftest.$ac_ext <<_ACEOF
5728 #line $LINENO "configure"
5729 #include "confdefs.h"
5730 #include <sys/types.h>
5731 #include <$ac_cv_struct_tm>
5735 main ()
5737 static struct tm ac_aggr;
5738 if (sizeof ac_aggr.tm_zone)
5739 return 0;
5741 return 0;
5743 _ACEOF
5744 rm -f conftest.$ac_objext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746 (eval $ac_compile) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } &&
5750 { ac_try='test -s conftest.$ac_objext'
5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 (eval $ac_try) 2>&5
5753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; }; then
5756 ac_cv_member_struct_tm_tm_zone=yes
5757 else
5758 echo "$as_me: failed program was:" >&5
5759 cat conftest.$ac_ext >&5
5760 ac_cv_member_struct_tm_tm_zone=no
5762 rm -f conftest.$ac_objext conftest.$ac_ext
5764 rm -f conftest.$ac_objext conftest.$ac_ext
5766 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5767 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5768 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5770 cat >>confdefs.h <<_ACEOF
5771 #define HAVE_STRUCT_TM_TM_ZONE 1
5772 _ACEOF
5777 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5779 cat >>confdefs.h <<\_ACEOF
5780 #define HAVE_TM_ZONE 1
5781 _ACEOF
5783 else
5784 echo "$as_me:$LINENO: checking for tzname" >&5
5785 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5786 if test "${ac_cv_var_tzname+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789 cat >conftest.$ac_ext <<_ACEOF
5790 #line $LINENO "configure"
5791 #include "confdefs.h"
5792 #include <time.h>
5793 #ifndef tzname /* For SGI. */
5794 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5795 #endif
5798 main ()
5800 atoi(*tzname);
5802 return 0;
5804 _ACEOF
5805 rm -f conftest.$ac_objext conftest$ac_exeext
5806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5807 (eval $ac_link) 2>&5
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -s conftest$ac_exeext'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 (eval $ac_try) 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5817 ac_cv_var_tzname=yes
5818 else
5819 echo "$as_me: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5821 ac_cv_var_tzname=no
5823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5825 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5826 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5827 if test $ac_cv_var_tzname = yes; then
5829 cat >>confdefs.h <<\_ACEOF
5830 #define HAVE_TZNAME 1
5831 _ACEOF
5836 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
5837 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
5838 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841 cat >conftest.$ac_ext <<_ACEOF
5842 #line $LINENO "configure"
5843 #include "confdefs.h"
5844 #include <time.h>
5847 main ()
5849 static struct tm ac_aggr;
5850 if (ac_aggr.tm_gmtoff)
5851 return 0;
5853 return 0;
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -s conftest.$ac_objext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 ac_cv_member_struct_tm_tm_gmtoff=yes
5869 else
5870 echo "$as_me: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5872 cat >conftest.$ac_ext <<_ACEOF
5873 #line $LINENO "configure"
5874 #include "confdefs.h"
5875 #include <time.h>
5878 main ()
5880 static struct tm ac_aggr;
5881 if (sizeof ac_aggr.tm_gmtoff)
5882 return 0;
5884 return 0;
5886 _ACEOF
5887 rm -f conftest.$ac_objext
5888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5889 (eval $ac_compile) 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } &&
5893 { ac_try='test -s conftest.$ac_objext'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 (eval $ac_try) 2>&5
5896 ac_status=$?
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; }; then
5899 ac_cv_member_struct_tm_tm_gmtoff=yes
5900 else
5901 echo "$as_me: failed program was:" >&5
5902 cat conftest.$ac_ext >&5
5903 ac_cv_member_struct_tm_tm_gmtoff=no
5905 rm -f conftest.$ac_objext conftest.$ac_ext
5907 rm -f conftest.$ac_objext conftest.$ac_ext
5909 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
5910 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
5911 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
5913 cat >>confdefs.h <<\_ACEOF
5914 #define HAVE_TM_GMTOFF 1
5915 _ACEOF
5921 echo "$as_me:$LINENO: checking for function prototypes" >&5
5922 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5923 if test "$ac_cv_prog_cc_stdc" != no; then
5924 echo "$as_me:$LINENO: result: yes" >&5
5925 echo "${ECHO_T}yes" >&6
5927 cat >>confdefs.h <<\_ACEOF
5928 #define PROTOTYPES 1
5929 _ACEOF
5932 cat >>confdefs.h <<\_ACEOF
5933 #define __PROTOTYPES 1
5934 _ACEOF
5936 else
5937 echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6
5941 echo "$as_me:$LINENO: checking for working volatile" >&5
5942 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5943 if test "${ac_cv_c_volatile+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946 cat >conftest.$ac_ext <<_ACEOF
5947 #line $LINENO "configure"
5948 #include "confdefs.h"
5951 main ()
5954 volatile int x;
5955 int * volatile y;
5957 return 0;
5959 _ACEOF
5960 rm -f conftest.$ac_objext
5961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5962 (eval $ac_compile) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } &&
5966 { ac_try='test -s conftest.$ac_objext'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5972 ac_cv_c_volatile=yes
5973 else
5974 echo "$as_me: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5976 ac_cv_c_volatile=no
5978 rm -f conftest.$ac_objext conftest.$ac_ext
5980 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5981 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5982 if test $ac_cv_c_volatile = no; then
5984 cat >>confdefs.h <<\_ACEOF
5985 #define volatile
5986 _ACEOF
5990 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5991 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5992 if test "${ac_cv_c_const+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 cat >conftest.$ac_ext <<_ACEOF
5996 #line $LINENO "configure"
5997 #include "confdefs.h"
6000 main ()
6002 /* FIXME: Include the comments suggested by Paul. */
6003 #ifndef __cplusplus
6004 /* Ultrix mips cc rejects this. */
6005 typedef int charset[2];
6006 const charset x;
6007 /* SunOS 4.1.1 cc rejects this. */
6008 char const *const *ccp;
6009 char **p;
6010 /* NEC SVR4.0.2 mips cc rejects this. */
6011 struct point {int x, y;};
6012 static struct point const zero = {0,0};
6013 /* AIX XL C 1.02.0.0 rejects this.
6014 It does not let you subtract one const X* pointer from another in
6015 an arm of an if-expression whose if-part is not a constant
6016 expression */
6017 const char *g = "string";
6018 ccp = &g + (g ? g-g : 0);
6019 /* HPUX 7.0 cc rejects these. */
6020 ++ccp;
6021 p = (char**) ccp;
6022 ccp = (char const *const *) p;
6023 { /* SCO 3.2v4 cc rejects this. */
6024 char *t;
6025 char const *s = 0 ? (char *) 0 : (char const *) 0;
6027 *t++ = 0;
6029 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6030 int x[] = {25, 17};
6031 const int *foo = &x[0];
6032 ++foo;
6034 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6035 typedef const int *iptr;
6036 iptr p = 0;
6037 ++p;
6039 { /* AIX XL C 1.02.0.0 rejects this saying
6040 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6041 struct s { int j; const int *ap[3]; };
6042 struct s *b; b->j = 5;
6044 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6045 const int foo = 10;
6047 #endif
6050 return 0;
6052 _ACEOF
6053 rm -f conftest.$ac_objext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055 (eval $ac_compile) 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } &&
6059 { ac_try='test -s conftest.$ac_objext'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 (eval $ac_try) 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6065 ac_cv_c_const=yes
6066 else
6067 echo "$as_me: failed program was:" >&5
6068 cat conftest.$ac_ext >&5
6069 ac_cv_c_const=no
6071 rm -f conftest.$ac_objext conftest.$ac_ext
6073 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6074 echo "${ECHO_T}$ac_cv_c_const" >&6
6075 if test $ac_cv_c_const = no; then
6077 cat >>confdefs.h <<\_ACEOF
6078 #define const
6079 _ACEOF
6083 echo "$as_me:$LINENO: checking for void * support" >&5
6084 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6085 if test "${emacs_cv_void_star+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088 cat >conftest.$ac_ext <<_ACEOF
6089 #line $LINENO "configure"
6090 #include "confdefs.h"
6093 main ()
6095 void * foo;
6097 return 0;
6099 _ACEOF
6100 rm -f conftest.$ac_objext
6101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102 (eval $ac_compile) 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } &&
6106 { ac_try='test -s conftest.$ac_objext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 (eval $ac_try) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 emacs_cv_void_star=yes
6113 else
6114 echo "$as_me: failed program was:" >&5
6115 cat conftest.$ac_ext >&5
6116 emacs_cv_void_star=no
6118 rm -f conftest.$ac_objext conftest.$ac_ext
6120 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6121 echo "${ECHO_T}$emacs_cv_void_star" >&6
6122 if test $emacs_cv_void_star = yes; then
6123 cat >>confdefs.h <<\_ACEOF
6124 #define POINTER_TYPE void
6125 _ACEOF
6127 else
6128 cat >>confdefs.h <<\_ACEOF
6129 #define POINTER_TYPE char
6130 _ACEOF
6136 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
6137 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
6138 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6139 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142 cat >conftest.make <<\_ACEOF
6143 all:
6144 @echo 'ac_maketemp="${MAKE}"'
6145 _ACEOF
6146 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6147 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6148 if test -n "$ac_maketemp"; then
6149 eval ac_cv_prog_make_${ac_make}_set=yes
6150 else
6151 eval ac_cv_prog_make_${ac_make}_set=no
6153 rm -f conftest.make
6155 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6156 echo "$as_me:$LINENO: result: yes" >&5
6157 echo "${ECHO_T}yes" >&6
6158 SET_MAKE=
6159 else
6160 echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6
6162 SET_MAKE="MAKE=${MAKE-make}"
6166 echo "$as_me:$LINENO: checking for long file names" >&5
6167 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6168 if test "${ac_cv_sys_long_file_names+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171 ac_cv_sys_long_file_names=yes
6172 # Test for long file names in all the places we know might matter:
6173 # . the current directory, where building will happen
6174 # $prefix/lib where we will be installing things
6175 # $exec_prefix/lib likewise
6176 # eval it to expand exec_prefix.
6177 # $TMPDIR if set, where it might want to write temporary files
6178 # if $TMPDIR is not set:
6179 # /tmp where it might want to write temporary files
6180 # /var/tmp likewise
6181 # /usr/tmp likewise
6182 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6183 ac_tmpdirs=$TMPDIR
6184 else
6185 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6187 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6188 test -d $ac_dir || continue
6189 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6190 ac_xdir=$ac_dir/cf$$
6191 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6192 ac_tf1=$ac_xdir/conftest9012345
6193 ac_tf2=$ac_xdir/conftest9012346
6194 (echo 1 >$ac_tf1) 2>/dev/null
6195 (echo 2 >$ac_tf2) 2>/dev/null
6196 ac_val=`cat $ac_tf1 2>/dev/null`
6197 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6198 ac_cv_sys_long_file_names=no
6199 rm -rf $ac_xdir 2>/dev/null
6200 break
6202 rm -rf $ac_xdir 2>/dev/null
6203 done
6205 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6206 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6207 if test $ac_cv_sys_long_file_names = yes; then
6209 cat >>confdefs.h <<\_ACEOF
6210 #define HAVE_LONG_FILE_NAMES 1
6211 _ACEOF
6216 #### Choose a window system.
6218 echo "$as_me:$LINENO: checking for X" >&5
6219 echo $ECHO_N "checking for X... $ECHO_C" >&6
6222 # Check whether --with-x or --without-x was given.
6223 if test "${with_x+set}" = set; then
6224 withval="$with_x"
6227 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6228 if test "x$with_x" = xno; then
6229 # The user explicitly disabled X.
6230 have_x=disabled
6231 else
6232 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6233 # Both variables are already set.
6234 have_x=yes
6235 else
6236 if test "${ac_cv_have_x+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239 # One or both of the vars are not set, and there is no cached value.
6240 ac_x_includes=no ac_x_libraries=no
6241 rm -fr conftest.dir
6242 if mkdir conftest.dir; then
6243 cd conftest.dir
6244 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6245 cat >Imakefile <<'_ACEOF'
6246 acfindx:
6247 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6248 _ACEOF
6249 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6250 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6251 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6252 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6253 for ac_extension in a so sl; do
6254 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6255 test -f $ac_im_libdir/libX11.$ac_extension; then
6256 ac_im_usrlibdir=$ac_im_libdir; break
6258 done
6259 # Screen out bogus values from the imake configuration. They are
6260 # bogus both because they are the default anyway, and because
6261 # using them would break gcc on systems where it needs fixed includes.
6262 case $ac_im_incroot in
6263 /usr/include) ;;
6264 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6265 esac
6266 case $ac_im_usrlibdir in
6267 /usr/lib | /lib) ;;
6268 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6269 esac
6271 cd ..
6272 rm -fr conftest.dir
6275 # Standard set of common directories for X headers.
6276 # Check X11 before X11Rn because it is often a symlink to the current release.
6277 ac_x_header_dirs='
6278 /usr/X11/include
6279 /usr/X11R6/include
6280 /usr/X11R5/include
6281 /usr/X11R4/include
6283 /usr/include/X11
6284 /usr/include/X11R6
6285 /usr/include/X11R5
6286 /usr/include/X11R4
6288 /usr/local/X11/include
6289 /usr/local/X11R6/include
6290 /usr/local/X11R5/include
6291 /usr/local/X11R4/include
6293 /usr/local/include/X11
6294 /usr/local/include/X11R6
6295 /usr/local/include/X11R5
6296 /usr/local/include/X11R4
6298 /usr/X386/include
6299 /usr/x386/include
6300 /usr/XFree86/include/X11
6302 /usr/include
6303 /usr/local/include
6304 /usr/unsupported/include
6305 /usr/athena/include
6306 /usr/local/x11r5/include
6307 /usr/lpp/Xamples/include
6309 /usr/openwin/include
6310 /usr/openwin/share/include'
6312 if test "$ac_x_includes" = no; then
6313 # Guess where to find include files, by looking for Intrinsic.h.
6314 # First, try using that file with no special directory specified.
6315 cat >conftest.$ac_ext <<_ACEOF
6316 #line $LINENO "configure"
6317 #include "confdefs.h"
6318 #include <X11/Intrinsic.h>
6319 _ACEOF
6320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } >/dev/null; then
6328 if test -s conftest.err; then
6329 ac_cpp_err=$ac_c_preproc_warn_flag
6330 else
6331 ac_cpp_err=
6333 else
6334 ac_cpp_err=yes
6336 if test -z "$ac_cpp_err"; then
6337 # We can compile using X headers with no special include directory.
6338 ac_x_includes=
6339 else
6340 echo "$as_me: failed program was:" >&5
6341 cat conftest.$ac_ext >&5
6342 for ac_dir in $ac_x_header_dirs; do
6343 if test -r "$ac_dir/X11/Intrinsic.h"; then
6344 ac_x_includes=$ac_dir
6345 break
6347 done
6349 rm -f conftest.err conftest.$ac_ext
6350 fi # $ac_x_includes = no
6352 if test "$ac_x_libraries" = no; then
6353 # Check for the libraries.
6354 # See if we find them without any special options.
6355 # Don't add to $LIBS permanently.
6356 ac_save_LIBS=$LIBS
6357 LIBS="-lXt $LIBS"
6358 cat >conftest.$ac_ext <<_ACEOF
6359 #line $LINENO "configure"
6360 #include "confdefs.h"
6361 #include <X11/Intrinsic.h>
6363 main ()
6365 XtMalloc (0)
6367 return 0;
6369 _ACEOF
6370 rm -f conftest.$ac_objext conftest$ac_exeext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6372 (eval $ac_link) 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try='test -s conftest$ac_exeext'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 (eval $ac_try) 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6382 LIBS=$ac_save_LIBS
6383 # We can link X programs with no special library path.
6384 ac_x_libraries=
6385 else
6386 echo "$as_me: failed program was:" >&5
6387 cat conftest.$ac_ext >&5
6388 LIBS=$ac_save_LIBS
6389 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6391 # Don't even attempt the hair of trying to link an X program!
6392 for ac_extension in a so sl; do
6393 if test -r $ac_dir/libXt.$ac_extension; then
6394 ac_x_libraries=$ac_dir
6395 break 2
6397 done
6398 done
6400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6401 fi # $ac_x_libraries = no
6403 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6404 # Didn't find X anywhere. Cache the known absence of X.
6405 ac_cv_have_x="have_x=no"
6406 else
6407 # Record where we found X for the cache.
6408 ac_cv_have_x="have_x=yes \
6409 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6414 eval "$ac_cv_have_x"
6415 fi # $with_x != no
6417 if test "$have_x" != yes; then
6418 echo "$as_me:$LINENO: result: $have_x" >&5
6419 echo "${ECHO_T}$have_x" >&6
6420 no_x=yes
6421 else
6422 # If each of the values was on the command line, it overrides each guess.
6423 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6424 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6425 # Update the cache value to reflect the command line values.
6426 ac_cv_have_x="have_x=yes \
6427 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6428 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6429 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6432 if test "$no_x" = yes; then
6433 window_system=none
6434 else
6435 window_system=x11
6438 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6439 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6440 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6441 x_default_search_path=""
6442 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6443 x_search_path="\
6444 ${x_library}/X11/%L/%T/%N%C%S:\
6445 ${x_library}/X11/%l/%T/%N%C%S:\
6446 ${x_library}/X11/%T/%N%C%S:\
6447 ${x_library}/X11/%L/%T/%N%S:\
6448 ${x_library}/X11/%l/%T/%N%S:\
6449 ${x_library}/X11/%T/%N%S"
6450 if test x"${x_default_search_path}" = x; then
6451 x_default_search_path=${x_search_path}
6452 else
6453 x_default_search_path="${x_search_path}:${x_default_search_path}"
6455 done
6457 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6458 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6461 if test x"${x_includes}" = x; then
6462 bitmapdir=/usr/include/X11/bitmaps
6463 else
6464 # accumulate include directories that have X11 bitmap subdirectories
6465 bmd_acc="dummyval"
6466 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6467 if test -d "${bmd}/X11/bitmaps"; then
6468 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6470 if test -d "${bmd}/bitmaps"; then
6471 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6473 done
6474 if test ${bmd_acc} != "dummyval"; then
6475 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6479 case "${window_system}" in
6480 x11 )
6481 HAVE_X_WINDOWS=yes
6482 HAVE_X11=yes
6483 case "${with_x_toolkit}" in
6484 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6485 motif ) USE_X_TOOLKIT=MOTIF ;;
6486 gtk ) with_gtk=yes
6487 USE_X_TOOLKIT=none ;;
6488 no ) USE_X_TOOLKIT=none ;;
6489 * ) USE_X_TOOLKIT=maybe ;;
6490 esac
6492 none )
6493 HAVE_X_WINDOWS=no
6494 HAVE_X11=no
6495 USE_X_TOOLKIT=none
6497 esac
6499 ### If we're using X11, we should use the X menu package.
6500 HAVE_MENUS=no
6501 case ${HAVE_X11} in
6502 yes ) HAVE_MENUS=yes ;;
6503 esac
6505 if test "${opsys}" = "hpux9"; then
6506 case "${x_libraries}" in
6507 *X11R4* )
6508 opsysfile="s/hpux9-x11r4.h"
6510 esac
6513 if test "${opsys}" = "hpux9shr"; then
6514 case "${x_libraries}" in
6515 *X11R4* )
6516 opsysfile="s/hpux9shxr4.h"
6518 esac
6521 ### Compute the unexec source name from the object name.
6522 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6524 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6525 # Assume not, until told otherwise.
6526 GNU_MALLOC=yes
6527 doug_lea_malloc=yes
6528 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6529 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6530 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533 cat >conftest.$ac_ext <<_ACEOF
6534 #line $LINENO "configure"
6535 #include "confdefs.h"
6536 /* System header to define __stub macros and hopefully few prototypes,
6537 which can conflict with char malloc_get_state (); below. */
6538 #include <assert.h>
6539 /* Override any gcc2 internal prototype to avoid an error. */
6540 #ifdef __cplusplus
6541 extern "C"
6542 #endif
6543 /* We use char because int might match the return type of a gcc2
6544 builtin and then its argument prototype would still apply. */
6545 char malloc_get_state ();
6546 char (*f) ();
6549 main ()
6551 /* The GNU C library defines this for functions which it implements
6552 to always fail with ENOSYS. Some functions are actually named
6553 something starting with __ and the normal name is an alias. */
6554 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6555 choke me
6556 #else
6557 f = malloc_get_state;
6558 #endif
6561 return 0;
6563 _ACEOF
6564 rm -f conftest.$ac_objext conftest$ac_exeext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6566 (eval $ac_link) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } &&
6570 { ac_try='test -s conftest$ac_exeext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 (eval $ac_try) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6576 ac_cv_func_malloc_get_state=yes
6577 else
6578 echo "$as_me: failed program was:" >&5
6579 cat conftest.$ac_ext >&5
6580 ac_cv_func_malloc_get_state=no
6582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6584 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6585 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6586 if test $ac_cv_func_malloc_get_state = yes; then
6588 else
6589 doug_lea_malloc=no
6592 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6593 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6594 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597 cat >conftest.$ac_ext <<_ACEOF
6598 #line $LINENO "configure"
6599 #include "confdefs.h"
6600 /* System header to define __stub macros and hopefully few prototypes,
6601 which can conflict with char malloc_set_state (); below. */
6602 #include <assert.h>
6603 /* Override any gcc2 internal prototype to avoid an error. */
6604 #ifdef __cplusplus
6605 extern "C"
6606 #endif
6607 /* We use char because int might match the return type of a gcc2
6608 builtin and then its argument prototype would still apply. */
6609 char malloc_set_state ();
6610 char (*f) ();
6613 main ()
6615 /* The GNU C library defines this for functions which it implements
6616 to always fail with ENOSYS. Some functions are actually named
6617 something starting with __ and the normal name is an alias. */
6618 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6619 choke me
6620 #else
6621 f = malloc_set_state;
6622 #endif
6625 return 0;
6627 _ACEOF
6628 rm -f conftest.$ac_objext conftest$ac_exeext
6629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6630 (eval $ac_link) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } &&
6634 { ac_try='test -s conftest$ac_exeext'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 (eval $ac_try) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_cv_func_malloc_set_state=yes
6641 else
6642 echo "$as_me: failed program was:" >&5
6643 cat conftest.$ac_ext >&5
6644 ac_cv_func_malloc_set_state=no
6646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6648 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6649 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6650 if test $ac_cv_func_malloc_set_state = yes; then
6652 else
6653 doug_lea_malloc=no
6656 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
6657 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
6658 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661 cat >conftest.$ac_ext <<_ACEOF
6662 #line $LINENO "configure"
6663 #include "confdefs.h"
6664 extern void (* __after_morecore_hook)();
6666 main ()
6668 __after_morecore_hook = 0
6670 return 0;
6672 _ACEOF
6673 rm -f conftest.$ac_objext conftest$ac_exeext
6674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6675 (eval $ac_link) 2>&5
6676 ac_status=$?
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } &&
6679 { ac_try='test -s conftest$ac_exeext'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 (eval $ac_try) 2>&5
6682 ac_status=$?
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
6685 emacs_cv_var___after_morecore_hook=yes
6686 else
6687 echo "$as_me: failed program was:" >&5
6688 cat conftest.$ac_ext >&5
6689 emacs_cv_var___after_morecore_hook=no
6691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6693 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
6694 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
6695 if test $emacs_cv_var___after_morecore_hook = no; then
6696 doug_lea_malloc=no
6698 if test "${system_malloc}" = "yes"; then
6699 GNU_MALLOC=no
6700 GNU_MALLOC_reason="
6701 (The GNU allocators don't work with this system configuration.)"
6703 if test "$doug_lea_malloc" = "yes" ; then
6704 if test "$GNU_MALLOC" = yes ; then
6705 GNU_MALLOC_reason="
6706 (Using Doug Lea's new malloc from the GNU C Library.)"
6709 cat >>confdefs.h <<\_ACEOF
6710 #define DOUG_LEA_MALLOC 1
6711 _ACEOF
6715 if test x"${REL_ALLOC}" = x; then
6716 REL_ALLOC=${GNU_MALLOC}
6722 for ac_header in stdlib.h unistd.h
6724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6726 echo "$as_me:$LINENO: checking for $ac_header" >&5
6727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6733 else
6734 # Is the header compilable?
6735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6737 cat >conftest.$ac_ext <<_ACEOF
6738 #line $LINENO "configure"
6739 #include "confdefs.h"
6740 $ac_includes_default
6741 #include <$ac_header>
6742 _ACEOF
6743 rm -f conftest.$ac_objext
6744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6745 (eval $ac_compile) 2>&5
6746 ac_status=$?
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -s conftest.$ac_objext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 (eval $ac_try) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6755 ac_header_compiler=yes
6756 else
6757 echo "$as_me: failed program was:" >&5
6758 cat conftest.$ac_ext >&5
6759 ac_header_compiler=no
6761 rm -f conftest.$ac_objext conftest.$ac_ext
6762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6763 echo "${ECHO_T}$ac_header_compiler" >&6
6765 # Is the header present?
6766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6768 cat >conftest.$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6770 #include "confdefs.h"
6771 #include <$ac_header>
6772 _ACEOF
6773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6775 ac_status=$?
6776 grep -v '^ *+' conftest.er1 >conftest.err
6777 rm -f conftest.er1
6778 cat conftest.err >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } >/dev/null; then
6781 if test -s conftest.err; then
6782 ac_cpp_err=$ac_c_preproc_warn_flag
6783 else
6784 ac_cpp_err=
6786 else
6787 ac_cpp_err=yes
6789 if test -z "$ac_cpp_err"; then
6790 ac_header_preproc=yes
6791 else
6792 echo "$as_me: failed program was:" >&5
6793 cat conftest.$ac_ext >&5
6794 ac_header_preproc=no
6796 rm -f conftest.err conftest.$ac_ext
6797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6798 echo "${ECHO_T}$ac_header_preproc" >&6
6800 # So? What about this header?
6801 case $ac_header_compiler:$ac_header_preproc in
6802 yes:no )
6803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6807 no:yes )
6808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6814 esac
6815 echo "$as_me:$LINENO: checking for $ac_header" >&5
6816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820 eval "$as_ac_Header=$ac_header_preproc"
6822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6827 cat >>confdefs.h <<_ACEOF
6828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6829 _ACEOF
6833 done
6836 for ac_func in getpagesize
6838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6839 echo "$as_me:$LINENO: checking for $ac_func" >&5
6840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6841 if eval "test \"\${$as_ac_var+set}\" = set"; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844 cat >conftest.$ac_ext <<_ACEOF
6845 #line $LINENO "configure"
6846 #include "confdefs.h"
6847 /* System header to define __stub macros and hopefully few prototypes,
6848 which can conflict with char $ac_func (); below. */
6849 #include <assert.h>
6850 /* Override any gcc2 internal prototype to avoid an error. */
6851 #ifdef __cplusplus
6852 extern "C"
6853 #endif
6854 /* We use char because int might match the return type of a gcc2
6855 builtin and then its argument prototype would still apply. */
6856 char $ac_func ();
6857 char (*f) ();
6860 main ()
6862 /* The GNU C library defines this for functions which it implements
6863 to always fail with ENOSYS. Some functions are actually named
6864 something starting with __ and the normal name is an alias. */
6865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6866 choke me
6867 #else
6868 f = $ac_func;
6869 #endif
6872 return 0;
6874 _ACEOF
6875 rm -f conftest.$ac_objext conftest$ac_exeext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877 (eval $ac_link) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -s conftest$ac_exeext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 eval "$as_ac_var=yes"
6888 else
6889 echo "$as_me: failed program was:" >&5
6890 cat conftest.$ac_ext >&5
6891 eval "$as_ac_var=no"
6893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6897 if test `eval echo '${'$as_ac_var'}'` = yes; then
6898 cat >>confdefs.h <<_ACEOF
6899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6900 _ACEOF
6903 done
6905 echo "$as_me:$LINENO: checking for working mmap" >&5
6906 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6907 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 else
6910 if test "$cross_compiling" = yes; then
6911 ac_cv_func_mmap_fixed_mapped=no
6912 else
6913 cat >conftest.$ac_ext <<_ACEOF
6914 #line $LINENO "configure"
6915 #include "confdefs.h"
6916 $ac_includes_default
6917 /* malloc might have been renamed as rpl_malloc. */
6918 #undef malloc
6920 /* Thanks to Mike Haertel and Jim Avera for this test.
6921 Here is a matrix of mmap possibilities:
6922 mmap private not fixed
6923 mmap private fixed at somewhere currently unmapped
6924 mmap private fixed at somewhere already mapped
6925 mmap shared not fixed
6926 mmap shared fixed at somewhere currently unmapped
6927 mmap shared fixed at somewhere already mapped
6928 For private mappings, we should verify that changes cannot be read()
6929 back from the file, nor mmap's back from the file at a different
6930 address. (There have been systems where private was not correctly
6931 implemented like the infamous i386 svr4.0, and systems where the
6932 VM page cache was not coherent with the file system buffer cache
6933 like early versions of FreeBSD and possibly contemporary NetBSD.)
6934 For shared mappings, we should conversely verify that changes get
6935 propagated back to all the places they're supposed to be.
6937 Grep wants private fixed already mapped.
6938 The main things grep needs to know about mmap are:
6939 * does it exist and is it safe to write into the mmap'd area
6940 * how to use it (BSD variants) */
6942 #include <fcntl.h>
6943 #include <sys/mman.h>
6945 #if !STDC_HEADERS && !HAVE_STDLIB_H
6946 char *malloc ();
6947 #endif
6949 /* This mess was copied from the GNU getpagesize.h. */
6950 #if !HAVE_GETPAGESIZE
6951 /* Assume that all systems that can run configure have sys/param.h. */
6952 # if !HAVE_SYS_PARAM_H
6953 # define HAVE_SYS_PARAM_H 1
6954 # endif
6956 # ifdef _SC_PAGESIZE
6957 # define getpagesize() sysconf(_SC_PAGESIZE)
6958 # else /* no _SC_PAGESIZE */
6959 # if HAVE_SYS_PARAM_H
6960 # include <sys/param.h>
6961 # ifdef EXEC_PAGESIZE
6962 # define getpagesize() EXEC_PAGESIZE
6963 # else /* no EXEC_PAGESIZE */
6964 # ifdef NBPG
6965 # define getpagesize() NBPG * CLSIZE
6966 # ifndef CLSIZE
6967 # define CLSIZE 1
6968 # endif /* no CLSIZE */
6969 # else /* no NBPG */
6970 # ifdef NBPC
6971 # define getpagesize() NBPC
6972 # else /* no NBPC */
6973 # ifdef PAGESIZE
6974 # define getpagesize() PAGESIZE
6975 # endif /* PAGESIZE */
6976 # endif /* no NBPC */
6977 # endif /* no NBPG */
6978 # endif /* no EXEC_PAGESIZE */
6979 # else /* no HAVE_SYS_PARAM_H */
6980 # define getpagesize() 8192 /* punt totally */
6981 # endif /* no HAVE_SYS_PARAM_H */
6982 # endif /* no _SC_PAGESIZE */
6984 #endif /* no HAVE_GETPAGESIZE */
6987 main ()
6989 char *data, *data2, *data3;
6990 int i, pagesize;
6991 int fd;
6993 pagesize = getpagesize ();
6995 /* First, make a file with some known garbage in it. */
6996 data = (char *) malloc (pagesize);
6997 if (!data)
6998 exit (1);
6999 for (i = 0; i < pagesize; ++i)
7000 *(data + i) = rand ();
7001 umask (0);
7002 fd = creat ("conftest.mmap", 0600);
7003 if (fd < 0)
7004 exit (1);
7005 if (write (fd, data, pagesize) != pagesize)
7006 exit (1);
7007 close (fd);
7009 /* Next, try to mmap the file at a fixed address which already has
7010 something else allocated at it. If we can, also make sure that
7011 we see the same garbage. */
7012 fd = open ("conftest.mmap", O_RDWR);
7013 if (fd < 0)
7014 exit (1);
7015 data2 = (char *) malloc (2 * pagesize);
7016 if (!data2)
7017 exit (1);
7018 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7019 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7020 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7021 exit (1);
7022 for (i = 0; i < pagesize; ++i)
7023 if (*(data + i) != *(data2 + i))
7024 exit (1);
7026 /* Finally, make sure that changes to the mapped area do not
7027 percolate back to the file as seen by read(). (This is a bug on
7028 some variants of i386 svr4.0.) */
7029 for (i = 0; i < pagesize; ++i)
7030 *(data2 + i) = *(data2 + i) + 1;
7031 data3 = (char *) malloc (pagesize);
7032 if (!data3)
7033 exit (1);
7034 if (read (fd, data3, pagesize) != pagesize)
7035 exit (1);
7036 for (i = 0; i < pagesize; ++i)
7037 if (*(data + i) != *(data3 + i))
7038 exit (1);
7039 close (fd);
7040 exit (0);
7042 _ACEOF
7043 rm -f conftest$ac_exeext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7045 (eval $ac_link) 2>&5
7046 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 (eval $ac_try) 2>&5
7051 ac_status=$?
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; }; then
7054 ac_cv_func_mmap_fixed_mapped=yes
7055 else
7056 echo "$as_me: program exited with status $ac_status" >&5
7057 echo "$as_me: failed program was:" >&5
7058 cat conftest.$ac_ext >&5
7059 ( exit $ac_status )
7060 ac_cv_func_mmap_fixed_mapped=no
7062 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7065 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7066 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7067 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7069 cat >>confdefs.h <<\_ACEOF
7070 #define HAVE_MMAP 1
7071 _ACEOF
7074 rm -f conftest.mmap
7076 if test $use_mmap_for_buffers = yes; then
7077 REL_ALLOC=no
7080 LIBS="$libsrc_libs $LIBS"
7083 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7084 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7085 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088 ac_check_lib_save_LIBS=$LIBS
7089 LIBS="-ldnet $LIBS"
7090 cat >conftest.$ac_ext <<_ACEOF
7091 #line $LINENO "configure"
7092 #include "confdefs.h"
7094 /* Override any gcc2 internal prototype to avoid an error. */
7095 #ifdef __cplusplus
7096 extern "C"
7097 #endif
7098 /* We use char because int might match the return type of a gcc2
7099 builtin and then its argument prototype would still apply. */
7100 char dnet_ntoa ();
7102 main ()
7104 dnet_ntoa ();
7106 return 0;
7108 _ACEOF
7109 rm -f conftest.$ac_objext conftest$ac_exeext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7111 (eval $ac_link) 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try='test -s conftest$ac_exeext'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
7121 ac_cv_lib_dnet_dnet_ntoa=yes
7122 else
7123 echo "$as_me: failed program was:" >&5
7124 cat conftest.$ac_ext >&5
7125 ac_cv_lib_dnet_dnet_ntoa=no
7127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7128 LIBS=$ac_check_lib_save_LIBS
7130 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7131 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7132 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7133 cat >>confdefs.h <<_ACEOF
7134 #define HAVE_LIBDNET 1
7135 _ACEOF
7137 LIBS="-ldnet $LIBS"
7142 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7143 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7144 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147 ac_check_lib_save_LIBS=$LIBS
7148 LIBS="-lXbsd $LIBS"
7149 cat >conftest.$ac_ext <<_ACEOF
7150 #line $LINENO "configure"
7151 #include "confdefs.h"
7155 main ()
7157 main ();
7159 return 0;
7161 _ACEOF
7162 rm -f conftest.$ac_objext conftest$ac_exeext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7164 (eval $ac_link) 2>&5
7165 ac_status=$?
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } &&
7168 { ac_try='test -s conftest$ac_exeext'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 (eval $ac_try) 2>&5
7171 ac_status=$?
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 ac_cv_lib_Xbsd_main=yes
7175 else
7176 echo "$as_me: failed program was:" >&5
7177 cat conftest.$ac_ext >&5
7178 ac_cv_lib_Xbsd_main=no
7180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7181 LIBS=$ac_check_lib_save_LIBS
7183 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7184 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7185 if test $ac_cv_lib_Xbsd_main = yes; then
7186 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7191 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7192 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7193 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196 ac_check_lib_save_LIBS=$LIBS
7197 LIBS="-lpthreads $LIBS"
7198 cat >conftest.$ac_ext <<_ACEOF
7199 #line $LINENO "configure"
7200 #include "confdefs.h"
7202 /* Override any gcc2 internal prototype to avoid an error. */
7203 #ifdef __cplusplus
7204 extern "C"
7205 #endif
7206 /* We use char because int might match the return type of a gcc2
7207 builtin and then its argument prototype would still apply. */
7208 char cma_open ();
7210 main ()
7212 cma_open ();
7214 return 0;
7216 _ACEOF
7217 rm -f conftest.$ac_objext conftest$ac_exeext
7218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7219 (eval $ac_link) 2>&5
7220 ac_status=$?
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } &&
7223 { ac_try='test -s conftest$ac_exeext'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 (eval $ac_try) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7229 ac_cv_lib_pthreads_cma_open=yes
7230 else
7231 echo "$as_me: failed program was:" >&5
7232 cat conftest.$ac_ext >&5
7233 ac_cv_lib_pthreads_cma_open=no
7235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7236 LIBS=$ac_check_lib_save_LIBS
7238 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7239 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7240 if test $ac_cv_lib_pthreads_cma_open = yes; then
7241 cat >>confdefs.h <<_ACEOF
7242 #define HAVE_LIBPTHREADS 1
7243 _ACEOF
7245 LIBS="-lpthreads $LIBS"
7250 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7251 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7252 if test -d /usr/X386/include; then
7253 HAVE_XFREE386=yes
7254 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7255 else
7256 HAVE_XFREE386=no
7258 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7259 echo "${ECHO_T}$HAVE_XFREE386" >&6
7262 case ${host_os} in
7263 aix*)
7264 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7265 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
7266 if test "${gdb_cv_bigtoc+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7270 case $GCC in
7271 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7272 *) gdb_cv_bigtoc=-bbigtoc ;;
7273 esac
7275 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7276 cat >conftest.$ac_ext <<_ACEOF
7277 #line $LINENO "configure"
7278 #include "confdefs.h"
7281 main ()
7283 int i;
7285 return 0;
7287 _ACEOF
7288 rm -f conftest.$ac_objext conftest$ac_exeext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7290 (eval $ac_link) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } &&
7294 { ac_try='test -s conftest$ac_exeext'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296 (eval $ac_try) 2>&5
7297 ac_status=$?
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7301 else
7302 echo "$as_me: failed program was:" >&5
7303 cat conftest.$ac_ext >&5
7304 gdb_cv_bigtoc=
7306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7309 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7310 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
7312 esac
7314 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7315 # used for the tests that follow. We set them back to REAL_CFLAGS and
7316 # REAL_CPPFLAGS later on.
7318 REAL_CPPFLAGS="$CPPFLAGS"
7320 if test "${HAVE_X11}" = "yes"; then
7321 DEFS="$C_SWITCH_X_SITE $DEFS"
7322 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7323 LIBS="$LIBX $LIBS"
7324 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7325 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7327 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7328 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7329 # but it's more convenient here to set LD_RUN_PATH
7330 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7331 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7332 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7333 export LD_RUN_PATH
7336 if test "${opsys}" = "gnu-linux"; then
7337 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7338 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7339 cat >conftest.$ac_ext <<_ACEOF
7340 #line $LINENO "configure"
7341 #include "confdefs.h"
7344 main ()
7346 XOpenDisplay ("foo");
7348 return 0;
7350 _ACEOF
7351 rm -f conftest.$ac_objext conftest$ac_exeext
7352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7353 (eval $ac_link) 2>&5
7354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } &&
7357 { ac_try='test -s conftest$ac_exeext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 (eval $ac_try) 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 xlinux_first_failure=no
7364 else
7365 echo "$as_me: failed program was:" >&5
7366 cat conftest.$ac_ext >&5
7367 xlinux_first_failure=yes
7369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7370 if test "${xlinux_first_failure}" = "yes"; then
7371 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7372 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7373 OLD_CPPFLAGS="$CPPFLAGS"
7374 OLD_LIBS="$LIBS"
7375 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7376 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7377 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7378 LIBS="$LIBS -b i486-linuxaout"
7379 cat >conftest.$ac_ext <<_ACEOF
7380 #line $LINENO "configure"
7381 #include "confdefs.h"
7384 main ()
7386 XOpenDisplay ("foo");
7388 return 0;
7390 _ACEOF
7391 rm -f conftest.$ac_objext conftest$ac_exeext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7393 (eval $ac_link) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } &&
7397 { ac_try='test -s conftest$ac_exeext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7403 xlinux_second_failure=no
7404 else
7405 echo "$as_me: failed program was:" >&5
7406 cat conftest.$ac_ext >&5
7407 xlinux_second_failure=yes
7409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7410 if test "${xlinux_second_failure}" = "yes"; then
7411 # If we get the same failure with -b, there is no use adding -b.
7412 # So take it out. This plays safe.
7413 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7414 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7415 CPPFLAGS="$OLD_CPPFLAGS"
7416 LIBS="$OLD_LIBS"
7417 echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6
7419 else
7420 echo "$as_me:$LINENO: result: yes" >&5
7421 echo "${ECHO_T}yes" >&6
7423 else
7424 echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6
7429 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7430 # header files included from there.
7431 echo "$as_me:$LINENO: checking for Xkb" >&5
7432 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7433 cat >conftest.$ac_ext <<_ACEOF
7434 #line $LINENO "configure"
7435 #include "confdefs.h"
7436 #include <X11/Xlib.h>
7437 #include <X11/XKBlib.h>
7439 main ()
7441 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7443 return 0;
7445 _ACEOF
7446 rm -f conftest.$ac_objext conftest$ac_exeext
7447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7448 (eval $ac_link) 2>&5
7449 ac_status=$?
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try='test -s conftest$ac_exeext'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 (eval $ac_try) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 emacs_xkb=yes
7459 else
7460 echo "$as_me: failed program was:" >&5
7461 cat conftest.$ac_ext >&5
7462 emacs_xkb=no
7464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7465 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7466 echo "${ECHO_T}$emacs_xkb" >&6
7467 if test $emacs_xkb = yes; then
7469 cat >>confdefs.h <<\_ACEOF
7470 #define HAVE_XKBGETKEYBOARD 1
7471 _ACEOF
7479 for ac_func in XrmSetDatabase XScreenResourceString \
7480 XScreenNumberOfScreen XSetWMProtocols
7482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7483 echo "$as_me:$LINENO: checking for $ac_func" >&5
7484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7485 if eval "test \"\${$as_ac_var+set}\" = set"; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488 cat >conftest.$ac_ext <<_ACEOF
7489 #line $LINENO "configure"
7490 #include "confdefs.h"
7491 /* System header to define __stub macros and hopefully few prototypes,
7492 which can conflict with char $ac_func (); below. */
7493 #include <assert.h>
7494 /* Override any gcc2 internal prototype to avoid an error. */
7495 #ifdef __cplusplus
7496 extern "C"
7497 #endif
7498 /* We use char because int might match the return type of a gcc2
7499 builtin and then its argument prototype would still apply. */
7500 char $ac_func ();
7501 char (*f) ();
7504 main ()
7506 /* The GNU C library defines this for functions which it implements
7507 to always fail with ENOSYS. Some functions are actually named
7508 something starting with __ and the normal name is an alias. */
7509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7510 choke me
7511 #else
7512 f = $ac_func;
7513 #endif
7516 return 0;
7518 _ACEOF
7519 rm -f conftest.$ac_objext conftest$ac_exeext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7521 (eval $ac_link) 2>&5
7522 ac_status=$?
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } &&
7525 { ac_try='test -s conftest$ac_exeext'
7526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 (eval $ac_try) 2>&5
7528 ac_status=$?
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }; }; then
7531 eval "$as_ac_var=yes"
7532 else
7533 echo "$as_me: failed program was:" >&5
7534 cat conftest.$ac_ext >&5
7535 eval "$as_ac_var=no"
7537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7541 if test `eval echo '${'$as_ac_var'}'` = yes; then
7542 cat >>confdefs.h <<_ACEOF
7543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7544 _ACEOF
7547 done
7551 if test "${window_system}" = "x11"; then
7552 echo "$as_me:$LINENO: checking X11 version 6" >&5
7553 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7554 if test "${emacs_cv_x11_version_6+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 else
7557 cat >conftest.$ac_ext <<_ACEOF
7558 #line $LINENO "configure"
7559 #include "confdefs.h"
7560 #include <X11/Xlib.h>
7562 main ()
7564 #if XlibSpecificationRelease < 6
7565 fail;
7566 #endif
7569 return 0;
7571 _ACEOF
7572 rm -f conftest.$ac_objext conftest$ac_exeext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574 (eval $ac_link) 2>&5
7575 ac_status=$?
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } &&
7578 { ac_try='test -s conftest$ac_exeext'
7579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 (eval $ac_try) 2>&5
7581 ac_status=$?
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }; }; then
7584 emacs_cv_x11_version_6=yes
7585 else
7586 echo "$as_me: failed program was:" >&5
7587 cat conftest.$ac_ext >&5
7588 emacs_cv_x11_version_6=no
7590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7593 if test $emacs_cv_x11_version_6 = yes; then
7594 echo "$as_me:$LINENO: result: 6 or newer" >&5
7595 echo "${ECHO_T}6 or newer" >&6
7597 cat >>confdefs.h <<\_ACEOF
7598 #define HAVE_X11R6 1
7599 _ACEOF
7601 else
7602 echo "$as_me:$LINENO: result: before 6" >&5
7603 echo "${ECHO_T}before 6" >&6
7607 if test "${window_system}" = "x11"; then
7608 echo "$as_me:$LINENO: checking X11 version 5" >&5
7609 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
7610 if test "${emacs_cv_x11_version_5+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 else
7613 cat >conftest.$ac_ext <<_ACEOF
7614 #line $LINENO "configure"
7615 #include "confdefs.h"
7616 #include <X11/Xlib.h>
7618 main ()
7620 #if XlibSpecificationRelease < 5
7621 fail;
7622 #endif
7625 return 0;
7627 _ACEOF
7628 rm -f conftest.$ac_objext conftest$ac_exeext
7629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7630 (eval $ac_link) 2>&5
7631 ac_status=$?
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -s conftest$ac_exeext'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 (eval $ac_try) 2>&5
7637 ac_status=$?
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; }; then
7640 emacs_cv_x11_version_5=yes
7641 else
7642 echo "$as_me: failed program was:" >&5
7643 cat conftest.$ac_ext >&5
7644 emacs_cv_x11_version_5=no
7646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7649 if test $emacs_cv_x11_version_5 = yes; then
7650 echo "$as_me:$LINENO: result: 5 or newer" >&5
7651 echo "${ECHO_T}5 or newer" >&6
7652 HAVE_X11R5=yes
7654 cat >>confdefs.h <<\_ACEOF
7655 #define HAVE_X11R5 1
7656 _ACEOF
7658 else
7659 HAVE_X11R5=no
7660 echo "$as_me:$LINENO: result: before 5" >&5
7661 echo "${ECHO_T}before 5" >&6
7667 HAVE_GTK=no
7668 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
7669 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
7670 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
7671 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
7672 { (exit 1); exit 1; }; };
7674 GLIB_REQUIRED=2.0.1
7675 GTK_REQUIRED=2.0.1
7676 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
7678 if test "X${with_pkg_config_prog}" != X; then
7679 PKG_CONFIG="${with_pkg_config_prog}"
7682 succeeded=no
7684 if test -z "$PKG_CONFIG"; then
7685 # Extract the first word of "pkg-config", so it can be a program name with args.
7686 set dummy pkg-config; ac_word=$2
7687 echo "$as_me:$LINENO: checking for $ac_word" >&5
7688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7689 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 else
7692 case $PKG_CONFIG in
7693 [\\/]* | ?:[\\/]*)
7694 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 for as_dir in $PATH
7700 IFS=$as_save_IFS
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7704 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 break 2
7708 done
7709 done
7711 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7713 esac
7715 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7717 if test -n "$PKG_CONFIG"; then
7718 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7719 echo "${ECHO_T}$PKG_CONFIG" >&6
7720 else
7721 echo "$as_me:$LINENO: result: no" >&5
7722 echo "${ECHO_T}no" >&6
7727 if test "$PKG_CONFIG" = "no" ; then
7728 echo "*** The pkg-config script could not be found. Make sure it is"
7729 echo "*** in your path, or give the full path to pkg-config with"
7730 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
7731 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7732 else
7733 PKG_CONFIG_MIN_VERSION=0.9.0
7734 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7735 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
7736 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
7738 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
7739 echo "$as_me:$LINENO: result: yes" >&5
7740 echo "${ECHO_T}yes" >&6
7741 succeeded=yes
7743 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
7744 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
7745 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
7746 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
7747 echo "${ECHO_T}$GTK_CFLAGS" >&6
7749 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
7750 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
7751 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
7752 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
7753 echo "${ECHO_T}$GTK_LIBS" >&6
7754 else
7755 GTK_CFLAGS=""
7756 GTK_LIBS=""
7757 ## If we have a custom action on failure, don't print errors, but
7758 ## do set a variable so people can do so.
7759 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
7760 echo $GTK_PKG_ERRORS
7765 else
7766 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7767 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7771 if test $succeeded = yes; then
7773 else
7774 { { 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
7775 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
7776 { (exit 1); exit 1; }; }
7781 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
7782 HAVE_GTK=yes
7784 cat >>confdefs.h <<\_ACEOF
7785 #define HAVE_GTK 1
7786 _ACEOF
7788 USE_X_TOOLKIT=none
7790 with_toolkit_scroll_bars=yes
7793 if test x"${USE_X_TOOLKIT}" = xmaybe; then
7794 if test x"${HAVE_X11R5}" = xyes; then
7795 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
7796 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
7797 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 else
7800 cat >conftest.$ac_ext <<_ACEOF
7801 #line $LINENO "configure"
7802 #include "confdefs.h"
7804 #include <X11/Intrinsic.h>
7805 #include <X11/Xaw/Simple.h>
7807 main ()
7811 return 0;
7813 _ACEOF
7814 rm -f conftest.$ac_objext conftest$ac_exeext
7815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7816 (eval $ac_link) 2>&5
7817 ac_status=$?
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -s conftest$ac_exeext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 (eval $ac_try) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 emacs_cv_x11_version_5_with_xaw=yes
7827 else
7828 echo "$as_me: failed program was:" >&5
7829 cat conftest.$ac_ext >&5
7830 emacs_cv_x11_version_5_with_xaw=no
7832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7835 if test $emacs_cv_x11_version_5_with_xaw = yes; then
7836 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
7837 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
7838 USE_X_TOOLKIT=LUCID
7839 else
7840 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
7841 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
7842 USE_X_TOOLKIT=none
7844 else
7845 USE_X_TOOLKIT=none
7849 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
7851 if test "${USE_X_TOOLKIT}" != "none"; then
7852 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
7853 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
7854 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 else
7857 cat >conftest.$ac_ext <<_ACEOF
7858 #line $LINENO "configure"
7859 #include "confdefs.h"
7860 #include <X11/Intrinsic.h>
7862 main ()
7864 #if XtSpecificationRelease < 6
7865 fail;
7866 #endif
7869 return 0;
7871 _ACEOF
7872 rm -f conftest.$ac_objext conftest$ac_exeext
7873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7874 (eval $ac_link) 2>&5
7875 ac_status=$?
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } &&
7878 { ac_try='test -s conftest$ac_exeext'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880 (eval $ac_try) 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 emacs_cv_x11_toolkit_version_6=yes
7885 else
7886 echo "$as_me: failed program was:" >&5
7887 cat conftest.$ac_ext >&5
7888 emacs_cv_x11_toolkit_version_6=no
7890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7893 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
7894 if test $emacs_cv_x11_toolkit_version_6 = yes; then
7895 echo "$as_me:$LINENO: result: 6 or newer" >&5
7896 echo "${ECHO_T}6 or newer" >&6
7898 cat >>confdefs.h <<\_ACEOF
7899 #define HAVE_X11XTR6 1
7900 _ACEOF
7902 else
7903 echo "$as_me:$LINENO: result: before 6" >&5
7904 echo "${ECHO_T}before 6" >&6
7907 OLDLIBS="$LIBS"
7908 if test x$HAVE_X11XTR6 = xyes; then
7909 LIBS="-lXt -lSM -lICE $LIBS"
7910 else
7911 LIBS="-lXt $LIBS"
7914 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
7915 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
7916 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919 ac_check_lib_save_LIBS=$LIBS
7920 LIBS="-lXmu $LIBS"
7921 cat >conftest.$ac_ext <<_ACEOF
7922 #line $LINENO "configure"
7923 #include "confdefs.h"
7925 /* Override any gcc2 internal prototype to avoid an error. */
7926 #ifdef __cplusplus
7927 extern "C"
7928 #endif
7929 /* We use char because int might match the return type of a gcc2
7930 builtin and then its argument prototype would still apply. */
7931 char XmuConvertStandardSelection ();
7933 main ()
7935 XmuConvertStandardSelection ();
7937 return 0;
7939 _ACEOF
7940 rm -f conftest.$ac_objext conftest$ac_exeext
7941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7942 (eval $ac_link) 2>&5
7943 ac_status=$?
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -s conftest$ac_exeext'
7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948 (eval $ac_try) 2>&5
7949 ac_status=$?
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; }; then
7952 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
7953 else
7954 echo "$as_me: failed program was:" >&5
7955 cat conftest.$ac_ext >&5
7956 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
7958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7959 LIBS=$ac_check_lib_save_LIBS
7961 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
7962 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
7963 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
7964 cat >>confdefs.h <<_ACEOF
7965 #define HAVE_LIBXMU 1
7966 _ACEOF
7968 LIBS="-lXmu $LIBS"
7972 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
7975 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
7976 if test "${HAVE_X11}" = "yes"; then
7977 if test "${USE_X_TOOLKIT}" != "none"; then
7979 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7980 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7981 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984 ac_check_lib_save_LIBS=$LIBS
7985 LIBS="-lXext $LIBS"
7986 cat >conftest.$ac_ext <<_ACEOF
7987 #line $LINENO "configure"
7988 #include "confdefs.h"
7990 /* Override any gcc2 internal prototype to avoid an error. */
7991 #ifdef __cplusplus
7992 extern "C"
7993 #endif
7994 /* We use char because int might match the return type of a gcc2
7995 builtin and then its argument prototype would still apply. */
7996 char XShapeQueryExtension ();
7998 main ()
8000 XShapeQueryExtension ();
8002 return 0;
8004 _ACEOF
8005 rm -f conftest.$ac_objext conftest$ac_exeext
8006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8007 (eval $ac_link) 2>&5
8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } &&
8011 { ac_try='test -s conftest$ac_exeext'
8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 (eval $ac_try) 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; }; then
8017 ac_cv_lib_Xext_XShapeQueryExtension=yes
8018 else
8019 echo "$as_me: failed program was:" >&5
8020 cat conftest.$ac_ext >&5
8021 ac_cv_lib_Xext_XShapeQueryExtension=no
8023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8024 LIBS=$ac_check_lib_save_LIBS
8026 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8027 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8028 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8029 cat >>confdefs.h <<_ACEOF
8030 #define HAVE_LIBXEXT 1
8031 _ACEOF
8033 LIBS="-lXext $LIBS"
8040 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8041 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8042 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8043 if test "${emacs_cv_lesstif+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8045 else
8046 # We put this in CFLAGS temporarily to precede other -I options
8047 # that might be in CFLAGS temporarily.
8048 # We put this in CPPFLAGS where it precedes the other -I options.
8049 OLD_CPPFLAGS=$CPPFLAGS
8050 OLD_CFLAGS=$CFLAGS
8051 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8052 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8053 cat >conftest.$ac_ext <<_ACEOF
8054 #line $LINENO "configure"
8055 #include "confdefs.h"
8056 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8058 main ()
8060 int x = 5;
8062 return 0;
8064 _ACEOF
8065 rm -f conftest.$ac_objext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8067 (eval $ac_compile) 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } &&
8071 { ac_try='test -s conftest.$ac_objext'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 (eval $ac_try) 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8077 emacs_cv_lesstif=yes
8078 else
8079 echo "$as_me: failed program was:" >&5
8080 cat conftest.$ac_ext >&5
8081 emacs_cv_lesstif=no
8083 rm -f conftest.$ac_objext conftest.$ac_ext
8085 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8086 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8087 if test $emacs_cv_lesstif = yes; then
8088 # Make sure this -I option remains in CPPFLAGS after it is set
8089 # back to REAL_CPPFLAGS.
8090 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8091 # have those other -I options anyway. Ultimately, having this
8092 # directory ultimately in CPPFLAGS will be enough.
8093 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8094 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8095 else
8096 CFLAGS=$OLD_CFLAGS
8097 CPPFLAGS=$OLD_CPPFLAGS
8099 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8100 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8101 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104 cat >conftest.$ac_ext <<_ACEOF
8105 #line $LINENO "configure"
8106 #include "confdefs.h"
8107 #include <Xm/Xm.h>
8109 main ()
8111 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8112 int x = 5;
8113 #else
8114 Motif version prior to 2.1.
8115 #endif
8117 return 0;
8119 _ACEOF
8120 rm -f conftest.$ac_objext
8121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8122 (eval $ac_compile) 2>&5
8123 ac_status=$?
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try='test -s conftest.$ac_objext'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 (eval $ac_try) 2>&5
8129 ac_status=$?
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8132 emacs_cv_motif_version_2_1=yes
8133 else
8134 echo "$as_me: failed program was:" >&5
8135 cat conftest.$ac_ext >&5
8136 emacs_cv_motif_version_2_1=no
8138 rm -f conftest.$ac_objext conftest.$ac_ext
8140 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8141 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8142 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8143 if test $emacs_cv_motif_version_2_1 = yes; then
8144 HAVE_LIBXP=no
8146 cat >>confdefs.h <<\_ACEOF
8147 #define HAVE_MOTIF_2_1 1
8148 _ACEOF
8150 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8151 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8152 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 else
8155 ac_check_lib_save_LIBS=$LIBS
8156 LIBS="-lXp $LIBS"
8157 cat >conftest.$ac_ext <<_ACEOF
8158 #line $LINENO "configure"
8159 #include "confdefs.h"
8161 /* Override any gcc2 internal prototype to avoid an error. */
8162 #ifdef __cplusplus
8163 extern "C"
8164 #endif
8165 /* We use char because int might match the return type of a gcc2
8166 builtin and then its argument prototype would still apply. */
8167 char XpCreateContext ();
8169 main ()
8171 XpCreateContext ();
8173 return 0;
8175 _ACEOF
8176 rm -f conftest.$ac_objext conftest$ac_exeext
8177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8178 (eval $ac_link) 2>&5
8179 ac_status=$?
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } &&
8182 { ac_try='test -s conftest$ac_exeext'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 (eval $ac_try) 2>&5
8185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; }; then
8188 ac_cv_lib_Xp_XpCreateContext=yes
8189 else
8190 echo "$as_me: failed program was:" >&5
8191 cat conftest.$ac_ext >&5
8192 ac_cv_lib_Xp_XpCreateContext=no
8194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8195 LIBS=$ac_check_lib_save_LIBS
8197 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8198 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8199 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8200 HAVE_LIBXP=yes
8203 if test ${HAVE_LIBXP} = yes; then
8205 cat >>confdefs.h <<\_ACEOF
8206 #define HAVE_LIBXP 1
8207 _ACEOF
8213 ### Is -lXaw3d available?
8214 HAVE_XAW3D=no
8215 if test "${HAVE_X11}" = "yes"; then
8216 if test "${USE_X_TOOLKIT}" != "none"; then
8217 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8218 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8219 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222 cat >conftest.$ac_ext <<_ACEOF
8223 #line $LINENO "configure"
8224 #include "confdefs.h"
8225 #include <X11/Xaw3d/Scrollbar.h>
8226 _ACEOF
8227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8229 ac_status=$?
8230 grep -v '^ *+' conftest.er1 >conftest.err
8231 rm -f conftest.er1
8232 cat conftest.err >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } >/dev/null; then
8235 if test -s conftest.err; then
8236 ac_cpp_err=$ac_c_preproc_warn_flag
8237 else
8238 ac_cpp_err=
8240 else
8241 ac_cpp_err=yes
8243 if test -z "$ac_cpp_err"; then
8244 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
8245 else
8246 echo "$as_me: failed program was:" >&5
8247 cat conftest.$ac_ext >&5
8248 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
8250 rm -f conftest.err conftest.$ac_ext
8252 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8253 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8254 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8255 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8256 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8257 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260 ac_check_lib_save_LIBS=$LIBS
8261 LIBS="-lXaw3d $LIBS"
8262 cat >conftest.$ac_ext <<_ACEOF
8263 #line $LINENO "configure"
8264 #include "confdefs.h"
8266 /* Override any gcc2 internal prototype to avoid an error. */
8267 #ifdef __cplusplus
8268 extern "C"
8269 #endif
8270 /* We use char because int might match the return type of a gcc2
8271 builtin and then its argument prototype would still apply. */
8272 char XawScrollbarSetThumb ();
8274 main ()
8276 XawScrollbarSetThumb ();
8278 return 0;
8280 _ACEOF
8281 rm -f conftest.$ac_objext conftest$ac_exeext
8282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8283 (eval $ac_link) 2>&5
8284 ac_status=$?
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } &&
8287 { ac_try='test -s conftest$ac_exeext'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289 (eval $ac_try) 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; }; then
8293 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8294 else
8295 echo "$as_me: failed program was:" >&5
8296 cat conftest.$ac_ext >&5
8297 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8300 LIBS=$ac_check_lib_save_LIBS
8302 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8303 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8304 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8305 HAVE_XAW3D=yes
8311 if test "${HAVE_XAW3D}" = "yes"; then
8313 cat >>confdefs.h <<\_ACEOF
8314 #define HAVE_XAW3D 1
8315 _ACEOF
8323 USE_TOOLKIT_SCROLL_BARS=no
8324 if test "${with_toolkit_scroll_bars}" != "no"; then
8325 if test "${USE_X_TOOLKIT}" != "none"; then
8326 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8327 cat >>confdefs.h <<\_ACEOF
8328 #define USE_TOOLKIT_SCROLL_BARS 1
8329 _ACEOF
8331 HAVE_XAW3D=no
8332 USE_TOOLKIT_SCROLL_BARS=yes
8333 elif test "${HAVE_XAW3D}" = "yes"; then
8334 cat >>confdefs.h <<\_ACEOF
8335 #define USE_TOOLKIT_SCROLL_BARS 1
8336 _ACEOF
8338 USE_TOOLKIT_SCROLL_BARS=yes
8340 elif test "${HAVE_GTK}" = "yes"; then
8341 cat >>confdefs.h <<\_ACEOF
8342 #define USE_TOOLKIT_SCROLL_BARS 1
8343 _ACEOF
8345 USE_TOOLKIT_SCROLL_BARS=yes
8350 if test "${with_xim}" != "no"; then
8352 cat >>confdefs.h <<\_ACEOF
8353 #define USE_XIM 1
8354 _ACEOF
8356 late_CFLAGS=$CFLAGS
8357 if test "$GCC" = yes; then
8358 CFLAGS="$CFLAGS --pedantic-errors"
8361 if test "${HAVE_X11}" = "yes"; then
8362 cat >conftest.$ac_ext <<_ACEOF
8363 #line $LINENO "configure"
8364 #include "confdefs.h"
8366 #include <X11/Xlib.h>
8367 #include <X11/Xresource.h>
8369 main ()
8371 Display *display;
8372 XrmDatabase db;
8373 char *res_name;
8374 char *res_class;
8375 XIMProc callback;
8376 XPointer *client_data;
8377 #ifndef __GNUC__
8378 /* If we're not using GCC, it's probably not XFree86, and this is
8379 probably right, but we can't use something like --pedantic-errors. */
8380 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
8381 char*, XIMProc, XPointer*);
8382 #endif
8383 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
8384 client_data);
8386 return 0;
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8391 (eval $ac_compile) 2>&5
8392 ac_status=$?
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
8395 { ac_try='test -s conftest.$ac_objext'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; }; then
8401 emacs_cv_arg6_star=yes
8402 else
8403 echo "$as_me: failed program was:" >&5
8404 cat conftest.$ac_ext >&5
8406 rm -f conftest.$ac_objext conftest.$ac_ext
8408 if test "$emacs_cv_arg6_star" = yes; then
8409 cat >>confdefs.h <<\_ACEOF
8410 #define XRegisterIMInstantiateCallback_arg6 XPointer*
8411 _ACEOF
8413 else
8414 cat >>confdefs.h <<\_ACEOF
8415 #define XRegisterIMInstantiateCallback_arg6 XPointer
8416 _ACEOF
8419 CFLAGS=$late_CFLAGS
8422 ### Use -lXpm if available, unless `--with-xpm=no'.
8423 HAVE_XPM=no
8424 if test "${HAVE_X11}" = "yes"; then
8425 if test "${with_xpm}" != "no"; then
8426 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8427 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8428 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8429 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8433 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8434 else
8435 # Is the header compilable?
8436 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8437 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8438 cat >conftest.$ac_ext <<_ACEOF
8439 #line $LINENO "configure"
8440 #include "confdefs.h"
8441 $ac_includes_default
8442 #include <X11/xpm.h>
8443 _ACEOF
8444 rm -f conftest.$ac_objext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8446 (eval $ac_compile) 2>&5
8447 ac_status=$?
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -s conftest.$ac_objext'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 (eval $ac_try) 2>&5
8453 ac_status=$?
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 ac_header_compiler=yes
8457 else
8458 echo "$as_me: failed program was:" >&5
8459 cat conftest.$ac_ext >&5
8460 ac_header_compiler=no
8462 rm -f conftest.$ac_objext conftest.$ac_ext
8463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8464 echo "${ECHO_T}$ac_header_compiler" >&6
8466 # Is the header present?
8467 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8468 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8469 cat >conftest.$ac_ext <<_ACEOF
8470 #line $LINENO "configure"
8471 #include "confdefs.h"
8472 #include <X11/xpm.h>
8473 _ACEOF
8474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8476 ac_status=$?
8477 grep -v '^ *+' conftest.er1 >conftest.err
8478 rm -f conftest.er1
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } >/dev/null; then
8482 if test -s conftest.err; then
8483 ac_cpp_err=$ac_c_preproc_warn_flag
8484 else
8485 ac_cpp_err=
8487 else
8488 ac_cpp_err=yes
8490 if test -z "$ac_cpp_err"; then
8491 ac_header_preproc=yes
8492 else
8493 echo "$as_me: failed program was:" >&5
8494 cat conftest.$ac_ext >&5
8495 ac_header_preproc=no
8497 rm -f conftest.err conftest.$ac_ext
8498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8499 echo "${ECHO_T}$ac_header_preproc" >&6
8501 # So? What about this header?
8502 case $ac_header_compiler:$ac_header_preproc in
8503 yes:no )
8504 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8505 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8506 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8507 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8508 no:yes )
8509 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8510 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8511 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8512 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8513 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8514 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8515 esac
8516 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8517 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8518 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521 ac_cv_header_X11_xpm_h=$ac_header_preproc
8523 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8524 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8527 if test $ac_cv_header_X11_xpm_h = yes; then
8528 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8529 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8530 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533 ac_check_lib_save_LIBS=$LIBS
8534 LIBS="-lXpm -lX11 $LIBS"
8535 cat >conftest.$ac_ext <<_ACEOF
8536 #line $LINENO "configure"
8537 #include "confdefs.h"
8539 /* Override any gcc2 internal prototype to avoid an error. */
8540 #ifdef __cplusplus
8541 extern "C"
8542 #endif
8543 /* We use char because int might match the return type of a gcc2
8544 builtin and then its argument prototype would still apply. */
8545 char XpmReadFileToPixmap ();
8547 main ()
8549 XpmReadFileToPixmap ();
8551 return 0;
8553 _ACEOF
8554 rm -f conftest.$ac_objext conftest$ac_exeext
8555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8556 (eval $ac_link) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -s conftest$ac_exeext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 cat conftest.$ac_ext >&5
8570 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
8572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8573 LIBS=$ac_check_lib_save_LIBS
8575 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8576 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8577 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8578 HAVE_XPM=yes
8584 if test "${HAVE_XPM}" = "yes"; then
8585 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8586 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8587 cat >conftest.$ac_ext <<_ACEOF
8588 #line $LINENO "configure"
8589 #include "confdefs.h"
8590 #include "X11/xpm.h"
8591 #ifndef XpmReturnAllocPixels
8592 no_return_alloc_pixels
8593 #endif
8595 _ACEOF
8596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8597 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
8598 HAVE_XPM=no
8599 else
8600 HAVE_XPM=yes
8602 rm -f conftest*
8605 if test "${HAVE_XPM}" = "yes"; then
8606 echo "$as_me:$LINENO: result: yes" >&5
8607 echo "${ECHO_T}yes" >&6
8608 else
8609 echo "$as_me:$LINENO: result: no" >&5
8610 echo "${ECHO_T}no" >&6
8615 if test "${HAVE_XPM}" = "yes"; then
8617 cat >>confdefs.h <<\_ACEOF
8618 #define HAVE_XPM 1
8619 _ACEOF
8624 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8625 HAVE_JPEG=no
8626 if test "${HAVE_X11}" = "yes"; then
8627 if test "${with_jpeg}" != "no"; then
8628 if test "${ac_cv_header_jerror_h+set}" = set; then
8629 echo "$as_me:$LINENO: checking for jerror.h" >&5
8630 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8631 if test "${ac_cv_header_jerror_h+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8635 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8636 else
8637 # Is the header compilable?
8638 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8639 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8640 cat >conftest.$ac_ext <<_ACEOF
8641 #line $LINENO "configure"
8642 #include "confdefs.h"
8643 $ac_includes_default
8644 #include <jerror.h>
8645 _ACEOF
8646 rm -f conftest.$ac_objext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8648 (eval $ac_compile) 2>&5
8649 ac_status=$?
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try='test -s conftest.$ac_objext'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 (eval $ac_try) 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_header_compiler=yes
8659 else
8660 echo "$as_me: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8662 ac_header_compiler=no
8664 rm -f conftest.$ac_objext conftest.$ac_ext
8665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8666 echo "${ECHO_T}$ac_header_compiler" >&6
8668 # Is the header present?
8669 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8670 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8671 cat >conftest.$ac_ext <<_ACEOF
8672 #line $LINENO "configure"
8673 #include "confdefs.h"
8674 #include <jerror.h>
8675 _ACEOF
8676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } >/dev/null; then
8684 if test -s conftest.err; then
8685 ac_cpp_err=$ac_c_preproc_warn_flag
8686 else
8687 ac_cpp_err=
8689 else
8690 ac_cpp_err=yes
8692 if test -z "$ac_cpp_err"; then
8693 ac_header_preproc=yes
8694 else
8695 echo "$as_me: failed program was:" >&5
8696 cat conftest.$ac_ext >&5
8697 ac_header_preproc=no
8699 rm -f conftest.err conftest.$ac_ext
8700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8701 echo "${ECHO_T}$ac_header_preproc" >&6
8703 # So? What about this header?
8704 case $ac_header_compiler:$ac_header_preproc in
8705 yes:no )
8706 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8707 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8708 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8709 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8710 no:yes )
8711 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8712 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8713 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8714 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8715 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8716 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8717 esac
8718 echo "$as_me:$LINENO: checking for jerror.h" >&5
8719 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8720 if test "${ac_cv_header_jerror_h+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8722 else
8723 ac_cv_header_jerror_h=$ac_header_preproc
8725 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8726 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8729 if test $ac_cv_header_jerror_h = yes; then
8730 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
8731 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
8732 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 else
8735 ac_check_lib_save_LIBS=$LIBS
8736 LIBS="-ljpeg $LIBS"
8737 cat >conftest.$ac_ext <<_ACEOF
8738 #line $LINENO "configure"
8739 #include "confdefs.h"
8741 /* Override any gcc2 internal prototype to avoid an error. */
8742 #ifdef __cplusplus
8743 extern "C"
8744 #endif
8745 /* We use char because int might match the return type of a gcc2
8746 builtin and then its argument prototype would still apply. */
8747 char jpeg_destroy_compress ();
8749 main ()
8751 jpeg_destroy_compress ();
8753 return 0;
8755 _ACEOF
8756 rm -f conftest.$ac_objext conftest$ac_exeext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758 (eval $ac_link) 2>&5
8759 ac_status=$?
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try='test -s conftest$ac_exeext'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 (eval $ac_try) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8768 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
8769 else
8770 echo "$as_me: failed program was:" >&5
8771 cat conftest.$ac_ext >&5
8772 ac_cv_lib_jpeg_jpeg_destroy_compress=no
8774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8775 LIBS=$ac_check_lib_save_LIBS
8777 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
8778 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
8779 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
8780 HAVE_JPEG=yes
8789 if test "${HAVE_JPEG}" = "yes"; then
8790 cat >>confdefs.h <<\_ACEOF
8791 #define HAVE_JPEG 1
8792 _ACEOF
8794 cat >conftest.$ac_ext <<_ACEOF
8795 #line $LINENO "configure"
8796 #include "confdefs.h"
8797 #include <jpeglib.h>
8798 version=JPEG_LIB_VERSION
8800 _ACEOF
8801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8802 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
8803 cat >>confdefs.h <<\_ACEOF
8804 #define HAVE_JPEG 1
8805 _ACEOF
8807 else
8808 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
8809 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
8810 HAVE_JPEG=no
8812 rm -f conftest*
8817 ### Use -lpng if available, unless `--with-png=no'.
8818 HAVE_PNG=no
8819 if test "${HAVE_X11}" = "yes"; then
8820 if test "${with_png}" != "no"; then
8821 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
8822 # in /usr/include/libpng.
8825 for ac_header in png.h libpng/png.h
8827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8829 echo "$as_me:$LINENO: checking for $ac_header" >&5
8830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8836 else
8837 # Is the header compilable?
8838 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8840 cat >conftest.$ac_ext <<_ACEOF
8841 #line $LINENO "configure"
8842 #include "confdefs.h"
8843 $ac_includes_default
8844 #include <$ac_header>
8845 _ACEOF
8846 rm -f conftest.$ac_objext
8847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8848 (eval $ac_compile) 2>&5
8849 ac_status=$?
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -s conftest.$ac_objext'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 (eval $ac_try) 2>&5
8855 ac_status=$?
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
8858 ac_header_compiler=yes
8859 else
8860 echo "$as_me: failed program was:" >&5
8861 cat conftest.$ac_ext >&5
8862 ac_header_compiler=no
8864 rm -f conftest.$ac_objext conftest.$ac_ext
8865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8866 echo "${ECHO_T}$ac_header_compiler" >&6
8868 # Is the header present?
8869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8871 cat >conftest.$ac_ext <<_ACEOF
8872 #line $LINENO "configure"
8873 #include "confdefs.h"
8874 #include <$ac_header>
8875 _ACEOF
8876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8878 ac_status=$?
8879 grep -v '^ *+' conftest.er1 >conftest.err
8880 rm -f conftest.er1
8881 cat conftest.err >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } >/dev/null; then
8884 if test -s conftest.err; then
8885 ac_cpp_err=$ac_c_preproc_warn_flag
8886 else
8887 ac_cpp_err=
8889 else
8890 ac_cpp_err=yes
8892 if test -z "$ac_cpp_err"; then
8893 ac_header_preproc=yes
8894 else
8895 echo "$as_me: failed program was:" >&5
8896 cat conftest.$ac_ext >&5
8897 ac_header_preproc=no
8899 rm -f conftest.err conftest.$ac_ext
8900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8901 echo "${ECHO_T}$ac_header_preproc" >&6
8903 # So? What about this header?
8904 case $ac_header_compiler:$ac_header_preproc in
8905 yes:no )
8906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8910 no:yes )
8911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8917 esac
8918 echo "$as_me:$LINENO: checking for $ac_header" >&5
8919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 else
8923 eval "$as_ac_Header=$ac_header_preproc"
8925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8930 cat >>confdefs.h <<_ACEOF
8931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8932 _ACEOF
8936 done
8938 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
8939 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
8940 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
8941 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 else
8944 ac_check_lib_save_LIBS=$LIBS
8945 LIBS="-lpng -lz -lm $LIBS"
8946 cat >conftest.$ac_ext <<_ACEOF
8947 #line $LINENO "configure"
8948 #include "confdefs.h"
8950 /* Override any gcc2 internal prototype to avoid an error. */
8951 #ifdef __cplusplus
8952 extern "C"
8953 #endif
8954 /* We use char because int might match the return type of a gcc2
8955 builtin and then its argument prototype would still apply. */
8956 char png_get_channels ();
8958 main ()
8960 png_get_channels ();
8962 return 0;
8964 _ACEOF
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8967 (eval $ac_link) 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } &&
8971 { ac_try='test -s conftest$ac_exeext'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 (eval $ac_try) 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 ac_cv_lib_png_png_get_channels=yes
8978 else
8979 echo "$as_me: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8981 ac_cv_lib_png_png_get_channels=no
8983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8984 LIBS=$ac_check_lib_save_LIBS
8986 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
8987 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
8988 if test $ac_cv_lib_png_png_get_channels = yes; then
8989 HAVE_PNG=yes
8995 if test "${HAVE_PNG}" = "yes"; then
8997 cat >>confdefs.h <<\_ACEOF
8998 #define HAVE_PNG 1
8999 _ACEOF
9004 ### Use -ltiff if available, unless `--with-tiff=no'.
9005 HAVE_TIFF=no
9006 if test "${HAVE_X11}" = "yes"; then
9007 if test "${with_tiff}" != "no"; then
9008 if test "${ac_cv_header_tiffio_h+set}" = set; then
9009 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9010 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9011 if test "${ac_cv_header_tiffio_h+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9015 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9016 else
9017 # Is the header compilable?
9018 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9019 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9020 cat >conftest.$ac_ext <<_ACEOF
9021 #line $LINENO "configure"
9022 #include "confdefs.h"
9023 $ac_includes_default
9024 #include <tiffio.h>
9025 _ACEOF
9026 rm -f conftest.$ac_objext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9028 (eval $ac_compile) 2>&5
9029 ac_status=$?
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } &&
9032 { ac_try='test -s conftest.$ac_objext'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 (eval $ac_try) 2>&5
9035 ac_status=$?
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; }; then
9038 ac_header_compiler=yes
9039 else
9040 echo "$as_me: failed program was:" >&5
9041 cat conftest.$ac_ext >&5
9042 ac_header_compiler=no
9044 rm -f conftest.$ac_objext conftest.$ac_ext
9045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9046 echo "${ECHO_T}$ac_header_compiler" >&6
9048 # Is the header present?
9049 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9050 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9051 cat >conftest.$ac_ext <<_ACEOF
9052 #line $LINENO "configure"
9053 #include "confdefs.h"
9054 #include <tiffio.h>
9055 _ACEOF
9056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9058 ac_status=$?
9059 grep -v '^ *+' conftest.er1 >conftest.err
9060 rm -f conftest.er1
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } >/dev/null; then
9064 if test -s conftest.err; then
9065 ac_cpp_err=$ac_c_preproc_warn_flag
9066 else
9067 ac_cpp_err=
9069 else
9070 ac_cpp_err=yes
9072 if test -z "$ac_cpp_err"; then
9073 ac_header_preproc=yes
9074 else
9075 echo "$as_me: failed program was:" >&5
9076 cat conftest.$ac_ext >&5
9077 ac_header_preproc=no
9079 rm -f conftest.err conftest.$ac_ext
9080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9081 echo "${ECHO_T}$ac_header_preproc" >&6
9083 # So? What about this header?
9084 case $ac_header_compiler:$ac_header_preproc in
9085 yes:no )
9086 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9087 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9088 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9089 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
9090 no:yes )
9091 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9092 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9093 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9094 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9095 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9096 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
9097 esac
9098 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9099 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9100 if test "${ac_cv_header_tiffio_h+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103 ac_cv_header_tiffio_h=$ac_header_preproc
9105 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9106 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9109 if test $ac_cv_header_tiffio_h = yes; then
9110 tifflibs="-lz -lm"
9111 # At least one tiff package requires the jpeg library.
9112 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9113 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9114 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9115 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118 ac_check_lib_save_LIBS=$LIBS
9119 LIBS="-ltiff $tifflibs $LIBS"
9120 cat >conftest.$ac_ext <<_ACEOF
9121 #line $LINENO "configure"
9122 #include "confdefs.h"
9124 /* Override any gcc2 internal prototype to avoid an error. */
9125 #ifdef __cplusplus
9126 extern "C"
9127 #endif
9128 /* We use char because int might match the return type of a gcc2
9129 builtin and then its argument prototype would still apply. */
9130 char TIFFGetVersion ();
9132 main ()
9134 TIFFGetVersion ();
9136 return 0;
9138 _ACEOF
9139 rm -f conftest.$ac_objext conftest$ac_exeext
9140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9141 (eval $ac_link) 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } &&
9145 { ac_try='test -s conftest$ac_exeext'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 (eval $ac_try) 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; }; then
9151 ac_cv_lib_tiff_TIFFGetVersion=yes
9152 else
9153 echo "$as_me: failed program was:" >&5
9154 cat conftest.$ac_ext >&5
9155 ac_cv_lib_tiff_TIFFGetVersion=no
9157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9158 LIBS=$ac_check_lib_save_LIBS
9160 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9161 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9162 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9163 HAVE_TIFF=yes
9171 if test "${HAVE_TIFF}" = "yes"; then
9173 cat >>confdefs.h <<\_ACEOF
9174 #define HAVE_TIFF 1
9175 _ACEOF
9180 ### Use -lgif if available, unless `--with-gif=no'.
9181 HAVE_GIF=no
9182 if test "${HAVE_X11}" = "yes"; then
9183 if test "${with_gif}" != "no"; then
9184 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9185 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9186 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9187 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9191 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9192 else
9193 # Is the header compilable?
9194 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9195 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9196 cat >conftest.$ac_ext <<_ACEOF
9197 #line $LINENO "configure"
9198 #include "confdefs.h"
9199 $ac_includes_default
9200 #include <gif_lib.h>
9201 _ACEOF
9202 rm -f conftest.$ac_objext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9204 (eval $ac_compile) 2>&5
9205 ac_status=$?
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
9208 { ac_try='test -s conftest.$ac_objext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 (eval $ac_try) 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_header_compiler=yes
9215 else
9216 echo "$as_me: failed program was:" >&5
9217 cat conftest.$ac_ext >&5
9218 ac_header_compiler=no
9220 rm -f conftest.$ac_objext conftest.$ac_ext
9221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9222 echo "${ECHO_T}$ac_header_compiler" >&6
9224 # Is the header present?
9225 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9226 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9227 cat >conftest.$ac_ext <<_ACEOF
9228 #line $LINENO "configure"
9229 #include "confdefs.h"
9230 #include <gif_lib.h>
9231 _ACEOF
9232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9234 ac_status=$?
9235 grep -v '^ *+' conftest.er1 >conftest.err
9236 rm -f conftest.er1
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } >/dev/null; then
9240 if test -s conftest.err; then
9241 ac_cpp_err=$ac_c_preproc_warn_flag
9242 else
9243 ac_cpp_err=
9245 else
9246 ac_cpp_err=yes
9248 if test -z "$ac_cpp_err"; then
9249 ac_header_preproc=yes
9250 else
9251 echo "$as_me: failed program was:" >&5
9252 cat conftest.$ac_ext >&5
9253 ac_header_preproc=no
9255 rm -f conftest.err conftest.$ac_ext
9256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9257 echo "${ECHO_T}$ac_header_preproc" >&6
9259 # So? What about this header?
9260 case $ac_header_compiler:$ac_header_preproc in
9261 yes:no )
9262 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9263 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9265 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
9266 no:yes )
9267 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9268 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9269 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9270 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9271 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9272 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
9273 esac
9274 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9275 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9276 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9278 else
9279 ac_cv_header_gif_lib_h=$ac_header_preproc
9281 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9282 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9285 if test $ac_cv_header_gif_lib_h = yes; then
9286 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9287 # Earlier versions can crash Emacs.
9288 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9289 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9290 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293 ac_check_lib_save_LIBS=$LIBS
9294 LIBS="-lungif $LIBS"
9295 cat >conftest.$ac_ext <<_ACEOF
9296 #line $LINENO "configure"
9297 #include "confdefs.h"
9299 /* Override any gcc2 internal prototype to avoid an error. */
9300 #ifdef __cplusplus
9301 extern "C"
9302 #endif
9303 /* We use char because int might match the return type of a gcc2
9304 builtin and then its argument prototype would still apply. */
9305 char EGifPutExtensionLast ();
9307 main ()
9309 EGifPutExtensionLast ();
9311 return 0;
9313 _ACEOF
9314 rm -f conftest.$ac_objext conftest$ac_exeext
9315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9316 (eval $ac_link) 2>&5
9317 ac_status=$?
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } &&
9320 { ac_try='test -s conftest$ac_exeext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 (eval $ac_try) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9327 else
9328 echo "$as_me: failed program was:" >&5
9329 cat conftest.$ac_ext >&5
9330 ac_cv_lib_ungif_EGifPutExtensionLast=no
9332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9333 LIBS=$ac_check_lib_save_LIBS
9335 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9336 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9337 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9338 HAVE_GIF=yes
9346 if test "${HAVE_GIF}" = "yes"; then
9348 cat >>confdefs.h <<\_ACEOF
9349 #define HAVE_GIF 1
9350 _ACEOF
9355 ### Use Mac OS X Carbon API to implement GUI.
9356 HAVE_CARBON=no
9357 if test "${with_carbon}" != "no"; then
9358 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9359 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9360 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9361 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9362 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9365 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9366 else
9367 # Is the header compilable?
9368 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9369 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9370 cat >conftest.$ac_ext <<_ACEOF
9371 #line $LINENO "configure"
9372 #include "confdefs.h"
9373 $ac_includes_default
9374 #include <Carbon/Carbon.h>
9375 _ACEOF
9376 rm -f conftest.$ac_objext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9378 (eval $ac_compile) 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } &&
9382 { ac_try='test -s conftest.$ac_objext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 (eval $ac_try) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 ac_header_compiler=yes
9389 else
9390 echo "$as_me: failed program was:" >&5
9391 cat conftest.$ac_ext >&5
9392 ac_header_compiler=no
9394 rm -f conftest.$ac_objext conftest.$ac_ext
9395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9396 echo "${ECHO_T}$ac_header_compiler" >&6
9398 # Is the header present?
9399 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9400 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9402 #line $LINENO "configure"
9403 #include "confdefs.h"
9404 #include <Carbon/Carbon.h>
9405 _ACEOF
9406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9408 ac_status=$?
9409 grep -v '^ *+' conftest.er1 >conftest.err
9410 rm -f conftest.er1
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } >/dev/null; then
9414 if test -s conftest.err; then
9415 ac_cpp_err=$ac_c_preproc_warn_flag
9416 else
9417 ac_cpp_err=
9419 else
9420 ac_cpp_err=yes
9422 if test -z "$ac_cpp_err"; then
9423 ac_header_preproc=yes
9424 else
9425 echo "$as_me: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9427 ac_header_preproc=no
9429 rm -f conftest.err conftest.$ac_ext
9430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9431 echo "${ECHO_T}$ac_header_preproc" >&6
9433 # So? What about this header?
9434 case $ac_header_compiler:$ac_header_preproc in
9435 yes:no )
9436 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9437 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9438 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9439 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
9440 no:yes )
9441 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9442 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9443 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9444 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9445 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9446 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
9447 esac
9448 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9449 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9450 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9455 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9456 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9459 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9460 HAVE_CARBON=yes
9466 if test "${HAVE_CARBON}" = "yes"; then
9468 cat >>confdefs.h <<\_ACEOF
9469 #define HAVE_CARBON 1
9470 _ACEOF
9472 window_system=mac
9473 ## Specify the install directory
9474 carbon_appdir=
9475 if test "${carbon_appdir_x}" != ""; then
9476 case ${carbon_appdir_x} in
9477 y | ye | yes) carbon_appdir=/Applications ;;
9478 * ) carbon_appdir=${carbon_appdir_x} ;;
9479 esac
9481 # We also have mouse menus.
9482 HAVE_MENUS=yes
9485 ### Use session management (-lSM -lICE) if available
9486 HAVE_X_SM=no
9487 if test "${HAVE_X11}" = "yes"; then
9488 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9489 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9490 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9491 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9495 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9496 else
9497 # Is the header compilable?
9498 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9499 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9500 cat >conftest.$ac_ext <<_ACEOF
9501 #line $LINENO "configure"
9502 #include "confdefs.h"
9503 $ac_includes_default
9504 #include <X11/SM/SMlib.h>
9505 _ACEOF
9506 rm -f conftest.$ac_objext
9507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9508 (eval $ac_compile) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } &&
9512 { ac_try='test -s conftest.$ac_objext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 (eval $ac_try) 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 ac_header_compiler=yes
9519 else
9520 echo "$as_me: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9522 ac_header_compiler=no
9524 rm -f conftest.$ac_objext conftest.$ac_ext
9525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9526 echo "${ECHO_T}$ac_header_compiler" >&6
9528 # Is the header present?
9529 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9530 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9531 cat >conftest.$ac_ext <<_ACEOF
9532 #line $LINENO "configure"
9533 #include "confdefs.h"
9534 #include <X11/SM/SMlib.h>
9535 _ACEOF
9536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } >/dev/null; then
9544 if test -s conftest.err; then
9545 ac_cpp_err=$ac_c_preproc_warn_flag
9546 else
9547 ac_cpp_err=
9549 else
9550 ac_cpp_err=yes
9552 if test -z "$ac_cpp_err"; then
9553 ac_header_preproc=yes
9554 else
9555 echo "$as_me: failed program was:" >&5
9556 cat conftest.$ac_ext >&5
9557 ac_header_preproc=no
9559 rm -f conftest.err conftest.$ac_ext
9560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9561 echo "${ECHO_T}$ac_header_preproc" >&6
9563 # So? What about this header?
9564 case $ac_header_compiler:$ac_header_preproc in
9565 yes:no )
9566 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9567 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9568 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9569 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9570 no:yes )
9571 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9572 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9574 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9576 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9577 esac
9578 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9579 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9580 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 else
9583 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
9585 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9586 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9589 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
9590 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
9591 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
9592 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 else
9595 ac_check_lib_save_LIBS=$LIBS
9596 LIBS="-lSM $LIBS"
9597 cat >conftest.$ac_ext <<_ACEOF
9598 #line $LINENO "configure"
9599 #include "confdefs.h"
9601 /* Override any gcc2 internal prototype to avoid an error. */
9602 #ifdef __cplusplus
9603 extern "C"
9604 #endif
9605 /* We use char because int might match the return type of a gcc2
9606 builtin and then its argument prototype would still apply. */
9607 char SmcOpenConnection ();
9609 main ()
9611 SmcOpenConnection ();
9613 return 0;
9615 _ACEOF
9616 rm -f conftest.$ac_objext conftest$ac_exeext
9617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9618 (eval $ac_link) 2>&5
9619 ac_status=$?
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } &&
9622 { ac_try='test -s conftest$ac_exeext'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 (eval $ac_try) 2>&5
9625 ac_status=$?
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; }; then
9628 ac_cv_lib_SM_SmcOpenConnection=yes
9629 else
9630 echo "$as_me: failed program was:" >&5
9631 cat conftest.$ac_ext >&5
9632 ac_cv_lib_SM_SmcOpenConnection=no
9634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9635 LIBS=$ac_check_lib_save_LIBS
9637 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
9638 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
9639 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
9640 HAVE_X_SM=yes
9641 else
9642 -lICE
9649 if test "${HAVE_X_SM}" = "yes"; then
9651 cat >>confdefs.h <<\_ACEOF
9652 #define HAVE_X_SM 1
9653 _ACEOF
9655 case "$LIBS" in
9656 *-lSM*) ;;
9657 *) LIBS="-lSM -lICE $LIBS" ;;
9658 esac
9662 # If netdb.h doesn't declare h_errno, we must declare it by hand.
9663 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
9664 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
9665 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668 cat >conftest.$ac_ext <<_ACEOF
9669 #line $LINENO "configure"
9670 #include "confdefs.h"
9671 #include <netdb.h>
9673 main ()
9675 return h_errno;
9677 return 0;
9679 _ACEOF
9680 rm -f conftest.$ac_objext conftest$ac_exeext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9682 (eval $ac_link) 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } &&
9686 { ac_try='test -s conftest$ac_exeext'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688 (eval $ac_try) 2>&5
9689 ac_status=$?
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 emacs_cv_netdb_declares_h_errno=yes
9693 else
9694 echo "$as_me: failed program was:" >&5
9695 cat conftest.$ac_ext >&5
9696 emacs_cv_netdb_declares_h_errno=no
9698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9700 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
9701 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
9702 if test $emacs_cv_netdb_declares_h_errno = yes; then
9704 cat >>confdefs.h <<\_ACEOF
9705 #define HAVE_H_ERRNO 1
9706 _ACEOF
9710 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9711 # for constant arguments. Useless!
9712 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9713 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9714 if test "${ac_cv_working_alloca_h+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717 cat >conftest.$ac_ext <<_ACEOF
9718 #line $LINENO "configure"
9719 #include "confdefs.h"
9720 #include <alloca.h>
9722 main ()
9724 char *p = (char *) alloca (2 * sizeof (int));
9726 return 0;
9728 _ACEOF
9729 rm -f conftest.$ac_objext conftest$ac_exeext
9730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9731 (eval $ac_link) 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } &&
9735 { ac_try='test -s conftest$ac_exeext'
9736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 (eval $ac_try) 2>&5
9738 ac_status=$?
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; }; then
9741 ac_cv_working_alloca_h=yes
9742 else
9743 echo "$as_me: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9745 ac_cv_working_alloca_h=no
9747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9749 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9750 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9751 if test $ac_cv_working_alloca_h = yes; then
9753 cat >>confdefs.h <<\_ACEOF
9754 #define HAVE_ALLOCA_H 1
9755 _ACEOF
9759 echo "$as_me:$LINENO: checking for alloca" >&5
9760 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9761 if test "${ac_cv_func_alloca_works+set}" = set; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 else
9764 cat >conftest.$ac_ext <<_ACEOF
9765 #line $LINENO "configure"
9766 #include "confdefs.h"
9767 #ifdef __GNUC__
9768 # define alloca __builtin_alloca
9769 #else
9770 # ifdef _MSC_VER
9771 # include <malloc.h>
9772 # define alloca _alloca
9773 # else
9774 # if HAVE_ALLOCA_H
9775 # include <alloca.h>
9776 # else
9777 # ifdef _AIX
9778 #pragma alloca
9779 # else
9780 # ifndef alloca /* predefined by HP cc +Olibcalls */
9781 char *alloca ();
9782 # endif
9783 # endif
9784 # endif
9785 # endif
9786 #endif
9789 main ()
9791 char *p = (char *) alloca (1);
9793 return 0;
9795 _ACEOF
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9798 (eval $ac_link) 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } &&
9802 { ac_try='test -s conftest$ac_exeext'
9803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804 (eval $ac_try) 2>&5
9805 ac_status=$?
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; }; then
9808 ac_cv_func_alloca_works=yes
9809 else
9810 echo "$as_me: failed program was:" >&5
9811 cat conftest.$ac_ext >&5
9812 ac_cv_func_alloca_works=no
9814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9816 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9817 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9819 if test $ac_cv_func_alloca_works = yes; then
9821 cat >>confdefs.h <<\_ACEOF
9822 #define HAVE_ALLOCA 1
9823 _ACEOF
9825 else
9826 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9827 # that cause trouble. Some versions do not even contain alloca or
9828 # contain a buggy version. If you still want to use their alloca,
9829 # use ar to extract alloca.o from them instead of compiling alloca.c.
9831 ALLOCA=alloca.$ac_objext
9833 cat >>confdefs.h <<\_ACEOF
9834 #define C_ALLOCA 1
9835 _ACEOF
9838 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9839 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9840 if test "${ac_cv_os_cray+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 else
9843 cat >conftest.$ac_ext <<_ACEOF
9844 #line $LINENO "configure"
9845 #include "confdefs.h"
9846 #if defined(CRAY) && ! defined(CRAY2)
9847 webecray
9848 #else
9849 wenotbecray
9850 #endif
9852 _ACEOF
9853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9854 $EGREP "webecray" >/dev/null 2>&1; then
9855 ac_cv_os_cray=yes
9856 else
9857 ac_cv_os_cray=no
9859 rm -f conftest*
9862 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9863 echo "${ECHO_T}$ac_cv_os_cray" >&6
9864 if test $ac_cv_os_cray = yes; then
9865 for ac_func in _getb67 GETB67 getb67; do
9866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9867 echo "$as_me:$LINENO: checking for $ac_func" >&5
9868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9869 if eval "test \"\${$as_ac_var+set}\" = set"; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872 cat >conftest.$ac_ext <<_ACEOF
9873 #line $LINENO "configure"
9874 #include "confdefs.h"
9875 /* System header to define __stub macros and hopefully few prototypes,
9876 which can conflict with char $ac_func (); below. */
9877 #include <assert.h>
9878 /* Override any gcc2 internal prototype to avoid an error. */
9879 #ifdef __cplusplus
9880 extern "C"
9881 #endif
9882 /* We use char because int might match the return type of a gcc2
9883 builtin and then its argument prototype would still apply. */
9884 char $ac_func ();
9885 char (*f) ();
9888 main ()
9890 /* The GNU C library defines this for functions which it implements
9891 to always fail with ENOSYS. Some functions are actually named
9892 something starting with __ and the normal name is an alias. */
9893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9894 choke me
9895 #else
9896 f = $ac_func;
9897 #endif
9900 return 0;
9902 _ACEOF
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9905 (eval $ac_link) 2>&5
9906 ac_status=$?
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
9909 { ac_try='test -s conftest$ac_exeext'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911 (eval $ac_try) 2>&5
9912 ac_status=$?
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 eval "$as_ac_var=yes"
9916 else
9917 echo "$as_me: failed program was:" >&5
9918 cat conftest.$ac_ext >&5
9919 eval "$as_ac_var=no"
9921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9925 if test `eval echo '${'$as_ac_var'}'` = yes; then
9927 cat >>confdefs.h <<_ACEOF
9928 #define CRAY_STACKSEG_END $ac_func
9929 _ACEOF
9931 break
9934 done
9937 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9938 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9939 if test "${ac_cv_c_stack_direction+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9941 else
9942 if test "$cross_compiling" = yes; then
9943 ac_cv_c_stack_direction=0
9944 else
9945 cat >conftest.$ac_ext <<_ACEOF
9946 #line $LINENO "configure"
9947 #include "confdefs.h"
9949 find_stack_direction ()
9951 static char *addr = 0;
9952 auto char dummy;
9953 if (addr == 0)
9955 addr = &dummy;
9956 return find_stack_direction ();
9958 else
9959 return (&dummy > addr) ? 1 : -1;
9963 main ()
9965 exit (find_stack_direction () < 0);
9967 _ACEOF
9968 rm -f conftest$ac_exeext
9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970 (eval $ac_link) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 (eval $ac_try) 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_cv_c_stack_direction=1
9980 else
9981 echo "$as_me: program exited with status $ac_status" >&5
9982 echo "$as_me: failed program was:" >&5
9983 cat conftest.$ac_ext >&5
9984 ( exit $ac_status )
9985 ac_cv_c_stack_direction=-1
9987 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9990 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9991 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9993 cat >>confdefs.h <<_ACEOF
9994 #define STACK_DIRECTION $ac_cv_c_stack_direction
9995 _ACEOF
10001 # fmod, logb, and frexp are found in -lm on most systems.
10002 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10004 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10005 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10006 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009 ac_check_lib_save_LIBS=$LIBS
10010 LIBS="-lm $LIBS"
10011 cat >conftest.$ac_ext <<_ACEOF
10012 #line $LINENO "configure"
10013 #include "confdefs.h"
10015 /* Override any gcc2 internal prototype to avoid an error. */
10016 #ifdef __cplusplus
10017 extern "C"
10018 #endif
10019 /* We use char because int might match the return type of a gcc2
10020 builtin and then its argument prototype would still apply. */
10021 char sqrt ();
10023 main ()
10025 sqrt ();
10027 return 0;
10029 _ACEOF
10030 rm -f conftest.$ac_objext conftest$ac_exeext
10031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10032 (eval $ac_link) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 ac_cv_lib_m_sqrt=yes
10043 else
10044 echo "$as_me: failed program was:" >&5
10045 cat conftest.$ac_ext >&5
10046 ac_cv_lib_m_sqrt=no
10048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10049 LIBS=$ac_check_lib_save_LIBS
10051 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10052 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10053 if test $ac_cv_lib_m_sqrt = yes; then
10054 cat >>confdefs.h <<_ACEOF
10055 #define HAVE_LIBM 1
10056 _ACEOF
10058 LIBS="-lm $LIBS"
10063 # Check for mail-locking functions in a "mail" library. Probably this should
10064 # have the same check as for liblockfile below.
10066 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10067 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10068 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071 ac_check_lib_save_LIBS=$LIBS
10072 LIBS="-lmail $LIBS"
10073 cat >conftest.$ac_ext <<_ACEOF
10074 #line $LINENO "configure"
10075 #include "confdefs.h"
10077 /* Override any gcc2 internal prototype to avoid an error. */
10078 #ifdef __cplusplus
10079 extern "C"
10080 #endif
10081 /* We use char because int might match the return type of a gcc2
10082 builtin and then its argument prototype would still apply. */
10083 char maillock ();
10085 main ()
10087 maillock ();
10089 return 0;
10091 _ACEOF
10092 rm -f conftest.$ac_objext conftest$ac_exeext
10093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10094 (eval $ac_link) 2>&5
10095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try='test -s conftest$ac_exeext'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 ac_cv_lib_mail_maillock=yes
10105 else
10106 echo "$as_me: failed program was:" >&5
10107 cat conftest.$ac_ext >&5
10108 ac_cv_lib_mail_maillock=no
10110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10111 LIBS=$ac_check_lib_save_LIBS
10113 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10114 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10115 if test $ac_cv_lib_mail_maillock = yes; then
10116 cat >>confdefs.h <<_ACEOF
10117 #define HAVE_LIBMAIL 1
10118 _ACEOF
10120 LIBS="-lmail $LIBS"
10125 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10126 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10127 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 else
10130 ac_check_lib_save_LIBS=$LIBS
10131 LIBS="-llockfile $LIBS"
10132 cat >conftest.$ac_ext <<_ACEOF
10133 #line $LINENO "configure"
10134 #include "confdefs.h"
10136 /* Override any gcc2 internal prototype to avoid an error. */
10137 #ifdef __cplusplus
10138 extern "C"
10139 #endif
10140 /* We use char because int might match the return type of a gcc2
10141 builtin and then its argument prototype would still apply. */
10142 char maillock ();
10144 main ()
10146 maillock ();
10148 return 0;
10150 _ACEOF
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10153 (eval $ac_link) 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -s conftest$ac_exeext'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10160 ac_status=$?
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 ac_cv_lib_lockfile_maillock=yes
10164 else
10165 echo "$as_me: failed program was:" >&5
10166 cat conftest.$ac_ext >&5
10167 ac_cv_lib_lockfile_maillock=no
10169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10170 LIBS=$ac_check_lib_save_LIBS
10172 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10173 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10174 if test $ac_cv_lib_lockfile_maillock = yes; then
10175 cat >>confdefs.h <<_ACEOF
10176 #define HAVE_LIBLOCKFILE 1
10177 _ACEOF
10179 LIBS="-llockfile $LIBS"
10183 # If we have the shared liblockfile, assume we must use it for mail
10184 # locking (e.g. Debian). If we couldn't link against liblockfile
10185 # (no liblockfile.a installed), ensure that we don't need to.
10186 if test "$ac_cv_lib_lockfile_maillock" = no; then
10187 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10188 set dummy liblockfile.so; ac_word=$2
10189 echo "$as_me:$LINENO: checking for $ac_word" >&5
10190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10191 if test "${ac_cv_prog_liblockfile+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 else
10194 if test -n "$liblockfile"; then
10195 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10196 else
10197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10199 for as_dir in $as_dummy
10201 IFS=$as_save_IFS
10202 test -z "$as_dir" && as_dir=.
10203 for ac_exec_ext in '' $ac_executable_extensions; do
10204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10205 ac_cv_prog_liblockfile="yes"
10206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10207 break 2
10209 done
10210 done
10212 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10215 liblockfile=$ac_cv_prog_liblockfile
10216 if test -n "$liblockfile"; then
10217 echo "$as_me:$LINENO: result: $liblockfile" >&5
10218 echo "${ECHO_T}$liblockfile" >&6
10219 else
10220 echo "$as_me:$LINENO: result: no" >&5
10221 echo "${ECHO_T}no" >&6
10224 if test $ac_cv_prog_liblockfile = yes; then
10225 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10226 This probably means that movemail could lose mail.
10227 There may be a \`development' package to install containing liblockfile." >&5
10228 echo "$as_me: error: Shared liblockfile found but can't link against it.
10229 This probably means that movemail could lose mail.
10230 There may be a \`development' package to install containing liblockfile." >&2;}
10231 { (exit 1); exit 1; }; }
10232 else :
10236 for ac_func in touchlock
10238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10239 echo "$as_me:$LINENO: checking for $ac_func" >&5
10240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10241 if eval "test \"\${$as_ac_var+set}\" = set"; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244 cat >conftest.$ac_ext <<_ACEOF
10245 #line $LINENO "configure"
10246 #include "confdefs.h"
10247 /* System header to define __stub macros and hopefully few prototypes,
10248 which can conflict with char $ac_func (); below. */
10249 #include <assert.h>
10250 /* Override any gcc2 internal prototype to avoid an error. */
10251 #ifdef __cplusplus
10252 extern "C"
10253 #endif
10254 /* We use char because int might match the return type of a gcc2
10255 builtin and then its argument prototype would still apply. */
10256 char $ac_func ();
10257 char (*f) ();
10260 main ()
10262 /* The GNU C library defines this for functions which it implements
10263 to always fail with ENOSYS. Some functions are actually named
10264 something starting with __ and the normal name is an alias. */
10265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10266 choke me
10267 #else
10268 f = $ac_func;
10269 #endif
10272 return 0;
10274 _ACEOF
10275 rm -f conftest.$ac_objext conftest$ac_exeext
10276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10277 (eval $ac_link) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } &&
10281 { ac_try='test -s conftest$ac_exeext'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10284 ac_status=$?
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10287 eval "$as_ac_var=yes"
10288 else
10289 echo "$as_me: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10291 eval "$as_ac_var=no"
10293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10297 if test `eval echo '${'$as_ac_var'}'` = yes; then
10298 cat >>confdefs.h <<_ACEOF
10299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10300 _ACEOF
10303 done
10306 for ac_header in maillock.h
10308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10310 echo "$as_me:$LINENO: checking for $ac_header" >&5
10311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10317 else
10318 # Is the header compilable?
10319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10321 cat >conftest.$ac_ext <<_ACEOF
10322 #line $LINENO "configure"
10323 #include "confdefs.h"
10324 $ac_includes_default
10325 #include <$ac_header>
10326 _ACEOF
10327 rm -f conftest.$ac_objext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329 (eval $ac_compile) 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try='test -s conftest.$ac_objext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_header_compiler=yes
10340 else
10341 echo "$as_me: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10343 ac_header_compiler=no
10345 rm -f conftest.$ac_objext conftest.$ac_ext
10346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10347 echo "${ECHO_T}$ac_header_compiler" >&6
10349 # Is the header present?
10350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10352 cat >conftest.$ac_ext <<_ACEOF
10353 #line $LINENO "configure"
10354 #include "confdefs.h"
10355 #include <$ac_header>
10356 _ACEOF
10357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10359 ac_status=$?
10360 grep -v '^ *+' conftest.er1 >conftest.err
10361 rm -f conftest.er1
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } >/dev/null; then
10365 if test -s conftest.err; then
10366 ac_cpp_err=$ac_c_preproc_warn_flag
10367 else
10368 ac_cpp_err=
10370 else
10371 ac_cpp_err=yes
10373 if test -z "$ac_cpp_err"; then
10374 ac_header_preproc=yes
10375 else
10376 echo "$as_me: failed program was:" >&5
10377 cat conftest.$ac_ext >&5
10378 ac_header_preproc=no
10380 rm -f conftest.err conftest.$ac_ext
10381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10382 echo "${ECHO_T}$ac_header_preproc" >&6
10384 # So? What about this header?
10385 case $ac_header_compiler:$ac_header_preproc in
10386 yes:no )
10387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10391 no:yes )
10392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10398 esac
10399 echo "$as_me:$LINENO: checking for $ac_header" >&5
10400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404 eval "$as_ac_Header=$ac_header_preproc"
10406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10411 cat >>confdefs.h <<_ACEOF
10412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10413 _ACEOF
10417 done
10487 for ac_func in gethostname getdomainname dup2 \
10488 rename closedir mkdir rmdir sysinfo \
10489 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
10490 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
10491 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
10492 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10493 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10494 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
10495 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
10497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10498 echo "$as_me:$LINENO: checking for $ac_func" >&5
10499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10500 if eval "test \"\${$as_ac_var+set}\" = set"; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10503 cat >conftest.$ac_ext <<_ACEOF
10504 #line $LINENO "configure"
10505 #include "confdefs.h"
10506 /* System header to define __stub macros and hopefully few prototypes,
10507 which can conflict with char $ac_func (); below. */
10508 #include <assert.h>
10509 /* Override any gcc2 internal prototype to avoid an error. */
10510 #ifdef __cplusplus
10511 extern "C"
10512 #endif
10513 /* We use char because int might match the return type of a gcc2
10514 builtin and then its argument prototype would still apply. */
10515 char $ac_func ();
10516 char (*f) ();
10519 main ()
10521 /* The GNU C library defines this for functions which it implements
10522 to always fail with ENOSYS. Some functions are actually named
10523 something starting with __ and the normal name is an alias. */
10524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10525 choke me
10526 #else
10527 f = $ac_func;
10528 #endif
10531 return 0;
10533 _ACEOF
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536 (eval $ac_link) 2>&5
10537 ac_status=$?
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } &&
10540 { ac_try='test -s conftest$ac_exeext'
10541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10543 ac_status=$?
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
10546 eval "$as_ac_var=yes"
10547 else
10548 echo "$as_me: failed program was:" >&5
10549 cat conftest.$ac_ext >&5
10550 eval "$as_ac_var=no"
10552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10556 if test `eval echo '${'$as_ac_var'}'` = yes; then
10557 cat >>confdefs.h <<_ACEOF
10558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10559 _ACEOF
10562 done
10566 for ac_header in sys/un.h
10568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10570 echo "$as_me:$LINENO: checking for $ac_header" >&5
10571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10577 else
10578 # Is the header compilable?
10579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10581 cat >conftest.$ac_ext <<_ACEOF
10582 #line $LINENO "configure"
10583 #include "confdefs.h"
10584 $ac_includes_default
10585 #include <$ac_header>
10586 _ACEOF
10587 rm -f conftest.$ac_objext
10588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10589 (eval $ac_compile) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } &&
10593 { ac_try='test -s conftest.$ac_objext'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }; then
10599 ac_header_compiler=yes
10600 else
10601 echo "$as_me: failed program was:" >&5
10602 cat conftest.$ac_ext >&5
10603 ac_header_compiler=no
10605 rm -f conftest.$ac_objext conftest.$ac_ext
10606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10607 echo "${ECHO_T}$ac_header_compiler" >&6
10609 # Is the header present?
10610 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10612 cat >conftest.$ac_ext <<_ACEOF
10613 #line $LINENO "configure"
10614 #include "confdefs.h"
10615 #include <$ac_header>
10616 _ACEOF
10617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10619 ac_status=$?
10620 grep -v '^ *+' conftest.er1 >conftest.err
10621 rm -f conftest.er1
10622 cat conftest.err >&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } >/dev/null; then
10625 if test -s conftest.err; then
10626 ac_cpp_err=$ac_c_preproc_warn_flag
10627 else
10628 ac_cpp_err=
10630 else
10631 ac_cpp_err=yes
10633 if test -z "$ac_cpp_err"; then
10634 ac_header_preproc=yes
10635 else
10636 echo "$as_me: failed program was:" >&5
10637 cat conftest.$ac_ext >&5
10638 ac_header_preproc=no
10640 rm -f conftest.err conftest.$ac_ext
10641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10642 echo "${ECHO_T}$ac_header_preproc" >&6
10644 # So? What about this header?
10645 case $ac_header_compiler:$ac_header_preproc in
10646 yes:no )
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10651 no:yes )
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10658 esac
10659 echo "$as_me:$LINENO: checking for $ac_header" >&5
10660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 else
10664 eval "$as_ac_Header=$ac_header_preproc"
10666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10671 cat >>confdefs.h <<_ACEOF
10672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10673 _ACEOF
10677 done
10682 for ac_header in sys/time.h unistd.h
10684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10686 echo "$as_me:$LINENO: checking for $ac_header" >&5
10687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10693 else
10694 # Is the header compilable?
10695 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10697 cat >conftest.$ac_ext <<_ACEOF
10698 #line $LINENO "configure"
10699 #include "confdefs.h"
10700 $ac_includes_default
10701 #include <$ac_header>
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705 (eval $ac_compile) 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try='test -s conftest.$ac_objext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 ac_header_compiler=yes
10716 else
10717 echo "$as_me: failed program was:" >&5
10718 cat conftest.$ac_ext >&5
10719 ac_header_compiler=no
10721 rm -f conftest.$ac_objext conftest.$ac_ext
10722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10723 echo "${ECHO_T}$ac_header_compiler" >&6
10725 # Is the header present?
10726 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10728 cat >conftest.$ac_ext <<_ACEOF
10729 #line $LINENO "configure"
10730 #include "confdefs.h"
10731 #include <$ac_header>
10732 _ACEOF
10733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10735 ac_status=$?
10736 grep -v '^ *+' conftest.er1 >conftest.err
10737 rm -f conftest.er1
10738 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } >/dev/null; then
10741 if test -s conftest.err; then
10742 ac_cpp_err=$ac_c_preproc_warn_flag
10743 else
10744 ac_cpp_err=
10746 else
10747 ac_cpp_err=yes
10749 if test -z "$ac_cpp_err"; then
10750 ac_header_preproc=yes
10751 else
10752 echo "$as_me: failed program was:" >&5
10753 cat conftest.$ac_ext >&5
10754 ac_header_preproc=no
10756 rm -f conftest.err conftest.$ac_ext
10757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10758 echo "${ECHO_T}$ac_header_preproc" >&6
10760 # So? What about this header?
10761 case $ac_header_compiler:$ac_header_preproc in
10762 yes:no )
10763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10767 no:yes )
10768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10774 esac
10775 echo "$as_me:$LINENO: checking for $ac_header" >&5
10776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 else
10780 eval "$as_ac_Header=$ac_header_preproc"
10782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10787 cat >>confdefs.h <<_ACEOF
10788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10789 _ACEOF
10793 done
10796 for ac_func in alarm
10798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10799 echo "$as_me:$LINENO: checking for $ac_func" >&5
10800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10801 if eval "test \"\${$as_ac_var+set}\" = set"; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804 cat >conftest.$ac_ext <<_ACEOF
10805 #line $LINENO "configure"
10806 #include "confdefs.h"
10807 /* System header to define __stub macros and hopefully few prototypes,
10808 which can conflict with char $ac_func (); below. */
10809 #include <assert.h>
10810 /* Override any gcc2 internal prototype to avoid an error. */
10811 #ifdef __cplusplus
10812 extern "C"
10813 #endif
10814 /* We use char because int might match the return type of a gcc2
10815 builtin and then its argument prototype would still apply. */
10816 char $ac_func ();
10817 char (*f) ();
10820 main ()
10822 /* The GNU C library defines this for functions which it implements
10823 to always fail with ENOSYS. Some functions are actually named
10824 something starting with __ and the normal name is an alias. */
10825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10826 choke me
10827 #else
10828 f = $ac_func;
10829 #endif
10832 return 0;
10834 _ACEOF
10835 rm -f conftest.$ac_objext conftest$ac_exeext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10837 (eval $ac_link) 2>&5
10838 ac_status=$?
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); } &&
10841 { ac_try='test -s conftest$ac_exeext'
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
10847 eval "$as_ac_var=yes"
10848 else
10849 echo "$as_me: failed program was:" >&5
10850 cat conftest.$ac_ext >&5
10851 eval "$as_ac_var=no"
10853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10857 if test `eval echo '${'$as_ac_var'}'` = yes; then
10858 cat >>confdefs.h <<_ACEOF
10859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10860 _ACEOF
10863 done
10865 echo "$as_me:$LINENO: checking for working mktime" >&5
10866 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10867 if test "${ac_cv_func_working_mktime+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870 if test "$cross_compiling" = yes; then
10871 ac_cv_func_working_mktime=no
10872 else
10873 cat >conftest.$ac_ext <<_ACEOF
10874 #line $LINENO "configure"
10875 #include "confdefs.h"
10876 /* Test program from Paul Eggert and Tony Leneis. */
10877 #if TIME_WITH_SYS_TIME
10878 # include <sys/time.h>
10879 # include <time.h>
10880 #else
10881 # if HAVE_SYS_TIME_H
10882 # include <sys/time.h>
10883 # else
10884 # include <time.h>
10885 # endif
10886 #endif
10888 #if HAVE_UNISTD_H
10889 # include <unistd.h>
10890 #endif
10892 #if !HAVE_ALARM
10893 # define alarm(X) /* empty */
10894 #endif
10896 /* Work around redefinition to rpl_putenv by other config tests. */
10897 #undef putenv
10899 static time_t time_t_max;
10901 /* Values we'll use to set the TZ environment variable. */
10902 static const char *const tz_strings[] = {
10903 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10904 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10906 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10908 /* Fail if mktime fails to convert a date in the spring-forward gap.
10909 Based on a problem report from Andreas Jaeger. */
10910 static void
10911 spring_forward_gap ()
10913 /* glibc (up to about 1998-10-07) failed this test. */
10914 struct tm tm;
10916 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10917 instead of "TZ=America/Vancouver" in order to detect the bug even
10918 on systems that don't support the Olson extension, or don't have the
10919 full zoneinfo tables installed. */
10920 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10922 tm.tm_year = 98;
10923 tm.tm_mon = 3;
10924 tm.tm_mday = 5;
10925 tm.tm_hour = 2;
10926 tm.tm_min = 0;
10927 tm.tm_sec = 0;
10928 tm.tm_isdst = -1;
10929 if (mktime (&tm) == (time_t)-1)
10930 exit (1);
10933 static void
10934 mktime_test (now)
10935 time_t now;
10937 struct tm *lt;
10938 if ((lt = localtime (&now)) && mktime (lt) != now)
10939 exit (1);
10940 now = time_t_max - now;
10941 if ((lt = localtime (&now)) && mktime (lt) != now)
10942 exit (1);
10945 static void
10946 irix_6_4_bug ()
10948 /* Based on code from Ariel Faigon. */
10949 struct tm tm;
10950 tm.tm_year = 96;
10951 tm.tm_mon = 3;
10952 tm.tm_mday = 0;
10953 tm.tm_hour = 0;
10954 tm.tm_min = 0;
10955 tm.tm_sec = 0;
10956 tm.tm_isdst = -1;
10957 mktime (&tm);
10958 if (tm.tm_mon != 2 || tm.tm_mday != 31)
10959 exit (1);
10962 static void
10963 bigtime_test (j)
10964 int j;
10966 struct tm tm;
10967 time_t now;
10968 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10969 now = mktime (&tm);
10970 if (now != (time_t) -1)
10972 struct tm *lt = localtime (&now);
10973 if (! (lt
10974 && lt->tm_year == tm.tm_year
10975 && lt->tm_mon == tm.tm_mon
10976 && lt->tm_mday == tm.tm_mday
10977 && lt->tm_hour == tm.tm_hour
10978 && lt->tm_min == tm.tm_min
10979 && lt->tm_sec == tm.tm_sec
10980 && lt->tm_yday == tm.tm_yday
10981 && lt->tm_wday == tm.tm_wday
10982 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10983 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10984 exit (1);
10989 main ()
10991 time_t t, delta;
10992 int i, j;
10994 /* This test makes some buggy mktime implementations loop.
10995 Give up after 60 seconds; a mktime slower than that
10996 isn't worth using anyway. */
10997 alarm (60);
10999 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11000 continue;
11001 time_t_max--;
11002 delta = time_t_max / 997; /* a suitable prime number */
11003 for (i = 0; i < N_STRINGS; i++)
11005 if (tz_strings[i])
11006 putenv (tz_strings[i]);
11008 for (t = 0; t <= time_t_max - delta; t += delta)
11009 mktime_test (t);
11010 mktime_test ((time_t) 60 * 60);
11011 mktime_test ((time_t) 60 * 60 * 24);
11013 for (j = 1; 0 < j; j *= 2)
11014 bigtime_test (j);
11015 bigtime_test (j - 1);
11017 irix_6_4_bug ();
11018 spring_forward_gap ();
11019 exit (0);
11021 _ACEOF
11022 rm -f conftest$ac_exeext
11023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11024 (eval $ac_link) 2>&5
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_cv_func_working_mktime=yes
11034 else
11035 echo "$as_me: program exited with status $ac_status" >&5
11036 echo "$as_me: failed program was:" >&5
11037 cat conftest.$ac_ext >&5
11038 ( exit $ac_status )
11039 ac_cv_func_working_mktime=no
11041 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11044 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11045 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11046 if test $ac_cv_func_working_mktime = no; then
11047 LIBOBJS="$LIBOBJS mktime.$ac_objext"
11050 if test "$ac_cv_func_working_mktime" = no; then
11052 cat >>confdefs.h <<\_ACEOF
11053 #define BROKEN_MKTIME 1
11054 _ACEOF
11058 ac_have_func=no # yes means we've found a way to get the load average.
11060 # Make sure getloadavg.c is where it belongs, at configure-time.
11061 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11062 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11063 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11064 { (exit 1); exit 1; }; }
11066 ac_save_LIBS=$LIBS
11068 # Check for getloadavg, but be sure not to touch the cache variable.
11069 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11070 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11071 if test "${ac_cv_func_getloadavg+set}" = set; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074 cat >conftest.$ac_ext <<_ACEOF
11075 #line $LINENO "configure"
11076 #include "confdefs.h"
11077 /* System header to define __stub macros and hopefully few prototypes,
11078 which can conflict with char getloadavg (); below. */
11079 #include <assert.h>
11080 /* Override any gcc2 internal prototype to avoid an error. */
11081 #ifdef __cplusplus
11082 extern "C"
11083 #endif
11084 /* We use char because int might match the return type of a gcc2
11085 builtin and then its argument prototype would still apply. */
11086 char getloadavg ();
11087 char (*f) ();
11090 main ()
11092 /* The GNU C library defines this for functions which it implements
11093 to always fail with ENOSYS. Some functions are actually named
11094 something starting with __ and the normal name is an alias. */
11095 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11096 choke me
11097 #else
11098 f = getloadavg;
11099 #endif
11102 return 0;
11104 _ACEOF
11105 rm -f conftest.$ac_objext conftest$ac_exeext
11106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11107 (eval $ac_link) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try='test -s conftest$ac_exeext'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 ac_cv_func_getloadavg=yes
11118 else
11119 echo "$as_me: failed program was:" >&5
11120 cat conftest.$ac_ext >&5
11121 ac_cv_func_getloadavg=no
11123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11125 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11126 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11127 if test $ac_cv_func_getloadavg = yes; then
11128 exit 0
11129 else
11130 exit 1
11132 ) && ac_have_func=yes
11134 # On HPUX9, an unprivileged user can get load averages through this function.
11136 for ac_func in pstat_getdynamic
11138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11139 echo "$as_me:$LINENO: checking for $ac_func" >&5
11140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11141 if eval "test \"\${$as_ac_var+set}\" = set"; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11143 else
11144 cat >conftest.$ac_ext <<_ACEOF
11145 #line $LINENO "configure"
11146 #include "confdefs.h"
11147 /* System header to define __stub macros and hopefully few prototypes,
11148 which can conflict with char $ac_func (); below. */
11149 #include <assert.h>
11150 /* Override any gcc2 internal prototype to avoid an error. */
11151 #ifdef __cplusplus
11152 extern "C"
11153 #endif
11154 /* We use char because int might match the return type of a gcc2
11155 builtin and then its argument prototype would still apply. */
11156 char $ac_func ();
11157 char (*f) ();
11160 main ()
11162 /* The GNU C library defines this for functions which it implements
11163 to always fail with ENOSYS. Some functions are actually named
11164 something starting with __ and the normal name is an alias. */
11165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11166 choke me
11167 #else
11168 f = $ac_func;
11169 #endif
11172 return 0;
11174 _ACEOF
11175 rm -f conftest.$ac_objext conftest$ac_exeext
11176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11177 (eval $ac_link) 2>&5
11178 ac_status=$?
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try='test -s conftest$ac_exeext'
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; }; then
11187 eval "$as_ac_var=yes"
11188 else
11189 echo "$as_me: failed program was:" >&5
11190 cat conftest.$ac_ext >&5
11191 eval "$as_ac_var=no"
11193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11197 if test `eval echo '${'$as_ac_var'}'` = yes; then
11198 cat >>confdefs.h <<_ACEOF
11199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11200 _ACEOF
11203 done
11206 # Solaris has libkstat which does not require root.
11208 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
11209 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
11210 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213 ac_check_lib_save_LIBS=$LIBS
11214 LIBS="-lkstat $LIBS"
11215 cat >conftest.$ac_ext <<_ACEOF
11216 #line $LINENO "configure"
11217 #include "confdefs.h"
11219 /* Override any gcc2 internal prototype to avoid an error. */
11220 #ifdef __cplusplus
11221 extern "C"
11222 #endif
11223 /* We use char because int might match the return type of a gcc2
11224 builtin and then its argument prototype would still apply. */
11225 char kstat_open ();
11227 main ()
11229 kstat_open ();
11231 return 0;
11233 _ACEOF
11234 rm -f conftest.$ac_objext conftest$ac_exeext
11235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11236 (eval $ac_link) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try='test -s conftest$ac_exeext'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
11246 ac_cv_lib_kstat_kstat_open=yes
11247 else
11248 echo "$as_me: failed program was:" >&5
11249 cat conftest.$ac_ext >&5
11250 ac_cv_lib_kstat_kstat_open=no
11252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11253 LIBS=$ac_check_lib_save_LIBS
11255 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11256 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
11257 if test $ac_cv_lib_kstat_kstat_open = yes; then
11258 cat >>confdefs.h <<_ACEOF
11259 #define HAVE_LIBKSTAT 1
11260 _ACEOF
11262 LIBS="-lkstat $LIBS"
11266 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11268 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11269 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11270 # to get the right answer into the cache.
11271 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11272 if test $ac_have_func = no; then
11273 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11274 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
11275 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278 ac_check_lib_save_LIBS=$LIBS
11279 LIBS="-lelf $LIBS"
11280 cat >conftest.$ac_ext <<_ACEOF
11281 #line $LINENO "configure"
11282 #include "confdefs.h"
11284 /* Override any gcc2 internal prototype to avoid an error. */
11285 #ifdef __cplusplus
11286 extern "C"
11287 #endif
11288 /* We use char because int might match the return type of a gcc2
11289 builtin and then its argument prototype would still apply. */
11290 char elf_begin ();
11292 main ()
11294 elf_begin ();
11296 return 0;
11298 _ACEOF
11299 rm -f conftest.$ac_objext conftest$ac_exeext
11300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11301 (eval $ac_link) 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try='test -s conftest$ac_exeext'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; }; then
11311 ac_cv_lib_elf_elf_begin=yes
11312 else
11313 echo "$as_me: failed program was:" >&5
11314 cat conftest.$ac_ext >&5
11315 ac_cv_lib_elf_elf_begin=no
11317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11318 LIBS=$ac_check_lib_save_LIBS
11320 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
11321 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
11322 if test $ac_cv_lib_elf_elf_begin = yes; then
11323 LIBS="-lelf $LIBS"
11327 if test $ac_have_func = no; then
11328 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
11329 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
11330 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 else
11333 ac_check_lib_save_LIBS=$LIBS
11334 LIBS="-lkvm $LIBS"
11335 cat >conftest.$ac_ext <<_ACEOF
11336 #line $LINENO "configure"
11337 #include "confdefs.h"
11339 /* Override any gcc2 internal prototype to avoid an error. */
11340 #ifdef __cplusplus
11341 extern "C"
11342 #endif
11343 /* We use char because int might match the return type of a gcc2
11344 builtin and then its argument prototype would still apply. */
11345 char kvm_open ();
11347 main ()
11349 kvm_open ();
11351 return 0;
11353 _ACEOF
11354 rm -f conftest.$ac_objext conftest$ac_exeext
11355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11356 (eval $ac_link) 2>&5
11357 ac_status=$?
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } &&
11360 { ac_try='test -s conftest$ac_exeext'
11361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 (eval $ac_try) 2>&5
11363 ac_status=$?
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; }; then
11366 ac_cv_lib_kvm_kvm_open=yes
11367 else
11368 echo "$as_me: failed program was:" >&5
11369 cat conftest.$ac_ext >&5
11370 ac_cv_lib_kvm_kvm_open=no
11372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11373 LIBS=$ac_check_lib_save_LIBS
11375 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11376 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
11377 if test $ac_cv_lib_kvm_kvm_open = yes; then
11378 LIBS="-lkvm $LIBS"
11381 # Check for the 4.4BSD definition of getloadavg.
11382 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11383 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
11384 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387 ac_check_lib_save_LIBS=$LIBS
11388 LIBS="-lutil $LIBS"
11389 cat >conftest.$ac_ext <<_ACEOF
11390 #line $LINENO "configure"
11391 #include "confdefs.h"
11393 /* Override any gcc2 internal prototype to avoid an error. */
11394 #ifdef __cplusplus
11395 extern "C"
11396 #endif
11397 /* We use char because int might match the return type of a gcc2
11398 builtin and then its argument prototype would still apply. */
11399 char getloadavg ();
11401 main ()
11403 getloadavg ();
11405 return 0;
11407 _ACEOF
11408 rm -f conftest.$ac_objext conftest$ac_exeext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11410 (eval $ac_link) 2>&5
11411 ac_status=$?
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try='test -s conftest$ac_exeext'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420 ac_cv_lib_util_getloadavg=yes
11421 else
11422 echo "$as_me: failed program was:" >&5
11423 cat conftest.$ac_ext >&5
11424 ac_cv_lib_util_getloadavg=no
11426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11427 LIBS=$ac_check_lib_save_LIBS
11429 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11430 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
11431 if test $ac_cv_lib_util_getloadavg = yes; then
11432 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11437 if test $ac_have_func = no; then
11438 # There is a commonly available library for RS/6000 AIX.
11439 # Since it is not a standard part of AIX, it might be installed locally.
11440 ac_getloadavg_LIBS=$LIBS
11441 LIBS="-L/usr/local/lib $LIBS"
11442 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11443 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
11444 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 else
11447 ac_check_lib_save_LIBS=$LIBS
11448 LIBS="-lgetloadavg $LIBS"
11449 cat >conftest.$ac_ext <<_ACEOF
11450 #line $LINENO "configure"
11451 #include "confdefs.h"
11453 /* Override any gcc2 internal prototype to avoid an error. */
11454 #ifdef __cplusplus
11455 extern "C"
11456 #endif
11457 /* We use char because int might match the return type of a gcc2
11458 builtin and then its argument prototype would still apply. */
11459 char getloadavg ();
11461 main ()
11463 getloadavg ();
11465 return 0;
11467 _ACEOF
11468 rm -f conftest.$ac_objext conftest$ac_exeext
11469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11470 (eval $ac_link) 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -s conftest$ac_exeext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11477 ac_status=$?
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_cv_lib_getloadavg_getloadavg=yes
11481 else
11482 echo "$as_me: failed program was:" >&5
11483 cat conftest.$ac_ext >&5
11484 ac_cv_lib_getloadavg_getloadavg=no
11486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11487 LIBS=$ac_check_lib_save_LIBS
11489 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11490 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
11491 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11492 LIBS="-lgetloadavg $LIBS"
11493 else
11494 LIBS=$ac_getloadavg_LIBS
11499 # Make sure it is really in the library, if we think we found it,
11500 # otherwise set up the replacement function.
11502 for ac_func in getloadavg
11504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11505 echo "$as_me:$LINENO: checking for $ac_func" >&5
11506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11507 if eval "test \"\${$as_ac_var+set}\" = set"; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510 cat >conftest.$ac_ext <<_ACEOF
11511 #line $LINENO "configure"
11512 #include "confdefs.h"
11513 /* System header to define __stub macros and hopefully few prototypes,
11514 which can conflict with char $ac_func (); below. */
11515 #include <assert.h>
11516 /* Override any gcc2 internal prototype to avoid an error. */
11517 #ifdef __cplusplus
11518 extern "C"
11519 #endif
11520 /* We use char because int might match the return type of a gcc2
11521 builtin and then its argument prototype would still apply. */
11522 char $ac_func ();
11523 char (*f) ();
11526 main ()
11528 /* The GNU C library defines this for functions which it implements
11529 to always fail with ENOSYS. Some functions are actually named
11530 something starting with __ and the normal name is an alias. */
11531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11532 choke me
11533 #else
11534 f = $ac_func;
11535 #endif
11538 return 0;
11540 _ACEOF
11541 rm -f conftest.$ac_objext conftest$ac_exeext
11542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11543 (eval $ac_link) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } &&
11547 { ac_try='test -s conftest$ac_exeext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 eval "$as_ac_var=yes"
11554 else
11555 echo "$as_me: failed program was:" >&5
11556 cat conftest.$ac_ext >&5
11557 eval "$as_ac_var=no"
11559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11563 if test `eval echo '${'$as_ac_var'}'` = yes; then
11564 cat >>confdefs.h <<_ACEOF
11565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11566 _ACEOF
11568 else
11569 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11571 cat >>confdefs.h <<\_ACEOF
11572 #define C_GETLOADAVG 1
11573 _ACEOF
11575 # Figure out what our getloadavg.c needs.
11576 ac_have_func=no
11577 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11578 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11579 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11580 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11584 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11585 else
11586 # Is the header compilable?
11587 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
11588 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
11589 cat >conftest.$ac_ext <<_ACEOF
11590 #line $LINENO "configure"
11591 #include "confdefs.h"
11592 $ac_includes_default
11593 #include <sys/dg_sys_info.h>
11594 _ACEOF
11595 rm -f conftest.$ac_objext
11596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11597 (eval $ac_compile) 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } &&
11601 { ac_try='test -s conftest.$ac_objext'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; }; then
11607 ac_header_compiler=yes
11608 else
11609 echo "$as_me: failed program was:" >&5
11610 cat conftest.$ac_ext >&5
11611 ac_header_compiler=no
11613 rm -f conftest.$ac_objext conftest.$ac_ext
11614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11615 echo "${ECHO_T}$ac_header_compiler" >&6
11617 # Is the header present?
11618 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
11619 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
11620 cat >conftest.$ac_ext <<_ACEOF
11621 #line $LINENO "configure"
11622 #include "confdefs.h"
11623 #include <sys/dg_sys_info.h>
11624 _ACEOF
11625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11627 ac_status=$?
11628 grep -v '^ *+' conftest.er1 >conftest.err
11629 rm -f conftest.er1
11630 cat conftest.err >&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } >/dev/null; then
11633 if test -s conftest.err; then
11634 ac_cpp_err=$ac_c_preproc_warn_flag
11635 else
11636 ac_cpp_err=
11638 else
11639 ac_cpp_err=yes
11641 if test -z "$ac_cpp_err"; then
11642 ac_header_preproc=yes
11643 else
11644 echo "$as_me: failed program was:" >&5
11645 cat conftest.$ac_ext >&5
11646 ac_header_preproc=no
11648 rm -f conftest.err conftest.$ac_ext
11649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11650 echo "${ECHO_T}$ac_header_preproc" >&6
11652 # So? What about this header?
11653 case $ac_header_compiler:$ac_header_preproc in
11654 yes:no )
11655 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
11656 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11657 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11658 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11659 no:yes )
11660 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
11661 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
11662 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
11663 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
11664 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11665 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11666 esac
11667 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11668 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11669 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
11674 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11675 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11678 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11679 ac_have_func=yes
11681 cat >>confdefs.h <<\_ACEOF
11682 #define DGUX 1
11683 _ACEOF
11686 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11687 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
11688 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 else
11691 ac_check_lib_save_LIBS=$LIBS
11692 LIBS="-ldgc $LIBS"
11693 cat >conftest.$ac_ext <<_ACEOF
11694 #line $LINENO "configure"
11695 #include "confdefs.h"
11697 /* Override any gcc2 internal prototype to avoid an error. */
11698 #ifdef __cplusplus
11699 extern "C"
11700 #endif
11701 /* We use char because int might match the return type of a gcc2
11702 builtin and then its argument prototype would still apply. */
11703 char dg_sys_info ();
11705 main ()
11707 dg_sys_info ();
11709 return 0;
11711 _ACEOF
11712 rm -f conftest.$ac_objext conftest$ac_exeext
11713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11714 (eval $ac_link) 2>&5
11715 ac_status=$?
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try='test -s conftest$ac_exeext'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11724 ac_cv_lib_dgc_dg_sys_info=yes
11725 else
11726 echo "$as_me: failed program was:" >&5
11727 cat conftest.$ac_ext >&5
11728 ac_cv_lib_dgc_dg_sys_info=no
11730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11731 LIBS=$ac_check_lib_save_LIBS
11733 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11734 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
11735 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11736 cat >>confdefs.h <<_ACEOF
11737 #define HAVE_LIBDGC 1
11738 _ACEOF
11740 LIBS="-ldgc $LIBS"
11748 if test "${ac_cv_header_locale_h+set}" = set; then
11749 echo "$as_me:$LINENO: checking for locale.h" >&5
11750 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11751 if test "${ac_cv_header_locale_h+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11755 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11756 else
11757 # Is the header compilable?
11758 echo "$as_me:$LINENO: checking locale.h usability" >&5
11759 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
11760 cat >conftest.$ac_ext <<_ACEOF
11761 #line $LINENO "configure"
11762 #include "confdefs.h"
11763 $ac_includes_default
11764 #include <locale.h>
11765 _ACEOF
11766 rm -f conftest.$ac_objext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768 (eval $ac_compile) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -s conftest.$ac_objext'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 ac_header_compiler=yes
11779 else
11780 echo "$as_me: failed program was:" >&5
11781 cat conftest.$ac_ext >&5
11782 ac_header_compiler=no
11784 rm -f conftest.$ac_objext conftest.$ac_ext
11785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11786 echo "${ECHO_T}$ac_header_compiler" >&6
11788 # Is the header present?
11789 echo "$as_me:$LINENO: checking locale.h presence" >&5
11790 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
11791 cat >conftest.$ac_ext <<_ACEOF
11792 #line $LINENO "configure"
11793 #include "confdefs.h"
11794 #include <locale.h>
11795 _ACEOF
11796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11798 ac_status=$?
11799 grep -v '^ *+' conftest.er1 >conftest.err
11800 rm -f conftest.er1
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } >/dev/null; then
11804 if test -s conftest.err; then
11805 ac_cpp_err=$ac_c_preproc_warn_flag
11806 else
11807 ac_cpp_err=
11809 else
11810 ac_cpp_err=yes
11812 if test -z "$ac_cpp_err"; then
11813 ac_header_preproc=yes
11814 else
11815 echo "$as_me: failed program was:" >&5
11816 cat conftest.$ac_ext >&5
11817 ac_header_preproc=no
11819 rm -f conftest.err conftest.$ac_ext
11820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11821 echo "${ECHO_T}$ac_header_preproc" >&6
11823 # So? What about this header?
11824 case $ac_header_compiler:$ac_header_preproc in
11825 yes:no )
11826 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
11827 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11829 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11830 no:yes )
11831 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
11832 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
11833 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
11834 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11836 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11837 esac
11838 echo "$as_me:$LINENO: checking for locale.h" >&5
11839 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11840 if test "${ac_cv_header_locale_h+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11842 else
11843 ac_cv_header_locale_h=$ac_header_preproc
11845 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11846 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11852 for ac_func in setlocale
11854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11855 echo "$as_me:$LINENO: checking for $ac_func" >&5
11856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11857 if eval "test \"\${$as_ac_var+set}\" = set"; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860 cat >conftest.$ac_ext <<_ACEOF
11861 #line $LINENO "configure"
11862 #include "confdefs.h"
11863 /* System header to define __stub macros and hopefully few prototypes,
11864 which can conflict with char $ac_func (); below. */
11865 #include <assert.h>
11866 /* Override any gcc2 internal prototype to avoid an error. */
11867 #ifdef __cplusplus
11868 extern "C"
11869 #endif
11870 /* We use char because int might match the return type of a gcc2
11871 builtin and then its argument prototype would still apply. */
11872 char $ac_func ();
11873 char (*f) ();
11876 main ()
11878 /* The GNU C library defines this for functions which it implements
11879 to always fail with ENOSYS. Some functions are actually named
11880 something starting with __ and the normal name is an alias. */
11881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11882 choke me
11883 #else
11884 f = $ac_func;
11885 #endif
11888 return 0;
11890 _ACEOF
11891 rm -f conftest.$ac_objext conftest$ac_exeext
11892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11893 (eval $ac_link) 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
11897 { ac_try='test -s conftest$ac_exeext'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }; then
11903 eval "$as_ac_var=yes"
11904 else
11905 echo "$as_me: failed program was:" >&5
11906 cat conftest.$ac_ext >&5
11907 eval "$as_ac_var=no"
11909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11913 if test `eval echo '${'$as_ac_var'}'` = yes; then
11914 cat >>confdefs.h <<_ACEOF
11915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11916 _ACEOF
11919 done
11922 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11923 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11924 # Irix 4.0.5F has the header but not the library.
11925 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11926 ac_have_func=yes
11928 cat >>confdefs.h <<\_ACEOF
11929 #define SVR4 1
11930 _ACEOF
11934 if test $ac_have_func = no; then
11935 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11936 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11937 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11938 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11942 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11943 else
11944 # Is the header compilable?
11945 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
11946 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
11947 cat >conftest.$ac_ext <<_ACEOF
11948 #line $LINENO "configure"
11949 #include "confdefs.h"
11950 $ac_includes_default
11951 #include <inq_stats/cpustats.h>
11952 _ACEOF
11953 rm -f conftest.$ac_objext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11955 (eval $ac_compile) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } &&
11959 { ac_try='test -s conftest.$ac_objext'
11960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11962 ac_status=$?
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
11965 ac_header_compiler=yes
11966 else
11967 echo "$as_me: failed program was:" >&5
11968 cat conftest.$ac_ext >&5
11969 ac_header_compiler=no
11971 rm -f conftest.$ac_objext conftest.$ac_ext
11972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11973 echo "${ECHO_T}$ac_header_compiler" >&6
11975 # Is the header present?
11976 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
11977 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
11978 cat >conftest.$ac_ext <<_ACEOF
11979 #line $LINENO "configure"
11980 #include "confdefs.h"
11981 #include <inq_stats/cpustats.h>
11982 _ACEOF
11983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11985 ac_status=$?
11986 grep -v '^ *+' conftest.er1 >conftest.err
11987 rm -f conftest.er1
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } >/dev/null; then
11991 if test -s conftest.err; then
11992 ac_cpp_err=$ac_c_preproc_warn_flag
11993 else
11994 ac_cpp_err=
11996 else
11997 ac_cpp_err=yes
11999 if test -z "$ac_cpp_err"; then
12000 ac_header_preproc=yes
12001 else
12002 echo "$as_me: failed program was:" >&5
12003 cat conftest.$ac_ext >&5
12004 ac_header_preproc=no
12006 rm -f conftest.err conftest.$ac_ext
12007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12008 echo "${ECHO_T}$ac_header_preproc" >&6
12010 # So? What about this header?
12011 case $ac_header_compiler:$ac_header_preproc in
12012 yes:no )
12013 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12014 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12016 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
12017 no:yes )
12018 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
12019 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
12020 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
12021 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
12022 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12023 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
12024 esac
12025 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12026 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12027 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
12032 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12033 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12036 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
12037 ac_have_func=yes
12039 cat >>confdefs.h <<\_ACEOF
12040 #define UMAX 1
12041 _ACEOF
12044 cat >>confdefs.h <<\_ACEOF
12045 #define UMAX4_3 1
12046 _ACEOF
12053 if test $ac_have_func = no; then
12054 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12055 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
12056 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
12057 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12060 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
12061 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
12062 else
12063 # Is the header compilable?
12064 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
12065 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
12066 cat >conftest.$ac_ext <<_ACEOF
12067 #line $LINENO "configure"
12068 #include "confdefs.h"
12069 $ac_includes_default
12070 #include <sys/cpustats.h>
12071 _ACEOF
12072 rm -f conftest.$ac_objext
12073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12074 (eval $ac_compile) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } &&
12078 { ac_try='test -s conftest.$ac_objext'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12081 ac_status=$?
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; }; then
12084 ac_header_compiler=yes
12085 else
12086 echo "$as_me: failed program was:" >&5
12087 cat conftest.$ac_ext >&5
12088 ac_header_compiler=no
12090 rm -f conftest.$ac_objext conftest.$ac_ext
12091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12092 echo "${ECHO_T}$ac_header_compiler" >&6
12094 # Is the header present?
12095 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
12096 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
12097 cat >conftest.$ac_ext <<_ACEOF
12098 #line $LINENO "configure"
12099 #include "confdefs.h"
12100 #include <sys/cpustats.h>
12101 _ACEOF
12102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12104 ac_status=$?
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } >/dev/null; then
12110 if test -s conftest.err; then
12111 ac_cpp_err=$ac_c_preproc_warn_flag
12112 else
12113 ac_cpp_err=
12115 else
12116 ac_cpp_err=yes
12118 if test -z "$ac_cpp_err"; then
12119 ac_header_preproc=yes
12120 else
12121 echo "$as_me: failed program was:" >&5
12122 cat conftest.$ac_ext >&5
12123 ac_header_preproc=no
12125 rm -f conftest.err conftest.$ac_ext
12126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12127 echo "${ECHO_T}$ac_header_preproc" >&6
12129 # So? What about this header?
12130 case $ac_header_compiler:$ac_header_preproc in
12131 yes:no )
12132 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12133 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
12135 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
12136 no:yes )
12137 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
12138 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
12140 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
12142 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
12143 esac
12144 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
12145 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
12146 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149 ac_cv_header_sys_cpustats_h=$ac_header_preproc
12151 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
12152 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
12155 if test $ac_cv_header_sys_cpustats_h = yes; then
12156 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
12157 #define UMAX 1
12158 _ACEOF
12165 if test $ac_have_func = no; then
12167 for ac_header in mach/mach.h
12169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12171 echo "$as_me:$LINENO: checking for $ac_header" >&5
12172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12178 else
12179 # Is the header compilable?
12180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12182 cat >conftest.$ac_ext <<_ACEOF
12183 #line $LINENO "configure"
12184 #include "confdefs.h"
12185 $ac_includes_default
12186 #include <$ac_header>
12187 _ACEOF
12188 rm -f conftest.$ac_objext
12189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12190 (eval $ac_compile) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } &&
12194 { ac_try='test -s conftest.$ac_objext'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12197 ac_status=$?
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12200 ac_header_compiler=yes
12201 else
12202 echo "$as_me: failed program was:" >&5
12203 cat conftest.$ac_ext >&5
12204 ac_header_compiler=no
12206 rm -f conftest.$ac_objext conftest.$ac_ext
12207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12208 echo "${ECHO_T}$ac_header_compiler" >&6
12210 # Is the header present?
12211 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12213 cat >conftest.$ac_ext <<_ACEOF
12214 #line $LINENO "configure"
12215 #include "confdefs.h"
12216 #include <$ac_header>
12217 _ACEOF
12218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12220 ac_status=$?
12221 grep -v '^ *+' conftest.er1 >conftest.err
12222 rm -f conftest.er1
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } >/dev/null; then
12226 if test -s conftest.err; then
12227 ac_cpp_err=$ac_c_preproc_warn_flag
12228 else
12229 ac_cpp_err=
12231 else
12232 ac_cpp_err=yes
12234 if test -z "$ac_cpp_err"; then
12235 ac_header_preproc=yes
12236 else
12237 echo "$as_me: failed program was:" >&5
12238 cat conftest.$ac_ext >&5
12239 ac_header_preproc=no
12241 rm -f conftest.err conftest.$ac_ext
12242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12243 echo "${ECHO_T}$ac_header_preproc" >&6
12245 # So? What about this header?
12246 case $ac_header_compiler:$ac_header_preproc in
12247 yes:no )
12248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12252 no:yes )
12253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12259 esac
12260 echo "$as_me:$LINENO: checking for $ac_header" >&5
12261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265 eval "$as_ac_Header=$ac_header_preproc"
12267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12272 cat >>confdefs.h <<_ACEOF
12273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12274 _ACEOF
12278 done
12283 for ac_header in nlist.h
12285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12287 echo "$as_me:$LINENO: checking for $ac_header" >&5
12288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12294 else
12295 # Is the header compilable?
12296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12298 cat >conftest.$ac_ext <<_ACEOF
12299 #line $LINENO "configure"
12300 #include "confdefs.h"
12301 $ac_includes_default
12302 #include <$ac_header>
12303 _ACEOF
12304 rm -f conftest.$ac_objext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12306 (eval $ac_compile) 2>&5
12307 ac_status=$?
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
12310 { ac_try='test -s conftest.$ac_objext'
12311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312 (eval $ac_try) 2>&5
12313 ac_status=$?
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; }; then
12316 ac_header_compiler=yes
12317 else
12318 echo "$as_me: failed program was:" >&5
12319 cat conftest.$ac_ext >&5
12320 ac_header_compiler=no
12322 rm -f conftest.$ac_objext conftest.$ac_ext
12323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12324 echo "${ECHO_T}$ac_header_compiler" >&6
12326 # Is the header present?
12327 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12329 cat >conftest.$ac_ext <<_ACEOF
12330 #line $LINENO "configure"
12331 #include "confdefs.h"
12332 #include <$ac_header>
12333 _ACEOF
12334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12336 ac_status=$?
12337 grep -v '^ *+' conftest.er1 >conftest.err
12338 rm -f conftest.er1
12339 cat conftest.err >&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } >/dev/null; then
12342 if test -s conftest.err; then
12343 ac_cpp_err=$ac_c_preproc_warn_flag
12344 else
12345 ac_cpp_err=
12347 else
12348 ac_cpp_err=yes
12350 if test -z "$ac_cpp_err"; then
12351 ac_header_preproc=yes
12352 else
12353 echo "$as_me: failed program was:" >&5
12354 cat conftest.$ac_ext >&5
12355 ac_header_preproc=no
12357 rm -f conftest.err conftest.$ac_ext
12358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12359 echo "${ECHO_T}$ac_header_preproc" >&6
12361 # So? What about this header?
12362 case $ac_header_compiler:$ac_header_preproc in
12363 yes:no )
12364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12368 no:yes )
12369 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12370 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12371 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12372 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12375 esac
12376 echo "$as_me:$LINENO: checking for $ac_header" >&5
12377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 else
12381 eval "$as_ac_Header=$ac_header_preproc"
12383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12388 cat >>confdefs.h <<_ACEOF
12389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12390 _ACEOF
12391 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
12392 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
12393 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12395 else
12396 cat >conftest.$ac_ext <<_ACEOF
12397 #line $LINENO "configure"
12398 #include "confdefs.h"
12399 #include <nlist.h>
12402 main ()
12404 static struct nlist ac_aggr;
12405 if (ac_aggr.n_un.n_name)
12406 return 0;
12408 return 0;
12410 _ACEOF
12411 rm -f conftest.$ac_objext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413 (eval $ac_compile) 2>&5
12414 ac_status=$?
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -s conftest.$ac_objext'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12420 ac_status=$?
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; }; then
12423 ac_cv_member_struct_nlist_n_un_n_name=yes
12424 else
12425 echo "$as_me: failed program was:" >&5
12426 cat conftest.$ac_ext >&5
12427 cat >conftest.$ac_ext <<_ACEOF
12428 #line $LINENO "configure"
12429 #include "confdefs.h"
12430 #include <nlist.h>
12433 main ()
12435 static struct nlist ac_aggr;
12436 if (sizeof ac_aggr.n_un.n_name)
12437 return 0;
12439 return 0;
12441 _ACEOF
12442 rm -f conftest.$ac_objext
12443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12444 (eval $ac_compile) 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -s conftest.$ac_objext'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12454 ac_cv_member_struct_nlist_n_un_n_name=yes
12455 else
12456 echo "$as_me: failed program was:" >&5
12457 cat conftest.$ac_ext >&5
12458 ac_cv_member_struct_nlist_n_un_n_name=no
12460 rm -f conftest.$ac_objext conftest.$ac_ext
12462 rm -f conftest.$ac_objext conftest.$ac_ext
12464 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
12465 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
12466 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
12468 cat >>confdefs.h <<_ACEOF
12469 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12470 _ACEOF
12473 cat >>confdefs.h <<\_ACEOF
12474 #define NLIST_NAME_UNION 1
12475 _ACEOF
12482 done
12485 done
12488 # Some definitions of getloadavg require that the program be installed setgid.
12489 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
12490 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
12491 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494 cat >conftest.$ac_ext <<_ACEOF
12495 #line $LINENO "configure"
12496 #include "confdefs.h"
12497 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12498 #ifdef LDAV_PRIVILEGED
12499 Yowza Am I SETGID yet
12500 #endif
12501 _ACEOF
12502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12503 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
12504 ac_cv_func_getloadavg_setgid=yes
12505 else
12506 ac_cv_func_getloadavg_setgid=no
12508 rm -f conftest*
12511 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
12512 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
12513 if test $ac_cv_func_getloadavg_setgid = yes; then
12514 NEED_SETGID=true
12516 cat >>confdefs.h <<\_ACEOF
12517 #define GETLOADAVG_PRIVILEGED 1
12518 _ACEOF
12520 else
12521 NEED_SETGID=false
12524 if test $ac_cv_func_getloadavg_setgid = yes; then
12525 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
12526 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
12527 if test "${ac_cv_group_kmem+set}" = set; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12529 else
12530 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12531 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12532 # If we got an error (system does not support symlinks), try without -L.
12533 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12534 ac_cv_group_kmem=`echo $ac_ls_output \
12535 | sed -ne 's/[ ][ ]*/ /g;
12536 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12537 / /s/.* //;p;'`
12540 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
12541 echo "${ECHO_T}$ac_cv_group_kmem" >&6
12542 KMEM_GROUP=$ac_cv_group_kmem
12544 if test "x$ac_save_LIBS" = x; then
12545 GETLOADAVG_LIBS=$LIBS
12546 else
12547 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
12549 LIBS=$ac_save_LIBS
12553 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12554 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12555 if test "${ac_cv_sys_largefile_source+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 else
12558 while :; do
12559 ac_cv_sys_largefile_source=no
12560 cat >conftest.$ac_ext <<_ACEOF
12561 #line $LINENO "configure"
12562 #include "confdefs.h"
12563 #include <stdio.h>
12565 main ()
12567 return !fseeko;
12569 return 0;
12571 _ACEOF
12572 rm -f conftest.$ac_objext
12573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12574 (eval $ac_compile) 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -s conftest.$ac_objext'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12581 ac_status=$?
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12584 break
12585 else
12586 echo "$as_me: failed program was:" >&5
12587 cat conftest.$ac_ext >&5
12589 rm -f conftest.$ac_objext conftest.$ac_ext
12590 cat >conftest.$ac_ext <<_ACEOF
12591 #line $LINENO "configure"
12592 #include "confdefs.h"
12593 #define _LARGEFILE_SOURCE 1
12594 #include <stdio.h>
12596 main ()
12598 return !fseeko;
12600 return 0;
12602 _ACEOF
12603 rm -f conftest.$ac_objext
12604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12605 (eval $ac_compile) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
12609 { ac_try='test -s conftest.$ac_objext'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 ac_cv_sys_largefile_source=1; break
12616 else
12617 echo "$as_me: failed program was:" >&5
12618 cat conftest.$ac_ext >&5
12620 rm -f conftest.$ac_objext conftest.$ac_ext
12621 break
12622 done
12624 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12625 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12626 if test "$ac_cv_sys_largefile_source" != no; then
12628 cat >>confdefs.h <<_ACEOF
12629 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12630 _ACEOF
12633 rm -f conftest*
12635 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12636 # in glibc 2.1.3, but that breaks too many other things.
12637 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12638 echo "$as_me:$LINENO: checking for fseeko" >&5
12639 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12640 if test "${ac_cv_func_fseeko+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642 else
12643 cat >conftest.$ac_ext <<_ACEOF
12644 #line $LINENO "configure"
12645 #include "confdefs.h"
12646 #include <stdio.h>
12648 main ()
12650 return fseeko && fseeko (stdin, 0, 0);
12652 return 0;
12654 _ACEOF
12655 rm -f conftest.$ac_objext conftest$ac_exeext
12656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12657 (eval $ac_link) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } &&
12661 { ac_try='test -s conftest$ac_exeext'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 ac_cv_func_fseeko=yes
12668 else
12669 echo "$as_me: failed program was:" >&5
12670 cat conftest.$ac_ext >&5
12671 ac_cv_func_fseeko=no
12673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12675 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12676 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12677 if test $ac_cv_func_fseeko = yes; then
12679 cat >>confdefs.h <<\_ACEOF
12680 #define HAVE_FSEEKO 1
12681 _ACEOF
12686 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12687 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
12688 if test "${ac_cv_func_getpgrp_void+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12690 else
12691 # Use it with a single arg.
12692 cat >conftest.$ac_ext <<_ACEOF
12693 #line $LINENO "configure"
12694 #include "confdefs.h"
12695 $ac_includes_default
12697 main ()
12699 getpgrp (0);
12701 return 0;
12703 _ACEOF
12704 rm -f conftest.$ac_objext
12705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12706 (eval $ac_compile) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
12710 { ac_try='test -s conftest.$ac_objext'
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 ac_cv_func_getpgrp_void=no
12717 else
12718 echo "$as_me: failed program was:" >&5
12719 cat conftest.$ac_ext >&5
12720 ac_cv_func_getpgrp_void=yes
12722 rm -f conftest.$ac_objext conftest.$ac_ext
12725 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12726 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
12727 if test $ac_cv_func_getpgrp_void = yes; then
12729 cat >>confdefs.h <<\_ACEOF
12730 #define GETPGRP_VOID 1
12731 _ACEOF
12737 for ac_func in strftime
12739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12740 echo "$as_me:$LINENO: checking for $ac_func" >&5
12741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12742 if eval "test \"\${$as_ac_var+set}\" = set"; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 else
12745 cat >conftest.$ac_ext <<_ACEOF
12746 #line $LINENO "configure"
12747 #include "confdefs.h"
12748 /* System header to define __stub macros and hopefully few prototypes,
12749 which can conflict with char $ac_func (); below. */
12750 #include <assert.h>
12751 /* Override any gcc2 internal prototype to avoid an error. */
12752 #ifdef __cplusplus
12753 extern "C"
12754 #endif
12755 /* We use char because int might match the return type of a gcc2
12756 builtin and then its argument prototype would still apply. */
12757 char $ac_func ();
12758 char (*f) ();
12761 main ()
12763 /* The GNU C library defines this for functions which it implements
12764 to always fail with ENOSYS. Some functions are actually named
12765 something starting with __ and the normal name is an alias. */
12766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12767 choke me
12768 #else
12769 f = $ac_func;
12770 #endif
12773 return 0;
12775 _ACEOF
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12778 (eval $ac_link) 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } &&
12782 { ac_try='test -s conftest$ac_exeext'
12783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784 (eval $ac_try) 2>&5
12785 ac_status=$?
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; }; then
12788 eval "$as_ac_var=yes"
12789 else
12790 echo "$as_me: failed program was:" >&5
12791 cat conftest.$ac_ext >&5
12792 eval "$as_ac_var=no"
12794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12798 if test `eval echo '${'$as_ac_var'}'` = yes; then
12799 cat >>confdefs.h <<_ACEOF
12800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12801 _ACEOF
12803 else
12804 # strftime is in -lintl on SCO UNIX.
12805 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12806 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
12807 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810 ac_check_lib_save_LIBS=$LIBS
12811 LIBS="-lintl $LIBS"
12812 cat >conftest.$ac_ext <<_ACEOF
12813 #line $LINENO "configure"
12814 #include "confdefs.h"
12816 /* Override any gcc2 internal prototype to avoid an error. */
12817 #ifdef __cplusplus
12818 extern "C"
12819 #endif
12820 /* We use char because int might match the return type of a gcc2
12821 builtin and then its argument prototype would still apply. */
12822 char strftime ();
12824 main ()
12826 strftime ();
12828 return 0;
12830 _ACEOF
12831 rm -f conftest.$ac_objext conftest$ac_exeext
12832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12833 (eval $ac_link) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
12837 { ac_try='test -s conftest$ac_exeext'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12840 ac_status=$?
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; }; then
12843 ac_cv_lib_intl_strftime=yes
12844 else
12845 echo "$as_me: failed program was:" >&5
12846 cat conftest.$ac_ext >&5
12847 ac_cv_lib_intl_strftime=no
12849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12850 LIBS=$ac_check_lib_save_LIBS
12852 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12853 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
12854 if test $ac_cv_lib_intl_strftime = yes; then
12855 cat >>confdefs.h <<\_ACEOF
12856 #define HAVE_STRFTIME 1
12857 _ACEOF
12859 LIBS="-lintl $LIBS"
12863 done
12866 # UNIX98 PTYs.
12868 for ac_func in grantpt
12870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12871 echo "$as_me:$LINENO: checking for $ac_func" >&5
12872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12873 if eval "test \"\${$as_ac_var+set}\" = set"; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 else
12876 cat >conftest.$ac_ext <<_ACEOF
12877 #line $LINENO "configure"
12878 #include "confdefs.h"
12879 /* System header to define __stub macros and hopefully few prototypes,
12880 which can conflict with char $ac_func (); below. */
12881 #include <assert.h>
12882 /* Override any gcc2 internal prototype to avoid an error. */
12883 #ifdef __cplusplus
12884 extern "C"
12885 #endif
12886 /* We use char because int might match the return type of a gcc2
12887 builtin and then its argument prototype would still apply. */
12888 char $ac_func ();
12889 char (*f) ();
12892 main ()
12894 /* The GNU C library defines this for functions which it implements
12895 to always fail with ENOSYS. Some functions are actually named
12896 something starting with __ and the normal name is an alias. */
12897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12898 choke me
12899 #else
12900 f = $ac_func;
12901 #endif
12904 return 0;
12906 _ACEOF
12907 rm -f conftest.$ac_objext conftest$ac_exeext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12909 (eval $ac_link) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -s conftest$ac_exeext'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 eval "$as_ac_var=yes"
12920 else
12921 echo "$as_me: failed program was:" >&5
12922 cat conftest.$ac_ext >&5
12923 eval "$as_ac_var=no"
12925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12929 if test `eval echo '${'$as_ac_var'}'` = yes; then
12930 cat >>confdefs.h <<_ACEOF
12931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12932 _ACEOF
12935 done
12938 # PTY-related GNU extensions.
12940 for ac_func in getpt
12942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12943 echo "$as_me:$LINENO: checking for $ac_func" >&5
12944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12945 if eval "test \"\${$as_ac_var+set}\" = set"; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 else
12948 cat >conftest.$ac_ext <<_ACEOF
12949 #line $LINENO "configure"
12950 #include "confdefs.h"
12951 /* System header to define __stub macros and hopefully few prototypes,
12952 which can conflict with char $ac_func (); below. */
12953 #include <assert.h>
12954 /* Override any gcc2 internal prototype to avoid an error. */
12955 #ifdef __cplusplus
12956 extern "C"
12957 #endif
12958 /* We use char because int might match the return type of a gcc2
12959 builtin and then its argument prototype would still apply. */
12960 char $ac_func ();
12961 char (*f) ();
12964 main ()
12966 /* The GNU C library defines this for functions which it implements
12967 to always fail with ENOSYS. Some functions are actually named
12968 something starting with __ and the normal name is an alias. */
12969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12970 choke me
12971 #else
12972 f = $ac_func;
12973 #endif
12976 return 0;
12978 _ACEOF
12979 rm -f conftest.$ac_objext conftest$ac_exeext
12980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12981 (eval $ac_link) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try='test -s conftest$ac_exeext'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 eval "$as_ac_var=yes"
12992 else
12993 echo "$as_me: failed program was:" >&5
12994 cat conftest.$ac_ext >&5
12995 eval "$as_ac_var=no"
12997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13001 if test `eval echo '${'$as_ac_var'}'` = yes; then
13002 cat >>confdefs.h <<_ACEOF
13003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13004 _ACEOF
13007 done
13010 # Check this now, so that we will NOT find the above functions in ncurses.
13011 # That is because we have not set up to link ncurses in lib-src.
13012 # It's better to believe a function is not available
13013 # than to expect to find it in ncurses.
13015 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
13016 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
13017 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
13018 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 else
13020 ac_check_lib_save_LIBS=$LIBS
13021 LIBS="-lncurses $LIBS"
13022 cat >conftest.$ac_ext <<_ACEOF
13023 #line $LINENO "configure"
13024 #include "confdefs.h"
13026 /* Override any gcc2 internal prototype to avoid an error. */
13027 #ifdef __cplusplus
13028 extern "C"
13029 #endif
13030 /* We use char because int might match the return type of a gcc2
13031 builtin and then its argument prototype would still apply. */
13032 char tparm ();
13034 main ()
13036 tparm ();
13038 return 0;
13040 _ACEOF
13041 rm -f conftest.$ac_objext conftest$ac_exeext
13042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13043 (eval $ac_link) 2>&5
13044 ac_status=$?
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } &&
13047 { ac_try='test -s conftest$ac_exeext'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 ac_cv_lib_ncurses_tparm=yes
13054 else
13055 echo "$as_me: failed program was:" >&5
13056 cat conftest.$ac_ext >&5
13057 ac_cv_lib_ncurses_tparm=no
13059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13060 LIBS=$ac_check_lib_save_LIBS
13062 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
13063 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
13064 if test $ac_cv_lib_ncurses_tparm = yes; then
13065 cat >>confdefs.h <<_ACEOF
13066 #define HAVE_LIBNCURSES 1
13067 _ACEOF
13069 LIBS="-lncurses $LIBS"
13074 # Do we need the Hesiod library to provide the support routines?
13075 if test "$with_hesiod" = yes ; then
13076 # Don't set $LIBS here -- see comments above.
13077 resolv=no
13078 echo "$as_me:$LINENO: checking for res_send" >&5
13079 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
13080 if test "${ac_cv_func_res_send+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 else
13083 cat >conftest.$ac_ext <<_ACEOF
13084 #line $LINENO "configure"
13085 #include "confdefs.h"
13086 /* System header to define __stub macros and hopefully few prototypes,
13087 which can conflict with char res_send (); below. */
13088 #include <assert.h>
13089 /* Override any gcc2 internal prototype to avoid an error. */
13090 #ifdef __cplusplus
13091 extern "C"
13092 #endif
13093 /* We use char because int might match the return type of a gcc2
13094 builtin and then its argument prototype would still apply. */
13095 char res_send ();
13096 char (*f) ();
13099 main ()
13101 /* The GNU C library defines this for functions which it implements
13102 to always fail with ENOSYS. Some functions are actually named
13103 something starting with __ and the normal name is an alias. */
13104 #if defined (__stub_res_send) || defined (__stub___res_send)
13105 choke me
13106 #else
13107 f = res_send;
13108 #endif
13111 return 0;
13113 _ACEOF
13114 rm -f conftest.$ac_objext conftest$ac_exeext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13116 (eval $ac_link) 2>&5
13117 ac_status=$?
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } &&
13120 { ac_try='test -s conftest$ac_exeext'
13121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122 (eval $ac_try) 2>&5
13123 ac_status=$?
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126 ac_cv_func_res_send=yes
13127 else
13128 echo "$as_me: failed program was:" >&5
13129 cat conftest.$ac_ext >&5
13130 ac_cv_func_res_send=no
13132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13134 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
13135 echo "${ECHO_T}$ac_cv_func_res_send" >&6
13136 if test $ac_cv_func_res_send = yes; then
13138 else
13139 echo "$as_me:$LINENO: checking for __res_send" >&5
13140 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
13141 if test "${ac_cv_func___res_send+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13143 else
13144 cat >conftest.$ac_ext <<_ACEOF
13145 #line $LINENO "configure"
13146 #include "confdefs.h"
13147 /* System header to define __stub macros and hopefully few prototypes,
13148 which can conflict with char __res_send (); below. */
13149 #include <assert.h>
13150 /* Override any gcc2 internal prototype to avoid an error. */
13151 #ifdef __cplusplus
13152 extern "C"
13153 #endif
13154 /* We use char because int might match the return type of a gcc2
13155 builtin and then its argument prototype would still apply. */
13156 char __res_send ();
13157 char (*f) ();
13160 main ()
13162 /* The GNU C library defines this for functions which it implements
13163 to always fail with ENOSYS. Some functions are actually named
13164 something starting with __ and the normal name is an alias. */
13165 #if defined (__stub___res_send) || defined (__stub_____res_send)
13166 choke me
13167 #else
13168 f = __res_send;
13169 #endif
13172 return 0;
13174 _ACEOF
13175 rm -f conftest.$ac_objext conftest$ac_exeext
13176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13177 (eval $ac_link) 2>&5
13178 ac_status=$?
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try='test -s conftest$ac_exeext'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13184 ac_status=$?
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; }; then
13187 ac_cv_func___res_send=yes
13188 else
13189 echo "$as_me: failed program was:" >&5
13190 cat conftest.$ac_ext >&5
13191 ac_cv_func___res_send=no
13193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13195 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
13196 echo "${ECHO_T}$ac_cv_func___res_send" >&6
13197 if test $ac_cv_func___res_send = yes; then
13199 else
13200 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
13201 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
13202 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
13203 echo $ECHO_N "(cached) $ECHO_C" >&6
13204 else
13205 ac_check_lib_save_LIBS=$LIBS
13206 LIBS="-lresolv $LIBS"
13207 cat >conftest.$ac_ext <<_ACEOF
13208 #line $LINENO "configure"
13209 #include "confdefs.h"
13211 /* Override any gcc2 internal prototype to avoid an error. */
13212 #ifdef __cplusplus
13213 extern "C"
13214 #endif
13215 /* We use char because int might match the return type of a gcc2
13216 builtin and then its argument prototype would still apply. */
13217 char res_send ();
13219 main ()
13221 res_send ();
13223 return 0;
13225 _ACEOF
13226 rm -f conftest.$ac_objext conftest$ac_exeext
13227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13228 (eval $ac_link) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } &&
13232 { ac_try='test -s conftest$ac_exeext'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13235 ac_status=$?
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
13238 ac_cv_lib_resolv_res_send=yes
13239 else
13240 echo "$as_me: failed program was:" >&5
13241 cat conftest.$ac_ext >&5
13242 ac_cv_lib_resolv_res_send=no
13244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13245 LIBS=$ac_check_lib_save_LIBS
13247 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
13248 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
13249 if test $ac_cv_lib_resolv_res_send = yes; then
13250 resolv=yes
13251 else
13252 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
13253 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
13254 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13256 else
13257 ac_check_lib_save_LIBS=$LIBS
13258 LIBS="-lresolv $LIBS"
13259 cat >conftest.$ac_ext <<_ACEOF
13260 #line $LINENO "configure"
13261 #include "confdefs.h"
13263 /* Override any gcc2 internal prototype to avoid an error. */
13264 #ifdef __cplusplus
13265 extern "C"
13266 #endif
13267 /* We use char because int might match the return type of a gcc2
13268 builtin and then its argument prototype would still apply. */
13269 char __res_send ();
13271 main ()
13273 __res_send ();
13275 return 0;
13277 _ACEOF
13278 rm -f conftest.$ac_objext conftest$ac_exeext
13279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13280 (eval $ac_link) 2>&5
13281 ac_status=$?
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } &&
13284 { ac_try='test -s conftest$ac_exeext'
13285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13286 (eval $ac_try) 2>&5
13287 ac_status=$?
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }; }; then
13290 ac_cv_lib_resolv___res_send=yes
13291 else
13292 echo "$as_me: failed program was:" >&5
13293 cat conftest.$ac_ext >&5
13294 ac_cv_lib_resolv___res_send=no
13296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13297 LIBS=$ac_check_lib_save_LIBS
13299 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
13300 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
13301 if test $ac_cv_lib_resolv___res_send = yes; then
13302 resolv=yes
13311 if test "$resolv" = yes ; then
13312 RESOLVLIB=-lresolv
13314 cat >>confdefs.h <<\_ACEOF
13315 #define HAVE_LIBRESOLV 1
13316 _ACEOF
13318 else
13319 RESOLVLIB=
13321 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
13322 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
13323 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 else
13326 cat >conftest.$ac_ext <<_ACEOF
13327 #line $LINENO "configure"
13328 #include "confdefs.h"
13329 /* System header to define __stub macros and hopefully few prototypes,
13330 which can conflict with char hes_getmailhost (); below. */
13331 #include <assert.h>
13332 /* Override any gcc2 internal prototype to avoid an error. */
13333 #ifdef __cplusplus
13334 extern "C"
13335 #endif
13336 /* We use char because int might match the return type of a gcc2
13337 builtin and then its argument prototype would still apply. */
13338 char hes_getmailhost ();
13339 char (*f) ();
13342 main ()
13344 /* The GNU C library defines this for functions which it implements
13345 to always fail with ENOSYS. Some functions are actually named
13346 something starting with __ and the normal name is an alias. */
13347 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
13348 choke me
13349 #else
13350 f = hes_getmailhost;
13351 #endif
13354 return 0;
13356 _ACEOF
13357 rm -f conftest.$ac_objext conftest$ac_exeext
13358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13359 (eval $ac_link) 2>&5
13360 ac_status=$?
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -s conftest$ac_exeext'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13366 ac_status=$?
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
13369 ac_cv_func_hes_getmailhost=yes
13370 else
13371 echo "$as_me: failed program was:" >&5
13372 cat conftest.$ac_ext >&5
13373 ac_cv_func_hes_getmailhost=no
13375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13377 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
13378 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
13379 if test $ac_cv_func_hes_getmailhost = yes; then
13381 else
13382 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
13383 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
13384 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13386 else
13387 ac_check_lib_save_LIBS=$LIBS
13388 LIBS="-lhesiod $RESOLVLIB $LIBS"
13389 cat >conftest.$ac_ext <<_ACEOF
13390 #line $LINENO "configure"
13391 #include "confdefs.h"
13393 /* Override any gcc2 internal prototype to avoid an error. */
13394 #ifdef __cplusplus
13395 extern "C"
13396 #endif
13397 /* We use char because int might match the return type of a gcc2
13398 builtin and then its argument prototype would still apply. */
13399 char hes_getmailhost ();
13401 main ()
13403 hes_getmailhost ();
13405 return 0;
13407 _ACEOF
13408 rm -f conftest.$ac_objext conftest$ac_exeext
13409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13410 (eval $ac_link) 2>&5
13411 ac_status=$?
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
13414 { ac_try='test -s conftest$ac_exeext'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13417 ac_status=$?
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; }; then
13420 ac_cv_lib_hesiod_hes_getmailhost=yes
13421 else
13422 echo "$as_me: failed program was:" >&5
13423 cat conftest.$ac_ext >&5
13424 ac_cv_lib_hesiod_hes_getmailhost=no
13426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13427 LIBS=$ac_check_lib_save_LIBS
13429 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13430 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
13431 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
13433 cat >>confdefs.h <<\_ACEOF
13434 #define HAVE_LIBHESIOD 1
13435 _ACEOF
13437 else
13445 # These tell us which Kerberos-related libraries to use.
13446 if test "${with_kerberos+set}" = set; then
13448 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
13449 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
13450 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13452 else
13453 ac_check_lib_save_LIBS=$LIBS
13454 LIBS="-lcom_err $LIBS"
13455 cat >conftest.$ac_ext <<_ACEOF
13456 #line $LINENO "configure"
13457 #include "confdefs.h"
13459 /* Override any gcc2 internal prototype to avoid an error. */
13460 #ifdef __cplusplus
13461 extern "C"
13462 #endif
13463 /* We use char because int might match the return type of a gcc2
13464 builtin and then its argument prototype would still apply. */
13465 char com_err ();
13467 main ()
13469 com_err ();
13471 return 0;
13473 _ACEOF
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13476 (eval $ac_link) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } &&
13480 { ac_try='test -s conftest$ac_exeext'
13481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13482 (eval $ac_try) 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; }; then
13486 ac_cv_lib_com_err_com_err=yes
13487 else
13488 echo "$as_me: failed program was:" >&5
13489 cat conftest.$ac_ext >&5
13490 ac_cv_lib_com_err_com_err=no
13492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13493 LIBS=$ac_check_lib_save_LIBS
13495 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
13496 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
13497 if test $ac_cv_lib_com_err_com_err = yes; then
13498 cat >>confdefs.h <<_ACEOF
13499 #define HAVE_LIBCOM_ERR 1
13500 _ACEOF
13502 LIBS="-lcom_err $LIBS"
13507 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13508 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
13509 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 else
13512 ac_check_lib_save_LIBS=$LIBS
13513 LIBS="-lk5crypto $LIBS"
13514 cat >conftest.$ac_ext <<_ACEOF
13515 #line $LINENO "configure"
13516 #include "confdefs.h"
13518 /* Override any gcc2 internal prototype to avoid an error. */
13519 #ifdef __cplusplus
13520 extern "C"
13521 #endif
13522 /* We use char because int might match the return type of a gcc2
13523 builtin and then its argument prototype would still apply. */
13524 char mit_des_cbc_encrypt ();
13526 main ()
13528 mit_des_cbc_encrypt ();
13530 return 0;
13532 _ACEOF
13533 rm -f conftest.$ac_objext conftest$ac_exeext
13534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13535 (eval $ac_link) 2>&5
13536 ac_status=$?
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } &&
13539 { ac_try='test -s conftest$ac_exeext'
13540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541 (eval $ac_try) 2>&5
13542 ac_status=$?
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); }; }; then
13545 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13546 else
13547 echo "$as_me: failed program was:" >&5
13548 cat conftest.$ac_ext >&5
13549 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13552 LIBS=$ac_check_lib_save_LIBS
13554 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13555 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
13556 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
13557 cat >>confdefs.h <<_ACEOF
13558 #define HAVE_LIBK5CRYPTO 1
13559 _ACEOF
13561 LIBS="-lk5crypto $LIBS"
13566 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13567 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
13568 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13570 else
13571 ac_check_lib_save_LIBS=$LIBS
13572 LIBS="-lcrypto $LIBS"
13573 cat >conftest.$ac_ext <<_ACEOF
13574 #line $LINENO "configure"
13575 #include "confdefs.h"
13577 /* Override any gcc2 internal prototype to avoid an error. */
13578 #ifdef __cplusplus
13579 extern "C"
13580 #endif
13581 /* We use char because int might match the return type of a gcc2
13582 builtin and then its argument prototype would still apply. */
13583 char mit_des_cbc_encrypt ();
13585 main ()
13587 mit_des_cbc_encrypt ();
13589 return 0;
13591 _ACEOF
13592 rm -f conftest.$ac_objext conftest$ac_exeext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13594 (eval $ac_link) 2>&5
13595 ac_status=$?
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } &&
13598 { ac_try='test -s conftest$ac_exeext'
13599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13600 (eval $ac_try) 2>&5
13601 ac_status=$?
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); }; }; then
13604 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13605 else
13606 echo "$as_me: failed program was:" >&5
13607 cat conftest.$ac_ext >&5
13608 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13611 LIBS=$ac_check_lib_save_LIBS
13613 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13614 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
13615 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
13616 cat >>confdefs.h <<_ACEOF
13617 #define HAVE_LIBCRYPTO 1
13618 _ACEOF
13620 LIBS="-lcrypto $LIBS"
13625 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
13626 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
13627 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13629 else
13630 ac_check_lib_save_LIBS=$LIBS
13631 LIBS="-lkrb5 $LIBS"
13632 cat >conftest.$ac_ext <<_ACEOF
13633 #line $LINENO "configure"
13634 #include "confdefs.h"
13636 /* Override any gcc2 internal prototype to avoid an error. */
13637 #ifdef __cplusplus
13638 extern "C"
13639 #endif
13640 /* We use char because int might match the return type of a gcc2
13641 builtin and then its argument prototype would still apply. */
13642 char krb5_init_context ();
13644 main ()
13646 krb5_init_context ();
13648 return 0;
13650 _ACEOF
13651 rm -f conftest.$ac_objext conftest$ac_exeext
13652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13653 (eval $ac_link) 2>&5
13654 ac_status=$?
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } &&
13657 { ac_try='test -s conftest$ac_exeext'
13658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13659 (eval $ac_try) 2>&5
13660 ac_status=$?
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; }; then
13663 ac_cv_lib_krb5_krb5_init_context=yes
13664 else
13665 echo "$as_me: failed program was:" >&5
13666 cat conftest.$ac_ext >&5
13667 ac_cv_lib_krb5_krb5_init_context=no
13669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13670 LIBS=$ac_check_lib_save_LIBS
13672 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13673 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
13674 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
13675 cat >>confdefs.h <<_ACEOF
13676 #define HAVE_LIBKRB5 1
13677 _ACEOF
13679 LIBS="-lkrb5 $LIBS"
13683 if test "${with_kerberos5+set}" != set; then
13685 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
13686 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
13687 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13689 else
13690 ac_check_lib_save_LIBS=$LIBS
13691 LIBS="-ldes425 $LIBS"
13692 cat >conftest.$ac_ext <<_ACEOF
13693 #line $LINENO "configure"
13694 #include "confdefs.h"
13696 /* Override any gcc2 internal prototype to avoid an error. */
13697 #ifdef __cplusplus
13698 extern "C"
13699 #endif
13700 /* We use char because int might match the return type of a gcc2
13701 builtin and then its argument prototype would still apply. */
13702 char des_cbc_encrypt ();
13704 main ()
13706 des_cbc_encrypt ();
13708 return 0;
13710 _ACEOF
13711 rm -f conftest.$ac_objext conftest$ac_exeext
13712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13713 (eval $ac_link) 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } &&
13717 { ac_try='test -s conftest$ac_exeext'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13720 ac_status=$?
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 ac_cv_lib_des425_des_cbc_encrypt=yes
13724 else
13725 echo "$as_me: failed program was:" >&5
13726 cat conftest.$ac_ext >&5
13727 ac_cv_lib_des425_des_cbc_encrypt=no
13729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13730 LIBS=$ac_check_lib_save_LIBS
13732 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13733 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
13734 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
13735 cat >>confdefs.h <<_ACEOF
13736 #define HAVE_LIBDES425 1
13737 _ACEOF
13739 LIBS="-ldes425 $LIBS"
13741 else
13743 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
13744 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
13745 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13747 else
13748 ac_check_lib_save_LIBS=$LIBS
13749 LIBS="-ldes $LIBS"
13750 cat >conftest.$ac_ext <<_ACEOF
13751 #line $LINENO "configure"
13752 #include "confdefs.h"
13754 /* Override any gcc2 internal prototype to avoid an error. */
13755 #ifdef __cplusplus
13756 extern "C"
13757 #endif
13758 /* We use char because int might match the return type of a gcc2
13759 builtin and then its argument prototype would still apply. */
13760 char des_cbc_encrypt ();
13762 main ()
13764 des_cbc_encrypt ();
13766 return 0;
13768 _ACEOF
13769 rm -f conftest.$ac_objext conftest$ac_exeext
13770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13771 (eval $ac_link) 2>&5
13772 ac_status=$?
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } &&
13775 { ac_try='test -s conftest$ac_exeext'
13776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777 (eval $ac_try) 2>&5
13778 ac_status=$?
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; }; then
13781 ac_cv_lib_des_des_cbc_encrypt=yes
13782 else
13783 echo "$as_me: failed program was:" >&5
13784 cat conftest.$ac_ext >&5
13785 ac_cv_lib_des_des_cbc_encrypt=no
13787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13788 LIBS=$ac_check_lib_save_LIBS
13790 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13791 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
13792 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
13793 cat >>confdefs.h <<_ACEOF
13794 #define HAVE_LIBDES 1
13795 _ACEOF
13797 LIBS="-ldes $LIBS"
13804 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
13805 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
13806 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809 ac_check_lib_save_LIBS=$LIBS
13810 LIBS="-lkrb4 $LIBS"
13811 cat >conftest.$ac_ext <<_ACEOF
13812 #line $LINENO "configure"
13813 #include "confdefs.h"
13815 /* Override any gcc2 internal prototype to avoid an error. */
13816 #ifdef __cplusplus
13817 extern "C"
13818 #endif
13819 /* We use char because int might match the return type of a gcc2
13820 builtin and then its argument prototype would still apply. */
13821 char krb_get_cred ();
13823 main ()
13825 krb_get_cred ();
13827 return 0;
13829 _ACEOF
13830 rm -f conftest.$ac_objext conftest$ac_exeext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13832 (eval $ac_link) 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } &&
13836 { ac_try='test -s conftest$ac_exeext'
13837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838 (eval $ac_try) 2>&5
13839 ac_status=$?
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); }; }; then
13842 ac_cv_lib_krb4_krb_get_cred=yes
13843 else
13844 echo "$as_me: failed program was:" >&5
13845 cat conftest.$ac_ext >&5
13846 ac_cv_lib_krb4_krb_get_cred=no
13848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13849 LIBS=$ac_check_lib_save_LIBS
13851 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13852 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
13853 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
13854 cat >>confdefs.h <<_ACEOF
13855 #define HAVE_LIBKRB4 1
13856 _ACEOF
13858 LIBS="-lkrb4 $LIBS"
13860 else
13862 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
13863 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
13864 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 else
13867 ac_check_lib_save_LIBS=$LIBS
13868 LIBS="-lkrb $LIBS"
13869 cat >conftest.$ac_ext <<_ACEOF
13870 #line $LINENO "configure"
13871 #include "confdefs.h"
13873 /* Override any gcc2 internal prototype to avoid an error. */
13874 #ifdef __cplusplus
13875 extern "C"
13876 #endif
13877 /* We use char because int might match the return type of a gcc2
13878 builtin and then its argument prototype would still apply. */
13879 char krb_get_cred ();
13881 main ()
13883 krb_get_cred ();
13885 return 0;
13887 _ACEOF
13888 rm -f conftest.$ac_objext conftest$ac_exeext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13890 (eval $ac_link) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -s conftest$ac_exeext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_cv_lib_krb_krb_get_cred=yes
13901 else
13902 echo "$as_me: failed program was:" >&5
13903 cat conftest.$ac_ext >&5
13904 ac_cv_lib_krb_krb_get_cred=no
13906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13907 LIBS=$ac_check_lib_save_LIBS
13909 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
13910 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
13911 if test $ac_cv_lib_krb_krb_get_cred = yes; then
13912 cat >>confdefs.h <<_ACEOF
13913 #define HAVE_LIBKRB 1
13914 _ACEOF
13916 LIBS="-lkrb $LIBS"
13924 if test "${with_kerberos5+set}" = set; then
13926 for ac_header in krb5.h
13928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13930 echo "$as_me:$LINENO: checking for $ac_header" >&5
13931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13937 else
13938 # Is the header compilable?
13939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13941 cat >conftest.$ac_ext <<_ACEOF
13942 #line $LINENO "configure"
13943 #include "confdefs.h"
13944 $ac_includes_default
13945 #include <$ac_header>
13946 _ACEOF
13947 rm -f conftest.$ac_objext
13948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13949 (eval $ac_compile) 2>&5
13950 ac_status=$?
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
13953 { ac_try='test -s conftest.$ac_objext'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13956 ac_status=$?
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 ac_header_compiler=yes
13960 else
13961 echo "$as_me: failed program was:" >&5
13962 cat conftest.$ac_ext >&5
13963 ac_header_compiler=no
13965 rm -f conftest.$ac_objext conftest.$ac_ext
13966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13967 echo "${ECHO_T}$ac_header_compiler" >&6
13969 # Is the header present?
13970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13972 cat >conftest.$ac_ext <<_ACEOF
13973 #line $LINENO "configure"
13974 #include "confdefs.h"
13975 #include <$ac_header>
13976 _ACEOF
13977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13979 ac_status=$?
13980 grep -v '^ *+' conftest.er1 >conftest.err
13981 rm -f conftest.er1
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } >/dev/null; then
13985 if test -s conftest.err; then
13986 ac_cpp_err=$ac_c_preproc_warn_flag
13987 else
13988 ac_cpp_err=
13990 else
13991 ac_cpp_err=yes
13993 if test -z "$ac_cpp_err"; then
13994 ac_header_preproc=yes
13995 else
13996 echo "$as_me: failed program was:" >&5
13997 cat conftest.$ac_ext >&5
13998 ac_header_preproc=no
14000 rm -f conftest.err conftest.$ac_ext
14001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14002 echo "${ECHO_T}$ac_header_preproc" >&6
14004 # So? What about this header?
14005 case $ac_header_compiler:$ac_header_preproc in
14006 yes:no )
14007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14011 no:yes )
14012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14018 esac
14019 echo "$as_me:$LINENO: checking for $ac_header" >&5
14020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 else
14024 eval "$as_ac_Header=$ac_header_preproc"
14026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14031 cat >>confdefs.h <<_ACEOF
14032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14033 _ACEOF
14037 done
14039 else
14041 for ac_header in des.h
14043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14045 echo "$as_me:$LINENO: checking for $ac_header" >&5
14046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14052 else
14053 # Is the header compilable?
14054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14056 cat >conftest.$ac_ext <<_ACEOF
14057 #line $LINENO "configure"
14058 #include "confdefs.h"
14059 $ac_includes_default
14060 #include <$ac_header>
14061 _ACEOF
14062 rm -f conftest.$ac_objext
14063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14064 (eval $ac_compile) 2>&5
14065 ac_status=$?
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } &&
14068 { ac_try='test -s conftest.$ac_objext'
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14071 ac_status=$?
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; }; then
14074 ac_header_compiler=yes
14075 else
14076 echo "$as_me: failed program was:" >&5
14077 cat conftest.$ac_ext >&5
14078 ac_header_compiler=no
14080 rm -f conftest.$ac_objext conftest.$ac_ext
14081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14082 echo "${ECHO_T}$ac_header_compiler" >&6
14084 # Is the header present?
14085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14087 cat >conftest.$ac_ext <<_ACEOF
14088 #line $LINENO "configure"
14089 #include "confdefs.h"
14090 #include <$ac_header>
14091 _ACEOF
14092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14094 ac_status=$?
14095 grep -v '^ *+' conftest.er1 >conftest.err
14096 rm -f conftest.er1
14097 cat conftest.err >&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } >/dev/null; then
14100 if test -s conftest.err; then
14101 ac_cpp_err=$ac_c_preproc_warn_flag
14102 else
14103 ac_cpp_err=
14105 else
14106 ac_cpp_err=yes
14108 if test -z "$ac_cpp_err"; then
14109 ac_header_preproc=yes
14110 else
14111 echo "$as_me: failed program was:" >&5
14112 cat conftest.$ac_ext >&5
14113 ac_header_preproc=no
14115 rm -f conftest.err conftest.$ac_ext
14116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14117 echo "${ECHO_T}$ac_header_preproc" >&6
14119 # So? What about this header?
14120 case $ac_header_compiler:$ac_header_preproc in
14121 yes:no )
14122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14126 no:yes )
14127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14133 esac
14134 echo "$as_me:$LINENO: checking for $ac_header" >&5
14135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139 eval "$as_ac_Header=$ac_header_preproc"
14141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14146 cat >>confdefs.h <<_ACEOF
14147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14148 _ACEOF
14150 else
14152 for ac_header in kerberosIV/des.h
14154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14156 echo "$as_me:$LINENO: checking for $ac_header" >&5
14157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14163 else
14164 # Is the header compilable?
14165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14167 cat >conftest.$ac_ext <<_ACEOF
14168 #line $LINENO "configure"
14169 #include "confdefs.h"
14170 $ac_includes_default
14171 #include <$ac_header>
14172 _ACEOF
14173 rm -f conftest.$ac_objext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14175 (eval $ac_compile) 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
14179 { ac_try='test -s conftest.$ac_objext'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 ac_header_compiler=yes
14186 else
14187 echo "$as_me: failed program was:" >&5
14188 cat conftest.$ac_ext >&5
14189 ac_header_compiler=no
14191 rm -f conftest.$ac_objext conftest.$ac_ext
14192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14193 echo "${ECHO_T}$ac_header_compiler" >&6
14195 # Is the header present?
14196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14198 cat >conftest.$ac_ext <<_ACEOF
14199 #line $LINENO "configure"
14200 #include "confdefs.h"
14201 #include <$ac_header>
14202 _ACEOF
14203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14205 ac_status=$?
14206 grep -v '^ *+' conftest.er1 >conftest.err
14207 rm -f conftest.er1
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } >/dev/null; then
14211 if test -s conftest.err; then
14212 ac_cpp_err=$ac_c_preproc_warn_flag
14213 else
14214 ac_cpp_err=
14216 else
14217 ac_cpp_err=yes
14219 if test -z "$ac_cpp_err"; then
14220 ac_header_preproc=yes
14221 else
14222 echo "$as_me: failed program was:" >&5
14223 cat conftest.$ac_ext >&5
14224 ac_header_preproc=no
14226 rm -f conftest.err conftest.$ac_ext
14227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14228 echo "${ECHO_T}$ac_header_preproc" >&6
14230 # So? What about this header?
14231 case $ac_header_compiler:$ac_header_preproc in
14232 yes:no )
14233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14237 no:yes )
14238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14244 esac
14245 echo "$as_me:$LINENO: checking for $ac_header" >&5
14246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14249 else
14250 eval "$as_ac_Header=$ac_header_preproc"
14252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14257 cat >>confdefs.h <<_ACEOF
14258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14259 _ACEOF
14261 else
14263 for ac_header in kerberos/des.h
14265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14267 echo "$as_me:$LINENO: checking for $ac_header" >&5
14268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14270 echo $ECHO_N "(cached) $ECHO_C" >&6
14272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14274 else
14275 # Is the header compilable?
14276 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14278 cat >conftest.$ac_ext <<_ACEOF
14279 #line $LINENO "configure"
14280 #include "confdefs.h"
14281 $ac_includes_default
14282 #include <$ac_header>
14283 _ACEOF
14284 rm -f conftest.$ac_objext
14285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14286 (eval $ac_compile) 2>&5
14287 ac_status=$?
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } &&
14290 { ac_try='test -s conftest.$ac_objext'
14291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14292 (eval $ac_try) 2>&5
14293 ac_status=$?
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; }; then
14296 ac_header_compiler=yes
14297 else
14298 echo "$as_me: failed program was:" >&5
14299 cat conftest.$ac_ext >&5
14300 ac_header_compiler=no
14302 rm -f conftest.$ac_objext conftest.$ac_ext
14303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14304 echo "${ECHO_T}$ac_header_compiler" >&6
14306 # Is the header present?
14307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14309 cat >conftest.$ac_ext <<_ACEOF
14310 #line $LINENO "configure"
14311 #include "confdefs.h"
14312 #include <$ac_header>
14313 _ACEOF
14314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14316 ac_status=$?
14317 grep -v '^ *+' conftest.er1 >conftest.err
14318 rm -f conftest.er1
14319 cat conftest.err >&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); } >/dev/null; then
14322 if test -s conftest.err; then
14323 ac_cpp_err=$ac_c_preproc_warn_flag
14324 else
14325 ac_cpp_err=
14327 else
14328 ac_cpp_err=yes
14330 if test -z "$ac_cpp_err"; then
14331 ac_header_preproc=yes
14332 else
14333 echo "$as_me: failed program was:" >&5
14334 cat conftest.$ac_ext >&5
14335 ac_header_preproc=no
14337 rm -f conftest.err conftest.$ac_ext
14338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14339 echo "${ECHO_T}$ac_header_preproc" >&6
14341 # So? What about this header?
14342 case $ac_header_compiler:$ac_header_preproc in
14343 yes:no )
14344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14348 no:yes )
14349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14355 esac
14356 echo "$as_me:$LINENO: checking for $ac_header" >&5
14357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361 eval "$as_ac_Header=$ac_header_preproc"
14363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14368 cat >>confdefs.h <<_ACEOF
14369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14370 _ACEOF
14374 done
14378 done
14382 done
14385 for ac_header in krb.h
14387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14389 echo "$as_me:$LINENO: checking for $ac_header" >&5
14390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
14394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14396 else
14397 # Is the header compilable?
14398 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14400 cat >conftest.$ac_ext <<_ACEOF
14401 #line $LINENO "configure"
14402 #include "confdefs.h"
14403 $ac_includes_default
14404 #include <$ac_header>
14405 _ACEOF
14406 rm -f conftest.$ac_objext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14408 (eval $ac_compile) 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14415 ac_status=$?
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_header_compiler=yes
14419 else
14420 echo "$as_me: failed program was:" >&5
14421 cat conftest.$ac_ext >&5
14422 ac_header_compiler=no
14424 rm -f conftest.$ac_objext conftest.$ac_ext
14425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14426 echo "${ECHO_T}$ac_header_compiler" >&6
14428 # Is the header present?
14429 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14431 cat >conftest.$ac_ext <<_ACEOF
14432 #line $LINENO "configure"
14433 #include "confdefs.h"
14434 #include <$ac_header>
14435 _ACEOF
14436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14438 ac_status=$?
14439 grep -v '^ *+' conftest.er1 >conftest.err
14440 rm -f conftest.er1
14441 cat conftest.err >&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } >/dev/null; then
14444 if test -s conftest.err; then
14445 ac_cpp_err=$ac_c_preproc_warn_flag
14446 else
14447 ac_cpp_err=
14449 else
14450 ac_cpp_err=yes
14452 if test -z "$ac_cpp_err"; then
14453 ac_header_preproc=yes
14454 else
14455 echo "$as_me: failed program was:" >&5
14456 cat conftest.$ac_ext >&5
14457 ac_header_preproc=no
14459 rm -f conftest.err conftest.$ac_ext
14460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14461 echo "${ECHO_T}$ac_header_preproc" >&6
14463 # So? What about this header?
14464 case $ac_header_compiler:$ac_header_preproc in
14465 yes:no )
14466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14470 no:yes )
14471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14477 esac
14478 echo "$as_me:$LINENO: checking for $ac_header" >&5
14479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14482 else
14483 eval "$as_ac_Header=$ac_header_preproc"
14485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14490 cat >>confdefs.h <<_ACEOF
14491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14492 _ACEOF
14494 else
14496 for ac_header in kerberosIV/krb.h
14498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14500 echo "$as_me:$LINENO: checking for $ac_header" >&5
14501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14503 echo $ECHO_N "(cached) $ECHO_C" >&6
14505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14507 else
14508 # Is the header compilable?
14509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14511 cat >conftest.$ac_ext <<_ACEOF
14512 #line $LINENO "configure"
14513 #include "confdefs.h"
14514 $ac_includes_default
14515 #include <$ac_header>
14516 _ACEOF
14517 rm -f conftest.$ac_objext
14518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14519 (eval $ac_compile) 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } &&
14523 { ac_try='test -s conftest.$ac_objext'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14526 ac_status=$?
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14529 ac_header_compiler=yes
14530 else
14531 echo "$as_me: failed program was:" >&5
14532 cat conftest.$ac_ext >&5
14533 ac_header_compiler=no
14535 rm -f conftest.$ac_objext conftest.$ac_ext
14536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14537 echo "${ECHO_T}$ac_header_compiler" >&6
14539 # Is the header present?
14540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14542 cat >conftest.$ac_ext <<_ACEOF
14543 #line $LINENO "configure"
14544 #include "confdefs.h"
14545 #include <$ac_header>
14546 _ACEOF
14547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14549 ac_status=$?
14550 grep -v '^ *+' conftest.er1 >conftest.err
14551 rm -f conftest.er1
14552 cat conftest.err >&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } >/dev/null; then
14555 if test -s conftest.err; then
14556 ac_cpp_err=$ac_c_preproc_warn_flag
14557 else
14558 ac_cpp_err=
14560 else
14561 ac_cpp_err=yes
14563 if test -z "$ac_cpp_err"; then
14564 ac_header_preproc=yes
14565 else
14566 echo "$as_me: failed program was:" >&5
14567 cat conftest.$ac_ext >&5
14568 ac_header_preproc=no
14570 rm -f conftest.err conftest.$ac_ext
14571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14572 echo "${ECHO_T}$ac_header_preproc" >&6
14574 # So? What about this header?
14575 case $ac_header_compiler:$ac_header_preproc in
14576 yes:no )
14577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14581 no:yes )
14582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14588 esac
14589 echo "$as_me:$LINENO: checking for $ac_header" >&5
14590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14593 else
14594 eval "$as_ac_Header=$ac_header_preproc"
14596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14601 cat >>confdefs.h <<_ACEOF
14602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14603 _ACEOF
14605 else
14607 for ac_header in kerberos/krb.h
14609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14611 echo "$as_me:$LINENO: checking for $ac_header" >&5
14612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14618 else
14619 # Is the header compilable?
14620 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14622 cat >conftest.$ac_ext <<_ACEOF
14623 #line $LINENO "configure"
14624 #include "confdefs.h"
14625 $ac_includes_default
14626 #include <$ac_header>
14627 _ACEOF
14628 rm -f conftest.$ac_objext
14629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14630 (eval $ac_compile) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
14634 { ac_try='test -s conftest.$ac_objext'
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14637 ac_status=$?
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; }; then
14640 ac_header_compiler=yes
14641 else
14642 echo "$as_me: failed program was:" >&5
14643 cat conftest.$ac_ext >&5
14644 ac_header_compiler=no
14646 rm -f conftest.$ac_objext conftest.$ac_ext
14647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14648 echo "${ECHO_T}$ac_header_compiler" >&6
14650 # Is the header present?
14651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14653 cat >conftest.$ac_ext <<_ACEOF
14654 #line $LINENO "configure"
14655 #include "confdefs.h"
14656 #include <$ac_header>
14657 _ACEOF
14658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14660 ac_status=$?
14661 grep -v '^ *+' conftest.er1 >conftest.err
14662 rm -f conftest.er1
14663 cat conftest.err >&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } >/dev/null; then
14666 if test -s conftest.err; then
14667 ac_cpp_err=$ac_c_preproc_warn_flag
14668 else
14669 ac_cpp_err=
14671 else
14672 ac_cpp_err=yes
14674 if test -z "$ac_cpp_err"; then
14675 ac_header_preproc=yes
14676 else
14677 echo "$as_me: failed program was:" >&5
14678 cat conftest.$ac_ext >&5
14679 ac_header_preproc=no
14681 rm -f conftest.err conftest.$ac_ext
14682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14683 echo "${ECHO_T}$ac_header_preproc" >&6
14685 # So? What about this header?
14686 case $ac_header_compiler:$ac_header_preproc in
14687 yes:no )
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14692 no:yes )
14693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14699 esac
14700 echo "$as_me:$LINENO: checking for $ac_header" >&5
14701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 else
14705 eval "$as_ac_Header=$ac_header_preproc"
14707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14712 cat >>confdefs.h <<_ACEOF
14713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14714 _ACEOF
14718 done
14722 done
14726 done
14730 for ac_header in com_err.h
14732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14734 echo "$as_me:$LINENO: checking for $ac_header" >&5
14735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14737 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14741 else
14742 # Is the header compilable?
14743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14745 cat >conftest.$ac_ext <<_ACEOF
14746 #line $LINENO "configure"
14747 #include "confdefs.h"
14748 $ac_includes_default
14749 #include <$ac_header>
14750 _ACEOF
14751 rm -f conftest.$ac_objext
14752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14753 (eval $ac_compile) 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } &&
14757 { ac_try='test -s conftest.$ac_objext'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14760 ac_status=$?
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
14763 ac_header_compiler=yes
14764 else
14765 echo "$as_me: failed program was:" >&5
14766 cat conftest.$ac_ext >&5
14767 ac_header_compiler=no
14769 rm -f conftest.$ac_objext conftest.$ac_ext
14770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14771 echo "${ECHO_T}$ac_header_compiler" >&6
14773 # Is the header present?
14774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14776 cat >conftest.$ac_ext <<_ACEOF
14777 #line $LINENO "configure"
14778 #include "confdefs.h"
14779 #include <$ac_header>
14780 _ACEOF
14781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14783 ac_status=$?
14784 grep -v '^ *+' conftest.er1 >conftest.err
14785 rm -f conftest.er1
14786 cat conftest.err >&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } >/dev/null; then
14789 if test -s conftest.err; then
14790 ac_cpp_err=$ac_c_preproc_warn_flag
14791 else
14792 ac_cpp_err=
14794 else
14795 ac_cpp_err=yes
14797 if test -z "$ac_cpp_err"; then
14798 ac_header_preproc=yes
14799 else
14800 echo "$as_me: failed program was:" >&5
14801 cat conftest.$ac_ext >&5
14802 ac_header_preproc=no
14804 rm -f conftest.err conftest.$ac_ext
14805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14806 echo "${ECHO_T}$ac_header_preproc" >&6
14808 # So? What about this header?
14809 case $ac_header_compiler:$ac_header_preproc in
14810 yes:no )
14811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14815 no:yes )
14816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14822 esac
14823 echo "$as_me:$LINENO: checking for $ac_header" >&5
14824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14827 else
14828 eval "$as_ac_Header=$ac_header_preproc"
14830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14835 cat >>confdefs.h <<_ACEOF
14836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14837 _ACEOF
14841 done
14845 # Solaris requires -lintl if you want strerror (which calls dgettext)
14846 # to return localized messages.
14848 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14849 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
14850 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853 ac_check_lib_save_LIBS=$LIBS
14854 LIBS="-lintl $LIBS"
14855 cat >conftest.$ac_ext <<_ACEOF
14856 #line $LINENO "configure"
14857 #include "confdefs.h"
14859 /* Override any gcc2 internal prototype to avoid an error. */
14860 #ifdef __cplusplus
14861 extern "C"
14862 #endif
14863 /* We use char because int might match the return type of a gcc2
14864 builtin and then its argument prototype would still apply. */
14865 char dgettext ();
14867 main ()
14869 dgettext ();
14871 return 0;
14873 _ACEOF
14874 rm -f conftest.$ac_objext conftest$ac_exeext
14875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14876 (eval $ac_link) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } &&
14880 { ac_try='test -s conftest$ac_exeext'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 ac_cv_lib_intl_dgettext=yes
14887 else
14888 echo "$as_me: failed program was:" >&5
14889 cat conftest.$ac_ext >&5
14890 ac_cv_lib_intl_dgettext=no
14892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14893 LIBS=$ac_check_lib_save_LIBS
14895 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14896 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
14897 if test $ac_cv_lib_intl_dgettext = yes; then
14898 cat >>confdefs.h <<_ACEOF
14899 #define HAVE_LIBINTL 1
14900 _ACEOF
14902 LIBS="-lintl $LIBS"
14907 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
14908 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
14909 if test "${emacs_cv_localtime_cache+set}" = set; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 else
14912 if test x$ac_cv_func_tzset = xyes; then
14913 if test "$cross_compiling" = yes; then
14914 # If we have tzset, assume the worst when cross-compiling.
14915 emacs_cv_localtime_cache=yes
14916 else
14917 cat >conftest.$ac_ext <<_ACEOF
14918 #line $LINENO "configure"
14919 #include "confdefs.h"
14920 #include <time.h>
14921 extern char **environ;
14922 unset_TZ ()
14924 char **from, **to;
14925 for (to = from = environ; (*to = *from); from++)
14926 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
14927 to++;
14929 char TZ_GMT0[] = "TZ=GMT0";
14930 char TZ_PST8[] = "TZ=PST8";
14931 main()
14933 time_t now = time ((time_t *) 0);
14934 int hour_GMT0, hour_unset;
14935 if (putenv (TZ_GMT0) != 0)
14936 exit (1);
14937 hour_GMT0 = localtime (&now)->tm_hour;
14938 unset_TZ ();
14939 hour_unset = localtime (&now)->tm_hour;
14940 if (putenv (TZ_PST8) != 0)
14941 exit (1);
14942 if (localtime (&now)->tm_hour == hour_GMT0)
14943 exit (1);
14944 unset_TZ ();
14945 if (localtime (&now)->tm_hour != hour_unset)
14946 exit (1);
14947 exit (0);
14949 _ACEOF
14950 rm -f conftest$ac_exeext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14952 (eval $ac_link) 2>&5
14953 ac_status=$?
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957 (eval $ac_try) 2>&5
14958 ac_status=$?
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; }; then
14961 emacs_cv_localtime_cache=no
14962 else
14963 echo "$as_me: program exited with status $ac_status" >&5
14964 echo "$as_me: failed program was:" >&5
14965 cat conftest.$ac_ext >&5
14966 ( exit $ac_status )
14967 emacs_cv_localtime_cache=yes
14969 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14971 else
14972 # If we lack tzset, report that localtime does not cache TZ,
14973 # since we can't invalidate the cache if we don't have tzset.
14974 emacs_cv_localtime_cache=no
14977 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
14978 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
14979 if test $emacs_cv_localtime_cache = yes; then
14981 cat >>confdefs.h <<\_ACEOF
14982 #define LOCALTIME_CACHE 1
14983 _ACEOF
14987 if test "x$HAVE_TIMEVAL" = xyes; then
14989 for ac_func in gettimeofday
14991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14992 echo "$as_me:$LINENO: checking for $ac_func" >&5
14993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14994 if eval "test \"\${$as_ac_var+set}\" = set"; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 else
14997 cat >conftest.$ac_ext <<_ACEOF
14998 #line $LINENO "configure"
14999 #include "confdefs.h"
15000 /* System header to define __stub macros and hopefully few prototypes,
15001 which can conflict with char $ac_func (); below. */
15002 #include <assert.h>
15003 /* Override any gcc2 internal prototype to avoid an error. */
15004 #ifdef __cplusplus
15005 extern "C"
15006 #endif
15007 /* We use char because int might match the return type of a gcc2
15008 builtin and then its argument prototype would still apply. */
15009 char $ac_func ();
15010 char (*f) ();
15013 main ()
15015 /* The GNU C library defines this for functions which it implements
15016 to always fail with ENOSYS. Some functions are actually named
15017 something starting with __ and the normal name is an alias. */
15018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15019 choke me
15020 #else
15021 f = $ac_func;
15022 #endif
15025 return 0;
15027 _ACEOF
15028 rm -f conftest.$ac_objext conftest$ac_exeext
15029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15030 (eval $ac_link) 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } &&
15034 { ac_try='test -s conftest$ac_exeext'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15040 eval "$as_ac_var=yes"
15041 else
15042 echo "$as_me: failed program was:" >&5
15043 cat conftest.$ac_ext >&5
15044 eval "$as_ac_var=no"
15046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15050 if test `eval echo '${'$as_ac_var'}'` = yes; then
15051 cat >>confdefs.h <<_ACEOF
15052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15053 _ACEOF
15056 done
15058 if test $ac_cv_func_gettimeofday = yes; then
15059 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
15060 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
15061 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
15062 echo $ECHO_N "(cached) $ECHO_C" >&6
15063 else
15064 cat >conftest.$ac_ext <<_ACEOF
15065 #line $LINENO "configure"
15066 #include "confdefs.h"
15068 #ifdef TIME_WITH_SYS_TIME
15069 #include <sys/time.h>
15070 #include <time.h>
15071 #else
15072 #ifdef HAVE_SYS_TIME_H
15073 #include <sys/time.h>
15074 #else
15075 #include <time.h>
15076 #endif
15077 #endif
15079 main ()
15081 struct timeval time;
15082 gettimeofday (&time, 0);
15084 return 0;
15086 _ACEOF
15087 rm -f conftest.$ac_objext
15088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15089 (eval $ac_compile) 2>&5
15090 ac_status=$?
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } &&
15093 { ac_try='test -s conftest.$ac_objext'
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; }; then
15099 emacs_cv_gettimeofday_two_arguments=yes
15100 else
15101 echo "$as_me: failed program was:" >&5
15102 cat conftest.$ac_ext >&5
15103 emacs_cv_gettimeofday_two_arguments=no
15105 rm -f conftest.$ac_objext conftest.$ac_ext
15107 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
15108 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
15109 if test $emacs_cv_gettimeofday_two_arguments = no; then
15111 cat >>confdefs.h <<\_ACEOF
15112 #define GETTIMEOFDAY_ONE_ARGUMENT 1
15113 _ACEOF
15119 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15120 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15121 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
15122 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15123 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 else
15125 cat >conftest.$ac_ext <<_ACEOF
15126 #line $LINENO "configure"
15127 #include "confdefs.h"
15128 #include <sys/types.h>
15129 #include <$ac_cv_struct_tm>
15133 main ()
15135 static struct tm ac_aggr;
15136 if (ac_aggr.tm_zone)
15137 return 0;
15139 return 0;
15141 _ACEOF
15142 rm -f conftest.$ac_objext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15144 (eval $ac_compile) 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } &&
15148 { ac_try='test -s conftest.$ac_objext'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; }; then
15154 ac_cv_member_struct_tm_tm_zone=yes
15155 else
15156 echo "$as_me: failed program was:" >&5
15157 cat conftest.$ac_ext >&5
15158 cat >conftest.$ac_ext <<_ACEOF
15159 #line $LINENO "configure"
15160 #include "confdefs.h"
15161 #include <sys/types.h>
15162 #include <$ac_cv_struct_tm>
15166 main ()
15168 static struct tm ac_aggr;
15169 if (sizeof ac_aggr.tm_zone)
15170 return 0;
15172 return 0;
15174 _ACEOF
15175 rm -f conftest.$ac_objext
15176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15177 (eval $ac_compile) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } &&
15181 { ac_try='test -s conftest.$ac_objext'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_cv_member_struct_tm_tm_zone=yes
15188 else
15189 echo "$as_me: failed program was:" >&5
15190 cat conftest.$ac_ext >&5
15191 ac_cv_member_struct_tm_tm_zone=no
15193 rm -f conftest.$ac_objext conftest.$ac_ext
15195 rm -f conftest.$ac_objext conftest.$ac_ext
15197 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15198 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
15199 if test $ac_cv_member_struct_tm_tm_zone = yes; then
15201 cat >>confdefs.h <<_ACEOF
15202 #define HAVE_STRUCT_TM_TM_ZONE 1
15203 _ACEOF
15208 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15210 cat >>confdefs.h <<\_ACEOF
15211 #define HAVE_TM_ZONE 1
15212 _ACEOF
15214 else
15215 echo "$as_me:$LINENO: checking for tzname" >&5
15216 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
15217 if test "${ac_cv_var_tzname+set}" = set; then
15218 echo $ECHO_N "(cached) $ECHO_C" >&6
15219 else
15220 cat >conftest.$ac_ext <<_ACEOF
15221 #line $LINENO "configure"
15222 #include "confdefs.h"
15223 #include <time.h>
15224 #ifndef tzname /* For SGI. */
15225 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15226 #endif
15229 main ()
15231 atoi(*tzname);
15233 return 0;
15235 _ACEOF
15236 rm -f conftest.$ac_objext conftest$ac_exeext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15238 (eval $ac_link) 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
15242 { ac_try='test -s conftest$ac_exeext'
15243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244 (eval $ac_try) 2>&5
15245 ac_status=$?
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; }; then
15248 ac_cv_var_tzname=yes
15249 else
15250 echo "$as_me: failed program was:" >&5
15251 cat conftest.$ac_ext >&5
15252 ac_cv_var_tzname=no
15254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15256 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15257 echo "${ECHO_T}$ac_cv_var_tzname" >&6
15258 if test $ac_cv_var_tzname = yes; then
15260 cat >>confdefs.h <<\_ACEOF
15261 #define HAVE_TZNAME 1
15262 _ACEOF
15268 if test "$ac_cv_func_gettimeofday" = yes; then
15269 echo "$as_me:$LINENO: checking for struct timezone" >&5
15270 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
15271 if test "${emacs_cv_struct_timezone+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15273 else
15274 cat >conftest.$ac_ext <<_ACEOF
15275 #line $LINENO "configure"
15276 #include "confdefs.h"
15277 #include <sys/time.h>
15279 main ()
15281 struct timezone tz;
15283 return 0;
15285 _ACEOF
15286 rm -f conftest.$ac_objext
15287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15288 (eval $ac_compile) 2>&5
15289 ac_status=$?
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } &&
15292 { ac_try='test -s conftest.$ac_objext'
15293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294 (eval $ac_try) 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; }; then
15298 if test "$cross_compiling" = yes; then
15299 emacs_cv_struct_timezone=yes
15300 else
15301 cat >conftest.$ac_ext <<_ACEOF
15302 #line $LINENO "configure"
15303 #include "confdefs.h"
15305 #ifdef TIME_WITH_SYS_TIME
15306 #include <sys/time.h>
15307 #include <time.h>
15308 #else
15309 #ifdef HAVE_SYS_TIME_H
15310 #include <sys/time.h>
15311 #else
15312 #include <time.h>
15313 #endif
15314 #endif
15315 main () {
15316 struct timeval time;
15317 struct timezone dummy;
15318 exit (gettimeofday (&time, &dummy));
15320 _ACEOF
15321 rm -f conftest$ac_exeext
15322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15323 (eval $ac_link) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; }; then
15332 emacs_cv_struct_timezone=yes
15333 else
15334 echo "$as_me: program exited with status $ac_status" >&5
15335 echo "$as_me: failed program was:" >&5
15336 cat conftest.$ac_ext >&5
15337 ( exit $ac_status )
15338 emacs_cv_struct_timezone=no
15340 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15342 else
15343 echo "$as_me: failed program was:" >&5
15344 cat conftest.$ac_ext >&5
15345 emacs_cv_struct_timezone=no
15347 rm -f conftest.$ac_objext conftest.$ac_ext
15349 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
15350 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
15353 ok_so_far=yes
15354 echo "$as_me:$LINENO: checking for socket" >&5
15355 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15356 if test "${ac_cv_func_socket+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 else
15359 cat >conftest.$ac_ext <<_ACEOF
15360 #line $LINENO "configure"
15361 #include "confdefs.h"
15362 /* System header to define __stub macros and hopefully few prototypes,
15363 which can conflict with char socket (); below. */
15364 #include <assert.h>
15365 /* Override any gcc2 internal prototype to avoid an error. */
15366 #ifdef __cplusplus
15367 extern "C"
15368 #endif
15369 /* We use char because int might match the return type of a gcc2
15370 builtin and then its argument prototype would still apply. */
15371 char socket ();
15372 char (*f) ();
15375 main ()
15377 /* The GNU C library defines this for functions which it implements
15378 to always fail with ENOSYS. Some functions are actually named
15379 something starting with __ and the normal name is an alias. */
15380 #if defined (__stub_socket) || defined (__stub___socket)
15381 choke me
15382 #else
15383 f = socket;
15384 #endif
15387 return 0;
15389 _ACEOF
15390 rm -f conftest.$ac_objext conftest$ac_exeext
15391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15392 (eval $ac_link) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); } &&
15396 { ac_try='test -s conftest$ac_exeext'
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
15402 ac_cv_func_socket=yes
15403 else
15404 echo "$as_me: failed program was:" >&5
15405 cat conftest.$ac_ext >&5
15406 ac_cv_func_socket=no
15408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15410 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15411 echo "${ECHO_T}$ac_cv_func_socket" >&6
15412 if test $ac_cv_func_socket = yes; then
15414 else
15415 ok_so_far=no
15418 if test $ok_so_far = yes; then
15419 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15420 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
15421 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
15422 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15423 echo $ECHO_N "(cached) $ECHO_C" >&6
15425 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15426 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15427 else
15428 # Is the header compilable?
15429 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
15430 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
15431 cat >conftest.$ac_ext <<_ACEOF
15432 #line $LINENO "configure"
15433 #include "confdefs.h"
15434 $ac_includes_default
15435 #include <netinet/in.h>
15436 _ACEOF
15437 rm -f conftest.$ac_objext
15438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15439 (eval $ac_compile) 2>&5
15440 ac_status=$?
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } &&
15443 { ac_try='test -s conftest.$ac_objext'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15446 ac_status=$?
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15449 ac_header_compiler=yes
15450 else
15451 echo "$as_me: failed program was:" >&5
15452 cat conftest.$ac_ext >&5
15453 ac_header_compiler=no
15455 rm -f conftest.$ac_objext conftest.$ac_ext
15456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15457 echo "${ECHO_T}$ac_header_compiler" >&6
15459 # Is the header present?
15460 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
15461 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
15462 cat >conftest.$ac_ext <<_ACEOF
15463 #line $LINENO "configure"
15464 #include "confdefs.h"
15465 #include <netinet/in.h>
15466 _ACEOF
15467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15469 ac_status=$?
15470 grep -v '^ *+' conftest.er1 >conftest.err
15471 rm -f conftest.er1
15472 cat conftest.err >&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); } >/dev/null; then
15475 if test -s conftest.err; then
15476 ac_cpp_err=$ac_c_preproc_warn_flag
15477 else
15478 ac_cpp_err=
15480 else
15481 ac_cpp_err=yes
15483 if test -z "$ac_cpp_err"; then
15484 ac_header_preproc=yes
15485 else
15486 echo "$as_me: failed program was:" >&5
15487 cat conftest.$ac_ext >&5
15488 ac_header_preproc=no
15490 rm -f conftest.err conftest.$ac_ext
15491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15492 echo "${ECHO_T}$ac_header_preproc" >&6
15494 # So? What about this header?
15495 case $ac_header_compiler:$ac_header_preproc in
15496 yes:no )
15497 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
15498 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
15500 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
15501 no:yes )
15502 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
15503 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
15505 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
15507 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
15508 esac
15509 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
15510 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
15511 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514 ac_cv_header_netinet_in_h=$ac_header_preproc
15516 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15517 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15520 if test $ac_cv_header_netinet_in_h = yes; then
15522 else
15523 ok_so_far=no
15528 if test $ok_so_far = yes; then
15529 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15530 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15531 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15532 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15535 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15536 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15537 else
15538 # Is the header compilable?
15539 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
15540 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
15541 cat >conftest.$ac_ext <<_ACEOF
15542 #line $LINENO "configure"
15543 #include "confdefs.h"
15544 $ac_includes_default
15545 #include <arpa/inet.h>
15546 _ACEOF
15547 rm -f conftest.$ac_objext
15548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15549 (eval $ac_compile) 2>&5
15550 ac_status=$?
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } &&
15553 { ac_try='test -s conftest.$ac_objext'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15556 ac_status=$?
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15559 ac_header_compiler=yes
15560 else
15561 echo "$as_me: failed program was:" >&5
15562 cat conftest.$ac_ext >&5
15563 ac_header_compiler=no
15565 rm -f conftest.$ac_objext conftest.$ac_ext
15566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15567 echo "${ECHO_T}$ac_header_compiler" >&6
15569 # Is the header present?
15570 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
15571 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
15572 cat >conftest.$ac_ext <<_ACEOF
15573 #line $LINENO "configure"
15574 #include "confdefs.h"
15575 #include <arpa/inet.h>
15576 _ACEOF
15577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15579 ac_status=$?
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } >/dev/null; then
15585 if test -s conftest.err; then
15586 ac_cpp_err=$ac_c_preproc_warn_flag
15587 else
15588 ac_cpp_err=
15590 else
15591 ac_cpp_err=yes
15593 if test -z "$ac_cpp_err"; then
15594 ac_header_preproc=yes
15595 else
15596 echo "$as_me: failed program was:" >&5
15597 cat conftest.$ac_ext >&5
15598 ac_header_preproc=no
15600 rm -f conftest.err conftest.$ac_ext
15601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15602 echo "${ECHO_T}$ac_header_preproc" >&6
15604 # So? What about this header?
15605 case $ac_header_compiler:$ac_header_preproc in
15606 yes:no )
15607 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
15608 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15610 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15611 no:yes )
15612 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
15613 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
15614 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
15615 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
15616 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15617 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15618 esac
15619 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15620 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15621 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15623 else
15624 ac_cv_header_arpa_inet_h=$ac_header_preproc
15626 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15627 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15630 if test $ac_cv_header_arpa_inet_h = yes; then
15632 else
15633 ok_so_far=no
15638 if test $ok_so_far = yes; then
15640 cat >>confdefs.h <<\_ACEOF
15641 #define HAVE_INET_SOCKETS 1
15642 _ACEOF
15646 if test -f /usr/lpp/X11/bin/smt.exp; then
15648 cat >>confdefs.h <<\_ACEOF
15649 #define HAVE_AIX_SMT_EXP 1
15650 _ACEOF
15654 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
15655 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
15656 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15657 echo "$as_me:$LINENO: result: yes" >&5
15658 echo "${ECHO_T}yes" >&6
15660 cat >>confdefs.h <<\_ACEOF
15661 #define HAVE_DEV_PTMX 1
15662 _ACEOF
15664 else
15665 echo "$as_me:$LINENO: result: no" >&5
15666 echo "${ECHO_T}no" >&6
15669 echo "$as_me:$LINENO: checking for pid_t" >&5
15670 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15671 if test "${ac_cv_type_pid_t+set}" = set; then
15672 echo $ECHO_N "(cached) $ECHO_C" >&6
15673 else
15674 cat >conftest.$ac_ext <<_ACEOF
15675 #line $LINENO "configure"
15676 #include "confdefs.h"
15677 $ac_includes_default
15679 main ()
15681 if ((pid_t *) 0)
15682 return 0;
15683 if (sizeof (pid_t))
15684 return 0;
15686 return 0;
15688 _ACEOF
15689 rm -f conftest.$ac_objext
15690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15691 (eval $ac_compile) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } &&
15695 { ac_try='test -s conftest.$ac_objext'
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; }; then
15701 ac_cv_type_pid_t=yes
15702 else
15703 echo "$as_me: failed program was:" >&5
15704 cat conftest.$ac_ext >&5
15705 ac_cv_type_pid_t=no
15707 rm -f conftest.$ac_objext conftest.$ac_ext
15709 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15710 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15711 if test $ac_cv_type_pid_t = yes; then
15713 else
15715 cat >>confdefs.h <<_ACEOF
15716 #define pid_t int
15717 _ACEOF
15723 for ac_header in unistd.h vfork.h
15725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15727 echo "$as_me:$LINENO: checking for $ac_header" >&5
15728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15734 else
15735 # Is the header compilable?
15736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15738 cat >conftest.$ac_ext <<_ACEOF
15739 #line $LINENO "configure"
15740 #include "confdefs.h"
15741 $ac_includes_default
15742 #include <$ac_header>
15743 _ACEOF
15744 rm -f conftest.$ac_objext
15745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15746 (eval $ac_compile) 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } &&
15750 { ac_try='test -s conftest.$ac_objext'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }; then
15756 ac_header_compiler=yes
15757 else
15758 echo "$as_me: failed program was:" >&5
15759 cat conftest.$ac_ext >&5
15760 ac_header_compiler=no
15762 rm -f conftest.$ac_objext conftest.$ac_ext
15763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15764 echo "${ECHO_T}$ac_header_compiler" >&6
15766 # Is the header present?
15767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15769 cat >conftest.$ac_ext <<_ACEOF
15770 #line $LINENO "configure"
15771 #include "confdefs.h"
15772 #include <$ac_header>
15773 _ACEOF
15774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15776 ac_status=$?
15777 grep -v '^ *+' conftest.er1 >conftest.err
15778 rm -f conftest.er1
15779 cat conftest.err >&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } >/dev/null; then
15782 if test -s conftest.err; then
15783 ac_cpp_err=$ac_c_preproc_warn_flag
15784 else
15785 ac_cpp_err=
15787 else
15788 ac_cpp_err=yes
15790 if test -z "$ac_cpp_err"; then
15791 ac_header_preproc=yes
15792 else
15793 echo "$as_me: failed program was:" >&5
15794 cat conftest.$ac_ext >&5
15795 ac_header_preproc=no
15797 rm -f conftest.err conftest.$ac_ext
15798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15799 echo "${ECHO_T}$ac_header_preproc" >&6
15801 # So? What about this header?
15802 case $ac_header_compiler:$ac_header_preproc in
15803 yes:no )
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15808 no:yes )
15809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15815 esac
15816 echo "$as_me:$LINENO: checking for $ac_header" >&5
15817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15820 else
15821 eval "$as_ac_Header=$ac_header_preproc"
15823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15828 cat >>confdefs.h <<_ACEOF
15829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15830 _ACEOF
15834 done
15838 for ac_func in fork vfork
15840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15841 echo "$as_me:$LINENO: checking for $ac_func" >&5
15842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15843 if eval "test \"\${$as_ac_var+set}\" = set"; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 else
15846 cat >conftest.$ac_ext <<_ACEOF
15847 #line $LINENO "configure"
15848 #include "confdefs.h"
15849 /* System header to define __stub macros and hopefully few prototypes,
15850 which can conflict with char $ac_func (); below. */
15851 #include <assert.h>
15852 /* Override any gcc2 internal prototype to avoid an error. */
15853 #ifdef __cplusplus
15854 extern "C"
15855 #endif
15856 /* We use char because int might match the return type of a gcc2
15857 builtin and then its argument prototype would still apply. */
15858 char $ac_func ();
15859 char (*f) ();
15862 main ()
15864 /* The GNU C library defines this for functions which it implements
15865 to always fail with ENOSYS. Some functions are actually named
15866 something starting with __ and the normal name is an alias. */
15867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15868 choke me
15869 #else
15870 f = $ac_func;
15871 #endif
15874 return 0;
15876 _ACEOF
15877 rm -f conftest.$ac_objext conftest$ac_exeext
15878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15879 (eval $ac_link) 2>&5
15880 ac_status=$?
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } &&
15883 { ac_try='test -s conftest$ac_exeext'
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15886 ac_status=$?
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; }; then
15889 eval "$as_ac_var=yes"
15890 else
15891 echo "$as_me: failed program was:" >&5
15892 cat conftest.$ac_ext >&5
15893 eval "$as_ac_var=no"
15895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15899 if test `eval echo '${'$as_ac_var'}'` = yes; then
15900 cat >>confdefs.h <<_ACEOF
15901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15902 _ACEOF
15905 done
15907 if test "x$ac_cv_func_fork" = xyes; then
15908 echo "$as_me:$LINENO: checking for working fork" >&5
15909 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15910 if test "${ac_cv_func_fork_works+set}" = set; then
15911 echo $ECHO_N "(cached) $ECHO_C" >&6
15912 else
15913 if test "$cross_compiling" = yes; then
15914 ac_cv_func_fork_works=cross
15915 else
15916 cat >conftest.$ac_ext <<_ACEOF
15917 /* By Ruediger Kuhlmann. */
15918 #include <sys/types.h>
15919 #if HAVE_UNISTD_H
15920 # include <unistd.h>
15921 #endif
15922 /* Some systems only have a dummy stub for fork() */
15923 int main ()
15925 if (fork() < 0)
15926 exit (1);
15927 exit (0);
15929 _ACEOF
15930 rm -f conftest$ac_exeext
15931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15932 (eval $ac_link) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15937 (eval $ac_try) 2>&5
15938 ac_status=$?
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); }; }; then
15941 ac_cv_func_fork_works=yes
15942 else
15943 echo "$as_me: program exited with status $ac_status" >&5
15944 echo "$as_me: failed program was:" >&5
15945 cat conftest.$ac_ext >&5
15946 ( exit $ac_status )
15947 ac_cv_func_fork_works=no
15949 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15952 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15953 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15955 else
15956 ac_cv_func_fork_works=$ac_cv_func_fork
15958 if test "x$ac_cv_func_fork_works" = xcross; then
15959 case $host in
15960 *-*-amigaos* | *-*-msdosdjgpp*)
15961 # Override, as these systems have only a dummy fork() stub
15962 ac_cv_func_fork_works=no
15965 ac_cv_func_fork_works=yes
15967 esac
15968 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15969 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15971 ac_cv_func_vfork_works=$ac_cv_func_vfork
15972 if test "x$ac_cv_func_vfork" = xyes; then
15973 echo "$as_me:$LINENO: checking for working vfork" >&5
15974 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15975 if test "${ac_cv_func_vfork_works+set}" = set; then
15976 echo $ECHO_N "(cached) $ECHO_C" >&6
15977 else
15978 if test "$cross_compiling" = yes; then
15979 ac_cv_func_vfork_works=cross
15980 else
15981 cat >conftest.$ac_ext <<_ACEOF
15982 #line $LINENO "configure"
15983 #include "confdefs.h"
15984 /* Thanks to Paul Eggert for this test. */
15985 #include <stdio.h>
15986 #include <sys/types.h>
15987 #include <sys/stat.h>
15988 #if HAVE_UNISTD_H
15989 # include <unistd.h>
15990 #endif
15991 #if HAVE_VFORK_H
15992 # include <vfork.h>
15993 #endif
15994 /* On some sparc systems, changes by the child to local and incoming
15995 argument registers are propagated back to the parent. The compiler
15996 is told about this with #include <vfork.h>, but some compilers
15997 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15998 static variable whose address is put into a register that is
15999 clobbered by the vfork. */
16000 static
16001 #ifdef __cplusplus
16002 sparc_address_test (int arg)
16003 # else
16004 sparc_address_test (arg) int arg;
16005 #endif
16007 static pid_t child;
16008 if (!child) {
16009 child = vfork ();
16010 if (child < 0) {
16011 perror ("vfork");
16012 _exit(2);
16014 if (!child) {
16015 arg = getpid();
16016 write(-1, "", 0);
16017 _exit (arg);
16023 main ()
16025 pid_t parent = getpid ();
16026 pid_t child;
16028 sparc_address_test ();
16030 child = vfork ();
16032 if (child == 0) {
16033 /* Here is another test for sparc vfork register problems. This
16034 test uses lots of local variables, at least as many local
16035 variables as main has allocated so far including compiler
16036 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16037 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16038 reuse the register of parent for one of the local variables,
16039 since it will think that parent can't possibly be used any more
16040 in this routine. Assigning to the local variable will thus
16041 munge parent in the parent process. */
16042 pid_t
16043 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16044 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16045 /* Convince the compiler that p..p7 are live; otherwise, it might
16046 use the same hardware register for all 8 local variables. */
16047 if (p != p1 || p != p2 || p != p3 || p != p4
16048 || p != p5 || p != p6 || p != p7)
16049 _exit(1);
16051 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16052 from child file descriptors. If the child closes a descriptor
16053 before it execs or exits, this munges the parent's descriptor
16054 as well. Test for this by closing stdout in the child. */
16055 _exit(close(fileno(stdout)) != 0);
16056 } else {
16057 int status;
16058 struct stat st;
16060 while (wait(&status) != child)
16062 exit(
16063 /* Was there some problem with vforking? */
16064 child < 0
16066 /* Did the child fail? (This shouldn't happen.) */
16067 || status
16069 /* Did the vfork/compiler bug occur? */
16070 || parent != getpid()
16072 /* Did the file descriptor bug occur? */
16073 || fstat(fileno(stdout), &st) != 0
16077 _ACEOF
16078 rm -f conftest$ac_exeext
16079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16080 (eval $ac_link) 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 ac_cv_func_vfork_works=yes
16090 else
16091 echo "$as_me: program exited with status $ac_status" >&5
16092 echo "$as_me: failed program was:" >&5
16093 cat conftest.$ac_ext >&5
16094 ( exit $ac_status )
16095 ac_cv_func_vfork_works=no
16097 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16100 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16101 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
16104 if test "x$ac_cv_func_fork_works" = xcross; then
16105 ac_cv_func_vfork_works=ac_cv_func_vfork
16106 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16107 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16110 if test "x$ac_cv_func_vfork_works" = xyes; then
16112 cat >>confdefs.h <<\_ACEOF
16113 #define HAVE_WORKING_VFORK 1
16114 _ACEOF
16116 else
16118 cat >>confdefs.h <<\_ACEOF
16119 #define vfork fork
16120 _ACEOF
16123 if test "x$ac_cv_func_fork_works" = xyes; then
16125 cat >>confdefs.h <<\_ACEOF
16126 #define HAVE_WORKING_FORK 1
16127 _ACEOF
16132 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16133 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16134 if test "${emacs_cv_langinfo_codeset+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16136 else
16137 cat >conftest.$ac_ext <<_ACEOF
16138 #line $LINENO "configure"
16139 #include "confdefs.h"
16140 #include <langinfo.h>
16142 main ()
16144 char* cs = nl_langinfo(CODESET);
16146 return 0;
16148 _ACEOF
16149 rm -f conftest.$ac_objext conftest$ac_exeext
16150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16151 (eval $ac_link) 2>&5
16152 ac_status=$?
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } &&
16155 { ac_try='test -s conftest$ac_exeext'
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; }; then
16161 emacs_cv_langinfo_codeset=yes
16162 else
16163 echo "$as_me: failed program was:" >&5
16164 cat conftest.$ac_ext >&5
16165 emacs_cv_langinfo_codeset=no
16167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16170 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
16171 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
16172 if test $emacs_cv_langinfo_codeset = yes; then
16174 cat >>confdefs.h <<\_ACEOF
16175 #define HAVE_LANGINFO_CODESET 1
16176 _ACEOF
16180 echo "$as_me:$LINENO: checking for size_t" >&5
16181 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16182 if test "${ac_cv_type_size_t+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185 cat >conftest.$ac_ext <<_ACEOF
16186 #line $LINENO "configure"
16187 #include "confdefs.h"
16188 $ac_includes_default
16190 main ()
16192 if ((size_t *) 0)
16193 return 0;
16194 if (sizeof (size_t))
16195 return 0;
16197 return 0;
16199 _ACEOF
16200 rm -f conftest.$ac_objext
16201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16202 (eval $ac_compile) 2>&5
16203 ac_status=$?
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } &&
16206 { ac_try='test -s conftest.$ac_objext'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16209 ac_status=$?
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; }; then
16212 ac_cv_type_size_t=yes
16213 else
16214 echo "$as_me: failed program was:" >&5
16215 cat conftest.$ac_ext >&5
16216 ac_cv_type_size_t=no
16218 rm -f conftest.$ac_objext conftest.$ac_ext
16220 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16221 echo "${ECHO_T}$ac_cv_type_size_t" >&6
16222 if test $ac_cv_type_size_t = yes; then
16224 cat >>confdefs.h <<_ACEOF
16225 #define HAVE_SIZE_T 1
16226 _ACEOF
16232 echo "$as_me:$LINENO: checking for mbstate_t" >&5
16233 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
16234 if test "${ac_cv_type_mbstate_t+set}" = set; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16236 else
16237 cat >conftest.$ac_ext <<_ACEOF
16238 #line $LINENO "configure"
16239 #include "confdefs.h"
16240 $ac_includes_default
16241 # include <wchar.h>
16243 main ()
16245 mbstate_t x; return sizeof x;
16247 return 0;
16249 _ACEOF
16250 rm -f conftest.$ac_objext
16251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16252 (eval $ac_compile) 2>&5
16253 ac_status=$?
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
16256 { ac_try='test -s conftest.$ac_objext'
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16259 ac_status=$?
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; }; then
16262 ac_cv_type_mbstate_t=yes
16263 else
16264 echo "$as_me: failed program was:" >&5
16265 cat conftest.$ac_ext >&5
16266 ac_cv_type_mbstate_t=no
16268 rm -f conftest.$ac_objext conftest.$ac_ext
16270 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
16271 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
16272 if test $ac_cv_type_mbstate_t = yes; then
16274 cat >>confdefs.h <<\_ACEOF
16275 #define HAVE_MBSTATE_T 1
16276 _ACEOF
16278 else
16280 cat >>confdefs.h <<\_ACEOF
16281 #define mbstate_t int
16282 _ACEOF
16286 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
16287 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
16288 if test "${emacs_cv_c_restrict+set}" = set; then
16289 echo $ECHO_N "(cached) $ECHO_C" >&6
16290 else
16291 cat >conftest.$ac_ext <<_ACEOF
16292 #line $LINENO "configure"
16293 #include "confdefs.h"
16294 void fred (int *restrict x);
16296 main ()
16300 return 0;
16302 _ACEOF
16303 rm -f conftest.$ac_objext
16304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16305 (eval $ac_compile) 2>&5
16306 ac_status=$?
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try='test -s conftest.$ac_objext'
16310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311 (eval $ac_try) 2>&5
16312 ac_status=$?
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; }; then
16315 emacs_cv_c_restrict=yes
16316 else
16317 echo "$as_me: failed program was:" >&5
16318 cat conftest.$ac_ext >&5
16319 cat >conftest.$ac_ext <<_ACEOF
16320 #line $LINENO "configure"
16321 #include "confdefs.h"
16322 void fred (int *__restrict x);
16324 main ()
16328 return 0;
16330 _ACEOF
16331 rm -f conftest.$ac_objext
16332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16333 (eval $ac_compile) 2>&5
16334 ac_status=$?
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); } &&
16337 { ac_try='test -s conftest.$ac_objext'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16343 emacs_cv_c_restrict=__restrict
16344 else
16345 echo "$as_me: failed program was:" >&5
16346 cat conftest.$ac_ext >&5
16347 emacs_cv_c_restrict=no
16349 rm -f conftest.$ac_objext conftest.$ac_ext
16351 rm -f conftest.$ac_objext conftest.$ac_ext
16353 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
16354 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
16355 case "$emacs_cv_c_restrict" in
16356 yes) emacs_restrict=restrict;;
16357 no) emacs_restrict="";;
16358 *) emacs_restrict="$emacs_cv_c_restrict";;
16359 esac
16360 if test "$emacs_restrict" != __restrict; then
16362 cat >>confdefs.h <<_ACEOF
16363 #define __restrict $emacs_restrict
16364 _ACEOF
16368 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
16369 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
16370 if test "${emacs_cv_c_restrict_arr+set}" = set; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 else
16373 cat >conftest.$ac_ext <<_ACEOF
16374 #line $LINENO "configure"
16375 #include "confdefs.h"
16376 void fred (int x[__restrict]);
16378 main ()
16382 return 0;
16384 _ACEOF
16385 rm -f conftest.$ac_objext
16386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16387 (eval $ac_compile) 2>&5
16388 ac_status=$?
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); } &&
16391 { ac_try='test -s conftest.$ac_objext'
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16394 ac_status=$?
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; }; then
16397 emacs_cv_c_restrict_arr=yes
16398 else
16399 echo "$as_me: failed program was:" >&5
16400 cat conftest.$ac_ext >&5
16401 emacs_cv_c_restrict_arr=no
16403 rm -f conftest.$ac_objext conftest.$ac_ext
16405 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
16406 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
16407 if test "$emacs_cv_c_restrict_arr" = yes; then
16409 cat >>confdefs.h <<\_ACEOF
16410 #define __restrict_arr __restrict
16411 _ACEOF
16417 # Set up the CFLAGS for real compilation, so we can substitute it.
16418 CFLAGS="$REAL_CFLAGS"
16419 CPPFLAGS="$REAL_CPPFLAGS"
16421 #### Find out which version of Emacs this is.
16422 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
16423 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
16424 if test x"${version}" = x; then
16425 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
16426 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
16427 { (exit 1); exit 1; }; }
16430 ### Specify what sort of things we'll be editing into Makefile and config.h.
16431 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16467 cat >>confdefs.h <<_ACEOF
16468 #define EMACS_CONFIGURATION "${canonical}"
16469 _ACEOF
16472 cat >>confdefs.h <<_ACEOF
16473 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16474 _ACEOF
16477 cat >>confdefs.h <<_ACEOF
16478 #define config_machfile "${machfile}"
16479 _ACEOF
16482 cat >>confdefs.h <<_ACEOF
16483 #define config_opsysfile "${opsysfile}"
16484 _ACEOF
16487 cat >>confdefs.h <<_ACEOF
16488 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
16489 _ACEOF
16492 cat >>confdefs.h <<_ACEOF
16493 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
16494 _ACEOF
16497 cat >>confdefs.h <<_ACEOF
16498 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
16499 _ACEOF
16502 cat >>confdefs.h <<_ACEOF
16503 #define UNEXEC_SRC ${UNEXEC_SRC}
16504 _ACEOF
16507 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16509 cat >>confdefs.h <<\_ACEOF
16510 #define HAVE_X_WINDOWS 1
16511 _ACEOF
16514 if test "${USE_X_TOOLKIT}" != "none" ; then
16516 cat >>confdefs.h <<\_ACEOF
16517 #define USE_X_TOOLKIT 1
16518 _ACEOF
16521 if test "${HAVE_X11}" = "yes" ; then
16523 cat >>confdefs.h <<\_ACEOF
16524 #define HAVE_X11 1
16525 _ACEOF
16528 if test "${HAVE_XFREE386}" = "yes" ; then
16530 cat >>confdefs.h <<\_ACEOF
16531 #define HAVE_XFREE386 1
16532 _ACEOF
16535 if test "${HAVE_MENUS}" = "yes" ; then
16537 cat >>confdefs.h <<\_ACEOF
16538 #define HAVE_MENUS 1
16539 _ACEOF
16542 if test "${GNU_MALLOC}" = "yes" ; then
16544 cat >>confdefs.h <<\_ACEOF
16545 #define GNU_MALLOC 1
16546 _ACEOF
16549 if test "${REL_ALLOC}" = "yes" ; then
16551 cat >>confdefs.h <<\_ACEOF
16552 #define REL_ALLOC 1
16553 _ACEOF
16561 #### Report on what we decided to do.
16562 #### Report GTK as a toolkit, even if it doesn't use Xt.
16563 #### It makes printing result more understandable as using GTK sets
16564 #### toolkit_scroll_bars to yes by default.
16565 if test "${HAVE_GTK}" = "yes"; then
16566 USE_X_TOOLKIT=GTK
16569 echo "
16570 Configured for \`${canonical}'.
16572 Where should the build process find the source code? ${srcdir}
16573 What operating system and machine description files should Emacs use?
16574 \`${opsysfile}' and \`${machfile}'
16575 What compiler should emacs be built with? ${CC} ${CFLAGS}
16576 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
16577 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
16578 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
16579 What window system should Emacs use? ${window_system}
16580 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
16582 if test -n "${x_includes}"; then
16583 echo " Where do we find X Windows header files? ${x_includes}"
16584 else
16585 echo " Where do we find X Windows header files? Standard dirs"
16587 if test -n "${x_libraries}"; then
16588 echo " Where do we find X Windows libraries? ${x_libraries}"
16589 else
16590 echo " Where do we find X Windows libraries? Standard dirs"
16593 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
16594 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
16595 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
16596 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
16597 echo " Does Emacs use -lungif? ${HAVE_GIF}"
16598 echo " Does Emacs use -lpng? ${HAVE_PNG}"
16599 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
16600 echo
16602 # Remove any trailing slashes in these variables.
16603 test "${prefix}" != NONE &&
16604 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
16605 test "${exec_prefix}" != NONE &&
16606 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
16608 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
16609 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
16610 ## from Makefile.c can correctly provide the arg `-traditional' to the
16611 ## C preprocessor.
16613 cat >conftest.$ac_ext <<_ACEOF
16614 #line $LINENO "configure"
16615 #include "confdefs.h"
16616 yes..yes
16617 _ACEOF
16618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16619 $EGREP "yes..yes" >/dev/null 2>&1; then
16620 CPP_NEED_TRADITIONAL=no
16621 else
16622 CPP_NEED_TRADITIONAL=yes
16624 rm -f conftest*
16627 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"
16628 ac_config_commands="$ac_config_commands default"
16629 cat >confcache <<\_ACEOF
16630 # This file is a shell script that caches the results of configure
16631 # tests run on this system so they can be shared between configure
16632 # scripts and configure runs, see configure's option --config-cache.
16633 # It is not useful on other systems. If it contains results you don't
16634 # want to keep, you may remove or edit it.
16636 # config.status only pays attention to the cache file if you give it
16637 # the --recheck option to rerun configure.
16639 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16640 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16641 # following values.
16643 _ACEOF
16645 # The following way of writing the cache mishandles newlines in values,
16646 # but we know of no workaround that is simple, portable, and efficient.
16647 # So, don't put newlines in cache variables' values.
16648 # Ultrix sh set writes to stderr and can't be redirected directly,
16649 # and sets the high bit in the cache file unless we assign to the vars.
16651 (set) 2>&1 |
16652 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16653 *ac_space=\ *)
16654 # `set' does not quote correctly, so add quotes (double-quote
16655 # substitution turns \\\\ into \\, and sed turns \\ into \).
16656 sed -n \
16657 "s/'/'\\\\''/g;
16658 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16661 # `set' quotes correctly as required by POSIX, so do not add quotes.
16662 sed -n \
16663 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16665 esac;
16667 sed '
16668 t clear
16669 : clear
16670 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16671 t end
16672 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16673 : end' >>confcache
16674 if cmp -s $cache_file confcache; then :; else
16675 if test -w $cache_file; then
16676 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16677 cat confcache >$cache_file
16678 else
16679 echo "not updating unwritable cache $cache_file"
16682 rm -f confcache
16684 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16685 # Let make expand exec_prefix.
16686 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16688 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16689 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16690 # trailing colons and then remove the whole line if VPATH becomes empty
16691 # (actually we leave an empty line to preserve line numbers).
16692 if test "x$srcdir" = x.; then
16693 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16694 s/:*\$(srcdir):*/:/;
16695 s/:*\${srcdir}:*/:/;
16696 s/:*@srcdir@:*/:/;
16697 s/^\([^=]*=[ ]*\):*/\1/;
16698 s/:*$//;
16699 s/^[^=]*=[ ]*$//;
16703 DEFS=-DHAVE_CONFIG_H
16705 ac_libobjs=
16706 ac_ltlibobjs=
16707 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16708 # 1. Remove the extension, and $U if already installed.
16709 ac_i=`echo "$ac_i" |
16710 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16711 # 2. Add them.
16712 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16713 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16714 done
16715 LIBOBJS=$ac_libobjs
16717 LTLIBOBJS=$ac_ltlibobjs
16721 : ${CONFIG_STATUS=./config.status}
16722 ac_clean_files_save=$ac_clean_files
16723 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16724 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16725 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16726 cat >$CONFIG_STATUS <<_ACEOF
16727 #! $SHELL
16728 # Generated by $as_me.
16729 # Run this file to recreate the current configuration.
16730 # Compiler output produced by configure, useful for debugging
16731 # configure, is in config.log if it exists.
16733 debug=false
16734 SHELL=\${CONFIG_SHELL-$SHELL}
16735 _ACEOF
16737 cat >>$CONFIG_STATUS <<\_ACEOF
16738 ## --------------------- ##
16739 ## M4sh Initialization. ##
16740 ## --------------------- ##
16742 # Be Bourne compatible
16743 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16744 emulate sh
16745 NULLCMD=:
16746 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16747 # is contrary to our usage. Disable this feature.
16748 alias -g '${1+"$@"}'='"$@"'
16749 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16750 set -o posix
16753 # Support unset when possible.
16754 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16755 as_unset=unset
16756 else
16757 as_unset=false
16761 # Work around bugs in pre-3.0 UWIN ksh.
16762 $as_unset ENV MAIL MAILPATH
16763 PS1='$ '
16764 PS2='> '
16765 PS4='+ '
16767 # NLS nuisances.
16768 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
16770 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
16771 eval $as_var=C; export $as_var
16772 else
16773 $as_unset $as_var
16775 done
16777 # Required to use basename.
16778 if expr a : '\(a\)' >/dev/null 2>&1; then
16779 as_expr=expr
16780 else
16781 as_expr=false
16784 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16785 as_basename=basename
16786 else
16787 as_basename=false
16791 # Name of the executable.
16792 as_me=`$as_basename "$0" ||
16793 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16794 X"$0" : 'X\(//\)$' \| \
16795 X"$0" : 'X\(/\)$' \| \
16796 . : '\(.\)' 2>/dev/null ||
16797 echo X/"$0" |
16798 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16799 /^X\/\(\/\/\)$/{ s//\1/; q; }
16800 /^X\/\(\/\).*/{ s//\1/; q; }
16801 s/.*/./; q'`
16804 # PATH needs CR, and LINENO needs CR and PATH.
16805 # Avoid depending upon Character Ranges.
16806 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16807 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16808 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16809 as_cr_digits='0123456789'
16810 as_cr_alnum=$as_cr_Letters$as_cr_digits
16812 # The user is always right.
16813 if test "${PATH_SEPARATOR+set}" != set; then
16814 echo "#! /bin/sh" >conftest.sh
16815 echo "exit 0" >>conftest.sh
16816 chmod +x conftest.sh
16817 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
16818 PATH_SEPARATOR=';'
16819 else
16820 PATH_SEPARATOR=:
16822 rm -f conftest.sh
16826 as_lineno_1=$LINENO
16827 as_lineno_2=$LINENO
16828 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16829 test "x$as_lineno_1" != "x$as_lineno_2" &&
16830 test "x$as_lineno_3" = "x$as_lineno_2" || {
16831 # Find who we are. Look in the path if we contain no path at all
16832 # relative or not.
16833 case $0 in
16834 *[\\/]* ) as_myself=$0 ;;
16835 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16836 for as_dir in $PATH
16838 IFS=$as_save_IFS
16839 test -z "$as_dir" && as_dir=.
16840 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16841 done
16844 esac
16845 # We did not find ourselves, most probably we were run as `sh COMMAND'
16846 # in which case we are not to be found in the path.
16847 if test "x$as_myself" = x; then
16848 as_myself=$0
16850 if test ! -f "$as_myself"; then
16851 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16852 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16853 { (exit 1); exit 1; }; }
16855 case $CONFIG_SHELL in
16857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16858 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16860 IFS=$as_save_IFS
16861 test -z "$as_dir" && as_dir=.
16862 for as_base in sh bash ksh sh5; do
16863 case $as_dir in
16865 if ("$as_dir/$as_base" -c '
16866 as_lineno_1=$LINENO
16867 as_lineno_2=$LINENO
16868 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16869 test "x$as_lineno_1" != "x$as_lineno_2" &&
16870 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16871 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16872 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16873 CONFIG_SHELL=$as_dir/$as_base
16874 export CONFIG_SHELL
16875 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16876 fi;;
16877 esac
16878 done
16879 done
16881 esac
16883 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16884 # uniformly replaced by the line number. The first 'sed' inserts a
16885 # line-number line before each line; the second 'sed' does the real
16886 # work. The second script uses 'N' to pair each line-number line
16887 # with the numbered line, and appends trailing '-' during
16888 # substitution so that $LINENO is not a special case at line end.
16889 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16890 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16891 sed '=' <$as_myself |
16892 sed '
16894 s,$,-,
16895 : loop
16896 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16897 t loop
16898 s,-$,,
16899 s,^['$as_cr_digits']*\n,,
16900 ' >$as_me.lineno &&
16901 chmod +x $as_me.lineno ||
16902 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16903 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16904 { (exit 1); exit 1; }; }
16906 # Don't try to exec as it changes $[0], causing all sort of problems
16907 # (the dirname of $[0] is not the place where we might find the
16908 # original and so on. Autoconf is especially sensible to this).
16909 . ./$as_me.lineno
16910 # Exit status is that of the last command.
16911 exit
16915 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16916 *c*,-n*) ECHO_N= ECHO_C='
16917 ' ECHO_T=' ' ;;
16918 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16919 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16920 esac
16922 if expr a : '\(a\)' >/dev/null 2>&1; then
16923 as_expr=expr
16924 else
16925 as_expr=false
16928 rm -f conf$$ conf$$.exe conf$$.file
16929 echo >conf$$.file
16930 if ln -s conf$$.file conf$$ 2>/dev/null; then
16931 # We could just check for DJGPP; but this test a) works b) is more generic
16932 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16933 if test -f conf$$.exe; then
16934 # Don't use ln at all; we don't have any links
16935 as_ln_s='cp -p'
16936 else
16937 as_ln_s='ln -s'
16939 elif ln conf$$.file conf$$ 2>/dev/null; then
16940 as_ln_s=ln
16941 else
16942 as_ln_s='cp -p'
16944 rm -f conf$$ conf$$.exe conf$$.file
16946 if mkdir -p . 2>/dev/null; then
16947 as_mkdir_p=:
16948 else
16949 as_mkdir_p=false
16952 as_executable_p="test -f"
16954 # Sed expression to map a string onto a valid CPP name.
16955 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16957 # Sed expression to map a string onto a valid variable name.
16958 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16961 # IFS
16962 # We need space, tab and new line, in precisely that order.
16963 as_nl='
16965 IFS=" $as_nl"
16967 # CDPATH.
16968 $as_unset CDPATH
16970 exec 6>&1
16972 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16973 # report actual input values of CONFIG_FILES etc. instead of their
16974 # values after options handling. Logging --version etc. is OK.
16975 exec 5>>config.log
16977 echo
16978 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16979 ## Running $as_me. ##
16980 _ASBOX
16981 } >&5
16982 cat >&5 <<_CSEOF
16984 This file was extended by $as_me, which was
16985 generated by GNU Autoconf 2.54. Invocation command line was
16987 CONFIG_FILES = $CONFIG_FILES
16988 CONFIG_HEADERS = $CONFIG_HEADERS
16989 CONFIG_LINKS = $CONFIG_LINKS
16990 CONFIG_COMMANDS = $CONFIG_COMMANDS
16991 $ $0 $@
16993 _CSEOF
16994 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16995 echo >&5
16996 _ACEOF
16998 # Files that config.status was made for.
16999 if test -n "$ac_config_files"; then
17000 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17003 if test -n "$ac_config_headers"; then
17004 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17007 if test -n "$ac_config_links"; then
17008 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17011 if test -n "$ac_config_commands"; then
17012 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17015 cat >>$CONFIG_STATUS <<\_ACEOF
17017 ac_cs_usage="\
17018 \`$as_me' instantiates files from templates according to the
17019 current configuration.
17021 Usage: $0 [OPTIONS] [FILE]...
17023 -h, --help print this help, then exit
17024 -V, --version print version number, then exit
17025 -d, --debug don't remove temporary files
17026 --recheck update $as_me by reconfiguring in the same conditions
17027 --file=FILE[:TEMPLATE]
17028 instantiate the configuration file FILE
17029 --header=FILE[:TEMPLATE]
17030 instantiate the configuration header FILE
17032 Configuration files:
17033 $config_files
17035 Configuration headers:
17036 $config_headers
17038 Configuration commands:
17039 $config_commands
17041 Report bugs to <bug-autoconf@gnu.org>."
17042 _ACEOF
17044 cat >>$CONFIG_STATUS <<_ACEOF
17045 ac_cs_version="\\
17046 config.status
17047 configured by $0, generated by GNU Autoconf 2.54,
17048 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17050 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17051 Free Software Foundation, Inc.
17052 This config.status script is free software; the Free Software Foundation
17053 gives unlimited permission to copy, distribute and modify it."
17054 srcdir=$srcdir
17055 INSTALL="$INSTALL"
17056 _ACEOF
17058 cat >>$CONFIG_STATUS <<\_ACEOF
17059 # If no file are specified by the user, then we need to provide default
17060 # value. By we need to know if files were specified by the user.
17061 ac_need_defaults=:
17062 while test $# != 0
17064 case $1 in
17065 --*=*)
17066 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17067 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17068 ac_shift=:
17071 ac_option=$1
17072 ac_optarg=$2
17073 ac_shift=shift
17075 *) # This is not an option, so the user has probably given explicit
17076 # arguments.
17077 ac_option=$1
17078 ac_need_defaults=false;;
17079 esac
17081 case $ac_option in
17082 # Handling of the options.
17083 _ACEOF
17084 cat >>$CONFIG_STATUS <<_ACEOF
17085 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17086 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17087 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17088 _ACEOF
17089 cat >>$CONFIG_STATUS <<\_ACEOF
17090 --version | --vers* | -V )
17091 echo "$ac_cs_version"; exit 0 ;;
17092 --he | --h)
17093 # Conflict between --help and --header
17094 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17095 Try \`$0 --help' for more information." >&5
17096 echo "$as_me: error: ambiguous option: $1
17097 Try \`$0 --help' for more information." >&2;}
17098 { (exit 1); exit 1; }; };;
17099 --help | --hel | -h )
17100 echo "$ac_cs_usage"; exit 0 ;;
17101 --debug | --d* | -d )
17102 debug=: ;;
17103 --file | --fil | --fi | --f )
17104 $ac_shift
17105 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17106 ac_need_defaults=false;;
17107 --header | --heade | --head | --hea )
17108 $ac_shift
17109 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17110 ac_need_defaults=false;;
17112 # This is an error.
17113 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17114 Try \`$0 --help' for more information." >&5
17115 echo "$as_me: error: unrecognized option: $1
17116 Try \`$0 --help' for more information." >&2;}
17117 { (exit 1); exit 1; }; } ;;
17119 *) ac_config_targets="$ac_config_targets $1" ;;
17121 esac
17122 shift
17123 done
17125 _ACEOF
17127 cat >>$CONFIG_STATUS <<_ACEOF
17129 # INIT-COMMANDS section.
17132 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
17134 _ACEOF
17138 cat >>$CONFIG_STATUS <<\_ACEOF
17139 for ac_config_target in $ac_config_targets
17141 case "$ac_config_target" in
17142 # Handling of arguments.
17143 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17144 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
17145 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
17146 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17147 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
17148 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
17149 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
17150 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
17151 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
17152 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
17153 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17154 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
17155 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17156 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17157 { (exit 1); exit 1; }; };;
17158 esac
17159 done
17161 # If the user did not use the arguments to specify the items to instantiate,
17162 # then the envvar interface is used. Set only those that are not.
17163 # We use the long form for the default assignment because of an extremely
17164 # bizarre bug on SunOS 4.1.3.
17165 if $ac_need_defaults; then
17166 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17167 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17168 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17171 # Create a temporary directory, and hook for its removal unless debugging.
17172 $debug ||
17174 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17175 trap '{ (exit 1); exit 1; }' 1 2 13 15
17178 # Create a (secure) tmp directory for tmp files.
17179 : ${TMPDIR=/tmp}
17181 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17182 test -n "$tmp" && test -d "$tmp"
17183 } ||
17185 tmp=$TMPDIR/cs$$-$RANDOM
17186 (umask 077 && mkdir $tmp)
17187 } ||
17189 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17190 { (exit 1); exit 1; }
17193 _ACEOF
17195 cat >>$CONFIG_STATUS <<_ACEOF
17198 # CONFIG_FILES section.
17201 # No need to generate the scripts if there are no CONFIG_FILES.
17202 # This happens for instance when ./config.status config.h
17203 if test -n "\$CONFIG_FILES"; then
17204 # Protect against being on the right side of a sed subst in config.status.
17205 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17206 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17207 s,@SHELL@,$SHELL,;t t
17208 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17209 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17210 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17211 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17212 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17213 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17214 s,@exec_prefix@,$exec_prefix,;t t
17215 s,@prefix@,$prefix,;t t
17216 s,@program_transform_name@,$program_transform_name,;t t
17217 s,@bindir@,$bindir,;t t
17218 s,@sbindir@,$sbindir,;t t
17219 s,@libexecdir@,$libexecdir,;t t
17220 s,@datadir@,$datadir,;t t
17221 s,@sysconfdir@,$sysconfdir,;t t
17222 s,@sharedstatedir@,$sharedstatedir,;t t
17223 s,@localstatedir@,$localstatedir,;t t
17224 s,@libdir@,$libdir,;t t
17225 s,@includedir@,$includedir,;t t
17226 s,@oldincludedir@,$oldincludedir,;t t
17227 s,@infodir@,$infodir,;t t
17228 s,@mandir@,$mandir,;t t
17229 s,@build_alias@,$build_alias,;t t
17230 s,@host_alias@,$host_alias,;t t
17231 s,@target_alias@,$target_alias,;t t
17232 s,@DEFS@,$DEFS,;t t
17233 s,@ECHO_C@,$ECHO_C,;t t
17234 s,@ECHO_N@,$ECHO_N,;t t
17235 s,@ECHO_T@,$ECHO_T,;t t
17236 s,@LIBS@,$LIBS,;t t
17237 s,@build@,$build,;t t
17238 s,@build_cpu@,$build_cpu,;t t
17239 s,@build_vendor@,$build_vendor,;t t
17240 s,@build_os@,$build_os,;t t
17241 s,@host@,$host,;t t
17242 s,@host_cpu@,$host_cpu,;t t
17243 s,@host_vendor@,$host_vendor,;t t
17244 s,@host_os@,$host_os,;t t
17245 s,@CC@,$CC,;t t
17246 s,@CFLAGS@,$CFLAGS,;t t
17247 s,@LDFLAGS@,$LDFLAGS,;t t
17248 s,@CPPFLAGS@,$CPPFLAGS,;t t
17249 s,@ac_ct_CC@,$ac_ct_CC,;t t
17250 s,@EXEEXT@,$EXEEXT,;t t
17251 s,@OBJEXT@,$OBJEXT,;t t
17252 s,@LN_S@,$LN_S,;t t
17253 s,@CPP@,$CPP,;t t
17254 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17255 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17256 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17257 s,@RANLIB@,$RANLIB,;t t
17258 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17259 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
17260 s,@EGREP@,$EGREP,;t t
17261 s,@LIBSOUND@,$LIBSOUND,;t t
17262 s,@SET_MAKE@,$SET_MAKE,;t t
17263 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17264 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17265 s,@GTK_LIBS@,$GTK_LIBS,;t t
17266 s,@ALLOCA@,$ALLOCA,;t t
17267 s,@liblockfile@,$liblockfile,;t t
17268 s,@LIBOBJS@,$LIBOBJS,;t t
17269 s,@NEED_SETGID@,$NEED_SETGID,;t t
17270 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
17271 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
17272 s,@version@,$version,;t t
17273 s,@configuration@,$configuration,;t t
17274 s,@canonical@,$canonical,;t t
17275 s,@srcdir@,$srcdir,;t t
17276 s,@lispdir@,$lispdir,;t t
17277 s,@locallisppath@,$locallisppath,;t t
17278 s,@lisppath@,$lisppath,;t t
17279 s,@x_default_search_path@,$x_default_search_path,;t t
17280 s,@etcdir@,$etcdir,;t t
17281 s,@archlibdir@,$archlibdir,;t t
17282 s,@docdir@,$docdir,;t t
17283 s,@bitmapdir@,$bitmapdir,;t t
17284 s,@gamedir@,$gamedir,;t t
17285 s,@gameuser@,$gameuser,;t t
17286 s,@c_switch_system@,$c_switch_system,;t t
17287 s,@c_switch_machine@,$c_switch_machine,;t t
17288 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
17289 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
17290 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
17291 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
17292 s,@machfile@,$machfile,;t t
17293 s,@opsysfile@,$opsysfile,;t t
17294 s,@carbon_appdir@,$carbon_appdir,;t t
17295 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17296 CEOF
17298 _ACEOF
17300 cat >>$CONFIG_STATUS <<\_ACEOF
17301 # Split the substitutions into bite-sized pieces for seds with
17302 # small command number limits, like on Digital OSF/1 and HP-UX.
17303 ac_max_sed_lines=48
17304 ac_sed_frag=1 # Number of current file.
17305 ac_beg=1 # First line for current file.
17306 ac_end=$ac_max_sed_lines # Line after last line for current file.
17307 ac_more_lines=:
17308 ac_sed_cmds=
17309 while $ac_more_lines; do
17310 if test $ac_beg -gt 1; then
17311 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17312 else
17313 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17315 if test ! -s $tmp/subs.frag; then
17316 ac_more_lines=false
17317 else
17318 # The purpose of the label and of the branching condition is to
17319 # speed up the sed processing (if there are no `@' at all, there
17320 # is no need to browse any of the substitutions).
17321 # These are the two extra sed commands mentioned above.
17322 (echo ':t
17323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17324 if test -z "$ac_sed_cmds"; then
17325 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17326 else
17327 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17329 ac_sed_frag=`expr $ac_sed_frag + 1`
17330 ac_beg=$ac_end
17331 ac_end=`expr $ac_end + $ac_max_sed_lines`
17333 done
17334 if test -z "$ac_sed_cmds"; then
17335 ac_sed_cmds=cat
17337 fi # test -n "$CONFIG_FILES"
17339 _ACEOF
17340 cat >>$CONFIG_STATUS <<\_ACEOF
17341 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17343 case $ac_file in
17344 - | *:- | *:-:* ) # input from stdin
17345 cat >$tmp/stdin
17346 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17347 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17348 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17350 * ) ac_file_in=$ac_file.in ;;
17351 esac
17353 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17354 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17356 X"$ac_file" : 'X\(//\)[^/]' \| \
17357 X"$ac_file" : 'X\(//\)$' \| \
17358 X"$ac_file" : 'X\(/\)' \| \
17359 . : '\(.\)' 2>/dev/null ||
17360 echo X"$ac_file" |
17361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17363 /^X\(\/\/\)$/{ s//\1/; q; }
17364 /^X\(\/\).*/{ s//\1/; q; }
17365 s/.*/./; q'`
17366 { if $as_mkdir_p; then
17367 mkdir -p "$ac_dir"
17368 else
17369 as_dir="$ac_dir"
17370 as_dirs=
17371 while test ! -d "$as_dir"; do
17372 as_dirs="$as_dir $as_dirs"
17373 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17375 X"$as_dir" : 'X\(//\)[^/]' \| \
17376 X"$as_dir" : 'X\(//\)$' \| \
17377 X"$as_dir" : 'X\(/\)' \| \
17378 . : '\(.\)' 2>/dev/null ||
17379 echo X"$as_dir" |
17380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17382 /^X\(\/\/\)$/{ s//\1/; q; }
17383 /^X\(\/\).*/{ s//\1/; q; }
17384 s/.*/./; q'`
17385 done
17386 test ! -n "$as_dirs" || mkdir $as_dirs
17387 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17388 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17389 { (exit 1); exit 1; }; }; }
17391 ac_builddir=.
17393 if test "$ac_dir" != .; then
17394 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17395 # A "../" for each directory in $ac_dir_suffix.
17396 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17397 else
17398 ac_dir_suffix= ac_top_builddir=
17401 case $srcdir in
17402 .) # No --srcdir option. We are building in place.
17403 ac_srcdir=.
17404 if test -z "$ac_top_builddir"; then
17405 ac_top_srcdir=.
17406 else
17407 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17408 fi ;;
17409 [\\/]* | ?:[\\/]* ) # Absolute path.
17410 ac_srcdir=$srcdir$ac_dir_suffix;
17411 ac_top_srcdir=$srcdir ;;
17412 *) # Relative path.
17413 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17414 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17415 esac
17416 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17417 # absolute.
17418 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17419 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17420 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17421 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17424 case $INSTALL in
17425 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17426 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17427 esac
17429 if test x"$ac_file" != x-; then
17430 { echo "$as_me:$LINENO: creating $ac_file" >&5
17431 echo "$as_me: creating $ac_file" >&6;}
17432 rm -f "$ac_file"
17434 # Let's still pretend it is `configure' which instantiates (i.e., don't
17435 # use $as_me), people would be surprised to read:
17436 # /* config.h. Generated by config.status. */
17437 if test x"$ac_file" = x-; then
17438 configure_input=
17439 else
17440 configure_input="$ac_file. "
17442 configure_input=$configure_input"Generated from `echo $ac_file_in |
17443 sed 's,.*/,,'` by configure."
17445 # First look for the input files in the build tree, otherwise in the
17446 # src tree.
17447 ac_file_inputs=`IFS=:
17448 for f in $ac_file_in; do
17449 case $f in
17450 -) echo $tmp/stdin ;;
17451 [\\/$]*)
17452 # Absolute (can't be DOS-style, as IFS=:)
17453 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17454 echo "$as_me: error: cannot find input file: $f" >&2;}
17455 { (exit 1); exit 1; }; }
17456 echo $f;;
17457 *) # Relative
17458 if test -f "$f"; then
17459 # Build tree
17460 echo $f
17461 elif test -f "$srcdir/$f"; then
17462 # Source tree
17463 echo $srcdir/$f
17464 else
17465 # /dev/null tree
17466 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17467 echo "$as_me: error: cannot find input file: $f" >&2;}
17468 { (exit 1); exit 1; }; }
17469 fi;;
17470 esac
17471 done` || { (exit 1); exit 1; }
17472 _ACEOF
17473 cat >>$CONFIG_STATUS <<_ACEOF
17474 sed "$ac_vpsub
17475 $extrasub
17476 _ACEOF
17477 cat >>$CONFIG_STATUS <<\_ACEOF
17479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17480 s,@configure_input@,$configure_input,;t t
17481 s,@srcdir@,$ac_srcdir,;t t
17482 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17483 s,@top_srcdir@,$ac_top_srcdir,;t t
17484 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17485 s,@builddir@,$ac_builddir,;t t
17486 s,@abs_builddir@,$ac_abs_builddir,;t t
17487 s,@top_builddir@,$ac_top_builddir,;t t
17488 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17489 s,@INSTALL@,$ac_INSTALL,;t t
17490 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17491 rm -f $tmp/stdin
17492 if test x"$ac_file" != x-; then
17493 mv $tmp/out $ac_file
17494 else
17495 cat $tmp/out
17496 rm -f $tmp/out
17499 done
17500 _ACEOF
17501 cat >>$CONFIG_STATUS <<\_ACEOF
17504 # CONFIG_HEADER section.
17507 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17508 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17510 # ac_d sets the value in "#define NAME VALUE" lines.
17511 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17512 ac_dB='[ ].*$,\1#\2'
17513 ac_dC=' '
17514 ac_dD=',;t'
17515 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17516 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17517 ac_uB='$,\1#\2define\3'
17518 ac_uC=' '
17519 ac_uD=',;t'
17521 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17522 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17523 case $ac_file in
17524 - | *:- | *:-:* ) # input from stdin
17525 cat >$tmp/stdin
17526 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17527 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17528 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17529 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17530 * ) ac_file_in=$ac_file.in ;;
17531 esac
17533 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17534 echo "$as_me: creating $ac_file" >&6;}
17536 # First look for the input files in the build tree, otherwise in the
17537 # src tree.
17538 ac_file_inputs=`IFS=:
17539 for f in $ac_file_in; do
17540 case $f in
17541 -) echo $tmp/stdin ;;
17542 [\\/$]*)
17543 # Absolute (can't be DOS-style, as IFS=:)
17544 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17545 echo "$as_me: error: cannot find input file: $f" >&2;}
17546 { (exit 1); exit 1; }; }
17547 echo $f;;
17548 *) # Relative
17549 if test -f "$f"; then
17550 # Build tree
17551 echo $f
17552 elif test -f "$srcdir/$f"; then
17553 # Source tree
17554 echo $srcdir/$f
17555 else
17556 # /dev/null tree
17557 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17558 echo "$as_me: error: cannot find input file: $f" >&2;}
17559 { (exit 1); exit 1; }; }
17560 fi;;
17561 esac
17562 done` || { (exit 1); exit 1; }
17563 # Remove the trailing spaces.
17564 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17566 _ACEOF
17568 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17569 # `conftest.undefs', that substitutes the proper values into
17570 # config.h.in to produce config.h. The first handles `#define'
17571 # templates, and the second `#undef' templates.
17572 # And first: Protect against being on the right side of a sed subst in
17573 # config.status. Protect against being in an unquoted here document
17574 # in config.status.
17575 rm -f conftest.defines conftest.undefs
17576 # Using a here document instead of a string reduces the quoting nightmare.
17577 # Putting comments in sed scripts is not portable.
17579 # `end' is used to avoid that the second main sed command (meant for
17580 # 0-ary CPP macros) applies to n-ary macro definitions.
17581 # See the Autoconf documentation for `clear'.
17582 cat >confdef2sed.sed <<\_ACEOF
17583 s/[\\&,]/\\&/g
17584 s,[\\$`],\\&,g
17585 t clear
17586 : clear
17587 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17588 t end
17589 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17590 : end
17591 _ACEOF
17592 # If some macros were called several times there might be several times
17593 # the same #defines, which is useless. Nevertheless, we may not want to
17594 # sort them, since we want the *last* AC-DEFINE to be honored.
17595 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17596 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17597 rm -f confdef2sed.sed
17599 # This sed command replaces #undef with comments. This is necessary, for
17600 # example, in the case of _POSIX_SOURCE, which is predefined and required
17601 # on some systems where configure will not decide to define it.
17602 cat >>conftest.undefs <<\_ACEOF
17603 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17604 _ACEOF
17606 # Break up conftest.defines because some shells have a limit on the size
17607 # of here documents, and old seds have small limits too (100 cmds).
17608 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17609 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17610 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17611 echo ' :' >>$CONFIG_STATUS
17612 rm -f conftest.tail
17613 while grep . conftest.defines >/dev/null
17615 # Write a limited-size here document to $tmp/defines.sed.
17616 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17617 # Speed up: don't consider the non `#define' lines.
17618 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17619 # Work around the forget-to-reset-the-flag bug.
17620 echo 't clr' >>$CONFIG_STATUS
17621 echo ': clr' >>$CONFIG_STATUS
17622 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17623 echo 'CEOF
17624 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17625 rm -f $tmp/in
17626 mv $tmp/out $tmp/in
17627 ' >>$CONFIG_STATUS
17628 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17629 rm -f conftest.defines
17630 mv conftest.tail conftest.defines
17631 done
17632 rm -f conftest.defines
17633 echo ' fi # grep' >>$CONFIG_STATUS
17634 echo >>$CONFIG_STATUS
17636 # Break up conftest.undefs because some shells have a limit on the size
17637 # of here documents, and old seds have small limits too (100 cmds).
17638 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17639 rm -f conftest.tail
17640 while grep . conftest.undefs >/dev/null
17642 # Write a limited-size here document to $tmp/undefs.sed.
17643 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17644 # Speed up: don't consider the non `#undef'
17645 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17646 # Work around the forget-to-reset-the-flag bug.
17647 echo 't clr' >>$CONFIG_STATUS
17648 echo ': clr' >>$CONFIG_STATUS
17649 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17650 echo 'CEOF
17651 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17652 rm -f $tmp/in
17653 mv $tmp/out $tmp/in
17654 ' >>$CONFIG_STATUS
17655 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17656 rm -f conftest.undefs
17657 mv conftest.tail conftest.undefs
17658 done
17659 rm -f conftest.undefs
17661 cat >>$CONFIG_STATUS <<\_ACEOF
17662 # Let's still pretend it is `configure' which instantiates (i.e., don't
17663 # use $as_me), people would be surprised to read:
17664 # /* config.h. Generated by config.status. */
17665 if test x"$ac_file" = x-; then
17666 echo "/* Generated by configure. */" >$tmp/config.h
17667 else
17668 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17670 cat $tmp/in >>$tmp/config.h
17671 rm -f $tmp/in
17672 if test x"$ac_file" != x-; then
17673 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17674 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17675 echo "$as_me: $ac_file is unchanged" >&6;}
17676 else
17677 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17678 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17679 X"$ac_file" : 'X\(//\)[^/]' \| \
17680 X"$ac_file" : 'X\(//\)$' \| \
17681 X"$ac_file" : 'X\(/\)' \| \
17682 . : '\(.\)' 2>/dev/null ||
17683 echo X"$ac_file" |
17684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17686 /^X\(\/\/\)$/{ s//\1/; q; }
17687 /^X\(\/\).*/{ s//\1/; q; }
17688 s/.*/./; q'`
17689 { if $as_mkdir_p; then
17690 mkdir -p "$ac_dir"
17691 else
17692 as_dir="$ac_dir"
17693 as_dirs=
17694 while test ! -d "$as_dir"; do
17695 as_dirs="$as_dir $as_dirs"
17696 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17697 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17698 X"$as_dir" : 'X\(//\)[^/]' \| \
17699 X"$as_dir" : 'X\(//\)$' \| \
17700 X"$as_dir" : 'X\(/\)' \| \
17701 . : '\(.\)' 2>/dev/null ||
17702 echo X"$as_dir" |
17703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17705 /^X\(\/\/\)$/{ s//\1/; q; }
17706 /^X\(\/\).*/{ s//\1/; q; }
17707 s/.*/./; q'`
17708 done
17709 test ! -n "$as_dirs" || mkdir $as_dirs
17710 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17711 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17712 { (exit 1); exit 1; }; }; }
17714 rm -f $ac_file
17715 mv $tmp/config.h $ac_file
17717 else
17718 cat $tmp/config.h
17719 rm -f $tmp/config.h
17721 done
17722 _ACEOF
17723 cat >>$CONFIG_STATUS <<\_ACEOF
17726 # CONFIG_COMMANDS section.
17728 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17729 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17730 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17731 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17732 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17733 X"$ac_dest" : 'X\(//\)[^/]' \| \
17734 X"$ac_dest" : 'X\(//\)$' \| \
17735 X"$ac_dest" : 'X\(/\)' \| \
17736 . : '\(.\)' 2>/dev/null ||
17737 echo X"$ac_dest" |
17738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17740 /^X\(\/\/\)$/{ s//\1/; q; }
17741 /^X\(\/\).*/{ s//\1/; q; }
17742 s/.*/./; q'`
17743 ac_builddir=.
17745 if test "$ac_dir" != .; then
17746 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17747 # A "../" for each directory in $ac_dir_suffix.
17748 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17749 else
17750 ac_dir_suffix= ac_top_builddir=
17753 case $srcdir in
17754 .) # No --srcdir option. We are building in place.
17755 ac_srcdir=.
17756 if test -z "$ac_top_builddir"; then
17757 ac_top_srcdir=.
17758 else
17759 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17760 fi ;;
17761 [\\/]* | ?:[\\/]* ) # Absolute path.
17762 ac_srcdir=$srcdir$ac_dir_suffix;
17763 ac_top_srcdir=$srcdir ;;
17764 *) # Relative path.
17765 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17766 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17767 esac
17768 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17769 # absolute.
17770 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17771 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17772 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17773 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17776 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17777 echo "$as_me: executing $ac_dest commands" >&6;}
17778 case $ac_dest in
17779 default )
17781 ### Make the necessary directories, if they don't exist.
17782 for dir in etc lisp ; do
17783 test -d ${dir} || mkdir ${dir}
17784 done
17786 # Build src/Makefile from ${srcdir}/src/Makefile.c
17787 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
17788 # This must be done after src/config.h is built, since we rely on that file.
17790 # Now get this: Some word that is part of the ${srcdir} directory name
17791 # or the ${configuration} value might, just might, happen to be an
17792 # identifier like `sun4' or `i386' or something, and be predefined by
17793 # the C preprocessor to some helpful value like 1, or maybe the empty
17794 # string. Needless to say consequent macro substitutions are less
17795 # than conducive to the makefile finding the correct directory.
17796 undefs="`echo $top_srcdir $configuration $canonical |
17797 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
17798 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
17801 echo creating src/epaths.h
17802 ${MAKE-make} epaths-force
17804 # As of 2000-11-19, newest development versions of GNU cpp preprocess
17805 # `..' to `. .' unless invoked with -traditional
17807 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
17808 CPPFLAGS="$CPPFLAGS -traditional"
17811 echo creating lib-src/Makefile
17812 ( cd lib-src
17813 rm -f junk.c junk1.c junk2.c
17814 sed -e '/start of cpp stuff/q' \
17815 < Makefile.c > junk1.c
17816 sed -e '1,/start of cpp stuff/d'\
17817 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17818 < Makefile.c > junk.c
17819 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
17820 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17821 cat junk1.c junk2.c > Makefile.new
17822 rm -f junk.c junk1.c junk2.c
17823 chmod 444 Makefile.new
17824 mv -f Makefile.new Makefile
17827 echo creating src/Makefile
17828 ( cd src
17829 rm -f junk.c junk1.c junk2.c
17830 sed -e '/start of cpp stuff/q' \
17831 < Makefile.c > junk1.c
17832 sed -e '1,/start of cpp stuff/d'\
17833 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17834 < Makefile.c > junk.c
17835 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
17836 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17837 cat junk1.c junk2.c > Makefile.new
17838 rm -f junk.c junk1.c junk2.c
17839 chmod 444 Makefile.new
17840 mv -f Makefile.new Makefile
17843 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
17844 echo creating src/.gdbinit
17845 echo source $srcdir/src/.gdbinit > src/.gdbinit
17848 # This is how we know whether to re-run configure in certain cases.
17849 touch src/config.stamp
17852 esac
17853 done
17854 _ACEOF
17856 cat >>$CONFIG_STATUS <<\_ACEOF
17858 { (exit 0); exit 0; }
17859 _ACEOF
17860 chmod +x $CONFIG_STATUS
17861 ac_clean_files=$ac_clean_files_save
17864 # configure is writing to config.log, and then calls config.status.
17865 # config.status does its own redirection, appending to config.log.
17866 # Unfortunately, on DOS this fails, as config.log is still kept open
17867 # by configure, so config.status won't be able to write to it; its
17868 # output is simply discarded. So we exec the FD to /dev/null,
17869 # effectively closing config.log, so it can be properly (re)opened and
17870 # appended to by config.status. When coming back to configure, we
17871 # need to make the FD available again.
17872 if test "$no_create" != yes; then
17873 ac_cs_success=:
17874 exec 5>/dev/null
17875 $SHELL $CONFIG_STATUS || ac_cs_success=false
17876 exec 5>>config.log
17877 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17878 # would make configure fail if this is the last instruction.
17879 $ac_cs_success || { (exit 1); exit 1; }