Entries I should have made earlier.
[emacs.git] / configure
blob91d1446c38cdd8f8fc86d3e3b350951619d05d94
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53a.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # NLS nuisances.
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27 as_unset=unset
28 else
29 as_unset=false
32 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
33 { $as_unset LANG || test "${LANG+set}" != set; } ||
34 { LANG=C; export LANG; }
35 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
36 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
37 { LC_ALL=C; export LC_ALL; }
38 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
39 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
40 { LC_TIME=C; export LC_TIME; }
41 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
42 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
43 { LC_CTYPE=C; export LC_CTYPE; }
44 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
45 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
46 { LANGUAGE=C; export LANGUAGE; }
47 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
48 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
49 { LC_COLLATE=C; export LC_COLLATE; }
50 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
51 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
52 { LC_NUMERIC=C; export LC_NUMERIC; }
53 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
54 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
55 { LC_MESSAGES=C; export LC_MESSAGES; }
58 # Required to use basename.
59 if expr a : '\(a\)' >/dev/null 2>&1; then
60 as_expr=expr
61 else
62 as_expr=false
65 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 as_basename=basename
67 else
68 as_basename=false
72 # Name of the executable.
73 as_me=`$as_basename "$0" ||
74 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
75 X"$0" : 'X\(//\)$' \| \
76 X"$0" : 'X\(/\)$' \| \
77 . : '\(.\)' 2>/dev/null ||
78 echo X/"$0" |
79 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
80 /^X\/\(\/\/\)$/{ s//\1/; q; }
81 /^X\/\(\/\).*/{ s//\1/; q; }
82 s/.*/./; q'`
85 # PATH needs CR, and LINENO needs CR and PATH.
86 # Avoid depending upon Character Ranges.
87 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
88 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
89 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
90 as_cr_digits='0123456789'
91 as_cr_alnum=$as_cr_Letters$as_cr_digits
93 # The user is always right.
94 if test "${PATH_SEPARATOR+set}" != set; then
95 echo "#! /bin/sh" >conftest.sh
96 echo "exit 0" >>conftest.sh
97 chmod +x conftest.sh
98 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
99 PATH_SEPARATOR=';'
100 else
101 PATH_SEPARATOR=:
103 rm -f conftest.sh
107 as_lineno_1=$LINENO
108 as_lineno_2=$LINENO
109 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
110 test "x$as_lineno_1" != "x$as_lineno_2" &&
111 test "x$as_lineno_3" = "x$as_lineno_2" || {
112 # Find who we are. Look in the path if we contain no path at all
113 # relative or not.
114 case $0 in
115 *[\\/]* ) as_myself=$0 ;;
116 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 for as_dir in $PATH
119 IFS=$as_save_IFS
120 test -z "$as_dir" && as_dir=.
121 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 done
125 esac
126 # We did not find ourselves, most probably we were run as `sh COMMAND'
127 # in which case we are not to be found in the path.
128 if test "x$as_myself" = x; then
129 as_myself=$0
131 if test ! -f "$as_myself"; then
132 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
133 { (exit 1); exit 1; }; }
135 case $CONFIG_SHELL in
137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
138 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140 IFS=$as_save_IFS
141 test -z "$as_dir" && as_dir=.
142 for as_base in sh bash ksh sh5; do
143 case $as_dir in
145 if ("$as_dir/$as_base" -c '
146 as_lineno_1=$LINENO
147 as_lineno_2=$LINENO
148 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
149 test "x$as_lineno_1" != "x$as_lineno_2" &&
150 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
151 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
152 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
153 CONFIG_SHELL=$as_dir/$as_base
154 export CONFIG_SHELL
155 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 fi;;
157 esac
158 done
159 done
161 esac
163 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
164 # uniformly replaced by the line number. The first 'sed' inserts a
165 # line-number line before each line; the second 'sed' does the real
166 # work. The second script uses 'N' to pair each line-number line
167 # with the numbered line, and appends trailing '-' during
168 # substitution so that $LINENO is not a special case at line end.
169 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
170 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
171 sed '=' <$as_myself |
172 sed '
174 s,$,-,
175 : loop
176 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
177 t loop
178 s,-$,,
179 s,^['$as_cr_digits']*\n,,
180 ' >$as_me.lineno &&
181 chmod +x $as_me.lineno ||
182 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
183 { (exit 1); exit 1; }; }
185 # Don't try to exec as it changes $[0], causing all sort of problems
186 # (the dirname of $[0] is not the place where we might find the
187 # original and so on. Autoconf is especially sensible to this).
188 . ./$as_me.lineno
189 # Exit status is that of the last command.
190 exit
194 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
195 *c*,-n*) ECHO_N= ECHO_C='
196 ' ECHO_T=' ' ;;
197 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
198 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
199 esac
201 if expr a : '\(a\)' >/dev/null 2>&1; then
202 as_expr=expr
203 else
204 as_expr=false
207 rm -f conf$$ conf$$.exe conf$$.file
208 echo >conf$$.file
209 if ln -s conf$$.file conf$$ 2>/dev/null; then
210 # We could just check for DJGPP; but this test a) works b) is more generic
211 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
212 if test -f conf$$.exe; then
213 # Don't use ln at all; we don't have any links
214 as_ln_s='cp -p'
215 else
216 as_ln_s='ln -s'
218 elif ln conf$$.file conf$$ 2>/dev/null; then
219 as_ln_s=ln
220 else
221 as_ln_s='cp -p'
223 rm -f conf$$ conf$$.exe conf$$.file
225 if mkdir -p . 2>/dev/null; then
226 as_mkdir_p=:
227 else
228 as_mkdir_p=false
231 as_executable_p="test -f"
233 # Sed expression to map a string onto a valid CPP name.
234 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
236 # Sed expression to map a string onto a valid variable name.
237 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
240 # IFS
241 # We need space, tab and new line, in precisely that order.
242 as_nl='
244 IFS=" $as_nl"
246 # CDPATH.
247 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
250 # Name of the host.
251 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
252 # so uname gets run too.
253 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 exec 6>&1
258 # Initializations.
260 ac_default_prefix=/usr/local
261 cross_compiling=no
262 subdirs=
263 MFLAGS=
264 MAKEFLAGS=
265 SHELL=${CONFIG_SHELL-/bin/sh}
267 # Maximum number of lines to put in a shell here document.
268 # This variable seems obsolete. It should probably be removed, and
269 # only ac_max_sed_lines should be used.
270 : ${ac_max_here_lines=38}
272 # Identity of this package.
273 PACKAGE_NAME=
274 PACKAGE_TARNAME=
275 PACKAGE_VERSION=
276 PACKAGE_STRING=
277 PACKAGE_BUGREPORT=
279 ac_unique_file="src/lisp.h"
280 # Factoring default headers for most tests.
281 ac_includes_default="\
282 #include <stdio.h>
283 #if HAVE_SYS_TYPES_H
284 # include <sys/types.h>
285 #endif
286 #if HAVE_SYS_STAT_H
287 # include <sys/stat.h>
288 #endif
289 #if STDC_HEADERS
290 # include <stdlib.h>
291 # include <stddef.h>
292 #else
293 # if HAVE_STDLIB_H
294 # include <stdlib.h>
295 # endif
296 #endif
297 #if HAVE_STRING_H
298 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <memory.h>
300 # endif
301 # include <string.h>
302 #endif
303 #if HAVE_STRINGS_H
304 # include <strings.h>
305 #endif
306 #if HAVE_INTTYPES_H
307 # include <inttypes.h>
308 #else
309 # if HAVE_STDINT_H
310 # include <stdint.h>
311 # endif
312 #endif
313 #if HAVE_UNISTD_H
314 # include <unistd.h>
315 #endif"
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
356 ac_prev=
357 for ac_option
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
370 case $ac_option in
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
389 --config-cache | -C)
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 esac
653 done
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
728 else
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
843 System types:
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 _ACEOF
849 if test -n "$ac_init_help"; then
851 cat <<\_ACEOF
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --disable-largefile omit support for large files
858 Optional Packages:
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 --with-game-dir use a shared game directory if possible
862 --with-game-user use specified user for game directory
863 --without-gcc don't use GCC to compile Emacs if GCC is found
864 --without-pop don't support POP mail retrieval with movemail
865 --with-kerberos support Kerberos-authenticated POP
866 --with-kerberos5 support Kerberos version 5 authenticated POP
867 --with-hesiod support Hesiod to get the POP server host
868 --without-sound don't compile with sound support
869 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
870 --with-xpm use -lXpm for displaying XPM images
871 --with-jpeg use -ljpeg for displaying JPEG images
872 --with-tiff use -ltiff for displaying TIFF images
873 --with-gif use -lungif for displaying GIF images
874 --with-png use -lpng for displaying PNG images
875 --without-toolkit-scroll-bars
876 don't use Motif or Xaw3d scroll bars
877 --without-xim don't use X11 XIM
878 --without-carbon don't use Carbon GUI on Mac OS X
879 --with-x use the X Window System
881 Some influential environment variables:
882 CC C compiler command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
885 nonstandard directory <lib dir>
886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
887 headers in a nonstandard directory <include dir>
888 CPP C preprocessor
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 _ACEOF
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
898 ac_popdir=`pwd`
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
901 ac_builddir=.
903 if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907 else
908 ac_dir_suffix= ac_top_builddir=
911 case $srcdir in
912 .) # No --srcdir option. We are building in place.
913 ac_srcdir=.
914 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=.
916 else
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918 fi ;;
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
922 *) # Relative path.
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925 esac
926 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
927 # absolute.
928 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
929 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
930 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
931 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
933 cd $ac_dir
934 # Check for guested configure; otherwise get Cygnus style configure.
935 if test -f $ac_srcdir/configure.gnu; then
936 echo
937 $SHELL $ac_srcdir/configure.gnu --help=recursive
938 elif test -f $ac_srcdir/configure; then
939 echo
940 $SHELL $ac_srcdir/configure --help=recursive
941 elif test -f $ac_srcdir/configure.ac ||
942 test -f $ac_srcdir/configure.in; then
943 echo
944 $ac_configure --help
945 else
946 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
948 cd $ac_popdir
949 done
952 test -n "$ac_init_help" && exit 0
953 if $ac_init_version; then
954 cat <<\_ACEOF
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
960 _ACEOF
961 exit 0
963 exec 5>config.log
964 cat >&5 <<_ACEOF
965 This file contains any messages produced by compilers while
966 running configure, to aid debugging if configure makes a mistake.
968 It was created by $as_me, which was
969 generated by GNU Autoconf 2.53a. Invocation command line was
971 $ $0 $@
973 _ACEOF
975 cat <<_ASUNAME
976 ## --------- ##
977 ## Platform. ##
978 ## --------- ##
980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
981 uname -m = `(uname -m) 2>/dev/null || echo unknown`
982 uname -r = `(uname -r) 2>/dev/null || echo unknown`
983 uname -s = `(uname -s) 2>/dev/null || echo unknown`
984 uname -v = `(uname -v) 2>/dev/null || echo unknown`
986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
987 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
989 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
990 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
992 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
993 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
994 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
995 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
997 _ASUNAME
999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1000 for as_dir in $PATH
1002 IFS=$as_save_IFS
1003 test -z "$as_dir" && as_dir=.
1004 echo "PATH: $as_dir"
1005 done
1007 } >&5
1009 cat >&5 <<_ACEOF
1012 ## ----------- ##
1013 ## Core tests. ##
1014 ## ----------- ##
1016 _ACEOF
1019 # Keep a trace of the command line.
1020 # Strip out --no-create and --no-recursion so they do not pile up.
1021 # Also quote any args containing shell meta-characters.
1022 ac_configure_args=
1023 ac_sep=
1024 for ac_arg
1026 case $ac_arg in
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n ) continue ;;
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 continue ;;
1032 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1033 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1034 esac
1035 case " $ac_configure_args " in
1036 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1037 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1038 ac_sep=" " ;;
1039 esac
1040 # Get rid of the leading space.
1041 done
1043 # When interrupted or exit'd, cleanup temporary files, and complete
1044 # config.log. We remove comments because anyway the quotes in there
1045 # would cause problems or look ugly.
1046 # WARNING: Be sure not to use single quotes in there, as some shells,
1047 # such as our DU 5.0 friend, will then `close' the trap.
1048 trap 'exit_status=$?
1049 # Save into config.log some information that might help in debugging.
1051 echo
1052 cat <<\_ASBOX
1053 ## ---------------- ##
1054 ## Cache variables. ##
1055 ## ---------------- ##
1056 _ASBOX
1057 echo
1058 # The following way of writing the cache mishandles newlines in values,
1060 (set) 2>&1 |
1061 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1062 *ac_space=\ *)
1063 sed -n \
1064 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1068 sed -n \
1069 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1071 esac;
1073 echo
1074 if test -s confdefs.h; then
1075 cat <<\_ASBOX
1076 ## ----------- ##
1077 ## confdefs.h. ##
1078 ## ----------- ##
1079 _ASBOX
1080 echo
1081 sed "/^$/d" confdefs.h
1082 echo
1084 test "$ac_signal" != 0 &&
1085 echo "$as_me: caught signal $ac_signal"
1086 echo "$as_me: exit $exit_status"
1087 } >&5
1088 rm -f core core.* *.core &&
1089 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1090 exit $exit_status
1092 for ac_signal in 1 2 13 15; do
1093 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1094 done
1095 ac_signal=0
1097 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1098 rm -rf conftest* confdefs.h
1099 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1100 echo >confdefs.h
1102 # Predefined preprocessor variables.
1104 cat >>confdefs.h <<_ACEOF
1105 #define PACKAGE_NAME "$PACKAGE_NAME"
1106 _ACEOF
1109 cat >>confdefs.h <<_ACEOF
1110 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1111 _ACEOF
1114 cat >>confdefs.h <<_ACEOF
1115 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1116 _ACEOF
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_STRING "$PACKAGE_STRING"
1121 _ACEOF
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1126 _ACEOF
1129 # Let the site file select an alternate cache file if it wants to.
1130 # Prefer explicitly selected file to automatically selected ones.
1131 if test -z "$CONFIG_SITE"; then
1132 if test "x$prefix" != xNONE; then
1133 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1134 else
1135 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1138 for ac_site_file in $CONFIG_SITE; do
1139 if test -r "$ac_site_file"; then
1140 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1141 echo "$as_me: loading site script $ac_site_file" >&6;}
1142 sed 's/^/| /' "$ac_site_file" >&5
1143 . "$ac_site_file"
1145 done
1147 if test -r "$cache_file"; then
1148 # Some versions of bash will fail to source /dev/null (special
1149 # files actually), so we avoid doing that.
1150 if test -f "$cache_file"; then
1151 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1152 echo "$as_me: loading cache $cache_file" >&6;}
1153 case $cache_file in
1154 [\\/]* | ?:[\\/]* ) . $cache_file;;
1155 *) . ./$cache_file;;
1156 esac
1158 else
1159 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1160 echo "$as_me: creating cache $cache_file" >&6;}
1161 >$cache_file
1164 # Check that the precious variables saved in the cache have kept the same
1165 # value.
1166 ac_cache_corrupted=false
1167 for ac_var in `(set) 2>&1 |
1168 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1169 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1170 eval ac_new_set=\$ac_env_${ac_var}_set
1171 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1172 eval ac_new_val="\$ac_env_${ac_var}_value"
1173 case $ac_old_set,$ac_new_set in
1174 set,)
1175 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1176 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1177 ac_cache_corrupted=: ;;
1178 ,set)
1179 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1180 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1181 ac_cache_corrupted=: ;;
1182 ,);;
1184 if test "x$ac_old_val" != "x$ac_new_val"; then
1185 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1186 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1187 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1188 echo "$as_me: former value: $ac_old_val" >&2;}
1189 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1190 echo "$as_me: current value: $ac_new_val" >&2;}
1191 ac_cache_corrupted=:
1192 fi;;
1193 esac
1194 # Pass precious variables to config.status.
1195 if test "$ac_new_set" = set; then
1196 case $ac_new_val in
1197 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1198 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1199 *) ac_arg=$ac_var=$ac_new_val ;;
1200 esac
1201 case " $ac_configure_args " in
1202 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1203 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1204 esac
1206 done
1207 if $ac_cache_corrupted; then
1208 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1209 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1210 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1211 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1212 { (exit 1); exit 1; }; }
1215 ac_ext=c
1216 ac_cpp='$CPP $CPPFLAGS'
1217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1239 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1242 test "$program_prefix" != NONE &&
1243 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1244 # Use a double $ so make ignores it.
1245 test "$program_suffix" != NONE &&
1246 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1247 # Double any \ or $. echo might interpret backslashes.
1248 # By default was `s,x,x', remove it if useless.
1249 cat <<\_ACEOF >conftest.sed
1250 s/[\\$]/&&/g;s/;s,x,x,$//
1251 _ACEOF
1252 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1253 rm conftest.sed
1256 lispdir='${datadir}/emacs/${version}/lisp'
1257 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1258 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1259 lisppath='${locallisppath}:${lispdir}'
1260 etcdir='${datadir}/emacs/${version}/etc'
1261 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1262 docdir='${datadir}/emacs/${version}/etc'
1263 gamedir=yes
1266 # Check whether --with-game-dir or --without-game-dir was given.
1267 if test "${with_game_dir+set}" = set; then
1268 withval="$with_game_dir"
1269 if test "$withval" = yes; then
1270 gamedir="${localstatedir}/games/emacs"
1271 else
1272 if test "$withval" = no; then
1273 gamedir=no
1274 else
1275 gamedir="$withval"
1281 gameuser=games
1283 # Check whether --with-game-user or --without-game-user was given.
1284 if test "${with_game_user+set}" = set; then
1285 withval="$with_game_user"
1286 gameuser="$withval"
1290 # Check whether --with-gcc or --without-gcc was given.
1291 if test "${with_gcc+set}" = set; then
1292 withval="$with_gcc"
1296 # Check whether --with-pop or --without-pop was given.
1297 if test "${with_pop+set}" = set; then
1298 withval="$with_pop"
1299 if test "$withval" = yes; then
1300 cat >>confdefs.h <<\_ACEOF
1301 #define MAIL_USE_POP 1
1302 _ACEOF
1304 else :
1306 else
1307 cat >>confdefs.h <<\_ACEOF
1308 #define MAIL_USE_POP 1
1309 _ACEOF
1314 # Check whether --with-kerberos or --without-kerberos was given.
1315 if test "${with_kerberos+set}" = set; then
1316 withval="$with_kerberos"
1317 cat >>confdefs.h <<\_ACEOF
1318 #define KERBEROS 1
1319 _ACEOF
1324 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1325 if test "${with_kerberos5+set}" = set; then
1326 withval="$with_kerberos5"
1327 if test "${with_kerberos5+set}" = set; then
1328 if test "${with_kerberos+set}" != set; then
1329 with_kerberos=yes
1330 cat >>confdefs.h <<\_ACEOF
1331 #define KERBEROS 1
1332 _ACEOF
1337 cat >>confdefs.h <<\_ACEOF
1338 #define KERBEROS5 1
1339 _ACEOF
1343 # Check whether --with-hesiod or --without-hesiod was given.
1344 if test "${with_hesiod+set}" = set; then
1345 withval="$with_hesiod"
1347 cat >>confdefs.h <<\_ACEOF
1348 #define HESIOD 1
1349 _ACEOF
1354 # Check whether --with-sound or --without-sound was given.
1355 if test "${with_sound+set}" = set; then
1356 withval="$with_sound"
1361 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1362 if test "${with_x_toolkit+set}" = set; then
1363 withval="$with_x_toolkit"
1364 case "${withval}" in
1365 y | ye | yes ) val=athena ;;
1366 n | no ) val=no ;;
1367 l | lu | luc | luci | lucid ) val=lucid ;;
1368 a | at | ath | athe | athen | athena ) val=athena ;;
1369 m | mo | mot | moti | motif ) val=motif ;;
1371 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1372 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1373 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1374 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1375 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1376 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1377 { (exit 1); exit 1; }; }
1379 esac
1380 with_x_toolkit=$val
1384 # Check whether --with-xpm or --without-xpm was given.
1385 if test "${with_xpm+set}" = set; then
1386 withval="$with_xpm"
1390 # Check whether --with-jpeg or --without-jpeg was given.
1391 if test "${with_jpeg+set}" = set; then
1392 withval="$with_jpeg"
1396 # Check whether --with-tiff or --without-tiff was given.
1397 if test "${with_tiff+set}" = set; then
1398 withval="$with_tiff"
1402 # Check whether --with-gif or --without-gif was given.
1403 if test "${with_gif+set}" = set; then
1404 withval="$with_gif"
1408 # Check whether --with-png or --without-png was given.
1409 if test "${with_png+set}" = set; then
1410 withval="$with_png"
1414 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1415 if test "${with_toolkit_scroll_bars+set}" = set; then
1416 withval="$with_toolkit_scroll_bars"
1420 # Check whether --with-xim or --without-xim was given.
1421 if test "${with_xim+set}" = set; then
1422 withval="$with_xim"
1426 # Check whether --with-carbon or --without-carbon was given.
1427 if test "${with_carbon+set}" = set; then
1428 withval="$with_carbon"
1432 #### Make srcdir absolute, if it isn't already. It's important to
1433 #### avoid running the path through pwd unnecessarily, since pwd can
1434 #### give you automounter prefixes, which can go away. We do all this
1435 #### so Emacs can find its files when run uninstalled.
1436 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1437 unset CDPATH
1438 case "${srcdir}" in
1439 /* ) ;;
1441 ## We may be able to use the $PWD environment variable to make this
1442 ## absolute. But sometimes PWD is inaccurate.
1443 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1444 ## but that tested only for a well-formed and valid PWD,
1445 ## it did not object when PWD was well-formed and valid but just wrong.
1446 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1447 then
1448 srcdir="$PWD"
1449 else
1450 srcdir="`(cd ${srcdir}; pwd)`"
1453 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1454 esac
1456 #### Check if the source directory already has a configured system in it.
1457 if test `pwd` != `(cd ${srcdir} && pwd)` \
1458 && test -f "${srcdir}/src/config.h" ; then
1459 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1460 as a build directory right now; it has been configured in its own
1461 right. To configure in another directory as well, you MUST
1462 use GNU make. If you do not have GNU make, then you must
1463 now do \`make distclean' in ${srcdir},
1464 and then run $0 again." >&5
1465 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1466 as a build directory right now; it has been configured in its own
1467 right. To configure in another directory as well, you MUST
1468 use GNU make. If you do not have GNU make, then you must
1469 now do \`make distclean' in ${srcdir},
1470 and then run $0 again." >&2;}
1472 extrasub='/^VPATH[ ]*=/c\
1473 vpath %.c $(srcdir)\
1474 vpath %.h $(srcdir)\
1475 vpath %.y $(srcdir)\
1476 vpath %.l $(srcdir)\
1477 vpath %.s $(srcdir)\
1478 vpath %.in $(srcdir)\
1479 vpath %.texi $(srcdir)'
1482 #### Given the configuration name, set machfile and opsysfile to the
1483 #### names of the m/*.h and s/*.h files we should use.
1485 ### Canonicalize the configuration name.
1487 ac_aux_dir=
1488 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1489 if test -f $ac_dir/install-sh; then
1490 ac_aux_dir=$ac_dir
1491 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 break
1493 elif test -f $ac_dir/install.sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 break
1497 elif test -f $ac_dir/shtool; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/shtool install -c"
1500 break
1502 done
1503 if test -z "$ac_aux_dir"; then
1504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1505 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1506 { (exit 1); exit 1; }; }
1508 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512 # Make sure we can run config.sub.
1513 $ac_config_sub sun4 >/dev/null 2>&1 ||
1514 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1515 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1516 { (exit 1); exit 1; }; }
1518 echo "$as_me:$LINENO: checking build system type" >&5
1519 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1520 if test "${ac_cv_build+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 ac_cv_build_alias=$build_alias
1524 test -z "$ac_cv_build_alias" &&
1525 ac_cv_build_alias=`$ac_config_guess`
1526 test -z "$ac_cv_build_alias" &&
1527 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1528 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1529 { (exit 1); exit 1; }; }
1530 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1531 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1532 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1533 { (exit 1); exit 1; }; }
1536 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1537 echo "${ECHO_T}$ac_cv_build" >&6
1538 build=$ac_cv_build
1539 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1540 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1541 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544 echo "$as_me:$LINENO: checking host system type" >&5
1545 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1546 if test "${ac_cv_host+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549 ac_cv_host_alias=$host_alias
1550 test -z "$ac_cv_host_alias" &&
1551 ac_cv_host_alias=$ac_cv_build_alias
1552 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1553 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1554 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1555 { (exit 1); exit 1; }; }
1558 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1559 echo "${ECHO_T}$ac_cv_host" >&6
1560 host=$ac_cv_host
1561 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1562 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1563 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1566 canonical=$host
1567 configuration=${host_alias-$host}
1570 ### If you add support for a new configuration, add code to this
1571 ### switch statement to recognize your configuration name and select
1572 ### the appropriate operating system and machine description files.
1574 ### You would hope that you could choose an m/*.h file pretty much
1575 ### based on the machine portion of the configuration name, and an s-
1576 ### file based on the operating system portion. However, it turns out
1577 ### that each m/*.h file is pretty manufacturer-specific - for
1578 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1579 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1580 ### machines. So we basically have to have a special case for each
1581 ### configuration name.
1583 ### As far as handling version numbers on operating systems is
1584 ### concerned, make sure things will fail in a fixable way. If
1585 ### /etc/MACHINES doesn't say anything about version numbers, be
1586 ### prepared to handle anything reasonably. If version numbers
1587 ### matter, be sure /etc/MACHINES says something about it.
1589 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1590 ### "System V Release 4"; he writes, "The old convention encouraged
1591 ### confusion between `system' and `release' levels'."
1593 machine='' opsys='' unported=no
1594 case "${canonical}" in
1596 ## FreeBSD ports
1597 *-*-freebsd* )
1598 opsys=freebsd
1599 case "${canonical}" in
1600 alpha*-*-freebsd*) machine=alpha ;;
1601 i[3456]86-*-freebsd*) machine=intel386 ;;
1602 esac
1605 ## NetBSD ports
1606 *-*-netbsd* )
1607 opsys=netbsd
1608 case "${canonical}" in
1609 alpha*-*-netbsd*) machine=alpha ;;
1610 i[3456]86-*-netbsd*) machine=intel386 ;;
1611 m68k-*-netbsd*)
1612 # This is somewhat bogus.
1613 machine=hp9000s300 ;;
1614 powerpc-apple-netbsd*) machine=macppc ;;
1615 mips-*-netbsd*) machine=pmax ;;
1616 mipsel-*-netbsd*) machine=pmax ;;
1617 ns32k-*-netbsd*) machine=ns32000 ;;
1618 powerpc-*-netbsd*) machine=macppc ;;
1619 sparc*-*-netbsd*) machine=sparc ;;
1620 vax-*-netbsd*) machine=vax ;;
1621 arm-*-netbsd*) machine=arm ;;
1622 esac
1625 ## OpenBSD ports
1626 *-*-openbsd* )
1627 opsys=openbsd
1628 case "${canonical}" in
1629 alpha*-*-openbsd*) machine=alpha ;;
1630 i386-*-openbsd*) machine=intel386 ;;
1631 m68k-*-openbsd*) machine=hp9000s300 ;;
1632 mipsel-*-openbsd*) machine=pmax ;;
1633 ns32k-*-openbsd*) machine=ns32000 ;;
1634 sparc-*-openbsd*) machine=sparc ;;
1635 vax-*-openbsd*) machine=vax ;;
1636 esac
1639 ## Acorn RISCiX:
1640 arm-acorn-riscix1.1* )
1641 machine=acorn opsys=riscix1-1
1643 arm-acorn-riscix1.2* | arm-acorn-riscix )
1644 ## This name is riscix12 instead of riscix1.2
1645 ## to avoid a file name conflict on MSDOS.
1646 machine=acorn opsys=riscix12
1649 ## BSDI ports
1650 *-*-bsdi* )
1651 opsys=bsdi
1652 case "${canonical}" in
1653 i[345]86-*-bsdi*) machine=intel386 ;;
1654 sparc-*-bsdi*) machine=sparc ;;
1655 powerpc-*-bsdi*) machine=macppc ;;
1656 esac
1657 case "${canonical}" in
1658 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1659 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1660 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1661 *-*-bsdi3* ) opsys=bsdos3 ;;
1662 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1663 esac
1666 ## Alliant machines
1667 ## Strictly speaking, we need the version of the alliant operating
1668 ## system to choose the right machine file, but currently the
1669 ## configuration name doesn't tell us enough to choose the right
1670 ## one; we need to give alliants their own operating system name to
1671 ## do this right. When someone cares, they can help us.
1672 fx80-alliant-* )
1673 machine=alliant4 opsys=bsd4-2
1675 i860-alliant-* )
1676 machine=alliant-2800 opsys=bsd4-3
1679 ## Alpha (DEC) machines.
1680 alpha*-dec-osf* )
1681 machine=alpha opsys=osf1
1682 # This is needed to find X11R6.1 libraries for certain tests.
1683 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1684 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1685 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1686 # due to non-traditional preprocessing with the current compiler
1687 # defaults. OSF 4 can also have that compiler version, and there
1688 # seems always to have been a usable /usr/bin/cpp.
1689 NON_GNU_CPP=/usr/bin/cpp
1690 case "${canonical}" in
1691 alpha*-dec-osf[5-9]*)
1692 opsys=osf5-0 ;;
1693 esac
1696 alpha*-*-linux-gnu* )
1697 machine=alpha opsys=gnu-linux
1700 arm*-*-linux-gnu* )
1701 machine=arm opsys=gnu-linux
1704 ppc-*-linux | \
1705 powerpc-*-linux* )
1706 machine=macppc opsys=gnu-linux
1709 ## Altos 3068
1710 m68*-altos-sysv* )
1711 machine=altos opsys=usg5-2
1714 ## Amdahl UTS
1715 580-amdahl-sysv* )
1716 machine=amdahl opsys=usg5-2-2
1719 ## Apollo, Domain/OS
1720 m68*-apollo-* )
1721 machine=apollo opsys=bsd4-3
1724 ## AT&T 3b2, 3b5, 3b15, 3b20
1725 we32k-att-sysv* )
1726 machine=att3b opsys=usg5-2-2
1729 ## AT&T 3b1 - The Mighty Unix PC!
1730 m68*-att-sysv* )
1731 machine=7300 opsys=usg5-2-2
1734 ## Bull dpx20
1735 rs6000-bull-bosx* )
1736 machine=ibmrs6000 opsys=aix3-2
1739 ## Bull dpx2
1740 m68*-bull-sysv3* )
1741 machine=dpx2 opsys=usg5-3
1744 ## Bull sps7
1745 m68*-bull-sysv2* )
1746 machine=sps7 opsys=usg5-2
1749 ## CCI 5/32, 6/32 -- see "Tahoe".
1751 ## Celerity
1752 ## I don't know what configuration name to use for this; config.sub
1753 ## doesn't seem to know anything about it. Hey, Celerity users, get
1754 ## in touch with us!
1755 celerity-celerity-bsd* )
1756 machine=celerity opsys=bsd4-2
1759 ## Clipper
1760 ## What operating systems does this chip run that Emacs has been
1761 ## tested on?
1762 clipper-* )
1763 machine=clipper
1764 ## We'll use the catch-all code at the bottom to guess the
1765 ## operating system.
1768 ## Compaq Nonstop
1769 mips-compaq-nonstopux* )
1770 machine=nonstopux opsys=nonstopux
1773 ## Convex
1774 *-convex-bsd* | *-convex-convexos* )
1775 machine=convex opsys=bsd4-3
1776 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1777 NON_GNU_CPP="cc -E -P"
1780 ## Cubix QBx/386
1781 i[3456]86-cubix-sysv* )
1782 machine=intel386 opsys=usg5-3
1785 ## Cydra 5
1786 cydra*-cydrome-sysv* )
1787 machine=cydra5 opsys=usg5-3
1790 ## Data General AViiON Machines
1791 ## DG changed naming conventions with the release of 5.4.4.10, they
1792 ## dropped the initial 5.4 but left the intervening R. Because of the
1793 ## R this shouldn't conflict with older versions of the OS (which I
1794 ## think were named like dgux4.*). In addition, DG new AViiONs series
1795 ## uses either Motorola M88k or Intel Pentium CPUs.
1796 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1797 machine=aviion opsys=dgux4
1799 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1800 ## This name is dgux5-4-3 instead of dgux5-4r3
1801 ## to avoid a file name conflict on MSDOS.
1802 machine=aviion opsys=dgux5-4-3
1804 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1805 machine=aviion opsys=dgux5-4r2
1807 m88k-dg-dgux* )
1808 machine=aviion opsys=dgux
1811 ## Data General AViiON Intel (x86) Machines
1812 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1813 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1814 i[345]86-dg-dguxR4* )
1815 machine=aviion-intel opsys=dgux4
1818 ## DECstations
1819 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1820 machine=pmax opsys=bsd4-2
1822 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1823 machine=pmax opsys=bsd4-3
1825 mips-dec-ultrix* )
1826 machine=pmax opsys=ultrix4-3
1828 mips-dec-osf* )
1829 machine=pmax opsys=osf1
1831 mips-dec-mach_bsd4.3* )
1832 machine=pmax opsys=mach-bsd4-3
1835 ## Motorola Delta machines
1836 m68k-motorola-sysv* | m68000-motorola-sysv* )
1837 machine=delta opsys=usg5-3
1838 if test -z "`type gnucc | grep 'not found'`"
1839 then
1840 if test -s /etc/167config
1841 then CC="gnucc -m68040"
1842 else CC="gnucc -m68881"
1844 else
1845 if test -z "`type gcc | grep 'not found'`"
1846 then CC=gcc
1847 else CC=cc
1851 m88k-motorola-sysv4* )
1852 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1853 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1854 # I hope there are not other 4.0 versions for this machine
1855 # which really need usg5-4 instead.
1856 machine=delta88k opsys=usg5-4-2
1858 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1859 machine=delta88k opsys=usg5-3
1862 ## Dual machines
1863 m68*-dual-sysv* )
1864 machine=dual opsys=usg5-2
1866 m68*-dual-uniplus* )
1867 machine=dual opsys=unipl5-2
1870 ## Elxsi 6400
1871 elxsi-elxsi-sysv* )
1872 machine=elxsi opsys=usg5-2
1875 ## Encore machines
1876 ns16k-encore-bsd* )
1877 machine=ns16000 opsys=umax
1880 ## The GEC 63 - apparently, this port isn't really finished yet.
1881 # I'm sure we finished off the last of the machines, though. -- fx
1883 ## Gould Power Node and NP1
1884 pn-gould-bsd4.2* )
1885 machine=gould opsys=bsd4-2
1887 pn-gould-bsd4.3* )
1888 machine=gould opsys=bsd4-3
1890 np1-gould-bsd* )
1891 machine=gould-np1 opsys=bsd4-3
1894 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1895 ## as far as Emacs is concerned).
1896 m88k-harris-cxux* )
1897 # Build needs to be different on 7.0 and later releases
1898 case "`uname -r`" in
1899 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1900 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1901 esac
1902 NON_GNU_CPP="/lib/cpp"
1904 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1905 m68k-harris-cxux* )
1906 machine=nh3000 opsys=cxux
1908 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1909 powerpc-harris-powerunix )
1910 machine=nh6000 opsys=powerunix
1911 NON_GNU_CPP="cc -Xo -E -P"
1913 ## SR2001/SR2201 running HI-UX/MPP
1914 hppa1.1-hitachi-hiuxmpp* )
1915 machine=sr2k opsys=hiuxmpp
1917 hppa1.1-hitachi-hiuxwe2* )
1918 machine=sr2k opsys=hiuxwe2
1920 ## Honeywell XPS100
1921 xps*-honeywell-sysv* )
1922 machine=xps100 opsys=usg5-2
1925 ## HP 9000 series 200 or 300
1926 m68*-hp-bsd* )
1927 machine=hp9000s300 opsys=bsd4-3
1929 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1930 m68*-hp-hpux* )
1931 case "`uname -r`" in
1932 ## Someone's system reports A.B8.05 for this.
1933 ## I wonder what other possibilities there are.
1934 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1935 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1936 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1937 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1938 *) machine=hp9000s300 opsys=hpux ;;
1939 esac
1942 ## HP 9000 series 700 and 800, running HP/UX
1943 hppa*-hp-hpux7* )
1944 machine=hp800 opsys=hpux
1946 hppa*-hp-hpux8* )
1947 machine=hp800 opsys=hpux8
1949 hppa*-hp-hpux9shr* )
1950 machine=hp800 opsys=hpux9shr
1952 hppa*-hp-hpux9* )
1953 machine=hp800 opsys=hpux9
1955 hppa*-hp-hpux10* )
1956 machine=hp800 opsys=hpux10
1958 hppa*-hp-hpux1[1-9]* )
1959 machine=hp800 opsys=hpux11
1962 hppa*-*-linux-gnu* )
1963 machine=hp800 opsys=gnu-linux
1966 ## HP 9000 series 700 and 800, running HP/UX
1967 hppa*-hp-hpux* )
1968 ## Cross-compilation? Nah!
1969 case "`uname -r`" in
1970 ## Someone's system reports A.B8.05 for this.
1971 ## I wonder what other possibilities there are.
1972 *.B8.* ) machine=hp800 opsys=hpux8 ;;
1973 *.08.* ) machine=hp800 opsys=hpux8 ;;
1974 *.09.* ) machine=hp800 opsys=hpux9 ;;
1975 *) machine=hp800 opsys=hpux10 ;;
1976 esac
1978 hppa*-*-nextstep* )
1979 machine=hp800 opsys=nextstep
1982 ## Orion machines
1983 orion-orion-bsd* )
1984 machine=orion opsys=bsd4-2
1986 clipper-orion-bsd* )
1987 machine=orion105 opsys=bsd4-2
1990 ## IBM machines
1991 i[3456]86-ibm-aix1.1* )
1992 machine=ibmps2-aix opsys=usg5-2-2
1994 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
1995 machine=ibmps2-aix opsys=usg5-3
1997 i370-ibm-aix*)
1998 machine=ibm370aix opsys=usg5-3
2000 s390-*-linux-gnu)
2001 machine=ibms390 opsys=gnu-linux
2003 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2004 machine=ibmrs6000 opsys=aix3-1
2006 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2007 machine=ibmrs6000 opsys=aix3-2-5
2009 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2010 machine=ibmrs6000 opsys=aix4-1
2012 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2013 machine=ibmrs6000 opsys=aix4-2
2015 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
2016 machine=ibmrs6000 opsys=aix4-2
2018 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2019 machine=ibmrs6000 opsys=aix4
2021 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2022 machine=ibmrs6000 opsys=aix4-1
2024 rs6000-ibm-aix* | powerpc-ibm-aix* )
2025 machine=ibmrs6000 opsys=aix3-2
2027 romp-ibm-bsd4.3* )
2028 machine=ibmrt opsys=bsd4-3
2030 romp-ibm-bsd4.2* )
2031 machine=ibmrt opsys=bsd4-2
2033 romp-ibm-aos4.3* )
2034 machine=ibmrt opsys=bsd4-3
2036 romp-ibm-aos4.2* )
2037 machine=ibmrt opsys=bsd4-2
2039 romp-ibm-aos* )
2040 machine=ibmrt opsys=bsd4-3
2042 romp-ibm-bsd* )
2043 machine=ibmrt opsys=bsd4-3
2045 romp-ibm-aix* )
2046 machine=ibmrt-aix opsys=usg5-2-2
2049 ## Integrated Solutions `Optimum V'
2050 m68*-isi-bsd4.2* )
2051 machine=isi-ov opsys=bsd4-2
2053 m68*-isi-bsd4.3* )
2054 machine=isi-ov opsys=bsd4-3
2057 ## Intel 386 machines where we do care about the manufacturer
2058 i[3456]86-intsys-sysv* )
2059 machine=is386 opsys=usg5-2-2
2062 ## Prime EXL
2063 i[3456]86-prime-sysv* )
2064 machine=i386 opsys=usg5-3
2067 ## Sequent Symmetry running Dynix
2068 i[3456]86-sequent-bsd* )
2069 machine=symmetry opsys=bsd4-3
2072 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2073 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2074 machine=sequent-ptx opsys=ptx4
2075 NON_GNU_CPP=/lib/cpp
2078 ## Sequent Symmetry running DYNIX/ptx
2079 ## Use the old cpp rather than the newer ANSI one.
2080 i[3456]86-sequent-ptx* )
2081 machine=sequent-ptx opsys=ptx
2082 NON_GNU_CPP="/lib/cpp"
2085 ## ncr machine running svr4.3.
2086 i[3456]86-ncr-sysv4.3 )
2087 machine=ncr386 opsys=usg5-4-3
2090 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2091 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2092 i[3456]86-ncr-sysv* )
2093 machine=ncr386 opsys=usg5-4-2
2096 ## Intel Paragon OSF/1
2097 i860-intel-osf1* )
2098 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2101 ## Intel 860
2102 i860-*-sysv4* )
2103 machine=i860 opsys=usg5-4
2104 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2105 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2108 ## Macintosh PowerPC
2109 powerpc*-*-linux-gnu* )
2110 machine=macppc opsys=gnu-linux
2113 ## Masscomp machines
2114 m68*-masscomp-rtu* )
2115 machine=masscomp opsys=rtu
2118 ## Megatest machines
2119 m68*-megatest-bsd* )
2120 machine=mega68 opsys=bsd4-2
2123 ## Workstations sold by MIPS
2124 ## This is not necessarily all workstations using the MIPS processor -
2125 ## Irises are produced by SGI, and DECstations by DEC.
2127 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2128 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2129 ## it gives for choosing between the alternatives seems to be "Use
2130 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2131 ## the BSD world." I'll assume that these are instructions for
2132 ## handling two odd situations, and that every other situation
2133 ## should use mips.h and usg5-2-2, they being listed first.
2134 mips-mips-usg* )
2135 machine=mips4
2136 ## Fall through to the general code at the bottom to decide on the OS.
2138 mips-mips-riscos4* )
2139 machine=mips4 opsys=bsd4-3
2140 NON_GNU_CC="cc -systype bsd43"
2141 NON_GNU_CPP="cc -systype bsd43 -E"
2143 mips-mips-riscos5* )
2144 machine=mips4 opsys=riscos5
2145 NON_GNU_CC="cc -systype bsd43"
2146 NON_GNU_CPP="cc -systype bsd43 -E"
2148 mips-mips-bsd* )
2149 machine=mips opsys=bsd4-3
2151 mips-mips-* )
2152 machine=mips opsys=usg5-2-2
2155 ## NeXT
2156 m68*-next-* | m68k-*-nextstep* )
2157 machine=m68k opsys=nextstep
2160 ## The complete machine from National Semiconductor
2161 ns32k-ns-genix* )
2162 machine=ns32000 opsys=usg5-2
2165 ## NCR machines
2166 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2167 machine=tower32 opsys=usg5-2-2
2169 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2170 machine=tower32v3 opsys=usg5-3
2173 ## NEC EWS4800
2174 mips-nec-sysv4*)
2175 machine=ews4800 opsys=ux4800
2178 ## Nixdorf Targon 31
2179 m68*-nixdorf-sysv* )
2180 machine=targon31 opsys=usg5-2-2
2183 ## Nu (TI or LMI)
2184 m68*-nu-sysv* )
2185 machine=nu opsys=usg5-2
2188 ## Plexus
2189 m68*-plexus-sysv* )
2190 machine=plexus opsys=usg5-2
2193 ## PowerPC reference platform
2194 powerpcle-*-solaris2* )
2195 machine=prep
2196 opsys=sol2-5
2199 ## Pyramid machines
2200 ## I don't really have any idea what sort of processor the Pyramid has,
2201 ## so I'm assuming it is its own architecture.
2202 pyramid-pyramid-bsd* )
2203 machine=pyramid opsys=bsd4-2
2206 ## Sequent Balance
2207 ns32k-sequent-bsd4.2* )
2208 machine=sequent opsys=bsd4-2
2210 ns32k-sequent-bsd4.3* )
2211 machine=sequent opsys=bsd4-3
2214 ## Siemens Nixdorf
2215 mips-siemens-sysv* | mips-sni-sysv*)
2216 machine=mips-siemens opsys=usg5-4
2217 NON_GNU_CC=/usr/ccs/bin/cc
2218 NON_GNU_CPP=/usr/ccs/lib/cpp
2221 ## Silicon Graphics machines
2222 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2223 m68*-sgi-iris3.5* )
2224 machine=irist opsys=iris3-5
2226 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2227 machine=irist opsys=iris3-6
2229 ## Iris 4D
2230 mips-sgi-irix3* )
2231 machine=iris4d opsys=irix3-3
2233 mips-sgi-irix4* )
2234 machine=iris4d opsys=irix4-0
2236 mips-sgi-irix6.5 )
2237 machine=iris4d opsys=irix6-5
2238 # Without defining _LANGUAGE_C, things get masked out in the headers
2239 # so that, for instance, grepping for `free' in stdlib.h fails and
2240 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2241 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2242 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2244 mips-sgi-irix6* )
2245 machine=iris4d opsys=irix6-0
2246 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2247 # but presumably it does no harm.
2248 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2249 # -32 probably isn't necessary in later v.6s -- anyone know which?
2250 NON_GCC_TEST_OPTIONS=-32
2252 mips-sgi-irix5.[01]* )
2253 machine=iris4d opsys=irix5-0
2255 mips-sgi-irix5* | mips-sgi-irix* )
2256 machine=iris4d opsys=irix5-2
2259 ## SONY machines
2260 m68*-sony-bsd4.2* )
2261 machine=news opsys=bsd4-2
2263 m68*-sony-bsd4.3* )
2264 machine=news opsys=bsd4-3
2266 m68*-sony-newsos3* | m68*-sony-news3*)
2267 machine=news opsys=bsd4-3
2269 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2270 machine=news-risc opsys=bsd4-3
2272 mips-sony-newsos6* )
2273 machine=news-r6 opsys=newsos6
2275 mips-sony-news* )
2276 machine=news-risc opsys=newsos5
2279 ## Stride
2280 m68*-stride-sysv* )
2281 machine=stride opsys=usg5-2
2284 ## Suns
2285 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2286 machine=sparc opsys=gnu-linux
2289 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2290 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2291 | rs6000-*-solaris2*)
2292 case "${canonical}" in
2293 m68*-sunos1* ) machine=sun1 ;;
2294 m68*-sunos2* ) machine=sun2 ;;
2295 m68* ) machine=sun3 ;;
2296 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2297 i[3456]86-*-* ) machine=intel386 ;;
2298 powerpcle* ) machine=powerpcle ;;
2299 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2300 sparc* ) machine=sparc ;;
2301 * ) unported=yes ;;
2302 esac
2303 case "${canonical}" in
2304 ## The Sun386 didn't get past 4.0.
2305 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2306 *-sunos4.0* ) opsys=sunos4-0 ;;
2307 *-sunos4.1.[3-9]*noshare )
2308 ## This name is sunos413 instead of sunos4-1-3
2309 ## to avoid a file name conflict on MSDOS.
2310 opsys=sunos413
2311 NON_GNU_CPP=/usr/lib/cpp
2312 NON_GCC_TEST_OPTIONS=-Bstatic
2313 GCC_TEST_OPTIONS=-static
2315 *-sunos4.1.[3-9]* | *-sunos4shr*)
2316 opsys=sunos4shr
2317 NON_GNU_CPP=/usr/lib/cpp
2319 *-sunos4* | *-sunos )
2320 opsys=sunos4-1
2321 NON_GCC_TEST_OPTIONS=-Bstatic
2322 GCC_TEST_OPTIONS=-static
2324 *-sunos5.3* | *-solaris2.3* )
2325 opsys=sol2-3
2326 NON_GNU_CPP=/usr/ccs/lib/cpp
2328 *-sunos5.4* | *-solaris2.4* )
2329 opsys=sol2-4
2330 NON_GNU_CPP=/usr/ccs/lib/cpp
2331 RANLIB="ar -ts"
2333 *-sunos5.5* | *-solaris2.5* )
2334 opsys=sol2-5
2335 NON_GNU_CPP=/usr/ccs/lib/cpp
2336 RANLIB="ar -ts"
2338 *-sunos5* | *-solaris* )
2339 opsys=sol2-5
2340 NON_GNU_CPP=/usr/ccs/lib/cpp
2342 * ) opsys=bsd4-2 ;;
2343 esac
2344 ## Watch out for a compiler that we know will not work.
2345 case "${canonical}" in
2346 *-solaris* | *-sunos5* )
2347 if [ "x$CC" = x/usr/ucb/cc ]; then
2348 ## /usr/ucb/cc doesn't work;
2349 ## we should find some other compiler that does work.
2350 unset CC
2353 *) ;;
2354 esac
2356 sparc-*-nextstep* )
2357 machine=sparc opsys=nextstep
2360 ## Tadpole 68k
2361 m68*-tadpole-sysv* )
2362 machine=tad68k opsys=usg5-3
2365 ## Tahoe machines
2366 tahoe-tahoe-bsd4.2* )
2367 machine=tahoe opsys=bsd4-2
2369 tahoe-tahoe-bsd4.3* )
2370 machine=tahoe opsys=bsd4-3
2373 ## Tandem Integrity S2
2374 mips-tandem-sysv* )
2375 machine=tandem-s2 opsys=usg5-3
2378 ## Tektronix XD88
2379 m88k-tektronix-sysv3* )
2380 machine=tekxd88 opsys=usg5-3
2383 ## Tektronix 16000 box (6130?)
2384 ns16k-tektronix-bsd* )
2385 machine=ns16000 opsys=bsd4-2
2387 ## Tektronix 4300
2388 ## src/m/tek4300.h hints that this is a m68k machine.
2389 m68*-tektronix-bsd* )
2390 machine=tek4300 opsys=bsd4-3
2393 ## Titan P2 or P3
2394 ## We seem to have lost the machine-description file titan.h!
2395 titan-titan-sysv* )
2396 machine=titan opsys=usg5-3
2399 ## Ustation E30 (SS5E)
2400 m68*-unisys-uniplus* )
2401 machine=ustation opsystem=unipl5-2
2404 ## Vaxen.
2405 vax-dec-* )
2406 machine=vax
2407 case "${canonical}" in
2408 *-bsd4.1* ) opsys=bsd4-1 ;;
2409 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2410 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2411 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2412 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2413 *-vms* ) opsys=vms ;;
2414 * ) unported=yes
2415 esac
2418 ## Whitechapel MG1
2419 ns16k-whitechapel-* )
2420 machine=mg1
2421 ## We don't know what sort of OS runs on these; we'll let the
2422 ## operating system guessing code below try.
2425 ## Wicat
2426 m68*-wicat-sysv* )
2427 machine=wicat opsys=usg5-2
2430 ## IA-64
2431 ia64*-*-linux* )
2432 machine=ia64 opsys=gnu-linux
2435 ## Intel 386 machines where we don't care about the manufacturer
2436 i[3456]86-*-* )
2437 machine=intel386
2438 case "${canonical}" in
2439 *-lynxos* ) opsys=lynxos ;;
2440 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2441 *-isc2.2* ) opsys=isc2-2 ;;
2442 *-isc4.0* ) opsys=isc4-0 ;;
2443 *-isc4.* ) opsys=isc4-1
2444 GCC_TEST_OPTIONS=-posix
2445 NON_GCC_TEST_OPTIONS=-Xp
2447 *-isc* ) opsys=isc3-0 ;;
2448 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2449 *-esix* ) opsys=esix ;;
2450 *-xenix* ) opsys=xenix ;;
2451 *-linux-gnu* ) opsys=gnu-linux ;;
2452 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2453 *-sco3.2v5* ) opsys=sco5
2454 NON_GNU_CPP=/lib/cpp
2455 # Prevent -belf from being passed to $CPP.
2456 # /lib/cpp does not accept it.
2457 OVERRIDE_CPPFLAGS=" "
2459 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2460 *-386bsd* ) opsys=386bsd ;;
2461 *-nextstep* ) opsys=nextstep ;;
2462 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2463 esac
2466 ## m68k Linux-based GNU system
2467 m68k-*-linux-gnu* )
2468 machine=m68k opsys=gnu-linux
2471 ## Mips Linux-based GNU system
2472 mips-*-linux-gnu* )
2473 machine=mips opsys=gnu-linux
2476 ## UXP/DS
2477 sparc-fujitsu-sysv4* )
2478 machine=sparc opsys=uxpds
2479 NON_GNU_CPP=/usr/ccs/lib/cpp
2480 RANLIB="ar -ts"
2483 ## UXP/V
2484 f301-fujitsu-uxpv4.1)
2485 machine=f301 opsys=uxpv
2488 ## Darwin / Mac OS X
2489 powerpc-apple-darwin* )
2490 machine=powermac opsys=darwin
2491 # Define CPP as follows to make autoconf work correctly.
2492 CPP="cc -E -traditional-cpp"
2496 unported=yes
2498 esac
2500 ### If the code above didn't choose an operating system, just choose
2501 ### an operating system based on the configuration name. You really
2502 ### only want to use this when you have no idea what the right
2503 ### operating system is; if you know what operating systems a machine
2504 ### runs, it's cleaner to make it explicit in the case statement
2505 ### above.
2506 if test x"${opsys}" = x; then
2507 case "${canonical}" in
2508 *-gnu* ) opsys=gnu ;;
2509 *-bsd4.[01] ) opsys=bsd4-1 ;;
2510 *-bsd4.2 ) opsys=bsd4-2 ;;
2511 *-bsd4.3 ) opsys=bsd4-3 ;;
2512 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2513 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2514 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2515 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2516 *-sysv4.2uw* ) opsys=unixware ;;
2517 *-sysv4.1* | *-sysvr4.1* )
2518 NON_GNU_CPP=/usr/lib/cpp
2519 opsys=usg5-4 ;;
2520 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2521 if [ x$NON_GNU_CPP = x ]; then
2522 if [ -f /usr/ccs/lib/cpp ]; then
2523 NON_GNU_CPP=/usr/ccs/lib/cpp
2524 else
2525 NON_GNU_CPP=/lib/cpp
2528 opsys=usg5-4-2 ;;
2529 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2531 unported=yes
2533 esac
2537 if test $unported = yes; then
2538 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2539 Check \`etc/MACHINES' for recognized configuration names." >&5
2540 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2541 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2542 { (exit 1); exit 1; }; }
2545 machfile="m/${machine}.h"
2546 opsysfile="s/${opsys}.h"
2549 #### Choose a compiler.
2550 test -n "$CC" && cc_specified=yes
2552 # Save the value of CFLAGS that the user specified.
2553 SPECIFIED_CFLAGS="$CFLAGS"
2555 case ${with_gcc} in
2556 "yes" ) CC="gcc" GCC=yes ;;
2557 "no" ) : ${CC=cc} ;;
2559 esac
2560 ac_ext=c
2561 ac_cpp='$CPP $CPPFLAGS'
2562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2565 if test -n "$ac_tool_prefix"; then
2566 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2567 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2568 echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2570 if test "${ac_cv_prog_CC+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573 if test -n "$CC"; then
2574 ac_cv_prog_CC="$CC" # Let the user override the test.
2575 else
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2583 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 break 2
2587 done
2588 done
2592 CC=$ac_cv_prog_CC
2593 if test -n "$CC"; then
2594 echo "$as_me:$LINENO: result: $CC" >&5
2595 echo "${ECHO_T}$CC" >&6
2596 else
2597 echo "$as_me:$LINENO: result: no" >&5
2598 echo "${ECHO_T}no" >&6
2602 if test -z "$ac_cv_prog_CC"; then
2603 ac_ct_CC=$CC
2604 # Extract the first word of "gcc", so it can be a program name with args.
2605 set dummy gcc; ac_word=$2
2606 echo "$as_me:$LINENO: checking for $ac_word" >&5
2607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611 if test -n "$ac_ct_CC"; then
2612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2621 ac_cv_prog_ac_ct_CC="gcc"
2622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 break 2
2625 done
2626 done
2630 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2631 if test -n "$ac_ct_CC"; then
2632 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2633 echo "${ECHO_T}$ac_ct_CC" >&6
2634 else
2635 echo "$as_me:$LINENO: result: no" >&5
2636 echo "${ECHO_T}no" >&6
2639 CC=$ac_ct_CC
2640 else
2641 CC="$ac_cv_prog_CC"
2644 if test -z "$CC"; then
2645 if test -n "$ac_tool_prefix"; then
2646 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2647 set dummy ${ac_tool_prefix}cc; ac_word=$2
2648 echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2650 if test "${ac_cv_prog_CC+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653 if test -n "$CC"; then
2654 ac_cv_prog_CC="$CC" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663 ac_cv_prog_CC="${ac_tool_prefix}cc"
2664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2667 done
2668 done
2672 CC=$ac_cv_prog_CC
2673 if test -n "$CC"; then
2674 echo "$as_me:$LINENO: result: $CC" >&5
2675 echo "${ECHO_T}$CC" >&6
2676 else
2677 echo "$as_me:$LINENO: result: no" >&5
2678 echo "${ECHO_T}no" >&6
2682 if test -z "$ac_cv_prog_CC"; then
2683 ac_ct_CC=$CC
2684 # Extract the first word of "cc", so it can be a program name with args.
2685 set dummy cc; ac_word=$2
2686 echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691 if test -n "$ac_ct_CC"; then
2692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2701 ac_cv_prog_ac_ct_CC="cc"
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2705 done
2706 done
2710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2711 if test -n "$ac_ct_CC"; then
2712 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2713 echo "${ECHO_T}$ac_ct_CC" >&6
2714 else
2715 echo "$as_me:$LINENO: result: no" >&5
2716 echo "${ECHO_T}no" >&6
2719 CC=$ac_ct_CC
2720 else
2721 CC="$ac_cv_prog_CC"
2725 if test -z "$CC"; then
2726 # Extract the first word of "cc", so it can be a program name with args.
2727 set dummy cc; ac_word=$2
2728 echo "$as_me:$LINENO: checking for $ac_word" >&5
2729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2730 if test "${ac_cv_prog_CC+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733 if test -n "$CC"; then
2734 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 else
2736 ac_prog_rejected=no
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2745 ac_prog_rejected=yes
2746 continue
2748 ac_cv_prog_CC="cc"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2752 done
2753 done
2755 if test $ac_prog_rejected = yes; then
2756 # We found a bogon in the path, so make sure we never use it.
2757 set dummy $ac_cv_prog_CC
2758 shift
2759 if test $# != 0; then
2760 # We chose a different compiler from the bogus one.
2761 # However, it has the same basename, so the bogon will be chosen
2762 # first if we set CC to just the basename; use the full file name.
2763 shift
2764 set dummy "$as_dir/$ac_word" ${1+"$@"}
2765 shift
2766 ac_cv_prog_CC="$@"
2771 CC=$ac_cv_prog_CC
2772 if test -n "$CC"; then
2773 echo "$as_me:$LINENO: result: $CC" >&5
2774 echo "${ECHO_T}$CC" >&6
2775 else
2776 echo "$as_me:$LINENO: result: no" >&5
2777 echo "${ECHO_T}no" >&6
2781 if test -z "$CC"; then
2782 if test -n "$ac_tool_prefix"; then
2783 for ac_prog in cl
2785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787 echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_prog_CC+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792 if test -n "$CC"; then
2793 ac_cv_prog_CC="$CC" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2806 done
2807 done
2811 CC=$ac_cv_prog_CC
2812 if test -n "$CC"; then
2813 echo "$as_me:$LINENO: result: $CC" >&5
2814 echo "${ECHO_T}$CC" >&6
2815 else
2816 echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6
2820 test -n "$CC" && break
2821 done
2823 if test -z "$CC"; then
2824 ac_ct_CC=$CC
2825 for ac_prog in cl
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy $ac_prog; ac_word=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834 if test -n "$ac_ct_CC"; then
2835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_ac_ct_CC="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2848 done
2849 done
2853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2854 if test -n "$ac_ct_CC"; then
2855 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2856 echo "${ECHO_T}$ac_ct_CC" >&6
2857 else
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2862 test -n "$ac_ct_CC" && break
2863 done
2865 CC=$ac_ct_CC
2871 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2872 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2873 { (exit 1); exit 1; }; }
2875 # Provide some information about the compiler.
2876 echo "$as_me:$LINENO:" \
2877 "checking for C compiler version" >&5
2878 ac_compiler=`set X $ac_compile; echo $2`
2879 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2880 (eval $ac_compiler --version </dev/null >&5) 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }
2884 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2885 (eval $ac_compiler -v </dev/null >&5) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }
2889 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2890 (eval $ac_compiler -V </dev/null >&5) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2895 cat >conftest.$ac_ext <<_ACEOF
2896 #line $LINENO "configure"
2897 #include "confdefs.h"
2899 #ifdef F77_DUMMY_MAIN
2900 # ifdef __cplusplus
2901 extern "C"
2902 # endif
2903 int F77_DUMMY_MAIN() { return 1; }
2904 #endif
2906 main ()
2910 return 0;
2912 _ACEOF
2913 ac_clean_files_save=$ac_clean_files
2914 ac_clean_files="$ac_clean_files a.out a.exe"
2915 # Try to create an executable without -o first, disregard a.out.
2916 # It will help us diagnose broken compilers, and finding out an intuition
2917 # of exeext.
2918 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2919 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2920 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2921 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2922 (eval $ac_link_default) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; then
2926 # Find the output, starting from the most likely. This scheme is
2927 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2928 # resort.
2930 # Be careful to initialize this variable, since it used to be cached.
2931 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2932 ac_cv_exeext=
2933 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2934 ls a.out conftest 2>/dev/null;
2935 ls a.* conftest.* 2>/dev/null`; do
2936 case $ac_file in
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2938 a.out ) # We found the default executable, but exeext='' is most
2939 # certainly right.
2940 break;;
2941 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2942 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2943 export ac_cv_exeext
2944 break;;
2945 * ) break;;
2946 esac
2947 done
2948 else
2949 echo "$as_me: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2951 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2952 echo "$as_me: error: C compiler cannot create executables" >&2;}
2953 { (exit 77); exit 77; }; }
2956 ac_exeext=$ac_cv_exeext
2957 echo "$as_me:$LINENO: result: $ac_file" >&5
2958 echo "${ECHO_T}$ac_file" >&6
2960 # Check the compiler produces executables we can run. If not, either
2961 # the compiler is broken, or we cross compile.
2962 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2963 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2964 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2965 # If not cross compiling, check that we can run a simple program.
2966 if test "$cross_compiling" != yes; then
2967 if { ac_try='./$ac_file'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969 (eval $ac_try) 2>&5
2970 ac_status=$?
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2973 cross_compiling=no
2974 else
2975 if test "$cross_compiling" = maybe; then
2976 cross_compiling=yes
2977 else
2978 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2979 If you meant to cross compile, use \`--host'." >&5
2980 echo "$as_me: error: cannot run C compiled programs.
2981 If you meant to cross compile, use \`--host'." >&2;}
2982 { (exit 1); exit 1; }; }
2986 echo "$as_me:$LINENO: result: yes" >&5
2987 echo "${ECHO_T}yes" >&6
2989 rm -f a.out a.exe conftest$ac_cv_exeext
2990 ac_clean_files=$ac_clean_files_save
2991 # Check the compiler produces executables we can run. If not, either
2992 # the compiler is broken, or we cross compile.
2993 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2994 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2995 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2996 echo "${ECHO_T}$cross_compiling" >&6
2998 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2999 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3001 (eval $ac_link) 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; then
3005 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3006 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3007 # work properly (i.e., refer to `conftest.exe'), while it won't with
3008 # `rm'.
3009 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
3010 case $ac_file in
3011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3012 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3013 export ac_cv_exeext
3014 break;;
3015 * ) break;;
3016 esac
3017 done
3018 else
3019 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
3020 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
3021 { (exit 1); exit 1; }; }
3024 rm -f conftest$ac_cv_exeext
3025 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3026 echo "${ECHO_T}$ac_cv_exeext" >&6
3028 rm -f conftest.$ac_ext
3029 EXEEXT=$ac_cv_exeext
3030 ac_exeext=$EXEEXT
3031 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3032 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3033 if test "${ac_cv_objext+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 else
3036 cat >conftest.$ac_ext <<_ACEOF
3037 #line $LINENO "configure"
3038 #include "confdefs.h"
3040 #ifdef F77_DUMMY_MAIN
3041 # ifdef __cplusplus
3042 extern "C"
3043 # endif
3044 int F77_DUMMY_MAIN() { return 1; }
3045 #endif
3047 main ()
3051 return 0;
3053 _ACEOF
3054 rm -f conftest.o conftest.obj
3055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056 (eval $ac_compile) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; then
3060 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3061 case $ac_file in
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3063 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3064 break;;
3065 esac
3066 done
3067 else
3068 echo "$as_me: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3070 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
3071 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
3072 { (exit 1); exit 1; }; }
3075 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3077 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3078 echo "${ECHO_T}$ac_cv_objext" >&6
3079 OBJEXT=$ac_cv_objext
3080 ac_objext=$OBJEXT
3081 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3082 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3083 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086 cat >conftest.$ac_ext <<_ACEOF
3087 #line $LINENO "configure"
3088 #include "confdefs.h"
3090 #ifdef F77_DUMMY_MAIN
3091 # ifdef __cplusplus
3092 extern "C"
3093 # endif
3094 int F77_DUMMY_MAIN() { return 1; }
3095 #endif
3097 main ()
3099 #ifndef __GNUC__
3100 choke me
3101 #endif
3104 return 0;
3106 _ACEOF
3107 rm -f conftest.$ac_objext
3108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3109 (eval $ac_compile) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -s conftest.$ac_objext'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 (eval $ac_try) 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
3119 ac_compiler_gnu=yes
3120 else
3121 echo "$as_me: failed program was:" >&5
3122 cat conftest.$ac_ext >&5
3123 ac_compiler_gnu=no
3125 rm -f conftest.$ac_objext conftest.$ac_ext
3126 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3129 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3130 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3131 GCC=`test $ac_compiler_gnu = yes && echo yes`
3132 ac_test_CFLAGS=${CFLAGS+set}
3133 ac_save_CFLAGS=$CFLAGS
3134 CFLAGS="-g"
3135 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3136 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3137 if test "${ac_cv_prog_cc_g+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140 cat >conftest.$ac_ext <<_ACEOF
3141 #line $LINENO "configure"
3142 #include "confdefs.h"
3144 #ifdef F77_DUMMY_MAIN
3145 # ifdef __cplusplus
3146 extern "C"
3147 # endif
3148 int F77_DUMMY_MAIN() { return 1; }
3149 #endif
3151 main ()
3155 return 0;
3157 _ACEOF
3158 rm -f conftest.$ac_objext
3159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3160 (eval $ac_compile) 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -s conftest.$ac_objext'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166 (eval $ac_try) 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 ac_cv_prog_cc_g=yes
3171 else
3172 echo "$as_me: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3174 ac_cv_prog_cc_g=no
3176 rm -f conftest.$ac_objext conftest.$ac_ext
3178 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3179 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3180 if test "$ac_test_CFLAGS" = set; then
3181 CFLAGS=$ac_save_CFLAGS
3182 elif test $ac_cv_prog_cc_g = yes; then
3183 if test "$GCC" = yes; then
3184 CFLAGS="-g -O2"
3185 else
3186 CFLAGS="-g"
3188 else
3189 if test "$GCC" = yes; then
3190 CFLAGS="-O2"
3191 else
3192 CFLAGS=
3195 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3196 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3197 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200 ac_cv_prog_cc_stdc=no
3201 ac_save_CC=$CC
3202 cat >conftest.$ac_ext <<_ACEOF
3203 #line $LINENO "configure"
3204 #include "confdefs.h"
3205 #include <stdarg.h>
3206 #include <stdio.h>
3207 #include <sys/types.h>
3208 #include <sys/stat.h>
3209 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3210 struct buf { int x; };
3211 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3212 static char *e (p, i)
3213 char **p;
3214 int i;
3216 return p[i];
3218 static char *f (char * (*g) (char **, int), char **p, ...)
3220 char *s;
3221 va_list v;
3222 va_start (v,p);
3223 s = g (p, va_arg (v,int));
3224 va_end (v);
3225 return s;
3227 int test (int i, double x);
3228 struct s1 {int (*f) (int a);};
3229 struct s2 {int (*f) (double a);};
3230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3231 int argc;
3232 char **argv;
3233 #ifdef F77_DUMMY_MAIN
3234 # ifdef __cplusplus
3235 extern "C"
3236 # endif
3237 int F77_DUMMY_MAIN() { return 1; }
3238 #endif
3240 main ()
3242 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3244 return 0;
3246 _ACEOF
3247 # Don't try gcc -ansi; that turns off useful extensions and
3248 # breaks some systems' header files.
3249 # AIX -qlanglvl=ansi
3250 # Ultrix and OSF/1 -std1
3251 # HP-UX 10.20 and later -Ae
3252 # HP-UX older versions -Aa -D_HPUX_SOURCE
3253 # SVR4 -Xc -D__EXTENSIONS__
3254 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3256 CC="$ac_save_CC $ac_arg"
3257 rm -f conftest.$ac_objext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3269 ac_cv_prog_cc_stdc=$ac_arg
3270 break
3271 else
3272 echo "$as_me: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3275 rm -f conftest.$ac_objext
3276 done
3277 rm -f conftest.$ac_ext conftest.$ac_objext
3278 CC=$ac_save_CC
3282 case "x$ac_cv_prog_cc_stdc" in
3283 x|xno)
3284 echo "$as_me:$LINENO: result: none needed" >&5
3285 echo "${ECHO_T}none needed" >&6 ;;
3287 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3288 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3289 CC="$CC $ac_cv_prog_cc_stdc" ;;
3290 esac
3292 # Some people use a C++ compiler to compile C. Since we use `exit',
3293 # in C++ we need to declare it. In case someone uses the same compiler
3294 # for both compiling C and C++ we need to have the C++ compiler decide
3295 # the declaration of exit, since it's the most demanding environment.
3296 cat >conftest.$ac_ext <<_ACEOF
3297 #ifndef __cplusplus
3298 choke me
3299 #endif
3300 _ACEOF
3301 rm -f conftest.$ac_objext
3302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3303 (eval $ac_compile) 2>&5
3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } &&
3307 { ac_try='test -s conftest.$ac_objext'
3308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309 (eval $ac_try) 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; }; then
3313 for ac_declaration in \
3315 '#include <stdlib.h>' \
3316 'extern "C" void std::exit (int) throw (); using std::exit;' \
3317 'extern "C" void std::exit (int); using std::exit;' \
3318 'extern "C" void exit (int) throw ();' \
3319 'extern "C" void exit (int);' \
3320 'void exit (int);'
3322 cat >conftest.$ac_ext <<_ACEOF
3323 #line $LINENO "configure"
3324 #include "confdefs.h"
3325 #include <stdlib.h>
3326 $ac_declaration
3327 #ifdef F77_DUMMY_MAIN
3328 # ifdef __cplusplus
3329 extern "C"
3330 # endif
3331 int F77_DUMMY_MAIN() { return 1; }
3332 #endif
3334 main ()
3336 exit (42);
3338 return 0;
3340 _ACEOF
3341 rm -f conftest.$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3354 else
3355 echo "$as_me: failed program was:" >&5
3356 cat conftest.$ac_ext >&5
3357 continue
3359 rm -f conftest.$ac_objext conftest.$ac_ext
3360 cat >conftest.$ac_ext <<_ACEOF
3361 #line $LINENO "configure"
3362 #include "confdefs.h"
3363 $ac_declaration
3364 #ifdef F77_DUMMY_MAIN
3365 # ifdef __cplusplus
3366 extern "C"
3367 # endif
3368 int F77_DUMMY_MAIN() { return 1; }
3369 #endif
3371 main ()
3373 exit (42);
3375 return 0;
3377 _ACEOF
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 (eval $ac_try) 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 break
3391 else
3392 echo "$as_me: failed program was:" >&5
3393 cat conftest.$ac_ext >&5
3395 rm -f conftest.$ac_objext conftest.$ac_ext
3396 done
3397 rm -f conftest*
3398 if test -n "$ac_declaration"; then
3399 echo '#ifdef __cplusplus' >>confdefs.h
3400 echo $ac_declaration >>confdefs.h
3401 echo '#endif' >>confdefs.h
3404 else
3405 echo "$as_me: failed program was:" >&5
3406 cat conftest.$ac_ext >&5
3408 rm -f conftest.$ac_objext conftest.$ac_ext
3409 ac_ext=c
3410 ac_cpp='$CPP $CPPFLAGS'
3411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3416 # On Suns, sometimes $CPP names a directory.
3417 if test -n "$CPP" && test -d "$CPP"; then
3418 CPP=
3421 #### Some systems specify a CPP to use unless we are using GCC.
3422 #### Now that we know whether we are using GCC, we can decide whether
3423 #### to use that one.
3424 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3425 then
3426 CPP="$NON_GNU_CPP"
3429 #### Some systems specify a CC to use unless we are using GCC.
3430 #### Now that we know whether we are using GCC, we can decide whether
3431 #### to use that one.
3432 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3433 test x$cc_specified != xyes
3434 then
3435 CC="$NON_GNU_CC"
3438 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3439 then
3440 CC="$CC $GCC_TEST_OPTIONS"
3443 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3444 then
3445 CC="$CC $NON_GCC_TEST_OPTIONS"
3448 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
3449 then
3450 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
3453 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3454 then
3455 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3458 #### Some other nice autoconf tests. If you add a test here which
3459 #### should make an entry in src/config.h, don't forget to add an
3460 #### #undef clause to src/config.h.in for autoconf to modify.
3462 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3463 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3464 LN_S=$as_ln_s
3465 if test "$LN_S" = "ln -s"; then
3466 echo "$as_me:$LINENO: result: yes" >&5
3467 echo "${ECHO_T}yes" >&6
3468 else
3469 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3470 echo "${ECHO_T}no, using $LN_S" >&6
3473 ac_ext=c
3474 ac_cpp='$CPP $CPPFLAGS'
3475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3479 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3480 # On Suns, sometimes $CPP names a directory.
3481 if test -n "$CPP" && test -d "$CPP"; then
3482 CPP=
3484 if test -z "$CPP"; then
3485 if test "${ac_cv_prog_CPP+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488 # Double quotes because CPP needs to be expanded
3489 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3491 ac_preproc_ok=false
3492 for ac_c_preproc_warn_flag in '' yes
3494 # Use a header file that comes with gcc, so configuring glibc
3495 # with a fresh cross-compiler works.
3496 # On the NeXT, cc -E runs the code through the compiler's parser,
3497 # not just through cpp. "Syntax error" is here to catch this case.
3498 cat >conftest.$ac_ext <<_ACEOF
3499 #line $LINENO "configure"
3500 #include "confdefs.h"
3501 #include <assert.h>
3502 Syntax error
3503 _ACEOF
3504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3506 ac_status=$?
3507 egrep -v '^ *\+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } >/dev/null; then
3512 if test -s conftest.err; then
3513 ac_cpp_err=$ac_c_preproc_warn_flag
3514 else
3515 ac_cpp_err=
3517 else
3518 ac_cpp_err=yes
3520 if test -z "$ac_cpp_err"; then
3522 else
3523 echo "$as_me: failed program was:" >&5
3524 cat conftest.$ac_ext >&5
3525 # Broken: fails on valid input.
3526 continue
3528 rm -f conftest.err conftest.$ac_ext
3530 # OK, works on sane cases. Now check whether non-existent headers
3531 # can be detected and how.
3532 cat >conftest.$ac_ext <<_ACEOF
3533 #line $LINENO "configure"
3534 #include "confdefs.h"
3535 #include <ac_nonexistent.h>
3536 _ACEOF
3537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3539 ac_status=$?
3540 egrep -v '^ *\+' conftest.er1 >conftest.err
3541 rm -f conftest.er1
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } >/dev/null; then
3545 if test -s conftest.err; then
3546 ac_cpp_err=$ac_c_preproc_warn_flag
3547 else
3548 ac_cpp_err=
3550 else
3551 ac_cpp_err=yes
3553 if test -z "$ac_cpp_err"; then
3554 # Broken: success on invalid input.
3555 continue
3556 else
3557 echo "$as_me: failed program was:" >&5
3558 cat conftest.$ac_ext >&5
3559 # Passes both tests.
3560 ac_preproc_ok=:
3561 break
3563 rm -f conftest.err conftest.$ac_ext
3565 done
3566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3567 rm -f conftest.err conftest.$ac_ext
3568 if $ac_preproc_ok; then
3569 break
3572 done
3573 ac_cv_prog_CPP=$CPP
3576 CPP=$ac_cv_prog_CPP
3577 else
3578 ac_cv_prog_CPP=$CPP
3580 echo "$as_me:$LINENO: result: $CPP" >&5
3581 echo "${ECHO_T}$CPP" >&6
3582 ac_preproc_ok=false
3583 for ac_c_preproc_warn_flag in '' yes
3585 # Use a header file that comes with gcc, so configuring glibc
3586 # with a fresh cross-compiler works.
3587 # On the NeXT, cc -E runs the code through the compiler's parser,
3588 # not just through cpp. "Syntax error" is here to catch this case.
3589 cat >conftest.$ac_ext <<_ACEOF
3590 #line $LINENO "configure"
3591 #include "confdefs.h"
3592 #include <assert.h>
3593 Syntax error
3594 _ACEOF
3595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3597 ac_status=$?
3598 egrep -v '^ *\+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 else
3606 ac_cpp_err=
3608 else
3609 ac_cpp_err=yes
3611 if test -z "$ac_cpp_err"; then
3613 else
3614 echo "$as_me: failed program was:" >&5
3615 cat conftest.$ac_ext >&5
3616 # Broken: fails on valid input.
3617 continue
3619 rm -f conftest.err conftest.$ac_ext
3621 # OK, works on sane cases. Now check whether non-existent headers
3622 # can be detected and how.
3623 cat >conftest.$ac_ext <<_ACEOF
3624 #line $LINENO "configure"
3625 #include "confdefs.h"
3626 #include <ac_nonexistent.h>
3627 _ACEOF
3628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3630 ac_status=$?
3631 egrep -v '^ *\+' conftest.er1 >conftest.err
3632 rm -f conftest.er1
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } >/dev/null; then
3636 if test -s conftest.err; then
3637 ac_cpp_err=$ac_c_preproc_warn_flag
3638 else
3639 ac_cpp_err=
3641 else
3642 ac_cpp_err=yes
3644 if test -z "$ac_cpp_err"; then
3645 # Broken: success on invalid input.
3646 continue
3647 else
3648 echo "$as_me: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3650 # Passes both tests.
3651 ac_preproc_ok=:
3652 break
3654 rm -f conftest.err conftest.$ac_ext
3656 done
3657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3658 rm -f conftest.err conftest.$ac_ext
3659 if $ac_preproc_ok; then
3661 else
3662 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3663 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3664 { (exit 1); exit 1; }; }
3667 ac_ext=c
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3673 # Find a good install program. We prefer a C program (faster),
3674 # so one script is as good as another. But avoid the broken or
3675 # incompatible versions:
3676 # SysV /etc/install, /usr/sbin/install
3677 # SunOS /usr/etc/install
3678 # IRIX /sbin/install
3679 # AIX /bin/install
3680 # AmigaOS /C/install, which installs bootblocks on floppy discs
3681 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3684 # ./install, which can be erroneously created by make from ./install.sh.
3685 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3686 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3687 if test -z "$INSTALL"; then
3688 if test "${ac_cv_path_install+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3694 IFS=$as_save_IFS
3695 test -z "$as_dir" && as_dir=.
3696 # Account for people who put trailing slashes in PATH elements.
3697 case $as_dir/ in
3698 ./ | .// | /cC/* | \
3699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3700 /usr/ucb/* ) ;;
3702 # OSF1 and SCO ODT 3.0 have their own names for install.
3703 # Don't use installbsd from OSF since it installs stuff as root
3704 # by default.
3705 for ac_prog in ginstall scoinst install; do
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3708 if test $ac_prog = install &&
3709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3710 # AIX install. It has an incompatible calling convention.
3712 elif test $ac_prog = install &&
3713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3714 # program-specific install script used by HP pwplus--don't use.
3716 else
3717 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3718 break 3
3721 done
3722 done
3724 esac
3725 done
3729 if test "${ac_cv_path_install+set}" = set; then
3730 INSTALL=$ac_cv_path_install
3731 else
3732 # As a last resort, use the slow shell script. We don't cache a
3733 # path for INSTALL within a source directory, because that will
3734 # break other packages using the cache if that directory is
3735 # removed, or if the path is relative.
3736 INSTALL=$ac_install_sh
3739 echo "$as_me:$LINENO: result: $INSTALL" >&5
3740 echo "${ECHO_T}$INSTALL" >&6
3742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3743 # It thinks the first close brace ends the variable substitution.
3744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3748 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3750 for ac_prog in 'bison -y' byacc
3752 # Extract the first word of "$ac_prog", so it can be a program name with args.
3753 set dummy $ac_prog; ac_word=$2
3754 echo "$as_me:$LINENO: checking for $ac_word" >&5
3755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756 if test "${ac_cv_prog_YACC+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759 if test -n "$YACC"; then
3760 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3761 else
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769 ac_cv_prog_YACC="$ac_prog"
3770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 break 2
3773 done
3774 done
3778 YACC=$ac_cv_prog_YACC
3779 if test -n "$YACC"; then
3780 echo "$as_me:$LINENO: result: $YACC" >&5
3781 echo "${ECHO_T}$YACC" >&6
3782 else
3783 echo "$as_me:$LINENO: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3787 test -n "$YACC" && break
3788 done
3789 test -n "$YACC" || YACC="yacc"
3791 if test "x$RANLIB" = x; then
3792 if test -n "$ac_tool_prefix"; then
3793 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3794 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3795 echo "$as_me:$LINENO: checking for $ac_word" >&5
3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3797 if test "${ac_cv_prog_RANLIB+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 if test -n "$RANLIB"; then
3801 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 break 2
3814 done
3815 done
3819 RANLIB=$ac_cv_prog_RANLIB
3820 if test -n "$RANLIB"; then
3821 echo "$as_me:$LINENO: result: $RANLIB" >&5
3822 echo "${ECHO_T}$RANLIB" >&6
3823 else
3824 echo "$as_me:$LINENO: result: no" >&5
3825 echo "${ECHO_T}no" >&6
3829 if test -z "$ac_cv_prog_RANLIB"; then
3830 ac_ct_RANLIB=$RANLIB
3831 # Extract the first word of "ranlib", so it can be a program name with args.
3832 set dummy ranlib; ac_word=$2
3833 echo "$as_me:$LINENO: checking for $ac_word" >&5
3834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3835 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838 if test -n "$ac_ct_RANLIB"; then
3839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3840 else
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848 ac_cv_prog_ac_ct_RANLIB="ranlib"
3849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850 break 2
3852 done
3853 done
3855 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3858 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3859 if test -n "$ac_ct_RANLIB"; then
3860 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3861 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3862 else
3863 echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6
3867 RANLIB=$ac_ct_RANLIB
3868 else
3869 RANLIB="$ac_cv_prog_RANLIB"
3877 echo "$as_me:$LINENO: checking for AIX" >&5
3878 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3879 cat >conftest.$ac_ext <<_ACEOF
3880 #line $LINENO "configure"
3881 #include "confdefs.h"
3882 #ifdef _AIX
3884 #endif
3886 _ACEOF
3887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3888 egrep "yes" >/dev/null 2>&1; then
3889 echo "$as_me:$LINENO: result: yes" >&5
3890 echo "${ECHO_T}yes" >&6
3891 cat >>confdefs.h <<\_ACEOF
3892 #define _ALL_SOURCE 1
3893 _ACEOF
3895 else
3896 echo "$as_me:$LINENO: result: no" >&5
3897 echo "${ECHO_T}no" >&6
3899 rm -f conftest*
3903 #### Extract some information from the operating system and machine files.
3905 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3906 - which libraries the lib-src programs will want, and
3907 - whether the GNU malloc routines are usable..." >&5
3908 echo "$as_me: checking the machine- and system-dependent files to find out
3909 - which libraries the lib-src programs will want, and
3910 - whether the GNU malloc routines are usable..." >&6;}
3912 ### First figure out CFLAGS (which we use for running the compiler here)
3913 ### and REAL_CFLAGS (which we use for real compilation).
3914 ### The two are the same except on a few systems, where they are made
3915 ### different to work around various lossages. For example,
3916 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3917 ### as implying static linking.
3919 ### If the CFLAGS env var is specified, we use that value
3920 ### instead of the default.
3922 ### It's not important that this name contain the PID; you can't run
3923 ### two configures in the same directory and have anything work
3924 ### anyway.
3925 tempcname="conftest.c"
3927 echo '
3928 #include "'${srcdir}'/src/'${opsysfile}'"
3929 #include "'${srcdir}'/src/'${machfile}'"
3930 #ifndef LIBS_MACHINE
3931 #define LIBS_MACHINE
3932 #endif
3933 #ifndef LIBS_SYSTEM
3934 #define LIBS_SYSTEM
3935 #endif
3936 #ifndef C_SWITCH_SYSTEM
3937 #define C_SWITCH_SYSTEM
3938 #endif
3939 #ifndef C_SWITCH_MACHINE
3940 #define C_SWITCH_MACHINE
3941 #endif
3942 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3943 configure___ c_switch_system=C_SWITCH_SYSTEM
3944 configure___ c_switch_machine=C_SWITCH_MACHINE
3946 #ifndef LIB_X11_LIB
3947 #define LIB_X11_LIB -lX11
3948 #endif
3950 #ifndef LIBX11_MACHINE
3951 #define LIBX11_MACHINE
3952 #endif
3954 #ifndef LIBX11_SYSTEM
3955 #define LIBX11_SYSTEM
3956 #endif
3957 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3959 #ifdef UNEXEC
3960 configure___ unexec=UNEXEC
3961 #else
3962 configure___ unexec=unexec.o
3963 #endif
3965 #ifdef SYSTEM_MALLOC
3966 configure___ system_malloc=yes
3967 #else
3968 configure___ system_malloc=no
3969 #endif
3971 #ifdef USE_MMAP_FOR_BUFFERS
3972 configure___ use_mmap_for_buffers=yes
3973 #else
3974 configure___ use_mmap_for_buffers=no
3975 #endif
3977 #ifndef C_DEBUG_SWITCH
3978 #define C_DEBUG_SWITCH -g
3979 #endif
3981 #ifndef C_OPTIMIZE_SWITCH
3982 #ifdef __GNUC__
3983 #define C_OPTIMIZE_SWITCH -O2
3984 #else
3985 #define C_OPTIMIZE_SWITCH -O
3986 #endif
3987 #endif
3989 #ifndef LD_SWITCH_MACHINE
3990 #define LD_SWITCH_MACHINE
3991 #endif
3993 #ifndef LD_SWITCH_SYSTEM
3994 #define LD_SWITCH_SYSTEM
3995 #endif
3997 #ifndef LD_SWITCH_X_SITE_AUX
3998 #define LD_SWITCH_X_SITE_AUX
3999 #endif
4001 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4002 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4004 #ifdef THIS_IS_CONFIGURE
4006 /* Get the CFLAGS for tests in configure. */
4007 #ifdef __GNUC__
4008 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4009 #else
4010 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4011 #endif
4013 #else /* not THIS_IS_CONFIGURE */
4015 /* Get the CFLAGS for real compilation. */
4016 #ifdef __GNUC__
4017 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4018 #else
4019 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4020 #endif
4022 #endif /* not THIS_IS_CONFIGURE */
4023 ' > ${tempcname}
4025 # The value of CPP is a quoted variable reference, so we need to do this
4026 # to get its actual value...
4027 CPP=`eval "echo $CPP"`
4028 eval `${CPP} -Isrc ${tempcname} \
4029 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4030 if test "x$SPECIFIED_CFLAGS" = x; then
4031 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4032 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4033 else
4034 REAL_CFLAGS="$CFLAGS"
4036 rm ${tempcname}
4038 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4040 ### Make sure subsequent tests use flags consistent with the build flags.
4042 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4043 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4044 else
4045 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4048 # Check whether --enable-largefile or --disable-largefile was given.
4049 if test "${enable_largefile+set}" = set; then
4050 enableval="$enable_largefile"
4053 if test "$enable_largefile" != no; then
4055 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4056 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4057 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060 ac_cv_sys_largefile_CC=no
4061 if test "$GCC" != yes; then
4062 ac_save_CC=$CC
4063 while :; do
4064 # IRIX 6.2 and later do not support large files by default,
4065 # so use the C compiler's -n32 option if that helps.
4066 cat >conftest.$ac_ext <<_ACEOF
4067 #line $LINENO "configure"
4068 #include "confdefs.h"
4069 #include <sys/types.h>
4070 /* Check that off_t can represent 2**63 - 1 correctly.
4071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4072 since some C++ compilers masquerading as C compilers
4073 incorrectly reject 9223372036854775807. */
4074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4076 && LARGE_OFF_T % 2147483647 == 1)
4077 ? 1 : -1];
4078 #ifdef F77_DUMMY_MAIN
4079 # ifdef __cplusplus
4080 extern "C"
4081 # endif
4082 int F77_DUMMY_MAIN() { return 1; }
4083 #endif
4085 main ()
4089 return 0;
4091 _ACEOF
4092 rm -f conftest.$ac_objext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try='test -s conftest.$ac_objext'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 (eval $ac_try) 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
4104 break
4105 else
4106 echo "$as_me: failed program was:" >&5
4107 cat conftest.$ac_ext >&5
4109 rm -f conftest.$ac_objext
4110 CC="$CC -n32"
4111 rm -f conftest.$ac_objext
4112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4113 (eval $ac_compile) 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try='test -s conftest.$ac_objext'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 (eval $ac_try) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4123 ac_cv_sys_largefile_CC=' -n32'; break
4124 else
4125 echo "$as_me: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4128 rm -f conftest.$ac_objext
4129 break
4130 done
4131 CC=$ac_save_CC
4132 rm -f conftest.$ac_ext
4135 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4136 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4137 if test "$ac_cv_sys_largefile_CC" != no; then
4138 CC=$CC$ac_cv_sys_largefile_CC
4141 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4142 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4143 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146 while :; do
4147 ac_cv_sys_file_offset_bits=no
4148 cat >conftest.$ac_ext <<_ACEOF
4149 #line $LINENO "configure"
4150 #include "confdefs.h"
4151 #include <sys/types.h>
4152 /* Check that off_t can represent 2**63 - 1 correctly.
4153 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4154 since some C++ compilers masquerading as C compilers
4155 incorrectly reject 9223372036854775807. */
4156 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4157 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4158 && LARGE_OFF_T % 2147483647 == 1)
4159 ? 1 : -1];
4160 #ifdef F77_DUMMY_MAIN
4161 # ifdef __cplusplus
4162 extern "C"
4163 # endif
4164 int F77_DUMMY_MAIN() { return 1; }
4165 #endif
4167 main ()
4171 return 0;
4173 _ACEOF
4174 rm -f conftest.$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -s conftest.$ac_objext'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 break
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 cat conftest.$ac_ext >&5
4191 rm -f conftest.$ac_objext conftest.$ac_ext
4192 cat >conftest.$ac_ext <<_ACEOF
4193 #line $LINENO "configure"
4194 #include "confdefs.h"
4195 #define _FILE_OFFSET_BITS 64
4196 #include <sys/types.h>
4197 /* Check that off_t can represent 2**63 - 1 correctly.
4198 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4199 since some C++ compilers masquerading as C compilers
4200 incorrectly reject 9223372036854775807. */
4201 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4202 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4203 && LARGE_OFF_T % 2147483647 == 1)
4204 ? 1 : -1];
4205 #ifdef F77_DUMMY_MAIN
4206 # ifdef __cplusplus
4207 extern "C"
4208 # endif
4209 int F77_DUMMY_MAIN() { return 1; }
4210 #endif
4212 main ()
4216 return 0;
4218 _ACEOF
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -s conftest.$ac_objext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 (eval $ac_try) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 ac_cv_sys_file_offset_bits=64; break
4232 else
4233 echo "$as_me: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4236 rm -f conftest.$ac_objext conftest.$ac_ext
4237 break
4238 done
4240 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4241 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4242 if test "$ac_cv_sys_file_offset_bits" != no; then
4244 cat >>confdefs.h <<_ACEOF
4245 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4246 _ACEOF
4249 rm -f conftest*
4250 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4251 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4252 if test "${ac_cv_sys_large_files+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255 while :; do
4256 ac_cv_sys_large_files=no
4257 cat >conftest.$ac_ext <<_ACEOF
4258 #line $LINENO "configure"
4259 #include "confdefs.h"
4260 #include <sys/types.h>
4261 /* Check that off_t can represent 2**63 - 1 correctly.
4262 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4263 since some C++ compilers masquerading as C compilers
4264 incorrectly reject 9223372036854775807. */
4265 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4267 && LARGE_OFF_T % 2147483647 == 1)
4268 ? 1 : -1];
4269 #ifdef F77_DUMMY_MAIN
4270 # ifdef __cplusplus
4271 extern "C"
4272 # endif
4273 int F77_DUMMY_MAIN() { return 1; }
4274 #endif
4276 main ()
4280 return 0;
4282 _ACEOF
4283 rm -f conftest.$ac_objext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285 (eval $ac_compile) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } &&
4289 { ac_try='test -s conftest.$ac_objext'
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291 (eval $ac_try) 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 break
4296 else
4297 echo "$as_me: failed program was:" >&5
4298 cat conftest.$ac_ext >&5
4300 rm -f conftest.$ac_objext conftest.$ac_ext
4301 cat >conftest.$ac_ext <<_ACEOF
4302 #line $LINENO "configure"
4303 #include "confdefs.h"
4304 #define _LARGE_FILES 1
4305 #include <sys/types.h>
4306 /* Check that off_t can represent 2**63 - 1 correctly.
4307 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4308 since some C++ compilers masquerading as C compilers
4309 incorrectly reject 9223372036854775807. */
4310 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4311 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4312 && LARGE_OFF_T % 2147483647 == 1)
4313 ? 1 : -1];
4314 #ifdef F77_DUMMY_MAIN
4315 # ifdef __cplusplus
4316 extern "C"
4317 # endif
4318 int F77_DUMMY_MAIN() { return 1; }
4319 #endif
4321 main ()
4325 return 0;
4327 _ACEOF
4328 rm -f conftest.$ac_objext
4329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4330 (eval $ac_compile) 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } &&
4334 { ac_try='test -s conftest.$ac_objext'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 (eval $ac_try) 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_cv_sys_large_files=1; break
4341 else
4342 echo "$as_me: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4345 rm -f conftest.$ac_objext conftest.$ac_ext
4346 break
4347 done
4349 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4350 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4351 if test "$ac_cv_sys_large_files" != no; then
4353 cat >>confdefs.h <<_ACEOF
4354 #define _LARGE_FILES $ac_cv_sys_large_files
4355 _ACEOF
4358 rm -f conftest*
4362 if test "${with_sound}" != "no"; then
4363 # Sound support for GNU/Linux and the free BSDs.
4364 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4365 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4366 if test "${ac_cv_header_stdc+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369 cat >conftest.$ac_ext <<_ACEOF
4370 #line $LINENO "configure"
4371 #include "confdefs.h"
4372 #include <stdlib.h>
4373 #include <stdarg.h>
4374 #include <string.h>
4375 #include <float.h>
4377 _ACEOF
4378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4380 ac_status=$?
4381 egrep -v '^ *\+' conftest.er1 >conftest.err
4382 rm -f conftest.er1
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } >/dev/null; then
4386 if test -s conftest.err; then
4387 ac_cpp_err=$ac_c_preproc_warn_flag
4388 else
4389 ac_cpp_err=
4391 else
4392 ac_cpp_err=yes
4394 if test -z "$ac_cpp_err"; then
4395 ac_cv_header_stdc=yes
4396 else
4397 echo "$as_me: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4399 ac_cv_header_stdc=no
4401 rm -f conftest.err conftest.$ac_ext
4403 if test $ac_cv_header_stdc = yes; then
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405 cat >conftest.$ac_ext <<_ACEOF
4406 #line $LINENO "configure"
4407 #include "confdefs.h"
4408 #include <string.h>
4410 _ACEOF
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 egrep "memchr" >/dev/null 2>&1; then
4414 else
4415 ac_cv_header_stdc=no
4417 rm -f conftest*
4421 if test $ac_cv_header_stdc = yes; then
4422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4423 cat >conftest.$ac_ext <<_ACEOF
4424 #line $LINENO "configure"
4425 #include "confdefs.h"
4426 #include <stdlib.h>
4428 _ACEOF
4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430 egrep "free" >/dev/null 2>&1; then
4432 else
4433 ac_cv_header_stdc=no
4435 rm -f conftest*
4439 if test $ac_cv_header_stdc = yes; then
4440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4441 if test "$cross_compiling" = yes; then
4443 else
4444 cat >conftest.$ac_ext <<_ACEOF
4445 #line $LINENO "configure"
4446 #include "confdefs.h"
4447 #include <ctype.h>
4448 #if ((' ' & 0x0FF) == 0x020)
4449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4451 #else
4452 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4453 || ('j' <= (c) && (c) <= 'r') \
4454 || ('s' <= (c) && (c) <= 'z'))
4455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4456 #endif
4458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4460 main ()
4462 int i;
4463 for (i = 0; i < 256; i++)
4464 if (XOR (islower (i), ISLOWER (i))
4465 || toupper (i) != TOUPPER (i))
4466 exit(2);
4467 exit (0);
4469 _ACEOF
4470 rm -f conftest$ac_exeext
4471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4472 (eval $ac_link) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 (eval $ac_try) 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4482 else
4483 echo "$as_me: program exited with status $ac_status" >&5
4484 echo "$as_me: failed program was:" >&5
4485 cat conftest.$ac_ext >&5
4486 ( exit $ac_status )
4487 ac_cv_header_stdc=no
4489 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4493 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4494 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4495 if test $ac_cv_header_stdc = yes; then
4497 cat >>confdefs.h <<\_ACEOF
4498 #define STDC_HEADERS 1
4499 _ACEOF
4503 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4513 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4514 inttypes.h stdint.h unistd.h
4516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4517 echo "$as_me:$LINENO: checking for $ac_header" >&5
4518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 cat >conftest.$ac_ext <<_ACEOF
4523 #line $LINENO "configure"
4524 #include "confdefs.h"
4525 $ac_includes_default
4527 #include <$ac_header>
4528 _ACEOF
4529 rm -f conftest.$ac_objext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531 (eval $ac_compile) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 eval "$as_ac_Header=yes"
4542 else
4543 echo "$as_me: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4545 eval "$as_ac_Header=no"
4547 rm -f conftest.$ac_objext conftest.$ac_ext
4549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4552 cat >>confdefs.h <<_ACEOF
4553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4554 _ACEOF
4558 done
4564 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4568 echo "$as_me:$LINENO: checking for $ac_header" >&5
4569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4575 else
4576 # Is the header compilable?
4577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4579 cat >conftest.$ac_ext <<_ACEOF
4580 #line $LINENO "configure"
4581 #include "confdefs.h"
4582 $ac_includes_default
4583 #include <$ac_header>
4584 _ACEOF
4585 rm -f conftest.$ac_objext
4586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4587 (eval $ac_compile) 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try='test -s conftest.$ac_objext'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 (eval $ac_try) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 ac_header_compiler=yes
4598 else
4599 echo "$as_me: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
4601 ac_header_compiler=no
4603 rm -f conftest.$ac_objext conftest.$ac_ext
4604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4605 echo "${ECHO_T}$ac_header_compiler" >&6
4607 # Is the header present?
4608 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4610 cat >conftest.$ac_ext <<_ACEOF
4611 #line $LINENO "configure"
4612 #include "confdefs.h"
4613 #include <$ac_header>
4614 _ACEOF
4615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4617 ac_status=$?
4618 egrep -v '^ *\+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } >/dev/null; then
4623 if test -s conftest.err; then
4624 ac_cpp_err=$ac_c_preproc_warn_flag
4625 else
4626 ac_cpp_err=
4628 else
4629 ac_cpp_err=yes
4631 if test -z "$ac_cpp_err"; then
4632 ac_header_preproc=yes
4633 else
4634 echo "$as_me: failed program was:" >&5
4635 cat conftest.$ac_ext >&5
4636 ac_header_preproc=no
4638 rm -f conftest.err conftest.$ac_ext
4639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4640 echo "${ECHO_T}$ac_header_preproc" >&6
4642 # So? What about this header?
4643 case $ac_header_compiler:$ac_header_preproc in
4644 yes:no )
4645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4649 no:yes )
4650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4656 esac
4657 echo "$as_me:$LINENO: checking for $ac_header" >&5
4658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662 eval "$as_ac_Header=$ac_header_preproc"
4664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4669 cat >>confdefs.h <<_ACEOF
4670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4671 _ACEOF
4675 done
4677 # Emulation library used on NetBSD.
4678 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4679 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4680 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683 ac_check_lib_save_LIBS=$LIBS
4684 LIBS="-lossaudio $LIBS"
4685 cat >conftest.$ac_ext <<_ACEOF
4686 #line $LINENO "configure"
4687 #include "confdefs.h"
4689 /* Override any gcc2 internal prototype to avoid an error. */
4690 #ifdef __cplusplus
4691 extern "C"
4692 #endif
4693 /* We use char because int might match the return type of a gcc2
4694 builtin and then its argument prototype would still apply. */
4695 char _oss_ioctl ();
4696 #ifdef F77_DUMMY_MAIN
4697 # ifdef __cplusplus
4698 extern "C"
4699 # endif
4700 int F77_DUMMY_MAIN() { return 1; }
4701 #endif
4703 main ()
4705 _oss_ioctl ();
4707 return 0;
4709 _ACEOF
4710 rm -f conftest.$ac_objext conftest$ac_exeext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712 (eval $ac_link) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } &&
4716 { ac_try='test -s conftest$ac_exeext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4722 ac_cv_lib_ossaudio__oss_ioctl=yes
4723 else
4724 echo "$as_me: failed program was:" >&5
4725 cat conftest.$ac_ext >&5
4726 ac_cv_lib_ossaudio__oss_ioctl=no
4728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4729 LIBS=$ac_check_lib_save_LIBS
4731 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4732 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4733 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4734 LIBSOUND=-lossaudio
4735 else
4736 LIBSOUND=
4759 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
4760 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
4761 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h
4763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4765 echo "$as_me:$LINENO: checking for $ac_header" >&5
4766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4772 else
4773 # Is the header compilable?
4774 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4776 cat >conftest.$ac_ext <<_ACEOF
4777 #line $LINENO "configure"
4778 #include "confdefs.h"
4779 $ac_includes_default
4780 #include <$ac_header>
4781 _ACEOF
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784 (eval $ac_compile) 2>&5
4785 ac_status=$?
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -s conftest.$ac_objext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 (eval $ac_try) 2>&5
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_header_compiler=yes
4795 else
4796 echo "$as_me: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4798 ac_header_compiler=no
4800 rm -f conftest.$ac_objext conftest.$ac_ext
4801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4802 echo "${ECHO_T}$ac_header_compiler" >&6
4804 # Is the header present?
4805 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4807 cat >conftest.$ac_ext <<_ACEOF
4808 #line $LINENO "configure"
4809 #include "confdefs.h"
4810 #include <$ac_header>
4811 _ACEOF
4812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4814 ac_status=$?
4815 egrep -v '^ *\+' conftest.er1 >conftest.err
4816 rm -f conftest.er1
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } >/dev/null; then
4820 if test -s conftest.err; then
4821 ac_cpp_err=$ac_c_preproc_warn_flag
4822 else
4823 ac_cpp_err=
4825 else
4826 ac_cpp_err=yes
4828 if test -z "$ac_cpp_err"; then
4829 ac_header_preproc=yes
4830 else
4831 echo "$as_me: failed program was:" >&5
4832 cat conftest.$ac_ext >&5
4833 ac_header_preproc=no
4835 rm -f conftest.err conftest.$ac_ext
4836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4837 echo "${ECHO_T}$ac_header_preproc" >&6
4839 # So? What about this header?
4840 case $ac_header_compiler:$ac_header_preproc in
4841 yes:no )
4842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4846 no:yes )
4847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4853 esac
4854 echo "$as_me:$LINENO: checking for $ac_header" >&5
4855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859 eval "$as_ac_Header=$ac_header_preproc"
4861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4866 cat >>confdefs.h <<_ACEOF
4867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4868 _ACEOF
4872 done
4874 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4875 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4876 if test "${ac_cv_header_stdc+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4879 cat >conftest.$ac_ext <<_ACEOF
4880 #line $LINENO "configure"
4881 #include "confdefs.h"
4882 #include <stdlib.h>
4883 #include <stdarg.h>
4884 #include <string.h>
4885 #include <float.h>
4887 _ACEOF
4888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4890 ac_status=$?
4891 egrep -v '^ *\+' conftest.er1 >conftest.err
4892 rm -f conftest.er1
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } >/dev/null; then
4896 if test -s conftest.err; then
4897 ac_cpp_err=$ac_c_preproc_warn_flag
4898 else
4899 ac_cpp_err=
4901 else
4902 ac_cpp_err=yes
4904 if test -z "$ac_cpp_err"; then
4905 ac_cv_header_stdc=yes
4906 else
4907 echo "$as_me: failed program was:" >&5
4908 cat conftest.$ac_ext >&5
4909 ac_cv_header_stdc=no
4911 rm -f conftest.err conftest.$ac_ext
4913 if test $ac_cv_header_stdc = yes; then
4914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4915 cat >conftest.$ac_ext <<_ACEOF
4916 #line $LINENO "configure"
4917 #include "confdefs.h"
4918 #include <string.h>
4920 _ACEOF
4921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4922 egrep "memchr" >/dev/null 2>&1; then
4924 else
4925 ac_cv_header_stdc=no
4927 rm -f conftest*
4931 if test $ac_cv_header_stdc = yes; then
4932 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4933 cat >conftest.$ac_ext <<_ACEOF
4934 #line $LINENO "configure"
4935 #include "confdefs.h"
4936 #include <stdlib.h>
4938 _ACEOF
4939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4940 egrep "free" >/dev/null 2>&1; then
4942 else
4943 ac_cv_header_stdc=no
4945 rm -f conftest*
4949 if test $ac_cv_header_stdc = yes; then
4950 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4951 if test "$cross_compiling" = yes; then
4953 else
4954 cat >conftest.$ac_ext <<_ACEOF
4955 #line $LINENO "configure"
4956 #include "confdefs.h"
4957 #include <ctype.h>
4958 #if ((' ' & 0x0FF) == 0x020)
4959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4961 #else
4962 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4963 || ('j' <= (c) && (c) <= 'r') \
4964 || ('s' <= (c) && (c) <= 'z'))
4965 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4966 #endif
4968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4970 main ()
4972 int i;
4973 for (i = 0; i < 256; i++)
4974 if (XOR (islower (i), ISLOWER (i))
4975 || toupper (i) != TOUPPER (i))
4976 exit(2);
4977 exit (0);
4979 _ACEOF
4980 rm -f conftest$ac_exeext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4982 (eval $ac_link) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 (eval $ac_try) 2>&5
4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4992 else
4993 echo "$as_me: program exited with status $ac_status" >&5
4994 echo "$as_me: failed program was:" >&5
4995 cat conftest.$ac_ext >&5
4996 ( exit $ac_status )
4997 ac_cv_header_stdc=no
4999 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5003 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5004 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5005 if test $ac_cv_header_stdc = yes; then
5007 cat >>confdefs.h <<\_ACEOF
5008 #define STDC_HEADERS 1
5009 _ACEOF
5013 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5014 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5015 if test "${ac_cv_header_time+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018 cat >conftest.$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5020 #include "confdefs.h"
5021 #include <sys/types.h>
5022 #include <sys/time.h>
5023 #include <time.h>
5025 #ifdef F77_DUMMY_MAIN
5026 # ifdef __cplusplus
5027 extern "C"
5028 # endif
5029 int F77_DUMMY_MAIN() { return 1; }
5030 #endif
5032 main ()
5034 if ((struct tm *) 0)
5035 return 0;
5037 return 0;
5039 _ACEOF
5040 rm -f conftest.$ac_objext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042 (eval $ac_compile) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } &&
5046 { ac_try='test -s conftest.$ac_objext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 ac_cv_header_time=yes
5053 else
5054 echo "$as_me: failed program was:" >&5
5055 cat conftest.$ac_ext >&5
5056 ac_cv_header_time=no
5058 rm -f conftest.$ac_objext conftest.$ac_ext
5060 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5061 echo "${ECHO_T}$ac_cv_header_time" >&6
5062 if test $ac_cv_header_time = yes; then
5064 cat >>confdefs.h <<\_ACEOF
5065 #define TIME_WITH_SYS_TIME 1
5066 _ACEOF
5070 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
5071 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
5072 if test "${ac_cv_decl_sys_siglist+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075 cat >conftest.$ac_ext <<_ACEOF
5076 #line $LINENO "configure"
5077 #include "confdefs.h"
5078 #include <sys/types.h>
5079 #include <signal.h>
5080 /* NetBSD declares sys_siglist in unistd.h. */
5081 #if HAVE_UNISTD_H
5082 # include <unistd.h>
5083 #endif
5085 #ifdef F77_DUMMY_MAIN
5086 # ifdef __cplusplus
5087 extern "C"
5088 # endif
5089 int F77_DUMMY_MAIN() { return 1; }
5090 #endif
5092 main ()
5094 char *msg = *(sys_siglist + 1);
5096 return 0;
5098 _ACEOF
5099 rm -f conftest.$ac_objext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5101 (eval $ac_compile) 2>&5
5102 ac_status=$?
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -s conftest.$ac_objext'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 (eval $ac_try) 2>&5
5108 ac_status=$?
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5111 ac_cv_decl_sys_siglist=yes
5112 else
5113 echo "$as_me: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5115 ac_cv_decl_sys_siglist=no
5117 rm -f conftest.$ac_objext conftest.$ac_ext
5119 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
5120 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
5121 if test $ac_cv_decl_sys_siglist = yes; then
5123 cat >>confdefs.h <<\_ACEOF
5124 #define SYS_SIGLIST_DECLARED 1
5125 _ACEOF
5129 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5130 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5131 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134 cat >conftest.$ac_ext <<_ACEOF
5135 #line $LINENO "configure"
5136 #include "confdefs.h"
5137 #include <sys/types.h>
5138 #include <sys/wait.h>
5139 #ifndef WEXITSTATUS
5140 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5141 #endif
5142 #ifndef WIFEXITED
5143 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5144 #endif
5146 #ifdef F77_DUMMY_MAIN
5147 # ifdef __cplusplus
5148 extern "C"
5149 # endif
5150 int F77_DUMMY_MAIN() { return 1; }
5151 #endif
5153 main ()
5155 int s;
5156 wait (&s);
5157 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5159 return 0;
5161 _ACEOF
5162 rm -f conftest.$ac_objext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164 (eval $ac_compile) 2>&5
5165 ac_status=$?
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try='test -s conftest.$ac_objext'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 (eval $ac_try) 2>&5
5171 ac_status=$?
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5174 ac_cv_header_sys_wait_h=yes
5175 else
5176 echo "$as_me: failed program was:" >&5
5177 cat conftest.$ac_ext >&5
5178 ac_cv_header_sys_wait_h=no
5180 rm -f conftest.$ac_objext conftest.$ac_ext
5182 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5183 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5184 if test $ac_cv_header_sys_wait_h = yes; then
5186 cat >>confdefs.h <<\_ACEOF
5187 #define HAVE_SYS_WAIT_H 1
5188 _ACEOF
5193 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5194 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5195 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198 cat >conftest.$ac_ext <<_ACEOF
5199 #line $LINENO "configure"
5200 #include "confdefs.h"
5201 #ifdef TIME_WITH_SYS_TIME
5202 #include <sys/time.h>
5203 #include <time.h>
5204 #else
5205 #ifdef HAVE_SYS_TIME_H
5206 #include <sys/time.h>
5207 #else
5208 #include <time.h>
5209 #endif
5210 #endif
5211 #ifdef HAVE_UTIME_H
5212 #include <utime.h>
5213 #endif
5214 #ifdef F77_DUMMY_MAIN
5215 # ifdef __cplusplus
5216 extern "C"
5217 # endif
5218 int F77_DUMMY_MAIN() { return 1; }
5219 #endif
5221 main ()
5223 static struct utimbuf x; x.actime = x.modtime;
5225 return 0;
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230 (eval $ac_compile) 2>&5
5231 ac_status=$?
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } &&
5234 { ac_try='test -s conftest.$ac_objext'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 (eval $ac_try) 2>&5
5237 ac_status=$?
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
5240 emacs_cv_struct_utimbuf=yes
5241 else
5242 echo "$as_me: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5244 emacs_cv_struct_utimbuf=no
5246 rm -f conftest.$ac_objext conftest.$ac_ext
5248 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5249 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5250 if test $emacs_cv_struct_utimbuf = yes; then
5252 cat >>confdefs.h <<\_ACEOF
5253 #define HAVE_STRUCT_UTIMBUF 1
5254 _ACEOF
5258 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5259 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5260 if test "${ac_cv_type_signal+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 else
5263 cat >conftest.$ac_ext <<_ACEOF
5264 #line $LINENO "configure"
5265 #include "confdefs.h"
5266 #include <sys/types.h>
5267 #include <signal.h>
5268 #ifdef signal
5269 # undef signal
5270 #endif
5271 #ifdef __cplusplus
5272 extern "C" void (*signal (int, void (*)(int)))(int);
5273 #else
5274 void (*signal ()) ();
5275 #endif
5277 #ifdef F77_DUMMY_MAIN
5278 # ifdef __cplusplus
5279 extern "C"
5280 # endif
5281 int F77_DUMMY_MAIN() { return 1; }
5282 #endif
5284 main ()
5286 int i;
5288 return 0;
5290 _ACEOF
5291 rm -f conftest.$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } &&
5297 { ac_try='test -s conftest.$ac_objext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 (eval $ac_try) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 ac_cv_type_signal=void
5304 else
5305 echo "$as_me: failed program was:" >&5
5306 cat conftest.$ac_ext >&5
5307 ac_cv_type_signal=int
5309 rm -f conftest.$ac_objext conftest.$ac_ext
5311 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5312 echo "${ECHO_T}$ac_cv_type_signal" >&6
5314 cat >>confdefs.h <<_ACEOF
5315 #define RETSIGTYPE $ac_cv_type_signal
5316 _ACEOF
5320 echo "$as_me:$LINENO: checking for speed_t" >&5
5321 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5322 if test "${emacs_cv_speed_t+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325 cat >conftest.$ac_ext <<_ACEOF
5326 #line $LINENO "configure"
5327 #include "confdefs.h"
5328 #include <termios.h>
5329 #ifdef F77_DUMMY_MAIN
5330 # ifdef __cplusplus
5331 extern "C"
5332 # endif
5333 int F77_DUMMY_MAIN() { return 1; }
5334 #endif
5336 main ()
5338 speed_t x = 1;
5340 return 0;
5342 _ACEOF
5343 rm -f conftest.$ac_objext
5344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5345 (eval $ac_compile) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try='test -s conftest.$ac_objext'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 (eval $ac_try) 2>&5
5352 ac_status=$?
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; }; then
5355 emacs_cv_speed_t=yes
5356 else
5357 echo "$as_me: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5359 emacs_cv_speed_t=no
5361 rm -f conftest.$ac_objext conftest.$ac_ext
5363 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5364 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5365 if test $emacs_cv_speed_t = yes; then
5367 cat >>confdefs.h <<\_ACEOF
5368 #define HAVE_SPEED_T 1
5369 _ACEOF
5373 echo "$as_me:$LINENO: checking for struct timeval" >&5
5374 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5375 if test "${emacs_cv_struct_timeval+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378 cat >conftest.$ac_ext <<_ACEOF
5379 #line $LINENO "configure"
5380 #include "confdefs.h"
5381 #ifdef TIME_WITH_SYS_TIME
5382 #include <sys/time.h>
5383 #include <time.h>
5384 #else
5385 #ifdef HAVE_SYS_TIME_H
5386 #include <sys/time.h>
5387 #else
5388 #include <time.h>
5389 #endif
5390 #endif
5391 #ifdef F77_DUMMY_MAIN
5392 # ifdef __cplusplus
5393 extern "C"
5394 # endif
5395 int F77_DUMMY_MAIN() { return 1; }
5396 #endif
5398 main ()
5400 static struct timeval x; x.tv_sec = x.tv_usec;
5402 return 0;
5404 _ACEOF
5405 rm -f conftest.$ac_objext
5406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5407 (eval $ac_compile) 2>&5
5408 ac_status=$?
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try='test -s conftest.$ac_objext'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5417 emacs_cv_struct_timeval=yes
5418 else
5419 echo "$as_me: failed program was:" >&5
5420 cat conftest.$ac_ext >&5
5421 emacs_cv_struct_timeval=no
5423 rm -f conftest.$ac_objext conftest.$ac_ext
5425 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5426 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5427 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5428 if test $emacs_cv_struct_timeval = yes; then
5430 cat >>confdefs.h <<\_ACEOF
5431 #define HAVE_TIMEVAL 1
5432 _ACEOF
5436 echo "$as_me:$LINENO: checking for struct exception" >&5
5437 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5438 if test "${emacs_cv_struct_exception+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 else
5441 cat >conftest.$ac_ext <<_ACEOF
5442 #line $LINENO "configure"
5443 #include "confdefs.h"
5444 #include <math.h>
5445 #ifdef F77_DUMMY_MAIN
5446 # ifdef __cplusplus
5447 extern "C"
5448 # endif
5449 int F77_DUMMY_MAIN() { return 1; }
5450 #endif
5452 main ()
5454 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5456 return 0;
5458 _ACEOF
5459 rm -f conftest.$ac_objext
5460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5461 (eval $ac_compile) 2>&5
5462 ac_status=$?
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } &&
5465 { ac_try='test -s conftest.$ac_objext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 (eval $ac_try) 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5471 emacs_cv_struct_exception=yes
5472 else
5473 echo "$as_me: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5475 emacs_cv_struct_exception=no
5477 rm -f conftest.$ac_objext conftest.$ac_ext
5479 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5480 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5481 HAVE_EXCEPTION=$emacs_cv_struct_exception
5482 if test $emacs_cv_struct_exception != yes; then
5484 cat >>confdefs.h <<\_ACEOF
5485 #define NO_MATHERR 1
5486 _ACEOF
5490 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5491 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5492 if test "${ac_cv_struct_tm+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495 cat >conftest.$ac_ext <<_ACEOF
5496 #line $LINENO "configure"
5497 #include "confdefs.h"
5498 #include <sys/types.h>
5499 #include <time.h>
5501 #ifdef F77_DUMMY_MAIN
5502 # ifdef __cplusplus
5503 extern "C"
5504 # endif
5505 int F77_DUMMY_MAIN() { return 1; }
5506 #endif
5508 main ()
5510 struct tm *tp; tp->tm_sec;
5512 return 0;
5514 _ACEOF
5515 rm -f conftest.$ac_objext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5517 (eval $ac_compile) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -s conftest.$ac_objext'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 (eval $ac_try) 2>&5
5524 ac_status=$?
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 ac_cv_struct_tm=time.h
5528 else
5529 echo "$as_me: failed program was:" >&5
5530 cat conftest.$ac_ext >&5
5531 ac_cv_struct_tm=sys/time.h
5533 rm -f conftest.$ac_objext conftest.$ac_ext
5535 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5536 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5537 if test $ac_cv_struct_tm = sys/time.h; then
5539 cat >>confdefs.h <<\_ACEOF
5540 #define TM_IN_SYS_TIME 1
5541 _ACEOF
5545 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5546 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5547 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 cat >conftest.$ac_ext <<_ACEOF
5551 #line $LINENO "configure"
5552 #include "confdefs.h"
5553 #include <sys/types.h>
5554 #include <$ac_cv_struct_tm>
5557 #ifdef F77_DUMMY_MAIN
5558 # ifdef __cplusplus
5559 extern "C"
5560 # endif
5561 int F77_DUMMY_MAIN() { return 1; }
5562 #endif
5564 main ()
5566 static struct tm ac_aggr;
5567 if (ac_aggr.tm_zone)
5568 return 0;
5570 return 0;
5572 _ACEOF
5573 rm -f conftest.$ac_objext
5574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5575 (eval $ac_compile) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } &&
5579 { ac_try='test -s conftest.$ac_objext'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 (eval $ac_try) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; }; then
5585 ac_cv_member_struct_tm_tm_zone=yes
5586 else
5587 echo "$as_me: failed program was:" >&5
5588 cat conftest.$ac_ext >&5
5589 ac_cv_member_struct_tm_tm_zone=no
5591 rm -f conftest.$ac_objext conftest.$ac_ext
5593 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5594 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5595 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5597 cat >>confdefs.h <<_ACEOF
5598 #define HAVE_STRUCT_TM_TM_ZONE 1
5599 _ACEOF
5604 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5606 cat >>confdefs.h <<\_ACEOF
5607 #define HAVE_TM_ZONE 1
5608 _ACEOF
5610 else
5611 echo "$as_me:$LINENO: checking for tzname" >&5
5612 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5613 if test "${ac_cv_var_tzname+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616 cat >conftest.$ac_ext <<_ACEOF
5617 #line $LINENO "configure"
5618 #include "confdefs.h"
5619 #include <time.h>
5620 #ifndef tzname /* For SGI. */
5621 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5622 #endif
5624 #ifdef F77_DUMMY_MAIN
5625 # ifdef __cplusplus
5626 extern "C"
5627 # endif
5628 int F77_DUMMY_MAIN() { return 1; }
5629 #endif
5631 main ()
5633 atoi(*tzname);
5635 return 0;
5637 _ACEOF
5638 rm -f conftest.$ac_objext conftest$ac_exeext
5639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5640 (eval $ac_link) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } &&
5644 { ac_try='test -s conftest$ac_exeext'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 (eval $ac_try) 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; }; then
5650 ac_cv_var_tzname=yes
5651 else
5652 echo "$as_me: failed program was:" >&5
5653 cat conftest.$ac_ext >&5
5654 ac_cv_var_tzname=no
5656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5658 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5659 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5660 if test $ac_cv_var_tzname = yes; then
5662 cat >>confdefs.h <<\_ACEOF
5663 #define HAVE_TZNAME 1
5664 _ACEOF
5669 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
5670 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
5671 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674 cat >conftest.$ac_ext <<_ACEOF
5675 #line $LINENO "configure"
5676 #include "confdefs.h"
5677 #include <time.h>
5679 #ifdef F77_DUMMY_MAIN
5680 # ifdef __cplusplus
5681 extern "C"
5682 # endif
5683 int F77_DUMMY_MAIN() { return 1; }
5684 #endif
5686 main ()
5688 static struct tm ac_aggr;
5689 if (ac_aggr.tm_gmtoff)
5690 return 0;
5692 return 0;
5694 _ACEOF
5695 rm -f conftest.$ac_objext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5697 (eval $ac_compile) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try='test -s conftest.$ac_objext'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 (eval $ac_try) 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5707 ac_cv_member_struct_tm_tm_gmtoff=yes
5708 else
5709 echo "$as_me: failed program was:" >&5
5710 cat conftest.$ac_ext >&5
5711 ac_cv_member_struct_tm_tm_gmtoff=no
5713 rm -f conftest.$ac_objext conftest.$ac_ext
5715 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
5716 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
5717 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
5719 cat >>confdefs.h <<\_ACEOF
5720 #define HAVE_TM_GMTOFF 1
5721 _ACEOF
5727 echo "$as_me:$LINENO: checking for function prototypes" >&5
5728 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5729 if test "$ac_cv_prog_cc_stdc" != no; then
5730 echo "$as_me:$LINENO: result: yes" >&5
5731 echo "${ECHO_T}yes" >&6
5733 cat >>confdefs.h <<\_ACEOF
5734 #define PROTOTYPES 1
5735 _ACEOF
5738 cat >>confdefs.h <<\_ACEOF
5739 #define __PROTOTYPES 1
5740 _ACEOF
5742 else
5743 echo "$as_me:$LINENO: result: no" >&5
5744 echo "${ECHO_T}no" >&6
5747 echo "$as_me:$LINENO: checking for working volatile" >&5
5748 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5749 if test "${ac_cv_c_volatile+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752 cat >conftest.$ac_ext <<_ACEOF
5753 #line $LINENO "configure"
5754 #include "confdefs.h"
5756 #ifdef F77_DUMMY_MAIN
5757 # ifdef __cplusplus
5758 extern "C"
5759 # endif
5760 int F77_DUMMY_MAIN() { return 1; }
5761 #endif
5763 main ()
5766 volatile int x;
5767 int * volatile y;
5769 return 0;
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try='test -s conftest.$ac_objext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 (eval $ac_try) 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 ac_cv_c_volatile=yes
5785 else
5786 echo "$as_me: failed program was:" >&5
5787 cat conftest.$ac_ext >&5
5788 ac_cv_c_volatile=no
5790 rm -f conftest.$ac_objext conftest.$ac_ext
5792 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5793 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5794 if test $ac_cv_c_volatile = no; then
5796 cat >>confdefs.h <<\_ACEOF
5797 #define volatile
5798 _ACEOF
5802 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5803 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5804 if test "${ac_cv_c_const+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807 cat >conftest.$ac_ext <<_ACEOF
5808 #line $LINENO "configure"
5809 #include "confdefs.h"
5811 #ifdef F77_DUMMY_MAIN
5812 # ifdef __cplusplus
5813 extern "C"
5814 # endif
5815 int F77_DUMMY_MAIN() { return 1; }
5816 #endif
5818 main ()
5820 /* FIXME: Include the comments suggested by Paul. */
5821 #ifndef __cplusplus
5822 /* Ultrix mips cc rejects this. */
5823 typedef int charset[2];
5824 const charset x;
5825 /* SunOS 4.1.1 cc rejects this. */
5826 char const *const *ccp;
5827 char **p;
5828 /* NEC SVR4.0.2 mips cc rejects this. */
5829 struct point {int x, y;};
5830 static struct point const zero = {0,0};
5831 /* AIX XL C 1.02.0.0 rejects this.
5832 It does not let you subtract one const X* pointer from another in
5833 an arm of an if-expression whose if-part is not a constant
5834 expression */
5835 const char *g = "string";
5836 ccp = &g + (g ? g-g : 0);
5837 /* HPUX 7.0 cc rejects these. */
5838 ++ccp;
5839 p = (char**) ccp;
5840 ccp = (char const *const *) p;
5841 { /* SCO 3.2v4 cc rejects this. */
5842 char *t;
5843 char const *s = 0 ? (char *) 0 : (char const *) 0;
5845 *t++ = 0;
5847 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5848 int x[] = {25, 17};
5849 const int *foo = &x[0];
5850 ++foo;
5852 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5853 typedef const int *iptr;
5854 iptr p = 0;
5855 ++p;
5857 { /* AIX XL C 1.02.0.0 rejects this saying
5858 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5859 struct s { int j; const int *ap[3]; };
5860 struct s *b; b->j = 5;
5862 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5863 const int foo = 10;
5865 #endif
5868 return 0;
5870 _ACEOF
5871 rm -f conftest.$ac_objext
5872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5873 (eval $ac_compile) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } &&
5877 { ac_try='test -s conftest.$ac_objext'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 (eval $ac_try) 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5883 ac_cv_c_const=yes
5884 else
5885 echo "$as_me: failed program was:" >&5
5886 cat conftest.$ac_ext >&5
5887 ac_cv_c_const=no
5889 rm -f conftest.$ac_objext conftest.$ac_ext
5891 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5892 echo "${ECHO_T}$ac_cv_c_const" >&6
5893 if test $ac_cv_c_const = no; then
5895 cat >>confdefs.h <<\_ACEOF
5896 #define const
5897 _ACEOF
5901 echo "$as_me:$LINENO: checking for void * support" >&5
5902 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5903 if test "${emacs_cv_void_star+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906 cat >conftest.$ac_ext <<_ACEOF
5907 #line $LINENO "configure"
5908 #include "confdefs.h"
5910 #ifdef F77_DUMMY_MAIN
5911 # ifdef __cplusplus
5912 extern "C"
5913 # endif
5914 int F77_DUMMY_MAIN() { return 1; }
5915 #endif
5917 main ()
5919 void * foo;
5921 return 0;
5923 _ACEOF
5924 rm -f conftest.$ac_objext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926 (eval $ac_compile) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -s conftest.$ac_objext'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 (eval $ac_try) 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5936 emacs_cv_void_star=yes
5937 else
5938 echo "$as_me: failed program was:" >&5
5939 cat conftest.$ac_ext >&5
5940 emacs_cv_void_star=no
5942 rm -f conftest.$ac_objext conftest.$ac_ext
5944 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
5945 echo "${ECHO_T}$emacs_cv_void_star" >&6
5946 if test $emacs_cv_void_star = yes; then
5947 cat >>confdefs.h <<\_ACEOF
5948 #define POINTER_TYPE void
5949 _ACEOF
5951 else
5952 cat >>confdefs.h <<\_ACEOF
5953 #define POINTER_TYPE char
5954 _ACEOF
5959 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
5960 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5961 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5962 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965 cat >conftest.make <<\_ACEOF
5966 all:
5967 @echo 'ac_maketemp="${MAKE}"'
5968 _ACEOF
5969 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5970 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5971 if test -n "$ac_maketemp"; then
5972 eval ac_cv_prog_make_${ac_make}_set=yes
5973 else
5974 eval ac_cv_prog_make_${ac_make}_set=no
5976 rm -f conftest.make
5978 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5979 echo "$as_me:$LINENO: result: yes" >&5
5980 echo "${ECHO_T}yes" >&6
5981 SET_MAKE=
5982 else
5983 echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6
5985 SET_MAKE="MAKE=${MAKE-make}"
5989 echo "$as_me:$LINENO: checking for long file names" >&5
5990 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5991 if test "${ac_cv_sys_long_file_names+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994 ac_cv_sys_long_file_names=yes
5995 # Test for long file names in all the places we know might matter:
5996 # . the current directory, where building will happen
5997 # $prefix/lib where we will be installing things
5998 # $exec_prefix/lib likewise
5999 # eval it to expand exec_prefix.
6000 # $TMPDIR if set, where it might want to write temporary files
6001 # if $TMPDIR is not set:
6002 # /tmp where it might want to write temporary files
6003 # /var/tmp likewise
6004 # /usr/tmp likewise
6005 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6006 ac_tmpdirs=$TMPDIR
6007 else
6008 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6010 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6011 test -d $ac_dir || continue
6012 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6013 ac_xdir=$ac_dir/cf$$
6014 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6015 ac_tf1=$ac_xdir/conftest9012345
6016 ac_tf2=$ac_xdir/conftest9012346
6017 (echo 1 >$ac_tf1) 2>/dev/null
6018 (echo 2 >$ac_tf2) 2>/dev/null
6019 ac_val=`cat $ac_tf1 2>/dev/null`
6020 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6021 ac_cv_sys_long_file_names=no
6022 rm -rf $ac_xdir 2>/dev/null
6023 break
6025 rm -rf $ac_xdir 2>/dev/null
6026 done
6028 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6029 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6030 if test $ac_cv_sys_long_file_names = yes; then
6032 cat >>confdefs.h <<\_ACEOF
6033 #define HAVE_LONG_FILE_NAMES 1
6034 _ACEOF
6039 if test "$gamedir" = no; then :
6040 else
6041 echo "$as_me:$LINENO: checking for access to game group \"$gameuser\"" >&5
6042 echo $ECHO_N "checking for access to game group \"$gameuser\"... $ECHO_C" >&6
6043 rm -f conf$$chown.file
6044 touch conf$$chown.file
6045 if chown "$gameuser" conf$$chown.file 1>/dev/null 2>&1; then
6046 echo "$as_me:$LINENO: result: yes" >&5
6047 echo "${ECHO_T}yes" >&6
6048 if test "$gamedir" = "yes"; then
6049 gamedir="${localstatedir}/games/emacs"
6051 eval tgamedir=\"$gamedir\"
6053 cat >>confdefs.h <<_ACEOF
6054 #define HAVE_SHARED_GAME_DIR "$tgamedir"
6055 _ACEOF
6057 else
6058 echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6
6060 gamedir=no
6063 #### Choose a window system.
6065 echo "$as_me:$LINENO: checking for X" >&5
6066 echo $ECHO_N "checking for X... $ECHO_C" >&6
6069 # Check whether --with-x or --without-x was given.
6070 if test "${with_x+set}" = set; then
6071 withval="$with_x"
6074 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6075 if test "x$with_x" = xno; then
6076 # The user explicitly disabled X.
6077 have_x=disabled
6078 else
6079 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6080 # Both variables are already set.
6081 have_x=yes
6082 else
6083 if test "${ac_cv_have_x+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086 # One or both of the vars are not set, and there is no cached value.
6087 ac_x_includes=no ac_x_libraries=no
6088 rm -fr conftest.dir
6089 if mkdir conftest.dir; then
6090 cd conftest.dir
6091 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6092 cat >Imakefile <<'_ACEOF'
6093 acfindx:
6094 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6095 _ACEOF
6096 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6097 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6098 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6099 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6100 for ac_extension in a so sl; do
6101 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6102 test -f $ac_im_libdir/libX11.$ac_extension; then
6103 ac_im_usrlibdir=$ac_im_libdir; break
6105 done
6106 # Screen out bogus values from the imake configuration. They are
6107 # bogus both because they are the default anyway, and because
6108 # using them would break gcc on systems where it needs fixed includes.
6109 case $ac_im_incroot in
6110 /usr/include) ;;
6111 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6112 esac
6113 case $ac_im_usrlibdir in
6114 /usr/lib | /lib) ;;
6115 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6116 esac
6118 cd ..
6119 rm -fr conftest.dir
6122 # Standard set of common directories for X headers.
6123 # Check X11 before X11Rn because it is often a symlink to the current release.
6124 ac_x_header_dirs='
6125 /usr/X11/include
6126 /usr/X11R6/include
6127 /usr/X11R5/include
6128 /usr/X11R4/include
6130 /usr/include/X11
6131 /usr/include/X11R6
6132 /usr/include/X11R5
6133 /usr/include/X11R4
6135 /usr/local/X11/include
6136 /usr/local/X11R6/include
6137 /usr/local/X11R5/include
6138 /usr/local/X11R4/include
6140 /usr/local/include/X11
6141 /usr/local/include/X11R6
6142 /usr/local/include/X11R5
6143 /usr/local/include/X11R4
6145 /usr/X386/include
6146 /usr/x386/include
6147 /usr/XFree86/include/X11
6149 /usr/include
6150 /usr/local/include
6151 /usr/unsupported/include
6152 /usr/athena/include
6153 /usr/local/x11r5/include
6154 /usr/lpp/Xamples/include
6156 /usr/openwin/include
6157 /usr/openwin/share/include'
6159 if test "$ac_x_includes" = no; then
6160 # Guess where to find include files, by looking for Intrinsic.h.
6161 # First, try using that file with no special directory specified.
6162 cat >conftest.$ac_ext <<_ACEOF
6163 #line $LINENO "configure"
6164 #include "confdefs.h"
6165 #include <X11/Intrinsic.h>
6166 _ACEOF
6167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6169 ac_status=$?
6170 egrep -v '^ *\+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } >/dev/null; then
6175 if test -s conftest.err; then
6176 ac_cpp_err=$ac_c_preproc_warn_flag
6177 else
6178 ac_cpp_err=
6180 else
6181 ac_cpp_err=yes
6183 if test -z "$ac_cpp_err"; then
6184 # We can compile using X headers with no special include directory.
6185 ac_x_includes=
6186 else
6187 echo "$as_me: failed program was:" >&5
6188 cat conftest.$ac_ext >&5
6189 for ac_dir in $ac_x_header_dirs; do
6190 if test -r "$ac_dir/X11/Intrinsic.h"; then
6191 ac_x_includes=$ac_dir
6192 break
6194 done
6196 rm -f conftest.err conftest.$ac_ext
6197 fi # $ac_x_includes = no
6199 if test "$ac_x_libraries" = no; then
6200 # Check for the libraries.
6201 # See if we find them without any special options.
6202 # Don't add to $LIBS permanently.
6203 ac_save_LIBS=$LIBS
6204 LIBS="-lXt $LIBS"
6205 cat >conftest.$ac_ext <<_ACEOF
6206 #line $LINENO "configure"
6207 #include "confdefs.h"
6208 #include <X11/Intrinsic.h>
6209 #ifdef F77_DUMMY_MAIN
6210 # ifdef __cplusplus
6211 extern "C"
6212 # endif
6213 int F77_DUMMY_MAIN() { return 1; }
6214 #endif
6216 main ()
6218 XtMalloc (0)
6220 return 0;
6222 _ACEOF
6223 rm -f conftest.$ac_objext conftest$ac_exeext
6224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6225 (eval $ac_link) 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try='test -s conftest$ac_exeext'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231 (eval $ac_try) 2>&5
6232 ac_status=$?
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; }; then
6235 LIBS=$ac_save_LIBS
6236 # We can link X programs with no special library path.
6237 ac_x_libraries=
6238 else
6239 echo "$as_me: failed program was:" >&5
6240 cat conftest.$ac_ext >&5
6241 LIBS=$ac_save_LIBS
6242 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6244 # Don't even attempt the hair of trying to link an X program!
6245 for ac_extension in a so sl; do
6246 if test -r $ac_dir/libXt.$ac_extension; then
6247 ac_x_libraries=$ac_dir
6248 break 2
6250 done
6251 done
6253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6254 fi # $ac_x_libraries = no
6256 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6257 # Didn't find X anywhere. Cache the known absence of X.
6258 ac_cv_have_x="have_x=no"
6259 else
6260 # Record where we found X for the cache.
6261 ac_cv_have_x="have_x=yes \
6262 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6267 eval "$ac_cv_have_x"
6268 fi # $with_x != no
6270 if test "$have_x" != yes; then
6271 echo "$as_me:$LINENO: result: $have_x" >&5
6272 echo "${ECHO_T}$have_x" >&6
6273 no_x=yes
6274 else
6275 # If each of the values was on the command line, it overrides each guess.
6276 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6277 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6278 # Update the cache value to reflect the command line values.
6279 ac_cv_have_x="have_x=yes \
6280 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6281 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6282 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6285 if test "$no_x" = yes; then
6286 window_system=none
6287 else
6288 window_system=x11
6291 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6292 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6293 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6294 x_default_search_path=""
6295 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6296 x_search_path="\
6297 ${x_library}/X11/%L/%T/%N%C%S:\
6298 ${x_library}/X11/%l/%T/%N%C%S:\
6299 ${x_library}/X11/%T/%N%C%S:\
6300 ${x_library}/X11/%L/%T/%N%S:\
6301 ${x_library}/X11/%l/%T/%N%S:\
6302 ${x_library}/X11/%T/%N%S"
6303 if test x"${x_default_search_path}" = x; then
6304 x_default_search_path=${x_search_path}
6305 else
6306 x_default_search_path="${x_search_path}:${x_default_search_path}"
6308 done
6310 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6311 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6314 if test x"${x_includes}" = x; then
6315 bitmapdir=/usr/include/X11/bitmaps
6316 else
6317 # accumulate include directories that have X11 bitmap subdirectories
6318 bmd_acc="dummyval"
6319 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6320 if test -d "${bmd}/X11/bitmaps"; then
6321 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6323 if test -d "${bmd}/bitmaps"; then
6324 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6326 done
6327 if test ${bmd_acc} != "dummyval"; then
6328 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6332 case "${window_system}" in
6333 x11 )
6334 HAVE_X_WINDOWS=yes
6335 HAVE_X11=yes
6336 case "${with_x_toolkit}" in
6337 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6338 motif ) USE_X_TOOLKIT=MOTIF ;;
6339 no ) USE_X_TOOLKIT=none ;;
6340 * ) USE_X_TOOLKIT=maybe ;;
6341 esac
6343 none )
6344 HAVE_X_WINDOWS=no
6345 HAVE_X11=no
6346 USE_X_TOOLKIT=none
6348 esac
6350 ### If we're using X11, we should use the X menu package.
6351 HAVE_MENUS=no
6352 case ${HAVE_X11} in
6353 yes ) HAVE_MENUS=yes ;;
6354 esac
6356 if test "${opsys}" = "hpux9"; then
6357 case "${x_libraries}" in
6358 *X11R4* )
6359 opsysfile="s/hpux9-x11r4.h"
6361 esac
6364 if test "${opsys}" = "hpux9shr"; then
6365 case "${x_libraries}" in
6366 *X11R4* )
6367 opsysfile="s/hpux9shxr4.h"
6369 esac
6372 ### Compute the unexec source name from the object name.
6373 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6375 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6376 # Assume not, until told otherwise.
6377 GNU_MALLOC=yes
6378 doug_lea_malloc=yes
6379 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6380 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6381 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384 cat >conftest.$ac_ext <<_ACEOF
6385 #line $LINENO "configure"
6386 #include "confdefs.h"
6387 /* System header to define __stub macros and hopefully few prototypes,
6388 which can conflict with char malloc_get_state (); below. */
6389 #include <assert.h>
6390 /* Override any gcc2 internal prototype to avoid an error. */
6391 #ifdef __cplusplus
6392 extern "C"
6393 #endif
6394 /* We use char because int might match the return type of a gcc2
6395 builtin and then its argument prototype would still apply. */
6396 char malloc_get_state ();
6397 char (*f) ();
6399 #ifdef F77_DUMMY_MAIN
6400 # ifdef __cplusplus
6401 extern "C"
6402 # endif
6403 int F77_DUMMY_MAIN() { return 1; }
6404 #endif
6406 main ()
6408 /* The GNU C library defines this for functions which it implements
6409 to always fail with ENOSYS. Some functions are actually named
6410 something starting with __ and the normal name is an alias. */
6411 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6412 choke me
6413 #else
6414 f = malloc_get_state;
6415 #endif
6418 return 0;
6420 _ACEOF
6421 rm -f conftest.$ac_objext conftest$ac_exeext
6422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6423 (eval $ac_link) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try='test -s conftest$ac_exeext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 ac_cv_func_malloc_get_state=yes
6434 else
6435 echo "$as_me: failed program was:" >&5
6436 cat conftest.$ac_ext >&5
6437 ac_cv_func_malloc_get_state=no
6439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6441 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6442 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6443 if test $ac_cv_func_malloc_get_state = yes; then
6445 else
6446 doug_lea_malloc=no
6449 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6450 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6451 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
6454 cat >conftest.$ac_ext <<_ACEOF
6455 #line $LINENO "configure"
6456 #include "confdefs.h"
6457 /* System header to define __stub macros and hopefully few prototypes,
6458 which can conflict with char malloc_set_state (); below. */
6459 #include <assert.h>
6460 /* Override any gcc2 internal prototype to avoid an error. */
6461 #ifdef __cplusplus
6462 extern "C"
6463 #endif
6464 /* We use char because int might match the return type of a gcc2
6465 builtin and then its argument prototype would still apply. */
6466 char malloc_set_state ();
6467 char (*f) ();
6469 #ifdef F77_DUMMY_MAIN
6470 # ifdef __cplusplus
6471 extern "C"
6472 # endif
6473 int F77_DUMMY_MAIN() { return 1; }
6474 #endif
6476 main ()
6478 /* The GNU C library defines this for functions which it implements
6479 to always fail with ENOSYS. Some functions are actually named
6480 something starting with __ and the normal name is an alias. */
6481 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6482 choke me
6483 #else
6484 f = malloc_set_state;
6485 #endif
6488 return 0;
6490 _ACEOF
6491 rm -f conftest.$ac_objext conftest$ac_exeext
6492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6493 (eval $ac_link) 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
6497 { ac_try='test -s conftest$ac_exeext'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 (eval $ac_try) 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
6503 ac_cv_func_malloc_set_state=yes
6504 else
6505 echo "$as_me: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6507 ac_cv_func_malloc_set_state=no
6509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6511 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6512 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6513 if test $ac_cv_func_malloc_set_state = yes; then
6515 else
6516 doug_lea_malloc=no
6519 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
6520 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
6521 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6526 #include "confdefs.h"
6527 extern void (* __after_morecore_hook)();
6528 #ifdef F77_DUMMY_MAIN
6529 # ifdef __cplusplus
6530 extern "C"
6531 # endif
6532 int F77_DUMMY_MAIN() { return 1; }
6533 #endif
6535 main ()
6537 __after_morecore_hook = 0
6539 return 0;
6541 _ACEOF
6542 rm -f conftest.$ac_objext conftest$ac_exeext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6544 (eval $ac_link) 2>&5
6545 ac_status=$?
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } &&
6548 { ac_try='test -s conftest$ac_exeext'
6549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550 (eval $ac_try) 2>&5
6551 ac_status=$?
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; }; then
6554 emacs_cv_var___after_morecore_hook=yes
6555 else
6556 echo "$as_me: failed program was:" >&5
6557 cat conftest.$ac_ext >&5
6558 emacs_cv_var___after_morecore_hook=no
6560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6562 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
6563 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
6564 if test $emacs_cv_var___after_morecore_hook = no; then
6565 doug_lea_malloc=no
6567 if test "${system_malloc}" = "yes"; then
6568 GNU_MALLOC=no
6569 GNU_MALLOC_reason="
6570 (The GNU allocators don't work with this system configuration.)"
6572 if test "$doug_lea_malloc" = "yes" ; then
6573 if test "$GNU_MALLOC" = yes ; then
6574 GNU_MALLOC_reason="
6575 (Using Doug Lea's new malloc from the GNU C Library.)"
6578 cat >>confdefs.h <<\_ACEOF
6579 #define DOUG_LEA_MALLOC 1
6580 _ACEOF
6584 if test x"${REL_ALLOC}" = x; then
6585 REL_ALLOC=${GNU_MALLOC}
6591 for ac_header in stdlib.h unistd.h
6593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6595 echo "$as_me:$LINENO: checking for $ac_header" >&5
6596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6602 else
6603 # Is the header compilable?
6604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6606 cat >conftest.$ac_ext <<_ACEOF
6607 #line $LINENO "configure"
6608 #include "confdefs.h"
6609 $ac_includes_default
6610 #include <$ac_header>
6611 _ACEOF
6612 rm -f conftest.$ac_objext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6614 (eval $ac_compile) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } &&
6618 { ac_try='test -s conftest.$ac_objext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 (eval $ac_try) 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6624 ac_header_compiler=yes
6625 else
6626 echo "$as_me: failed program was:" >&5
6627 cat conftest.$ac_ext >&5
6628 ac_header_compiler=no
6630 rm -f conftest.$ac_objext conftest.$ac_ext
6631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6632 echo "${ECHO_T}$ac_header_compiler" >&6
6634 # Is the header present?
6635 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6637 cat >conftest.$ac_ext <<_ACEOF
6638 #line $LINENO "configure"
6639 #include "confdefs.h"
6640 #include <$ac_header>
6641 _ACEOF
6642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6644 ac_status=$?
6645 egrep -v '^ *\+' conftest.er1 >conftest.err
6646 rm -f conftest.er1
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } >/dev/null; then
6650 if test -s conftest.err; then
6651 ac_cpp_err=$ac_c_preproc_warn_flag
6652 else
6653 ac_cpp_err=
6655 else
6656 ac_cpp_err=yes
6658 if test -z "$ac_cpp_err"; then
6659 ac_header_preproc=yes
6660 else
6661 echo "$as_me: failed program was:" >&5
6662 cat conftest.$ac_ext >&5
6663 ac_header_preproc=no
6665 rm -f conftest.err conftest.$ac_ext
6666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6667 echo "${ECHO_T}$ac_header_preproc" >&6
6669 # So? What about this header?
6670 case $ac_header_compiler:$ac_header_preproc in
6671 yes:no )
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6676 no:yes )
6677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6683 esac
6684 echo "$as_me:$LINENO: checking for $ac_header" >&5
6685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689 eval "$as_ac_Header=$ac_header_preproc"
6691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6696 cat >>confdefs.h <<_ACEOF
6697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6698 _ACEOF
6702 done
6705 for ac_func in getpagesize
6707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6708 echo "$as_me:$LINENO: checking for $ac_func" >&5
6709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6710 if eval "test \"\${$as_ac_var+set}\" = set"; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713 cat >conftest.$ac_ext <<_ACEOF
6714 #line $LINENO "configure"
6715 #include "confdefs.h"
6716 /* System header to define __stub macros and hopefully few prototypes,
6717 which can conflict with char $ac_func (); below. */
6718 #include <assert.h>
6719 /* Override any gcc2 internal prototype to avoid an error. */
6720 #ifdef __cplusplus
6721 extern "C"
6722 #endif
6723 /* We use char because int might match the return type of a gcc2
6724 builtin and then its argument prototype would still apply. */
6725 char $ac_func ();
6726 char (*f) ();
6728 #ifdef F77_DUMMY_MAIN
6729 # ifdef __cplusplus
6730 extern "C"
6731 # endif
6732 int F77_DUMMY_MAIN() { return 1; }
6733 #endif
6735 main ()
6737 /* The GNU C library defines this for functions which it implements
6738 to always fail with ENOSYS. Some functions are actually named
6739 something starting with __ and the normal name is an alias. */
6740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6741 choke me
6742 #else
6743 f = $ac_func;
6744 #endif
6747 return 0;
6749 _ACEOF
6750 rm -f conftest.$ac_objext conftest$ac_exeext
6751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6752 (eval $ac_link) 2>&5
6753 ac_status=$?
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } &&
6756 { ac_try='test -s conftest$ac_exeext'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 (eval $ac_try) 2>&5
6759 ac_status=$?
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; }; then
6762 eval "$as_ac_var=yes"
6763 else
6764 echo "$as_me: failed program was:" >&5
6765 cat conftest.$ac_ext >&5
6766 eval "$as_ac_var=no"
6768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6772 if test `eval echo '${'$as_ac_var'}'` = yes; then
6773 cat >>confdefs.h <<_ACEOF
6774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6775 _ACEOF
6778 done
6780 echo "$as_me:$LINENO: checking for working mmap" >&5
6781 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6782 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 else
6785 if test "$cross_compiling" = yes; then
6786 ac_cv_func_mmap_fixed_mapped=no
6787 else
6788 cat >conftest.$ac_ext <<_ACEOF
6789 #line $LINENO "configure"
6790 #include "confdefs.h"
6791 $ac_includes_default
6792 /* malloc might have been renamed as rpl_malloc. */
6793 #undef malloc
6795 /* Thanks to Mike Haertel and Jim Avera for this test.
6796 Here is a matrix of mmap possibilities:
6797 mmap private not fixed
6798 mmap private fixed at somewhere currently unmapped
6799 mmap private fixed at somewhere already mapped
6800 mmap shared not fixed
6801 mmap shared fixed at somewhere currently unmapped
6802 mmap shared fixed at somewhere already mapped
6803 For private mappings, we should verify that changes cannot be read()
6804 back from the file, nor mmap's back from the file at a different
6805 address. (There have been systems where private was not correctly
6806 implemented like the infamous i386 svr4.0, and systems where the
6807 VM page cache was not coherent with the file system buffer cache
6808 like early versions of FreeBSD and possibly contemporary NetBSD.)
6809 For shared mappings, we should conversely verify that changes get
6810 propagated back to all the places they're supposed to be.
6812 Grep wants private fixed already mapped.
6813 The main things grep needs to know about mmap are:
6814 * does it exist and is it safe to write into the mmap'd area
6815 * how to use it (BSD variants) */
6817 #include <fcntl.h>
6818 #include <sys/mman.h>
6820 #if !STDC_HEADERS && !HAVE_STDLIB_H
6821 char *malloc ();
6822 #endif
6824 /* This mess was copied from the GNU getpagesize.h. */
6825 #if !HAVE_GETPAGESIZE
6826 /* Assume that all systems that can run configure have sys/param.h. */
6827 # if !HAVE_SYS_PARAM_H
6828 # define HAVE_SYS_PARAM_H 1
6829 # endif
6831 # ifdef _SC_PAGESIZE
6832 # define getpagesize() sysconf(_SC_PAGESIZE)
6833 # else /* no _SC_PAGESIZE */
6834 # if HAVE_SYS_PARAM_H
6835 # include <sys/param.h>
6836 # ifdef EXEC_PAGESIZE
6837 # define getpagesize() EXEC_PAGESIZE
6838 # else /* no EXEC_PAGESIZE */
6839 # ifdef NBPG
6840 # define getpagesize() NBPG * CLSIZE
6841 # ifndef CLSIZE
6842 # define CLSIZE 1
6843 # endif /* no CLSIZE */
6844 # else /* no NBPG */
6845 # ifdef NBPC
6846 # define getpagesize() NBPC
6847 # else /* no NBPC */
6848 # ifdef PAGESIZE
6849 # define getpagesize() PAGESIZE
6850 # endif /* PAGESIZE */
6851 # endif /* no NBPC */
6852 # endif /* no NBPG */
6853 # endif /* no EXEC_PAGESIZE */
6854 # else /* no HAVE_SYS_PARAM_H */
6855 # define getpagesize() 8192 /* punt totally */
6856 # endif /* no HAVE_SYS_PARAM_H */
6857 # endif /* no _SC_PAGESIZE */
6859 #endif /* no HAVE_GETPAGESIZE */
6862 main ()
6864 char *data, *data2, *data3;
6865 int i, pagesize;
6866 int fd;
6868 pagesize = getpagesize ();
6870 /* First, make a file with some known garbage in it. */
6871 data = (char *) malloc (pagesize);
6872 if (!data)
6873 exit (1);
6874 for (i = 0; i < pagesize; ++i)
6875 *(data + i) = rand ();
6876 umask (0);
6877 fd = creat ("conftest.mmap", 0600);
6878 if (fd < 0)
6879 exit (1);
6880 if (write (fd, data, pagesize) != pagesize)
6881 exit (1);
6882 close (fd);
6884 /* Next, try to mmap the file at a fixed address which already has
6885 something else allocated at it. If we can, also make sure that
6886 we see the same garbage. */
6887 fd = open ("conftest.mmap", O_RDWR);
6888 if (fd < 0)
6889 exit (1);
6890 data2 = (char *) malloc (2 * pagesize);
6891 if (!data2)
6892 exit (1);
6893 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6894 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6895 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6896 exit (1);
6897 for (i = 0; i < pagesize; ++i)
6898 if (*(data + i) != *(data2 + i))
6899 exit (1);
6901 /* Finally, make sure that changes to the mapped area do not
6902 percolate back to the file as seen by read(). (This is a bug on
6903 some variants of i386 svr4.0.) */
6904 for (i = 0; i < pagesize; ++i)
6905 *(data2 + i) = *(data2 + i) + 1;
6906 data3 = (char *) malloc (pagesize);
6907 if (!data3)
6908 exit (1);
6909 if (read (fd, data3, pagesize) != pagesize)
6910 exit (1);
6911 for (i = 0; i < pagesize; ++i)
6912 if (*(data + i) != *(data3 + i))
6913 exit (1);
6914 close (fd);
6915 exit (0);
6917 _ACEOF
6918 rm -f conftest$ac_exeext
6919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6920 (eval $ac_link) 2>&5
6921 ac_status=$?
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 (eval $ac_try) 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6929 ac_cv_func_mmap_fixed_mapped=yes
6930 else
6931 echo "$as_me: program exited with status $ac_status" >&5
6932 echo "$as_me: failed program was:" >&5
6933 cat conftest.$ac_ext >&5
6934 ( exit $ac_status )
6935 ac_cv_func_mmap_fixed_mapped=no
6937 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6940 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6941 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6942 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6944 cat >>confdefs.h <<\_ACEOF
6945 #define HAVE_MMAP 1
6946 _ACEOF
6949 rm -f conftest.mmap
6951 if test $use_mmap_for_buffers = yes; then
6952 REL_ALLOC=no
6955 LIBS="$libsrc_libs $LIBS"
6958 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6959 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6960 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963 ac_check_lib_save_LIBS=$LIBS
6964 LIBS="-ldnet $LIBS"
6965 cat >conftest.$ac_ext <<_ACEOF
6966 #line $LINENO "configure"
6967 #include "confdefs.h"
6969 /* Override any gcc2 internal prototype to avoid an error. */
6970 #ifdef __cplusplus
6971 extern "C"
6972 #endif
6973 /* We use char because int might match the return type of a gcc2
6974 builtin and then its argument prototype would still apply. */
6975 char dnet_ntoa ();
6976 #ifdef F77_DUMMY_MAIN
6977 # ifdef __cplusplus
6978 extern "C"
6979 # endif
6980 int F77_DUMMY_MAIN() { return 1; }
6981 #endif
6983 main ()
6985 dnet_ntoa ();
6987 return 0;
6989 _ACEOF
6990 rm -f conftest.$ac_objext conftest$ac_exeext
6991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6992 (eval $ac_link) 2>&5
6993 ac_status=$?
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try='test -s conftest$ac_exeext'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 (eval $ac_try) 2>&5
6999 ac_status=$?
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 ac_cv_lib_dnet_dnet_ntoa=yes
7003 else
7004 echo "$as_me: failed program was:" >&5
7005 cat conftest.$ac_ext >&5
7006 ac_cv_lib_dnet_dnet_ntoa=no
7008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7009 LIBS=$ac_check_lib_save_LIBS
7011 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7012 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7013 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7014 cat >>confdefs.h <<_ACEOF
7015 #define HAVE_LIBDNET 1
7016 _ACEOF
7018 LIBS="-ldnet $LIBS"
7023 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7024 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7025 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028 ac_check_lib_save_LIBS=$LIBS
7029 LIBS="-lXbsd $LIBS"
7030 cat >conftest.$ac_ext <<_ACEOF
7031 #line $LINENO "configure"
7032 #include "confdefs.h"
7035 #ifdef F77_DUMMY_MAIN
7036 # ifdef __cplusplus
7037 extern "C"
7038 # endif
7039 int F77_DUMMY_MAIN() { return 1; }
7040 #endif
7042 main ()
7044 main ();
7046 return 0;
7048 _ACEOF
7049 rm -f conftest.$ac_objext conftest$ac_exeext
7050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7051 (eval $ac_link) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } &&
7055 { ac_try='test -s conftest$ac_exeext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 (eval $ac_try) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 ac_cv_lib_Xbsd_main=yes
7062 else
7063 echo "$as_me: failed program was:" >&5
7064 cat conftest.$ac_ext >&5
7065 ac_cv_lib_Xbsd_main=no
7067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7068 LIBS=$ac_check_lib_save_LIBS
7070 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7071 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7072 if test $ac_cv_lib_Xbsd_main = yes; then
7073 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7078 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7079 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7080 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083 ac_check_lib_save_LIBS=$LIBS
7084 LIBS="-lpthreads $LIBS"
7085 cat >conftest.$ac_ext <<_ACEOF
7086 #line $LINENO "configure"
7087 #include "confdefs.h"
7089 /* Override any gcc2 internal prototype to avoid an error. */
7090 #ifdef __cplusplus
7091 extern "C"
7092 #endif
7093 /* We use char because int might match the return type of a gcc2
7094 builtin and then its argument prototype would still apply. */
7095 char cma_open ();
7096 #ifdef F77_DUMMY_MAIN
7097 # ifdef __cplusplus
7098 extern "C"
7099 # endif
7100 int F77_DUMMY_MAIN() { return 1; }
7101 #endif
7103 main ()
7105 cma_open ();
7107 return 0;
7109 _ACEOF
7110 rm -f conftest.$ac_objext conftest$ac_exeext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7112 (eval $ac_link) 2>&5
7113 ac_status=$?
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try='test -s conftest$ac_exeext'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118 (eval $ac_try) 2>&5
7119 ac_status=$?
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; }; then
7122 ac_cv_lib_pthreads_cma_open=yes
7123 else
7124 echo "$as_me: failed program was:" >&5
7125 cat conftest.$ac_ext >&5
7126 ac_cv_lib_pthreads_cma_open=no
7128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7129 LIBS=$ac_check_lib_save_LIBS
7131 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7132 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7133 if test $ac_cv_lib_pthreads_cma_open = yes; then
7134 cat >>confdefs.h <<_ACEOF
7135 #define HAVE_LIBPTHREADS 1
7136 _ACEOF
7138 LIBS="-lpthreads $LIBS"
7143 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7144 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7145 if test -d /usr/X386/include; then
7146 HAVE_XFREE386=yes
7147 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7148 else
7149 HAVE_XFREE386=no
7151 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7152 echo "${ECHO_T}$HAVE_XFREE386" >&6
7154 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
7155 # for the tests that follow. We set it back to REAL_CFLAGS later on.
7157 REAL_CPPFLAGS="$CPPFLAGS"
7159 if test "${HAVE_X11}" = "yes"; then
7160 DEFS="$C_SWITCH_X_SITE $DEFS"
7161 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7162 LIBS="$LIBX $LIBS"
7163 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7164 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7166 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7167 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7168 # but it's more convenient here to set LD_RUN_PATH
7169 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7170 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7171 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7172 export LD_RUN_PATH
7175 if test "${opsys}" = "gnu-linux"; then
7176 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7177 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7178 cat >conftest.$ac_ext <<_ACEOF
7179 #line $LINENO "configure"
7180 #include "confdefs.h"
7182 #ifdef F77_DUMMY_MAIN
7183 # ifdef __cplusplus
7184 extern "C"
7185 # endif
7186 int F77_DUMMY_MAIN() { return 1; }
7187 #endif
7189 main ()
7191 XOpenDisplay ("foo");
7193 return 0;
7195 _ACEOF
7196 rm -f conftest.$ac_objext conftest$ac_exeext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7198 (eval $ac_link) 2>&5
7199 ac_status=$?
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } &&
7202 { ac_try='test -s conftest$ac_exeext'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 (eval $ac_try) 2>&5
7205 ac_status=$?
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; }; then
7208 xlinux_first_failure=no
7209 else
7210 echo "$as_me: failed program was:" >&5
7211 cat conftest.$ac_ext >&5
7212 xlinux_first_failure=yes
7214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7215 if test "${xlinux_first_failure}" = "yes"; then
7216 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7217 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7218 OLD_CPPFLAGS="$CPPFLAGS"
7219 OLD_LIBS="$LIBS"
7220 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7221 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7222 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7223 LIBS="$LIBS -b i486-linuxaout"
7224 cat >conftest.$ac_ext <<_ACEOF
7225 #line $LINENO "configure"
7226 #include "confdefs.h"
7228 #ifdef F77_DUMMY_MAIN
7229 # ifdef __cplusplus
7230 extern "C"
7231 # endif
7232 int F77_DUMMY_MAIN() { return 1; }
7233 #endif
7235 main ()
7237 XOpenDisplay ("foo");
7239 return 0;
7241 _ACEOF
7242 rm -f conftest.$ac_objext conftest$ac_exeext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7244 (eval $ac_link) 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } &&
7248 { ac_try='test -s conftest$ac_exeext'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 (eval $ac_try) 2>&5
7251 ac_status=$?
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; }; then
7254 xlinux_second_failure=no
7255 else
7256 echo "$as_me: failed program was:" >&5
7257 cat conftest.$ac_ext >&5
7258 xlinux_second_failure=yes
7260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7261 if test "${xlinux_second_failure}" = "yes"; then
7262 # If we get the same failure with -b, there is no use adding -b.
7263 # So take it out. This plays safe.
7264 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7265 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7266 CPPFLAGS="$OLD_CPPFLAGS"
7267 LIBS="$OLD_LIBS"
7268 echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7270 else
7271 echo "$as_me:$LINENO: result: yes" >&5
7272 echo "${ECHO_T}yes" >&6
7274 else
7275 echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6
7280 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7281 # header files included from there.
7282 echo "$as_me:$LINENO: checking for Xkb" >&5
7283 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7284 cat >conftest.$ac_ext <<_ACEOF
7285 #line $LINENO "configure"
7286 #include "confdefs.h"
7287 #include <X11/Xlib.h>
7288 #include <X11/XKBlib.h>
7289 #ifdef F77_DUMMY_MAIN
7290 # ifdef __cplusplus
7291 extern "C"
7292 # endif
7293 int F77_DUMMY_MAIN() { return 1; }
7294 #endif
7296 main ()
7298 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7300 return 0;
7302 _ACEOF
7303 rm -f conftest.$ac_objext conftest$ac_exeext
7304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7305 (eval $ac_link) 2>&5
7306 ac_status=$?
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try='test -s conftest$ac_exeext'
7310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 (eval $ac_try) 2>&5
7312 ac_status=$?
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); }; }; then
7315 emacs_xkb=yes
7316 else
7317 echo "$as_me: failed program was:" >&5
7318 cat conftest.$ac_ext >&5
7319 emacs_xkb=no
7321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7322 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7323 echo "${ECHO_T}$emacs_xkb" >&6
7324 if test $emacs_xkb = yes; then
7326 cat >>confdefs.h <<\_ACEOF
7327 #define HAVE_XKBGETKEYBOARD 1
7328 _ACEOF
7336 for ac_func in XrmSetDatabase XScreenResourceString \
7337 XScreenNumberOfScreen XSetWMProtocols
7339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7340 echo "$as_me:$LINENO: checking for $ac_func" >&5
7341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7342 if eval "test \"\${$as_ac_var+set}\" = set"; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345 cat >conftest.$ac_ext <<_ACEOF
7346 #line $LINENO "configure"
7347 #include "confdefs.h"
7348 /* System header to define __stub macros and hopefully few prototypes,
7349 which can conflict with char $ac_func (); below. */
7350 #include <assert.h>
7351 /* Override any gcc2 internal prototype to avoid an error. */
7352 #ifdef __cplusplus
7353 extern "C"
7354 #endif
7355 /* We use char because int might match the return type of a gcc2
7356 builtin and then its argument prototype would still apply. */
7357 char $ac_func ();
7358 char (*f) ();
7360 #ifdef F77_DUMMY_MAIN
7361 # ifdef __cplusplus
7362 extern "C"
7363 # endif
7364 int F77_DUMMY_MAIN() { return 1; }
7365 #endif
7367 main ()
7369 /* The GNU C library defines this for functions which it implements
7370 to always fail with ENOSYS. Some functions are actually named
7371 something starting with __ and the normal name is an alias. */
7372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7373 choke me
7374 #else
7375 f = $ac_func;
7376 #endif
7379 return 0;
7381 _ACEOF
7382 rm -f conftest.$ac_objext conftest$ac_exeext
7383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7384 (eval $ac_link) 2>&5
7385 ac_status=$?
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } &&
7388 { ac_try='test -s conftest$ac_exeext'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 (eval $ac_try) 2>&5
7391 ac_status=$?
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; }; then
7394 eval "$as_ac_var=yes"
7395 else
7396 echo "$as_me: failed program was:" >&5
7397 cat conftest.$ac_ext >&5
7398 eval "$as_ac_var=no"
7400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7404 if test `eval echo '${'$as_ac_var'}'` = yes; then
7405 cat >>confdefs.h <<_ACEOF
7406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7407 _ACEOF
7410 done
7414 if test "${window_system}" = "x11"; then
7415 echo "$as_me:$LINENO: checking X11 version 6" >&5
7416 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7417 if test "${emacs_cv_x11_version_6+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420 cat >conftest.$ac_ext <<_ACEOF
7421 #line $LINENO "configure"
7422 #include "confdefs.h"
7423 #include <X11/Xlib.h>
7424 #ifdef F77_DUMMY_MAIN
7425 # ifdef __cplusplus
7426 extern "C"
7427 # endif
7428 int F77_DUMMY_MAIN() { return 1; }
7429 #endif
7431 main ()
7433 #if XlibSpecificationRelease < 6
7434 fail;
7435 #endif
7438 return 0;
7440 _ACEOF
7441 rm -f conftest.$ac_objext conftest$ac_exeext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443 (eval $ac_link) 2>&5
7444 ac_status=$?
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } &&
7447 { ac_try='test -s conftest$ac_exeext'
7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449 (eval $ac_try) 2>&5
7450 ac_status=$?
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; }; then
7453 emacs_cv_x11_version_6=yes
7454 else
7455 echo "$as_me: failed program was:" >&5
7456 cat conftest.$ac_ext >&5
7457 emacs_cv_x11_version_6=no
7459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7462 if test $emacs_cv_x11_version_6 = yes; then
7463 echo "$as_me:$LINENO: result: 6 or newer" >&5
7464 echo "${ECHO_T}6 or newer" >&6
7466 cat >>confdefs.h <<\_ACEOF
7467 #define HAVE_X11R6 1
7468 _ACEOF
7470 else
7471 echo "$as_me:$LINENO: result: before 6" >&5
7472 echo "${ECHO_T}before 6" >&6
7476 if test "${window_system}" = "x11"; then
7477 echo "$as_me:$LINENO: checking X11 version 5" >&5
7478 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
7479 if test "${emacs_cv_x11_version_5+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 else
7482 cat >conftest.$ac_ext <<_ACEOF
7483 #line $LINENO "configure"
7484 #include "confdefs.h"
7485 #include <X11/Xlib.h>
7486 #ifdef F77_DUMMY_MAIN
7487 # ifdef __cplusplus
7488 extern "C"
7489 # endif
7490 int F77_DUMMY_MAIN() { return 1; }
7491 #endif
7493 main ()
7495 #if XlibSpecificationRelease < 5
7496 fail;
7497 #endif
7500 return 0;
7502 _ACEOF
7503 rm -f conftest.$ac_objext conftest$ac_exeext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7505 (eval $ac_link) 2>&5
7506 ac_status=$?
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try='test -s conftest$ac_exeext'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 (eval $ac_try) 2>&5
7512 ac_status=$?
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; }; then
7515 emacs_cv_x11_version_5=yes
7516 else
7517 echo "$as_me: failed program was:" >&5
7518 cat conftest.$ac_ext >&5
7519 emacs_cv_x11_version_5=no
7521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7524 if test $emacs_cv_x11_version_5 = yes; then
7525 echo "$as_me:$LINENO: result: 5 or newer" >&5
7526 echo "${ECHO_T}5 or newer" >&6
7527 HAVE_X11R5=yes
7529 cat >>confdefs.h <<\_ACEOF
7530 #define HAVE_X11R5 1
7531 _ACEOF
7533 else
7534 HAVE_X11R5=no
7535 echo "$as_me:$LINENO: result: before 5" >&5
7536 echo "${ECHO_T}before 5" >&6
7540 if test x"${USE_X_TOOLKIT}" = xmaybe; then
7541 if test x"${HAVE_X11R5}" = xyes; then
7542 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
7543 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
7544 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547 cat >conftest.$ac_ext <<_ACEOF
7548 #line $LINENO "configure"
7549 #include "confdefs.h"
7551 #include <X11/Intrinsic.h>
7552 #include <X11/Xaw/Simple.h>
7553 #ifdef F77_DUMMY_MAIN
7554 # ifdef __cplusplus
7555 extern "C"
7556 # endif
7557 int F77_DUMMY_MAIN() { return 1; }
7558 #endif
7560 main ()
7564 return 0;
7566 _ACEOF
7567 rm -f conftest.$ac_objext conftest$ac_exeext
7568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7569 (eval $ac_link) 2>&5
7570 ac_status=$?
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); } &&
7573 { ac_try='test -s conftest$ac_exeext'
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 (eval $ac_try) 2>&5
7576 ac_status=$?
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; }; then
7579 emacs_cv_x11_version_5_with_xaw=yes
7580 else
7581 echo "$as_me: failed program was:" >&5
7582 cat conftest.$ac_ext >&5
7583 emacs_cv_x11_version_5_with_xaw=no
7585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7588 if test $emacs_cv_x11_version_5_with_xaw = yes; then
7589 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
7590 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
7591 USE_X_TOOLKIT=LUCID
7592 else
7593 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
7594 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
7595 USE_X_TOOLKIT=none
7597 else
7598 USE_X_TOOLKIT=none
7602 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
7604 if test "${USE_X_TOOLKIT}" != "none"; then
7605 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
7606 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
7607 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610 cat >conftest.$ac_ext <<_ACEOF
7611 #line $LINENO "configure"
7612 #include "confdefs.h"
7613 #include <X11/Intrinsic.h>
7614 #ifdef F77_DUMMY_MAIN
7615 # ifdef __cplusplus
7616 extern "C"
7617 # endif
7618 int F77_DUMMY_MAIN() { return 1; }
7619 #endif
7621 main ()
7623 #if XtSpecificationRelease < 6
7624 fail;
7625 #endif
7628 return 0;
7630 _ACEOF
7631 rm -f conftest.$ac_objext conftest$ac_exeext
7632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7633 (eval $ac_link) 2>&5
7634 ac_status=$?
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } &&
7637 { ac_try='test -s conftest$ac_exeext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 (eval $ac_try) 2>&5
7640 ac_status=$?
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 emacs_cv_x11_toolkit_version_6=yes
7644 else
7645 echo "$as_me: failed program was:" >&5
7646 cat conftest.$ac_ext >&5
7647 emacs_cv_x11_toolkit_version_6=no
7649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7652 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
7653 if test $emacs_cv_x11_toolkit_version_6 = yes; then
7654 echo "$as_me:$LINENO: result: 6 or newer" >&5
7655 echo "${ECHO_T}6 or newer" >&6
7657 cat >>confdefs.h <<\_ACEOF
7658 #define HAVE_X11XTR6 1
7659 _ACEOF
7661 else
7662 echo "$as_me:$LINENO: result: before 6" >&5
7663 echo "${ECHO_T}before 6" >&6
7666 OLDLIBS="$LIBS"
7667 if test x$HAVE_X11XTR6 = xyes; then
7668 LIBS="-lXt -lSM -lICE $LIBS"
7669 else
7670 LIBS="-lXt $LIBS"
7673 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
7674 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
7675 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678 ac_check_lib_save_LIBS=$LIBS
7679 LIBS="-lXmu $LIBS"
7680 cat >conftest.$ac_ext <<_ACEOF
7681 #line $LINENO "configure"
7682 #include "confdefs.h"
7684 /* Override any gcc2 internal prototype to avoid an error. */
7685 #ifdef __cplusplus
7686 extern "C"
7687 #endif
7688 /* We use char because int might match the return type of a gcc2
7689 builtin and then its argument prototype would still apply. */
7690 char XmuConvertStandardSelection ();
7691 #ifdef F77_DUMMY_MAIN
7692 # ifdef __cplusplus
7693 extern "C"
7694 # endif
7695 int F77_DUMMY_MAIN() { return 1; }
7696 #endif
7698 main ()
7700 XmuConvertStandardSelection ();
7702 return 0;
7704 _ACEOF
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707 (eval $ac_link) 2>&5
7708 ac_status=$?
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } &&
7711 { ac_try='test -s conftest$ac_exeext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 (eval $ac_try) 2>&5
7714 ac_status=$?
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
7717 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
7718 else
7719 echo "$as_me: failed program was:" >&5
7720 cat conftest.$ac_ext >&5
7721 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
7723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7724 LIBS=$ac_check_lib_save_LIBS
7726 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
7727 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
7728 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
7729 cat >>confdefs.h <<_ACEOF
7730 #define HAVE_LIBXMU 1
7731 _ACEOF
7733 LIBS="-lXmu $LIBS"
7737 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
7740 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
7741 if test "${HAVE_X11}" = "yes"; then
7742 if test "${USE_X_TOOLKIT}" != "none"; then
7744 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7745 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7746 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749 ac_check_lib_save_LIBS=$LIBS
7750 LIBS="-lXext $LIBS"
7751 cat >conftest.$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7753 #include "confdefs.h"
7755 /* Override any gcc2 internal prototype to avoid an error. */
7756 #ifdef __cplusplus
7757 extern "C"
7758 #endif
7759 /* We use char because int might match the return type of a gcc2
7760 builtin and then its argument prototype would still apply. */
7761 char XShapeQueryExtension ();
7762 #ifdef F77_DUMMY_MAIN
7763 # ifdef __cplusplus
7764 extern "C"
7765 # endif
7766 int F77_DUMMY_MAIN() { return 1; }
7767 #endif
7769 main ()
7771 XShapeQueryExtension ();
7773 return 0;
7775 _ACEOF
7776 rm -f conftest.$ac_objext conftest$ac_exeext
7777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7778 (eval $ac_link) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } &&
7782 { ac_try='test -s conftest$ac_exeext'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 (eval $ac_try) 2>&5
7785 ac_status=$?
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; }; then
7788 ac_cv_lib_Xext_XShapeQueryExtension=yes
7789 else
7790 echo "$as_me: failed program was:" >&5
7791 cat conftest.$ac_ext >&5
7792 ac_cv_lib_Xext_XShapeQueryExtension=no
7794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7795 LIBS=$ac_check_lib_save_LIBS
7797 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7798 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7799 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7800 cat >>confdefs.h <<_ACEOF
7801 #define HAVE_LIBXEXT 1
7802 _ACEOF
7804 LIBS="-lXext $LIBS"
7811 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7812 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
7813 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
7814 if test "${emacs_cv_motif_version_2_1+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817 cat >conftest.$ac_ext <<_ACEOF
7818 #line $LINENO "configure"
7819 #include "confdefs.h"
7820 #include <Xm/Xm.h>
7821 #ifdef F77_DUMMY_MAIN
7822 # ifdef __cplusplus
7823 extern "C"
7824 # endif
7825 int F77_DUMMY_MAIN() { return 1; }
7826 #endif
7828 main ()
7830 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
7831 int x = 5;
7832 #else
7833 Motif version prior to 2.1.
7834 #endif
7836 return 0;
7838 _ACEOF
7839 rm -f conftest.$ac_objext
7840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7841 (eval $ac_compile) 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 emacs_cv_motif_version_2_1=yes
7852 else
7853 echo "$as_me: failed program was:" >&5
7854 cat conftest.$ac_ext >&5
7855 emacs_cv_motif_version_2_1=no
7857 rm -f conftest.$ac_objext conftest.$ac_ext
7859 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
7860 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
7861 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
7862 if test $emacs_cv_motif_version_2_1 = yes; then
7863 HAVE_LIBXP=no
7865 cat >>confdefs.h <<\_ACEOF
7866 #define HAVE_MOTIF_2_1 1
7867 _ACEOF
7869 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
7870 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
7871 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874 ac_check_lib_save_LIBS=$LIBS
7875 LIBS="-lXp $LIBS"
7876 cat >conftest.$ac_ext <<_ACEOF
7877 #line $LINENO "configure"
7878 #include "confdefs.h"
7880 /* Override any gcc2 internal prototype to avoid an error. */
7881 #ifdef __cplusplus
7882 extern "C"
7883 #endif
7884 /* We use char because int might match the return type of a gcc2
7885 builtin and then its argument prototype would still apply. */
7886 char XpCreateContext ();
7887 #ifdef F77_DUMMY_MAIN
7888 # ifdef __cplusplus
7889 extern "C"
7890 # endif
7891 int F77_DUMMY_MAIN() { return 1; }
7892 #endif
7894 main ()
7896 XpCreateContext ();
7898 return 0;
7900 _ACEOF
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>&5
7904 ac_status=$?
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try='test -s conftest$ac_exeext'
7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 (eval $ac_try) 2>&5
7910 ac_status=$?
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; }; then
7913 ac_cv_lib_Xp_XpCreateContext=yes
7914 else
7915 echo "$as_me: failed program was:" >&5
7916 cat conftest.$ac_ext >&5
7917 ac_cv_lib_Xp_XpCreateContext=no
7919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7920 LIBS=$ac_check_lib_save_LIBS
7922 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
7923 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
7924 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
7925 HAVE_LIBXP=yes
7928 if test ${HAVE_LIBXP} = yes; then
7930 cat >>confdefs.h <<\_ACEOF
7931 #define HAVE_LIBXP 1
7932 _ACEOF
7938 ### Is -lXaw3d available?
7939 HAVE_XAW3D=no
7940 if test "${HAVE_X11}" = "yes"; then
7941 if test "${USE_X_TOOLKIT}" != "none"; then
7942 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7943 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7944 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7945 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7949 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7950 else
7951 # Is the header compilable?
7952 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
7953 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
7954 cat >conftest.$ac_ext <<_ACEOF
7955 #line $LINENO "configure"
7956 #include "confdefs.h"
7957 $ac_includes_default
7958 #include <X11/Xaw3d/Scrollbar.h>
7959 _ACEOF
7960 rm -f conftest.$ac_objext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7962 (eval $ac_compile) 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try='test -s conftest.$ac_objext'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7972 ac_header_compiler=yes
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 cat conftest.$ac_ext >&5
7976 ac_header_compiler=no
7978 rm -f conftest.$ac_objext conftest.$ac_ext
7979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7980 echo "${ECHO_T}$ac_header_compiler" >&6
7982 # Is the header present?
7983 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
7984 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
7985 cat >conftest.$ac_ext <<_ACEOF
7986 #line $LINENO "configure"
7987 #include "confdefs.h"
7988 #include <X11/Xaw3d/Scrollbar.h>
7989 _ACEOF
7990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7992 ac_status=$?
7993 egrep -v '^ *\+' conftest.er1 >conftest.err
7994 rm -f conftest.er1
7995 cat conftest.err >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); } >/dev/null; then
7998 if test -s conftest.err; then
7999 ac_cpp_err=$ac_c_preproc_warn_flag
8000 else
8001 ac_cpp_err=
8003 else
8004 ac_cpp_err=yes
8006 if test -z "$ac_cpp_err"; then
8007 ac_header_preproc=yes
8008 else
8009 echo "$as_me: failed program was:" >&5
8010 cat conftest.$ac_ext >&5
8011 ac_header_preproc=no
8013 rm -f conftest.err conftest.$ac_ext
8014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8015 echo "${ECHO_T}$ac_header_preproc" >&6
8017 # So? What about this header?
8018 case $ac_header_compiler:$ac_header_preproc in
8019 yes:no )
8020 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
8021 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8022 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
8023 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
8024 no:yes )
8025 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
8026 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
8027 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5
8028 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;}
8029 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
8030 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
8031 esac
8032 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8033 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8034 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037 ac_cv_header_X11_Xaw3d_Scrollbar_h=$ac_header_preproc
8039 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8040 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8043 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8044 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8045 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8046 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 else
8049 ac_check_lib_save_LIBS=$LIBS
8050 LIBS="-lXaw3d $LIBS"
8051 cat >conftest.$ac_ext <<_ACEOF
8052 #line $LINENO "configure"
8053 #include "confdefs.h"
8055 /* Override any gcc2 internal prototype to avoid an error. */
8056 #ifdef __cplusplus
8057 extern "C"
8058 #endif
8059 /* We use char because int might match the return type of a gcc2
8060 builtin and then its argument prototype would still apply. */
8061 char XawScrollbarSetThumb ();
8062 #ifdef F77_DUMMY_MAIN
8063 # ifdef __cplusplus
8064 extern "C"
8065 # endif
8066 int F77_DUMMY_MAIN() { return 1; }
8067 #endif
8069 main ()
8071 XawScrollbarSetThumb ();
8073 return 0;
8075 _ACEOF
8076 rm -f conftest.$ac_objext conftest$ac_exeext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078 (eval $ac_link) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -s conftest$ac_exeext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 (eval $ac_try) 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8089 else
8090 echo "$as_me: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8092 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8095 LIBS=$ac_check_lib_save_LIBS
8097 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8098 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8099 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8100 HAVE_XAW3D=yes
8106 if test "${HAVE_XAW3D}" = "yes"; then
8108 cat >>confdefs.h <<\_ACEOF
8109 #define HAVE_XAW3D 1
8110 _ACEOF
8118 USE_TOOLKIT_SCROLL_BARS=no
8119 if test "${with_toolkit_scroll_bars}" != "no"; then
8120 if test "${USE_X_TOOLKIT}" != "none"; then
8121 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8122 cat >>confdefs.h <<\_ACEOF
8123 #define USE_TOOLKIT_SCROLL_BARS 1
8124 _ACEOF
8126 HAVE_XAW3D=no
8127 USE_TOOLKIT_SCROLL_BARS=yes
8128 elif test "${HAVE_XAW3D}" = "yes"; then
8129 cat >>confdefs.h <<\_ACEOF
8130 #define USE_TOOLKIT_SCROLL_BARS 1
8131 _ACEOF
8133 USE_TOOLKIT_SCROLL_BARS=yes
8139 if test "${with_xim}" != "no"; then
8141 cat >>confdefs.h <<\_ACEOF
8142 #define USE_XIM 1
8143 _ACEOF
8147 ### Use -lXpm if available, unless `--with-xpm=no'.
8148 HAVE_XPM=no
8149 if test "${HAVE_X11}" = "yes"; then
8150 if test "${with_xpm}" != "no"; then
8151 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8152 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8153 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8154 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8158 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8159 else
8160 # Is the header compilable?
8161 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8162 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8163 cat >conftest.$ac_ext <<_ACEOF
8164 #line $LINENO "configure"
8165 #include "confdefs.h"
8166 $ac_includes_default
8167 #include <X11/xpm.h>
8168 _ACEOF
8169 rm -f conftest.$ac_objext
8170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8171 (eval $ac_compile) 2>&5
8172 ac_status=$?
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } &&
8175 { ac_try='test -s conftest.$ac_objext'
8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177 (eval $ac_try) 2>&5
8178 ac_status=$?
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 ac_header_compiler=yes
8182 else
8183 echo "$as_me: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8185 ac_header_compiler=no
8187 rm -f conftest.$ac_objext conftest.$ac_ext
8188 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8189 echo "${ECHO_T}$ac_header_compiler" >&6
8191 # Is the header present?
8192 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8193 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8194 cat >conftest.$ac_ext <<_ACEOF
8195 #line $LINENO "configure"
8196 #include "confdefs.h"
8197 #include <X11/xpm.h>
8198 _ACEOF
8199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8201 ac_status=$?
8202 egrep -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); } >/dev/null; then
8207 if test -s conftest.err; then
8208 ac_cpp_err=$ac_c_preproc_warn_flag
8209 else
8210 ac_cpp_err=
8212 else
8213 ac_cpp_err=yes
8215 if test -z "$ac_cpp_err"; then
8216 ac_header_preproc=yes
8217 else
8218 echo "$as_me: failed program was:" >&5
8219 cat conftest.$ac_ext >&5
8220 ac_header_preproc=no
8222 rm -f conftest.err conftest.$ac_ext
8223 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8224 echo "${ECHO_T}$ac_header_preproc" >&6
8226 # So? What about this header?
8227 case $ac_header_compiler:$ac_header_preproc in
8228 yes:no )
8229 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8230 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8231 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8232 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8233 no:yes )
8234 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8235 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8236 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8237 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8238 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8239 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8240 esac
8241 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8242 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8243 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 else
8246 ac_cv_header_X11_xpm_h=$ac_header_preproc
8248 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8249 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8252 if test $ac_cv_header_X11_xpm_h = yes; then
8253 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8254 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8255 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 else
8258 ac_check_lib_save_LIBS=$LIBS
8259 LIBS="-lXpm -lX11 $LIBS"
8260 cat >conftest.$ac_ext <<_ACEOF
8261 #line $LINENO "configure"
8262 #include "confdefs.h"
8264 /* Override any gcc2 internal prototype to avoid an error. */
8265 #ifdef __cplusplus
8266 extern "C"
8267 #endif
8268 /* We use char because int might match the return type of a gcc2
8269 builtin and then its argument prototype would still apply. */
8270 char XpmReadFileToPixmap ();
8271 #ifdef F77_DUMMY_MAIN
8272 # ifdef __cplusplus
8273 extern "C"
8274 # endif
8275 int F77_DUMMY_MAIN() { return 1; }
8276 #endif
8278 main ()
8280 XpmReadFileToPixmap ();
8282 return 0;
8284 _ACEOF
8285 rm -f conftest.$ac_objext conftest$ac_exeext
8286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8287 (eval $ac_link) 2>&5
8288 ac_status=$?
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } &&
8291 { ac_try='test -s conftest$ac_exeext'
8292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293 (eval $ac_try) 2>&5
8294 ac_status=$?
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); }; }; then
8297 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
8298 else
8299 echo "$as_me: failed program was:" >&5
8300 cat conftest.$ac_ext >&5
8301 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
8303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8304 LIBS=$ac_check_lib_save_LIBS
8306 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8307 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8308 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8309 HAVE_XPM=yes
8315 if test "${HAVE_XPM}" = "yes"; then
8316 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8317 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8318 cat >conftest.$ac_ext <<_ACEOF
8319 #line $LINENO "configure"
8320 #include "confdefs.h"
8321 #include "X11/xpm.h"
8322 #ifndef XpmReturnAllocPixels
8323 no_return_alloc_pixels
8324 #endif
8326 _ACEOF
8327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8328 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
8329 HAVE_XPM=no
8330 else
8331 HAVE_XPM=yes
8333 rm -f conftest*
8336 if test "${HAVE_XPM}" = "yes"; then
8337 echo "$as_me:$LINENO: result: yes" >&5
8338 echo "${ECHO_T}yes" >&6
8339 else
8340 echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6
8346 if test "${HAVE_XPM}" = "yes"; then
8348 cat >>confdefs.h <<\_ACEOF
8349 #define HAVE_XPM 1
8350 _ACEOF
8355 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8356 HAVE_JPEG=no
8357 if test "${HAVE_X11}" = "yes"; then
8358 if test "${with_jpeg}" != "no"; then
8359 if test "${ac_cv_header_jerror_h+set}" = set; then
8360 echo "$as_me:$LINENO: checking for jerror.h" >&5
8361 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8362 if test "${ac_cv_header_jerror_h+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8366 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8367 else
8368 # Is the header compilable?
8369 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8370 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8371 cat >conftest.$ac_ext <<_ACEOF
8372 #line $LINENO "configure"
8373 #include "confdefs.h"
8374 $ac_includes_default
8375 #include <jerror.h>
8376 _ACEOF
8377 rm -f conftest.$ac_objext
8378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8379 (eval $ac_compile) 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -s conftest.$ac_objext'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 (eval $ac_try) 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 ac_header_compiler=yes
8390 else
8391 echo "$as_me: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8393 ac_header_compiler=no
8395 rm -f conftest.$ac_objext conftest.$ac_ext
8396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8397 echo "${ECHO_T}$ac_header_compiler" >&6
8399 # Is the header present?
8400 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8401 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8402 cat >conftest.$ac_ext <<_ACEOF
8403 #line $LINENO "configure"
8404 #include "confdefs.h"
8405 #include <jerror.h>
8406 _ACEOF
8407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8409 ac_status=$?
8410 egrep -v '^ *\+' conftest.er1 >conftest.err
8411 rm -f conftest.er1
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } >/dev/null; then
8415 if test -s conftest.err; then
8416 ac_cpp_err=$ac_c_preproc_warn_flag
8417 else
8418 ac_cpp_err=
8420 else
8421 ac_cpp_err=yes
8423 if test -z "$ac_cpp_err"; then
8424 ac_header_preproc=yes
8425 else
8426 echo "$as_me: failed program was:" >&5
8427 cat conftest.$ac_ext >&5
8428 ac_header_preproc=no
8430 rm -f conftest.err conftest.$ac_ext
8431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8432 echo "${ECHO_T}$ac_header_preproc" >&6
8434 # So? What about this header?
8435 case $ac_header_compiler:$ac_header_preproc in
8436 yes:no )
8437 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8438 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8439 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8440 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8441 no:yes )
8442 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8443 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8444 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8445 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8446 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8447 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8448 esac
8449 echo "$as_me:$LINENO: checking for jerror.h" >&5
8450 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8451 if test "${ac_cv_header_jerror_h+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 else
8454 ac_cv_header_jerror_h=$ac_header_preproc
8456 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8457 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8460 if test $ac_cv_header_jerror_h = yes; then
8461 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
8462 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
8463 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466 ac_check_lib_save_LIBS=$LIBS
8467 LIBS="-ljpeg $LIBS"
8468 cat >conftest.$ac_ext <<_ACEOF
8469 #line $LINENO "configure"
8470 #include "confdefs.h"
8472 /* Override any gcc2 internal prototype to avoid an error. */
8473 #ifdef __cplusplus
8474 extern "C"
8475 #endif
8476 /* We use char because int might match the return type of a gcc2
8477 builtin and then its argument prototype would still apply. */
8478 char jpeg_destroy_compress ();
8479 #ifdef F77_DUMMY_MAIN
8480 # ifdef __cplusplus
8481 extern "C"
8482 # endif
8483 int F77_DUMMY_MAIN() { return 1; }
8484 #endif
8486 main ()
8488 jpeg_destroy_compress ();
8490 return 0;
8492 _ACEOF
8493 rm -f conftest.$ac_objext conftest$ac_exeext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495 (eval $ac_link) 2>&5
8496 ac_status=$?
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -s conftest$ac_exeext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 (eval $ac_try) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
8506 else
8507 echo "$as_me: failed program was:" >&5
8508 cat conftest.$ac_ext >&5
8509 ac_cv_lib_jpeg_jpeg_destroy_compress=no
8511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8512 LIBS=$ac_check_lib_save_LIBS
8514 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
8515 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
8516 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
8517 HAVE_JPEG=yes
8526 if test "${HAVE_JPEG}" = "yes"; then
8527 cat >>confdefs.h <<\_ACEOF
8528 #define HAVE_JPEG 1
8529 _ACEOF
8531 cat >conftest.$ac_ext <<_ACEOF
8532 #line $LINENO "configure"
8533 #include "confdefs.h"
8534 #include <jpeglib.h>
8535 version=JPEG_LIB_VERSION
8537 _ACEOF
8538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8539 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
8540 cat >>confdefs.h <<\_ACEOF
8541 #define HAVE_JPEG 1
8542 _ACEOF
8544 else
8545 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
8546 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
8547 HAVE_JPEG=no
8549 rm -f conftest*
8554 ### Use -lpng if available, unless `--with-png=no'.
8555 HAVE_PNG=no
8556 if test "${HAVE_X11}" = "yes"; then
8557 if test "${with_png}" != "no"; then
8558 if test "${ac_cv_header_png_h+set}" = set; then
8559 echo "$as_me:$LINENO: checking for png.h" >&5
8560 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8561 if test "${ac_cv_header_png_h+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8565 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8566 else
8567 # Is the header compilable?
8568 echo "$as_me:$LINENO: checking png.h usability" >&5
8569 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
8570 cat >conftest.$ac_ext <<_ACEOF
8571 #line $LINENO "configure"
8572 #include "confdefs.h"
8573 $ac_includes_default
8574 #include <png.h>
8575 _ACEOF
8576 rm -f conftest.$ac_objext
8577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8578 (eval $ac_compile) 2>&5
8579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } &&
8582 { ac_try='test -s conftest.$ac_objext'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; }; then
8588 ac_header_compiler=yes
8589 else
8590 echo "$as_me: failed program was:" >&5
8591 cat conftest.$ac_ext >&5
8592 ac_header_compiler=no
8594 rm -f conftest.$ac_objext conftest.$ac_ext
8595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8596 echo "${ECHO_T}$ac_header_compiler" >&6
8598 # Is the header present?
8599 echo "$as_me:$LINENO: checking png.h presence" >&5
8600 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
8601 cat >conftest.$ac_ext <<_ACEOF
8602 #line $LINENO "configure"
8603 #include "confdefs.h"
8604 #include <png.h>
8605 _ACEOF
8606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8608 ac_status=$?
8609 egrep -v '^ *\+' conftest.er1 >conftest.err
8610 rm -f conftest.er1
8611 cat conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } >/dev/null; then
8614 if test -s conftest.err; then
8615 ac_cpp_err=$ac_c_preproc_warn_flag
8616 else
8617 ac_cpp_err=
8619 else
8620 ac_cpp_err=yes
8622 if test -z "$ac_cpp_err"; then
8623 ac_header_preproc=yes
8624 else
8625 echo "$as_me: failed program was:" >&5
8626 cat conftest.$ac_ext >&5
8627 ac_header_preproc=no
8629 rm -f conftest.err conftest.$ac_ext
8630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8631 echo "${ECHO_T}$ac_header_preproc" >&6
8633 # So? What about this header?
8634 case $ac_header_compiler:$ac_header_preproc in
8635 yes:no )
8636 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
8637 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8638 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8639 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8640 no:yes )
8641 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
8642 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
8644 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8646 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8647 esac
8648 echo "$as_me:$LINENO: checking for png.h" >&5
8649 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8650 if test "${ac_cv_header_png_h+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653 ac_cv_header_png_h=$ac_header_preproc
8655 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8656 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8659 if test $ac_cv_header_png_h = yes; then
8660 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
8661 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
8662 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665 ac_check_lib_save_LIBS=$LIBS
8666 LIBS="-lpng -lz -lm $LIBS"
8667 cat >conftest.$ac_ext <<_ACEOF
8668 #line $LINENO "configure"
8669 #include "confdefs.h"
8671 /* Override any gcc2 internal prototype to avoid an error. */
8672 #ifdef __cplusplus
8673 extern "C"
8674 #endif
8675 /* We use char because int might match the return type of a gcc2
8676 builtin and then its argument prototype would still apply. */
8677 char png_get_channels ();
8678 #ifdef F77_DUMMY_MAIN
8679 # ifdef __cplusplus
8680 extern "C"
8681 # endif
8682 int F77_DUMMY_MAIN() { return 1; }
8683 #endif
8685 main ()
8687 png_get_channels ();
8689 return 0;
8691 _ACEOF
8692 rm -f conftest.$ac_objext conftest$ac_exeext
8693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8694 (eval $ac_link) 2>&5
8695 ac_status=$?
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -s conftest$ac_exeext'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 (eval $ac_try) 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; }; then
8704 ac_cv_lib_png_png_get_channels=yes
8705 else
8706 echo "$as_me: failed program was:" >&5
8707 cat conftest.$ac_ext >&5
8708 ac_cv_lib_png_png_get_channels=no
8710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8711 LIBS=$ac_check_lib_save_LIBS
8713 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
8714 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
8715 if test $ac_cv_lib_png_png_get_channels = yes; then
8716 HAVE_PNG=yes
8724 if test "${HAVE_PNG}" = "yes"; then
8726 cat >>confdefs.h <<\_ACEOF
8727 #define HAVE_PNG 1
8728 _ACEOF
8733 ### Use -ltiff if available, unless `--with-tiff=no'.
8734 HAVE_TIFF=no
8735 if test "${HAVE_X11}" = "yes"; then
8736 if test "${with_tiff}" != "no"; then
8737 if test "${ac_cv_header_tiffio_h+set}" = set; then
8738 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8739 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8740 if test "${ac_cv_header_tiffio_h+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8744 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8745 else
8746 # Is the header compilable?
8747 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
8748 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
8749 cat >conftest.$ac_ext <<_ACEOF
8750 #line $LINENO "configure"
8751 #include "confdefs.h"
8752 $ac_includes_default
8753 #include <tiffio.h>
8754 _ACEOF
8755 rm -f conftest.$ac_objext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8757 (eval $ac_compile) 2>&5
8758 ac_status=$?
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try='test -s conftest.$ac_objext'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 (eval $ac_try) 2>&5
8764 ac_status=$?
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
8767 ac_header_compiler=yes
8768 else
8769 echo "$as_me: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8771 ac_header_compiler=no
8773 rm -f conftest.$ac_objext conftest.$ac_ext
8774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8775 echo "${ECHO_T}$ac_header_compiler" >&6
8777 # Is the header present?
8778 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
8779 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
8780 cat >conftest.$ac_ext <<_ACEOF
8781 #line $LINENO "configure"
8782 #include "confdefs.h"
8783 #include <tiffio.h>
8784 _ACEOF
8785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8787 ac_status=$?
8788 egrep -v '^ *\+' conftest.er1 >conftest.err
8789 rm -f conftest.er1
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } >/dev/null; then
8793 if test -s conftest.err; then
8794 ac_cpp_err=$ac_c_preproc_warn_flag
8795 else
8796 ac_cpp_err=
8798 else
8799 ac_cpp_err=yes
8801 if test -z "$ac_cpp_err"; then
8802 ac_header_preproc=yes
8803 else
8804 echo "$as_me: failed program was:" >&5
8805 cat conftest.$ac_ext >&5
8806 ac_header_preproc=no
8808 rm -f conftest.err conftest.$ac_ext
8809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8810 echo "${ECHO_T}$ac_header_preproc" >&6
8812 # So? What about this header?
8813 case $ac_header_compiler:$ac_header_preproc in
8814 yes:no )
8815 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8816 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8817 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8818 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8819 no:yes )
8820 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
8821 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
8822 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
8823 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
8824 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8825 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8826 esac
8827 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8828 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8829 if test "${ac_cv_header_tiffio_h+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8831 else
8832 ac_cv_header_tiffio_h=$ac_header_preproc
8834 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8835 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8838 if test $ac_cv_header_tiffio_h = yes; then
8839 tifflibs="-lz -lm"
8840 # At least one tiff package requires the jpeg library.
8841 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
8842 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
8843 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
8844 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 else
8847 ac_check_lib_save_LIBS=$LIBS
8848 LIBS="-ltiff $tifflibs $LIBS"
8849 cat >conftest.$ac_ext <<_ACEOF
8850 #line $LINENO "configure"
8851 #include "confdefs.h"
8853 /* Override any gcc2 internal prototype to avoid an error. */
8854 #ifdef __cplusplus
8855 extern "C"
8856 #endif
8857 /* We use char because int might match the return type of a gcc2
8858 builtin and then its argument prototype would still apply. */
8859 char TIFFGetVersion ();
8860 #ifdef F77_DUMMY_MAIN
8861 # ifdef __cplusplus
8862 extern "C"
8863 # endif
8864 int F77_DUMMY_MAIN() { return 1; }
8865 #endif
8867 main ()
8869 TIFFGetVersion ();
8871 return 0;
8873 _ACEOF
8874 rm -f conftest.$ac_objext conftest$ac_exeext
8875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8876 (eval $ac_link) 2>&5
8877 ac_status=$?
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } &&
8880 { ac_try='test -s conftest$ac_exeext'
8881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 (eval $ac_try) 2>&5
8883 ac_status=$?
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); }; }; then
8886 ac_cv_lib_tiff_TIFFGetVersion=yes
8887 else
8888 echo "$as_me: failed program was:" >&5
8889 cat conftest.$ac_ext >&5
8890 ac_cv_lib_tiff_TIFFGetVersion=no
8892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8893 LIBS=$ac_check_lib_save_LIBS
8895 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
8896 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
8897 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
8898 HAVE_TIFF=yes
8906 if test "${HAVE_TIFF}" = "yes"; then
8908 cat >>confdefs.h <<\_ACEOF
8909 #define HAVE_TIFF 1
8910 _ACEOF
8915 ### Use -lgif if available, unless `--with-gif=no'.
8916 HAVE_GIF=no
8917 if test "${HAVE_X11}" = "yes"; then
8918 if test "${with_gif}" != "no"; then
8919 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8920 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8921 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8922 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8926 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8927 else
8928 # Is the header compilable?
8929 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
8930 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
8931 cat >conftest.$ac_ext <<_ACEOF
8932 #line $LINENO "configure"
8933 #include "confdefs.h"
8934 $ac_includes_default
8935 #include <gif_lib.h>
8936 _ACEOF
8937 rm -f conftest.$ac_objext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8939 (eval $ac_compile) 2>&5
8940 ac_status=$?
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); } &&
8943 { ac_try='test -s conftest.$ac_objext'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 (eval $ac_try) 2>&5
8946 ac_status=$?
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
8949 ac_header_compiler=yes
8950 else
8951 echo "$as_me: failed program was:" >&5
8952 cat conftest.$ac_ext >&5
8953 ac_header_compiler=no
8955 rm -f conftest.$ac_objext conftest.$ac_ext
8956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8957 echo "${ECHO_T}$ac_header_compiler" >&6
8959 # Is the header present?
8960 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
8961 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
8962 cat >conftest.$ac_ext <<_ACEOF
8963 #line $LINENO "configure"
8964 #include "confdefs.h"
8965 #include <gif_lib.h>
8966 _ACEOF
8967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8969 ac_status=$?
8970 egrep -v '^ *\+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } >/dev/null; then
8975 if test -s conftest.err; then
8976 ac_cpp_err=$ac_c_preproc_warn_flag
8977 else
8978 ac_cpp_err=
8980 else
8981 ac_cpp_err=yes
8983 if test -z "$ac_cpp_err"; then
8984 ac_header_preproc=yes
8985 else
8986 echo "$as_me: failed program was:" >&5
8987 cat conftest.$ac_ext >&5
8988 ac_header_preproc=no
8990 rm -f conftest.err conftest.$ac_ext
8991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8992 echo "${ECHO_T}$ac_header_preproc" >&6
8994 # So? What about this header?
8995 case $ac_header_compiler:$ac_header_preproc in
8996 yes:no )
8997 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8998 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9000 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
9001 no:yes )
9002 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9003 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9004 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9005 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9006 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9007 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
9008 esac
9009 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9010 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9011 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9014 ac_cv_header_gif_lib_h=$ac_header_preproc
9016 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9017 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9020 if test $ac_cv_header_gif_lib_h = yes; then
9021 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9022 # Earlier versions can crash Emacs.
9023 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9024 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9025 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028 ac_check_lib_save_LIBS=$LIBS
9029 LIBS="-lungif $LIBS"
9030 cat >conftest.$ac_ext <<_ACEOF
9031 #line $LINENO "configure"
9032 #include "confdefs.h"
9034 /* Override any gcc2 internal prototype to avoid an error. */
9035 #ifdef __cplusplus
9036 extern "C"
9037 #endif
9038 /* We use char because int might match the return type of a gcc2
9039 builtin and then its argument prototype would still apply. */
9040 char EGifPutExtensionLast ();
9041 #ifdef F77_DUMMY_MAIN
9042 # ifdef __cplusplus
9043 extern "C"
9044 # endif
9045 int F77_DUMMY_MAIN() { return 1; }
9046 #endif
9048 main ()
9050 EGifPutExtensionLast ();
9052 return 0;
9054 _ACEOF
9055 rm -f conftest.$ac_objext conftest$ac_exeext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9057 (eval $ac_link) 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_lib_ungif_EGifPutExtensionLast=yes
9068 else
9069 echo "$as_me: failed program was:" >&5
9070 cat conftest.$ac_ext >&5
9071 ac_cv_lib_ungif_EGifPutExtensionLast=no
9073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9074 LIBS=$ac_check_lib_save_LIBS
9076 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9077 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9078 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9079 HAVE_GIF=yes
9087 if test "${HAVE_GIF}" = "yes"; then
9089 cat >>confdefs.h <<\_ACEOF
9090 #define HAVE_GIF 1
9091 _ACEOF
9096 ### Use Mac OS X Carbon API to implement GUI.
9097 HAVE_CARBON=no
9098 if test "${with_carbon}" != "no"; then
9099 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9100 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9101 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9102 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9106 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9107 else
9108 # Is the header compilable?
9109 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9110 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9111 cat >conftest.$ac_ext <<_ACEOF
9112 #line $LINENO "configure"
9113 #include "confdefs.h"
9114 $ac_includes_default
9115 #include <Carbon/Carbon.h>
9116 _ACEOF
9117 rm -f conftest.$ac_objext
9118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9119 (eval $ac_compile) 2>&5
9120 ac_status=$?
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } &&
9123 { ac_try='test -s conftest.$ac_objext'
9124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 (eval $ac_try) 2>&5
9126 ac_status=$?
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); }; }; then
9129 ac_header_compiler=yes
9130 else
9131 echo "$as_me: failed program was:" >&5
9132 cat conftest.$ac_ext >&5
9133 ac_header_compiler=no
9135 rm -f conftest.$ac_objext conftest.$ac_ext
9136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9137 echo "${ECHO_T}$ac_header_compiler" >&6
9139 # Is the header present?
9140 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9141 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9142 cat >conftest.$ac_ext <<_ACEOF
9143 #line $LINENO "configure"
9144 #include "confdefs.h"
9145 #include <Carbon/Carbon.h>
9146 _ACEOF
9147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9149 ac_status=$?
9150 egrep -v '^ *\+' conftest.er1 >conftest.err
9151 rm -f conftest.er1
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } >/dev/null; then
9155 if test -s conftest.err; then
9156 ac_cpp_err=$ac_c_preproc_warn_flag
9157 else
9158 ac_cpp_err=
9160 else
9161 ac_cpp_err=yes
9163 if test -z "$ac_cpp_err"; then
9164 ac_header_preproc=yes
9165 else
9166 echo "$as_me: failed program was:" >&5
9167 cat conftest.$ac_ext >&5
9168 ac_header_preproc=no
9170 rm -f conftest.err conftest.$ac_ext
9171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9172 echo "${ECHO_T}$ac_header_preproc" >&6
9174 # So? What about this header?
9175 case $ac_header_compiler:$ac_header_preproc in
9176 yes:no )
9177 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9178 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9180 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
9181 no:yes )
9182 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9183 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9184 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9185 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9187 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
9188 esac
9189 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9190 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9191 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9196 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9197 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9200 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9201 HAVE_CARBON=yes
9207 if test "${HAVE_CARBON}" = "yes"; then
9208 cat >>confdefs.h <<\_ACEOF
9209 #define HAVE_CARBON 1
9210 _ACEOF
9214 ### Use session management (-lSM -lICE) if available
9215 HAVE_X_SM=no
9216 if test "${HAVE_X11}" = "yes"; then
9217 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9218 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9219 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9220 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9224 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9225 else
9226 # Is the header compilable?
9227 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9228 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9229 cat >conftest.$ac_ext <<_ACEOF
9230 #line $LINENO "configure"
9231 #include "confdefs.h"
9232 $ac_includes_default
9233 #include <X11/SM/SMlib.h>
9234 _ACEOF
9235 rm -f conftest.$ac_objext
9236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9237 (eval $ac_compile) 2>&5
9238 ac_status=$?
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try='test -s conftest.$ac_objext'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 (eval $ac_try) 2>&5
9244 ac_status=$?
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
9247 ac_header_compiler=yes
9248 else
9249 echo "$as_me: failed program was:" >&5
9250 cat conftest.$ac_ext >&5
9251 ac_header_compiler=no
9253 rm -f conftest.$ac_objext conftest.$ac_ext
9254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9255 echo "${ECHO_T}$ac_header_compiler" >&6
9257 # Is the header present?
9258 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9259 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9260 cat >conftest.$ac_ext <<_ACEOF
9261 #line $LINENO "configure"
9262 #include "confdefs.h"
9263 #include <X11/SM/SMlib.h>
9264 _ACEOF
9265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9267 ac_status=$?
9268 egrep -v '^ *\+' conftest.er1 >conftest.err
9269 rm -f conftest.er1
9270 cat conftest.err >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } >/dev/null; then
9273 if test -s conftest.err; then
9274 ac_cpp_err=$ac_c_preproc_warn_flag
9275 else
9276 ac_cpp_err=
9278 else
9279 ac_cpp_err=yes
9281 if test -z "$ac_cpp_err"; then
9282 ac_header_preproc=yes
9283 else
9284 echo "$as_me: failed program was:" >&5
9285 cat conftest.$ac_ext >&5
9286 ac_header_preproc=no
9288 rm -f conftest.err conftest.$ac_ext
9289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9290 echo "${ECHO_T}$ac_header_preproc" >&6
9292 # So? What about this header?
9293 case $ac_header_compiler:$ac_header_preproc in
9294 yes:no )
9295 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9296 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9298 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9299 no:yes )
9300 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9301 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9302 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9303 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9304 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9305 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9306 esac
9307 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9308 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9309 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
9314 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9315 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9318 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
9319 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
9320 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
9321 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324 ac_check_lib_save_LIBS=$LIBS
9325 LIBS="-lSM $LIBS"
9326 cat >conftest.$ac_ext <<_ACEOF
9327 #line $LINENO "configure"
9328 #include "confdefs.h"
9330 /* Override any gcc2 internal prototype to avoid an error. */
9331 #ifdef __cplusplus
9332 extern "C"
9333 #endif
9334 /* We use char because int might match the return type of a gcc2
9335 builtin and then its argument prototype would still apply. */
9336 char SmcOpenConnection ();
9337 #ifdef F77_DUMMY_MAIN
9338 # ifdef __cplusplus
9339 extern "C"
9340 # endif
9341 int F77_DUMMY_MAIN() { return 1; }
9342 #endif
9344 main ()
9346 SmcOpenConnection ();
9348 return 0;
9350 _ACEOF
9351 rm -f conftest.$ac_objext conftest$ac_exeext
9352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9353 (eval $ac_link) 2>&5
9354 ac_status=$?
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } &&
9357 { ac_try='test -s conftest$ac_exeext'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 (eval $ac_try) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; }; then
9363 ac_cv_lib_SM_SmcOpenConnection=yes
9364 else
9365 echo "$as_me: failed program was:" >&5
9366 cat conftest.$ac_ext >&5
9367 ac_cv_lib_SM_SmcOpenConnection=no
9369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9370 LIBS=$ac_check_lib_save_LIBS
9372 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
9373 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
9374 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
9375 HAVE_X_SM=yes
9376 else
9377 -lICE
9384 if test "${HAVE_X_SM}" = "yes"; then
9386 cat >>confdefs.h <<\_ACEOF
9387 #define HAVE_X_SM 1
9388 _ACEOF
9390 case "$LIBS" in
9391 *-lSM*) ;;
9392 *) LIBS="-lSM -lICE $LIBS" ;;
9393 esac
9397 # If netdb.h doesn't declare h_errno, we must declare it by hand.
9398 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
9399 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
9400 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403 cat >conftest.$ac_ext <<_ACEOF
9404 #line $LINENO "configure"
9405 #include "confdefs.h"
9406 #include <netdb.h>
9407 #ifdef F77_DUMMY_MAIN
9408 # ifdef __cplusplus
9409 extern "C"
9410 # endif
9411 int F77_DUMMY_MAIN() { return 1; }
9412 #endif
9414 main ()
9416 return h_errno;
9418 return 0;
9420 _ACEOF
9421 rm -f conftest.$ac_objext conftest$ac_exeext
9422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9423 (eval $ac_link) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } &&
9427 { ac_try='test -s conftest$ac_exeext'
9428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429 (eval $ac_try) 2>&5
9430 ac_status=$?
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; }; then
9433 emacs_cv_netdb_declares_h_errno=yes
9434 else
9435 echo "$as_me: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9437 emacs_cv_netdb_declares_h_errno=no
9439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9441 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
9442 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
9443 if test $emacs_cv_netdb_declares_h_errno = yes; then
9445 cat >>confdefs.h <<\_ACEOF
9446 #define HAVE_H_ERRNO 1
9447 _ACEOF
9451 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9452 # for constant arguments. Useless!
9453 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9454 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9455 if test "${ac_cv_working_alloca_h+set}" = set; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 else
9458 cat >conftest.$ac_ext <<_ACEOF
9459 #line $LINENO "configure"
9460 #include "confdefs.h"
9461 #include <alloca.h>
9462 #ifdef F77_DUMMY_MAIN
9463 # ifdef __cplusplus
9464 extern "C"
9465 # endif
9466 int F77_DUMMY_MAIN() { return 1; }
9467 #endif
9469 main ()
9471 char *p = (char *) alloca (2 * sizeof (int));
9473 return 0;
9475 _ACEOF
9476 rm -f conftest.$ac_objext conftest$ac_exeext
9477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9478 (eval $ac_link) 2>&5
9479 ac_status=$?
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } &&
9482 { ac_try='test -s conftest$ac_exeext'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 (eval $ac_try) 2>&5
9485 ac_status=$?
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; }; then
9488 ac_cv_working_alloca_h=yes
9489 else
9490 echo "$as_me: failed program was:" >&5
9491 cat conftest.$ac_ext >&5
9492 ac_cv_working_alloca_h=no
9494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9496 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9497 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9498 if test $ac_cv_working_alloca_h = yes; then
9500 cat >>confdefs.h <<\_ACEOF
9501 #define HAVE_ALLOCA_H 1
9502 _ACEOF
9506 echo "$as_me:$LINENO: checking for alloca" >&5
9507 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9508 if test "${ac_cv_func_alloca_works+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511 cat >conftest.$ac_ext <<_ACEOF
9512 #line $LINENO "configure"
9513 #include "confdefs.h"
9514 #ifdef __GNUC__
9515 # define alloca __builtin_alloca
9516 #else
9517 # ifdef _MSC_VER
9518 # include <malloc.h>
9519 # define alloca _alloca
9520 # else
9521 # if HAVE_ALLOCA_H
9522 # include <alloca.h>
9523 # else
9524 # ifdef _AIX
9525 #pragma alloca
9526 # else
9527 # ifndef alloca /* predefined by HP cc +Olibcalls */
9528 char *alloca ();
9529 # endif
9530 # endif
9531 # endif
9532 # endif
9533 #endif
9535 #ifdef F77_DUMMY_MAIN
9536 # ifdef __cplusplus
9537 extern "C"
9538 # endif
9539 int F77_DUMMY_MAIN() { return 1; }
9540 #endif
9542 main ()
9544 char *p = (char *) alloca (1);
9546 return 0;
9548 _ACEOF
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9551 (eval $ac_link) 2>&5
9552 ac_status=$?
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } &&
9555 { ac_try='test -s conftest$ac_exeext'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557 (eval $ac_try) 2>&5
9558 ac_status=$?
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
9561 ac_cv_func_alloca_works=yes
9562 else
9563 echo "$as_me: failed program was:" >&5
9564 cat conftest.$ac_ext >&5
9565 ac_cv_func_alloca_works=no
9567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9569 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9570 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9572 if test $ac_cv_func_alloca_works = yes; then
9574 cat >>confdefs.h <<\_ACEOF
9575 #define HAVE_ALLOCA 1
9576 _ACEOF
9578 else
9579 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9580 # that cause trouble. Some versions do not even contain alloca or
9581 # contain a buggy version. If you still want to use their alloca,
9582 # use ar to extract alloca.o from them instead of compiling alloca.c.
9584 ALLOCA=alloca.$ac_objext
9586 cat >>confdefs.h <<\_ACEOF
9587 #define C_ALLOCA 1
9588 _ACEOF
9591 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9592 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9593 if test "${ac_cv_os_cray+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 cat >conftest.$ac_ext <<_ACEOF
9597 #line $LINENO "configure"
9598 #include "confdefs.h"
9599 #if defined(CRAY) && ! defined(CRAY2)
9600 webecray
9601 #else
9602 wenotbecray
9603 #endif
9605 _ACEOF
9606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9607 egrep "webecray" >/dev/null 2>&1; then
9608 ac_cv_os_cray=yes
9609 else
9610 ac_cv_os_cray=no
9612 rm -f conftest*
9615 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9616 echo "${ECHO_T}$ac_cv_os_cray" >&6
9617 if test $ac_cv_os_cray = yes; then
9618 for ac_func in _getb67 GETB67 getb67; do
9619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9620 echo "$as_me:$LINENO: checking for $ac_func" >&5
9621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9622 if eval "test \"\${$as_ac_var+set}\" = set"; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9624 else
9625 cat >conftest.$ac_ext <<_ACEOF
9626 #line $LINENO "configure"
9627 #include "confdefs.h"
9628 /* System header to define __stub macros and hopefully few prototypes,
9629 which can conflict with char $ac_func (); below. */
9630 #include <assert.h>
9631 /* Override any gcc2 internal prototype to avoid an error. */
9632 #ifdef __cplusplus
9633 extern "C"
9634 #endif
9635 /* We use char because int might match the return type of a gcc2
9636 builtin and then its argument prototype would still apply. */
9637 char $ac_func ();
9638 char (*f) ();
9640 #ifdef F77_DUMMY_MAIN
9641 # ifdef __cplusplus
9642 extern "C"
9643 # endif
9644 int F77_DUMMY_MAIN() { return 1; }
9645 #endif
9647 main ()
9649 /* The GNU C library defines this for functions which it implements
9650 to always fail with ENOSYS. Some functions are actually named
9651 something starting with __ and the normal name is an alias. */
9652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9653 choke me
9654 #else
9655 f = $ac_func;
9656 #endif
9659 return 0;
9661 _ACEOF
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664 (eval $ac_link) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 (eval $ac_try) 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 eval "$as_ac_var=yes"
9675 else
9676 echo "$as_me: failed program was:" >&5
9677 cat conftest.$ac_ext >&5
9678 eval "$as_ac_var=no"
9680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9684 if test `eval echo '${'$as_ac_var'}'` = yes; then
9686 cat >>confdefs.h <<_ACEOF
9687 #define CRAY_STACKSEG_END $ac_func
9688 _ACEOF
9690 break
9693 done
9696 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9697 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9698 if test "${ac_cv_c_stack_direction+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 else
9701 if test "$cross_compiling" = yes; then
9702 ac_cv_c_stack_direction=0
9703 else
9704 cat >conftest.$ac_ext <<_ACEOF
9705 #line $LINENO "configure"
9706 #include "confdefs.h"
9708 find_stack_direction ()
9710 static char *addr = 0;
9711 auto char dummy;
9712 if (addr == 0)
9714 addr = &dummy;
9715 return find_stack_direction ();
9717 else
9718 return (&dummy > addr) ? 1 : -1;
9722 main ()
9724 exit (find_stack_direction () < 0);
9726 _ACEOF
9727 rm -f conftest$ac_exeext
9728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9729 (eval $ac_link) 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734 (eval $ac_try) 2>&5
9735 ac_status=$?
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9738 ac_cv_c_stack_direction=1
9739 else
9740 echo "$as_me: program exited with status $ac_status" >&5
9741 echo "$as_me: failed program was:" >&5
9742 cat conftest.$ac_ext >&5
9743 ( exit $ac_status )
9744 ac_cv_c_stack_direction=-1
9746 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9749 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9750 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9752 cat >>confdefs.h <<_ACEOF
9753 #define STACK_DIRECTION $ac_cv_c_stack_direction
9754 _ACEOF
9760 # fmod, logb, and frexp are found in -lm on most systems.
9761 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
9763 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
9764 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
9765 if test "${ac_cv_lib_m_sqrt+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9768 ac_check_lib_save_LIBS=$LIBS
9769 LIBS="-lm $LIBS"
9770 cat >conftest.$ac_ext <<_ACEOF
9771 #line $LINENO "configure"
9772 #include "confdefs.h"
9774 /* Override any gcc2 internal prototype to avoid an error. */
9775 #ifdef __cplusplus
9776 extern "C"
9777 #endif
9778 /* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9780 char sqrt ();
9781 #ifdef F77_DUMMY_MAIN
9782 # ifdef __cplusplus
9783 extern "C"
9784 # endif
9785 int F77_DUMMY_MAIN() { return 1; }
9786 #endif
9788 main ()
9790 sqrt ();
9792 return 0;
9794 _ACEOF
9795 rm -f conftest.$ac_objext conftest$ac_exeext
9796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9797 (eval $ac_link) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } &&
9801 { ac_try='test -s conftest$ac_exeext'
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 (eval $ac_try) 2>&5
9804 ac_status=$?
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
9807 ac_cv_lib_m_sqrt=yes
9808 else
9809 echo "$as_me: failed program was:" >&5
9810 cat conftest.$ac_ext >&5
9811 ac_cv_lib_m_sqrt=no
9813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9814 LIBS=$ac_check_lib_save_LIBS
9816 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
9817 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
9818 if test $ac_cv_lib_m_sqrt = yes; then
9819 cat >>confdefs.h <<_ACEOF
9820 #define HAVE_LIBM 1
9821 _ACEOF
9823 LIBS="-lm $LIBS"
9828 # Check for mail-locking functions in a "mail" library
9830 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
9831 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
9832 if test "${ac_cv_lib_mail_maillock+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 else
9835 ac_check_lib_save_LIBS=$LIBS
9836 LIBS="-lmail $LIBS"
9837 cat >conftest.$ac_ext <<_ACEOF
9838 #line $LINENO "configure"
9839 #include "confdefs.h"
9841 /* Override any gcc2 internal prototype to avoid an error. */
9842 #ifdef __cplusplus
9843 extern "C"
9844 #endif
9845 /* We use char because int might match the return type of a gcc2
9846 builtin and then its argument prototype would still apply. */
9847 char maillock ();
9848 #ifdef F77_DUMMY_MAIN
9849 # ifdef __cplusplus
9850 extern "C"
9851 # endif
9852 int F77_DUMMY_MAIN() { return 1; }
9853 #endif
9855 main ()
9857 maillock ();
9859 return 0;
9861 _ACEOF
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9864 (eval $ac_link) 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
9874 ac_cv_lib_mail_maillock=yes
9875 else
9876 echo "$as_me: failed program was:" >&5
9877 cat conftest.$ac_ext >&5
9878 ac_cv_lib_mail_maillock=no
9880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9881 LIBS=$ac_check_lib_save_LIBS
9883 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
9884 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
9885 if test $ac_cv_lib_mail_maillock = yes; then
9886 cat >>confdefs.h <<_ACEOF
9887 #define HAVE_LIBMAIL 1
9888 _ACEOF
9890 LIBS="-lmail $LIBS"
9895 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
9896 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
9897 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900 ac_check_lib_save_LIBS=$LIBS
9901 LIBS="-llockfile $LIBS"
9902 cat >conftest.$ac_ext <<_ACEOF
9903 #line $LINENO "configure"
9904 #include "confdefs.h"
9906 /* Override any gcc2 internal prototype to avoid an error. */
9907 #ifdef __cplusplus
9908 extern "C"
9909 #endif
9910 /* We use char because int might match the return type of a gcc2
9911 builtin and then its argument prototype would still apply. */
9912 char maillock ();
9913 #ifdef F77_DUMMY_MAIN
9914 # ifdef __cplusplus
9915 extern "C"
9916 # endif
9917 int F77_DUMMY_MAIN() { return 1; }
9918 #endif
9920 main ()
9922 maillock ();
9924 return 0;
9926 _ACEOF
9927 rm -f conftest.$ac_objext conftest$ac_exeext
9928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9929 (eval $ac_link) 2>&5
9930 ac_status=$?
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try='test -s conftest$ac_exeext'
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 (eval $ac_try) 2>&5
9936 ac_status=$?
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; }; then
9939 ac_cv_lib_lockfile_maillock=yes
9940 else
9941 echo "$as_me: failed program was:" >&5
9942 cat conftest.$ac_ext >&5
9943 ac_cv_lib_lockfile_maillock=no
9945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_lib_save_LIBS
9948 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
9949 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
9950 if test $ac_cv_lib_lockfile_maillock = yes; then
9951 cat >>confdefs.h <<_ACEOF
9952 #define HAVE_LIBLOCKFILE 1
9953 _ACEOF
9955 LIBS="-llockfile $LIBS"
9959 # If we have the shared liblockfile, assume we must use it for mail
9960 # locking (e.g. Debian). If we couldn't link against liblockfile
9961 # (no liblockfile.a installed), ensure that we don't need to.
9962 if test "$ac_cv_lib_lockfile_maillock" = no; then
9963 # Extract the first word of "liblockfile.so", so it can be a program name with args.
9964 set dummy liblockfile.so; ac_word=$2
9965 echo "$as_me:$LINENO: checking for $ac_word" >&5
9966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9967 if test "${ac_cv_prog_liblockfile+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970 if test -n "$liblockfile"; then
9971 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
9972 else
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
9975 for as_dir in $as_dummy
9977 IFS=$as_save_IFS
9978 test -z "$as_dir" && as_dir=.
9979 for ac_exec_ext in '' $ac_executable_extensions; do
9980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9981 ac_cv_prog_liblockfile="yes"
9982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9983 break 2
9985 done
9986 done
9988 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
9991 liblockfile=$ac_cv_prog_liblockfile
9992 if test -n "$liblockfile"; then
9993 echo "$as_me:$LINENO: result: $liblockfile" >&5
9994 echo "${ECHO_T}$liblockfile" >&6
9995 else
9996 echo "$as_me:$LINENO: result: no" >&5
9997 echo "${ECHO_T}no" >&6
10000 if test $ac_cv_prog_liblockfile = yes; then
10001 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10002 This probably means that movemail could lose mail.
10003 There may be a \`development' package to install containing liblockfile." >&5
10004 echo "$as_me: error: Shared liblockfile found but can't link against it.
10005 This probably means that movemail could lose mail.
10006 There may be a \`development' package to install containing liblockfile." >&2;}
10007 { (exit 1); exit 1; }; }
10008 else
10009 cat >>confdefs.h <<\_ACEOF
10010 #define LIBMAIL -llockfile
10011 _ACEOF
10014 else :
10017 for ac_func in touchlock
10019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10020 echo "$as_me:$LINENO: checking for $ac_func" >&5
10021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10022 if eval "test \"\${$as_ac_var+set}\" = set"; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025 cat >conftest.$ac_ext <<_ACEOF
10026 #line $LINENO "configure"
10027 #include "confdefs.h"
10028 /* System header to define __stub macros and hopefully few prototypes,
10029 which can conflict with char $ac_func (); below. */
10030 #include <assert.h>
10031 /* Override any gcc2 internal prototype to avoid an error. */
10032 #ifdef __cplusplus
10033 extern "C"
10034 #endif
10035 /* We use char because int might match the return type of a gcc2
10036 builtin and then its argument prototype would still apply. */
10037 char $ac_func ();
10038 char (*f) ();
10040 #ifdef F77_DUMMY_MAIN
10041 # ifdef __cplusplus
10042 extern "C"
10043 # endif
10044 int F77_DUMMY_MAIN() { return 1; }
10045 #endif
10047 main ()
10049 /* The GNU C library defines this for functions which it implements
10050 to always fail with ENOSYS. Some functions are actually named
10051 something starting with __ and the normal name is an alias. */
10052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10053 choke me
10054 #else
10055 f = $ac_func;
10056 #endif
10059 return 0;
10061 _ACEOF
10062 rm -f conftest.$ac_objext conftest$ac_exeext
10063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10064 (eval $ac_link) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try='test -s conftest$ac_exeext'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10074 eval "$as_ac_var=yes"
10075 else
10076 echo "$as_me: failed program was:" >&5
10077 cat conftest.$ac_ext >&5
10078 eval "$as_ac_var=no"
10080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10084 if test `eval echo '${'$as_ac_var'}'` = yes; then
10085 cat >>confdefs.h <<_ACEOF
10086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10087 _ACEOF
10090 done
10093 for ac_header in maillock.h
10095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10097 echo "$as_me:$LINENO: checking for $ac_header" >&5
10098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10104 else
10105 # Is the header compilable?
10106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10108 cat >conftest.$ac_ext <<_ACEOF
10109 #line $LINENO "configure"
10110 #include "confdefs.h"
10111 $ac_includes_default
10112 #include <$ac_header>
10113 _ACEOF
10114 rm -f conftest.$ac_objext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10116 (eval $ac_compile) 2>&5
10117 ac_status=$?
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try='test -s conftest.$ac_objext'
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_header_compiler=yes
10127 else
10128 echo "$as_me: failed program was:" >&5
10129 cat conftest.$ac_ext >&5
10130 ac_header_compiler=no
10132 rm -f conftest.$ac_objext conftest.$ac_ext
10133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10134 echo "${ECHO_T}$ac_header_compiler" >&6
10136 # Is the header present?
10137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10139 cat >conftest.$ac_ext <<_ACEOF
10140 #line $LINENO "configure"
10141 #include "confdefs.h"
10142 #include <$ac_header>
10143 _ACEOF
10144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10146 ac_status=$?
10147 egrep -v '^ *\+' conftest.er1 >conftest.err
10148 rm -f conftest.er1
10149 cat conftest.err >&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } >/dev/null; then
10152 if test -s conftest.err; then
10153 ac_cpp_err=$ac_c_preproc_warn_flag
10154 else
10155 ac_cpp_err=
10157 else
10158 ac_cpp_err=yes
10160 if test -z "$ac_cpp_err"; then
10161 ac_header_preproc=yes
10162 else
10163 echo "$as_me: failed program was:" >&5
10164 cat conftest.$ac_ext >&5
10165 ac_header_preproc=no
10167 rm -f conftest.err conftest.$ac_ext
10168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10169 echo "${ECHO_T}$ac_header_preproc" >&6
10171 # So? What about this header?
10172 case $ac_header_compiler:$ac_header_preproc in
10173 yes:no )
10174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10178 no:yes )
10179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10185 esac
10186 echo "$as_me:$LINENO: checking for $ac_header" >&5
10187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191 eval "$as_ac_Header=$ac_header_preproc"
10193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10198 cat >>confdefs.h <<_ACEOF
10199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10200 _ACEOF
10204 done
10262 for ac_func in gethostname getdomainname dup2 \
10263 rename closedir mkdir rmdir sysinfo \
10264 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
10265 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
10266 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
10267 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10268 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10269 gai_strerror mkstemp getline getdelim
10271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10272 echo "$as_me:$LINENO: checking for $ac_func" >&5
10273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10274 if eval "test \"\${$as_ac_var+set}\" = set"; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 else
10277 cat >conftest.$ac_ext <<_ACEOF
10278 #line $LINENO "configure"
10279 #include "confdefs.h"
10280 /* System header to define __stub macros and hopefully few prototypes,
10281 which can conflict with char $ac_func (); below. */
10282 #include <assert.h>
10283 /* Override any gcc2 internal prototype to avoid an error. */
10284 #ifdef __cplusplus
10285 extern "C"
10286 #endif
10287 /* We use char because int might match the return type of a gcc2
10288 builtin and then its argument prototype would still apply. */
10289 char $ac_func ();
10290 char (*f) ();
10292 #ifdef F77_DUMMY_MAIN
10293 # ifdef __cplusplus
10294 extern "C"
10295 # endif
10296 int F77_DUMMY_MAIN() { return 1; }
10297 #endif
10299 main ()
10301 /* The GNU C library defines this for functions which it implements
10302 to always fail with ENOSYS. Some functions are actually named
10303 something starting with __ and the normal name is an alias. */
10304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10305 choke me
10306 #else
10307 f = $ac_func;
10308 #endif
10311 return 0;
10313 _ACEOF
10314 rm -f conftest.$ac_objext conftest$ac_exeext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10316 (eval $ac_link) 2>&5
10317 ac_status=$?
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try='test -s conftest$ac_exeext'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 eval "$as_ac_var=yes"
10327 else
10328 echo "$as_me: failed program was:" >&5
10329 cat conftest.$ac_ext >&5
10330 eval "$as_ac_var=no"
10332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10336 if test `eval echo '${'$as_ac_var'}'` = yes; then
10337 cat >>confdefs.h <<_ACEOF
10338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10339 _ACEOF
10342 done
10346 for ac_header in sys/un.h
10348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10350 echo "$as_me:$LINENO: checking for $ac_header" >&5
10351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10357 else
10358 # Is the header compilable?
10359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10361 cat >conftest.$ac_ext <<_ACEOF
10362 #line $LINENO "configure"
10363 #include "confdefs.h"
10364 $ac_includes_default
10365 #include <$ac_header>
10366 _ACEOF
10367 rm -f conftest.$ac_objext
10368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10369 (eval $ac_compile) 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } &&
10373 { ac_try='test -s conftest.$ac_objext'
10374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375 (eval $ac_try) 2>&5
10376 ac_status=$?
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; }; then
10379 ac_header_compiler=yes
10380 else
10381 echo "$as_me: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10383 ac_header_compiler=no
10385 rm -f conftest.$ac_objext conftest.$ac_ext
10386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10387 echo "${ECHO_T}$ac_header_compiler" >&6
10389 # Is the header present?
10390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10392 cat >conftest.$ac_ext <<_ACEOF
10393 #line $LINENO "configure"
10394 #include "confdefs.h"
10395 #include <$ac_header>
10396 _ACEOF
10397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10399 ac_status=$?
10400 egrep -v '^ *\+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } >/dev/null; then
10405 if test -s conftest.err; then
10406 ac_cpp_err=$ac_c_preproc_warn_flag
10407 else
10408 ac_cpp_err=
10410 else
10411 ac_cpp_err=yes
10413 if test -z "$ac_cpp_err"; then
10414 ac_header_preproc=yes
10415 else
10416 echo "$as_me: failed program was:" >&5
10417 cat conftest.$ac_ext >&5
10418 ac_header_preproc=no
10420 rm -f conftest.err conftest.$ac_ext
10421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10422 echo "${ECHO_T}$ac_header_preproc" >&6
10424 # So? What about this header?
10425 case $ac_header_compiler:$ac_header_preproc in
10426 yes:no )
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10431 no:yes )
10432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10438 esac
10439 echo "$as_me:$LINENO: checking for $ac_header" >&5
10440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444 eval "$as_ac_Header=$ac_header_preproc"
10446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10451 cat >>confdefs.h <<_ACEOF
10452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10453 _ACEOF
10457 done
10462 for ac_header in sys/time.h unistd.h
10464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10466 echo "$as_me:$LINENO: checking for $ac_header" >&5
10467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10473 else
10474 # Is the header compilable?
10475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10477 cat >conftest.$ac_ext <<_ACEOF
10478 #line $LINENO "configure"
10479 #include "confdefs.h"
10480 $ac_includes_default
10481 #include <$ac_header>
10482 _ACEOF
10483 rm -f conftest.$ac_objext
10484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10485 (eval $ac_compile) 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } &&
10489 { ac_try='test -s conftest.$ac_objext'
10490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491 (eval $ac_try) 2>&5
10492 ac_status=$?
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; }; then
10495 ac_header_compiler=yes
10496 else
10497 echo "$as_me: failed program was:" >&5
10498 cat conftest.$ac_ext >&5
10499 ac_header_compiler=no
10501 rm -f conftest.$ac_objext conftest.$ac_ext
10502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10503 echo "${ECHO_T}$ac_header_compiler" >&6
10505 # Is the header present?
10506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10508 cat >conftest.$ac_ext <<_ACEOF
10509 #line $LINENO "configure"
10510 #include "confdefs.h"
10511 #include <$ac_header>
10512 _ACEOF
10513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10515 ac_status=$?
10516 egrep -v '^ *\+' conftest.er1 >conftest.err
10517 rm -f conftest.er1
10518 cat conftest.err >&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } >/dev/null; then
10521 if test -s conftest.err; then
10522 ac_cpp_err=$ac_c_preproc_warn_flag
10523 else
10524 ac_cpp_err=
10526 else
10527 ac_cpp_err=yes
10529 if test -z "$ac_cpp_err"; then
10530 ac_header_preproc=yes
10531 else
10532 echo "$as_me: failed program was:" >&5
10533 cat conftest.$ac_ext >&5
10534 ac_header_preproc=no
10536 rm -f conftest.err conftest.$ac_ext
10537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10538 echo "${ECHO_T}$ac_header_preproc" >&6
10540 # So? What about this header?
10541 case $ac_header_compiler:$ac_header_preproc in
10542 yes:no )
10543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10547 no:yes )
10548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10554 esac
10555 echo "$as_me:$LINENO: checking for $ac_header" >&5
10556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10559 else
10560 eval "$as_ac_Header=$ac_header_preproc"
10562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10567 cat >>confdefs.h <<_ACEOF
10568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10569 _ACEOF
10573 done
10576 for ac_func in alarm
10578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10579 echo "$as_me:$LINENO: checking for $ac_func" >&5
10580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10581 if eval "test \"\${$as_ac_var+set}\" = set"; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10583 else
10584 cat >conftest.$ac_ext <<_ACEOF
10585 #line $LINENO "configure"
10586 #include "confdefs.h"
10587 /* System header to define __stub macros and hopefully few prototypes,
10588 which can conflict with char $ac_func (); below. */
10589 #include <assert.h>
10590 /* Override any gcc2 internal prototype to avoid an error. */
10591 #ifdef __cplusplus
10592 extern "C"
10593 #endif
10594 /* We use char because int might match the return type of a gcc2
10595 builtin and then its argument prototype would still apply. */
10596 char $ac_func ();
10597 char (*f) ();
10599 #ifdef F77_DUMMY_MAIN
10600 # ifdef __cplusplus
10601 extern "C"
10602 # endif
10603 int F77_DUMMY_MAIN() { return 1; }
10604 #endif
10606 main ()
10608 /* The GNU C library defines this for functions which it implements
10609 to always fail with ENOSYS. Some functions are actually named
10610 something starting with __ and the normal name is an alias. */
10611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10612 choke me
10613 #else
10614 f = $ac_func;
10615 #endif
10618 return 0;
10620 _ACEOF
10621 rm -f conftest.$ac_objext conftest$ac_exeext
10622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10623 (eval $ac_link) 2>&5
10624 ac_status=$?
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try='test -s conftest$ac_exeext'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; }; then
10633 eval "$as_ac_var=yes"
10634 else
10635 echo "$as_me: failed program was:" >&5
10636 cat conftest.$ac_ext >&5
10637 eval "$as_ac_var=no"
10639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10643 if test `eval echo '${'$as_ac_var'}'` = yes; then
10644 cat >>confdefs.h <<_ACEOF
10645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10646 _ACEOF
10649 done
10651 echo "$as_me:$LINENO: checking for working mktime" >&5
10652 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10653 if test "${ac_cv_func_working_mktime+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10655 else
10656 if test "$cross_compiling" = yes; then
10657 ac_cv_func_working_mktime=no
10658 else
10659 cat >conftest.$ac_ext <<_ACEOF
10660 #line $LINENO "configure"
10661 #include "confdefs.h"
10662 /* Test program from Paul Eggert and Tony Leneis. */
10663 #if TIME_WITH_SYS_TIME
10664 # include <sys/time.h>
10665 # include <time.h>
10666 #else
10667 # if HAVE_SYS_TIME_H
10668 # include <sys/time.h>
10669 # else
10670 # include <time.h>
10671 # endif
10672 #endif
10674 #if HAVE_UNISTD_H
10675 # include <unistd.h>
10676 #endif
10678 #if !HAVE_ALARM
10679 # define alarm(X) /* empty */
10680 #endif
10682 /* Work around redefinition to rpl_putenv by other config tests. */
10683 #undef putenv
10685 static time_t time_t_max;
10687 /* Values we'll use to set the TZ environment variable. */
10688 static const char *const tz_strings[] = {
10689 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10690 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10692 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10694 /* Fail if mktime fails to convert a date in the spring-forward gap.
10695 Based on a problem report from Andreas Jaeger. */
10696 static void
10697 spring_forward_gap ()
10699 /* glibc (up to about 1998-10-07) failed this test. */
10700 struct tm tm;
10702 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10703 instead of "TZ=America/Vancouver" in order to detect the bug even
10704 on systems that don't support the Olson extension, or don't have the
10705 full zoneinfo tables installed. */
10706 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10708 tm.tm_year = 98;
10709 tm.tm_mon = 3;
10710 tm.tm_mday = 5;
10711 tm.tm_hour = 2;
10712 tm.tm_min = 0;
10713 tm.tm_sec = 0;
10714 tm.tm_isdst = -1;
10715 if (mktime (&tm) == (time_t)-1)
10716 exit (1);
10719 static void
10720 mktime_test (now)
10721 time_t now;
10723 struct tm *lt;
10724 if ((lt = localtime (&now)) && mktime (lt) != now)
10725 exit (1);
10726 now = time_t_max - now;
10727 if ((lt = localtime (&now)) && mktime (lt) != now)
10728 exit (1);
10731 static void
10732 irix_6_4_bug ()
10734 /* Based on code from Ariel Faigon. */
10735 struct tm tm;
10736 tm.tm_year = 96;
10737 tm.tm_mon = 3;
10738 tm.tm_mday = 0;
10739 tm.tm_hour = 0;
10740 tm.tm_min = 0;
10741 tm.tm_sec = 0;
10742 tm.tm_isdst = -1;
10743 mktime (&tm);
10744 if (tm.tm_mon != 2 || tm.tm_mday != 31)
10745 exit (1);
10748 static void
10749 bigtime_test (j)
10750 int j;
10752 struct tm tm;
10753 time_t now;
10754 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10755 now = mktime (&tm);
10756 if (now != (time_t) -1)
10758 struct tm *lt = localtime (&now);
10759 if (! (lt
10760 && lt->tm_year == tm.tm_year
10761 && lt->tm_mon == tm.tm_mon
10762 && lt->tm_mday == tm.tm_mday
10763 && lt->tm_hour == tm.tm_hour
10764 && lt->tm_min == tm.tm_min
10765 && lt->tm_sec == tm.tm_sec
10766 && lt->tm_yday == tm.tm_yday
10767 && lt->tm_wday == tm.tm_wday
10768 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10769 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10770 exit (1);
10775 main ()
10777 time_t t, delta;
10778 int i, j;
10780 /* This test makes some buggy mktime implementations loop.
10781 Give up after 60 seconds; a mktime slower than that
10782 isn't worth using anyway. */
10783 alarm (60);
10785 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
10786 continue;
10787 time_t_max--;
10788 delta = time_t_max / 997; /* a suitable prime number */
10789 for (i = 0; i < N_STRINGS; i++)
10791 if (tz_strings[i])
10792 putenv (tz_strings[i]);
10794 for (t = 0; t <= time_t_max - delta; t += delta)
10795 mktime_test (t);
10796 mktime_test ((time_t) 60 * 60);
10797 mktime_test ((time_t) 60 * 60 * 24);
10799 for (j = 1; 0 < j; j *= 2)
10800 bigtime_test (j);
10801 bigtime_test (j - 1);
10803 irix_6_4_bug ();
10804 spring_forward_gap ();
10805 exit (0);
10807 _ACEOF
10808 rm -f conftest$ac_exeext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10810 (eval $ac_link) 2>&5
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10816 ac_status=$?
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; }; then
10819 ac_cv_func_working_mktime=yes
10820 else
10821 echo "$as_me: program exited with status $ac_status" >&5
10822 echo "$as_me: failed program was:" >&5
10823 cat conftest.$ac_ext >&5
10824 ( exit $ac_status )
10825 ac_cv_func_working_mktime=no
10827 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10830 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
10831 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
10832 if test $ac_cv_func_working_mktime = no; then
10833 LIBOBJS="$LIBOBJS mktime.$ac_objext"
10836 if test "$ac_cv_func_working_mktime" = no; then
10838 cat >>confdefs.h <<\_ACEOF
10839 #define BROKEN_MKTIME 1
10840 _ACEOF
10844 ac_have_func=no # yes means we've found a way to get the load average.
10846 ac_save_LIBS=$LIBS
10848 # Check for getloadavg, but be sure not to touch the cache variable.
10849 (echo "$as_me:$LINENO: checking for getloadavg" >&5
10850 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
10851 if test "${ac_cv_func_getloadavg+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 else
10854 cat >conftest.$ac_ext <<_ACEOF
10855 #line $LINENO "configure"
10856 #include "confdefs.h"
10857 /* System header to define __stub macros and hopefully few prototypes,
10858 which can conflict with char getloadavg (); below. */
10859 #include <assert.h>
10860 /* Override any gcc2 internal prototype to avoid an error. */
10861 #ifdef __cplusplus
10862 extern "C"
10863 #endif
10864 /* We use char because int might match the return type of a gcc2
10865 builtin and then its argument prototype would still apply. */
10866 char getloadavg ();
10867 char (*f) ();
10869 #ifdef F77_DUMMY_MAIN
10870 # ifdef __cplusplus
10871 extern "C"
10872 # endif
10873 int F77_DUMMY_MAIN() { return 1; }
10874 #endif
10876 main ()
10878 /* The GNU C library defines this for functions which it implements
10879 to always fail with ENOSYS. Some functions are actually named
10880 something starting with __ and the normal name is an alias. */
10881 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
10882 choke me
10883 #else
10884 f = getloadavg;
10885 #endif
10888 return 0;
10890 _ACEOF
10891 rm -f conftest.$ac_objext conftest$ac_exeext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10893 (eval $ac_link) 2>&5
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
10897 { ac_try='test -s conftest$ac_exeext'
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
10903 ac_cv_func_getloadavg=yes
10904 else
10905 echo "$as_me: failed program was:" >&5
10906 cat conftest.$ac_ext >&5
10907 ac_cv_func_getloadavg=no
10909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10911 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
10912 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
10913 if test $ac_cv_func_getloadavg = yes; then
10914 exit 0
10915 else
10916 exit 1
10918 ) && ac_have_func=yes
10920 # On HPUX9, an unprivileged user can get load averages through this function.
10922 for ac_func in pstat_getdynamic
10924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10925 echo "$as_me:$LINENO: checking for $ac_func" >&5
10926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10927 if eval "test \"\${$as_ac_var+set}\" = set"; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 else
10930 cat >conftest.$ac_ext <<_ACEOF
10931 #line $LINENO "configure"
10932 #include "confdefs.h"
10933 /* System header to define __stub macros and hopefully few prototypes,
10934 which can conflict with char $ac_func (); below. */
10935 #include <assert.h>
10936 /* Override any gcc2 internal prototype to avoid an error. */
10937 #ifdef __cplusplus
10938 extern "C"
10939 #endif
10940 /* We use char because int might match the return type of a gcc2
10941 builtin and then its argument prototype would still apply. */
10942 char $ac_func ();
10943 char (*f) ();
10945 #ifdef F77_DUMMY_MAIN
10946 # ifdef __cplusplus
10947 extern "C"
10948 # endif
10949 int F77_DUMMY_MAIN() { return 1; }
10950 #endif
10952 main ()
10954 /* The GNU C library defines this for functions which it implements
10955 to always fail with ENOSYS. Some functions are actually named
10956 something starting with __ and the normal name is an alias. */
10957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10958 choke me
10959 #else
10960 f = $ac_func;
10961 #endif
10964 return 0;
10966 _ACEOF
10967 rm -f conftest.$ac_objext conftest$ac_exeext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969 (eval $ac_link) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } &&
10973 { ac_try='test -s conftest$ac_exeext'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 eval "$as_ac_var=yes"
10980 else
10981 echo "$as_me: failed program was:" >&5
10982 cat conftest.$ac_ext >&5
10983 eval "$as_ac_var=no"
10985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10989 if test `eval echo '${'$as_ac_var'}'` = yes; then
10990 cat >>confdefs.h <<_ACEOF
10991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10992 _ACEOF
10995 done
10998 # Solaris has libkstat which does not require root.
11000 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
11001 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
11002 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005 ac_check_lib_save_LIBS=$LIBS
11006 LIBS="-lkstat $LIBS"
11007 cat >conftest.$ac_ext <<_ACEOF
11008 #line $LINENO "configure"
11009 #include "confdefs.h"
11011 /* Override any gcc2 internal prototype to avoid an error. */
11012 #ifdef __cplusplus
11013 extern "C"
11014 #endif
11015 /* We use char because int might match the return type of a gcc2
11016 builtin and then its argument prototype would still apply. */
11017 char kstat_open ();
11018 #ifdef F77_DUMMY_MAIN
11019 # ifdef __cplusplus
11020 extern "C"
11021 # endif
11022 int F77_DUMMY_MAIN() { return 1; }
11023 #endif
11025 main ()
11027 kstat_open ();
11029 return 0;
11031 _ACEOF
11032 rm -f conftest.$ac_objext conftest$ac_exeext
11033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11034 (eval $ac_link) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } &&
11038 { ac_try='test -s conftest$ac_exeext'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 ac_cv_lib_kstat_kstat_open=yes
11045 else
11046 echo "$as_me: failed program was:" >&5
11047 cat conftest.$ac_ext >&5
11048 ac_cv_lib_kstat_kstat_open=no
11050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11051 LIBS=$ac_check_lib_save_LIBS
11053 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11054 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
11055 if test $ac_cv_lib_kstat_kstat_open = yes; then
11056 cat >>confdefs.h <<_ACEOF
11057 #define HAVE_LIBKSTAT 1
11058 _ACEOF
11060 LIBS="-lkstat $LIBS"
11064 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11066 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11067 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11068 # to get the right answer into the cache.
11069 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11070 if test $ac_have_func = no; then
11071 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11072 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
11073 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 else
11076 ac_check_lib_save_LIBS=$LIBS
11077 LIBS="-lelf $LIBS"
11078 cat >conftest.$ac_ext <<_ACEOF
11079 #line $LINENO "configure"
11080 #include "confdefs.h"
11082 /* Override any gcc2 internal prototype to avoid an error. */
11083 #ifdef __cplusplus
11084 extern "C"
11085 #endif
11086 /* We use char because int might match the return type of a gcc2
11087 builtin and then its argument prototype would still apply. */
11088 char elf_begin ();
11089 #ifdef F77_DUMMY_MAIN
11090 # ifdef __cplusplus
11091 extern "C"
11092 # endif
11093 int F77_DUMMY_MAIN() { return 1; }
11094 #endif
11096 main ()
11098 elf_begin ();
11100 return 0;
11102 _ACEOF
11103 rm -f conftest.$ac_objext conftest$ac_exeext
11104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11105 (eval $ac_link) 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } &&
11109 { ac_try='test -s conftest$ac_exeext'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 ac_cv_lib_elf_elf_begin=yes
11116 else
11117 echo "$as_me: failed program was:" >&5
11118 cat conftest.$ac_ext >&5
11119 ac_cv_lib_elf_elf_begin=no
11121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11122 LIBS=$ac_check_lib_save_LIBS
11124 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
11125 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
11126 if test $ac_cv_lib_elf_elf_begin = yes; then
11127 LIBS="-lelf $LIBS"
11131 if test $ac_have_func = no; then
11132 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
11133 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
11134 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 else
11137 ac_check_lib_save_LIBS=$LIBS
11138 LIBS="-lkvm $LIBS"
11139 cat >conftest.$ac_ext <<_ACEOF
11140 #line $LINENO "configure"
11141 #include "confdefs.h"
11143 /* Override any gcc2 internal prototype to avoid an error. */
11144 #ifdef __cplusplus
11145 extern "C"
11146 #endif
11147 /* We use char because int might match the return type of a gcc2
11148 builtin and then its argument prototype would still apply. */
11149 char kvm_open ();
11150 #ifdef F77_DUMMY_MAIN
11151 # ifdef __cplusplus
11152 extern "C"
11153 # endif
11154 int F77_DUMMY_MAIN() { return 1; }
11155 #endif
11157 main ()
11159 kvm_open ();
11161 return 0;
11163 _ACEOF
11164 rm -f conftest.$ac_objext conftest$ac_exeext
11165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11166 (eval $ac_link) 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try='test -s conftest$ac_exeext'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 ac_cv_lib_kvm_kvm_open=yes
11177 else
11178 echo "$as_me: failed program was:" >&5
11179 cat conftest.$ac_ext >&5
11180 ac_cv_lib_kvm_kvm_open=no
11182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11183 LIBS=$ac_check_lib_save_LIBS
11185 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11186 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
11187 if test $ac_cv_lib_kvm_kvm_open = yes; then
11188 LIBS="-lkvm $LIBS"
11191 # Check for the 4.4BSD definition of getloadavg.
11192 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11193 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
11194 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197 ac_check_lib_save_LIBS=$LIBS
11198 LIBS="-lutil $LIBS"
11199 cat >conftest.$ac_ext <<_ACEOF
11200 #line $LINENO "configure"
11201 #include "confdefs.h"
11203 /* Override any gcc2 internal prototype to avoid an error. */
11204 #ifdef __cplusplus
11205 extern "C"
11206 #endif
11207 /* We use char because int might match the return type of a gcc2
11208 builtin and then its argument prototype would still apply. */
11209 char getloadavg ();
11210 #ifdef F77_DUMMY_MAIN
11211 # ifdef __cplusplus
11212 extern "C"
11213 # endif
11214 int F77_DUMMY_MAIN() { return 1; }
11215 #endif
11217 main ()
11219 getloadavg ();
11221 return 0;
11223 _ACEOF
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226 (eval $ac_link) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11236 ac_cv_lib_util_getloadavg=yes
11237 else
11238 echo "$as_me: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11240 ac_cv_lib_util_getloadavg=no
11242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11243 LIBS=$ac_check_lib_save_LIBS
11245 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11246 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
11247 if test $ac_cv_lib_util_getloadavg = yes; then
11248 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11253 if test $ac_have_func = no; then
11254 # There is a commonly available library for RS/6000 AIX.
11255 # Since it is not a standard part of AIX, it might be installed locally.
11256 ac_getloadavg_LIBS=$LIBS
11257 LIBS="-L/usr/local/lib $LIBS"
11258 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11259 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
11260 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 else
11263 ac_check_lib_save_LIBS=$LIBS
11264 LIBS="-lgetloadavg $LIBS"
11265 cat >conftest.$ac_ext <<_ACEOF
11266 #line $LINENO "configure"
11267 #include "confdefs.h"
11269 /* Override any gcc2 internal prototype to avoid an error. */
11270 #ifdef __cplusplus
11271 extern "C"
11272 #endif
11273 /* We use char because int might match the return type of a gcc2
11274 builtin and then its argument prototype would still apply. */
11275 char getloadavg ();
11276 #ifdef F77_DUMMY_MAIN
11277 # ifdef __cplusplus
11278 extern "C"
11279 # endif
11280 int F77_DUMMY_MAIN() { return 1; }
11281 #endif
11283 main ()
11285 getloadavg ();
11287 return 0;
11289 _ACEOF
11290 rm -f conftest.$ac_objext conftest$ac_exeext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>&5
11293 ac_status=$?
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } &&
11296 { ac_try='test -s conftest$ac_exeext'
11297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11299 ac_status=$?
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11302 ac_cv_lib_getloadavg_getloadavg=yes
11303 else
11304 echo "$as_me: failed program was:" >&5
11305 cat conftest.$ac_ext >&5
11306 ac_cv_lib_getloadavg_getloadavg=no
11308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11309 LIBS=$ac_check_lib_save_LIBS
11311 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11312 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
11313 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11314 LIBS="-lgetloadavg $LIBS"
11315 else
11316 LIBS=$ac_getloadavg_LIBS
11321 # Make sure it is really in the library, if we think we found it,
11322 # otherwise set up the replacement function.
11324 for ac_func in getloadavg
11326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11327 echo "$as_me:$LINENO: checking for $ac_func" >&5
11328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11329 if eval "test \"\${$as_ac_var+set}\" = set"; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 else
11332 cat >conftest.$ac_ext <<_ACEOF
11333 #line $LINENO "configure"
11334 #include "confdefs.h"
11335 /* System header to define __stub macros and hopefully few prototypes,
11336 which can conflict with char $ac_func (); below. */
11337 #include <assert.h>
11338 /* Override any gcc2 internal prototype to avoid an error. */
11339 #ifdef __cplusplus
11340 extern "C"
11341 #endif
11342 /* We use char because int might match the return type of a gcc2
11343 builtin and then its argument prototype would still apply. */
11344 char $ac_func ();
11345 char (*f) ();
11347 #ifdef F77_DUMMY_MAIN
11348 # ifdef __cplusplus
11349 extern "C"
11350 # endif
11351 int F77_DUMMY_MAIN() { return 1; }
11352 #endif
11354 main ()
11356 /* The GNU C library defines this for functions which it implements
11357 to always fail with ENOSYS. Some functions are actually named
11358 something starting with __ and the normal name is an alias. */
11359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11360 choke me
11361 #else
11362 f = $ac_func;
11363 #endif
11366 return 0;
11368 _ACEOF
11369 rm -f conftest.$ac_objext conftest$ac_exeext
11370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11371 (eval $ac_link) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } &&
11375 { ac_try='test -s conftest$ac_exeext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 eval "$as_ac_var=yes"
11382 else
11383 echo "$as_me: failed program was:" >&5
11384 cat conftest.$ac_ext >&5
11385 eval "$as_ac_var=no"
11387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11391 if test `eval echo '${'$as_ac_var'}'` = yes; then
11392 cat >>confdefs.h <<_ACEOF
11393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11394 _ACEOF
11396 else
11397 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11399 cat >>confdefs.h <<\_ACEOF
11400 #define C_GETLOADAVG 1
11401 _ACEOF
11403 # Figure out what our getloadavg.c needs.
11404 ac_have_func=no
11405 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11406 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11407 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11408 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11412 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11413 else
11414 # Is the header compilable?
11415 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
11416 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
11417 cat >conftest.$ac_ext <<_ACEOF
11418 #line $LINENO "configure"
11419 #include "confdefs.h"
11420 $ac_includes_default
11421 #include <sys/dg_sys_info.h>
11422 _ACEOF
11423 rm -f conftest.$ac_objext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425 (eval $ac_compile) 2>&5
11426 ac_status=$?
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try='test -s conftest.$ac_objext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11432 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 ac_header_compiler=yes
11436 else
11437 echo "$as_me: failed program was:" >&5
11438 cat conftest.$ac_ext >&5
11439 ac_header_compiler=no
11441 rm -f conftest.$ac_objext conftest.$ac_ext
11442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11443 echo "${ECHO_T}$ac_header_compiler" >&6
11445 # Is the header present?
11446 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
11447 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
11448 cat >conftest.$ac_ext <<_ACEOF
11449 #line $LINENO "configure"
11450 #include "confdefs.h"
11451 #include <sys/dg_sys_info.h>
11452 _ACEOF
11453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11455 ac_status=$?
11456 egrep -v '^ *\+' conftest.er1 >conftest.err
11457 rm -f conftest.er1
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } >/dev/null; then
11461 if test -s conftest.err; then
11462 ac_cpp_err=$ac_c_preproc_warn_flag
11463 else
11464 ac_cpp_err=
11466 else
11467 ac_cpp_err=yes
11469 if test -z "$ac_cpp_err"; then
11470 ac_header_preproc=yes
11471 else
11472 echo "$as_me: failed program was:" >&5
11473 cat conftest.$ac_ext >&5
11474 ac_header_preproc=no
11476 rm -f conftest.err conftest.$ac_ext
11477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11478 echo "${ECHO_T}$ac_header_preproc" >&6
11480 # So? What about this header?
11481 case $ac_header_compiler:$ac_header_preproc in
11482 yes:no )
11483 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
11484 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11486 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11487 no:yes )
11488 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
11489 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
11491 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
11492 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11493 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11494 esac
11495 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11496 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11497 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 else
11500 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
11502 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11503 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11506 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11507 ac_have_func=yes
11509 cat >>confdefs.h <<\_ACEOF
11510 #define DGUX 1
11511 _ACEOF
11514 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11515 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
11516 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 else
11519 ac_check_lib_save_LIBS=$LIBS
11520 LIBS="-ldgc $LIBS"
11521 cat >conftest.$ac_ext <<_ACEOF
11522 #line $LINENO "configure"
11523 #include "confdefs.h"
11525 /* Override any gcc2 internal prototype to avoid an error. */
11526 #ifdef __cplusplus
11527 extern "C"
11528 #endif
11529 /* We use char because int might match the return type of a gcc2
11530 builtin and then its argument prototype would still apply. */
11531 char dg_sys_info ();
11532 #ifdef F77_DUMMY_MAIN
11533 # ifdef __cplusplus
11534 extern "C"
11535 # endif
11536 int F77_DUMMY_MAIN() { return 1; }
11537 #endif
11539 main ()
11541 dg_sys_info ();
11543 return 0;
11545 _ACEOF
11546 rm -f conftest.$ac_objext conftest$ac_exeext
11547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11548 (eval $ac_link) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } &&
11552 { ac_try='test -s conftest$ac_exeext'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11558 ac_cv_lib_dgc_dg_sys_info=yes
11559 else
11560 echo "$as_me: failed program was:" >&5
11561 cat conftest.$ac_ext >&5
11562 ac_cv_lib_dgc_dg_sys_info=no
11564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11565 LIBS=$ac_check_lib_save_LIBS
11567 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11568 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
11569 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11570 cat >>confdefs.h <<_ACEOF
11571 #define HAVE_LIBDGC 1
11572 _ACEOF
11574 LIBS="-ldgc $LIBS"
11582 if test "${ac_cv_header_locale_h+set}" = set; then
11583 echo "$as_me:$LINENO: checking for locale.h" >&5
11584 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11585 if test "${ac_cv_header_locale_h+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11589 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11590 else
11591 # Is the header compilable?
11592 echo "$as_me:$LINENO: checking locale.h usability" >&5
11593 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
11594 cat >conftest.$ac_ext <<_ACEOF
11595 #line $LINENO "configure"
11596 #include "confdefs.h"
11597 $ac_includes_default
11598 #include <locale.h>
11599 _ACEOF
11600 rm -f conftest.$ac_objext
11601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11602 (eval $ac_compile) 2>&5
11603 ac_status=$?
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
11606 { ac_try='test -s conftest.$ac_objext'
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; }; then
11612 ac_header_compiler=yes
11613 else
11614 echo "$as_me: failed program was:" >&5
11615 cat conftest.$ac_ext >&5
11616 ac_header_compiler=no
11618 rm -f conftest.$ac_objext conftest.$ac_ext
11619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11620 echo "${ECHO_T}$ac_header_compiler" >&6
11622 # Is the header present?
11623 echo "$as_me:$LINENO: checking locale.h presence" >&5
11624 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
11625 cat >conftest.$ac_ext <<_ACEOF
11626 #line $LINENO "configure"
11627 #include "confdefs.h"
11628 #include <locale.h>
11629 _ACEOF
11630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11632 ac_status=$?
11633 egrep -v '^ *\+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } >/dev/null; then
11638 if test -s conftest.err; then
11639 ac_cpp_err=$ac_c_preproc_warn_flag
11640 else
11641 ac_cpp_err=
11643 else
11644 ac_cpp_err=yes
11646 if test -z "$ac_cpp_err"; then
11647 ac_header_preproc=yes
11648 else
11649 echo "$as_me: failed program was:" >&5
11650 cat conftest.$ac_ext >&5
11651 ac_header_preproc=no
11653 rm -f conftest.err conftest.$ac_ext
11654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11655 echo "${ECHO_T}$ac_header_preproc" >&6
11657 # So? What about this header?
11658 case $ac_header_compiler:$ac_header_preproc in
11659 yes:no )
11660 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
11661 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11662 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11663 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11664 no:yes )
11665 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
11666 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
11667 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
11668 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
11669 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11670 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11671 esac
11672 echo "$as_me:$LINENO: checking for locale.h" >&5
11673 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11674 if test "${ac_cv_header_locale_h+set}" = set; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11676 else
11677 ac_cv_header_locale_h=$ac_header_preproc
11679 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11680 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11686 for ac_func in setlocale
11688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11689 echo "$as_me:$LINENO: checking for $ac_func" >&5
11690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11691 if eval "test \"\${$as_ac_var+set}\" = set"; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 else
11694 cat >conftest.$ac_ext <<_ACEOF
11695 #line $LINENO "configure"
11696 #include "confdefs.h"
11697 /* System header to define __stub macros and hopefully few prototypes,
11698 which can conflict with char $ac_func (); below. */
11699 #include <assert.h>
11700 /* Override any gcc2 internal prototype to avoid an error. */
11701 #ifdef __cplusplus
11702 extern "C"
11703 #endif
11704 /* We use char because int might match the return type of a gcc2
11705 builtin and then its argument prototype would still apply. */
11706 char $ac_func ();
11707 char (*f) ();
11709 #ifdef F77_DUMMY_MAIN
11710 # ifdef __cplusplus
11711 extern "C"
11712 # endif
11713 int F77_DUMMY_MAIN() { return 1; }
11714 #endif
11716 main ()
11718 /* The GNU C library defines this for functions which it implements
11719 to always fail with ENOSYS. Some functions are actually named
11720 something starting with __ and the normal name is an alias. */
11721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11722 choke me
11723 #else
11724 f = $ac_func;
11725 #endif
11728 return 0;
11730 _ACEOF
11731 rm -f conftest.$ac_objext conftest$ac_exeext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11733 (eval $ac_link) 2>&5
11734 ac_status=$?
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } &&
11737 { ac_try='test -s conftest$ac_exeext'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 eval "$as_ac_var=yes"
11744 else
11745 echo "$as_me: failed program was:" >&5
11746 cat conftest.$ac_ext >&5
11747 eval "$as_ac_var=no"
11749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11753 if test `eval echo '${'$as_ac_var'}'` = yes; then
11754 cat >>confdefs.h <<_ACEOF
11755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11756 _ACEOF
11759 done
11762 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11763 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11764 # Irix 4.0.5F has the header but not the library.
11765 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11766 ac_have_func=yes
11768 cat >>confdefs.h <<\_ACEOF
11769 #define SVR4 1
11770 _ACEOF
11774 if test $ac_have_func = no; then
11775 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11776 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11777 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11778 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11782 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11783 else
11784 # Is the header compilable?
11785 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
11786 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
11787 cat >conftest.$ac_ext <<_ACEOF
11788 #line $LINENO "configure"
11789 #include "confdefs.h"
11790 $ac_includes_default
11791 #include <inq_stats/cpustats.h>
11792 _ACEOF
11793 rm -f conftest.$ac_objext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11795 (eval $ac_compile) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -s conftest.$ac_objext'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 ac_header_compiler=yes
11806 else
11807 echo "$as_me: failed program was:" >&5
11808 cat conftest.$ac_ext >&5
11809 ac_header_compiler=no
11811 rm -f conftest.$ac_objext conftest.$ac_ext
11812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11813 echo "${ECHO_T}$ac_header_compiler" >&6
11815 # Is the header present?
11816 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
11817 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
11818 cat >conftest.$ac_ext <<_ACEOF
11819 #line $LINENO "configure"
11820 #include "confdefs.h"
11821 #include <inq_stats/cpustats.h>
11822 _ACEOF
11823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11825 ac_status=$?
11826 egrep -v '^ *\+' conftest.er1 >conftest.err
11827 rm -f conftest.er1
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } >/dev/null; then
11831 if test -s conftest.err; then
11832 ac_cpp_err=$ac_c_preproc_warn_flag
11833 else
11834 ac_cpp_err=
11836 else
11837 ac_cpp_err=yes
11839 if test -z "$ac_cpp_err"; then
11840 ac_header_preproc=yes
11841 else
11842 echo "$as_me: failed program was:" >&5
11843 cat conftest.$ac_ext >&5
11844 ac_header_preproc=no
11846 rm -f conftest.err conftest.$ac_ext
11847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11848 echo "${ECHO_T}$ac_header_preproc" >&6
11850 # So? What about this header?
11851 case $ac_header_compiler:$ac_header_preproc in
11852 yes:no )
11853 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11854 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11855 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11856 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11857 no:yes )
11858 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
11859 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
11861 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11863 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11864 esac
11865 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11866 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11867 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11869 else
11870 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
11872 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11873 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11876 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11877 ac_have_func=yes
11879 cat >>confdefs.h <<\_ACEOF
11880 #define UMAX 1
11881 _ACEOF
11884 cat >>confdefs.h <<\_ACEOF
11885 #define UMAX4_3 1
11886 _ACEOF
11893 if test $ac_have_func = no; then
11894 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11895 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11896 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11897 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11900 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11901 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11902 else
11903 # Is the header compilable?
11904 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
11905 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
11906 cat >conftest.$ac_ext <<_ACEOF
11907 #line $LINENO "configure"
11908 #include "confdefs.h"
11909 $ac_includes_default
11910 #include <sys/cpustats.h>
11911 _ACEOF
11912 rm -f conftest.$ac_objext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11914 (eval $ac_compile) 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -s conftest.$ac_objext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 ac_header_compiler=yes
11925 else
11926 echo "$as_me: failed program was:" >&5
11927 cat conftest.$ac_ext >&5
11928 ac_header_compiler=no
11930 rm -f conftest.$ac_objext conftest.$ac_ext
11931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11932 echo "${ECHO_T}$ac_header_compiler" >&6
11934 # Is the header present?
11935 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11936 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11937 cat >conftest.$ac_ext <<_ACEOF
11938 #line $LINENO "configure"
11939 #include "confdefs.h"
11940 #include <sys/cpustats.h>
11941 _ACEOF
11942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11944 ac_status=$?
11945 egrep -v '^ *\+' conftest.er1 >conftest.err
11946 rm -f conftest.er1
11947 cat conftest.err >&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } >/dev/null; then
11950 if test -s conftest.err; then
11951 ac_cpp_err=$ac_c_preproc_warn_flag
11952 else
11953 ac_cpp_err=
11955 else
11956 ac_cpp_err=yes
11958 if test -z "$ac_cpp_err"; then
11959 ac_header_preproc=yes
11960 else
11961 echo "$as_me: failed program was:" >&5
11962 cat conftest.$ac_ext >&5
11963 ac_header_preproc=no
11965 rm -f conftest.err conftest.$ac_ext
11966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11967 echo "${ECHO_T}$ac_header_preproc" >&6
11969 # So? What about this header?
11970 case $ac_header_compiler:$ac_header_preproc in
11971 yes:no )
11972 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11973 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11974 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11975 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11976 no:yes )
11977 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11978 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11979 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
11980 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
11981 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11982 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11983 esac
11984 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11985 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11986 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11987 echo $ECHO_N "(cached) $ECHO_C" >&6
11988 else
11989 ac_cv_header_sys_cpustats_h=$ac_header_preproc
11991 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11992 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11995 if test $ac_cv_header_sys_cpustats_h = yes; then
11996 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
11997 #define UMAX 1
11998 _ACEOF
12005 if test $ac_have_func = no; then
12007 for ac_header in mach/mach.h
12009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12011 echo "$as_me:$LINENO: checking for $ac_header" >&5
12012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12018 else
12019 # Is the header compilable?
12020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12022 cat >conftest.$ac_ext <<_ACEOF
12023 #line $LINENO "configure"
12024 #include "confdefs.h"
12025 $ac_includes_default
12026 #include <$ac_header>
12027 _ACEOF
12028 rm -f conftest.$ac_objext
12029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030 (eval $ac_compile) 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } &&
12034 { ac_try='test -s conftest.$ac_objext'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 ac_header_compiler=yes
12041 else
12042 echo "$as_me: failed program was:" >&5
12043 cat conftest.$ac_ext >&5
12044 ac_header_compiler=no
12046 rm -f conftest.$ac_objext conftest.$ac_ext
12047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12048 echo "${ECHO_T}$ac_header_compiler" >&6
12050 # Is the header present?
12051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12053 cat >conftest.$ac_ext <<_ACEOF
12054 #line $LINENO "configure"
12055 #include "confdefs.h"
12056 #include <$ac_header>
12057 _ACEOF
12058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12060 ac_status=$?
12061 egrep -v '^ *\+' conftest.er1 >conftest.err
12062 rm -f conftest.er1
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } >/dev/null; then
12066 if test -s conftest.err; then
12067 ac_cpp_err=$ac_c_preproc_warn_flag
12068 else
12069 ac_cpp_err=
12071 else
12072 ac_cpp_err=yes
12074 if test -z "$ac_cpp_err"; then
12075 ac_header_preproc=yes
12076 else
12077 echo "$as_me: failed program was:" >&5
12078 cat conftest.$ac_ext >&5
12079 ac_header_preproc=no
12081 rm -f conftest.err conftest.$ac_ext
12082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12083 echo "${ECHO_T}$ac_header_preproc" >&6
12085 # So? What about this header?
12086 case $ac_header_compiler:$ac_header_preproc in
12087 yes:no )
12088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12092 no:yes )
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12099 esac
12100 echo "$as_me:$LINENO: checking for $ac_header" >&5
12101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 else
12105 eval "$as_ac_Header=$ac_header_preproc"
12107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12112 cat >>confdefs.h <<_ACEOF
12113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12114 _ACEOF
12118 done
12123 for ac_header in nlist.h
12125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12127 echo "$as_me:$LINENO: checking for $ac_header" >&5
12128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12134 else
12135 # Is the header compilable?
12136 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12138 cat >conftest.$ac_ext <<_ACEOF
12139 #line $LINENO "configure"
12140 #include "confdefs.h"
12141 $ac_includes_default
12142 #include <$ac_header>
12143 _ACEOF
12144 rm -f conftest.$ac_objext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12146 (eval $ac_compile) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } &&
12150 { ac_try='test -s conftest.$ac_objext'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 ac_header_compiler=yes
12157 else
12158 echo "$as_me: failed program was:" >&5
12159 cat conftest.$ac_ext >&5
12160 ac_header_compiler=no
12162 rm -f conftest.$ac_objext conftest.$ac_ext
12163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12164 echo "${ECHO_T}$ac_header_compiler" >&6
12166 # Is the header present?
12167 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12169 cat >conftest.$ac_ext <<_ACEOF
12170 #line $LINENO "configure"
12171 #include "confdefs.h"
12172 #include <$ac_header>
12173 _ACEOF
12174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12176 ac_status=$?
12177 egrep -v '^ *\+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } >/dev/null; then
12182 if test -s conftest.err; then
12183 ac_cpp_err=$ac_c_preproc_warn_flag
12184 else
12185 ac_cpp_err=
12187 else
12188 ac_cpp_err=yes
12190 if test -z "$ac_cpp_err"; then
12191 ac_header_preproc=yes
12192 else
12193 echo "$as_me: failed program was:" >&5
12194 cat conftest.$ac_ext >&5
12195 ac_header_preproc=no
12197 rm -f conftest.err conftest.$ac_ext
12198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12199 echo "${ECHO_T}$ac_header_preproc" >&6
12201 # So? What about this header?
12202 case $ac_header_compiler:$ac_header_preproc in
12203 yes:no )
12204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12208 no:yes )
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12215 esac
12216 echo "$as_me:$LINENO: checking for $ac_header" >&5
12217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 else
12221 eval "$as_ac_Header=$ac_header_preproc"
12223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12228 cat >>confdefs.h <<_ACEOF
12229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12230 _ACEOF
12231 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
12232 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
12233 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 else
12236 cat >conftest.$ac_ext <<_ACEOF
12237 #line $LINENO "configure"
12238 #include "confdefs.h"
12239 #include <nlist.h>
12241 #ifdef F77_DUMMY_MAIN
12242 # ifdef __cplusplus
12243 extern "C"
12244 # endif
12245 int F77_DUMMY_MAIN() { return 1; }
12246 #endif
12248 main ()
12250 static struct nlist ac_aggr;
12251 if (ac_aggr.n_un.n_name)
12252 return 0;
12254 return 0;
12256 _ACEOF
12257 rm -f conftest.$ac_objext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12259 (eval $ac_compile) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } &&
12263 { ac_try='test -s conftest.$ac_objext'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 ac_cv_member_struct_nlist_n_un_n_name=yes
12270 else
12271 echo "$as_me: failed program was:" >&5
12272 cat conftest.$ac_ext >&5
12273 ac_cv_member_struct_nlist_n_un_n_name=no
12275 rm -f conftest.$ac_objext conftest.$ac_ext
12277 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
12278 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
12279 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
12281 cat >>confdefs.h <<_ACEOF
12282 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12283 _ACEOF
12286 cat >>confdefs.h <<\_ACEOF
12287 #define NLIST_NAME_UNION 1
12288 _ACEOF
12295 done
12298 done
12301 # Some definitions of getloadavg require that the program be installed setgid.
12302 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
12303 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
12304 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 else
12307 cat >conftest.$ac_ext <<_ACEOF
12308 #line $LINENO "configure"
12309 #include "confdefs.h"
12310 #include "$srcdir/getloadavg.c"
12311 #ifdef LDAV_PRIVILEGED
12312 Yowza Am I SETGID yet
12313 #endif
12314 _ACEOF
12315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12316 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
12317 ac_cv_func_getloadavg_setgid=yes
12318 else
12319 ac_cv_func_getloadavg_setgid=no
12321 rm -f conftest*
12324 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
12325 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
12326 if test $ac_cv_func_getloadavg_setgid = yes; then
12327 NEED_SETGID=true
12329 cat >>confdefs.h <<\_ACEOF
12330 #define GETLOADAVG_PRIVILEGED 1
12331 _ACEOF
12333 else
12334 NEED_SETGID=false
12337 if test $ac_cv_func_getloadavg_setgid = yes; then
12338 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
12339 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
12340 if test "${ac_cv_group_kmem+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 else
12343 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12344 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12345 # If we got an error (system does not support symlinks), try without -L.
12346 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12347 ac_cv_group_kmem=`echo $ac_ls_output \
12348 | sed -ne 's/[ ][ ]*/ /g;
12349 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12350 / /s/.* //;p;'`
12353 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
12354 echo "${ECHO_T}$ac_cv_group_kmem" >&6
12355 KMEM_GROUP=$ac_cv_group_kmem
12357 if test "x$ac_save_LIBS" = x; then
12358 GETLOADAVG_LIBS=$LIBS
12359 else
12360 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
12362 LIBS=$ac_save_LIBS
12366 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12367 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12368 if test "${ac_cv_sys_largefile_source+set}" = set; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12370 else
12371 while :; do
12372 ac_cv_sys_largefile_source=no
12373 cat >conftest.$ac_ext <<_ACEOF
12374 #line $LINENO "configure"
12375 #include "confdefs.h"
12376 #include <stdio.h>
12377 #ifdef F77_DUMMY_MAIN
12378 # ifdef __cplusplus
12379 extern "C"
12380 # endif
12381 int F77_DUMMY_MAIN() { return 1; }
12382 #endif
12384 main ()
12386 return !fseeko;
12388 return 0;
12390 _ACEOF
12391 rm -f conftest.$ac_objext
12392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12393 (eval $ac_compile) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
12397 { ac_try='test -s conftest.$ac_objext'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 break
12404 else
12405 echo "$as_me: failed program was:" >&5
12406 cat conftest.$ac_ext >&5
12408 rm -f conftest.$ac_objext conftest.$ac_ext
12409 cat >conftest.$ac_ext <<_ACEOF
12410 #line $LINENO "configure"
12411 #include "confdefs.h"
12412 #define _LARGEFILE_SOURCE 1
12413 #include <stdio.h>
12414 #ifdef F77_DUMMY_MAIN
12415 # ifdef __cplusplus
12416 extern "C"
12417 # endif
12418 int F77_DUMMY_MAIN() { return 1; }
12419 #endif
12421 main ()
12423 return !fseeko;
12425 return 0;
12427 _ACEOF
12428 rm -f conftest.$ac_objext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12430 (eval $ac_compile) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
12434 { ac_try='test -s conftest.$ac_objext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 ac_cv_sys_largefile_source=1; break
12441 else
12442 echo "$as_me: failed program was:" >&5
12443 cat conftest.$ac_ext >&5
12445 rm -f conftest.$ac_objext conftest.$ac_ext
12446 break
12447 done
12449 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12450 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12451 if test "$ac_cv_sys_largefile_source" != no; then
12453 cat >>confdefs.h <<_ACEOF
12454 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12455 _ACEOF
12458 rm -f conftest*
12460 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12461 # in glibc 2.1.3, but that breaks too many other things.
12462 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12463 echo "$as_me:$LINENO: checking for fseeko" >&5
12464 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12465 if test "${ac_cv_func_fseeko+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468 cat >conftest.$ac_ext <<_ACEOF
12469 #line $LINENO "configure"
12470 #include "confdefs.h"
12471 #include <stdio.h>
12472 #ifdef F77_DUMMY_MAIN
12473 # ifdef __cplusplus
12474 extern "C"
12475 # endif
12476 int F77_DUMMY_MAIN() { return 1; }
12477 #endif
12479 main ()
12481 return fseeko && fseeko (stdin, 0, 0);
12483 return 0;
12485 _ACEOF
12486 rm -f conftest.$ac_objext conftest$ac_exeext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12488 (eval $ac_link) 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
12492 { ac_try='test -s conftest$ac_exeext'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; }; then
12498 ac_cv_func_fseeko=yes
12499 else
12500 echo "$as_me: failed program was:" >&5
12501 cat conftest.$ac_ext >&5
12502 ac_cv_func_fseeko=no
12504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12506 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12507 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12508 if test $ac_cv_func_fseeko = yes; then
12510 cat >>confdefs.h <<\_ACEOF
12511 #define HAVE_FSEEKO 1
12512 _ACEOF
12517 # UNIX98 PTYs.
12519 for ac_func in grantpt
12521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12522 echo "$as_me:$LINENO: checking for $ac_func" >&5
12523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12524 if eval "test \"\${$as_ac_var+set}\" = set"; then
12525 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 else
12527 cat >conftest.$ac_ext <<_ACEOF
12528 #line $LINENO "configure"
12529 #include "confdefs.h"
12530 /* System header to define __stub macros and hopefully few prototypes,
12531 which can conflict with char $ac_func (); below. */
12532 #include <assert.h>
12533 /* Override any gcc2 internal prototype to avoid an error. */
12534 #ifdef __cplusplus
12535 extern "C"
12536 #endif
12537 /* We use char because int might match the return type of a gcc2
12538 builtin and then its argument prototype would still apply. */
12539 char $ac_func ();
12540 char (*f) ();
12542 #ifdef F77_DUMMY_MAIN
12543 # ifdef __cplusplus
12544 extern "C"
12545 # endif
12546 int F77_DUMMY_MAIN() { return 1; }
12547 #endif
12549 main ()
12551 /* The GNU C library defines this for functions which it implements
12552 to always fail with ENOSYS. Some functions are actually named
12553 something starting with __ and the normal name is an alias. */
12554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12555 choke me
12556 #else
12557 f = $ac_func;
12558 #endif
12561 return 0;
12563 _ACEOF
12564 rm -f conftest.$ac_objext conftest$ac_exeext
12565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12566 (eval $ac_link) 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
12570 { ac_try='test -s conftest$ac_exeext'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12576 eval "$as_ac_var=yes"
12577 else
12578 echo "$as_me: failed program was:" >&5
12579 cat conftest.$ac_ext >&5
12580 eval "$as_ac_var=no"
12582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12586 if test `eval echo '${'$as_ac_var'}'` = yes; then
12587 cat >>confdefs.h <<_ACEOF
12588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12589 _ACEOF
12592 done
12595 # PTY-related GNU extensions.
12597 for ac_func in getpt
12599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12600 echo "$as_me:$LINENO: checking for $ac_func" >&5
12601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12602 if eval "test \"\${$as_ac_var+set}\" = set"; then
12603 echo $ECHO_N "(cached) $ECHO_C" >&6
12604 else
12605 cat >conftest.$ac_ext <<_ACEOF
12606 #line $LINENO "configure"
12607 #include "confdefs.h"
12608 /* System header to define __stub macros and hopefully few prototypes,
12609 which can conflict with char $ac_func (); below. */
12610 #include <assert.h>
12611 /* Override any gcc2 internal prototype to avoid an error. */
12612 #ifdef __cplusplus
12613 extern "C"
12614 #endif
12615 /* We use char because int might match the return type of a gcc2
12616 builtin and then its argument prototype would still apply. */
12617 char $ac_func ();
12618 char (*f) ();
12620 #ifdef F77_DUMMY_MAIN
12621 # ifdef __cplusplus
12622 extern "C"
12623 # endif
12624 int F77_DUMMY_MAIN() { return 1; }
12625 #endif
12627 main ()
12629 /* The GNU C library defines this for functions which it implements
12630 to always fail with ENOSYS. Some functions are actually named
12631 something starting with __ and the normal name is an alias. */
12632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12633 choke me
12634 #else
12635 f = $ac_func;
12636 #endif
12639 return 0;
12641 _ACEOF
12642 rm -f conftest.$ac_objext conftest$ac_exeext
12643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12644 (eval $ac_link) 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } &&
12648 { ac_try='test -s conftest$ac_exeext'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 eval "$as_ac_var=yes"
12655 else
12656 echo "$as_me: failed program was:" >&5
12657 cat conftest.$ac_ext >&5
12658 eval "$as_ac_var=no"
12660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12664 if test `eval echo '${'$as_ac_var'}'` = yes; then
12665 cat >>confdefs.h <<_ACEOF
12666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12667 _ACEOF
12670 done
12673 # Check this now, so that we will NOT find the above functions in ncurses.
12674 # That is because we have not set up to link ncurses in lib-src.
12675 # It's better to believe a function is not available
12676 # than to expect to find it in ncurses.
12678 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
12679 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
12680 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
12681 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 else
12683 ac_check_lib_save_LIBS=$LIBS
12684 LIBS="-lncurses $LIBS"
12685 cat >conftest.$ac_ext <<_ACEOF
12686 #line $LINENO "configure"
12687 #include "confdefs.h"
12689 /* Override any gcc2 internal prototype to avoid an error. */
12690 #ifdef __cplusplus
12691 extern "C"
12692 #endif
12693 /* We use char because int might match the return type of a gcc2
12694 builtin and then its argument prototype would still apply. */
12695 char tparm ();
12696 #ifdef F77_DUMMY_MAIN
12697 # ifdef __cplusplus
12698 extern "C"
12699 # endif
12700 int F77_DUMMY_MAIN() { return 1; }
12701 #endif
12703 main ()
12705 tparm ();
12707 return 0;
12709 _ACEOF
12710 rm -f conftest.$ac_objext conftest$ac_exeext
12711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12712 (eval $ac_link) 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } &&
12716 { ac_try='test -s conftest$ac_exeext'
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; }; then
12722 ac_cv_lib_ncurses_tparm=yes
12723 else
12724 echo "$as_me: failed program was:" >&5
12725 cat conftest.$ac_ext >&5
12726 ac_cv_lib_ncurses_tparm=no
12728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12729 LIBS=$ac_check_lib_save_LIBS
12731 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
12732 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
12733 if test $ac_cv_lib_ncurses_tparm = yes; then
12734 cat >>confdefs.h <<_ACEOF
12735 #define HAVE_LIBNCURSES 1
12736 _ACEOF
12738 LIBS="-lncurses $LIBS"
12743 # Do we need the Hesiod library to provide the support routines?
12744 if test "$with_hesiod" = yes ; then
12745 # Don't set $LIBS here -- see comments above.
12746 resolv=no
12747 echo "$as_me:$LINENO: checking for res_send" >&5
12748 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
12749 if test "${ac_cv_func_res_send+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12751 else
12752 cat >conftest.$ac_ext <<_ACEOF
12753 #line $LINENO "configure"
12754 #include "confdefs.h"
12755 /* System header to define __stub macros and hopefully few prototypes,
12756 which can conflict with char res_send (); below. */
12757 #include <assert.h>
12758 /* Override any gcc2 internal prototype to avoid an error. */
12759 #ifdef __cplusplus
12760 extern "C"
12761 #endif
12762 /* We use char because int might match the return type of a gcc2
12763 builtin and then its argument prototype would still apply. */
12764 char res_send ();
12765 char (*f) ();
12767 #ifdef F77_DUMMY_MAIN
12768 # ifdef __cplusplus
12769 extern "C"
12770 # endif
12771 int F77_DUMMY_MAIN() { return 1; }
12772 #endif
12774 main ()
12776 /* The GNU C library defines this for functions which it implements
12777 to always fail with ENOSYS. Some functions are actually named
12778 something starting with __ and the normal name is an alias. */
12779 #if defined (__stub_res_send) || defined (__stub___res_send)
12780 choke me
12781 #else
12782 f = res_send;
12783 #endif
12786 return 0;
12788 _ACEOF
12789 rm -f conftest.$ac_objext conftest$ac_exeext
12790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12791 (eval $ac_link) 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } &&
12795 { ac_try='test -s conftest$ac_exeext'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 ac_cv_func_res_send=yes
12802 else
12803 echo "$as_me: failed program was:" >&5
12804 cat conftest.$ac_ext >&5
12805 ac_cv_func_res_send=no
12807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12809 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
12810 echo "${ECHO_T}$ac_cv_func_res_send" >&6
12811 if test $ac_cv_func_res_send = yes; then
12813 else
12814 echo "$as_me:$LINENO: checking for __res_send" >&5
12815 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
12816 if test "${ac_cv_func___res_send+set}" = set; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12818 else
12819 cat >conftest.$ac_ext <<_ACEOF
12820 #line $LINENO "configure"
12821 #include "confdefs.h"
12822 /* System header to define __stub macros and hopefully few prototypes,
12823 which can conflict with char __res_send (); below. */
12824 #include <assert.h>
12825 /* Override any gcc2 internal prototype to avoid an error. */
12826 #ifdef __cplusplus
12827 extern "C"
12828 #endif
12829 /* We use char because int might match the return type of a gcc2
12830 builtin and then its argument prototype would still apply. */
12831 char __res_send ();
12832 char (*f) ();
12834 #ifdef F77_DUMMY_MAIN
12835 # ifdef __cplusplus
12836 extern "C"
12837 # endif
12838 int F77_DUMMY_MAIN() { return 1; }
12839 #endif
12841 main ()
12843 /* The GNU C library defines this for functions which it implements
12844 to always fail with ENOSYS. Some functions are actually named
12845 something starting with __ and the normal name is an alias. */
12846 #if defined (__stub___res_send) || defined (__stub_____res_send)
12847 choke me
12848 #else
12849 f = __res_send;
12850 #endif
12853 return 0;
12855 _ACEOF
12856 rm -f conftest.$ac_objext conftest$ac_exeext
12857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12858 (eval $ac_link) 2>&5
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
12862 { ac_try='test -s conftest$ac_exeext'
12863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12864 (eval $ac_try) 2>&5
12865 ac_status=$?
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; }; then
12868 ac_cv_func___res_send=yes
12869 else
12870 echo "$as_me: failed program was:" >&5
12871 cat conftest.$ac_ext >&5
12872 ac_cv_func___res_send=no
12874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12876 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
12877 echo "${ECHO_T}$ac_cv_func___res_send" >&6
12878 if test $ac_cv_func___res_send = yes; then
12880 else
12881 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
12882 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
12883 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886 ac_check_lib_save_LIBS=$LIBS
12887 LIBS="-lresolv $LIBS"
12888 cat >conftest.$ac_ext <<_ACEOF
12889 #line $LINENO "configure"
12890 #include "confdefs.h"
12892 /* Override any gcc2 internal prototype to avoid an error. */
12893 #ifdef __cplusplus
12894 extern "C"
12895 #endif
12896 /* We use char because int might match the return type of a gcc2
12897 builtin and then its argument prototype would still apply. */
12898 char res_send ();
12899 #ifdef F77_DUMMY_MAIN
12900 # ifdef __cplusplus
12901 extern "C"
12902 # endif
12903 int F77_DUMMY_MAIN() { return 1; }
12904 #endif
12906 main ()
12908 res_send ();
12910 return 0;
12912 _ACEOF
12913 rm -f conftest.$ac_objext conftest$ac_exeext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12915 (eval $ac_link) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } &&
12919 { ac_try='test -s conftest$ac_exeext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_cv_lib_resolv_res_send=yes
12926 else
12927 echo "$as_me: failed program was:" >&5
12928 cat conftest.$ac_ext >&5
12929 ac_cv_lib_resolv_res_send=no
12931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12932 LIBS=$ac_check_lib_save_LIBS
12934 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
12935 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
12936 if test $ac_cv_lib_resolv_res_send = yes; then
12937 resolv=yes
12938 else
12939 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
12940 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
12941 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 else
12944 ac_check_lib_save_LIBS=$LIBS
12945 LIBS="-lresolv $LIBS"
12946 cat >conftest.$ac_ext <<_ACEOF
12947 #line $LINENO "configure"
12948 #include "confdefs.h"
12950 /* Override any gcc2 internal prototype to avoid an error. */
12951 #ifdef __cplusplus
12952 extern "C"
12953 #endif
12954 /* We use char because int might match the return type of a gcc2
12955 builtin and then its argument prototype would still apply. */
12956 char __res_send ();
12957 #ifdef F77_DUMMY_MAIN
12958 # ifdef __cplusplus
12959 extern "C"
12960 # endif
12961 int F77_DUMMY_MAIN() { return 1; }
12962 #endif
12964 main ()
12966 __res_send ();
12968 return 0;
12970 _ACEOF
12971 rm -f conftest.$ac_objext conftest$ac_exeext
12972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12973 (eval $ac_link) 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try='test -s conftest$ac_exeext'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 ac_cv_lib_resolv___res_send=yes
12984 else
12985 echo "$as_me: failed program was:" >&5
12986 cat conftest.$ac_ext >&5
12987 ac_cv_lib_resolv___res_send=no
12989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12990 LIBS=$ac_check_lib_save_LIBS
12992 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
12993 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
12994 if test $ac_cv_lib_resolv___res_send = yes; then
12995 resolv=yes
13004 if test "$resolv" = yes ; then
13005 RESOLVLIB=-lresolv
13007 cat >>confdefs.h <<\_ACEOF
13008 #define HAVE_LIBRESOLV 1
13009 _ACEOF
13011 else
13012 RESOLVLIB=
13014 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
13015 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
13016 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13018 else
13019 cat >conftest.$ac_ext <<_ACEOF
13020 #line $LINENO "configure"
13021 #include "confdefs.h"
13022 /* System header to define __stub macros and hopefully few prototypes,
13023 which can conflict with char hes_getmailhost (); below. */
13024 #include <assert.h>
13025 /* Override any gcc2 internal prototype to avoid an error. */
13026 #ifdef __cplusplus
13027 extern "C"
13028 #endif
13029 /* We use char because int might match the return type of a gcc2
13030 builtin and then its argument prototype would still apply. */
13031 char hes_getmailhost ();
13032 char (*f) ();
13034 #ifdef F77_DUMMY_MAIN
13035 # ifdef __cplusplus
13036 extern "C"
13037 # endif
13038 int F77_DUMMY_MAIN() { return 1; }
13039 #endif
13041 main ()
13043 /* The GNU C library defines this for functions which it implements
13044 to always fail with ENOSYS. Some functions are actually named
13045 something starting with __ and the normal name is an alias. */
13046 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
13047 choke me
13048 #else
13049 f = hes_getmailhost;
13050 #endif
13053 return 0;
13055 _ACEOF
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058 (eval $ac_link) 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } &&
13062 { ac_try='test -s conftest$ac_exeext'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13065 ac_status=$?
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; }; then
13068 ac_cv_func_hes_getmailhost=yes
13069 else
13070 echo "$as_me: failed program was:" >&5
13071 cat conftest.$ac_ext >&5
13072 ac_cv_func_hes_getmailhost=no
13074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13076 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
13077 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
13078 if test $ac_cv_func_hes_getmailhost = yes; then
13080 else
13081 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
13082 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
13083 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 else
13086 ac_check_lib_save_LIBS=$LIBS
13087 LIBS="-lhesiod $RESOLVLIB $LIBS"
13088 cat >conftest.$ac_ext <<_ACEOF
13089 #line $LINENO "configure"
13090 #include "confdefs.h"
13092 /* Override any gcc2 internal prototype to avoid an error. */
13093 #ifdef __cplusplus
13094 extern "C"
13095 #endif
13096 /* We use char because int might match the return type of a gcc2
13097 builtin and then its argument prototype would still apply. */
13098 char hes_getmailhost ();
13099 #ifdef F77_DUMMY_MAIN
13100 # ifdef __cplusplus
13101 extern "C"
13102 # endif
13103 int F77_DUMMY_MAIN() { return 1; }
13104 #endif
13106 main ()
13108 hes_getmailhost ();
13110 return 0;
13112 _ACEOF
13113 rm -f conftest.$ac_objext conftest$ac_exeext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13115 (eval $ac_link) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try='test -s conftest$ac_exeext'
13120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121 (eval $ac_try) 2>&5
13122 ac_status=$?
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
13125 ac_cv_lib_hesiod_hes_getmailhost=yes
13126 else
13127 echo "$as_me: failed program was:" >&5
13128 cat conftest.$ac_ext >&5
13129 ac_cv_lib_hesiod_hes_getmailhost=no
13131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13132 LIBS=$ac_check_lib_save_LIBS
13134 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13135 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
13136 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
13138 cat >>confdefs.h <<\_ACEOF
13139 #define HAVE_LIBHESIOD 1
13140 _ACEOF
13142 else
13150 # These tell us which Kerberos-related libraries to use.
13151 if test "${with_kerberos+set}" = set; then
13153 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
13154 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
13155 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 else
13158 ac_check_lib_save_LIBS=$LIBS
13159 LIBS="-lcom_err $LIBS"
13160 cat >conftest.$ac_ext <<_ACEOF
13161 #line $LINENO "configure"
13162 #include "confdefs.h"
13164 /* Override any gcc2 internal prototype to avoid an error. */
13165 #ifdef __cplusplus
13166 extern "C"
13167 #endif
13168 /* We use char because int might match the return type of a gcc2
13169 builtin and then its argument prototype would still apply. */
13170 char com_err ();
13171 #ifdef F77_DUMMY_MAIN
13172 # ifdef __cplusplus
13173 extern "C"
13174 # endif
13175 int F77_DUMMY_MAIN() { return 1; }
13176 #endif
13178 main ()
13180 com_err ();
13182 return 0;
13184 _ACEOF
13185 rm -f conftest.$ac_objext conftest$ac_exeext
13186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13187 (eval $ac_link) 2>&5
13188 ac_status=$?
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
13191 { ac_try='test -s conftest$ac_exeext'
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13194 ac_status=$?
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; }; then
13197 ac_cv_lib_com_err_com_err=yes
13198 else
13199 echo "$as_me: failed program was:" >&5
13200 cat conftest.$ac_ext >&5
13201 ac_cv_lib_com_err_com_err=no
13203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13204 LIBS=$ac_check_lib_save_LIBS
13206 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
13207 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
13208 if test $ac_cv_lib_com_err_com_err = yes; then
13209 cat >>confdefs.h <<_ACEOF
13210 #define HAVE_LIBCOM_ERR 1
13211 _ACEOF
13213 LIBS="-lcom_err $LIBS"
13218 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13219 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
13220 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13222 else
13223 ac_check_lib_save_LIBS=$LIBS
13224 LIBS="-lk5crypto $LIBS"
13225 cat >conftest.$ac_ext <<_ACEOF
13226 #line $LINENO "configure"
13227 #include "confdefs.h"
13229 /* Override any gcc2 internal prototype to avoid an error. */
13230 #ifdef __cplusplus
13231 extern "C"
13232 #endif
13233 /* We use char because int might match the return type of a gcc2
13234 builtin and then its argument prototype would still apply. */
13235 char mit_des_cbc_encrypt ();
13236 #ifdef F77_DUMMY_MAIN
13237 # ifdef __cplusplus
13238 extern "C"
13239 # endif
13240 int F77_DUMMY_MAIN() { return 1; }
13241 #endif
13243 main ()
13245 mit_des_cbc_encrypt ();
13247 return 0;
13249 _ACEOF
13250 rm -f conftest.$ac_objext conftest$ac_exeext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13252 (eval $ac_link) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
13256 { ac_try='test -s conftest$ac_exeext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13263 else
13264 echo "$as_me: failed program was:" >&5
13265 cat conftest.$ac_ext >&5
13266 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13269 LIBS=$ac_check_lib_save_LIBS
13271 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13272 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
13273 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
13274 cat >>confdefs.h <<_ACEOF
13275 #define HAVE_LIBK5CRYPTO 1
13276 _ACEOF
13278 LIBS="-lk5crypto $LIBS"
13283 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13284 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
13285 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13287 else
13288 ac_check_lib_save_LIBS=$LIBS
13289 LIBS="-lcrypto $LIBS"
13290 cat >conftest.$ac_ext <<_ACEOF
13291 #line $LINENO "configure"
13292 #include "confdefs.h"
13294 /* Override any gcc2 internal prototype to avoid an error. */
13295 #ifdef __cplusplus
13296 extern "C"
13297 #endif
13298 /* We use char because int might match the return type of a gcc2
13299 builtin and then its argument prototype would still apply. */
13300 char mit_des_cbc_encrypt ();
13301 #ifdef F77_DUMMY_MAIN
13302 # ifdef __cplusplus
13303 extern "C"
13304 # endif
13305 int F77_DUMMY_MAIN() { return 1; }
13306 #endif
13308 main ()
13310 mit_des_cbc_encrypt ();
13312 return 0;
13314 _ACEOF
13315 rm -f conftest.$ac_objext conftest$ac_exeext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317 (eval $ac_link) 2>&5
13318 ac_status=$?
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } &&
13321 { ac_try='test -s conftest$ac_exeext'
13322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323 (eval $ac_try) 2>&5
13324 ac_status=$?
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
13327 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13328 else
13329 echo "$as_me: failed program was:" >&5
13330 cat conftest.$ac_ext >&5
13331 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13334 LIBS=$ac_check_lib_save_LIBS
13336 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13337 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
13338 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
13339 cat >>confdefs.h <<_ACEOF
13340 #define HAVE_LIBCRYPTO 1
13341 _ACEOF
13343 LIBS="-lcrypto $LIBS"
13348 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
13349 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
13350 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13352 else
13353 ac_check_lib_save_LIBS=$LIBS
13354 LIBS="-lkrb5 $LIBS"
13355 cat >conftest.$ac_ext <<_ACEOF
13356 #line $LINENO "configure"
13357 #include "confdefs.h"
13359 /* Override any gcc2 internal prototype to avoid an error. */
13360 #ifdef __cplusplus
13361 extern "C"
13362 #endif
13363 /* We use char because int might match the return type of a gcc2
13364 builtin and then its argument prototype would still apply. */
13365 char krb5_init_context ();
13366 #ifdef F77_DUMMY_MAIN
13367 # ifdef __cplusplus
13368 extern "C"
13369 # endif
13370 int F77_DUMMY_MAIN() { return 1; }
13371 #endif
13373 main ()
13375 krb5_init_context ();
13377 return 0;
13379 _ACEOF
13380 rm -f conftest.$ac_objext conftest$ac_exeext
13381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13382 (eval $ac_link) 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } &&
13386 { ac_try='test -s conftest$ac_exeext'
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13389 ac_status=$?
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; }; then
13392 ac_cv_lib_krb5_krb5_init_context=yes
13393 else
13394 echo "$as_me: failed program was:" >&5
13395 cat conftest.$ac_ext >&5
13396 ac_cv_lib_krb5_krb5_init_context=no
13398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13399 LIBS=$ac_check_lib_save_LIBS
13401 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13402 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
13403 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
13404 cat >>confdefs.h <<_ACEOF
13405 #define HAVE_LIBKRB5 1
13406 _ACEOF
13408 LIBS="-lkrb5 $LIBS"
13412 if test "${with_kerberos5+set}" != set; then
13414 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
13415 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
13416 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13418 else
13419 ac_check_lib_save_LIBS=$LIBS
13420 LIBS="-ldes425 $LIBS"
13421 cat >conftest.$ac_ext <<_ACEOF
13422 #line $LINENO "configure"
13423 #include "confdefs.h"
13425 /* Override any gcc2 internal prototype to avoid an error. */
13426 #ifdef __cplusplus
13427 extern "C"
13428 #endif
13429 /* We use char because int might match the return type of a gcc2
13430 builtin and then its argument prototype would still apply. */
13431 char des_cbc_encrypt ();
13432 #ifdef F77_DUMMY_MAIN
13433 # ifdef __cplusplus
13434 extern "C"
13435 # endif
13436 int F77_DUMMY_MAIN() { return 1; }
13437 #endif
13439 main ()
13441 des_cbc_encrypt ();
13443 return 0;
13445 _ACEOF
13446 rm -f conftest.$ac_objext conftest$ac_exeext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13448 (eval $ac_link) 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } &&
13452 { ac_try='test -s conftest$ac_exeext'
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13455 ac_status=$?
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; }; then
13458 ac_cv_lib_des425_des_cbc_encrypt=yes
13459 else
13460 echo "$as_me: failed program was:" >&5
13461 cat conftest.$ac_ext >&5
13462 ac_cv_lib_des425_des_cbc_encrypt=no
13464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13465 LIBS=$ac_check_lib_save_LIBS
13467 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13468 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
13469 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
13470 cat >>confdefs.h <<_ACEOF
13471 #define HAVE_LIBDES425 1
13472 _ACEOF
13474 LIBS="-ldes425 $LIBS"
13476 else
13478 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
13479 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
13480 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 else
13483 ac_check_lib_save_LIBS=$LIBS
13484 LIBS="-ldes $LIBS"
13485 cat >conftest.$ac_ext <<_ACEOF
13486 #line $LINENO "configure"
13487 #include "confdefs.h"
13489 /* Override any gcc2 internal prototype to avoid an error. */
13490 #ifdef __cplusplus
13491 extern "C"
13492 #endif
13493 /* We use char because int might match the return type of a gcc2
13494 builtin and then its argument prototype would still apply. */
13495 char des_cbc_encrypt ();
13496 #ifdef F77_DUMMY_MAIN
13497 # ifdef __cplusplus
13498 extern "C"
13499 # endif
13500 int F77_DUMMY_MAIN() { return 1; }
13501 #endif
13503 main ()
13505 des_cbc_encrypt ();
13507 return 0;
13509 _ACEOF
13510 rm -f conftest.$ac_objext conftest$ac_exeext
13511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13512 (eval $ac_link) 2>&5
13513 ac_status=$?
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } &&
13516 { ac_try='test -s conftest$ac_exeext'
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518 (eval $ac_try) 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; }; then
13522 ac_cv_lib_des_des_cbc_encrypt=yes
13523 else
13524 echo "$as_me: failed program was:" >&5
13525 cat conftest.$ac_ext >&5
13526 ac_cv_lib_des_des_cbc_encrypt=no
13528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13529 LIBS=$ac_check_lib_save_LIBS
13531 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13532 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
13533 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
13534 cat >>confdefs.h <<_ACEOF
13535 #define HAVE_LIBDES 1
13536 _ACEOF
13538 LIBS="-ldes $LIBS"
13545 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
13546 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
13547 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 else
13550 ac_check_lib_save_LIBS=$LIBS
13551 LIBS="-lkrb4 $LIBS"
13552 cat >conftest.$ac_ext <<_ACEOF
13553 #line $LINENO "configure"
13554 #include "confdefs.h"
13556 /* Override any gcc2 internal prototype to avoid an error. */
13557 #ifdef __cplusplus
13558 extern "C"
13559 #endif
13560 /* We use char because int might match the return type of a gcc2
13561 builtin and then its argument prototype would still apply. */
13562 char krb_get_cred ();
13563 #ifdef F77_DUMMY_MAIN
13564 # ifdef __cplusplus
13565 extern "C"
13566 # endif
13567 int F77_DUMMY_MAIN() { return 1; }
13568 #endif
13570 main ()
13572 krb_get_cred ();
13574 return 0;
13576 _ACEOF
13577 rm -f conftest.$ac_objext conftest$ac_exeext
13578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13579 (eval $ac_link) 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } &&
13583 { ac_try='test -s conftest$ac_exeext'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_cv_lib_krb4_krb_get_cred=yes
13590 else
13591 echo "$as_me: failed program was:" >&5
13592 cat conftest.$ac_ext >&5
13593 ac_cv_lib_krb4_krb_get_cred=no
13595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13596 LIBS=$ac_check_lib_save_LIBS
13598 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13599 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
13600 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
13601 cat >>confdefs.h <<_ACEOF
13602 #define HAVE_LIBKRB4 1
13603 _ACEOF
13605 LIBS="-lkrb4 $LIBS"
13607 else
13609 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
13610 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
13611 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 else
13614 ac_check_lib_save_LIBS=$LIBS
13615 LIBS="-lkrb $LIBS"
13616 cat >conftest.$ac_ext <<_ACEOF
13617 #line $LINENO "configure"
13618 #include "confdefs.h"
13620 /* Override any gcc2 internal prototype to avoid an error. */
13621 #ifdef __cplusplus
13622 extern "C"
13623 #endif
13624 /* We use char because int might match the return type of a gcc2
13625 builtin and then its argument prototype would still apply. */
13626 char krb_get_cred ();
13627 #ifdef F77_DUMMY_MAIN
13628 # ifdef __cplusplus
13629 extern "C"
13630 # endif
13631 int F77_DUMMY_MAIN() { return 1; }
13632 #endif
13634 main ()
13636 krb_get_cred ();
13638 return 0;
13640 _ACEOF
13641 rm -f conftest.$ac_objext conftest$ac_exeext
13642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13643 (eval $ac_link) 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
13647 { ac_try='test -s conftest$ac_exeext'
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13650 ac_status=$?
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; }; then
13653 ac_cv_lib_krb_krb_get_cred=yes
13654 else
13655 echo "$as_me: failed program was:" >&5
13656 cat conftest.$ac_ext >&5
13657 ac_cv_lib_krb_krb_get_cred=no
13659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13660 LIBS=$ac_check_lib_save_LIBS
13662 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
13663 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
13664 if test $ac_cv_lib_krb_krb_get_cred = yes; then
13665 cat >>confdefs.h <<_ACEOF
13666 #define HAVE_LIBKRB 1
13667 _ACEOF
13669 LIBS="-lkrb $LIBS"
13677 if test "${with_kerberos5+set}" = set; then
13679 for ac_header in krb5.h
13681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13683 echo "$as_me:$LINENO: checking for $ac_header" >&5
13684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13686 echo $ECHO_N "(cached) $ECHO_C" >&6
13688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13690 else
13691 # Is the header compilable?
13692 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13694 cat >conftest.$ac_ext <<_ACEOF
13695 #line $LINENO "configure"
13696 #include "confdefs.h"
13697 $ac_includes_default
13698 #include <$ac_header>
13699 _ACEOF
13700 rm -f conftest.$ac_objext
13701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13702 (eval $ac_compile) 2>&5
13703 ac_status=$?
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try='test -s conftest.$ac_objext'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
13712 ac_header_compiler=yes
13713 else
13714 echo "$as_me: failed program was:" >&5
13715 cat conftest.$ac_ext >&5
13716 ac_header_compiler=no
13718 rm -f conftest.$ac_objext conftest.$ac_ext
13719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13720 echo "${ECHO_T}$ac_header_compiler" >&6
13722 # Is the header present?
13723 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13725 cat >conftest.$ac_ext <<_ACEOF
13726 #line $LINENO "configure"
13727 #include "confdefs.h"
13728 #include <$ac_header>
13729 _ACEOF
13730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13732 ac_status=$?
13733 egrep -v '^ *\+' conftest.er1 >conftest.err
13734 rm -f conftest.er1
13735 cat conftest.err >&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } >/dev/null; then
13738 if test -s conftest.err; then
13739 ac_cpp_err=$ac_c_preproc_warn_flag
13740 else
13741 ac_cpp_err=
13743 else
13744 ac_cpp_err=yes
13746 if test -z "$ac_cpp_err"; then
13747 ac_header_preproc=yes
13748 else
13749 echo "$as_me: failed program was:" >&5
13750 cat conftest.$ac_ext >&5
13751 ac_header_preproc=no
13753 rm -f conftest.err conftest.$ac_ext
13754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13755 echo "${ECHO_T}$ac_header_preproc" >&6
13757 # So? What about this header?
13758 case $ac_header_compiler:$ac_header_preproc in
13759 yes:no )
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13764 no:yes )
13765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13771 esac
13772 echo "$as_me:$LINENO: checking for $ac_header" >&5
13773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 else
13777 eval "$as_ac_Header=$ac_header_preproc"
13779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13784 cat >>confdefs.h <<_ACEOF
13785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13786 _ACEOF
13790 done
13792 else
13794 for ac_header in des.h
13796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13798 echo "$as_me:$LINENO: checking for $ac_header" >&5
13799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13801 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13805 else
13806 # Is the header compilable?
13807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13809 cat >conftest.$ac_ext <<_ACEOF
13810 #line $LINENO "configure"
13811 #include "confdefs.h"
13812 $ac_includes_default
13813 #include <$ac_header>
13814 _ACEOF
13815 rm -f conftest.$ac_objext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817 (eval $ac_compile) 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try='test -s conftest.$ac_objext'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_header_compiler=yes
13828 else
13829 echo "$as_me: failed program was:" >&5
13830 cat conftest.$ac_ext >&5
13831 ac_header_compiler=no
13833 rm -f conftest.$ac_objext conftest.$ac_ext
13834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13835 echo "${ECHO_T}$ac_header_compiler" >&6
13837 # Is the header present?
13838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13840 cat >conftest.$ac_ext <<_ACEOF
13841 #line $LINENO "configure"
13842 #include "confdefs.h"
13843 #include <$ac_header>
13844 _ACEOF
13845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13847 ac_status=$?
13848 egrep -v '^ *\+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } >/dev/null; then
13853 if test -s conftest.err; then
13854 ac_cpp_err=$ac_c_preproc_warn_flag
13855 else
13856 ac_cpp_err=
13858 else
13859 ac_cpp_err=yes
13861 if test -z "$ac_cpp_err"; then
13862 ac_header_preproc=yes
13863 else
13864 echo "$as_me: failed program was:" >&5
13865 cat conftest.$ac_ext >&5
13866 ac_header_preproc=no
13868 rm -f conftest.err conftest.$ac_ext
13869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13870 echo "${ECHO_T}$ac_header_preproc" >&6
13872 # So? What about this header?
13873 case $ac_header_compiler:$ac_header_preproc in
13874 yes:no )
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13879 no:yes )
13880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13886 esac
13887 echo "$as_me:$LINENO: checking for $ac_header" >&5
13888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 else
13892 eval "$as_ac_Header=$ac_header_preproc"
13894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13899 cat >>confdefs.h <<_ACEOF
13900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13901 _ACEOF
13903 else
13905 for ac_header in kerberosIV/des.h
13907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13909 echo "$as_me:$LINENO: checking for $ac_header" >&5
13910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13916 else
13917 # Is the header compilable?
13918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13920 cat >conftest.$ac_ext <<_ACEOF
13921 #line $LINENO "configure"
13922 #include "confdefs.h"
13923 $ac_includes_default
13924 #include <$ac_header>
13925 _ACEOF
13926 rm -f conftest.$ac_objext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13928 (eval $ac_compile) 2>&5
13929 ac_status=$?
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } &&
13932 { ac_try='test -s conftest.$ac_objext'
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 ac_header_compiler=yes
13939 else
13940 echo "$as_me: failed program was:" >&5
13941 cat conftest.$ac_ext >&5
13942 ac_header_compiler=no
13944 rm -f conftest.$ac_objext conftest.$ac_ext
13945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13946 echo "${ECHO_T}$ac_header_compiler" >&6
13948 # Is the header present?
13949 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13951 cat >conftest.$ac_ext <<_ACEOF
13952 #line $LINENO "configure"
13953 #include "confdefs.h"
13954 #include <$ac_header>
13955 _ACEOF
13956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13958 ac_status=$?
13959 egrep -v '^ *\+' conftest.er1 >conftest.err
13960 rm -f conftest.er1
13961 cat conftest.err >&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } >/dev/null; then
13964 if test -s conftest.err; then
13965 ac_cpp_err=$ac_c_preproc_warn_flag
13966 else
13967 ac_cpp_err=
13969 else
13970 ac_cpp_err=yes
13972 if test -z "$ac_cpp_err"; then
13973 ac_header_preproc=yes
13974 else
13975 echo "$as_me: failed program was:" >&5
13976 cat conftest.$ac_ext >&5
13977 ac_header_preproc=no
13979 rm -f conftest.err conftest.$ac_ext
13980 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13981 echo "${ECHO_T}$ac_header_preproc" >&6
13983 # So? What about this header?
13984 case $ac_header_compiler:$ac_header_preproc in
13985 yes:no )
13986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13990 no:yes )
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13997 esac
13998 echo "$as_me:$LINENO: checking for $ac_header" >&5
13999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003 eval "$as_ac_Header=$ac_header_preproc"
14005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14010 cat >>confdefs.h <<_ACEOF
14011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14012 _ACEOF
14014 else
14016 for ac_header in kerberos/des.h
14018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14020 echo "$as_me:$LINENO: checking for $ac_header" >&5
14021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14027 else
14028 # Is the header compilable?
14029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14031 cat >conftest.$ac_ext <<_ACEOF
14032 #line $LINENO "configure"
14033 #include "confdefs.h"
14034 $ac_includes_default
14035 #include <$ac_header>
14036 _ACEOF
14037 rm -f conftest.$ac_objext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14039 (eval $ac_compile) 2>&5
14040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
14043 { ac_try='test -s conftest.$ac_objext'
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045 (eval $ac_try) 2>&5
14046 ac_status=$?
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; }; then
14049 ac_header_compiler=yes
14050 else
14051 echo "$as_me: failed program was:" >&5
14052 cat conftest.$ac_ext >&5
14053 ac_header_compiler=no
14055 rm -f conftest.$ac_objext conftest.$ac_ext
14056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14057 echo "${ECHO_T}$ac_header_compiler" >&6
14059 # Is the header present?
14060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14062 cat >conftest.$ac_ext <<_ACEOF
14063 #line $LINENO "configure"
14064 #include "confdefs.h"
14065 #include <$ac_header>
14066 _ACEOF
14067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14069 ac_status=$?
14070 egrep -v '^ *\+' conftest.er1 >conftest.err
14071 rm -f conftest.er1
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } >/dev/null; then
14075 if test -s conftest.err; then
14076 ac_cpp_err=$ac_c_preproc_warn_flag
14077 else
14078 ac_cpp_err=
14080 else
14081 ac_cpp_err=yes
14083 if test -z "$ac_cpp_err"; then
14084 ac_header_preproc=yes
14085 else
14086 echo "$as_me: failed program was:" >&5
14087 cat conftest.$ac_ext >&5
14088 ac_header_preproc=no
14090 rm -f conftest.err conftest.$ac_ext
14091 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14092 echo "${ECHO_T}$ac_header_preproc" >&6
14094 # So? What about this header?
14095 case $ac_header_compiler:$ac_header_preproc in
14096 yes:no )
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14101 no:yes )
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14108 esac
14109 echo "$as_me:$LINENO: checking for $ac_header" >&5
14110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14113 else
14114 eval "$as_ac_Header=$ac_header_preproc"
14116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14121 cat >>confdefs.h <<_ACEOF
14122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14123 _ACEOF
14127 done
14131 done
14135 done
14138 for ac_header in krb.h
14140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14142 echo "$as_me:$LINENO: checking for $ac_header" >&5
14143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14149 else
14150 # Is the header compilable?
14151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14153 cat >conftest.$ac_ext <<_ACEOF
14154 #line $LINENO "configure"
14155 #include "confdefs.h"
14156 $ac_includes_default
14157 #include <$ac_header>
14158 _ACEOF
14159 rm -f conftest.$ac_objext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161 (eval $ac_compile) 2>&5
14162 ac_status=$?
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -s conftest.$ac_objext'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14168 ac_status=$?
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
14171 ac_header_compiler=yes
14172 else
14173 echo "$as_me: failed program was:" >&5
14174 cat conftest.$ac_ext >&5
14175 ac_header_compiler=no
14177 rm -f conftest.$ac_objext conftest.$ac_ext
14178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14179 echo "${ECHO_T}$ac_header_compiler" >&6
14181 # Is the header present?
14182 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14184 cat >conftest.$ac_ext <<_ACEOF
14185 #line $LINENO "configure"
14186 #include "confdefs.h"
14187 #include <$ac_header>
14188 _ACEOF
14189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14191 ac_status=$?
14192 egrep -v '^ *\+' conftest.er1 >conftest.err
14193 rm -f conftest.er1
14194 cat conftest.err >&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } >/dev/null; then
14197 if test -s conftest.err; then
14198 ac_cpp_err=$ac_c_preproc_warn_flag
14199 else
14200 ac_cpp_err=
14202 else
14203 ac_cpp_err=yes
14205 if test -z "$ac_cpp_err"; then
14206 ac_header_preproc=yes
14207 else
14208 echo "$as_me: failed program was:" >&5
14209 cat conftest.$ac_ext >&5
14210 ac_header_preproc=no
14212 rm -f conftest.err conftest.$ac_ext
14213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14214 echo "${ECHO_T}$ac_header_preproc" >&6
14216 # So? What about this header?
14217 case $ac_header_compiler:$ac_header_preproc in
14218 yes:no )
14219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14223 no:yes )
14224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14227 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14230 esac
14231 echo "$as_me:$LINENO: checking for $ac_header" >&5
14232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14235 else
14236 eval "$as_ac_Header=$ac_header_preproc"
14238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14243 cat >>confdefs.h <<_ACEOF
14244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14245 _ACEOF
14247 else
14249 for ac_header in kerberosIV/krb.h
14251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14253 echo "$as_me:$LINENO: checking for $ac_header" >&5
14254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14256 echo $ECHO_N "(cached) $ECHO_C" >&6
14258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14260 else
14261 # Is the header compilable?
14262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14264 cat >conftest.$ac_ext <<_ACEOF
14265 #line $LINENO "configure"
14266 #include "confdefs.h"
14267 $ac_includes_default
14268 #include <$ac_header>
14269 _ACEOF
14270 rm -f conftest.$ac_objext
14271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14272 (eval $ac_compile) 2>&5
14273 ac_status=$?
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -s conftest.$ac_objext'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14279 ac_status=$?
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; }; then
14282 ac_header_compiler=yes
14283 else
14284 echo "$as_me: failed program was:" >&5
14285 cat conftest.$ac_ext >&5
14286 ac_header_compiler=no
14288 rm -f conftest.$ac_objext conftest.$ac_ext
14289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14290 echo "${ECHO_T}$ac_header_compiler" >&6
14292 # Is the header present?
14293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14295 cat >conftest.$ac_ext <<_ACEOF
14296 #line $LINENO "configure"
14297 #include "confdefs.h"
14298 #include <$ac_header>
14299 _ACEOF
14300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14302 ac_status=$?
14303 egrep -v '^ *\+' conftest.er1 >conftest.err
14304 rm -f conftest.er1
14305 cat conftest.err >&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } >/dev/null; then
14308 if test -s conftest.err; then
14309 ac_cpp_err=$ac_c_preproc_warn_flag
14310 else
14311 ac_cpp_err=
14313 else
14314 ac_cpp_err=yes
14316 if test -z "$ac_cpp_err"; then
14317 ac_header_preproc=yes
14318 else
14319 echo "$as_me: failed program was:" >&5
14320 cat conftest.$ac_ext >&5
14321 ac_header_preproc=no
14323 rm -f conftest.err conftest.$ac_ext
14324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14325 echo "${ECHO_T}$ac_header_preproc" >&6
14327 # So? What about this header?
14328 case $ac_header_compiler:$ac_header_preproc in
14329 yes:no )
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14334 no:yes )
14335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14341 esac
14342 echo "$as_me:$LINENO: checking for $ac_header" >&5
14343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14345 echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347 eval "$as_ac_Header=$ac_header_preproc"
14349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14354 cat >>confdefs.h <<_ACEOF
14355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14356 _ACEOF
14358 else
14360 for ac_header in kerberos/krb.h
14362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14364 echo "$as_me:$LINENO: checking for $ac_header" >&5
14365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14371 else
14372 # Is the header compilable?
14373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14375 cat >conftest.$ac_ext <<_ACEOF
14376 #line $LINENO "configure"
14377 #include "confdefs.h"
14378 $ac_includes_default
14379 #include <$ac_header>
14380 _ACEOF
14381 rm -f conftest.$ac_objext
14382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14383 (eval $ac_compile) 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } &&
14387 { ac_try='test -s conftest.$ac_objext'
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }; then
14393 ac_header_compiler=yes
14394 else
14395 echo "$as_me: failed program was:" >&5
14396 cat conftest.$ac_ext >&5
14397 ac_header_compiler=no
14399 rm -f conftest.$ac_objext conftest.$ac_ext
14400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14401 echo "${ECHO_T}$ac_header_compiler" >&6
14403 # Is the header present?
14404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14406 cat >conftest.$ac_ext <<_ACEOF
14407 #line $LINENO "configure"
14408 #include "confdefs.h"
14409 #include <$ac_header>
14410 _ACEOF
14411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14413 ac_status=$?
14414 egrep -v '^ *\+' conftest.er1 >conftest.err
14415 rm -f conftest.er1
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } >/dev/null; then
14419 if test -s conftest.err; then
14420 ac_cpp_err=$ac_c_preproc_warn_flag
14421 else
14422 ac_cpp_err=
14424 else
14425 ac_cpp_err=yes
14427 if test -z "$ac_cpp_err"; then
14428 ac_header_preproc=yes
14429 else
14430 echo "$as_me: failed program was:" >&5
14431 cat conftest.$ac_ext >&5
14432 ac_header_preproc=no
14434 rm -f conftest.err conftest.$ac_ext
14435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14436 echo "${ECHO_T}$ac_header_preproc" >&6
14438 # So? What about this header?
14439 case $ac_header_compiler:$ac_header_preproc in
14440 yes:no )
14441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14445 no:yes )
14446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14452 esac
14453 echo "$as_me:$LINENO: checking for $ac_header" >&5
14454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14456 echo $ECHO_N "(cached) $ECHO_C" >&6
14457 else
14458 eval "$as_ac_Header=$ac_header_preproc"
14460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14465 cat >>confdefs.h <<_ACEOF
14466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14467 _ACEOF
14471 done
14475 done
14479 done
14483 for ac_header in com_err.h
14485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14487 echo "$as_me:$LINENO: checking for $ac_header" >&5
14488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14494 else
14495 # Is the header compilable?
14496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14498 cat >conftest.$ac_ext <<_ACEOF
14499 #line $LINENO "configure"
14500 #include "confdefs.h"
14501 $ac_includes_default
14502 #include <$ac_header>
14503 _ACEOF
14504 rm -f conftest.$ac_objext
14505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14506 (eval $ac_compile) 2>&5
14507 ac_status=$?
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } &&
14510 { ac_try='test -s conftest.$ac_objext'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; }; then
14516 ac_header_compiler=yes
14517 else
14518 echo "$as_me: failed program was:" >&5
14519 cat conftest.$ac_ext >&5
14520 ac_header_compiler=no
14522 rm -f conftest.$ac_objext conftest.$ac_ext
14523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14524 echo "${ECHO_T}$ac_header_compiler" >&6
14526 # Is the header present?
14527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14529 cat >conftest.$ac_ext <<_ACEOF
14530 #line $LINENO "configure"
14531 #include "confdefs.h"
14532 #include <$ac_header>
14533 _ACEOF
14534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14536 ac_status=$?
14537 egrep -v '^ *\+' conftest.er1 >conftest.err
14538 rm -f conftest.er1
14539 cat conftest.err >&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } >/dev/null; then
14542 if test -s conftest.err; then
14543 ac_cpp_err=$ac_c_preproc_warn_flag
14544 else
14545 ac_cpp_err=
14547 else
14548 ac_cpp_err=yes
14550 if test -z "$ac_cpp_err"; then
14551 ac_header_preproc=yes
14552 else
14553 echo "$as_me: failed program was:" >&5
14554 cat conftest.$ac_ext >&5
14555 ac_header_preproc=no
14557 rm -f conftest.err conftest.$ac_ext
14558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14559 echo "${ECHO_T}$ac_header_preproc" >&6
14561 # So? What about this header?
14562 case $ac_header_compiler:$ac_header_preproc in
14563 yes:no )
14564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14568 no:yes )
14569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14575 esac
14576 echo "$as_me:$LINENO: checking for $ac_header" >&5
14577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 else
14581 eval "$as_ac_Header=$ac_header_preproc"
14583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14588 cat >>confdefs.h <<_ACEOF
14589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14590 _ACEOF
14594 done
14598 # Solaris requires -lintl if you want strerror (which calls dgettext)
14599 # to return localized messages.
14601 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14602 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
14603 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14605 else
14606 ac_check_lib_save_LIBS=$LIBS
14607 LIBS="-lintl $LIBS"
14608 cat >conftest.$ac_ext <<_ACEOF
14609 #line $LINENO "configure"
14610 #include "confdefs.h"
14612 /* Override any gcc2 internal prototype to avoid an error. */
14613 #ifdef __cplusplus
14614 extern "C"
14615 #endif
14616 /* We use char because int might match the return type of a gcc2
14617 builtin and then its argument prototype would still apply. */
14618 char dgettext ();
14619 #ifdef F77_DUMMY_MAIN
14620 # ifdef __cplusplus
14621 extern "C"
14622 # endif
14623 int F77_DUMMY_MAIN() { return 1; }
14624 #endif
14626 main ()
14628 dgettext ();
14630 return 0;
14632 _ACEOF
14633 rm -f conftest.$ac_objext conftest$ac_exeext
14634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14635 (eval $ac_link) 2>&5
14636 ac_status=$?
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } &&
14639 { ac_try='test -s conftest$ac_exeext'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; }; then
14645 ac_cv_lib_intl_dgettext=yes
14646 else
14647 echo "$as_me: failed program was:" >&5
14648 cat conftest.$ac_ext >&5
14649 ac_cv_lib_intl_dgettext=no
14651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14652 LIBS=$ac_check_lib_save_LIBS
14654 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14655 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
14656 if test $ac_cv_lib_intl_dgettext = yes; then
14657 cat >>confdefs.h <<_ACEOF
14658 #define HAVE_LIBINTL 1
14659 _ACEOF
14661 LIBS="-lintl $LIBS"
14666 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
14667 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
14668 if test "${emacs_cv_localtime_cache+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14670 else
14671 if test x$ac_cv_func_tzset = xyes; then
14672 if test "$cross_compiling" = yes; then
14673 # If we have tzset, assume the worst when cross-compiling.
14674 emacs_cv_localtime_cache=yes
14675 else
14676 cat >conftest.$ac_ext <<_ACEOF
14677 #line $LINENO "configure"
14678 #include "confdefs.h"
14679 #include <time.h>
14680 extern char **environ;
14681 unset_TZ ()
14683 char **from, **to;
14684 for (to = from = environ; (*to = *from); from++)
14685 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
14686 to++;
14688 char TZ_GMT0[] = "TZ=GMT0";
14689 char TZ_PST8[] = "TZ=PST8";
14690 main()
14692 time_t now = time ((time_t *) 0);
14693 int hour_GMT0, hour_unset;
14694 if (putenv (TZ_GMT0) != 0)
14695 exit (1);
14696 hour_GMT0 = localtime (&now)->tm_hour;
14697 unset_TZ ();
14698 hour_unset = localtime (&now)->tm_hour;
14699 if (putenv (TZ_PST8) != 0)
14700 exit (1);
14701 if (localtime (&now)->tm_hour == hour_GMT0)
14702 exit (1);
14703 unset_TZ ();
14704 if (localtime (&now)->tm_hour != hour_unset)
14705 exit (1);
14706 exit (0);
14708 _ACEOF
14709 rm -f conftest$ac_exeext
14710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14711 (eval $ac_link) 2>&5
14712 ac_status=$?
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14717 ac_status=$?
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; }; then
14720 emacs_cv_localtime_cache=no
14721 else
14722 echo "$as_me: program exited with status $ac_status" >&5
14723 echo "$as_me: failed program was:" >&5
14724 cat conftest.$ac_ext >&5
14725 ( exit $ac_status )
14726 emacs_cv_localtime_cache=yes
14728 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14730 else
14731 # If we lack tzset, report that localtime does not cache TZ,
14732 # since we can't invalidate the cache if we don't have tzset.
14733 emacs_cv_localtime_cache=no
14736 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
14737 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
14738 if test $emacs_cv_localtime_cache = yes; then
14740 cat >>confdefs.h <<\_ACEOF
14741 #define LOCALTIME_CACHE 1
14742 _ACEOF
14746 if test "x$HAVE_TIMEVAL" = xyes; then
14748 for ac_func in gettimeofday
14750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14751 echo "$as_me:$LINENO: checking for $ac_func" >&5
14752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14753 if eval "test \"\${$as_ac_var+set}\" = set"; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14755 else
14756 cat >conftest.$ac_ext <<_ACEOF
14757 #line $LINENO "configure"
14758 #include "confdefs.h"
14759 /* System header to define __stub macros and hopefully few prototypes,
14760 which can conflict with char $ac_func (); below. */
14761 #include <assert.h>
14762 /* Override any gcc2 internal prototype to avoid an error. */
14763 #ifdef __cplusplus
14764 extern "C"
14765 #endif
14766 /* We use char because int might match the return type of a gcc2
14767 builtin and then its argument prototype would still apply. */
14768 char $ac_func ();
14769 char (*f) ();
14771 #ifdef F77_DUMMY_MAIN
14772 # ifdef __cplusplus
14773 extern "C"
14774 # endif
14775 int F77_DUMMY_MAIN() { return 1; }
14776 #endif
14778 main ()
14780 /* The GNU C library defines this for functions which it implements
14781 to always fail with ENOSYS. Some functions are actually named
14782 something starting with __ and the normal name is an alias. */
14783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14784 choke me
14785 #else
14786 f = $ac_func;
14787 #endif
14790 return 0;
14792 _ACEOF
14793 rm -f conftest.$ac_objext conftest$ac_exeext
14794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14795 (eval $ac_link) 2>&5
14796 ac_status=$?
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } &&
14799 { ac_try='test -s conftest$ac_exeext'
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14802 ac_status=$?
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14805 eval "$as_ac_var=yes"
14806 else
14807 echo "$as_me: failed program was:" >&5
14808 cat conftest.$ac_ext >&5
14809 eval "$as_ac_var=no"
14811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14815 if test `eval echo '${'$as_ac_var'}'` = yes; then
14816 cat >>confdefs.h <<_ACEOF
14817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14818 _ACEOF
14821 done
14823 if test $ac_cv_func_gettimeofday = yes; then
14824 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
14825 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
14826 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14828 else
14829 cat >conftest.$ac_ext <<_ACEOF
14830 #line $LINENO "configure"
14831 #include "confdefs.h"
14833 #ifdef TIME_WITH_SYS_TIME
14834 #include <sys/time.h>
14835 #include <time.h>
14836 #else
14837 #ifdef HAVE_SYS_TIME_H
14838 #include <sys/time.h>
14839 #else
14840 #include <time.h>
14841 #endif
14842 #endif
14843 #ifdef F77_DUMMY_MAIN
14844 # ifdef __cplusplus
14845 extern "C"
14846 # endif
14847 int F77_DUMMY_MAIN() { return 1; }
14848 #endif
14850 main ()
14852 struct timeval time;
14853 gettimeofday (&time, 0);
14855 return 0;
14857 _ACEOF
14858 rm -f conftest.$ac_objext
14859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14860 (eval $ac_compile) 2>&5
14861 ac_status=$?
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } &&
14864 { ac_try='test -s conftest.$ac_objext'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }; then
14870 emacs_cv_gettimeofday_two_arguments=yes
14871 else
14872 echo "$as_me: failed program was:" >&5
14873 cat conftest.$ac_ext >&5
14874 emacs_cv_gettimeofday_two_arguments=no
14876 rm -f conftest.$ac_objext conftest.$ac_ext
14878 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
14879 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
14880 if test $emacs_cv_gettimeofday_two_arguments = no; then
14882 cat >>confdefs.h <<\_ACEOF
14883 #define GETTIMEOFDAY_ONE_ARGUMENT 1
14884 _ACEOF
14890 if test "$ac_cv_func_gettimeofday" = yes; then
14891 echo "$as_me:$LINENO: checking for struct timezone" >&5
14892 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
14893 if test "${emacs_cv_struct_timezone+set}" = set; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 else
14896 cat >conftest.$ac_ext <<_ACEOF
14897 #line $LINENO "configure"
14898 #include "confdefs.h"
14899 #include <sys/time.h>
14900 #ifdef F77_DUMMY_MAIN
14901 # ifdef __cplusplus
14902 extern "C"
14903 # endif
14904 int F77_DUMMY_MAIN() { return 1; }
14905 #endif
14907 main ()
14909 struct timezone tz;
14911 return 0;
14913 _ACEOF
14914 rm -f conftest.$ac_objext
14915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14916 (eval $ac_compile) 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); } &&
14920 { ac_try='test -s conftest.$ac_objext'
14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14922 (eval $ac_try) 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; }; then
14926 if test "$cross_compiling" = yes; then
14927 emacs_cv_struct_timezone=yes
14928 else
14929 cat >conftest.$ac_ext <<_ACEOF
14930 #line $LINENO "configure"
14931 #include "confdefs.h"
14933 #ifdef TIME_WITH_SYS_TIME
14934 #include <sys/time.h>
14935 #include <time.h>
14936 #else
14937 #ifdef HAVE_SYS_TIME_H
14938 #include <sys/time.h>
14939 #else
14940 #include <time.h>
14941 #endif
14942 #endif
14943 main () {
14944 struct timeval time;
14945 struct timezone dummy;
14946 exit (gettimeofday (&time, &dummy));
14948 _ACEOF
14949 rm -f conftest$ac_exeext
14950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14951 (eval $ac_link) 2>&5
14952 ac_status=$?
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 emacs_cv_struct_timezone=yes
14961 else
14962 echo "$as_me: program exited with status $ac_status" >&5
14963 echo "$as_me: failed program was:" >&5
14964 cat conftest.$ac_ext >&5
14965 ( exit $ac_status )
14966 emacs_cv_struct_timezone=no
14968 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14970 else
14971 echo "$as_me: failed program was:" >&5
14972 cat conftest.$ac_ext >&5
14973 emacs_cv_struct_timezone=no
14975 rm -f conftest.$ac_objext conftest.$ac_ext
14977 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
14978 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
14981 ok_so_far=yes
14982 echo "$as_me:$LINENO: checking for socket" >&5
14983 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14984 if test "${ac_cv_func_socket+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14986 else
14987 cat >conftest.$ac_ext <<_ACEOF
14988 #line $LINENO "configure"
14989 #include "confdefs.h"
14990 /* System header to define __stub macros and hopefully few prototypes,
14991 which can conflict with char socket (); below. */
14992 #include <assert.h>
14993 /* Override any gcc2 internal prototype to avoid an error. */
14994 #ifdef __cplusplus
14995 extern "C"
14996 #endif
14997 /* We use char because int might match the return type of a gcc2
14998 builtin and then its argument prototype would still apply. */
14999 char socket ();
15000 char (*f) ();
15002 #ifdef F77_DUMMY_MAIN
15003 # ifdef __cplusplus
15004 extern "C"
15005 # endif
15006 int F77_DUMMY_MAIN() { return 1; }
15007 #endif
15009 main ()
15011 /* The GNU C library defines this for functions which it implements
15012 to always fail with ENOSYS. Some functions are actually named
15013 something starting with __ and the normal name is an alias. */
15014 #if defined (__stub_socket) || defined (__stub___socket)
15015 choke me
15016 #else
15017 f = socket;
15018 #endif
15021 return 0;
15023 _ACEOF
15024 rm -f conftest.$ac_objext conftest$ac_exeext
15025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15026 (eval $ac_link) 2>&5
15027 ac_status=$?
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } &&
15030 { ac_try='test -s conftest$ac_exeext'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; }; then
15036 ac_cv_func_socket=yes
15037 else
15038 echo "$as_me: failed program was:" >&5
15039 cat conftest.$ac_ext >&5
15040 ac_cv_func_socket=no
15042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15044 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15045 echo "${ECHO_T}$ac_cv_func_socket" >&6
15046 if test $ac_cv_func_socket = yes; then
15048 else
15049 ok_so_far=no
15052 if test $ok_so_far = yes; then
15053 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15054 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
15055 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
15056 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15060 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15061 else
15062 # Is the header compilable?
15063 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
15064 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
15065 cat >conftest.$ac_ext <<_ACEOF
15066 #line $LINENO "configure"
15067 #include "confdefs.h"
15068 $ac_includes_default
15069 #include <netinet/in.h>
15070 _ACEOF
15071 rm -f conftest.$ac_objext
15072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15073 (eval $ac_compile) 2>&5
15074 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } &&
15077 { ac_try='test -s conftest.$ac_objext'
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5
15080 ac_status=$?
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; }; then
15083 ac_header_compiler=yes
15084 else
15085 echo "$as_me: failed program was:" >&5
15086 cat conftest.$ac_ext >&5
15087 ac_header_compiler=no
15089 rm -f conftest.$ac_objext conftest.$ac_ext
15090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15091 echo "${ECHO_T}$ac_header_compiler" >&6
15093 # Is the header present?
15094 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
15095 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
15096 cat >conftest.$ac_ext <<_ACEOF
15097 #line $LINENO "configure"
15098 #include "confdefs.h"
15099 #include <netinet/in.h>
15100 _ACEOF
15101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15103 ac_status=$?
15104 egrep -v '^ *\+' conftest.er1 >conftest.err
15105 rm -f conftest.er1
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } >/dev/null; then
15109 if test -s conftest.err; then
15110 ac_cpp_err=$ac_c_preproc_warn_flag
15111 else
15112 ac_cpp_err=
15114 else
15115 ac_cpp_err=yes
15117 if test -z "$ac_cpp_err"; then
15118 ac_header_preproc=yes
15119 else
15120 echo "$as_me: failed program was:" >&5
15121 cat conftest.$ac_ext >&5
15122 ac_header_preproc=no
15124 rm -f conftest.err conftest.$ac_ext
15125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15126 echo "${ECHO_T}$ac_header_preproc" >&6
15128 # So? What about this header?
15129 case $ac_header_compiler:$ac_header_preproc in
15130 yes:no )
15131 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
15132 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15133 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
15134 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
15135 no:yes )
15136 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
15137 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
15139 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
15141 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
15142 esac
15143 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
15144 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
15145 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15147 else
15148 ac_cv_header_netinet_in_h=$ac_header_preproc
15150 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15151 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15154 if test $ac_cv_header_netinet_in_h = yes; then
15156 else
15157 ok_so_far=no
15162 if test $ok_so_far = yes; then
15163 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15164 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15165 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15166 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15170 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15171 else
15172 # Is the header compilable?
15173 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
15174 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
15175 cat >conftest.$ac_ext <<_ACEOF
15176 #line $LINENO "configure"
15177 #include "confdefs.h"
15178 $ac_includes_default
15179 #include <arpa/inet.h>
15180 _ACEOF
15181 rm -f conftest.$ac_objext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15183 (eval $ac_compile) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } &&
15187 { ac_try='test -s conftest.$ac_objext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_header_compiler=yes
15194 else
15195 echo "$as_me: failed program was:" >&5
15196 cat conftest.$ac_ext >&5
15197 ac_header_compiler=no
15199 rm -f conftest.$ac_objext conftest.$ac_ext
15200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15201 echo "${ECHO_T}$ac_header_compiler" >&6
15203 # Is the header present?
15204 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
15205 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
15206 cat >conftest.$ac_ext <<_ACEOF
15207 #line $LINENO "configure"
15208 #include "confdefs.h"
15209 #include <arpa/inet.h>
15210 _ACEOF
15211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15213 ac_status=$?
15214 egrep -v '^ *\+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } >/dev/null; then
15219 if test -s conftest.err; then
15220 ac_cpp_err=$ac_c_preproc_warn_flag
15221 else
15222 ac_cpp_err=
15224 else
15225 ac_cpp_err=yes
15227 if test -z "$ac_cpp_err"; then
15228 ac_header_preproc=yes
15229 else
15230 echo "$as_me: failed program was:" >&5
15231 cat conftest.$ac_ext >&5
15232 ac_header_preproc=no
15234 rm -f conftest.err conftest.$ac_ext
15235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15236 echo "${ECHO_T}$ac_header_preproc" >&6
15238 # So? What about this header?
15239 case $ac_header_compiler:$ac_header_preproc in
15240 yes:no )
15241 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
15242 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15244 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15245 no:yes )
15246 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
15247 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
15248 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
15249 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
15250 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15251 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15252 esac
15253 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15254 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15255 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15257 else
15258 ac_cv_header_arpa_inet_h=$ac_header_preproc
15260 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15261 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15264 if test $ac_cv_header_arpa_inet_h = yes; then
15266 else
15267 ok_so_far=no
15272 if test $ok_so_far = yes; then
15274 cat >>confdefs.h <<\_ACEOF
15275 #define HAVE_INET_SOCKETS 1
15276 _ACEOF
15280 if test -f /usr/lpp/X11/bin/smt.exp; then
15282 cat >>confdefs.h <<\_ACEOF
15283 #define HAVE_AIX_SMT_EXP 1
15284 _ACEOF
15288 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
15289 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
15290 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15291 echo "$as_me:$LINENO: result: yes" >&5
15292 echo "${ECHO_T}yes" >&6
15294 cat >>confdefs.h <<\_ACEOF
15295 #define HAVE_DEV_PTMX 1
15296 _ACEOF
15298 else
15299 echo "$as_me:$LINENO: result: no" >&5
15300 echo "${ECHO_T}no" >&6
15303 echo "$as_me:$LINENO: checking for pid_t" >&5
15304 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15305 if test "${ac_cv_type_pid_t+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15307 else
15308 cat >conftest.$ac_ext <<_ACEOF
15309 #line $LINENO "configure"
15310 #include "confdefs.h"
15311 $ac_includes_default
15312 #ifdef F77_DUMMY_MAIN
15313 # ifdef __cplusplus
15314 extern "C"
15315 # endif
15316 int F77_DUMMY_MAIN() { return 1; }
15317 #endif
15319 main ()
15321 if ((pid_t *) 0)
15322 return 0;
15323 if (sizeof (pid_t))
15324 return 0;
15326 return 0;
15328 _ACEOF
15329 rm -f conftest.$ac_objext
15330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15331 (eval $ac_compile) 2>&5
15332 ac_status=$?
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try='test -s conftest.$ac_objext'
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15338 ac_status=$?
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }; then
15341 ac_cv_type_pid_t=yes
15342 else
15343 echo "$as_me: failed program was:" >&5
15344 cat conftest.$ac_ext >&5
15345 ac_cv_type_pid_t=no
15347 rm -f conftest.$ac_objext conftest.$ac_ext
15349 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15350 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15351 if test $ac_cv_type_pid_t = yes; then
15353 else
15355 cat >>confdefs.h <<_ACEOF
15356 #define pid_t int
15357 _ACEOF
15363 for ac_header in unistd.h vfork.h
15365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15367 echo "$as_me:$LINENO: checking for $ac_header" >&5
15368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15374 else
15375 # Is the header compilable?
15376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15378 cat >conftest.$ac_ext <<_ACEOF
15379 #line $LINENO "configure"
15380 #include "confdefs.h"
15381 $ac_includes_default
15382 #include <$ac_header>
15383 _ACEOF
15384 rm -f conftest.$ac_objext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15386 (eval $ac_compile) 2>&5
15387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15396 ac_header_compiler=yes
15397 else
15398 echo "$as_me: failed program was:" >&5
15399 cat conftest.$ac_ext >&5
15400 ac_header_compiler=no
15402 rm -f conftest.$ac_objext conftest.$ac_ext
15403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15404 echo "${ECHO_T}$ac_header_compiler" >&6
15406 # Is the header present?
15407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15409 cat >conftest.$ac_ext <<_ACEOF
15410 #line $LINENO "configure"
15411 #include "confdefs.h"
15412 #include <$ac_header>
15413 _ACEOF
15414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15416 ac_status=$?
15417 egrep -v '^ *\+' conftest.er1 >conftest.err
15418 rm -f conftest.er1
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } >/dev/null; then
15422 if test -s conftest.err; then
15423 ac_cpp_err=$ac_c_preproc_warn_flag
15424 else
15425 ac_cpp_err=
15427 else
15428 ac_cpp_err=yes
15430 if test -z "$ac_cpp_err"; then
15431 ac_header_preproc=yes
15432 else
15433 echo "$as_me: failed program was:" >&5
15434 cat conftest.$ac_ext >&5
15435 ac_header_preproc=no
15437 rm -f conftest.err conftest.$ac_ext
15438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15439 echo "${ECHO_T}$ac_header_preproc" >&6
15441 # So? What about this header?
15442 case $ac_header_compiler:$ac_header_preproc in
15443 yes:no )
15444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15448 no:yes )
15449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15455 esac
15456 echo "$as_me:$LINENO: checking for $ac_header" >&5
15457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 else
15461 eval "$as_ac_Header=$ac_header_preproc"
15463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15468 cat >>confdefs.h <<_ACEOF
15469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15470 _ACEOF
15474 done
15478 for ac_func in fork vfork
15480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15481 echo "$as_me:$LINENO: checking for $ac_func" >&5
15482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15483 if eval "test \"\${$as_ac_var+set}\" = set"; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
15485 else
15486 cat >conftest.$ac_ext <<_ACEOF
15487 #line $LINENO "configure"
15488 #include "confdefs.h"
15489 /* System header to define __stub macros and hopefully few prototypes,
15490 which can conflict with char $ac_func (); below. */
15491 #include <assert.h>
15492 /* Override any gcc2 internal prototype to avoid an error. */
15493 #ifdef __cplusplus
15494 extern "C"
15495 #endif
15496 /* We use char because int might match the return type of a gcc2
15497 builtin and then its argument prototype would still apply. */
15498 char $ac_func ();
15499 char (*f) ();
15501 #ifdef F77_DUMMY_MAIN
15502 # ifdef __cplusplus
15503 extern "C"
15504 # endif
15505 int F77_DUMMY_MAIN() { return 1; }
15506 #endif
15508 main ()
15510 /* The GNU C library defines this for functions which it implements
15511 to always fail with ENOSYS. Some functions are actually named
15512 something starting with __ and the normal name is an alias. */
15513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15514 choke me
15515 #else
15516 f = $ac_func;
15517 #endif
15520 return 0;
15522 _ACEOF
15523 rm -f conftest.$ac_objext conftest$ac_exeext
15524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15525 (eval $ac_link) 2>&5
15526 ac_status=$?
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); } &&
15529 { ac_try='test -s conftest$ac_exeext'
15530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531 (eval $ac_try) 2>&5
15532 ac_status=$?
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; }; then
15535 eval "$as_ac_var=yes"
15536 else
15537 echo "$as_me: failed program was:" >&5
15538 cat conftest.$ac_ext >&5
15539 eval "$as_ac_var=no"
15541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15545 if test `eval echo '${'$as_ac_var'}'` = yes; then
15546 cat >>confdefs.h <<_ACEOF
15547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15548 _ACEOF
15551 done
15553 ac_cv_func_fork_works=$ac_cv_func_fork
15554 if test "x$ac_cv_func_fork" = xyes; then
15555 echo "$as_me:$LINENO: checking for working fork" >&5
15556 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15557 if test "${ac_cv_func_fork_works+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15559 else
15560 if test "$cross_compiling" = yes; then
15561 ac_cv_func_fork_works=cross
15562 else
15563 cat >conftest.$ac_ext <<_ACEOF
15564 /* By Ruediger Kuhlmann. */
15565 #include <sys/types.h>
15566 #if HAVE_UNISTD_H
15567 # include <unistd.h>
15568 #endif
15569 /* Some systems only have a dummy stub for fork() */
15570 int main ()
15572 if (fork() < 0)
15573 exit (1);
15574 exit (0);
15576 _ACEOF
15577 rm -f conftest$ac_exeext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15579 (eval $ac_link) 2>&5
15580 ac_status=$?
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584 (eval $ac_try) 2>&5
15585 ac_status=$?
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; }; then
15588 ac_cv_func_fork_works=yes
15589 else
15590 echo "$as_me: program exited with status $ac_status" >&5
15591 echo "$as_me: failed program was:" >&5
15592 cat conftest.$ac_ext >&5
15593 ( exit $ac_status )
15594 ac_cv_func_fork_works=no
15596 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15599 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15600 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15603 if test "x$ac_cv_func_fork_works" = xcross; then
15604 case $host in
15605 *-*-amigaos* | *-*-msdosdjgpp*)
15606 # Override, as these systems have only a dummy fork() stub
15607 ac_cv_func_fork_works=no
15610 ac_cv_func_fork_works=yes
15612 esac
15613 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15614 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15616 ac_cv_func_vfork_works=$ac_cv_func_vfork
15617 if test "x$ac_cv_func_vfork" = xyes; then
15618 echo "$as_me:$LINENO: checking for working vfork" >&5
15619 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15620 if test "${ac_cv_func_vfork_works+set}" = set; then
15621 echo $ECHO_N "(cached) $ECHO_C" >&6
15622 else
15623 if test "$cross_compiling" = yes; then
15624 ac_cv_func_vfork_works=cross
15625 else
15626 cat >conftest.$ac_ext <<_ACEOF
15627 #line $LINENO "configure"
15628 #include "confdefs.h"
15629 /* Thanks to Paul Eggert for this test. */
15630 #include <stdio.h>
15631 #include <sys/types.h>
15632 #include <sys/stat.h>
15633 #if HAVE_UNISTD_H
15634 # include <unistd.h>
15635 #endif
15636 #if HAVE_VFORK_H
15637 # include <vfork.h>
15638 #endif
15639 /* On some sparc systems, changes by the child to local and incoming
15640 argument registers are propagated back to the parent. The compiler
15641 is told about this with #include <vfork.h>, but some compilers
15642 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15643 static variable whose address is put into a register that is
15644 clobbered by the vfork. */
15645 static
15646 #ifdef __cplusplus
15647 sparc_address_test (int arg)
15648 # else
15649 sparc_address_test (arg) int arg;
15650 #endif
15652 static pid_t child;
15653 if (!child) {
15654 child = vfork ();
15655 if (child < 0) {
15656 perror ("vfork");
15657 _exit(2);
15659 if (!child) {
15660 arg = getpid();
15661 write(-1, "", 0);
15662 _exit (arg);
15668 main ()
15670 pid_t parent = getpid ();
15671 pid_t child;
15673 sparc_address_test ();
15675 child = vfork ();
15677 if (child == 0) {
15678 /* Here is another test for sparc vfork register problems. This
15679 test uses lots of local variables, at least as many local
15680 variables as main has allocated so far including compiler
15681 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15682 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15683 reuse the register of parent for one of the local variables,
15684 since it will think that parent can't possibly be used any more
15685 in this routine. Assigning to the local variable will thus
15686 munge parent in the parent process. */
15687 pid_t
15688 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15689 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15690 /* Convince the compiler that p..p7 are live; otherwise, it might
15691 use the same hardware register for all 8 local variables. */
15692 if (p != p1 || p != p2 || p != p3 || p != p4
15693 || p != p5 || p != p6 || p != p7)
15694 _exit(1);
15696 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15697 from child file descriptors. If the child closes a descriptor
15698 before it execs or exits, this munges the parent's descriptor
15699 as well. Test for this by closing stdout in the child. */
15700 _exit(close(fileno(stdout)) != 0);
15701 } else {
15702 int status;
15703 struct stat st;
15705 while (wait(&status) != child)
15707 exit(
15708 /* Was there some problem with vforking? */
15709 child < 0
15711 /* Did the child fail? (This shouldn't happen.) */
15712 || status
15714 /* Did the vfork/compiler bug occur? */
15715 || parent != getpid()
15717 /* Did the file descriptor bug occur? */
15718 || fstat(fileno(stdout), &st) != 0
15722 _ACEOF
15723 rm -f conftest$ac_exeext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15725 (eval $ac_link) 2>&5
15726 ac_status=$?
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730 (eval $ac_try) 2>&5
15731 ac_status=$?
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; }; then
15734 ac_cv_func_vfork_works=yes
15735 else
15736 echo "$as_me: program exited with status $ac_status" >&5
15737 echo "$as_me: failed program was:" >&5
15738 cat conftest.$ac_ext >&5
15739 ( exit $ac_status )
15740 ac_cv_func_vfork_works=no
15742 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15745 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15746 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15749 if test "x$ac_cv_func_fork_works" = xcross; then
15750 ac_cv_func_vfork_works=ac_cv_func_vfork
15751 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15752 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15755 if test "x$ac_cv_func_vfork_works" = xyes; then
15757 cat >>confdefs.h <<\_ACEOF
15758 #define HAVE_WORKING_VFORK 1
15759 _ACEOF
15761 else
15763 cat >>confdefs.h <<\_ACEOF
15764 #define vfork fork
15765 _ACEOF
15768 if test "x$ac_cv_func_fork_works" = xyes; then
15770 cat >>confdefs.h <<\_ACEOF
15771 #define HAVE_WORKING_FORK 1
15772 _ACEOF
15777 # Fixme: This should be replaced when we have autoconf 2.14.
15778 echo "$as_me:$LINENO: checking for size_t" >&5
15779 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15780 if test "${ac_cv_type_size_t+set}" = set; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15782 else
15783 cat >conftest.$ac_ext <<_ACEOF
15784 #line $LINENO "configure"
15785 #include "confdefs.h"
15786 $ac_includes_default
15787 #ifdef F77_DUMMY_MAIN
15788 # ifdef __cplusplus
15789 extern "C"
15790 # endif
15791 int F77_DUMMY_MAIN() { return 1; }
15792 #endif
15794 main ()
15796 if ((size_t *) 0)
15797 return 0;
15798 if (sizeof (size_t))
15799 return 0;
15801 return 0;
15803 _ACEOF
15804 rm -f conftest.$ac_objext
15805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15806 (eval $ac_compile) 2>&5
15807 ac_status=$?
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } &&
15810 { ac_try='test -s conftest.$ac_objext'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15816 ac_cv_type_size_t=yes
15817 else
15818 echo "$as_me: failed program was:" >&5
15819 cat conftest.$ac_ext >&5
15820 ac_cv_type_size_t=no
15822 rm -f conftest.$ac_objext conftest.$ac_ext
15824 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15825 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15826 if test $ac_cv_type_size_t = yes; then
15828 else
15830 cat >>confdefs.h <<_ACEOF
15831 #define size_t unsigned
15832 _ACEOF
15837 # Set up the CFLAGS for real compilation, so we can substitute it.
15838 CFLAGS="$REAL_CFLAGS"
15839 CPPFLAGS="$REAL_CPPFLAGS"
15841 #### Find out which version of Emacs this is.
15842 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
15843 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
15844 if test x"${version}" = x; then
15845 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
15846 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
15847 { (exit 1); exit 1; }; }
15850 ### Specify what sort of things we'll be editing into Makefile and config.h.
15851 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15886 cat >>confdefs.h <<_ACEOF
15887 #define EMACS_CONFIGURATION "${canonical}"
15888 _ACEOF
15891 cat >>confdefs.h <<_ACEOF
15892 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15893 _ACEOF
15896 cat >>confdefs.h <<_ACEOF
15897 #define config_machfile "${machfile}"
15898 _ACEOF
15901 cat >>confdefs.h <<_ACEOF
15902 #define config_opsysfile "${opsysfile}"
15903 _ACEOF
15906 cat >>confdefs.h <<_ACEOF
15907 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
15908 _ACEOF
15911 cat >>confdefs.h <<_ACEOF
15912 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
15913 _ACEOF
15916 cat >>confdefs.h <<_ACEOF
15917 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
15918 _ACEOF
15921 cat >>confdefs.h <<_ACEOF
15922 #define UNEXEC_SRC ${UNEXEC_SRC}
15923 _ACEOF
15926 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15928 cat >>confdefs.h <<\_ACEOF
15929 #define HAVE_X_WINDOWS 1
15930 _ACEOF
15933 if test "${USE_X_TOOLKIT}" != "none" ; then
15935 cat >>confdefs.h <<\_ACEOF
15936 #define USE_X_TOOLKIT 1
15937 _ACEOF
15940 if test "${HAVE_X11}" = "yes" ; then
15942 cat >>confdefs.h <<\_ACEOF
15943 #define HAVE_X11 1
15944 _ACEOF
15947 if test "${HAVE_XFREE386}" = "yes" ; then
15949 cat >>confdefs.h <<\_ACEOF
15950 #define HAVE_XFREE386 1
15951 _ACEOF
15954 if test "${HAVE_MENUS}" = "yes" ; then
15956 cat >>confdefs.h <<\_ACEOF
15957 #define HAVE_MENUS 1
15958 _ACEOF
15961 if test "${GNU_MALLOC}" = "yes" ; then
15963 cat >>confdefs.h <<\_ACEOF
15964 #define GNU_MALLOC 1
15965 _ACEOF
15968 if test "${REL_ALLOC}" = "yes" ; then
15970 cat >>confdefs.h <<\_ACEOF
15971 #define REL_ALLOC 1
15972 _ACEOF
15977 for ac_header in nlist.h
15979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15981 echo "$as_me:$LINENO: checking for $ac_header" >&5
15982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15988 else
15989 # Is the header compilable?
15990 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15992 cat >conftest.$ac_ext <<_ACEOF
15993 #line $LINENO "configure"
15994 #include "confdefs.h"
15995 $ac_includes_default
15996 #include <$ac_header>
15997 _ACEOF
15998 rm -f conftest.$ac_objext
15999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16000 (eval $ac_compile) 2>&5
16001 ac_status=$?
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } &&
16004 { ac_try='test -s conftest.$ac_objext'
16005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006 (eval $ac_try) 2>&5
16007 ac_status=$?
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; }; then
16010 ac_header_compiler=yes
16011 else
16012 echo "$as_me: failed program was:" >&5
16013 cat conftest.$ac_ext >&5
16014 ac_header_compiler=no
16016 rm -f conftest.$ac_objext conftest.$ac_ext
16017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16018 echo "${ECHO_T}$ac_header_compiler" >&6
16020 # Is the header present?
16021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16023 cat >conftest.$ac_ext <<_ACEOF
16024 #line $LINENO "configure"
16025 #include "confdefs.h"
16026 #include <$ac_header>
16027 _ACEOF
16028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16030 ac_status=$?
16031 egrep -v '^ *\+' conftest.er1 >conftest.err
16032 rm -f conftest.er1
16033 cat conftest.err >&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } >/dev/null; then
16036 if test -s conftest.err; then
16037 ac_cpp_err=$ac_c_preproc_warn_flag
16038 else
16039 ac_cpp_err=
16041 else
16042 ac_cpp_err=yes
16044 if test -z "$ac_cpp_err"; then
16045 ac_header_preproc=yes
16046 else
16047 echo "$as_me: failed program was:" >&5
16048 cat conftest.$ac_ext >&5
16049 ac_header_preproc=no
16051 rm -f conftest.err conftest.$ac_ext
16052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16053 echo "${ECHO_T}$ac_header_preproc" >&6
16055 # So? What about this header?
16056 case $ac_header_compiler:$ac_header_preproc in
16057 yes:no )
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16062 no:yes )
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16069 esac
16070 echo "$as_me:$LINENO: checking for $ac_header" >&5
16071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16074 else
16075 eval "$as_ac_Header=$ac_header_preproc"
16077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16082 cat >>confdefs.h <<_ACEOF
16083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16084 _ACEOF
16086 cat >>confdefs.h <<\_ACEOF
16087 #define NLIST_STRUCT 1
16088 _ACEOF
16092 done
16099 #### Report on what we decided to do.
16100 echo "
16101 Configured for \`${canonical}'.
16103 Where should the build process find the source code? ${srcdir}
16104 What operating system and machine description files should Emacs use?
16105 \`${opsysfile}' and \`${machfile}'
16106 What compiler should emacs be built with? ${CC} ${CFLAGS}
16107 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
16108 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
16109 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
16110 What window system should Emacs use? ${window_system}
16111 What toolkit should Emacs use? ${USE_X_TOOLKIT}
16112 Should Emacs use a shared game state directory? ${gamedir}"
16114 if test -n "${x_includes}"; then
16115 echo " Where do we find X Windows header files? ${x_includes}"
16116 else
16117 echo " Where do we find X Windows header files? Standard dirs"
16119 if test -n "${x_libraries}"; then
16120 echo " Where do we find X Windows libraries? ${x_libraries}"
16121 else
16122 echo " Where do we find X Windows libraries? Standard dirs"
16125 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
16126 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
16127 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
16128 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
16129 echo " Does Emacs use -lungif? ${HAVE_GIF}"
16130 echo " Does Emacs use -lpng? ${HAVE_PNG}"
16131 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
16132 echo
16134 # Remove any trailing slashes in these variables.
16135 test "${prefix}" != NONE &&
16136 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
16137 test "${exec_prefix}" != NONE &&
16138 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
16140 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
16141 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
16142 ## from Makefile.c can correctly provide the arg `-traditional' to the
16143 ## C preprocessor.
16145 cat >conftest.$ac_ext <<_ACEOF
16146 #line $LINENO "configure"
16147 #include "confdefs.h"
16148 yes..yes
16149 _ACEOF
16150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16151 egrep "yes..yes" >/dev/null 2>&1; then
16152 CPP_NEED_TRADITIONAL=no
16153 else
16154 CPP_NEED_TRADITIONAL=yes
16156 rm -f conftest*
16159 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"
16160 ac_config_commands="$ac_config_commands default"
16161 cat >confcache <<\_ACEOF
16162 # This file is a shell script that caches the results of configure
16163 # tests run on this system so they can be shared between configure
16164 # scripts and configure runs, see configure's option --config-cache.
16165 # It is not useful on other systems. If it contains results you don't
16166 # want to keep, you may remove or edit it.
16168 # config.status only pays attention to the cache file if you give it
16169 # the --recheck option to rerun configure.
16171 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16172 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16173 # following values.
16175 _ACEOF
16177 # The following way of writing the cache mishandles newlines in values,
16178 # but we know of no workaround that is simple, portable, and efficient.
16179 # So, don't put newlines in cache variables' values.
16180 # Ultrix sh set writes to stderr and can't be redirected directly,
16181 # and sets the high bit in the cache file unless we assign to the vars.
16183 (set) 2>&1 |
16184 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16185 *ac_space=\ *)
16186 # `set' does not quote correctly, so add quotes (double-quote
16187 # substitution turns \\\\ into \\, and sed turns \\ into \).
16188 sed -n \
16189 "s/'/'\\\\''/g;
16190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16193 # `set' quotes correctly as required by POSIX, so do not add quotes.
16194 sed -n \
16195 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16197 esac;
16199 sed '
16200 t clear
16201 : clear
16202 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16203 t end
16204 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16205 : end' >>confcache
16206 if cmp -s $cache_file confcache; then :; else
16207 if test -w $cache_file; then
16208 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16209 cat confcache >$cache_file
16210 else
16211 echo "not updating unwritable cache $cache_file"
16214 rm -f confcache
16216 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16217 # Let make expand exec_prefix.
16218 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16220 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16221 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16222 # trailing colons and then remove the whole line if VPATH becomes empty
16223 # (actually we leave an empty line to preserve line numbers).
16224 if test "x$srcdir" = x.; then
16225 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16226 s/:*\$(srcdir):*/:/;
16227 s/:*\${srcdir}:*/:/;
16228 s/:*@srcdir@:*/:/;
16229 s/^\([^=]*=[ ]*\):*/\1/;
16230 s/:*$//;
16231 s/^[^=]*=[ ]*$//;
16235 DEFS=-DHAVE_CONFIG_H
16238 : ${CONFIG_STATUS=./config.status}
16239 ac_clean_files_save=$ac_clean_files
16240 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16241 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16242 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16243 cat >$CONFIG_STATUS <<_ACEOF
16244 #! $SHELL
16245 # Generated by $as_me.
16246 # Run this file to recreate the current configuration.
16247 # Compiler output produced by configure, useful for debugging
16248 # configure, is in config.log if it exists.
16250 debug=false
16251 SHELL=\${CONFIG_SHELL-$SHELL}
16252 _ACEOF
16254 cat >>$CONFIG_STATUS <<\_ACEOF
16255 ## --------------------- ##
16256 ## M4sh Initialization. ##
16257 ## --------------------- ##
16259 # Be Bourne compatible
16260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16261 emulate sh
16262 NULLCMD=:
16263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16264 # is contrary to our usage. Disable this feature.
16265 alias -g '${1+"$@"}'='"$@"'
16266 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16267 set -o posix
16270 # NLS nuisances.
16271 # Support unset when possible.
16272 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16273 as_unset=unset
16274 else
16275 as_unset=false
16278 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16279 { $as_unset LANG || test "${LANG+set}" != set; } ||
16280 { LANG=C; export LANG; }
16281 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16282 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16283 { LC_ALL=C; export LC_ALL; }
16284 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16285 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16286 { LC_TIME=C; export LC_TIME; }
16287 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16288 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16289 { LC_CTYPE=C; export LC_CTYPE; }
16290 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16291 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16292 { LANGUAGE=C; export LANGUAGE; }
16293 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16294 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16295 { LC_COLLATE=C; export LC_COLLATE; }
16296 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16297 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16298 { LC_NUMERIC=C; export LC_NUMERIC; }
16299 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16300 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16301 { LC_MESSAGES=C; export LC_MESSAGES; }
16304 # Required to use basename.
16305 if expr a : '\(a\)' >/dev/null 2>&1; then
16306 as_expr=expr
16307 else
16308 as_expr=false
16311 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16312 as_basename=basename
16313 else
16314 as_basename=false
16318 # Name of the executable.
16319 as_me=`$as_basename "$0" ||
16320 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16321 X"$0" : 'X\(//\)$' \| \
16322 X"$0" : 'X\(/\)$' \| \
16323 . : '\(.\)' 2>/dev/null ||
16324 echo X/"$0" |
16325 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16326 /^X\/\(\/\/\)$/{ s//\1/; q; }
16327 /^X\/\(\/\).*/{ s//\1/; q; }
16328 s/.*/./; q'`
16331 # PATH needs CR, and LINENO needs CR and PATH.
16332 # Avoid depending upon Character Ranges.
16333 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16334 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16335 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16336 as_cr_digits='0123456789'
16337 as_cr_alnum=$as_cr_Letters$as_cr_digits
16339 # The user is always right.
16340 if test "${PATH_SEPARATOR+set}" != set; then
16341 echo "#! /bin/sh" >conftest.sh
16342 echo "exit 0" >>conftest.sh
16343 chmod +x conftest.sh
16344 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16345 PATH_SEPARATOR=';'
16346 else
16347 PATH_SEPARATOR=:
16349 rm -f conftest.sh
16353 as_lineno_1=$LINENO
16354 as_lineno_2=$LINENO
16355 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16356 test "x$as_lineno_1" != "x$as_lineno_2" &&
16357 test "x$as_lineno_3" = "x$as_lineno_2" || {
16358 # Find who we are. Look in the path if we contain no path at all
16359 # relative or not.
16360 case $0 in
16361 *[\\/]* ) as_myself=$0 ;;
16362 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16363 for as_dir in $PATH
16365 IFS=$as_save_IFS
16366 test -z "$as_dir" && as_dir=.
16367 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16368 done
16371 esac
16372 # We did not find ourselves, most probably we were run as `sh COMMAND'
16373 # in which case we are not to be found in the path.
16374 if test "x$as_myself" = x; then
16375 as_myself=$0
16377 if test ! -f "$as_myself"; then
16378 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16379 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16380 { (exit 1); exit 1; }; }
16382 case $CONFIG_SHELL in
16384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16385 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16387 IFS=$as_save_IFS
16388 test -z "$as_dir" && as_dir=.
16389 for as_base in sh bash ksh sh5; do
16390 case $as_dir in
16392 if ("$as_dir/$as_base" -c '
16393 as_lineno_1=$LINENO
16394 as_lineno_2=$LINENO
16395 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16396 test "x$as_lineno_1" != "x$as_lineno_2" &&
16397 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16398 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16399 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16400 CONFIG_SHELL=$as_dir/$as_base
16401 export CONFIG_SHELL
16402 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16403 fi;;
16404 esac
16405 done
16406 done
16408 esac
16410 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16411 # uniformly replaced by the line number. The first 'sed' inserts a
16412 # line-number line before each line; the second 'sed' does the real
16413 # work. The second script uses 'N' to pair each line-number line
16414 # with the numbered line, and appends trailing '-' during
16415 # substitution so that $LINENO is not a special case at line end.
16416 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16417 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16418 sed '=' <$as_myself |
16419 sed '
16421 s,$,-,
16422 : loop
16423 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16424 t loop
16425 s,-$,,
16426 s,^['$as_cr_digits']*\n,,
16427 ' >$as_me.lineno &&
16428 chmod +x $as_me.lineno ||
16429 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16430 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16431 { (exit 1); exit 1; }; }
16433 # Don't try to exec as it changes $[0], causing all sort of problems
16434 # (the dirname of $[0] is not the place where we might find the
16435 # original and so on. Autoconf is especially sensible to this).
16436 . ./$as_me.lineno
16437 # Exit status is that of the last command.
16438 exit
16442 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16443 *c*,-n*) ECHO_N= ECHO_C='
16444 ' ECHO_T=' ' ;;
16445 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16446 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16447 esac
16449 if expr a : '\(a\)' >/dev/null 2>&1; then
16450 as_expr=expr
16451 else
16452 as_expr=false
16455 rm -f conf$$ conf$$.exe conf$$.file
16456 echo >conf$$.file
16457 if ln -s conf$$.file conf$$ 2>/dev/null; then
16458 # We could just check for DJGPP; but this test a) works b) is more generic
16459 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16460 if test -f conf$$.exe; then
16461 # Don't use ln at all; we don't have any links
16462 as_ln_s='cp -p'
16463 else
16464 as_ln_s='ln -s'
16466 elif ln conf$$.file conf$$ 2>/dev/null; then
16467 as_ln_s=ln
16468 else
16469 as_ln_s='cp -p'
16471 rm -f conf$$ conf$$.exe conf$$.file
16473 if mkdir -p . 2>/dev/null; then
16474 as_mkdir_p=:
16475 else
16476 as_mkdir_p=false
16479 as_executable_p="test -f"
16481 # Sed expression to map a string onto a valid CPP name.
16482 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16484 # Sed expression to map a string onto a valid variable name.
16485 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16488 # IFS
16489 # We need space, tab and new line, in precisely that order.
16490 as_nl='
16492 IFS=" $as_nl"
16494 # CDPATH.
16495 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16497 exec 6>&1
16499 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16500 # report actual input values of CONFIG_FILES etc. instead of their
16501 # values after options handling. Logging --version etc. is OK.
16502 exec 5>>config.log
16504 echo
16505 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16506 ## Running $as_me. ##
16507 _ASBOX
16508 } >&5
16509 cat >&5 <<_CSEOF
16511 This file was extended by $as_me, which was
16512 generated by GNU Autoconf 2.53a. Invocation command line was
16514 CONFIG_FILES = $CONFIG_FILES
16515 CONFIG_HEADERS = $CONFIG_HEADERS
16516 CONFIG_LINKS = $CONFIG_LINKS
16517 CONFIG_COMMANDS = $CONFIG_COMMANDS
16518 $ $0 $@
16520 _CSEOF
16521 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16522 echo >&5
16523 _ACEOF
16525 # Files that config.status was made for.
16526 if test -n "$ac_config_files"; then
16527 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16530 if test -n "$ac_config_headers"; then
16531 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16534 if test -n "$ac_config_links"; then
16535 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16538 if test -n "$ac_config_commands"; then
16539 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16542 cat >>$CONFIG_STATUS <<\_ACEOF
16544 ac_cs_usage="\
16545 \`$as_me' instantiates files from templates according to the
16546 current configuration.
16548 Usage: $0 [OPTIONS] [FILE]...
16550 -h, --help print this help, then exit
16551 -V, --version print version number, then exit
16552 -d, --debug don't remove temporary files
16553 --recheck update $as_me by reconfiguring in the same conditions
16554 --file=FILE[:TEMPLATE]
16555 instantiate the configuration file FILE
16556 --header=FILE[:TEMPLATE]
16557 instantiate the configuration header FILE
16559 Configuration files:
16560 $config_files
16562 Configuration headers:
16563 $config_headers
16565 Configuration commands:
16566 $config_commands
16568 Report bugs to <bug-autoconf@gnu.org>."
16569 _ACEOF
16571 cat >>$CONFIG_STATUS <<_ACEOF
16572 ac_cs_version="\\
16573 config.status
16574 configured by $0, generated by GNU Autoconf 2.53a,
16575 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16577 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16578 Free Software Foundation, Inc.
16579 This config.status script is free software; the Free Software Foundation
16580 gives unlimited permission to copy, distribute and modify it."
16581 srcdir=$srcdir
16582 INSTALL="$INSTALL"
16583 _ACEOF
16585 cat >>$CONFIG_STATUS <<\_ACEOF
16586 # If no file are specified by the user, then we need to provide default
16587 # value. By we need to know if files were specified by the user.
16588 ac_need_defaults=:
16589 while test $# != 0
16591 case $1 in
16592 --*=*)
16593 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16594 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16595 shift
16596 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16597 shift
16599 -*);;
16600 *) # This is not an option, so the user has probably given explicit
16601 # arguments.
16602 ac_need_defaults=false;;
16603 esac
16605 case $1 in
16606 # Handling of the options.
16607 _ACEOF
16608 cat >>$CONFIG_STATUS <<_ACEOF
16609 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16610 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16611 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16612 _ACEOF
16613 cat >>$CONFIG_STATUS <<\_ACEOF
16614 --version | --vers* | -V )
16615 echo "$ac_cs_version"; exit 0 ;;
16616 --he | --h)
16617 # Conflict between --help and --header
16618 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16619 Try \`$0 --help' for more information." >&5
16620 echo "$as_me: error: ambiguous option: $1
16621 Try \`$0 --help' for more information." >&2;}
16622 { (exit 1); exit 1; }; };;
16623 --help | --hel | -h )
16624 echo "$ac_cs_usage"; exit 0 ;;
16625 --debug | --d* | -d )
16626 debug=: ;;
16627 --file | --fil | --fi | --f )
16628 shift
16629 CONFIG_FILES="$CONFIG_FILES $1"
16630 ac_need_defaults=false;;
16631 --header | --heade | --head | --hea )
16632 shift
16633 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16634 ac_need_defaults=false;;
16636 # This is an error.
16637 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16638 Try \`$0 --help' for more information." >&5
16639 echo "$as_me: error: unrecognized option: $1
16640 Try \`$0 --help' for more information." >&2;}
16641 { (exit 1); exit 1; }; } ;;
16643 *) ac_config_targets="$ac_config_targets $1" ;;
16645 esac
16646 shift
16647 done
16649 _ACEOF
16651 cat >>$CONFIG_STATUS <<_ACEOF
16653 # INIT-COMMANDS section.
16656 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
16658 _ACEOF
16662 cat >>$CONFIG_STATUS <<\_ACEOF
16663 for ac_config_target in $ac_config_targets
16665 case "$ac_config_target" in
16666 # Handling of arguments.
16667 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16668 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
16669 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
16670 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16671 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
16672 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
16673 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
16674 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
16675 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
16676 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
16677 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16678 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
16679 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16680 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16681 { (exit 1); exit 1; }; };;
16682 esac
16683 done
16685 # If the user did not use the arguments to specify the items to instantiate,
16686 # then the envvar interface is used. Set only those that are not.
16687 # We use the long form for the default assignment because of an extremely
16688 # bizarre bug on SunOS 4.1.3.
16689 if $ac_need_defaults; then
16690 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16691 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16692 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16695 # Create a temporary directory, and hook for its removal unless debugging.
16696 $debug ||
16698 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16699 trap '{ (exit 1); exit 1; }' 1 2 13 15
16702 # Create a (secure) tmp directory for tmp files.
16703 : ${TMPDIR=/tmp}
16705 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16706 test -n "$tmp" && test -d "$tmp"
16707 } ||
16709 tmp=$TMPDIR/cs$$-$RANDOM
16710 (umask 077 && mkdir $tmp)
16711 } ||
16713 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16714 { (exit 1); exit 1; }
16717 _ACEOF
16719 cat >>$CONFIG_STATUS <<_ACEOF
16722 # CONFIG_FILES section.
16725 # No need to generate the scripts if there are no CONFIG_FILES.
16726 # This happens for instance when ./config.status config.h
16727 if test -n "\$CONFIG_FILES"; then
16728 # Protect against being on the right side of a sed subst in config.status.
16729 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16730 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16731 s,@SHELL@,$SHELL,;t t
16732 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16733 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16734 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16735 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16736 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16737 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16738 s,@exec_prefix@,$exec_prefix,;t t
16739 s,@prefix@,$prefix,;t t
16740 s,@program_transform_name@,$program_transform_name,;t t
16741 s,@bindir@,$bindir,;t t
16742 s,@sbindir@,$sbindir,;t t
16743 s,@libexecdir@,$libexecdir,;t t
16744 s,@datadir@,$datadir,;t t
16745 s,@sysconfdir@,$sysconfdir,;t t
16746 s,@sharedstatedir@,$sharedstatedir,;t t
16747 s,@localstatedir@,$localstatedir,;t t
16748 s,@libdir@,$libdir,;t t
16749 s,@includedir@,$includedir,;t t
16750 s,@oldincludedir@,$oldincludedir,;t t
16751 s,@infodir@,$infodir,;t t
16752 s,@mandir@,$mandir,;t t
16753 s,@build_alias@,$build_alias,;t t
16754 s,@host_alias@,$host_alias,;t t
16755 s,@target_alias@,$target_alias,;t t
16756 s,@DEFS@,$DEFS,;t t
16757 s,@ECHO_C@,$ECHO_C,;t t
16758 s,@ECHO_N@,$ECHO_N,;t t
16759 s,@ECHO_T@,$ECHO_T,;t t
16760 s,@LIBS@,$LIBS,;t t
16761 s,@build@,$build,;t t
16762 s,@build_cpu@,$build_cpu,;t t
16763 s,@build_vendor@,$build_vendor,;t t
16764 s,@build_os@,$build_os,;t t
16765 s,@host@,$host,;t t
16766 s,@host_cpu@,$host_cpu,;t t
16767 s,@host_vendor@,$host_vendor,;t t
16768 s,@host_os@,$host_os,;t t
16769 s,@CC@,$CC,;t t
16770 s,@CFLAGS@,$CFLAGS,;t t
16771 s,@LDFLAGS@,$LDFLAGS,;t t
16772 s,@CPPFLAGS@,$CPPFLAGS,;t t
16773 s,@ac_ct_CC@,$ac_ct_CC,;t t
16774 s,@EXEEXT@,$EXEEXT,;t t
16775 s,@OBJEXT@,$OBJEXT,;t t
16776 s,@LN_S@,$LN_S,;t t
16777 s,@CPP@,$CPP,;t t
16778 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16779 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16780 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16781 s,@YACC@,$YACC,;t t
16782 s,@RANLIB@,$RANLIB,;t t
16783 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16784 s,@LIBSOUND@,$LIBSOUND,;t t
16785 s,@SET_MAKE@,$SET_MAKE,;t t
16786 s,@ALLOCA@,$ALLOCA,;t t
16787 s,@liblockfile@,$liblockfile,;t t
16788 s,@LIBOBJS@,$LIBOBJS,;t t
16789 s,@NEED_SETGID@,$NEED_SETGID,;t t
16790 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
16791 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
16792 s,@version@,$version,;t t
16793 s,@configuration@,$configuration,;t t
16794 s,@canonical@,$canonical,;t t
16795 s,@srcdir@,$srcdir,;t t
16796 s,@lispdir@,$lispdir,;t t
16797 s,@locallisppath@,$locallisppath,;t t
16798 s,@lisppath@,$lisppath,;t t
16799 s,@x_default_search_path@,$x_default_search_path,;t t
16800 s,@etcdir@,$etcdir,;t t
16801 s,@archlibdir@,$archlibdir,;t t
16802 s,@docdir@,$docdir,;t t
16803 s,@bitmapdir@,$bitmapdir,;t t
16804 s,@gamedir@,$gamedir,;t t
16805 s,@gameuser@,$gameuser,;t t
16806 s,@c_switch_system@,$c_switch_system,;t t
16807 s,@c_switch_machine@,$c_switch_machine,;t t
16808 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
16809 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
16810 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
16811 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
16812 s,@machfile@,$machfile,;t t
16813 s,@opsysfile@,$opsysfile,;t t
16814 CEOF
16816 _ACEOF
16818 cat >>$CONFIG_STATUS <<\_ACEOF
16819 # Split the substitutions into bite-sized pieces for seds with
16820 # small command number limits, like on Digital OSF/1 and HP-UX.
16821 ac_max_sed_lines=48
16822 ac_sed_frag=1 # Number of current file.
16823 ac_beg=1 # First line for current file.
16824 ac_end=$ac_max_sed_lines # Line after last line for current file.
16825 ac_more_lines=:
16826 ac_sed_cmds=
16827 while $ac_more_lines; do
16828 if test $ac_beg -gt 1; then
16829 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16830 else
16831 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16833 if test ! -s $tmp/subs.frag; then
16834 ac_more_lines=false
16835 else
16836 # The purpose of the label and of the branching condition is to
16837 # speed up the sed processing (if there are no `@' at all, there
16838 # is no need to browse any of the substitutions).
16839 # These are the two extra sed commands mentioned above.
16840 (echo ':t
16841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16842 if test -z "$ac_sed_cmds"; then
16843 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16844 else
16845 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16847 ac_sed_frag=`expr $ac_sed_frag + 1`
16848 ac_beg=$ac_end
16849 ac_end=`expr $ac_end + $ac_max_sed_lines`
16851 done
16852 if test -z "$ac_sed_cmds"; then
16853 ac_sed_cmds=cat
16855 fi # test -n "$CONFIG_FILES"
16857 _ACEOF
16858 cat >>$CONFIG_STATUS <<\_ACEOF
16859 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16860 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16861 case $ac_file in
16862 - | *:- | *:-:* ) # input from stdin
16863 cat >$tmp/stdin
16864 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16865 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16866 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16867 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16868 * ) ac_file_in=$ac_file.in ;;
16869 esac
16871 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16872 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16873 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16874 X"$ac_file" : 'X\(//\)[^/]' \| \
16875 X"$ac_file" : 'X\(//\)$' \| \
16876 X"$ac_file" : 'X\(/\)' \| \
16877 . : '\(.\)' 2>/dev/null ||
16878 echo X"$ac_file" |
16879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16881 /^X\(\/\/\)$/{ s//\1/; q; }
16882 /^X\(\/\).*/{ s//\1/; q; }
16883 s/.*/./; q'`
16884 { if $as_mkdir_p; then
16885 mkdir -p "$ac_dir"
16886 else
16887 as_dir="$ac_dir"
16888 as_dirs=
16889 while test ! -d "$as_dir"; do
16890 as_dirs="$as_dir $as_dirs"
16891 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16893 X"$as_dir" : 'X\(//\)[^/]' \| \
16894 X"$as_dir" : 'X\(//\)$' \| \
16895 X"$as_dir" : 'X\(/\)' \| \
16896 . : '\(.\)' 2>/dev/null ||
16897 echo X"$as_dir" |
16898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16900 /^X\(\/\/\)$/{ s//\1/; q; }
16901 /^X\(\/\).*/{ s//\1/; q; }
16902 s/.*/./; q'`
16903 done
16904 test ! -n "$as_dirs" || mkdir $as_dirs
16905 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16906 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16907 { (exit 1); exit 1; }; }; }
16909 ac_builddir=.
16911 if test "$ac_dir" != .; then
16912 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16913 # A "../" for each directory in $ac_dir_suffix.
16914 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16915 else
16916 ac_dir_suffix= ac_top_builddir=
16919 case $srcdir in
16920 .) # No --srcdir option. We are building in place.
16921 ac_srcdir=.
16922 if test -z "$ac_top_builddir"; then
16923 ac_top_srcdir=.
16924 else
16925 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16926 fi ;;
16927 [\\/]* | ?:[\\/]* ) # Absolute path.
16928 ac_srcdir=$srcdir$ac_dir_suffix;
16929 ac_top_srcdir=$srcdir ;;
16930 *) # Relative path.
16931 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16932 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16933 esac
16934 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16935 # absolute.
16936 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16937 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16938 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16939 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16942 case $INSTALL in
16943 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16944 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16945 esac
16947 if test x"$ac_file" != x-; then
16948 { echo "$as_me:$LINENO: creating $ac_file" >&5
16949 echo "$as_me: creating $ac_file" >&6;}
16950 rm -f "$ac_file"
16952 # Let's still pretend it is `configure' which instantiates (i.e., don't
16953 # use $as_me), people would be surprised to read:
16954 # /* config.h. Generated by config.status. */
16955 if test x"$ac_file" = x-; then
16956 configure_input=
16957 else
16958 configure_input="$ac_file. "
16960 configure_input=$configure_input"Generated from `echo $ac_file_in |
16961 sed 's,.*/,,'` by configure."
16963 # First look for the input files in the build tree, otherwise in the
16964 # src tree.
16965 ac_file_inputs=`IFS=:
16966 for f in $ac_file_in; do
16967 case $f in
16968 -) echo $tmp/stdin ;;
16969 [\\/$]*)
16970 # Absolute (can't be DOS-style, as IFS=:)
16971 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16972 echo "$as_me: error: cannot find input file: $f" >&2;}
16973 { (exit 1); exit 1; }; }
16974 echo $f;;
16975 *) # Relative
16976 if test -f "$f"; then
16977 # Build tree
16978 echo $f
16979 elif test -f "$srcdir/$f"; then
16980 # Source tree
16981 echo $srcdir/$f
16982 else
16983 # /dev/null tree
16984 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16985 echo "$as_me: error: cannot find input file: $f" >&2;}
16986 { (exit 1); exit 1; }; }
16987 fi;;
16988 esac
16989 done` || { (exit 1); exit 1; }
16990 _ACEOF
16991 cat >>$CONFIG_STATUS <<_ACEOF
16992 sed "$ac_vpsub
16993 $extrasub
16994 _ACEOF
16995 cat >>$CONFIG_STATUS <<\_ACEOF
16997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16998 s,@configure_input@,$configure_input,;t t
16999 s,@srcdir@,$ac_srcdir,;t t
17000 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17001 s,@top_srcdir@,$ac_top_srcdir,;t t
17002 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17003 s,@builddir@,$ac_builddir,;t t
17004 s,@abs_builddir@,$ac_abs_builddir,;t t
17005 s,@top_builddir@,$ac_top_builddir,;t t
17006 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17007 s,@INSTALL@,$ac_INSTALL,;t t
17008 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17009 rm -f $tmp/stdin
17010 if test x"$ac_file" != x-; then
17011 mv $tmp/out $ac_file
17012 else
17013 cat $tmp/out
17014 rm -f $tmp/out
17017 done
17018 _ACEOF
17019 cat >>$CONFIG_STATUS <<\_ACEOF
17022 # CONFIG_HEADER section.
17025 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17026 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17028 # ac_d sets the value in "#define NAME VALUE" lines.
17029 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17030 ac_dB='[ ].*$,\1#\2'
17031 ac_dC=' '
17032 ac_dD=',;t'
17033 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17034 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17035 ac_uB='$,\1#\2define\3'
17036 ac_uC=' '
17037 ac_uD=',;t'
17039 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17040 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17041 case $ac_file in
17042 - | *:- | *:-:* ) # input from stdin
17043 cat >$tmp/stdin
17044 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17045 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17046 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17047 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17048 * ) ac_file_in=$ac_file.in ;;
17049 esac
17051 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17052 echo "$as_me: creating $ac_file" >&6;}
17054 # First look for the input files in the build tree, otherwise in the
17055 # src tree.
17056 ac_file_inputs=`IFS=:
17057 for f in $ac_file_in; do
17058 case $f in
17059 -) echo $tmp/stdin ;;
17060 [\\/$]*)
17061 # Absolute (can't be DOS-style, as IFS=:)
17062 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17063 echo "$as_me: error: cannot find input file: $f" >&2;}
17064 { (exit 1); exit 1; }; }
17065 echo $f;;
17066 *) # Relative
17067 if test -f "$f"; then
17068 # Build tree
17069 echo $f
17070 elif test -f "$srcdir/$f"; then
17071 # Source tree
17072 echo $srcdir/$f
17073 else
17074 # /dev/null tree
17075 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17076 echo "$as_me: error: cannot find input file: $f" >&2;}
17077 { (exit 1); exit 1; }; }
17078 fi;;
17079 esac
17080 done` || { (exit 1); exit 1; }
17081 # Remove the trailing spaces.
17082 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17084 _ACEOF
17086 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17087 # `conftest.undefs', that substitutes the proper values into
17088 # config.h.in to produce config.h. The first handles `#define'
17089 # templates, and the second `#undef' templates.
17090 # And first: Protect against being on the right side of a sed subst in
17091 # config.status. Protect against being in an unquoted here document
17092 # in config.status.
17093 rm -f conftest.defines conftest.undefs
17094 # Using a here document instead of a string reduces the quoting nightmare.
17095 # Putting comments in sed scripts is not portable.
17097 # `end' is used to avoid that the second main sed command (meant for
17098 # 0-ary CPP macros) applies to n-ary macro definitions.
17099 # See the Autoconf documentation for `clear'.
17100 cat >confdef2sed.sed <<\_ACEOF
17101 s/[\\&,]/\\&/g
17102 s,[\\$`],\\&,g
17103 t clear
17104 : clear
17105 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17106 t end
17107 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17108 : end
17109 _ACEOF
17110 # If some macros were called several times there might be several times
17111 # the same #defines, which is useless. Nevertheless, we may not want to
17112 # sort them, since we want the *last* AC-DEFINE to be honored.
17113 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17114 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17115 rm -f confdef2sed.sed
17117 # This sed command replaces #undef with comments. This is necessary, for
17118 # example, in the case of _POSIX_SOURCE, which is predefined and required
17119 # on some systems where configure will not decide to define it.
17120 cat >>conftest.undefs <<\_ACEOF
17121 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17122 _ACEOF
17124 # Break up conftest.defines because some shells have a limit on the size
17125 # of here documents, and old seds have small limits too (100 cmds).
17126 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17127 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17128 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17129 echo ' :' >>$CONFIG_STATUS
17130 rm -f conftest.tail
17131 while grep . conftest.defines >/dev/null
17133 # Write a limited-size here document to $tmp/defines.sed.
17134 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17135 # Speed up: don't consider the non `#define' lines.
17136 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17137 # Work around the forget-to-reset-the-flag bug.
17138 echo 't clr' >>$CONFIG_STATUS
17139 echo ': clr' >>$CONFIG_STATUS
17140 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17141 echo 'CEOF
17142 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17143 rm -f $tmp/in
17144 mv $tmp/out $tmp/in
17145 ' >>$CONFIG_STATUS
17146 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17147 rm -f conftest.defines
17148 mv conftest.tail conftest.defines
17149 done
17150 rm -f conftest.defines
17151 echo ' fi # egrep' >>$CONFIG_STATUS
17152 echo >>$CONFIG_STATUS
17154 # Break up conftest.undefs because some shells have a limit on the size
17155 # of here documents, and old seds have small limits too (100 cmds).
17156 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17157 rm -f conftest.tail
17158 while grep . conftest.undefs >/dev/null
17160 # Write a limited-size here document to $tmp/undefs.sed.
17161 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17162 # Speed up: don't consider the non `#undef'
17163 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17164 # Work around the forget-to-reset-the-flag bug.
17165 echo 't clr' >>$CONFIG_STATUS
17166 echo ': clr' >>$CONFIG_STATUS
17167 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17168 echo 'CEOF
17169 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17170 rm -f $tmp/in
17171 mv $tmp/out $tmp/in
17172 ' >>$CONFIG_STATUS
17173 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17174 rm -f conftest.undefs
17175 mv conftest.tail conftest.undefs
17176 done
17177 rm -f conftest.undefs
17179 cat >>$CONFIG_STATUS <<\_ACEOF
17180 # Let's still pretend it is `configure' which instantiates (i.e., don't
17181 # use $as_me), people would be surprised to read:
17182 # /* config.h. Generated by config.status. */
17183 if test x"$ac_file" = x-; then
17184 echo "/* Generated by configure. */" >$tmp/config.h
17185 else
17186 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17188 cat $tmp/in >>$tmp/config.h
17189 rm -f $tmp/in
17190 if test x"$ac_file" != x-; then
17191 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17192 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17193 echo "$as_me: $ac_file is unchanged" >&6;}
17194 else
17195 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17196 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17197 X"$ac_file" : 'X\(//\)[^/]' \| \
17198 X"$ac_file" : 'X\(//\)$' \| \
17199 X"$ac_file" : 'X\(/\)' \| \
17200 . : '\(.\)' 2>/dev/null ||
17201 echo X"$ac_file" |
17202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17204 /^X\(\/\/\)$/{ s//\1/; q; }
17205 /^X\(\/\).*/{ s//\1/; q; }
17206 s/.*/./; q'`
17207 { if $as_mkdir_p; then
17208 mkdir -p "$ac_dir"
17209 else
17210 as_dir="$ac_dir"
17211 as_dirs=
17212 while test ! -d "$as_dir"; do
17213 as_dirs="$as_dir $as_dirs"
17214 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17216 X"$as_dir" : 'X\(//\)[^/]' \| \
17217 X"$as_dir" : 'X\(//\)$' \| \
17218 X"$as_dir" : 'X\(/\)' \| \
17219 . : '\(.\)' 2>/dev/null ||
17220 echo X"$as_dir" |
17221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17223 /^X\(\/\/\)$/{ s//\1/; q; }
17224 /^X\(\/\).*/{ s//\1/; q; }
17225 s/.*/./; q'`
17226 done
17227 test ! -n "$as_dirs" || mkdir $as_dirs
17228 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17229 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17230 { (exit 1); exit 1; }; }; }
17232 rm -f $ac_file
17233 mv $tmp/config.h $ac_file
17235 else
17236 cat $tmp/config.h
17237 rm -f $tmp/config.h
17239 done
17240 _ACEOF
17241 cat >>$CONFIG_STATUS <<\_ACEOF
17244 # CONFIG_COMMANDS section.
17246 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17247 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17248 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17249 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17250 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17251 X"$ac_dest" : 'X\(//\)[^/]' \| \
17252 X"$ac_dest" : 'X\(//\)$' \| \
17253 X"$ac_dest" : 'X\(/\)' \| \
17254 . : '\(.\)' 2>/dev/null ||
17255 echo X"$ac_dest" |
17256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17258 /^X\(\/\/\)$/{ s//\1/; q; }
17259 /^X\(\/\).*/{ s//\1/; q; }
17260 s/.*/./; q'`
17261 ac_builddir=.
17263 if test "$ac_dir" != .; then
17264 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17265 # A "../" for each directory in $ac_dir_suffix.
17266 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17267 else
17268 ac_dir_suffix= ac_top_builddir=
17271 case $srcdir in
17272 .) # No --srcdir option. We are building in place.
17273 ac_srcdir=.
17274 if test -z "$ac_top_builddir"; then
17275 ac_top_srcdir=.
17276 else
17277 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17278 fi ;;
17279 [\\/]* | ?:[\\/]* ) # Absolute path.
17280 ac_srcdir=$srcdir$ac_dir_suffix;
17281 ac_top_srcdir=$srcdir ;;
17282 *) # Relative path.
17283 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17284 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17285 esac
17286 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17287 # absolute.
17288 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17289 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17290 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17291 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17294 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17295 echo "$as_me: executing $ac_dest commands" >&6;}
17296 case $ac_dest in
17297 default )
17299 ### Make the necessary directories, if they don't exist.
17300 for dir in etc lisp ; do
17301 test -d ${dir} || mkdir ${dir}
17302 done
17304 # Build src/Makefile from ${srcdir}/src/Makefile.c
17305 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
17306 # This must be done after src/config.h is built, since we rely on that file.
17308 # Now get this: Some word that is part of the ${srcdir} directory name
17309 # or the ${configuration} value might, just might, happen to be an
17310 # identifier like `sun4' or `i386' or something, and be predefined by
17311 # the C preprocessor to some helpful value like 1, or maybe the empty
17312 # string. Needless to say consequent macro substitutions are less
17313 # than conducive to the makefile finding the correct directory.
17314 undefs="`echo $top_srcdir $configuration $canonical |
17315 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
17316 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
17319 echo creating src/epaths.h
17320 ${MAKE-make} epaths-force
17322 # As of 2000-11-19, newest development versions of GNU cpp preprocess
17323 # `..' to `. .' unless invoked with -traditional
17325 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
17326 CPPFLAGS="$CPPFLAGS -traditional"
17329 echo creating lib-src/Makefile
17330 ( cd lib-src
17331 rm -f junk.c junk1.c junk2.c
17332 sed -e '/start of cpp stuff/q' \
17333 < Makefile.c > junk1.c
17334 sed -e '1,/start of cpp stuff/d'\
17335 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17336 < Makefile.c > junk.c
17337 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
17338 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17339 cat junk1.c junk2.c > Makefile.new
17340 rm -f junk.c junk1.c junk2.c
17341 chmod 444 Makefile.new
17342 mv -f Makefile.new Makefile
17345 echo creating src/Makefile
17346 ( cd src
17347 rm -f junk.c junk1.c junk2.c
17348 sed -e '/start of cpp stuff/q' \
17349 < Makefile.c > junk1.c
17350 sed -e '1,/start of cpp stuff/d'\
17351 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17352 < Makefile.c > junk.c
17353 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
17354 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17355 cat junk1.c junk2.c > Makefile.new
17356 rm -f junk.c junk1.c junk2.c
17357 chmod 444 Makefile.new
17358 mv -f Makefile.new Makefile
17361 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
17362 echo creating src/.gdbinit
17363 echo source $srcdir/src/.gdbinit > src/.gdbinit
17366 # This is how we know whether to re-run configure in certain cases.
17367 touch src/config.stamp
17370 esac
17371 done
17372 _ACEOF
17374 cat >>$CONFIG_STATUS <<\_ACEOF
17376 { (exit 0); exit 0; }
17377 _ACEOF
17378 chmod +x $CONFIG_STATUS
17379 ac_clean_files=$ac_clean_files_save
17382 # configure is writing to config.log, and then calls config.status.
17383 # config.status does its own redirection, appending to config.log.
17384 # Unfortunately, on DOS this fails, as config.log is still kept open
17385 # by configure, so config.status won't be able to write to it; its
17386 # output is simply discarded. So we exec the FD to /dev/null,
17387 # effectively closing config.log, so it can be properly (re)opened and
17388 # appended to by config.status. When coming back to configure, we
17389 # need to make the FD available again.
17390 if test "$no_create" != yes; then
17391 ac_cs_success=:
17392 exec 5>/dev/null
17393 $SHELL $CONFIG_STATUS || ac_cs_success=false
17394 exec 5>>config.log
17395 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17396 # would make configure fail if this is the last instruction.
17397 $ac_cs_success || { (exit 1); exit 1; }