*** empty log message ***
[emacs.git] / configure
blobd0c58bf44569b9316abe244436971b362573e539
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND PKG_CONFIG ALSA_CFLAGS ALSA_LIBS CFLAGS_SOUND SET_MAKE GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS 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'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
850 if test -n "$ac_init_help"; then
852 cat <<\_ACEOF
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search for lisp files
864 specific to this site
865 --disable-largefile omit support for large files
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-gcc don't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version 5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server host
875 --without-sound don't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
898 CPP C preprocessor
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
903 _ACEOF
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 cd "$ac_popdir"
992 done
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003 exit 0
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1013 $ $0 $@
1015 _ACEOF
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1039 _ASUNAME
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047 done
1049 } >&5
1051 cat >&5 <<_ACEOF
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1058 _ACEOF
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1073 for ac_arg
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1106 esac
1107 done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1120 echo
1122 cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1130 (set) 2>&1 |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
1133 sed -n \
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 esac;
1143 echo
1145 cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179 echo
1180 sed "/^$/d" confdefs.h | sort
1181 echo
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 exit $exit_status
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1244 done
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1257 else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it if useless.
1348 cat <<\_ACEOF >conftest.sed
1349 s/[\\$]/&&/g;s/;s,x,x,$//
1350 _ACEOF
1351 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1352 rm conftest.sed
1355 lispdir='${datadir}/emacs/${version}/lisp'
1356 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp'
1358 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1359 etcdir='${datadir}/emacs/${version}/etc'
1360 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir='${datadir}/emacs/${version}/etc'
1362 gamedir='${localstatedir}/games/emacs'
1364 gameuser=games
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1375 withval="$with_pop"
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h <<\_ACEOF
1378 #define MAIL_USE_POP 1
1379 _ACEOF
1381 else :
1383 else
1384 cat >>confdefs.h <<\_ACEOF
1385 #define MAIL_USE_POP 1
1386 _ACEOF
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395 #define KERBEROS 1
1396 _ACEOF
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1406 with_kerberos=yes
1407 cat >>confdefs.h <<\_ACEOF
1408 #define KERBEROS 1
1409 _ACEOF
1414 cat >>confdefs.h <<\_ACEOF
1415 #define KERBEROS5 1
1416 _ACEOF
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1424 cat >>confdefs.h <<\_ACEOF
1425 #define HESIOD 1
1426 _ACEOF
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye | yes ) val=athena ;;
1443 n | no ) val=no ;;
1444 l | lu | luc | luci | lucid ) val=lucid ;;
1445 a | at | ath | athe | athen | athena ) val=athena ;;
1446 m | mo | mot | moti | motif ) val=motif ;;
1447 g | gt | gtk ) val=gtk ;;
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1457 esac
1458 with_x_toolkit=$val
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1488 withval="$with_png"
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531 else
1532 USE_XASSERTS=no
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539 else
1540 USE_MAINTAINER_MODE=no
1542 if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544 else
1545 MAINT=#
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1564 unset CDPATH
1565 case "${srcdir}" in
1566 /* ) ;;
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1574 then
1575 srcdir="$PWD"
1576 else
1577 srcdir="`(cd ${srcdir}; pwd)`"
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581 esac
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1603 ### Canonicalize the configuration name.
1605 ac_aux_dir=
1606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607 if test -f $ac_dir/install-sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 break
1611 elif test -f $ac_dir/install.sh; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 break
1615 elif test -f $ac_dir/shtool; then
1616 ac_aux_dir=$ac_dir
1617 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 break
1620 done
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1626 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 canonical=$host
1685 configuration=${host_alias-$host}
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1712 machine='' opsys='' unported=no
1713 case "${canonical}" in
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 ia64-*-freebsd*) machine=ia64 ;;
1721 sparc64-*-freebsd*) machine=sparc ;;
1722 powerpc-*-freebsd*) machine=macppc ;;
1723 i[3456]86-*-freebsd*) machine=intel386 ;;
1724 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
1725 esac
1728 ## NetBSD ports
1729 *-*-netbsd* )
1730 opsys=netbsd
1731 if test -f /usr/lib/crti.o; then
1733 cat >>confdefs.h <<\_ACEOF
1734 #define HAVE_CRTIN
1735 _ACEOF
1739 case "${canonical}" in
1740 alpha*-*-netbsd*) machine=alpha ;;
1741 i[3456]86-*-netbsd*) machine=intel386 ;;
1742 m68k-*-netbsd*)
1743 # This is somewhat bogus.
1744 machine=hp9000s300 ;;
1745 powerpc-apple-netbsd*) machine=macppc ;;
1746 mips-*-netbsd*) machine=pmax ;;
1747 mipsel-*-netbsd*) machine=pmax ;;
1748 mipseb-*-netbsd*) machine=pmax ;;
1749 ns32k-*-netbsd*) machine=ns32000 ;;
1750 powerpc-*-netbsd*) machine=macppc ;;
1751 sparc*-*-netbsd*) machine=sparc ;;
1752 vax-*-netbsd*) machine=vax ;;
1753 arm-*-netbsd*) machine=arm ;;
1754 esac
1757 ## OpenBSD ports
1758 *-*-openbsd* )
1759 opsys=openbsd
1760 case "${canonical}" in
1761 alpha*-*-openbsd*) machine=alpha ;;
1762 i386-*-openbsd*) machine=intel386 ;;
1763 x86_64-*-openbsd*) machine=amdx86-64 ;;
1764 m68k-*-openbsd*) machine=hp9000s300 ;;
1765 mipsel-*-openbsd*) machine=pmax ;;
1766 ns32k-*-openbsd*) machine=ns32000 ;;
1767 sparc-*-openbsd*) machine=sparc ;;
1768 vax-*-openbsd*) machine=vax ;;
1769 esac
1772 ## LynxOS ports
1773 *-*-lynxos* )
1774 opsys=lynxos
1775 case "${canonical}" in
1776 i[3456]86-*-lynxos*) machine=intel386 ;;
1777 powerpc-*-lynxos*) machine=powerpc ;;
1778 esac
1781 ## Acorn RISCiX:
1782 arm-acorn-riscix1.1* )
1783 machine=acorn opsys=riscix1-1
1785 arm-acorn-riscix1.2* | arm-acorn-riscix )
1786 ## This name is riscix12 instead of riscix1.2
1787 ## to avoid a file name conflict on MSDOS.
1788 machine=acorn opsys=riscix12
1791 ## BSDI ports
1792 *-*-bsdi* )
1793 opsys=bsdi
1794 case "${canonical}" in
1795 i[345]86-*-bsdi*) machine=intel386 ;;
1796 sparc-*-bsdi*) machine=sparc ;;
1797 powerpc-*-bsdi*) machine=macppc ;;
1798 esac
1799 case "${canonical}" in
1800 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1801 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1802 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1803 *-*-bsdi3* ) opsys=bsdos3 ;;
1804 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1805 esac
1808 ## Alliant machines
1809 ## Strictly speaking, we need the version of the alliant operating
1810 ## system to choose the right machine file, but currently the
1811 ## configuration name doesn't tell us enough to choose the right
1812 ## one; we need to give alliants their own operating system name to
1813 ## do this right. When someone cares, they can help us.
1814 fx80-alliant-* )
1815 machine=alliant4 opsys=bsd4-2
1817 i860-alliant-* )
1818 machine=alliant-2800 opsys=bsd4-3
1821 ## Alpha (DEC) machines.
1822 alpha*-dec-osf* )
1823 machine=alpha opsys=osf1
1824 # This is needed to find X11R6.1 libraries for certain tests.
1825 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1826 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1827 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1828 # due to non-traditional preprocessing with the current compiler
1829 # defaults. OSF 4 can also have that compiler version, and there
1830 # seems always to have been a usable /usr/bin/cpp.
1831 NON_GNU_CPP=/usr/bin/cpp
1832 case "${canonical}" in
1833 alpha*-dec-osf[5-9]*)
1834 opsys=osf5-0 ;;
1835 esac
1838 alpha*-*-linux-gnu* )
1839 machine=alpha opsys=gnu-linux
1842 arm*-*-linux-gnu* )
1843 machine=arm opsys=gnu-linux
1846 ## Altos 3068
1847 m68*-altos-sysv* )
1848 machine=altos opsys=usg5-2
1851 ## Amdahl UTS
1852 580-amdahl-sysv* )
1853 machine=amdahl opsys=usg5-2-2
1856 ## Apollo, Domain/OS
1857 m68*-apollo-* )
1858 machine=apollo opsys=bsd4-3
1861 ## AT&T 3b2, 3b5, 3b15, 3b20
1862 we32k-att-sysv* )
1863 machine=att3b opsys=usg5-2-2
1866 ## AT&T 3b1 - The Mighty Unix PC!
1867 m68*-att-sysv* )
1868 machine=7300 opsys=usg5-2-2
1871 ## Bull dpx20
1872 rs6000-bull-bosx* )
1873 machine=ibmrs6000 opsys=aix3-2
1876 ## Bull dpx2
1877 m68*-bull-sysv3* )
1878 machine=dpx2 opsys=usg5-3
1881 ## Bull sps7
1882 m68*-bull-sysv2* )
1883 machine=sps7 opsys=usg5-2
1886 ## CCI 5/32, 6/32 -- see "Tahoe".
1888 ## Celerity
1889 ## I don't know what configuration name to use for this; config.sub
1890 ## doesn't seem to know anything about it. Hey, Celerity users, get
1891 ## in touch with us!
1892 celerity-celerity-bsd* )
1893 machine=celerity opsys=bsd4-2
1896 ## Clipper
1897 ## What operating systems does this chip run that Emacs has been
1898 ## tested on?
1899 clipper-* )
1900 machine=clipper
1901 ## We'll use the catch-all code at the bottom to guess the
1902 ## operating system.
1905 ## Compaq Nonstop
1906 mips-compaq-nonstopux* )
1907 machine=nonstopux opsys=nonstopux
1910 ## Convex
1911 *-convex-bsd* | *-convex-convexos* )
1912 machine=convex opsys=bsd4-3
1913 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1914 NON_GNU_CPP="cc -E -P"
1917 ## Cubix QBx/386
1918 i[3456]86-cubix-sysv* )
1919 machine=intel386 opsys=usg5-3
1922 ## Cydra 5
1923 cydra*-cydrome-sysv* )
1924 machine=cydra5 opsys=usg5-3
1927 ## Data General AViiON Machines
1928 ## DG changed naming conventions with the release of 5.4.4.10, they
1929 ## dropped the initial 5.4 but left the intervening R. Because of the
1930 ## R this shouldn't conflict with older versions of the OS (which I
1931 ## think were named like dgux4.*). In addition, DG new AViiONs series
1932 ## uses either Motorola M88k or Intel Pentium CPUs.
1933 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1934 machine=aviion opsys=dgux4
1936 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1937 ## This name is dgux5-4-3 instead of dgux5-4r3
1938 ## to avoid a file name conflict on MSDOS.
1939 machine=aviion opsys=dgux5-4-3
1941 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1942 machine=aviion opsys=dgux5-4r2
1944 m88k-dg-dgux* )
1945 machine=aviion opsys=dgux
1948 ## Data General AViiON Intel (x86) Machines
1949 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1950 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1951 i[345]86-dg-dguxR4* )
1952 machine=aviion-intel opsys=dgux4
1955 ## DECstations
1956 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1957 machine=pmax opsys=bsd4-2
1959 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1960 machine=pmax opsys=bsd4-3
1962 mips-dec-ultrix* )
1963 machine=pmax opsys=ultrix4-3
1965 mips-dec-osf* )
1966 machine=pmax opsys=osf1
1968 mips-dec-mach_bsd4.3* )
1969 machine=pmax opsys=mach-bsd4-3
1972 ## Motorola Delta machines
1973 m68k-motorola-sysv* | m68000-motorola-sysv* )
1974 machine=delta opsys=usg5-3
1975 if test -z "`type gnucc | grep 'not found'`"
1976 then
1977 if test -s /etc/167config
1978 then CC="gnucc -m68040"
1979 else CC="gnucc -m68881"
1981 else
1982 if test -z "`type gcc | grep 'not found'`"
1983 then CC=gcc
1984 else CC=cc
1988 m88k-motorola-sysv4* )
1989 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1990 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1991 # I hope there are not other 4.0 versions for this machine
1992 # which really need usg5-4 instead.
1993 machine=delta88k opsys=usg5-4-2
1995 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1996 machine=delta88k opsys=usg5-3
1999 ## Dual machines
2000 m68*-dual-sysv* )
2001 machine=dual opsys=usg5-2
2003 m68*-dual-uniplus* )
2004 machine=dual opsys=unipl5-2
2007 ## Elxsi 6400
2008 elxsi-elxsi-sysv* )
2009 machine=elxsi opsys=usg5-2
2012 ## Encore machines
2013 ns16k-encore-bsd* )
2014 machine=ns16000 opsys=umax
2017 ## The GEC 63 - apparently, this port isn't really finished yet.
2018 # I'm sure we finished off the last of the machines, though. -- fx
2020 ## Gould Power Node and NP1
2021 pn-gould-bsd4.2* )
2022 machine=gould opsys=bsd4-2
2024 pn-gould-bsd4.3* )
2025 machine=gould opsys=bsd4-3
2027 np1-gould-bsd* )
2028 machine=gould-np1 opsys=bsd4-3
2031 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2032 ## as far as Emacs is concerned).
2033 m88k-harris-cxux* )
2034 # Build needs to be different on 7.0 and later releases
2035 case "`uname -r`" in
2036 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2037 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2038 esac
2039 NON_GNU_CPP="/lib/cpp"
2041 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2042 m68k-harris-cxux* )
2043 machine=nh3000 opsys=cxux
2045 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2046 powerpc-harris-powerunix )
2047 machine=nh6000 opsys=powerunix
2048 NON_GNU_CPP="cc -Xo -E -P"
2050 ## SR2001/SR2201 running HI-UX/MPP
2051 hppa1.1-hitachi-hiuxmpp* )
2052 machine=sr2k opsys=hiuxmpp
2054 hppa1.1-hitachi-hiuxwe2* )
2055 machine=sr2k opsys=hiuxwe2
2057 ## Honeywell XPS100
2058 xps*-honeywell-sysv* )
2059 machine=xps100 opsys=usg5-2
2062 ## HP 9000 series 200 or 300
2063 m68*-hp-bsd* )
2064 machine=hp9000s300 opsys=bsd4-3
2066 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2067 m68*-hp-hpux* )
2068 case "`uname -r`" in
2069 ## Someone's system reports A.B8.05 for this.
2070 ## I wonder what other possibilities there are.
2071 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2072 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2073 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2074 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2075 *) machine=hp9000s300 opsys=hpux ;;
2076 esac
2079 ## HP 9000 series 700 and 800, running HP/UX
2080 hppa*-hp-hpux7* )
2081 machine=hp800 opsys=hpux
2083 hppa*-hp-hpux8* )
2084 machine=hp800 opsys=hpux8
2086 hppa*-hp-hpux9shr* )
2087 machine=hp800 opsys=hpux9shr
2089 hppa*-hp-hpux9* )
2090 machine=hp800 opsys=hpux9
2092 hppa*-hp-hpux10.2* )
2093 machine=hp800 opsys=hpux10-20
2095 hppa*-hp-hpux10* )
2096 machine=hp800 opsys=hpux10
2098 hppa*-hp-hpux1[1-9]* )
2099 machine=hp800 opsys=hpux11
2100 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2103 hppa*-*-linux-gnu* )
2104 machine=hp800 opsys=gnu-linux
2107 ## HP 9000 series 700 and 800, running HP/UX
2108 hppa*-hp-hpux* )
2109 ## Cross-compilation? Nah!
2110 case "`uname -r`" in
2111 ## Someone's system reports A.B8.05 for this.
2112 ## I wonder what other possibilities there are.
2113 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2114 *.08.* ) machine=hp800 opsys=hpux8 ;;
2115 *.09.* ) machine=hp800 opsys=hpux9 ;;
2116 *) machine=hp800 opsys=hpux10 ;;
2117 esac
2119 hppa*-*-nextstep* )
2120 machine=hp800 opsys=nextstep
2123 ## Orion machines
2124 orion-orion-bsd* )
2125 machine=orion opsys=bsd4-2
2127 clipper-orion-bsd* )
2128 machine=orion105 opsys=bsd4-2
2131 ## IBM machines
2132 i[3456]86-ibm-aix1.1* )
2133 machine=ibmps2-aix opsys=usg5-2-2
2135 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2136 machine=ibmps2-aix opsys=usg5-3
2138 i370-ibm-aix*)
2139 machine=ibm370aix opsys=usg5-3
2141 s390-*-linux-gnu* )
2142 machine=ibms390 opsys=gnu-linux
2144 s390x-*-linux-gnu* )
2145 machine=ibms390x opsys=gnu-linux
2147 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2148 machine=ibmrs6000 opsys=aix3-1
2150 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2151 machine=ibmrs6000 opsys=aix3-2-5
2153 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2154 machine=ibmrs6000 opsys=aix4-1
2156 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2157 machine=ibmrs6000 opsys=aix4-2
2159 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2160 machine=ibmrs6000 opsys=aix4-2
2162 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2163 machine=ibmrs6000 opsys=aix4
2165 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2166 machine=ibmrs6000 opsys=aix4-1
2168 rs6000-ibm-aix* | powerpc-ibm-aix* )
2169 machine=ibmrs6000 opsys=aix3-2
2171 romp-ibm-bsd4.3* )
2172 machine=ibmrt opsys=bsd4-3
2174 romp-ibm-bsd4.2* )
2175 machine=ibmrt opsys=bsd4-2
2177 romp-ibm-aos4.3* )
2178 machine=ibmrt opsys=bsd4-3
2180 romp-ibm-aos4.2* )
2181 machine=ibmrt opsys=bsd4-2
2183 romp-ibm-aos* )
2184 machine=ibmrt opsys=bsd4-3
2186 romp-ibm-bsd* )
2187 machine=ibmrt opsys=bsd4-3
2189 romp-ibm-aix* )
2190 machine=ibmrt-aix opsys=usg5-2-2
2193 ## Integrated Solutions `Optimum V'
2194 m68*-isi-bsd4.2* )
2195 machine=isi-ov opsys=bsd4-2
2197 m68*-isi-bsd4.3* )
2198 machine=isi-ov opsys=bsd4-3
2201 ## Intel 386 machines where we do care about the manufacturer
2202 i[3456]86-intsys-sysv* )
2203 machine=is386 opsys=usg5-2-2
2206 ## Prime EXL
2207 i[3456]86-prime-sysv* )
2208 machine=i386 opsys=usg5-3
2211 ## Sequent Symmetry running Dynix
2212 i[3456]86-sequent-bsd* )
2213 machine=symmetry opsys=bsd4-3
2216 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2217 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2218 machine=sequent-ptx opsys=ptx4
2219 NON_GNU_CPP=/lib/cpp
2222 ## Sequent Symmetry running DYNIX/ptx
2223 ## Use the old cpp rather than the newer ANSI one.
2224 i[3456]86-sequent-ptx* )
2225 machine=sequent-ptx opsys=ptx
2226 NON_GNU_CPP="/lib/cpp"
2229 ## ncr machine running svr4.3.
2230 i[3456]86-ncr-sysv4.3 )
2231 machine=ncr386 opsys=usg5-4-3
2234 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2235 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2236 i[3456]86-ncr-sysv* )
2237 machine=ncr386 opsys=usg5-4-2
2240 ## Intel Paragon OSF/1
2241 i860-intel-osf1* )
2242 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2245 ## Intel 860
2246 i860-*-sysv4* )
2247 machine=i860 opsys=usg5-4
2248 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2249 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2252 ## Macintosh PowerPC
2253 powerpc*-*-linux-gnu* )
2254 machine=macppc opsys=gnu-linux
2257 ## Masscomp machines
2258 m68*-masscomp-rtu* )
2259 machine=masscomp opsys=rtu
2262 ## Megatest machines
2263 m68*-megatest-bsd* )
2264 machine=mega68 opsys=bsd4-2
2267 ## Workstations sold by MIPS
2268 ## This is not necessarily all workstations using the MIPS processor -
2269 ## Irises are produced by SGI, and DECstations by DEC.
2271 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2272 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2273 ## it gives for choosing between the alternatives seems to be "Use
2274 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2275 ## the BSD world." I'll assume that these are instructions for
2276 ## handling two odd situations, and that every other situation
2277 ## should use mips.h and usg5-2-2, they being listed first.
2278 mips-mips-usg* )
2279 machine=mips4
2280 ## Fall through to the general code at the bottom to decide on the OS.
2282 mips-mips-riscos4* )
2283 machine=mips4 opsys=bsd4-3
2284 NON_GNU_CC="cc -systype bsd43"
2285 NON_GNU_CPP="cc -systype bsd43 -E"
2287 mips-mips-riscos5* )
2288 machine=mips4 opsys=riscos5
2289 NON_GNU_CC="cc -systype bsd43"
2290 NON_GNU_CPP="cc -systype bsd43 -E"
2292 mips-mips-bsd* )
2293 machine=mips opsys=bsd4-3
2295 mips-mips-* )
2296 machine=mips opsys=usg5-2-2
2299 ## NeXT
2300 m68*-next-* | m68k-*-nextstep* )
2301 machine=m68k opsys=nextstep
2304 ## The complete machine from National Semiconductor
2305 ns32k-ns-genix* )
2306 machine=ns32000 opsys=usg5-2
2309 ## NCR machines
2310 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2311 machine=tower32 opsys=usg5-2-2
2313 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2314 machine=tower32v3 opsys=usg5-3
2317 ## NEC EWS4800
2318 mips-nec-sysv4*)
2319 machine=ews4800 opsys=ux4800
2322 ## Nixdorf Targon 31
2323 m68*-nixdorf-sysv* )
2324 machine=targon31 opsys=usg5-2-2
2327 ## Nu (TI or LMI)
2328 m68*-nu-sysv* )
2329 machine=nu opsys=usg5-2
2332 ## Plexus
2333 m68*-plexus-sysv* )
2334 machine=plexus opsys=usg5-2
2337 ## Pyramid machines
2338 ## I don't really have any idea what sort of processor the Pyramid has,
2339 ## so I'm assuming it is its own architecture.
2340 pyramid-pyramid-bsd* )
2341 machine=pyramid opsys=bsd4-2
2344 ## Sequent Balance
2345 ns32k-sequent-bsd4.2* )
2346 machine=sequent opsys=bsd4-2
2348 ns32k-sequent-bsd4.3* )
2349 machine=sequent opsys=bsd4-3
2352 ## Siemens Nixdorf
2353 mips-siemens-sysv* | mips-sni-sysv*)
2354 machine=mips-siemens opsys=usg5-4
2355 NON_GNU_CC=/usr/ccs/bin/cc
2356 NON_GNU_CPP=/usr/ccs/lib/cpp
2359 ## Silicon Graphics machines
2360 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2361 m68*-sgi-iris3.5* )
2362 machine=irist opsys=iris3-5
2364 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2365 machine=irist opsys=iris3-6
2367 ## Iris 4D
2368 mips-sgi-irix3* )
2369 machine=iris4d opsys=irix3-3
2371 mips-sgi-irix4* )
2372 machine=iris4d opsys=irix4-0
2374 mips-sgi-irix6.5 )
2375 machine=iris4d opsys=irix6-5
2376 # Without defining _LANGUAGE_C, things get masked out in the headers
2377 # so that, for instance, grepping for `free' in stdlib.h fails and
2378 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2379 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2380 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2382 mips-sgi-irix6* )
2383 machine=iris4d opsys=irix6-0
2384 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2385 # but presumably it does no harm.
2386 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2387 # -32 probably isn't necessary in later v.6s -- anyone know which?
2388 NON_GCC_TEST_OPTIONS=-32
2390 mips-sgi-irix5.[01]* )
2391 machine=iris4d opsys=irix5-0
2393 mips-sgi-irix5* | mips-sgi-irix* )
2394 machine=iris4d opsys=irix5-2
2397 ## SONY machines
2398 m68*-sony-bsd4.2* )
2399 machine=news opsys=bsd4-2
2401 m68*-sony-bsd4.3* )
2402 machine=news opsys=bsd4-3
2404 m68*-sony-newsos3* | m68*-sony-news3*)
2405 machine=news opsys=bsd4-3
2407 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2408 machine=news-risc opsys=bsd4-3
2410 mips-sony-newsos6* )
2411 machine=news-r6 opsys=newsos6
2413 mips-sony-news* )
2414 machine=news-risc opsys=newsos5
2417 ## Stride
2418 m68*-stride-sysv* )
2419 machine=stride opsys=usg5-2
2422 ## Suns
2423 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2424 machine=sparc opsys=gnu-linux
2427 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2428 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2429 | rs6000-*-solaris2*)
2430 case "${canonical}" in
2431 m68*-sunos1* ) machine=sun1 ;;
2432 m68*-sunos2* ) machine=sun2 ;;
2433 m68* ) machine=sun3 ;;
2434 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2435 i[3456]86-*-* ) machine=intel386 ;;
2436 powerpcle* ) machine=powerpcle ;;
2437 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2438 sparc* ) machine=sparc ;;
2439 * ) unported=yes ;;
2440 esac
2441 case "${canonical}" in
2442 ## The Sun386 didn't get past 4.0.
2443 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2444 *-sunos4.0* ) opsys=sunos4-0 ;;
2445 *-sunos4.1.[3-9]*noshare )
2446 ## This name is sunos413 instead of sunos4-1-3
2447 ## to avoid a file name conflict on MSDOS.
2448 opsys=sunos413
2449 NON_GNU_CPP=/usr/lib/cpp
2450 NON_GCC_TEST_OPTIONS=-Bstatic
2451 GCC_TEST_OPTIONS=-static
2453 *-sunos4.1.[3-9]* | *-sunos4shr*)
2454 opsys=sunos4shr
2455 NON_GNU_CPP=/usr/lib/cpp
2457 *-sunos4* | *-sunos )
2458 opsys=sunos4-1
2459 NON_GCC_TEST_OPTIONS=-Bstatic
2460 GCC_TEST_OPTIONS=-static
2462 *-sunos5.3* | *-solaris2.3* )
2463 opsys=sol2-3
2464 NON_GNU_CPP=/usr/ccs/lib/cpp
2466 *-sunos5.4* | *-solaris2.4* )
2467 opsys=sol2-4
2468 NON_GNU_CPP=/usr/ccs/lib/cpp
2469 RANLIB="ar -ts"
2471 *-sunos5.5* | *-solaris2.5* )
2472 opsys=sol2-5
2473 NON_GNU_CPP=/usr/ccs/lib/cpp
2474 RANLIB="ar -ts"
2476 *-sunos5.6* | *-solaris2.6* )
2477 opsys=sol2-6
2478 NON_GNU_CPP=/usr/ccs/lib/cpp
2479 RANLIB="ar -ts"
2481 *-sunos5* | *-solaris* )
2482 opsys=sol2-6
2483 NON_GNU_CPP=/usr/ccs/lib/cpp
2485 * ) opsys=bsd4-2 ;;
2486 esac
2487 ## Watch out for a compiler that we know will not work.
2488 case "${canonical}" in
2489 *-solaris* | *-sunos5* )
2490 if [ "x$CC" = x/usr/ucb/cc ]; then
2491 ## /usr/ucb/cc doesn't work;
2492 ## we should find some other compiler that does work.
2493 unset CC
2496 *) ;;
2497 esac
2499 sparc-*-nextstep* )
2500 machine=sparc opsys=nextstep
2503 ## Tadpole 68k
2504 m68*-tadpole-sysv* )
2505 machine=tad68k opsys=usg5-3
2508 ## Tahoe machines
2509 tahoe-tahoe-bsd4.2* )
2510 machine=tahoe opsys=bsd4-2
2512 tahoe-tahoe-bsd4.3* )
2513 machine=tahoe opsys=bsd4-3
2516 ## Tandem Integrity S2
2517 mips-tandem-sysv* )
2518 machine=tandem-s2 opsys=usg5-3
2521 ## Tektronix XD88
2522 m88k-tektronix-sysv3* )
2523 machine=tekxd88 opsys=usg5-3
2526 ## Tektronix 16000 box (6130?)
2527 ns16k-tektronix-bsd* )
2528 machine=ns16000 opsys=bsd4-2
2530 ## Tektronix 4300
2531 ## src/m/tek4300.h hints that this is a m68k machine.
2532 m68*-tektronix-bsd* )
2533 machine=tek4300 opsys=bsd4-3
2536 ## Titan P2 or P3
2537 ## We seem to have lost the machine-description file titan.h!
2538 titan-titan-sysv* )
2539 machine=titan opsys=usg5-3
2542 ## Ustation E30 (SS5E)
2543 m68*-unisys-uniplus* )
2544 machine=ustation opsystem=unipl5-2
2547 ## Vaxen.
2548 vax-dec-* )
2549 machine=vax
2550 case "${canonical}" in
2551 *-bsd4.1* ) opsys=bsd4-1 ;;
2552 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2553 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2554 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2555 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2556 *-vms* ) opsys=vms ;;
2557 * ) unported=yes
2558 esac
2561 ## Whitechapel MG1
2562 ns16k-whitechapel-* )
2563 machine=mg1
2564 ## We don't know what sort of OS runs on these; we'll let the
2565 ## operating system guessing code below try.
2568 ## Wicat
2569 m68*-wicat-sysv* )
2570 machine=wicat opsys=usg5-2
2573 ## IA-64
2574 ia64*-*-linux* )
2575 machine=ia64 opsys=gnu-linux
2578 ## Intel 386 machines where we don't care about the manufacturer
2579 i[3456]86-*-* )
2580 machine=intel386
2581 case "${canonical}" in
2582 *-cygwin ) opsys=cygwin ;;
2583 *-darwin* ) opsys=darwin
2584 CPP="${CC-cc} -E -no-cpp-precomp"
2586 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2587 *-isc2.2* ) opsys=isc2-2 ;;
2588 *-isc4.0* ) opsys=isc4-0 ;;
2589 *-isc4.* ) opsys=isc4-1
2590 GCC_TEST_OPTIONS=-posix
2591 NON_GCC_TEST_OPTIONS=-Xp
2593 *-isc* ) opsys=isc3-0 ;;
2594 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2595 *-esix* ) opsys=esix ;;
2596 *-xenix* ) opsys=xenix ;;
2597 *-linux-gnu* ) opsys=gnu-linux ;;
2598 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2599 *-sco3.2v5* ) opsys=sco5
2600 NON_GNU_CPP=/lib/cpp
2601 # Prevent -belf from being passed to $CPP.
2602 # /lib/cpp does not accept it.
2603 OVERRIDE_CPPFLAGS=" "
2605 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2606 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2607 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2608 *-386bsd* ) opsys=386bsd ;;
2609 *-nextstep* ) opsys=nextstep ;;
2610 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2611 esac
2614 ## m68k Linux-based GNU system
2615 m68k-*-linux-gnu* )
2616 machine=m68k opsys=gnu-linux
2619 ## Mips Linux-based GNU system
2620 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2621 machine=mips opsys=gnu-linux
2624 ## UXP/DS
2625 sparc-fujitsu-sysv4* )
2626 machine=sparc opsys=uxpds
2627 NON_GNU_CPP=/usr/ccs/lib/cpp
2628 RANLIB="ar -ts"
2631 ## UXP/V
2632 f301-fujitsu-uxpv4.1)
2633 machine=f301 opsys=uxpv
2636 ## Darwin / Mac OS X
2637 powerpc-apple-darwin* )
2638 machine=powermac opsys=darwin
2639 # Define CPP as follows to make autoconf work correctly.
2640 CPP="${CC-cc} -E -no-cpp-precomp"
2641 # Use fink packages if available.
2642 if test -d /sw/include && test -d /sw/lib; then
2643 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2644 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2645 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2649 ## AMD x86-64 Linux-based GNU system
2650 x86_64-*-linux-gnu* )
2651 machine=amdx86-64 opsys=gnu-linux
2655 unported=yes
2657 esac
2659 ### If the code above didn't choose an operating system, just choose
2660 ### an operating system based on the configuration name. You really
2661 ### only want to use this when you have no idea what the right
2662 ### operating system is; if you know what operating systems a machine
2663 ### runs, it's cleaner to make it explicit in the case statement
2664 ### above.
2665 if test x"${opsys}" = x; then
2666 case "${canonical}" in
2667 *-gnu* ) opsys=gnu ;;
2668 *-bsd4.[01] ) opsys=bsd4-1 ;;
2669 *-bsd4.2 ) opsys=bsd4-2 ;;
2670 *-bsd4.3 ) opsys=bsd4-3 ;;
2671 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2672 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2673 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2674 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2675 *-sysv4.2uw* ) opsys=unixware ;;
2676 *-sysv5uw* ) opsys=unixware ;;
2677 *-sysv5OpenUNIX* ) opsys=unixware ;;
2678 *-sysv4.1* | *-sysvr4.1* )
2679 NON_GNU_CPP=/usr/lib/cpp
2680 opsys=usg5-4 ;;
2681 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2682 if [ x$NON_GNU_CPP = x ]; then
2683 if [ -f /usr/ccs/lib/cpp ]; then
2684 NON_GNU_CPP=/usr/ccs/lib/cpp
2685 else
2686 NON_GNU_CPP=/lib/cpp
2689 opsys=usg5-4-2 ;;
2690 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2692 unported=yes
2694 esac
2699 if test $unported = yes; then
2700 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2701 Check \`etc/MACHINES' for recognized configuration names." >&5
2702 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2703 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2704 { (exit 1); exit 1; }; }
2707 machfile="m/${machine}.h"
2708 opsysfile="s/${opsys}.h"
2711 #### Choose a compiler.
2712 test -n "$CC" && cc_specified=yes
2714 # Save the value of CFLAGS that the user specified.
2715 SPECIFIED_CFLAGS="$CFLAGS"
2717 case ${with_gcc} in
2718 "yes" ) CC="gcc" GCC=yes ;;
2719 "no" ) : ${CC=cc} ;;
2721 esac
2722 ac_ext=c
2723 ac_cpp='$CPP $CPPFLAGS'
2724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727 if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2729 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2730 echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2732 if test "${ac_cv_prog_CC+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2749 done
2750 done
2754 CC=$ac_cv_prog_CC
2755 if test -n "$CC"; then
2756 echo "$as_me:$LINENO: result: $CC" >&5
2757 echo "${ECHO_T}$CC" >&6
2758 else
2759 echo "$as_me:$LINENO: result: no" >&5
2760 echo "${ECHO_T}no" >&6
2764 if test -z "$ac_cv_prog_CC"; then
2765 ac_ct_CC=$CC
2766 # Extract the first word of "gcc", so it can be a program name with args.
2767 set dummy gcc; ac_word=$2
2768 echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2770 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773 if test -n "$ac_ct_CC"; then
2774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_ac_ct_CC="gcc"
2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2787 done
2788 done
2792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2793 if test -n "$ac_ct_CC"; then
2794 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2795 echo "${ECHO_T}$ac_ct_CC" >&6
2796 else
2797 echo "$as_me:$LINENO: result: no" >&5
2798 echo "${ECHO_T}no" >&6
2801 CC=$ac_ct_CC
2802 else
2803 CC="$ac_cv_prog_CC"
2806 if test -z "$CC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2809 set dummy ${ac_tool_prefix}cc; ac_word=$2
2810 echo "$as_me:$LINENO: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2812 if test "${ac_cv_prog_CC+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC="$CC" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_CC="${ac_tool_prefix}cc"
2826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2829 done
2830 done
2834 CC=$ac_cv_prog_CC
2835 if test -n "$CC"; then
2836 echo "$as_me:$LINENO: result: $CC" >&5
2837 echo "${ECHO_T}$CC" >&6
2838 else
2839 echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6
2844 if test -z "$ac_cv_prog_CC"; then
2845 ac_ct_CC=$CC
2846 # Extract the first word of "cc", so it can be a program name with args.
2847 set dummy cc; ac_word=$2
2848 echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853 if test -n "$ac_ct_CC"; then
2854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_ac_ct_CC="cc"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2867 done
2868 done
2872 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2873 if test -n "$ac_ct_CC"; then
2874 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2875 echo "${ECHO_T}$ac_ct_CC" >&6
2876 else
2877 echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2881 CC=$ac_ct_CC
2882 else
2883 CC="$ac_cv_prog_CC"
2887 if test -z "$CC"; then
2888 # Extract the first word of "cc", so it can be a program name with args.
2889 set dummy cc; ac_word=$2
2890 echo "$as_me:$LINENO: checking for $ac_word" >&5
2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892 if test "${ac_cv_prog_CC+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895 if test -n "$CC"; then
2896 ac_cv_prog_CC="$CC" # Let the user override the test.
2897 else
2898 ac_prog_rejected=no
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2907 ac_prog_rejected=yes
2908 continue
2910 ac_cv_prog_CC="cc"
2911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 break 2
2914 done
2915 done
2917 if test $ac_prog_rejected = yes; then
2918 # We found a bogon in the path, so make sure we never use it.
2919 set dummy $ac_cv_prog_CC
2920 shift
2921 if test $# != 0; then
2922 # We chose a different compiler from the bogus one.
2923 # However, it has the same basename, so the bogon will be chosen
2924 # first if we set CC to just the basename; use the full file name.
2925 shift
2926 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2931 CC=$ac_cv_prog_CC
2932 if test -n "$CC"; then
2933 echo "$as_me:$LINENO: result: $CC" >&5
2934 echo "${ECHO_T}$CC" >&6
2935 else
2936 echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6
2941 if test -z "$CC"; then
2942 if test -n "$ac_tool_prefix"; then
2943 for ac_prog in cl
2945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2947 echo "$as_me:$LINENO: checking for $ac_word" >&5
2948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2949 if test "${ac_cv_prog_CC+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2966 done
2967 done
2971 CC=$ac_cv_prog_CC
2972 if test -n "$CC"; then
2973 echo "$as_me:$LINENO: result: $CC" >&5
2974 echo "${ECHO_T}$CC" >&6
2975 else
2976 echo "$as_me:$LINENO: result: no" >&5
2977 echo "${ECHO_T}no" >&6
2980 test -n "$CC" && break
2981 done
2983 if test -z "$CC"; then
2984 ac_ct_CC=$CC
2985 for ac_prog in cl
2987 # Extract the first word of "$ac_prog", so it can be a program name with args.
2988 set dummy $ac_prog; ac_word=$2
2989 echo "$as_me:$LINENO: checking for $ac_word" >&5
2990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2991 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 else
2994 if test -n "$ac_ct_CC"; then
2995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_ac_ct_CC="$ac_prog"
3005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3008 done
3009 done
3013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014 if test -n "$ac_ct_CC"; then
3015 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3016 echo "${ECHO_T}$ac_ct_CC" >&6
3017 else
3018 echo "$as_me:$LINENO: result: no" >&5
3019 echo "${ECHO_T}no" >&6
3022 test -n "$ac_ct_CC" && break
3023 done
3025 CC=$ac_ct_CC
3031 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3032 See \`config.log' for more details." >&5
3033 echo "$as_me: error: no acceptable C compiler found in \$PATH
3034 See \`config.log' for more details." >&2;}
3035 { (exit 1); exit 1; }; }
3037 # Provide some information about the compiler.
3038 echo "$as_me:$LINENO:" \
3039 "checking for C compiler version" >&5
3040 ac_compiler=`set X $ac_compile; echo $2`
3041 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3042 (eval $ac_compiler --version </dev/null >&5) 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }
3046 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3047 (eval $ac_compiler -v </dev/null >&5) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }
3051 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3052 (eval $ac_compiler -V </dev/null >&5) 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }
3057 cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h. */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3065 main ()
3069 return 0;
3071 _ACEOF
3072 ac_clean_files_save=$ac_clean_files
3073 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3074 # Try to create an executable without -o first, disregard a.out.
3075 # It will help us diagnose broken compilers, and finding out an intuition
3076 # of exeext.
3077 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3078 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3079 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3080 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3081 (eval $ac_link_default) 2>&5
3082 ac_status=$?
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; then
3085 # Find the output, starting from the most likely. This scheme is
3086 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3087 # resort.
3089 # Be careful to initialize this variable, since it used to be cached.
3090 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3091 ac_cv_exeext=
3092 # b.out is created by i960 compilers.
3093 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3095 test -f "$ac_file" || continue
3096 case $ac_file in
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3099 conftest.$ac_ext )
3100 # This is the source file.
3102 [ab].out )
3103 # We found the default executable, but exeext='' is most
3104 # certainly right.
3105 break;;
3106 *.* )
3107 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3108 # FIXME: I believe we export ac_cv_exeext for Libtool,
3109 # but it would be cool to find out if it's true. Does anybody
3110 # maintain Libtool? --akim.
3111 export ac_cv_exeext
3112 break;;
3114 break;;
3115 esac
3116 done
3117 else
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3121 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3122 See \`config.log' for more details." >&5
3123 echo "$as_me: error: C compiler cannot create executables
3124 See \`config.log' for more details." >&2;}
3125 { (exit 77); exit 77; }; }
3128 ac_exeext=$ac_cv_exeext
3129 echo "$as_me:$LINENO: result: $ac_file" >&5
3130 echo "${ECHO_T}$ac_file" >&6
3132 # Check the compiler produces executables we can run. If not, either
3133 # the compiler is broken, or we cross compile.
3134 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3135 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3136 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3137 # If not cross compiling, check that we can run a simple program.
3138 if test "$cross_compiling" != yes; then
3139 if { ac_try='./$ac_file'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 (eval $ac_try) 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 cross_compiling=no
3146 else
3147 if test "$cross_compiling" = maybe; then
3148 cross_compiling=yes
3149 else
3150 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3151 If you meant to cross compile, use \`--host'.
3152 See \`config.log' for more details." >&5
3153 echo "$as_me: error: cannot run C compiled programs.
3154 If you meant to cross compile, use \`--host'.
3155 See \`config.log' for more details." >&2;}
3156 { (exit 1); exit 1; }; }
3160 echo "$as_me:$LINENO: result: yes" >&5
3161 echo "${ECHO_T}yes" >&6
3163 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3164 ac_clean_files=$ac_clean_files_save
3165 # Check the compiler produces executables we can run. If not, either
3166 # the compiler is broken, or we cross compile.
3167 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3168 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3169 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3170 echo "${ECHO_T}$cross_compiling" >&6
3172 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3173 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3175 (eval $ac_link) 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; then
3179 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3180 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3181 # work properly (i.e., refer to `conftest.exe'), while it won't with
3182 # `rm'.
3183 for ac_file in conftest.exe conftest conftest.*; do
3184 test -f "$ac_file" || continue
3185 case $ac_file in
3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3187 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3188 export ac_cv_exeext
3189 break;;
3190 * ) break;;
3191 esac
3192 done
3193 else
3194 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3195 See \`config.log' for more details." >&5
3196 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3197 See \`config.log' for more details." >&2;}
3198 { (exit 1); exit 1; }; }
3201 rm -f conftest$ac_cv_exeext
3202 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3203 echo "${ECHO_T}$ac_cv_exeext" >&6
3205 rm -f conftest.$ac_ext
3206 EXEEXT=$ac_cv_exeext
3207 ac_exeext=$EXEEXT
3208 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3209 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3210 if test "${ac_cv_objext+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213 cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h. */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3221 main ()
3225 return 0;
3227 _ACEOF
3228 rm -f conftest.o conftest.obj
3229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3230 (eval $ac_compile) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; then
3234 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3235 case $ac_file in
3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3237 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3238 break;;
3239 esac
3240 done
3241 else
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3245 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3246 See \`config.log' for more details." >&5
3247 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3248 See \`config.log' for more details." >&2;}
3249 { (exit 1); exit 1; }; }
3252 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3254 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3255 echo "${ECHO_T}$ac_cv_objext" >&6
3256 OBJEXT=$ac_cv_objext
3257 ac_objext=$OBJEXT
3258 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3259 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3260 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263 cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h. */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3271 main ()
3273 #ifndef __GNUC__
3274 choke me
3275 #endif
3278 return 0;
3280 _ACEOF
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try='test -z "$ac_c_werror_flag"
3291 || test ! -s conftest.err'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 (eval $ac_try) 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; } &&
3297 { ac_try='test -s conftest.$ac_objext'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 (eval $ac_try) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 ac_compiler_gnu=yes
3304 else
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 ac_compiler_gnu=no
3310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3314 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3315 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3316 GCC=`test $ac_compiler_gnu = yes && echo yes`
3317 ac_test_CFLAGS=${CFLAGS+set}
3318 ac_save_CFLAGS=$CFLAGS
3319 CFLAGS="-g"
3320 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3321 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3322 if test "${ac_cv_prog_cc_g+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325 cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h. */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3333 main ()
3337 return 0;
3339 _ACEOF
3340 rm -f conftest.$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342 (eval $ac_compile) 2>conftest.er1
3343 ac_status=$?
3344 grep -v '^ *+' conftest.er1 >conftest.err
3345 rm -f conftest.er1
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } &&
3349 { ac_try='test -z "$ac_c_werror_flag"
3350 || test ! -s conftest.err'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; } &&
3356 { ac_try='test -s conftest.$ac_objext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 (eval $ac_try) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 ac_cv_prog_cc_g=yes
3363 else
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 ac_cv_prog_cc_g=no
3369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3371 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3372 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3373 if test "$ac_test_CFLAGS" = set; then
3374 CFLAGS=$ac_save_CFLAGS
3375 elif test $ac_cv_prog_cc_g = yes; then
3376 if test "$GCC" = yes; then
3377 CFLAGS="-g -O2"
3378 else
3379 CFLAGS="-g"
3381 else
3382 if test "$GCC" = yes; then
3383 CFLAGS="-O2"
3384 else
3385 CFLAGS=
3388 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3389 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3390 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393 ac_cv_prog_cc_stdc=no
3394 ac_save_CC=$CC
3395 cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h. */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3401 #include <stdarg.h>
3402 #include <stdio.h>
3403 #include <sys/types.h>
3404 #include <sys/stat.h>
3405 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3406 struct buf { int x; };
3407 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3408 static char *e (p, i)
3409 char **p;
3410 int i;
3412 return p[i];
3414 static char *f (char * (*g) (char **, int), char **p, ...)
3416 char *s;
3417 va_list v;
3418 va_start (v,p);
3419 s = g (p, va_arg (v,int));
3420 va_end (v);
3421 return s;
3424 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3425 function prototypes and stuff, but not '\xHH' hex character constants.
3426 These don't provoke an error unfortunately, instead are silently treated
3427 as 'x'. The following induces an error, until -std1 is added to get
3428 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3429 array size at least. It's necessary to write '\x00'==0 to get something
3430 that's true only with -std1. */
3431 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3433 int test (int i, double x);
3434 struct s1 {int (*f) (int a);};
3435 struct s2 {int (*f) (double a);};
3436 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3437 int argc;
3438 char **argv;
3440 main ()
3442 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3444 return 0;
3446 _ACEOF
3447 # Don't try gcc -ansi; that turns off useful extensions and
3448 # breaks some systems' header files.
3449 # AIX -qlanglvl=ansi
3450 # Ultrix and OSF/1 -std1
3451 # HP-UX 10.20 and later -Ae
3452 # HP-UX older versions -Aa -D_HPUX_SOURCE
3453 # SVR4 -Xc -D__EXTENSIONS__
3454 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3456 CC="$ac_save_CC $ac_arg"
3457 rm -f conftest.$ac_objext
3458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459 (eval $ac_compile) 2>conftest.er1
3460 ac_status=$?
3461 grep -v '^ *+' conftest.er1 >conftest.err
3462 rm -f conftest.er1
3463 cat conftest.err >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try='test -z "$ac_c_werror_flag"
3467 || test ! -s conftest.err'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; } &&
3473 { ac_try='test -s conftest.$ac_objext'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 (eval $ac_try) 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3479 ac_cv_prog_cc_stdc=$ac_arg
3480 break
3481 else
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3486 rm -f conftest.err conftest.$ac_objext
3487 done
3488 rm -f conftest.$ac_ext conftest.$ac_objext
3489 CC=$ac_save_CC
3493 case "x$ac_cv_prog_cc_stdc" in
3494 x|xno)
3495 echo "$as_me:$LINENO: result: none needed" >&5
3496 echo "${ECHO_T}none needed" >&6 ;;
3498 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3499 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3500 CC="$CC $ac_cv_prog_cc_stdc" ;;
3501 esac
3503 # Some people use a C++ compiler to compile C. Since we use `exit',
3504 # in C++ we need to declare it. In case someone uses the same compiler
3505 # for both compiling C and C++ we need to have the C++ compiler decide
3506 # the declaration of exit, since it's the most demanding environment.
3507 cat >conftest.$ac_ext <<_ACEOF
3508 #ifndef __cplusplus
3509 choke me
3510 #endif
3511 _ACEOF
3512 rm -f conftest.$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 for ac_declaration in \
3535 '' \
3536 'extern "C" void std::exit (int) throw (); using std::exit;' \
3537 'extern "C" void std::exit (int); using std::exit;' \
3538 'extern "C" void exit (int) throw ();' \
3539 'extern "C" void exit (int);' \
3540 'void exit (int);'
3542 cat >conftest.$ac_ext <<_ACEOF
3543 /* confdefs.h. */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3548 $ac_declaration
3549 #include <stdlib.h>
3551 main ()
3553 exit (42);
3555 return 0;
3557 _ACEOF
3558 rm -f conftest.$ac_objext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560 (eval $ac_compile) 2>conftest.er1
3561 ac_status=$?
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try='test -z "$ac_c_werror_flag"
3568 || test ! -s conftest.err'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 (eval $ac_try) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; } &&
3574 { ac_try='test -s conftest.$ac_objext'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3581 else
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 continue
3587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3588 cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h. */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 $ac_declaration
3596 main ()
3598 exit (42);
3600 return 0;
3602 _ACEOF
3603 rm -f conftest.$ac_objext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605 (eval $ac_compile) 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } &&
3612 { ac_try='test -z "$ac_c_werror_flag"
3613 || test ! -s conftest.err'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 (eval $ac_try) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; } &&
3619 { ac_try='test -s conftest.$ac_objext'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 (eval $ac_try) 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3625 break
3626 else
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3632 done
3633 rm -f conftest*
3634 if test -n "$ac_declaration"; then
3635 echo '#ifdef __cplusplus' >>confdefs.h
3636 echo $ac_declaration >>confdefs.h
3637 echo '#endif' >>confdefs.h
3640 else
3641 echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3653 # On Suns, sometimes $CPP names a directory.
3654 if test -n "$CPP" && test -d "$CPP"; then
3655 CPP=
3658 #### Some systems specify a CPP to use unless we are using GCC.
3659 #### Now that we know whether we are using GCC, we can decide whether
3660 #### to use that one.
3661 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3662 then
3663 CPP="$NON_GNU_CPP"
3666 #### Some systems specify a CC to use unless we are using GCC.
3667 #### Now that we know whether we are using GCC, we can decide whether
3668 #### to use that one.
3669 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3670 test x$cc_specified != xyes
3671 then
3672 CC="$NON_GNU_CC"
3675 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3676 then
3677 CC="$CC $GCC_TEST_OPTIONS"
3680 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3681 then
3682 CC="$CC $NON_GCC_TEST_OPTIONS"
3686 ac_ext=c
3687 ac_cpp='$CPP $CPPFLAGS'
3688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3692 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3693 # On Suns, sometimes $CPP names a directory.
3694 if test -n "$CPP" && test -d "$CPP"; then
3695 CPP=
3697 if test -z "$CPP"; then
3698 if test "${ac_cv_prog_CPP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 # Double quotes because CPP needs to be expanded
3702 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3704 ac_preproc_ok=false
3705 for ac_c_preproc_warn_flag in '' yes
3707 # Use a header file that comes with gcc, so configuring glibc
3708 # with a fresh cross-compiler works.
3709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3710 # <limits.h> exists even on freestanding compilers.
3711 # On the NeXT, cc -E runs the code through the compiler's parser,
3712 # not just through cpp. "Syntax error" is here to catch this case.
3713 cat >conftest.$ac_ext <<_ACEOF
3714 /* confdefs.h. */
3715 _ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3719 #ifdef __STDC__
3720 # include <limits.h>
3721 #else
3722 # include <assert.h>
3723 #endif
3724 Syntax error
3725 _ACEOF
3726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3728 ac_status=$?
3729 grep -v '^ *+' conftest.er1 >conftest.err
3730 rm -f conftest.er1
3731 cat conftest.err >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } >/dev/null; then
3734 if test -s conftest.err; then
3735 ac_cpp_err=$ac_c_preproc_warn_flag
3736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3737 else
3738 ac_cpp_err=
3740 else
3741 ac_cpp_err=yes
3743 if test -z "$ac_cpp_err"; then
3745 else
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3749 # Broken: fails on valid input.
3750 continue
3752 rm -f conftest.err conftest.$ac_ext
3754 # OK, works on sane cases. Now check whether non-existent headers
3755 # can be detected and how.
3756 cat >conftest.$ac_ext <<_ACEOF
3757 /* confdefs.h. */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3762 #include <ac_nonexistent.h>
3763 _ACEOF
3764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3766 ac_status=$?
3767 grep -v '^ *+' conftest.er1 >conftest.err
3768 rm -f conftest.er1
3769 cat conftest.err >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } >/dev/null; then
3772 if test -s conftest.err; then
3773 ac_cpp_err=$ac_c_preproc_warn_flag
3774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3775 else
3776 ac_cpp_err=
3778 else
3779 ac_cpp_err=yes
3781 if test -z "$ac_cpp_err"; then
3782 # Broken: success on invalid input.
3783 continue
3784 else
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 # Passes both tests.
3789 ac_preproc_ok=:
3790 break
3792 rm -f conftest.err conftest.$ac_ext
3794 done
3795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3796 rm -f conftest.err conftest.$ac_ext
3797 if $ac_preproc_ok; then
3798 break
3801 done
3802 ac_cv_prog_CPP=$CPP
3805 CPP=$ac_cv_prog_CPP
3806 else
3807 ac_cv_prog_CPP=$CPP
3809 echo "$as_me:$LINENO: result: $CPP" >&5
3810 echo "${ECHO_T}$CPP" >&6
3811 ac_preproc_ok=false
3812 for ac_c_preproc_warn_flag in '' yes
3814 # Use a header file that comes with gcc, so configuring glibc
3815 # with a fresh cross-compiler works.
3816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3817 # <limits.h> exists even on freestanding compilers.
3818 # On the NeXT, cc -E runs the code through the compiler's parser,
3819 # not just through cpp. "Syntax error" is here to catch this case.
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h. */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3826 #ifdef __STDC__
3827 # include <limits.h>
3828 #else
3829 # include <assert.h>
3830 #endif
3831 Syntax error
3832 _ACEOF
3833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } >/dev/null; then
3841 if test -s conftest.err; then
3842 ac_cpp_err=$ac_c_preproc_warn_flag
3843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3844 else
3845 ac_cpp_err=
3847 else
3848 ac_cpp_err=yes
3850 if test -z "$ac_cpp_err"; then
3852 else
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3856 # Broken: fails on valid input.
3857 continue
3859 rm -f conftest.err conftest.$ac_ext
3861 # OK, works on sane cases. Now check whether non-existent headers
3862 # can be detected and how.
3863 cat >conftest.$ac_ext <<_ACEOF
3864 /* confdefs.h. */
3865 _ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3869 #include <ac_nonexistent.h>
3870 _ACEOF
3871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3873 ac_status=$?
3874 grep -v '^ *+' conftest.er1 >conftest.err
3875 rm -f conftest.er1
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } >/dev/null; then
3879 if test -s conftest.err; then
3880 ac_cpp_err=$ac_c_preproc_warn_flag
3881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3882 else
3883 ac_cpp_err=
3885 else
3886 ac_cpp_err=yes
3888 if test -z "$ac_cpp_err"; then
3889 # Broken: success on invalid input.
3890 continue
3891 else
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3895 # Passes both tests.
3896 ac_preproc_ok=:
3897 break
3899 rm -f conftest.err conftest.$ac_ext
3901 done
3902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3903 rm -f conftest.err conftest.$ac_ext
3904 if $ac_preproc_ok; then
3906 else
3907 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3908 See \`config.log' for more details." >&5
3909 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3910 See \`config.log' for more details." >&2;}
3911 { (exit 1); exit 1; }; }
3914 ac_ext=c
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921 echo "$as_me:$LINENO: checking for egrep" >&5
3922 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3923 if test "${ac_cv_prog_egrep+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3927 then ac_cv_prog_egrep='grep -E'
3928 else ac_cv_prog_egrep='egrep'
3931 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3932 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3933 EGREP=$ac_cv_prog_egrep
3937 echo "$as_me:$LINENO: checking for AIX" >&5
3938 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3939 cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h. */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3945 #ifdef _AIX
3947 #endif
3949 _ACEOF
3950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3951 $EGREP "yes" >/dev/null 2>&1; then
3952 echo "$as_me:$LINENO: result: yes" >&5
3953 echo "${ECHO_T}yes" >&6
3954 cat >>confdefs.h <<\_ACEOF
3955 #define _ALL_SOURCE 1
3956 _ACEOF
3958 else
3959 echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3962 rm -f conftest*
3966 cat >>confdefs.h <<\_ACEOF
3967 #define _GNU_SOURCE 1
3968 _ACEOF
3972 ### Use -Wno-pointer-sign if the compiler supports it
3973 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3974 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3975 SAVE_CFLAGS="$CFLAGS"
3976 CFLAGS="$CFLAGS -Wno-pointer-sign"
3977 cat >conftest.$ac_ext <<_ACEOF
3978 /* confdefs.h. */
3979 _ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3985 main ()
3989 return 0;
3991 _ACEOF
3992 rm -f conftest.$ac_objext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>conftest.er1
3995 ac_status=$?
3996 grep -v '^ *+' conftest.er1 >conftest.err
3997 rm -f conftest.er1
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try='test -z "$ac_c_werror_flag"
4002 || test ! -s conftest.err'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 (eval $ac_try) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try='test -s conftest.$ac_objext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 (eval $ac_try) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4014 has_option=yes
4015 else
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4019 has_option=no
4021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4022 if test $has_option = yes; then
4023 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4025 echo "$as_me:$LINENO: result: $has_option" >&5
4026 echo "${ECHO_T}$has_option" >&6
4027 CFLAGS="$SAVE_CFLAGS"
4028 unset has_option
4029 unset SAVE_CFLAGS
4031 #### Some other nice autoconf tests.
4033 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4034 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4035 LN_S=$as_ln_s
4036 if test "$LN_S" = "ln -s"; then
4037 echo "$as_me:$LINENO: result: yes" >&5
4038 echo "${ECHO_T}yes" >&6
4039 else
4040 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4041 echo "${ECHO_T}no, using $LN_S" >&6
4044 ac_ext=c
4045 ac_cpp='$CPP $CPPFLAGS'
4046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4050 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4051 # On Suns, sometimes $CPP names a directory.
4052 if test -n "$CPP" && test -d "$CPP"; then
4053 CPP=
4055 if test -z "$CPP"; then
4056 if test "${ac_cv_prog_CPP+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059 # Double quotes because CPP needs to be expanded
4060 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4062 ac_preproc_ok=false
4063 for ac_c_preproc_warn_flag in '' yes
4065 # Use a header file that comes with gcc, so configuring glibc
4066 # with a fresh cross-compiler works.
4067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4068 # <limits.h> exists even on freestanding compilers.
4069 # On the NeXT, cc -E runs the code through the compiler's parser,
4070 # not just through cpp. "Syntax error" is here to catch this case.
4071 cat >conftest.$ac_ext <<_ACEOF
4072 /* confdefs.h. */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4077 #ifdef __STDC__
4078 # include <limits.h>
4079 #else
4080 # include <assert.h>
4081 #endif
4082 Syntax error
4083 _ACEOF
4084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } >/dev/null; then
4092 if test -s conftest.err; then
4093 ac_cpp_err=$ac_c_preproc_warn_flag
4094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4095 else
4096 ac_cpp_err=
4098 else
4099 ac_cpp_err=yes
4101 if test -z "$ac_cpp_err"; then
4103 else
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 # Broken: fails on valid input.
4108 continue
4110 rm -f conftest.err conftest.$ac_ext
4112 # OK, works on sane cases. Now check whether non-existent headers
4113 # can be detected and how.
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h. */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <ac_nonexistent.h>
4121 _ACEOF
4122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } >/dev/null; then
4130 if test -s conftest.err; then
4131 ac_cpp_err=$ac_c_preproc_warn_flag
4132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4133 else
4134 ac_cpp_err=
4136 else
4137 ac_cpp_err=yes
4139 if test -z "$ac_cpp_err"; then
4140 # Broken: success on invalid input.
4141 continue
4142 else
4143 echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4146 # Passes both tests.
4147 ac_preproc_ok=:
4148 break
4150 rm -f conftest.err conftest.$ac_ext
4152 done
4153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4154 rm -f conftest.err conftest.$ac_ext
4155 if $ac_preproc_ok; then
4156 break
4159 done
4160 ac_cv_prog_CPP=$CPP
4163 CPP=$ac_cv_prog_CPP
4164 else
4165 ac_cv_prog_CPP=$CPP
4167 echo "$as_me:$LINENO: result: $CPP" >&5
4168 echo "${ECHO_T}$CPP" >&6
4169 ac_preproc_ok=false
4170 for ac_c_preproc_warn_flag in '' yes
4172 # Use a header file that comes with gcc, so configuring glibc
4173 # with a fresh cross-compiler works.
4174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4175 # <limits.h> exists even on freestanding compilers.
4176 # On the NeXT, cc -E runs the code through the compiler's parser,
4177 # not just through cpp. "Syntax error" is here to catch this case.
4178 cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h. */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4184 #ifdef __STDC__
4185 # include <limits.h>
4186 #else
4187 # include <assert.h>
4188 #endif
4189 Syntax error
4190 _ACEOF
4191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4193 ac_status=$?
4194 grep -v '^ *+' conftest.er1 >conftest.err
4195 rm -f conftest.er1
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } >/dev/null; then
4199 if test -s conftest.err; then
4200 ac_cpp_err=$ac_c_preproc_warn_flag
4201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4202 else
4203 ac_cpp_err=
4205 else
4206 ac_cpp_err=yes
4208 if test -z "$ac_cpp_err"; then
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 # Broken: fails on valid input.
4215 continue
4217 rm -f conftest.err conftest.$ac_ext
4219 # OK, works on sane cases. Now check whether non-existent headers
4220 # can be detected and how.
4221 cat >conftest.$ac_ext <<_ACEOF
4222 /* confdefs.h. */
4223 _ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4227 #include <ac_nonexistent.h>
4228 _ACEOF
4229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4231 ac_status=$?
4232 grep -v '^ *+' conftest.er1 >conftest.err
4233 rm -f conftest.er1
4234 cat conftest.err >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } >/dev/null; then
4237 if test -s conftest.err; then
4238 ac_cpp_err=$ac_c_preproc_warn_flag
4239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4240 else
4241 ac_cpp_err=
4243 else
4244 ac_cpp_err=yes
4246 if test -z "$ac_cpp_err"; then
4247 # Broken: success on invalid input.
4248 continue
4249 else
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4253 # Passes both tests.
4254 ac_preproc_ok=:
4255 break
4257 rm -f conftest.err conftest.$ac_ext
4259 done
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.err conftest.$ac_ext
4262 if $ac_preproc_ok; then
4264 else
4265 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4266 See \`config.log' for more details." >&5
4267 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4268 See \`config.log' for more details." >&2;}
4269 { (exit 1); exit 1; }; }
4272 ac_ext=c
4273 ac_cpp='$CPP $CPPFLAGS'
4274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278 # Find a good install program. We prefer a C program (faster),
4279 # so one script is as good as another. But avoid the broken or
4280 # incompatible versions:
4281 # SysV /etc/install, /usr/sbin/install
4282 # SunOS /usr/etc/install
4283 # IRIX /sbin/install
4284 # AIX /bin/install
4285 # AmigaOS /C/install, which installs bootblocks on floppy discs
4286 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4287 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4288 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4289 # OS/2's system install, which has a completely different semantic
4290 # ./install, which can be erroneously created by make from ./install.sh.
4291 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4292 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4293 if test -z "$INSTALL"; then
4294 if test "${ac_cv_path_install+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH
4300 IFS=$as_save_IFS
4301 test -z "$as_dir" && as_dir=.
4302 # Account for people who put trailing slashes in PATH elements.
4303 case $as_dir/ in
4304 ./ | .// | /cC/* | \
4305 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4306 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4307 /usr/ucb/* ) ;;
4309 # OSF1 and SCO ODT 3.0 have their own names for install.
4310 # Don't use installbsd from OSF since it installs stuff as root
4311 # by default.
4312 for ac_prog in ginstall scoinst install; do
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4315 if test $ac_prog = install &&
4316 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4317 # AIX install. It has an incompatible calling convention.
4319 elif test $ac_prog = install &&
4320 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4321 # program-specific install script used by HP pwplus--don't use.
4323 else
4324 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4325 break 3
4328 done
4329 done
4331 esac
4332 done
4336 if test "${ac_cv_path_install+set}" = set; then
4337 INSTALL=$ac_cv_path_install
4338 else
4339 # As a last resort, use the slow shell script. We don't cache a
4340 # path for INSTALL within a source directory, because that will
4341 # break other packages using the cache if that directory is
4342 # removed, or if the path is relative.
4343 INSTALL=$ac_install_sh
4346 echo "$as_me:$LINENO: result: $INSTALL" >&5
4347 echo "${ECHO_T}$INSTALL" >&6
4349 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4350 # It thinks the first close brace ends the variable substitution.
4351 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4353 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4355 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4357 if test "x$RANLIB" = x; then
4358 if test -n "$ac_tool_prefix"; then
4359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4361 echo "$as_me:$LINENO: checking for $ac_word" >&5
4362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4363 if test "${ac_cv_prog_RANLIB+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 if test -n "$RANLIB"; then
4367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4380 done
4381 done
4385 RANLIB=$ac_cv_prog_RANLIB
4386 if test -n "$RANLIB"; then
4387 echo "$as_me:$LINENO: result: $RANLIB" >&5
4388 echo "${ECHO_T}$RANLIB" >&6
4389 else
4390 echo "$as_me:$LINENO: result: no" >&5
4391 echo "${ECHO_T}no" >&6
4395 if test -z "$ac_cv_prog_RANLIB"; then
4396 ac_ct_RANLIB=$RANLIB
4397 # Extract the first word of "ranlib", so it can be a program name with args.
4398 set dummy ranlib; ac_word=$2
4399 echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4401 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404 if test -n "$ac_ct_RANLIB"; then
4405 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414 ac_cv_prog_ac_ct_RANLIB="ranlib"
4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4418 done
4419 done
4421 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4424 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4425 if test -n "$ac_ct_RANLIB"; then
4426 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4427 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4428 else
4429 echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6
4433 RANLIB=$ac_ct_RANLIB
4434 else
4435 RANLIB="$ac_cv_prog_RANLIB"
4439 # Extract the first word of "install-info", so it can be a program name with args.
4440 set dummy install-info; ac_word=$2
4441 echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4443 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446 case $INSTALL_INFO in
4447 [\\/]* | ?:[\\/]*)
4448 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4462 done
4463 done
4466 esac
4468 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4470 if test -n "$INSTALL_INFO"; then
4471 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4472 echo "${ECHO_T}$INSTALL_INFO" >&6
4473 else
4474 echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6
4478 # Extract the first word of "install-info", so it can be a program name with args.
4479 set dummy install-info; ac_word=$2
4480 echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4482 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485 case $INSTALL_INFO in
4486 [\\/]* | ?:[\\/]*)
4487 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in /usr/sbin
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4497 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4501 done
4502 done
4505 esac
4507 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4509 if test -n "$INSTALL_INFO"; then
4510 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4511 echo "${ECHO_T}$INSTALL_INFO" >&6
4512 else
4513 echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6
4517 # Extract the first word of "install-info", so it can be a program name with args.
4518 set dummy install-info; ac_word=$2
4519 echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4521 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524 case $INSTALL_INFO in
4525 [\\/]* | ?:[\\/]*)
4526 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in /sbin
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 break 2
4540 done
4541 done
4543 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4545 esac
4547 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4549 if test -n "$INSTALL_INFO"; then
4550 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4551 echo "${ECHO_T}$INSTALL_INFO" >&6
4552 else
4553 echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6
4557 # Extract the first word of "gzip", so it can be a program name with args.
4558 set dummy gzip; ac_word=$2
4559 echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4561 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564 case $GZIP_PROG in
4565 [\\/]* | ?:[\\/]*)
4566 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4576 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 break 2
4580 done
4581 done
4584 esac
4586 GZIP_PROG=$ac_cv_path_GZIP_PROG
4588 if test -n "$GZIP_PROG"; then
4589 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4590 echo "${ECHO_T}$GZIP_PROG" >&6
4591 else
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4598 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4599 then
4600 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4603 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4604 then
4605 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4609 late_LDFLAGS=$LDFLAGS
4610 if test "$GCC" = yes; then
4611 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4612 else
4613 LDFLAGS="$LDFLAGS -znocombreloc"
4616 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4617 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4618 cat >conftest.$ac_ext <<_ACEOF
4619 main(){return 0;}
4620 _ACEOF
4621 rm -f conftest.$ac_objext conftest$ac_exeext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623 (eval $ac_link) 2>conftest.er1
4624 ac_status=$?
4625 grep -v '^ *+' conftest.er1 >conftest.err
4626 rm -f conftest.er1
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -z "$ac_c_werror_flag"
4631 || test ! -s conftest.err'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; } &&
4637 { ac_try='test -s conftest$ac_exeext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 echo "$as_me:$LINENO: result: yes" >&5
4644 echo "${ECHO_T}yes" >&6
4645 else
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4649 LDFLAGS=$late_LDFLAGS
4650 echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6
4653 rm -f conftest.err conftest.$ac_objext \
4654 conftest$ac_exeext conftest.$ac_ext
4656 #### Extract some information from the operating system and machine files.
4658 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4659 - which libraries the lib-src programs will want, and
4660 - whether the GNU malloc routines are usable..." >&5
4661 echo "$as_me: checking the machine- and system-dependent files to find out
4662 - which libraries the lib-src programs will want, and
4663 - whether the GNU malloc routines are usable..." >&6;}
4665 ### First figure out CFLAGS (which we use for running the compiler here)
4666 ### and REAL_CFLAGS (which we use for real compilation).
4667 ### The two are the same except on a few systems, where they are made
4668 ### different to work around various lossages. For example,
4669 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4670 ### as implying static linking.
4672 ### If the CFLAGS env var is specified, we use that value
4673 ### instead of the default.
4675 ### It's not important that this name contain the PID; you can't run
4676 ### two configures in the same directory and have anything work
4677 ### anyway.
4678 tempcname="conftest.c"
4680 echo '
4681 #include "'${srcdir}'/src/'${opsysfile}'"
4682 #include "'${srcdir}'/src/'${machfile}'"
4683 #ifndef LIBS_MACHINE
4684 #define LIBS_MACHINE
4685 #endif
4686 #ifndef LIBS_SYSTEM
4687 #define LIBS_SYSTEM
4688 #endif
4689 #ifndef C_SWITCH_SYSTEM
4690 #define C_SWITCH_SYSTEM
4691 #endif
4692 #ifndef C_SWITCH_MACHINE
4693 #define C_SWITCH_MACHINE
4694 #endif
4695 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4696 configure___ c_switch_system=C_SWITCH_SYSTEM
4697 configure___ c_switch_machine=C_SWITCH_MACHINE
4699 #ifndef LIB_X11_LIB
4700 #define LIB_X11_LIB -lX11
4701 #endif
4703 #ifndef LIBX11_MACHINE
4704 #define LIBX11_MACHINE
4705 #endif
4707 #ifndef LIBX11_SYSTEM
4708 #define LIBX11_SYSTEM
4709 #endif
4710 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4712 #ifdef UNEXEC
4713 configure___ unexec=UNEXEC
4714 #else
4715 configure___ unexec=unexec.o
4716 #endif
4718 #ifdef SYSTEM_MALLOC
4719 configure___ system_malloc=yes
4720 #else
4721 configure___ system_malloc=no
4722 #endif
4724 #ifdef USE_MMAP_FOR_BUFFERS
4725 configure___ use_mmap_for_buffers=yes
4726 #else
4727 configure___ use_mmap_for_buffers=no
4728 #endif
4730 #ifndef C_DEBUG_SWITCH
4731 #define C_DEBUG_SWITCH -g
4732 #endif
4734 #ifndef C_OPTIMIZE_SWITCH
4735 #ifdef __GNUC__
4736 #define C_OPTIMIZE_SWITCH -O2
4737 #else
4738 #define C_OPTIMIZE_SWITCH -O
4739 #endif
4740 #endif
4742 #ifndef C_WARNINGS_SWITCH
4743 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4744 #endif
4746 #ifndef LD_SWITCH_MACHINE
4747 #define LD_SWITCH_MACHINE
4748 #endif
4750 #ifndef LD_SWITCH_SYSTEM
4751 #define LD_SWITCH_SYSTEM
4752 #endif
4754 #ifndef LD_SWITCH_X_SITE_AUX
4755 #define LD_SWITCH_X_SITE_AUX
4756 #endif
4758 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4759 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4761 #ifdef THIS_IS_CONFIGURE
4763 /* Get the CFLAGS for tests in configure. */
4764 #ifdef __GNUC__
4765 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4766 #else
4767 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4768 #endif
4770 #else /* not THIS_IS_CONFIGURE */
4772 /* Get the CFLAGS for real compilation. */
4773 #ifdef __GNUC__
4774 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4775 #else
4776 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4777 #endif
4779 #endif /* not THIS_IS_CONFIGURE */
4780 ' > ${tempcname}
4782 # The value of CPP is a quoted variable reference, so we need to do this
4783 # to get its actual value...
4784 CPP=`eval "echo $CPP"`
4785 eval `${CPP} -Isrc ${tempcname} \
4786 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4787 if test "x$SPECIFIED_CFLAGS" = x; then
4788 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4789 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4790 else
4791 REAL_CFLAGS="$CFLAGS"
4793 rm ${tempcname}
4795 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4797 ### Make sure subsequent tests use flags consistent with the build flags.
4799 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4800 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4801 else
4802 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4807 # Check whether --enable-largefile or --disable-largefile was given.
4808 if test "${enable_largefile+set}" = set; then
4809 enableval="$enable_largefile"
4812 if test "$enable_largefile" != no; then
4814 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4815 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4816 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819 ac_cv_sys_largefile_CC=no
4820 if test "$GCC" != yes; then
4821 ac_save_CC=$CC
4822 while :; do
4823 # IRIX 6.2 and later do not support large files by default,
4824 # so use the C compiler's -n32 option if that helps.
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 #include <sys/types.h>
4832 /* Check that off_t can represent 2**63 - 1 correctly.
4833 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4834 since some C++ compilers masquerading as C compilers
4835 incorrectly reject 9223372036854775807. */
4836 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4837 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4838 && LARGE_OFF_T % 2147483647 == 1)
4839 ? 1 : -1];
4841 main ()
4845 return 0;
4847 _ACEOF
4848 rm -f conftest.$ac_objext
4849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -z "$ac_c_werror_flag"
4858 || test ! -s conftest.err'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 (eval $ac_try) 2>&5
4861 ac_status=$?
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; } &&
4864 { ac_try='test -s conftest.$ac_objext'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 (eval $ac_try) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4870 break
4871 else
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4876 rm -f conftest.err conftest.$ac_objext
4877 CC="$CC -n32"
4878 rm -f conftest.$ac_objext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880 (eval $ac_compile) 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try='test -s conftest.$ac_objext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 ac_cv_sys_largefile_CC=' -n32'; break
4901 else
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4906 rm -f conftest.err conftest.$ac_objext
4907 break
4908 done
4909 CC=$ac_save_CC
4910 rm -f conftest.$ac_ext
4913 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4914 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4915 if test "$ac_cv_sys_largefile_CC" != no; then
4916 CC=$CC$ac_cv_sys_largefile_CC
4919 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4920 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4921 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924 while :; do
4925 ac_cv_sys_file_offset_bits=no
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 #include <sys/types.h>
4933 /* Check that off_t can represent 2**63 - 1 correctly.
4934 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4935 since some C++ compilers masquerading as C compilers
4936 incorrectly reject 9223372036854775807. */
4937 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4938 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4939 && LARGE_OFF_T % 2147483647 == 1)
4940 ? 1 : -1];
4942 main ()
4946 return 0;
4948 _ACEOF
4949 rm -f conftest.$ac_objext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>conftest.er1
4952 ac_status=$?
4953 grep -v '^ *+' conftest.er1 >conftest.err
4954 rm -f conftest.er1
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try='test -z "$ac_c_werror_flag"
4959 || test ! -s conftest.err'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 (eval $ac_try) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; } &&
4965 { ac_try='test -s conftest.$ac_objext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 (eval $ac_try) 2>&5
4968 ac_status=$?
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 break
4972 else
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4978 cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h. */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 #define _FILE_OFFSET_BITS 64
4985 #include <sys/types.h>
4986 /* Check that off_t can represent 2**63 - 1 correctly.
4987 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4988 since some C++ compilers masquerading as C compilers
4989 incorrectly reject 9223372036854775807. */
4990 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4991 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4992 && LARGE_OFF_T % 2147483647 == 1)
4993 ? 1 : -1];
4995 main ()
4999 return 0;
5001 _ACEOF
5002 rm -f conftest.$ac_objext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try='test -s conftest.$ac_objext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 ac_cv_sys_file_offset_bits=64; break
5025 else
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5031 break
5032 done
5034 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5035 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5036 if test "$ac_cv_sys_file_offset_bits" != no; then
5038 cat >>confdefs.h <<_ACEOF
5039 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5040 _ACEOF
5043 rm -f conftest*
5044 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5045 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5046 if test "${ac_cv_sys_large_files+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049 while :; do
5050 ac_cv_sys_large_files=no
5051 cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h. */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 #include <sys/types.h>
5058 /* Check that off_t can represent 2**63 - 1 correctly.
5059 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5060 since some C++ compilers masquerading as C compilers
5061 incorrectly reject 9223372036854775807. */
5062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5063 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5064 && LARGE_OFF_T % 2147483647 == 1)
5065 ? 1 : -1];
5067 main ()
5071 return 0;
5073 _ACEOF
5074 rm -f conftest.$ac_objext
5075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5076 (eval $ac_compile) 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -z "$ac_c_werror_flag"
5084 || test ! -s conftest.err'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 (eval $ac_try) 2>&5
5087 ac_status=$?
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; } &&
5090 { ac_try='test -s conftest.$ac_objext'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 (eval $ac_try) 2>&5
5093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5096 break
5097 else
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5103 cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h. */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 #define _LARGE_FILES 1
5110 #include <sys/types.h>
5111 /* Check that off_t can represent 2**63 - 1 correctly.
5112 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5113 since some C++ compilers masquerading as C compilers
5114 incorrectly reject 9223372036854775807. */
5115 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5116 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5117 && LARGE_OFF_T % 2147483647 == 1)
5118 ? 1 : -1];
5120 main ()
5124 return 0;
5126 _ACEOF
5127 rm -f conftest.$ac_objext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129 (eval $ac_compile) 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 { ac_try='test -z "$ac_c_werror_flag"
5137 || test ! -s conftest.err'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 (eval $ac_try) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; } &&
5143 { ac_try='test -s conftest.$ac_objext'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 (eval $ac_try) 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; }; then
5149 ac_cv_sys_large_files=1; break
5150 else
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5156 break
5157 done
5159 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5160 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5161 if test "$ac_cv_sys_large_files" != no; then
5163 cat >>confdefs.h <<_ACEOF
5164 #define _LARGE_FILES $ac_cv_sys_large_files
5165 _ACEOF
5168 rm -f conftest*
5173 ### The standard library on x86-64 GNU/Linux distributions can
5174 ### be located in either /usr/lib64 or /usr/lib.
5175 case "${canonical}" in
5176 x86_64-*-linux-gnu* )
5177 if test -d /usr/lib64; then
5179 cat >>confdefs.h <<\_ACEOF
5180 #define HAVE_X86_64_LIB64_DIR 1
5181 _ACEOF
5184 esac
5189 if test "${with_sound}" != "no"; then
5190 # Sound support for GNU/Linux and the free BSDs.
5191 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5192 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5193 if test "${ac_cv_header_stdc+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 else
5196 cat >conftest.$ac_ext <<_ACEOF
5197 /* confdefs.h. */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5202 #include <stdlib.h>
5203 #include <stdarg.h>
5204 #include <string.h>
5205 #include <float.h>
5208 main ()
5212 return 0;
5214 _ACEOF
5215 rm -f conftest.$ac_objext
5216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5217 (eval $ac_compile) 2>conftest.er1
5218 ac_status=$?
5219 grep -v '^ *+' conftest.er1 >conftest.err
5220 rm -f conftest.er1
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try='test -z "$ac_c_werror_flag"
5225 || test ! -s conftest.err'
5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 (eval $ac_try) 2>&5
5228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; } &&
5231 { ac_try='test -s conftest.$ac_objext'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233 (eval $ac_try) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; }; then
5237 ac_cv_header_stdc=yes
5238 else
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5242 ac_cv_header_stdc=no
5244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5246 if test $ac_cv_header_stdc = yes; then
5247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5248 cat >conftest.$ac_ext <<_ACEOF
5249 /* confdefs.h. */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254 #include <string.h>
5256 _ACEOF
5257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5258 $EGREP "memchr" >/dev/null 2>&1; then
5260 else
5261 ac_cv_header_stdc=no
5263 rm -f conftest*
5267 if test $ac_cv_header_stdc = yes; then
5268 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5269 cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h. */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5275 #include <stdlib.h>
5277 _ACEOF
5278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5279 $EGREP "free" >/dev/null 2>&1; then
5281 else
5282 ac_cv_header_stdc=no
5284 rm -f conftest*
5288 if test $ac_cv_header_stdc = yes; then
5289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5290 if test "$cross_compiling" = yes; then
5292 else
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h. */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 #include <ctype.h>
5300 #if ((' ' & 0x0FF) == 0x020)
5301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5303 #else
5304 # define ISLOWER(c) \
5305 (('a' <= (c) && (c) <= 'i') \
5306 || ('j' <= (c) && (c) <= 'r') \
5307 || ('s' <= (c) && (c) <= 'z'))
5308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5309 #endif
5311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5313 main ()
5315 int i;
5316 for (i = 0; i < 256; i++)
5317 if (XOR (islower (i), ISLOWER (i))
5318 || toupper (i) != TOUPPER (i))
5319 exit(2);
5320 exit (0);
5322 _ACEOF
5323 rm -f conftest$ac_exeext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5325 (eval $ac_link) 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 (eval $ac_try) 2>&5
5331 ac_status=$?
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5335 else
5336 echo "$as_me: program exited with status $ac_status" >&5
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5340 ( exit $ac_status )
5341 ac_cv_header_stdc=no
5343 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5347 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5348 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5349 if test $ac_cv_header_stdc = yes; then
5351 cat >>confdefs.h <<\_ACEOF
5352 #define STDC_HEADERS 1
5353 _ACEOF
5357 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5367 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5368 inttypes.h stdint.h unistd.h
5370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5371 echo "$as_me:$LINENO: checking for $ac_header" >&5
5372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376 cat >conftest.$ac_ext <<_ACEOF
5377 /* confdefs.h. */
5378 _ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5382 $ac_includes_default
5384 #include <$ac_header>
5385 _ACEOF
5386 rm -f conftest.$ac_objext
5387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5388 (eval $ac_compile) 2>conftest.er1
5389 ac_status=$?
5390 grep -v '^ *+' conftest.er1 >conftest.err
5391 rm -f conftest.er1
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } &&
5395 { ac_try='test -z "$ac_c_werror_flag"
5396 || test ! -s conftest.err'
5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398 (eval $ac_try) 2>&5
5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; } &&
5402 { ac_try='test -s conftest.$ac_objext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 (eval $ac_try) 2>&5
5405 ac_status=$?
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 eval "$as_ac_Header=yes"
5409 else
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5413 eval "$as_ac_Header=no"
5415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5420 cat >>confdefs.h <<_ACEOF
5421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5422 _ACEOF
5426 done
5432 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5436 echo "$as_me:$LINENO: checking for $ac_header" >&5
5437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5443 else
5444 # Is the header compilable?
5445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5447 cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h. */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 $ac_includes_default
5454 #include <$ac_header>
5455 _ACEOF
5456 rm -f conftest.$ac_objext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5458 (eval $ac_compile) 2>conftest.er1
5459 ac_status=$?
5460 grep -v '^ *+' conftest.er1 >conftest.err
5461 rm -f conftest.er1
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } &&
5465 { ac_try='test -z "$ac_c_werror_flag"
5466 || test ! -s conftest.err'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 (eval $ac_try) 2>&5
5469 ac_status=$?
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; } &&
5472 { ac_try='test -s conftest.$ac_objext'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 (eval $ac_try) 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 ac_header_compiler=yes
5479 else
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 ac_header_compiler=no
5485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5487 echo "${ECHO_T}$ac_header_compiler" >&6
5489 # Is the header present?
5490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5492 cat >conftest.$ac_ext <<_ACEOF
5493 /* confdefs.h. */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498 #include <$ac_header>
5499 _ACEOF
5500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } >/dev/null; then
5508 if test -s conftest.err; then
5509 ac_cpp_err=$ac_c_preproc_warn_flag
5510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5511 else
5512 ac_cpp_err=
5514 else
5515 ac_cpp_err=yes
5517 if test -z "$ac_cpp_err"; then
5518 ac_header_preproc=yes
5519 else
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5523 ac_header_preproc=no
5525 rm -f conftest.err conftest.$ac_ext
5526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5527 echo "${ECHO_T}$ac_header_preproc" >&6
5529 # So? What about this header?
5530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5531 yes:no: )
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5536 ac_header_preproc=yes
5538 no:yes:* )
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5552 cat <<\_ASBOX
5553 ## ------------------------------------------ ##
5554 ## Report this to the AC_PACKAGE_NAME lists. ##
5555 ## ------------------------------------------ ##
5556 _ASBOX
5558 sed "s/^/$as_me: WARNING: /" >&2
5560 esac
5561 echo "$as_me:$LINENO: checking for $ac_header" >&5
5562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566 eval "$as_ac_Header=\$ac_header_preproc"
5568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5573 cat >>confdefs.h <<_ACEOF
5574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5575 _ACEOF
5579 done
5581 # Emulation library used on NetBSD.
5582 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5583 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5584 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 ac_check_lib_save_LIBS=$LIBS
5588 LIBS="-lossaudio $LIBS"
5589 cat >conftest.$ac_ext <<_ACEOF
5590 /* confdefs.h. */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5596 /* Override any gcc2 internal prototype to avoid an error. */
5597 #ifdef __cplusplus
5598 extern "C"
5599 #endif
5600 /* We use char because int might match the return type of a gcc2
5601 builtin and then its argument prototype would still apply. */
5602 char _oss_ioctl ();
5604 main ()
5606 _oss_ioctl ();
5608 return 0;
5610 _ACEOF
5611 rm -f conftest.$ac_objext conftest$ac_exeext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5613 (eval $ac_link) 2>conftest.er1
5614 ac_status=$?
5615 grep -v '^ *+' conftest.er1 >conftest.err
5616 rm -f conftest.er1
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } &&
5620 { ac_try='test -z "$ac_c_werror_flag"
5621 || test ! -s conftest.err'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623 (eval $ac_try) 2>&5
5624 ac_status=$?
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; } &&
5627 { ac_try='test -s conftest$ac_exeext'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 (eval $ac_try) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5633 ac_cv_lib_ossaudio__oss_ioctl=yes
5634 else
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5638 ac_cv_lib_ossaudio__oss_ioctl=no
5640 rm -f conftest.err conftest.$ac_objext \
5641 conftest$ac_exeext conftest.$ac_ext
5642 LIBS=$ac_check_lib_save_LIBS
5644 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5645 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5646 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5647 LIBSOUND=-lossaudio
5648 else
5649 LIBSOUND=
5654 ALSA_REQUIRED=1.0.0
5655 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5656 if test "X${with_pkg_config_prog}" != X; then
5657 PKG_CONFIG="${with_pkg_config_prog}"
5660 succeeded=no
5662 if test -z "$PKG_CONFIG"; then
5663 # Extract the first word of "pkg-config", so it can be a program name with args.
5664 set dummy pkg-config; ac_word=$2
5665 echo "$as_me:$LINENO: checking for $ac_word" >&5
5666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5667 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670 case $PKG_CONFIG in
5671 [\\/]* | ?:[\\/]*)
5672 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5682 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5686 done
5687 done
5689 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5691 esac
5693 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5695 if test -n "$PKG_CONFIG"; then
5696 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5697 echo "${ECHO_T}$PKG_CONFIG" >&6
5698 else
5699 echo "$as_me:$LINENO: result: no" >&5
5700 echo "${ECHO_T}no" >&6
5705 if test "$PKG_CONFIG" = "no" ; then
5706 HAVE_ALSA=no
5707 else
5708 PKG_CONFIG_MIN_VERSION=0.9.0
5709 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5710 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5711 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5713 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5714 echo "$as_me:$LINENO: result: yes" >&5
5715 echo "${ECHO_T}yes" >&6
5716 succeeded=yes
5718 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5719 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5720 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5721 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5722 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5724 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5725 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5726 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5727 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5728 echo "${ECHO_T}$ALSA_LIBS" >&6
5729 else
5730 echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6
5732 ALSA_CFLAGS=""
5733 ALSA_LIBS=""
5734 ## If we have a custom action on failure, don't print errors, but
5735 ## do set a variable so people can do so.
5736 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5742 else
5743 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5744 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5748 if test $succeeded = yes; then
5749 HAVE_ALSA=yes
5750 else
5751 HAVE_ALSA=no
5754 if test $HAVE_ALSA = yes; then
5755 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5756 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5758 cat >>confdefs.h <<\_ACEOF
5759 #define HAVE_ALSA 1
5760 _ACEOF
5791 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5792 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5793 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5794 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5795 sys/utsname.h pwd.h
5797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5799 echo "$as_me:$LINENO: checking for $ac_header" >&5
5800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5806 else
5807 # Is the header compilable?
5808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5810 cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h. */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5816 $ac_includes_default
5817 #include <$ac_header>
5818 _ACEOF
5819 rm -f conftest.$ac_objext
5820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5821 (eval $ac_compile) 2>conftest.er1
5822 ac_status=$?
5823 grep -v '^ *+' conftest.er1 >conftest.err
5824 rm -f conftest.er1
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } &&
5828 { ac_try='test -z "$ac_c_werror_flag"
5829 || test ! -s conftest.err'
5830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 (eval $ac_try) 2>&5
5832 ac_status=$?
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; } &&
5835 { ac_try='test -s conftest.$ac_objext'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 (eval $ac_try) 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5841 ac_header_compiler=yes
5842 else
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5846 ac_header_compiler=no
5848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5850 echo "${ECHO_T}$ac_header_compiler" >&6
5852 # Is the header present?
5853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5855 cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h. */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 #include <$ac_header>
5862 _ACEOF
5863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } >/dev/null; then
5871 if test -s conftest.err; then
5872 ac_cpp_err=$ac_c_preproc_warn_flag
5873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5874 else
5875 ac_cpp_err=
5877 else
5878 ac_cpp_err=yes
5880 if test -z "$ac_cpp_err"; then
5881 ac_header_preproc=yes
5882 else
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5886 ac_header_preproc=no
5888 rm -f conftest.err conftest.$ac_ext
5889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5890 echo "${ECHO_T}$ac_header_preproc" >&6
5892 # So? What about this header?
5893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5894 yes:no: )
5895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5899 ac_header_preproc=yes
5901 no:yes:* )
5902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5915 cat <<\_ASBOX
5916 ## ------------------------------------------ ##
5917 ## Report this to the AC_PACKAGE_NAME lists. ##
5918 ## ------------------------------------------ ##
5919 _ASBOX
5921 sed "s/^/$as_me: WARNING: /" >&2
5923 esac
5924 echo "$as_me:$LINENO: checking for $ac_header" >&5
5925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929 eval "$as_ac_Header=\$ac_header_preproc"
5931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5936 cat >>confdefs.h <<_ACEOF
5937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5938 _ACEOF
5942 done
5945 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5946 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h. */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 #include <sys/personality.h>
5955 main ()
5957 personality (PER_LINUX32)
5959 return 0;
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964 (eval $ac_compile) 2>conftest.er1
5965 ac_status=$?
5966 grep -v '^ *+' conftest.er1 >conftest.err
5967 rm -f conftest.er1
5968 cat conftest.err >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } &&
5971 { ac_try='test -z "$ac_c_werror_flag"
5972 || test ! -s conftest.err'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try='test -s conftest.$ac_objext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 (eval $ac_try) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 emacs_cv_personality_linux32=yes
5985 else
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5989 emacs_cv_personality_linux32=no
5991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5992 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5993 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5995 if test $emacs_cv_personality_linux32 = yes; then
5997 cat >>confdefs.h <<\_ACEOF
5998 #define HAVE_PERSONALITY_LINUX32 1
5999 _ACEOF
6004 for ac_header in term.h
6006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6007 echo "$as_me:$LINENO: checking for $ac_header" >&5
6008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012 cat >conftest.$ac_ext <<_ACEOF
6013 /* confdefs.h. */
6014 _ACEOF
6015 cat confdefs.h >>conftest.$ac_ext
6016 cat >>conftest.$ac_ext <<_ACEOF
6017 /* end confdefs.h. */
6018 #include <$ac_header>
6019 _ACEOF
6020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } >/dev/null; then
6028 if test -s conftest.err; then
6029 ac_cpp_err=$ac_c_preproc_warn_flag
6030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6031 else
6032 ac_cpp_err=
6034 else
6035 ac_cpp_err=yes
6037 if test -z "$ac_cpp_err"; then
6038 eval "$as_ac_Header=yes"
6039 else
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6043 eval "$as_ac_Header=no"
6045 rm -f conftest.err conftest.$ac_ext
6047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6050 cat >>confdefs.h <<_ACEOF
6051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6052 _ACEOF
6056 done
6058 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6059 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6060 if test "${ac_cv_header_stdc+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063 cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h. */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 #include <stdlib.h>
6070 #include <stdarg.h>
6071 #include <string.h>
6072 #include <float.h>
6075 main ()
6079 return 0;
6081 _ACEOF
6082 rm -f conftest.$ac_objext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084 (eval $ac_compile) 2>conftest.er1
6085 ac_status=$?
6086 grep -v '^ *+' conftest.er1 >conftest.err
6087 rm -f conftest.er1
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -z "$ac_c_werror_flag"
6092 || test ! -s conftest.err'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; } &&
6098 { ac_try='test -s conftest.$ac_objext'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 (eval $ac_try) 2>&5
6101 ac_status=$?
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then
6104 ac_cv_header_stdc=yes
6105 else
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6109 ac_cv_header_stdc=no
6111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6113 if test $ac_cv_header_stdc = yes; then
6114 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6115 cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h. */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6121 #include <string.h>
6123 _ACEOF
6124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6125 $EGREP "memchr" >/dev/null 2>&1; then
6127 else
6128 ac_cv_header_stdc=no
6130 rm -f conftest*
6134 if test $ac_cv_header_stdc = yes; then
6135 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6136 cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h. */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 #include <stdlib.h>
6144 _ACEOF
6145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6146 $EGREP "free" >/dev/null 2>&1; then
6148 else
6149 ac_cv_header_stdc=no
6151 rm -f conftest*
6155 if test $ac_cv_header_stdc = yes; then
6156 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6157 if test "$cross_compiling" = yes; then
6159 else
6160 cat >conftest.$ac_ext <<_ACEOF
6161 /* confdefs.h. */
6162 _ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6166 #include <ctype.h>
6167 #if ((' ' & 0x0FF) == 0x020)
6168 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6169 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6170 #else
6171 # define ISLOWER(c) \
6172 (('a' <= (c) && (c) <= 'i') \
6173 || ('j' <= (c) && (c) <= 'r') \
6174 || ('s' <= (c) && (c) <= 'z'))
6175 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6176 #endif
6178 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6180 main ()
6182 int i;
6183 for (i = 0; i < 256; i++)
6184 if (XOR (islower (i), ISLOWER (i))
6185 || toupper (i) != TOUPPER (i))
6186 exit(2);
6187 exit (0);
6189 _ACEOF
6190 rm -f conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192 (eval $ac_link) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6202 else
6203 echo "$as_me: program exited with status $ac_status" >&5
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6207 ( exit $ac_status )
6208 ac_cv_header_stdc=no
6210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6214 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6215 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6216 if test $ac_cv_header_stdc = yes; then
6218 cat >>confdefs.h <<\_ACEOF
6219 #define STDC_HEADERS 1
6220 _ACEOF
6224 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6225 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6226 if test "${ac_cv_header_time+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #include <sys/types.h>
6236 #include <sys/time.h>
6237 #include <time.h>
6240 main ()
6242 if ((struct tm *) 0)
6243 return 0;
6245 return 0;
6247 _ACEOF
6248 rm -f conftest.$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250 (eval $ac_compile) 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } &&
6257 { ac_try='test -z "$ac_c_werror_flag"
6258 || test ! -s conftest.err'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest.$ac_objext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 (eval $ac_try) 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 ac_cv_header_time=yes
6271 else
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 ac_cv_header_time=no
6277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6279 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6280 echo "${ECHO_T}$ac_cv_header_time" >&6
6281 if test $ac_cv_header_time = yes; then
6283 cat >>confdefs.h <<\_ACEOF
6284 #define TIME_WITH_SYS_TIME 1
6285 _ACEOF
6289 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6290 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6291 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294 cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h. */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6300 $ac_includes_default
6302 main ()
6304 #ifndef sys_siglist
6305 char *p = (char *) sys_siglist;
6306 #endif
6309 return 0;
6311 _ACEOF
6312 rm -f conftest.$ac_objext
6313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6314 (eval $ac_compile) 2>conftest.er1
6315 ac_status=$?
6316 grep -v '^ *+' conftest.er1 >conftest.err
6317 rm -f conftest.er1
6318 cat conftest.err >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } &&
6321 { ac_try='test -z "$ac_c_werror_flag"
6322 || test ! -s conftest.err'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; } &&
6328 { ac_try='test -s conftest.$ac_objext'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 (eval $ac_try) 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; }; then
6334 ac_cv_have_decl_sys_siglist=yes
6335 else
6336 echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.$ac_ext >&5
6339 ac_cv_have_decl_sys_siglist=no
6341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6343 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6344 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6345 if test $ac_cv_have_decl_sys_siglist = yes; then
6347 cat >>confdefs.h <<_ACEOF
6348 #define HAVE_DECL_SYS_SIGLIST 1
6349 _ACEOF
6352 else
6353 cat >>confdefs.h <<_ACEOF
6354 #define HAVE_DECL_SYS_SIGLIST 0
6355 _ACEOF
6361 if test $ac_cv_have_decl_sys_siglist != yes; then
6362 # For Tru64, at least:
6363 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6364 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6365 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 else
6368 cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h. */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 $ac_includes_default
6376 main ()
6378 #ifndef __sys_siglist
6379 char *p = (char *) __sys_siglist;
6380 #endif
6383 return 0;
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388 (eval $ac_compile) 2>conftest.er1
6389 ac_status=$?
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try='test -z "$ac_c_werror_flag"
6396 || test ! -s conftest.err'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_cv_have_decl___sys_siglist=yes
6409 else
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6413 ac_cv_have_decl___sys_siglist=no
6415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6417 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6418 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6419 if test $ac_cv_have_decl___sys_siglist = yes; then
6421 cat >>confdefs.h <<_ACEOF
6422 #define HAVE_DECL___SYS_SIGLIST 1
6423 _ACEOF
6426 else
6427 cat >>confdefs.h <<_ACEOF
6428 #define HAVE_DECL___SYS_SIGLIST 0
6429 _ACEOF
6435 if test $ac_cv_have_decl___sys_siglist = yes; then
6437 cat >>confdefs.h <<\_ACEOF
6438 #define sys_siglist __sys_siglist
6439 _ACEOF
6443 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6444 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6445 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448 cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h. */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6454 #include <sys/types.h>
6455 #include <sys/wait.h>
6456 #ifndef WEXITSTATUS
6457 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6458 #endif
6459 #ifndef WIFEXITED
6460 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6461 #endif
6464 main ()
6466 int s;
6467 wait (&s);
6468 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6470 return 0;
6472 _ACEOF
6473 rm -f conftest.$ac_objext
6474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6475 (eval $ac_compile) 2>conftest.er1
6476 ac_status=$?
6477 grep -v '^ *+' conftest.er1 >conftest.err
6478 rm -f conftest.er1
6479 cat conftest.err >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } &&
6482 { ac_try='test -z "$ac_c_werror_flag"
6483 || test ! -s conftest.err'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 (eval $ac_try) 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; } &&
6489 { ac_try='test -s conftest.$ac_objext'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 (eval $ac_try) 2>&5
6492 ac_status=$?
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; }; then
6495 ac_cv_header_sys_wait_h=yes
6496 else
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6500 ac_cv_header_sys_wait_h=no
6502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6504 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6505 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6506 if test $ac_cv_header_sys_wait_h = yes; then
6508 cat >>confdefs.h <<\_ACEOF
6509 #define HAVE_SYS_WAIT_H 1
6510 _ACEOF
6515 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6516 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6517 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 #ifdef TIME_WITH_SYS_TIME
6527 #include <sys/time.h>
6528 #include <time.h>
6529 #else
6530 #ifdef HAVE_SYS_TIME_H
6531 #include <sys/time.h>
6532 #else
6533 #include <time.h>
6534 #endif
6535 #endif
6536 #ifdef HAVE_UTIME_H
6537 #include <utime.h>
6538 #endif
6540 main ()
6542 static struct utimbuf x; x.actime = x.modtime;
6544 return 0;
6546 _ACEOF
6547 rm -f conftest.$ac_objext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6549 (eval $ac_compile) 2>conftest.er1
6550 ac_status=$?
6551 grep -v '^ *+' conftest.er1 >conftest.err
6552 rm -f conftest.er1
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try='test -z "$ac_c_werror_flag"
6557 || test ! -s conftest.err'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 (eval $ac_try) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest.$ac_objext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 emacs_cv_struct_utimbuf=yes
6570 else
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 emacs_cv_struct_utimbuf=no
6576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6578 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6579 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6580 if test $emacs_cv_struct_utimbuf = yes; then
6582 cat >>confdefs.h <<\_ACEOF
6583 #define HAVE_STRUCT_UTIMBUF 1
6584 _ACEOF
6588 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6589 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6590 if test "${ac_cv_type_signal+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593 cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h. */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6599 #include <sys/types.h>
6600 #include <signal.h>
6601 #ifdef signal
6602 # undef signal
6603 #endif
6604 #ifdef __cplusplus
6605 extern "C" void (*signal (int, void (*)(int)))(int);
6606 #else
6607 void (*signal ()) ();
6608 #endif
6611 main ()
6613 int i;
6615 return 0;
6617 _ACEOF
6618 rm -f conftest.$ac_objext
6619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6620 (eval $ac_compile) 2>conftest.er1
6621 ac_status=$?
6622 grep -v '^ *+' conftest.er1 >conftest.err
6623 rm -f conftest.er1
6624 cat conftest.err >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 { ac_try='test -z "$ac_c_werror_flag"
6628 || test ! -s conftest.err'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; } &&
6634 { ac_try='test -s conftest.$ac_objext'
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_type_signal=void
6641 else
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6645 ac_cv_type_signal=int
6647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6649 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6650 echo "${ECHO_T}$ac_cv_type_signal" >&6
6652 cat >>confdefs.h <<_ACEOF
6653 #define RETSIGTYPE $ac_cv_type_signal
6654 _ACEOF
6658 echo "$as_me:$LINENO: checking for speed_t" >&5
6659 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6660 if test "${emacs_cv_speed_t+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663 cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h. */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669 #include <termios.h>
6671 main ()
6673 speed_t x = 1;
6675 return 0;
6677 _ACEOF
6678 rm -f conftest.$ac_objext
6679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6680 (eval $ac_compile) 2>conftest.er1
6681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
6687 { ac_try='test -z "$ac_c_werror_flag"
6688 || test ! -s conftest.err'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 (eval $ac_try) 2>&5
6691 ac_status=$?
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; } &&
6694 { ac_try='test -s conftest.$ac_objext'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 (eval $ac_try) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }; then
6700 emacs_cv_speed_t=yes
6701 else
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6705 emacs_cv_speed_t=no
6707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6709 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6710 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6711 if test $emacs_cv_speed_t = yes; then
6713 cat >>confdefs.h <<\_ACEOF
6714 #define HAVE_SPEED_T 1
6715 _ACEOF
6719 echo "$as_me:$LINENO: checking for struct timeval" >&5
6720 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6721 if test "${emacs_cv_struct_timeval+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724 cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h. */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6730 #ifdef TIME_WITH_SYS_TIME
6731 #include <sys/time.h>
6732 #include <time.h>
6733 #else
6734 #ifdef HAVE_SYS_TIME_H
6735 #include <sys/time.h>
6736 #else
6737 #include <time.h>
6738 #endif
6739 #endif
6741 main ()
6743 static struct timeval x; x.tv_sec = x.tv_usec;
6745 return 0;
6747 _ACEOF
6748 rm -f conftest.$ac_objext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6750 (eval $ac_compile) 2>conftest.er1
6751 ac_status=$?
6752 grep -v '^ *+' conftest.er1 >conftest.err
6753 rm -f conftest.er1
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -z "$ac_c_werror_flag"
6758 || test ! -s conftest.err'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; } &&
6764 { ac_try='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 emacs_cv_struct_timeval=yes
6771 else
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6775 emacs_cv_struct_timeval=no
6777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6779 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6780 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6781 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6782 if test $emacs_cv_struct_timeval = yes; then
6784 cat >>confdefs.h <<\_ACEOF
6785 #define HAVE_TIMEVAL 1
6786 _ACEOF
6790 echo "$as_me:$LINENO: checking for struct exception" >&5
6791 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6792 if test "${emacs_cv_struct_exception+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 #include <math.h>
6803 main ()
6805 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6807 return 0;
6809 _ACEOF
6810 rm -f conftest.$ac_objext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>conftest.er1
6813 ac_status=$?
6814 grep -v '^ *+' conftest.er1 >conftest.err
6815 rm -f conftest.er1
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } &&
6819 { ac_try='test -z "$ac_c_werror_flag"
6820 || test ! -s conftest.err'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; } &&
6826 { ac_try='test -s conftest.$ac_objext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 emacs_cv_struct_exception=yes
6833 else
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6837 emacs_cv_struct_exception=no
6839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6841 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6842 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6843 HAVE_EXCEPTION=$emacs_cv_struct_exception
6844 if test $emacs_cv_struct_exception != yes; then
6846 cat >>confdefs.h <<\_ACEOF
6847 #define NO_MATHERR 1
6848 _ACEOF
6853 for ac_header in sys/socket.h
6855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6857 echo "$as_me:$LINENO: checking for $ac_header" >&5
6858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6864 else
6865 # Is the header compilable?
6866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 $ac_includes_default
6875 #include <$ac_header>
6876 _ACEOF
6877 rm -f conftest.$ac_objext
6878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6879 (eval $ac_compile) 2>conftest.er1
6880 ac_status=$?
6881 grep -v '^ *+' conftest.er1 >conftest.err
6882 rm -f conftest.er1
6883 cat conftest.err >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } &&
6886 { ac_try='test -z "$ac_c_werror_flag"
6887 || test ! -s conftest.err'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 (eval $ac_try) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; } &&
6893 { ac_try='test -s conftest.$ac_objext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 (eval $ac_try) 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 ac_header_compiler=yes
6900 else
6901 echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6904 ac_header_compiler=no
6906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6908 echo "${ECHO_T}$ac_header_compiler" >&6
6910 # Is the header present?
6911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6913 cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h. */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 #include <$ac_header>
6920 _ACEOF
6921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6923 ac_status=$?
6924 grep -v '^ *+' conftest.er1 >conftest.err
6925 rm -f conftest.er1
6926 cat conftest.err >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } >/dev/null; then
6929 if test -s conftest.err; then
6930 ac_cpp_err=$ac_c_preproc_warn_flag
6931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6932 else
6933 ac_cpp_err=
6935 else
6936 ac_cpp_err=yes
6938 if test -z "$ac_cpp_err"; then
6939 ac_header_preproc=yes
6940 else
6941 echo "$as_me: failed program was:" >&5
6942 sed 's/^/| /' conftest.$ac_ext >&5
6944 ac_header_preproc=no
6946 rm -f conftest.err conftest.$ac_ext
6947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6948 echo "${ECHO_T}$ac_header_preproc" >&6
6950 # So? What about this header?
6951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6952 yes:no: )
6953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6957 ac_header_preproc=yes
6959 no:yes:* )
6960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6973 cat <<\_ASBOX
6974 ## ------------------------------------------ ##
6975 ## Report this to the AC_PACKAGE_NAME lists. ##
6976 ## ------------------------------------------ ##
6977 _ASBOX
6979 sed "s/^/$as_me: WARNING: /" >&2
6981 esac
6982 echo "$as_me:$LINENO: checking for $ac_header" >&5
6983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 eval "$as_ac_Header=\$ac_header_preproc"
6989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6994 cat >>confdefs.h <<_ACEOF
6995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6996 _ACEOF
7000 done
7003 for ac_header in net/if.h
7005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7006 echo "$as_me:$LINENO: checking for $ac_header" >&5
7007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 else
7011 cat >conftest.$ac_ext <<_ACEOF
7012 /* confdefs.h. */
7013 _ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7017 $ac_includes_default
7018 #if HAVE_SYS_SOCKET_H
7019 #include <sys/socket.h>
7020 #endif
7022 #include <$ac_header>
7023 _ACEOF
7024 rm -f conftest.$ac_objext
7025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7026 (eval $ac_compile) 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
7033 { ac_try='test -z "$ac_c_werror_flag"
7034 || test ! -s conftest.err'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 (eval $ac_try) 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; } &&
7040 { ac_try='test -s conftest.$ac_objext'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 (eval $ac_try) 2>&5
7043 ac_status=$?
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; }; then
7046 eval "$as_ac_Header=yes"
7047 else
7048 echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7051 eval "$as_ac_Header=no"
7053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7058 cat >>confdefs.h <<_ACEOF
7059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7060 _ACEOF
7064 done
7067 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7068 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7069 if test "${ac_cv_struct_tm+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072 cat >conftest.$ac_ext <<_ACEOF
7073 /* confdefs.h. */
7074 _ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h. */
7078 #include <sys/types.h>
7079 #include <time.h>
7082 main ()
7084 struct tm *tp; tp->tm_sec;
7086 return 0;
7088 _ACEOF
7089 rm -f conftest.$ac_objext
7090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7091 (eval $ac_compile) 2>conftest.er1
7092 ac_status=$?
7093 grep -v '^ *+' conftest.er1 >conftest.err
7094 rm -f conftest.er1
7095 cat conftest.err >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } &&
7098 { ac_try='test -z "$ac_c_werror_flag"
7099 || test ! -s conftest.err'
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101 (eval $ac_try) 2>&5
7102 ac_status=$?
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; } &&
7105 { ac_try='test -s conftest.$ac_objext'
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107 (eval $ac_try) 2>&5
7108 ac_status=$?
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; }; then
7111 ac_cv_struct_tm=time.h
7112 else
7113 echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7116 ac_cv_struct_tm=sys/time.h
7118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7120 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7121 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7122 if test $ac_cv_struct_tm = sys/time.h; then
7124 cat >>confdefs.h <<\_ACEOF
7125 #define TM_IN_SYS_TIME 1
7126 _ACEOF
7130 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7131 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7132 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135 cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h. */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7141 #include <sys/types.h>
7142 #include <$ac_cv_struct_tm>
7146 main ()
7148 static struct tm ac_aggr;
7149 if (ac_aggr.tm_zone)
7150 return 0;
7152 return 0;
7154 _ACEOF
7155 rm -f conftest.$ac_objext
7156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7157 (eval $ac_compile) 2>conftest.er1
7158 ac_status=$?
7159 grep -v '^ *+' conftest.er1 >conftest.err
7160 rm -f conftest.er1
7161 cat conftest.err >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } &&
7164 { ac_try='test -z "$ac_c_werror_flag"
7165 || test ! -s conftest.err'
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 (eval $ac_try) 2>&5
7168 ac_status=$?
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; } &&
7171 { ac_try='test -s conftest.$ac_objext'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 (eval $ac_try) 2>&5
7174 ac_status=$?
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
7177 ac_cv_member_struct_tm_tm_zone=yes
7178 else
7179 echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7182 cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h. */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7188 #include <sys/types.h>
7189 #include <$ac_cv_struct_tm>
7193 main ()
7195 static struct tm ac_aggr;
7196 if (sizeof ac_aggr.tm_zone)
7197 return 0;
7199 return 0;
7201 _ACEOF
7202 rm -f conftest.$ac_objext
7203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7204 (eval $ac_compile) 2>conftest.er1
7205 ac_status=$?
7206 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -f conftest.er1
7208 cat conftest.err >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } &&
7211 { ac_try='test -z "$ac_c_werror_flag"
7212 || test ! -s conftest.err'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 (eval $ac_try) 2>&5
7215 ac_status=$?
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; } &&
7218 { ac_try='test -s conftest.$ac_objext'
7219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220 (eval $ac_try) 2>&5
7221 ac_status=$?
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; }; then
7224 ac_cv_member_struct_tm_tm_zone=yes
7225 else
7226 echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.$ac_ext >&5
7229 ac_cv_member_struct_tm_tm_zone=no
7231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7235 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7236 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7237 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7239 cat >>confdefs.h <<_ACEOF
7240 #define HAVE_STRUCT_TM_TM_ZONE 1
7241 _ACEOF
7246 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7248 cat >>confdefs.h <<\_ACEOF
7249 #define HAVE_TM_ZONE 1
7250 _ACEOF
7252 else
7253 echo "$as_me:$LINENO: checking for tzname" >&5
7254 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7255 if test "${ac_cv_var_tzname+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258 cat >conftest.$ac_ext <<_ACEOF
7259 /* confdefs.h. */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 #include <time.h>
7265 #ifndef tzname /* For SGI. */
7266 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7267 #endif
7270 main ()
7272 atoi(*tzname);
7274 return 0;
7276 _ACEOF
7277 rm -f conftest.$ac_objext conftest$ac_exeext
7278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7279 (eval $ac_link) 2>conftest.er1
7280 ac_status=$?
7281 grep -v '^ *+' conftest.er1 >conftest.err
7282 rm -f conftest.er1
7283 cat conftest.err >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } &&
7286 { ac_try='test -z "$ac_c_werror_flag"
7287 || test ! -s conftest.err'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 (eval $ac_try) 2>&5
7290 ac_status=$?
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; } &&
7293 { ac_try='test -s conftest$ac_exeext'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; }; then
7299 ac_cv_var_tzname=yes
7300 else
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7304 ac_cv_var_tzname=no
7306 rm -f conftest.err conftest.$ac_objext \
7307 conftest$ac_exeext conftest.$ac_ext
7309 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7310 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7311 if test $ac_cv_var_tzname = yes; then
7313 cat >>confdefs.h <<\_ACEOF
7314 #define HAVE_TZNAME 1
7315 _ACEOF
7320 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7321 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7322 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325 cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h. */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7331 #include <time.h>
7334 main ()
7336 static struct tm ac_aggr;
7337 if (ac_aggr.tm_gmtoff)
7338 return 0;
7340 return 0;
7342 _ACEOF
7343 rm -f conftest.$ac_objext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345 (eval $ac_compile) 2>conftest.er1
7346 ac_status=$?
7347 grep -v '^ *+' conftest.er1 >conftest.err
7348 rm -f conftest.er1
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } &&
7352 { ac_try='test -z "$ac_c_werror_flag"
7353 || test ! -s conftest.err'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 (eval $ac_try) 2>&5
7356 ac_status=$?
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; } &&
7359 { ac_try='test -s conftest.$ac_objext'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_cv_member_struct_tm_tm_gmtoff=yes
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 cat >conftest.$ac_ext <<_ACEOF
7371 /* confdefs.h. */
7372 _ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7376 #include <time.h>
7379 main ()
7381 static struct tm ac_aggr;
7382 if (sizeof ac_aggr.tm_gmtoff)
7383 return 0;
7385 return 0;
7387 _ACEOF
7388 rm -f conftest.$ac_objext
7389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7390 (eval $ac_compile) 2>conftest.er1
7391 ac_status=$?
7392 grep -v '^ *+' conftest.er1 >conftest.err
7393 rm -f conftest.er1
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } &&
7397 { ac_try='test -z "$ac_c_werror_flag"
7398 || test ! -s conftest.err'
7399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400 (eval $ac_try) 2>&5
7401 ac_status=$?
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); }; } &&
7404 { ac_try='test -s conftest.$ac_objext'
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 (eval $ac_try) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; }; then
7410 ac_cv_member_struct_tm_tm_gmtoff=yes
7411 else
7412 echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7415 ac_cv_member_struct_tm_tm_gmtoff=no
7417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7421 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7422 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7423 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7425 cat >>confdefs.h <<\_ACEOF
7426 #define HAVE_TM_GMTOFF 1
7427 _ACEOF
7431 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7432 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7433 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436 cat >conftest.$ac_ext <<_ACEOF
7437 /* confdefs.h. */
7438 _ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h. */
7442 $ac_includes_default
7443 #if HAVE_SYS_SOCKET_H
7444 #include <sys/socket.h>
7445 #endif
7446 #if HAVE_NET_IF_H
7447 #include <net/if.h>
7448 #endif
7451 main ()
7453 static struct ifreq ac_aggr;
7454 if (ac_aggr.ifr_flags)
7455 return 0;
7457 return 0;
7459 _ACEOF
7460 rm -f conftest.$ac_objext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7462 (eval $ac_compile) 2>conftest.er1
7463 ac_status=$?
7464 grep -v '^ *+' conftest.er1 >conftest.err
7465 rm -f conftest.er1
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } &&
7469 { ac_try='test -z "$ac_c_werror_flag"
7470 || test ! -s conftest.err'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; } &&
7476 { ac_try='test -s conftest.$ac_objext'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 ac_cv_member_struct_ifreq_ifr_flags=yes
7483 else
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7487 cat >conftest.$ac_ext <<_ACEOF
7488 /* confdefs.h. */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7493 $ac_includes_default
7494 #if HAVE_SYS_SOCKET_H
7495 #include <sys/socket.h>
7496 #endif
7497 #if HAVE_NET_IF_H
7498 #include <net/if.h>
7499 #endif
7502 main ()
7504 static struct ifreq ac_aggr;
7505 if (sizeof ac_aggr.ifr_flags)
7506 return 0;
7508 return 0;
7510 _ACEOF
7511 rm -f conftest.$ac_objext
7512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7513 (eval $ac_compile) 2>conftest.er1
7514 ac_status=$?
7515 grep -v '^ *+' conftest.er1 >conftest.err
7516 rm -f conftest.er1
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } &&
7520 { ac_try='test -z "$ac_c_werror_flag"
7521 || test ! -s conftest.err'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 (eval $ac_try) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; } &&
7527 { ac_try='test -s conftest.$ac_objext'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 (eval $ac_try) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7533 ac_cv_member_struct_ifreq_ifr_flags=yes
7534 else
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7538 ac_cv_member_struct_ifreq_ifr_flags=no
7540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7544 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7545 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7546 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7548 cat >>confdefs.h <<_ACEOF
7549 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7550 _ACEOF
7554 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7555 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7556 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559 cat >conftest.$ac_ext <<_ACEOF
7560 /* confdefs.h. */
7561 _ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h. */
7565 $ac_includes_default
7566 #if HAVE_SYS_SOCKET_H
7567 #include <sys/socket.h>
7568 #endif
7569 #if HAVE_NET_IF_H
7570 #include <net/if.h>
7571 #endif
7574 main ()
7576 static struct ifreq ac_aggr;
7577 if (ac_aggr.ifr_hwaddr)
7578 return 0;
7580 return 0;
7582 _ACEOF
7583 rm -f conftest.$ac_objext
7584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7585 (eval $ac_compile) 2>conftest.er1
7586 ac_status=$?
7587 grep -v '^ *+' conftest.er1 >conftest.err
7588 rm -f conftest.er1
7589 cat conftest.err >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } &&
7592 { ac_try='test -z "$ac_c_werror_flag"
7593 || test ! -s conftest.err'
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 (eval $ac_try) 2>&5
7596 ac_status=$?
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; } &&
7599 { ac_try='test -s conftest.$ac_objext'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 (eval $ac_try) 2>&5
7602 ac_status=$?
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
7605 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7606 else
7607 echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h. */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 $ac_includes_default
7617 #if HAVE_SYS_SOCKET_H
7618 #include <sys/socket.h>
7619 #endif
7620 #if HAVE_NET_IF_H
7621 #include <net/if.h>
7622 #endif
7625 main ()
7627 static struct ifreq ac_aggr;
7628 if (sizeof ac_aggr.ifr_hwaddr)
7629 return 0;
7631 return 0;
7633 _ACEOF
7634 rm -f conftest.$ac_objext
7635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7636 (eval $ac_compile) 2>conftest.er1
7637 ac_status=$?
7638 grep -v '^ *+' conftest.er1 >conftest.err
7639 rm -f conftest.er1
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } &&
7643 { ac_try='test -z "$ac_c_werror_flag"
7644 || test ! -s conftest.err'
7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 (eval $ac_try) 2>&5
7647 ac_status=$?
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; } &&
7650 { ac_try='test -s conftest.$ac_objext'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 (eval $ac_try) 2>&5
7653 ac_status=$?
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; }; then
7656 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7657 else
7658 echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7661 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7667 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7668 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7669 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7671 cat >>confdefs.h <<_ACEOF
7672 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7673 _ACEOF
7677 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7678 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7679 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682 cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h. */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 $ac_includes_default
7689 #if HAVE_SYS_SOCKET_H
7690 #include <sys/socket.h>
7691 #endif
7692 #if HAVE_NET_IF_H
7693 #include <net/if.h>
7694 #endif
7697 main ()
7699 static struct ifreq ac_aggr;
7700 if (ac_aggr.ifr_netmask)
7701 return 0;
7703 return 0;
7705 _ACEOF
7706 rm -f conftest.$ac_objext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7708 (eval $ac_compile) 2>conftest.er1
7709 ac_status=$?
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } &&
7715 { ac_try='test -z "$ac_c_werror_flag"
7716 || test ! -s conftest.err'
7717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 (eval $ac_try) 2>&5
7719 ac_status=$?
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; } &&
7722 { ac_try='test -s conftest.$ac_objext'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 (eval $ac_try) 2>&5
7725 ac_status=$?
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; }; then
7728 ac_cv_member_struct_ifreq_ifr_netmask=yes
7729 else
7730 echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7733 cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h. */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7739 $ac_includes_default
7740 #if HAVE_SYS_SOCKET_H
7741 #include <sys/socket.h>
7742 #endif
7743 #if HAVE_NET_IF_H
7744 #include <net/if.h>
7745 #endif
7748 main ()
7750 static struct ifreq ac_aggr;
7751 if (sizeof ac_aggr.ifr_netmask)
7752 return 0;
7754 return 0;
7756 _ACEOF
7757 rm -f conftest.$ac_objext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7759 (eval $ac_compile) 2>conftest.er1
7760 ac_status=$?
7761 grep -v '^ *+' conftest.er1 >conftest.err
7762 rm -f conftest.er1
7763 cat conftest.err >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
7766 { ac_try='test -z "$ac_c_werror_flag"
7767 || test ! -s conftest.err'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 (eval $ac_try) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; } &&
7773 { ac_try='test -s conftest.$ac_objext'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 (eval $ac_try) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7779 ac_cv_member_struct_ifreq_ifr_netmask=yes
7780 else
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7784 ac_cv_member_struct_ifreq_ifr_netmask=no
7786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7790 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7791 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7792 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7794 cat >>confdefs.h <<_ACEOF
7795 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7796 _ACEOF
7800 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7801 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7802 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805 cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h. */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 $ac_includes_default
7812 #if HAVE_SYS_SOCKET_H
7813 #include <sys/socket.h>
7814 #endif
7815 #if HAVE_NET_IF_H
7816 #include <net/if.h>
7817 #endif
7820 main ()
7822 static struct ifreq ac_aggr;
7823 if (ac_aggr.ifr_broadaddr)
7824 return 0;
7826 return 0;
7828 _ACEOF
7829 rm -f conftest.$ac_objext
7830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7831 (eval $ac_compile) 2>conftest.er1
7832 ac_status=$?
7833 grep -v '^ *+' conftest.er1 >conftest.err
7834 rm -f conftest.er1
7835 cat conftest.err >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } &&
7838 { ac_try='test -z "$ac_c_werror_flag"
7839 || test ! -s conftest.err'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 (eval $ac_try) 2>&5
7842 ac_status=$?
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; } &&
7845 { ac_try='test -s conftest.$ac_objext'
7846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 (eval $ac_try) 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; }; then
7851 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7852 else
7853 echo "$as_me: failed program was:" >&5
7854 sed 's/^/| /' conftest.$ac_ext >&5
7856 cat >conftest.$ac_ext <<_ACEOF
7857 /* confdefs.h. */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862 $ac_includes_default
7863 #if HAVE_SYS_SOCKET_H
7864 #include <sys/socket.h>
7865 #endif
7866 #if HAVE_NET_IF_H
7867 #include <net/if.h>
7868 #endif
7871 main ()
7873 static struct ifreq ac_aggr;
7874 if (sizeof ac_aggr.ifr_broadaddr)
7875 return 0;
7877 return 0;
7879 _ACEOF
7880 rm -f conftest.$ac_objext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7882 (eval $ac_compile) 2>conftest.er1
7883 ac_status=$?
7884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try='test -z "$ac_c_werror_flag"
7890 || test ! -s conftest.err'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; } &&
7896 { ac_try='test -s conftest.$ac_objext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7903 else
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7913 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7914 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7915 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7917 cat >>confdefs.h <<_ACEOF
7918 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7919 _ACEOF
7923 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7924 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7925 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928 cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h. */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 $ac_includes_default
7935 #if HAVE_SYS_SOCKET_H
7936 #include <sys/socket.h>
7937 #endif
7938 #if HAVE_NET_IF_H
7939 #include <net/if.h>
7940 #endif
7943 main ()
7945 static struct ifreq ac_aggr;
7946 if (ac_aggr.ifr_addr)
7947 return 0;
7949 return 0;
7951 _ACEOF
7952 rm -f conftest.$ac_objext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954 (eval $ac_compile) 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try='test -z "$ac_c_werror_flag"
7962 || test ! -s conftest.err'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest.$ac_objext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_cv_member_struct_ifreq_ifr_addr=yes
7975 else
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7979 cat >conftest.$ac_ext <<_ACEOF
7980 /* confdefs.h. */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7985 $ac_includes_default
7986 #if HAVE_SYS_SOCKET_H
7987 #include <sys/socket.h>
7988 #endif
7989 #if HAVE_NET_IF_H
7990 #include <net/if.h>
7991 #endif
7994 main ()
7996 static struct ifreq ac_aggr;
7997 if (sizeof ac_aggr.ifr_addr)
7998 return 0;
8000 return 0;
8002 _ACEOF
8003 rm -f conftest.$ac_objext
8004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8005 (eval $ac_compile) 2>conftest.er1
8006 ac_status=$?
8007 grep -v '^ *+' conftest.er1 >conftest.err
8008 rm -f conftest.er1
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } &&
8012 { ac_try='test -z "$ac_c_werror_flag"
8013 || test ! -s conftest.err'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 (eval $ac_try) 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; } &&
8019 { ac_try='test -s conftest.$ac_objext'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 (eval $ac_try) 2>&5
8022 ac_status=$?
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; }; then
8025 ac_cv_member_struct_ifreq_ifr_addr=yes
8026 else
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8030 ac_cv_member_struct_ifreq_ifr_addr=no
8032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8036 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8037 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
8038 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8040 cat >>confdefs.h <<_ACEOF
8041 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8042 _ACEOF
8049 echo "$as_me:$LINENO: checking for function prototypes" >&5
8050 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8051 if test "$ac_cv_prog_cc_stdc" != no; then
8052 echo "$as_me:$LINENO: result: yes" >&5
8053 echo "${ECHO_T}yes" >&6
8055 cat >>confdefs.h <<\_ACEOF
8056 #define PROTOTYPES 1
8057 _ACEOF
8060 cat >>confdefs.h <<\_ACEOF
8061 #define __PROTOTYPES 1
8062 _ACEOF
8064 else
8065 echo "$as_me:$LINENO: result: no" >&5
8066 echo "${ECHO_T}no" >&6
8069 echo "$as_me:$LINENO: checking for working volatile" >&5
8070 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8071 if test "${ac_cv_c_volatile+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074 cat >conftest.$ac_ext <<_ACEOF
8075 /* confdefs.h. */
8076 _ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8082 main ()
8085 volatile int x;
8086 int * volatile y;
8088 return 0;
8090 _ACEOF
8091 rm -f conftest.$ac_objext
8092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8093 (eval $ac_compile) 2>conftest.er1
8094 ac_status=$?
8095 grep -v '^ *+' conftest.er1 >conftest.err
8096 rm -f conftest.er1
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } &&
8100 { ac_try='test -z "$ac_c_werror_flag"
8101 || test ! -s conftest.err'
8102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 (eval $ac_try) 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; } &&
8107 { ac_try='test -s conftest.$ac_objext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 (eval $ac_try) 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 ac_cv_c_volatile=yes
8114 else
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8118 ac_cv_c_volatile=no
8120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8122 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8123 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8124 if test $ac_cv_c_volatile = no; then
8126 cat >>confdefs.h <<\_ACEOF
8127 #define volatile
8128 _ACEOF
8132 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8133 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8134 if test "${ac_cv_c_const+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 else
8137 cat >conftest.$ac_ext <<_ACEOF
8138 /* confdefs.h. */
8139 _ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8145 main ()
8147 /* FIXME: Include the comments suggested by Paul. */
8148 #ifndef __cplusplus
8149 /* Ultrix mips cc rejects this. */
8150 typedef int charset[2];
8151 const charset x;
8152 /* SunOS 4.1.1 cc rejects this. */
8153 char const *const *ccp;
8154 char **p;
8155 /* NEC SVR4.0.2 mips cc rejects this. */
8156 struct point {int x, y;};
8157 static struct point const zero = {0,0};
8158 /* AIX XL C 1.02.0.0 rejects this.
8159 It does not let you subtract one const X* pointer from another in
8160 an arm of an if-expression whose if-part is not a constant
8161 expression */
8162 const char *g = "string";
8163 ccp = &g + (g ? g-g : 0);
8164 /* HPUX 7.0 cc rejects these. */
8165 ++ccp;
8166 p = (char**) ccp;
8167 ccp = (char const *const *) p;
8168 { /* SCO 3.2v4 cc rejects this. */
8169 char *t;
8170 char const *s = 0 ? (char *) 0 : (char const *) 0;
8172 *t++ = 0;
8174 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8175 int x[] = {25, 17};
8176 const int *foo = &x[0];
8177 ++foo;
8179 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8180 typedef const int *iptr;
8181 iptr p = 0;
8182 ++p;
8184 { /* AIX XL C 1.02.0.0 rejects this saying
8185 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8186 struct s { int j; const int *ap[3]; };
8187 struct s *b; b->j = 5;
8189 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8190 const int foo = 10;
8192 #endif
8195 return 0;
8197 _ACEOF
8198 rm -f conftest.$ac_objext
8199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8200 (eval $ac_compile) 2>conftest.er1
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } &&
8207 { ac_try='test -z "$ac_c_werror_flag"
8208 || test ! -s conftest.err'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210 (eval $ac_try) 2>&5
8211 ac_status=$?
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; } &&
8214 { ac_try='test -s conftest.$ac_objext'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 (eval $ac_try) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 ac_cv_c_const=yes
8221 else
8222 echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8225 ac_cv_c_const=no
8227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8229 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8230 echo "${ECHO_T}$ac_cv_c_const" >&6
8231 if test $ac_cv_c_const = no; then
8233 cat >>confdefs.h <<\_ACEOF
8234 #define const
8235 _ACEOF
8239 echo "$as_me:$LINENO: checking for void * support" >&5
8240 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8241 if test "${emacs_cv_void_star+set}" = set; then
8242 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 else
8244 cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h. */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8252 main ()
8254 void * foo;
8256 return 0;
8258 _ACEOF
8259 rm -f conftest.$ac_objext
8260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8261 (eval $ac_compile) 2>conftest.er1
8262 ac_status=$?
8263 grep -v '^ *+' conftest.er1 >conftest.err
8264 rm -f conftest.er1
8265 cat conftest.err >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } &&
8268 { ac_try='test -z "$ac_c_werror_flag"
8269 || test ! -s conftest.err'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271 (eval $ac_try) 2>&5
8272 ac_status=$?
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; } &&
8275 { ac_try='test -s conftest.$ac_objext'
8276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277 (eval $ac_try) 2>&5
8278 ac_status=$?
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; }; then
8281 emacs_cv_void_star=yes
8282 else
8283 echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8286 emacs_cv_void_star=no
8288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8290 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8291 echo "${ECHO_T}$emacs_cv_void_star" >&6
8292 if test $emacs_cv_void_star = yes; then
8293 cat >>confdefs.h <<\_ACEOF
8294 #define POINTER_TYPE void
8295 _ACEOF
8297 else
8298 cat >>confdefs.h <<\_ACEOF
8299 #define POINTER_TYPE char
8300 _ACEOF
8308 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8309 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8310 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8311 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314 cat >conftest.make <<\_ACEOF
8315 all:
8316 @echo 'ac_maketemp="$(MAKE)"'
8317 _ACEOF
8318 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8319 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8320 if test -n "$ac_maketemp"; then
8321 eval ac_cv_prog_make_${ac_make}_set=yes
8322 else
8323 eval ac_cv_prog_make_${ac_make}_set=no
8325 rm -f conftest.make
8327 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8328 echo "$as_me:$LINENO: result: yes" >&5
8329 echo "${ECHO_T}yes" >&6
8330 SET_MAKE=
8331 else
8332 echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6
8334 SET_MAKE="MAKE=${MAKE-make}"
8338 echo "$as_me:$LINENO: checking for long file names" >&5
8339 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8340 if test "${ac_cv_sys_long_file_names+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343 ac_cv_sys_long_file_names=yes
8344 # Test for long file names in all the places we know might matter:
8345 # . the current directory, where building will happen
8346 # $prefix/lib where we will be installing things
8347 # $exec_prefix/lib likewise
8348 # eval it to expand exec_prefix.
8349 # $TMPDIR if set, where it might want to write temporary files
8350 # if $TMPDIR is not set:
8351 # /tmp where it might want to write temporary files
8352 # /var/tmp likewise
8353 # /usr/tmp likewise
8354 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8355 ac_tmpdirs=$TMPDIR
8356 else
8357 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8359 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8360 test -d $ac_dir || continue
8361 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8362 ac_xdir=$ac_dir/cf$$
8363 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8364 ac_tf1=$ac_xdir/conftest9012345
8365 ac_tf2=$ac_xdir/conftest9012346
8366 (echo 1 >$ac_tf1) 2>/dev/null
8367 (echo 2 >$ac_tf2) 2>/dev/null
8368 ac_val=`cat $ac_tf1 2>/dev/null`
8369 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8370 ac_cv_sys_long_file_names=no
8371 rm -rf $ac_xdir 2>/dev/null
8372 break
8374 rm -rf $ac_xdir 2>/dev/null
8375 done
8377 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8378 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8379 if test $ac_cv_sys_long_file_names = yes; then
8381 cat >>confdefs.h <<\_ACEOF
8382 #define HAVE_LONG_FILE_NAMES 1
8383 _ACEOF
8388 #### Choose a window system.
8390 echo "$as_me:$LINENO: checking for X" >&5
8391 echo $ECHO_N "checking for X... $ECHO_C" >&6
8393 ac_path_x_has_been_run=yes
8395 # Check whether --with-x or --without-x was given.
8396 if test "${with_x+set}" = set; then
8397 withval="$with_x"
8400 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8401 if test "x$with_x" = xno; then
8402 # The user explicitly disabled X.
8403 have_x=disabled
8404 else
8405 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8406 # Both variables are already set.
8407 have_x=yes
8408 else
8409 if test "${ac_cv_have_x+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 else
8412 # One or both of the vars are not set, and there is no cached value.
8413 ac_x_includes=no ac_x_libraries=no
8414 rm -fr conftest.dir
8415 if mkdir conftest.dir; then
8416 cd conftest.dir
8417 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8418 cat >Imakefile <<'_ACEOF'
8419 acfindx:
8420 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8421 _ACEOF
8422 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8423 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8424 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8425 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8426 for ac_extension in a so sl; do
8427 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8428 test -f $ac_im_libdir/libX11.$ac_extension; then
8429 ac_im_usrlibdir=$ac_im_libdir; break
8431 done
8432 # Screen out bogus values from the imake configuration. They are
8433 # bogus both because they are the default anyway, and because
8434 # using them would break gcc on systems where it needs fixed includes.
8435 case $ac_im_incroot in
8436 /usr/include) ;;
8437 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8438 esac
8439 case $ac_im_usrlibdir in
8440 /usr/lib | /lib) ;;
8441 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8442 esac
8444 cd ..
8445 rm -fr conftest.dir
8448 # Standard set of common directories for X headers.
8449 # Check X11 before X11Rn because it is often a symlink to the current release.
8450 ac_x_header_dirs='
8451 /usr/X11/include
8452 /usr/X11R6/include
8453 /usr/X11R5/include
8454 /usr/X11R4/include
8456 /usr/include/X11
8457 /usr/include/X11R6
8458 /usr/include/X11R5
8459 /usr/include/X11R4
8461 /usr/local/X11/include
8462 /usr/local/X11R6/include
8463 /usr/local/X11R5/include
8464 /usr/local/X11R4/include
8466 /usr/local/include/X11
8467 /usr/local/include/X11R6
8468 /usr/local/include/X11R5
8469 /usr/local/include/X11R4
8471 /usr/X386/include
8472 /usr/x386/include
8473 /usr/XFree86/include/X11
8475 /usr/include
8476 /usr/local/include
8477 /usr/unsupported/include
8478 /usr/athena/include
8479 /usr/local/x11r5/include
8480 /usr/lpp/Xamples/include
8482 /usr/openwin/include
8483 /usr/openwin/share/include'
8485 if test "$ac_x_includes" = no; then
8486 # Guess where to find include files, by looking for a specified header file.
8487 # First, try using that file with no special directory specified.
8488 cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h. */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8494 #include <X11/Intrinsic.h>
8495 _ACEOF
8496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8498 ac_status=$?
8499 grep -v '^ *+' conftest.er1 >conftest.err
8500 rm -f conftest.er1
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } >/dev/null; then
8504 if test -s conftest.err; then
8505 ac_cpp_err=$ac_c_preproc_warn_flag
8506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8507 else
8508 ac_cpp_err=
8510 else
8511 ac_cpp_err=yes
8513 if test -z "$ac_cpp_err"; then
8514 # We can compile using X headers with no special include directory.
8515 ac_x_includes=
8516 else
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8520 for ac_dir in $ac_x_header_dirs; do
8521 if test -r "$ac_dir/X11/Intrinsic.h"; then
8522 ac_x_includes=$ac_dir
8523 break
8525 done
8527 rm -f conftest.err conftest.$ac_ext
8528 fi # $ac_x_includes = no
8530 if test "$ac_x_libraries" = no; then
8531 # Check for the libraries.
8532 # See if we find them without any special options.
8533 # Don't add to $LIBS permanently.
8534 ac_save_LIBS=$LIBS
8535 LIBS="-lXt $LIBS"
8536 cat >conftest.$ac_ext <<_ACEOF
8537 /* confdefs.h. */
8538 _ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8542 #include <X11/Intrinsic.h>
8544 main ()
8546 XtMalloc (0)
8548 return 0;
8550 _ACEOF
8551 rm -f conftest.$ac_objext conftest$ac_exeext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8553 (eval $ac_link) 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_c_werror_flag"
8561 || test ! -s conftest.err'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 (eval $ac_try) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try='test -s conftest$ac_exeext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 (eval $ac_try) 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 LIBS=$ac_save_LIBS
8574 # We can link X programs with no special library path.
8575 ac_x_libraries=
8576 else
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8580 LIBS=$ac_save_LIBS
8581 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8583 # Don't even attempt the hair of trying to link an X program!
8584 for ac_extension in a so sl; do
8585 if test -r $ac_dir/libXt.$ac_extension; then
8586 ac_x_libraries=$ac_dir
8587 break 2
8589 done
8590 done
8592 rm -f conftest.err conftest.$ac_objext \
8593 conftest$ac_exeext conftest.$ac_ext
8594 fi # $ac_x_libraries = no
8596 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8597 # Didn't find X anywhere. Cache the known absence of X.
8598 ac_cv_have_x="have_x=no"
8599 else
8600 # Record where we found X for the cache.
8601 ac_cv_have_x="have_x=yes \
8602 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8607 eval "$ac_cv_have_x"
8608 fi # $with_x != no
8610 if test "$have_x" != yes; then
8611 echo "$as_me:$LINENO: result: $have_x" >&5
8612 echo "${ECHO_T}$have_x" >&6
8613 no_x=yes
8614 else
8615 # If each of the values was on the command line, it overrides each guess.
8616 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8617 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8618 # Update the cache value to reflect the command line values.
8619 ac_cv_have_x="have_x=yes \
8620 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8621 # It might be that x_includes is empty (headers are found in the
8622 # standard search path. Then output the corresponding message
8623 ac_out_x_includes=$x_includes
8624 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8625 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8626 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8629 if test "$no_x" = yes; then
8630 window_system=none
8631 else
8632 window_system=x11
8635 if test "${x_libraries}" != NONE; then
8636 if test -n "${x_libraries}"; then
8637 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8638 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8640 x_default_search_path=""
8641 x_search_path=${x_libraries}
8642 if test -z "${x_search_path}"; then
8643 x_search_path=/usr/lib
8645 for x_library in `echo ${x_search_path}: | \
8646 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8647 x_search_path="\
8648 ${x_library}/X11/%L/%T/%N%C%S:\
8649 ${x_library}/X11/%l/%T/%N%C%S:\
8650 ${x_library}/X11/%T/%N%C%S:\
8651 ${x_library}/X11/%L/%T/%N%S:\
8652 ${x_library}/X11/%l/%T/%N%S:\
8653 ${x_library}/X11/%T/%N%S"
8654 if test x"${x_default_search_path}" = x; then
8655 x_default_search_path=${x_search_path}
8656 else
8657 x_default_search_path="${x_search_path}:${x_default_search_path}"
8659 done
8661 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8662 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8665 if test x"${x_includes}" = x; then
8666 bitmapdir=/usr/include/X11/bitmaps
8667 else
8668 # accumulate include directories that have X11 bitmap subdirectories
8669 bmd_acc="dummyval"
8670 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8671 if test -d "${bmd}/X11/bitmaps"; then
8672 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8674 if test -d "${bmd}/bitmaps"; then
8675 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8677 done
8678 if test ${bmd_acc} != "dummyval"; then
8679 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8683 HAVE_CARBON=no
8684 if test "${with_carbon}" != no; then
8685 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8686 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8687 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8688 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8692 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8693 else
8694 # Is the header compilable?
8695 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8696 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8697 cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h. */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 $ac_includes_default
8704 #include <Carbon/Carbon.h>
8705 _ACEOF
8706 rm -f conftest.$ac_objext
8707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8708 (eval $ac_compile) 2>conftest.er1
8709 ac_status=$?
8710 grep -v '^ *+' conftest.er1 >conftest.err
8711 rm -f conftest.er1
8712 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } &&
8715 { ac_try='test -z "$ac_c_werror_flag"
8716 || test ! -s conftest.err'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; } &&
8722 { ac_try='test -s conftest.$ac_objext'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 (eval $ac_try) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; }; then
8728 ac_header_compiler=yes
8729 else
8730 echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8733 ac_header_compiler=no
8735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8737 echo "${ECHO_T}$ac_header_compiler" >&6
8739 # Is the header present?
8740 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8741 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8742 cat >conftest.$ac_ext <<_ACEOF
8743 /* confdefs.h. */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8748 #include <Carbon/Carbon.h>
8749 _ACEOF
8750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8752 ac_status=$?
8753 grep -v '^ *+' conftest.er1 >conftest.err
8754 rm -f conftest.er1
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } >/dev/null; then
8758 if test -s conftest.err; then
8759 ac_cpp_err=$ac_c_preproc_warn_flag
8760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8761 else
8762 ac_cpp_err=
8764 else
8765 ac_cpp_err=yes
8767 if test -z "$ac_cpp_err"; then
8768 ac_header_preproc=yes
8769 else
8770 echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8773 ac_header_preproc=no
8775 rm -f conftest.err conftest.$ac_ext
8776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8777 echo "${ECHO_T}$ac_header_preproc" >&6
8779 # So? What about this header?
8780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8781 yes:no: )
8782 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8783 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8784 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8785 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8786 ac_header_preproc=yes
8788 no:yes:* )
8789 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8790 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8791 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8792 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8793 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8794 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8795 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8796 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8797 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8798 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8799 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8800 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8802 cat <<\_ASBOX
8803 ## ------------------------------------------ ##
8804 ## Report this to the AC_PACKAGE_NAME lists. ##
8805 ## ------------------------------------------ ##
8806 _ASBOX
8808 sed "s/^/$as_me: WARNING: /" >&2
8810 esac
8811 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8812 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8813 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 else
8816 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8818 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8819 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8822 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8823 HAVE_CARBON=yes
8828 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8829 if test "${with_carbon+set}" != set \
8830 && test "${carbon_appdir_x+set}" != set; then
8831 for var in with_x with_x_toolkit with_gtk with_xim \
8832 with_xpm with_jpeg with_tiff with_gif with_png; do
8833 if eval test \"\${$var+set}\" = set; then
8834 HAVE_CARBON=no
8835 break
8837 done
8840 if test "${HAVE_CARBON}" = yes; then
8841 window_system=mac
8844 case "${window_system}" in
8845 x11 )
8846 HAVE_X_WINDOWS=yes
8847 HAVE_X11=yes
8848 case "${with_x_toolkit}" in
8849 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8850 motif ) USE_X_TOOLKIT=MOTIF ;;
8851 gtk ) with_gtk=yes
8852 USE_X_TOOLKIT=none ;;
8853 no ) USE_X_TOOLKIT=none ;;
8854 * ) USE_X_TOOLKIT=maybe ;;
8855 esac
8857 mac | none )
8858 HAVE_X_WINDOWS=no
8859 HAVE_X11=no
8860 USE_X_TOOLKIT=none
8862 esac
8864 ### If we're using X11, we should use the X menu package.
8865 HAVE_MENUS=no
8866 case ${HAVE_X11} in
8867 yes ) HAVE_MENUS=yes ;;
8868 esac
8870 if test "${opsys}" = "hpux9"; then
8871 case "${x_libraries}" in
8872 *X11R4* )
8873 opsysfile="s/hpux9-x11r4.h"
8875 esac
8878 if test "${opsys}" = "hpux9shr"; then
8879 case "${x_libraries}" in
8880 *X11R4* )
8881 opsysfile="s/hpux9shxr4.h"
8883 esac
8886 ### Compute the unexec source name from the object name.
8887 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8889 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8890 # Assume not, until told otherwise.
8891 GNU_MALLOC=yes
8892 doug_lea_malloc=yes
8893 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8894 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8895 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 else
8898 cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h. */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8906 #define malloc_get_state innocuous_malloc_get_state
8908 /* System header to define __stub macros and hopefully few prototypes,
8909 which can conflict with char malloc_get_state (); below.
8910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8911 <limits.h> exists even on freestanding compilers. */
8913 #ifdef __STDC__
8914 # include <limits.h>
8915 #else
8916 # include <assert.h>
8917 #endif
8919 #undef malloc_get_state
8921 /* Override any gcc2 internal prototype to avoid an error. */
8922 #ifdef __cplusplus
8923 extern "C"
8925 #endif
8926 /* We use char because int might match the return type of a gcc2
8927 builtin and then its argument prototype would still apply. */
8928 char malloc_get_state ();
8929 /* The GNU C library defines this for functions which it implements
8930 to always fail with ENOSYS. Some functions are actually named
8931 something starting with __ and the normal name is an alias. */
8932 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8933 choke me
8934 #else
8935 char (*f) () = malloc_get_state;
8936 #endif
8937 #ifdef __cplusplus
8939 #endif
8942 main ()
8944 return f != malloc_get_state;
8946 return 0;
8948 _ACEOF
8949 rm -f conftest.$ac_objext conftest$ac_exeext
8950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8951 (eval $ac_link) 2>conftest.er1
8952 ac_status=$?
8953 grep -v '^ *+' conftest.er1 >conftest.err
8954 rm -f conftest.er1
8955 cat conftest.err >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); } &&
8958 { ac_try='test -z "$ac_c_werror_flag"
8959 || test ! -s conftest.err'
8960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961 (eval $ac_try) 2>&5
8962 ac_status=$?
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; } &&
8965 { ac_try='test -s conftest$ac_exeext'
8966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 (eval $ac_try) 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; }; then
8971 ac_cv_func_malloc_get_state=yes
8972 else
8973 echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8976 ac_cv_func_malloc_get_state=no
8978 rm -f conftest.err conftest.$ac_objext \
8979 conftest$ac_exeext conftest.$ac_ext
8981 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8982 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8983 if test $ac_cv_func_malloc_get_state = yes; then
8985 else
8986 doug_lea_malloc=no
8989 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8990 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8991 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994 cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h. */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9000 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9002 #define malloc_set_state innocuous_malloc_set_state
9004 /* System header to define __stub macros and hopefully few prototypes,
9005 which can conflict with char malloc_set_state (); below.
9006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9007 <limits.h> exists even on freestanding compilers. */
9009 #ifdef __STDC__
9010 # include <limits.h>
9011 #else
9012 # include <assert.h>
9013 #endif
9015 #undef malloc_set_state
9017 /* Override any gcc2 internal prototype to avoid an error. */
9018 #ifdef __cplusplus
9019 extern "C"
9021 #endif
9022 /* We use char because int might match the return type of a gcc2
9023 builtin and then its argument prototype would still apply. */
9024 char malloc_set_state ();
9025 /* The GNU C library defines this for functions which it implements
9026 to always fail with ENOSYS. Some functions are actually named
9027 something starting with __ and the normal name is an alias. */
9028 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
9029 choke me
9030 #else
9031 char (*f) () = malloc_set_state;
9032 #endif
9033 #ifdef __cplusplus
9035 #endif
9038 main ()
9040 return f != malloc_set_state;
9042 return 0;
9044 _ACEOF
9045 rm -f conftest.$ac_objext conftest$ac_exeext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9047 (eval $ac_link) 2>conftest.er1
9048 ac_status=$?
9049 grep -v '^ *+' conftest.er1 >conftest.err
9050 rm -f conftest.er1
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -z "$ac_c_werror_flag"
9055 || test ! -s conftest.err'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 (eval $ac_try) 2>&5
9058 ac_status=$?
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; } &&
9061 { ac_try='test -s conftest$ac_exeext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 ac_cv_func_malloc_set_state=yes
9068 else
9069 echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9072 ac_cv_func_malloc_set_state=no
9074 rm -f conftest.err conftest.$ac_objext \
9075 conftest$ac_exeext conftest.$ac_ext
9077 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9078 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9079 if test $ac_cv_func_malloc_set_state = yes; then
9081 else
9082 doug_lea_malloc=no
9085 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9086 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9087 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9090 cat >conftest.$ac_ext <<_ACEOF
9091 /* confdefs.h. */
9092 _ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h. */
9096 extern void (* __after_morecore_hook)();
9098 main ()
9100 __after_morecore_hook = 0
9102 return 0;
9104 _ACEOF
9105 rm -f conftest.$ac_objext conftest$ac_exeext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9107 (eval $ac_link) 2>conftest.er1
9108 ac_status=$?
9109 grep -v '^ *+' conftest.er1 >conftest.err
9110 rm -f conftest.er1
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try='test -z "$ac_c_werror_flag"
9115 || test ! -s conftest.err'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 (eval $ac_try) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; } &&
9121 { ac_try='test -s conftest$ac_exeext'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 emacs_cv_var___after_morecore_hook=yes
9128 else
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 emacs_cv_var___after_morecore_hook=no
9134 rm -f conftest.err conftest.$ac_objext \
9135 conftest$ac_exeext conftest.$ac_ext
9137 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9138 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9139 if test $emacs_cv_var___after_morecore_hook = no; then
9140 doug_lea_malloc=no
9142 if test "${system_malloc}" = "yes"; then
9143 GNU_MALLOC=no
9144 GNU_MALLOC_reason="
9145 (The GNU allocators don't work with this system configuration.)"
9147 if test "$doug_lea_malloc" = "yes" ; then
9148 if test "$GNU_MALLOC" = yes ; then
9149 GNU_MALLOC_reason="
9150 (Using Doug Lea's new malloc from the GNU C Library.)"
9153 cat >>confdefs.h <<\_ACEOF
9154 #define DOUG_LEA_MALLOC 1
9155 _ACEOF
9159 if test x"${REL_ALLOC}" = x; then
9160 REL_ALLOC=${GNU_MALLOC}
9166 for ac_header in stdlib.h unistd.h
9168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170 echo "$as_me:$LINENO: checking for $ac_header" >&5
9171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9177 else
9178 # Is the header compilable?
9179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9181 cat >conftest.$ac_ext <<_ACEOF
9182 /* confdefs.h. */
9183 _ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9187 $ac_includes_default
9188 #include <$ac_header>
9189 _ACEOF
9190 rm -f conftest.$ac_objext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9192 (eval $ac_compile) 2>conftest.er1
9193 ac_status=$?
9194 grep -v '^ *+' conftest.er1 >conftest.err
9195 rm -f conftest.er1
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try='test -z "$ac_c_werror_flag"
9200 || test ! -s conftest.err'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 (eval $ac_try) 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; } &&
9206 { ac_try='test -s conftest.$ac_objext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 (eval $ac_try) 2>&5
9209 ac_status=$?
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
9212 ac_header_compiler=yes
9213 else
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9217 ac_header_compiler=no
9219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9221 echo "${ECHO_T}$ac_header_compiler" >&6
9223 # Is the header present?
9224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9226 cat >conftest.$ac_ext <<_ACEOF
9227 /* confdefs.h. */
9228 _ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9232 #include <$ac_header>
9233 _ACEOF
9234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9236 ac_status=$?
9237 grep -v '^ *+' conftest.er1 >conftest.err
9238 rm -f conftest.er1
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } >/dev/null; then
9242 if test -s conftest.err; then
9243 ac_cpp_err=$ac_c_preproc_warn_flag
9244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9245 else
9246 ac_cpp_err=
9248 else
9249 ac_cpp_err=yes
9251 if test -z "$ac_cpp_err"; then
9252 ac_header_preproc=yes
9253 else
9254 echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9257 ac_header_preproc=no
9259 rm -f conftest.err conftest.$ac_ext
9260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9261 echo "${ECHO_T}$ac_header_preproc" >&6
9263 # So? What about this header?
9264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9265 yes:no: )
9266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9270 ac_header_preproc=yes
9272 no:yes:* )
9273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9286 cat <<\_ASBOX
9287 ## ------------------------------------------ ##
9288 ## Report this to the AC_PACKAGE_NAME lists. ##
9289 ## ------------------------------------------ ##
9290 _ASBOX
9292 sed "s/^/$as_me: WARNING: /" >&2
9294 esac
9295 echo "$as_me:$LINENO: checking for $ac_header" >&5
9296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9298 echo $ECHO_N "(cached) $ECHO_C" >&6
9299 else
9300 eval "$as_ac_Header=\$ac_header_preproc"
9302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9307 cat >>confdefs.h <<_ACEOF
9308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9309 _ACEOF
9313 done
9316 for ac_func in getpagesize
9318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9319 echo "$as_me:$LINENO: checking for $ac_func" >&5
9320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9321 if eval "test \"\${$as_ac_var+set}\" = set"; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324 cat >conftest.$ac_ext <<_ACEOF
9325 /* confdefs.h. */
9326 _ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h. */
9330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9332 #define $ac_func innocuous_$ac_func
9334 /* System header to define __stub macros and hopefully few prototypes,
9335 which can conflict with char $ac_func (); below.
9336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9337 <limits.h> exists even on freestanding compilers. */
9339 #ifdef __STDC__
9340 # include <limits.h>
9341 #else
9342 # include <assert.h>
9343 #endif
9345 #undef $ac_func
9347 /* Override any gcc2 internal prototype to avoid an error. */
9348 #ifdef __cplusplus
9349 extern "C"
9351 #endif
9352 /* We use char because int might match the return type of a gcc2
9353 builtin and then its argument prototype would still apply. */
9354 char $ac_func ();
9355 /* The GNU C library defines this for functions which it implements
9356 to always fail with ENOSYS. Some functions are actually named
9357 something starting with __ and the normal name is an alias. */
9358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9359 choke me
9360 #else
9361 char (*f) () = $ac_func;
9362 #endif
9363 #ifdef __cplusplus
9365 #endif
9368 main ()
9370 return f != $ac_func;
9372 return 0;
9374 _ACEOF
9375 rm -f conftest.$ac_objext conftest$ac_exeext
9376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9377 (eval $ac_link) 2>conftest.er1
9378 ac_status=$?
9379 grep -v '^ *+' conftest.er1 >conftest.err
9380 rm -f conftest.er1
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } &&
9384 { ac_try='test -z "$ac_c_werror_flag"
9385 || test ! -s conftest.err'
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 (eval $ac_try) 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; } &&
9391 { ac_try='test -s conftest$ac_exeext'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 (eval $ac_try) 2>&5
9394 ac_status=$?
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; }; then
9397 eval "$as_ac_var=yes"
9398 else
9399 echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9402 eval "$as_ac_var=no"
9404 rm -f conftest.err conftest.$ac_objext \
9405 conftest$ac_exeext conftest.$ac_ext
9407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9409 if test `eval echo '${'$as_ac_var'}'` = yes; then
9410 cat >>confdefs.h <<_ACEOF
9411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9412 _ACEOF
9415 done
9417 echo "$as_me:$LINENO: checking for working mmap" >&5
9418 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9419 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422 if test "$cross_compiling" = yes; then
9423 ac_cv_func_mmap_fixed_mapped=no
9424 else
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 $ac_includes_default
9432 /* malloc might have been renamed as rpl_malloc. */
9433 #undef malloc
9435 /* Thanks to Mike Haertel and Jim Avera for this test.
9436 Here is a matrix of mmap possibilities:
9437 mmap private not fixed
9438 mmap private fixed at somewhere currently unmapped
9439 mmap private fixed at somewhere already mapped
9440 mmap shared not fixed
9441 mmap shared fixed at somewhere currently unmapped
9442 mmap shared fixed at somewhere already mapped
9443 For private mappings, we should verify that changes cannot be read()
9444 back from the file, nor mmap's back from the file at a different
9445 address. (There have been systems where private was not correctly
9446 implemented like the infamous i386 svr4.0, and systems where the
9447 VM page cache was not coherent with the file system buffer cache
9448 like early versions of FreeBSD and possibly contemporary NetBSD.)
9449 For shared mappings, we should conversely verify that changes get
9450 propagated back to all the places they're supposed to be.
9452 Grep wants private fixed already mapped.
9453 The main things grep needs to know about mmap are:
9454 * does it exist and is it safe to write into the mmap'd area
9455 * how to use it (BSD variants) */
9457 #include <fcntl.h>
9458 #include <sys/mman.h>
9460 #if !STDC_HEADERS && !HAVE_STDLIB_H
9461 char *malloc ();
9462 #endif
9464 /* This mess was copied from the GNU getpagesize.h. */
9465 #if !HAVE_GETPAGESIZE
9466 /* Assume that all systems that can run configure have sys/param.h. */
9467 # if !HAVE_SYS_PARAM_H
9468 # define HAVE_SYS_PARAM_H 1
9469 # endif
9471 # ifdef _SC_PAGESIZE
9472 # define getpagesize() sysconf(_SC_PAGESIZE)
9473 # else /* no _SC_PAGESIZE */
9474 # if HAVE_SYS_PARAM_H
9475 # include <sys/param.h>
9476 # ifdef EXEC_PAGESIZE
9477 # define getpagesize() EXEC_PAGESIZE
9478 # else /* no EXEC_PAGESIZE */
9479 # ifdef NBPG
9480 # define getpagesize() NBPG * CLSIZE
9481 # ifndef CLSIZE
9482 # define CLSIZE 1
9483 # endif /* no CLSIZE */
9484 # else /* no NBPG */
9485 # ifdef NBPC
9486 # define getpagesize() NBPC
9487 # else /* no NBPC */
9488 # ifdef PAGESIZE
9489 # define getpagesize() PAGESIZE
9490 # endif /* PAGESIZE */
9491 # endif /* no NBPC */
9492 # endif /* no NBPG */
9493 # endif /* no EXEC_PAGESIZE */
9494 # else /* no HAVE_SYS_PARAM_H */
9495 # define getpagesize() 8192 /* punt totally */
9496 # endif /* no HAVE_SYS_PARAM_H */
9497 # endif /* no _SC_PAGESIZE */
9499 #endif /* no HAVE_GETPAGESIZE */
9502 main ()
9504 char *data, *data2, *data3;
9505 int i, pagesize;
9506 int fd;
9508 pagesize = getpagesize ();
9510 /* First, make a file with some known garbage in it. */
9511 data = (char *) malloc (pagesize);
9512 if (!data)
9513 exit (1);
9514 for (i = 0; i < pagesize; ++i)
9515 *(data + i) = rand ();
9516 umask (0);
9517 fd = creat ("conftest.mmap", 0600);
9518 if (fd < 0)
9519 exit (1);
9520 if (write (fd, data, pagesize) != pagesize)
9521 exit (1);
9522 close (fd);
9524 /* Next, try to mmap the file at a fixed address which already has
9525 something else allocated at it. If we can, also make sure that
9526 we see the same garbage. */
9527 fd = open ("conftest.mmap", O_RDWR);
9528 if (fd < 0)
9529 exit (1);
9530 data2 = (char *) malloc (2 * pagesize);
9531 if (!data2)
9532 exit (1);
9533 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9534 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9535 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9536 exit (1);
9537 for (i = 0; i < pagesize; ++i)
9538 if (*(data + i) != *(data2 + i))
9539 exit (1);
9541 /* Finally, make sure that changes to the mapped area do not
9542 percolate back to the file as seen by read(). (This is a bug on
9543 some variants of i386 svr4.0.) */
9544 for (i = 0; i < pagesize; ++i)
9545 *(data2 + i) = *(data2 + i) + 1;
9546 data3 = (char *) malloc (pagesize);
9547 if (!data3)
9548 exit (1);
9549 if (read (fd, data3, pagesize) != pagesize)
9550 exit (1);
9551 for (i = 0; i < pagesize; ++i)
9552 if (*(data + i) != *(data3 + i))
9553 exit (1);
9554 close (fd);
9555 exit (0);
9557 _ACEOF
9558 rm -f conftest$ac_exeext
9559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9560 (eval $ac_link) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565 (eval $ac_try) 2>&5
9566 ac_status=$?
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9569 ac_cv_func_mmap_fixed_mapped=yes
9570 else
9571 echo "$as_me: program exited with status $ac_status" >&5
9572 echo "$as_me: failed program was:" >&5
9573 sed 's/^/| /' conftest.$ac_ext >&5
9575 ( exit $ac_status )
9576 ac_cv_func_mmap_fixed_mapped=no
9578 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9581 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9582 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9583 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9585 cat >>confdefs.h <<\_ACEOF
9586 #define HAVE_MMAP 1
9587 _ACEOF
9590 rm -f conftest.mmap
9592 if test $use_mmap_for_buffers = yes; then
9593 REL_ALLOC=no
9596 LIBS="$libsrc_libs $LIBS"
9599 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9600 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9601 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 else
9604 ac_check_lib_save_LIBS=$LIBS
9605 LIBS="-ldnet $LIBS"
9606 cat >conftest.$ac_ext <<_ACEOF
9607 /* confdefs.h. */
9608 _ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9613 /* Override any gcc2 internal prototype to avoid an error. */
9614 #ifdef __cplusplus
9615 extern "C"
9616 #endif
9617 /* We use char because int might match the return type of a gcc2
9618 builtin and then its argument prototype would still apply. */
9619 char dnet_ntoa ();
9621 main ()
9623 dnet_ntoa ();
9625 return 0;
9627 _ACEOF
9628 rm -f conftest.$ac_objext conftest$ac_exeext
9629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9630 (eval $ac_link) 2>conftest.er1
9631 ac_status=$?
9632 grep -v '^ *+' conftest.er1 >conftest.err
9633 rm -f conftest.er1
9634 cat conftest.err >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } &&
9637 { ac_try='test -z "$ac_c_werror_flag"
9638 || test ! -s conftest.err'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640 (eval $ac_try) 2>&5
9641 ac_status=$?
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; } &&
9644 { ac_try='test -s conftest$ac_exeext'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 (eval $ac_try) 2>&5
9647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650 ac_cv_lib_dnet_dnet_ntoa=yes
9651 else
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9655 ac_cv_lib_dnet_dnet_ntoa=no
9657 rm -f conftest.err conftest.$ac_objext \
9658 conftest$ac_exeext conftest.$ac_ext
9659 LIBS=$ac_check_lib_save_LIBS
9661 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9662 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9663 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9664 cat >>confdefs.h <<_ACEOF
9665 #define HAVE_LIBDNET 1
9666 _ACEOF
9668 LIBS="-ldnet $LIBS"
9673 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9674 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9675 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 else
9678 ac_check_lib_save_LIBS=$LIBS
9679 LIBS="-lXbsd $LIBS"
9680 cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h. */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9689 main ()
9691 main ();
9693 return 0;
9695 _ACEOF
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698 (eval $ac_link) 2>conftest.er1
9699 ac_status=$?
9700 grep -v '^ *+' conftest.er1 >conftest.err
9701 rm -f conftest.er1
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
9705 { ac_try='test -z "$ac_c_werror_flag"
9706 || test ! -s conftest.err'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 (eval $ac_try) 2>&5
9709 ac_status=$?
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; } &&
9712 { ac_try='test -s conftest$ac_exeext'
9713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 (eval $ac_try) 2>&5
9715 ac_status=$?
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; }; then
9718 ac_cv_lib_Xbsd_main=yes
9719 else
9720 echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9723 ac_cv_lib_Xbsd_main=no
9725 rm -f conftest.err conftest.$ac_objext \
9726 conftest$ac_exeext conftest.$ac_ext
9727 LIBS=$ac_check_lib_save_LIBS
9729 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9730 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9731 if test $ac_cv_lib_Xbsd_main = yes; then
9732 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9737 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9738 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9739 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742 ac_check_lib_save_LIBS=$LIBS
9743 LIBS="-lpthreads $LIBS"
9744 cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h. */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9751 /* Override any gcc2 internal prototype to avoid an error. */
9752 #ifdef __cplusplus
9753 extern "C"
9754 #endif
9755 /* We use char because int might match the return type of a gcc2
9756 builtin and then its argument prototype would still apply. */
9757 char cma_open ();
9759 main ()
9761 cma_open ();
9763 return 0;
9765 _ACEOF
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768 (eval $ac_link) 2>conftest.er1
9769 ac_status=$?
9770 grep -v '^ *+' conftest.er1 >conftest.err
9771 rm -f conftest.er1
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_c_werror_flag"
9776 || test ! -s conftest.err'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 (eval $ac_try) 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; } &&
9782 { ac_try='test -s conftest$ac_exeext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788 ac_cv_lib_pthreads_cma_open=yes
9789 else
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9793 ac_cv_lib_pthreads_cma_open=no
9795 rm -f conftest.err conftest.$ac_objext \
9796 conftest$ac_exeext conftest.$ac_ext
9797 LIBS=$ac_check_lib_save_LIBS
9799 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9800 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9801 if test $ac_cv_lib_pthreads_cma_open = yes; then
9802 cat >>confdefs.h <<_ACEOF
9803 #define HAVE_LIBPTHREADS 1
9804 _ACEOF
9806 LIBS="-lpthreads $LIBS"
9811 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9812 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9813 if test -d /usr/X386/include; then
9814 HAVE_XFREE386=yes
9815 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9816 else
9817 HAVE_XFREE386=no
9819 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9820 echo "${ECHO_T}$HAVE_XFREE386" >&6
9823 case ${host_os} in
9824 aix*)
9825 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9826 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9827 if test "${gdb_cv_bigtoc+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9831 case $GCC in
9832 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9833 *) gdb_cv_bigtoc=-bbigtoc ;;
9834 esac
9836 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9837 cat >conftest.$ac_ext <<_ACEOF
9838 /* confdefs.h. */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9845 main ()
9847 int i;
9849 return 0;
9851 _ACEOF
9852 rm -f conftest.$ac_objext conftest$ac_exeext
9853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9854 (eval $ac_link) 2>conftest.er1
9855 ac_status=$?
9856 grep -v '^ *+' conftest.er1 >conftest.err
9857 rm -f conftest.er1
9858 cat conftest.err >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } &&
9861 { ac_try='test -z "$ac_c_werror_flag"
9862 || test ! -s conftest.err'
9863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 (eval $ac_try) 2>&5
9865 ac_status=$?
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; } &&
9868 { ac_try='test -s conftest$ac_exeext'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 (eval $ac_try) 2>&5
9871 ac_status=$?
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; }; then
9875 else
9876 echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9879 gdb_cv_bigtoc=
9881 rm -f conftest.err conftest.$ac_objext \
9882 conftest$ac_exeext conftest.$ac_ext
9885 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9886 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9888 esac
9890 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9891 # used for the tests that follow. We set them back to REAL_CFLAGS and
9892 # REAL_CPPFLAGS later on.
9894 REAL_CPPFLAGS="$CPPFLAGS"
9896 if test "${HAVE_X11}" = "yes"; then
9897 DEFS="$C_SWITCH_X_SITE $DEFS"
9898 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9899 LIBS="$LIBX $LIBS"
9900 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9901 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9903 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9904 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9905 # but it's more convenient here to set LD_RUN_PATH
9906 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9907 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9908 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9909 export LD_RUN_PATH
9912 if test "${opsys}" = "gnu-linux"; then
9913 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9914 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9915 cat >conftest.$ac_ext <<_ACEOF
9916 /* confdefs.h. */
9917 _ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9923 main ()
9925 XOpenDisplay ("foo");
9927 return 0;
9929 _ACEOF
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9932 (eval $ac_link) 2>conftest.er1
9933 ac_status=$?
9934 grep -v '^ *+' conftest.er1 >conftest.err
9935 rm -f conftest.er1
9936 cat conftest.err >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } &&
9939 { ac_try='test -z "$ac_c_werror_flag"
9940 || test ! -s conftest.err'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 (eval $ac_try) 2>&5
9943 ac_status=$?
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; } &&
9946 { ac_try='test -s conftest$ac_exeext'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 (eval $ac_try) 2>&5
9949 ac_status=$?
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; }; then
9952 xlinux_first_failure=no
9953 else
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9957 xlinux_first_failure=yes
9959 rm -f conftest.err conftest.$ac_objext \
9960 conftest$ac_exeext conftest.$ac_ext
9961 if test "${xlinux_first_failure}" = "yes"; then
9962 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9963 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9964 OLD_CPPFLAGS="$CPPFLAGS"
9965 OLD_LIBS="$LIBS"
9966 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9967 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9968 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9969 LIBS="$LIBS -b i486-linuxaout"
9970 cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h. */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9978 main ()
9980 XOpenDisplay ("foo");
9982 return 0;
9984 _ACEOF
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987 (eval $ac_link) 2>conftest.er1
9988 ac_status=$?
9989 grep -v '^ *+' conftest.er1 >conftest.err
9990 rm -f conftest.er1
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -z "$ac_c_werror_flag"
9995 || test ! -s conftest.err'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 (eval $ac_try) 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 xlinux_second_failure=no
10008 else
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 xlinux_second_failure=yes
10014 rm -f conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 if test "${xlinux_second_failure}" = "yes"; then
10017 # If we get the same failure with -b, there is no use adding -b.
10018 # So take it out. This plays safe.
10019 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10020 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10021 CPPFLAGS="$OLD_CPPFLAGS"
10022 LIBS="$OLD_LIBS"
10023 echo "$as_me:$LINENO: result: no" >&5
10024 echo "${ECHO_T}no" >&6
10025 else
10026 echo "$as_me:$LINENO: result: yes" >&5
10027 echo "${ECHO_T}yes" >&6
10029 else
10030 echo "$as_me:$LINENO: result: no" >&5
10031 echo "${ECHO_T}no" >&6
10035 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10036 # header files included from there.
10037 echo "$as_me:$LINENO: checking for Xkb" >&5
10038 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h. */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 #include <X11/Xlib.h>
10046 #include <X11/XKBlib.h>
10048 main ()
10050 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10052 return 0;
10054 _ACEOF
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10057 (eval $ac_link) 2>conftest.er1
10058 ac_status=$?
10059 grep -v '^ *+' conftest.er1 >conftest.err
10060 rm -f conftest.er1
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } &&
10064 { ac_try='test -z "$ac_c_werror_flag"
10065 || test ! -s conftest.err'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; } &&
10071 { ac_try='test -s conftest$ac_exeext'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
10077 emacs_xkb=yes
10078 else
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10082 emacs_xkb=no
10084 rm -f conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10087 echo "${ECHO_T}$emacs_xkb" >&6
10088 if test $emacs_xkb = yes; then
10090 cat >>confdefs.h <<\_ACEOF
10091 #define HAVE_XKBGETKEYBOARD 1
10092 _ACEOF
10100 for ac_func in XrmSetDatabase XScreenResourceString \
10101 XScreenNumberOfScreen XSetWMProtocols
10103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10104 echo "$as_me:$LINENO: checking for $ac_func" >&5
10105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10106 if eval "test \"\${$as_ac_var+set}\" = set"; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 else
10109 cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h. */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10117 #define $ac_func innocuous_$ac_func
10119 /* System header to define __stub macros and hopefully few prototypes,
10120 which can conflict with char $ac_func (); below.
10121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10122 <limits.h> exists even on freestanding compilers. */
10124 #ifdef __STDC__
10125 # include <limits.h>
10126 #else
10127 # include <assert.h>
10128 #endif
10130 #undef $ac_func
10132 /* Override any gcc2 internal prototype to avoid an error. */
10133 #ifdef __cplusplus
10134 extern "C"
10136 #endif
10137 /* We use char because int might match the return type of a gcc2
10138 builtin and then its argument prototype would still apply. */
10139 char $ac_func ();
10140 /* The GNU C library defines this for functions which it implements
10141 to always fail with ENOSYS. Some functions are actually named
10142 something starting with __ and the normal name is an alias. */
10143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10144 choke me
10145 #else
10146 char (*f) () = $ac_func;
10147 #endif
10148 #ifdef __cplusplus
10150 #endif
10153 main ()
10155 return f != $ac_func;
10157 return 0;
10159 _ACEOF
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10162 (eval $ac_link) 2>conftest.er1
10163 ac_status=$?
10164 grep -v '^ *+' conftest.er1 >conftest.err
10165 rm -f conftest.er1
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
10169 { ac_try='test -z "$ac_c_werror_flag"
10170 || test ! -s conftest.err'
10171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172 (eval $ac_try) 2>&5
10173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; } &&
10176 { ac_try='test -s conftest$ac_exeext'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10179 ac_status=$?
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
10182 eval "$as_ac_var=yes"
10183 else
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 eval "$as_ac_var=no"
10189 rm -f conftest.err conftest.$ac_objext \
10190 conftest$ac_exeext conftest.$ac_ext
10192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10194 if test `eval echo '${'$as_ac_var'}'` = yes; then
10195 cat >>confdefs.h <<_ACEOF
10196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10197 _ACEOF
10200 done
10204 if test "${window_system}" = "x11"; then
10205 echo "$as_me:$LINENO: checking X11 version 6" >&5
10206 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10207 if test "${emacs_cv_x11_version_6+set}" = set; then
10208 echo $ECHO_N "(cached) $ECHO_C" >&6
10209 else
10210 cat >conftest.$ac_ext <<_ACEOF
10211 /* confdefs.h. */
10212 _ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10216 #include <X11/Xlib.h>
10218 main ()
10220 #if XlibSpecificationRelease < 6
10221 fail;
10222 #endif
10225 return 0;
10227 _ACEOF
10228 rm -f conftest.$ac_objext conftest$ac_exeext
10229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10230 (eval $ac_link) 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } &&
10237 { ac_try='test -z "$ac_c_werror_flag"
10238 || test ! -s conftest.err'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10241 ac_status=$?
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; } &&
10244 { ac_try='test -s conftest$ac_exeext'
10245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246 (eval $ac_try) 2>&5
10247 ac_status=$?
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; }; then
10250 emacs_cv_x11_version_6=yes
10251 else
10252 echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10255 emacs_cv_x11_version_6=no
10257 rm -f conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10261 if test $emacs_cv_x11_version_6 = yes; then
10262 echo "$as_me:$LINENO: result: 6 or newer" >&5
10263 echo "${ECHO_T}6 or newer" >&6
10265 cat >>confdefs.h <<\_ACEOF
10266 #define HAVE_X11R6 1
10267 _ACEOF
10269 else
10270 echo "$as_me:$LINENO: result: before 6" >&5
10271 echo "${ECHO_T}before 6" >&6
10275 if test "${window_system}" = "x11"; then
10276 echo "$as_me:$LINENO: checking X11 version 5" >&5
10277 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10278 if test "${emacs_cv_x11_version_5+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281 cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h. */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 #include <X11/Xlib.h>
10289 main ()
10291 #if XlibSpecificationRelease < 5
10292 fail;
10293 #endif
10296 return 0;
10298 _ACEOF
10299 rm -f conftest.$ac_objext conftest$ac_exeext
10300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10301 (eval $ac_link) 2>conftest.er1
10302 ac_status=$?
10303 grep -v '^ *+' conftest.er1 >conftest.err
10304 rm -f conftest.er1
10305 cat conftest.err >&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } &&
10308 { ac_try='test -z "$ac_c_werror_flag"
10309 || test ! -s conftest.err'
10310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311 (eval $ac_try) 2>&5
10312 ac_status=$?
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; } &&
10315 { ac_try='test -s conftest$ac_exeext'
10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317 (eval $ac_try) 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; }; then
10321 emacs_cv_x11_version_5=yes
10322 else
10323 echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10326 emacs_cv_x11_version_5=no
10328 rm -f conftest.err conftest.$ac_objext \
10329 conftest$ac_exeext conftest.$ac_ext
10332 if test $emacs_cv_x11_version_5 = yes; then
10333 echo "$as_me:$LINENO: result: 5 or newer" >&5
10334 echo "${ECHO_T}5 or newer" >&6
10335 HAVE_X11R5=yes
10337 cat >>confdefs.h <<\_ACEOF
10338 #define HAVE_X11R5 1
10339 _ACEOF
10341 else
10342 HAVE_X11R5=no
10343 echo "$as_me:$LINENO: result: before 5" >&5
10344 echo "${ECHO_T}before 5" >&6
10348 HAVE_GTK=no
10349 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10350 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10351 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10352 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10353 { (exit 1); exit 1; }; };
10355 GLIB_REQUIRED=2.4
10356 GTK_REQUIRED=2.4
10357 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10359 if test "X${with_pkg_config_prog}" != X; then
10360 PKG_CONFIG="${with_pkg_config_prog}"
10363 succeeded=no
10365 if test -z "$PKG_CONFIG"; then
10366 # Extract the first word of "pkg-config", so it can be a program name with args.
10367 set dummy pkg-config; ac_word=$2
10368 echo "$as_me:$LINENO: checking for $ac_word" >&5
10369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10370 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 else
10373 case $PKG_CONFIG in
10374 [\\/]* | ?:[\\/]*)
10375 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10379 for as_dir in $PATH
10381 IFS=$as_save_IFS
10382 test -z "$as_dir" && as_dir=.
10383 for ac_exec_ext in '' $ac_executable_extensions; do
10384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10385 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10387 break 2
10389 done
10390 done
10392 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10394 esac
10396 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10398 if test -n "$PKG_CONFIG"; then
10399 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10400 echo "${ECHO_T}$PKG_CONFIG" >&6
10401 else
10402 echo "$as_me:$LINENO: result: no" >&5
10403 echo "${ECHO_T}no" >&6
10408 if test "$PKG_CONFIG" = "no" ; then
10409 { { echo "$as_me:$LINENO: error:
10410 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10411 echo "$as_me: error:
10412 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10413 { (exit 1); exit 1; }; }
10414 else
10415 PKG_CONFIG_MIN_VERSION=0.9.0
10416 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10417 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10418 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10420 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10421 echo "$as_me:$LINENO: result: yes" >&5
10422 echo "${ECHO_T}yes" >&6
10423 succeeded=yes
10425 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10426 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10427 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10428 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10429 echo "${ECHO_T}$GTK_CFLAGS" >&6
10431 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10432 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10433 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10434 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10435 echo "${ECHO_T}$GTK_LIBS" >&6
10436 else
10437 echo "$as_me:$LINENO: result: no" >&5
10438 echo "${ECHO_T}no" >&6
10439 GTK_CFLAGS=""
10440 GTK_LIBS=""
10441 ## If we have a custom action on failure, don't print errors, but
10442 ## do set a variable so people can do so.
10443 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10444 echo $GTK_PKG_ERRORS
10449 else
10450 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10451 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10455 if test $succeeded = yes; then
10457 else
10458 { { 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
10459 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;}
10460 { (exit 1); exit 1; }; }
10465 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10466 CFLAGS="$CFLAGS $GTK_CFLAGS"
10467 LIBS="$GTK_LIBS $LIBS"
10468 HAVE_GTK=yes
10470 cat >>confdefs.h <<\_ACEOF
10471 #define HAVE_GTK 1
10472 _ACEOF
10474 USE_X_TOOLKIT=none
10476 if test "$with_toolkit_scroll_bars" != no; then
10477 with_toolkit_scroll_bars=yes
10480 HAVE_GTK_MULTIDISPLAY=no
10482 for ac_func in gdk_display_open
10484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10485 echo "$as_me:$LINENO: checking for $ac_func" >&5
10486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10487 if eval "test \"\${$as_ac_var+set}\" = set"; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490 cat >conftest.$ac_ext <<_ACEOF
10491 /* confdefs.h. */
10492 _ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10498 #define $ac_func innocuous_$ac_func
10500 /* System header to define __stub macros and hopefully few prototypes,
10501 which can conflict with char $ac_func (); below.
10502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10503 <limits.h> exists even on freestanding compilers. */
10505 #ifdef __STDC__
10506 # include <limits.h>
10507 #else
10508 # include <assert.h>
10509 #endif
10511 #undef $ac_func
10513 /* Override any gcc2 internal prototype to avoid an error. */
10514 #ifdef __cplusplus
10515 extern "C"
10517 #endif
10518 /* We use char because int might match the return type of a gcc2
10519 builtin and then its argument prototype would still apply. */
10520 char $ac_func ();
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 char (*f) () = $ac_func;
10528 #endif
10529 #ifdef __cplusplus
10531 #endif
10534 main ()
10536 return f != $ac_func;
10538 return 0;
10540 _ACEOF
10541 rm -f conftest.$ac_objext conftest$ac_exeext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10543 (eval $ac_link) 2>conftest.er1
10544 ac_status=$?
10545 grep -v '^ *+' conftest.er1 >conftest.err
10546 rm -f conftest.er1
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -z "$ac_c_werror_flag"
10551 || test ! -s conftest.err'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; } &&
10557 { ac_try='test -s conftest$ac_exeext'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10563 eval "$as_ac_var=yes"
10564 else
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 eval "$as_ac_var=no"
10570 rm -f conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10575 if test `eval echo '${'$as_ac_var'}'` = yes; then
10576 cat >>confdefs.h <<_ACEOF
10577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10578 _ACEOF
10579 HAVE_GTK_MULTIDISPLAY=yes
10581 done
10583 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10585 cat >>confdefs.h <<\_ACEOF
10586 #define HAVE_GTK_MULTIDISPLAY 1
10587 _ACEOF
10590 HAVE_GTK_FILE_SELECTION=no
10592 for ac_func in gtk_file_selection_new
10594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10595 echo "$as_me:$LINENO: checking for $ac_func" >&5
10596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10597 if eval "test \"\${$as_ac_var+set}\" = set"; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10599 else
10600 cat >conftest.$ac_ext <<_ACEOF
10601 /* confdefs.h. */
10602 _ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10608 #define $ac_func innocuous_$ac_func
10610 /* System header to define __stub macros and hopefully few prototypes,
10611 which can conflict with char $ac_func (); below.
10612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10613 <limits.h> exists even on freestanding compilers. */
10615 #ifdef __STDC__
10616 # include <limits.h>
10617 #else
10618 # include <assert.h>
10619 #endif
10621 #undef $ac_func
10623 /* Override any gcc2 internal prototype to avoid an error. */
10624 #ifdef __cplusplus
10625 extern "C"
10627 #endif
10628 /* We use char because int might match the return type of a gcc2
10629 builtin and then its argument prototype would still apply. */
10630 char $ac_func ();
10631 /* The GNU C library defines this for functions which it implements
10632 to always fail with ENOSYS. Some functions are actually named
10633 something starting with __ and the normal name is an alias. */
10634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10635 choke me
10636 #else
10637 char (*f) () = $ac_func;
10638 #endif
10639 #ifdef __cplusplus
10641 #endif
10644 main ()
10646 return f != $ac_func;
10648 return 0;
10650 _ACEOF
10651 rm -f conftest.$ac_objext conftest$ac_exeext
10652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10653 (eval $ac_link) 2>conftest.er1
10654 ac_status=$?
10655 grep -v '^ *+' conftest.er1 >conftest.err
10656 rm -f conftest.er1
10657 cat conftest.err >&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } &&
10660 { ac_try='test -z "$ac_c_werror_flag"
10661 || test ! -s conftest.err'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; } &&
10667 { ac_try='test -s conftest$ac_exeext'
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 eval "$as_ac_var=yes"
10674 else
10675 echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10678 eval "$as_ac_var=no"
10680 rm -f conftest.err conftest.$ac_objext \
10681 conftest$ac_exeext conftest.$ac_ext
10683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10685 if test `eval echo '${'$as_ac_var'}'` = yes; then
10686 cat >>confdefs.h <<_ACEOF
10687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10688 _ACEOF
10689 HAVE_GTK_FILE_SELECTION=yes
10691 done
10694 HAVE_GTK_FILE_CHOOSER=no
10696 for ac_func in gtk_file_chooser_dialog_new
10698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10699 echo "$as_me:$LINENO: checking for $ac_func" >&5
10700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10701 if eval "test \"\${$as_ac_var+set}\" = set"; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 else
10704 cat >conftest.$ac_ext <<_ACEOF
10705 /* confdefs.h. */
10706 _ACEOF
10707 cat confdefs.h >>conftest.$ac_ext
10708 cat >>conftest.$ac_ext <<_ACEOF
10709 /* end confdefs.h. */
10710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10712 #define $ac_func innocuous_$ac_func
10714 /* System header to define __stub macros and hopefully few prototypes,
10715 which can conflict with char $ac_func (); below.
10716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10717 <limits.h> exists even on freestanding compilers. */
10719 #ifdef __STDC__
10720 # include <limits.h>
10721 #else
10722 # include <assert.h>
10723 #endif
10725 #undef $ac_func
10727 /* Override any gcc2 internal prototype to avoid an error. */
10728 #ifdef __cplusplus
10729 extern "C"
10731 #endif
10732 /* We use char because int might match the return type of a gcc2
10733 builtin and then its argument prototype would still apply. */
10734 char $ac_func ();
10735 /* The GNU C library defines this for functions which it implements
10736 to always fail with ENOSYS. Some functions are actually named
10737 something starting with __ and the normal name is an alias. */
10738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10739 choke me
10740 #else
10741 char (*f) () = $ac_func;
10742 #endif
10743 #ifdef __cplusplus
10745 #endif
10748 main ()
10750 return f != $ac_func;
10752 return 0;
10754 _ACEOF
10755 rm -f conftest.$ac_objext conftest$ac_exeext
10756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10757 (eval $ac_link) 2>conftest.er1
10758 ac_status=$?
10759 grep -v '^ *+' conftest.er1 >conftest.err
10760 rm -f conftest.er1
10761 cat conftest.err >&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } &&
10764 { ac_try='test -z "$ac_c_werror_flag"
10765 || test ! -s conftest.err'
10766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767 (eval $ac_try) 2>&5
10768 ac_status=$?
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; } &&
10771 { ac_try='test -s conftest$ac_exeext'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; }; then
10777 eval "$as_ac_var=yes"
10778 else
10779 echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10782 eval "$as_ac_var=no"
10784 rm -f conftest.err conftest.$ac_objext \
10785 conftest$ac_exeext conftest.$ac_ext
10787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10789 if test `eval echo '${'$as_ac_var'}'` = yes; then
10790 cat >>confdefs.h <<_ACEOF
10791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10792 _ACEOF
10793 HAVE_GTK_FILE_CHOOSER=yes
10795 done
10798 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10799 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10801 cat >>confdefs.h <<\_ACEOF
10802 #define HAVE_GTK_FILE_BOTH 1
10803 _ACEOF
10807 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10808 HAVE_GTK_AND_PTHREAD=no
10810 for ac_header in pthread.h
10812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10814 echo "$as_me:$LINENO: checking for $ac_header" >&5
10815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10821 else
10822 # Is the header compilable?
10823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10825 cat >conftest.$ac_ext <<_ACEOF
10826 /* confdefs.h. */
10827 _ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10831 $ac_includes_default
10832 #include <$ac_header>
10833 _ACEOF
10834 rm -f conftest.$ac_objext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10836 (eval $ac_compile) 2>conftest.er1
10837 ac_status=$?
10838 grep -v '^ *+' conftest.er1 >conftest.err
10839 rm -f conftest.er1
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } &&
10843 { ac_try='test -z "$ac_c_werror_flag"
10844 || test ! -s conftest.err'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; } &&
10850 { ac_try='test -s conftest.$ac_objext'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 ac_header_compiler=yes
10857 else
10858 echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10861 ac_header_compiler=no
10863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10865 echo "${ECHO_T}$ac_header_compiler" >&6
10867 # Is the header present?
10868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10870 cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h. */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 #include <$ac_header>
10877 _ACEOF
10878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } >/dev/null; then
10886 if test -s conftest.err; then
10887 ac_cpp_err=$ac_c_preproc_warn_flag
10888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10889 else
10890 ac_cpp_err=
10892 else
10893 ac_cpp_err=yes
10895 if test -z "$ac_cpp_err"; then
10896 ac_header_preproc=yes
10897 else
10898 echo "$as_me: failed program was:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10901 ac_header_preproc=no
10903 rm -f conftest.err conftest.$ac_ext
10904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10905 echo "${ECHO_T}$ac_header_preproc" >&6
10907 # So? What about this header?
10908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10909 yes:no: )
10910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10914 ac_header_preproc=yes
10916 no:yes:* )
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10930 cat <<\_ASBOX
10931 ## ------------------------------------------ ##
10932 ## Report this to the AC_PACKAGE_NAME lists. ##
10933 ## ------------------------------------------ ##
10934 _ASBOX
10936 sed "s/^/$as_me: WARNING: /" >&2
10938 esac
10939 echo "$as_me:$LINENO: checking for $ac_header" >&5
10940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 else
10944 eval "$as_ac_Header=\$ac_header_preproc"
10946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10951 cat >>confdefs.h <<_ACEOF
10952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10953 _ACEOF
10957 done
10959 if test "$ac_cv_header_pthread_h"; then
10960 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10961 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10962 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965 ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-lpthread $LIBS"
10967 cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h. */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10974 /* Override any gcc2 internal prototype to avoid an error. */
10975 #ifdef __cplusplus
10976 extern "C"
10977 #endif
10978 /* We use char because int might match the return type of a gcc2
10979 builtin and then its argument prototype would still apply. */
10980 char pthread_self ();
10982 main ()
10984 pthread_self ();
10986 return 0;
10988 _ACEOF
10989 rm -f conftest.$ac_objext conftest$ac_exeext
10990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991 (eval $ac_link) 2>conftest.er1
10992 ac_status=$?
10993 grep -v '^ *+' conftest.er1 >conftest.err
10994 rm -f conftest.er1
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
10998 { ac_try='test -z "$ac_c_werror_flag"
10999 || test ! -s conftest.err'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; } &&
11005 { ac_try='test -s conftest$ac_exeext'
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; }; then
11011 ac_cv_lib_pthread_pthread_self=yes
11012 else
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ac_cv_lib_pthread_pthread_self=no
11018 rm -f conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11020 LIBS=$ac_check_lib_save_LIBS
11022 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11023 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
11024 if test $ac_cv_lib_pthread_pthread_self = yes; then
11025 HAVE_GTK_AND_PTHREAD=yes
11029 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11030 GTK_LIBS="$GTK_LIBS -lpthread"
11032 cat >>confdefs.h <<\_ACEOF
11033 #define HAVE_GTK_AND_PTHREAD 1
11034 _ACEOF
11040 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11041 if test x"${HAVE_X11R5}" = xyes; then
11042 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11043 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11044 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 else
11047 cat >conftest.$ac_ext <<_ACEOF
11048 /* confdefs.h. */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11054 #include <X11/Intrinsic.h>
11055 #include <X11/Xaw/Simple.h>
11057 main ()
11061 return 0;
11063 _ACEOF
11064 rm -f conftest.$ac_objext conftest$ac_exeext
11065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>conftest.er1
11067 ac_status=$?
11068 grep -v '^ *+' conftest.er1 >conftest.err
11069 rm -f conftest.er1
11070 cat conftest.err >&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } &&
11073 { ac_try='test -z "$ac_c_werror_flag"
11074 || test ! -s conftest.err'
11075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076 (eval $ac_try) 2>&5
11077 ac_status=$?
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; } &&
11080 { ac_try='test -s conftest$ac_exeext'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; }; then
11086 emacs_cv_x11_version_5_with_xaw=yes
11087 else
11088 echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11091 emacs_cv_x11_version_5_with_xaw=no
11093 rm -f conftest.err conftest.$ac_objext \
11094 conftest$ac_exeext conftest.$ac_ext
11097 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11098 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11099 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11100 USE_X_TOOLKIT=LUCID
11101 else
11102 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11103 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11104 USE_X_TOOLKIT=none
11106 else
11107 USE_X_TOOLKIT=none
11111 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11113 if test "${USE_X_TOOLKIT}" != "none"; then
11114 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11115 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11116 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 else
11119 cat >conftest.$ac_ext <<_ACEOF
11120 /* confdefs.h. */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11125 #include <X11/Intrinsic.h>
11127 main ()
11129 #if XtSpecificationRelease < 6
11130 fail;
11131 #endif
11134 return 0;
11136 _ACEOF
11137 rm -f conftest.$ac_objext conftest$ac_exeext
11138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11139 (eval $ac_link) 2>conftest.er1
11140 ac_status=$?
11141 grep -v '^ *+' conftest.er1 >conftest.err
11142 rm -f conftest.er1
11143 cat conftest.err >&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } &&
11146 { ac_try='test -z "$ac_c_werror_flag"
11147 || test ! -s conftest.err'
11148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149 (eval $ac_try) 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; } &&
11153 { ac_try='test -s conftest$ac_exeext'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 emacs_cv_x11_toolkit_version_6=yes
11160 else
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11164 emacs_cv_x11_toolkit_version_6=no
11166 rm -f conftest.err conftest.$ac_objext \
11167 conftest$ac_exeext conftest.$ac_ext
11170 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11171 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11172 echo "$as_me:$LINENO: result: 6 or newer" >&5
11173 echo "${ECHO_T}6 or newer" >&6
11175 cat >>confdefs.h <<\_ACEOF
11176 #define HAVE_X11XTR6 1
11177 _ACEOF
11179 else
11180 echo "$as_me:$LINENO: result: before 6" >&5
11181 echo "${ECHO_T}before 6" >&6
11184 OLDLIBS="$LIBS"
11185 if test x$HAVE_X11XTR6 = xyes; then
11186 LIBS="-lXt -lSM -lICE $LIBS"
11187 else
11188 LIBS="-lXt $LIBS"
11191 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11192 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11193 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196 ac_check_lib_save_LIBS=$LIBS
11197 LIBS="-lXmu $LIBS"
11198 cat >conftest.$ac_ext <<_ACEOF
11199 /* confdefs.h. */
11200 _ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11205 /* Override any gcc2 internal prototype to avoid an error. */
11206 #ifdef __cplusplus
11207 extern "C"
11208 #endif
11209 /* We use char because int might match the return type of a gcc2
11210 builtin and then its argument prototype would still apply. */
11211 char XmuConvertStandardSelection ();
11213 main ()
11215 XmuConvertStandardSelection ();
11217 return 0;
11219 _ACEOF
11220 rm -f conftest.$ac_objext conftest$ac_exeext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11222 (eval $ac_link) 2>conftest.er1
11223 ac_status=$?
11224 grep -v '^ *+' conftest.er1 >conftest.err
11225 rm -f conftest.er1
11226 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try='test -z "$ac_c_werror_flag"
11230 || test ! -s conftest.err'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11233 ac_status=$?
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; } &&
11236 { ac_try='test -s conftest$ac_exeext'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11239 ac_status=$?
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; }; then
11242 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11243 else
11244 echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11247 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11249 rm -f conftest.err conftest.$ac_objext \
11250 conftest$ac_exeext conftest.$ac_ext
11251 LIBS=$ac_check_lib_save_LIBS
11253 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11254 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11255 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11256 cat >>confdefs.h <<_ACEOF
11257 #define HAVE_LIBXMU 1
11258 _ACEOF
11260 LIBS="-lXmu $LIBS"
11264 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11267 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11268 if test "${HAVE_X11}" = "yes"; then
11269 if test "${USE_X_TOOLKIT}" != "none"; then
11271 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11272 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11273 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 else
11276 ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-lXext $LIBS"
11278 cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h. */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11285 /* Override any gcc2 internal prototype to avoid an error. */
11286 #ifdef __cplusplus
11287 extern "C"
11288 #endif
11289 /* We use char because int might match the return type of a gcc2
11290 builtin and then its argument prototype would still apply. */
11291 char XShapeQueryExtension ();
11293 main ()
11295 XShapeQueryExtension ();
11297 return 0;
11299 _ACEOF
11300 rm -f conftest.$ac_objext conftest$ac_exeext
11301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11302 (eval $ac_link) 2>conftest.er1
11303 ac_status=$?
11304 grep -v '^ *+' conftest.er1 >conftest.err
11305 rm -f conftest.er1
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } &&
11309 { ac_try='test -z "$ac_c_werror_flag"
11310 || test ! -s conftest.err'
11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11313 ac_status=$?
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; } &&
11316 { ac_try='test -s conftest$ac_exeext'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; }; then
11322 ac_cv_lib_Xext_XShapeQueryExtension=yes
11323 else
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_cv_lib_Xext_XShapeQueryExtension=no
11329 rm -f conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11331 LIBS=$ac_check_lib_save_LIBS
11333 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11334 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11335 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11336 cat >>confdefs.h <<_ACEOF
11337 #define HAVE_LIBXEXT 1
11338 _ACEOF
11340 LIBS="-lXext $LIBS"
11347 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11348 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11349 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11350 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11351 echo $ECHO_N "(cached) $ECHO_C" >&6
11352 else
11353 cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h. */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 #include <Xm/Xm.h>
11361 main ()
11363 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11364 int x = 5;
11365 #else
11366 Motif version prior to 2.1.
11367 #endif
11369 return 0;
11371 _ACEOF
11372 rm -f conftest.$ac_objext
11373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11374 (eval $ac_compile) 2>conftest.er1
11375 ac_status=$?
11376 grep -v '^ *+' conftest.er1 >conftest.err
11377 rm -f conftest.er1
11378 cat conftest.err >&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } &&
11381 { ac_try='test -z "$ac_c_werror_flag"
11382 || test ! -s conftest.err'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; } &&
11388 { ac_try='test -s conftest.$ac_objext'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; }; then
11394 emacs_cv_motif_version_2_1=yes
11395 else
11396 echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11399 emacs_cv_motif_version_2_1=no
11401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11403 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11404 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11405 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11406 if test $emacs_cv_motif_version_2_1 = yes; then
11407 HAVE_LIBXP=no
11409 cat >>confdefs.h <<\_ACEOF
11410 #define HAVE_MOTIF_2_1 1
11411 _ACEOF
11413 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11414 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11415 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 else
11418 ac_check_lib_save_LIBS=$LIBS
11419 LIBS="-lXp $LIBS"
11420 cat >conftest.$ac_ext <<_ACEOF
11421 /* confdefs.h. */
11422 _ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11427 /* Override any gcc2 internal prototype to avoid an error. */
11428 #ifdef __cplusplus
11429 extern "C"
11430 #endif
11431 /* We use char because int might match the return type of a gcc2
11432 builtin and then its argument prototype would still apply. */
11433 char XpCreateContext ();
11435 main ()
11437 XpCreateContext ();
11439 return 0;
11441 _ACEOF
11442 rm -f conftest.$ac_objext conftest$ac_exeext
11443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11444 (eval $ac_link) 2>conftest.er1
11445 ac_status=$?
11446 grep -v '^ *+' conftest.er1 >conftest.err
11447 rm -f conftest.er1
11448 cat conftest.err >&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } &&
11451 { ac_try='test -z "$ac_c_werror_flag"
11452 || test ! -s conftest.err'
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; } &&
11458 { ac_try='test -s conftest$ac_exeext'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
11464 ac_cv_lib_Xp_XpCreateContext=yes
11465 else
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11469 ac_cv_lib_Xp_XpCreateContext=no
11471 rm -f conftest.err conftest.$ac_objext \
11472 conftest$ac_exeext conftest.$ac_ext
11473 LIBS=$ac_check_lib_save_LIBS
11475 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11476 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11477 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11478 HAVE_LIBXP=yes
11481 if test ${HAVE_LIBXP} = yes; then
11483 cat >>confdefs.h <<\_ACEOF
11484 #define HAVE_LIBXP 1
11485 _ACEOF
11488 else
11489 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11490 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11491 if test "${emacs_cv_lesstif+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 else
11494 # We put this in CFLAGS temporarily to precede other -I options
11495 # that might be in CFLAGS temporarily.
11496 # We put this in CPPFLAGS where it precedes the other -I options.
11497 OLD_CPPFLAGS=$CPPFLAGS
11498 OLD_CFLAGS=$CFLAGS
11499 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11500 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11501 cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h. */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11509 main ()
11511 int x = 5;
11513 return 0;
11515 _ACEOF
11516 rm -f conftest.$ac_objext
11517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11518 (eval $ac_compile) 2>conftest.er1
11519 ac_status=$?
11520 grep -v '^ *+' conftest.er1 >conftest.err
11521 rm -f conftest.er1
11522 cat conftest.err >&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } &&
11525 { ac_try='test -z "$ac_c_werror_flag"
11526 || test ! -s conftest.err'
11527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528 (eval $ac_try) 2>&5
11529 ac_status=$?
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }; } &&
11532 { ac_try='test -s conftest.$ac_objext'
11533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11534 (eval $ac_try) 2>&5
11535 ac_status=$?
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; }; then
11538 emacs_cv_lesstif=yes
11539 else
11540 echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11543 emacs_cv_lesstif=no
11545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11547 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11548 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11549 if test $emacs_cv_lesstif = yes; then
11550 # Make sure this -I option remains in CPPFLAGS after it is set
11551 # back to REAL_CPPFLAGS.
11552 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11553 # have those other -I options anyway. Ultimately, having this
11554 # directory ultimately in CPPFLAGS will be enough.
11555 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11556 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11557 else
11558 CFLAGS=$OLD_CFLAGS
11559 CPPFLAGS=$OLD_CPPFLAGS
11564 ### Is -lXaw3d available?
11565 HAVE_XAW3D=no
11566 if test "${HAVE_X11}" = "yes"; then
11567 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11568 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11569 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11570 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573 cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h. */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 #include <X11/Xaw3d/Scrollbar.h>
11580 _ACEOF
11581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } >/dev/null; then
11589 if test -s conftest.err; then
11590 ac_cpp_err=$ac_c_preproc_warn_flag
11591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11592 else
11593 ac_cpp_err=
11595 else
11596 ac_cpp_err=yes
11598 if test -z "$ac_cpp_err"; then
11599 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11600 else
11601 echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11604 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11606 rm -f conftest.err conftest.$ac_ext
11608 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11609 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11610 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11611 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11612 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11613 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616 ac_check_lib_save_LIBS=$LIBS
11617 LIBS="-lXaw3d $LIBS"
11618 cat >conftest.$ac_ext <<_ACEOF
11619 /* confdefs.h. */
11620 _ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11625 /* Override any gcc2 internal prototype to avoid an error. */
11626 #ifdef __cplusplus
11627 extern "C"
11628 #endif
11629 /* We use char because int might match the return type of a gcc2
11630 builtin and then its argument prototype would still apply. */
11631 char XawScrollbarSetThumb ();
11633 main ()
11635 XawScrollbarSetThumb ();
11637 return 0;
11639 _ACEOF
11640 rm -f conftest.$ac_objext conftest$ac_exeext
11641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11642 (eval $ac_link) 2>conftest.er1
11643 ac_status=$?
11644 grep -v '^ *+' conftest.er1 >conftest.err
11645 rm -f conftest.er1
11646 cat conftest.err >&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } &&
11649 { ac_try='test -z "$ac_c_werror_flag"
11650 || test ! -s conftest.err'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; } &&
11656 { ac_try='test -s conftest$ac_exeext'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; }; then
11662 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11663 else
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11667 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11669 rm -f conftest.err conftest.$ac_objext \
11670 conftest$ac_exeext conftest.$ac_ext
11671 LIBS=$ac_check_lib_save_LIBS
11673 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11674 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11675 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11676 HAVE_XAW3D=yes
11682 if test "${HAVE_XAW3D}" = "yes"; then
11684 cat >>confdefs.h <<\_ACEOF
11685 #define HAVE_XAW3D 1
11686 _ACEOF
11694 USE_TOOLKIT_SCROLL_BARS=no
11695 if test "${with_toolkit_scroll_bars}" != "no"; then
11696 if test "${USE_X_TOOLKIT}" != "none"; then
11697 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11698 cat >>confdefs.h <<\_ACEOF
11699 #define USE_TOOLKIT_SCROLL_BARS 1
11700 _ACEOF
11702 HAVE_XAW3D=no
11703 USE_TOOLKIT_SCROLL_BARS=yes
11704 elif test "${HAVE_XAW3D}" = "yes"; then
11705 cat >>confdefs.h <<\_ACEOF
11706 #define USE_TOOLKIT_SCROLL_BARS 1
11707 _ACEOF
11709 USE_TOOLKIT_SCROLL_BARS=yes
11711 elif test "${HAVE_GTK}" = "yes"; then
11712 cat >>confdefs.h <<\_ACEOF
11713 #define USE_TOOLKIT_SCROLL_BARS 1
11714 _ACEOF
11716 USE_TOOLKIT_SCROLL_BARS=yes
11717 elif test "${HAVE_CARBON}" = "yes"; then
11718 cat >>confdefs.h <<\_ACEOF
11719 #define USE_TOOLKIT_SCROLL_BARS 1
11720 _ACEOF
11722 USE_TOOLKIT_SCROLL_BARS=yes
11726 cat >conftest.$ac_ext <<_ACEOF
11727 /* confdefs.h. */
11728 _ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11733 #include <X11/Xlib.h>
11734 #include <X11/Xresource.h>
11736 main ()
11738 XIMProc callback;
11740 return 0;
11742 _ACEOF
11743 rm -f conftest.$ac_objext
11744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11745 (eval $ac_compile) 2>conftest.er1
11746 ac_status=$?
11747 grep -v '^ *+' conftest.er1 >conftest.err
11748 rm -f conftest.er1
11749 cat conftest.err >&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } &&
11752 { ac_try='test -z "$ac_c_werror_flag"
11753 || test ! -s conftest.err'
11754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11755 (eval $ac_try) 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; } &&
11759 { ac_try='test -s conftest.$ac_objext'
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11765 HAVE_XIM=yes
11767 cat >>confdefs.h <<\_ACEOF
11768 #define HAVE_XIM 1
11769 _ACEOF
11771 else
11772 echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11775 HAVE_XIM=no
11777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11780 if test "${with_xim}" != "no"; then
11782 cat >>confdefs.h <<\_ACEOF
11783 #define USE_XIM 1
11784 _ACEOF
11789 if test "${HAVE_XIM}" != "no"; then
11790 late_CFLAGS=$CFLAGS
11791 if test "$GCC" = yes; then
11792 CFLAGS="$CFLAGS --pedantic-errors"
11794 cat >conftest.$ac_ext <<_ACEOF
11795 /* confdefs.h. */
11796 _ACEOF
11797 cat confdefs.h >>conftest.$ac_ext
11798 cat >>conftest.$ac_ext <<_ACEOF
11799 /* end confdefs.h. */
11801 #include <X11/Xlib.h>
11802 #include <X11/Xresource.h>
11804 main ()
11806 Display *display;
11807 XrmDatabase db;
11808 char *res_name;
11809 char *res_class;
11810 XIMProc callback;
11811 XPointer *client_data;
11812 #ifndef __GNUC__
11813 /* If we're not using GCC, it's probably not XFree86, and this is
11814 probably right, but we can't use something like --pedantic-errors. */
11815 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11816 char*, XIMProc, XPointer*);
11817 #endif
11818 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11819 client_data);
11821 return 0;
11823 _ACEOF
11824 rm -f conftest.$ac_objext
11825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11826 (eval $ac_compile) 2>conftest.er1
11827 ac_status=$?
11828 grep -v '^ *+' conftest.er1 >conftest.err
11829 rm -f conftest.er1
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
11833 { ac_try='test -z "$ac_c_werror_flag"
11834 || test ! -s conftest.err'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; } &&
11840 { ac_try='test -s conftest.$ac_objext'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11843 ac_status=$?
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; }; then
11846 emacs_cv_arg6_star=yes
11847 else
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11854 if test "$emacs_cv_arg6_star" = yes; then
11855 cat >>confdefs.h <<\_ACEOF
11856 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11857 _ACEOF
11859 else
11860 cat >>confdefs.h <<\_ACEOF
11861 #define XRegisterIMInstantiateCallback_arg6 XPointer
11862 _ACEOF
11865 CFLAGS=$late_CFLAGS
11868 ### Use -lXpm if available, unless `--with-xpm=no'.
11869 HAVE_XPM=no
11870 if test "${HAVE_X11}" = "yes"; then
11871 if test "${with_xpm}" != "no"; then
11872 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11873 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11874 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11875 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11879 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11880 else
11881 # Is the header compilable?
11882 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11883 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11884 cat >conftest.$ac_ext <<_ACEOF
11885 /* confdefs.h. */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11890 $ac_includes_default
11891 #include <X11/xpm.h>
11892 _ACEOF
11893 rm -f conftest.$ac_objext
11894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11895 (eval $ac_compile) 2>conftest.er1
11896 ac_status=$?
11897 grep -v '^ *+' conftest.er1 >conftest.err
11898 rm -f conftest.er1
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
11902 { ac_try='test -z "$ac_c_werror_flag"
11903 || test ! -s conftest.err'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; } &&
11909 { ac_try='test -s conftest.$ac_objext'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11912 ac_status=$?
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; }; then
11915 ac_header_compiler=yes
11916 else
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ac_header_compiler=no
11922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11924 echo "${ECHO_T}$ac_header_compiler" >&6
11926 # Is the header present?
11927 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11928 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 #include <X11/xpm.h>
11936 _ACEOF
11937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11939 ac_status=$?
11940 grep -v '^ *+' conftest.er1 >conftest.err
11941 rm -f conftest.er1
11942 cat conftest.err >&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } >/dev/null; then
11945 if test -s conftest.err; then
11946 ac_cpp_err=$ac_c_preproc_warn_flag
11947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11948 else
11949 ac_cpp_err=
11951 else
11952 ac_cpp_err=yes
11954 if test -z "$ac_cpp_err"; then
11955 ac_header_preproc=yes
11956 else
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11960 ac_header_preproc=no
11962 rm -f conftest.err conftest.$ac_ext
11963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11964 echo "${ECHO_T}$ac_header_preproc" >&6
11966 # So? What about this header?
11967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11968 yes:no: )
11969 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11970 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11972 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11973 ac_header_preproc=yes
11975 no:yes:* )
11976 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11977 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11978 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11979 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11980 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11981 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11982 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11983 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11985 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11986 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11987 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11989 cat <<\_ASBOX
11990 ## ------------------------------------------ ##
11991 ## Report this to the AC_PACKAGE_NAME lists. ##
11992 ## ------------------------------------------ ##
11993 _ASBOX
11995 sed "s/^/$as_me: WARNING: /" >&2
11997 esac
11998 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11999 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12000 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003 ac_cv_header_X11_xpm_h=$ac_header_preproc
12005 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12006 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12009 if test $ac_cv_header_X11_xpm_h = yes; then
12010 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12011 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
12012 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12013 echo $ECHO_N "(cached) $ECHO_C" >&6
12014 else
12015 ac_check_lib_save_LIBS=$LIBS
12016 LIBS="-lXpm -lX11 $LIBS"
12017 cat >conftest.$ac_ext <<_ACEOF
12018 /* confdefs.h. */
12019 _ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12024 /* Override any gcc2 internal prototype to avoid an error. */
12025 #ifdef __cplusplus
12026 extern "C"
12027 #endif
12028 /* We use char because int might match the return type of a gcc2
12029 builtin and then its argument prototype would still apply. */
12030 char XpmReadFileToPixmap ();
12032 main ()
12034 XpmReadFileToPixmap ();
12036 return 0;
12038 _ACEOF
12039 rm -f conftest.$ac_objext conftest$ac_exeext
12040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12041 (eval $ac_link) 2>conftest.er1
12042 ac_status=$?
12043 grep -v '^ *+' conftest.er1 >conftest.err
12044 rm -f conftest.er1
12045 cat conftest.err >&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } &&
12048 { ac_try='test -z "$ac_c_werror_flag"
12049 || test ! -s conftest.err'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; } &&
12055 { ac_try='test -s conftest$ac_exeext'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12062 else
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12066 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12068 rm -f conftest.err conftest.$ac_objext \
12069 conftest$ac_exeext conftest.$ac_ext
12070 LIBS=$ac_check_lib_save_LIBS
12072 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12073 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12074 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12075 HAVE_XPM=yes
12081 if test "${HAVE_XPM}" = "yes"; then
12082 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12083 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12084 cat >conftest.$ac_ext <<_ACEOF
12085 /* confdefs.h. */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 #include "X11/xpm.h"
12091 #ifndef XpmReturnAllocPixels
12092 no_return_alloc_pixels
12093 #endif
12095 _ACEOF
12096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12097 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12098 HAVE_XPM=no
12099 else
12100 HAVE_XPM=yes
12102 rm -f conftest*
12105 if test "${HAVE_XPM}" = "yes"; then
12106 echo "$as_me:$LINENO: result: yes" >&5
12107 echo "${ECHO_T}yes" >&6
12108 else
12109 echo "$as_me:$LINENO: result: no" >&5
12110 echo "${ECHO_T}no" >&6
12115 if test "${HAVE_XPM}" = "yes"; then
12117 cat >>confdefs.h <<\_ACEOF
12118 #define HAVE_XPM 1
12119 _ACEOF
12124 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12125 HAVE_JPEG=no
12126 if test "${HAVE_X11}" = "yes"; then
12127 if test "${with_jpeg}" != "no"; then
12128 if test "${ac_cv_header_jerror_h+set}" = set; then
12129 echo "$as_me:$LINENO: checking for jerror.h" >&5
12130 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12131 if test "${ac_cv_header_jerror_h+set}" = set; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12135 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12136 else
12137 # Is the header compilable?
12138 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12139 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12140 cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h. */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146 $ac_includes_default
12147 #include <jerror.h>
12148 _ACEOF
12149 rm -f conftest.$ac_objext
12150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12151 (eval $ac_compile) 2>conftest.er1
12152 ac_status=$?
12153 grep -v '^ *+' conftest.er1 >conftest.err
12154 rm -f conftest.er1
12155 cat conftest.err >&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } &&
12158 { ac_try='test -z "$ac_c_werror_flag"
12159 || test ! -s conftest.err'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } &&
12165 { ac_try='test -s conftest.$ac_objext'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171 ac_header_compiler=yes
12172 else
12173 echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12176 ac_header_compiler=no
12178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12180 echo "${ECHO_T}$ac_header_compiler" >&6
12182 # Is the header present?
12183 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12184 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12185 cat >conftest.$ac_ext <<_ACEOF
12186 /* confdefs.h. */
12187 _ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12191 #include <jerror.h>
12192 _ACEOF
12193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12195 ac_status=$?
12196 grep -v '^ *+' conftest.er1 >conftest.err
12197 rm -f conftest.er1
12198 cat conftest.err >&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } >/dev/null; then
12201 if test -s conftest.err; then
12202 ac_cpp_err=$ac_c_preproc_warn_flag
12203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12204 else
12205 ac_cpp_err=
12207 else
12208 ac_cpp_err=yes
12210 if test -z "$ac_cpp_err"; then
12211 ac_header_preproc=yes
12212 else
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12216 ac_header_preproc=no
12218 rm -f conftest.err conftest.$ac_ext
12219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12220 echo "${ECHO_T}$ac_header_preproc" >&6
12222 # So? What about this header?
12223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12224 yes:no: )
12225 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12226 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12228 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12229 ac_header_preproc=yes
12231 no:yes:* )
12232 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12233 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12235 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12237 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12238 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12239 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12240 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12241 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12242 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12243 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12245 cat <<\_ASBOX
12246 ## ------------------------------------------ ##
12247 ## Report this to the AC_PACKAGE_NAME lists. ##
12248 ## ------------------------------------------ ##
12249 _ASBOX
12251 sed "s/^/$as_me: WARNING: /" >&2
12253 esac
12254 echo "$as_me:$LINENO: checking for jerror.h" >&5
12255 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12256 if test "${ac_cv_header_jerror_h+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259 ac_cv_header_jerror_h=$ac_header_preproc
12261 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12262 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12265 if test $ac_cv_header_jerror_h = yes; then
12266 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12267 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12268 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271 ac_check_lib_save_LIBS=$LIBS
12272 LIBS="-ljpeg $LIBS"
12273 cat >conftest.$ac_ext <<_ACEOF
12274 /* confdefs.h. */
12275 _ACEOF
12276 cat confdefs.h >>conftest.$ac_ext
12277 cat >>conftest.$ac_ext <<_ACEOF
12278 /* end confdefs.h. */
12280 /* Override any gcc2 internal prototype to avoid an error. */
12281 #ifdef __cplusplus
12282 extern "C"
12283 #endif
12284 /* We use char because int might match the return type of a gcc2
12285 builtin and then its argument prototype would still apply. */
12286 char jpeg_destroy_compress ();
12288 main ()
12290 jpeg_destroy_compress ();
12292 return 0;
12294 _ACEOF
12295 rm -f conftest.$ac_objext conftest$ac_exeext
12296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12297 (eval $ac_link) 2>conftest.er1
12298 ac_status=$?
12299 grep -v '^ *+' conftest.er1 >conftest.err
12300 rm -f conftest.er1
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } &&
12304 { ac_try='test -z "$ac_c_werror_flag"
12305 || test ! -s conftest.err'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; } &&
12311 { ac_try='test -s conftest$ac_exeext'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12317 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12318 else
12319 echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12322 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12324 rm -f conftest.err conftest.$ac_objext \
12325 conftest$ac_exeext conftest.$ac_ext
12326 LIBS=$ac_check_lib_save_LIBS
12328 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12329 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12330 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12331 HAVE_JPEG=yes
12340 if test "${HAVE_JPEG}" = "yes"; then
12341 cat >>confdefs.h <<\_ACEOF
12342 #define HAVE_JPEG 1
12343 _ACEOF
12345 cat >conftest.$ac_ext <<_ACEOF
12346 /* confdefs.h. */
12347 _ACEOF
12348 cat confdefs.h >>conftest.$ac_ext
12349 cat >>conftest.$ac_ext <<_ACEOF
12350 /* end confdefs.h. */
12351 #include <jpeglib.h>
12352 version=JPEG_LIB_VERSION
12354 _ACEOF
12355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12356 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12357 cat >>confdefs.h <<\_ACEOF
12358 #define HAVE_JPEG 1
12359 _ACEOF
12361 else
12362 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12363 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12364 HAVE_JPEG=no
12366 rm -f conftest*
12371 ### Use -lpng if available, unless `--with-png=no'.
12372 HAVE_PNG=no
12373 if test "${HAVE_X11}" = "yes"; then
12374 if test "${with_png}" != "no"; then
12375 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12376 # in /usr/include/libpng.
12379 for ac_header in png.h libpng/png.h
12381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12383 echo "$as_me:$LINENO: checking for $ac_header" >&5
12384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12390 else
12391 # Is the header compilable?
12392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12394 cat >conftest.$ac_ext <<_ACEOF
12395 /* confdefs.h. */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12400 $ac_includes_default
12401 #include <$ac_header>
12402 _ACEOF
12403 rm -f conftest.$ac_objext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12405 (eval $ac_compile) 2>conftest.er1
12406 ac_status=$?
12407 grep -v '^ *+' conftest.er1 >conftest.err
12408 rm -f conftest.er1
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try='test -z "$ac_c_werror_flag"
12413 || test ! -s conftest.err'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try='test -s conftest.$ac_objext'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12422 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12425 ac_header_compiler=yes
12426 else
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12430 ac_header_compiler=no
12432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12434 echo "${ECHO_T}$ac_header_compiler" >&6
12436 # Is the header present?
12437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12439 cat >conftest.$ac_ext <<_ACEOF
12440 /* confdefs.h. */
12441 _ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12445 #include <$ac_header>
12446 _ACEOF
12447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12449 ac_status=$?
12450 grep -v '^ *+' conftest.er1 >conftest.err
12451 rm -f conftest.er1
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } >/dev/null; then
12455 if test -s conftest.err; then
12456 ac_cpp_err=$ac_c_preproc_warn_flag
12457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12458 else
12459 ac_cpp_err=
12461 else
12462 ac_cpp_err=yes
12464 if test -z "$ac_cpp_err"; then
12465 ac_header_preproc=yes
12466 else
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12470 ac_header_preproc=no
12472 rm -f conftest.err conftest.$ac_ext
12473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12474 echo "${ECHO_T}$ac_header_preproc" >&6
12476 # So? What about this header?
12477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12478 yes:no: )
12479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12483 ac_header_preproc=yes
12485 no:yes:* )
12486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12499 cat <<\_ASBOX
12500 ## ------------------------------------------ ##
12501 ## Report this to the AC_PACKAGE_NAME lists. ##
12502 ## ------------------------------------------ ##
12503 _ASBOX
12505 sed "s/^/$as_me: WARNING: /" >&2
12507 esac
12508 echo "$as_me:$LINENO: checking for $ac_header" >&5
12509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 else
12513 eval "$as_ac_Header=\$ac_header_preproc"
12515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12520 cat >>confdefs.h <<_ACEOF
12521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12522 _ACEOF
12526 done
12528 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12529 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12530 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12531 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 else
12534 ac_check_lib_save_LIBS=$LIBS
12535 LIBS="-lpng -lz -lm $LIBS"
12536 cat >conftest.$ac_ext <<_ACEOF
12537 /* confdefs.h. */
12538 _ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12543 /* Override any gcc2 internal prototype to avoid an error. */
12544 #ifdef __cplusplus
12545 extern "C"
12546 #endif
12547 /* We use char because int might match the return type of a gcc2
12548 builtin and then its argument prototype would still apply. */
12549 char png_get_channels ();
12551 main ()
12553 png_get_channels ();
12555 return 0;
12557 _ACEOF
12558 rm -f conftest.$ac_objext conftest$ac_exeext
12559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12560 (eval $ac_link) 2>conftest.er1
12561 ac_status=$?
12562 grep -v '^ *+' conftest.er1 >conftest.err
12563 rm -f conftest.er1
12564 cat conftest.err >&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } &&
12567 { ac_try='test -z "$ac_c_werror_flag"
12568 || test ! -s conftest.err'
12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12571 ac_status=$?
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; } &&
12574 { ac_try='test -s conftest$ac_exeext'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; }; then
12580 ac_cv_lib_png_png_get_channels=yes
12581 else
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12585 ac_cv_lib_png_png_get_channels=no
12587 rm -f conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12589 LIBS=$ac_check_lib_save_LIBS
12591 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12592 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12593 if test $ac_cv_lib_png_png_get_channels = yes; then
12594 HAVE_PNG=yes
12600 if test "${HAVE_PNG}" = "yes"; then
12602 cat >>confdefs.h <<\_ACEOF
12603 #define HAVE_PNG 1
12604 _ACEOF
12609 ### Use -ltiff if available, unless `--with-tiff=no'.
12610 HAVE_TIFF=no
12611 if test "${HAVE_X11}" = "yes"; then
12612 if test "${with_tiff}" != "no"; then
12613 if test "${ac_cv_header_tiffio_h+set}" = set; then
12614 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12615 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12616 if test "${ac_cv_header_tiffio_h+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12619 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12620 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12621 else
12622 # Is the header compilable?
12623 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12624 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12625 cat >conftest.$ac_ext <<_ACEOF
12626 /* confdefs.h. */
12627 _ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h. */
12631 $ac_includes_default
12632 #include <tiffio.h>
12633 _ACEOF
12634 rm -f conftest.$ac_objext
12635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12636 (eval $ac_compile) 2>conftest.er1
12637 ac_status=$?
12638 grep -v '^ *+' conftest.er1 >conftest.err
12639 rm -f conftest.er1
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } &&
12643 { ac_try='test -z "$ac_c_werror_flag"
12644 || test ! -s conftest.err'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12647 ac_status=$?
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; } &&
12650 { ac_try='test -s conftest.$ac_objext'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; }; then
12656 ac_header_compiler=yes
12657 else
12658 echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12661 ac_header_compiler=no
12663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12665 echo "${ECHO_T}$ac_header_compiler" >&6
12667 # Is the header present?
12668 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12669 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12670 cat >conftest.$ac_ext <<_ACEOF
12671 /* confdefs.h. */
12672 _ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h. */
12676 #include <tiffio.h>
12677 _ACEOF
12678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12680 ac_status=$?
12681 grep -v '^ *+' conftest.er1 >conftest.err
12682 rm -f conftest.er1
12683 cat conftest.err >&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } >/dev/null; then
12686 if test -s conftest.err; then
12687 ac_cpp_err=$ac_c_preproc_warn_flag
12688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12689 else
12690 ac_cpp_err=
12692 else
12693 ac_cpp_err=yes
12695 if test -z "$ac_cpp_err"; then
12696 ac_header_preproc=yes
12697 else
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12701 ac_header_preproc=no
12703 rm -f conftest.err conftest.$ac_ext
12704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12705 echo "${ECHO_T}$ac_header_preproc" >&6
12707 # So? What about this header?
12708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12709 yes:no: )
12710 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12711 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12712 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12713 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12714 ac_header_preproc=yes
12716 no:yes:* )
12717 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12718 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12719 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12720 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12721 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12722 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12723 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12724 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12725 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12726 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12727 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12728 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12730 cat <<\_ASBOX
12731 ## ------------------------------------------ ##
12732 ## Report this to the AC_PACKAGE_NAME lists. ##
12733 ## ------------------------------------------ ##
12734 _ASBOX
12736 sed "s/^/$as_me: WARNING: /" >&2
12738 esac
12739 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12740 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12741 if test "${ac_cv_header_tiffio_h+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12743 else
12744 ac_cv_header_tiffio_h=$ac_header_preproc
12746 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12747 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12750 if test $ac_cv_header_tiffio_h = yes; then
12751 tifflibs="-lz -lm"
12752 # At least one tiff package requires the jpeg library.
12753 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12754 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12755 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12756 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12758 else
12759 ac_check_lib_save_LIBS=$LIBS
12760 LIBS="-ltiff $tifflibs $LIBS"
12761 cat >conftest.$ac_ext <<_ACEOF
12762 /* confdefs.h. */
12763 _ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h. */
12768 /* Override any gcc2 internal prototype to avoid an error. */
12769 #ifdef __cplusplus
12770 extern "C"
12771 #endif
12772 /* We use char because int might match the return type of a gcc2
12773 builtin and then its argument prototype would still apply. */
12774 char TIFFGetVersion ();
12776 main ()
12778 TIFFGetVersion ();
12780 return 0;
12782 _ACEOF
12783 rm -f conftest.$ac_objext conftest$ac_exeext
12784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12785 (eval $ac_link) 2>conftest.er1
12786 ac_status=$?
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -z "$ac_c_werror_flag"
12793 || test ! -s conftest.err'
12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; } &&
12799 { ac_try='test -s conftest$ac_exeext'
12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801 (eval $ac_try) 2>&5
12802 ac_status=$?
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; }; then
12805 ac_cv_lib_tiff_TIFFGetVersion=yes
12806 else
12807 echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12810 ac_cv_lib_tiff_TIFFGetVersion=no
12812 rm -f conftest.err conftest.$ac_objext \
12813 conftest$ac_exeext conftest.$ac_ext
12814 LIBS=$ac_check_lib_save_LIBS
12816 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12817 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12818 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12819 HAVE_TIFF=yes
12827 if test "${HAVE_TIFF}" = "yes"; then
12829 cat >>confdefs.h <<\_ACEOF
12830 #define HAVE_TIFF 1
12831 _ACEOF
12836 ### Use -lgif if available, unless `--with-gif=no'.
12837 HAVE_GIF=no
12838 if test "${HAVE_X11}" = "yes"; then
12839 if test "${with_gif}" != "no"; then
12840 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12841 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12842 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12843 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12846 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12847 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12848 else
12849 # Is the header compilable?
12850 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12851 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12852 cat >conftest.$ac_ext <<_ACEOF
12853 /* confdefs.h. */
12854 _ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12858 $ac_includes_default
12859 #include <gif_lib.h>
12860 _ACEOF
12861 rm -f conftest.$ac_objext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12863 (eval $ac_compile) 2>conftest.er1
12864 ac_status=$?
12865 grep -v '^ *+' conftest.er1 >conftest.err
12866 rm -f conftest.er1
12867 cat conftest.err >&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } &&
12870 { ac_try='test -z "$ac_c_werror_flag"
12871 || test ! -s conftest.err'
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; } &&
12877 { ac_try='test -s conftest.$ac_objext'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12883 ac_header_compiler=yes
12884 else
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12888 ac_header_compiler=no
12890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12892 echo "${ECHO_T}$ac_header_compiler" >&6
12894 # Is the header present?
12895 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12896 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12897 cat >conftest.$ac_ext <<_ACEOF
12898 /* confdefs.h. */
12899 _ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h. */
12903 #include <gif_lib.h>
12904 _ACEOF
12905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } >/dev/null; then
12913 if test -s conftest.err; then
12914 ac_cpp_err=$ac_c_preproc_warn_flag
12915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12916 else
12917 ac_cpp_err=
12919 else
12920 ac_cpp_err=yes
12922 if test -z "$ac_cpp_err"; then
12923 ac_header_preproc=yes
12924 else
12925 echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12928 ac_header_preproc=no
12930 rm -f conftest.err conftest.$ac_ext
12931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12932 echo "${ECHO_T}$ac_header_preproc" >&6
12934 # So? What about this header?
12935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12936 yes:no: )
12937 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12938 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12939 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12940 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12941 ac_header_preproc=yes
12943 no:yes:* )
12944 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12945 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12946 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12947 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12948 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12949 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12950 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12951 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12952 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12953 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12954 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12955 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12957 cat <<\_ASBOX
12958 ## ------------------------------------------ ##
12959 ## Report this to the AC_PACKAGE_NAME lists. ##
12960 ## ------------------------------------------ ##
12961 _ASBOX
12963 sed "s/^/$as_me: WARNING: /" >&2
12965 esac
12966 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12967 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12968 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12970 else
12971 ac_cv_header_gif_lib_h=$ac_header_preproc
12973 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12974 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12977 if test $ac_cv_header_gif_lib_h = yes; then
12978 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12979 # Earlier versions can crash Emacs.
12980 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12981 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12982 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12983 echo $ECHO_N "(cached) $ECHO_C" >&6
12984 else
12985 ac_check_lib_save_LIBS=$LIBS
12986 LIBS="-lungif $LIBS"
12987 cat >conftest.$ac_ext <<_ACEOF
12988 /* confdefs.h. */
12989 _ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12994 /* Override any gcc2 internal prototype to avoid an error. */
12995 #ifdef __cplusplus
12996 extern "C"
12997 #endif
12998 /* We use char because int might match the return type of a gcc2
12999 builtin and then its argument prototype would still apply. */
13000 char EGifPutExtensionLast ();
13002 main ()
13004 EGifPutExtensionLast ();
13006 return 0;
13008 _ACEOF
13009 rm -f conftest.$ac_objext conftest$ac_exeext
13010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13011 (eval $ac_link) 2>conftest.er1
13012 ac_status=$?
13013 grep -v '^ *+' conftest.er1 >conftest.err
13014 rm -f conftest.er1
13015 cat conftest.err >&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } &&
13018 { ac_try='test -z "$ac_c_werror_flag"
13019 || test ! -s conftest.err'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13022 ac_status=$?
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; } &&
13025 { ac_try='test -s conftest$ac_exeext'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13028 ac_status=$?
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; }; then
13031 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13032 else
13033 echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13036 ac_cv_lib_ungif_EGifPutExtensionLast=no
13038 rm -f conftest.err conftest.$ac_objext \
13039 conftest$ac_exeext conftest.$ac_ext
13040 LIBS=$ac_check_lib_save_LIBS
13042 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13043 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13044 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13045 HAVE_GIF=yes
13053 if test "${HAVE_GIF}" = "yes"; then
13055 cat >>confdefs.h <<\_ACEOF
13056 #define HAVE_GIF 1
13057 _ACEOF
13062 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13063 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13064 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13065 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13069 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13070 else
13071 # Is the header compilable?
13072 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13073 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13074 cat >conftest.$ac_ext <<_ACEOF
13075 /* confdefs.h. */
13076 _ACEOF
13077 cat confdefs.h >>conftest.$ac_ext
13078 cat >>conftest.$ac_ext <<_ACEOF
13079 /* end confdefs.h. */
13080 $ac_includes_default
13081 #include <malloc/malloc.h>
13082 _ACEOF
13083 rm -f conftest.$ac_objext
13084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13085 (eval $ac_compile) 2>conftest.er1
13086 ac_status=$?
13087 grep -v '^ *+' conftest.er1 >conftest.err
13088 rm -f conftest.er1
13089 cat conftest.err >&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } &&
13092 { ac_try='test -z "$ac_c_werror_flag"
13093 || test ! -s conftest.err'
13094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095 (eval $ac_try) 2>&5
13096 ac_status=$?
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; } &&
13099 { ac_try='test -s conftest.$ac_objext'
13100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; }; then
13105 ac_header_compiler=yes
13106 else
13107 echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13110 ac_header_compiler=no
13112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13114 echo "${ECHO_T}$ac_header_compiler" >&6
13116 # Is the header present?
13117 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13118 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13119 cat >conftest.$ac_ext <<_ACEOF
13120 /* confdefs.h. */
13121 _ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13125 #include <malloc/malloc.h>
13126 _ACEOF
13127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13129 ac_status=$?
13130 grep -v '^ *+' conftest.er1 >conftest.err
13131 rm -f conftest.er1
13132 cat conftest.err >&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } >/dev/null; then
13135 if test -s conftest.err; then
13136 ac_cpp_err=$ac_c_preproc_warn_flag
13137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13138 else
13139 ac_cpp_err=
13141 else
13142 ac_cpp_err=yes
13144 if test -z "$ac_cpp_err"; then
13145 ac_header_preproc=yes
13146 else
13147 echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.$ac_ext >&5
13150 ac_header_preproc=no
13152 rm -f conftest.err conftest.$ac_ext
13153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13154 echo "${ECHO_T}$ac_header_preproc" >&6
13156 # So? What about this header?
13157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13158 yes:no: )
13159 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13160 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13161 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13162 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13163 ac_header_preproc=yes
13165 no:yes:* )
13166 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13167 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13168 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13169 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13171 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13173 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13175 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13176 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13177 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13179 cat <<\_ASBOX
13180 ## ------------------------------------------ ##
13181 ## Report this to the AC_PACKAGE_NAME lists. ##
13182 ## ------------------------------------------ ##
13183 _ASBOX
13185 sed "s/^/$as_me: WARNING: /" >&2
13187 esac
13188 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13189 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13190 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13195 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13196 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13199 if test $ac_cv_header_malloc_malloc_h = yes; then
13201 cat >>confdefs.h <<\_ACEOF
13202 #define HAVE_MALLOC_MALLOC_H 1
13203 _ACEOF
13209 ### Use Mac OS X Carbon API to implement GUI.
13210 if test "${HAVE_CARBON}" = "yes"; then
13212 cat >>confdefs.h <<\_ACEOF
13213 #define HAVE_CARBON 1
13214 _ACEOF
13216 ## Specify the install directory
13217 carbon_appdir=
13218 if test "${carbon_appdir_x}" != ""; then
13219 case ${carbon_appdir_x} in
13220 y | ye | yes) carbon_appdir=/Applications ;;
13221 * ) carbon_appdir=${carbon_appdir_x} ;;
13222 esac
13224 # We also have mouse menus.
13225 HAVE_MENUS=yes
13228 ### Use session management (-lSM -lICE) if available
13229 HAVE_X_SM=no
13230 if test "${HAVE_X11}" = "yes"; then
13231 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13232 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13233 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13234 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13237 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13238 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13239 else
13240 # Is the header compilable?
13241 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13242 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13243 cat >conftest.$ac_ext <<_ACEOF
13244 /* confdefs.h. */
13245 _ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13249 $ac_includes_default
13250 #include <X11/SM/SMlib.h>
13251 _ACEOF
13252 rm -f conftest.$ac_objext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254 (eval $ac_compile) 2>conftest.er1
13255 ac_status=$?
13256 grep -v '^ *+' conftest.er1 >conftest.err
13257 rm -f conftest.er1
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -z "$ac_c_werror_flag"
13262 || test ! -s conftest.err'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; } &&
13268 { ac_try='test -s conftest.$ac_objext'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; }; then
13274 ac_header_compiler=yes
13275 else
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13279 ac_header_compiler=no
13281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13283 echo "${ECHO_T}$ac_header_compiler" >&6
13285 # Is the header present?
13286 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13287 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13288 cat >conftest.$ac_ext <<_ACEOF
13289 /* confdefs.h. */
13290 _ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13294 #include <X11/SM/SMlib.h>
13295 _ACEOF
13296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } >/dev/null; then
13304 if test -s conftest.err; then
13305 ac_cpp_err=$ac_c_preproc_warn_flag
13306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13307 else
13308 ac_cpp_err=
13310 else
13311 ac_cpp_err=yes
13313 if test -z "$ac_cpp_err"; then
13314 ac_header_preproc=yes
13315 else
13316 echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13319 ac_header_preproc=no
13321 rm -f conftest.err conftest.$ac_ext
13322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13323 echo "${ECHO_T}$ac_header_preproc" >&6
13325 # So? What about this header?
13326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13327 yes:no: )
13328 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13329 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13330 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13331 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13332 ac_header_preproc=yes
13334 no:yes:* )
13335 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13336 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13337 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13338 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13339 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13340 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13342 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13344 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13345 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13346 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13348 cat <<\_ASBOX
13349 ## ------------------------------------------ ##
13350 ## Report this to the AC_PACKAGE_NAME lists. ##
13351 ## ------------------------------------------ ##
13352 _ASBOX
13354 sed "s/^/$as_me: WARNING: /" >&2
13356 esac
13357 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13358 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13359 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 else
13362 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13364 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13365 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13368 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13369 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13370 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13371 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13372 echo $ECHO_N "(cached) $ECHO_C" >&6
13373 else
13374 ac_check_lib_save_LIBS=$LIBS
13375 LIBS="-lSM -lICE $LIBS"
13376 cat >conftest.$ac_ext <<_ACEOF
13377 /* confdefs.h. */
13378 _ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13383 /* Override any gcc2 internal prototype to avoid an error. */
13384 #ifdef __cplusplus
13385 extern "C"
13386 #endif
13387 /* We use char because int might match the return type of a gcc2
13388 builtin and then its argument prototype would still apply. */
13389 char SmcOpenConnection ();
13391 main ()
13393 SmcOpenConnection ();
13395 return 0;
13397 _ACEOF
13398 rm -f conftest.$ac_objext conftest$ac_exeext
13399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13400 (eval $ac_link) 2>conftest.er1
13401 ac_status=$?
13402 grep -v '^ *+' conftest.er1 >conftest.err
13403 rm -f conftest.er1
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } &&
13407 { ac_try='test -z "$ac_c_werror_flag"
13408 || test ! -s conftest.err'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 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_SM_SmcOpenConnection=yes
13421 else
13422 echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13425 ac_cv_lib_SM_SmcOpenConnection=no
13427 rm -f conftest.err conftest.$ac_objext \
13428 conftest$ac_exeext conftest.$ac_ext
13429 LIBS=$ac_check_lib_save_LIBS
13431 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13432 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13433 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13434 HAVE_X_SM=yes
13441 if test "${HAVE_X_SM}" = "yes"; then
13443 cat >>confdefs.h <<\_ACEOF
13444 #define HAVE_X_SM 1
13445 _ACEOF
13447 case "$LIBS" in
13448 *-lSM*) ;;
13449 *) LIBS="-lSM -lICE $LIBS" ;;
13450 esac
13454 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13455 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13456 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13457 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13458 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 else
13460 cat >conftest.$ac_ext <<_ACEOF
13461 /* confdefs.h. */
13462 _ACEOF
13463 cat confdefs.h >>conftest.$ac_ext
13464 cat >>conftest.$ac_ext <<_ACEOF
13465 /* end confdefs.h. */
13466 #include <netdb.h>
13468 main ()
13470 return h_errno;
13472 return 0;
13474 _ACEOF
13475 rm -f conftest.$ac_objext conftest$ac_exeext
13476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13477 (eval $ac_link) 2>conftest.er1
13478 ac_status=$?
13479 grep -v '^ *+' conftest.er1 >conftest.err
13480 rm -f conftest.er1
13481 cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 { ac_try='test -z "$ac_c_werror_flag"
13485 || test ! -s conftest.err'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; } &&
13491 { ac_try='test -s conftest$ac_exeext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13494 ac_status=$?
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13497 emacs_cv_netdb_declares_h_errno=yes
13498 else
13499 echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13502 emacs_cv_netdb_declares_h_errno=no
13504 rm -f conftest.err conftest.$ac_objext \
13505 conftest$ac_exeext conftest.$ac_ext
13507 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13508 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13509 if test $emacs_cv_netdb_declares_h_errno = yes; then
13511 cat >>confdefs.h <<\_ACEOF
13512 #define HAVE_H_ERRNO 1
13513 _ACEOF
13517 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13518 # for constant arguments. Useless!
13519 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13520 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13521 if test "${ac_cv_working_alloca_h+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13523 else
13524 cat >conftest.$ac_ext <<_ACEOF
13525 /* confdefs.h. */
13526 _ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h. */
13530 #include <alloca.h>
13532 main ()
13534 char *p = (char *) alloca (2 * sizeof (int));
13536 return 0;
13538 _ACEOF
13539 rm -f conftest.$ac_objext conftest$ac_exeext
13540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13541 (eval $ac_link) 2>conftest.er1
13542 ac_status=$?
13543 grep -v '^ *+' conftest.er1 >conftest.err
13544 rm -f conftest.er1
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } &&
13548 { ac_try='test -z "$ac_c_werror_flag"
13549 || test ! -s conftest.err'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; } &&
13555 { ac_try='test -s conftest$ac_exeext'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561 ac_cv_working_alloca_h=yes
13562 else
13563 echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13566 ac_cv_working_alloca_h=no
13568 rm -f conftest.err conftest.$ac_objext \
13569 conftest$ac_exeext conftest.$ac_ext
13571 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13572 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13573 if test $ac_cv_working_alloca_h = yes; then
13575 cat >>confdefs.h <<\_ACEOF
13576 #define HAVE_ALLOCA_H 1
13577 _ACEOF
13581 echo "$as_me:$LINENO: checking for alloca" >&5
13582 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13583 if test "${ac_cv_func_alloca_works+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586 cat >conftest.$ac_ext <<_ACEOF
13587 /* confdefs.h. */
13588 _ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13592 #ifdef __GNUC__
13593 # define alloca __builtin_alloca
13594 #else
13595 # ifdef _MSC_VER
13596 # include <malloc.h>
13597 # define alloca _alloca
13598 # else
13599 # if HAVE_ALLOCA_H
13600 # include <alloca.h>
13601 # else
13602 # ifdef _AIX
13603 #pragma alloca
13604 # else
13605 # ifndef alloca /* predefined by HP cc +Olibcalls */
13606 char *alloca ();
13607 # endif
13608 # endif
13609 # endif
13610 # endif
13611 #endif
13614 main ()
13616 char *p = (char *) alloca (1);
13618 return 0;
13620 _ACEOF
13621 rm -f conftest.$ac_objext conftest$ac_exeext
13622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13623 (eval $ac_link) 2>conftest.er1
13624 ac_status=$?
13625 grep -v '^ *+' conftest.er1 >conftest.err
13626 rm -f conftest.er1
13627 cat conftest.err >&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } &&
13630 { ac_try='test -z "$ac_c_werror_flag"
13631 || test ! -s conftest.err'
13632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633 (eval $ac_try) 2>&5
13634 ac_status=$?
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; } &&
13637 { ac_try='test -s conftest$ac_exeext'
13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639 (eval $ac_try) 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; }; then
13643 ac_cv_func_alloca_works=yes
13644 else
13645 echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13648 ac_cv_func_alloca_works=no
13650 rm -f conftest.err conftest.$ac_objext \
13651 conftest$ac_exeext conftest.$ac_ext
13653 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13654 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13656 if test $ac_cv_func_alloca_works = yes; then
13658 cat >>confdefs.h <<\_ACEOF
13659 #define HAVE_ALLOCA 1
13660 _ACEOF
13662 else
13663 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13664 # that cause trouble. Some versions do not even contain alloca or
13665 # contain a buggy version. If you still want to use their alloca,
13666 # use ar to extract alloca.o from them instead of compiling alloca.c.
13668 ALLOCA=alloca.$ac_objext
13670 cat >>confdefs.h <<\_ACEOF
13671 #define C_ALLOCA 1
13672 _ACEOF
13675 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13676 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13677 if test "${ac_cv_os_cray+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680 cat >conftest.$ac_ext <<_ACEOF
13681 /* confdefs.h. */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13686 #if defined(CRAY) && ! defined(CRAY2)
13687 webecray
13688 #else
13689 wenotbecray
13690 #endif
13692 _ACEOF
13693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13694 $EGREP "webecray" >/dev/null 2>&1; then
13695 ac_cv_os_cray=yes
13696 else
13697 ac_cv_os_cray=no
13699 rm -f conftest*
13702 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13703 echo "${ECHO_T}$ac_cv_os_cray" >&6
13704 if test $ac_cv_os_cray = yes; then
13705 for ac_func in _getb67 GETB67 getb67; do
13706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13707 echo "$as_me:$LINENO: checking for $ac_func" >&5
13708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13709 if eval "test \"\${$as_ac_var+set}\" = set"; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712 cat >conftest.$ac_ext <<_ACEOF
13713 /* confdefs.h. */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13720 #define $ac_func innocuous_$ac_func
13722 /* System header to define __stub macros and hopefully few prototypes,
13723 which can conflict with char $ac_func (); below.
13724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13725 <limits.h> exists even on freestanding compilers. */
13727 #ifdef __STDC__
13728 # include <limits.h>
13729 #else
13730 # include <assert.h>
13731 #endif
13733 #undef $ac_func
13735 /* Override any gcc2 internal prototype to avoid an error. */
13736 #ifdef __cplusplus
13737 extern "C"
13739 #endif
13740 /* We use char because int might match the return type of a gcc2
13741 builtin and then its argument prototype would still apply. */
13742 char $ac_func ();
13743 /* The GNU C library defines this for functions which it implements
13744 to always fail with ENOSYS. Some functions are actually named
13745 something starting with __ and the normal name is an alias. */
13746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13747 choke me
13748 #else
13749 char (*f) () = $ac_func;
13750 #endif
13751 #ifdef __cplusplus
13753 #endif
13756 main ()
13758 return f != $ac_func;
13760 return 0;
13762 _ACEOF
13763 rm -f conftest.$ac_objext conftest$ac_exeext
13764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13765 (eval $ac_link) 2>conftest.er1
13766 ac_status=$?
13767 grep -v '^ *+' conftest.er1 >conftest.err
13768 rm -f conftest.er1
13769 cat conftest.err >&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -z "$ac_c_werror_flag"
13773 || test ! -s conftest.err'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; } &&
13779 { ac_try='test -s conftest$ac_exeext'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 eval "$as_ac_var=yes"
13786 else
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 eval "$as_ac_var=no"
13792 rm -f conftest.err conftest.$ac_objext \
13793 conftest$ac_exeext conftest.$ac_ext
13795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13797 if test `eval echo '${'$as_ac_var'}'` = yes; then
13799 cat >>confdefs.h <<_ACEOF
13800 #define CRAY_STACKSEG_END $ac_func
13801 _ACEOF
13803 break
13806 done
13809 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13810 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13811 if test "${ac_cv_c_stack_direction+set}" = set; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 else
13814 if test "$cross_compiling" = yes; then
13815 ac_cv_c_stack_direction=0
13816 else
13817 cat >conftest.$ac_ext <<_ACEOF
13818 /* confdefs.h. */
13819 _ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h. */
13824 find_stack_direction ()
13826 static char *addr = 0;
13827 auto char dummy;
13828 if (addr == 0)
13830 addr = &dummy;
13831 return find_stack_direction ();
13833 else
13834 return (&dummy > addr) ? 1 : -1;
13838 main ()
13840 exit (find_stack_direction () < 0);
13842 _ACEOF
13843 rm -f conftest$ac_exeext
13844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13845 (eval $ac_link) 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 ac_cv_c_stack_direction=1
13855 else
13856 echo "$as_me: program exited with status $ac_status" >&5
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13860 ( exit $ac_status )
13861 ac_cv_c_stack_direction=-1
13863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13866 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13867 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13869 cat >>confdefs.h <<_ACEOF
13870 #define STACK_DIRECTION $ac_cv_c_stack_direction
13871 _ACEOF
13877 # fmod, logb, and frexp are found in -lm on most systems.
13878 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13880 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13881 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13882 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 else
13885 ac_check_lib_save_LIBS=$LIBS
13886 LIBS="-lm $LIBS"
13887 cat >conftest.$ac_ext <<_ACEOF
13888 /* confdefs.h. */
13889 _ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h. */
13894 /* Override any gcc2 internal prototype to avoid an error. */
13895 #ifdef __cplusplus
13896 extern "C"
13897 #endif
13898 /* We use char because int might match the return type of a gcc2
13899 builtin and then its argument prototype would still apply. */
13900 char sqrt ();
13902 main ()
13904 sqrt ();
13906 return 0;
13908 _ACEOF
13909 rm -f conftest.$ac_objext conftest$ac_exeext
13910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13911 (eval $ac_link) 2>conftest.er1
13912 ac_status=$?
13913 grep -v '^ *+' conftest.er1 >conftest.err
13914 rm -f conftest.er1
13915 cat conftest.err >&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } &&
13918 { ac_try='test -z "$ac_c_werror_flag"
13919 || test ! -s conftest.err'
13920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921 (eval $ac_try) 2>&5
13922 ac_status=$?
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; } &&
13925 { ac_try='test -s conftest$ac_exeext'
13926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13927 (eval $ac_try) 2>&5
13928 ac_status=$?
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; }; then
13931 ac_cv_lib_m_sqrt=yes
13932 else
13933 echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13936 ac_cv_lib_m_sqrt=no
13938 rm -f conftest.err conftest.$ac_objext \
13939 conftest$ac_exeext conftest.$ac_ext
13940 LIBS=$ac_check_lib_save_LIBS
13942 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13943 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13944 if test $ac_cv_lib_m_sqrt = yes; then
13945 cat >>confdefs.h <<_ACEOF
13946 #define HAVE_LIBM 1
13947 _ACEOF
13949 LIBS="-lm $LIBS"
13954 # Check for mail-locking functions in a "mail" library. Probably this should
13955 # have the same check as for liblockfile below.
13957 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13958 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13959 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 else
13962 ac_check_lib_save_LIBS=$LIBS
13963 LIBS="-lmail $LIBS"
13964 cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h. */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13971 /* Override any gcc2 internal prototype to avoid an error. */
13972 #ifdef __cplusplus
13973 extern "C"
13974 #endif
13975 /* We use char because int might match the return type of a gcc2
13976 builtin and then its argument prototype would still apply. */
13977 char maillock ();
13979 main ()
13981 maillock ();
13983 return 0;
13985 _ACEOF
13986 rm -f conftest.$ac_objext conftest$ac_exeext
13987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13988 (eval $ac_link) 2>conftest.er1
13989 ac_status=$?
13990 grep -v '^ *+' conftest.er1 >conftest.err
13991 rm -f conftest.er1
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } &&
13995 { ac_try='test -z "$ac_c_werror_flag"
13996 || test ! -s conftest.err'
13997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998 (eval $ac_try) 2>&5
13999 ac_status=$?
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; } &&
14002 { ac_try='test -s conftest$ac_exeext'
14003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004 (eval $ac_try) 2>&5
14005 ac_status=$?
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; }; then
14008 ac_cv_lib_mail_maillock=yes
14009 else
14010 echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14013 ac_cv_lib_mail_maillock=no
14015 rm -f conftest.err conftest.$ac_objext \
14016 conftest$ac_exeext conftest.$ac_ext
14017 LIBS=$ac_check_lib_save_LIBS
14019 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14020 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14021 if test $ac_cv_lib_mail_maillock = yes; then
14022 cat >>confdefs.h <<_ACEOF
14023 #define HAVE_LIBMAIL 1
14024 _ACEOF
14026 LIBS="-lmail $LIBS"
14031 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14032 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14033 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 else
14036 ac_check_lib_save_LIBS=$LIBS
14037 LIBS="-llockfile $LIBS"
14038 cat >conftest.$ac_ext <<_ACEOF
14039 /* confdefs.h. */
14040 _ACEOF
14041 cat confdefs.h >>conftest.$ac_ext
14042 cat >>conftest.$ac_ext <<_ACEOF
14043 /* end confdefs.h. */
14045 /* Override any gcc2 internal prototype to avoid an error. */
14046 #ifdef __cplusplus
14047 extern "C"
14048 #endif
14049 /* We use char because int might match the return type of a gcc2
14050 builtin and then its argument prototype would still apply. */
14051 char maillock ();
14053 main ()
14055 maillock ();
14057 return 0;
14059 _ACEOF
14060 rm -f conftest.$ac_objext conftest$ac_exeext
14061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14062 (eval $ac_link) 2>conftest.er1
14063 ac_status=$?
14064 grep -v '^ *+' conftest.er1 >conftest.err
14065 rm -f conftest.er1
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
14069 { ac_try='test -z "$ac_c_werror_flag"
14070 || test ! -s conftest.err'
14071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072 (eval $ac_try) 2>&5
14073 ac_status=$?
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; } &&
14076 { ac_try='test -s conftest$ac_exeext'
14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; }; then
14082 ac_cv_lib_lockfile_maillock=yes
14083 else
14084 echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.$ac_ext >&5
14087 ac_cv_lib_lockfile_maillock=no
14089 rm -f conftest.err conftest.$ac_objext \
14090 conftest$ac_exeext conftest.$ac_ext
14091 LIBS=$ac_check_lib_save_LIBS
14093 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14094 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14095 if test $ac_cv_lib_lockfile_maillock = yes; then
14096 cat >>confdefs.h <<_ACEOF
14097 #define HAVE_LIBLOCKFILE 1
14098 _ACEOF
14100 LIBS="-llockfile $LIBS"
14104 # If we have the shared liblockfile, assume we must use it for mail
14105 # locking (e.g. Debian). If we couldn't link against liblockfile
14106 # (no liblockfile.a installed), ensure that we don't need to.
14107 if test "$ac_cv_lib_lockfile_maillock" = no; then
14108 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14109 set dummy liblockfile.so; ac_word=$2
14110 echo "$as_me:$LINENO: checking for $ac_word" >&5
14111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14112 if test "${ac_cv_prog_liblockfile+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 else
14115 if test -n "$liblockfile"; then
14116 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14117 else
14118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14119 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14120 for as_dir in $as_dummy
14122 IFS=$as_save_IFS
14123 test -z "$as_dir" && as_dir=.
14124 for ac_exec_ext in '' $ac_executable_extensions; do
14125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14126 ac_cv_prog_liblockfile="yes"
14127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14128 break 2
14130 done
14131 done
14133 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14136 liblockfile=$ac_cv_prog_liblockfile
14137 if test -n "$liblockfile"; then
14138 echo "$as_me:$LINENO: result: $liblockfile" >&5
14139 echo "${ECHO_T}$liblockfile" >&6
14140 else
14141 echo "$as_me:$LINENO: result: no" >&5
14142 echo "${ECHO_T}no" >&6
14145 if test $ac_cv_prog_liblockfile = yes; then
14146 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14147 This probably means that movemail could lose mail.
14148 There may be a \`development' package to install containing liblockfile." >&5
14149 echo "$as_me: error: Shared liblockfile found but can't link against it.
14150 This probably means that movemail could lose mail.
14151 There may be a \`development' package to install containing liblockfile." >&2;}
14152 { (exit 1); exit 1; }; }
14153 else :
14157 for ac_func in touchlock
14159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14160 echo "$as_me:$LINENO: checking for $ac_func" >&5
14161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14162 if eval "test \"\${$as_ac_var+set}\" = set"; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14164 else
14165 cat >conftest.$ac_ext <<_ACEOF
14166 /* confdefs.h. */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14173 #define $ac_func innocuous_$ac_func
14175 /* System header to define __stub macros and hopefully few prototypes,
14176 which can conflict with char $ac_func (); below.
14177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14178 <limits.h> exists even on freestanding compilers. */
14180 #ifdef __STDC__
14181 # include <limits.h>
14182 #else
14183 # include <assert.h>
14184 #endif
14186 #undef $ac_func
14188 /* Override any gcc2 internal prototype to avoid an error. */
14189 #ifdef __cplusplus
14190 extern "C"
14192 #endif
14193 /* We use char because int might match the return type of a gcc2
14194 builtin and then its argument prototype would still apply. */
14195 char $ac_func ();
14196 /* The GNU C library defines this for functions which it implements
14197 to always fail with ENOSYS. Some functions are actually named
14198 something starting with __ and the normal name is an alias. */
14199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14200 choke me
14201 #else
14202 char (*f) () = $ac_func;
14203 #endif
14204 #ifdef __cplusplus
14206 #endif
14209 main ()
14211 return f != $ac_func;
14213 return 0;
14215 _ACEOF
14216 rm -f conftest.$ac_objext conftest$ac_exeext
14217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14218 (eval $ac_link) 2>conftest.er1
14219 ac_status=$?
14220 grep -v '^ *+' conftest.er1 >conftest.err
14221 rm -f conftest.er1
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
14225 { ac_try='test -z "$ac_c_werror_flag"
14226 || test ! -s conftest.err'
14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5
14229 ac_status=$?
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; } &&
14232 { ac_try='test -s conftest$ac_exeext'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14235 ac_status=$?
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
14238 eval "$as_ac_var=yes"
14239 else
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 eval "$as_ac_var=no"
14245 rm -f conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext conftest.$ac_ext
14248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14249 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14250 if test `eval echo '${'$as_ac_var'}'` = yes; then
14251 cat >>confdefs.h <<_ACEOF
14252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14253 _ACEOF
14256 done
14259 for ac_header in maillock.h
14261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14263 echo "$as_me:$LINENO: checking for $ac_header" >&5
14264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14270 else
14271 # Is the header compilable?
14272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14274 cat >conftest.$ac_ext <<_ACEOF
14275 /* confdefs.h. */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 $ac_includes_default
14281 #include <$ac_header>
14282 _ACEOF
14283 rm -f conftest.$ac_objext
14284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14285 (eval $ac_compile) 2>conftest.er1
14286 ac_status=$?
14287 grep -v '^ *+' conftest.er1 >conftest.err
14288 rm -f conftest.er1
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
14292 { ac_try='test -z "$ac_c_werror_flag"
14293 || test ! -s conftest.err'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try='test -s conftest.$ac_objext'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14302 ac_status=$?
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; }; then
14305 ac_header_compiler=yes
14306 else
14307 echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.$ac_ext >&5
14310 ac_header_compiler=no
14312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14314 echo "${ECHO_T}$ac_header_compiler" >&6
14316 # Is the header present?
14317 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14319 cat >conftest.$ac_ext <<_ACEOF
14320 /* confdefs.h. */
14321 _ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h. */
14325 #include <$ac_header>
14326 _ACEOF
14327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14329 ac_status=$?
14330 grep -v '^ *+' conftest.er1 >conftest.err
14331 rm -f conftest.er1
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } >/dev/null; then
14335 if test -s conftest.err; then
14336 ac_cpp_err=$ac_c_preproc_warn_flag
14337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14338 else
14339 ac_cpp_err=
14341 else
14342 ac_cpp_err=yes
14344 if test -z "$ac_cpp_err"; then
14345 ac_header_preproc=yes
14346 else
14347 echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14350 ac_header_preproc=no
14352 rm -f conftest.err conftest.$ac_ext
14353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14354 echo "${ECHO_T}$ac_header_preproc" >&6
14356 # So? What about this header?
14357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14358 yes:no: )
14359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14363 ac_header_preproc=yes
14365 no:yes:* )
14366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14373 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14379 cat <<\_ASBOX
14380 ## ------------------------------------------ ##
14381 ## Report this to the AC_PACKAGE_NAME lists. ##
14382 ## ------------------------------------------ ##
14383 _ASBOX
14385 sed "s/^/$as_me: WARNING: /" >&2
14387 esac
14388 echo "$as_me:$LINENO: checking for $ac_header" >&5
14389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14391 echo $ECHO_N "(cached) $ECHO_C" >&6
14392 else
14393 eval "$as_ac_Header=\$ac_header_preproc"
14395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14400 cat >>confdefs.h <<_ACEOF
14401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14402 _ACEOF
14406 done
14477 for ac_func in gethostname getdomainname dup2 \
14478 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14479 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14480 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14481 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14482 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14483 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14484 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14485 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14488 echo "$as_me:$LINENO: checking for $ac_func" >&5
14489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14490 if eval "test \"\${$as_ac_var+set}\" = set"; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 else
14493 cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h. */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14501 #define $ac_func innocuous_$ac_func
14503 /* System header to define __stub macros and hopefully few prototypes,
14504 which can conflict with char $ac_func (); below.
14505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14506 <limits.h> exists even on freestanding compilers. */
14508 #ifdef __STDC__
14509 # include <limits.h>
14510 #else
14511 # include <assert.h>
14512 #endif
14514 #undef $ac_func
14516 /* Override any gcc2 internal prototype to avoid an error. */
14517 #ifdef __cplusplus
14518 extern "C"
14520 #endif
14521 /* We use char because int might match the return type of a gcc2
14522 builtin and then its argument prototype would still apply. */
14523 char $ac_func ();
14524 /* The GNU C library defines this for functions which it implements
14525 to always fail with ENOSYS. Some functions are actually named
14526 something starting with __ and the normal name is an alias. */
14527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14528 choke me
14529 #else
14530 char (*f) () = $ac_func;
14531 #endif
14532 #ifdef __cplusplus
14534 #endif
14537 main ()
14539 return f != $ac_func;
14541 return 0;
14543 _ACEOF
14544 rm -f conftest.$ac_objext conftest$ac_exeext
14545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14546 (eval $ac_link) 2>conftest.er1
14547 ac_status=$?
14548 grep -v '^ *+' conftest.er1 >conftest.err
14549 rm -f conftest.er1
14550 cat conftest.err >&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } &&
14553 { ac_try='test -z "$ac_c_werror_flag"
14554 || test ! -s conftest.err'
14555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556 (eval $ac_try) 2>&5
14557 ac_status=$?
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try='test -s conftest$ac_exeext'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 eval "$as_ac_var=yes"
14567 else
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14571 eval "$as_ac_var=no"
14573 rm -f conftest.err conftest.$ac_objext \
14574 conftest$ac_exeext conftest.$ac_ext
14576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14578 if test `eval echo '${'$as_ac_var'}'` = yes; then
14579 cat >>confdefs.h <<_ACEOF
14580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14581 _ACEOF
14584 done
14588 for ac_header in sys/un.h
14590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14592 echo "$as_me:$LINENO: checking for $ac_header" >&5
14593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14599 else
14600 # Is the header compilable?
14601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14603 cat >conftest.$ac_ext <<_ACEOF
14604 /* confdefs.h. */
14605 _ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14609 $ac_includes_default
14610 #include <$ac_header>
14611 _ACEOF
14612 rm -f conftest.$ac_objext
14613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14614 (eval $ac_compile) 2>conftest.er1
14615 ac_status=$?
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
14621 { ac_try='test -z "$ac_c_werror_flag"
14622 || test ! -s conftest.err'
14623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try='test -s conftest.$ac_objext'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; }; then
14634 ac_header_compiler=yes
14635 else
14636 echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14639 ac_header_compiler=no
14641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14643 echo "${ECHO_T}$ac_header_compiler" >&6
14645 # Is the header present?
14646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14648 cat >conftest.$ac_ext <<_ACEOF
14649 /* confdefs.h. */
14650 _ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h. */
14654 #include <$ac_header>
14655 _ACEOF
14656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14658 ac_status=$?
14659 grep -v '^ *+' conftest.er1 >conftest.err
14660 rm -f conftest.er1
14661 cat conftest.err >&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); } >/dev/null; then
14664 if test -s conftest.err; then
14665 ac_cpp_err=$ac_c_preproc_warn_flag
14666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14667 else
14668 ac_cpp_err=
14670 else
14671 ac_cpp_err=yes
14673 if test -z "$ac_cpp_err"; then
14674 ac_header_preproc=yes
14675 else
14676 echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' 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:$ac_c_preproc_warn_flag 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 compiler's result" >&5
14691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14692 ac_header_preproc=yes
14694 no:yes:* )
14695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14708 cat <<\_ASBOX
14709 ## ------------------------------------------ ##
14710 ## Report this to the AC_PACKAGE_NAME lists. ##
14711 ## ------------------------------------------ ##
14712 _ASBOX
14714 sed "s/^/$as_me: WARNING: /" >&2
14716 esac
14717 echo "$as_me:$LINENO: checking for $ac_header" >&5
14718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14720 echo $ECHO_N "(cached) $ECHO_C" >&6
14721 else
14722 eval "$as_ac_Header=\$ac_header_preproc"
14724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14729 cat >>confdefs.h <<_ACEOF
14730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14731 _ACEOF
14735 done
14741 for ac_header in stdlib.h sys/time.h unistd.h
14743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14745 echo "$as_me:$LINENO: checking for $ac_header" >&5
14746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14748 echo $ECHO_N "(cached) $ECHO_C" >&6
14750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14752 else
14753 # Is the header compilable?
14754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14756 cat >conftest.$ac_ext <<_ACEOF
14757 /* confdefs.h. */
14758 _ACEOF
14759 cat confdefs.h >>conftest.$ac_ext
14760 cat >>conftest.$ac_ext <<_ACEOF
14761 /* end confdefs.h. */
14762 $ac_includes_default
14763 #include <$ac_header>
14764 _ACEOF
14765 rm -f conftest.$ac_objext
14766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14767 (eval $ac_compile) 2>conftest.er1
14768 ac_status=$?
14769 grep -v '^ *+' conftest.er1 >conftest.err
14770 rm -f conftest.er1
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
14774 { ac_try='test -z "$ac_c_werror_flag"
14775 || test ! -s conftest.err'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14778 ac_status=$?
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; } &&
14781 { ac_try='test -s conftest.$ac_objext'
14782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783 (eval $ac_try) 2>&5
14784 ac_status=$?
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; }; then
14787 ac_header_compiler=yes
14788 else
14789 echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14792 ac_header_compiler=no
14794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14796 echo "${ECHO_T}$ac_header_compiler" >&6
14798 # Is the header present?
14799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14801 cat >conftest.$ac_ext <<_ACEOF
14802 /* confdefs.h. */
14803 _ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14807 #include <$ac_header>
14808 _ACEOF
14809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14811 ac_status=$?
14812 grep -v '^ *+' conftest.er1 >conftest.err
14813 rm -f conftest.er1
14814 cat conftest.err >&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } >/dev/null; then
14817 if test -s conftest.err; then
14818 ac_cpp_err=$ac_c_preproc_warn_flag
14819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14820 else
14821 ac_cpp_err=
14823 else
14824 ac_cpp_err=yes
14826 if test -z "$ac_cpp_err"; then
14827 ac_header_preproc=yes
14828 else
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 ac_header_preproc=no
14834 rm -f conftest.err conftest.$ac_ext
14835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14836 echo "${ECHO_T}$ac_header_preproc" >&6
14838 # So? What about this header?
14839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14840 yes:no: )
14841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14845 ac_header_preproc=yes
14847 no:yes:* )
14848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14851 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14855 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14861 cat <<\_ASBOX
14862 ## ------------------------------------------ ##
14863 ## Report this to the AC_PACKAGE_NAME lists. ##
14864 ## ------------------------------------------ ##
14865 _ASBOX
14867 sed "s/^/$as_me: WARNING: /" >&2
14869 esac
14870 echo "$as_me:$LINENO: checking for $ac_header" >&5
14871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14874 else
14875 eval "$as_ac_Header=\$ac_header_preproc"
14877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14882 cat >>confdefs.h <<_ACEOF
14883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14884 _ACEOF
14888 done
14891 for ac_func in alarm
14893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14894 echo "$as_me:$LINENO: checking for $ac_func" >&5
14895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14896 if eval "test \"\${$as_ac_var+set}\" = set"; then
14897 echo $ECHO_N "(cached) $ECHO_C" >&6
14898 else
14899 cat >conftest.$ac_ext <<_ACEOF
14900 /* confdefs.h. */
14901 _ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h. */
14905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14907 #define $ac_func innocuous_$ac_func
14909 /* System header to define __stub macros and hopefully few prototypes,
14910 which can conflict with char $ac_func (); below.
14911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14912 <limits.h> exists even on freestanding compilers. */
14914 #ifdef __STDC__
14915 # include <limits.h>
14916 #else
14917 # include <assert.h>
14918 #endif
14920 #undef $ac_func
14922 /* Override any gcc2 internal prototype to avoid an error. */
14923 #ifdef __cplusplus
14924 extern "C"
14926 #endif
14927 /* We use char because int might match the return type of a gcc2
14928 builtin and then its argument prototype would still apply. */
14929 char $ac_func ();
14930 /* The GNU C library defines this for functions which it implements
14931 to always fail with ENOSYS. Some functions are actually named
14932 something starting with __ and the normal name is an alias. */
14933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14934 choke me
14935 #else
14936 char (*f) () = $ac_func;
14937 #endif
14938 #ifdef __cplusplus
14940 #endif
14943 main ()
14945 return f != $ac_func;
14947 return 0;
14949 _ACEOF
14950 rm -f conftest.$ac_objext conftest$ac_exeext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14952 (eval $ac_link) 2>conftest.er1
14953 ac_status=$?
14954 grep -v '^ *+' conftest.er1 >conftest.err
14955 rm -f conftest.er1
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -z "$ac_c_werror_flag"
14960 || test ! -s conftest.err'
14961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962 (eval $ac_try) 2>&5
14963 ac_status=$?
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; } &&
14966 { ac_try='test -s conftest$ac_exeext'
14967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14969 ac_status=$?
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; }; then
14972 eval "$as_ac_var=yes"
14973 else
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14977 eval "$as_ac_var=no"
14979 rm -f conftest.err conftest.$ac_objext \
14980 conftest$ac_exeext conftest.$ac_ext
14982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14984 if test `eval echo '${'$as_ac_var'}'` = yes; then
14985 cat >>confdefs.h <<_ACEOF
14986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14987 _ACEOF
14990 done
14992 echo "$as_me:$LINENO: checking for working mktime" >&5
14993 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14994 if test "${ac_cv_func_working_mktime+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 else
14997 if test "$cross_compiling" = yes; then
14998 ac_cv_func_working_mktime=no
14999 else
15000 cat >conftest.$ac_ext <<_ACEOF
15001 /* confdefs.h. */
15002 _ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15006 /* Test program from Paul Eggert and Tony Leneis. */
15007 #if TIME_WITH_SYS_TIME
15008 # include <sys/time.h>
15009 # include <time.h>
15010 #else
15011 # if HAVE_SYS_TIME_H
15012 # include <sys/time.h>
15013 # else
15014 # include <time.h>
15015 # endif
15016 #endif
15018 #if HAVE_STDLIB_H
15019 # include <stdlib.h>
15020 #endif
15022 #if HAVE_UNISTD_H
15023 # include <unistd.h>
15024 #endif
15026 #if !HAVE_ALARM
15027 # define alarm(X) /* empty */
15028 #endif
15030 /* Work around redefinition to rpl_putenv by other config tests. */
15031 #undef putenv
15033 static time_t time_t_max;
15034 static time_t time_t_min;
15036 /* Values we'll use to set the TZ environment variable. */
15037 static char *tz_strings[] = {
15038 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15039 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15041 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15043 /* Fail if mktime fails to convert a date in the spring-forward gap.
15044 Based on a problem report from Andreas Jaeger. */
15045 static void
15046 spring_forward_gap ()
15048 /* glibc (up to about 1998-10-07) failed this test. */
15049 struct tm tm;
15051 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15052 instead of "TZ=America/Vancouver" in order to detect the bug even
15053 on systems that don't support the Olson extension, or don't have the
15054 full zoneinfo tables installed. */
15055 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15057 tm.tm_year = 98;
15058 tm.tm_mon = 3;
15059 tm.tm_mday = 5;
15060 tm.tm_hour = 2;
15061 tm.tm_min = 0;
15062 tm.tm_sec = 0;
15063 tm.tm_isdst = -1;
15064 if (mktime (&tm) == (time_t)-1)
15065 exit (1);
15068 static void
15069 mktime_test1 (now)
15070 time_t now;
15072 struct tm *lt;
15073 if ((lt = localtime (&now)) && mktime (lt) != now)
15074 exit (1);
15077 static void
15078 mktime_test (now)
15079 time_t now;
15081 mktime_test1 (now);
15082 mktime_test1 ((time_t) (time_t_max - now));
15083 mktime_test1 ((time_t) (time_t_min + now));
15086 static void
15087 irix_6_4_bug ()
15089 /* Based on code from Ariel Faigon. */
15090 struct tm tm;
15091 tm.tm_year = 96;
15092 tm.tm_mon = 3;
15093 tm.tm_mday = 0;
15094 tm.tm_hour = 0;
15095 tm.tm_min = 0;
15096 tm.tm_sec = 0;
15097 tm.tm_isdst = -1;
15098 mktime (&tm);
15099 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15100 exit (1);
15103 static void
15104 bigtime_test (j)
15105 int j;
15107 struct tm tm;
15108 time_t now;
15109 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15110 now = mktime (&tm);
15111 if (now != (time_t) -1)
15113 struct tm *lt = localtime (&now);
15114 if (! (lt
15115 && lt->tm_year == tm.tm_year
15116 && lt->tm_mon == tm.tm_mon
15117 && lt->tm_mday == tm.tm_mday
15118 && lt->tm_hour == tm.tm_hour
15119 && lt->tm_min == tm.tm_min
15120 && lt->tm_sec == tm.tm_sec
15121 && lt->tm_yday == tm.tm_yday
15122 && lt->tm_wday == tm.tm_wday
15123 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15124 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15125 exit (1);
15130 main ()
15132 time_t t, delta;
15133 int i, j;
15135 /* This test makes some buggy mktime implementations loop.
15136 Give up after 60 seconds; a mktime slower than that
15137 isn't worth using anyway. */
15138 alarm (60);
15140 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15141 continue;
15142 time_t_max--;
15143 if ((time_t) -1 < 0)
15144 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15145 continue;
15146 delta = time_t_max / 997; /* a suitable prime number */
15147 for (i = 0; i < N_STRINGS; i++)
15149 if (tz_strings[i])
15150 putenv (tz_strings[i]);
15152 for (t = 0; t <= time_t_max - delta; t += delta)
15153 mktime_test (t);
15154 mktime_test ((time_t) 1);
15155 mktime_test ((time_t) (60 * 60));
15156 mktime_test ((time_t) (60 * 60 * 24));
15158 for (j = 1; 0 < j; j *= 2)
15159 bigtime_test (j);
15160 bigtime_test (j - 1);
15162 irix_6_4_bug ();
15163 spring_forward_gap ();
15164 exit (0);
15166 _ACEOF
15167 rm -f conftest$ac_exeext
15168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15169 (eval $ac_link) 2>&5
15170 ac_status=$?
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; }; then
15178 ac_cv_func_working_mktime=yes
15179 else
15180 echo "$as_me: program exited with status $ac_status" >&5
15181 echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15184 ( exit $ac_status )
15185 ac_cv_func_working_mktime=no
15187 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15190 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15191 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15192 if test $ac_cv_func_working_mktime = no; then
15193 case $LIBOBJS in
15194 "mktime.$ac_objext" | \
15195 *" mktime.$ac_objext" | \
15196 "mktime.$ac_objext "* | \
15197 *" mktime.$ac_objext "* ) ;;
15198 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15199 esac
15203 if test "$ac_cv_func_working_mktime" = no; then
15205 cat >>confdefs.h <<\_ACEOF
15206 #define BROKEN_MKTIME 1
15207 _ACEOF
15211 ac_have_func=no # yes means we've found a way to get the load average.
15213 # Make sure getloadavg.c is where it belongs, at configure-time.
15214 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15215 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15216 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15217 { (exit 1); exit 1; }; }
15219 ac_save_LIBS=$LIBS
15221 # Check for getloadavg, but be sure not to touch the cache variable.
15222 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15223 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15224 if test "${ac_cv_func_getloadavg+set}" = set; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 else
15227 cat >conftest.$ac_ext <<_ACEOF
15228 /* confdefs.h. */
15229 _ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
15232 /* end confdefs.h. */
15233 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15235 #define getloadavg innocuous_getloadavg
15237 /* System header to define __stub macros and hopefully few prototypes,
15238 which can conflict with char getloadavg (); below.
15239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15240 <limits.h> exists even on freestanding compilers. */
15242 #ifdef __STDC__
15243 # include <limits.h>
15244 #else
15245 # include <assert.h>
15246 #endif
15248 #undef getloadavg
15250 /* Override any gcc2 internal prototype to avoid an error. */
15251 #ifdef __cplusplus
15252 extern "C"
15254 #endif
15255 /* We use char because int might match the return type of a gcc2
15256 builtin and then its argument prototype would still apply. */
15257 char getloadavg ();
15258 /* The GNU C library defines this for functions which it implements
15259 to always fail with ENOSYS. Some functions are actually named
15260 something starting with __ and the normal name is an alias. */
15261 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15262 choke me
15263 #else
15264 char (*f) () = getloadavg;
15265 #endif
15266 #ifdef __cplusplus
15268 #endif
15271 main ()
15273 return f != getloadavg;
15275 return 0;
15277 _ACEOF
15278 rm -f conftest.$ac_objext conftest$ac_exeext
15279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15280 (eval $ac_link) 2>conftest.er1
15281 ac_status=$?
15282 grep -v '^ *+' conftest.er1 >conftest.err
15283 rm -f conftest.er1
15284 cat conftest.err >&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } &&
15287 { ac_try='test -z "$ac_c_werror_flag"
15288 || test ! -s conftest.err'
15289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15291 ac_status=$?
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; } &&
15294 { ac_try='test -s conftest$ac_exeext'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15297 ac_status=$?
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; }; then
15300 ac_cv_func_getloadavg=yes
15301 else
15302 echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15305 ac_cv_func_getloadavg=no
15307 rm -f conftest.err conftest.$ac_objext \
15308 conftest$ac_exeext conftest.$ac_ext
15310 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15311 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15312 if test $ac_cv_func_getloadavg = yes; then
15313 exit 0
15314 else
15315 exit 1
15317 ) && ac_have_func=yes
15319 # On HPUX9, an unprivileged user can get load averages through this function.
15321 for ac_func in pstat_getdynamic
15323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15324 echo "$as_me:$LINENO: checking for $ac_func" >&5
15325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15326 if eval "test \"\${$as_ac_var+set}\" = set"; then
15327 echo $ECHO_N "(cached) $ECHO_C" >&6
15328 else
15329 cat >conftest.$ac_ext <<_ACEOF
15330 /* confdefs.h. */
15331 _ACEOF
15332 cat confdefs.h >>conftest.$ac_ext
15333 cat >>conftest.$ac_ext <<_ACEOF
15334 /* end confdefs.h. */
15335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15337 #define $ac_func innocuous_$ac_func
15339 /* System header to define __stub macros and hopefully few prototypes,
15340 which can conflict with char $ac_func (); below.
15341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15342 <limits.h> exists even on freestanding compilers. */
15344 #ifdef __STDC__
15345 # include <limits.h>
15346 #else
15347 # include <assert.h>
15348 #endif
15350 #undef $ac_func
15352 /* Override any gcc2 internal prototype to avoid an error. */
15353 #ifdef __cplusplus
15354 extern "C"
15356 #endif
15357 /* We use char because int might match the return type of a gcc2
15358 builtin and then its argument prototype would still apply. */
15359 char $ac_func ();
15360 /* The GNU C library defines this for functions which it implements
15361 to always fail with ENOSYS. Some functions are actually named
15362 something starting with __ and the normal name is an alias. */
15363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15364 choke me
15365 #else
15366 char (*f) () = $ac_func;
15367 #endif
15368 #ifdef __cplusplus
15370 #endif
15373 main ()
15375 return f != $ac_func;
15377 return 0;
15379 _ACEOF
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15382 (eval $ac_link) 2>conftest.er1
15383 ac_status=$?
15384 grep -v '^ *+' conftest.er1 >conftest.err
15385 rm -f conftest.er1
15386 cat conftest.err >&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } &&
15389 { ac_try='test -z "$ac_c_werror_flag"
15390 || test ! -s conftest.err'
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 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 eval "$as_ac_var=yes"
15403 else
15404 echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15407 eval "$as_ac_var=no"
15409 rm -f conftest.err conftest.$ac_objext \
15410 conftest$ac_exeext conftest.$ac_ext
15412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15414 if test `eval echo '${'$as_ac_var'}'` = yes; then
15415 cat >>confdefs.h <<_ACEOF
15416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15417 _ACEOF
15420 done
15423 # Solaris has libkstat which does not require root.
15425 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15426 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15427 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 else
15430 ac_check_lib_save_LIBS=$LIBS
15431 LIBS="-lkstat $LIBS"
15432 cat >conftest.$ac_ext <<_ACEOF
15433 /* confdefs.h. */
15434 _ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h. */
15439 /* Override any gcc2 internal prototype to avoid an error. */
15440 #ifdef __cplusplus
15441 extern "C"
15442 #endif
15443 /* We use char because int might match the return type of a gcc2
15444 builtin and then its argument prototype would still apply. */
15445 char kstat_open ();
15447 main ()
15449 kstat_open ();
15451 return 0;
15453 _ACEOF
15454 rm -f conftest.$ac_objext conftest$ac_exeext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15456 (eval $ac_link) 2>conftest.er1
15457 ac_status=$?
15458 grep -v '^ *+' conftest.er1 >conftest.err
15459 rm -f conftest.er1
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try='test -z "$ac_c_werror_flag"
15464 || test ! -s conftest.err'
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; } &&
15470 { ac_try='test -s conftest$ac_exeext'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 ac_cv_lib_kstat_kstat_open=yes
15477 else
15478 echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15481 ac_cv_lib_kstat_kstat_open=no
15483 rm -f conftest.err conftest.$ac_objext \
15484 conftest$ac_exeext conftest.$ac_ext
15485 LIBS=$ac_check_lib_save_LIBS
15487 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15488 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15489 if test $ac_cv_lib_kstat_kstat_open = yes; then
15490 cat >>confdefs.h <<_ACEOF
15491 #define HAVE_LIBKSTAT 1
15492 _ACEOF
15494 LIBS="-lkstat $LIBS"
15498 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15500 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15501 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15502 # to get the right answer into the cache.
15503 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15504 if test $ac_have_func = no; then
15505 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15506 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15507 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15508 echo $ECHO_N "(cached) $ECHO_C" >&6
15509 else
15510 ac_check_lib_save_LIBS=$LIBS
15511 LIBS="-lelf $LIBS"
15512 cat >conftest.$ac_ext <<_ACEOF
15513 /* confdefs.h. */
15514 _ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15519 /* Override any gcc2 internal prototype to avoid an error. */
15520 #ifdef __cplusplus
15521 extern "C"
15522 #endif
15523 /* We use char because int might match the return type of a gcc2
15524 builtin and then its argument prototype would still apply. */
15525 char elf_begin ();
15527 main ()
15529 elf_begin ();
15531 return 0;
15533 _ACEOF
15534 rm -f conftest.$ac_objext conftest$ac_exeext
15535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15536 (eval $ac_link) 2>conftest.er1
15537 ac_status=$?
15538 grep -v '^ *+' conftest.er1 >conftest.err
15539 rm -f conftest.er1
15540 cat conftest.err >&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); } &&
15543 { ac_try='test -z "$ac_c_werror_flag"
15544 || test ! -s conftest.err'
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546 (eval $ac_try) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; } &&
15550 { ac_try='test -s conftest$ac_exeext'
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 ac_cv_lib_elf_elf_begin=yes
15557 else
15558 echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15561 ac_cv_lib_elf_elf_begin=no
15563 rm -f conftest.err conftest.$ac_objext \
15564 conftest$ac_exeext conftest.$ac_ext
15565 LIBS=$ac_check_lib_save_LIBS
15567 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15568 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15569 if test $ac_cv_lib_elf_elf_begin = yes; then
15570 LIBS="-lelf $LIBS"
15574 if test $ac_have_func = no; then
15575 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15576 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15577 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15578 echo $ECHO_N "(cached) $ECHO_C" >&6
15579 else
15580 ac_check_lib_save_LIBS=$LIBS
15581 LIBS="-lkvm $LIBS"
15582 cat >conftest.$ac_ext <<_ACEOF
15583 /* confdefs.h. */
15584 _ACEOF
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h. */
15589 /* Override any gcc2 internal prototype to avoid an error. */
15590 #ifdef __cplusplus
15591 extern "C"
15592 #endif
15593 /* We use char because int might match the return type of a gcc2
15594 builtin and then its argument prototype would still apply. */
15595 char kvm_open ();
15597 main ()
15599 kvm_open ();
15601 return 0;
15603 _ACEOF
15604 rm -f conftest.$ac_objext conftest$ac_exeext
15605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15606 (eval $ac_link) 2>conftest.er1
15607 ac_status=$?
15608 grep -v '^ *+' conftest.er1 >conftest.err
15609 rm -f conftest.er1
15610 cat conftest.err >&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } &&
15613 { ac_try='test -z "$ac_c_werror_flag"
15614 || test ! -s conftest.err'
15615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; } &&
15620 { ac_try='test -s conftest$ac_exeext'
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; }; then
15626 ac_cv_lib_kvm_kvm_open=yes
15627 else
15628 echo "$as_me: failed program was:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15631 ac_cv_lib_kvm_kvm_open=no
15633 rm -f conftest.err conftest.$ac_objext \
15634 conftest$ac_exeext conftest.$ac_ext
15635 LIBS=$ac_check_lib_save_LIBS
15637 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15638 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15639 if test $ac_cv_lib_kvm_kvm_open = yes; then
15640 LIBS="-lkvm $LIBS"
15643 # Check for the 4.4BSD definition of getloadavg.
15644 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15645 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15646 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15648 else
15649 ac_check_lib_save_LIBS=$LIBS
15650 LIBS="-lutil $LIBS"
15651 cat >conftest.$ac_ext <<_ACEOF
15652 /* confdefs.h. */
15653 _ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15658 /* Override any gcc2 internal prototype to avoid an error. */
15659 #ifdef __cplusplus
15660 extern "C"
15661 #endif
15662 /* We use char because int might match the return type of a gcc2
15663 builtin and then its argument prototype would still apply. */
15664 char getloadavg ();
15666 main ()
15668 getloadavg ();
15670 return 0;
15672 _ACEOF
15673 rm -f conftest.$ac_objext conftest$ac_exeext
15674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15675 (eval $ac_link) 2>conftest.er1
15676 ac_status=$?
15677 grep -v '^ *+' conftest.er1 >conftest.err
15678 rm -f conftest.er1
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
15682 { ac_try='test -z "$ac_c_werror_flag"
15683 || test ! -s conftest.err'
15684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685 (eval $ac_try) 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; } &&
15689 { ac_try='test -s conftest$ac_exeext'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 ac_cv_lib_util_getloadavg=yes
15696 else
15697 echo "$as_me: failed program was:" >&5
15698 sed 's/^/| /' conftest.$ac_ext >&5
15700 ac_cv_lib_util_getloadavg=no
15702 rm -f conftest.err conftest.$ac_objext \
15703 conftest$ac_exeext conftest.$ac_ext
15704 LIBS=$ac_check_lib_save_LIBS
15706 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15707 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15708 if test $ac_cv_lib_util_getloadavg = yes; then
15709 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15714 if test $ac_have_func = no; then
15715 # There is a commonly available library for RS/6000 AIX.
15716 # Since it is not a standard part of AIX, it might be installed locally.
15717 ac_getloadavg_LIBS=$LIBS
15718 LIBS="-L/usr/local/lib $LIBS"
15719 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15720 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15721 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15722 echo $ECHO_N "(cached) $ECHO_C" >&6
15723 else
15724 ac_check_lib_save_LIBS=$LIBS
15725 LIBS="-lgetloadavg $LIBS"
15726 cat >conftest.$ac_ext <<_ACEOF
15727 /* confdefs.h. */
15728 _ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h. */
15733 /* Override any gcc2 internal prototype to avoid an error. */
15734 #ifdef __cplusplus
15735 extern "C"
15736 #endif
15737 /* We use char because int might match the return type of a gcc2
15738 builtin and then its argument prototype would still apply. */
15739 char getloadavg ();
15741 main ()
15743 getloadavg ();
15745 return 0;
15747 _ACEOF
15748 rm -f conftest.$ac_objext conftest$ac_exeext
15749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15750 (eval $ac_link) 2>conftest.er1
15751 ac_status=$?
15752 grep -v '^ *+' conftest.er1 >conftest.err
15753 rm -f conftest.er1
15754 cat conftest.err >&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } &&
15757 { ac_try='test -z "$ac_c_werror_flag"
15758 || test ! -s conftest.err'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; } &&
15764 { ac_try='test -s conftest$ac_exeext'
15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15767 ac_status=$?
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; }; then
15770 ac_cv_lib_getloadavg_getloadavg=yes
15771 else
15772 echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15775 ac_cv_lib_getloadavg_getloadavg=no
15777 rm -f conftest.err conftest.$ac_objext \
15778 conftest$ac_exeext conftest.$ac_ext
15779 LIBS=$ac_check_lib_save_LIBS
15781 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15782 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15783 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15784 LIBS="-lgetloadavg $LIBS"
15785 else
15786 LIBS=$ac_getloadavg_LIBS
15791 # Make sure it is really in the library, if we think we found it,
15792 # otherwise set up the replacement function.
15794 for ac_func in getloadavg
15796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15797 echo "$as_me:$LINENO: checking for $ac_func" >&5
15798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15799 if eval "test \"\${$as_ac_var+set}\" = set"; then
15800 echo $ECHO_N "(cached) $ECHO_C" >&6
15801 else
15802 cat >conftest.$ac_ext <<_ACEOF
15803 /* confdefs.h. */
15804 _ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h. */
15808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15810 #define $ac_func innocuous_$ac_func
15812 /* System header to define __stub macros and hopefully few prototypes,
15813 which can conflict with char $ac_func (); below.
15814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15815 <limits.h> exists even on freestanding compilers. */
15817 #ifdef __STDC__
15818 # include <limits.h>
15819 #else
15820 # include <assert.h>
15821 #endif
15823 #undef $ac_func
15825 /* Override any gcc2 internal prototype to avoid an error. */
15826 #ifdef __cplusplus
15827 extern "C"
15829 #endif
15830 /* We use char because int might match the return type of a gcc2
15831 builtin and then its argument prototype would still apply. */
15832 char $ac_func ();
15833 /* The GNU C library defines this for functions which it implements
15834 to always fail with ENOSYS. Some functions are actually named
15835 something starting with __ and the normal name is an alias. */
15836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15837 choke me
15838 #else
15839 char (*f) () = $ac_func;
15840 #endif
15841 #ifdef __cplusplus
15843 #endif
15846 main ()
15848 return f != $ac_func;
15850 return 0;
15852 _ACEOF
15853 rm -f conftest.$ac_objext conftest$ac_exeext
15854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15855 (eval $ac_link) 2>conftest.er1
15856 ac_status=$?
15857 grep -v '^ *+' conftest.er1 >conftest.err
15858 rm -f conftest.er1
15859 cat conftest.err >&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); } &&
15862 { ac_try='test -z "$ac_c_werror_flag"
15863 || test ! -s conftest.err'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; } &&
15869 { ac_try='test -s conftest$ac_exeext'
15870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871 (eval $ac_try) 2>&5
15872 ac_status=$?
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; }; then
15875 eval "$as_ac_var=yes"
15876 else
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 eval "$as_ac_var=no"
15882 rm -f conftest.err conftest.$ac_objext \
15883 conftest$ac_exeext conftest.$ac_ext
15885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15887 if test `eval echo '${'$as_ac_var'}'` = yes; then
15888 cat >>confdefs.h <<_ACEOF
15889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15890 _ACEOF
15892 else
15893 case $LIBOBJS in
15894 "getloadavg.$ac_objext" | \
15895 *" getloadavg.$ac_objext" | \
15896 "getloadavg.$ac_objext "* | \
15897 *" getloadavg.$ac_objext "* ) ;;
15898 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15899 esac
15902 cat >>confdefs.h <<\_ACEOF
15903 #define C_GETLOADAVG 1
15904 _ACEOF
15906 # Figure out what our getloadavg.c needs.
15907 ac_have_func=no
15908 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15909 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15910 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15911 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15912 echo $ECHO_N "(cached) $ECHO_C" >&6
15914 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15915 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15916 else
15917 # Is the header compilable?
15918 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15919 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15920 cat >conftest.$ac_ext <<_ACEOF
15921 /* confdefs.h. */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15926 $ac_includes_default
15927 #include <sys/dg_sys_info.h>
15928 _ACEOF
15929 rm -f conftest.$ac_objext
15930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15931 (eval $ac_compile) 2>conftest.er1
15932 ac_status=$?
15933 grep -v '^ *+' conftest.er1 >conftest.err
15934 rm -f conftest.er1
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } &&
15938 { ac_try='test -z "$ac_c_werror_flag"
15939 || test ! -s conftest.err'
15940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941 (eval $ac_try) 2>&5
15942 ac_status=$?
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; } &&
15945 { ac_try='test -s conftest.$ac_objext'
15946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947 (eval $ac_try) 2>&5
15948 ac_status=$?
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; }; then
15951 ac_header_compiler=yes
15952 else
15953 echo "$as_me: failed program was:" >&5
15954 sed 's/^/| /' conftest.$ac_ext >&5
15956 ac_header_compiler=no
15958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15960 echo "${ECHO_T}$ac_header_compiler" >&6
15962 # Is the header present?
15963 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15964 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15965 cat >conftest.$ac_ext <<_ACEOF
15966 /* confdefs.h. */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15971 #include <sys/dg_sys_info.h>
15972 _ACEOF
15973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15975 ac_status=$?
15976 grep -v '^ *+' conftest.er1 >conftest.err
15977 rm -f conftest.er1
15978 cat conftest.err >&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); } >/dev/null; then
15981 if test -s conftest.err; then
15982 ac_cpp_err=$ac_c_preproc_warn_flag
15983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15984 else
15985 ac_cpp_err=
15987 else
15988 ac_cpp_err=yes
15990 if test -z "$ac_cpp_err"; then
15991 ac_header_preproc=yes
15992 else
15993 echo "$as_me: failed program was:" >&5
15994 sed 's/^/| /' conftest.$ac_ext >&5
15996 ac_header_preproc=no
15998 rm -f conftest.err conftest.$ac_ext
15999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16000 echo "${ECHO_T}$ac_header_preproc" >&6
16002 # So? What about this header?
16003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16004 yes:no: )
16005 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16006 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16007 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16008 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16009 ac_header_preproc=yes
16011 no:yes:* )
16012 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16013 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16014 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16015 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16016 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16017 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16018 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16019 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16020 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16021 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16022 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16023 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16025 cat <<\_ASBOX
16026 ## ------------------------------------------ ##
16027 ## Report this to the AC_PACKAGE_NAME lists. ##
16028 ## ------------------------------------------ ##
16029 _ASBOX
16031 sed "s/^/$as_me: WARNING: /" >&2
16033 esac
16034 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16035 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16036 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16038 else
16039 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16041 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16042 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16045 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16046 ac_have_func=yes
16048 cat >>confdefs.h <<\_ACEOF
16049 #define DGUX 1
16050 _ACEOF
16053 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16054 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16055 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16057 else
16058 ac_check_lib_save_LIBS=$LIBS
16059 LIBS="-ldgc $LIBS"
16060 cat >conftest.$ac_ext <<_ACEOF
16061 /* confdefs.h. */
16062 _ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h. */
16067 /* Override any gcc2 internal prototype to avoid an error. */
16068 #ifdef __cplusplus
16069 extern "C"
16070 #endif
16071 /* We use char because int might match the return type of a gcc2
16072 builtin and then its argument prototype would still apply. */
16073 char dg_sys_info ();
16075 main ()
16077 dg_sys_info ();
16079 return 0;
16081 _ACEOF
16082 rm -f conftest.$ac_objext conftest$ac_exeext
16083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16084 (eval $ac_link) 2>conftest.er1
16085 ac_status=$?
16086 grep -v '^ *+' conftest.er1 >conftest.err
16087 rm -f conftest.er1
16088 cat conftest.err >&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } &&
16091 { ac_try='test -z "$ac_c_werror_flag"
16092 || test ! -s conftest.err'
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; } &&
16098 { ac_try='test -s conftest$ac_exeext'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16101 ac_status=$?
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; }; then
16104 ac_cv_lib_dgc_dg_sys_info=yes
16105 else
16106 echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16109 ac_cv_lib_dgc_dg_sys_info=no
16111 rm -f conftest.err conftest.$ac_objext \
16112 conftest$ac_exeext conftest.$ac_ext
16113 LIBS=$ac_check_lib_save_LIBS
16115 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16116 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16117 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16118 cat >>confdefs.h <<_ACEOF
16119 #define HAVE_LIBDGC 1
16120 _ACEOF
16122 LIBS="-ldgc $LIBS"
16130 if test "${ac_cv_header_locale_h+set}" = set; then
16131 echo "$as_me:$LINENO: checking for locale.h" >&5
16132 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16133 if test "${ac_cv_header_locale_h+set}" = set; then
16134 echo $ECHO_N "(cached) $ECHO_C" >&6
16136 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16137 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16138 else
16139 # Is the header compilable?
16140 echo "$as_me:$LINENO: checking locale.h usability" >&5
16141 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16142 cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h. */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16148 $ac_includes_default
16149 #include <locale.h>
16150 _ACEOF
16151 rm -f conftest.$ac_objext
16152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16153 (eval $ac_compile) 2>conftest.er1
16154 ac_status=$?
16155 grep -v '^ *+' conftest.er1 >conftest.err
16156 rm -f conftest.er1
16157 cat conftest.err >&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } &&
16160 { ac_try='test -z "$ac_c_werror_flag"
16161 || test ! -s conftest.err'
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16164 ac_status=$?
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; } &&
16167 { ac_try='test -s conftest.$ac_objext'
16168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169 (eval $ac_try) 2>&5
16170 ac_status=$?
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; }; then
16173 ac_header_compiler=yes
16174 else
16175 echo "$as_me: failed program was:" >&5
16176 sed 's/^/| /' conftest.$ac_ext >&5
16178 ac_header_compiler=no
16180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16182 echo "${ECHO_T}$ac_header_compiler" >&6
16184 # Is the header present?
16185 echo "$as_me:$LINENO: checking locale.h presence" >&5
16186 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16187 cat >conftest.$ac_ext <<_ACEOF
16188 /* confdefs.h. */
16189 _ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h. */
16193 #include <locale.h>
16194 _ACEOF
16195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16197 ac_status=$?
16198 grep -v '^ *+' conftest.er1 >conftest.err
16199 rm -f conftest.er1
16200 cat conftest.err >&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } >/dev/null; then
16203 if test -s conftest.err; then
16204 ac_cpp_err=$ac_c_preproc_warn_flag
16205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16206 else
16207 ac_cpp_err=
16209 else
16210 ac_cpp_err=yes
16212 if test -z "$ac_cpp_err"; then
16213 ac_header_preproc=yes
16214 else
16215 echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16218 ac_header_preproc=no
16220 rm -f conftest.err conftest.$ac_ext
16221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16222 echo "${ECHO_T}$ac_header_preproc" >&6
16224 # So? What about this header?
16225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16226 yes:no: )
16227 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16228 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16229 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16230 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16231 ac_header_preproc=yes
16233 no:yes:* )
16234 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16235 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16236 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16237 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16238 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16239 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16241 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16242 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16243 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16244 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16245 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16247 cat <<\_ASBOX
16248 ## ------------------------------------------ ##
16249 ## Report this to the AC_PACKAGE_NAME lists. ##
16250 ## ------------------------------------------ ##
16251 _ASBOX
16253 sed "s/^/$as_me: WARNING: /" >&2
16255 esac
16256 echo "$as_me:$LINENO: checking for locale.h" >&5
16257 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16258 if test "${ac_cv_header_locale_h+set}" = set; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16260 else
16261 ac_cv_header_locale_h=$ac_header_preproc
16263 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16264 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16270 for ac_func in setlocale
16272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16273 echo "$as_me:$LINENO: checking for $ac_func" >&5
16274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16275 if eval "test \"\${$as_ac_var+set}\" = set"; then
16276 echo $ECHO_N "(cached) $ECHO_C" >&6
16277 else
16278 cat >conftest.$ac_ext <<_ACEOF
16279 /* confdefs.h. */
16280 _ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16286 #define $ac_func innocuous_$ac_func
16288 /* System header to define __stub macros and hopefully few prototypes,
16289 which can conflict with char $ac_func (); below.
16290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16291 <limits.h> exists even on freestanding compilers. */
16293 #ifdef __STDC__
16294 # include <limits.h>
16295 #else
16296 # include <assert.h>
16297 #endif
16299 #undef $ac_func
16301 /* Override any gcc2 internal prototype to avoid an error. */
16302 #ifdef __cplusplus
16303 extern "C"
16305 #endif
16306 /* We use char because int might match the return type of a gcc2
16307 builtin and then its argument prototype would still apply. */
16308 char $ac_func ();
16309 /* The GNU C library defines this for functions which it implements
16310 to always fail with ENOSYS. Some functions are actually named
16311 something starting with __ and the normal name is an alias. */
16312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16313 choke me
16314 #else
16315 char (*f) () = $ac_func;
16316 #endif
16317 #ifdef __cplusplus
16319 #endif
16322 main ()
16324 return f != $ac_func;
16326 return 0;
16328 _ACEOF
16329 rm -f conftest.$ac_objext conftest$ac_exeext
16330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16331 (eval $ac_link) 2>conftest.er1
16332 ac_status=$?
16333 grep -v '^ *+' conftest.er1 >conftest.err
16334 rm -f conftest.er1
16335 cat conftest.err >&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); } &&
16338 { ac_try='test -z "$ac_c_werror_flag"
16339 || test ! -s conftest.err'
16340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16341 (eval $ac_try) 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; } &&
16345 { ac_try='test -s conftest$ac_exeext'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16348 ac_status=$?
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; }; then
16351 eval "$as_ac_var=yes"
16352 else
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16356 eval "$as_ac_var=no"
16358 rm -f conftest.err conftest.$ac_objext \
16359 conftest$ac_exeext conftest.$ac_ext
16361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16363 if test `eval echo '${'$as_ac_var'}'` = yes; then
16364 cat >>confdefs.h <<_ACEOF
16365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16366 _ACEOF
16369 done
16372 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16373 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16374 # Irix 4.0.5F has the header but not the library.
16375 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16376 ac_have_func=yes
16378 cat >>confdefs.h <<\_ACEOF
16379 #define SVR4 1
16380 _ACEOF
16384 if test $ac_have_func = no; then
16385 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16386 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16387 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16388 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16389 echo $ECHO_N "(cached) $ECHO_C" >&6
16391 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16392 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16393 else
16394 # Is the header compilable?
16395 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16396 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16397 cat >conftest.$ac_ext <<_ACEOF
16398 /* confdefs.h. */
16399 _ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h. */
16403 $ac_includes_default
16404 #include <inq_stats/cpustats.h>
16405 _ACEOF
16406 rm -f conftest.$ac_objext
16407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16408 (eval $ac_compile) 2>conftest.er1
16409 ac_status=$?
16410 grep -v '^ *+' conftest.er1 >conftest.err
16411 rm -f conftest.er1
16412 cat conftest.err >&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
16415 { ac_try='test -z "$ac_c_werror_flag"
16416 || test ! -s conftest.err'
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16419 ac_status=$?
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; } &&
16422 { ac_try='test -s conftest.$ac_objext'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16425 ac_status=$?
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; }; then
16428 ac_header_compiler=yes
16429 else
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16433 ac_header_compiler=no
16435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16437 echo "${ECHO_T}$ac_header_compiler" >&6
16439 # Is the header present?
16440 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16441 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16442 cat >conftest.$ac_ext <<_ACEOF
16443 /* confdefs.h. */
16444 _ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h. */
16448 #include <inq_stats/cpustats.h>
16449 _ACEOF
16450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16452 ac_status=$?
16453 grep -v '^ *+' conftest.er1 >conftest.err
16454 rm -f conftest.er1
16455 cat conftest.err >&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } >/dev/null; then
16458 if test -s conftest.err; then
16459 ac_cpp_err=$ac_c_preproc_warn_flag
16460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16461 else
16462 ac_cpp_err=
16464 else
16465 ac_cpp_err=yes
16467 if test -z "$ac_cpp_err"; then
16468 ac_header_preproc=yes
16469 else
16470 echo "$as_me: failed program was:" >&5
16471 sed 's/^/| /' conftest.$ac_ext >&5
16473 ac_header_preproc=no
16475 rm -f conftest.err conftest.$ac_ext
16476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16477 echo "${ECHO_T}$ac_header_preproc" >&6
16479 # So? What about this header?
16480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16481 yes:no: )
16482 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16483 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16484 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16485 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16486 ac_header_preproc=yes
16488 no:yes:* )
16489 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16490 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16491 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16492 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16493 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16494 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16495 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16496 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16497 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16498 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16499 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16500 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16502 cat <<\_ASBOX
16503 ## ------------------------------------------ ##
16504 ## Report this to the AC_PACKAGE_NAME lists. ##
16505 ## ------------------------------------------ ##
16506 _ASBOX
16508 sed "s/^/$as_me: WARNING: /" >&2
16510 esac
16511 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16512 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16513 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16514 echo $ECHO_N "(cached) $ECHO_C" >&6
16515 else
16516 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16518 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16519 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16522 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16523 ac_have_func=yes
16525 cat >>confdefs.h <<\_ACEOF
16526 #define UMAX 1
16527 _ACEOF
16530 cat >>confdefs.h <<\_ACEOF
16531 #define UMAX4_3 1
16532 _ACEOF
16539 if test $ac_have_func = no; then
16540 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16541 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16542 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16543 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16546 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16547 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16548 else
16549 # Is the header compilable?
16550 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16551 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16552 cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h. */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 $ac_includes_default
16559 #include <sys/cpustats.h>
16560 _ACEOF
16561 rm -f conftest.$ac_objext
16562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16563 (eval $ac_compile) 2>conftest.er1
16564 ac_status=$?
16565 grep -v '^ *+' conftest.er1 >conftest.err
16566 rm -f conftest.er1
16567 cat conftest.err >&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } &&
16570 { ac_try='test -z "$ac_c_werror_flag"
16571 || test ! -s conftest.err'
16572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16573 (eval $ac_try) 2>&5
16574 ac_status=$?
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); }; } &&
16577 { ac_try='test -s conftest.$ac_objext'
16578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579 (eval $ac_try) 2>&5
16580 ac_status=$?
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; }; then
16583 ac_header_compiler=yes
16584 else
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16588 ac_header_compiler=no
16590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16592 echo "${ECHO_T}$ac_header_compiler" >&6
16594 # Is the header present?
16595 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16596 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16597 cat >conftest.$ac_ext <<_ACEOF
16598 /* confdefs.h. */
16599 _ACEOF
16600 cat confdefs.h >>conftest.$ac_ext
16601 cat >>conftest.$ac_ext <<_ACEOF
16602 /* end confdefs.h. */
16603 #include <sys/cpustats.h>
16604 _ACEOF
16605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16607 ac_status=$?
16608 grep -v '^ *+' conftest.er1 >conftest.err
16609 rm -f conftest.er1
16610 cat conftest.err >&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } >/dev/null; then
16613 if test -s conftest.err; then
16614 ac_cpp_err=$ac_c_preproc_warn_flag
16615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16616 else
16617 ac_cpp_err=
16619 else
16620 ac_cpp_err=yes
16622 if test -z "$ac_cpp_err"; then
16623 ac_header_preproc=yes
16624 else
16625 echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16628 ac_header_preproc=no
16630 rm -f conftest.err conftest.$ac_ext
16631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16632 echo "${ECHO_T}$ac_header_preproc" >&6
16634 # So? What about this header?
16635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16636 yes:no: )
16637 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16638 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16639 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16640 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16641 ac_header_preproc=yes
16643 no:yes:* )
16644 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16645 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16646 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16647 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16648 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16649 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16650 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16651 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16652 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16653 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16654 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16655 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16657 cat <<\_ASBOX
16658 ## ------------------------------------------ ##
16659 ## Report this to the AC_PACKAGE_NAME lists. ##
16660 ## ------------------------------------------ ##
16661 _ASBOX
16663 sed "s/^/$as_me: WARNING: /" >&2
16665 esac
16666 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16667 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16668 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16670 else
16671 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16673 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16674 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16677 if test $ac_cv_header_sys_cpustats_h = yes; then
16678 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16679 #define UMAX 1
16680 _ACEOF
16687 if test $ac_have_func = no; then
16689 for ac_header in mach/mach.h
16691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16693 echo "$as_me:$LINENO: checking for $ac_header" >&5
16694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16700 else
16701 # Is the header compilable?
16702 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16704 cat >conftest.$ac_ext <<_ACEOF
16705 /* confdefs.h. */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16710 $ac_includes_default
16711 #include <$ac_header>
16712 _ACEOF
16713 rm -f conftest.$ac_objext
16714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16715 (eval $ac_compile) 2>conftest.er1
16716 ac_status=$?
16717 grep -v '^ *+' conftest.er1 >conftest.err
16718 rm -f conftest.er1
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } &&
16722 { ac_try='test -z "$ac_c_werror_flag"
16723 || test ! -s conftest.err'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; } &&
16729 { ac_try='test -s conftest.$ac_objext'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16735 ac_header_compiler=yes
16736 else
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ac_header_compiler=no
16742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16744 echo "${ECHO_T}$ac_header_compiler" >&6
16746 # Is the header present?
16747 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16749 cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h. */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16755 #include <$ac_header>
16756 _ACEOF
16757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16759 ac_status=$?
16760 grep -v '^ *+' conftest.er1 >conftest.err
16761 rm -f conftest.er1
16762 cat conftest.err >&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } >/dev/null; then
16765 if test -s conftest.err; then
16766 ac_cpp_err=$ac_c_preproc_warn_flag
16767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16768 else
16769 ac_cpp_err=
16771 else
16772 ac_cpp_err=yes
16774 if test -z "$ac_cpp_err"; then
16775 ac_header_preproc=yes
16776 else
16777 echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16780 ac_header_preproc=no
16782 rm -f conftest.err conftest.$ac_ext
16783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16784 echo "${ECHO_T}$ac_header_preproc" >&6
16786 # So? What about this header?
16787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16788 yes:no: )
16789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16793 ac_header_preproc=yes
16795 no:yes:* )
16796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16809 cat <<\_ASBOX
16810 ## ------------------------------------------ ##
16811 ## Report this to the AC_PACKAGE_NAME lists. ##
16812 ## ------------------------------------------ ##
16813 _ASBOX
16815 sed "s/^/$as_me: WARNING: /" >&2
16817 esac
16818 echo "$as_me:$LINENO: checking for $ac_header" >&5
16819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16821 echo $ECHO_N "(cached) $ECHO_C" >&6
16822 else
16823 eval "$as_ac_Header=\$ac_header_preproc"
16825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16830 cat >>confdefs.h <<_ACEOF
16831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16832 _ACEOF
16836 done
16841 for ac_header in nlist.h
16843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16845 echo "$as_me:$LINENO: checking for $ac_header" >&5
16846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16852 else
16853 # Is the header compilable?
16854 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16856 cat >conftest.$ac_ext <<_ACEOF
16857 /* confdefs.h. */
16858 _ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 $ac_includes_default
16863 #include <$ac_header>
16864 _ACEOF
16865 rm -f conftest.$ac_objext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16867 (eval $ac_compile) 2>conftest.er1
16868 ac_status=$?
16869 grep -v '^ *+' conftest.er1 >conftest.err
16870 rm -f conftest.er1
16871 cat conftest.err >&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } &&
16874 { ac_try='test -z "$ac_c_werror_flag"
16875 || test ! -s conftest.err'
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16878 ac_status=$?
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; } &&
16881 { ac_try='test -s conftest.$ac_objext'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
16887 ac_header_compiler=yes
16888 else
16889 echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16892 ac_header_compiler=no
16894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16896 echo "${ECHO_T}$ac_header_compiler" >&6
16898 # Is the header present?
16899 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16901 cat >conftest.$ac_ext <<_ACEOF
16902 /* confdefs.h. */
16903 _ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 #include <$ac_header>
16908 _ACEOF
16909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16911 ac_status=$?
16912 grep -v '^ *+' conftest.er1 >conftest.err
16913 rm -f conftest.er1
16914 cat conftest.err >&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } >/dev/null; then
16917 if test -s conftest.err; then
16918 ac_cpp_err=$ac_c_preproc_warn_flag
16919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16920 else
16921 ac_cpp_err=
16923 else
16924 ac_cpp_err=yes
16926 if test -z "$ac_cpp_err"; then
16927 ac_header_preproc=yes
16928 else
16929 echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16932 ac_header_preproc=no
16934 rm -f conftest.err conftest.$ac_ext
16935 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16936 echo "${ECHO_T}$ac_header_preproc" >&6
16938 # So? What about this header?
16939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16940 yes:no: )
16941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16945 ac_header_preproc=yes
16947 no:yes:* )
16948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16955 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16961 cat <<\_ASBOX
16962 ## ------------------------------------------ ##
16963 ## Report this to the AC_PACKAGE_NAME lists. ##
16964 ## ------------------------------------------ ##
16965 _ASBOX
16967 sed "s/^/$as_me: WARNING: /" >&2
16969 esac
16970 echo "$as_me:$LINENO: checking for $ac_header" >&5
16971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16973 echo $ECHO_N "(cached) $ECHO_C" >&6
16974 else
16975 eval "$as_ac_Header=\$ac_header_preproc"
16977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16982 cat >>confdefs.h <<_ACEOF
16983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16984 _ACEOF
16985 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16986 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16987 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16988 echo $ECHO_N "(cached) $ECHO_C" >&6
16989 else
16990 cat >conftest.$ac_ext <<_ACEOF
16991 /* confdefs.h. */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 #include <nlist.h>
16999 main ()
17001 static struct nlist ac_aggr;
17002 if (ac_aggr.n_un.n_name)
17003 return 0;
17005 return 0;
17007 _ACEOF
17008 rm -f conftest.$ac_objext
17009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17010 (eval $ac_compile) 2>conftest.er1
17011 ac_status=$?
17012 grep -v '^ *+' conftest.er1 >conftest.err
17013 rm -f conftest.er1
17014 cat conftest.err >&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); } &&
17017 { ac_try='test -z "$ac_c_werror_flag"
17018 || test ! -s conftest.err'
17019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020 (eval $ac_try) 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; } &&
17024 { ac_try='test -s conftest.$ac_objext'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17027 ac_status=$?
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; }; then
17030 ac_cv_member_struct_nlist_n_un_n_name=yes
17031 else
17032 echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17035 cat >conftest.$ac_ext <<_ACEOF
17036 /* confdefs.h. */
17037 _ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h. */
17041 #include <nlist.h>
17044 main ()
17046 static struct nlist ac_aggr;
17047 if (sizeof ac_aggr.n_un.n_name)
17048 return 0;
17050 return 0;
17052 _ACEOF
17053 rm -f conftest.$ac_objext
17054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17055 (eval $ac_compile) 2>conftest.er1
17056 ac_status=$?
17057 grep -v '^ *+' conftest.er1 >conftest.err
17058 rm -f conftest.er1
17059 cat conftest.err >&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } &&
17062 { ac_try='test -z "$ac_c_werror_flag"
17063 || test ! -s conftest.err'
17064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17065 (eval $ac_try) 2>&5
17066 ac_status=$?
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; } &&
17069 { ac_try='test -s conftest.$ac_objext'
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17072 ac_status=$?
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; }; then
17075 ac_cv_member_struct_nlist_n_un_n_name=yes
17076 else
17077 echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17080 ac_cv_member_struct_nlist_n_un_n_name=no
17082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17086 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17087 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17088 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17090 cat >>confdefs.h <<_ACEOF
17091 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17092 _ACEOF
17095 cat >>confdefs.h <<\_ACEOF
17096 #define NLIST_NAME_UNION 1
17097 _ACEOF
17104 done
17107 done
17110 # Some definitions of getloadavg require that the program be installed setgid.
17111 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17112 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17113 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17115 else
17116 cat >conftest.$ac_ext <<_ACEOF
17117 /* confdefs.h. */
17118 _ACEOF
17119 cat confdefs.h >>conftest.$ac_ext
17120 cat >>conftest.$ac_ext <<_ACEOF
17121 /* end confdefs.h. */
17122 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17123 #ifdef LDAV_PRIVILEGED
17124 Yowza Am I SETGID yet
17125 #endif
17126 _ACEOF
17127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17128 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17129 ac_cv_func_getloadavg_setgid=yes
17130 else
17131 ac_cv_func_getloadavg_setgid=no
17133 rm -f conftest*
17136 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17137 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17138 if test $ac_cv_func_getloadavg_setgid = yes; then
17139 NEED_SETGID=true
17141 cat >>confdefs.h <<\_ACEOF
17142 #define GETLOADAVG_PRIVILEGED 1
17143 _ACEOF
17145 else
17146 NEED_SETGID=false
17149 if test $ac_cv_func_getloadavg_setgid = yes; then
17150 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17151 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17152 if test "${ac_cv_group_kmem+set}" = set; then
17153 echo $ECHO_N "(cached) $ECHO_C" >&6
17154 else
17155 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17156 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17157 # If we got an error (system does not support symlinks), try without -L.
17158 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17159 ac_cv_group_kmem=`echo $ac_ls_output \
17160 | sed -ne 's/[ ][ ]*/ /g;
17161 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17162 / /s/.* //;p;'`
17165 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17166 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17167 KMEM_GROUP=$ac_cv_group_kmem
17169 if test "x$ac_save_LIBS" = x; then
17170 GETLOADAVG_LIBS=$LIBS
17171 else
17172 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17174 LIBS=$ac_save_LIBS
17178 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17179 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17180 if test "${ac_cv_sys_largefile_source+set}" = set; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17182 else
17183 while :; do
17184 ac_cv_sys_largefile_source=no
17185 cat >conftest.$ac_ext <<_ACEOF
17186 /* confdefs.h. */
17187 _ACEOF
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17191 #include <stdio.h>
17193 main ()
17195 return !fseeko;
17197 return 0;
17199 _ACEOF
17200 rm -f conftest.$ac_objext
17201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17202 (eval $ac_compile) 2>conftest.er1
17203 ac_status=$?
17204 grep -v '^ *+' conftest.er1 >conftest.err
17205 rm -f conftest.er1
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
17209 { ac_try='test -z "$ac_c_werror_flag"
17210 || test ! -s conftest.err'
17211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212 (eval $ac_try) 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; } &&
17216 { ac_try='test -s conftest.$ac_objext'
17217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218 (eval $ac_try) 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; }; then
17222 break
17223 else
17224 echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17229 cat >conftest.$ac_ext <<_ACEOF
17230 /* confdefs.h. */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17235 #define _LARGEFILE_SOURCE 1
17236 #include <stdio.h>
17238 main ()
17240 return !fseeko;
17242 return 0;
17244 _ACEOF
17245 rm -f conftest.$ac_objext
17246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17247 (eval $ac_compile) 2>conftest.er1
17248 ac_status=$?
17249 grep -v '^ *+' conftest.er1 >conftest.err
17250 rm -f conftest.er1
17251 cat conftest.err >&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } &&
17254 { ac_try='test -z "$ac_c_werror_flag"
17255 || test ! -s conftest.err'
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; } &&
17261 { ac_try='test -s conftest.$ac_objext'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 ac_cv_sys_largefile_source=1; break
17268 else
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17274 break
17275 done
17277 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17278 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17279 if test "$ac_cv_sys_largefile_source" != no; then
17281 cat >>confdefs.h <<_ACEOF
17282 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17283 _ACEOF
17286 rm -f conftest*
17288 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17289 # in glibc 2.1.3, but that breaks too many other things.
17290 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17291 echo "$as_me:$LINENO: checking for fseeko" >&5
17292 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17293 if test "${ac_cv_func_fseeko+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17295 else
17296 cat >conftest.$ac_ext <<_ACEOF
17297 /* confdefs.h. */
17298 _ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h. */
17302 #include <stdio.h>
17304 main ()
17306 return fseeko && fseeko (stdin, 0, 0);
17308 return 0;
17310 _ACEOF
17311 rm -f conftest.$ac_objext conftest$ac_exeext
17312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17313 (eval $ac_link) 2>conftest.er1
17314 ac_status=$?
17315 grep -v '^ *+' conftest.er1 >conftest.err
17316 rm -f conftest.er1
17317 cat conftest.err >&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try='test -z "$ac_c_werror_flag"
17321 || test ! -s conftest.err'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest$ac_exeext'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_cv_func_fseeko=yes
17334 else
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17338 ac_cv_func_fseeko=no
17340 rm -f conftest.err conftest.$ac_objext \
17341 conftest$ac_exeext conftest.$ac_ext
17343 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17344 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17345 if test $ac_cv_func_fseeko = yes; then
17347 cat >>confdefs.h <<\_ACEOF
17348 #define HAVE_FSEEKO 1
17349 _ACEOF
17354 # Configure getopt.
17355 # getopt.m4 serial 10
17357 # The getopt module assume you want GNU getopt, with getopt_long etc,
17358 # rather than vanilla POSIX getopt. This means your your code should
17359 # always include <getopt.h> for the getopt prototypes.
17371 # Prerequisites of lib/getopt*.
17376 GETOPT_H=
17378 for ac_header in getopt.h
17380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17382 echo "$as_me:$LINENO: checking for $ac_header" >&5
17383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17385 echo $ECHO_N "(cached) $ECHO_C" >&6
17387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17389 else
17390 # Is the header compilable?
17391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17393 cat >conftest.$ac_ext <<_ACEOF
17394 /* confdefs.h. */
17395 _ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h. */
17399 $ac_includes_default
17400 #include <$ac_header>
17401 _ACEOF
17402 rm -f conftest.$ac_objext
17403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17404 (eval $ac_compile) 2>conftest.er1
17405 ac_status=$?
17406 grep -v '^ *+' conftest.er1 >conftest.err
17407 rm -f conftest.er1
17408 cat conftest.err >&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); } &&
17411 { ac_try='test -z "$ac_c_werror_flag"
17412 || test ! -s conftest.err'
17413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414 (eval $ac_try) 2>&5
17415 ac_status=$?
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; } &&
17418 { ac_try='test -s conftest.$ac_objext'
17419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17420 (eval $ac_try) 2>&5
17421 ac_status=$?
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); }; }; then
17424 ac_header_compiler=yes
17425 else
17426 echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.$ac_ext >&5
17429 ac_header_compiler=no
17431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17433 echo "${ECHO_T}$ac_header_compiler" >&6
17435 # Is the header present?
17436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17438 cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h. */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 #include <$ac_header>
17445 _ACEOF
17446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17448 ac_status=$?
17449 grep -v '^ *+' conftest.er1 >conftest.err
17450 rm -f conftest.er1
17451 cat conftest.err >&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); } >/dev/null; then
17454 if test -s conftest.err; then
17455 ac_cpp_err=$ac_c_preproc_warn_flag
17456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17457 else
17458 ac_cpp_err=
17460 else
17461 ac_cpp_err=yes
17463 if test -z "$ac_cpp_err"; then
17464 ac_header_preproc=yes
17465 else
17466 echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17469 ac_header_preproc=no
17471 rm -f conftest.err conftest.$ac_ext
17472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17473 echo "${ECHO_T}$ac_header_preproc" >&6
17475 # So? What about this header?
17476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17477 yes:no: )
17478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17482 ac_header_preproc=yes
17484 no:yes:* )
17485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17498 cat <<\_ASBOX
17499 ## ------------------------------------------ ##
17500 ## Report this to the AC_PACKAGE_NAME lists. ##
17501 ## ------------------------------------------ ##
17502 _ASBOX
17504 sed "s/^/$as_me: WARNING: /" >&2
17506 esac
17507 echo "$as_me:$LINENO: checking for $ac_header" >&5
17508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17510 echo $ECHO_N "(cached) $ECHO_C" >&6
17511 else
17512 eval "$as_ac_Header=\$ac_header_preproc"
17514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17519 cat >>confdefs.h <<_ACEOF
17520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17521 _ACEOF
17523 else
17524 GETOPT_H=getopt.h
17527 done
17529 if test -z "$GETOPT_H"; then
17531 for ac_func in getopt_long_only
17533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17534 echo "$as_me:$LINENO: checking for $ac_func" >&5
17535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17536 if eval "test \"\${$as_ac_var+set}\" = set"; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17538 else
17539 cat >conftest.$ac_ext <<_ACEOF
17540 /* confdefs.h. */
17541 _ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17547 #define $ac_func innocuous_$ac_func
17549 /* System header to define __stub macros and hopefully few prototypes,
17550 which can conflict with char $ac_func (); below.
17551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17552 <limits.h> exists even on freestanding compilers. */
17554 #ifdef __STDC__
17555 # include <limits.h>
17556 #else
17557 # include <assert.h>
17558 #endif
17560 #undef $ac_func
17562 /* Override any gcc2 internal prototype to avoid an error. */
17563 #ifdef __cplusplus
17564 extern "C"
17566 #endif
17567 /* We use char because int might match the return type of a gcc2
17568 builtin and then its argument prototype would still apply. */
17569 char $ac_func ();
17570 /* The GNU C library defines this for functions which it implements
17571 to always fail with ENOSYS. Some functions are actually named
17572 something starting with __ and the normal name is an alias. */
17573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17574 choke me
17575 #else
17576 char (*f) () = $ac_func;
17577 #endif
17578 #ifdef __cplusplus
17580 #endif
17583 main ()
17585 return f != $ac_func;
17587 return 0;
17589 _ACEOF
17590 rm -f conftest.$ac_objext conftest$ac_exeext
17591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17592 (eval $ac_link) 2>conftest.er1
17593 ac_status=$?
17594 grep -v '^ *+' conftest.er1 >conftest.err
17595 rm -f conftest.er1
17596 cat conftest.err >&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); } &&
17599 { ac_try='test -z "$ac_c_werror_flag"
17600 || test ! -s conftest.err'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17603 ac_status=$?
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; } &&
17606 { ac_try='test -s conftest$ac_exeext'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612 eval "$as_ac_var=yes"
17613 else
17614 echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17617 eval "$as_ac_var=no"
17619 rm -f conftest.err conftest.$ac_objext \
17620 conftest$ac_exeext conftest.$ac_ext
17622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17624 if test `eval echo '${'$as_ac_var'}'` = yes; then
17625 cat >>confdefs.h <<_ACEOF
17626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17627 _ACEOF
17629 else
17630 GETOPT_H=getopt.h
17632 done
17636 if test -z "$GETOPT_H"; then
17637 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17638 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17639 if test "${ac_cv_have_decl_optreset+set}" = set; then
17640 echo $ECHO_N "(cached) $ECHO_C" >&6
17641 else
17642 cat >conftest.$ac_ext <<_ACEOF
17643 /* confdefs.h. */
17644 _ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h. */
17648 #include <getopt.h>
17651 main ()
17653 #ifndef optreset
17654 char *p = (char *) optreset;
17655 #endif
17658 return 0;
17660 _ACEOF
17661 rm -f conftest.$ac_objext
17662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17663 (eval $ac_compile) 2>conftest.er1
17664 ac_status=$?
17665 grep -v '^ *+' conftest.er1 >conftest.err
17666 rm -f conftest.er1
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } &&
17670 { ac_try='test -z "$ac_c_werror_flag"
17671 || test ! -s conftest.err'
17672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673 (eval $ac_try) 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; } &&
17677 { ac_try='test -s conftest.$ac_objext'
17678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17679 (eval $ac_try) 2>&5
17680 ac_status=$?
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); }; }; then
17683 ac_cv_have_decl_optreset=yes
17684 else
17685 echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17688 ac_cv_have_decl_optreset=no
17690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17692 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17693 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17694 if test $ac_cv_have_decl_optreset = yes; then
17695 GETOPT_H=getopt.h
17700 if test -z "$GETOPT_H"; then
17701 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17702 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17703 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17705 else
17706 if test "$cross_compiling" = yes; then
17707 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17708 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17709 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17710 echo $ECHO_N "(cached) $ECHO_C" >&6
17711 else
17712 cat >conftest.$ac_ext <<_ACEOF
17713 /* confdefs.h. */
17714 _ACEOF
17715 cat confdefs.h >>conftest.$ac_ext
17716 cat >>conftest.$ac_ext <<_ACEOF
17717 /* end confdefs.h. */
17718 #include <getopt.h>
17721 main ()
17723 #ifndef getopt_clip
17724 char *p = (char *) getopt_clip;
17725 #endif
17728 return 0;
17730 _ACEOF
17731 rm -f conftest.$ac_objext
17732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17733 (eval $ac_compile) 2>conftest.er1
17734 ac_status=$?
17735 grep -v '^ *+' conftest.er1 >conftest.err
17736 rm -f conftest.er1
17737 cat conftest.err >&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); } &&
17740 { ac_try='test -z "$ac_c_werror_flag"
17741 || test ! -s conftest.err'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try='test -s conftest.$ac_objext'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; }; then
17753 ac_cv_have_decl_getopt_clip=yes
17754 else
17755 echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17758 ac_cv_have_decl_getopt_clip=no
17760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17762 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17763 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17764 if test $ac_cv_have_decl_getopt_clip = yes; then
17765 gl_cv_func_gnu_getopt=no
17766 else
17767 gl_cv_func_gnu_getopt=yes
17770 else
17771 cat >conftest.$ac_ext <<_ACEOF
17772 /* confdefs.h. */
17773 _ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17777 #include <getopt.h>
17779 main ()
17782 char *myargv[3];
17783 myargv[0] = "conftest";
17784 myargv[1] = "-+";
17785 myargv[2] = 0;
17786 return getopt (2, myargv, "+a") != '?';
17789 return 0;
17791 _ACEOF
17792 rm -f conftest$ac_exeext
17793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17794 (eval $ac_link) 2>&5
17795 ac_status=$?
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799 (eval $ac_try) 2>&5
17800 ac_status=$?
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; }; then
17803 gl_cv_func_gnu_getopt=yes
17804 else
17805 echo "$as_me: program exited with status $ac_status" >&5
17806 echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17809 ( exit $ac_status )
17810 gl_cv_func_gnu_getopt=no
17812 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17815 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17816 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17817 if test "$gl_cv_func_gnu_getopt" = "no"; then
17818 GETOPT_H=getopt.h
17824 if test -n "$GETOPT_H"; then
17827 GETOPT_H=getopt.h
17829 cat >>confdefs.h <<\_ACEOF
17830 #define __GETOPT_PREFIX rpl_
17831 _ACEOF
17836 GETOPTOBJS='getopt.o getopt1.o'
17843 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17844 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17845 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17846 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 else
17848 # Use it with a single arg.
17849 cat >conftest.$ac_ext <<_ACEOF
17850 /* confdefs.h. */
17851 _ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17855 $ac_includes_default
17857 main ()
17859 getpgrp (0);
17861 return 0;
17863 _ACEOF
17864 rm -f conftest.$ac_objext
17865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17866 (eval $ac_compile) 2>conftest.er1
17867 ac_status=$?
17868 grep -v '^ *+' conftest.er1 >conftest.err
17869 rm -f conftest.er1
17870 cat conftest.err >&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } &&
17873 { ac_try='test -z "$ac_c_werror_flag"
17874 || test ! -s conftest.err'
17875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876 (eval $ac_try) 2>&5
17877 ac_status=$?
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; } &&
17880 { ac_try='test -s conftest.$ac_objext'
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17883 ac_status=$?
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; }; then
17886 ac_cv_func_getpgrp_void=no
17887 else
17888 echo "$as_me: failed program was:" >&5
17889 sed 's/^/| /' conftest.$ac_ext >&5
17891 ac_cv_func_getpgrp_void=yes
17893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17896 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17897 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17898 if test $ac_cv_func_getpgrp_void = yes; then
17900 cat >>confdefs.h <<\_ACEOF
17901 #define GETPGRP_VOID 1
17902 _ACEOF
17908 for ac_func in strftime
17910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17911 echo "$as_me:$LINENO: checking for $ac_func" >&5
17912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17913 if eval "test \"\${$as_ac_var+set}\" = set"; then
17914 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 else
17916 cat >conftest.$ac_ext <<_ACEOF
17917 /* confdefs.h. */
17918 _ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h. */
17922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17924 #define $ac_func innocuous_$ac_func
17926 /* System header to define __stub macros and hopefully few prototypes,
17927 which can conflict with char $ac_func (); below.
17928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17929 <limits.h> exists even on freestanding compilers. */
17931 #ifdef __STDC__
17932 # include <limits.h>
17933 #else
17934 # include <assert.h>
17935 #endif
17937 #undef $ac_func
17939 /* Override any gcc2 internal prototype to avoid an error. */
17940 #ifdef __cplusplus
17941 extern "C"
17943 #endif
17944 /* We use char because int might match the return type of a gcc2
17945 builtin and then its argument prototype would still apply. */
17946 char $ac_func ();
17947 /* The GNU C library defines this for functions which it implements
17948 to always fail with ENOSYS. Some functions are actually named
17949 something starting with __ and the normal name is an alias. */
17950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17951 choke me
17952 #else
17953 char (*f) () = $ac_func;
17954 #endif
17955 #ifdef __cplusplus
17957 #endif
17960 main ()
17962 return f != $ac_func;
17964 return 0;
17966 _ACEOF
17967 rm -f conftest.$ac_objext conftest$ac_exeext
17968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17969 (eval $ac_link) 2>conftest.er1
17970 ac_status=$?
17971 grep -v '^ *+' conftest.er1 >conftest.err
17972 rm -f conftest.er1
17973 cat conftest.err >&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); } &&
17976 { ac_try='test -z "$ac_c_werror_flag"
17977 || test ! -s conftest.err'
17978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17980 ac_status=$?
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); }; } &&
17983 { ac_try='test -s conftest$ac_exeext'
17984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17985 (eval $ac_try) 2>&5
17986 ac_status=$?
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); }; }; then
17989 eval "$as_ac_var=yes"
17990 else
17991 echo "$as_me: failed program was:" >&5
17992 sed 's/^/| /' conftest.$ac_ext >&5
17994 eval "$as_ac_var=no"
17996 rm -f conftest.err conftest.$ac_objext \
17997 conftest$ac_exeext conftest.$ac_ext
17999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18001 if test `eval echo '${'$as_ac_var'}'` = yes; then
18002 cat >>confdefs.h <<_ACEOF
18003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18004 _ACEOF
18006 else
18007 # strftime is in -lintl on SCO UNIX.
18008 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18009 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18010 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18011 echo $ECHO_N "(cached) $ECHO_C" >&6
18012 else
18013 ac_check_lib_save_LIBS=$LIBS
18014 LIBS="-lintl $LIBS"
18015 cat >conftest.$ac_ext <<_ACEOF
18016 /* confdefs.h. */
18017 _ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18022 /* Override any gcc2 internal prototype to avoid an error. */
18023 #ifdef __cplusplus
18024 extern "C"
18025 #endif
18026 /* We use char because int might match the return type of a gcc2
18027 builtin and then its argument prototype would still apply. */
18028 char strftime ();
18030 main ()
18032 strftime ();
18034 return 0;
18036 _ACEOF
18037 rm -f conftest.$ac_objext conftest$ac_exeext
18038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18039 (eval $ac_link) 2>conftest.er1
18040 ac_status=$?
18041 grep -v '^ *+' conftest.er1 >conftest.err
18042 rm -f conftest.er1
18043 cat conftest.err >&5
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); } &&
18046 { ac_try='test -z "$ac_c_werror_flag"
18047 || test ! -s conftest.err'
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18050 ac_status=$?
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; } &&
18053 { ac_try='test -s conftest$ac_exeext'
18054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055 (eval $ac_try) 2>&5
18056 ac_status=$?
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; }; then
18059 ac_cv_lib_intl_strftime=yes
18060 else
18061 echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18064 ac_cv_lib_intl_strftime=no
18066 rm -f conftest.err conftest.$ac_objext \
18067 conftest$ac_exeext conftest.$ac_ext
18068 LIBS=$ac_check_lib_save_LIBS
18070 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18071 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18072 if test $ac_cv_lib_intl_strftime = yes; then
18073 cat >>confdefs.h <<\_ACEOF
18074 #define HAVE_STRFTIME 1
18075 _ACEOF
18077 LIBS="-lintl $LIBS"
18081 done
18084 # UNIX98 PTYs.
18086 for ac_func in grantpt
18088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18089 echo "$as_me:$LINENO: checking for $ac_func" >&5
18090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18091 if eval "test \"\${$as_ac_var+set}\" = set"; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18093 else
18094 cat >conftest.$ac_ext <<_ACEOF
18095 /* confdefs.h. */
18096 _ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18102 #define $ac_func innocuous_$ac_func
18104 /* System header to define __stub macros and hopefully few prototypes,
18105 which can conflict with char $ac_func (); below.
18106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18107 <limits.h> exists even on freestanding compilers. */
18109 #ifdef __STDC__
18110 # include <limits.h>
18111 #else
18112 # include <assert.h>
18113 #endif
18115 #undef $ac_func
18117 /* Override any gcc2 internal prototype to avoid an error. */
18118 #ifdef __cplusplus
18119 extern "C"
18121 #endif
18122 /* We use char because int might match the return type of a gcc2
18123 builtin and then its argument prototype would still apply. */
18124 char $ac_func ();
18125 /* The GNU C library defines this for functions which it implements
18126 to always fail with ENOSYS. Some functions are actually named
18127 something starting with __ and the normal name is an alias. */
18128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18129 choke me
18130 #else
18131 char (*f) () = $ac_func;
18132 #endif
18133 #ifdef __cplusplus
18135 #endif
18138 main ()
18140 return f != $ac_func;
18142 return 0;
18144 _ACEOF
18145 rm -f conftest.$ac_objext conftest$ac_exeext
18146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18147 (eval $ac_link) 2>conftest.er1
18148 ac_status=$?
18149 grep -v '^ *+' conftest.er1 >conftest.err
18150 rm -f conftest.er1
18151 cat conftest.err >&5
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); } &&
18154 { ac_try='test -z "$ac_c_werror_flag"
18155 || test ! -s conftest.err'
18156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157 (eval $ac_try) 2>&5
18158 ac_status=$?
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; } &&
18161 { ac_try='test -s conftest$ac_exeext'
18162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163 (eval $ac_try) 2>&5
18164 ac_status=$?
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); }; }; then
18167 eval "$as_ac_var=yes"
18168 else
18169 echo "$as_me: failed program was:" >&5
18170 sed 's/^/| /' conftest.$ac_ext >&5
18172 eval "$as_ac_var=no"
18174 rm -f conftest.err conftest.$ac_objext \
18175 conftest$ac_exeext conftest.$ac_ext
18177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18179 if test `eval echo '${'$as_ac_var'}'` = yes; then
18180 cat >>confdefs.h <<_ACEOF
18181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18182 _ACEOF
18185 done
18188 # PTY-related GNU extensions.
18190 for ac_func in getpt
18192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18193 echo "$as_me:$LINENO: checking for $ac_func" >&5
18194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18195 if eval "test \"\${$as_ac_var+set}\" = set"; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18198 cat >conftest.$ac_ext <<_ACEOF
18199 /* confdefs.h. */
18200 _ACEOF
18201 cat confdefs.h >>conftest.$ac_ext
18202 cat >>conftest.$ac_ext <<_ACEOF
18203 /* end confdefs.h. */
18204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18206 #define $ac_func innocuous_$ac_func
18208 /* System header to define __stub macros and hopefully few prototypes,
18209 which can conflict with char $ac_func (); below.
18210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18211 <limits.h> exists even on freestanding compilers. */
18213 #ifdef __STDC__
18214 # include <limits.h>
18215 #else
18216 # include <assert.h>
18217 #endif
18219 #undef $ac_func
18221 /* Override any gcc2 internal prototype to avoid an error. */
18222 #ifdef __cplusplus
18223 extern "C"
18225 #endif
18226 /* We use char because int might match the return type of a gcc2
18227 builtin and then its argument prototype would still apply. */
18228 char $ac_func ();
18229 /* The GNU C library defines this for functions which it implements
18230 to always fail with ENOSYS. Some functions are actually named
18231 something starting with __ and the normal name is an alias. */
18232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18233 choke me
18234 #else
18235 char (*f) () = $ac_func;
18236 #endif
18237 #ifdef __cplusplus
18239 #endif
18242 main ()
18244 return f != $ac_func;
18246 return 0;
18248 _ACEOF
18249 rm -f conftest.$ac_objext conftest$ac_exeext
18250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18251 (eval $ac_link) 2>conftest.er1
18252 ac_status=$?
18253 grep -v '^ *+' conftest.er1 >conftest.err
18254 rm -f conftest.er1
18255 cat conftest.err >&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } &&
18258 { ac_try='test -z "$ac_c_werror_flag"
18259 || test ! -s conftest.err'
18260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261 (eval $ac_try) 2>&5
18262 ac_status=$?
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; } &&
18265 { ac_try='test -s conftest$ac_exeext'
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
18271 eval "$as_ac_var=yes"
18272 else
18273 echo "$as_me: failed program was:" >&5
18274 sed 's/^/| /' conftest.$ac_ext >&5
18276 eval "$as_ac_var=no"
18278 rm -f conftest.err conftest.$ac_objext \
18279 conftest$ac_exeext conftest.$ac_ext
18281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18283 if test `eval echo '${'$as_ac_var'}'` = yes; then
18284 cat >>confdefs.h <<_ACEOF
18285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18286 _ACEOF
18289 done
18292 # Check this now, so that we will NOT find the above functions in ncurses.
18293 # That is because we have not set up to link ncurses in lib-src.
18294 # It's better to believe a function is not available
18295 # than to expect to find it in ncurses.
18297 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18298 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18299 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18300 echo $ECHO_N "(cached) $ECHO_C" >&6
18301 else
18302 ac_check_lib_save_LIBS=$LIBS
18303 LIBS="-lncurses $LIBS"
18304 cat >conftest.$ac_ext <<_ACEOF
18305 /* confdefs.h. */
18306 _ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18311 /* Override any gcc2 internal prototype to avoid an error. */
18312 #ifdef __cplusplus
18313 extern "C"
18314 #endif
18315 /* We use char because int might match the return type of a gcc2
18316 builtin and then its argument prototype would still apply. */
18317 char tparm ();
18319 main ()
18321 tparm ();
18323 return 0;
18325 _ACEOF
18326 rm -f conftest.$ac_objext conftest$ac_exeext
18327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18328 (eval $ac_link) 2>conftest.er1
18329 ac_status=$?
18330 grep -v '^ *+' conftest.er1 >conftest.err
18331 rm -f conftest.er1
18332 cat conftest.err >&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } &&
18335 { ac_try='test -z "$ac_c_werror_flag"
18336 || test ! -s conftest.err'
18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338 (eval $ac_try) 2>&5
18339 ac_status=$?
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; } &&
18342 { ac_try='test -s conftest$ac_exeext'
18343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344 (eval $ac_try) 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; }; then
18348 ac_cv_lib_ncurses_tparm=yes
18349 else
18350 echo "$as_me: failed program was:" >&5
18351 sed 's/^/| /' conftest.$ac_ext >&5
18353 ac_cv_lib_ncurses_tparm=no
18355 rm -f conftest.err conftest.$ac_objext \
18356 conftest$ac_exeext conftest.$ac_ext
18357 LIBS=$ac_check_lib_save_LIBS
18359 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18360 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18361 if test $ac_cv_lib_ncurses_tparm = yes; then
18362 cat >>confdefs.h <<_ACEOF
18363 #define HAVE_LIBNCURSES 1
18364 _ACEOF
18366 LIBS="-lncurses $LIBS"
18371 # Do we need the Hesiod library to provide the support routines?
18372 if test "$with_hesiod" = yes ; then
18373 # Don't set $LIBS here -- see comments above.
18374 resolv=no
18375 echo "$as_me:$LINENO: checking for res_send" >&5
18376 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18377 if test "${ac_cv_func_res_send+set}" = set; then
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18379 else
18380 cat >conftest.$ac_ext <<_ACEOF
18381 /* confdefs.h. */
18382 _ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h. */
18386 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18388 #define res_send innocuous_res_send
18390 /* System header to define __stub macros and hopefully few prototypes,
18391 which can conflict with char res_send (); below.
18392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18393 <limits.h> exists even on freestanding compilers. */
18395 #ifdef __STDC__
18396 # include <limits.h>
18397 #else
18398 # include <assert.h>
18399 #endif
18401 #undef res_send
18403 /* Override any gcc2 internal prototype to avoid an error. */
18404 #ifdef __cplusplus
18405 extern "C"
18407 #endif
18408 /* We use char because int might match the return type of a gcc2
18409 builtin and then its argument prototype would still apply. */
18410 char res_send ();
18411 /* The GNU C library defines this for functions which it implements
18412 to always fail with ENOSYS. Some functions are actually named
18413 something starting with __ and the normal name is an alias. */
18414 #if defined (__stub_res_send) || defined (__stub___res_send)
18415 choke me
18416 #else
18417 char (*f) () = res_send;
18418 #endif
18419 #ifdef __cplusplus
18421 #endif
18424 main ()
18426 return f != res_send;
18428 return 0;
18430 _ACEOF
18431 rm -f conftest.$ac_objext conftest$ac_exeext
18432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18433 (eval $ac_link) 2>conftest.er1
18434 ac_status=$?
18435 grep -v '^ *+' conftest.er1 >conftest.err
18436 rm -f conftest.er1
18437 cat conftest.err >&5
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); } &&
18440 { ac_try='test -z "$ac_c_werror_flag"
18441 || test ! -s conftest.err'
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; } &&
18447 { ac_try='test -s conftest$ac_exeext'
18448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18449 (eval $ac_try) 2>&5
18450 ac_status=$?
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); }; }; then
18453 ac_cv_func_res_send=yes
18454 else
18455 echo "$as_me: failed program was:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18458 ac_cv_func_res_send=no
18460 rm -f conftest.err conftest.$ac_objext \
18461 conftest$ac_exeext conftest.$ac_ext
18463 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18464 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18465 if test $ac_cv_func_res_send = yes; then
18467 else
18468 echo "$as_me:$LINENO: checking for __res_send" >&5
18469 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18470 if test "${ac_cv_func___res_send+set}" = set; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18472 else
18473 cat >conftest.$ac_ext <<_ACEOF
18474 /* confdefs.h. */
18475 _ACEOF
18476 cat confdefs.h >>conftest.$ac_ext
18477 cat >>conftest.$ac_ext <<_ACEOF
18478 /* end confdefs.h. */
18479 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18481 #define __res_send innocuous___res_send
18483 /* System header to define __stub macros and hopefully few prototypes,
18484 which can conflict with char __res_send (); below.
18485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18486 <limits.h> exists even on freestanding compilers. */
18488 #ifdef __STDC__
18489 # include <limits.h>
18490 #else
18491 # include <assert.h>
18492 #endif
18494 #undef __res_send
18496 /* Override any gcc2 internal prototype to avoid an error. */
18497 #ifdef __cplusplus
18498 extern "C"
18500 #endif
18501 /* We use char because int might match the return type of a gcc2
18502 builtin and then its argument prototype would still apply. */
18503 char __res_send ();
18504 /* The GNU C library defines this for functions which it implements
18505 to always fail with ENOSYS. Some functions are actually named
18506 something starting with __ and the normal name is an alias. */
18507 #if defined (__stub___res_send) || defined (__stub_____res_send)
18508 choke me
18509 #else
18510 char (*f) () = __res_send;
18511 #endif
18512 #ifdef __cplusplus
18514 #endif
18517 main ()
18519 return f != __res_send;
18521 return 0;
18523 _ACEOF
18524 rm -f conftest.$ac_objext conftest$ac_exeext
18525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18526 (eval $ac_link) 2>conftest.er1
18527 ac_status=$?
18528 grep -v '^ *+' conftest.er1 >conftest.err
18529 rm -f conftest.er1
18530 cat conftest.err >&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); } &&
18533 { ac_try='test -z "$ac_c_werror_flag"
18534 || test ! -s conftest.err'
18535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18536 (eval $ac_try) 2>&5
18537 ac_status=$?
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; } &&
18540 { ac_try='test -s conftest$ac_exeext'
18541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542 (eval $ac_try) 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; }; then
18546 ac_cv_func___res_send=yes
18547 else
18548 echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18551 ac_cv_func___res_send=no
18553 rm -f conftest.err conftest.$ac_objext \
18554 conftest$ac_exeext conftest.$ac_ext
18556 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18557 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18558 if test $ac_cv_func___res_send = yes; then
18560 else
18561 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18562 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18563 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18564 echo $ECHO_N "(cached) $ECHO_C" >&6
18565 else
18566 ac_check_lib_save_LIBS=$LIBS
18567 LIBS="-lresolv $LIBS"
18568 cat >conftest.$ac_ext <<_ACEOF
18569 /* confdefs.h. */
18570 _ACEOF
18571 cat confdefs.h >>conftest.$ac_ext
18572 cat >>conftest.$ac_ext <<_ACEOF
18573 /* end confdefs.h. */
18575 /* Override any gcc2 internal prototype to avoid an error. */
18576 #ifdef __cplusplus
18577 extern "C"
18578 #endif
18579 /* We use char because int might match the return type of a gcc2
18580 builtin and then its argument prototype would still apply. */
18581 char res_send ();
18583 main ()
18585 res_send ();
18587 return 0;
18589 _ACEOF
18590 rm -f conftest.$ac_objext conftest$ac_exeext
18591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18592 (eval $ac_link) 2>conftest.er1
18593 ac_status=$?
18594 grep -v '^ *+' conftest.er1 >conftest.err
18595 rm -f conftest.er1
18596 cat conftest.err >&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } &&
18599 { ac_try='test -z "$ac_c_werror_flag"
18600 || test ! -s conftest.err'
18601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18602 (eval $ac_try) 2>&5
18603 ac_status=$?
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); }; } &&
18606 { ac_try='test -s conftest$ac_exeext'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; }; then
18612 ac_cv_lib_resolv_res_send=yes
18613 else
18614 echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18617 ac_cv_lib_resolv_res_send=no
18619 rm -f conftest.err conftest.$ac_objext \
18620 conftest$ac_exeext conftest.$ac_ext
18621 LIBS=$ac_check_lib_save_LIBS
18623 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18624 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18625 if test $ac_cv_lib_resolv_res_send = yes; then
18626 resolv=yes
18627 else
18628 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18629 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18630 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18631 echo $ECHO_N "(cached) $ECHO_C" >&6
18632 else
18633 ac_check_lib_save_LIBS=$LIBS
18634 LIBS="-lresolv $LIBS"
18635 cat >conftest.$ac_ext <<_ACEOF
18636 /* confdefs.h. */
18637 _ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h. */
18642 /* Override any gcc2 internal prototype to avoid an error. */
18643 #ifdef __cplusplus
18644 extern "C"
18645 #endif
18646 /* We use char because int might match the return type of a gcc2
18647 builtin and then its argument prototype would still apply. */
18648 char __res_send ();
18650 main ()
18652 __res_send ();
18654 return 0;
18656 _ACEOF
18657 rm -f conftest.$ac_objext conftest$ac_exeext
18658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18659 (eval $ac_link) 2>conftest.er1
18660 ac_status=$?
18661 grep -v '^ *+' conftest.er1 >conftest.err
18662 rm -f conftest.er1
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try='test -z "$ac_c_werror_flag"
18667 || test ! -s conftest.err'
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; } &&
18673 { ac_try='test -s conftest$ac_exeext'
18674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675 (eval $ac_try) 2>&5
18676 ac_status=$?
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; }; then
18679 ac_cv_lib_resolv___res_send=yes
18680 else
18681 echo "$as_me: failed program was:" >&5
18682 sed 's/^/| /' conftest.$ac_ext >&5
18684 ac_cv_lib_resolv___res_send=no
18686 rm -f conftest.err conftest.$ac_objext \
18687 conftest$ac_exeext conftest.$ac_ext
18688 LIBS=$ac_check_lib_save_LIBS
18690 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18691 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18692 if test $ac_cv_lib_resolv___res_send = yes; then
18693 resolv=yes
18702 if test "$resolv" = yes ; then
18703 RESOLVLIB=-lresolv
18705 cat >>confdefs.h <<\_ACEOF
18706 #define HAVE_LIBRESOLV 1
18707 _ACEOF
18709 else
18710 RESOLVLIB=
18712 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18713 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18714 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18716 else
18717 cat >conftest.$ac_ext <<_ACEOF
18718 /* confdefs.h. */
18719 _ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18725 #define hes_getmailhost innocuous_hes_getmailhost
18727 /* System header to define __stub macros and hopefully few prototypes,
18728 which can conflict with char hes_getmailhost (); below.
18729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18730 <limits.h> exists even on freestanding compilers. */
18732 #ifdef __STDC__
18733 # include <limits.h>
18734 #else
18735 # include <assert.h>
18736 #endif
18738 #undef hes_getmailhost
18740 /* Override any gcc2 internal prototype to avoid an error. */
18741 #ifdef __cplusplus
18742 extern "C"
18744 #endif
18745 /* We use char because int might match the return type of a gcc2
18746 builtin and then its argument prototype would still apply. */
18747 char hes_getmailhost ();
18748 /* The GNU C library defines this for functions which it implements
18749 to always fail with ENOSYS. Some functions are actually named
18750 something starting with __ and the normal name is an alias. */
18751 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18752 choke me
18753 #else
18754 char (*f) () = hes_getmailhost;
18755 #endif
18756 #ifdef __cplusplus
18758 #endif
18761 main ()
18763 return f != hes_getmailhost;
18765 return 0;
18767 _ACEOF
18768 rm -f conftest.$ac_objext conftest$ac_exeext
18769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18770 (eval $ac_link) 2>conftest.er1
18771 ac_status=$?
18772 grep -v '^ *+' conftest.er1 >conftest.err
18773 rm -f conftest.er1
18774 cat conftest.err >&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } &&
18777 { ac_try='test -z "$ac_c_werror_flag"
18778 || test ! -s conftest.err'
18779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780 (eval $ac_try) 2>&5
18781 ac_status=$?
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; } &&
18784 { ac_try='test -s conftest$ac_exeext'
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18787 ac_status=$?
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; }; then
18790 ac_cv_func_hes_getmailhost=yes
18791 else
18792 echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18795 ac_cv_func_hes_getmailhost=no
18797 rm -f conftest.err conftest.$ac_objext \
18798 conftest$ac_exeext conftest.$ac_ext
18800 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18801 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18802 if test $ac_cv_func_hes_getmailhost = yes; then
18804 else
18805 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18806 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18807 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18809 else
18810 ac_check_lib_save_LIBS=$LIBS
18811 LIBS="-lhesiod $RESOLVLIB $LIBS"
18812 cat >conftest.$ac_ext <<_ACEOF
18813 /* confdefs.h. */
18814 _ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h. */
18819 /* Override any gcc2 internal prototype to avoid an error. */
18820 #ifdef __cplusplus
18821 extern "C"
18822 #endif
18823 /* We use char because int might match the return type of a gcc2
18824 builtin and then its argument prototype would still apply. */
18825 char hes_getmailhost ();
18827 main ()
18829 hes_getmailhost ();
18831 return 0;
18833 _ACEOF
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18836 (eval $ac_link) 2>conftest.er1
18837 ac_status=$?
18838 grep -v '^ *+' conftest.er1 >conftest.err
18839 rm -f conftest.er1
18840 cat conftest.err >&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } &&
18843 { ac_try='test -z "$ac_c_werror_flag"
18844 || test ! -s conftest.err'
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest$ac_exeext'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 ac_cv_lib_hesiod_hes_getmailhost=yes
18857 else
18858 echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18861 ac_cv_lib_hesiod_hes_getmailhost=no
18863 rm -f conftest.err conftest.$ac_objext \
18864 conftest$ac_exeext conftest.$ac_ext
18865 LIBS=$ac_check_lib_save_LIBS
18867 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18868 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18869 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18871 cat >>confdefs.h <<\_ACEOF
18872 #define HAVE_LIBHESIOD 1
18873 _ACEOF
18875 else
18883 # These tell us which Kerberos-related libraries to use.
18884 if test "${with_kerberos+set}" = set; then
18886 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18887 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18888 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 else
18891 ac_check_lib_save_LIBS=$LIBS
18892 LIBS="-lcom_err $LIBS"
18893 cat >conftest.$ac_ext <<_ACEOF
18894 /* confdefs.h. */
18895 _ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18900 /* Override any gcc2 internal prototype to avoid an error. */
18901 #ifdef __cplusplus
18902 extern "C"
18903 #endif
18904 /* We use char because int might match the return type of a gcc2
18905 builtin and then its argument prototype would still apply. */
18906 char com_err ();
18908 main ()
18910 com_err ();
18912 return 0;
18914 _ACEOF
18915 rm -f conftest.$ac_objext conftest$ac_exeext
18916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18917 (eval $ac_link) 2>conftest.er1
18918 ac_status=$?
18919 grep -v '^ *+' conftest.er1 >conftest.err
18920 rm -f conftest.er1
18921 cat conftest.err >&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } &&
18924 { ac_try='test -z "$ac_c_werror_flag"
18925 || test ! -s conftest.err'
18926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927 (eval $ac_try) 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; } &&
18931 { ac_try='test -s conftest$ac_exeext'
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; }; then
18937 ac_cv_lib_com_err_com_err=yes
18938 else
18939 echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18942 ac_cv_lib_com_err_com_err=no
18944 rm -f conftest.err conftest.$ac_objext \
18945 conftest$ac_exeext conftest.$ac_ext
18946 LIBS=$ac_check_lib_save_LIBS
18948 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18949 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18950 if test $ac_cv_lib_com_err_com_err = yes; then
18951 cat >>confdefs.h <<_ACEOF
18952 #define HAVE_LIBCOM_ERR 1
18953 _ACEOF
18955 LIBS="-lcom_err $LIBS"
18960 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18961 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18962 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18964 else
18965 ac_check_lib_save_LIBS=$LIBS
18966 LIBS="-lk5crypto $LIBS"
18967 cat >conftest.$ac_ext <<_ACEOF
18968 /* confdefs.h. */
18969 _ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h. */
18974 /* Override any gcc2 internal prototype to avoid an error. */
18975 #ifdef __cplusplus
18976 extern "C"
18977 #endif
18978 /* We use char because int might match the return type of a gcc2
18979 builtin and then its argument prototype would still apply. */
18980 char mit_des_cbc_encrypt ();
18982 main ()
18984 mit_des_cbc_encrypt ();
18986 return 0;
18988 _ACEOF
18989 rm -f conftest.$ac_objext conftest$ac_exeext
18990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18991 (eval $ac_link) 2>conftest.er1
18992 ac_status=$?
18993 grep -v '^ *+' conftest.er1 >conftest.err
18994 rm -f conftest.er1
18995 cat conftest.err >&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } &&
18998 { ac_try='test -z "$ac_c_werror_flag"
18999 || test ! -s conftest.err'
19000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001 (eval $ac_try) 2>&5
19002 ac_status=$?
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; } &&
19005 { ac_try='test -s conftest$ac_exeext'
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
19011 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19012 else
19013 echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.$ac_ext >&5
19016 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19018 rm -f conftest.err conftest.$ac_objext \
19019 conftest$ac_exeext conftest.$ac_ext
19020 LIBS=$ac_check_lib_save_LIBS
19022 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19023 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19024 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19025 cat >>confdefs.h <<_ACEOF
19026 #define HAVE_LIBK5CRYPTO 1
19027 _ACEOF
19029 LIBS="-lk5crypto $LIBS"
19034 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19035 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19036 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19037 echo $ECHO_N "(cached) $ECHO_C" >&6
19038 else
19039 ac_check_lib_save_LIBS=$LIBS
19040 LIBS="-lcrypto $LIBS"
19041 cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h. */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h. */
19048 /* Override any gcc2 internal prototype to avoid an error. */
19049 #ifdef __cplusplus
19050 extern "C"
19051 #endif
19052 /* We use char because int might match the return type of a gcc2
19053 builtin and then its argument prototype would still apply. */
19054 char mit_des_cbc_encrypt ();
19056 main ()
19058 mit_des_cbc_encrypt ();
19060 return 0;
19062 _ACEOF
19063 rm -f conftest.$ac_objext conftest$ac_exeext
19064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19065 (eval $ac_link) 2>conftest.er1
19066 ac_status=$?
19067 grep -v '^ *+' conftest.er1 >conftest.err
19068 rm -f conftest.er1
19069 cat conftest.err >&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } &&
19072 { ac_try='test -z "$ac_c_werror_flag"
19073 || test ! -s conftest.err'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; } &&
19079 { ac_try='test -s conftest$ac_exeext'
19080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081 (eval $ac_try) 2>&5
19082 ac_status=$?
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; }; then
19085 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19086 else
19087 echo "$as_me: failed program was:" >&5
19088 sed 's/^/| /' conftest.$ac_ext >&5
19090 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19092 rm -f conftest.err conftest.$ac_objext \
19093 conftest$ac_exeext conftest.$ac_ext
19094 LIBS=$ac_check_lib_save_LIBS
19096 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19097 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19098 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19099 cat >>confdefs.h <<_ACEOF
19100 #define HAVE_LIBCRYPTO 1
19101 _ACEOF
19103 LIBS="-lcrypto $LIBS"
19108 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19109 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19110 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19111 echo $ECHO_N "(cached) $ECHO_C" >&6
19112 else
19113 ac_check_lib_save_LIBS=$LIBS
19114 LIBS="-lkrb5 $LIBS"
19115 cat >conftest.$ac_ext <<_ACEOF
19116 /* confdefs.h. */
19117 _ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19122 /* Override any gcc2 internal prototype to avoid an error. */
19123 #ifdef __cplusplus
19124 extern "C"
19125 #endif
19126 /* We use char because int might match the return type of a gcc2
19127 builtin and then its argument prototype would still apply. */
19128 char krb5_init_context ();
19130 main ()
19132 krb5_init_context ();
19134 return 0;
19136 _ACEOF
19137 rm -f conftest.$ac_objext conftest$ac_exeext
19138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19139 (eval $ac_link) 2>conftest.er1
19140 ac_status=$?
19141 grep -v '^ *+' conftest.er1 >conftest.err
19142 rm -f conftest.er1
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } &&
19146 { ac_try='test -z "$ac_c_werror_flag"
19147 || test ! -s conftest.err'
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; } &&
19153 { ac_try='test -s conftest$ac_exeext'
19154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155 (eval $ac_try) 2>&5
19156 ac_status=$?
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; }; then
19159 ac_cv_lib_krb5_krb5_init_context=yes
19160 else
19161 echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19164 ac_cv_lib_krb5_krb5_init_context=no
19166 rm -f conftest.err conftest.$ac_objext \
19167 conftest$ac_exeext conftest.$ac_ext
19168 LIBS=$ac_check_lib_save_LIBS
19170 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19171 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19172 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19173 cat >>confdefs.h <<_ACEOF
19174 #define HAVE_LIBKRB5 1
19175 _ACEOF
19177 LIBS="-lkrb5 $LIBS"
19181 if test "${with_kerberos5+set}" != set; then
19183 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19184 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19185 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19187 else
19188 ac_check_lib_save_LIBS=$LIBS
19189 LIBS="-ldes425 $LIBS"
19190 cat >conftest.$ac_ext <<_ACEOF
19191 /* confdefs.h. */
19192 _ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19197 /* Override any gcc2 internal prototype to avoid an error. */
19198 #ifdef __cplusplus
19199 extern "C"
19200 #endif
19201 /* We use char because int might match the return type of a gcc2
19202 builtin and then its argument prototype would still apply. */
19203 char des_cbc_encrypt ();
19205 main ()
19207 des_cbc_encrypt ();
19209 return 0;
19211 _ACEOF
19212 rm -f conftest.$ac_objext conftest$ac_exeext
19213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19214 (eval $ac_link) 2>conftest.er1
19215 ac_status=$?
19216 grep -v '^ *+' conftest.er1 >conftest.err
19217 rm -f conftest.er1
19218 cat conftest.err >&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } &&
19221 { ac_try='test -z "$ac_c_werror_flag"
19222 || test ! -s conftest.err'
19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19225 ac_status=$?
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; } &&
19228 { ac_try='test -s conftest$ac_exeext'
19229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230 (eval $ac_try) 2>&5
19231 ac_status=$?
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); }; }; then
19234 ac_cv_lib_des425_des_cbc_encrypt=yes
19235 else
19236 echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19239 ac_cv_lib_des425_des_cbc_encrypt=no
19241 rm -f conftest.err conftest.$ac_objext \
19242 conftest$ac_exeext conftest.$ac_ext
19243 LIBS=$ac_check_lib_save_LIBS
19245 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19246 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19247 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19248 cat >>confdefs.h <<_ACEOF
19249 #define HAVE_LIBDES425 1
19250 _ACEOF
19252 LIBS="-ldes425 $LIBS"
19254 else
19256 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19257 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19258 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19260 else
19261 ac_check_lib_save_LIBS=$LIBS
19262 LIBS="-ldes $LIBS"
19263 cat >conftest.$ac_ext <<_ACEOF
19264 /* confdefs.h. */
19265 _ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19270 /* Override any gcc2 internal prototype to avoid an error. */
19271 #ifdef __cplusplus
19272 extern "C"
19273 #endif
19274 /* We use char because int might match the return type of a gcc2
19275 builtin and then its argument prototype would still apply. */
19276 char des_cbc_encrypt ();
19278 main ()
19280 des_cbc_encrypt ();
19282 return 0;
19284 _ACEOF
19285 rm -f conftest.$ac_objext conftest$ac_exeext
19286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19287 (eval $ac_link) 2>conftest.er1
19288 ac_status=$?
19289 grep -v '^ *+' conftest.er1 >conftest.err
19290 rm -f conftest.er1
19291 cat conftest.err >&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); } &&
19294 { ac_try='test -z "$ac_c_werror_flag"
19295 || test ! -s conftest.err'
19296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297 (eval $ac_try) 2>&5
19298 ac_status=$?
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; } &&
19301 { ac_try='test -s conftest$ac_exeext'
19302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303 (eval $ac_try) 2>&5
19304 ac_status=$?
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; }; then
19307 ac_cv_lib_des_des_cbc_encrypt=yes
19308 else
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19312 ac_cv_lib_des_des_cbc_encrypt=no
19314 rm -f conftest.err conftest.$ac_objext \
19315 conftest$ac_exeext conftest.$ac_ext
19316 LIBS=$ac_check_lib_save_LIBS
19318 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19319 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19320 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19321 cat >>confdefs.h <<_ACEOF
19322 #define HAVE_LIBDES 1
19323 _ACEOF
19325 LIBS="-ldes $LIBS"
19332 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19333 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19334 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19336 else
19337 ac_check_lib_save_LIBS=$LIBS
19338 LIBS="-lkrb4 $LIBS"
19339 cat >conftest.$ac_ext <<_ACEOF
19340 /* confdefs.h. */
19341 _ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19346 /* Override any gcc2 internal prototype to avoid an error. */
19347 #ifdef __cplusplus
19348 extern "C"
19349 #endif
19350 /* We use char because int might match the return type of a gcc2
19351 builtin and then its argument prototype would still apply. */
19352 char krb_get_cred ();
19354 main ()
19356 krb_get_cred ();
19358 return 0;
19360 _ACEOF
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19363 (eval $ac_link) 2>conftest.er1
19364 ac_status=$?
19365 grep -v '^ *+' conftest.er1 >conftest.err
19366 rm -f conftest.er1
19367 cat conftest.err >&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } &&
19370 { ac_try='test -z "$ac_c_werror_flag"
19371 || test ! -s conftest.err'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; } &&
19377 { ac_try='test -s conftest$ac_exeext'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; }; then
19383 ac_cv_lib_krb4_krb_get_cred=yes
19384 else
19385 echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19388 ac_cv_lib_krb4_krb_get_cred=no
19390 rm -f conftest.err conftest.$ac_objext \
19391 conftest$ac_exeext conftest.$ac_ext
19392 LIBS=$ac_check_lib_save_LIBS
19394 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19395 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19396 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19397 cat >>confdefs.h <<_ACEOF
19398 #define HAVE_LIBKRB4 1
19399 _ACEOF
19401 LIBS="-lkrb4 $LIBS"
19403 else
19405 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19406 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19407 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19408 echo $ECHO_N "(cached) $ECHO_C" >&6
19409 else
19410 ac_check_lib_save_LIBS=$LIBS
19411 LIBS="-lkrb $LIBS"
19412 cat >conftest.$ac_ext <<_ACEOF
19413 /* confdefs.h. */
19414 _ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h. */
19419 /* Override any gcc2 internal prototype to avoid an error. */
19420 #ifdef __cplusplus
19421 extern "C"
19422 #endif
19423 /* We use char because int might match the return type of a gcc2
19424 builtin and then its argument prototype would still apply. */
19425 char krb_get_cred ();
19427 main ()
19429 krb_get_cred ();
19431 return 0;
19433 _ACEOF
19434 rm -f conftest.$ac_objext conftest$ac_exeext
19435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19436 (eval $ac_link) 2>conftest.er1
19437 ac_status=$?
19438 grep -v '^ *+' conftest.er1 >conftest.err
19439 rm -f conftest.er1
19440 cat conftest.err >&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } &&
19443 { ac_try='test -z "$ac_c_werror_flag"
19444 || test ! -s conftest.err'
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19447 ac_status=$?
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; } &&
19450 { ac_try='test -s conftest$ac_exeext'
19451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19452 (eval $ac_try) 2>&5
19453 ac_status=$?
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); }; }; then
19456 ac_cv_lib_krb_krb_get_cred=yes
19457 else
19458 echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19461 ac_cv_lib_krb_krb_get_cred=no
19463 rm -f conftest.err conftest.$ac_objext \
19464 conftest$ac_exeext conftest.$ac_ext
19465 LIBS=$ac_check_lib_save_LIBS
19467 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19468 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19469 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19470 cat >>confdefs.h <<_ACEOF
19471 #define HAVE_LIBKRB 1
19472 _ACEOF
19474 LIBS="-lkrb $LIBS"
19482 if test "${with_kerberos5+set}" = set; then
19484 for ac_header in krb5.h
19486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19488 echo "$as_me:$LINENO: checking for $ac_header" >&5
19489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19495 else
19496 # Is the header compilable?
19497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19499 cat >conftest.$ac_ext <<_ACEOF
19500 /* confdefs.h. */
19501 _ACEOF
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h. */
19505 $ac_includes_default
19506 #include <$ac_header>
19507 _ACEOF
19508 rm -f conftest.$ac_objext
19509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19510 (eval $ac_compile) 2>conftest.er1
19511 ac_status=$?
19512 grep -v '^ *+' conftest.er1 >conftest.err
19513 rm -f conftest.er1
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } &&
19517 { ac_try='test -z "$ac_c_werror_flag"
19518 || test ! -s conftest.err'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; } &&
19524 { ac_try='test -s conftest.$ac_objext'
19525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19526 (eval $ac_try) 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; }; then
19530 ac_header_compiler=yes
19531 else
19532 echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19535 ac_header_compiler=no
19537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19539 echo "${ECHO_T}$ac_header_compiler" >&6
19541 # Is the header present?
19542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19544 cat >conftest.$ac_ext <<_ACEOF
19545 /* confdefs.h. */
19546 _ACEOF
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h. */
19550 #include <$ac_header>
19551 _ACEOF
19552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19554 ac_status=$?
19555 grep -v '^ *+' conftest.er1 >conftest.err
19556 rm -f conftest.er1
19557 cat conftest.err >&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } >/dev/null; then
19560 if test -s conftest.err; then
19561 ac_cpp_err=$ac_c_preproc_warn_flag
19562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19563 else
19564 ac_cpp_err=
19566 else
19567 ac_cpp_err=yes
19569 if test -z "$ac_cpp_err"; then
19570 ac_header_preproc=yes
19571 else
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19575 ac_header_preproc=no
19577 rm -f conftest.err conftest.$ac_ext
19578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19579 echo "${ECHO_T}$ac_header_preproc" >&6
19581 # So? What about this header?
19582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19583 yes:no: )
19584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19588 ac_header_preproc=yes
19590 no:yes:* )
19591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19604 cat <<\_ASBOX
19605 ## ------------------------------------------ ##
19606 ## Report this to the AC_PACKAGE_NAME lists. ##
19607 ## ------------------------------------------ ##
19608 _ASBOX
19610 sed "s/^/$as_me: WARNING: /" >&2
19612 esac
19613 echo "$as_me:$LINENO: checking for $ac_header" >&5
19614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19616 echo $ECHO_N "(cached) $ECHO_C" >&6
19617 else
19618 eval "$as_ac_Header=\$ac_header_preproc"
19620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19625 cat >>confdefs.h <<_ACEOF
19626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19627 _ACEOF
19631 done
19633 else
19635 for ac_header in des.h
19637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19639 echo "$as_me:$LINENO: checking for $ac_header" >&5
19640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19642 echo $ECHO_N "(cached) $ECHO_C" >&6
19644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19646 else
19647 # Is the header compilable?
19648 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19650 cat >conftest.$ac_ext <<_ACEOF
19651 /* confdefs.h. */
19652 _ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h. */
19656 $ac_includes_default
19657 #include <$ac_header>
19658 _ACEOF
19659 rm -f conftest.$ac_objext
19660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19661 (eval $ac_compile) 2>conftest.er1
19662 ac_status=$?
19663 grep -v '^ *+' conftest.er1 >conftest.err
19664 rm -f conftest.er1
19665 cat conftest.err >&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } &&
19668 { ac_try='test -z "$ac_c_werror_flag"
19669 || test ! -s conftest.err'
19670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19672 ac_status=$?
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; } &&
19675 { ac_try='test -s conftest.$ac_objext'
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19678 ac_status=$?
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; }; then
19681 ac_header_compiler=yes
19682 else
19683 echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19686 ac_header_compiler=no
19688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19690 echo "${ECHO_T}$ac_header_compiler" >&6
19692 # Is the header present?
19693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19695 cat >conftest.$ac_ext <<_ACEOF
19696 /* confdefs.h. */
19697 _ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19701 #include <$ac_header>
19702 _ACEOF
19703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19705 ac_status=$?
19706 grep -v '^ *+' conftest.er1 >conftest.err
19707 rm -f conftest.er1
19708 cat conftest.err >&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); } >/dev/null; then
19711 if test -s conftest.err; then
19712 ac_cpp_err=$ac_c_preproc_warn_flag
19713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19714 else
19715 ac_cpp_err=
19717 else
19718 ac_cpp_err=yes
19720 if test -z "$ac_cpp_err"; then
19721 ac_header_preproc=yes
19722 else
19723 echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19726 ac_header_preproc=no
19728 rm -f conftest.err conftest.$ac_ext
19729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19730 echo "${ECHO_T}$ac_header_preproc" >&6
19732 # So? What about this header?
19733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19734 yes:no: )
19735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19739 ac_header_preproc=yes
19741 no:yes:* )
19742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19745 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19749 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19755 cat <<\_ASBOX
19756 ## ------------------------------------------ ##
19757 ## Report this to the AC_PACKAGE_NAME lists. ##
19758 ## ------------------------------------------ ##
19759 _ASBOX
19761 sed "s/^/$as_me: WARNING: /" >&2
19763 esac
19764 echo "$as_me:$LINENO: checking for $ac_header" >&5
19765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19768 else
19769 eval "$as_ac_Header=\$ac_header_preproc"
19771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19776 cat >>confdefs.h <<_ACEOF
19777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19778 _ACEOF
19780 else
19782 for ac_header in kerberosIV/des.h
19784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19786 echo "$as_me:$LINENO: checking for $ac_header" >&5
19787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19793 else
19794 # Is the header compilable?
19795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19797 cat >conftest.$ac_ext <<_ACEOF
19798 /* confdefs.h. */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19803 $ac_includes_default
19804 #include <$ac_header>
19805 _ACEOF
19806 rm -f conftest.$ac_objext
19807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19808 (eval $ac_compile) 2>conftest.er1
19809 ac_status=$?
19810 grep -v '^ *+' conftest.er1 >conftest.err
19811 rm -f conftest.er1
19812 cat conftest.err >&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } &&
19815 { ac_try='test -z "$ac_c_werror_flag"
19816 || test ! -s conftest.err'
19817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818 (eval $ac_try) 2>&5
19819 ac_status=$?
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; } &&
19822 { ac_try='test -s conftest.$ac_objext'
19823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824 (eval $ac_try) 2>&5
19825 ac_status=$?
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; }; then
19828 ac_header_compiler=yes
19829 else
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19833 ac_header_compiler=no
19835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19837 echo "${ECHO_T}$ac_header_compiler" >&6
19839 # Is the header present?
19840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19842 cat >conftest.$ac_ext <<_ACEOF
19843 /* confdefs.h. */
19844 _ACEOF
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h. */
19848 #include <$ac_header>
19849 _ACEOF
19850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19852 ac_status=$?
19853 grep -v '^ *+' conftest.er1 >conftest.err
19854 rm -f conftest.er1
19855 cat conftest.err >&5
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); } >/dev/null; then
19858 if test -s conftest.err; then
19859 ac_cpp_err=$ac_c_preproc_warn_flag
19860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19861 else
19862 ac_cpp_err=
19864 else
19865 ac_cpp_err=yes
19867 if test -z "$ac_cpp_err"; then
19868 ac_header_preproc=yes
19869 else
19870 echo "$as_me: failed program was:" >&5
19871 sed 's/^/| /' conftest.$ac_ext >&5
19873 ac_header_preproc=no
19875 rm -f conftest.err conftest.$ac_ext
19876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19877 echo "${ECHO_T}$ac_header_preproc" >&6
19879 # So? What about this header?
19880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19881 yes:no: )
19882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19886 ac_header_preproc=yes
19888 no:yes:* )
19889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19902 cat <<\_ASBOX
19903 ## ------------------------------------------ ##
19904 ## Report this to the AC_PACKAGE_NAME lists. ##
19905 ## ------------------------------------------ ##
19906 _ASBOX
19908 sed "s/^/$as_me: WARNING: /" >&2
19910 esac
19911 echo "$as_me:$LINENO: checking for $ac_header" >&5
19912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19915 else
19916 eval "$as_ac_Header=\$ac_header_preproc"
19918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19923 cat >>confdefs.h <<_ACEOF
19924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19925 _ACEOF
19927 else
19929 for ac_header in kerberos/des.h
19931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19933 echo "$as_me:$LINENO: checking for $ac_header" >&5
19934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19936 echo $ECHO_N "(cached) $ECHO_C" >&6
19938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19940 else
19941 # Is the header compilable?
19942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19944 cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h. */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h. */
19950 $ac_includes_default
19951 #include <$ac_header>
19952 _ACEOF
19953 rm -f conftest.$ac_objext
19954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19955 (eval $ac_compile) 2>conftest.er1
19956 ac_status=$?
19957 grep -v '^ *+' conftest.er1 >conftest.err
19958 rm -f conftest.er1
19959 cat conftest.err >&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } &&
19962 { ac_try='test -z "$ac_c_werror_flag"
19963 || test ! -s conftest.err'
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19966 ac_status=$?
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; } &&
19969 { ac_try='test -s conftest.$ac_objext'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19975 ac_header_compiler=yes
19976 else
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19980 ac_header_compiler=no
19982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19984 echo "${ECHO_T}$ac_header_compiler" >&6
19986 # Is the header present?
19987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19989 cat >conftest.$ac_ext <<_ACEOF
19990 /* confdefs.h. */
19991 _ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h. */
19995 #include <$ac_header>
19996 _ACEOF
19997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19999 ac_status=$?
20000 grep -v '^ *+' conftest.er1 >conftest.err
20001 rm -f conftest.er1
20002 cat conftest.err >&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); } >/dev/null; then
20005 if test -s conftest.err; then
20006 ac_cpp_err=$ac_c_preproc_warn_flag
20007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20008 else
20009 ac_cpp_err=
20011 else
20012 ac_cpp_err=yes
20014 if test -z "$ac_cpp_err"; then
20015 ac_header_preproc=yes
20016 else
20017 echo "$as_me: failed program was:" >&5
20018 sed 's/^/| /' conftest.$ac_ext >&5
20020 ac_header_preproc=no
20022 rm -f conftest.err conftest.$ac_ext
20023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20024 echo "${ECHO_T}$ac_header_preproc" >&6
20026 # So? What about this header?
20027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20028 yes:no: )
20029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20033 ac_header_preproc=yes
20035 no:yes:* )
20036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20049 cat <<\_ASBOX
20050 ## ------------------------------------------ ##
20051 ## Report this to the AC_PACKAGE_NAME lists. ##
20052 ## ------------------------------------------ ##
20053 _ASBOX
20055 sed "s/^/$as_me: WARNING: /" >&2
20057 esac
20058 echo "$as_me:$LINENO: checking for $ac_header" >&5
20059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20062 else
20063 eval "$as_ac_Header=\$ac_header_preproc"
20065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20070 cat >>confdefs.h <<_ACEOF
20071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20072 _ACEOF
20076 done
20080 done
20084 done
20087 for ac_header in krb.h
20089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20091 echo "$as_me:$LINENO: checking for $ac_header" >&5
20092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
20096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20098 else
20099 # Is the header compilable?
20100 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20102 cat >conftest.$ac_ext <<_ACEOF
20103 /* confdefs.h. */
20104 _ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h. */
20108 $ac_includes_default
20109 #include <$ac_header>
20110 _ACEOF
20111 rm -f conftest.$ac_objext
20112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20113 (eval $ac_compile) 2>conftest.er1
20114 ac_status=$?
20115 grep -v '^ *+' conftest.er1 >conftest.err
20116 rm -f conftest.er1
20117 cat conftest.err >&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } &&
20120 { ac_try='test -z "$ac_c_werror_flag"
20121 || test ! -s conftest.err'
20122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20123 (eval $ac_try) 2>&5
20124 ac_status=$?
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); }; } &&
20127 { ac_try='test -s conftest.$ac_objext'
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20130 ac_status=$?
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; }; then
20133 ac_header_compiler=yes
20134 else
20135 echo "$as_me: failed program was:" >&5
20136 sed 's/^/| /' conftest.$ac_ext >&5
20138 ac_header_compiler=no
20140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20142 echo "${ECHO_T}$ac_header_compiler" >&6
20144 # Is the header present?
20145 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20147 cat >conftest.$ac_ext <<_ACEOF
20148 /* confdefs.h. */
20149 _ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20153 #include <$ac_header>
20154 _ACEOF
20155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20157 ac_status=$?
20158 grep -v '^ *+' conftest.er1 >conftest.err
20159 rm -f conftest.er1
20160 cat conftest.err >&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } >/dev/null; then
20163 if test -s conftest.err; then
20164 ac_cpp_err=$ac_c_preproc_warn_flag
20165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20166 else
20167 ac_cpp_err=
20169 else
20170 ac_cpp_err=yes
20172 if test -z "$ac_cpp_err"; then
20173 ac_header_preproc=yes
20174 else
20175 echo "$as_me: failed program was:" >&5
20176 sed 's/^/| /' conftest.$ac_ext >&5
20178 ac_header_preproc=no
20180 rm -f conftest.err conftest.$ac_ext
20181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20182 echo "${ECHO_T}$ac_header_preproc" >&6
20184 # So? What about this header?
20185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20186 yes:no: )
20187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20191 ac_header_preproc=yes
20193 no:yes:* )
20194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20207 cat <<\_ASBOX
20208 ## ------------------------------------------ ##
20209 ## Report this to the AC_PACKAGE_NAME lists. ##
20210 ## ------------------------------------------ ##
20211 _ASBOX
20213 sed "s/^/$as_me: WARNING: /" >&2
20215 esac
20216 echo "$as_me:$LINENO: checking for $ac_header" >&5
20217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20219 echo $ECHO_N "(cached) $ECHO_C" >&6
20220 else
20221 eval "$as_ac_Header=\$ac_header_preproc"
20223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20228 cat >>confdefs.h <<_ACEOF
20229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20230 _ACEOF
20232 else
20234 for ac_header in kerberosIV/krb.h
20236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20238 echo "$as_me:$LINENO: checking for $ac_header" >&5
20239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20245 else
20246 # Is the header compilable?
20247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20249 cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h. */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 $ac_includes_default
20256 #include <$ac_header>
20257 _ACEOF
20258 rm -f conftest.$ac_objext
20259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20260 (eval $ac_compile) 2>conftest.er1
20261 ac_status=$?
20262 grep -v '^ *+' conftest.er1 >conftest.err
20263 rm -f conftest.er1
20264 cat conftest.err >&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } &&
20267 { ac_try='test -z "$ac_c_werror_flag"
20268 || test ! -s conftest.err'
20269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20270 (eval $ac_try) 2>&5
20271 ac_status=$?
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); }; } &&
20274 { ac_try='test -s conftest.$ac_objext'
20275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276 (eval $ac_try) 2>&5
20277 ac_status=$?
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; }; then
20280 ac_header_compiler=yes
20281 else
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20285 ac_header_compiler=no
20287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20289 echo "${ECHO_T}$ac_header_compiler" >&6
20291 # Is the header present?
20292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20294 cat >conftest.$ac_ext <<_ACEOF
20295 /* confdefs.h. */
20296 _ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h. */
20300 #include <$ac_header>
20301 _ACEOF
20302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20304 ac_status=$?
20305 grep -v '^ *+' conftest.er1 >conftest.err
20306 rm -f conftest.er1
20307 cat conftest.err >&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } >/dev/null; then
20310 if test -s conftest.err; then
20311 ac_cpp_err=$ac_c_preproc_warn_flag
20312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20313 else
20314 ac_cpp_err=
20316 else
20317 ac_cpp_err=yes
20319 if test -z "$ac_cpp_err"; then
20320 ac_header_preproc=yes
20321 else
20322 echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20325 ac_header_preproc=no
20327 rm -f conftest.err conftest.$ac_ext
20328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20329 echo "${ECHO_T}$ac_header_preproc" >&6
20331 # So? What about this header?
20332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20333 yes:no: )
20334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20338 ac_header_preproc=yes
20340 no:yes:* )
20341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20348 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20354 cat <<\_ASBOX
20355 ## ------------------------------------------ ##
20356 ## Report this to the AC_PACKAGE_NAME lists. ##
20357 ## ------------------------------------------ ##
20358 _ASBOX
20360 sed "s/^/$as_me: WARNING: /" >&2
20362 esac
20363 echo "$as_me:$LINENO: checking for $ac_header" >&5
20364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
20367 else
20368 eval "$as_ac_Header=\$ac_header_preproc"
20370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20375 cat >>confdefs.h <<_ACEOF
20376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20377 _ACEOF
20379 else
20381 for ac_header in kerberos/krb.h
20383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20385 echo "$as_me:$LINENO: checking for $ac_header" >&5
20386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20392 else
20393 # Is the header compilable?
20394 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20396 cat >conftest.$ac_ext <<_ACEOF
20397 /* confdefs.h. */
20398 _ACEOF
20399 cat confdefs.h >>conftest.$ac_ext
20400 cat >>conftest.$ac_ext <<_ACEOF
20401 /* end confdefs.h. */
20402 $ac_includes_default
20403 #include <$ac_header>
20404 _ACEOF
20405 rm -f conftest.$ac_objext
20406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20407 (eval $ac_compile) 2>conftest.er1
20408 ac_status=$?
20409 grep -v '^ *+' conftest.er1 >conftest.err
20410 rm -f conftest.er1
20411 cat conftest.err >&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } &&
20414 { ac_try='test -z "$ac_c_werror_flag"
20415 || test ! -s conftest.err'
20416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20418 ac_status=$?
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; } &&
20421 { ac_try='test -s conftest.$ac_objext'
20422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20424 ac_status=$?
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; }; then
20427 ac_header_compiler=yes
20428 else
20429 echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20432 ac_header_compiler=no
20434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20436 echo "${ECHO_T}$ac_header_compiler" >&6
20438 # Is the header present?
20439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20441 cat >conftest.$ac_ext <<_ACEOF
20442 /* confdefs.h. */
20443 _ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20447 #include <$ac_header>
20448 _ACEOF
20449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20451 ac_status=$?
20452 grep -v '^ *+' conftest.er1 >conftest.err
20453 rm -f conftest.er1
20454 cat conftest.err >&5
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); } >/dev/null; then
20457 if test -s conftest.err; then
20458 ac_cpp_err=$ac_c_preproc_warn_flag
20459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20460 else
20461 ac_cpp_err=
20463 else
20464 ac_cpp_err=yes
20466 if test -z "$ac_cpp_err"; then
20467 ac_header_preproc=yes
20468 else
20469 echo "$as_me: failed program was:" >&5
20470 sed 's/^/| /' conftest.$ac_ext >&5
20472 ac_header_preproc=no
20474 rm -f conftest.err conftest.$ac_ext
20475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20476 echo "${ECHO_T}$ac_header_preproc" >&6
20478 # So? What about this header?
20479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20480 yes:no: )
20481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20485 ac_header_preproc=yes
20487 no:yes:* )
20488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20491 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20495 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20501 cat <<\_ASBOX
20502 ## ------------------------------------------ ##
20503 ## Report this to the AC_PACKAGE_NAME lists. ##
20504 ## ------------------------------------------ ##
20505 _ASBOX
20507 sed "s/^/$as_me: WARNING: /" >&2
20509 esac
20510 echo "$as_me:$LINENO: checking for $ac_header" >&5
20511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20515 eval "$as_ac_Header=\$ac_header_preproc"
20517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20522 cat >>confdefs.h <<_ACEOF
20523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20524 _ACEOF
20528 done
20532 done
20536 done
20540 for ac_header in com_err.h
20542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20544 echo "$as_me:$LINENO: checking for $ac_header" >&5
20545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20551 else
20552 # Is the header compilable?
20553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20555 cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h. */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 $ac_includes_default
20562 #include <$ac_header>
20563 _ACEOF
20564 rm -f conftest.$ac_objext
20565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20566 (eval $ac_compile) 2>conftest.er1
20567 ac_status=$?
20568 grep -v '^ *+' conftest.er1 >conftest.err
20569 rm -f conftest.er1
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } &&
20573 { ac_try='test -z "$ac_c_werror_flag"
20574 || test ! -s conftest.err'
20575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20577 ac_status=$?
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; } &&
20580 { ac_try='test -s conftest.$ac_objext'
20581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582 (eval $ac_try) 2>&5
20583 ac_status=$?
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; }; then
20586 ac_header_compiler=yes
20587 else
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20591 ac_header_compiler=no
20593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20595 echo "${ECHO_T}$ac_header_compiler" >&6
20597 # Is the header present?
20598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20600 cat >conftest.$ac_ext <<_ACEOF
20601 /* confdefs.h. */
20602 _ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h. */
20606 #include <$ac_header>
20607 _ACEOF
20608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20610 ac_status=$?
20611 grep -v '^ *+' conftest.er1 >conftest.err
20612 rm -f conftest.er1
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } >/dev/null; then
20616 if test -s conftest.err; then
20617 ac_cpp_err=$ac_c_preproc_warn_flag
20618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20619 else
20620 ac_cpp_err=
20622 else
20623 ac_cpp_err=yes
20625 if test -z "$ac_cpp_err"; then
20626 ac_header_preproc=yes
20627 else
20628 echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20631 ac_header_preproc=no
20633 rm -f conftest.err conftest.$ac_ext
20634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20635 echo "${ECHO_T}$ac_header_preproc" >&6
20637 # So? What about this header?
20638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20639 yes:no: )
20640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20644 ac_header_preproc=yes
20646 no:yes:* )
20647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20660 cat <<\_ASBOX
20661 ## ------------------------------------------ ##
20662 ## Report this to the AC_PACKAGE_NAME lists. ##
20663 ## ------------------------------------------ ##
20664 _ASBOX
20666 sed "s/^/$as_me: WARNING: /" >&2
20668 esac
20669 echo "$as_me:$LINENO: checking for $ac_header" >&5
20670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20673 else
20674 eval "$as_ac_Header=\$ac_header_preproc"
20676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20681 cat >>confdefs.h <<_ACEOF
20682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20683 _ACEOF
20687 done
20691 # Solaris requires -lintl if you want strerror (which calls dgettext)
20692 # to return localized messages.
20694 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20695 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20696 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20697 echo $ECHO_N "(cached) $ECHO_C" >&6
20698 else
20699 ac_check_lib_save_LIBS=$LIBS
20700 LIBS="-lintl $LIBS"
20701 cat >conftest.$ac_ext <<_ACEOF
20702 /* confdefs.h. */
20703 _ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20708 /* Override any gcc2 internal prototype to avoid an error. */
20709 #ifdef __cplusplus
20710 extern "C"
20711 #endif
20712 /* We use char because int might match the return type of a gcc2
20713 builtin and then its argument prototype would still apply. */
20714 char dgettext ();
20716 main ()
20718 dgettext ();
20720 return 0;
20722 _ACEOF
20723 rm -f conftest.$ac_objext conftest$ac_exeext
20724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20725 (eval $ac_link) 2>conftest.er1
20726 ac_status=$?
20727 grep -v '^ *+' conftest.er1 >conftest.err
20728 rm -f conftest.er1
20729 cat conftest.err >&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } &&
20732 { ac_try='test -z "$ac_c_werror_flag"
20733 || test ! -s conftest.err'
20734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20735 (eval $ac_try) 2>&5
20736 ac_status=$?
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; } &&
20739 { ac_try='test -s conftest$ac_exeext'
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; }; then
20745 ac_cv_lib_intl_dgettext=yes
20746 else
20747 echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20750 ac_cv_lib_intl_dgettext=no
20752 rm -f conftest.err conftest.$ac_objext \
20753 conftest$ac_exeext conftest.$ac_ext
20754 LIBS=$ac_check_lib_save_LIBS
20756 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20757 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20758 if test $ac_cv_lib_intl_dgettext = yes; then
20759 cat >>confdefs.h <<_ACEOF
20760 #define HAVE_LIBINTL 1
20761 _ACEOF
20763 LIBS="-lintl $LIBS"
20768 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20769 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20770 if test "${emacs_cv_localtime_cache+set}" = set; then
20771 echo $ECHO_N "(cached) $ECHO_C" >&6
20772 else
20773 if test x$ac_cv_func_tzset = xyes; then
20774 if test "$cross_compiling" = yes; then
20775 # If we have tzset, assume the worst when cross-compiling.
20776 emacs_cv_localtime_cache=yes
20777 else
20778 cat >conftest.$ac_ext <<_ACEOF
20779 /* confdefs.h. */
20780 _ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20784 #include <time.h>
20785 extern char **environ;
20786 unset_TZ ()
20788 char **from, **to;
20789 for (to = from = environ; (*to = *from); from++)
20790 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20791 to++;
20793 char TZ_GMT0[] = "TZ=GMT0";
20794 char TZ_PST8[] = "TZ=PST8";
20795 main()
20797 time_t now = time ((time_t *) 0);
20798 int hour_GMT0, hour_unset;
20799 if (putenv (TZ_GMT0) != 0)
20800 exit (1);
20801 hour_GMT0 = localtime (&now)->tm_hour;
20802 unset_TZ ();
20803 hour_unset = localtime (&now)->tm_hour;
20804 if (putenv (TZ_PST8) != 0)
20805 exit (1);
20806 if (localtime (&now)->tm_hour == hour_GMT0)
20807 exit (1);
20808 unset_TZ ();
20809 if (localtime (&now)->tm_hour != hour_unset)
20810 exit (1);
20811 exit (0);
20813 _ACEOF
20814 rm -f conftest$ac_exeext
20815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20816 (eval $ac_link) 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821 (eval $ac_try) 2>&5
20822 ac_status=$?
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; }; then
20825 emacs_cv_localtime_cache=no
20826 else
20827 echo "$as_me: program exited with status $ac_status" >&5
20828 echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20831 ( exit $ac_status )
20832 emacs_cv_localtime_cache=yes
20834 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20836 else
20837 # If we lack tzset, report that localtime does not cache TZ,
20838 # since we can't invalidate the cache if we don't have tzset.
20839 emacs_cv_localtime_cache=no
20842 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20843 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20844 if test $emacs_cv_localtime_cache = yes; then
20846 cat >>confdefs.h <<\_ACEOF
20847 #define LOCALTIME_CACHE 1
20848 _ACEOF
20852 if test "x$HAVE_TIMEVAL" = xyes; then
20854 for ac_func in gettimeofday
20856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20857 echo "$as_me:$LINENO: checking for $ac_func" >&5
20858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20859 if eval "test \"\${$as_ac_var+set}\" = set"; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20861 else
20862 cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h. */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20870 #define $ac_func innocuous_$ac_func
20872 /* System header to define __stub macros and hopefully few prototypes,
20873 which can conflict with char $ac_func (); below.
20874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20875 <limits.h> exists even on freestanding compilers. */
20877 #ifdef __STDC__
20878 # include <limits.h>
20879 #else
20880 # include <assert.h>
20881 #endif
20883 #undef $ac_func
20885 /* Override any gcc2 internal prototype to avoid an error. */
20886 #ifdef __cplusplus
20887 extern "C"
20889 #endif
20890 /* We use char because int might match the return type of a gcc2
20891 builtin and then its argument prototype would still apply. */
20892 char $ac_func ();
20893 /* The GNU C library defines this for functions which it implements
20894 to always fail with ENOSYS. Some functions are actually named
20895 something starting with __ and the normal name is an alias. */
20896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20897 choke me
20898 #else
20899 char (*f) () = $ac_func;
20900 #endif
20901 #ifdef __cplusplus
20903 #endif
20906 main ()
20908 return f != $ac_func;
20910 return 0;
20912 _ACEOF
20913 rm -f conftest.$ac_objext conftest$ac_exeext
20914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20915 (eval $ac_link) 2>conftest.er1
20916 ac_status=$?
20917 grep -v '^ *+' conftest.er1 >conftest.err
20918 rm -f conftest.er1
20919 cat conftest.err >&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } &&
20922 { ac_try='test -z "$ac_c_werror_flag"
20923 || test ! -s conftest.err'
20924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925 (eval $ac_try) 2>&5
20926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; } &&
20929 { ac_try='test -s conftest$ac_exeext'
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20932 ac_status=$?
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
20935 eval "$as_ac_var=yes"
20936 else
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 eval "$as_ac_var=no"
20942 rm -f conftest.err conftest.$ac_objext \
20943 conftest$ac_exeext conftest.$ac_ext
20945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20947 if test `eval echo '${'$as_ac_var'}'` = yes; then
20948 cat >>confdefs.h <<_ACEOF
20949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20950 _ACEOF
20953 done
20955 if test $ac_cv_func_gettimeofday = yes; then
20956 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20957 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20958 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20960 else
20961 cat >conftest.$ac_ext <<_ACEOF
20962 /* confdefs.h. */
20963 _ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20968 #ifdef TIME_WITH_SYS_TIME
20969 #include <sys/time.h>
20970 #include <time.h>
20971 #else
20972 #ifdef HAVE_SYS_TIME_H
20973 #include <sys/time.h>
20974 #else
20975 #include <time.h>
20976 #endif
20977 #endif
20979 main ()
20981 struct timeval time;
20982 gettimeofday (&time, 0);
20984 return 0;
20986 _ACEOF
20987 rm -f conftest.$ac_objext
20988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20989 (eval $ac_compile) 2>conftest.er1
20990 ac_status=$?
20991 grep -v '^ *+' conftest.er1 >conftest.err
20992 rm -f conftest.er1
20993 cat conftest.err >&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } &&
20996 { ac_try='test -z "$ac_c_werror_flag"
20997 || test ! -s conftest.err'
20998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999 (eval $ac_try) 2>&5
21000 ac_status=$?
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); }; } &&
21003 { ac_try='test -s conftest.$ac_objext'
21004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005 (eval $ac_try) 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009 emacs_cv_gettimeofday_two_arguments=yes
21010 else
21011 echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21014 emacs_cv_gettimeofday_two_arguments=no
21016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21018 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21019 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21020 if test $emacs_cv_gettimeofday_two_arguments = no; then
21022 cat >>confdefs.h <<\_ACEOF
21023 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21024 _ACEOF
21030 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21031 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21032 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21033 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 else
21036 cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h. */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21042 #include <sys/types.h>
21043 #include <$ac_cv_struct_tm>
21047 main ()
21049 static struct tm ac_aggr;
21050 if (ac_aggr.tm_zone)
21051 return 0;
21053 return 0;
21055 _ACEOF
21056 rm -f conftest.$ac_objext
21057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21058 (eval $ac_compile) 2>conftest.er1
21059 ac_status=$?
21060 grep -v '^ *+' conftest.er1 >conftest.err
21061 rm -f conftest.er1
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } &&
21065 { ac_try='test -z "$ac_c_werror_flag"
21066 || test ! -s conftest.err'
21067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21068 (eval $ac_try) 2>&5
21069 ac_status=$?
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); }; } &&
21072 { ac_try='test -s conftest.$ac_objext'
21073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074 (eval $ac_try) 2>&5
21075 ac_status=$?
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); }; }; then
21078 ac_cv_member_struct_tm_tm_zone=yes
21079 else
21080 echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21083 cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h. */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 #include <sys/types.h>
21090 #include <$ac_cv_struct_tm>
21094 main ()
21096 static struct tm ac_aggr;
21097 if (sizeof ac_aggr.tm_zone)
21098 return 0;
21100 return 0;
21102 _ACEOF
21103 rm -f conftest.$ac_objext
21104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21105 (eval $ac_compile) 2>conftest.er1
21106 ac_status=$?
21107 grep -v '^ *+' conftest.er1 >conftest.err
21108 rm -f conftest.er1
21109 cat conftest.err >&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); } &&
21112 { ac_try='test -z "$ac_c_werror_flag"
21113 || test ! -s conftest.err'
21114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115 (eval $ac_try) 2>&5
21116 ac_status=$?
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); }; } &&
21119 { ac_try='test -s conftest.$ac_objext'
21120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121 (eval $ac_try) 2>&5
21122 ac_status=$?
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); }; }; then
21125 ac_cv_member_struct_tm_tm_zone=yes
21126 else
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21130 ac_cv_member_struct_tm_tm_zone=no
21132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21136 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21137 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21138 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21140 cat >>confdefs.h <<_ACEOF
21141 #define HAVE_STRUCT_TM_TM_ZONE 1
21142 _ACEOF
21147 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21149 cat >>confdefs.h <<\_ACEOF
21150 #define HAVE_TM_ZONE 1
21151 _ACEOF
21153 else
21154 echo "$as_me:$LINENO: checking for tzname" >&5
21155 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21156 if test "${ac_cv_var_tzname+set}" = set; then
21157 echo $ECHO_N "(cached) $ECHO_C" >&6
21158 else
21159 cat >conftest.$ac_ext <<_ACEOF
21160 /* confdefs.h. */
21161 _ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h. */
21165 #include <time.h>
21166 #ifndef tzname /* For SGI. */
21167 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21168 #endif
21171 main ()
21173 atoi(*tzname);
21175 return 0;
21177 _ACEOF
21178 rm -f conftest.$ac_objext conftest$ac_exeext
21179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21180 (eval $ac_link) 2>conftest.er1
21181 ac_status=$?
21182 grep -v '^ *+' conftest.er1 >conftest.err
21183 rm -f conftest.er1
21184 cat conftest.err >&5
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); } &&
21187 { ac_try='test -z "$ac_c_werror_flag"
21188 || test ! -s conftest.err'
21189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190 (eval $ac_try) 2>&5
21191 ac_status=$?
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; } &&
21194 { ac_try='test -s conftest$ac_exeext'
21195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21196 (eval $ac_try) 2>&5
21197 ac_status=$?
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); }; }; then
21200 ac_cv_var_tzname=yes
21201 else
21202 echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21205 ac_cv_var_tzname=no
21207 rm -f conftest.err conftest.$ac_objext \
21208 conftest$ac_exeext conftest.$ac_ext
21210 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21211 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21212 if test $ac_cv_var_tzname = yes; then
21214 cat >>confdefs.h <<\_ACEOF
21215 #define HAVE_TZNAME 1
21216 _ACEOF
21222 if test "$ac_cv_func_gettimeofday" = yes; then
21223 echo "$as_me:$LINENO: checking for struct timezone" >&5
21224 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21225 if test "${emacs_cv_struct_timezone+set}" = set; then
21226 echo $ECHO_N "(cached) $ECHO_C" >&6
21227 else
21228 cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h. */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h. */
21234 #include <sys/time.h>
21236 main ()
21238 struct timezone tz;
21240 return 0;
21242 _ACEOF
21243 rm -f conftest.$ac_objext
21244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21245 (eval $ac_compile) 2>conftest.er1
21246 ac_status=$?
21247 grep -v '^ *+' conftest.er1 >conftest.err
21248 rm -f conftest.er1
21249 cat conftest.err >&5
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); } &&
21252 { ac_try='test -z "$ac_c_werror_flag"
21253 || test ! -s conftest.err'
21254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255 (eval $ac_try) 2>&5
21256 ac_status=$?
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; } &&
21259 { ac_try='test -s conftest.$ac_objext'
21260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261 (eval $ac_try) 2>&5
21262 ac_status=$?
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; }; then
21265 if test "$cross_compiling" = yes; then
21266 emacs_cv_struct_timezone=yes
21267 else
21268 cat >conftest.$ac_ext <<_ACEOF
21269 /* confdefs.h. */
21270 _ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21275 #ifdef TIME_WITH_SYS_TIME
21276 #include <sys/time.h>
21277 #include <time.h>
21278 #else
21279 #ifdef HAVE_SYS_TIME_H
21280 #include <sys/time.h>
21281 #else
21282 #include <time.h>
21283 #endif
21284 #endif
21285 main () {
21286 struct timeval time;
21287 struct timezone dummy;
21288 exit (gettimeofday (&time, &dummy));
21290 _ACEOF
21291 rm -f conftest$ac_exeext
21292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21293 (eval $ac_link) 2>&5
21294 ac_status=$?
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; }; then
21302 emacs_cv_struct_timezone=yes
21303 else
21304 echo "$as_me: program exited with status $ac_status" >&5
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21308 ( exit $ac_status )
21309 emacs_cv_struct_timezone=no
21311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21313 else
21314 echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21317 emacs_cv_struct_timezone=no
21319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21321 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21322 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21325 ok_so_far=yes
21326 echo "$as_me:$LINENO: checking for socket" >&5
21327 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21328 if test "${ac_cv_func_socket+set}" = set; then
21329 echo $ECHO_N "(cached) $ECHO_C" >&6
21330 else
21331 cat >conftest.$ac_ext <<_ACEOF
21332 /* confdefs.h. */
21333 _ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21337 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21339 #define socket innocuous_socket
21341 /* System header to define __stub macros and hopefully few prototypes,
21342 which can conflict with char socket (); below.
21343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21344 <limits.h> exists even on freestanding compilers. */
21346 #ifdef __STDC__
21347 # include <limits.h>
21348 #else
21349 # include <assert.h>
21350 #endif
21352 #undef socket
21354 /* Override any gcc2 internal prototype to avoid an error. */
21355 #ifdef __cplusplus
21356 extern "C"
21358 #endif
21359 /* We use char because int might match the return type of a gcc2
21360 builtin and then its argument prototype would still apply. */
21361 char socket ();
21362 /* The GNU C library defines this for functions which it implements
21363 to always fail with ENOSYS. Some functions are actually named
21364 something starting with __ and the normal name is an alias. */
21365 #if defined (__stub_socket) || defined (__stub___socket)
21366 choke me
21367 #else
21368 char (*f) () = socket;
21369 #endif
21370 #ifdef __cplusplus
21372 #endif
21375 main ()
21377 return f != socket;
21379 return 0;
21381 _ACEOF
21382 rm -f conftest.$ac_objext conftest$ac_exeext
21383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21384 (eval $ac_link) 2>conftest.er1
21385 ac_status=$?
21386 grep -v '^ *+' conftest.er1 >conftest.err
21387 rm -f conftest.er1
21388 cat conftest.err >&5
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); } &&
21391 { ac_try='test -z "$ac_c_werror_flag"
21392 || test ! -s conftest.err'
21393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21394 (eval $ac_try) 2>&5
21395 ac_status=$?
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); }; } &&
21398 { ac_try='test -s conftest$ac_exeext'
21399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21400 (eval $ac_try) 2>&5
21401 ac_status=$?
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); }; }; then
21404 ac_cv_func_socket=yes
21405 else
21406 echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21409 ac_cv_func_socket=no
21411 rm -f conftest.err conftest.$ac_objext \
21412 conftest$ac_exeext conftest.$ac_ext
21414 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21415 echo "${ECHO_T}$ac_cv_func_socket" >&6
21416 if test $ac_cv_func_socket = yes; then
21418 else
21419 ok_so_far=no
21422 if test $ok_so_far = yes; then
21423 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21424 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21425 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21426 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21429 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21430 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21431 else
21432 # Is the header compilable?
21433 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21434 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21435 cat >conftest.$ac_ext <<_ACEOF
21436 /* confdefs.h. */
21437 _ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21441 $ac_includes_default
21442 #include <netinet/in.h>
21443 _ACEOF
21444 rm -f conftest.$ac_objext
21445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21446 (eval $ac_compile) 2>conftest.er1
21447 ac_status=$?
21448 grep -v '^ *+' conftest.er1 >conftest.err
21449 rm -f conftest.er1
21450 cat conftest.err >&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); } &&
21453 { ac_try='test -z "$ac_c_werror_flag"
21454 || test ! -s conftest.err'
21455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456 (eval $ac_try) 2>&5
21457 ac_status=$?
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); }; } &&
21460 { ac_try='test -s conftest.$ac_objext'
21461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21462 (eval $ac_try) 2>&5
21463 ac_status=$?
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); }; }; then
21466 ac_header_compiler=yes
21467 else
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 ac_header_compiler=no
21473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21475 echo "${ECHO_T}$ac_header_compiler" >&6
21477 # Is the header present?
21478 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21479 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21480 cat >conftest.$ac_ext <<_ACEOF
21481 /* confdefs.h. */
21482 _ACEOF
21483 cat confdefs.h >>conftest.$ac_ext
21484 cat >>conftest.$ac_ext <<_ACEOF
21485 /* end confdefs.h. */
21486 #include <netinet/in.h>
21487 _ACEOF
21488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21490 ac_status=$?
21491 grep -v '^ *+' conftest.er1 >conftest.err
21492 rm -f conftest.er1
21493 cat conftest.err >&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } >/dev/null; then
21496 if test -s conftest.err; then
21497 ac_cpp_err=$ac_c_preproc_warn_flag
21498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21499 else
21500 ac_cpp_err=
21502 else
21503 ac_cpp_err=yes
21505 if test -z "$ac_cpp_err"; then
21506 ac_header_preproc=yes
21507 else
21508 echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21511 ac_header_preproc=no
21513 rm -f conftest.err conftest.$ac_ext
21514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21515 echo "${ECHO_T}$ac_header_preproc" >&6
21517 # So? What about this header?
21518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21519 yes:no: )
21520 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21521 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21522 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21523 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21524 ac_header_preproc=yes
21526 no:yes:* )
21527 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21528 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21530 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21532 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21533 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21534 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21535 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21536 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21537 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21538 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21540 cat <<\_ASBOX
21541 ## ------------------------------------------ ##
21542 ## Report this to the AC_PACKAGE_NAME lists. ##
21543 ## ------------------------------------------ ##
21544 _ASBOX
21546 sed "s/^/$as_me: WARNING: /" >&2
21548 esac
21549 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21550 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21551 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21552 echo $ECHO_N "(cached) $ECHO_C" >&6
21553 else
21554 ac_cv_header_netinet_in_h=$ac_header_preproc
21556 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21557 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21560 if test $ac_cv_header_netinet_in_h = yes; then
21562 else
21563 ok_so_far=no
21568 if test $ok_so_far = yes; then
21569 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21570 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21571 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21572 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21573 echo $ECHO_N "(cached) $ECHO_C" >&6
21575 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21576 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21577 else
21578 # Is the header compilable?
21579 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21580 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21581 cat >conftest.$ac_ext <<_ACEOF
21582 /* confdefs.h. */
21583 _ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21587 $ac_includes_default
21588 #include <arpa/inet.h>
21589 _ACEOF
21590 rm -f conftest.$ac_objext
21591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21592 (eval $ac_compile) 2>conftest.er1
21593 ac_status=$?
21594 grep -v '^ *+' conftest.er1 >conftest.err
21595 rm -f conftest.er1
21596 cat conftest.err >&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } &&
21599 { ac_try='test -z "$ac_c_werror_flag"
21600 || test ! -s conftest.err'
21601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602 (eval $ac_try) 2>&5
21603 ac_status=$?
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; } &&
21606 { ac_try='test -s conftest.$ac_objext'
21607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608 (eval $ac_try) 2>&5
21609 ac_status=$?
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; }; then
21612 ac_header_compiler=yes
21613 else
21614 echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21617 ac_header_compiler=no
21619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21621 echo "${ECHO_T}$ac_header_compiler" >&6
21623 # Is the header present?
21624 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21625 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21626 cat >conftest.$ac_ext <<_ACEOF
21627 /* confdefs.h. */
21628 _ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h. */
21632 #include <arpa/inet.h>
21633 _ACEOF
21634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21636 ac_status=$?
21637 grep -v '^ *+' conftest.er1 >conftest.err
21638 rm -f conftest.er1
21639 cat conftest.err >&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } >/dev/null; then
21642 if test -s conftest.err; then
21643 ac_cpp_err=$ac_c_preproc_warn_flag
21644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21645 else
21646 ac_cpp_err=
21648 else
21649 ac_cpp_err=yes
21651 if test -z "$ac_cpp_err"; then
21652 ac_header_preproc=yes
21653 else
21654 echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21657 ac_header_preproc=no
21659 rm -f conftest.err conftest.$ac_ext
21660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21661 echo "${ECHO_T}$ac_header_preproc" >&6
21663 # So? What about this header?
21664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21665 yes:no: )
21666 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21667 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21668 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21669 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21670 ac_header_preproc=yes
21672 no:yes:* )
21673 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21674 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21675 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21676 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21677 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21678 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21679 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21680 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21681 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21682 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21683 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21684 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21686 cat <<\_ASBOX
21687 ## ------------------------------------------ ##
21688 ## Report this to the AC_PACKAGE_NAME lists. ##
21689 ## ------------------------------------------ ##
21690 _ASBOX
21692 sed "s/^/$as_me: WARNING: /" >&2
21694 esac
21695 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21696 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21697 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21698 echo $ECHO_N "(cached) $ECHO_C" >&6
21699 else
21700 ac_cv_header_arpa_inet_h=$ac_header_preproc
21702 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21703 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21706 if test $ac_cv_header_arpa_inet_h = yes; then
21708 else
21709 ok_so_far=no
21714 if test $ok_so_far = yes; then
21716 cat >>confdefs.h <<\_ACEOF
21717 #define HAVE_INET_SOCKETS 1
21718 _ACEOF
21723 for ac_header in sys/ioctl.h
21725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21727 echo "$as_me:$LINENO: checking for $ac_header" >&5
21728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21730 echo $ECHO_N "(cached) $ECHO_C" >&6
21732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21734 else
21735 # Is the header compilable?
21736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21738 cat >conftest.$ac_ext <<_ACEOF
21739 /* confdefs.h. */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21744 $ac_includes_default
21745 #include <$ac_header>
21746 _ACEOF
21747 rm -f conftest.$ac_objext
21748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21749 (eval $ac_compile) 2>conftest.er1
21750 ac_status=$?
21751 grep -v '^ *+' conftest.er1 >conftest.err
21752 rm -f conftest.er1
21753 cat conftest.err >&5
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); } &&
21756 { ac_try='test -z "$ac_c_werror_flag"
21757 || test ! -s conftest.err'
21758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759 (eval $ac_try) 2>&5
21760 ac_status=$?
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); }; } &&
21763 { ac_try='test -s conftest.$ac_objext'
21764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21765 (eval $ac_try) 2>&5
21766 ac_status=$?
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); }; }; then
21769 ac_header_compiler=yes
21770 else
21771 echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21774 ac_header_compiler=no
21776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21778 echo "${ECHO_T}$ac_header_compiler" >&6
21780 # Is the header present?
21781 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21783 cat >conftest.$ac_ext <<_ACEOF
21784 /* confdefs.h. */
21785 _ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21789 #include <$ac_header>
21790 _ACEOF
21791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21793 ac_status=$?
21794 grep -v '^ *+' conftest.er1 >conftest.err
21795 rm -f conftest.er1
21796 cat conftest.err >&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); } >/dev/null; then
21799 if test -s conftest.err; then
21800 ac_cpp_err=$ac_c_preproc_warn_flag
21801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21802 else
21803 ac_cpp_err=
21805 else
21806 ac_cpp_err=yes
21808 if test -z "$ac_cpp_err"; then
21809 ac_header_preproc=yes
21810 else
21811 echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21814 ac_header_preproc=no
21816 rm -f conftest.err conftest.$ac_ext
21817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21818 echo "${ECHO_T}$ac_header_preproc" >&6
21820 # So? What about this header?
21821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21822 yes:no: )
21823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21827 ac_header_preproc=yes
21829 no:yes:* )
21830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21837 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21843 cat <<\_ASBOX
21844 ## ------------------------------------------ ##
21845 ## Report this to the AC_PACKAGE_NAME lists. ##
21846 ## ------------------------------------------ ##
21847 _ASBOX
21849 sed "s/^/$as_me: WARNING: /" >&2
21851 esac
21852 echo "$as_me:$LINENO: checking for $ac_header" >&5
21853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21856 else
21857 eval "$as_ac_Header=\$ac_header_preproc"
21859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21864 cat >>confdefs.h <<_ACEOF
21865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21866 _ACEOF
21870 done
21873 if test -f /usr/lpp/X11/bin/smt.exp; then
21875 cat >>confdefs.h <<\_ACEOF
21876 #define HAVE_AIX_SMT_EXP 1
21877 _ACEOF
21881 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21882 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21883 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21884 echo "$as_me:$LINENO: result: yes" >&5
21885 echo "${ECHO_T}yes" >&6
21887 cat >>confdefs.h <<\_ACEOF
21888 #define HAVE_DEV_PTMX 1
21889 _ACEOF
21891 else
21892 echo "$as_me:$LINENO: result: no" >&5
21893 echo "${ECHO_T}no" >&6
21896 echo "$as_me:$LINENO: checking for pid_t" >&5
21897 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21898 if test "${ac_cv_type_pid_t+set}" = set; then
21899 echo $ECHO_N "(cached) $ECHO_C" >&6
21900 else
21901 cat >conftest.$ac_ext <<_ACEOF
21902 /* confdefs.h. */
21903 _ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h. */
21907 $ac_includes_default
21909 main ()
21911 if ((pid_t *) 0)
21912 return 0;
21913 if (sizeof (pid_t))
21914 return 0;
21916 return 0;
21918 _ACEOF
21919 rm -f conftest.$ac_objext
21920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21921 (eval $ac_compile) 2>conftest.er1
21922 ac_status=$?
21923 grep -v '^ *+' conftest.er1 >conftest.err
21924 rm -f conftest.er1
21925 cat conftest.err >&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); } &&
21928 { ac_try='test -z "$ac_c_werror_flag"
21929 || test ! -s conftest.err'
21930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21931 (eval $ac_try) 2>&5
21932 ac_status=$?
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); }; } &&
21935 { ac_try='test -s conftest.$ac_objext'
21936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21937 (eval $ac_try) 2>&5
21938 ac_status=$?
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); }; }; then
21941 ac_cv_type_pid_t=yes
21942 else
21943 echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21946 ac_cv_type_pid_t=no
21948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21950 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21951 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21952 if test $ac_cv_type_pid_t = yes; then
21954 else
21956 cat >>confdefs.h <<_ACEOF
21957 #define pid_t int
21958 _ACEOF
21964 for ac_header in unistd.h vfork.h
21966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21968 echo "$as_me:$LINENO: checking for $ac_header" >&5
21969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21971 echo $ECHO_N "(cached) $ECHO_C" >&6
21973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21975 else
21976 # Is the header compilable?
21977 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21979 cat >conftest.$ac_ext <<_ACEOF
21980 /* confdefs.h. */
21981 _ACEOF
21982 cat confdefs.h >>conftest.$ac_ext
21983 cat >>conftest.$ac_ext <<_ACEOF
21984 /* end confdefs.h. */
21985 $ac_includes_default
21986 #include <$ac_header>
21987 _ACEOF
21988 rm -f conftest.$ac_objext
21989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21990 (eval $ac_compile) 2>conftest.er1
21991 ac_status=$?
21992 grep -v '^ *+' conftest.er1 >conftest.err
21993 rm -f conftest.er1
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } &&
21997 { ac_try='test -z "$ac_c_werror_flag"
21998 || test ! -s conftest.err'
21999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000 (eval $ac_try) 2>&5
22001 ac_status=$?
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; } &&
22004 { ac_try='test -s conftest.$ac_objext'
22005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22006 (eval $ac_try) 2>&5
22007 ac_status=$?
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; }; then
22010 ac_header_compiler=yes
22011 else
22012 echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22015 ac_header_compiler=no
22017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22018 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22019 echo "${ECHO_T}$ac_header_compiler" >&6
22021 # Is the header present?
22022 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22024 cat >conftest.$ac_ext <<_ACEOF
22025 /* confdefs.h. */
22026 _ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h. */
22030 #include <$ac_header>
22031 _ACEOF
22032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22034 ac_status=$?
22035 grep -v '^ *+' conftest.er1 >conftest.err
22036 rm -f conftest.er1
22037 cat conftest.err >&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } >/dev/null; then
22040 if test -s conftest.err; then
22041 ac_cpp_err=$ac_c_preproc_warn_flag
22042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22043 else
22044 ac_cpp_err=
22046 else
22047 ac_cpp_err=yes
22049 if test -z "$ac_cpp_err"; then
22050 ac_header_preproc=yes
22051 else
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22055 ac_header_preproc=no
22057 rm -f conftest.err conftest.$ac_ext
22058 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22059 echo "${ECHO_T}$ac_header_preproc" >&6
22061 # So? What about this header?
22062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22063 yes:no: )
22064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22068 ac_header_preproc=yes
22070 no:yes:* )
22071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22078 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22084 cat <<\_ASBOX
22085 ## ------------------------------------------ ##
22086 ## Report this to the AC_PACKAGE_NAME lists. ##
22087 ## ------------------------------------------ ##
22088 _ASBOX
22090 sed "s/^/$as_me: WARNING: /" >&2
22092 esac
22093 echo "$as_me:$LINENO: checking for $ac_header" >&5
22094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22096 echo $ECHO_N "(cached) $ECHO_C" >&6
22097 else
22098 eval "$as_ac_Header=\$ac_header_preproc"
22100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22105 cat >>confdefs.h <<_ACEOF
22106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22107 _ACEOF
22111 done
22115 for ac_func in fork vfork
22117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22118 echo "$as_me:$LINENO: checking for $ac_func" >&5
22119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22120 if eval "test \"\${$as_ac_var+set}\" = set"; then
22121 echo $ECHO_N "(cached) $ECHO_C" >&6
22122 else
22123 cat >conftest.$ac_ext <<_ACEOF
22124 /* confdefs.h. */
22125 _ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h. */
22129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22131 #define $ac_func innocuous_$ac_func
22133 /* System header to define __stub macros and hopefully few prototypes,
22134 which can conflict with char $ac_func (); below.
22135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22136 <limits.h> exists even on freestanding compilers. */
22138 #ifdef __STDC__
22139 # include <limits.h>
22140 #else
22141 # include <assert.h>
22142 #endif
22144 #undef $ac_func
22146 /* Override any gcc2 internal prototype to avoid an error. */
22147 #ifdef __cplusplus
22148 extern "C"
22150 #endif
22151 /* We use char because int might match the return type of a gcc2
22152 builtin and then its argument prototype would still apply. */
22153 char $ac_func ();
22154 /* The GNU C library defines this for functions which it implements
22155 to always fail with ENOSYS. Some functions are actually named
22156 something starting with __ and the normal name is an alias. */
22157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22158 choke me
22159 #else
22160 char (*f) () = $ac_func;
22161 #endif
22162 #ifdef __cplusplus
22164 #endif
22167 main ()
22169 return f != $ac_func;
22171 return 0;
22173 _ACEOF
22174 rm -f conftest.$ac_objext conftest$ac_exeext
22175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22176 (eval $ac_link) 2>conftest.er1
22177 ac_status=$?
22178 grep -v '^ *+' conftest.er1 >conftest.err
22179 rm -f conftest.er1
22180 cat conftest.err >&5
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); } &&
22183 { ac_try='test -z "$ac_c_werror_flag"
22184 || test ! -s conftest.err'
22185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22186 (eval $ac_try) 2>&5
22187 ac_status=$?
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); }; } &&
22190 { ac_try='test -s conftest$ac_exeext'
22191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22192 (eval $ac_try) 2>&5
22193 ac_status=$?
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); }; }; then
22196 eval "$as_ac_var=yes"
22197 else
22198 echo "$as_me: failed program was:" >&5
22199 sed 's/^/| /' conftest.$ac_ext >&5
22201 eval "$as_ac_var=no"
22203 rm -f conftest.err conftest.$ac_objext \
22204 conftest$ac_exeext conftest.$ac_ext
22206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22208 if test `eval echo '${'$as_ac_var'}'` = yes; then
22209 cat >>confdefs.h <<_ACEOF
22210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22211 _ACEOF
22214 done
22216 if test "x$ac_cv_func_fork" = xyes; then
22217 echo "$as_me:$LINENO: checking for working fork" >&5
22218 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22219 if test "${ac_cv_func_fork_works+set}" = set; then
22220 echo $ECHO_N "(cached) $ECHO_C" >&6
22221 else
22222 if test "$cross_compiling" = yes; then
22223 ac_cv_func_fork_works=cross
22224 else
22225 cat >conftest.$ac_ext <<_ACEOF
22226 /* By Ruediger Kuhlmann. */
22227 #include <sys/types.h>
22228 #if HAVE_UNISTD_H
22229 # include <unistd.h>
22230 #endif
22231 /* Some systems only have a dummy stub for fork() */
22232 int main ()
22234 if (fork() < 0)
22235 exit (1);
22236 exit (0);
22238 _ACEOF
22239 rm -f conftest$ac_exeext
22240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22241 (eval $ac_link) 2>&5
22242 ac_status=$?
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22246 (eval $ac_try) 2>&5
22247 ac_status=$?
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); }; }; then
22250 ac_cv_func_fork_works=yes
22251 else
22252 echo "$as_me: program exited with status $ac_status" >&5
22253 echo "$as_me: failed program was:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22256 ( exit $ac_status )
22257 ac_cv_func_fork_works=no
22259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22262 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22263 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22265 else
22266 ac_cv_func_fork_works=$ac_cv_func_fork
22268 if test "x$ac_cv_func_fork_works" = xcross; then
22269 case $host in
22270 *-*-amigaos* | *-*-msdosdjgpp*)
22271 # Override, as these systems have only a dummy fork() stub
22272 ac_cv_func_fork_works=no
22275 ac_cv_func_fork_works=yes
22277 esac
22278 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22279 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22281 ac_cv_func_vfork_works=$ac_cv_func_vfork
22282 if test "x$ac_cv_func_vfork" = xyes; then
22283 echo "$as_me:$LINENO: checking for working vfork" >&5
22284 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22285 if test "${ac_cv_func_vfork_works+set}" = set; then
22286 echo $ECHO_N "(cached) $ECHO_C" >&6
22287 else
22288 if test "$cross_compiling" = yes; then
22289 ac_cv_func_vfork_works=cross
22290 else
22291 cat >conftest.$ac_ext <<_ACEOF
22292 /* confdefs.h. */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22297 /* Thanks to Paul Eggert for this test. */
22298 #include <stdio.h>
22299 #include <stdlib.h>
22300 #include <sys/types.h>
22301 #include <sys/stat.h>
22302 #include <sys/wait.h>
22303 #if HAVE_UNISTD_H
22304 # include <unistd.h>
22305 #endif
22306 #if HAVE_VFORK_H
22307 # include <vfork.h>
22308 #endif
22309 /* On some sparc systems, changes by the child to local and incoming
22310 argument registers are propagated back to the parent. The compiler
22311 is told about this with #include <vfork.h>, but some compilers
22312 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22313 static variable whose address is put into a register that is
22314 clobbered by the vfork. */
22315 static void
22316 #ifdef __cplusplus
22317 sparc_address_test (int arg)
22318 # else
22319 sparc_address_test (arg) int arg;
22320 #endif
22322 static pid_t child;
22323 if (!child) {
22324 child = vfork ();
22325 if (child < 0) {
22326 perror ("vfork");
22327 _exit(2);
22329 if (!child) {
22330 arg = getpid();
22331 write(-1, "", 0);
22332 _exit (arg);
22338 main ()
22340 pid_t parent = getpid ();
22341 pid_t child;
22343 sparc_address_test (0);
22345 child = vfork ();
22347 if (child == 0) {
22348 /* Here is another test for sparc vfork register problems. This
22349 test uses lots of local variables, at least as many local
22350 variables as main has allocated so far including compiler
22351 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22352 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22353 reuse the register of parent for one of the local variables,
22354 since it will think that parent can't possibly be used any more
22355 in this routine. Assigning to the local variable will thus
22356 munge parent in the parent process. */
22357 pid_t
22358 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22359 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22360 /* Convince the compiler that p..p7 are live; otherwise, it might
22361 use the same hardware register for all 8 local variables. */
22362 if (p != p1 || p != p2 || p != p3 || p != p4
22363 || p != p5 || p != p6 || p != p7)
22364 _exit(1);
22366 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22367 from child file descriptors. If the child closes a descriptor
22368 before it execs or exits, this munges the parent's descriptor
22369 as well. Test for this by closing stdout in the child. */
22370 _exit(close(fileno(stdout)) != 0);
22371 } else {
22372 int status;
22373 struct stat st;
22375 while (wait(&status) != child)
22377 exit(
22378 /* Was there some problem with vforking? */
22379 child < 0
22381 /* Did the child fail? (This shouldn't happen.) */
22382 || status
22384 /* Did the vfork/compiler bug occur? */
22385 || parent != getpid()
22387 /* Did the file descriptor bug occur? */
22388 || fstat(fileno(stdout), &st) != 0
22392 _ACEOF
22393 rm -f conftest$ac_exeext
22394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22395 (eval $ac_link) 2>&5
22396 ac_status=$?
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400 (eval $ac_try) 2>&5
22401 ac_status=$?
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; }; then
22404 ac_cv_func_vfork_works=yes
22405 else
22406 echo "$as_me: program exited with status $ac_status" >&5
22407 echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22410 ( exit $ac_status )
22411 ac_cv_func_vfork_works=no
22413 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22416 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22417 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22420 if test "x$ac_cv_func_fork_works" = xcross; then
22421 ac_cv_func_vfork_works=$ac_cv_func_vfork
22422 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22423 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22426 if test "x$ac_cv_func_vfork_works" = xyes; then
22428 cat >>confdefs.h <<\_ACEOF
22429 #define HAVE_WORKING_VFORK 1
22430 _ACEOF
22432 else
22434 cat >>confdefs.h <<\_ACEOF
22435 #define vfork fork
22436 _ACEOF
22439 if test "x$ac_cv_func_fork_works" = xyes; then
22441 cat >>confdefs.h <<\_ACEOF
22442 #define HAVE_WORKING_FORK 1
22443 _ACEOF
22448 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22449 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22450 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22451 echo $ECHO_N "(cached) $ECHO_C" >&6
22452 else
22453 cat >conftest.$ac_ext <<_ACEOF
22454 /* confdefs.h. */
22455 _ACEOF
22456 cat confdefs.h >>conftest.$ac_ext
22457 cat >>conftest.$ac_ext <<_ACEOF
22458 /* end confdefs.h. */
22459 #include <langinfo.h>
22461 main ()
22463 char* cs = nl_langinfo(CODESET);
22465 return 0;
22467 _ACEOF
22468 rm -f conftest.$ac_objext conftest$ac_exeext
22469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22470 (eval $ac_link) 2>conftest.er1
22471 ac_status=$?
22472 grep -v '^ *+' conftest.er1 >conftest.err
22473 rm -f conftest.er1
22474 cat conftest.err >&5
22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); } &&
22477 { ac_try='test -z "$ac_c_werror_flag"
22478 || test ! -s conftest.err'
22479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22480 (eval $ac_try) 2>&5
22481 ac_status=$?
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); }; } &&
22484 { ac_try='test -s conftest$ac_exeext'
22485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22486 (eval $ac_try) 2>&5
22487 ac_status=$?
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); }; }; then
22490 emacs_cv_langinfo_codeset=yes
22491 else
22492 echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22495 emacs_cv_langinfo_codeset=no
22497 rm -f conftest.err conftest.$ac_objext \
22498 conftest$ac_exeext conftest.$ac_ext
22501 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22502 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22503 if test $emacs_cv_langinfo_codeset = yes; then
22505 cat >>confdefs.h <<\_ACEOF
22506 #define HAVE_LANGINFO_CODESET 1
22507 _ACEOF
22511 echo "$as_me:$LINENO: checking for size_t" >&5
22512 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22513 if test "${ac_cv_type_size_t+set}" = set; then
22514 echo $ECHO_N "(cached) $ECHO_C" >&6
22515 else
22516 cat >conftest.$ac_ext <<_ACEOF
22517 /* confdefs.h. */
22518 _ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h. */
22522 $ac_includes_default
22524 main ()
22526 if ((size_t *) 0)
22527 return 0;
22528 if (sizeof (size_t))
22529 return 0;
22531 return 0;
22533 _ACEOF
22534 rm -f conftest.$ac_objext
22535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22536 (eval $ac_compile) 2>conftest.er1
22537 ac_status=$?
22538 grep -v '^ *+' conftest.er1 >conftest.err
22539 rm -f conftest.er1
22540 cat conftest.err >&5
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); } &&
22543 { ac_try='test -z "$ac_c_werror_flag"
22544 || test ! -s conftest.err'
22545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22546 (eval $ac_try) 2>&5
22547 ac_status=$?
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; } &&
22550 { ac_try='test -s conftest.$ac_objext'
22551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552 (eval $ac_try) 2>&5
22553 ac_status=$?
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); }; }; then
22556 ac_cv_type_size_t=yes
22557 else
22558 echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22561 ac_cv_type_size_t=no
22563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22565 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22566 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22567 if test $ac_cv_type_size_t = yes; then
22569 cat >>confdefs.h <<_ACEOF
22570 #define HAVE_SIZE_T 1
22571 _ACEOF
22577 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22578 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22579 if test "${ac_cv_type_mbstate_t+set}" = set; then
22580 echo $ECHO_N "(cached) $ECHO_C" >&6
22581 else
22582 cat >conftest.$ac_ext <<_ACEOF
22583 /* confdefs.h. */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h. */
22588 $ac_includes_default
22589 # include <wchar.h>
22591 main ()
22593 mbstate_t x; return sizeof x;
22595 return 0;
22597 _ACEOF
22598 rm -f conftest.$ac_objext
22599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22600 (eval $ac_compile) 2>conftest.er1
22601 ac_status=$?
22602 grep -v '^ *+' conftest.er1 >conftest.err
22603 rm -f conftest.er1
22604 cat conftest.err >&5
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); } &&
22607 { ac_try='test -z "$ac_c_werror_flag"
22608 || test ! -s conftest.err'
22609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610 (eval $ac_try) 2>&5
22611 ac_status=$?
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); }; } &&
22614 { ac_try='test -s conftest.$ac_objext'
22615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616 (eval $ac_try) 2>&5
22617 ac_status=$?
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); }; }; then
22620 ac_cv_type_mbstate_t=yes
22621 else
22622 echo "$as_me: failed program was:" >&5
22623 sed 's/^/| /' conftest.$ac_ext >&5
22625 ac_cv_type_mbstate_t=no
22627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22629 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22630 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22631 if test $ac_cv_type_mbstate_t = yes; then
22633 cat >>confdefs.h <<\_ACEOF
22634 #define HAVE_MBSTATE_T 1
22635 _ACEOF
22637 else
22639 cat >>confdefs.h <<\_ACEOF
22640 #define mbstate_t int
22641 _ACEOF
22645 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22646 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22647 if test "${emacs_cv_c_restrict+set}" = set; then
22648 echo $ECHO_N "(cached) $ECHO_C" >&6
22649 else
22650 cat >conftest.$ac_ext <<_ACEOF
22651 /* confdefs.h. */
22652 _ACEOF
22653 cat confdefs.h >>conftest.$ac_ext
22654 cat >>conftest.$ac_ext <<_ACEOF
22655 /* end confdefs.h. */
22656 void fred (int *restrict x);
22658 main ()
22662 return 0;
22664 _ACEOF
22665 rm -f conftest.$ac_objext
22666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22667 (eval $ac_compile) 2>conftest.er1
22668 ac_status=$?
22669 grep -v '^ *+' conftest.er1 >conftest.err
22670 rm -f conftest.er1
22671 cat conftest.err >&5
22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } &&
22674 { ac_try='test -z "$ac_c_werror_flag"
22675 || test ! -s conftest.err'
22676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677 (eval $ac_try) 2>&5
22678 ac_status=$?
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); }; } &&
22681 { ac_try='test -s conftest.$ac_objext'
22682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683 (eval $ac_try) 2>&5
22684 ac_status=$?
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); }; }; then
22687 emacs_cv_c_restrict=yes
22688 else
22689 echo "$as_me: failed program was:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22692 cat >conftest.$ac_ext <<_ACEOF
22693 /* confdefs.h. */
22694 _ACEOF
22695 cat confdefs.h >>conftest.$ac_ext
22696 cat >>conftest.$ac_ext <<_ACEOF
22697 /* end confdefs.h. */
22698 void fred (int *__restrict x);
22700 main ()
22704 return 0;
22706 _ACEOF
22707 rm -f conftest.$ac_objext
22708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22709 (eval $ac_compile) 2>conftest.er1
22710 ac_status=$?
22711 grep -v '^ *+' conftest.er1 >conftest.err
22712 rm -f conftest.er1
22713 cat conftest.err >&5
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); } &&
22716 { ac_try='test -z "$ac_c_werror_flag"
22717 || test ! -s conftest.err'
22718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22719 (eval $ac_try) 2>&5
22720 ac_status=$?
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); }; } &&
22723 { ac_try='test -s conftest.$ac_objext'
22724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22725 (eval $ac_try) 2>&5
22726 ac_status=$?
22727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22728 (exit $ac_status); }; }; then
22729 emacs_cv_c_restrict=__restrict
22730 else
22731 echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22734 emacs_cv_c_restrict=no
22736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22740 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22741 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22742 case "$emacs_cv_c_restrict" in
22743 yes) emacs_restrict=restrict;;
22744 no) emacs_restrict="";;
22745 *) emacs_restrict="$emacs_cv_c_restrict";;
22746 esac
22747 if test "$emacs_restrict" != __restrict; then
22749 cat >>confdefs.h <<_ACEOF
22750 #define __restrict $emacs_restrict
22751 _ACEOF
22755 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22756 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22757 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22758 echo $ECHO_N "(cached) $ECHO_C" >&6
22759 else
22760 cat >conftest.$ac_ext <<_ACEOF
22761 /* confdefs.h. */
22762 _ACEOF
22763 cat confdefs.h >>conftest.$ac_ext
22764 cat >>conftest.$ac_ext <<_ACEOF
22765 /* end confdefs.h. */
22766 void fred (int x[__restrict]);
22768 main ()
22772 return 0;
22774 _ACEOF
22775 rm -f conftest.$ac_objext
22776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22777 (eval $ac_compile) 2>conftest.er1
22778 ac_status=$?
22779 grep -v '^ *+' conftest.er1 >conftest.err
22780 rm -f conftest.er1
22781 cat conftest.err >&5
22782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783 (exit $ac_status); } &&
22784 { ac_try='test -z "$ac_c_werror_flag"
22785 || test ! -s conftest.err'
22786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22787 (eval $ac_try) 2>&5
22788 ac_status=$?
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); }; } &&
22791 { ac_try='test -s conftest.$ac_objext'
22792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22793 (eval $ac_try) 2>&5
22794 ac_status=$?
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); }; }; then
22797 emacs_cv_c_restrict_arr=yes
22798 else
22799 echo "$as_me: failed program was:" >&5
22800 sed 's/^/| /' conftest.$ac_ext >&5
22802 emacs_cv_c_restrict_arr=no
22804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22806 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22807 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22808 if test "$emacs_cv_c_restrict_arr" = yes; then
22810 cat >>confdefs.h <<\_ACEOF
22811 #define __restrict_arr __restrict
22812 _ACEOF
22818 # Set up the CFLAGS for real compilation, so we can substitute it.
22819 CFLAGS="$REAL_CFLAGS"
22820 CPPFLAGS="$REAL_CPPFLAGS"
22822 #### Find out which version of Emacs this is.
22823 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22824 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22825 if test x"${version}" = x; then
22826 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22827 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22828 { (exit 1); exit 1; }; }
22831 ### Specify what sort of things we'll be editing into Makefile and config.h.
22832 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22868 cat >>confdefs.h <<_ACEOF
22869 #define EMACS_CONFIGURATION "${canonical}"
22870 _ACEOF
22873 cat >>confdefs.h <<_ACEOF
22874 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22875 _ACEOF
22878 cat >>confdefs.h <<_ACEOF
22879 #define config_machfile "${machfile}"
22880 _ACEOF
22883 cat >>confdefs.h <<_ACEOF
22884 #define config_opsysfile "${opsysfile}"
22885 _ACEOF
22888 cat >>confdefs.h <<_ACEOF
22889 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22890 _ACEOF
22893 cat >>confdefs.h <<_ACEOF
22894 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22895 _ACEOF
22898 cat >>confdefs.h <<_ACEOF
22899 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22900 _ACEOF
22903 cat >>confdefs.h <<_ACEOF
22904 #define UNEXEC_SRC ${UNEXEC_SRC}
22905 _ACEOF
22908 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22910 cat >>confdefs.h <<\_ACEOF
22911 #define HAVE_X_WINDOWS 1
22912 _ACEOF
22915 if test "${USE_X_TOOLKIT}" != "none" ; then
22917 cat >>confdefs.h <<\_ACEOF
22918 #define USE_X_TOOLKIT 1
22919 _ACEOF
22922 if test "${HAVE_X11}" = "yes" ; then
22924 cat >>confdefs.h <<\_ACEOF
22925 #define HAVE_X11 1
22926 _ACEOF
22929 if test "${HAVE_XFREE386}" = "yes" ; then
22931 cat >>confdefs.h <<\_ACEOF
22932 #define HAVE_XFREE386 1
22933 _ACEOF
22936 if test "${HAVE_MENUS}" = "yes" ; then
22938 cat >>confdefs.h <<\_ACEOF
22939 #define HAVE_MENUS 1
22940 _ACEOF
22943 if test "${GNU_MALLOC}" = "yes" ; then
22945 cat >>confdefs.h <<\_ACEOF
22946 #define GNU_MALLOC 1
22947 _ACEOF
22950 if test "${REL_ALLOC}" = "yes" ; then
22952 cat >>confdefs.h <<\_ACEOF
22953 #define REL_ALLOC 1
22954 _ACEOF
22962 #### Report on what we decided to do.
22963 #### Report GTK as a toolkit, even if it doesn't use Xt.
22964 #### It makes printing result more understandable as using GTK sets
22965 #### toolkit_scroll_bars to yes by default.
22966 if test "${HAVE_GTK}" = "yes"; then
22967 USE_X_TOOLKIT=GTK
22970 echo "
22971 Configured for \`${canonical}'.
22973 Where should the build process find the source code? ${srcdir}
22974 What operating system and machine description files should Emacs use?
22975 \`${opsysfile}' and \`${machfile}'
22976 What compiler should emacs be built with? ${CC} ${CFLAGS}
22977 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22978 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22979 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22980 What window system should Emacs use? ${window_system}
22981 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22983 if test -n "${x_includes}"; then
22984 echo " Where do we find X Windows header files? ${x_includes}"
22985 else
22986 echo " Where do we find X Windows header files? Standard dirs"
22988 if test -n "${x_libraries}"; then
22989 echo " Where do we find X Windows libraries? ${x_libraries}"
22990 else
22991 echo " Where do we find X Windows libraries? Standard dirs"
22994 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22995 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22996 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22997 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22998 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22999 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23000 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23001 echo
23003 if test $USE_XASSERTS = yes; then
23004 echo " Compiling with asserts turned on."
23005 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23006 echo
23011 # Remove any trailing slashes in these variables.
23012 test "${prefix}" != NONE &&
23013 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23014 test "${exec_prefix}" != NONE &&
23015 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23017 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23018 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23019 ## from Makefile.c can correctly provide the arg `-traditional' to the
23020 ## C preprocessor.
23022 cat >conftest.$ac_ext <<_ACEOF
23023 /* confdefs.h. */
23024 _ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 yes..yes
23029 _ACEOF
23030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23031 $EGREP "yes..yes" >/dev/null 2>&1; then
23032 CPP_NEED_TRADITIONAL=no
23033 else
23034 CPP_NEED_TRADITIONAL=yes
23036 rm -f conftest*
23039 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"
23040 ac_config_commands="$ac_config_commands default"
23041 cat >confcache <<\_ACEOF
23042 # This file is a shell script that caches the results of configure
23043 # tests run on this system so they can be shared between configure
23044 # scripts and configure runs, see configure's option --config-cache.
23045 # It is not useful on other systems. If it contains results you don't
23046 # want to keep, you may remove or edit it.
23048 # config.status only pays attention to the cache file if you give it
23049 # the --recheck option to rerun configure.
23051 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23052 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23053 # following values.
23055 _ACEOF
23057 # The following way of writing the cache mishandles newlines in values,
23058 # but we know of no workaround that is simple, portable, and efficient.
23059 # So, don't put newlines in cache variables' values.
23060 # Ultrix sh set writes to stderr and can't be redirected directly,
23061 # and sets the high bit in the cache file unless we assign to the vars.
23063 (set) 2>&1 |
23064 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23065 *ac_space=\ *)
23066 # `set' does not quote correctly, so add quotes (double-quote
23067 # substitution turns \\\\ into \\, and sed turns \\ into \).
23068 sed -n \
23069 "s/'/'\\\\''/g;
23070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23073 # `set' quotes correctly as required by POSIX, so do not add quotes.
23074 sed -n \
23075 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23077 esac;
23079 sed '
23080 t clear
23081 : clear
23082 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23083 t end
23084 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23085 : end' >>confcache
23086 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23087 if test -w $cache_file; then
23088 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23089 cat confcache >$cache_file
23090 else
23091 echo "not updating unwritable cache $cache_file"
23094 rm -f confcache
23096 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23097 # Let make expand exec_prefix.
23098 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23100 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23101 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23102 # trailing colons and then remove the whole line if VPATH becomes empty
23103 # (actually we leave an empty line to preserve line numbers).
23104 if test "x$srcdir" = x.; then
23105 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23106 s/:*\$(srcdir):*/:/;
23107 s/:*\${srcdir}:*/:/;
23108 s/:*@srcdir@:*/:/;
23109 s/^\([^=]*=[ ]*\):*/\1/;
23110 s/:*$//;
23111 s/^[^=]*=[ ]*$//;
23115 DEFS=-DHAVE_CONFIG_H
23117 ac_libobjs=
23118 ac_ltlibobjs=
23119 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23120 # 1. Remove the extension, and $U if already installed.
23121 ac_i=`echo "$ac_i" |
23122 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23123 # 2. Add them.
23124 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23125 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23126 done
23127 LIBOBJS=$ac_libobjs
23129 LTLIBOBJS=$ac_ltlibobjs
23133 : ${CONFIG_STATUS=./config.status}
23134 ac_clean_files_save=$ac_clean_files
23135 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23136 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23137 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23138 cat >$CONFIG_STATUS <<_ACEOF
23139 #! $SHELL
23140 # Generated by $as_me.
23141 # Run this file to recreate the current configuration.
23142 # Compiler output produced by configure, useful for debugging
23143 # configure, is in config.log if it exists.
23145 debug=false
23146 ac_cs_recheck=false
23147 ac_cs_silent=false
23148 SHELL=\${CONFIG_SHELL-$SHELL}
23149 _ACEOF
23151 cat >>$CONFIG_STATUS <<\_ACEOF
23152 ## --------------------- ##
23153 ## M4sh Initialization. ##
23154 ## --------------------- ##
23156 # Be Bourne compatible
23157 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23158 emulate sh
23159 NULLCMD=:
23160 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23161 # is contrary to our usage. Disable this feature.
23162 alias -g '${1+"$@"}'='"$@"'
23163 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23164 set -o posix
23166 DUALCASE=1; export DUALCASE # for MKS sh
23168 # Support unset when possible.
23169 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23170 as_unset=unset
23171 else
23172 as_unset=false
23176 # Work around bugs in pre-3.0 UWIN ksh.
23177 $as_unset ENV MAIL MAILPATH
23178 PS1='$ '
23179 PS2='> '
23180 PS4='+ '
23182 # NLS nuisances.
23183 for as_var in \
23184 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23185 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23186 LC_TELEPHONE LC_TIME
23188 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23189 eval $as_var=C; export $as_var
23190 else
23191 $as_unset $as_var
23193 done
23195 # Required to use basename.
23196 if expr a : '\(a\)' >/dev/null 2>&1; then
23197 as_expr=expr
23198 else
23199 as_expr=false
23202 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23203 as_basename=basename
23204 else
23205 as_basename=false
23209 # Name of the executable.
23210 as_me=`$as_basename "$0" ||
23211 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23212 X"$0" : 'X\(//\)$' \| \
23213 X"$0" : 'X\(/\)$' \| \
23214 . : '\(.\)' 2>/dev/null ||
23215 echo X/"$0" |
23216 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23217 /^X\/\(\/\/\)$/{ s//\1/; q; }
23218 /^X\/\(\/\).*/{ s//\1/; q; }
23219 s/.*/./; q'`
23222 # PATH needs CR, and LINENO needs CR and PATH.
23223 # Avoid depending upon Character Ranges.
23224 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23225 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23226 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23227 as_cr_digits='0123456789'
23228 as_cr_alnum=$as_cr_Letters$as_cr_digits
23230 # The user is always right.
23231 if test "${PATH_SEPARATOR+set}" != set; then
23232 echo "#! /bin/sh" >conf$$.sh
23233 echo "exit 0" >>conf$$.sh
23234 chmod +x conf$$.sh
23235 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23236 PATH_SEPARATOR=';'
23237 else
23238 PATH_SEPARATOR=:
23240 rm -f conf$$.sh
23244 as_lineno_1=$LINENO
23245 as_lineno_2=$LINENO
23246 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23247 test "x$as_lineno_1" != "x$as_lineno_2" &&
23248 test "x$as_lineno_3" = "x$as_lineno_2" || {
23249 # Find who we are. Look in the path if we contain no path at all
23250 # relative or not.
23251 case $0 in
23252 *[\\/]* ) as_myself=$0 ;;
23253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23254 for as_dir in $PATH
23256 IFS=$as_save_IFS
23257 test -z "$as_dir" && as_dir=.
23258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23259 done
23262 esac
23263 # We did not find ourselves, most probably we were run as `sh COMMAND'
23264 # in which case we are not to be found in the path.
23265 if test "x$as_myself" = x; then
23266 as_myself=$0
23268 if test ! -f "$as_myself"; then
23269 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23270 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23271 { (exit 1); exit 1; }; }
23273 case $CONFIG_SHELL in
23275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23276 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23278 IFS=$as_save_IFS
23279 test -z "$as_dir" && as_dir=.
23280 for as_base in sh bash ksh sh5; do
23281 case $as_dir in
23283 if ("$as_dir/$as_base" -c '
23284 as_lineno_1=$LINENO
23285 as_lineno_2=$LINENO
23286 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23287 test "x$as_lineno_1" != "x$as_lineno_2" &&
23288 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23289 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23290 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23291 CONFIG_SHELL=$as_dir/$as_base
23292 export CONFIG_SHELL
23293 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23294 fi;;
23295 esac
23296 done
23297 done
23299 esac
23301 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23302 # uniformly replaced by the line number. The first 'sed' inserts a
23303 # line-number line before each line; the second 'sed' does the real
23304 # work. The second script uses 'N' to pair each line-number line
23305 # with the numbered line, and appends trailing '-' during
23306 # substitution so that $LINENO is not a special case at line end.
23307 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23308 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23309 sed '=' <$as_myself |
23310 sed '
23312 s,$,-,
23313 : loop
23314 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23315 t loop
23316 s,-$,,
23317 s,^['$as_cr_digits']*\n,,
23318 ' >$as_me.lineno &&
23319 chmod +x $as_me.lineno ||
23320 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23321 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23322 { (exit 1); exit 1; }; }
23324 # Don't try to exec as it changes $[0], causing all sort of problems
23325 # (the dirname of $[0] is not the place where we might find the
23326 # original and so on. Autoconf is especially sensible to this).
23327 . ./$as_me.lineno
23328 # Exit status is that of the last command.
23329 exit
23333 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23334 *c*,-n*) ECHO_N= ECHO_C='
23335 ' ECHO_T=' ' ;;
23336 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23337 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23338 esac
23340 if expr a : '\(a\)' >/dev/null 2>&1; then
23341 as_expr=expr
23342 else
23343 as_expr=false
23346 rm -f conf$$ conf$$.exe conf$$.file
23347 echo >conf$$.file
23348 if ln -s conf$$.file conf$$ 2>/dev/null; then
23349 # We could just check for DJGPP; but this test a) works b) is more generic
23350 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23351 if test -f conf$$.exe; then
23352 # Don't use ln at all; we don't have any links
23353 as_ln_s='cp -p'
23354 else
23355 as_ln_s='ln -s'
23357 elif ln conf$$.file conf$$ 2>/dev/null; then
23358 as_ln_s=ln
23359 else
23360 as_ln_s='cp -p'
23362 rm -f conf$$ conf$$.exe conf$$.file
23364 if mkdir -p . 2>/dev/null; then
23365 as_mkdir_p=:
23366 else
23367 test -d ./-p && rmdir ./-p
23368 as_mkdir_p=false
23371 as_executable_p="test -f"
23373 # Sed expression to map a string onto a valid CPP name.
23374 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23376 # Sed expression to map a string onto a valid variable name.
23377 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23380 # IFS
23381 # We need space, tab and new line, in precisely that order.
23382 as_nl='
23384 IFS=" $as_nl"
23386 # CDPATH.
23387 $as_unset CDPATH
23389 exec 6>&1
23391 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23392 # report actual input values of CONFIG_FILES etc. instead of their
23393 # values after options handling. Logging --version etc. is OK.
23394 exec 5>>config.log
23396 echo
23397 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23398 ## Running $as_me. ##
23399 _ASBOX
23400 } >&5
23401 cat >&5 <<_CSEOF
23403 This file was extended by $as_me, which was
23404 generated by GNU Autoconf 2.59. Invocation command line was
23406 CONFIG_FILES = $CONFIG_FILES
23407 CONFIG_HEADERS = $CONFIG_HEADERS
23408 CONFIG_LINKS = $CONFIG_LINKS
23409 CONFIG_COMMANDS = $CONFIG_COMMANDS
23410 $ $0 $@
23412 _CSEOF
23413 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23414 echo >&5
23415 _ACEOF
23417 # Files that config.status was made for.
23418 if test -n "$ac_config_files"; then
23419 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23422 if test -n "$ac_config_headers"; then
23423 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23426 if test -n "$ac_config_links"; then
23427 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23430 if test -n "$ac_config_commands"; then
23431 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23434 cat >>$CONFIG_STATUS <<\_ACEOF
23436 ac_cs_usage="\
23437 \`$as_me' instantiates files from templates according to the
23438 current configuration.
23440 Usage: $0 [OPTIONS] [FILE]...
23442 -h, --help print this help, then exit
23443 -V, --version print version number, then exit
23444 -q, --quiet do not print progress messages
23445 -d, --debug don't remove temporary files
23446 --recheck update $as_me by reconfiguring in the same conditions
23447 --file=FILE[:TEMPLATE]
23448 instantiate the configuration file FILE
23449 --header=FILE[:TEMPLATE]
23450 instantiate the configuration header FILE
23452 Configuration files:
23453 $config_files
23455 Configuration headers:
23456 $config_headers
23458 Configuration commands:
23459 $config_commands
23461 Report bugs to <bug-autoconf@gnu.org>."
23462 _ACEOF
23464 cat >>$CONFIG_STATUS <<_ACEOF
23465 ac_cs_version="\\
23466 config.status
23467 configured by $0, generated by GNU Autoconf 2.59,
23468 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23470 Copyright (C) 2003 Free Software Foundation, Inc.
23471 This config.status script is free software; the Free Software Foundation
23472 gives unlimited permission to copy, distribute and modify it."
23473 srcdir=$srcdir
23474 INSTALL="$INSTALL"
23475 _ACEOF
23477 cat >>$CONFIG_STATUS <<\_ACEOF
23478 # If no file are specified by the user, then we need to provide default
23479 # value. By we need to know if files were specified by the user.
23480 ac_need_defaults=:
23481 while test $# != 0
23483 case $1 in
23484 --*=*)
23485 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23486 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23487 ac_shift=:
23490 ac_option=$1
23491 ac_optarg=$2
23492 ac_shift=shift
23494 *) # This is not an option, so the user has probably given explicit
23495 # arguments.
23496 ac_option=$1
23497 ac_need_defaults=false;;
23498 esac
23500 case $ac_option in
23501 # Handling of the options.
23502 _ACEOF
23503 cat >>$CONFIG_STATUS <<\_ACEOF
23504 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23505 ac_cs_recheck=: ;;
23506 --version | --vers* | -V )
23507 echo "$ac_cs_version"; exit 0 ;;
23508 --he | --h)
23509 # Conflict between --help and --header
23510 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23511 Try \`$0 --help' for more information." >&5
23512 echo "$as_me: error: ambiguous option: $1
23513 Try \`$0 --help' for more information." >&2;}
23514 { (exit 1); exit 1; }; };;
23515 --help | --hel | -h )
23516 echo "$ac_cs_usage"; exit 0 ;;
23517 --debug | --d* | -d )
23518 debug=: ;;
23519 --file | --fil | --fi | --f )
23520 $ac_shift
23521 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23522 ac_need_defaults=false;;
23523 --header | --heade | --head | --hea )
23524 $ac_shift
23525 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23526 ac_need_defaults=false;;
23527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23528 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23529 ac_cs_silent=: ;;
23531 # This is an error.
23532 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23533 Try \`$0 --help' for more information." >&5
23534 echo "$as_me: error: unrecognized option: $1
23535 Try \`$0 --help' for more information." >&2;}
23536 { (exit 1); exit 1; }; } ;;
23538 *) ac_config_targets="$ac_config_targets $1" ;;
23540 esac
23541 shift
23542 done
23544 ac_configure_extra_args=
23546 if $ac_cs_silent; then
23547 exec 6>/dev/null
23548 ac_configure_extra_args="$ac_configure_extra_args --silent"
23551 _ACEOF
23552 cat >>$CONFIG_STATUS <<_ACEOF
23553 if \$ac_cs_recheck; then
23554 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23555 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23558 _ACEOF
23560 cat >>$CONFIG_STATUS <<_ACEOF
23562 # INIT-COMMANDS section.
23565 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23567 _ACEOF
23571 cat >>$CONFIG_STATUS <<\_ACEOF
23572 for ac_config_target in $ac_config_targets
23574 case "$ac_config_target" in
23575 # Handling of arguments.
23576 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23577 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23578 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23579 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23580 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23581 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23582 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23583 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23584 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23585 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23586 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23587 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23588 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23589 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23590 { (exit 1); exit 1; }; };;
23591 esac
23592 done
23594 # If the user did not use the arguments to specify the items to instantiate,
23595 # then the envvar interface is used. Set only those that are not.
23596 # We use the long form for the default assignment because of an extremely
23597 # bizarre bug on SunOS 4.1.3.
23598 if $ac_need_defaults; then
23599 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23600 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23601 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23604 # Have a temporary directory for convenience. Make it in the build tree
23605 # simply because there is no reason to put it here, and in addition,
23606 # creating and moving files from /tmp can sometimes cause problems.
23607 # Create a temporary directory, and hook for its removal unless debugging.
23608 $debug ||
23610 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23611 trap '{ (exit 1); exit 1; }' 1 2 13 15
23614 # Create a (secure) tmp directory for tmp files.
23617 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23618 test -n "$tmp" && test -d "$tmp"
23619 } ||
23621 tmp=./confstat$$-$RANDOM
23622 (umask 077 && mkdir $tmp)
23623 } ||
23625 echo "$me: cannot create a temporary directory in ." >&2
23626 { (exit 1); exit 1; }
23629 _ACEOF
23631 cat >>$CONFIG_STATUS <<_ACEOF
23634 # CONFIG_FILES section.
23637 # No need to generate the scripts if there are no CONFIG_FILES.
23638 # This happens for instance when ./config.status config.h
23639 if test -n "\$CONFIG_FILES"; then
23640 # Protect against being on the right side of a sed subst in config.status.
23641 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23642 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23643 s,@SHELL@,$SHELL,;t t
23644 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23645 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23646 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23647 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23648 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23649 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23650 s,@exec_prefix@,$exec_prefix,;t t
23651 s,@prefix@,$prefix,;t t
23652 s,@program_transform_name@,$program_transform_name,;t t
23653 s,@bindir@,$bindir,;t t
23654 s,@sbindir@,$sbindir,;t t
23655 s,@libexecdir@,$libexecdir,;t t
23656 s,@datadir@,$datadir,;t t
23657 s,@sysconfdir@,$sysconfdir,;t t
23658 s,@sharedstatedir@,$sharedstatedir,;t t
23659 s,@localstatedir@,$localstatedir,;t t
23660 s,@libdir@,$libdir,;t t
23661 s,@includedir@,$includedir,;t t
23662 s,@oldincludedir@,$oldincludedir,;t t
23663 s,@infodir@,$infodir,;t t
23664 s,@mandir@,$mandir,;t t
23665 s,@build_alias@,$build_alias,;t t
23666 s,@host_alias@,$host_alias,;t t
23667 s,@target_alias@,$target_alias,;t t
23668 s,@DEFS@,$DEFS,;t t
23669 s,@ECHO_C@,$ECHO_C,;t t
23670 s,@ECHO_N@,$ECHO_N,;t t
23671 s,@ECHO_T@,$ECHO_T,;t t
23672 s,@LIBS@,$LIBS,;t t
23673 s,@MAINT@,$MAINT,;t t
23674 s,@build@,$build,;t t
23675 s,@build_cpu@,$build_cpu,;t t
23676 s,@build_vendor@,$build_vendor,;t t
23677 s,@build_os@,$build_os,;t t
23678 s,@host@,$host,;t t
23679 s,@host_cpu@,$host_cpu,;t t
23680 s,@host_vendor@,$host_vendor,;t t
23681 s,@host_os@,$host_os,;t t
23682 s,@CC@,$CC,;t t
23683 s,@CFLAGS@,$CFLAGS,;t t
23684 s,@LDFLAGS@,$LDFLAGS,;t t
23685 s,@CPPFLAGS@,$CPPFLAGS,;t t
23686 s,@ac_ct_CC@,$ac_ct_CC,;t t
23687 s,@EXEEXT@,$EXEEXT,;t t
23688 s,@OBJEXT@,$OBJEXT,;t t
23689 s,@CPP@,$CPP,;t t
23690 s,@EGREP@,$EGREP,;t t
23691 s,@LN_S@,$LN_S,;t t
23692 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23693 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23694 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23695 s,@RANLIB@,$RANLIB,;t t
23696 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23697 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23698 s,@GZIP_PROG@,$GZIP_PROG,;t t
23699 s,@LIBSOUND@,$LIBSOUND,;t t
23700 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23701 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23702 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23703 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23704 s,@SET_MAKE@,$SET_MAKE,;t t
23705 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23706 s,@GTK_LIBS@,$GTK_LIBS,;t t
23707 s,@ALLOCA@,$ALLOCA,;t t
23708 s,@liblockfile@,$liblockfile,;t t
23709 s,@LIBOBJS@,$LIBOBJS,;t t
23710 s,@NEED_SETGID@,$NEED_SETGID,;t t
23711 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23712 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23713 s,@GETOPT_H@,$GETOPT_H,;t t
23714 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23715 s,@version@,$version,;t t
23716 s,@configuration@,$configuration,;t t
23717 s,@canonical@,$canonical,;t t
23718 s,@srcdir@,$srcdir,;t t
23719 s,@lispdir@,$lispdir,;t t
23720 s,@locallisppath@,$locallisppath,;t t
23721 s,@lisppath@,$lisppath,;t t
23722 s,@x_default_search_path@,$x_default_search_path,;t t
23723 s,@etcdir@,$etcdir,;t t
23724 s,@archlibdir@,$archlibdir,;t t
23725 s,@docdir@,$docdir,;t t
23726 s,@bitmapdir@,$bitmapdir,;t t
23727 s,@gamedir@,$gamedir,;t t
23728 s,@gameuser@,$gameuser,;t t
23729 s,@c_switch_system@,$c_switch_system,;t t
23730 s,@c_switch_machine@,$c_switch_machine,;t t
23731 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23732 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23733 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23734 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23735 s,@machfile@,$machfile,;t t
23736 s,@opsysfile@,$opsysfile,;t t
23737 s,@carbon_appdir@,$carbon_appdir,;t t
23738 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23739 CEOF
23741 _ACEOF
23743 cat >>$CONFIG_STATUS <<\_ACEOF
23744 # Split the substitutions into bite-sized pieces for seds with
23745 # small command number limits, like on Digital OSF/1 and HP-UX.
23746 ac_max_sed_lines=48
23747 ac_sed_frag=1 # Number of current file.
23748 ac_beg=1 # First line for current file.
23749 ac_end=$ac_max_sed_lines # Line after last line for current file.
23750 ac_more_lines=:
23751 ac_sed_cmds=
23752 while $ac_more_lines; do
23753 if test $ac_beg -gt 1; then
23754 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23755 else
23756 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23758 if test ! -s $tmp/subs.frag; then
23759 ac_more_lines=false
23760 else
23761 # The purpose of the label and of the branching condition is to
23762 # speed up the sed processing (if there are no `@' at all, there
23763 # is no need to browse any of the substitutions).
23764 # These are the two extra sed commands mentioned above.
23765 (echo ':t
23766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23767 if test -z "$ac_sed_cmds"; then
23768 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23769 else
23770 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23772 ac_sed_frag=`expr $ac_sed_frag + 1`
23773 ac_beg=$ac_end
23774 ac_end=`expr $ac_end + $ac_max_sed_lines`
23776 done
23777 if test -z "$ac_sed_cmds"; then
23778 ac_sed_cmds=cat
23780 fi # test -n "$CONFIG_FILES"
23782 _ACEOF
23783 cat >>$CONFIG_STATUS <<\_ACEOF
23784 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23785 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23786 case $ac_file in
23787 - | *:- | *:-:* ) # input from stdin
23788 cat >$tmp/stdin
23789 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23790 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23791 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23792 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23793 * ) ac_file_in=$ac_file.in ;;
23794 esac
23796 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23797 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23798 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23799 X"$ac_file" : 'X\(//\)[^/]' \| \
23800 X"$ac_file" : 'X\(//\)$' \| \
23801 X"$ac_file" : 'X\(/\)' \| \
23802 . : '\(.\)' 2>/dev/null ||
23803 echo X"$ac_file" |
23804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23805 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23806 /^X\(\/\/\)$/{ s//\1/; q; }
23807 /^X\(\/\).*/{ s//\1/; q; }
23808 s/.*/./; q'`
23809 { if $as_mkdir_p; then
23810 mkdir -p "$ac_dir"
23811 else
23812 as_dir="$ac_dir"
23813 as_dirs=
23814 while test ! -d "$as_dir"; do
23815 as_dirs="$as_dir $as_dirs"
23816 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23817 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23818 X"$as_dir" : 'X\(//\)[^/]' \| \
23819 X"$as_dir" : 'X\(//\)$' \| \
23820 X"$as_dir" : 'X\(/\)' \| \
23821 . : '\(.\)' 2>/dev/null ||
23822 echo X"$as_dir" |
23823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23824 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23825 /^X\(\/\/\)$/{ s//\1/; q; }
23826 /^X\(\/\).*/{ s//\1/; q; }
23827 s/.*/./; q'`
23828 done
23829 test ! -n "$as_dirs" || mkdir $as_dirs
23830 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23831 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23832 { (exit 1); exit 1; }; }; }
23834 ac_builddir=.
23836 if test "$ac_dir" != .; then
23837 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23838 # A "../" for each directory in $ac_dir_suffix.
23839 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23840 else
23841 ac_dir_suffix= ac_top_builddir=
23844 case $srcdir in
23845 .) # No --srcdir option. We are building in place.
23846 ac_srcdir=.
23847 if test -z "$ac_top_builddir"; then
23848 ac_top_srcdir=.
23849 else
23850 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23851 fi ;;
23852 [\\/]* | ?:[\\/]* ) # Absolute path.
23853 ac_srcdir=$srcdir$ac_dir_suffix;
23854 ac_top_srcdir=$srcdir ;;
23855 *) # Relative path.
23856 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23857 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23858 esac
23860 # Do not use `cd foo && pwd` to compute absolute paths, because
23861 # the directories may not exist.
23862 case `pwd` in
23863 .) ac_abs_builddir="$ac_dir";;
23865 case "$ac_dir" in
23866 .) ac_abs_builddir=`pwd`;;
23867 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23868 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23869 esac;;
23870 esac
23871 case $ac_abs_builddir in
23872 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23874 case ${ac_top_builddir}. in
23875 .) ac_abs_top_builddir=$ac_abs_builddir;;
23876 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23877 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23878 esac;;
23879 esac
23880 case $ac_abs_builddir in
23881 .) ac_abs_srcdir=$ac_srcdir;;
23883 case $ac_srcdir in
23884 .) ac_abs_srcdir=$ac_abs_builddir;;
23885 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23886 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23887 esac;;
23888 esac
23889 case $ac_abs_builddir in
23890 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23892 case $ac_top_srcdir in
23893 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23894 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23895 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23896 esac;;
23897 esac
23900 case $INSTALL in
23901 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23902 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23903 esac
23905 # Let's still pretend it is `configure' which instantiates (i.e., don't
23906 # use $as_me), people would be surprised to read:
23907 # /* config.h. Generated by config.status. */
23908 if test x"$ac_file" = x-; then
23909 configure_input=
23910 else
23911 configure_input="$ac_file. "
23913 configure_input=$configure_input"Generated from `echo $ac_file_in |
23914 sed 's,.*/,,'` by configure."
23916 # First look for the input files in the build tree, otherwise in the
23917 # src tree.
23918 ac_file_inputs=`IFS=:
23919 for f in $ac_file_in; do
23920 case $f in
23921 -) echo $tmp/stdin ;;
23922 [\\/$]*)
23923 # Absolute (can't be DOS-style, as IFS=:)
23924 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23925 echo "$as_me: error: cannot find input file: $f" >&2;}
23926 { (exit 1); exit 1; }; }
23927 echo "$f";;
23928 *) # Relative
23929 if test -f "$f"; then
23930 # Build tree
23931 echo "$f"
23932 elif test -f "$srcdir/$f"; then
23933 # Source tree
23934 echo "$srcdir/$f"
23935 else
23936 # /dev/null tree
23937 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23938 echo "$as_me: error: cannot find input file: $f" >&2;}
23939 { (exit 1); exit 1; }; }
23940 fi;;
23941 esac
23942 done` || { (exit 1); exit 1; }
23944 if test x"$ac_file" != x-; then
23945 { echo "$as_me:$LINENO: creating $ac_file" >&5
23946 echo "$as_me: creating $ac_file" >&6;}
23947 rm -f "$ac_file"
23949 _ACEOF
23950 cat >>$CONFIG_STATUS <<_ACEOF
23951 sed "$ac_vpsub
23952 $extrasub
23953 _ACEOF
23954 cat >>$CONFIG_STATUS <<\_ACEOF
23956 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23957 s,@configure_input@,$configure_input,;t t
23958 s,@srcdir@,$ac_srcdir,;t t
23959 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23960 s,@top_srcdir@,$ac_top_srcdir,;t t
23961 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23962 s,@builddir@,$ac_builddir,;t t
23963 s,@abs_builddir@,$ac_abs_builddir,;t t
23964 s,@top_builddir@,$ac_top_builddir,;t t
23965 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23966 s,@INSTALL@,$ac_INSTALL,;t t
23967 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23968 rm -f $tmp/stdin
23969 if test x"$ac_file" != x-; then
23970 mv $tmp/out $ac_file
23971 else
23972 cat $tmp/out
23973 rm -f $tmp/out
23976 done
23977 _ACEOF
23978 cat >>$CONFIG_STATUS <<\_ACEOF
23981 # CONFIG_HEADER section.
23984 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23985 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23987 # ac_d sets the value in "#define NAME VALUE" lines.
23988 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23989 ac_dB='[ ].*$,\1#\2'
23990 ac_dC=' '
23991 ac_dD=',;t'
23992 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23993 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23994 ac_uB='$,\1#\2define\3'
23995 ac_uC=' '
23996 ac_uD=',;t'
23998 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23999 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24000 case $ac_file in
24001 - | *:- | *:-:* ) # input from stdin
24002 cat >$tmp/stdin
24003 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24004 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24005 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24006 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24007 * ) ac_file_in=$ac_file.in ;;
24008 esac
24010 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24011 echo "$as_me: creating $ac_file" >&6;}
24013 # First look for the input files in the build tree, otherwise in the
24014 # src tree.
24015 ac_file_inputs=`IFS=:
24016 for f in $ac_file_in; do
24017 case $f in
24018 -) echo $tmp/stdin ;;
24019 [\\/$]*)
24020 # Absolute (can't be DOS-style, as IFS=:)
24021 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24022 echo "$as_me: error: cannot find input file: $f" >&2;}
24023 { (exit 1); exit 1; }; }
24024 # Do quote $f, to prevent DOS paths from being IFS'd.
24025 echo "$f";;
24026 *) # Relative
24027 if test -f "$f"; then
24028 # Build tree
24029 echo "$f"
24030 elif test -f "$srcdir/$f"; then
24031 # Source tree
24032 echo "$srcdir/$f"
24033 else
24034 # /dev/null tree
24035 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24036 echo "$as_me: error: cannot find input file: $f" >&2;}
24037 { (exit 1); exit 1; }; }
24038 fi;;
24039 esac
24040 done` || { (exit 1); exit 1; }
24041 # Remove the trailing spaces.
24042 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24044 _ACEOF
24046 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24047 # `conftest.undefs', that substitutes the proper values into
24048 # config.h.in to produce config.h. The first handles `#define'
24049 # templates, and the second `#undef' templates.
24050 # And first: Protect against being on the right side of a sed subst in
24051 # config.status. Protect against being in an unquoted here document
24052 # in config.status.
24053 rm -f conftest.defines conftest.undefs
24054 # Using a here document instead of a string reduces the quoting nightmare.
24055 # Putting comments in sed scripts is not portable.
24057 # `end' is used to avoid that the second main sed command (meant for
24058 # 0-ary CPP macros) applies to n-ary macro definitions.
24059 # See the Autoconf documentation for `clear'.
24060 cat >confdef2sed.sed <<\_ACEOF
24061 s/[\\&,]/\\&/g
24062 s,[\\$`],\\&,g
24063 t clear
24064 : clear
24065 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24066 t end
24067 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24068 : end
24069 _ACEOF
24070 # If some macros were called several times there might be several times
24071 # the same #defines, which is useless. Nevertheless, we may not want to
24072 # sort them, since we want the *last* AC-DEFINE to be honored.
24073 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24074 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24075 rm -f confdef2sed.sed
24077 # This sed command replaces #undef with comments. This is necessary, for
24078 # example, in the case of _POSIX_SOURCE, which is predefined and required
24079 # on some systems where configure will not decide to define it.
24080 cat >>conftest.undefs <<\_ACEOF
24081 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24082 _ACEOF
24084 # Break up conftest.defines because some shells have a limit on the size
24085 # of here documents, and old seds have small limits too (100 cmds).
24086 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24087 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24088 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24089 echo ' :' >>$CONFIG_STATUS
24090 rm -f conftest.tail
24091 while grep . conftest.defines >/dev/null
24093 # Write a limited-size here document to $tmp/defines.sed.
24094 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24095 # Speed up: don't consider the non `#define' lines.
24096 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24097 # Work around the forget-to-reset-the-flag bug.
24098 echo 't clr' >>$CONFIG_STATUS
24099 echo ': clr' >>$CONFIG_STATUS
24100 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24101 echo 'CEOF
24102 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24103 rm -f $tmp/in
24104 mv $tmp/out $tmp/in
24105 ' >>$CONFIG_STATUS
24106 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24107 rm -f conftest.defines
24108 mv conftest.tail conftest.defines
24109 done
24110 rm -f conftest.defines
24111 echo ' fi # grep' >>$CONFIG_STATUS
24112 echo >>$CONFIG_STATUS
24114 # Break up conftest.undefs because some shells have a limit on the size
24115 # of here documents, and old seds have small limits too (100 cmds).
24116 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24117 rm -f conftest.tail
24118 while grep . conftest.undefs >/dev/null
24120 # Write a limited-size here document to $tmp/undefs.sed.
24121 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24122 # Speed up: don't consider the non `#undef'
24123 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24124 # Work around the forget-to-reset-the-flag bug.
24125 echo 't clr' >>$CONFIG_STATUS
24126 echo ': clr' >>$CONFIG_STATUS
24127 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24128 echo 'CEOF
24129 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24130 rm -f $tmp/in
24131 mv $tmp/out $tmp/in
24132 ' >>$CONFIG_STATUS
24133 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24134 rm -f conftest.undefs
24135 mv conftest.tail conftest.undefs
24136 done
24137 rm -f conftest.undefs
24139 cat >>$CONFIG_STATUS <<\_ACEOF
24140 # Let's still pretend it is `configure' which instantiates (i.e., don't
24141 # use $as_me), people would be surprised to read:
24142 # /* config.h. Generated by config.status. */
24143 if test x"$ac_file" = x-; then
24144 echo "/* Generated by configure. */" >$tmp/config.h
24145 else
24146 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24148 cat $tmp/in >>$tmp/config.h
24149 rm -f $tmp/in
24150 if test x"$ac_file" != x-; then
24151 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24152 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24153 echo "$as_me: $ac_file is unchanged" >&6;}
24154 else
24155 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24156 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24157 X"$ac_file" : 'X\(//\)[^/]' \| \
24158 X"$ac_file" : 'X\(//\)$' \| \
24159 X"$ac_file" : 'X\(/\)' \| \
24160 . : '\(.\)' 2>/dev/null ||
24161 echo X"$ac_file" |
24162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24164 /^X\(\/\/\)$/{ s//\1/; q; }
24165 /^X\(\/\).*/{ s//\1/; q; }
24166 s/.*/./; q'`
24167 { if $as_mkdir_p; then
24168 mkdir -p "$ac_dir"
24169 else
24170 as_dir="$ac_dir"
24171 as_dirs=
24172 while test ! -d "$as_dir"; do
24173 as_dirs="$as_dir $as_dirs"
24174 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24176 X"$as_dir" : 'X\(//\)[^/]' \| \
24177 X"$as_dir" : 'X\(//\)$' \| \
24178 X"$as_dir" : 'X\(/\)' \| \
24179 . : '\(.\)' 2>/dev/null ||
24180 echo X"$as_dir" |
24181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24182 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24183 /^X\(\/\/\)$/{ s//\1/; q; }
24184 /^X\(\/\).*/{ s//\1/; q; }
24185 s/.*/./; q'`
24186 done
24187 test ! -n "$as_dirs" || mkdir $as_dirs
24188 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24189 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24190 { (exit 1); exit 1; }; }; }
24192 rm -f $ac_file
24193 mv $tmp/config.h $ac_file
24195 else
24196 cat $tmp/config.h
24197 rm -f $tmp/config.h
24199 done
24200 _ACEOF
24201 cat >>$CONFIG_STATUS <<\_ACEOF
24204 # CONFIG_COMMANDS section.
24206 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24207 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24208 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24209 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24210 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24211 X"$ac_dest" : 'X\(//\)[^/]' \| \
24212 X"$ac_dest" : 'X\(//\)$' \| \
24213 X"$ac_dest" : 'X\(/\)' \| \
24214 . : '\(.\)' 2>/dev/null ||
24215 echo X"$ac_dest" |
24216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24218 /^X\(\/\/\)$/{ s//\1/; q; }
24219 /^X\(\/\).*/{ s//\1/; q; }
24220 s/.*/./; q'`
24221 { if $as_mkdir_p; then
24222 mkdir -p "$ac_dir"
24223 else
24224 as_dir="$ac_dir"
24225 as_dirs=
24226 while test ! -d "$as_dir"; do
24227 as_dirs="$as_dir $as_dirs"
24228 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24229 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24230 X"$as_dir" : 'X\(//\)[^/]' \| \
24231 X"$as_dir" : 'X\(//\)$' \| \
24232 X"$as_dir" : 'X\(/\)' \| \
24233 . : '\(.\)' 2>/dev/null ||
24234 echo X"$as_dir" |
24235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24237 /^X\(\/\/\)$/{ s//\1/; q; }
24238 /^X\(\/\).*/{ s//\1/; q; }
24239 s/.*/./; q'`
24240 done
24241 test ! -n "$as_dirs" || mkdir $as_dirs
24242 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24243 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24244 { (exit 1); exit 1; }; }; }
24246 ac_builddir=.
24248 if test "$ac_dir" != .; then
24249 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24250 # A "../" for each directory in $ac_dir_suffix.
24251 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24252 else
24253 ac_dir_suffix= ac_top_builddir=
24256 case $srcdir in
24257 .) # No --srcdir option. We are building in place.
24258 ac_srcdir=.
24259 if test -z "$ac_top_builddir"; then
24260 ac_top_srcdir=.
24261 else
24262 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24263 fi ;;
24264 [\\/]* | ?:[\\/]* ) # Absolute path.
24265 ac_srcdir=$srcdir$ac_dir_suffix;
24266 ac_top_srcdir=$srcdir ;;
24267 *) # Relative path.
24268 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24269 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24270 esac
24272 # Do not use `cd foo && pwd` to compute absolute paths, because
24273 # the directories may not exist.
24274 case `pwd` in
24275 .) ac_abs_builddir="$ac_dir";;
24277 case "$ac_dir" in
24278 .) ac_abs_builddir=`pwd`;;
24279 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24280 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24281 esac;;
24282 esac
24283 case $ac_abs_builddir in
24284 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24286 case ${ac_top_builddir}. in
24287 .) ac_abs_top_builddir=$ac_abs_builddir;;
24288 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24289 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24290 esac;;
24291 esac
24292 case $ac_abs_builddir in
24293 .) ac_abs_srcdir=$ac_srcdir;;
24295 case $ac_srcdir in
24296 .) ac_abs_srcdir=$ac_abs_builddir;;
24297 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24298 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24299 esac;;
24300 esac
24301 case $ac_abs_builddir in
24302 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24304 case $ac_top_srcdir in
24305 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24306 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24307 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24308 esac;;
24309 esac
24312 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24313 echo "$as_me: executing $ac_dest commands" >&6;}
24314 case $ac_dest in
24315 default )
24317 ### Make the necessary directories, if they don't exist.
24318 for dir in etc lisp ; do
24319 test -d ${dir} || mkdir ${dir}
24320 done
24322 # Build src/Makefile from ${srcdir}/src/Makefile.c
24323 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24324 # This must be done after src/config.h is built, since we rely on that file.
24326 # Now get this: Some word that is part of the ${srcdir} directory name
24327 # or the ${configuration} value might, just might, happen to be an
24328 # identifier like `sun4' or `i386' or something, and be predefined by
24329 # the C preprocessor to some helpful value like 1, or maybe the empty
24330 # string. Needless to say consequent macro substitutions are less
24331 # than conducive to the makefile finding the correct directory.
24332 undefs="`echo $top_srcdir $configuration $canonical |
24333 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24334 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24337 echo creating src/epaths.h
24338 ${MAKE-make} epaths-force
24340 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24341 # `..' to `. .' unless invoked with -traditional
24343 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24344 CPPFLAGS="$CPPFLAGS -traditional"
24347 echo creating lib-src/Makefile
24348 ( cd lib-src
24349 rm -f junk.c junk1.c junk2.c
24350 sed -e '/start of cpp stuff/q' \
24351 < Makefile.c > junk1.c
24352 sed -e '1,/start of cpp stuff/d'\
24353 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24354 < Makefile.c > junk.c
24355 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24356 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24357 cat junk1.c junk2.c > Makefile.new
24358 rm -f junk.c junk1.c junk2.c
24359 chmod 444 Makefile.new
24360 mv -f Makefile.new Makefile
24363 echo creating src/Makefile
24364 ( cd src
24365 rm -f junk.c junk1.c junk2.c
24366 sed -e '/start of cpp stuff/q' \
24367 < Makefile.c > junk1.c
24368 sed -e '1,/start of cpp stuff/d'\
24369 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24370 < Makefile.c > junk.c
24371 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24372 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24373 cat junk1.c junk2.c > Makefile.new
24374 rm -f junk.c junk1.c junk2.c
24375 chmod 444 Makefile.new
24376 mv -f Makefile.new Makefile
24379 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24380 echo creating src/.gdbinit
24381 echo source $srcdir/src/.gdbinit > src/.gdbinit
24384 # This is how we know whether to re-run configure in certain cases.
24385 touch src/config.stamp
24388 esac
24389 done
24390 _ACEOF
24392 cat >>$CONFIG_STATUS <<\_ACEOF
24394 { (exit 0); exit 0; }
24395 _ACEOF
24396 chmod +x $CONFIG_STATUS
24397 ac_clean_files=$ac_clean_files_save
24400 # configure is writing to config.log, and then calls config.status.
24401 # config.status does its own redirection, appending to config.log.
24402 # Unfortunately, on DOS this fails, as config.log is still kept open
24403 # by configure, so config.status won't be able to write to it; its
24404 # output is simply discarded. So we exec the FD to /dev/null,
24405 # effectively closing config.log, so it can be properly (re)opened and
24406 # appended to by config.status. When coming back to configure, we
24407 # need to make the FD available again.
24408 if test "$no_create" != yes; then
24409 ac_cs_success=:
24410 ac_config_status_args=
24411 test "$silent" = yes &&
24412 ac_config_status_args="$ac_config_status_args --quiet"
24413 exec 5>/dev/null
24414 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24415 exec 5>>config.log
24416 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24417 # would make configure fail if this is the last instruction.
24418 $ac_cs_success || { (exit 1); exit 1; }