]> code.delx.au - gnu-emacs/blob - configure
Regenerate
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
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
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/lisp.h"
274 ac_config_libobj_dir=src
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
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
773
774 #
775 # Report the --help message.
776 #
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.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
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.
787
788 Defaults for the options are specified in brackets.
789
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 \`..']
800
801 _ACEOF
802
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]
809
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'.
814
815 For better control, use the options below.
816
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
831
832 cat <<\_ACEOF
833
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
838
839 X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
842
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
847 fi
848
849 if test -n "$ac_init_help"; then
850
851 cat <<\_ACEOF
852
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --enable-carbon-app[=DIR] [DIR=/Application]
857 specify install directory for Emacs.app on Mac OS X
858 --enable-asserts compile code with asserts enabled
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --enable-locallisppath=PATH
862 directories Emacs should search for lisp files
863 specific to this site
864 --disable-largefile omit support for large files
865
866 Optional Packages:
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --without-gcc don't use GCC to compile Emacs if GCC is found
870 --without-pop don't support POP mail retrieval with movemail
871 --with-kerberos support Kerberos-authenticated POP
872 --with-kerberos5 support Kerberos version 5 authenticated POP
873 --with-hesiod support Hesiod to get the POP server host
874 --without-sound don't compile with sound support
875 --with-x-toolkit=KIT use an X toolkit
876 (KIT = yes/lucid/athena/motif/gtk/no)
877 --with-xpm use -lXpm for displaying XPM images
878 --with-jpeg use -ljpeg for displaying JPEG images
879 --with-tiff use -ltiff for displaying TIFF images
880 --with-gif use -lungif for displaying GIF images
881 --with-png use -lpng for displaying PNG images
882 --with-gtk use GTK (same as --with-x-toolkit=gtk)
883 --with-pkg-config-prog Path to pkg-config to use for finding GTK
884 --without-toolkit-scroll-bars
885 don't use Motif or Xaw3d scroll bars
886 --without-xim don't use X11 XIM
887 --without-carbon don't use Carbon GUI on Mac OS X
888 --with-x use the X Window System
889
890 Some influential environment variables:
891 CC C compiler command
892 CFLAGS C compiler flags
893 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
894 nonstandard directory <lib dir>
895 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
896 headers in a nonstandard directory <include dir>
897 CPP C preprocessor
898
899 Use these variables to override the choices made by `configure' or to help
900 it to find libraries and programs with nonstandard names/locations.
901
902 _ACEOF
903 fi
904
905 if test "$ac_init_help" = "recursive"; then
906 # If there are subdirs, report their specific --help.
907 ac_popdir=`pwd`
908 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
909 test -d $ac_dir || continue
910 ac_builddir=.
911
912 if test "$ac_dir" != .; then
913 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
914 # A "../" for each directory in $ac_dir_suffix.
915 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
916 else
917 ac_dir_suffix= ac_top_builddir=
918 fi
919
920 case $srcdir in
921 .) # No --srcdir option. We are building in place.
922 ac_srcdir=.
923 if test -z "$ac_top_builddir"; then
924 ac_top_srcdir=.
925 else
926 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
927 fi ;;
928 [\\/]* | ?:[\\/]* ) # Absolute path.
929 ac_srcdir=$srcdir$ac_dir_suffix;
930 ac_top_srcdir=$srcdir ;;
931 *) # Relative path.
932 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
933 ac_top_srcdir=$ac_top_builddir$srcdir ;;
934 esac
935 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
936 # absolute.
937 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
938 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
939 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
940 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
941
942 cd $ac_dir
943 # Check for guested configure; otherwise get Cygnus style configure.
944 if test -f $ac_srcdir/configure.gnu; then
945 echo
946 $SHELL $ac_srcdir/configure.gnu --help=recursive
947 elif test -f $ac_srcdir/configure; then
948 echo
949 $SHELL $ac_srcdir/configure --help=recursive
950 elif test -f $ac_srcdir/configure.ac ||
951 test -f $ac_srcdir/configure.in; then
952 echo
953 $ac_configure --help
954 else
955 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
956 fi
957 cd $ac_popdir
958 done
959 fi
960
961 test -n "$ac_init_help" && exit 0
962 if $ac_init_version; then
963 cat <<\_ACEOF
964
965 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
966 Free Software Foundation, Inc.
967 This configure script is free software; the Free Software Foundation
968 gives unlimited permission to copy, distribute and modify it.
969 _ACEOF
970 exit 0
971 fi
972 exec 5>config.log
973 cat >&5 <<_ACEOF
974 This file contains any messages produced by compilers while
975 running configure, to aid debugging if configure makes a mistake.
976
977 It was created by $as_me, which was
978 generated by GNU Autoconf 2.57. Invocation command line was
979
980 $ $0 $@
981
982 _ACEOF
983 {
984 cat <<_ASUNAME
985 ## --------- ##
986 ## Platform. ##
987 ## --------- ##
988
989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
994
995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
997
998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1005
1006 _ASUNAME
1007
1008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1009 for as_dir in $PATH
1010 do
1011 IFS=$as_save_IFS
1012 test -z "$as_dir" && as_dir=.
1013 echo "PATH: $as_dir"
1014 done
1015
1016 } >&5
1017
1018 cat >&5 <<_ACEOF
1019
1020
1021 ## ----------- ##
1022 ## Core tests. ##
1023 ## ----------- ##
1024
1025 _ACEOF
1026
1027
1028 # Keep a trace of the command line.
1029 # Strip out --no-create and --no-recursion so they do not pile up.
1030 # Strip out --silent because we don't want to record it for future runs.
1031 # Also quote any args containing shell meta-characters.
1032 # Make two passes to allow for proper duplicate-argument suppression.
1033 ac_configure_args=
1034 ac_configure_args0=
1035 ac_configure_args1=
1036 ac_sep=
1037 ac_must_keep_next=false
1038 for ac_pass in 1 2
1039 do
1040 for ac_arg
1041 do
1042 case $ac_arg in
1043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1046 continue ;;
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049 esac
1050 case $ac_pass in
1051 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1052 2)
1053 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054 if test $ac_must_keep_next = true; then
1055 ac_must_keep_next=false # Got value, back to normal.
1056 else
1057 case $ac_arg in
1058 *=* | --config-cache | -C | -disable-* | --disable-* \
1059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061 | -with-* | --with-* | -without-* | --without-* | --x)
1062 case "$ac_configure_args0 " in
1063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1064 esac
1065 ;;
1066 -* ) ac_must_keep_next=true ;;
1067 esac
1068 fi
1069 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 # Get rid of the leading space.
1071 ac_sep=" "
1072 ;;
1073 esac
1074 done
1075 done
1076 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1078
1079 # When interrupted or exit'd, cleanup temporary files, and complete
1080 # config.log. We remove comments because anyway the quotes in there
1081 # would cause problems or look ugly.
1082 # WARNING: Be sure not to use single quotes in there, as some shells,
1083 # such as our DU 5.0 friend, will then `close' the trap.
1084 trap 'exit_status=$?
1085 # Save into config.log some information that might help in debugging.
1086 {
1087 echo
1088
1089 cat <<\_ASBOX
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1093 _ASBOX
1094 echo
1095 # The following way of writing the cache mishandles newlines in values,
1096 {
1097 (set) 2>&1 |
1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099 *ac_space=\ *)
1100 sed -n \
1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1103 ;;
1104 *)
1105 sed -n \
1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107 ;;
1108 esac;
1109 }
1110 echo
1111
1112 cat <<\_ASBOX
1113 ## ----------------- ##
1114 ## Output variables. ##
1115 ## ----------------- ##
1116 _ASBOX
1117 echo
1118 for ac_var in $ac_subst_vars
1119 do
1120 eval ac_val=$`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
1122 done | sort
1123 echo
1124
1125 if test -n "$ac_subst_files"; then
1126 cat <<\_ASBOX
1127 ## ------------- ##
1128 ## Output files. ##
1129 ## ------------- ##
1130 _ASBOX
1131 echo
1132 for ac_var in $ac_subst_files
1133 do
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1136 done | sort
1137 echo
1138 fi
1139
1140 if test -s confdefs.h; then
1141 cat <<\_ASBOX
1142 ## ----------- ##
1143 ## confdefs.h. ##
1144 ## ----------- ##
1145 _ASBOX
1146 echo
1147 sed "/^$/d" confdefs.h | sort
1148 echo
1149 fi
1150 test "$ac_signal" != 0 &&
1151 echo "$as_me: caught signal $ac_signal"
1152 echo "$as_me: exit $exit_status"
1153 } >&5
1154 rm -f core core.* *.core &&
1155 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1156 exit $exit_status
1157 ' 0
1158 for ac_signal in 1 2 13 15; do
1159 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1160 done
1161 ac_signal=0
1162
1163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1164 rm -rf conftest* confdefs.h
1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166 echo >confdefs.h
1167
1168 # Predefined preprocessor variables.
1169
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_NAME "$PACKAGE_NAME"
1172 _ACEOF
1173
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_STRING "$PACKAGE_STRING"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1192 _ACEOF
1193
1194
1195 # Let the site file select an alternate cache file if it wants to.
1196 # Prefer explicitly selected file to automatically selected ones.
1197 if test -z "$CONFIG_SITE"; then
1198 if test "x$prefix" != xNONE; then
1199 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1200 else
1201 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1202 fi
1203 fi
1204 for ac_site_file in $CONFIG_SITE; do
1205 if test -r "$ac_site_file"; then
1206 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207 echo "$as_me: loading site script $ac_site_file" >&6;}
1208 sed 's/^/| /' "$ac_site_file" >&5
1209 . "$ac_site_file"
1210 fi
1211 done
1212
1213 if test -r "$cache_file"; then
1214 # Some versions of bash will fail to source /dev/null (special
1215 # files actually), so we avoid doing that.
1216 if test -f "$cache_file"; then
1217 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218 echo "$as_me: loading cache $cache_file" >&6;}
1219 case $cache_file in
1220 [\\/]* | ?:[\\/]* ) . $cache_file;;
1221 *) . ./$cache_file;;
1222 esac
1223 fi
1224 else
1225 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226 echo "$as_me: creating cache $cache_file" >&6;}
1227 >$cache_file
1228 fi
1229
1230 # Check that the precious variables saved in the cache have kept the same
1231 # value.
1232 ac_cache_corrupted=false
1233 for ac_var in `(set) 2>&1 |
1234 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236 eval ac_new_set=\$ac_env_${ac_var}_set
1237 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238 eval ac_new_val="\$ac_env_${ac_var}_value"
1239 case $ac_old_set,$ac_new_set in
1240 set,)
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1244 ,set)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,);;
1249 *)
1250 if test "x$ac_old_val" != "x$ac_new_val"; then
1251 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1252 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1253 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1254 echo "$as_me: former value: $ac_old_val" >&2;}
1255 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1256 echo "$as_me: current value: $ac_new_val" >&2;}
1257 ac_cache_corrupted=:
1258 fi;;
1259 esac
1260 # Pass precious variables to config.status.
1261 if test "$ac_new_set" = set; then
1262 case $ac_new_val in
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 *) ac_arg=$ac_var=$ac_new_val ;;
1266 esac
1267 case " $ac_configure_args " in
1268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1269 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1270 esac
1271 fi
1272 done
1273 if $ac_cache_corrupted; then
1274 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1277 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278 { (exit 1); exit 1; }; }
1279 fi
1280
1281 ac_ext=c
1282 ac_cpp='$CPP $CPPFLAGS'
1283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1306
1307
1308 test "$program_prefix" != NONE &&
1309 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1310 # Use a double $ so make ignores it.
1311 test "$program_suffix" != NONE &&
1312 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1313 # Double any \ or $. echo might interpret backslashes.
1314 # By default was `s,x,x', remove it if useless.
1315 cat <<\_ACEOF >conftest.sed
1316 s/[\\$]/&&/g;s/;s,x,x,$//
1317 _ACEOF
1318 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1319 rm conftest.sed
1320
1321
1322 lispdir='${datadir}/emacs/${version}/lisp'
1323 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1324 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1325 lisppath='${locallisppath}:${lispdir}'
1326 etcdir='${datadir}/emacs/${version}/etc'
1327 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1328 docdir='${datadir}/emacs/${version}/etc'
1329 gamedir='${localstatedir}/games/emacs'
1330
1331 gameuser=games
1332
1333
1334 # Check whether --with-gcc or --without-gcc was given.
1335 if test "${with_gcc+set}" = set; then
1336 withval="$with_gcc"
1337
1338 fi;
1339
1340 # Check whether --with-pop or --without-pop was given.
1341 if test "${with_pop+set}" = set; then
1342 withval="$with_pop"
1343 if test "$withval" = yes; then
1344 cat >>confdefs.h <<\_ACEOF
1345 #define MAIL_USE_POP 1
1346 _ACEOF
1347
1348 else :
1349 fi
1350 else
1351 cat >>confdefs.h <<\_ACEOF
1352 #define MAIL_USE_POP 1
1353 _ACEOF
1354
1355 fi;
1356
1357
1358 # Check whether --with-kerberos or --without-kerberos was given.
1359 if test "${with_kerberos+set}" = set; then
1360 withval="$with_kerberos"
1361 cat >>confdefs.h <<\_ACEOF
1362 #define KERBEROS 1
1363 _ACEOF
1364
1365 fi;
1366
1367
1368 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1369 if test "${with_kerberos5+set}" = set; then
1370 withval="$with_kerberos5"
1371 if test "${with_kerberos5+set}" = set; then
1372 if test "${with_kerberos+set}" != set; then
1373 with_kerberos=yes
1374 cat >>confdefs.h <<\_ACEOF
1375 #define KERBEROS 1
1376 _ACEOF
1377
1378 fi
1379 fi
1380
1381 cat >>confdefs.h <<\_ACEOF
1382 #define KERBEROS5 1
1383 _ACEOF
1384
1385 fi;
1386
1387 # Check whether --with-hesiod or --without-hesiod was given.
1388 if test "${with_hesiod+set}" = set; then
1389 withval="$with_hesiod"
1390
1391 cat >>confdefs.h <<\_ACEOF
1392 #define HESIOD 1
1393 _ACEOF
1394
1395 fi;
1396
1397
1398 # Check whether --with-sound or --without-sound was given.
1399 if test "${with_sound+set}" = set; then
1400 withval="$with_sound"
1401
1402 fi;
1403
1404
1405 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1406 if test "${with_x_toolkit+set}" = set; then
1407 withval="$with_x_toolkit"
1408 case "${withval}" in
1409 y | ye | yes ) val=athena ;;
1410 n | no ) val=no ;;
1411 l | lu | luc | luci | lucid ) val=lucid ;;
1412 a | at | ath | athe | athen | athena ) val=athena ;;
1413 m | mo | mot | moti | motif ) val=motif ;;
1414 g | gt | gtk ) val=gtk ;;
1415 * )
1416 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1417 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1418 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1419 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1420 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1421 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1422 { (exit 1); exit 1; }; }
1423 ;;
1424 esac
1425 with_x_toolkit=$val
1426
1427 fi;
1428
1429 # Check whether --with-xpm or --without-xpm was given.
1430 if test "${with_xpm+set}" = set; then
1431 withval="$with_xpm"
1432
1433 fi;
1434
1435 # Check whether --with-jpeg or --without-jpeg was given.
1436 if test "${with_jpeg+set}" = set; then
1437 withval="$with_jpeg"
1438
1439 fi;
1440
1441 # Check whether --with-tiff or --without-tiff was given.
1442 if test "${with_tiff+set}" = set; then
1443 withval="$with_tiff"
1444
1445 fi;
1446
1447 # Check whether --with-gif or --without-gif was given.
1448 if test "${with_gif+set}" = set; then
1449 withval="$with_gif"
1450
1451 fi;
1452
1453 # Check whether --with-png or --without-png was given.
1454 if test "${with_png+set}" = set; then
1455 withval="$with_png"
1456
1457 fi;
1458
1459 # Check whether --with-gtk or --without-gtk was given.
1460 if test "${with_gtk+set}" = set; then
1461 withval="$with_gtk"
1462
1463 fi;
1464
1465 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1466 if test "${with_pkg_config_prog+set}" = set; then
1467 withval="$with_pkg_config_prog"
1468
1469 fi;
1470
1471 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1472 if test "${with_toolkit_scroll_bars+set}" = set; then
1473 withval="$with_toolkit_scroll_bars"
1474
1475 fi;
1476
1477 # Check whether --with-xim or --without-xim was given.
1478 if test "${with_xim+set}" = set; then
1479 withval="$with_xim"
1480
1481 fi;
1482
1483 # Check whether --with-carbon or --without-carbon was given.
1484 if test "${with_carbon+set}" = set; then
1485 withval="$with_carbon"
1486
1487 fi;
1488 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1489 if test "${enable_carbon_app+set}" = set; then
1490 enableval="$enable_carbon_app"
1491 carbon_appdir_x=${enableval}
1492 fi;
1493
1494 # Check whether --enable-asserts or --disable-asserts was given.
1495 if test "${enable_asserts+set}" = set; then
1496 enableval="$enable_asserts"
1497 USE_XASSERTS=$enableval
1498 else
1499 USE_XASSERTS=no
1500 fi;
1501
1502 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1503 if test "${enable_maintainer_mode+set}" = set; then
1504 enableval="$enable_maintainer_mode"
1505 USE_MAINTAINER_MODE=$enableval
1506 else
1507 USE_MAINTAINER_MODE=no
1508 fi;
1509 if test $USE_MAINTAINER_MODE = yes; then
1510 MAINT=
1511 else
1512 MAINT=#
1513 fi
1514
1515
1516 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1517 if test "${enable_locallisppath+set}" = set; then
1518 enableval="$enable_locallisppath"
1519 if test "${enableval}" = "no"; then
1520 locallisppath=
1521 elif test "${enableval}" != "yes"; then
1522 locallisppath=${enableval}
1523 fi
1524 fi;
1525
1526 #### Make srcdir absolute, if it isn't already. It's important to
1527 #### avoid running the path through pwd unnecessarily, since pwd can
1528 #### give you automounter prefixes, which can go away. We do all this
1529 #### so Emacs can find its files when run uninstalled.
1530 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1531 unset CDPATH
1532 case "${srcdir}" in
1533 /* ) ;;
1534 . )
1535 ## We may be able to use the $PWD environment variable to make this
1536 ## absolute. But sometimes PWD is inaccurate.
1537 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1538 ## but that tested only for a well-formed and valid PWD,
1539 ## it did not object when PWD was well-formed and valid but just wrong.
1540 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1541 then
1542 srcdir="$PWD"
1543 else
1544 srcdir="`(cd ${srcdir}; pwd)`"
1545 fi
1546 ;;
1547 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1548 esac
1549
1550 #### Check if the source directory already has a configured system in it.
1551 if test `pwd` != `(cd ${srcdir} && pwd)` \
1552 && test -f "${srcdir}/src/config.h" ; then
1553 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1554 as a build directory right now; it has been configured in its own
1555 right. To configure in another directory as well, you MUST
1556 use GNU make. If you do not have GNU make, then you must
1557 now do \`make distclean' in ${srcdir},
1558 and then run $0 again." >&5
1559 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1560 as a build directory right now; it has been configured in its own
1561 right. To configure in another directory as well, you MUST
1562 use GNU make. If you do not have GNU make, then you must
1563 now do \`make distclean' in ${srcdir},
1564 and then run $0 again." >&2;}
1565 fi
1566
1567 #### Given the configuration name, set machfile and opsysfile to the
1568 #### names of the m/*.h and s/*.h files we should use.
1569
1570 ### Canonicalize the configuration name.
1571
1572 ac_aux_dir=
1573 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1574 if test -f $ac_dir/install-sh; then
1575 ac_aux_dir=$ac_dir
1576 ac_install_sh="$ac_aux_dir/install-sh -c"
1577 break
1578 elif test -f $ac_dir/install.sh; then
1579 ac_aux_dir=$ac_dir
1580 ac_install_sh="$ac_aux_dir/install.sh -c"
1581 break
1582 elif test -f $ac_dir/shtool; then
1583 ac_aux_dir=$ac_dir
1584 ac_install_sh="$ac_aux_dir/shtool install -c"
1585 break
1586 fi
1587 done
1588 if test -z "$ac_aux_dir"; then
1589 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1590 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1591 { (exit 1); exit 1; }; }
1592 fi
1593 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1594 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1595 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1596
1597 # Make sure we can run config.sub.
1598 $ac_config_sub sun4 >/dev/null 2>&1 ||
1599 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1600 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1601 { (exit 1); exit 1; }; }
1602
1603 echo "$as_me:$LINENO: checking build system type" >&5
1604 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1605 if test "${ac_cv_build+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608 ac_cv_build_alias=$build_alias
1609 test -z "$ac_cv_build_alias" &&
1610 ac_cv_build_alias=`$ac_config_guess`
1611 test -z "$ac_cv_build_alias" &&
1612 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1613 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1614 { (exit 1); exit 1; }; }
1615 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1616 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1617 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1618 { (exit 1); exit 1; }; }
1619
1620 fi
1621 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1622 echo "${ECHO_T}$ac_cv_build" >&6
1623 build=$ac_cv_build
1624 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1625 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1626 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1627
1628
1629 echo "$as_me:$LINENO: checking host system type" >&5
1630 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1631 if test "${ac_cv_host+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1633 else
1634 ac_cv_host_alias=$host_alias
1635 test -z "$ac_cv_host_alias" &&
1636 ac_cv_host_alias=$ac_cv_build_alias
1637 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1638 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1639 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1640 { (exit 1); exit 1; }; }
1641
1642 fi
1643 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1644 echo "${ECHO_T}$ac_cv_host" >&6
1645 host=$ac_cv_host
1646 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649
1650
1651 canonical=$host
1652 configuration=${host_alias-$host}
1653
1654
1655
1656 ### If you add support for a new configuration, add code to this
1657 ### switch statement to recognize your configuration name and select
1658 ### the appropriate operating system and machine description files.
1659
1660 ### You would hope that you could choose an m/*.h file pretty much
1661 ### based on the machine portion of the configuration name, and an s-
1662 ### file based on the operating system portion. However, it turns out
1663 ### that each m/*.h file is pretty manufacturer-specific - for
1664 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1665 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1666 ### machines. So we basically have to have a special case for each
1667 ### configuration name.
1668 ###
1669 ### As far as handling version numbers on operating systems is
1670 ### concerned, make sure things will fail in a fixable way. If
1671 ### /etc/MACHINES doesn't say anything about version numbers, be
1672 ### prepared to handle anything reasonably. If version numbers
1673 ### matter, be sure /etc/MACHINES says something about it.
1674 ###
1675 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1676 ### "System V Release 4"; he writes, "The old convention encouraged
1677 ### confusion between `system' and `release' levels'."
1678
1679 machine='' opsys='' unported=no
1680 case "${canonical}" in
1681
1682 ## FreeBSD ports
1683 *-*-freebsd* )
1684 opsys=freebsd
1685 case "${canonical}" in
1686 alpha*-*-freebsd*) machine=alpha ;;
1687 i[3456]86-*-freebsd*) machine=intel386 ;;
1688 esac
1689 ;;
1690
1691 ## NetBSD ports
1692 *-*-netbsd* )
1693 opsys=netbsd
1694 if test -f /usr/lib/crti.o; then
1695
1696 cat >>confdefs.h <<\_ACEOF
1697 #define HAVE_CRTIN
1698 _ACEOF
1699
1700 fi
1701
1702 case "${canonical}" in
1703 alpha*-*-netbsd*) machine=alpha ;;
1704 i[3456]86-*-netbsd*) machine=intel386 ;;
1705 m68k-*-netbsd*)
1706 # This is somewhat bogus.
1707 machine=hp9000s300 ;;
1708 powerpc-apple-netbsd*) machine=macppc ;;
1709 mips-*-netbsd*) machine=pmax ;;
1710 mipsel-*-netbsd*) machine=pmax ;;
1711 mipseb-*-netbsd*) machine=pmax ;;
1712 ns32k-*-netbsd*) machine=ns32000 ;;
1713 powerpc-*-netbsd*) machine=macppc ;;
1714 sparc*-*-netbsd*) machine=sparc ;;
1715 vax-*-netbsd*) machine=vax ;;
1716 arm-*-netbsd*) machine=arm ;;
1717 esac
1718 ;;
1719
1720 ## OpenBSD ports
1721 *-*-openbsd* )
1722 opsys=openbsd
1723 case "${canonical}" in
1724 alpha*-*-openbsd*) machine=alpha ;;
1725 i386-*-openbsd*) machine=intel386 ;;
1726 m68k-*-openbsd*) machine=hp9000s300 ;;
1727 mipsel-*-openbsd*) machine=pmax ;;
1728 ns32k-*-openbsd*) machine=ns32000 ;;
1729 sparc-*-openbsd*) machine=sparc ;;
1730 vax-*-openbsd*) machine=vax ;;
1731 esac
1732 ;;
1733
1734 ## Acorn RISCiX:
1735 arm-acorn-riscix1.1* )
1736 machine=acorn opsys=riscix1-1
1737 ;;
1738 arm-acorn-riscix1.2* | arm-acorn-riscix )
1739 ## This name is riscix12 instead of riscix1.2
1740 ## to avoid a file name conflict on MSDOS.
1741 machine=acorn opsys=riscix12
1742 ;;
1743
1744 ## BSDI ports
1745 *-*-bsdi* )
1746 opsys=bsdi
1747 case "${canonical}" in
1748 i[345]86-*-bsdi*) machine=intel386 ;;
1749 sparc-*-bsdi*) machine=sparc ;;
1750 powerpc-*-bsdi*) machine=macppc ;;
1751 esac
1752 case "${canonical}" in
1753 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1754 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1755 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1756 *-*-bsdi3* ) opsys=bsdos3 ;;
1757 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1758 esac
1759 ;;
1760
1761 ## Alliant machines
1762 ## Strictly speaking, we need the version of the alliant operating
1763 ## system to choose the right machine file, but currently the
1764 ## configuration name doesn't tell us enough to choose the right
1765 ## one; we need to give alliants their own operating system name to
1766 ## do this right. When someone cares, they can help us.
1767 fx80-alliant-* )
1768 machine=alliant4 opsys=bsd4-2
1769 ;;
1770 i860-alliant-* )
1771 machine=alliant-2800 opsys=bsd4-3
1772 ;;
1773
1774 ## Alpha (DEC) machines.
1775 alpha*-dec-osf* )
1776 machine=alpha opsys=osf1
1777 # This is needed to find X11R6.1 libraries for certain tests.
1778 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1779 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1780 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1781 # due to non-traditional preprocessing with the current compiler
1782 # defaults. OSF 4 can also have that compiler version, and there
1783 # seems always to have been a usable /usr/bin/cpp.
1784 NON_GNU_CPP=/usr/bin/cpp
1785 case "${canonical}" in
1786 alpha*-dec-osf[5-9]*)
1787 opsys=osf5-0 ;;
1788 esac
1789 ;;
1790
1791 alpha*-*-linux-gnu* )
1792 machine=alpha opsys=gnu-linux
1793 ;;
1794
1795 arm*-*-linux-gnu* )
1796 machine=arm opsys=gnu-linux
1797 ;;
1798
1799 ## Altos 3068
1800 m68*-altos-sysv* )
1801 machine=altos opsys=usg5-2
1802 ;;
1803
1804 ## Amdahl UTS
1805 580-amdahl-sysv* )
1806 machine=amdahl opsys=usg5-2-2
1807 ;;
1808
1809 ## Apollo, Domain/OS
1810 m68*-apollo-* )
1811 machine=apollo opsys=bsd4-3
1812 ;;
1813
1814 ## AT&T 3b2, 3b5, 3b15, 3b20
1815 we32k-att-sysv* )
1816 machine=att3b opsys=usg5-2-2
1817 ;;
1818
1819 ## AT&T 3b1 - The Mighty Unix PC!
1820 m68*-att-sysv* )
1821 machine=7300 opsys=usg5-2-2
1822 ;;
1823
1824 ## Bull dpx20
1825 rs6000-bull-bosx* )
1826 machine=ibmrs6000 opsys=aix3-2
1827 ;;
1828
1829 ## Bull dpx2
1830 m68*-bull-sysv3* )
1831 machine=dpx2 opsys=usg5-3
1832 ;;
1833
1834 ## Bull sps7
1835 m68*-bull-sysv2* )
1836 machine=sps7 opsys=usg5-2
1837 ;;
1838
1839 ## CCI 5/32, 6/32 -- see "Tahoe".
1840
1841 ## Celerity
1842 ## I don't know what configuration name to use for this; config.sub
1843 ## doesn't seem to know anything about it. Hey, Celerity users, get
1844 ## in touch with us!
1845 celerity-celerity-bsd* )
1846 machine=celerity opsys=bsd4-2
1847 ;;
1848
1849 ## Clipper
1850 ## What operating systems does this chip run that Emacs has been
1851 ## tested on?
1852 clipper-* )
1853 machine=clipper
1854 ## We'll use the catch-all code at the bottom to guess the
1855 ## operating system.
1856 ;;
1857
1858 ## Compaq Nonstop
1859 mips-compaq-nonstopux* )
1860 machine=nonstopux opsys=nonstopux
1861 ;;
1862
1863 ## Convex
1864 *-convex-bsd* | *-convex-convexos* )
1865 machine=convex opsys=bsd4-3
1866 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1867 NON_GNU_CPP="cc -E -P"
1868 ;;
1869
1870 ## Cubix QBx/386
1871 i[3456]86-cubix-sysv* )
1872 machine=intel386 opsys=usg5-3
1873 ;;
1874
1875 ## Cydra 5
1876 cydra*-cydrome-sysv* )
1877 machine=cydra5 opsys=usg5-3
1878 ;;
1879
1880 ## Data General AViiON Machines
1881 ## DG changed naming conventions with the release of 5.4.4.10, they
1882 ## dropped the initial 5.4 but left the intervening R. Because of the
1883 ## R this shouldn't conflict with older versions of the OS (which I
1884 ## think were named like dgux4.*). In addition, DG new AViiONs series
1885 ## uses either Motorola M88k or Intel Pentium CPUs.
1886 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1887 machine=aviion opsys=dgux4
1888 ;;
1889 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1890 ## This name is dgux5-4-3 instead of dgux5-4r3
1891 ## to avoid a file name conflict on MSDOS.
1892 machine=aviion opsys=dgux5-4-3
1893 ;;
1894 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1895 machine=aviion opsys=dgux5-4r2
1896 ;;
1897 m88k-dg-dgux* )
1898 machine=aviion opsys=dgux
1899 ;;
1900
1901 ## Data General AViiON Intel (x86) Machines
1902 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1903 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1904 i[345]86-dg-dguxR4* )
1905 machine=aviion-intel opsys=dgux4
1906 ;;
1907
1908 ## DECstations
1909 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1910 machine=pmax opsys=bsd4-2
1911 ;;
1912 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1913 machine=pmax opsys=bsd4-3
1914 ;;
1915 mips-dec-ultrix* )
1916 machine=pmax opsys=ultrix4-3
1917 ;;
1918 mips-dec-osf* )
1919 machine=pmax opsys=osf1
1920 ;;
1921 mips-dec-mach_bsd4.3* )
1922 machine=pmax opsys=mach-bsd4-3
1923 ;;
1924
1925 ## Motorola Delta machines
1926 m68k-motorola-sysv* | m68000-motorola-sysv* )
1927 machine=delta opsys=usg5-3
1928 if test -z "`type gnucc | grep 'not found'`"
1929 then
1930 if test -s /etc/167config
1931 then CC="gnucc -m68040"
1932 else CC="gnucc -m68881"
1933 fi
1934 else
1935 if test -z "`type gcc | grep 'not found'`"
1936 then CC=gcc
1937 else CC=cc
1938 fi
1939 fi
1940 ;;
1941 m88k-motorola-sysv4* )
1942 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1943 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1944 # I hope there are not other 4.0 versions for this machine
1945 # which really need usg5-4 instead.
1946 machine=delta88k opsys=usg5-4-2
1947 ;;
1948 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1949 machine=delta88k opsys=usg5-3
1950 ;;
1951
1952 ## Dual machines
1953 m68*-dual-sysv* )
1954 machine=dual opsys=usg5-2
1955 ;;
1956 m68*-dual-uniplus* )
1957 machine=dual opsys=unipl5-2
1958 ;;
1959
1960 ## Elxsi 6400
1961 elxsi-elxsi-sysv* )
1962 machine=elxsi opsys=usg5-2
1963 ;;
1964
1965 ## Encore machines
1966 ns16k-encore-bsd* )
1967 machine=ns16000 opsys=umax
1968 ;;
1969
1970 ## The GEC 63 - apparently, this port isn't really finished yet.
1971 # I'm sure we finished off the last of the machines, though. -- fx
1972
1973 ## Gould Power Node and NP1
1974 pn-gould-bsd4.2* )
1975 machine=gould opsys=bsd4-2
1976 ;;
1977 pn-gould-bsd4.3* )
1978 machine=gould opsys=bsd4-3
1979 ;;
1980 np1-gould-bsd* )
1981 machine=gould-np1 opsys=bsd4-3
1982 ;;
1983
1984 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1985 ## as far as Emacs is concerned).
1986 m88k-harris-cxux* )
1987 # Build needs to be different on 7.0 and later releases
1988 case "`uname -r`" in
1989 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1990 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1991 esac
1992 NON_GNU_CPP="/lib/cpp"
1993 ;;
1994 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1995 m68k-harris-cxux* )
1996 machine=nh3000 opsys=cxux
1997 ;;
1998 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1999 powerpc-harris-powerunix )
2000 machine=nh6000 opsys=powerunix
2001 NON_GNU_CPP="cc -Xo -E -P"
2002 ;;
2003 ## SR2001/SR2201 running HI-UX/MPP
2004 hppa1.1-hitachi-hiuxmpp* )
2005 machine=sr2k opsys=hiuxmpp
2006 ;;
2007 hppa1.1-hitachi-hiuxwe2* )
2008 machine=sr2k opsys=hiuxwe2
2009 ;;
2010 ## Honeywell XPS100
2011 xps*-honeywell-sysv* )
2012 machine=xps100 opsys=usg5-2
2013 ;;
2014
2015 ## HP 9000 series 200 or 300
2016 m68*-hp-bsd* )
2017 machine=hp9000s300 opsys=bsd4-3
2018 ;;
2019 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2020 m68*-hp-hpux* )
2021 case "`uname -r`" in
2022 ## Someone's system reports A.B8.05 for this.
2023 ## I wonder what other possibilities there are.
2024 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2025 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2026 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2027 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2028 *) machine=hp9000s300 opsys=hpux ;;
2029 esac
2030 ;;
2031
2032 ## HP 9000 series 700 and 800, running HP/UX
2033 hppa*-hp-hpux7* )
2034 machine=hp800 opsys=hpux
2035 ;;
2036 hppa*-hp-hpux8* )
2037 machine=hp800 opsys=hpux8
2038 ;;
2039 hppa*-hp-hpux9shr* )
2040 machine=hp800 opsys=hpux9shr
2041 ;;
2042 hppa*-hp-hpux9* )
2043 machine=hp800 opsys=hpux9
2044 ;;
2045 hppa*-hp-hpux10.2* )
2046 machine=hp800 opsys=hpux10-20
2047 ;;
2048 hppa*-hp-hpux10* )
2049 machine=hp800 opsys=hpux10
2050 ;;
2051 hppa*-hp-hpux1[1-9]* )
2052 machine=hp800 opsys=hpux11
2053 ;;
2054
2055 hppa*-*-linux-gnu* )
2056 machine=hp800 opsys=gnu-linux
2057 ;;
2058
2059 ## HP 9000 series 700 and 800, running HP/UX
2060 hppa*-hp-hpux* )
2061 ## Cross-compilation? Nah!
2062 case "`uname -r`" in
2063 ## Someone's system reports A.B8.05 for this.
2064 ## I wonder what other possibilities there are.
2065 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2066 *.08.* ) machine=hp800 opsys=hpux8 ;;
2067 *.09.* ) machine=hp800 opsys=hpux9 ;;
2068 *) machine=hp800 opsys=hpux10 ;;
2069 esac
2070 ;;
2071 hppa*-*-nextstep* )
2072 machine=hp800 opsys=nextstep
2073 ;;
2074
2075 ## Orion machines
2076 orion-orion-bsd* )
2077 machine=orion opsys=bsd4-2
2078 ;;
2079 clipper-orion-bsd* )
2080 machine=orion105 opsys=bsd4-2
2081 ;;
2082
2083 ## IBM machines
2084 i[3456]86-ibm-aix1.1* )
2085 machine=ibmps2-aix opsys=usg5-2-2
2086 ;;
2087 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2088 machine=ibmps2-aix opsys=usg5-3
2089 ;;
2090 i370-ibm-aix*)
2091 machine=ibm370aix opsys=usg5-3
2092 ;;
2093 s390-*-linux-gnu* )
2094 machine=ibms390 opsys=gnu-linux
2095 ;;
2096 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2097 machine=ibmrs6000 opsys=aix3-1
2098 ;;
2099 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2100 machine=ibmrs6000 opsys=aix3-2-5
2101 ;;
2102 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2103 machine=ibmrs6000 opsys=aix4-1
2104 ;;
2105 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2106 machine=ibmrs6000 opsys=aix4-2
2107 ;;
2108 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2109 machine=ibmrs6000 opsys=aix4-2
2110 ;;
2111 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2112 machine=ibmrs6000 opsys=aix4
2113 ;;
2114 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2115 machine=ibmrs6000 opsys=aix4-1
2116 ;;
2117 rs6000-ibm-aix* | powerpc-ibm-aix* )
2118 machine=ibmrs6000 opsys=aix3-2
2119 ;;
2120 romp-ibm-bsd4.3* )
2121 machine=ibmrt opsys=bsd4-3
2122 ;;
2123 romp-ibm-bsd4.2* )
2124 machine=ibmrt opsys=bsd4-2
2125 ;;
2126 romp-ibm-aos4.3* )
2127 machine=ibmrt opsys=bsd4-3
2128 ;;
2129 romp-ibm-aos4.2* )
2130 machine=ibmrt opsys=bsd4-2
2131 ;;
2132 romp-ibm-aos* )
2133 machine=ibmrt opsys=bsd4-3
2134 ;;
2135 romp-ibm-bsd* )
2136 machine=ibmrt opsys=bsd4-3
2137 ;;
2138 romp-ibm-aix* )
2139 machine=ibmrt-aix opsys=usg5-2-2
2140 ;;
2141
2142 ## Integrated Solutions `Optimum V'
2143 m68*-isi-bsd4.2* )
2144 machine=isi-ov opsys=bsd4-2
2145 ;;
2146 m68*-isi-bsd4.3* )
2147 machine=isi-ov opsys=bsd4-3
2148 ;;
2149
2150 ## Intel 386 machines where we do care about the manufacturer
2151 i[3456]86-intsys-sysv* )
2152 machine=is386 opsys=usg5-2-2
2153 ;;
2154
2155 ## Prime EXL
2156 i[3456]86-prime-sysv* )
2157 machine=i386 opsys=usg5-3
2158 ;;
2159
2160 ## Sequent Symmetry running Dynix
2161 i[3456]86-sequent-bsd* )
2162 machine=symmetry opsys=bsd4-3
2163 ;;
2164
2165 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2166 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2167 machine=sequent-ptx opsys=ptx4
2168 NON_GNU_CPP=/lib/cpp
2169 ;;
2170
2171 ## Sequent Symmetry running DYNIX/ptx
2172 ## Use the old cpp rather than the newer ANSI one.
2173 i[3456]86-sequent-ptx* )
2174 machine=sequent-ptx opsys=ptx
2175 NON_GNU_CPP="/lib/cpp"
2176 ;;
2177
2178 ## ncr machine running svr4.3.
2179 i[3456]86-ncr-sysv4.3 )
2180 machine=ncr386 opsys=usg5-4-3
2181 ;;
2182
2183 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2184 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2185 i[3456]86-ncr-sysv* )
2186 machine=ncr386 opsys=usg5-4-2
2187 ;;
2188
2189 ## Intel Paragon OSF/1
2190 i860-intel-osf1* )
2191 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2192 ;;
2193
2194 ## Intel 860
2195 i860-*-sysv4* )
2196 machine=i860 opsys=usg5-4
2197 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2198 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2199 ;;
2200
2201 ## Macintosh PowerPC
2202 powerpc*-*-linux-gnu* )
2203 machine=macppc opsys=gnu-linux
2204 ;;
2205
2206 ## Masscomp machines
2207 m68*-masscomp-rtu* )
2208 machine=masscomp opsys=rtu
2209 ;;
2210
2211 ## Megatest machines
2212 m68*-megatest-bsd* )
2213 machine=mega68 opsys=bsd4-2
2214 ;;
2215
2216 ## Workstations sold by MIPS
2217 ## This is not necessarily all workstations using the MIPS processor -
2218 ## Irises are produced by SGI, and DECstations by DEC.
2219
2220 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2221 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2222 ## it gives for choosing between the alternatives seems to be "Use
2223 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2224 ## the BSD world." I'll assume that these are instructions for
2225 ## handling two odd situations, and that every other situation
2226 ## should use mips.h and usg5-2-2, they being listed first.
2227 mips-mips-usg* )
2228 machine=mips4
2229 ## Fall through to the general code at the bottom to decide on the OS.
2230 ;;
2231 mips-mips-riscos4* )
2232 machine=mips4 opsys=bsd4-3
2233 NON_GNU_CC="cc -systype bsd43"
2234 NON_GNU_CPP="cc -systype bsd43 -E"
2235 ;;
2236 mips-mips-riscos5* )
2237 machine=mips4 opsys=riscos5
2238 NON_GNU_CC="cc -systype bsd43"
2239 NON_GNU_CPP="cc -systype bsd43 -E"
2240 ;;
2241 mips-mips-bsd* )
2242 machine=mips opsys=bsd4-3
2243 ;;
2244 mips-mips-* )
2245 machine=mips opsys=usg5-2-2
2246 ;;
2247
2248 ## NeXT
2249 m68*-next-* | m68k-*-nextstep* )
2250 machine=m68k opsys=nextstep
2251 ;;
2252
2253 ## The complete machine from National Semiconductor
2254 ns32k-ns-genix* )
2255 machine=ns32000 opsys=usg5-2
2256 ;;
2257
2258 ## NCR machines
2259 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2260 machine=tower32 opsys=usg5-2-2
2261 ;;
2262 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2263 machine=tower32v3 opsys=usg5-3
2264 ;;
2265
2266 ## NEC EWS4800
2267 mips-nec-sysv4*)
2268 machine=ews4800 opsys=ux4800
2269 ;;
2270
2271 ## Nixdorf Targon 31
2272 m68*-nixdorf-sysv* )
2273 machine=targon31 opsys=usg5-2-2
2274 ;;
2275
2276 ## Nu (TI or LMI)
2277 m68*-nu-sysv* )
2278 machine=nu opsys=usg5-2
2279 ;;
2280
2281 ## Plexus
2282 m68*-plexus-sysv* )
2283 machine=plexus opsys=usg5-2
2284 ;;
2285
2286 ## Pyramid machines
2287 ## I don't really have any idea what sort of processor the Pyramid has,
2288 ## so I'm assuming it is its own architecture.
2289 pyramid-pyramid-bsd* )
2290 machine=pyramid opsys=bsd4-2
2291 ;;
2292
2293 ## Sequent Balance
2294 ns32k-sequent-bsd4.2* )
2295 machine=sequent opsys=bsd4-2
2296 ;;
2297 ns32k-sequent-bsd4.3* )
2298 machine=sequent opsys=bsd4-3
2299 ;;
2300
2301 ## Siemens Nixdorf
2302 mips-siemens-sysv* | mips-sni-sysv*)
2303 machine=mips-siemens opsys=usg5-4
2304 NON_GNU_CC=/usr/ccs/bin/cc
2305 NON_GNU_CPP=/usr/ccs/lib/cpp
2306 ;;
2307
2308 ## Silicon Graphics machines
2309 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2310 m68*-sgi-iris3.5* )
2311 machine=irist opsys=iris3-5
2312 ;;
2313 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2314 machine=irist opsys=iris3-6
2315 ;;
2316 ## Iris 4D
2317 mips-sgi-irix3* )
2318 machine=iris4d opsys=irix3-3
2319 ;;
2320 mips-sgi-irix4* )
2321 machine=iris4d opsys=irix4-0
2322 ;;
2323 mips-sgi-irix6.5 )
2324 machine=iris4d opsys=irix6-5
2325 # Without defining _LANGUAGE_C, things get masked out in the headers
2326 # so that, for instance, grepping for `free' in stdlib.h fails and
2327 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2328 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2329 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2330 ;;
2331 mips-sgi-irix6* )
2332 machine=iris4d opsys=irix6-0
2333 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2334 # but presumably it does no harm.
2335 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2336 # -32 probably isn't necessary in later v.6s -- anyone know which?
2337 NON_GCC_TEST_OPTIONS=-32
2338 ;;
2339 mips-sgi-irix5.[01]* )
2340 machine=iris4d opsys=irix5-0
2341 ;;
2342 mips-sgi-irix5* | mips-sgi-irix* )
2343 machine=iris4d opsys=irix5-2
2344 ;;
2345
2346 ## SONY machines
2347 m68*-sony-bsd4.2* )
2348 machine=news opsys=bsd4-2
2349 ;;
2350 m68*-sony-bsd4.3* )
2351 machine=news opsys=bsd4-3
2352 ;;
2353 m68*-sony-newsos3* | m68*-sony-news3*)
2354 machine=news opsys=bsd4-3
2355 ;;
2356 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2357 machine=news-risc opsys=bsd4-3
2358 ;;
2359 mips-sony-newsos6* )
2360 machine=news-r6 opsys=newsos6
2361 ;;
2362 mips-sony-news* )
2363 machine=news-risc opsys=newsos5
2364 ;;
2365
2366 ## Stride
2367 m68*-stride-sysv* )
2368 machine=stride opsys=usg5-2
2369 ;;
2370
2371 ## Suns
2372 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2373 machine=sparc opsys=gnu-linux
2374 ;;
2375
2376 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2377 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2378 | rs6000-*-solaris2*)
2379 case "${canonical}" in
2380 m68*-sunos1* ) machine=sun1 ;;
2381 m68*-sunos2* ) machine=sun2 ;;
2382 m68* ) machine=sun3 ;;
2383 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2384 i[3456]86-*-* ) machine=intel386 ;;
2385 powerpcle* ) machine=powerpcle ;;
2386 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2387 sparc* ) machine=sparc ;;
2388 * ) unported=yes ;;
2389 esac
2390 case "${canonical}" in
2391 ## The Sun386 didn't get past 4.0.
2392 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2393 *-sunos4.0* ) opsys=sunos4-0 ;;
2394 *-sunos4.1.[3-9]*noshare )
2395 ## This name is sunos413 instead of sunos4-1-3
2396 ## to avoid a file name conflict on MSDOS.
2397 opsys=sunos413
2398 NON_GNU_CPP=/usr/lib/cpp
2399 NON_GCC_TEST_OPTIONS=-Bstatic
2400 GCC_TEST_OPTIONS=-static
2401 ;;
2402 *-sunos4.1.[3-9]* | *-sunos4shr*)
2403 opsys=sunos4shr
2404 NON_GNU_CPP=/usr/lib/cpp
2405 ;;
2406 *-sunos4* | *-sunos )
2407 opsys=sunos4-1
2408 NON_GCC_TEST_OPTIONS=-Bstatic
2409 GCC_TEST_OPTIONS=-static
2410 ;;
2411 *-sunos5.3* | *-solaris2.3* )
2412 opsys=sol2-3
2413 NON_GNU_CPP=/usr/ccs/lib/cpp
2414 ;;
2415 *-sunos5.4* | *-solaris2.4* )
2416 opsys=sol2-4
2417 NON_GNU_CPP=/usr/ccs/lib/cpp
2418 RANLIB="ar -ts"
2419 ;;
2420 *-sunos5.5* | *-solaris2.5* )
2421 opsys=sol2-5
2422 NON_GNU_CPP=/usr/ccs/lib/cpp
2423 RANLIB="ar -ts"
2424 ;;
2425 *-sunos5.6* | *-solaris2.6* )
2426 opsys=sol2-6
2427 NON_GNU_CPP=/usr/ccs/lib/cpp
2428 RANLIB="ar -ts"
2429 ;;
2430 *-sunos5* | *-solaris* )
2431 opsys=sol2-6
2432 NON_GNU_CPP=/usr/ccs/lib/cpp
2433 ;;
2434 * ) opsys=bsd4-2 ;;
2435 esac
2436 ## Watch out for a compiler that we know will not work.
2437 case "${canonical}" in
2438 *-solaris* | *-sunos5* )
2439 if [ "x$CC" = x/usr/ucb/cc ]; then
2440 ## /usr/ucb/cc doesn't work;
2441 ## we should find some other compiler that does work.
2442 unset CC
2443 fi
2444 ;;
2445 *) ;;
2446 esac
2447 ;;
2448 sparc-*-nextstep* )
2449 machine=sparc opsys=nextstep
2450 ;;
2451
2452 ## Tadpole 68k
2453 m68*-tadpole-sysv* )
2454 machine=tad68k opsys=usg5-3
2455 ;;
2456
2457 ## Tahoe machines
2458 tahoe-tahoe-bsd4.2* )
2459 machine=tahoe opsys=bsd4-2
2460 ;;
2461 tahoe-tahoe-bsd4.3* )
2462 machine=tahoe opsys=bsd4-3
2463 ;;
2464
2465 ## Tandem Integrity S2
2466 mips-tandem-sysv* )
2467 machine=tandem-s2 opsys=usg5-3
2468 ;;
2469
2470 ## Tektronix XD88
2471 m88k-tektronix-sysv3* )
2472 machine=tekxd88 opsys=usg5-3
2473 ;;
2474
2475 ## Tektronix 16000 box (6130?)
2476 ns16k-tektronix-bsd* )
2477 machine=ns16000 opsys=bsd4-2
2478 ;;
2479 ## Tektronix 4300
2480 ## src/m/tek4300.h hints that this is a m68k machine.
2481 m68*-tektronix-bsd* )
2482 machine=tek4300 opsys=bsd4-3
2483 ;;
2484
2485 ## Titan P2 or P3
2486 ## We seem to have lost the machine-description file titan.h!
2487 titan-titan-sysv* )
2488 machine=titan opsys=usg5-3
2489 ;;
2490
2491 ## Ustation E30 (SS5E)
2492 m68*-unisys-uniplus* )
2493 machine=ustation opsystem=unipl5-2
2494 ;;
2495
2496 ## Vaxen.
2497 vax-dec-* )
2498 machine=vax
2499 case "${canonical}" in
2500 *-bsd4.1* ) opsys=bsd4-1 ;;
2501 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2502 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2503 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2504 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2505 *-vms* ) opsys=vms ;;
2506 * ) unported=yes
2507 esac
2508 ;;
2509
2510 ## Whitechapel MG1
2511 ns16k-whitechapel-* )
2512 machine=mg1
2513 ## We don't know what sort of OS runs on these; we'll let the
2514 ## operating system guessing code below try.
2515 ;;
2516
2517 ## Wicat
2518 m68*-wicat-sysv* )
2519 machine=wicat opsys=usg5-2
2520 ;;
2521
2522 ## IA-64
2523 ia64*-*-linux* )
2524 machine=ia64 opsys=gnu-linux
2525 ;;
2526
2527 ## Intel 386 machines where we don't care about the manufacturer
2528 i[3456]86-*-* )
2529 machine=intel386
2530 case "${canonical}" in
2531 *-cygwin ) opsys=cygwin ;;
2532 *-lynxos* ) opsys=lynxos ;;
2533 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2534 *-isc2.2* ) opsys=isc2-2 ;;
2535 *-isc4.0* ) opsys=isc4-0 ;;
2536 *-isc4.* ) opsys=isc4-1
2537 GCC_TEST_OPTIONS=-posix
2538 NON_GCC_TEST_OPTIONS=-Xp
2539 ;;
2540 *-isc* ) opsys=isc3-0 ;;
2541 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2542 *-esix* ) opsys=esix ;;
2543 *-xenix* ) opsys=xenix ;;
2544 *-linux-gnu* ) opsys=gnu-linux ;;
2545 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2546 *-sco3.2v5* ) opsys=sco5
2547 NON_GNU_CPP=/lib/cpp
2548 # Prevent -belf from being passed to $CPP.
2549 # /lib/cpp does not accept it.
2550 OVERRIDE_CPPFLAGS=" "
2551 ;;
2552 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2553 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2554 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2555 *-386bsd* ) opsys=386bsd ;;
2556 *-nextstep* ) opsys=nextstep ;;
2557 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2558 esac
2559 ;;
2560
2561 ## m68k Linux-based GNU system
2562 m68k-*-linux-gnu* )
2563 machine=m68k opsys=gnu-linux
2564 ;;
2565
2566 ## Mips Linux-based GNU system
2567 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2568 machine=mips opsys=gnu-linux
2569 ;;
2570
2571 ## UXP/DS
2572 sparc-fujitsu-sysv4* )
2573 machine=sparc opsys=uxpds
2574 NON_GNU_CPP=/usr/ccs/lib/cpp
2575 RANLIB="ar -ts"
2576 ;;
2577
2578 ## UXP/V
2579 f301-fujitsu-uxpv4.1)
2580 machine=f301 opsys=uxpv
2581 ;;
2582
2583 ## Darwin / Mac OS X
2584 powerpc-apple-darwin* )
2585 machine=powermac opsys=darwin
2586 # Define CPP as follows to make autoconf work correctly.
2587 CPP="${CC-cc} -E -no-cpp-precomp"
2588 # Use fink packages if available.
2589 if test -d /sw/include && test -d /sw/lib; then
2590 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2591 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2592 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2593 fi
2594 ;;
2595
2596 ## AMD x86-64 Linux-based GNU system
2597 x86_64-*-linux-gnu* )
2598 machine=amdx86-64 opsys=gnu-linux
2599 ;;
2600
2601 * )
2602 unported=yes
2603 ;;
2604 esac
2605
2606 ### If the code above didn't choose an operating system, just choose
2607 ### an operating system based on the configuration name. You really
2608 ### only want to use this when you have no idea what the right
2609 ### operating system is; if you know what operating systems a machine
2610 ### runs, it's cleaner to make it explicit in the case statement
2611 ### above.
2612 if test x"${opsys}" = x; then
2613 case "${canonical}" in
2614 *-gnu* ) opsys=gnu ;;
2615 *-bsd4.[01] ) opsys=bsd4-1 ;;
2616 *-bsd4.2 ) opsys=bsd4-2 ;;
2617 *-bsd4.3 ) opsys=bsd4-3 ;;
2618 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2619 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2620 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2621 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2622 *-sysv4.2uw* ) opsys=unixware ;;
2623 *-sysv5uw* ) opsys=unixware ;;
2624 *-sysv5OpenUNIX* ) opsys=unixware ;;
2625 *-sysv4.1* | *-sysvr4.1* )
2626 NON_GNU_CPP=/usr/lib/cpp
2627 opsys=usg5-4 ;;
2628 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2629 if [ x$NON_GNU_CPP = x ]; then
2630 if [ -f /usr/ccs/lib/cpp ]; then
2631 NON_GNU_CPP=/usr/ccs/lib/cpp
2632 else
2633 NON_GNU_CPP=/lib/cpp
2634 fi
2635 fi
2636 opsys=usg5-4-2 ;;
2637 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2638 * )
2639 unported=yes
2640 ;;
2641 esac
2642 fi
2643
2644
2645
2646 if test $unported = yes; then
2647 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2648 Check \`etc/MACHINES' for recognized configuration names." >&5
2649 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2650 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2651 { (exit 1); exit 1; }; }
2652 fi
2653
2654 machfile="m/${machine}.h"
2655 opsysfile="s/${opsys}.h"
2656
2657
2658 #### Choose a compiler.
2659 test -n "$CC" && cc_specified=yes
2660
2661 # Save the value of CFLAGS that the user specified.
2662 SPECIFIED_CFLAGS="$CFLAGS"
2663
2664 case ${with_gcc} in
2665 "yes" ) CC="gcc" GCC=yes ;;
2666 "no" ) : ${CC=cc} ;;
2667 * )
2668 esac
2669 ac_ext=c
2670 ac_cpp='$CPP $CPPFLAGS'
2671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674 if test -n "$ac_tool_prefix"; then
2675 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2676 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2677 echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679 if test "${ac_cv_prog_CC+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 if test -n "$CC"; then
2683 ac_cv_prog_CC="$CC" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2687 do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2695 fi
2696 done
2697 done
2698
2699 fi
2700 fi
2701 CC=$ac_cv_prog_CC
2702 if test -n "$CC"; then
2703 echo "$as_me:$LINENO: result: $CC" >&5
2704 echo "${ECHO_T}$CC" >&6
2705 else
2706 echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2708 fi
2709
2710 fi
2711 if test -z "$ac_cv_prog_CC"; then
2712 ac_ct_CC=$CC
2713 # Extract the first word of "gcc", so it can be a program name with args.
2714 set dummy gcc; ac_word=$2
2715 echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2717 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720 if test -n "$ac_ct_CC"; then
2721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 ac_cv_prog_ac_ct_CC="gcc"
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 break 2
2733 fi
2734 done
2735 done
2736
2737 fi
2738 fi
2739 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2740 if test -n "$ac_ct_CC"; then
2741 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2742 echo "${ECHO_T}$ac_ct_CC" >&6
2743 else
2744 echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2746 fi
2747
2748 CC=$ac_ct_CC
2749 else
2750 CC="$ac_cv_prog_CC"
2751 fi
2752
2753 if test -z "$CC"; then
2754 if test -n "$ac_tool_prefix"; then
2755 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2756 set dummy ${ac_tool_prefix}cc; ac_word=$2
2757 echo "$as_me:$LINENO: checking for $ac_word" >&5
2758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2759 if test "${ac_cv_prog_CC+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762 if test -n "$CC"; then
2763 ac_cv_prog_CC="$CC" # Let the user override the test.
2764 else
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772 ac_cv_prog_CC="${ac_tool_prefix}cc"
2773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 break 2
2775 fi
2776 done
2777 done
2778
2779 fi
2780 fi
2781 CC=$ac_cv_prog_CC
2782 if test -n "$CC"; then
2783 echo "$as_me:$LINENO: result: $CC" >&5
2784 echo "${ECHO_T}$CC" >&6
2785 else
2786 echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6
2788 fi
2789
2790 fi
2791 if test -z "$ac_cv_prog_CC"; then
2792 ac_ct_CC=$CC
2793 # Extract the first word of "cc", so it can be a program name with args.
2794 set dummy cc; ac_word=$2
2795 echo "$as_me:$LINENO: checking for $ac_word" >&5
2796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 else
2800 if test -n "$ac_ct_CC"; then
2801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2802 else
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810 ac_cv_prog_ac_ct_CC="cc"
2811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 break 2
2813 fi
2814 done
2815 done
2816
2817 fi
2818 fi
2819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2820 if test -n "$ac_ct_CC"; then
2821 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2822 echo "${ECHO_T}$ac_ct_CC" >&6
2823 else
2824 echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6
2826 fi
2827
2828 CC=$ac_ct_CC
2829 else
2830 CC="$ac_cv_prog_CC"
2831 fi
2832
2833 fi
2834 if test -z "$CC"; then
2835 # Extract the first word of "cc", so it can be a program name with args.
2836 set dummy cc; ac_word=$2
2837 echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2839 if test "${ac_cv_prog_CC+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 else
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2844 else
2845 ac_prog_rejected=no
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2854 ac_prog_rejected=yes
2855 continue
2856 fi
2857 ac_cv_prog_CC="cc"
2858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2860 fi
2861 done
2862 done
2863
2864 if test $ac_prog_rejected = yes; then
2865 # We found a bogon in the path, so make sure we never use it.
2866 set dummy $ac_cv_prog_CC
2867 shift
2868 if test $# != 0; then
2869 # We chose a different compiler from the bogus one.
2870 # However, it has the same basename, so the bogon will be chosen
2871 # first if we set CC to just the basename; use the full file name.
2872 shift
2873 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2874 fi
2875 fi
2876 fi
2877 fi
2878 CC=$ac_cv_prog_CC
2879 if test -n "$CC"; then
2880 echo "$as_me:$LINENO: result: $CC" >&5
2881 echo "${ECHO_T}$CC" >&6
2882 else
2883 echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6
2885 fi
2886
2887 fi
2888 if test -z "$CC"; then
2889 if test -n "$ac_tool_prefix"; then
2890 for ac_prog in cl
2891 do
2892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2894 echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896 if test "${ac_cv_prog_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913 done
2914 done
2915
2916 fi
2917 fi
2918 CC=$ac_cv_prog_CC
2919 if test -n "$CC"; then
2920 echo "$as_me:$LINENO: result: $CC" >&5
2921 echo "${ECHO_T}$CC" >&6
2922 else
2923 echo "$as_me:$LINENO: result: no" >&5
2924 echo "${ECHO_T}no" >&6
2925 fi
2926
2927 test -n "$CC" && break
2928 done
2929 fi
2930 if test -z "$CC"; then
2931 ac_ct_CC=$CC
2932 for ac_prog in cl
2933 do
2934 # Extract the first word of "$ac_prog", so it can be a program name with args.
2935 set dummy $ac_prog; ac_word=$2
2936 echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 else
2941 if test -n "$ac_ct_CC"; then
2942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951 ac_cv_prog_ac_ct_CC="$ac_prog"
2952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2954 fi
2955 done
2956 done
2957
2958 fi
2959 fi
2960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2961 if test -n "$ac_ct_CC"; then
2962 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2963 echo "${ECHO_T}$ac_ct_CC" >&6
2964 else
2965 echo "$as_me:$LINENO: result: no" >&5
2966 echo "${ECHO_T}no" >&6
2967 fi
2968
2969 test -n "$ac_ct_CC" && break
2970 done
2971
2972 CC=$ac_ct_CC
2973 fi
2974
2975 fi
2976
2977
2978 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2979 See \`config.log' for more details." >&5
2980 echo "$as_me: error: no acceptable C compiler found in \$PATH
2981 See \`config.log' for more details." >&2;}
2982 { (exit 1); exit 1; }; }
2983
2984 # Provide some information about the compiler.
2985 echo "$as_me:$LINENO:" \
2986 "checking for C compiler version" >&5
2987 ac_compiler=`set X $ac_compile; echo $2`
2988 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2989 (eval $ac_compiler --version </dev/null >&5) 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }
2993 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2994 (eval $ac_compiler -v </dev/null >&5) 2>&5
2995 ac_status=$?
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }
2998 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2999 (eval $ac_compiler -V </dev/null >&5) 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }
3003
3004 cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3006 /* confdefs.h. */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3011
3012 int
3013 main ()
3014 {
3015
3016 ;
3017 return 0;
3018 }
3019 _ACEOF
3020 ac_clean_files_save=$ac_clean_files
3021 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3022 # Try to create an executable without -o first, disregard a.out.
3023 # It will help us diagnose broken compilers, and finding out an intuition
3024 # of exeext.
3025 echo "$as_me:$LINENO: checking for C compiler default output" >&5
3026 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3027 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3028 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3029 (eval $ac_link_default) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; then
3033 # Find the output, starting from the most likely. This scheme is
3034 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3035 # resort.
3036
3037 # Be careful to initialize this variable, since it used to be cached.
3038 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3039 ac_cv_exeext=
3040 # b.out is created by i960 compilers.
3041 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3042 do
3043 test -f "$ac_file" || continue
3044 case $ac_file in
3045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3046 ;;
3047 conftest.$ac_ext )
3048 # This is the source file.
3049 ;;
3050 [ab].out )
3051 # We found the default executable, but exeext='' is most
3052 # certainly right.
3053 break;;
3054 *.* )
3055 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3056 # FIXME: I believe we export ac_cv_exeext for Libtool,
3057 # but it would be cool to find out if it's true. Does anybody
3058 # maintain Libtool? --akim.
3059 export ac_cv_exeext
3060 break;;
3061 * )
3062 break;;
3063 esac
3064 done
3065 else
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3070 See \`config.log' for more details." >&5
3071 echo "$as_me: error: C compiler cannot create executables
3072 See \`config.log' for more details." >&2;}
3073 { (exit 77); exit 77; }; }
3074 fi
3075
3076 ac_exeext=$ac_cv_exeext
3077 echo "$as_me:$LINENO: result: $ac_file" >&5
3078 echo "${ECHO_T}$ac_file" >&6
3079
3080 # Check the compiler produces executables we can run. If not, either
3081 # the compiler is broken, or we cross compile.
3082 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3083 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3084 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3085 # If not cross compiling, check that we can run a simple program.
3086 if test "$cross_compiling" != yes; then
3087 if { ac_try='./$ac_file'
3088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089 (eval $ac_try) 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; }; then
3093 cross_compiling=no
3094 else
3095 if test "$cross_compiling" = maybe; then
3096 cross_compiling=yes
3097 else
3098 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3099 If you meant to cross compile, use \`--host'.
3100 See \`config.log' for more details." >&5
3101 echo "$as_me: error: cannot run C compiled programs.
3102 If you meant to cross compile, use \`--host'.
3103 See \`config.log' for more details." >&2;}
3104 { (exit 1); exit 1; }; }
3105 fi
3106 fi
3107 fi
3108 echo "$as_me:$LINENO: result: yes" >&5
3109 echo "${ECHO_T}yes" >&6
3110
3111 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3112 ac_clean_files=$ac_clean_files_save
3113 # Check the compiler produces executables we can run. If not, either
3114 # the compiler is broken, or we cross compile.
3115 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3116 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3117 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3118 echo "${ECHO_T}$cross_compiling" >&6
3119
3120 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3121 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3123 (eval $ac_link) 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; then
3127 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3128 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3129 # work properly (i.e., refer to `conftest.exe'), while it won't with
3130 # `rm'.
3131 for ac_file in conftest.exe conftest conftest.*; do
3132 test -f "$ac_file" || continue
3133 case $ac_file in
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3135 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136 export ac_cv_exeext
3137 break;;
3138 * ) break;;
3139 esac
3140 done
3141 else
3142 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3143 See \`config.log' for more details." >&5
3144 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3145 See \`config.log' for more details." >&2;}
3146 { (exit 1); exit 1; }; }
3147 fi
3148
3149 rm -f conftest$ac_cv_exeext
3150 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3151 echo "${ECHO_T}$ac_cv_exeext" >&6
3152
3153 rm -f conftest.$ac_ext
3154 EXEEXT=$ac_cv_exeext
3155 ac_exeext=$EXEEXT
3156 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3157 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3158 if test "${ac_cv_objext+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161 cat >conftest.$ac_ext <<_ACEOF
3162 #line $LINENO "configure"
3163 /* confdefs.h. */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3168
3169 int
3170 main ()
3171 {
3172
3173 ;
3174 return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.o conftest.obj
3178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3179 (eval $ac_compile) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; then
3183 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3184 case $ac_file in
3185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3186 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3187 break;;
3188 esac
3189 done
3190 else
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3195 See \`config.log' for more details." >&5
3196 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3197 See \`config.log' for more details." >&2;}
3198 { (exit 1); exit 1; }; }
3199 fi
3200
3201 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3202 fi
3203 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3204 echo "${ECHO_T}$ac_cv_objext" >&6
3205 OBJEXT=$ac_cv_objext
3206 ac_objext=$OBJEXT
3207 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3208 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3209 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212 cat >conftest.$ac_ext <<_ACEOF
3213 #line $LINENO "configure"
3214 /* confdefs.h. */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3219
3220 int
3221 main ()
3222 {
3223 #ifndef __GNUC__
3224 choke me
3225 #endif
3226
3227 ;
3228 return 0;
3229 }
3230 _ACEOF
3231 rm -f conftest.$ac_objext
3232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3233 (eval $ac_compile) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try='test -s conftest.$ac_objext'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3243 ac_compiler_gnu=yes
3244 else
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 ac_compiler_gnu=no
3249 fi
3250 rm -f conftest.$ac_objext conftest.$ac_ext
3251 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3252
3253 fi
3254 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3255 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3256 GCC=`test $ac_compiler_gnu = yes && echo yes`
3257 ac_test_CFLAGS=${CFLAGS+set}
3258 ac_save_CFLAGS=$CFLAGS
3259 CFLAGS="-g"
3260 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3261 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3262 if test "${ac_cv_prog_cc_g+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265 cat >conftest.$ac_ext <<_ACEOF
3266 #line $LINENO "configure"
3267 /* confdefs.h. */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3272
3273 int
3274 main ()
3275 {
3276
3277 ;
3278 return 0;
3279 }
3280 _ACEOF
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
3287 { ac_try='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_cv_prog_cc_g=yes
3294 else
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 ac_cv_prog_cc_g=no
3299 fi
3300 rm -f conftest.$ac_objext conftest.$ac_ext
3301 fi
3302 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3303 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3304 if test "$ac_test_CFLAGS" = set; then
3305 CFLAGS=$ac_save_CFLAGS
3306 elif test $ac_cv_prog_cc_g = yes; then
3307 if test "$GCC" = yes; then
3308 CFLAGS="-g -O2"
3309 else
3310 CFLAGS="-g"
3311 fi
3312 else
3313 if test "$GCC" = yes; then
3314 CFLAGS="-O2"
3315 else
3316 CFLAGS=
3317 fi
3318 fi
3319 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3320 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3321 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324 ac_cv_prog_cc_stdc=no
3325 ac_save_CC=$CC
3326 cat >conftest.$ac_ext <<_ACEOF
3327 #line $LINENO "configure"
3328 /* confdefs.h. */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333 #include <stdarg.h>
3334 #include <stdio.h>
3335 #include <sys/types.h>
3336 #include <sys/stat.h>
3337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3338 struct buf { int x; };
3339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3340 static char *e (p, i)
3341 char **p;
3342 int i;
3343 {
3344 return p[i];
3345 }
3346 static char *f (char * (*g) (char **, int), char **p, ...)
3347 {
3348 char *s;
3349 va_list v;
3350 va_start (v,p);
3351 s = g (p, va_arg (v,int));
3352 va_end (v);
3353 return s;
3354 }
3355 int test (int i, double x);
3356 struct s1 {int (*f) (int a);};
3357 struct s2 {int (*f) (double a);};
3358 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3359 int argc;
3360 char **argv;
3361 int
3362 main ()
3363 {
3364 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3365 ;
3366 return 0;
3367 }
3368 _ACEOF
3369 # Don't try gcc -ansi; that turns off useful extensions and
3370 # breaks some systems' header files.
3371 # AIX -qlanglvl=ansi
3372 # Ultrix and OSF/1 -std1
3373 # HP-UX 10.20 and later -Ae
3374 # HP-UX older versions -Aa -D_HPUX_SOURCE
3375 # SVR4 -Xc -D__EXTENSIONS__
3376 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3377 do
3378 CC="$ac_save_CC $ac_arg"
3379 rm -f conftest.$ac_objext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381 (eval $ac_compile) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } &&
3385 { ac_try='test -s conftest.$ac_objext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 ac_cv_prog_cc_stdc=$ac_arg
3392 break
3393 else
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3396
3397 fi
3398 rm -f conftest.$ac_objext
3399 done
3400 rm -f conftest.$ac_ext conftest.$ac_objext
3401 CC=$ac_save_CC
3402
3403 fi
3404
3405 case "x$ac_cv_prog_cc_stdc" in
3406 x|xno)
3407 echo "$as_me:$LINENO: result: none needed" >&5
3408 echo "${ECHO_T}none needed" >&6 ;;
3409 *)
3410 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3411 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3412 CC="$CC $ac_cv_prog_cc_stdc" ;;
3413 esac
3414
3415 # Some people use a C++ compiler to compile C. Since we use `exit',
3416 # in C++ we need to declare it. In case someone uses the same compiler
3417 # for both compiling C and C++ we need to have the C++ compiler decide
3418 # the declaration of exit, since it's the most demanding environment.
3419 cat >conftest.$ac_ext <<_ACEOF
3420 #ifndef __cplusplus
3421 choke me
3422 #endif
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>&5
3427 ac_status=$?
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try='test -s conftest.$ac_objext'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 (eval $ac_try) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; }; then
3436 for ac_declaration in \
3437 ''\
3438 '#include <stdlib.h>' \
3439 'extern "C" void std::exit (int) throw (); using std::exit;' \
3440 'extern "C" void std::exit (int); using std::exit;' \
3441 'extern "C" void exit (int) throw ();' \
3442 'extern "C" void exit (int);' \
3443 'void exit (int);'
3444 do
3445 cat >conftest.$ac_ext <<_ACEOF
3446 #line $LINENO "configure"
3447 /* confdefs.h. */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3452 #include <stdlib.h>
3453 $ac_declaration
3454 int
3455 main ()
3456 {
3457 exit (42);
3458 ;
3459 return 0;
3460 }
3461 _ACEOF
3462 rm -f conftest.$ac_objext
3463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3464 (eval $ac_compile) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } &&
3468 { ac_try='test -s conftest.$ac_objext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 :
3475 else
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3478
3479 continue
3480 fi
3481 rm -f conftest.$ac_objext conftest.$ac_ext
3482 cat >conftest.$ac_ext <<_ACEOF
3483 #line $LINENO "configure"
3484 /* confdefs.h. */
3485 _ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3489 $ac_declaration
3490 int
3491 main ()
3492 {
3493 exit (42);
3494 ;
3495 return 0;
3496 }
3497 _ACEOF
3498 rm -f conftest.$ac_objext
3499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>&5
3501 ac_status=$?
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } &&
3504 { ac_try='test -s conftest.$ac_objext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 break
3511 else
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515 fi
3516 rm -f conftest.$ac_objext conftest.$ac_ext
3517 done
3518 rm -f conftest*
3519 if test -n "$ac_declaration"; then
3520 echo '#ifdef __cplusplus' >>confdefs.h
3521 echo $ac_declaration >>confdefs.h
3522 echo '#endif' >>confdefs.h
3523 fi
3524
3525 else
3526 echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3528
3529 fi
3530 rm -f conftest.$ac_objext conftest.$ac_ext
3531 ac_ext=c
3532 ac_cpp='$CPP $CPPFLAGS'
3533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536
3537
3538 # On Suns, sometimes $CPP names a directory.
3539 if test -n "$CPP" && test -d "$CPP"; then
3540 CPP=
3541 fi
3542
3543 #### Some systems specify a CPP to use unless we are using GCC.
3544 #### Now that we know whether we are using GCC, we can decide whether
3545 #### to use that one.
3546 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3547 then
3548 CPP="$NON_GNU_CPP"
3549 fi
3550
3551 #### Some systems specify a CC to use unless we are using GCC.
3552 #### Now that we know whether we are using GCC, we can decide whether
3553 #### to use that one.
3554 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3555 test x$cc_specified != xyes
3556 then
3557 CC="$NON_GNU_CC"
3558 fi
3559
3560 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3561 then
3562 CC="$CC $GCC_TEST_OPTIONS"
3563 fi
3564
3565 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3566 then
3567 CC="$CC $NON_GCC_TEST_OPTIONS"
3568 fi
3569
3570 #### Some other nice autoconf tests.
3571
3572 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3573 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3574 LN_S=$as_ln_s
3575 if test "$LN_S" = "ln -s"; then
3576 echo "$as_me:$LINENO: result: yes" >&5
3577 echo "${ECHO_T}yes" >&6
3578 else
3579 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3580 echo "${ECHO_T}no, using $LN_S" >&6
3581 fi
3582
3583 ac_ext=c
3584 ac_cpp='$CPP $CPPFLAGS'
3585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3588 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3589 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3590 # On Suns, sometimes $CPP names a directory.
3591 if test -n "$CPP" && test -d "$CPP"; then
3592 CPP=
3593 fi
3594 if test -z "$CPP"; then
3595 if test "${ac_cv_prog_CPP+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598 # Double quotes because CPP needs to be expanded
3599 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3600 do
3601 ac_preproc_ok=false
3602 for ac_c_preproc_warn_flag in '' yes
3603 do
3604 # Use a header file that comes with gcc, so configuring glibc
3605 # with a fresh cross-compiler works.
3606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3607 # <limits.h> exists even on freestanding compilers.
3608 # On the NeXT, cc -E runs the code through the compiler's parser,
3609 # not just through cpp. "Syntax error" is here to catch this case.
3610 cat >conftest.$ac_ext <<_ACEOF
3611 #line $LINENO "configure"
3612 /* confdefs.h. */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617 #ifdef __STDC__
3618 # include <limits.h>
3619 #else
3620 # include <assert.h>
3621 #endif
3622 Syntax error
3623 _ACEOF
3624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3626 ac_status=$?
3627 grep -v '^ *+' conftest.er1 >conftest.err
3628 rm -f conftest.er1
3629 cat conftest.err >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } >/dev/null; then
3632 if test -s conftest.err; then
3633 ac_cpp_err=$ac_c_preproc_warn_flag
3634 else
3635 ac_cpp_err=
3636 fi
3637 else
3638 ac_cpp_err=yes
3639 fi
3640 if test -z "$ac_cpp_err"; then
3641 :
3642 else
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646 # Broken: fails on valid input.
3647 continue
3648 fi
3649 rm -f conftest.err conftest.$ac_ext
3650
3651 # OK, works on sane cases. Now check whether non-existent headers
3652 # can be detected and how.
3653 cat >conftest.$ac_ext <<_ACEOF
3654 #line $LINENO "configure"
3655 /* confdefs.h. */
3656 _ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h. */
3660 #include <ac_nonexistent.h>
3661 _ACEOF
3662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3664 ac_status=$?
3665 grep -v '^ *+' conftest.er1 >conftest.err
3666 rm -f conftest.er1
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } >/dev/null; then
3670 if test -s conftest.err; then
3671 ac_cpp_err=$ac_c_preproc_warn_flag
3672 else
3673 ac_cpp_err=
3674 fi
3675 else
3676 ac_cpp_err=yes
3677 fi
3678 if test -z "$ac_cpp_err"; then
3679 # Broken: success on invalid input.
3680 continue
3681 else
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685 # Passes both tests.
3686 ac_preproc_ok=:
3687 break
3688 fi
3689 rm -f conftest.err conftest.$ac_ext
3690
3691 done
3692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3693 rm -f conftest.err conftest.$ac_ext
3694 if $ac_preproc_ok; then
3695 break
3696 fi
3697
3698 done
3699 ac_cv_prog_CPP=$CPP
3700
3701 fi
3702 CPP=$ac_cv_prog_CPP
3703 else
3704 ac_cv_prog_CPP=$CPP
3705 fi
3706 echo "$as_me:$LINENO: result: $CPP" >&5
3707 echo "${ECHO_T}$CPP" >&6
3708 ac_preproc_ok=false
3709 for ac_c_preproc_warn_flag in '' yes
3710 do
3711 # Use a header file that comes with gcc, so configuring glibc
3712 # with a fresh cross-compiler works.
3713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3714 # <limits.h> exists even on freestanding compilers.
3715 # On the NeXT, cc -E runs the code through the compiler's parser,
3716 # not just through cpp. "Syntax error" is here to catch this case.
3717 cat >conftest.$ac_ext <<_ACEOF
3718 #line $LINENO "configure"
3719 /* confdefs.h. */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3724 #ifdef __STDC__
3725 # include <limits.h>
3726 #else
3727 # include <assert.h>
3728 #endif
3729 Syntax error
3730 _ACEOF
3731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3733 ac_status=$?
3734 grep -v '^ *+' conftest.er1 >conftest.err
3735 rm -f conftest.er1
3736 cat conftest.err >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } >/dev/null; then
3739 if test -s conftest.err; then
3740 ac_cpp_err=$ac_c_preproc_warn_flag
3741 else
3742 ac_cpp_err=
3743 fi
3744 else
3745 ac_cpp_err=yes
3746 fi
3747 if test -z "$ac_cpp_err"; then
3748 :
3749 else
3750 echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3752
3753 # Broken: fails on valid input.
3754 continue
3755 fi
3756 rm -f conftest.err conftest.$ac_ext
3757
3758 # OK, works on sane cases. Now check whether non-existent headers
3759 # can be detected and how.
3760 cat >conftest.$ac_ext <<_ACEOF
3761 #line $LINENO "configure"
3762 /* confdefs.h. */
3763 _ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3767 #include <ac_nonexistent.h>
3768 _ACEOF
3769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3771 ac_status=$?
3772 grep -v '^ *+' conftest.er1 >conftest.err
3773 rm -f conftest.er1
3774 cat conftest.err >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } >/dev/null; then
3777 if test -s conftest.err; then
3778 ac_cpp_err=$ac_c_preproc_warn_flag
3779 else
3780 ac_cpp_err=
3781 fi
3782 else
3783 ac_cpp_err=yes
3784 fi
3785 if test -z "$ac_cpp_err"; then
3786 # Broken: success on invalid input.
3787 continue
3788 else
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3791
3792 # Passes both tests.
3793 ac_preproc_ok=:
3794 break
3795 fi
3796 rm -f conftest.err conftest.$ac_ext
3797
3798 done
3799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3800 rm -f conftest.err conftest.$ac_ext
3801 if $ac_preproc_ok; then
3802 :
3803 else
3804 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3805 See \`config.log' for more details." >&5
3806 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3807 See \`config.log' for more details." >&2;}
3808 { (exit 1); exit 1; }; }
3809 fi
3810
3811 ac_ext=c
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816
3817 # Find a good install program. We prefer a C program (faster),
3818 # so one script is as good as another. But avoid the broken or
3819 # incompatible versions:
3820 # SysV /etc/install, /usr/sbin/install
3821 # SunOS /usr/etc/install
3822 # IRIX /sbin/install
3823 # AIX /bin/install
3824 # AmigaOS /C/install, which installs bootblocks on floppy discs
3825 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3826 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3827 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3828 # ./install, which can be erroneously created by make from ./install.sh.
3829 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3830 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3831 if test -z "$INSTALL"; then
3832 if test "${ac_cv_path_install+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3837 do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 # Account for people who put trailing slashes in PATH elements.
3841 case $as_dir/ in
3842 ./ | .// | /cC/* | \
3843 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3844 /usr/ucb/* ) ;;
3845 *)
3846 # OSF1 and SCO ODT 3.0 have their own names for install.
3847 # Don't use installbsd from OSF since it installs stuff as root
3848 # by default.
3849 for ac_prog in ginstall scoinst install; do
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3852 if test $ac_prog = install &&
3853 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3854 # AIX install. It has an incompatible calling convention.
3855 :
3856 elif test $ac_prog = install &&
3857 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3858 # program-specific install script used by HP pwplus--don't use.
3859 :
3860 else
3861 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3862 break 3
3863 fi
3864 fi
3865 done
3866 done
3867 ;;
3868 esac
3869 done
3870
3871
3872 fi
3873 if test "${ac_cv_path_install+set}" = set; then
3874 INSTALL=$ac_cv_path_install
3875 else
3876 # As a last resort, use the slow shell script. We don't cache a
3877 # path for INSTALL within a source directory, because that will
3878 # break other packages using the cache if that directory is
3879 # removed, or if the path is relative.
3880 INSTALL=$ac_install_sh
3881 fi
3882 fi
3883 echo "$as_me:$LINENO: result: $INSTALL" >&5
3884 echo "${ECHO_T}$INSTALL" >&6
3885
3886 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3887 # It thinks the first close brace ends the variable substitution.
3888 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3889
3890 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3891
3892 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3893
3894 if test "x$RANLIB" = x; then
3895 if test -n "$ac_tool_prefix"; then
3896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3897 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_prog_RANLIB+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903 if test -n "$RANLIB"; then
3904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 break 2
3916 fi
3917 done
3918 done
3919
3920 fi
3921 fi
3922 RANLIB=$ac_cv_prog_RANLIB
3923 if test -n "$RANLIB"; then
3924 echo "$as_me:$LINENO: result: $RANLIB" >&5
3925 echo "${ECHO_T}$RANLIB" >&6
3926 else
3927 echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6
3929 fi
3930
3931 fi
3932 if test -z "$ac_cv_prog_RANLIB"; then
3933 ac_ct_RANLIB=$RANLIB
3934 # Extract the first word of "ranlib", so it can be a program name with args.
3935 set dummy ranlib; ac_word=$2
3936 echo "$as_me:$LINENO: checking for $ac_word" >&5
3937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3938 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941 if test -n "$ac_ct_RANLIB"; then
3942 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3943 else
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH
3946 do
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3951 ac_cv_prog_ac_ct_RANLIB="ranlib"
3952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 break 2
3954 fi
3955 done
3956 done
3957
3958 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3959 fi
3960 fi
3961 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3962 if test -n "$ac_ct_RANLIB"; then
3963 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3964 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3965 else
3966 echo "$as_me:$LINENO: result: no" >&5
3967 echo "${ECHO_T}no" >&6
3968 fi
3969
3970 RANLIB=$ac_ct_RANLIB
3971 else
3972 RANLIB="$ac_cv_prog_RANLIB"
3973 fi
3974
3975 fi
3976 # Extract the first word of "install-info", so it can be a program name with args.
3977 set dummy install-info; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983 case $INSTALL_INFO in
3984 [\\/]* | ?:[\\/]*)
3985 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3986 ;;
3987 *)
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3998 fi
3999 done
4000 done
4001
4002 ;;
4003 esac
4004 fi
4005 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4006
4007 if test -n "$INSTALL_INFO"; then
4008 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4009 echo "${ECHO_T}$INSTALL_INFO" >&6
4010 else
4011 echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6
4013 fi
4014
4015 # Extract the first word of "install-info", so it can be a program name with args.
4016 set dummy install-info; ac_word=$2
4017 echo "$as_me:$LINENO: checking for $ac_word" >&5
4018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4019 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 case $INSTALL_INFO in
4023 [\\/]* | ?:[\\/]*)
4024 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4025 ;;
4026 *)
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in /usr/sbin
4029 do
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4034 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 break 2
4037 fi
4038 done
4039 done
4040
4041 ;;
4042 esac
4043 fi
4044 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4045
4046 if test -n "$INSTALL_INFO"; then
4047 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4048 echo "${ECHO_T}$INSTALL_INFO" >&6
4049 else
4050 echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6
4052 fi
4053
4054 # Extract the first word of "install-info", so it can be a program name with args.
4055 set dummy install-info; ac_word=$2
4056 echo "$as_me:$LINENO: checking for $ac_word" >&5
4057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4058 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061 case $INSTALL_INFO in
4062 [\\/]* | ?:[\\/]*)
4063 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4064 ;;
4065 *)
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in /sbin
4068 do
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 break 2
4076 fi
4077 done
4078 done
4079
4080 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4081 ;;
4082 esac
4083 fi
4084 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4085
4086 if test -n "$INSTALL_INFO"; then
4087 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4088 echo "${ECHO_T}$INSTALL_INFO" >&6
4089 else
4090 echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6
4092 fi
4093
4094
4095
4096 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4097 then
4098 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4099 fi
4100
4101 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4102 then
4103 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4104 fi
4105
4106
4107 late_LDFLAGS=$LDFLAGS
4108 if test "$GCC" = yes; then
4109 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4110 else
4111 LDFLAGS="$LDFLAGS -znocombreloc"
4112 fi
4113
4114 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4115 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4116
4117 cat >conftest.$ac_ext <<_ACEOF
4118 main(){return 0;}
4119 _ACEOF
4120 rm -f conftest.$ac_objext conftest$ac_exeext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4122 (eval $ac_link) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -s conftest$ac_exeext'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 (eval $ac_try) 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 echo "$as_me:$LINENO: result: yes" >&5
4133 echo "${ECHO_T}yes" >&6
4134 else
4135 echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4137
4138 LDFLAGS=$late_LDFLAGS
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4141 fi
4142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4143
4144
4145 echo "$as_me:$LINENO: checking for egrep" >&5
4146 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4147 if test "${ac_cv_prog_egrep+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4151 then ac_cv_prog_egrep='grep -E'
4152 else ac_cv_prog_egrep='egrep'
4153 fi
4154 fi
4155 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4156 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4157 EGREP=$ac_cv_prog_egrep
4158
4159
4160
4161 echo "$as_me:$LINENO: checking for AIX" >&5
4162 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4163 cat >conftest.$ac_ext <<_ACEOF
4164 #line $LINENO "configure"
4165 /* confdefs.h. */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4170 #ifdef _AIX
4171 yes
4172 #endif
4173
4174 _ACEOF
4175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176 $EGREP "yes" >/dev/null 2>&1; then
4177 echo "$as_me:$LINENO: result: yes" >&5
4178 echo "${ECHO_T}yes" >&6
4179 cat >>confdefs.h <<\_ACEOF
4180 #define _ALL_SOURCE 1
4181 _ACEOF
4182
4183 else
4184 echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6
4186 fi
4187 rm -f conftest*
4188
4189
4190
4191
4192 #### Extract some information from the operating system and machine files.
4193
4194 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4195 - which libraries the lib-src programs will want, and
4196 - whether the GNU malloc routines are usable..." >&5
4197 echo "$as_me: checking the machine- and system-dependent files to find out
4198 - which libraries the lib-src programs will want, and
4199 - whether the GNU malloc routines are usable..." >&6;}
4200
4201 ### First figure out CFLAGS (which we use for running the compiler here)
4202 ### and REAL_CFLAGS (which we use for real compilation).
4203 ### The two are the same except on a few systems, where they are made
4204 ### different to work around various lossages. For example,
4205 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4206 ### as implying static linking.
4207
4208 ### If the CFLAGS env var is specified, we use that value
4209 ### instead of the default.
4210
4211 ### It's not important that this name contain the PID; you can't run
4212 ### two configures in the same directory and have anything work
4213 ### anyway.
4214 tempcname="conftest.c"
4215
4216 echo '
4217 #include "'${srcdir}'/src/'${opsysfile}'"
4218 #include "'${srcdir}'/src/'${machfile}'"
4219 #ifndef LIBS_MACHINE
4220 #define LIBS_MACHINE
4221 #endif
4222 #ifndef LIBS_SYSTEM
4223 #define LIBS_SYSTEM
4224 #endif
4225 #ifndef C_SWITCH_SYSTEM
4226 #define C_SWITCH_SYSTEM
4227 #endif
4228 #ifndef C_SWITCH_MACHINE
4229 #define C_SWITCH_MACHINE
4230 #endif
4231 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4232 configure___ c_switch_system=C_SWITCH_SYSTEM
4233 configure___ c_switch_machine=C_SWITCH_MACHINE
4234
4235 #ifndef LIB_X11_LIB
4236 #define LIB_X11_LIB -lX11
4237 #endif
4238
4239 #ifndef LIBX11_MACHINE
4240 #define LIBX11_MACHINE
4241 #endif
4242
4243 #ifndef LIBX11_SYSTEM
4244 #define LIBX11_SYSTEM
4245 #endif
4246 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4247
4248 #ifdef UNEXEC
4249 configure___ unexec=UNEXEC
4250 #else
4251 configure___ unexec=unexec.o
4252 #endif
4253
4254 #ifdef SYSTEM_MALLOC
4255 configure___ system_malloc=yes
4256 #else
4257 configure___ system_malloc=no
4258 #endif
4259
4260 #ifdef USE_MMAP_FOR_BUFFERS
4261 configure___ use_mmap_for_buffers=yes
4262 #else
4263 configure___ use_mmap_for_buffers=no
4264 #endif
4265
4266 #ifndef C_DEBUG_SWITCH
4267 #define C_DEBUG_SWITCH -g
4268 #endif
4269
4270 #ifndef C_OPTIMIZE_SWITCH
4271 #ifdef __GNUC__
4272 #define C_OPTIMIZE_SWITCH -O2
4273 #else
4274 #define C_OPTIMIZE_SWITCH -O
4275 #endif
4276 #endif
4277
4278 #ifndef LD_SWITCH_MACHINE
4279 #define LD_SWITCH_MACHINE
4280 #endif
4281
4282 #ifndef LD_SWITCH_SYSTEM
4283 #define LD_SWITCH_SYSTEM
4284 #endif
4285
4286 #ifndef LD_SWITCH_X_SITE_AUX
4287 #define LD_SWITCH_X_SITE_AUX
4288 #endif
4289
4290 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4291 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4292
4293 #ifdef THIS_IS_CONFIGURE
4294
4295 /* Get the CFLAGS for tests in configure. */
4296 #ifdef __GNUC__
4297 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4298 #else
4299 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4300 #endif
4301
4302 #else /* not THIS_IS_CONFIGURE */
4303
4304 /* Get the CFLAGS for real compilation. */
4305 #ifdef __GNUC__
4306 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4307 #else
4308 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4309 #endif
4310
4311 #endif /* not THIS_IS_CONFIGURE */
4312 ' > ${tempcname}
4313
4314 # The value of CPP is a quoted variable reference, so we need to do this
4315 # to get its actual value...
4316 CPP=`eval "echo $CPP"`
4317 eval `${CPP} -Isrc ${tempcname} \
4318 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4319 if test "x$SPECIFIED_CFLAGS" = x; then
4320 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4321 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4322 else
4323 REAL_CFLAGS="$CFLAGS"
4324 fi
4325 rm ${tempcname}
4326
4327 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4328
4329 ### Make sure subsequent tests use flags consistent with the build flags.
4330
4331 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4332 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4333 else
4334 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4335 fi
4336
4337
4338
4339
4340 cat >>confdefs.h <<\_ACEOF
4341 #define _GNU_SOURCE 1
4342 _ACEOF
4343
4344
4345
4346 # Check whether --enable-largefile or --disable-largefile was given.
4347 if test "${enable_largefile+set}" = set; then
4348 enableval="$enable_largefile"
4349
4350 fi;
4351 if test "$enable_largefile" != no; then
4352
4353 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4354 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4355 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358 ac_cv_sys_largefile_CC=no
4359 if test "$GCC" != yes; then
4360 ac_save_CC=$CC
4361 while :; do
4362 # IRIX 6.2 and later do not support large files by default,
4363 # so use the C compiler's -n32 option if that helps.
4364 cat >conftest.$ac_ext <<_ACEOF
4365 #line $LINENO "configure"
4366 /* confdefs.h. */
4367 _ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371 #include <sys/types.h>
4372 /* Check that off_t can represent 2**63 - 1 correctly.
4373 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4374 since some C++ compilers masquerading as C compilers
4375 incorrectly reject 9223372036854775807. */
4376 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4377 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4378 && LARGE_OFF_T % 2147483647 == 1)
4379 ? 1 : -1];
4380 int
4381 main ()
4382 {
4383
4384 ;
4385 return 0;
4386 }
4387 _ACEOF
4388 rm -f conftest.$ac_objext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390 (eval $ac_compile) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -s conftest.$ac_objext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 (eval $ac_try) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 break
4401 else
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4404
4405 fi
4406 rm -f conftest.$ac_objext
4407 CC="$CC -n32"
4408 rm -f conftest.$ac_objext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410 (eval $ac_compile) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -s conftest.$ac_objext'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 (eval $ac_try) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
4420 ac_cv_sys_largefile_CC=' -n32'; break
4421 else
4422 echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4424
4425 fi
4426 rm -f conftest.$ac_objext
4427 break
4428 done
4429 CC=$ac_save_CC
4430 rm -f conftest.$ac_ext
4431 fi
4432 fi
4433 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4434 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4435 if test "$ac_cv_sys_largefile_CC" != no; then
4436 CC=$CC$ac_cv_sys_largefile_CC
4437 fi
4438
4439 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4440 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4441 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 while :; do
4445 ac_cv_sys_file_offset_bits=no
4446 cat >conftest.$ac_ext <<_ACEOF
4447 #line $LINENO "configure"
4448 /* confdefs.h. */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 #include <sys/types.h>
4454 /* Check that off_t can represent 2**63 - 1 correctly.
4455 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4456 since some C++ compilers masquerading as C compilers
4457 incorrectly reject 9223372036854775807. */
4458 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4459 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4460 && LARGE_OFF_T % 2147483647 == 1)
4461 ? 1 : -1];
4462 int
4463 main ()
4464 {
4465
4466 ;
4467 return 0;
4468 }
4469 _ACEOF
4470 rm -f conftest.$ac_objext
4471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472 (eval $ac_compile) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } &&
4476 { ac_try='test -s conftest.$ac_objext'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 (eval $ac_try) 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4482 break
4483 else
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4486
4487 fi
4488 rm -f conftest.$ac_objext conftest.$ac_ext
4489 cat >conftest.$ac_ext <<_ACEOF
4490 #line $LINENO "configure"
4491 /* confdefs.h. */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4496 #define _FILE_OFFSET_BITS 64
4497 #include <sys/types.h>
4498 /* Check that off_t can represent 2**63 - 1 correctly.
4499 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4500 since some C++ compilers masquerading as C compilers
4501 incorrectly reject 9223372036854775807. */
4502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4503 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4504 && LARGE_OFF_T % 2147483647 == 1)
4505 ? 1 : -1];
4506 int
4507 main ()
4508 {
4509
4510 ;
4511 return 0;
4512 }
4513 _ACEOF
4514 rm -f conftest.$ac_objext
4515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4516 (eval $ac_compile) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } &&
4520 { ac_try='test -s conftest.$ac_objext'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 (eval $ac_try) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; }; then
4526 ac_cv_sys_file_offset_bits=64; break
4527 else
4528 echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4530
4531 fi
4532 rm -f conftest.$ac_objext conftest.$ac_ext
4533 break
4534 done
4535 fi
4536 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4537 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4538 if test "$ac_cv_sys_file_offset_bits" != no; then
4539
4540 cat >>confdefs.h <<_ACEOF
4541 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4542 _ACEOF
4543
4544 fi
4545 rm -f conftest*
4546 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4547 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4548 if test "${ac_cv_sys_large_files+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 while :; do
4552 ac_cv_sys_large_files=no
4553 cat >conftest.$ac_ext <<_ACEOF
4554 #line $LINENO "configure"
4555 /* confdefs.h. */
4556 _ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4560 #include <sys/types.h>
4561 /* Check that off_t can represent 2**63 - 1 correctly.
4562 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4563 since some C++ compilers masquerading as C compilers
4564 incorrectly reject 9223372036854775807. */
4565 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4566 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4567 && LARGE_OFF_T % 2147483647 == 1)
4568 ? 1 : -1];
4569 int
4570 main ()
4571 {
4572
4573 ;
4574 return 0;
4575 }
4576 _ACEOF
4577 rm -f conftest.$ac_objext
4578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579 (eval $ac_compile) 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } &&
4583 { ac_try='test -s conftest.$ac_objext'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 (eval $ac_try) 2>&5
4586 ac_status=$?
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; }; then
4589 break
4590 else
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4593
4594 fi
4595 rm -f conftest.$ac_objext conftest.$ac_ext
4596 cat >conftest.$ac_ext <<_ACEOF
4597 #line $LINENO "configure"
4598 /* confdefs.h. */
4599 _ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4603 #define _LARGE_FILES 1
4604 #include <sys/types.h>
4605 /* Check that off_t can represent 2**63 - 1 correctly.
4606 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4607 since some C++ compilers masquerading as C compilers
4608 incorrectly reject 9223372036854775807. */
4609 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4611 && LARGE_OFF_T % 2147483647 == 1)
4612 ? 1 : -1];
4613 int
4614 main ()
4615 {
4616
4617 ;
4618 return 0;
4619 }
4620 _ACEOF
4621 rm -f conftest.$ac_objext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4623 (eval $ac_compile) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } &&
4627 { ac_try='test -s conftest.$ac_objext'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 (eval $ac_try) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; }; then
4633 ac_cv_sys_large_files=1; break
4634 else
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4637
4638 fi
4639 rm -f conftest.$ac_objext conftest.$ac_ext
4640 break
4641 done
4642 fi
4643 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4644 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4645 if test "$ac_cv_sys_large_files" != no; then
4646
4647 cat >>confdefs.h <<_ACEOF
4648 #define _LARGE_FILES $ac_cv_sys_large_files
4649 _ACEOF
4650
4651 fi
4652 rm -f conftest*
4653 fi
4654
4655
4656 if test "${with_sound}" != "no"; then
4657 # Sound support for GNU/Linux and the free BSDs.
4658 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4659 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4660 if test "${ac_cv_header_stdc+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663 cat >conftest.$ac_ext <<_ACEOF
4664 #line $LINENO "configure"
4665 /* confdefs.h. */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670 #include <stdlib.h>
4671 #include <stdarg.h>
4672 #include <string.h>
4673 #include <float.h>
4674
4675 int
4676 main ()
4677 {
4678
4679 ;
4680 return 0;
4681 }
4682 _ACEOF
4683 rm -f conftest.$ac_objext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685 (eval $ac_compile) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -s conftest.$ac_objext'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 (eval $ac_try) 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4695 ac_cv_header_stdc=yes
4696 else
4697 echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4699
4700 ac_cv_header_stdc=no
4701 fi
4702 rm -f conftest.$ac_objext conftest.$ac_ext
4703
4704 if test $ac_cv_header_stdc = yes; then
4705 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4706 cat >conftest.$ac_ext <<_ACEOF
4707 #line $LINENO "configure"
4708 /* confdefs.h. */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713 #include <string.h>
4714
4715 _ACEOF
4716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4717 $EGREP "memchr" >/dev/null 2>&1; then
4718 :
4719 else
4720 ac_cv_header_stdc=no
4721 fi
4722 rm -f conftest*
4723
4724 fi
4725
4726 if test $ac_cv_header_stdc = yes; then
4727 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4728 cat >conftest.$ac_ext <<_ACEOF
4729 #line $LINENO "configure"
4730 /* confdefs.h. */
4731 _ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h. */
4735 #include <stdlib.h>
4736
4737 _ACEOF
4738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4739 $EGREP "free" >/dev/null 2>&1; then
4740 :
4741 else
4742 ac_cv_header_stdc=no
4743 fi
4744 rm -f conftest*
4745
4746 fi
4747
4748 if test $ac_cv_header_stdc = yes; then
4749 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4750 if test "$cross_compiling" = yes; then
4751 :
4752 else
4753 cat >conftest.$ac_ext <<_ACEOF
4754 #line $LINENO "configure"
4755 /* confdefs.h. */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4760 #include <ctype.h>
4761 #if ((' ' & 0x0FF) == 0x020)
4762 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4763 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4764 #else
4765 # define ISLOWER(c) \
4766 (('a' <= (c) && (c) <= 'i') \
4767 || ('j' <= (c) && (c) <= 'r') \
4768 || ('s' <= (c) && (c) <= 'z'))
4769 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4770 #endif
4771
4772 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4773 int
4774 main ()
4775 {
4776 int i;
4777 for (i = 0; i < 256; i++)
4778 if (XOR (islower (i), ISLOWER (i))
4779 || toupper (i) != TOUPPER (i))
4780 exit(2);
4781 exit (0);
4782 }
4783 _ACEOF
4784 rm -f conftest$ac_exeext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4786 (eval $ac_link) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 (eval $ac_try) 2>&5
4792 ac_status=$?
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4795 :
4796 else
4797 echo "$as_me: program exited with status $ac_status" >&5
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4800
4801 ( exit $ac_status )
4802 ac_cv_header_stdc=no
4803 fi
4804 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4805 fi
4806 fi
4807 fi
4808 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4809 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4810 if test $ac_cv_header_stdc = yes; then
4811
4812 cat >>confdefs.h <<\_ACEOF
4813 #define STDC_HEADERS 1
4814 _ACEOF
4815
4816 fi
4817
4818 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4829 inttypes.h stdint.h unistd.h
4830 do
4831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4832 echo "$as_me:$LINENO: checking for $ac_header" >&5
4833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837 cat >conftest.$ac_ext <<_ACEOF
4838 #line $LINENO "configure"
4839 /* confdefs.h. */
4840 _ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h. */
4844 $ac_includes_default
4845
4846 #include <$ac_header>
4847 _ACEOF
4848 rm -f conftest.$ac_objext
4849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>&5
4851 ac_status=$?
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } &&
4854 { ac_try='test -s conftest.$ac_objext'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; }; then
4860 eval "$as_ac_Header=yes"
4861 else
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4864
4865 eval "$as_ac_Header=no"
4866 fi
4867 rm -f conftest.$ac_objext conftest.$ac_ext
4868 fi
4869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4872 cat >>confdefs.h <<_ACEOF
4873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4874 _ACEOF
4875
4876 fi
4877
4878 done
4879
4880
4881
4882
4883
4884 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4885 do
4886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4888 echo "$as_me:$LINENO: checking for $ac_header" >&5
4889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 fi
4893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4895 else
4896 # Is the header compilable?
4897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4899 cat >conftest.$ac_ext <<_ACEOF
4900 #line $LINENO "configure"
4901 /* confdefs.h. */
4902 _ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4906 $ac_includes_default
4907 #include <$ac_header>
4908 _ACEOF
4909 rm -f conftest.$ac_objext
4910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911 (eval $ac_compile) 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try='test -s conftest.$ac_objext'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 (eval $ac_try) 2>&5
4918 ac_status=$?
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; }; then
4921 ac_header_compiler=yes
4922 else
4923 echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.$ac_ext >&5
4925
4926 ac_header_compiler=no
4927 fi
4928 rm -f conftest.$ac_objext conftest.$ac_ext
4929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4930 echo "${ECHO_T}$ac_header_compiler" >&6
4931
4932 # Is the header present?
4933 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4935 cat >conftest.$ac_ext <<_ACEOF
4936 #line $LINENO "configure"
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 #include <$ac_header>
4943 _ACEOF
4944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } >/dev/null; then
4952 if test -s conftest.err; then
4953 ac_cpp_err=$ac_c_preproc_warn_flag
4954 else
4955 ac_cpp_err=
4956 fi
4957 else
4958 ac_cpp_err=yes
4959 fi
4960 if test -z "$ac_cpp_err"; then
4961 ac_header_preproc=yes
4962 else
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4965
4966 ac_header_preproc=no
4967 fi
4968 rm -f conftest.err conftest.$ac_ext
4969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4970 echo "${ECHO_T}$ac_header_preproc" >&6
4971
4972 # So? What about this header?
4973 case $ac_header_compiler:$ac_header_preproc in
4974 yes:no )
4975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4979 (
4980 cat <<\_ASBOX
4981 ## ------------------------------------ ##
4982 ## Report this to bug-autoconf@gnu.org. ##
4983 ## ------------------------------------ ##
4984 _ASBOX
4985 ) |
4986 sed "s/^/$as_me: WARNING: /" >&2
4987 ;;
4988 no:yes )
4989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4995 (
4996 cat <<\_ASBOX
4997 ## ------------------------------------ ##
4998 ## Report this to bug-autoconf@gnu.org. ##
4999 ## ------------------------------------ ##
5000 _ASBOX
5001 ) |
5002 sed "s/^/$as_me: WARNING: /" >&2
5003 ;;
5004 esac
5005 echo "$as_me:$LINENO: checking for $ac_header" >&5
5006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010 eval "$as_ac_Header=$ac_header_preproc"
5011 fi
5012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5014
5015 fi
5016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5017 cat >>confdefs.h <<_ACEOF
5018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5019 _ACEOF
5020
5021 fi
5022
5023 done
5024
5025 # Emulation library used on NetBSD.
5026 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5027 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5028 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031 ac_check_lib_save_LIBS=$LIBS
5032 LIBS="-lossaudio $LIBS"
5033 cat >conftest.$ac_ext <<_ACEOF
5034 #line $LINENO "configure"
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040
5041 /* Override any gcc2 internal prototype to avoid an error. */
5042 #ifdef __cplusplus
5043 extern "C"
5044 #endif
5045 /* We use char because int might match the return type of a gcc2
5046 builtin and then its argument prototype would still apply. */
5047 char _oss_ioctl ();
5048 int
5049 main ()
5050 {
5051 _oss_ioctl ();
5052 ;
5053 return 0;
5054 }
5055 _ACEOF
5056 rm -f conftest.$ac_objext conftest$ac_exeext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5058 (eval $ac_link) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } &&
5062 { ac_try='test -s conftest$ac_exeext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 (eval $ac_try) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 ac_cv_lib_ossaudio__oss_ioctl=yes
5069 else
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5072
5073 ac_cv_lib_ossaudio__oss_ioctl=no
5074 fi
5075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5076 LIBS=$ac_check_lib_save_LIBS
5077 fi
5078 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5079 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5080 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5081 LIBSOUND=-lossaudio
5082 else
5083 LIBSOUND=
5084 fi
5085
5086
5087 fi
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5115 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5116 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5117 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5118 sys/utsname.h pwd.h
5119 do
5120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5122 echo "$as_me:$LINENO: checking for $ac_header" >&5
5123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 fi
5127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5129 else
5130 # Is the header compilable?
5131 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5133 cat >conftest.$ac_ext <<_ACEOF
5134 #line $LINENO "configure"
5135 /* confdefs.h. */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 $ac_includes_default
5141 #include <$ac_header>
5142 _ACEOF
5143 rm -f conftest.$ac_objext
5144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5145 (eval $ac_compile) 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } &&
5149 { ac_try='test -s conftest.$ac_objext'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 (eval $ac_try) 2>&5
5152 ac_status=$?
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; }; then
5155 ac_header_compiler=yes
5156 else
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5159
5160 ac_header_compiler=no
5161 fi
5162 rm -f conftest.$ac_objext conftest.$ac_ext
5163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5164 echo "${ECHO_T}$ac_header_compiler" >&6
5165
5166 # Is the header present?
5167 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5169 cat >conftest.$ac_ext <<_ACEOF
5170 #line $LINENO "configure"
5171 /* confdefs.h. */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 #include <$ac_header>
5177 _ACEOF
5178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5180 ac_status=$?
5181 grep -v '^ *+' conftest.er1 >conftest.err
5182 rm -f conftest.er1
5183 cat conftest.err >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } >/dev/null; then
5186 if test -s conftest.err; then
5187 ac_cpp_err=$ac_c_preproc_warn_flag
5188 else
5189 ac_cpp_err=
5190 fi
5191 else
5192 ac_cpp_err=yes
5193 fi
5194 if test -z "$ac_cpp_err"; then
5195 ac_header_preproc=yes
5196 else
5197 echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5199
5200 ac_header_preproc=no
5201 fi
5202 rm -f conftest.err conftest.$ac_ext
5203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5204 echo "${ECHO_T}$ac_header_preproc" >&6
5205
5206 # So? What about this header?
5207 case $ac_header_compiler:$ac_header_preproc in
5208 yes:no )
5209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5213 (
5214 cat <<\_ASBOX
5215 ## ------------------------------------ ##
5216 ## Report this to bug-autoconf@gnu.org. ##
5217 ## ------------------------------------ ##
5218 _ASBOX
5219 ) |
5220 sed "s/^/$as_me: WARNING: /" >&2
5221 ;;
5222 no:yes )
5223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5229 (
5230 cat <<\_ASBOX
5231 ## ------------------------------------ ##
5232 ## Report this to bug-autoconf@gnu.org. ##
5233 ## ------------------------------------ ##
5234 _ASBOX
5235 ) |
5236 sed "s/^/$as_me: WARNING: /" >&2
5237 ;;
5238 esac
5239 echo "$as_me:$LINENO: checking for $ac_header" >&5
5240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244 eval "$as_ac_Header=$ac_header_preproc"
5245 fi
5246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5248
5249 fi
5250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5251 cat >>confdefs.h <<_ACEOF
5252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5253 _ACEOF
5254
5255 fi
5256
5257 done
5258
5259
5260 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5261 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5262 cat >conftest.$ac_ext <<_ACEOF
5263 #line $LINENO "configure"
5264 /* confdefs.h. */
5265 _ACEOF
5266 cat confdefs.h >>conftest.$ac_ext
5267 cat >>conftest.$ac_ext <<_ACEOF
5268 /* end confdefs.h. */
5269 #include <sys/personality.h>
5270 int
5271 main ()
5272 {
5273 personality (PER_LINUX32)
5274 ;
5275 return 0;
5276 }
5277 _ACEOF
5278 rm -f conftest.$ac_objext
5279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5280 (eval $ac_compile) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } &&
5284 { ac_try='test -s conftest.$ac_objext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 (eval $ac_try) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 emacs_cv_personality_linux32=yes
5291 else
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5294
5295 emacs_cv_personality_linux32=no
5296 fi
5297 rm -f conftest.$ac_objext conftest.$ac_ext
5298 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5299 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5300
5301 if test $emacs_cv_personality_linux32 = yes; then
5302
5303 cat >>confdefs.h <<\_ACEOF
5304 #define HAVE_PERSONALITY_LINUX32 1
5305 _ACEOF
5306
5307 fi
5308
5309
5310 for ac_header in term.h
5311 do
5312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5313 echo "$as_me:$LINENO: checking for $ac_header" >&5
5314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318 cat >conftest.$ac_ext <<_ACEOF
5319 #line $LINENO "configure"
5320 /* confdefs.h. */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 #include <$ac_header>
5326 _ACEOF
5327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5329 ac_status=$?
5330 grep -v '^ *+' conftest.er1 >conftest.err
5331 rm -f conftest.er1
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } >/dev/null; then
5335 if test -s conftest.err; then
5336 ac_cpp_err=$ac_c_preproc_warn_flag
5337 else
5338 ac_cpp_err=
5339 fi
5340 else
5341 ac_cpp_err=yes
5342 fi
5343 if test -z "$ac_cpp_err"; then
5344 eval "$as_ac_Header=yes"
5345 else
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 eval "$as_ac_Header=no"
5350 fi
5351 rm -f conftest.err conftest.$ac_ext
5352 fi
5353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5356 cat >>confdefs.h <<_ACEOF
5357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5358 _ACEOF
5359
5360 fi
5361
5362 done
5363
5364 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5365 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5366 if test "${ac_cv_header_stdc+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369 cat >conftest.$ac_ext <<_ACEOF
5370 #line $LINENO "configure"
5371 /* confdefs.h. */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5376 #include <stdlib.h>
5377 #include <stdarg.h>
5378 #include <string.h>
5379 #include <float.h>
5380
5381 int
5382 main ()
5383 {
5384
5385 ;
5386 return 0;
5387 }
5388 _ACEOF
5389 rm -f conftest.$ac_objext
5390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5391 (eval $ac_compile) 2>&5
5392 ac_status=$?
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } &&
5395 { ac_try='test -s conftest.$ac_objext'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 (eval $ac_try) 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5401 ac_cv_header_stdc=yes
5402 else
5403 echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5405
5406 ac_cv_header_stdc=no
5407 fi
5408 rm -f conftest.$ac_objext conftest.$ac_ext
5409
5410 if test $ac_cv_header_stdc = yes; then
5411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5412 cat >conftest.$ac_ext <<_ACEOF
5413 #line $LINENO "configure"
5414 /* confdefs.h. */
5415 _ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5419 #include <string.h>
5420
5421 _ACEOF
5422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5423 $EGREP "memchr" >/dev/null 2>&1; then
5424 :
5425 else
5426 ac_cv_header_stdc=no
5427 fi
5428 rm -f conftest*
5429
5430 fi
5431
5432 if test $ac_cv_header_stdc = yes; then
5433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5434 cat >conftest.$ac_ext <<_ACEOF
5435 #line $LINENO "configure"
5436 /* confdefs.h. */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5441 #include <stdlib.h>
5442
5443 _ACEOF
5444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5445 $EGREP "free" >/dev/null 2>&1; then
5446 :
5447 else
5448 ac_cv_header_stdc=no
5449 fi
5450 rm -f conftest*
5451
5452 fi
5453
5454 if test $ac_cv_header_stdc = yes; then
5455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5456 if test "$cross_compiling" = yes; then
5457 :
5458 else
5459 cat >conftest.$ac_ext <<_ACEOF
5460 #line $LINENO "configure"
5461 /* confdefs.h. */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5466 #include <ctype.h>
5467 #if ((' ' & 0x0FF) == 0x020)
5468 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5469 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5470 #else
5471 # define ISLOWER(c) \
5472 (('a' <= (c) && (c) <= 'i') \
5473 || ('j' <= (c) && (c) <= 'r') \
5474 || ('s' <= (c) && (c) <= 'z'))
5475 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5476 #endif
5477
5478 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5479 int
5480 main ()
5481 {
5482 int i;
5483 for (i = 0; i < 256; i++)
5484 if (XOR (islower (i), ISLOWER (i))
5485 || toupper (i) != TOUPPER (i))
5486 exit(2);
5487 exit (0);
5488 }
5489 _ACEOF
5490 rm -f conftest$ac_exeext
5491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5492 (eval $ac_link) 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 (eval $ac_try) 2>&5
5498 ac_status=$?
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 :
5502 else
5503 echo "$as_me: program exited with status $ac_status" >&5
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5506
5507 ( exit $ac_status )
5508 ac_cv_header_stdc=no
5509 fi
5510 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5511 fi
5512 fi
5513 fi
5514 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5515 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5516 if test $ac_cv_header_stdc = yes; then
5517
5518 cat >>confdefs.h <<\_ACEOF
5519 #define STDC_HEADERS 1
5520 _ACEOF
5521
5522 fi
5523
5524 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5525 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5526 if test "${ac_cv_header_time+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 else
5529 cat >conftest.$ac_ext <<_ACEOF
5530 #line $LINENO "configure"
5531 /* confdefs.h. */
5532 _ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5536 #include <sys/types.h>
5537 #include <sys/time.h>
5538 #include <time.h>
5539
5540 int
5541 main ()
5542 {
5543 if ((struct tm *) 0)
5544 return 0;
5545 ;
5546 return 0;
5547 }
5548 _ACEOF
5549 rm -f conftest.$ac_objext
5550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5551 (eval $ac_compile) 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } &&
5555 { ac_try='test -s conftest.$ac_objext'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 (eval $ac_try) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5561 ac_cv_header_time=yes
5562 else
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5565
5566 ac_cv_header_time=no
5567 fi
5568 rm -f conftest.$ac_objext conftest.$ac_ext
5569 fi
5570 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5571 echo "${ECHO_T}$ac_cv_header_time" >&6
5572 if test $ac_cv_header_time = yes; then
5573
5574 cat >>confdefs.h <<\_ACEOF
5575 #define TIME_WITH_SYS_TIME 1
5576 _ACEOF
5577
5578 fi
5579
5580 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5581 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5582 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585 cat >conftest.$ac_ext <<_ACEOF
5586 #line $LINENO "configure"
5587 /* confdefs.h. */
5588 _ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5592 $ac_includes_default
5593 int
5594 main ()
5595 {
5596 #ifndef sys_siglist
5597 char *p = (char *) sys_siglist;
5598 #endif
5599
5600 ;
5601 return 0;
5602 }
5603 _ACEOF
5604 rm -f conftest.$ac_objext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5606 (eval $ac_compile) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try='test -s conftest.$ac_objext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 (eval $ac_try) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_have_decl_sys_siglist=yes
5617 else
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621 ac_cv_have_decl_sys_siglist=no
5622 fi
5623 rm -f conftest.$ac_objext conftest.$ac_ext
5624 fi
5625 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5626 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5627 if test $ac_cv_have_decl_sys_siglist = yes; then
5628
5629 cat >>confdefs.h <<_ACEOF
5630 #define HAVE_DECL_SYS_SIGLIST 1
5631 _ACEOF
5632
5633
5634 else
5635 cat >>confdefs.h <<_ACEOF
5636 #define HAVE_DECL_SYS_SIGLIST 0
5637 _ACEOF
5638
5639
5640 fi
5641
5642
5643 if test $ac_cv_have_decl_sys_siglist != yes; then
5644 # For Tru64, at least:
5645 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5646 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5647 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650 cat >conftest.$ac_ext <<_ACEOF
5651 #line $LINENO "configure"
5652 /* confdefs.h. */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 $ac_includes_default
5658 int
5659 main ()
5660 {
5661 #ifndef __sys_siglist
5662 char *p = (char *) __sys_siglist;
5663 #endif
5664
5665 ;
5666 return 0;
5667 }
5668 _ACEOF
5669 rm -f conftest.$ac_objext
5670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671 (eval $ac_compile) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } &&
5675 { ac_try='test -s conftest.$ac_objext'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 (eval $ac_try) 2>&5
5678 ac_status=$?
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; }; then
5681 ac_cv_have_decl___sys_siglist=yes
5682 else
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5685
5686 ac_cv_have_decl___sys_siglist=no
5687 fi
5688 rm -f conftest.$ac_objext conftest.$ac_ext
5689 fi
5690 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5691 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5692 if test $ac_cv_have_decl___sys_siglist = yes; then
5693
5694 cat >>confdefs.h <<_ACEOF
5695 #define HAVE_DECL___SYS_SIGLIST 1
5696 _ACEOF
5697
5698
5699 else
5700 cat >>confdefs.h <<_ACEOF
5701 #define HAVE_DECL___SYS_SIGLIST 0
5702 _ACEOF
5703
5704
5705 fi
5706
5707
5708 if test $ac_cv_have_decl___sys_siglist = yes; then
5709
5710 cat >>confdefs.h <<\_ACEOF
5711 #define sys_siglist __sys_siglist
5712 _ACEOF
5713
5714 fi
5715 fi
5716 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5717 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5718 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721 cat >conftest.$ac_ext <<_ACEOF
5722 #line $LINENO "configure"
5723 /* confdefs.h. */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728 #include <sys/types.h>
5729 #include <sys/wait.h>
5730 #ifndef WEXITSTATUS
5731 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5732 #endif
5733 #ifndef WIFEXITED
5734 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5735 #endif
5736
5737 int
5738 main ()
5739 {
5740 int s;
5741 wait (&s);
5742 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5743 ;
5744 return 0;
5745 }
5746 _ACEOF
5747 rm -f conftest.$ac_objext
5748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5749 (eval $ac_compile) 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } &&
5753 { ac_try='test -s conftest.$ac_objext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 (eval $ac_try) 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 ac_cv_header_sys_wait_h=yes
5760 else
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5763
5764 ac_cv_header_sys_wait_h=no
5765 fi
5766 rm -f conftest.$ac_objext conftest.$ac_ext
5767 fi
5768 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5769 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5770 if test $ac_cv_header_sys_wait_h = yes; then
5771
5772 cat >>confdefs.h <<\_ACEOF
5773 #define HAVE_SYS_WAIT_H 1
5774 _ACEOF
5775
5776 fi
5777
5778
5779 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5780 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5781 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784 cat >conftest.$ac_ext <<_ACEOF
5785 #line $LINENO "configure"
5786 /* confdefs.h. */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 #ifdef TIME_WITH_SYS_TIME
5792 #include <sys/time.h>
5793 #include <time.h>
5794 #else
5795 #ifdef HAVE_SYS_TIME_H
5796 #include <sys/time.h>
5797 #else
5798 #include <time.h>
5799 #endif
5800 #endif
5801 #ifdef HAVE_UTIME_H
5802 #include <utime.h>
5803 #endif
5804 int
5805 main ()
5806 {
5807 static struct utimbuf x; x.actime = x.modtime;
5808 ;
5809 return 0;
5810 }
5811 _ACEOF
5812 rm -f conftest.$ac_objext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814 (eval $ac_compile) 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
5818 { ac_try='test -s conftest.$ac_objext'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 emacs_cv_struct_utimbuf=yes
5825 else
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 emacs_cv_struct_utimbuf=no
5830 fi
5831 rm -f conftest.$ac_objext conftest.$ac_ext
5832 fi
5833 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5834 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5835 if test $emacs_cv_struct_utimbuf = yes; then
5836
5837 cat >>confdefs.h <<\_ACEOF
5838 #define HAVE_STRUCT_UTIMBUF 1
5839 _ACEOF
5840
5841 fi
5842
5843 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5844 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5845 if test "${ac_cv_type_signal+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848 cat >conftest.$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5850 /* confdefs.h. */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 #include <sys/types.h>
5856 #include <signal.h>
5857 #ifdef signal
5858 # undef signal
5859 #endif
5860 #ifdef __cplusplus
5861 extern "C" void (*signal (int, void (*)(int)))(int);
5862 #else
5863 void (*signal ()) ();
5864 #endif
5865
5866 int
5867 main ()
5868 {
5869 int i;
5870 ;
5871 return 0;
5872 }
5873 _ACEOF
5874 rm -f conftest.$ac_objext
5875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5876 (eval $ac_compile) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } &&
5880 { ac_try='test -s conftest.$ac_objext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_cv_type_signal=void
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891 ac_cv_type_signal=int
5892 fi
5893 rm -f conftest.$ac_objext conftest.$ac_ext
5894 fi
5895 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5896 echo "${ECHO_T}$ac_cv_type_signal" >&6
5897
5898 cat >>confdefs.h <<_ACEOF
5899 #define RETSIGTYPE $ac_cv_type_signal
5900 _ACEOF
5901
5902
5903
5904 echo "$as_me:$LINENO: checking for speed_t" >&5
5905 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5906 if test "${emacs_cv_speed_t+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909 cat >conftest.$ac_ext <<_ACEOF
5910 #line $LINENO "configure"
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 #include <termios.h>
5917 int
5918 main ()
5919 {
5920 speed_t x = 1;
5921 ;
5922 return 0;
5923 }
5924 _ACEOF
5925 rm -f conftest.$ac_objext
5926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5927 (eval $ac_compile) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try='test -s conftest.$ac_objext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 emacs_cv_speed_t=yes
5938 else
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942 emacs_cv_speed_t=no
5943 fi
5944 rm -f conftest.$ac_objext conftest.$ac_ext
5945 fi
5946 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5947 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5948 if test $emacs_cv_speed_t = yes; then
5949
5950 cat >>confdefs.h <<\_ACEOF
5951 #define HAVE_SPEED_T 1
5952 _ACEOF
5953
5954 fi
5955
5956 echo "$as_me:$LINENO: checking for struct timeval" >&5
5957 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5958 if test "${emacs_cv_struct_timeval+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961 cat >conftest.$ac_ext <<_ACEOF
5962 #line $LINENO "configure"
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #ifdef TIME_WITH_SYS_TIME
5969 #include <sys/time.h>
5970 #include <time.h>
5971 #else
5972 #ifdef HAVE_SYS_TIME_H
5973 #include <sys/time.h>
5974 #else
5975 #include <time.h>
5976 #endif
5977 #endif
5978 int
5979 main ()
5980 {
5981 static struct timeval x; x.tv_sec = x.tv_usec;
5982 ;
5983 return 0;
5984 }
5985 _ACEOF
5986 rm -f conftest.$ac_objext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988 (eval $ac_compile) 2>&5
5989 ac_status=$?
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -s conftest.$ac_objext'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 (eval $ac_try) 2>&5
5995 ac_status=$?
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
5998 emacs_cv_struct_timeval=yes
5999 else
6000 echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6002
6003 emacs_cv_struct_timeval=no
6004 fi
6005 rm -f conftest.$ac_objext conftest.$ac_ext
6006 fi
6007 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6008 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6009 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6010 if test $emacs_cv_struct_timeval = yes; then
6011
6012 cat >>confdefs.h <<\_ACEOF
6013 #define HAVE_TIMEVAL 1
6014 _ACEOF
6015
6016 fi
6017
6018 echo "$as_me:$LINENO: checking for struct exception" >&5
6019 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6020 if test "${emacs_cv_struct_exception+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 else
6023 cat >conftest.$ac_ext <<_ACEOF
6024 #line $LINENO "configure"
6025 /* confdefs.h. */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 #include <math.h>
6031 int
6032 main ()
6033 {
6034 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6035 ;
6036 return 0;
6037 }
6038 _ACEOF
6039 rm -f conftest.$ac_objext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6041 (eval $ac_compile) 2>&5
6042 ac_status=$?
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } &&
6045 { ac_try='test -s conftest.$ac_objext'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 (eval $ac_try) 2>&5
6048 ac_status=$?
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; }; then
6051 emacs_cv_struct_exception=yes
6052 else
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6055
6056 emacs_cv_struct_exception=no
6057 fi
6058 rm -f conftest.$ac_objext conftest.$ac_ext
6059 fi
6060 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6061 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6062 HAVE_EXCEPTION=$emacs_cv_struct_exception
6063 if test $emacs_cv_struct_exception != yes; then
6064
6065 cat >>confdefs.h <<\_ACEOF
6066 #define NO_MATHERR 1
6067 _ACEOF
6068
6069 fi
6070
6071
6072 for ac_header in sys/socket.h
6073 do
6074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6076 echo "$as_me:$LINENO: checking for $ac_header" >&5
6077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 fi
6081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6083 else
6084 # Is the header compilable?
6085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6087 cat >conftest.$ac_ext <<_ACEOF
6088 #line $LINENO "configure"
6089 /* confdefs.h. */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 $ac_includes_default
6095 #include <$ac_header>
6096 _ACEOF
6097 rm -f conftest.$ac_objext
6098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6099 (eval $ac_compile) 2>&5
6100 ac_status=$?
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } &&
6103 { ac_try='test -s conftest.$ac_objext'
6104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105 (eval $ac_try) 2>&5
6106 ac_status=$?
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }; }; then
6109 ac_header_compiler=yes
6110 else
6111 echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.$ac_ext >&5
6113
6114 ac_header_compiler=no
6115 fi
6116 rm -f conftest.$ac_objext conftest.$ac_ext
6117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6118 echo "${ECHO_T}$ac_header_compiler" >&6
6119
6120 # Is the header present?
6121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6123 cat >conftest.$ac_ext <<_ACEOF
6124 #line $LINENO "configure"
6125 /* confdefs.h. */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 #include <$ac_header>
6131 _ACEOF
6132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6134 ac_status=$?
6135 grep -v '^ *+' conftest.er1 >conftest.err
6136 rm -f conftest.er1
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } >/dev/null; then
6140 if test -s conftest.err; then
6141 ac_cpp_err=$ac_c_preproc_warn_flag
6142 else
6143 ac_cpp_err=
6144 fi
6145 else
6146 ac_cpp_err=yes
6147 fi
6148 if test -z "$ac_cpp_err"; then
6149 ac_header_preproc=yes
6150 else
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154 ac_header_preproc=no
6155 fi
6156 rm -f conftest.err conftest.$ac_ext
6157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6158 echo "${ECHO_T}$ac_header_preproc" >&6
6159
6160 # So? What about this header?
6161 case $ac_header_compiler:$ac_header_preproc in
6162 yes:no )
6163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6167 (
6168 cat <<\_ASBOX
6169 ## ------------------------------------ ##
6170 ## Report this to bug-autoconf@gnu.org. ##
6171 ## ------------------------------------ ##
6172 _ASBOX
6173 ) |
6174 sed "s/^/$as_me: WARNING: /" >&2
6175 ;;
6176 no:yes )
6177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6183 (
6184 cat <<\_ASBOX
6185 ## ------------------------------------ ##
6186 ## Report this to bug-autoconf@gnu.org. ##
6187 ## ------------------------------------ ##
6188 _ASBOX
6189 ) |
6190 sed "s/^/$as_me: WARNING: /" >&2
6191 ;;
6192 esac
6193 echo "$as_me:$LINENO: checking for $ac_header" >&5
6194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198 eval "$as_ac_Header=$ac_header_preproc"
6199 fi
6200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6202
6203 fi
6204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6205 cat >>confdefs.h <<_ACEOF
6206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6207 _ACEOF
6208
6209 fi
6210
6211 done
6212
6213
6214 for ac_header in net/if.h
6215 do
6216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6217 echo "$as_me:$LINENO: checking for $ac_header" >&5
6218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222 cat >conftest.$ac_ext <<_ACEOF
6223 #line $LINENO "configure"
6224 /* confdefs.h. */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 $ac_includes_default
6230 #if HAVE_SYS_SOCKET_H
6231 #include <sys/socket.h>
6232 #endif
6233
6234 #include <$ac_header>
6235 _ACEOF
6236 rm -f conftest.$ac_objext
6237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6238 (eval $ac_compile) 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } &&
6242 { ac_try='test -s conftest.$ac_objext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 (eval $ac_try) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6248 eval "$as_ac_Header=yes"
6249 else
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6252
6253 eval "$as_ac_Header=no"
6254 fi
6255 rm -f conftest.$ac_objext conftest.$ac_ext
6256 fi
6257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6260 cat >>confdefs.h <<_ACEOF
6261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6262 _ACEOF
6263
6264 fi
6265
6266 done
6267
6268
6269 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6270 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6271 if test "${ac_cv_struct_tm+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274 cat >conftest.$ac_ext <<_ACEOF
6275 #line $LINENO "configure"
6276 /* confdefs.h. */
6277 _ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6281 #include <sys/types.h>
6282 #include <time.h>
6283
6284 int
6285 main ()
6286 {
6287 struct tm *tp; tp->tm_sec;
6288 ;
6289 return 0;
6290 }
6291 _ACEOF
6292 rm -f conftest.$ac_objext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6294 (eval $ac_compile) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try='test -s conftest.$ac_objext'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 (eval $ac_try) 2>&5
6301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; }; then
6304 ac_cv_struct_tm=time.h
6305 else
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6308
6309 ac_cv_struct_tm=sys/time.h
6310 fi
6311 rm -f conftest.$ac_objext conftest.$ac_ext
6312 fi
6313 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6314 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6315 if test $ac_cv_struct_tm = sys/time.h; then
6316
6317 cat >>confdefs.h <<\_ACEOF
6318 #define TM_IN_SYS_TIME 1
6319 _ACEOF
6320
6321 fi
6322
6323 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6324 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6325 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328 cat >conftest.$ac_ext <<_ACEOF
6329 #line $LINENO "configure"
6330 /* confdefs.h. */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 #include <sys/types.h>
6336 #include <$ac_cv_struct_tm>
6337
6338
6339 int
6340 main ()
6341 {
6342 static struct tm ac_aggr;
6343 if (ac_aggr.tm_zone)
6344 return 0;
6345 ;
6346 return 0;
6347 }
6348 _ACEOF
6349 rm -f conftest.$ac_objext
6350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6351 (eval $ac_compile) 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try='test -s conftest.$ac_objext'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 ac_cv_member_struct_tm_tm_zone=yes
6362 else
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6365
6366 cat >conftest.$ac_ext <<_ACEOF
6367 #line $LINENO "configure"
6368 /* confdefs.h. */
6369 _ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6373 #include <sys/types.h>
6374 #include <$ac_cv_struct_tm>
6375
6376
6377 int
6378 main ()
6379 {
6380 static struct tm ac_aggr;
6381 if (sizeof ac_aggr.tm_zone)
6382 return 0;
6383 ;
6384 return 0;
6385 }
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } &&
6393 { ac_try='test -s conftest.$ac_objext'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; }; then
6399 ac_cv_member_struct_tm_tm_zone=yes
6400 else
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6403
6404 ac_cv_member_struct_tm_tm_zone=no
6405 fi
6406 rm -f conftest.$ac_objext conftest.$ac_ext
6407 fi
6408 rm -f conftest.$ac_objext conftest.$ac_ext
6409 fi
6410 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6411 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6412 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6413
6414 cat >>confdefs.h <<_ACEOF
6415 #define HAVE_STRUCT_TM_TM_ZONE 1
6416 _ACEOF
6417
6418
6419 fi
6420
6421 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6422
6423 cat >>confdefs.h <<\_ACEOF
6424 #define HAVE_TM_ZONE 1
6425 _ACEOF
6426
6427 else
6428 echo "$as_me:$LINENO: checking for tzname" >&5
6429 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6430 if test "${ac_cv_var_tzname+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433 cat >conftest.$ac_ext <<_ACEOF
6434 #line $LINENO "configure"
6435 /* confdefs.h. */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6440 #include <time.h>
6441 #ifndef tzname /* For SGI. */
6442 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6443 #endif
6444
6445 int
6446 main ()
6447 {
6448 atoi(*tzname);
6449 ;
6450 return 0;
6451 }
6452 _ACEOF
6453 rm -f conftest.$ac_objext conftest$ac_exeext
6454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6455 (eval $ac_link) 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } &&
6459 { ac_try='test -s conftest$ac_exeext'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 (eval $ac_try) 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; }; then
6465 ac_cv_var_tzname=yes
6466 else
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6469
6470 ac_cv_var_tzname=no
6471 fi
6472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6473 fi
6474 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6475 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6476 if test $ac_cv_var_tzname = yes; then
6477
6478 cat >>confdefs.h <<\_ACEOF
6479 #define HAVE_TZNAME 1
6480 _ACEOF
6481
6482 fi
6483 fi
6484
6485 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6486 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6487 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490 cat >conftest.$ac_ext <<_ACEOF
6491 #line $LINENO "configure"
6492 /* confdefs.h. */
6493 _ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6497 #include <time.h>
6498
6499 int
6500 main ()
6501 {
6502 static struct tm ac_aggr;
6503 if (ac_aggr.tm_gmtoff)
6504 return 0;
6505 ;
6506 return 0;
6507 }
6508 _ACEOF
6509 rm -f conftest.$ac_objext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6511 (eval $ac_compile) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -s conftest.$ac_objext'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 (eval $ac_try) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 ac_cv_member_struct_tm_tm_gmtoff=yes
6522 else
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6525
6526 cat >conftest.$ac_ext <<_ACEOF
6527 #line $LINENO "configure"
6528 /* confdefs.h. */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 #include <time.h>
6534
6535 int
6536 main ()
6537 {
6538 static struct tm ac_aggr;
6539 if (sizeof ac_aggr.tm_gmtoff)
6540 return 0;
6541 ;
6542 return 0;
6543 }
6544 _ACEOF
6545 rm -f conftest.$ac_objext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6547 (eval $ac_compile) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -s conftest.$ac_objext'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 (eval $ac_try) 2>&5
6554 ac_status=$?
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; }; then
6557 ac_cv_member_struct_tm_tm_gmtoff=yes
6558 else
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6561
6562 ac_cv_member_struct_tm_tm_gmtoff=no
6563 fi
6564 rm -f conftest.$ac_objext conftest.$ac_ext
6565 fi
6566 rm -f conftest.$ac_objext conftest.$ac_ext
6567 fi
6568 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6569 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6570 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6571
6572 cat >>confdefs.h <<\_ACEOF
6573 #define HAVE_TM_GMTOFF 1
6574 _ACEOF
6575
6576 fi
6577
6578 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6579 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6580 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 else
6583 cat >conftest.$ac_ext <<_ACEOF
6584 #line $LINENO "configure"
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 $ac_includes_default
6591 #if HAVE_SYS_SOCKET_H
6592 #include <sys/socket.h>
6593 #endif
6594 #if HAVE_NET_IF_H
6595 #include <net/if.h>
6596 #endif
6597
6598 int
6599 main ()
6600 {
6601 static struct ifreq ac_aggr;
6602 if (ac_aggr.ifr_flags)
6603 return 0;
6604 ;
6605 return 0;
6606 }
6607 _ACEOF
6608 rm -f conftest.$ac_objext
6609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6610 (eval $ac_compile) 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } &&
6614 { ac_try='test -s conftest.$ac_objext'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 ac_cv_member_struct_ifreq_ifr_flags=yes
6621 else
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6624
6625 cat >conftest.$ac_ext <<_ACEOF
6626 #line $LINENO "configure"
6627 /* confdefs.h. */
6628 _ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6632 $ac_includes_default
6633 #if HAVE_SYS_SOCKET_H
6634 #include <sys/socket.h>
6635 #endif
6636 #if HAVE_NET_IF_H
6637 #include <net/if.h>
6638 #endif
6639
6640 int
6641 main ()
6642 {
6643 static struct ifreq ac_aggr;
6644 if (sizeof ac_aggr.ifr_flags)
6645 return 0;
6646 ;
6647 return 0;
6648 }
6649 _ACEOF
6650 rm -f conftest.$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652 (eval $ac_compile) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } &&
6656 { ac_try='test -s conftest.$ac_objext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 (eval $ac_try) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 ac_cv_member_struct_ifreq_ifr_flags=yes
6663 else
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6666
6667 ac_cv_member_struct_ifreq_ifr_flags=no
6668 fi
6669 rm -f conftest.$ac_objext conftest.$ac_ext
6670 fi
6671 rm -f conftest.$ac_objext conftest.$ac_ext
6672 fi
6673 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6674 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6675 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6676
6677 cat >>confdefs.h <<_ACEOF
6678 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6679 _ACEOF
6680
6681
6682 fi
6683 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6684 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6685 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688 cat >conftest.$ac_ext <<_ACEOF
6689 #line $LINENO "configure"
6690 /* confdefs.h. */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 $ac_includes_default
6696 #if HAVE_SYS_SOCKET_H
6697 #include <sys/socket.h>
6698 #endif
6699 #if HAVE_NET_IF_H
6700 #include <net/if.h>
6701 #endif
6702
6703 int
6704 main ()
6705 {
6706 static struct ifreq ac_aggr;
6707 if (ac_aggr.ifr_hwaddr)
6708 return 0;
6709 ;
6710 return 0;
6711 }
6712 _ACEOF
6713 rm -f conftest.$ac_objext
6714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6715 (eval $ac_compile) 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } &&
6719 { ac_try='test -s conftest.$ac_objext'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 (eval $ac_try) 2>&5
6722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; }; then
6725 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
6726 else
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730 cat >conftest.$ac_ext <<_ACEOF
6731 #line $LINENO "configure"
6732 /* confdefs.h. */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 $ac_includes_default
6738 #if HAVE_SYS_SOCKET_H
6739 #include <sys/socket.h>
6740 #endif
6741 #if HAVE_NET_IF_H
6742 #include <net/if.h>
6743 #endif
6744
6745 int
6746 main ()
6747 {
6748 static struct ifreq ac_aggr;
6749 if (sizeof ac_aggr.ifr_hwaddr)
6750 return 0;
6751 ;
6752 return 0;
6753 }
6754 _ACEOF
6755 rm -f conftest.$ac_objext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6757 (eval $ac_compile) 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } &&
6761 { ac_try='test -s conftest.$ac_objext'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 (eval $ac_try) 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; }; then
6767 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
6768 else
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6771
6772 ac_cv_member_struct_ifreq_ifr_hwaddr=no
6773 fi
6774 rm -f conftest.$ac_objext conftest.$ac_ext
6775 fi
6776 rm -f conftest.$ac_objext conftest.$ac_ext
6777 fi
6778 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
6779 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
6780 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6781
6782 cat >>confdefs.h <<_ACEOF
6783 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6784 _ACEOF
6785
6786
6787 fi
6788 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
6789 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
6790 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793 cat >conftest.$ac_ext <<_ACEOF
6794 #line $LINENO "configure"
6795 /* confdefs.h. */
6796 _ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6800 $ac_includes_default
6801 #if HAVE_SYS_SOCKET_H
6802 #include <sys/socket.h>
6803 #endif
6804 #if HAVE_NET_IF_H
6805 #include <net/if.h>
6806 #endif
6807
6808 int
6809 main ()
6810 {
6811 static struct ifreq ac_aggr;
6812 if (ac_aggr.ifr_netmask)
6813 return 0;
6814 ;
6815 return 0;
6816 }
6817 _ACEOF
6818 rm -f conftest.$ac_objext
6819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6820 (eval $ac_compile) 2>&5
6821 ac_status=$?
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
6824 { ac_try='test -s conftest.$ac_objext'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 (eval $ac_try) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6830 ac_cv_member_struct_ifreq_ifr_netmask=yes
6831 else
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6834
6835 cat >conftest.$ac_ext <<_ACEOF
6836 #line $LINENO "configure"
6837 /* confdefs.h. */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6842 $ac_includes_default
6843 #if HAVE_SYS_SOCKET_H
6844 #include <sys/socket.h>
6845 #endif
6846 #if HAVE_NET_IF_H
6847 #include <net/if.h>
6848 #endif
6849
6850 int
6851 main ()
6852 {
6853 static struct ifreq ac_aggr;
6854 if (sizeof ac_aggr.ifr_netmask)
6855 return 0;
6856 ;
6857 return 0;
6858 }
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>&5
6863 ac_status=$?
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); } &&
6866 { ac_try='test -s conftest.$ac_objext'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 (eval $ac_try) 2>&5
6869 ac_status=$?
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6872 ac_cv_member_struct_ifreq_ifr_netmask=yes
6873 else
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6876
6877 ac_cv_member_struct_ifreq_ifr_netmask=no
6878 fi
6879 rm -f conftest.$ac_objext conftest.$ac_ext
6880 fi
6881 rm -f conftest.$ac_objext conftest.$ac_ext
6882 fi
6883 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
6884 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
6885 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
6886
6887 cat >>confdefs.h <<_ACEOF
6888 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6889 _ACEOF
6890
6891
6892 fi
6893 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
6894 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
6895 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898 cat >conftest.$ac_ext <<_ACEOF
6899 #line $LINENO "configure"
6900 /* confdefs.h. */
6901 _ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6905 $ac_includes_default
6906 #if HAVE_SYS_SOCKET_H
6907 #include <sys/socket.h>
6908 #endif
6909 #if HAVE_NET_IF_H
6910 #include <net/if.h>
6911 #endif
6912
6913 int
6914 main ()
6915 {
6916 static struct ifreq ac_aggr;
6917 if (ac_aggr.ifr_broadaddr)
6918 return 0;
6919 ;
6920 return 0;
6921 }
6922 _ACEOF
6923 rm -f conftest.$ac_objext
6924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6925 (eval $ac_compile) 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } &&
6929 { ac_try='test -s conftest.$ac_objext'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 (eval $ac_try) 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
6936 else
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6939
6940 cat >conftest.$ac_ext <<_ACEOF
6941 #line $LINENO "configure"
6942 /* confdefs.h. */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6947 $ac_includes_default
6948 #if HAVE_SYS_SOCKET_H
6949 #include <sys/socket.h>
6950 #endif
6951 #if HAVE_NET_IF_H
6952 #include <net/if.h>
6953 #endif
6954
6955 int
6956 main ()
6957 {
6958 static struct ifreq ac_aggr;
6959 if (sizeof ac_aggr.ifr_broadaddr)
6960 return 0;
6961 ;
6962 return 0;
6963 }
6964 _ACEOF
6965 rm -f conftest.$ac_objext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967 (eval $ac_compile) 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } &&
6971 { ac_try='test -s conftest.$ac_objext'
6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 (eval $ac_try) 2>&5
6974 ac_status=$?
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; }; then
6977 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
6978 else
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6981
6982 ac_cv_member_struct_ifreq_ifr_broadaddr=no
6983 fi
6984 rm -f conftest.$ac_objext conftest.$ac_ext
6985 fi
6986 rm -f conftest.$ac_objext conftest.$ac_ext
6987 fi
6988 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
6989 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
6990 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
6991
6992 cat >>confdefs.h <<_ACEOF
6993 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6994 _ACEOF
6995
6996
6997 fi
6998 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
6999 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7000 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003 cat >conftest.$ac_ext <<_ACEOF
7004 #line $LINENO "configure"
7005 /* confdefs.h. */
7006 _ACEOF
7007 cat confdefs.h >>conftest.$ac_ext
7008 cat >>conftest.$ac_ext <<_ACEOF
7009 /* end confdefs.h. */
7010 $ac_includes_default
7011 #if HAVE_SYS_SOCKET_H
7012 #include <sys/socket.h>
7013 #endif
7014 #if HAVE_NET_IF_H
7015 #include <net/if.h>
7016 #endif
7017
7018 int
7019 main ()
7020 {
7021 static struct ifreq ac_aggr;
7022 if (ac_aggr.ifr_addr)
7023 return 0;
7024 ;
7025 return 0;
7026 }
7027 _ACEOF
7028 rm -f conftest.$ac_objext
7029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7030 (eval $ac_compile) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -s conftest.$ac_objext'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 (eval $ac_try) 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7040 ac_cv_member_struct_ifreq_ifr_addr=yes
7041 else
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7044
7045 cat >conftest.$ac_ext <<_ACEOF
7046 #line $LINENO "configure"
7047 /* confdefs.h. */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 $ac_includes_default
7053 #if HAVE_SYS_SOCKET_H
7054 #include <sys/socket.h>
7055 #endif
7056 #if HAVE_NET_IF_H
7057 #include <net/if.h>
7058 #endif
7059
7060 int
7061 main ()
7062 {
7063 static struct ifreq ac_aggr;
7064 if (sizeof ac_aggr.ifr_addr)
7065 return 0;
7066 ;
7067 return 0;
7068 }
7069 _ACEOF
7070 rm -f conftest.$ac_objext
7071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7072 (eval $ac_compile) 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } &&
7076 { ac_try='test -s conftest.$ac_objext'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 (eval $ac_try) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7082 ac_cv_member_struct_ifreq_ifr_addr=yes
7083 else
7084 echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7086
7087 ac_cv_member_struct_ifreq_ifr_addr=no
7088 fi
7089 rm -f conftest.$ac_objext conftest.$ac_ext
7090 fi
7091 rm -f conftest.$ac_objext conftest.$ac_ext
7092 fi
7093 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7094 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7095 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7096
7097 cat >>confdefs.h <<_ACEOF
7098 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7099 _ACEOF
7100
7101
7102 fi
7103
7104
7105
7106 echo "$as_me:$LINENO: checking for function prototypes" >&5
7107 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7108 if test "$ac_cv_prog_cc_stdc" != no; then
7109 echo "$as_me:$LINENO: result: yes" >&5
7110 echo "${ECHO_T}yes" >&6
7111
7112 cat >>confdefs.h <<\_ACEOF
7113 #define PROTOTYPES 1
7114 _ACEOF
7115
7116
7117 cat >>confdefs.h <<\_ACEOF
7118 #define __PROTOTYPES 1
7119 _ACEOF
7120
7121 else
7122 echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6
7124 fi
7125
7126 echo "$as_me:$LINENO: checking for working volatile" >&5
7127 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7128 if test "${ac_cv_c_volatile+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131 cat >conftest.$ac_ext <<_ACEOF
7132 #line $LINENO "configure"
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138
7139 int
7140 main ()
7141 {
7142
7143 volatile int x;
7144 int * volatile y;
7145 ;
7146 return 0;
7147 }
7148 _ACEOF
7149 rm -f conftest.$ac_objext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151 (eval $ac_compile) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } &&
7155 { ac_try='test -s conftest.$ac_objext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_cv_c_volatile=yes
7162 else
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7165
7166 ac_cv_c_volatile=no
7167 fi
7168 rm -f conftest.$ac_objext conftest.$ac_ext
7169 fi
7170 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7171 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7172 if test $ac_cv_c_volatile = no; then
7173
7174 cat >>confdefs.h <<\_ACEOF
7175 #define volatile
7176 _ACEOF
7177
7178 fi
7179
7180 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7181 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7182 if test "${ac_cv_c_const+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185 cat >conftest.$ac_ext <<_ACEOF
7186 #line $LINENO "configure"
7187 /* confdefs.h. */
7188 _ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192
7193 int
7194 main ()
7195 {
7196 /* FIXME: Include the comments suggested by Paul. */
7197 #ifndef __cplusplus
7198 /* Ultrix mips cc rejects this. */
7199 typedef int charset[2];
7200 const charset x;
7201 /* SunOS 4.1.1 cc rejects this. */
7202 char const *const *ccp;
7203 char **p;
7204 /* NEC SVR4.0.2 mips cc rejects this. */
7205 struct point {int x, y;};
7206 static struct point const zero = {0,0};
7207 /* AIX XL C 1.02.0.0 rejects this.
7208 It does not let you subtract one const X* pointer from another in
7209 an arm of an if-expression whose if-part is not a constant
7210 expression */
7211 const char *g = "string";
7212 ccp = &g + (g ? g-g : 0);
7213 /* HPUX 7.0 cc rejects these. */
7214 ++ccp;
7215 p = (char**) ccp;
7216 ccp = (char const *const *) p;
7217 { /* SCO 3.2v4 cc rejects this. */
7218 char *t;
7219 char const *s = 0 ? (char *) 0 : (char const *) 0;
7220
7221 *t++ = 0;
7222 }
7223 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7224 int x[] = {25, 17};
7225 const int *foo = &x[0];
7226 ++foo;
7227 }
7228 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7229 typedef const int *iptr;
7230 iptr p = 0;
7231 ++p;
7232 }
7233 { /* AIX XL C 1.02.0.0 rejects this saying
7234 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7235 struct s { int j; const int *ap[3]; };
7236 struct s *b; b->j = 5;
7237 }
7238 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7239 const int foo = 10;
7240 }
7241 #endif
7242
7243 ;
7244 return 0;
7245 }
7246 _ACEOF
7247 rm -f conftest.$ac_objext
7248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7249 (eval $ac_compile) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } &&
7253 { ac_try='test -s conftest.$ac_objext'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 (eval $ac_try) 2>&5
7256 ac_status=$?
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; }; then
7259 ac_cv_c_const=yes
7260 else
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7263
7264 ac_cv_c_const=no
7265 fi
7266 rm -f conftest.$ac_objext conftest.$ac_ext
7267 fi
7268 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7269 echo "${ECHO_T}$ac_cv_c_const" >&6
7270 if test $ac_cv_c_const = no; then
7271
7272 cat >>confdefs.h <<\_ACEOF
7273 #define const
7274 _ACEOF
7275
7276 fi
7277
7278 echo "$as_me:$LINENO: checking for void * support" >&5
7279 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7280 if test "${emacs_cv_void_star+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283 cat >conftest.$ac_ext <<_ACEOF
7284 #line $LINENO "configure"
7285 /* confdefs.h. */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290
7291 int
7292 main ()
7293 {
7294 void * foo;
7295 ;
7296 return 0;
7297 }
7298 _ACEOF
7299 rm -f conftest.$ac_objext
7300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7301 (eval $ac_compile) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } &&
7305 { ac_try='test -s conftest.$ac_objext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 (eval $ac_try) 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 emacs_cv_void_star=yes
7312 else
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7315
7316 emacs_cv_void_star=no
7317 fi
7318 rm -f conftest.$ac_objext conftest.$ac_ext
7319 fi
7320 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7321 echo "${ECHO_T}$emacs_cv_void_star" >&6
7322 if test $emacs_cv_void_star = yes; then
7323 cat >>confdefs.h <<\_ACEOF
7324 #define POINTER_TYPE void
7325 _ACEOF
7326
7327 else
7328 cat >>confdefs.h <<\_ACEOF
7329 #define POINTER_TYPE char
7330 _ACEOF
7331
7332 fi
7333
7334
7335
7336
7337
7338 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7339 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7340 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
7341 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344 cat >conftest.make <<\_ACEOF
7345 all:
7346 @echo 'ac_maketemp="$(MAKE)"'
7347 _ACEOF
7348 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7349 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7350 if test -n "$ac_maketemp"; then
7351 eval ac_cv_prog_make_${ac_make}_set=yes
7352 else
7353 eval ac_cv_prog_make_${ac_make}_set=no
7354 fi
7355 rm -f conftest.make
7356 fi
7357 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7358 echo "$as_me:$LINENO: result: yes" >&5
7359 echo "${ECHO_T}yes" >&6
7360 SET_MAKE=
7361 else
7362 echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6
7364 SET_MAKE="MAKE=${MAKE-make}"
7365 fi
7366
7367
7368 echo "$as_me:$LINENO: checking for long file names" >&5
7369 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7370 if test "${ac_cv_sys_long_file_names+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 else
7373 ac_cv_sys_long_file_names=yes
7374 # Test for long file names in all the places we know might matter:
7375 # . the current directory, where building will happen
7376 # $prefix/lib where we will be installing things
7377 # $exec_prefix/lib likewise
7378 # eval it to expand exec_prefix.
7379 # $TMPDIR if set, where it might want to write temporary files
7380 # if $TMPDIR is not set:
7381 # /tmp where it might want to write temporary files
7382 # /var/tmp likewise
7383 # /usr/tmp likewise
7384 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7385 ac_tmpdirs=$TMPDIR
7386 else
7387 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7388 fi
7389 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7390 test -d $ac_dir || continue
7391 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7392 ac_xdir=$ac_dir/cf$$
7393 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7394 ac_tf1=$ac_xdir/conftest9012345
7395 ac_tf2=$ac_xdir/conftest9012346
7396 (echo 1 >$ac_tf1) 2>/dev/null
7397 (echo 2 >$ac_tf2) 2>/dev/null
7398 ac_val=`cat $ac_tf1 2>/dev/null`
7399 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7400 ac_cv_sys_long_file_names=no
7401 rm -rf $ac_xdir 2>/dev/null
7402 break
7403 fi
7404 rm -rf $ac_xdir 2>/dev/null
7405 done
7406 fi
7407 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7408 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7409 if test $ac_cv_sys_long_file_names = yes; then
7410
7411 cat >>confdefs.h <<\_ACEOF
7412 #define HAVE_LONG_FILE_NAMES 1
7413 _ACEOF
7414
7415 fi
7416
7417
7418 #### Choose a window system.
7419
7420 echo "$as_me:$LINENO: checking for X" >&5
7421 echo $ECHO_N "checking for X... $ECHO_C" >&6
7422
7423
7424 # Check whether --with-x or --without-x was given.
7425 if test "${with_x+set}" = set; then
7426 withval="$with_x"
7427
7428 fi;
7429 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7430 if test "x$with_x" = xno; then
7431 # The user explicitly disabled X.
7432 have_x=disabled
7433 else
7434 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7435 # Both variables are already set.
7436 have_x=yes
7437 else
7438 if test "${ac_cv_have_x+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441 # One or both of the vars are not set, and there is no cached value.
7442 ac_x_includes=no ac_x_libraries=no
7443 rm -fr conftest.dir
7444 if mkdir conftest.dir; then
7445 cd conftest.dir
7446 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7447 cat >Imakefile <<'_ACEOF'
7448 acfindx:
7449 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7450 _ACEOF
7451 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7452 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7453 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7454 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7455 for ac_extension in a so sl; do
7456 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7457 test -f $ac_im_libdir/libX11.$ac_extension; then
7458 ac_im_usrlibdir=$ac_im_libdir; break
7459 fi
7460 done
7461 # Screen out bogus values from the imake configuration. They are
7462 # bogus both because they are the default anyway, and because
7463 # using them would break gcc on systems where it needs fixed includes.
7464 case $ac_im_incroot in
7465 /usr/include) ;;
7466 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7467 esac
7468 case $ac_im_usrlibdir in
7469 /usr/lib | /lib) ;;
7470 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7471 esac
7472 fi
7473 cd ..
7474 rm -fr conftest.dir
7475 fi
7476
7477 # Standard set of common directories for X headers.
7478 # Check X11 before X11Rn because it is often a symlink to the current release.
7479 ac_x_header_dirs='
7480 /usr/X11/include
7481 /usr/X11R6/include
7482 /usr/X11R5/include
7483 /usr/X11R4/include
7484
7485 /usr/include/X11
7486 /usr/include/X11R6
7487 /usr/include/X11R5
7488 /usr/include/X11R4
7489
7490 /usr/local/X11/include
7491 /usr/local/X11R6/include
7492 /usr/local/X11R5/include
7493 /usr/local/X11R4/include
7494
7495 /usr/local/include/X11
7496 /usr/local/include/X11R6
7497 /usr/local/include/X11R5
7498 /usr/local/include/X11R4
7499
7500 /usr/X386/include
7501 /usr/x386/include
7502 /usr/XFree86/include/X11
7503
7504 /usr/include
7505 /usr/local/include
7506 /usr/unsupported/include
7507 /usr/athena/include
7508 /usr/local/x11r5/include
7509 /usr/lpp/Xamples/include
7510
7511 /usr/openwin/include
7512 /usr/openwin/share/include'
7513
7514 if test "$ac_x_includes" = no; then
7515 # Guess where to find include files, by looking for Intrinsic.h.
7516 # First, try using that file with no special directory specified.
7517 cat >conftest.$ac_ext <<_ACEOF
7518 #line $LINENO "configure"
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 #include <X11/Intrinsic.h>
7525 _ACEOF
7526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7528 ac_status=$?
7529 grep -v '^ *+' conftest.er1 >conftest.err
7530 rm -f conftest.er1
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } >/dev/null; then
7534 if test -s conftest.err; then
7535 ac_cpp_err=$ac_c_preproc_warn_flag
7536 else
7537 ac_cpp_err=
7538 fi
7539 else
7540 ac_cpp_err=yes
7541 fi
7542 if test -z "$ac_cpp_err"; then
7543 # We can compile using X headers with no special include directory.
7544 ac_x_includes=
7545 else
7546 echo "$as_me: failed program was:" >&5
7547 sed 's/^/| /' conftest.$ac_ext >&5
7548
7549 for ac_dir in $ac_x_header_dirs; do
7550 if test -r "$ac_dir/X11/Intrinsic.h"; then
7551 ac_x_includes=$ac_dir
7552 break
7553 fi
7554 done
7555 fi
7556 rm -f conftest.err conftest.$ac_ext
7557 fi # $ac_x_includes = no
7558
7559 if test "$ac_x_libraries" = no; then
7560 # Check for the libraries.
7561 # See if we find them without any special options.
7562 # Don't add to $LIBS permanently.
7563 ac_save_LIBS=$LIBS
7564 LIBS="-lXt $LIBS"
7565 cat >conftest.$ac_ext <<_ACEOF
7566 #line $LINENO "configure"
7567 /* confdefs.h. */
7568 _ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7572 #include <X11/Intrinsic.h>
7573 int
7574 main ()
7575 {
7576 XtMalloc (0)
7577 ;
7578 return 0;
7579 }
7580 _ACEOF
7581 rm -f conftest.$ac_objext conftest$ac_exeext
7582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7583 (eval $ac_link) 2>&5
7584 ac_status=$?
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } &&
7587 { ac_try='test -s conftest$ac_exeext'
7588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 (eval $ac_try) 2>&5
7590 ac_status=$?
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); }; }; then
7593 LIBS=$ac_save_LIBS
7594 # We can link X programs with no special library path.
7595 ac_x_libraries=
7596 else
7597 echo "$as_me: failed program was:" >&5
7598 sed 's/^/| /' conftest.$ac_ext >&5
7599
7600 LIBS=$ac_save_LIBS
7601 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7602 do
7603 # Don't even attempt the hair of trying to link an X program!
7604 for ac_extension in a so sl; do
7605 if test -r $ac_dir/libXt.$ac_extension; then
7606 ac_x_libraries=$ac_dir
7607 break 2
7608 fi
7609 done
7610 done
7611 fi
7612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7613 fi # $ac_x_libraries = no
7614
7615 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7616 # Didn't find X anywhere. Cache the known absence of X.
7617 ac_cv_have_x="have_x=no"
7618 else
7619 # Record where we found X for the cache.
7620 ac_cv_have_x="have_x=yes \
7621 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7622 fi
7623 fi
7624
7625 fi
7626 eval "$ac_cv_have_x"
7627 fi # $with_x != no
7628
7629 if test "$have_x" != yes; then
7630 echo "$as_me:$LINENO: result: $have_x" >&5
7631 echo "${ECHO_T}$have_x" >&6
7632 no_x=yes
7633 else
7634 # If each of the values was on the command line, it overrides each guess.
7635 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7636 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7637 # Update the cache value to reflect the command line values.
7638 ac_cv_have_x="have_x=yes \
7639 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7640 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7641 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7642 fi
7643
7644 if test "$no_x" = yes; then
7645 window_system=none
7646 else
7647 window_system=x11
7648 fi
7649
7650 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7651 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7652 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7653 x_default_search_path=""
7654 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
7655 x_search_path="\
7656 ${x_library}/X11/%L/%T/%N%C%S:\
7657 ${x_library}/X11/%l/%T/%N%C%S:\
7658 ${x_library}/X11/%T/%N%C%S:\
7659 ${x_library}/X11/%L/%T/%N%S:\
7660 ${x_library}/X11/%l/%T/%N%S:\
7661 ${x_library}/X11/%T/%N%S"
7662 if test x"${x_default_search_path}" = x; then
7663 x_default_search_path=${x_search_path}
7664 else
7665 x_default_search_path="${x_search_path}:${x_default_search_path}"
7666 fi
7667 done
7668 fi
7669 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7670 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7671 fi
7672
7673 if test x"${x_includes}" = x; then
7674 bitmapdir=/usr/include/X11/bitmaps
7675 else
7676 # accumulate include directories that have X11 bitmap subdirectories
7677 bmd_acc="dummyval"
7678 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7679 if test -d "${bmd}/X11/bitmaps"; then
7680 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7681 fi
7682 if test -d "${bmd}/bitmaps"; then
7683 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7684 fi
7685 done
7686 if test ${bmd_acc} != "dummyval"; then
7687 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7688 fi
7689 fi
7690
7691 case "${window_system}" in
7692 x11 )
7693 HAVE_X_WINDOWS=yes
7694 HAVE_X11=yes
7695 case "${with_x_toolkit}" in
7696 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7697 motif ) USE_X_TOOLKIT=MOTIF ;;
7698 gtk ) with_gtk=yes
7699 USE_X_TOOLKIT=none ;;
7700 no ) USE_X_TOOLKIT=none ;;
7701 * ) USE_X_TOOLKIT=maybe ;;
7702 esac
7703 ;;
7704 none )
7705 HAVE_X_WINDOWS=no
7706 HAVE_X11=no
7707 USE_X_TOOLKIT=none
7708 ;;
7709 esac
7710
7711 ### If we're using X11, we should use the X menu package.
7712 HAVE_MENUS=no
7713 case ${HAVE_X11} in
7714 yes ) HAVE_MENUS=yes ;;
7715 esac
7716
7717 if test "${opsys}" = "hpux9"; then
7718 case "${x_libraries}" in
7719 *X11R4* )
7720 opsysfile="s/hpux9-x11r4.h"
7721 ;;
7722 esac
7723 fi
7724
7725 if test "${opsys}" = "hpux9shr"; then
7726 case "${x_libraries}" in
7727 *X11R4* )
7728 opsysfile="s/hpux9shxr4.h"
7729 ;;
7730 esac
7731 fi
7732
7733 HAVE_CARBON=no
7734 if test "${HAVE_X11}" != "yes"; then
7735 if test "${with_carbon}" != "no"; then
7736 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7737 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
7738 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
7739 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 fi
7742 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
7743 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
7744 else
7745 # Is the header compilable?
7746 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
7747 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
7748 cat >conftest.$ac_ext <<_ACEOF
7749 #line $LINENO "configure"
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 $ac_includes_default
7756 #include <Carbon/Carbon.h>
7757 _ACEOF
7758 rm -f conftest.$ac_objext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760 (eval $ac_compile) 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try='test -s conftest.$ac_objext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 (eval $ac_try) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7770 ac_header_compiler=yes
7771 else
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7774
7775 ac_header_compiler=no
7776 fi
7777 rm -f conftest.$ac_objext conftest.$ac_ext
7778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7779 echo "${ECHO_T}$ac_header_compiler" >&6
7780
7781 # Is the header present?
7782 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
7783 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
7784 cat >conftest.$ac_ext <<_ACEOF
7785 #line $LINENO "configure"
7786 /* confdefs.h. */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7791 #include <Carbon/Carbon.h>
7792 _ACEOF
7793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7795 ac_status=$?
7796 grep -v '^ *+' conftest.er1 >conftest.err
7797 rm -f conftest.er1
7798 cat conftest.err >&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } >/dev/null; then
7801 if test -s conftest.err; then
7802 ac_cpp_err=$ac_c_preproc_warn_flag
7803 else
7804 ac_cpp_err=
7805 fi
7806 else
7807 ac_cpp_err=yes
7808 fi
7809 if test -z "$ac_cpp_err"; then
7810 ac_header_preproc=yes
7811 else
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7814
7815 ac_header_preproc=no
7816 fi
7817 rm -f conftest.err conftest.$ac_ext
7818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7819 echo "${ECHO_T}$ac_header_preproc" >&6
7820
7821 # So? What about this header?
7822 case $ac_header_compiler:$ac_header_preproc in
7823 yes:no )
7824 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
7825 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7826 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
7827 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
7828 (
7829 cat <<\_ASBOX
7830 ## ------------------------------------ ##
7831 ## Report this to bug-autoconf@gnu.org. ##
7832 ## ------------------------------------ ##
7833 _ASBOX
7834 ) |
7835 sed "s/^/$as_me: WARNING: /" >&2
7836 ;;
7837 no:yes )
7838 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
7839 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
7840 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
7841 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
7843 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
7844 (
7845 cat <<\_ASBOX
7846 ## ------------------------------------ ##
7847 ## Report this to bug-autoconf@gnu.org. ##
7848 ## ------------------------------------ ##
7849 _ASBOX
7850 ) |
7851 sed "s/^/$as_me: WARNING: /" >&2
7852 ;;
7853 esac
7854 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
7855 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
7856 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 else
7859 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
7860 fi
7861 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
7862 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
7863
7864 fi
7865 if test $ac_cv_header_Carbon_Carbon_h = yes; then
7866 HAVE_CARBON=yes
7867 fi
7868
7869
7870 fi
7871 fi
7872
7873 ### Compute the unexec source name from the object name.
7874 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
7875
7876 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7877 # Assume not, until told otherwise.
7878 GNU_MALLOC=yes
7879 doug_lea_malloc=yes
7880 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7881 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
7882 if test "${ac_cv_func_malloc_get_state+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885 cat >conftest.$ac_ext <<_ACEOF
7886 #line $LINENO "configure"
7887 /* confdefs.h. */
7888 _ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7892 /* System header to define __stub macros and hopefully few prototypes,
7893 which can conflict with char malloc_get_state (); below.
7894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7895 <limits.h> exists even on freestanding compilers. */
7896 #ifdef __STDC__
7897 # include <limits.h>
7898 #else
7899 # include <assert.h>
7900 #endif
7901 /* Override any gcc2 internal prototype to avoid an error. */
7902 #ifdef __cplusplus
7903 extern "C"
7904 {
7905 #endif
7906 /* We use char because int might match the return type of a gcc2
7907 builtin and then its argument prototype would still apply. */
7908 char malloc_get_state ();
7909 /* The GNU C library defines this for functions which it implements
7910 to always fail with ENOSYS. Some functions are actually named
7911 something starting with __ and the normal name is an alias. */
7912 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
7913 choke me
7914 #else
7915 char (*f) () = malloc_get_state;
7916 #endif
7917 #ifdef __cplusplus
7918 }
7919 #endif
7920
7921 int
7922 main ()
7923 {
7924 return f != malloc_get_state;
7925 ;
7926 return 0;
7927 }
7928 _ACEOF
7929 rm -f conftest.$ac_objext conftest$ac_exeext
7930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7931 (eval $ac_link) 2>&5
7932 ac_status=$?
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } &&
7935 { ac_try='test -s conftest$ac_exeext'
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 (eval $ac_try) 2>&5
7938 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; }; then
7941 ac_cv_func_malloc_get_state=yes
7942 else
7943 echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7945
7946 ac_cv_func_malloc_get_state=no
7947 fi
7948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7949 fi
7950 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
7951 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
7952 if test $ac_cv_func_malloc_get_state = yes; then
7953 :
7954 else
7955 doug_lea_malloc=no
7956 fi
7957
7958 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7959 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
7960 if test "${ac_cv_func_malloc_set_state+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 else
7963 cat >conftest.$ac_ext <<_ACEOF
7964 #line $LINENO "configure"
7965 /* confdefs.h. */
7966 _ACEOF
7967 cat confdefs.h >>conftest.$ac_ext
7968 cat >>conftest.$ac_ext <<_ACEOF
7969 /* end confdefs.h. */
7970 /* System header to define __stub macros and hopefully few prototypes,
7971 which can conflict with char malloc_set_state (); below.
7972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7973 <limits.h> exists even on freestanding compilers. */
7974 #ifdef __STDC__
7975 # include <limits.h>
7976 #else
7977 # include <assert.h>
7978 #endif
7979 /* Override any gcc2 internal prototype to avoid an error. */
7980 #ifdef __cplusplus
7981 extern "C"
7982 {
7983 #endif
7984 /* We use char because int might match the return type of a gcc2
7985 builtin and then its argument prototype would still apply. */
7986 char malloc_set_state ();
7987 /* The GNU C library defines this for functions which it implements
7988 to always fail with ENOSYS. Some functions are actually named
7989 something starting with __ and the normal name is an alias. */
7990 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7991 choke me
7992 #else
7993 char (*f) () = malloc_set_state;
7994 #endif
7995 #ifdef __cplusplus
7996 }
7997 #endif
7998
7999 int
8000 main ()
8001 {
8002 return f != malloc_set_state;
8003 ;
8004 return 0;
8005 }
8006 _ACEOF
8007 rm -f conftest.$ac_objext conftest$ac_exeext
8008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8009 (eval $ac_link) 2>&5
8010 ac_status=$?
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -s conftest$ac_exeext'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 (eval $ac_try) 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; }; then
8019 ac_cv_func_malloc_set_state=yes
8020 else
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024 ac_cv_func_malloc_set_state=no
8025 fi
8026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8027 fi
8028 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8029 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8030 if test $ac_cv_func_malloc_set_state = yes; then
8031 :
8032 else
8033 doug_lea_malloc=no
8034 fi
8035
8036 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8037 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8038 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041 cat >conftest.$ac_ext <<_ACEOF
8042 #line $LINENO "configure"
8043 /* confdefs.h. */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 extern void (* __after_morecore_hook)();
8049 int
8050 main ()
8051 {
8052 __after_morecore_hook = 0
8053 ;
8054 return 0;
8055 }
8056 _ACEOF
8057 rm -f conftest.$ac_objext conftest$ac_exeext
8058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8059 (eval $ac_link) 2>&5
8060 ac_status=$?
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try='test -s conftest$ac_exeext'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 (eval $ac_try) 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
8069 emacs_cv_var___after_morecore_hook=yes
8070 else
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8073
8074 emacs_cv_var___after_morecore_hook=no
8075 fi
8076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8077 fi
8078 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8079 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8080 if test $emacs_cv_var___after_morecore_hook = no; then
8081 doug_lea_malloc=no
8082 fi
8083 if test "${system_malloc}" = "yes"; then
8084 GNU_MALLOC=no
8085 GNU_MALLOC_reason="
8086 (The GNU allocators don't work with this system configuration.)"
8087 fi
8088 if test "$doug_lea_malloc" = "yes" ; then
8089 if test "$GNU_MALLOC" = yes ; then
8090 GNU_MALLOC_reason="
8091 (Using Doug Lea's new malloc from the GNU C Library.)"
8092 fi
8093
8094 cat >>confdefs.h <<\_ACEOF
8095 #define DOUG_LEA_MALLOC 1
8096 _ACEOF
8097
8098 fi
8099
8100 if test x"${REL_ALLOC}" = x; then
8101 REL_ALLOC=${GNU_MALLOC}
8102 fi
8103
8104
8105
8106
8107 for ac_header in stdlib.h unistd.h
8108 do
8109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8111 echo "$as_me:$LINENO: checking for $ac_header" >&5
8112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 fi
8116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8118 else
8119 # Is the header compilable?
8120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8122 cat >conftest.$ac_ext <<_ACEOF
8123 #line $LINENO "configure"
8124 /* confdefs.h. */
8125 _ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8129 $ac_includes_default
8130 #include <$ac_header>
8131 _ACEOF
8132 rm -f conftest.$ac_objext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8134 (eval $ac_compile) 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } &&
8138 { ac_try='test -s conftest.$ac_objext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 (eval $ac_try) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 ac_header_compiler=yes
8145 else
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8148
8149 ac_header_compiler=no
8150 fi
8151 rm -f conftest.$ac_objext conftest.$ac_ext
8152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8153 echo "${ECHO_T}$ac_header_compiler" >&6
8154
8155 # Is the header present?
8156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8158 cat >conftest.$ac_ext <<_ACEOF
8159 #line $LINENO "configure"
8160 /* confdefs.h. */
8161 _ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8165 #include <$ac_header>
8166 _ACEOF
8167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8169 ac_status=$?
8170 grep -v '^ *+' conftest.er1 >conftest.err
8171 rm -f conftest.er1
8172 cat conftest.err >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } >/dev/null; then
8175 if test -s conftest.err; then
8176 ac_cpp_err=$ac_c_preproc_warn_flag
8177 else
8178 ac_cpp_err=
8179 fi
8180 else
8181 ac_cpp_err=yes
8182 fi
8183 if test -z "$ac_cpp_err"; then
8184 ac_header_preproc=yes
8185 else
8186 echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8188
8189 ac_header_preproc=no
8190 fi
8191 rm -f conftest.err conftest.$ac_ext
8192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8193 echo "${ECHO_T}$ac_header_preproc" >&6
8194
8195 # So? What about this header?
8196 case $ac_header_compiler:$ac_header_preproc in
8197 yes:no )
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8202 (
8203 cat <<\_ASBOX
8204 ## ------------------------------------ ##
8205 ## Report this to bug-autoconf@gnu.org. ##
8206 ## ------------------------------------ ##
8207 _ASBOX
8208 ) |
8209 sed "s/^/$as_me: WARNING: /" >&2
8210 ;;
8211 no:yes )
8212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8218 (
8219 cat <<\_ASBOX
8220 ## ------------------------------------ ##
8221 ## Report this to bug-autoconf@gnu.org. ##
8222 ## ------------------------------------ ##
8223 _ASBOX
8224 ) |
8225 sed "s/^/$as_me: WARNING: /" >&2
8226 ;;
8227 esac
8228 echo "$as_me:$LINENO: checking for $ac_header" >&5
8229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233 eval "$as_ac_Header=$ac_header_preproc"
8234 fi
8235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8237
8238 fi
8239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8240 cat >>confdefs.h <<_ACEOF
8241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8242 _ACEOF
8243
8244 fi
8245
8246 done
8247
8248
8249 for ac_func in getpagesize
8250 do
8251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8252 echo "$as_me:$LINENO: checking for $ac_func" >&5
8253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8254 if eval "test \"\${$as_ac_var+set}\" = set"; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 else
8257 cat >conftest.$ac_ext <<_ACEOF
8258 #line $LINENO "configure"
8259 /* confdefs.h. */
8260 _ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8264 /* System header to define __stub macros and hopefully few prototypes,
8265 which can conflict with char $ac_func (); below.
8266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8267 <limits.h> exists even on freestanding compilers. */
8268 #ifdef __STDC__
8269 # include <limits.h>
8270 #else
8271 # include <assert.h>
8272 #endif
8273 /* Override any gcc2 internal prototype to avoid an error. */
8274 #ifdef __cplusplus
8275 extern "C"
8276 {
8277 #endif
8278 /* We use char because int might match the return type of a gcc2
8279 builtin and then its argument prototype would still apply. */
8280 char $ac_func ();
8281 /* The GNU C library defines this for functions which it implements
8282 to always fail with ENOSYS. Some functions are actually named
8283 something starting with __ and the normal name is an alias. */
8284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8285 choke me
8286 #else
8287 char (*f) () = $ac_func;
8288 #endif
8289 #ifdef __cplusplus
8290 }
8291 #endif
8292
8293 int
8294 main ()
8295 {
8296 return f != $ac_func;
8297 ;
8298 return 0;
8299 }
8300 _ACEOF
8301 rm -f conftest.$ac_objext conftest$ac_exeext
8302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8303 (eval $ac_link) 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try='test -s conftest$ac_exeext'
8308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309 (eval $ac_try) 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; }; then
8313 eval "$as_ac_var=yes"
8314 else
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8317
8318 eval "$as_ac_var=no"
8319 fi
8320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8321 fi
8322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8324 if test `eval echo '${'$as_ac_var'}'` = yes; then
8325 cat >>confdefs.h <<_ACEOF
8326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8327 _ACEOF
8328
8329 fi
8330 done
8331
8332 echo "$as_me:$LINENO: checking for working mmap" >&5
8333 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8334 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337 if test "$cross_compiling" = yes; then
8338 ac_cv_func_mmap_fixed_mapped=no
8339 else
8340 cat >conftest.$ac_ext <<_ACEOF
8341 #line $LINENO "configure"
8342 /* confdefs.h. */
8343 _ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8347 $ac_includes_default
8348 /* malloc might have been renamed as rpl_malloc. */
8349 #undef malloc
8350
8351 /* Thanks to Mike Haertel and Jim Avera for this test.
8352 Here is a matrix of mmap possibilities:
8353 mmap private not fixed
8354 mmap private fixed at somewhere currently unmapped
8355 mmap private fixed at somewhere already mapped
8356 mmap shared not fixed
8357 mmap shared fixed at somewhere currently unmapped
8358 mmap shared fixed at somewhere already mapped
8359 For private mappings, we should verify that changes cannot be read()
8360 back from the file, nor mmap's back from the file at a different
8361 address. (There have been systems where private was not correctly
8362 implemented like the infamous i386 svr4.0, and systems where the
8363 VM page cache was not coherent with the file system buffer cache
8364 like early versions of FreeBSD and possibly contemporary NetBSD.)
8365 For shared mappings, we should conversely verify that changes get
8366 propagated back to all the places they're supposed to be.
8367
8368 Grep wants private fixed already mapped.
8369 The main things grep needs to know about mmap are:
8370 * does it exist and is it safe to write into the mmap'd area
8371 * how to use it (BSD variants) */
8372
8373 #include <fcntl.h>
8374 #include <sys/mman.h>
8375
8376 #if !STDC_HEADERS && !HAVE_STDLIB_H
8377 char *malloc ();
8378 #endif
8379
8380 /* This mess was copied from the GNU getpagesize.h. */
8381 #if !HAVE_GETPAGESIZE
8382 /* Assume that all systems that can run configure have sys/param.h. */
8383 # if !HAVE_SYS_PARAM_H
8384 # define HAVE_SYS_PARAM_H 1
8385 # endif
8386
8387 # ifdef _SC_PAGESIZE
8388 # define getpagesize() sysconf(_SC_PAGESIZE)
8389 # else /* no _SC_PAGESIZE */
8390 # if HAVE_SYS_PARAM_H
8391 # include <sys/param.h>
8392 # ifdef EXEC_PAGESIZE
8393 # define getpagesize() EXEC_PAGESIZE
8394 # else /* no EXEC_PAGESIZE */
8395 # ifdef NBPG
8396 # define getpagesize() NBPG * CLSIZE
8397 # ifndef CLSIZE
8398 # define CLSIZE 1
8399 # endif /* no CLSIZE */
8400 # else /* no NBPG */
8401 # ifdef NBPC
8402 # define getpagesize() NBPC
8403 # else /* no NBPC */
8404 # ifdef PAGESIZE
8405 # define getpagesize() PAGESIZE
8406 # endif /* PAGESIZE */
8407 # endif /* no NBPC */
8408 # endif /* no NBPG */
8409 # endif /* no EXEC_PAGESIZE */
8410 # else /* no HAVE_SYS_PARAM_H */
8411 # define getpagesize() 8192 /* punt totally */
8412 # endif /* no HAVE_SYS_PARAM_H */
8413 # endif /* no _SC_PAGESIZE */
8414
8415 #endif /* no HAVE_GETPAGESIZE */
8416
8417 int
8418 main ()
8419 {
8420 char *data, *data2, *data3;
8421 int i, pagesize;
8422 int fd;
8423
8424 pagesize = getpagesize ();
8425
8426 /* First, make a file with some known garbage in it. */
8427 data = (char *) malloc (pagesize);
8428 if (!data)
8429 exit (1);
8430 for (i = 0; i < pagesize; ++i)
8431 *(data + i) = rand ();
8432 umask (0);
8433 fd = creat ("conftest.mmap", 0600);
8434 if (fd < 0)
8435 exit (1);
8436 if (write (fd, data, pagesize) != pagesize)
8437 exit (1);
8438 close (fd);
8439
8440 /* Next, try to mmap the file at a fixed address which already has
8441 something else allocated at it. If we can, also make sure that
8442 we see the same garbage. */
8443 fd = open ("conftest.mmap", O_RDWR);
8444 if (fd < 0)
8445 exit (1);
8446 data2 = (char *) malloc (2 * pagesize);
8447 if (!data2)
8448 exit (1);
8449 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8450 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8451 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8452 exit (1);
8453 for (i = 0; i < pagesize; ++i)
8454 if (*(data + i) != *(data2 + i))
8455 exit (1);
8456
8457 /* Finally, make sure that changes to the mapped area do not
8458 percolate back to the file as seen by read(). (This is a bug on
8459 some variants of i386 svr4.0.) */
8460 for (i = 0; i < pagesize; ++i)
8461 *(data2 + i) = *(data2 + i) + 1;
8462 data3 = (char *) malloc (pagesize);
8463 if (!data3)
8464 exit (1);
8465 if (read (fd, data3, pagesize) != pagesize)
8466 exit (1);
8467 for (i = 0; i < pagesize; ++i)
8468 if (*(data + i) != *(data3 + i))
8469 exit (1);
8470 close (fd);
8471 exit (0);
8472 }
8473 _ACEOF
8474 rm -f conftest$ac_exeext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8476 (eval $ac_link) 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481 (eval $ac_try) 2>&5
8482 ac_status=$?
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8485 ac_cv_func_mmap_fixed_mapped=yes
8486 else
8487 echo "$as_me: program exited with status $ac_status" >&5
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8490
8491 ( exit $ac_status )
8492 ac_cv_func_mmap_fixed_mapped=no
8493 fi
8494 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8495 fi
8496 fi
8497 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8498 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8499 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8500
8501 cat >>confdefs.h <<\_ACEOF
8502 #define HAVE_MMAP 1
8503 _ACEOF
8504
8505 fi
8506 rm -f conftest.mmap
8507
8508 if test $use_mmap_for_buffers = yes; then
8509 REL_ALLOC=no
8510 fi
8511
8512 LIBS="$libsrc_libs $LIBS"
8513
8514
8515 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8516 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8517 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520 ac_check_lib_save_LIBS=$LIBS
8521 LIBS="-ldnet $LIBS"
8522 cat >conftest.$ac_ext <<_ACEOF
8523 #line $LINENO "configure"
8524 /* confdefs.h. */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8529
8530 /* Override any gcc2 internal prototype to avoid an error. */
8531 #ifdef __cplusplus
8532 extern "C"
8533 #endif
8534 /* We use char because int might match the return type of a gcc2
8535 builtin and then its argument prototype would still apply. */
8536 char dnet_ntoa ();
8537 int
8538 main ()
8539 {
8540 dnet_ntoa ();
8541 ;
8542 return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext conftest$ac_exeext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8547 (eval $ac_link) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } &&
8551 { ac_try='test -s conftest$ac_exeext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8557 ac_cv_lib_dnet_dnet_ntoa=yes
8558 else
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8561
8562 ac_cv_lib_dnet_dnet_ntoa=no
8563 fi
8564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8565 LIBS=$ac_check_lib_save_LIBS
8566 fi
8567 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8568 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8569 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8570 cat >>confdefs.h <<_ACEOF
8571 #define HAVE_LIBDNET 1
8572 _ACEOF
8573
8574 LIBS="-ldnet $LIBS"
8575
8576 fi
8577
8578
8579 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8580 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8581 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 else
8584 ac_check_lib_save_LIBS=$LIBS
8585 LIBS="-lXbsd $LIBS"
8586 cat >conftest.$ac_ext <<_ACEOF
8587 #line $LINENO "configure"
8588 /* confdefs.h. */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8593
8594
8595 int
8596 main ()
8597 {
8598 main ();
8599 ;
8600 return 0;
8601 }
8602 _ACEOF
8603 rm -f conftest.$ac_objext conftest$ac_exeext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8605 (eval $ac_link) 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -s conftest$ac_exeext'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 (eval $ac_try) 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; }; then
8615 ac_cv_lib_Xbsd_main=yes
8616 else
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8619
8620 ac_cv_lib_Xbsd_main=no
8621 fi
8622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8623 LIBS=$ac_check_lib_save_LIBS
8624 fi
8625 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
8626 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8627 if test $ac_cv_lib_Xbsd_main = yes; then
8628 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8629 fi
8630
8631
8632
8633 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
8634 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
8635 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638 ac_check_lib_save_LIBS=$LIBS
8639 LIBS="-lpthreads $LIBS"
8640 cat >conftest.$ac_ext <<_ACEOF
8641 #line $LINENO "configure"
8642 /* confdefs.h. */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8647
8648 /* Override any gcc2 internal prototype to avoid an error. */
8649 #ifdef __cplusplus
8650 extern "C"
8651 #endif
8652 /* We use char because int might match the return type of a gcc2
8653 builtin and then its argument prototype would still apply. */
8654 char cma_open ();
8655 int
8656 main ()
8657 {
8658 cma_open ();
8659 ;
8660 return 0;
8661 }
8662 _ACEOF
8663 rm -f conftest.$ac_objext conftest$ac_exeext
8664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8665 (eval $ac_link) 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } &&
8669 { ac_try='test -s conftest$ac_exeext'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671 (eval $ac_try) 2>&5
8672 ac_status=$?
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; }; then
8675 ac_cv_lib_pthreads_cma_open=yes
8676 else
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8679
8680 ac_cv_lib_pthreads_cma_open=no
8681 fi
8682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8683 LIBS=$ac_check_lib_save_LIBS
8684 fi
8685 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
8686 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
8687 if test $ac_cv_lib_pthreads_cma_open = yes; then
8688 cat >>confdefs.h <<_ACEOF
8689 #define HAVE_LIBPTHREADS 1
8690 _ACEOF
8691
8692 LIBS="-lpthreads $LIBS"
8693
8694 fi
8695
8696
8697 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
8698 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
8699 if test -d /usr/X386/include; then
8700 HAVE_XFREE386=yes
8701 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
8702 else
8703 HAVE_XFREE386=no
8704 fi
8705 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
8706 echo "${ECHO_T}$HAVE_XFREE386" >&6
8707
8708
8709 case ${host_os} in
8710 aix*)
8711 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
8712 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
8713 if test "${gdb_cv_bigtoc+set}" = set; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8715 else
8716
8717 case $GCC in
8718 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8719 *) gdb_cv_bigtoc=-bbigtoc ;;
8720 esac
8721
8722 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8723 cat >conftest.$ac_ext <<_ACEOF
8724 #line $LINENO "configure"
8725 /* confdefs.h. */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730
8731 int
8732 main ()
8733 {
8734 int i;
8735 ;
8736 return 0;
8737 }
8738 _ACEOF
8739 rm -f conftest.$ac_objext conftest$ac_exeext
8740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8741 (eval $ac_link) 2>&5
8742 ac_status=$?
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } &&
8745 { ac_try='test -s conftest$ac_exeext'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 (eval $ac_try) 2>&5
8748 ac_status=$?
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8751 :
8752 else
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8755
8756 gdb_cv_bigtoc=
8757 fi
8758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8759
8760 fi
8761 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
8762 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
8763 ;;
8764 esac
8765
8766 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8767 # used for the tests that follow. We set them back to REAL_CFLAGS and
8768 # REAL_CPPFLAGS later on.
8769
8770 REAL_CPPFLAGS="$CPPFLAGS"
8771
8772 if test "${HAVE_X11}" = "yes"; then
8773 DEFS="$C_SWITCH_X_SITE $DEFS"
8774 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8775 LIBS="$LIBX $LIBS"
8776 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8777 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8778
8779 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8780 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8781 # but it's more convenient here to set LD_RUN_PATH
8782 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8783 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8784 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8785 export LD_RUN_PATH
8786 fi
8787
8788 if test "${opsys}" = "gnu-linux"; then
8789 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
8790 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
8791 cat >conftest.$ac_ext <<_ACEOF
8792 #line $LINENO "configure"
8793 /* confdefs.h. */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8798
8799 int
8800 main ()
8801 {
8802 XOpenDisplay ("foo");
8803 ;
8804 return 0;
8805 }
8806 _ACEOF
8807 rm -f conftest.$ac_objext conftest$ac_exeext
8808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8809 (eval $ac_link) 2>&5
8810 ac_status=$?
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } &&
8813 { ac_try='test -s conftest$ac_exeext'
8814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 (eval $ac_try) 2>&5
8816 ac_status=$?
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; }; then
8819 xlinux_first_failure=no
8820 else
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8823
8824 xlinux_first_failure=yes
8825 fi
8826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8827 if test "${xlinux_first_failure}" = "yes"; then
8828 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8829 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8830 OLD_CPPFLAGS="$CPPFLAGS"
8831 OLD_LIBS="$LIBS"
8832 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8833 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8834 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8835 LIBS="$LIBS -b i486-linuxaout"
8836 cat >conftest.$ac_ext <<_ACEOF
8837 #line $LINENO "configure"
8838 /* confdefs.h. */
8839 _ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8843
8844 int
8845 main ()
8846 {
8847 XOpenDisplay ("foo");
8848 ;
8849 return 0;
8850 }
8851 _ACEOF
8852 rm -f conftest.$ac_objext conftest$ac_exeext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8854 (eval $ac_link) 2>&5
8855 ac_status=$?
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } &&
8858 { ac_try='test -s conftest$ac_exeext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 (eval $ac_try) 2>&5
8861 ac_status=$?
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8864 xlinux_second_failure=no
8865 else
8866 echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8868
8869 xlinux_second_failure=yes
8870 fi
8871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8872 if test "${xlinux_second_failure}" = "yes"; then
8873 # If we get the same failure with -b, there is no use adding -b.
8874 # So take it out. This plays safe.
8875 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8876 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8877 CPPFLAGS="$OLD_CPPFLAGS"
8878 LIBS="$OLD_LIBS"
8879 echo "$as_me:$LINENO: result: no" >&5
8880 echo "${ECHO_T}no" >&6
8881 else
8882 echo "$as_me:$LINENO: result: yes" >&5
8883 echo "${ECHO_T}yes" >&6
8884 fi
8885 else
8886 echo "$as_me:$LINENO: result: no" >&5
8887 echo "${ECHO_T}no" >&6
8888 fi
8889 fi
8890
8891 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8892 # header files included from there.
8893 echo "$as_me:$LINENO: checking for Xkb" >&5
8894 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
8895 cat >conftest.$ac_ext <<_ACEOF
8896 #line $LINENO "configure"
8897 /* confdefs.h. */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8902 #include <X11/Xlib.h>
8903 #include <X11/XKBlib.h>
8904 int
8905 main ()
8906 {
8907 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8908 ;
8909 return 0;
8910 }
8911 _ACEOF
8912 rm -f conftest.$ac_objext conftest$ac_exeext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8914 (eval $ac_link) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
8918 { ac_try='test -s conftest$ac_exeext'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 (eval $ac_try) 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; }; then
8924 emacs_xkb=yes
8925 else
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8928
8929 emacs_xkb=no
8930 fi
8931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8932 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
8933 echo "${ECHO_T}$emacs_xkb" >&6
8934 if test $emacs_xkb = yes; then
8935
8936 cat >>confdefs.h <<\_ACEOF
8937 #define HAVE_XKBGETKEYBOARD 1
8938 _ACEOF
8939
8940 fi
8941
8942
8943
8944
8945
8946 for ac_func in XrmSetDatabase XScreenResourceString \
8947 XScreenNumberOfScreen XSetWMProtocols
8948 do
8949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8950 echo "$as_me:$LINENO: checking for $ac_func" >&5
8951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8952 if eval "test \"\${$as_ac_var+set}\" = set"; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955 cat >conftest.$ac_ext <<_ACEOF
8956 #line $LINENO "configure"
8957 /* confdefs.h. */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8962 /* System header to define __stub macros and hopefully few prototypes,
8963 which can conflict with char $ac_func (); below.
8964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8965 <limits.h> exists even on freestanding compilers. */
8966 #ifdef __STDC__
8967 # include <limits.h>
8968 #else
8969 # include <assert.h>
8970 #endif
8971 /* Override any gcc2 internal prototype to avoid an error. */
8972 #ifdef __cplusplus
8973 extern "C"
8974 {
8975 #endif
8976 /* We use char because int might match the return type of a gcc2
8977 builtin and then its argument prototype would still apply. */
8978 char $ac_func ();
8979 /* The GNU C library defines this for functions which it implements
8980 to always fail with ENOSYS. Some functions are actually named
8981 something starting with __ and the normal name is an alias. */
8982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8983 choke me
8984 #else
8985 char (*f) () = $ac_func;
8986 #endif
8987 #ifdef __cplusplus
8988 }
8989 #endif
8990
8991 int
8992 main ()
8993 {
8994 return f != $ac_func;
8995 ;
8996 return 0;
8997 }
8998 _ACEOF
8999 rm -f conftest.$ac_objext conftest$ac_exeext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9001 (eval $ac_link) 2>&5
9002 ac_status=$?
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } &&
9005 { ac_try='test -s conftest$ac_exeext'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 (eval $ac_try) 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
9011 eval "$as_ac_var=yes"
9012 else
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9015
9016 eval "$as_ac_var=no"
9017 fi
9018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9019 fi
9020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9022 if test `eval echo '${'$as_ac_var'}'` = yes; then
9023 cat >>confdefs.h <<_ACEOF
9024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9025 _ACEOF
9026
9027 fi
9028 done
9029
9030 fi
9031
9032 if test "${window_system}" = "x11"; then
9033 echo "$as_me:$LINENO: checking X11 version 6" >&5
9034 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9035 if test "${emacs_cv_x11_version_6+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 else
9038 cat >conftest.$ac_ext <<_ACEOF
9039 #line $LINENO "configure"
9040 /* confdefs.h. */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9045 #include <X11/Xlib.h>
9046 int
9047 main ()
9048 {
9049 #if XlibSpecificationRelease < 6
9050 fail;
9051 #endif
9052
9053 ;
9054 return 0;
9055 }
9056 _ACEOF
9057 rm -f conftest.$ac_objext conftest$ac_exeext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9059 (eval $ac_link) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } &&
9063 { ac_try='test -s conftest$ac_exeext'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9069 emacs_cv_x11_version_6=yes
9070 else
9071 echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9073
9074 emacs_cv_x11_version_6=no
9075 fi
9076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9077 fi
9078
9079 if test $emacs_cv_x11_version_6 = yes; then
9080 echo "$as_me:$LINENO: result: 6 or newer" >&5
9081 echo "${ECHO_T}6 or newer" >&6
9082
9083 cat >>confdefs.h <<\_ACEOF
9084 #define HAVE_X11R6 1
9085 _ACEOF
9086
9087 else
9088 echo "$as_me:$LINENO: result: before 6" >&5
9089 echo "${ECHO_T}before 6" >&6
9090 fi
9091 fi
9092
9093 if test "${window_system}" = "x11"; then
9094 echo "$as_me:$LINENO: checking X11 version 5" >&5
9095 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9096 if test "${emacs_cv_x11_version_5+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 else
9099 cat >conftest.$ac_ext <<_ACEOF
9100 #line $LINENO "configure"
9101 /* confdefs.h. */
9102 _ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h. */
9106 #include <X11/Xlib.h>
9107 int
9108 main ()
9109 {
9110 #if XlibSpecificationRelease < 5
9111 fail;
9112 #endif
9113
9114 ;
9115 return 0;
9116 }
9117 _ACEOF
9118 rm -f conftest.$ac_objext conftest$ac_exeext
9119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9120 (eval $ac_link) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -s conftest$ac_exeext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 emacs_cv_x11_version_5=yes
9131 else
9132 echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9134
9135 emacs_cv_x11_version_5=no
9136 fi
9137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9138 fi
9139
9140 if test $emacs_cv_x11_version_5 = yes; then
9141 echo "$as_me:$LINENO: result: 5 or newer" >&5
9142 echo "${ECHO_T}5 or newer" >&6
9143 HAVE_X11R5=yes
9144
9145 cat >>confdefs.h <<\_ACEOF
9146 #define HAVE_X11R5 1
9147 _ACEOF
9148
9149 else
9150 HAVE_X11R5=no
9151 echo "$as_me:$LINENO: result: before 5" >&5
9152 echo "${ECHO_T}before 5" >&6
9153 fi
9154 fi
9155
9156
9157
9158 HAVE_GTK=no
9159 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9160 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9161 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9162 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9163 { (exit 1); exit 1; }; };
9164 fi
9165 GLIB_REQUIRED=2.0.1
9166 GTK_REQUIRED=2.0.1
9167 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9168
9169 if test "X${with_pkg_config_prog}" != X; then
9170 PKG_CONFIG="${with_pkg_config_prog}"
9171 fi
9172
9173 succeeded=no
9174
9175 if test -z "$PKG_CONFIG"; then
9176 # Extract the first word of "pkg-config", so it can be a program name with args.
9177 set dummy pkg-config; ac_word=$2
9178 echo "$as_me:$LINENO: checking for $ac_word" >&5
9179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9180 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 else
9183 case $PKG_CONFIG in
9184 [\\/]* | ?:[\\/]*)
9185 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9186 ;;
9187 *)
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 for as_dir in $PATH
9190 do
9191 IFS=$as_save_IFS
9192 test -z "$as_dir" && as_dir=.
9193 for ac_exec_ext in '' $ac_executable_extensions; do
9194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9195 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9197 break 2
9198 fi
9199 done
9200 done
9201
9202 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9203 ;;
9204 esac
9205 fi
9206 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9207
9208 if test -n "$PKG_CONFIG"; then
9209 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9210 echo "${ECHO_T}$PKG_CONFIG" >&6
9211 else
9212 echo "$as_me:$LINENO: result: no" >&5
9213 echo "${ECHO_T}no" >&6
9214 fi
9215
9216 fi
9217
9218 if test "$PKG_CONFIG" = "no" ; then
9219 echo "*** The pkg-config script could not be found. Make sure it is"
9220 echo "*** in your path, or give the full path to pkg-config with"
9221 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9222 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9223 else
9224 PKG_CONFIG_MIN_VERSION=0.9.0
9225 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9226 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9227 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9228
9229 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9230 echo "$as_me:$LINENO: result: yes" >&5
9231 echo "${ECHO_T}yes" >&6
9232 succeeded=yes
9233
9234 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9235 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9236 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9237 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9238 echo "${ECHO_T}$GTK_CFLAGS" >&6
9239
9240 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9241 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9242 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9243 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9244 echo "${ECHO_T}$GTK_LIBS" >&6
9245 else
9246 GTK_CFLAGS=""
9247 GTK_LIBS=""
9248 ## If we have a custom action on failure, don't print errors, but
9249 ## do set a variable so people can do so.
9250 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9251 echo $GTK_PKG_ERRORS
9252 fi
9253
9254
9255
9256 else
9257 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9258 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9259 fi
9260 fi
9261
9262 if test $succeeded = yes; then
9263 :
9264 else
9265 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9266 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9267 { (exit 1); exit 1; }; }
9268 fi
9269
9270
9271
9272 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9273 CFLAGS="$CFLAGS $GTK_CFLAGS"
9274 LIBS="$GTK_LIBS $LIBS"
9275 HAVE_GTK=yes
9276
9277 cat >>confdefs.h <<\_ACEOF
9278 #define HAVE_GTK 1
9279 _ACEOF
9280
9281 USE_X_TOOLKIT=none
9282
9283 if test "$with_toolkit_scroll_bars" != no; then
9284 with_toolkit_scroll_bars=yes
9285 fi
9286
9287 HAVE_GTK_MULTIDISPLAY=no
9288
9289 for ac_func in gdk_display_open
9290 do
9291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9292 echo "$as_me:$LINENO: checking for $ac_func" >&5
9293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9294 if eval "test \"\${$as_ac_var+set}\" = set"; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9296 else
9297 cat >conftest.$ac_ext <<_ACEOF
9298 #line $LINENO "configure"
9299 /* confdefs.h. */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 /* System header to define __stub macros and hopefully few prototypes,
9305 which can conflict with char $ac_func (); below.
9306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9307 <limits.h> exists even on freestanding compilers. */
9308 #ifdef __STDC__
9309 # include <limits.h>
9310 #else
9311 # include <assert.h>
9312 #endif
9313 /* Override any gcc2 internal prototype to avoid an error. */
9314 #ifdef __cplusplus
9315 extern "C"
9316 {
9317 #endif
9318 /* We use char because int might match the return type of a gcc2
9319 builtin and then its argument prototype would still apply. */
9320 char $ac_func ();
9321 /* The GNU C library defines this for functions which it implements
9322 to always fail with ENOSYS. Some functions are actually named
9323 something starting with __ and the normal name is an alias. */
9324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9325 choke me
9326 #else
9327 char (*f) () = $ac_func;
9328 #endif
9329 #ifdef __cplusplus
9330 }
9331 #endif
9332
9333 int
9334 main ()
9335 {
9336 return f != $ac_func;
9337 ;
9338 return 0;
9339 }
9340 _ACEOF
9341 rm -f conftest.$ac_objext conftest$ac_exeext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9343 (eval $ac_link) 2>&5
9344 ac_status=$?
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try='test -s conftest$ac_exeext'
9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349 (eval $ac_try) 2>&5
9350 ac_status=$?
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; }; then
9353 eval "$as_ac_var=yes"
9354 else
9355 echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9357
9358 eval "$as_ac_var=no"
9359 fi
9360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9361 fi
9362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9364 if test `eval echo '${'$as_ac_var'}'` = yes; then
9365 cat >>confdefs.h <<_ACEOF
9366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9367 _ACEOF
9368 HAVE_GTK_MULTIDISPLAY=yes
9369 fi
9370 done
9371
9372 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9373
9374 cat >>confdefs.h <<\_ACEOF
9375 #define HAVE_GTK_MULTIDISPLAY 1
9376 _ACEOF
9377
9378 fi
9379 HAVE_GTK_FILE_SELECTION=no
9380
9381 for ac_func in gtk_file_selection_new
9382 do
9383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9384 echo "$as_me:$LINENO: checking for $ac_func" >&5
9385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9386 if eval "test \"\${$as_ac_var+set}\" = set"; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 else
9389 cat >conftest.$ac_ext <<_ACEOF
9390 #line $LINENO "configure"
9391 /* confdefs.h. */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 /* System header to define __stub macros and hopefully few prototypes,
9397 which can conflict with char $ac_func (); below.
9398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9399 <limits.h> exists even on freestanding compilers. */
9400 #ifdef __STDC__
9401 # include <limits.h>
9402 #else
9403 # include <assert.h>
9404 #endif
9405 /* Override any gcc2 internal prototype to avoid an error. */
9406 #ifdef __cplusplus
9407 extern "C"
9408 {
9409 #endif
9410 /* We use char because int might match the return type of a gcc2
9411 builtin and then its argument prototype would still apply. */
9412 char $ac_func ();
9413 /* The GNU C library defines this for functions which it implements
9414 to always fail with ENOSYS. Some functions are actually named
9415 something starting with __ and the normal name is an alias. */
9416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9417 choke me
9418 #else
9419 char (*f) () = $ac_func;
9420 #endif
9421 #ifdef __cplusplus
9422 }
9423 #endif
9424
9425 int
9426 main ()
9427 {
9428 return f != $ac_func;
9429 ;
9430 return 0;
9431 }
9432 _ACEOF
9433 rm -f conftest.$ac_objext conftest$ac_exeext
9434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9435 (eval $ac_link) 2>&5
9436 ac_status=$?
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } &&
9439 { ac_try='test -s conftest$ac_exeext'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 eval "$as_ac_var=yes"
9446 else
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9449
9450 eval "$as_ac_var=no"
9451 fi
9452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9453 fi
9454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9456 if test `eval echo '${'$as_ac_var'}'` = yes; then
9457 cat >>confdefs.h <<_ACEOF
9458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9459 _ACEOF
9460 HAVE_GTK_FILE_SELECTION=yes
9461 fi
9462 done
9463
9464
9465 HAVE_GTK_FILE_CHOOSER=no
9466
9467 for ac_func in gtk_file_chooser_dialog_new
9468 do
9469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9470 echo "$as_me:$LINENO: checking for $ac_func" >&5
9471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9472 if eval "test \"\${$as_ac_var+set}\" = set"; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475 cat >conftest.$ac_ext <<_ACEOF
9476 #line $LINENO "configure"
9477 /* confdefs.h. */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 /* System header to define __stub macros and hopefully few prototypes,
9483 which can conflict with char $ac_func (); below.
9484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9485 <limits.h> exists even on freestanding compilers. */
9486 #ifdef __STDC__
9487 # include <limits.h>
9488 #else
9489 # include <assert.h>
9490 #endif
9491 /* Override any gcc2 internal prototype to avoid an error. */
9492 #ifdef __cplusplus
9493 extern "C"
9494 {
9495 #endif
9496 /* We use char because int might match the return type of a gcc2
9497 builtin and then its argument prototype would still apply. */
9498 char $ac_func ();
9499 /* The GNU C library defines this for functions which it implements
9500 to always fail with ENOSYS. Some functions are actually named
9501 something starting with __ and the normal name is an alias. */
9502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9503 choke me
9504 #else
9505 char (*f) () = $ac_func;
9506 #endif
9507 #ifdef __cplusplus
9508 }
9509 #endif
9510
9511 int
9512 main ()
9513 {
9514 return f != $ac_func;
9515 ;
9516 return 0;
9517 }
9518 _ACEOF
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521 (eval $ac_link) 2>&5
9522 ac_status=$?
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } &&
9525 { ac_try='test -s conftest$ac_exeext'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527 (eval $ac_try) 2>&5
9528 ac_status=$?
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
9531 eval "$as_ac_var=yes"
9532 else
9533 echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9535
9536 eval "$as_ac_var=no"
9537 fi
9538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9539 fi
9540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9542 if test `eval echo '${'$as_ac_var'}'` = yes; then
9543 cat >>confdefs.h <<_ACEOF
9544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9545 _ACEOF
9546 HAVE_GTK_FILE_CHOOSER=yes
9547 fi
9548 done
9549
9550
9551 if test "$HAVE_GTK_FILE_SELECTION" = yes \
9552 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
9553
9554 cat >>confdefs.h <<\_ACEOF
9555 #define HAVE_GTK_FILE_BOTH 1
9556 _ACEOF
9557
9558 fi
9559
9560 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
9561 HAVE_GTK_AND_PTHREAD=no
9562
9563 for ac_header in pthread.h
9564 do
9565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9567 echo "$as_me:$LINENO: checking for $ac_header" >&5
9568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 fi
9572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9574 else
9575 # Is the header compilable?
9576 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9578 cat >conftest.$ac_ext <<_ACEOF
9579 #line $LINENO "configure"
9580 /* confdefs.h. */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 $ac_includes_default
9586 #include <$ac_header>
9587 _ACEOF
9588 rm -f conftest.$ac_objext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9590 (eval $ac_compile) 2>&5
9591 ac_status=$?
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
9594 { ac_try='test -s conftest.$ac_objext'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 (eval $ac_try) 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_header_compiler=yes
9601 else
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9604
9605 ac_header_compiler=no
9606 fi
9607 rm -f conftest.$ac_objext conftest.$ac_ext
9608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9609 echo "${ECHO_T}$ac_header_compiler" >&6
9610
9611 # Is the header present?
9612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9614 cat >conftest.$ac_ext <<_ACEOF
9615 #line $LINENO "configure"
9616 /* confdefs.h. */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9621 #include <$ac_header>
9622 _ACEOF
9623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9625 ac_status=$?
9626 grep -v '^ *+' conftest.er1 >conftest.err
9627 rm -f conftest.er1
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } >/dev/null; then
9631 if test -s conftest.err; then
9632 ac_cpp_err=$ac_c_preproc_warn_flag
9633 else
9634 ac_cpp_err=
9635 fi
9636 else
9637 ac_cpp_err=yes
9638 fi
9639 if test -z "$ac_cpp_err"; then
9640 ac_header_preproc=yes
9641 else
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9644
9645 ac_header_preproc=no
9646 fi
9647 rm -f conftest.err conftest.$ac_ext
9648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9649 echo "${ECHO_T}$ac_header_preproc" >&6
9650
9651 # So? What about this header?
9652 case $ac_header_compiler:$ac_header_preproc in
9653 yes:no )
9654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9658 (
9659 cat <<\_ASBOX
9660 ## ------------------------------------ ##
9661 ## Report this to bug-autoconf@gnu.org. ##
9662 ## ------------------------------------ ##
9663 _ASBOX
9664 ) |
9665 sed "s/^/$as_me: WARNING: /" >&2
9666 ;;
9667 no:yes )
9668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9671 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9674 (
9675 cat <<\_ASBOX
9676 ## ------------------------------------ ##
9677 ## Report this to bug-autoconf@gnu.org. ##
9678 ## ------------------------------------ ##
9679 _ASBOX
9680 ) |
9681 sed "s/^/$as_me: WARNING: /" >&2
9682 ;;
9683 esac
9684 echo "$as_me:$LINENO: checking for $ac_header" >&5
9685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689 eval "$as_ac_Header=$ac_header_preproc"
9690 fi
9691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9693
9694 fi
9695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9696 cat >>confdefs.h <<_ACEOF
9697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9698 _ACEOF
9699
9700 fi
9701
9702 done
9703
9704 if test "$ac_cv_header_pthread_h"; then
9705 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
9706 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
9707 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9709 else
9710 ac_check_lib_save_LIBS=$LIBS
9711 LIBS="-lpthread $LIBS"
9712 cat >conftest.$ac_ext <<_ACEOF
9713 #line $LINENO "configure"
9714 /* confdefs.h. */
9715 _ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h. */
9719
9720 /* Override any gcc2 internal prototype to avoid an error. */
9721 #ifdef __cplusplus
9722 extern "C"
9723 #endif
9724 /* We use char because int might match the return type of a gcc2
9725 builtin and then its argument prototype would still apply. */
9726 char pthread_self ();
9727 int
9728 main ()
9729 {
9730 pthread_self ();
9731 ;
9732 return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737 (eval $ac_link) 2>&5
9738 ac_status=$?
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -s conftest$ac_exeext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 (eval $ac_try) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 ac_cv_lib_pthread_pthread_self=yes
9748 else
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9751
9752 ac_cv_lib_pthread_pthread_self=no
9753 fi
9754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9755 LIBS=$ac_check_lib_save_LIBS
9756 fi
9757 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
9758 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
9759 if test $ac_cv_lib_pthread_pthread_self = yes; then
9760 HAVE_GTK_AND_PTHREAD=yes
9761 fi
9762
9763 fi
9764 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9765 GTK_LIBS="$GTK_LIBS -lpthread"
9766
9767 cat >>confdefs.h <<\_ACEOF
9768 #define HAVE_GTK_AND_PTHREAD 1
9769 _ACEOF
9770
9771 fi
9772 fi
9773 fi
9774
9775 if test x"${USE_X_TOOLKIT}" = xmaybe; then
9776 if test x"${HAVE_X11R5}" = xyes; then
9777 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9778 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9779 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782 cat >conftest.$ac_ext <<_ACEOF
9783 #line $LINENO "configure"
9784 /* confdefs.h. */
9785 _ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h. */
9789
9790 #include <X11/Intrinsic.h>
9791 #include <X11/Xaw/Simple.h>
9792 int
9793 main ()
9794 {
9795
9796 ;
9797 return 0;
9798 }
9799 _ACEOF
9800 rm -f conftest.$ac_objext conftest$ac_exeext
9801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9802 (eval $ac_link) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } &&
9806 { ac_try='test -s conftest$ac_exeext'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 (eval $ac_try) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9812 emacs_cv_x11_version_5_with_xaw=yes
9813 else
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9816
9817 emacs_cv_x11_version_5_with_xaw=no
9818 fi
9819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9820 fi
9821
9822 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9823 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9824 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9825 USE_X_TOOLKIT=LUCID
9826 else
9827 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
9828 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9829 USE_X_TOOLKIT=none
9830 fi
9831 else
9832 USE_X_TOOLKIT=none
9833 fi
9834 fi
9835
9836 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9837
9838 if test "${USE_X_TOOLKIT}" != "none"; then
9839 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
9840 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
9841 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844 cat >conftest.$ac_ext <<_ACEOF
9845 #line $LINENO "configure"
9846 /* confdefs.h. */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9851 #include <X11/Intrinsic.h>
9852 int
9853 main ()
9854 {
9855 #if XtSpecificationRelease < 6
9856 fail;
9857 #endif
9858
9859 ;
9860 return 0;
9861 }
9862 _ACEOF
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9865 (eval $ac_link) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } &&
9869 { ac_try='test -s conftest$ac_exeext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 (eval $ac_try) 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 emacs_cv_x11_toolkit_version_6=yes
9876 else
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9879
9880 emacs_cv_x11_toolkit_version_6=no
9881 fi
9882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9883 fi
9884
9885 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9886 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9887 echo "$as_me:$LINENO: result: 6 or newer" >&5
9888 echo "${ECHO_T}6 or newer" >&6
9889
9890 cat >>confdefs.h <<\_ACEOF
9891 #define HAVE_X11XTR6 1
9892 _ACEOF
9893
9894 else
9895 echo "$as_me:$LINENO: result: before 6" >&5
9896 echo "${ECHO_T}before 6" >&6
9897 fi
9898
9899 OLDLIBS="$LIBS"
9900 if test x$HAVE_X11XTR6 = xyes; then
9901 LIBS="-lXt -lSM -lICE $LIBS"
9902 else
9903 LIBS="-lXt $LIBS"
9904 fi
9905
9906 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
9907 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
9908 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911 ac_check_lib_save_LIBS=$LIBS
9912 LIBS="-lXmu $LIBS"
9913 cat >conftest.$ac_ext <<_ACEOF
9914 #line $LINENO "configure"
9915 /* confdefs.h. */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920
9921 /* Override any gcc2 internal prototype to avoid an error. */
9922 #ifdef __cplusplus
9923 extern "C"
9924 #endif
9925 /* We use char because int might match the return type of a gcc2
9926 builtin and then its argument prototype would still apply. */
9927 char XmuConvertStandardSelection ();
9928 int
9929 main ()
9930 {
9931 XmuConvertStandardSelection ();
9932 ;
9933 return 0;
9934 }
9935 _ACEOF
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938 (eval $ac_link) 2>&5
9939 ac_status=$?
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } &&
9942 { ac_try='test -s conftest$ac_exeext'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 (eval $ac_try) 2>&5
9945 ac_status=$?
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; }; then
9948 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9949 else
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9954 fi
9955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9956 LIBS=$ac_check_lib_save_LIBS
9957 fi
9958 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9959 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
9960 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
9961 cat >>confdefs.h <<_ACEOF
9962 #define HAVE_LIBXMU 1
9963 _ACEOF
9964
9965 LIBS="-lXmu $LIBS"
9966
9967 fi
9968
9969 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9970 fi
9971
9972 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9973 if test "${HAVE_X11}" = "yes"; then
9974 if test "${USE_X_TOOLKIT}" != "none"; then
9975
9976 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9977 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
9978 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981 ac_check_lib_save_LIBS=$LIBS
9982 LIBS="-lXext $LIBS"
9983 cat >conftest.$ac_ext <<_ACEOF
9984 #line $LINENO "configure"
9985 /* confdefs.h. */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990
9991 /* Override any gcc2 internal prototype to avoid an error. */
9992 #ifdef __cplusplus
9993 extern "C"
9994 #endif
9995 /* We use char because int might match the return type of a gcc2
9996 builtin and then its argument prototype would still apply. */
9997 char XShapeQueryExtension ();
9998 int
9999 main ()
10000 {
10001 XShapeQueryExtension ();
10002 ;
10003 return 0;
10004 }
10005 _ACEOF
10006 rm -f conftest.$ac_objext conftest$ac_exeext
10007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10008 (eval $ac_link) 2>&5
10009 ac_status=$?
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
10012 { ac_try='test -s conftest$ac_exeext'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; }; then
10018 ac_cv_lib_Xext_XShapeQueryExtension=yes
10019 else
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10022
10023 ac_cv_lib_Xext_XShapeQueryExtension=no
10024 fi
10025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10026 LIBS=$ac_check_lib_save_LIBS
10027 fi
10028 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10029 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10030 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10031 cat >>confdefs.h <<_ACEOF
10032 #define HAVE_LIBXEXT 1
10033 _ACEOF
10034
10035 LIBS="-lXext $LIBS"
10036
10037 fi
10038
10039 fi
10040 fi
10041
10042 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10043 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10044 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10045 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 else
10048 cat >conftest.$ac_ext <<_ACEOF
10049 #line $LINENO "configure"
10050 /* confdefs.h. */
10051 _ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h. */
10055 #include <Xm/Xm.h>
10056 int
10057 main ()
10058 {
10059 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10060 int x = 5;
10061 #else
10062 Motif version prior to 2.1.
10063 #endif
10064 ;
10065 return 0;
10066 }
10067 _ACEOF
10068 rm -f conftest.$ac_objext
10069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10070 (eval $ac_compile) 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } &&
10074 { ac_try='test -s conftest.$ac_objext'
10075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076 (eval $ac_try) 2>&5
10077 ac_status=$?
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; }; then
10080 emacs_cv_motif_version_2_1=yes
10081 else
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10084
10085 emacs_cv_motif_version_2_1=no
10086 fi
10087 rm -f conftest.$ac_objext conftest.$ac_ext
10088 fi
10089 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10090 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10091 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10092 if test $emacs_cv_motif_version_2_1 = yes; then
10093 HAVE_LIBXP=no
10094
10095 cat >>confdefs.h <<\_ACEOF
10096 #define HAVE_MOTIF_2_1 1
10097 _ACEOF
10098
10099 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10100 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10101 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 else
10104 ac_check_lib_save_LIBS=$LIBS
10105 LIBS="-lXp $LIBS"
10106 cat >conftest.$ac_ext <<_ACEOF
10107 #line $LINENO "configure"
10108 /* confdefs.h. */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10113
10114 /* Override any gcc2 internal prototype to avoid an error. */
10115 #ifdef __cplusplus
10116 extern "C"
10117 #endif
10118 /* We use char because int might match the return type of a gcc2
10119 builtin and then its argument prototype would still apply. */
10120 char XpCreateContext ();
10121 int
10122 main ()
10123 {
10124 XpCreateContext ();
10125 ;
10126 return 0;
10127 }
10128 _ACEOF
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10131 (eval $ac_link) 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
10135 { ac_try='test -s conftest$ac_exeext'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10138 ac_status=$?
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 ac_cv_lib_Xp_XpCreateContext=yes
10142 else
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10145
10146 ac_cv_lib_Xp_XpCreateContext=no
10147 fi
10148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10149 LIBS=$ac_check_lib_save_LIBS
10150 fi
10151 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10152 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10153 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10154 HAVE_LIBXP=yes
10155 fi
10156
10157 if test ${HAVE_LIBXP} = yes; then
10158
10159 cat >>confdefs.h <<\_ACEOF
10160 #define HAVE_LIBXP 1
10161 _ACEOF
10162
10163 fi
10164 else
10165 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10166 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10167 if test "${emacs_cv_lesstif+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 else
10170 # We put this in CFLAGS temporarily to precede other -I options
10171 # that might be in CFLAGS temporarily.
10172 # We put this in CPPFLAGS where it precedes the other -I options.
10173 OLD_CPPFLAGS=$CPPFLAGS
10174 OLD_CFLAGS=$CFLAGS
10175 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10176 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10177 cat >conftest.$ac_ext <<_ACEOF
10178 #line $LINENO "configure"
10179 /* confdefs.h. */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10185 int
10186 main ()
10187 {
10188 int x = 5;
10189 ;
10190 return 0;
10191 }
10192 _ACEOF
10193 rm -f conftest.$ac_objext
10194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10195 (eval $ac_compile) 2>&5
10196 ac_status=$?
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } &&
10199 { ac_try='test -s conftest.$ac_objext'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10202 ac_status=$?
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 emacs_cv_lesstif=yes
10206 else
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10209
10210 emacs_cv_lesstif=no
10211 fi
10212 rm -f conftest.$ac_objext conftest.$ac_ext
10213 fi
10214 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10215 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10216 if test $emacs_cv_lesstif = yes; then
10217 # Make sure this -I option remains in CPPFLAGS after it is set
10218 # back to REAL_CPPFLAGS.
10219 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10220 # have those other -I options anyway. Ultimately, having this
10221 # directory ultimately in CPPFLAGS will be enough.
10222 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10223 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10224 else
10225 CFLAGS=$OLD_CFLAGS
10226 CPPFLAGS=$OLD_CPPFLAGS
10227 fi
10228 fi
10229 fi
10230
10231 ### Is -lXaw3d available?
10232 HAVE_XAW3D=no
10233 if test "${HAVE_X11}" = "yes"; then
10234 if test "${USE_X_TOOLKIT}" != "none"; then
10235 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10236 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10237 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240 cat >conftest.$ac_ext <<_ACEOF
10241 #line $LINENO "configure"
10242 /* confdefs.h. */
10243 _ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10247 #include <X11/Xaw3d/Scrollbar.h>
10248 _ACEOF
10249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } >/dev/null; then
10257 if test -s conftest.err; then
10258 ac_cpp_err=$ac_c_preproc_warn_flag
10259 else
10260 ac_cpp_err=
10261 fi
10262 else
10263 ac_cpp_err=yes
10264 fi
10265 if test -z "$ac_cpp_err"; then
10266 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10267 else
10268 echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.$ac_ext >&5
10270
10271 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10272 fi
10273 rm -f conftest.err conftest.$ac_ext
10274 fi
10275 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10276 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10277 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10278 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10279 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10280 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 else
10283 ac_check_lib_save_LIBS=$LIBS
10284 LIBS="-lXaw3d $LIBS"
10285 cat >conftest.$ac_ext <<_ACEOF
10286 #line $LINENO "configure"
10287 /* confdefs.h. */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10292
10293 /* Override any gcc2 internal prototype to avoid an error. */
10294 #ifdef __cplusplus
10295 extern "C"
10296 #endif
10297 /* We use char because int might match the return type of a gcc2
10298 builtin and then its argument prototype would still apply. */
10299 char XawScrollbarSetThumb ();
10300 int
10301 main ()
10302 {
10303 XawScrollbarSetThumb ();
10304 ;
10305 return 0;
10306 }
10307 _ACEOF
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310 (eval $ac_link) 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } &&
10314 { ac_try='test -s conftest$ac_exeext'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10317 ac_status=$?
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; }; then
10320 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10321 else
10322 echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10324
10325 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10326 fi
10327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10328 LIBS=$ac_check_lib_save_LIBS
10329 fi
10330 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10331 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10332 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10333 HAVE_XAW3D=yes
10334 fi
10335
10336 fi
10337
10338
10339 if test "${HAVE_XAW3D}" = "yes"; then
10340
10341 cat >>confdefs.h <<\_ACEOF
10342 #define HAVE_XAW3D 1
10343 _ACEOF
10344
10345 fi
10346 fi
10347 fi
10348
10349
10350
10351 USE_TOOLKIT_SCROLL_BARS=no
10352 if test "${with_toolkit_scroll_bars}" != "no"; then
10353 if test "${USE_X_TOOLKIT}" != "none"; then
10354 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10355 cat >>confdefs.h <<\_ACEOF
10356 #define USE_TOOLKIT_SCROLL_BARS 1
10357 _ACEOF
10358
10359 HAVE_XAW3D=no
10360 USE_TOOLKIT_SCROLL_BARS=yes
10361 elif test "${HAVE_XAW3D}" = "yes"; then
10362 cat >>confdefs.h <<\_ACEOF
10363 #define USE_TOOLKIT_SCROLL_BARS 1
10364 _ACEOF
10365
10366 USE_TOOLKIT_SCROLL_BARS=yes
10367 fi
10368 elif test "${HAVE_GTK}" = "yes"; then
10369 cat >>confdefs.h <<\_ACEOF
10370 #define USE_TOOLKIT_SCROLL_BARS 1
10371 _ACEOF
10372
10373 USE_TOOLKIT_SCROLL_BARS=yes
10374 elif test "${HAVE_CARBON}" = "yes"; then
10375 cat >>confdefs.h <<\_ACEOF
10376 #define USE_TOOLKIT_SCROLL_BARS 1
10377 _ACEOF
10378
10379 USE_TOOLKIT_SCROLL_BARS=yes
10380 fi
10381 fi
10382
10383 cat >conftest.$ac_ext <<_ACEOF
10384 #line $LINENO "configure"
10385 /* confdefs.h. */
10386 _ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10390
10391 #include <X11/Xlib.h>
10392 #include <X11/Xresource.h>
10393 int
10394 main ()
10395 {
10396 XIMProc callback;
10397 ;
10398 return 0;
10399 }
10400 _ACEOF
10401 rm -f conftest.$ac_objext
10402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10403 (eval $ac_compile) 2>&5
10404 ac_status=$?
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } &&
10407 { ac_try='test -s conftest.$ac_objext'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10413 HAVE_XIM=yes
10414
10415 cat >>confdefs.h <<\_ACEOF
10416 #define HAVE_XIM 1
10417 _ACEOF
10418
10419 else
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10422
10423 HAVE_XIM=no
10424 fi
10425 rm -f conftest.$ac_objext conftest.$ac_ext
10426
10427
10428 if test "${with_xim}" != "no"; then
10429
10430 cat >>confdefs.h <<\_ACEOF
10431 #define USE_XIM 1
10432 _ACEOF
10433
10434 fi
10435
10436
10437 if test "${HAVE_XIM}" != "no"; then
10438 late_CFLAGS=$CFLAGS
10439 if test "$GCC" = yes; then
10440 CFLAGS="$CFLAGS --pedantic-errors"
10441 fi
10442 cat >conftest.$ac_ext <<_ACEOF
10443 #line $LINENO "configure"
10444 /* confdefs.h. */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10449
10450 #include <X11/Xlib.h>
10451 #include <X11/Xresource.h>
10452 int
10453 main ()
10454 {
10455 Display *display;
10456 XrmDatabase db;
10457 char *res_name;
10458 char *res_class;
10459 XIMProc callback;
10460 XPointer *client_data;
10461 #ifndef __GNUC__
10462 /* If we're not using GCC, it's probably not XFree86, and this is
10463 probably right, but we can't use something like --pedantic-errors. */
10464 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10465 char*, XIMProc, XPointer*);
10466 #endif
10467 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10468 client_data);
10469 ;
10470 return 0;
10471 }
10472 _ACEOF
10473 rm -f conftest.$ac_objext
10474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10475 (eval $ac_compile) 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } &&
10479 { ac_try='test -s conftest.$ac_objext'
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 emacs_cv_arg6_star=yes
10486 else
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10489
10490 fi
10491 rm -f conftest.$ac_objext conftest.$ac_ext
10492
10493 if test "$emacs_cv_arg6_star" = yes; then
10494 cat >>confdefs.h <<\_ACEOF
10495 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10496 _ACEOF
10497
10498 else
10499 cat >>confdefs.h <<\_ACEOF
10500 #define XRegisterIMInstantiateCallback_arg6 XPointer
10501 _ACEOF
10502
10503 fi
10504 CFLAGS=$late_CFLAGS
10505 fi
10506
10507 ### Use -lXpm if available, unless `--with-xpm=no'.
10508 HAVE_XPM=no
10509 if test "${HAVE_X11}" = "yes"; then
10510 if test "${with_xpm}" != "no"; then
10511 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10512 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10513 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10514 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10516 fi
10517 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10518 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10519 else
10520 # Is the header compilable?
10521 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10522 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10523 cat >conftest.$ac_ext <<_ACEOF
10524 #line $LINENO "configure"
10525 /* confdefs.h. */
10526 _ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10530 $ac_includes_default
10531 #include <X11/xpm.h>
10532 _ACEOF
10533 rm -f conftest.$ac_objext
10534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10535 (eval $ac_compile) 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } &&
10539 { ac_try='test -s conftest.$ac_objext'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
10545 ac_header_compiler=yes
10546 else
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550 ac_header_compiler=no
10551 fi
10552 rm -f conftest.$ac_objext conftest.$ac_ext
10553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10554 echo "${ECHO_T}$ac_header_compiler" >&6
10555
10556 # Is the header present?
10557 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10558 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10559 cat >conftest.$ac_ext <<_ACEOF
10560 #line $LINENO "configure"
10561 /* confdefs.h. */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 #include <X11/xpm.h>
10567 _ACEOF
10568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10570 ac_status=$?
10571 grep -v '^ *+' conftest.er1 >conftest.err
10572 rm -f conftest.er1
10573 cat conftest.err >&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } >/dev/null; then
10576 if test -s conftest.err; then
10577 ac_cpp_err=$ac_c_preproc_warn_flag
10578 else
10579 ac_cpp_err=
10580 fi
10581 else
10582 ac_cpp_err=yes
10583 fi
10584 if test -z "$ac_cpp_err"; then
10585 ac_header_preproc=yes
10586 else
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10589
10590 ac_header_preproc=no
10591 fi
10592 rm -f conftest.err conftest.$ac_ext
10593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10594 echo "${ECHO_T}$ac_header_preproc" >&6
10595
10596 # So? What about this header?
10597 case $ac_header_compiler:$ac_header_preproc in
10598 yes:no )
10599 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10600 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10601 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10602 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10603 (
10604 cat <<\_ASBOX
10605 ## ------------------------------------ ##
10606 ## Report this to bug-autoconf@gnu.org. ##
10607 ## ------------------------------------ ##
10608 _ASBOX
10609 ) |
10610 sed "s/^/$as_me: WARNING: /" >&2
10611 ;;
10612 no:yes )
10613 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10614 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10615 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10616 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10617 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10618 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10619 (
10620 cat <<\_ASBOX
10621 ## ------------------------------------ ##
10622 ## Report this to bug-autoconf@gnu.org. ##
10623 ## ------------------------------------ ##
10624 _ASBOX
10625 ) |
10626 sed "s/^/$as_me: WARNING: /" >&2
10627 ;;
10628 esac
10629 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10630 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10631 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 else
10634 ac_cv_header_X11_xpm_h=$ac_header_preproc
10635 fi
10636 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10637 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10638
10639 fi
10640 if test $ac_cv_header_X11_xpm_h = yes; then
10641 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10642 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10643 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646 ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-lXpm -lX11 $LIBS"
10648 cat >conftest.$ac_ext <<_ACEOF
10649 #line $LINENO "configure"
10650 /* confdefs.h. */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655
10656 /* Override any gcc2 internal prototype to avoid an error. */
10657 #ifdef __cplusplus
10658 extern "C"
10659 #endif
10660 /* We use char because int might match the return type of a gcc2
10661 builtin and then its argument prototype would still apply. */
10662 char XpmReadFileToPixmap ();
10663 int
10664 main ()
10665 {
10666 XpmReadFileToPixmap ();
10667 ;
10668 return 0;
10669 }
10670 _ACEOF
10671 rm -f conftest.$ac_objext conftest$ac_exeext
10672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10673 (eval $ac_link) 2>&5
10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } &&
10677 { ac_try='test -s conftest$ac_exeext'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; }; then
10683 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10684 else
10685 echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10687
10688 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10689 fi
10690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10691 LIBS=$ac_check_lib_save_LIBS
10692 fi
10693 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10694 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10695 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10696 HAVE_XPM=yes
10697 fi
10698
10699 fi
10700
10701
10702 if test "${HAVE_XPM}" = "yes"; then
10703 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10704 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10705 cat >conftest.$ac_ext <<_ACEOF
10706 #line $LINENO "configure"
10707 /* confdefs.h. */
10708 _ACEOF
10709 cat confdefs.h >>conftest.$ac_ext
10710 cat >>conftest.$ac_ext <<_ACEOF
10711 /* end confdefs.h. */
10712 #include "X11/xpm.h"
10713 #ifndef XpmReturnAllocPixels
10714 no_return_alloc_pixels
10715 #endif
10716
10717 _ACEOF
10718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10719 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
10720 HAVE_XPM=no
10721 else
10722 HAVE_XPM=yes
10723 fi
10724 rm -f conftest*
10725
10726
10727 if test "${HAVE_XPM}" = "yes"; then
10728 echo "$as_me:$LINENO: result: yes" >&5
10729 echo "${ECHO_T}yes" >&6
10730 else
10731 echo "$as_me:$LINENO: result: no" >&5
10732 echo "${ECHO_T}no" >&6
10733 fi
10734 fi
10735 fi
10736
10737 if test "${HAVE_XPM}" = "yes"; then
10738
10739 cat >>confdefs.h <<\_ACEOF
10740 #define HAVE_XPM 1
10741 _ACEOF
10742
10743 fi
10744 fi
10745
10746 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10747 HAVE_JPEG=no
10748 if test "${HAVE_X11}" = "yes"; then
10749 if test "${with_jpeg}" != "no"; then
10750 if test "${ac_cv_header_jerror_h+set}" = set; then
10751 echo "$as_me:$LINENO: checking for jerror.h" >&5
10752 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10753 if test "${ac_cv_header_jerror_h+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 fi
10756 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10757 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10758 else
10759 # Is the header compilable?
10760 echo "$as_me:$LINENO: checking jerror.h usability" >&5
10761 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
10762 cat >conftest.$ac_ext <<_ACEOF
10763 #line $LINENO "configure"
10764 /* confdefs.h. */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 $ac_includes_default
10770 #include <jerror.h>
10771 _ACEOF
10772 rm -f conftest.$ac_objext
10773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10774 (eval $ac_compile) 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } &&
10778 { ac_try='test -s conftest.$ac_objext'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 ac_header_compiler=yes
10785 else
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10788
10789 ac_header_compiler=no
10790 fi
10791 rm -f conftest.$ac_objext conftest.$ac_ext
10792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10793 echo "${ECHO_T}$ac_header_compiler" >&6
10794
10795 # Is the header present?
10796 echo "$as_me:$LINENO: checking jerror.h presence" >&5
10797 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
10798 cat >conftest.$ac_ext <<_ACEOF
10799 #line $LINENO "configure"
10800 /* confdefs.h. */
10801 _ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10805 #include <jerror.h>
10806 _ACEOF
10807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10809 ac_status=$?
10810 grep -v '^ *+' conftest.er1 >conftest.err
10811 rm -f conftest.er1
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } >/dev/null; then
10815 if test -s conftest.err; then
10816 ac_cpp_err=$ac_c_preproc_warn_flag
10817 else
10818 ac_cpp_err=
10819 fi
10820 else
10821 ac_cpp_err=yes
10822 fi
10823 if test -z "$ac_cpp_err"; then
10824 ac_header_preproc=yes
10825 else
10826 echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10828
10829 ac_header_preproc=no
10830 fi
10831 rm -f conftest.err conftest.$ac_ext
10832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10833 echo "${ECHO_T}$ac_header_preproc" >&6
10834
10835 # So? What about this header?
10836 case $ac_header_compiler:$ac_header_preproc in
10837 yes:no )
10838 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
10839 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10840 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
10841 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
10842 (
10843 cat <<\_ASBOX
10844 ## ------------------------------------ ##
10845 ## Report this to bug-autoconf@gnu.org. ##
10846 ## ------------------------------------ ##
10847 _ASBOX
10848 ) |
10849 sed "s/^/$as_me: WARNING: /" >&2
10850 ;;
10851 no:yes )
10852 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
10853 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
10854 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
10855 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
10856 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
10857 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
10858 (
10859 cat <<\_ASBOX
10860 ## ------------------------------------ ##
10861 ## Report this to bug-autoconf@gnu.org. ##
10862 ## ------------------------------------ ##
10863 _ASBOX
10864 ) |
10865 sed "s/^/$as_me: WARNING: /" >&2
10866 ;;
10867 esac
10868 echo "$as_me:$LINENO: checking for jerror.h" >&5
10869 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10870 if test "${ac_cv_header_jerror_h+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 else
10873 ac_cv_header_jerror_h=$ac_header_preproc
10874 fi
10875 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10876 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10877
10878 fi
10879 if test $ac_cv_header_jerror_h = yes; then
10880 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
10881 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
10882 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885 ac_check_lib_save_LIBS=$LIBS
10886 LIBS="-ljpeg $LIBS"
10887 cat >conftest.$ac_ext <<_ACEOF
10888 #line $LINENO "configure"
10889 /* confdefs.h. */
10890 _ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h. */
10894
10895 /* Override any gcc2 internal prototype to avoid an error. */
10896 #ifdef __cplusplus
10897 extern "C"
10898 #endif
10899 /* We use char because int might match the return type of a gcc2
10900 builtin and then its argument prototype would still apply. */
10901 char jpeg_destroy_compress ();
10902 int
10903 main ()
10904 {
10905 jpeg_destroy_compress ();
10906 ;
10907 return 0;
10908 }
10909 _ACEOF
10910 rm -f conftest.$ac_objext conftest$ac_exeext
10911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10912 (eval $ac_link) 2>&5
10913 ac_status=$?
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } &&
10916 { ac_try='test -s conftest$ac_exeext'
10917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10919 ac_status=$?
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10923 else
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10926
10927 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10928 fi
10929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10931 fi
10932 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10933 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
10934 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
10935 HAVE_JPEG=yes
10936 fi
10937
10938 fi
10939
10940
10941 fi
10942
10943
10944 if test "${HAVE_JPEG}" = "yes"; then
10945 cat >>confdefs.h <<\_ACEOF
10946 #define HAVE_JPEG 1
10947 _ACEOF
10948
10949 cat >conftest.$ac_ext <<_ACEOF
10950 #line $LINENO "configure"
10951 /* confdefs.h. */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 #include <jpeglib.h>
10957 version=JPEG_LIB_VERSION
10958
10959 _ACEOF
10960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10961 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
10962 cat >>confdefs.h <<\_ACEOF
10963 #define HAVE_JPEG 1
10964 _ACEOF
10965
10966 else
10967 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
10968 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10969 HAVE_JPEG=no
10970 fi
10971 rm -f conftest*
10972
10973 fi
10974 fi
10975
10976 ### Use -lpng if available, unless `--with-png=no'.
10977 HAVE_PNG=no
10978 if test "${HAVE_X11}" = "yes"; then
10979 if test "${with_png}" != "no"; then
10980 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10981 # in /usr/include/libpng.
10982
10983
10984 for ac_header in png.h libpng/png.h
10985 do
10986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10988 echo "$as_me:$LINENO: checking for $ac_header" >&5
10989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 fi
10993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10995 else
10996 # Is the header compilable?
10997 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10999 cat >conftest.$ac_ext <<_ACEOF
11000 #line $LINENO "configure"
11001 /* confdefs.h. */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11006 $ac_includes_default
11007 #include <$ac_header>
11008 _ACEOF
11009 rm -f conftest.$ac_objext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11011 (eval $ac_compile) 2>&5
11012 ac_status=$?
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -s conftest.$ac_objext'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }; then
11021 ac_header_compiler=yes
11022 else
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11025
11026 ac_header_compiler=no
11027 fi
11028 rm -f conftest.$ac_objext conftest.$ac_ext
11029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11030 echo "${ECHO_T}$ac_header_compiler" >&6
11031
11032 # Is the header present?
11033 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11035 cat >conftest.$ac_ext <<_ACEOF
11036 #line $LINENO "configure"
11037 /* confdefs.h. */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042 #include <$ac_header>
11043 _ACEOF
11044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } >/dev/null; then
11052 if test -s conftest.err; then
11053 ac_cpp_err=$ac_c_preproc_warn_flag
11054 else
11055 ac_cpp_err=
11056 fi
11057 else
11058 ac_cpp_err=yes
11059 fi
11060 if test -z "$ac_cpp_err"; then
11061 ac_header_preproc=yes
11062 else
11063 echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11065
11066 ac_header_preproc=no
11067 fi
11068 rm -f conftest.err conftest.$ac_ext
11069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11070 echo "${ECHO_T}$ac_header_preproc" >&6
11071
11072 # So? What about this header?
11073 case $ac_header_compiler:$ac_header_preproc in
11074 yes:no )
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11079 (
11080 cat <<\_ASBOX
11081 ## ------------------------------------ ##
11082 ## Report this to bug-autoconf@gnu.org. ##
11083 ## ------------------------------------ ##
11084 _ASBOX
11085 ) |
11086 sed "s/^/$as_me: WARNING: /" >&2
11087 ;;
11088 no:yes )
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11095 (
11096 cat <<\_ASBOX
11097 ## ------------------------------------ ##
11098 ## Report this to bug-autoconf@gnu.org. ##
11099 ## ------------------------------------ ##
11100 _ASBOX
11101 ) |
11102 sed "s/^/$as_me: WARNING: /" >&2
11103 ;;
11104 esac
11105 echo "$as_me:$LINENO: checking for $ac_header" >&5
11106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110 eval "$as_ac_Header=$ac_header_preproc"
11111 fi
11112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11114
11115 fi
11116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11117 cat >>confdefs.h <<_ACEOF
11118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11119 _ACEOF
11120
11121 fi
11122
11123 done
11124
11125 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11126 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11127 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11128 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 else
11131 ac_check_lib_save_LIBS=$LIBS
11132 LIBS="-lpng -lz -lm $LIBS"
11133 cat >conftest.$ac_ext <<_ACEOF
11134 #line $LINENO "configure"
11135 /* confdefs.h. */
11136 _ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11140
11141 /* Override any gcc2 internal prototype to avoid an error. */
11142 #ifdef __cplusplus
11143 extern "C"
11144 #endif
11145 /* We use char because int might match the return type of a gcc2
11146 builtin and then its argument prototype would still apply. */
11147 char png_get_channels ();
11148 int
11149 main ()
11150 {
11151 png_get_channels ();
11152 ;
11153 return 0;
11154 }
11155 _ACEOF
11156 rm -f conftest.$ac_objext conftest$ac_exeext
11157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11158 (eval $ac_link) 2>&5
11159 ac_status=$?
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } &&
11162 { ac_try='test -s conftest$ac_exeext'
11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164 (eval $ac_try) 2>&5
11165 ac_status=$?
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_cv_lib_png_png_get_channels=yes
11169 else
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11172
11173 ac_cv_lib_png_png_get_channels=no
11174 fi
11175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11176 LIBS=$ac_check_lib_save_LIBS
11177 fi
11178 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11179 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11180 if test $ac_cv_lib_png_png_get_channels = yes; then
11181 HAVE_PNG=yes
11182 fi
11183
11184 fi
11185 fi
11186
11187 if test "${HAVE_PNG}" = "yes"; then
11188
11189 cat >>confdefs.h <<\_ACEOF
11190 #define HAVE_PNG 1
11191 _ACEOF
11192
11193 fi
11194 fi
11195
11196 ### Use -ltiff if available, unless `--with-tiff=no'.
11197 HAVE_TIFF=no
11198 if test "${HAVE_X11}" = "yes"; then
11199 if test "${with_tiff}" != "no"; then
11200 if test "${ac_cv_header_tiffio_h+set}" = set; then
11201 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11202 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11203 if test "${ac_cv_header_tiffio_h+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 fi
11206 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11207 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11208 else
11209 # Is the header compilable?
11210 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11211 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11212 cat >conftest.$ac_ext <<_ACEOF
11213 #line $LINENO "configure"
11214 /* confdefs.h. */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 $ac_includes_default
11220 #include <tiffio.h>
11221 _ACEOF
11222 rm -f conftest.$ac_objext
11223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11224 (eval $ac_compile) 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try='test -s conftest.$ac_objext'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; }; then
11234 ac_header_compiler=yes
11235 else
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11238
11239 ac_header_compiler=no
11240 fi
11241 rm -f conftest.$ac_objext conftest.$ac_ext
11242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11243 echo "${ECHO_T}$ac_header_compiler" >&6
11244
11245 # Is the header present?
11246 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11247 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11248 cat >conftest.$ac_ext <<_ACEOF
11249 #line $LINENO "configure"
11250 /* confdefs.h. */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 #include <tiffio.h>
11256 _ACEOF
11257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } >/dev/null; then
11265 if test -s conftest.err; then
11266 ac_cpp_err=$ac_c_preproc_warn_flag
11267 else
11268 ac_cpp_err=
11269 fi
11270 else
11271 ac_cpp_err=yes
11272 fi
11273 if test -z "$ac_cpp_err"; then
11274 ac_header_preproc=yes
11275 else
11276 echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11278
11279 ac_header_preproc=no
11280 fi
11281 rm -f conftest.err conftest.$ac_ext
11282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11283 echo "${ECHO_T}$ac_header_preproc" >&6
11284
11285 # So? What about this header?
11286 case $ac_header_compiler:$ac_header_preproc in
11287 yes:no )
11288 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11289 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11290 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11291 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11292 (
11293 cat <<\_ASBOX
11294 ## ------------------------------------ ##
11295 ## Report this to bug-autoconf@gnu.org. ##
11296 ## ------------------------------------ ##
11297 _ASBOX
11298 ) |
11299 sed "s/^/$as_me: WARNING: /" >&2
11300 ;;
11301 no:yes )
11302 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11303 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11305 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11307 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11308 (
11309 cat <<\_ASBOX
11310 ## ------------------------------------ ##
11311 ## Report this to bug-autoconf@gnu.org. ##
11312 ## ------------------------------------ ##
11313 _ASBOX
11314 ) |
11315 sed "s/^/$as_me: WARNING: /" >&2
11316 ;;
11317 esac
11318 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11319 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11320 if test "${ac_cv_header_tiffio_h+set}" = set; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 else
11323 ac_cv_header_tiffio_h=$ac_header_preproc
11324 fi
11325 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11326 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11327
11328 fi
11329 if test $ac_cv_header_tiffio_h = yes; then
11330 tifflibs="-lz -lm"
11331 # At least one tiff package requires the jpeg library.
11332 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11333 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11334 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11335 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11337 else
11338 ac_check_lib_save_LIBS=$LIBS
11339 LIBS="-ltiff $tifflibs $LIBS"
11340 cat >conftest.$ac_ext <<_ACEOF
11341 #line $LINENO "configure"
11342 /* confdefs.h. */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347
11348 /* Override any gcc2 internal prototype to avoid an error. */
11349 #ifdef __cplusplus
11350 extern "C"
11351 #endif
11352 /* We use char because int might match the return type of a gcc2
11353 builtin and then its argument prototype would still apply. */
11354 char TIFFGetVersion ();
11355 int
11356 main ()
11357 {
11358 TIFFGetVersion ();
11359 ;
11360 return 0;
11361 }
11362 _ACEOF
11363 rm -f conftest.$ac_objext conftest$ac_exeext
11364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11365 (eval $ac_link) 2>&5
11366 ac_status=$?
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try='test -s conftest$ac_exeext'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }; then
11375 ac_cv_lib_tiff_TIFFGetVersion=yes
11376 else
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11379
11380 ac_cv_lib_tiff_TIFFGetVersion=no
11381 fi
11382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11383 LIBS=$ac_check_lib_save_LIBS
11384 fi
11385 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11386 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11387 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11388 HAVE_TIFF=yes
11389 fi
11390
11391 fi
11392
11393
11394 fi
11395
11396 if test "${HAVE_TIFF}" = "yes"; then
11397
11398 cat >>confdefs.h <<\_ACEOF
11399 #define HAVE_TIFF 1
11400 _ACEOF
11401
11402 fi
11403 fi
11404
11405 ### Use -lgif if available, unless `--with-gif=no'.
11406 HAVE_GIF=no
11407 if test "${HAVE_X11}" = "yes"; then
11408 if test "${with_gif}" != "no"; then
11409 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11410 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11411 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11412 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 fi
11415 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11416 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11417 else
11418 # Is the header compilable?
11419 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11420 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11421 cat >conftest.$ac_ext <<_ACEOF
11422 #line $LINENO "configure"
11423 /* confdefs.h. */
11424 _ACEOF
11425 cat confdefs.h >>conftest.$ac_ext
11426 cat >>conftest.$ac_ext <<_ACEOF
11427 /* end confdefs.h. */
11428 $ac_includes_default
11429 #include <gif_lib.h>
11430 _ACEOF
11431 rm -f conftest.$ac_objext
11432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11433 (eval $ac_compile) 2>&5
11434 ac_status=$?
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
11437 { ac_try='test -s conftest.$ac_objext'
11438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11440 ac_status=$?
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; }; then
11443 ac_header_compiler=yes
11444 else
11445 echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11447
11448 ac_header_compiler=no
11449 fi
11450 rm -f conftest.$ac_objext conftest.$ac_ext
11451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11452 echo "${ECHO_T}$ac_header_compiler" >&6
11453
11454 # Is the header present?
11455 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11456 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11457 cat >conftest.$ac_ext <<_ACEOF
11458 #line $LINENO "configure"
11459 /* confdefs.h. */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h. */
11464 #include <gif_lib.h>
11465 _ACEOF
11466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } >/dev/null; then
11474 if test -s conftest.err; then
11475 ac_cpp_err=$ac_c_preproc_warn_flag
11476 else
11477 ac_cpp_err=
11478 fi
11479 else
11480 ac_cpp_err=yes
11481 fi
11482 if test -z "$ac_cpp_err"; then
11483 ac_header_preproc=yes
11484 else
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11487
11488 ac_header_preproc=no
11489 fi
11490 rm -f conftest.err conftest.$ac_ext
11491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11492 echo "${ECHO_T}$ac_header_preproc" >&6
11493
11494 # So? What about this header?
11495 case $ac_header_compiler:$ac_header_preproc in
11496 yes:no )
11497 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11498 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11499 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11500 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11501 (
11502 cat <<\_ASBOX
11503 ## ------------------------------------ ##
11504 ## Report this to bug-autoconf@gnu.org. ##
11505 ## ------------------------------------ ##
11506 _ASBOX
11507 ) |
11508 sed "s/^/$as_me: WARNING: /" >&2
11509 ;;
11510 no:yes )
11511 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11512 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11513 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11514 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11515 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11516 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11517 (
11518 cat <<\_ASBOX
11519 ## ------------------------------------ ##
11520 ## Report this to bug-autoconf@gnu.org. ##
11521 ## ------------------------------------ ##
11522 _ASBOX
11523 ) |
11524 sed "s/^/$as_me: WARNING: /" >&2
11525 ;;
11526 esac
11527 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11528 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11529 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11530 echo $ECHO_N "(cached) $ECHO_C" >&6
11531 else
11532 ac_cv_header_gif_lib_h=$ac_header_preproc
11533 fi
11534 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11535 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11536
11537 fi
11538 if test $ac_cv_header_gif_lib_h = yes; then
11539 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11540 # Earlier versions can crash Emacs.
11541 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11542 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11543 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11545 else
11546 ac_check_lib_save_LIBS=$LIBS
11547 LIBS="-lungif $LIBS"
11548 cat >conftest.$ac_ext <<_ACEOF
11549 #line $LINENO "configure"
11550 /* confdefs.h. */
11551 _ACEOF
11552 cat confdefs.h >>conftest.$ac_ext
11553 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11555
11556 /* Override any gcc2 internal prototype to avoid an error. */
11557 #ifdef __cplusplus
11558 extern "C"
11559 #endif
11560 /* We use char because int might match the return type of a gcc2
11561 builtin and then its argument prototype would still apply. */
11562 char EGifPutExtensionLast ();
11563 int
11564 main ()
11565 {
11566 EGifPutExtensionLast ();
11567 ;
11568 return 0;
11569 }
11570 _ACEOF
11571 rm -f conftest.$ac_objext conftest$ac_exeext
11572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11573 (eval $ac_link) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } &&
11577 { ac_try='test -s conftest$ac_exeext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11584 else
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11587
11588 ac_cv_lib_ungif_EGifPutExtensionLast=no
11589 fi
11590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11591 LIBS=$ac_check_lib_save_LIBS
11592 fi
11593 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11594 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11595 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11596 HAVE_GIF=yes
11597 fi
11598
11599 fi
11600
11601
11602 fi
11603
11604 if test "${HAVE_GIF}" = "yes"; then
11605
11606 cat >>confdefs.h <<\_ACEOF
11607 #define HAVE_GIF 1
11608 _ACEOF
11609
11610 fi
11611 fi
11612
11613 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
11614 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
11615 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
11616 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 fi
11619 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
11620 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
11621 else
11622 # Is the header compilable?
11623 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
11624 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
11625 cat >conftest.$ac_ext <<_ACEOF
11626 #line $LINENO "configure"
11627 /* confdefs.h. */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11632 $ac_includes_default
11633 #include <malloc/malloc.h>
11634 _ACEOF
11635 rm -f conftest.$ac_objext
11636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11637 (eval $ac_compile) 2>&5
11638 ac_status=$?
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } &&
11641 { ac_try='test -s conftest.$ac_objext'
11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 ac_header_compiler=yes
11648 else
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11651
11652 ac_header_compiler=no
11653 fi
11654 rm -f conftest.$ac_objext conftest.$ac_ext
11655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11656 echo "${ECHO_T}$ac_header_compiler" >&6
11657
11658 # Is the header present?
11659 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
11660 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
11661 cat >conftest.$ac_ext <<_ACEOF
11662 #line $LINENO "configure"
11663 /* confdefs.h. */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11668 #include <malloc/malloc.h>
11669 _ACEOF
11670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11672 ac_status=$?
11673 grep -v '^ *+' conftest.er1 >conftest.err
11674 rm -f conftest.er1
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } >/dev/null; then
11678 if test -s conftest.err; then
11679 ac_cpp_err=$ac_c_preproc_warn_flag
11680 else
11681 ac_cpp_err=
11682 fi
11683 else
11684 ac_cpp_err=yes
11685 fi
11686 if test -z "$ac_cpp_err"; then
11687 ac_header_preproc=yes
11688 else
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11691
11692 ac_header_preproc=no
11693 fi
11694 rm -f conftest.err conftest.$ac_ext
11695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11696 echo "${ECHO_T}$ac_header_preproc" >&6
11697
11698 # So? What about this header?
11699 case $ac_header_compiler:$ac_header_preproc in
11700 yes:no )
11701 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
11702 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
11704 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
11705 (
11706 cat <<\_ASBOX
11707 ## ------------------------------------ ##
11708 ## Report this to bug-autoconf@gnu.org. ##
11709 ## ------------------------------------ ##
11710 _ASBOX
11711 ) |
11712 sed "s/^/$as_me: WARNING: /" >&2
11713 ;;
11714 no:yes )
11715 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
11716 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
11718 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
11720 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
11721 (
11722 cat <<\_ASBOX
11723 ## ------------------------------------ ##
11724 ## Report this to bug-autoconf@gnu.org. ##
11725 ## ------------------------------------ ##
11726 _ASBOX
11727 ) |
11728 sed "s/^/$as_me: WARNING: /" >&2
11729 ;;
11730 esac
11731 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
11732 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
11733 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736 ac_cv_header_malloc_malloc_h=$ac_header_preproc
11737 fi
11738 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
11739 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
11740
11741 fi
11742 if test $ac_cv_header_malloc_malloc_h = yes; then
11743
11744 cat >>confdefs.h <<\_ACEOF
11745 #define HAVE_MALLOC_MALLOC_H 1
11746 _ACEOF
11747
11748 fi
11749
11750
11751
11752 ### Use Mac OS X Carbon API to implement GUI.
11753 if test "${HAVE_CARBON}" = "yes"; then
11754
11755 cat >>confdefs.h <<\_ACEOF
11756 #define HAVE_CARBON 1
11757 _ACEOF
11758
11759 window_system=mac
11760 ## Specify the install directory
11761 carbon_appdir=
11762 if test "${carbon_appdir_x}" != ""; then
11763 case ${carbon_appdir_x} in
11764 y | ye | yes) carbon_appdir=/Applications ;;
11765 * ) carbon_appdir=${carbon_appdir_x} ;;
11766 esac
11767 fi
11768 # We also have mouse menus.
11769 HAVE_MENUS=yes
11770
11771 tmp_CFLAGS="$CFLAGS"
11772 CFLAGS="$CFLAGS -framework Carbon"
11773 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
11774 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
11775 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
11776 echo $ECHO_N "(cached) $ECHO_C" >&6
11777 else
11778 cat >conftest.$ac_ext <<_ACEOF
11779 #line $LINENO "configure"
11780 /* confdefs.h. */
11781 _ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11785 /* System header to define __stub macros and hopefully few prototypes,
11786 which can conflict with char CancelMenuTracking (); below.
11787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11788 <limits.h> exists even on freestanding compilers. */
11789 #ifdef __STDC__
11790 # include <limits.h>
11791 #else
11792 # include <assert.h>
11793 #endif
11794 /* Override any gcc2 internal prototype to avoid an error. */
11795 #ifdef __cplusplus
11796 extern "C"
11797 {
11798 #endif
11799 /* We use char because int might match the return type of a gcc2
11800 builtin and then its argument prototype would still apply. */
11801 char CancelMenuTracking ();
11802 /* The GNU C library defines this for functions which it implements
11803 to always fail with ENOSYS. Some functions are actually named
11804 something starting with __ and the normal name is an alias. */
11805 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
11806 choke me
11807 #else
11808 char (*f) () = CancelMenuTracking;
11809 #endif
11810 #ifdef __cplusplus
11811 }
11812 #endif
11813
11814 int
11815 main ()
11816 {
11817 return f != CancelMenuTracking;
11818 ;
11819 return 0;
11820 }
11821 _ACEOF
11822 rm -f conftest.$ac_objext conftest$ac_exeext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11824 (eval $ac_link) 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try='test -s conftest$ac_exeext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 ac_cv_func_CancelMenuTracking=yes
11835 else
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11838
11839 ac_cv_func_CancelMenuTracking=no
11840 fi
11841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11842 fi
11843 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
11844 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
11845 if test $ac_cv_func_CancelMenuTracking = yes; then
11846 have_cmt=yes
11847 else
11848 have_cmt=no
11849 fi
11850
11851 if test "$have_cmt" = yes; then
11852
11853 cat >>confdefs.h <<\_ACEOF
11854 #define HAVE_CANCELMENUTRACKING 1
11855 _ACEOF
11856
11857 fi
11858 CFLAGS="$tmp_CFLAGS"
11859 fi
11860
11861 ### Use session management (-lSM -lICE) if available
11862 HAVE_X_SM=no
11863 if test "${HAVE_X11}" = "yes"; then
11864 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11865 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
11866 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
11867 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11869 fi
11870 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
11871 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
11872 else
11873 # Is the header compilable?
11874 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
11875 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
11876 cat >conftest.$ac_ext <<_ACEOF
11877 #line $LINENO "configure"
11878 /* confdefs.h. */
11879 _ACEOF
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h. */
11883 $ac_includes_default
11884 #include <X11/SM/SMlib.h>
11885 _ACEOF
11886 rm -f conftest.$ac_objext
11887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11888 (eval $ac_compile) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } &&
11892 { ac_try='test -s conftest.$ac_objext'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; }; then
11898 ac_header_compiler=yes
11899 else
11900 echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11902
11903 ac_header_compiler=no
11904 fi
11905 rm -f conftest.$ac_objext conftest.$ac_ext
11906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11907 echo "${ECHO_T}$ac_header_compiler" >&6
11908
11909 # Is the header present?
11910 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
11911 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
11912 cat >conftest.$ac_ext <<_ACEOF
11913 #line $LINENO "configure"
11914 /* confdefs.h. */
11915 _ACEOF
11916 cat confdefs.h >>conftest.$ac_ext
11917 cat >>conftest.$ac_ext <<_ACEOF
11918 /* end confdefs.h. */
11919 #include <X11/SM/SMlib.h>
11920 _ACEOF
11921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11923 ac_status=$?
11924 grep -v '^ *+' conftest.er1 >conftest.err
11925 rm -f conftest.er1
11926 cat conftest.err >&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } >/dev/null; then
11929 if test -s conftest.err; then
11930 ac_cpp_err=$ac_c_preproc_warn_flag
11931 else
11932 ac_cpp_err=
11933 fi
11934 else
11935 ac_cpp_err=yes
11936 fi
11937 if test -z "$ac_cpp_err"; then
11938 ac_header_preproc=yes
11939 else
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11942
11943 ac_header_preproc=no
11944 fi
11945 rm -f conftest.err conftest.$ac_ext
11946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11947 echo "${ECHO_T}$ac_header_preproc" >&6
11948
11949 # So? What about this header?
11950 case $ac_header_compiler:$ac_header_preproc in
11951 yes:no )
11952 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11953 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11954 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
11955 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
11956 (
11957 cat <<\_ASBOX
11958 ## ------------------------------------ ##
11959 ## Report this to bug-autoconf@gnu.org. ##
11960 ## ------------------------------------ ##
11961 _ASBOX
11962 ) |
11963 sed "s/^/$as_me: WARNING: /" >&2
11964 ;;
11965 no:yes )
11966 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
11967 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
11968 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
11969 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
11970 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
11971 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
11972 (
11973 cat <<\_ASBOX
11974 ## ------------------------------------ ##
11975 ## Report this to bug-autoconf@gnu.org. ##
11976 ## ------------------------------------ ##
11977 _ASBOX
11978 ) |
11979 sed "s/^/$as_me: WARNING: /" >&2
11980 ;;
11981 esac
11982 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
11983 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
11984 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
11988 fi
11989 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
11990 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
11991
11992 fi
11993 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
11994 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
11995 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
11996 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11998 else
11999 ac_check_lib_save_LIBS=$LIBS
12000 LIBS="-lSM -lICE $LIBS"
12001 cat >conftest.$ac_ext <<_ACEOF
12002 #line $LINENO "configure"
12003 /* confdefs.h. */
12004 _ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12008
12009 /* Override any gcc2 internal prototype to avoid an error. */
12010 #ifdef __cplusplus
12011 extern "C"
12012 #endif
12013 /* We use char because int might match the return type of a gcc2
12014 builtin and then its argument prototype would still apply. */
12015 char SmcOpenConnection ();
12016 int
12017 main ()
12018 {
12019 SmcOpenConnection ();
12020 ;
12021 return 0;
12022 }
12023 _ACEOF
12024 rm -f conftest.$ac_objext conftest$ac_exeext
12025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12026 (eval $ac_link) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -s conftest$ac_exeext'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12036 ac_cv_lib_SM_SmcOpenConnection=yes
12037 else
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12040
12041 ac_cv_lib_SM_SmcOpenConnection=no
12042 fi
12043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12044 LIBS=$ac_check_lib_save_LIBS
12045 fi
12046 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12047 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12048 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12049 HAVE_X_SM=yes
12050 fi
12051
12052 fi
12053
12054
12055
12056 if test "${HAVE_X_SM}" = "yes"; then
12057
12058 cat >>confdefs.h <<\_ACEOF
12059 #define HAVE_X_SM 1
12060 _ACEOF
12061
12062 case "$LIBS" in
12063 *-lSM*) ;;
12064 *) LIBS="-lSM -lICE $LIBS" ;;
12065 esac
12066 fi
12067 fi
12068
12069 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12070 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12071 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12072 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075 cat >conftest.$ac_ext <<_ACEOF
12076 #line $LINENO "configure"
12077 /* confdefs.h. */
12078 _ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12082 #include <netdb.h>
12083 int
12084 main ()
12085 {
12086 return h_errno;
12087 ;
12088 return 0;
12089 }
12090 _ACEOF
12091 rm -f conftest.$ac_objext conftest$ac_exeext
12092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12093 (eval $ac_link) 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try='test -s conftest$ac_exeext'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 emacs_cv_netdb_declares_h_errno=yes
12104 else
12105 echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12107
12108 emacs_cv_netdb_declares_h_errno=no
12109 fi
12110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12111 fi
12112 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12113 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12114 if test $emacs_cv_netdb_declares_h_errno = yes; then
12115
12116 cat >>confdefs.h <<\_ACEOF
12117 #define HAVE_H_ERRNO 1
12118 _ACEOF
12119
12120 fi
12121
12122 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12123 # for constant arguments. Useless!
12124 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12125 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12126 if test "${ac_cv_working_alloca_h+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 else
12129 cat >conftest.$ac_ext <<_ACEOF
12130 #line $LINENO "configure"
12131 /* confdefs.h. */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12136 #include <alloca.h>
12137 int
12138 main ()
12139 {
12140 char *p = (char *) alloca (2 * sizeof (int));
12141 ;
12142 return 0;
12143 }
12144 _ACEOF
12145 rm -f conftest.$ac_objext conftest$ac_exeext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12147 (eval $ac_link) 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } &&
12151 { ac_try='test -s conftest$ac_exeext'
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12154 ac_status=$?
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 ac_cv_working_alloca_h=yes
12158 else
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12161
12162 ac_cv_working_alloca_h=no
12163 fi
12164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12165 fi
12166 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12167 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12168 if test $ac_cv_working_alloca_h = yes; then
12169
12170 cat >>confdefs.h <<\_ACEOF
12171 #define HAVE_ALLOCA_H 1
12172 _ACEOF
12173
12174 fi
12175
12176 echo "$as_me:$LINENO: checking for alloca" >&5
12177 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12178 if test "${ac_cv_func_alloca_works+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 else
12181 cat >conftest.$ac_ext <<_ACEOF
12182 #line $LINENO "configure"
12183 /* confdefs.h. */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 #ifdef __GNUC__
12189 # define alloca __builtin_alloca
12190 #else
12191 # ifdef _MSC_VER
12192 # include <malloc.h>
12193 # define alloca _alloca
12194 # else
12195 # if HAVE_ALLOCA_H
12196 # include <alloca.h>
12197 # else
12198 # ifdef _AIX
12199 #pragma alloca
12200 # else
12201 # ifndef alloca /* predefined by HP cc +Olibcalls */
12202 char *alloca ();
12203 # endif
12204 # endif
12205 # endif
12206 # endif
12207 #endif
12208
12209 int
12210 main ()
12211 {
12212 char *p = (char *) alloca (1);
12213 ;
12214 return 0;
12215 }
12216 _ACEOF
12217 rm -f conftest.$ac_objext conftest$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219 (eval $ac_link) 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -s conftest$ac_exeext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_cv_func_alloca_works=yes
12230 else
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234 ac_cv_func_alloca_works=no
12235 fi
12236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12237 fi
12238 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12239 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12240
12241 if test $ac_cv_func_alloca_works = yes; then
12242
12243 cat >>confdefs.h <<\_ACEOF
12244 #define HAVE_ALLOCA 1
12245 _ACEOF
12246
12247 else
12248 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12249 # that cause trouble. Some versions do not even contain alloca or
12250 # contain a buggy version. If you still want to use their alloca,
12251 # use ar to extract alloca.o from them instead of compiling alloca.c.
12252
12253 ALLOCA=alloca.$ac_objext
12254
12255 cat >>confdefs.h <<\_ACEOF
12256 #define C_ALLOCA 1
12257 _ACEOF
12258
12259
12260 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12261 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12262 if test "${ac_cv_os_cray+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265 cat >conftest.$ac_ext <<_ACEOF
12266 #line $LINENO "configure"
12267 /* confdefs.h. */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12272 #if defined(CRAY) && ! defined(CRAY2)
12273 webecray
12274 #else
12275 wenotbecray
12276 #endif
12277
12278 _ACEOF
12279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12280 $EGREP "webecray" >/dev/null 2>&1; then
12281 ac_cv_os_cray=yes
12282 else
12283 ac_cv_os_cray=no
12284 fi
12285 rm -f conftest*
12286
12287 fi
12288 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12289 echo "${ECHO_T}$ac_cv_os_cray" >&6
12290 if test $ac_cv_os_cray = yes; then
12291 for ac_func in _getb67 GETB67 getb67; do
12292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12293 echo "$as_me:$LINENO: checking for $ac_func" >&5
12294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12295 if eval "test \"\${$as_ac_var+set}\" = set"; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12297 else
12298 cat >conftest.$ac_ext <<_ACEOF
12299 #line $LINENO "configure"
12300 /* confdefs.h. */
12301 _ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12305 /* System header to define __stub macros and hopefully few prototypes,
12306 which can conflict with char $ac_func (); below.
12307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12308 <limits.h> exists even on freestanding compilers. */
12309 #ifdef __STDC__
12310 # include <limits.h>
12311 #else
12312 # include <assert.h>
12313 #endif
12314 /* Override any gcc2 internal prototype to avoid an error. */
12315 #ifdef __cplusplus
12316 extern "C"
12317 {
12318 #endif
12319 /* We use char because int might match the return type of a gcc2
12320 builtin and then its argument prototype would still apply. */
12321 char $ac_func ();
12322 /* The GNU C library defines this for functions which it implements
12323 to always fail with ENOSYS. Some functions are actually named
12324 something starting with __ and the normal name is an alias. */
12325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12326 choke me
12327 #else
12328 char (*f) () = $ac_func;
12329 #endif
12330 #ifdef __cplusplus
12331 }
12332 #endif
12333
12334 int
12335 main ()
12336 {
12337 return f != $ac_func;
12338 ;
12339 return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344 (eval $ac_link) 2>&5
12345 ac_status=$?
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } &&
12348 { ac_try='test -s conftest$ac_exeext'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12351 ac_status=$?
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
12354 eval "$as_ac_var=yes"
12355 else
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12358
12359 eval "$as_ac_var=no"
12360 fi
12361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12362 fi
12363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12365 if test `eval echo '${'$as_ac_var'}'` = yes; then
12366
12367 cat >>confdefs.h <<_ACEOF
12368 #define CRAY_STACKSEG_END $ac_func
12369 _ACEOF
12370
12371 break
12372 fi
12373
12374 done
12375 fi
12376
12377 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12378 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12379 if test "${ac_cv_c_stack_direction+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 else
12382 if test "$cross_compiling" = yes; then
12383 ac_cv_c_stack_direction=0
12384 else
12385 cat >conftest.$ac_ext <<_ACEOF
12386 #line $LINENO "configure"
12387 /* confdefs.h. */
12388 _ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12392 int
12393 find_stack_direction ()
12394 {
12395 static char *addr = 0;
12396 auto char dummy;
12397 if (addr == 0)
12398 {
12399 addr = &dummy;
12400 return find_stack_direction ();
12401 }
12402 else
12403 return (&dummy > addr) ? 1 : -1;
12404 }
12405
12406 int
12407 main ()
12408 {
12409 exit (find_stack_direction () < 0);
12410 }
12411 _ACEOF
12412 rm -f conftest$ac_exeext
12413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12414 (eval $ac_link) 2>&5
12415 ac_status=$?
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12420 ac_status=$?
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; }; then
12423 ac_cv_c_stack_direction=1
12424 else
12425 echo "$as_me: program exited with status $ac_status" >&5
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12428
12429 ( exit $ac_status )
12430 ac_cv_c_stack_direction=-1
12431 fi
12432 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12433 fi
12434 fi
12435 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12436 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12437
12438 cat >>confdefs.h <<_ACEOF
12439 #define STACK_DIRECTION $ac_cv_c_stack_direction
12440 _ACEOF
12441
12442
12443 fi
12444
12445
12446 # fmod, logb, and frexp are found in -lm on most systems.
12447 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12448
12449 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12450 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12451 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12453 else
12454 ac_check_lib_save_LIBS=$LIBS
12455 LIBS="-lm $LIBS"
12456 cat >conftest.$ac_ext <<_ACEOF
12457 #line $LINENO "configure"
12458 /* confdefs.h. */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463
12464 /* Override any gcc2 internal prototype to avoid an error. */
12465 #ifdef __cplusplus
12466 extern "C"
12467 #endif
12468 /* We use char because int might match the return type of a gcc2
12469 builtin and then its argument prototype would still apply. */
12470 char sqrt ();
12471 int
12472 main ()
12473 {
12474 sqrt ();
12475 ;
12476 return 0;
12477 }
12478 _ACEOF
12479 rm -f conftest.$ac_objext conftest$ac_exeext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12481 (eval $ac_link) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); } &&
12485 { ac_try='test -s conftest$ac_exeext'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12491 ac_cv_lib_m_sqrt=yes
12492 else
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12495
12496 ac_cv_lib_m_sqrt=no
12497 fi
12498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12499 LIBS=$ac_check_lib_save_LIBS
12500 fi
12501 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12502 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12503 if test $ac_cv_lib_m_sqrt = yes; then
12504 cat >>confdefs.h <<_ACEOF
12505 #define HAVE_LIBM 1
12506 _ACEOF
12507
12508 LIBS="-lm $LIBS"
12509
12510 fi
12511
12512
12513 # Check for mail-locking functions in a "mail" library. Probably this should
12514 # have the same check as for liblockfile below.
12515
12516 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12517 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12518 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521 ac_check_lib_save_LIBS=$LIBS
12522 LIBS="-lmail $LIBS"
12523 cat >conftest.$ac_ext <<_ACEOF
12524 #line $LINENO "configure"
12525 /* confdefs.h. */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530
12531 /* Override any gcc2 internal prototype to avoid an error. */
12532 #ifdef __cplusplus
12533 extern "C"
12534 #endif
12535 /* We use char because int might match the return type of a gcc2
12536 builtin and then its argument prototype would still apply. */
12537 char maillock ();
12538 int
12539 main ()
12540 {
12541 maillock ();
12542 ;
12543 return 0;
12544 }
12545 _ACEOF
12546 rm -f conftest.$ac_objext conftest$ac_exeext
12547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12548 (eval $ac_link) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -s conftest$ac_exeext'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12558 ac_cv_lib_mail_maillock=yes
12559 else
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12562
12563 ac_cv_lib_mail_maillock=no
12564 fi
12565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12566 LIBS=$ac_check_lib_save_LIBS
12567 fi
12568 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12569 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12570 if test $ac_cv_lib_mail_maillock = yes; then
12571 cat >>confdefs.h <<_ACEOF
12572 #define HAVE_LIBMAIL 1
12573 _ACEOF
12574
12575 LIBS="-lmail $LIBS"
12576
12577 fi
12578
12579
12580 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12581 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12582 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 else
12585 ac_check_lib_save_LIBS=$LIBS
12586 LIBS="-llockfile $LIBS"
12587 cat >conftest.$ac_ext <<_ACEOF
12588 #line $LINENO "configure"
12589 /* confdefs.h. */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12594
12595 /* Override any gcc2 internal prototype to avoid an error. */
12596 #ifdef __cplusplus
12597 extern "C"
12598 #endif
12599 /* We use char because int might match the return type of a gcc2
12600 builtin and then its argument prototype would still apply. */
12601 char maillock ();
12602 int
12603 main ()
12604 {
12605 maillock ();
12606 ;
12607 return 0;
12608 }
12609 _ACEOF
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12612 (eval $ac_link) 2>&5
12613 ac_status=$?
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } &&
12616 { ac_try='test -s conftest$ac_exeext'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 ac_cv_lib_lockfile_maillock=yes
12623 else
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12626
12627 ac_cv_lib_lockfile_maillock=no
12628 fi
12629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12630 LIBS=$ac_check_lib_save_LIBS
12631 fi
12632 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12633 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12634 if test $ac_cv_lib_lockfile_maillock = yes; then
12635 cat >>confdefs.h <<_ACEOF
12636 #define HAVE_LIBLOCKFILE 1
12637 _ACEOF
12638
12639 LIBS="-llockfile $LIBS"
12640
12641 fi
12642
12643 # If we have the shared liblockfile, assume we must use it for mail
12644 # locking (e.g. Debian). If we couldn't link against liblockfile
12645 # (no liblockfile.a installed), ensure that we don't need to.
12646 if test "$ac_cv_lib_lockfile_maillock" = no; then
12647 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12648 set dummy liblockfile.so; ac_word=$2
12649 echo "$as_me:$LINENO: checking for $ac_word" >&5
12650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12651 if test "${ac_cv_prog_liblockfile+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12653 else
12654 if test -n "$liblockfile"; then
12655 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12656 else
12657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12658 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12659 for as_dir in $as_dummy
12660 do
12661 IFS=$as_save_IFS
12662 test -z "$as_dir" && as_dir=.
12663 for ac_exec_ext in '' $ac_executable_extensions; do
12664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12665 ac_cv_prog_liblockfile="yes"
12666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12667 break 2
12668 fi
12669 done
12670 done
12671
12672 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12673 fi
12674 fi
12675 liblockfile=$ac_cv_prog_liblockfile
12676 if test -n "$liblockfile"; then
12677 echo "$as_me:$LINENO: result: $liblockfile" >&5
12678 echo "${ECHO_T}$liblockfile" >&6
12679 else
12680 echo "$as_me:$LINENO: result: no" >&5
12681 echo "${ECHO_T}no" >&6
12682 fi
12683
12684 if test $ac_cv_prog_liblockfile = yes; then
12685 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
12686 This probably means that movemail could lose mail.
12687 There may be a \`development' package to install containing liblockfile." >&5
12688 echo "$as_me: error: Shared liblockfile found but can't link against it.
12689 This probably means that movemail could lose mail.
12690 There may be a \`development' package to install containing liblockfile." >&2;}
12691 { (exit 1); exit 1; }; }
12692 else :
12693 fi
12694 fi
12695
12696 for ac_func in touchlock
12697 do
12698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12699 echo "$as_me:$LINENO: checking for $ac_func" >&5
12700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12701 if eval "test \"\${$as_ac_var+set}\" = set"; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704 cat >conftest.$ac_ext <<_ACEOF
12705 #line $LINENO "configure"
12706 /* confdefs.h. */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 /* System header to define __stub macros and hopefully few prototypes,
12712 which can conflict with char $ac_func (); below.
12713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12714 <limits.h> exists even on freestanding compilers. */
12715 #ifdef __STDC__
12716 # include <limits.h>
12717 #else
12718 # include <assert.h>
12719 #endif
12720 /* Override any gcc2 internal prototype to avoid an error. */
12721 #ifdef __cplusplus
12722 extern "C"
12723 {
12724 #endif
12725 /* We use char because int might match the return type of a gcc2
12726 builtin and then its argument prototype would still apply. */
12727 char $ac_func ();
12728 /* The GNU C library defines this for functions which it implements
12729 to always fail with ENOSYS. Some functions are actually named
12730 something starting with __ and the normal name is an alias. */
12731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12732 choke me
12733 #else
12734 char (*f) () = $ac_func;
12735 #endif
12736 #ifdef __cplusplus
12737 }
12738 #endif
12739
12740 int
12741 main ()
12742 {
12743 return f != $ac_func;
12744 ;
12745 return 0;
12746 }
12747 _ACEOF
12748 rm -f conftest.$ac_objext conftest$ac_exeext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12750 (eval $ac_link) 2>&5
12751 ac_status=$?
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } &&
12754 { ac_try='test -s conftest$ac_exeext'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; }; then
12760 eval "$as_ac_var=yes"
12761 else
12762 echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12764
12765 eval "$as_ac_var=no"
12766 fi
12767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12768 fi
12769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12771 if test `eval echo '${'$as_ac_var'}'` = yes; then
12772 cat >>confdefs.h <<_ACEOF
12773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12774 _ACEOF
12775
12776 fi
12777 done
12778
12779
12780 for ac_header in maillock.h
12781 do
12782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12784 echo "$as_me:$LINENO: checking for $ac_header" >&5
12785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12788 fi
12789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12791 else
12792 # Is the header compilable?
12793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12795 cat >conftest.$ac_ext <<_ACEOF
12796 #line $LINENO "configure"
12797 /* confdefs.h. */
12798 _ACEOF
12799 cat confdefs.h >>conftest.$ac_ext
12800 cat >>conftest.$ac_ext <<_ACEOF
12801 /* end confdefs.h. */
12802 $ac_includes_default
12803 #include <$ac_header>
12804 _ACEOF
12805 rm -f conftest.$ac_objext
12806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12807 (eval $ac_compile) 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try='test -s conftest.$ac_objext'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 ac_header_compiler=yes
12818 else
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12821
12822 ac_header_compiler=no
12823 fi
12824 rm -f conftest.$ac_objext conftest.$ac_ext
12825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12826 echo "${ECHO_T}$ac_header_compiler" >&6
12827
12828 # Is the header present?
12829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12831 cat >conftest.$ac_ext <<_ACEOF
12832 #line $LINENO "configure"
12833 /* confdefs.h. */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12838 #include <$ac_header>
12839 _ACEOF
12840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12842 ac_status=$?
12843 grep -v '^ *+' conftest.er1 >conftest.err
12844 rm -f conftest.er1
12845 cat conftest.err >&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } >/dev/null; then
12848 if test -s conftest.err; then
12849 ac_cpp_err=$ac_c_preproc_warn_flag
12850 else
12851 ac_cpp_err=
12852 fi
12853 else
12854 ac_cpp_err=yes
12855 fi
12856 if test -z "$ac_cpp_err"; then
12857 ac_header_preproc=yes
12858 else
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12861
12862 ac_header_preproc=no
12863 fi
12864 rm -f conftest.err conftest.$ac_ext
12865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12866 echo "${ECHO_T}$ac_header_preproc" >&6
12867
12868 # So? What about this header?
12869 case $ac_header_compiler:$ac_header_preproc in
12870 yes:no )
12871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12875 (
12876 cat <<\_ASBOX
12877 ## ------------------------------------ ##
12878 ## Report this to bug-autoconf@gnu.org. ##
12879 ## ------------------------------------ ##
12880 _ASBOX
12881 ) |
12882 sed "s/^/$as_me: WARNING: /" >&2
12883 ;;
12884 no:yes )
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12891 (
12892 cat <<\_ASBOX
12893 ## ------------------------------------ ##
12894 ## Report this to bug-autoconf@gnu.org. ##
12895 ## ------------------------------------ ##
12896 _ASBOX
12897 ) |
12898 sed "s/^/$as_me: WARNING: /" >&2
12899 ;;
12900 esac
12901 echo "$as_me:$LINENO: checking for $ac_header" >&5
12902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12905 else
12906 eval "$as_ac_Header=$ac_header_preproc"
12907 fi
12908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12910
12911 fi
12912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12913 cat >>confdefs.h <<_ACEOF
12914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12915 _ACEOF
12916
12917 fi
12918
12919 done
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989 for ac_func in gethostname getdomainname dup2 \
12990 rename closedir mkdir rmdir sysinfo getrusage \
12991 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
12992 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
12993 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12994 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
12995 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12996 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
12997 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
12998 do
12999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13000 echo "$as_me:$LINENO: checking for $ac_func" >&5
13001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13002 if eval "test \"\${$as_ac_var+set}\" = set"; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13004 else
13005 cat >conftest.$ac_ext <<_ACEOF
13006 #line $LINENO "configure"
13007 /* confdefs.h. */
13008 _ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012 /* System header to define __stub macros and hopefully few prototypes,
13013 which can conflict with char $ac_func (); below.
13014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13015 <limits.h> exists even on freestanding compilers. */
13016 #ifdef __STDC__
13017 # include <limits.h>
13018 #else
13019 # include <assert.h>
13020 #endif
13021 /* Override any gcc2 internal prototype to avoid an error. */
13022 #ifdef __cplusplus
13023 extern "C"
13024 {
13025 #endif
13026 /* We use char because int might match the return type of a gcc2
13027 builtin and then its argument prototype would still apply. */
13028 char $ac_func ();
13029 /* The GNU C library defines this for functions which it implements
13030 to always fail with ENOSYS. Some functions are actually named
13031 something starting with __ and the normal name is an alias. */
13032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13033 choke me
13034 #else
13035 char (*f) () = $ac_func;
13036 #endif
13037 #ifdef __cplusplus
13038 }
13039 #endif
13040
13041 int
13042 main ()
13043 {
13044 return f != $ac_func;
13045 ;
13046 return 0;
13047 }
13048 _ACEOF
13049 rm -f conftest.$ac_objext conftest$ac_exeext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13051 (eval $ac_link) 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try='test -s conftest$ac_exeext'
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; }; then
13061 eval "$as_ac_var=yes"
13062 else
13063 echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13065
13066 eval "$as_ac_var=no"
13067 fi
13068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13069 fi
13070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13072 if test `eval echo '${'$as_ac_var'}'` = yes; then
13073 cat >>confdefs.h <<_ACEOF
13074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13075 _ACEOF
13076
13077 fi
13078 done
13079
13080
13081
13082 for ac_header in sys/un.h
13083 do
13084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13086 echo "$as_me:$LINENO: checking for $ac_header" >&5
13087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 fi
13091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13093 else
13094 # Is the header compilable?
13095 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13097 cat >conftest.$ac_ext <<_ACEOF
13098 #line $LINENO "configure"
13099 /* confdefs.h. */
13100 _ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h. */
13104 $ac_includes_default
13105 #include <$ac_header>
13106 _ACEOF
13107 rm -f conftest.$ac_objext
13108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13109 (eval $ac_compile) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try='test -s conftest.$ac_objext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 ac_header_compiler=yes
13120 else
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13123
13124 ac_header_compiler=no
13125 fi
13126 rm -f conftest.$ac_objext conftest.$ac_ext
13127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13128 echo "${ECHO_T}$ac_header_compiler" >&6
13129
13130 # Is the header present?
13131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13133 cat >conftest.$ac_ext <<_ACEOF
13134 #line $LINENO "configure"
13135 /* confdefs.h. */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13140 #include <$ac_header>
13141 _ACEOF
13142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13144 ac_status=$?
13145 grep -v '^ *+' conftest.er1 >conftest.err
13146 rm -f conftest.er1
13147 cat conftest.err >&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } >/dev/null; then
13150 if test -s conftest.err; then
13151 ac_cpp_err=$ac_c_preproc_warn_flag
13152 else
13153 ac_cpp_err=
13154 fi
13155 else
13156 ac_cpp_err=yes
13157 fi
13158 if test -z "$ac_cpp_err"; then
13159 ac_header_preproc=yes
13160 else
13161 echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.$ac_ext >&5
13163
13164 ac_header_preproc=no
13165 fi
13166 rm -f conftest.err conftest.$ac_ext
13167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13168 echo "${ECHO_T}$ac_header_preproc" >&6
13169
13170 # So? What about this header?
13171 case $ac_header_compiler:$ac_header_preproc in
13172 yes:no )
13173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13177 (
13178 cat <<\_ASBOX
13179 ## ------------------------------------ ##
13180 ## Report this to bug-autoconf@gnu.org. ##
13181 ## ------------------------------------ ##
13182 _ASBOX
13183 ) |
13184 sed "s/^/$as_me: WARNING: /" >&2
13185 ;;
13186 no:yes )
13187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13193 (
13194 cat <<\_ASBOX
13195 ## ------------------------------------ ##
13196 ## Report this to bug-autoconf@gnu.org. ##
13197 ## ------------------------------------ ##
13198 _ASBOX
13199 ) |
13200 sed "s/^/$as_me: WARNING: /" >&2
13201 ;;
13202 esac
13203 echo "$as_me:$LINENO: checking for $ac_header" >&5
13204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13206 echo $ECHO_N "(cached) $ECHO_C" >&6
13207 else
13208 eval "$as_ac_Header=$ac_header_preproc"
13209 fi
13210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13212
13213 fi
13214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13215 cat >>confdefs.h <<_ACEOF
13216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13217 _ACEOF
13218
13219 fi
13220
13221 done
13222
13223
13224
13225
13226 for ac_header in sys/time.h unistd.h
13227 do
13228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13230 echo "$as_me:$LINENO: checking for $ac_header" >&5
13231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 fi
13235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13237 else
13238 # Is the header compilable?
13239 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13241 cat >conftest.$ac_ext <<_ACEOF
13242 #line $LINENO "configure"
13243 /* confdefs.h. */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 $ac_includes_default
13249 #include <$ac_header>
13250 _ACEOF
13251 rm -f conftest.$ac_objext
13252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13253 (eval $ac_compile) 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); } &&
13257 { ac_try='test -s conftest.$ac_objext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13260 ac_status=$?
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13263 ac_header_compiler=yes
13264 else
13265 echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13267
13268 ac_header_compiler=no
13269 fi
13270 rm -f conftest.$ac_objext conftest.$ac_ext
13271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13272 echo "${ECHO_T}$ac_header_compiler" >&6
13273
13274 # Is the header present?
13275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13277 cat >conftest.$ac_ext <<_ACEOF
13278 #line $LINENO "configure"
13279 /* confdefs.h. */
13280 _ACEOF
13281 cat confdefs.h >>conftest.$ac_ext
13282 cat >>conftest.$ac_ext <<_ACEOF
13283 /* end confdefs.h. */
13284 #include <$ac_header>
13285 _ACEOF
13286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13288 ac_status=$?
13289 grep -v '^ *+' conftest.er1 >conftest.err
13290 rm -f conftest.er1
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } >/dev/null; then
13294 if test -s conftest.err; then
13295 ac_cpp_err=$ac_c_preproc_warn_flag
13296 else
13297 ac_cpp_err=
13298 fi
13299 else
13300 ac_cpp_err=yes
13301 fi
13302 if test -z "$ac_cpp_err"; then
13303 ac_header_preproc=yes
13304 else
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13307
13308 ac_header_preproc=no
13309 fi
13310 rm -f conftest.err conftest.$ac_ext
13311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13312 echo "${ECHO_T}$ac_header_preproc" >&6
13313
13314 # So? What about this header?
13315 case $ac_header_compiler:$ac_header_preproc in
13316 yes:no )
13317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13321 (
13322 cat <<\_ASBOX
13323 ## ------------------------------------ ##
13324 ## Report this to bug-autoconf@gnu.org. ##
13325 ## ------------------------------------ ##
13326 _ASBOX
13327 ) |
13328 sed "s/^/$as_me: WARNING: /" >&2
13329 ;;
13330 no:yes )
13331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13337 (
13338 cat <<\_ASBOX
13339 ## ------------------------------------ ##
13340 ## Report this to bug-autoconf@gnu.org. ##
13341 ## ------------------------------------ ##
13342 _ASBOX
13343 ) |
13344 sed "s/^/$as_me: WARNING: /" >&2
13345 ;;
13346 esac
13347 echo "$as_me:$LINENO: checking for $ac_header" >&5
13348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13350 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 else
13352 eval "$as_ac_Header=$ac_header_preproc"
13353 fi
13354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13356
13357 fi
13358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13359 cat >>confdefs.h <<_ACEOF
13360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13361 _ACEOF
13362
13363 fi
13364
13365 done
13366
13367
13368 for ac_func in alarm
13369 do
13370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13371 echo "$as_me:$LINENO: checking for $ac_func" >&5
13372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13373 if eval "test \"\${$as_ac_var+set}\" = set"; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 else
13376 cat >conftest.$ac_ext <<_ACEOF
13377 #line $LINENO "configure"
13378 /* confdefs.h. */
13379 _ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13383 /* System header to define __stub macros and hopefully few prototypes,
13384 which can conflict with char $ac_func (); below.
13385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13386 <limits.h> exists even on freestanding compilers. */
13387 #ifdef __STDC__
13388 # include <limits.h>
13389 #else
13390 # include <assert.h>
13391 #endif
13392 /* Override any gcc2 internal prototype to avoid an error. */
13393 #ifdef __cplusplus
13394 extern "C"
13395 {
13396 #endif
13397 /* We use char because int might match the return type of a gcc2
13398 builtin and then its argument prototype would still apply. */
13399 char $ac_func ();
13400 /* The GNU C library defines this for functions which it implements
13401 to always fail with ENOSYS. Some functions are actually named
13402 something starting with __ and the normal name is an alias. */
13403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13404 choke me
13405 #else
13406 char (*f) () = $ac_func;
13407 #endif
13408 #ifdef __cplusplus
13409 }
13410 #endif
13411
13412 int
13413 main ()
13414 {
13415 return f != $ac_func;
13416 ;
13417 return 0;
13418 }
13419 _ACEOF
13420 rm -f conftest.$ac_objext conftest$ac_exeext
13421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13422 (eval $ac_link) 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -s conftest$ac_exeext'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 eval "$as_ac_var=yes"
13433 else
13434 echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13436
13437 eval "$as_ac_var=no"
13438 fi
13439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13440 fi
13441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13443 if test `eval echo '${'$as_ac_var'}'` = yes; then
13444 cat >>confdefs.h <<_ACEOF
13445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13446 _ACEOF
13447
13448 fi
13449 done
13450
13451 echo "$as_me:$LINENO: checking for working mktime" >&5
13452 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13453 if test "${ac_cv_func_working_mktime+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 else
13456 if test "$cross_compiling" = yes; then
13457 ac_cv_func_working_mktime=no
13458 else
13459 cat >conftest.$ac_ext <<_ACEOF
13460 #line $LINENO "configure"
13461 /* confdefs.h. */
13462 _ACEOF
13463 cat confdefs.h >>conftest.$ac_ext
13464 cat >>conftest.$ac_ext <<_ACEOF
13465 /* end confdefs.h. */
13466 /* Test program from Paul Eggert and Tony Leneis. */
13467 #if TIME_WITH_SYS_TIME
13468 # include <sys/time.h>
13469 # include <time.h>
13470 #else
13471 # if HAVE_SYS_TIME_H
13472 # include <sys/time.h>
13473 # else
13474 # include <time.h>
13475 # endif
13476 #endif
13477
13478 #if HAVE_UNISTD_H
13479 # include <unistd.h>
13480 #endif
13481
13482 #if !HAVE_ALARM
13483 # define alarm(X) /* empty */
13484 #endif
13485
13486 /* Work around redefinition to rpl_putenv by other config tests. */
13487 #undef putenv
13488
13489 static time_t time_t_max;
13490
13491 /* Values we'll use to set the TZ environment variable. */
13492 static const char *const tz_strings[] = {
13493 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
13494 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13495 };
13496 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13497
13498 /* Fail if mktime fails to convert a date in the spring-forward gap.
13499 Based on a problem report from Andreas Jaeger. */
13500 static void
13501 spring_forward_gap ()
13502 {
13503 /* glibc (up to about 1998-10-07) failed this test. */
13504 struct tm tm;
13505
13506 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13507 instead of "TZ=America/Vancouver" in order to detect the bug even
13508 on systems that don't support the Olson extension, or don't have the
13509 full zoneinfo tables installed. */
13510 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13511
13512 tm.tm_year = 98;
13513 tm.tm_mon = 3;
13514 tm.tm_mday = 5;
13515 tm.tm_hour = 2;
13516 tm.tm_min = 0;
13517 tm.tm_sec = 0;
13518 tm.tm_isdst = -1;
13519 if (mktime (&tm) == (time_t)-1)
13520 exit (1);
13521 }
13522
13523 static void
13524 mktime_test (now)
13525 time_t now;
13526 {
13527 struct tm *lt;
13528 if ((lt = localtime (&now)) && mktime (lt) != now)
13529 exit (1);
13530 now = time_t_max - now;
13531 if ((lt = localtime (&now)) && mktime (lt) != now)
13532 exit (1);
13533 }
13534
13535 static void
13536 irix_6_4_bug ()
13537 {
13538 /* Based on code from Ariel Faigon. */
13539 struct tm tm;
13540 tm.tm_year = 96;
13541 tm.tm_mon = 3;
13542 tm.tm_mday = 0;
13543 tm.tm_hour = 0;
13544 tm.tm_min = 0;
13545 tm.tm_sec = 0;
13546 tm.tm_isdst = -1;
13547 mktime (&tm);
13548 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13549 exit (1);
13550 }
13551
13552 static void
13553 bigtime_test (j)
13554 int j;
13555 {
13556 struct tm tm;
13557 time_t now;
13558 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13559 now = mktime (&tm);
13560 if (now != (time_t) -1)
13561 {
13562 struct tm *lt = localtime (&now);
13563 if (! (lt
13564 && lt->tm_year == tm.tm_year
13565 && lt->tm_mon == tm.tm_mon
13566 && lt->tm_mday == tm.tm_mday
13567 && lt->tm_hour == tm.tm_hour
13568 && lt->tm_min == tm.tm_min
13569 && lt->tm_sec == tm.tm_sec
13570 && lt->tm_yday == tm.tm_yday
13571 && lt->tm_wday == tm.tm_wday
13572 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13573 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13574 exit (1);
13575 }
13576 }
13577
13578 int
13579 main ()
13580 {
13581 time_t t, delta;
13582 int i, j;
13583
13584 /* This test makes some buggy mktime implementations loop.
13585 Give up after 60 seconds; a mktime slower than that
13586 isn't worth using anyway. */
13587 alarm (60);
13588
13589 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13590 continue;
13591 time_t_max--;
13592 delta = time_t_max / 997; /* a suitable prime number */
13593 for (i = 0; i < N_STRINGS; i++)
13594 {
13595 if (tz_strings[i])
13596 putenv (tz_strings[i]);
13597
13598 for (t = 0; t <= time_t_max - delta; t += delta)
13599 mktime_test (t);
13600 mktime_test ((time_t) 60 * 60);
13601 mktime_test ((time_t) 60 * 60 * 24);
13602
13603 for (j = 1; 0 < j; j *= 2)
13604 bigtime_test (j);
13605 bigtime_test (j - 1);
13606 }
13607 irix_6_4_bug ();
13608 spring_forward_gap ();
13609 exit (0);
13610 }
13611 _ACEOF
13612 rm -f conftest$ac_exeext
13613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13614 (eval $ac_link) 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
13623 ac_cv_func_working_mktime=yes
13624 else
13625 echo "$as_me: program exited with status $ac_status" >&5
13626 echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13628
13629 ( exit $ac_status )
13630 ac_cv_func_working_mktime=no
13631 fi
13632 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13633 fi
13634 fi
13635 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
13636 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
13637 if test $ac_cv_func_working_mktime = no; then
13638 LIBOBJS="$LIBOBJS mktime.$ac_objext"
13639 fi
13640
13641 if test "$ac_cv_func_working_mktime" = no; then
13642
13643 cat >>confdefs.h <<\_ACEOF
13644 #define BROKEN_MKTIME 1
13645 _ACEOF
13646
13647 fi
13648
13649 ac_have_func=no # yes means we've found a way to get the load average.
13650
13651 # Make sure getloadavg.c is where it belongs, at configure-time.
13652 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13653 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
13654 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
13655 { (exit 1); exit 1; }; }
13656
13657 ac_save_LIBS=$LIBS
13658
13659 # Check for getloadavg, but be sure not to touch the cache variable.
13660 (echo "$as_me:$LINENO: checking for getloadavg" >&5
13661 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
13662 if test "${ac_cv_func_getloadavg+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665 cat >conftest.$ac_ext <<_ACEOF
13666 #line $LINENO "configure"
13667 /* confdefs.h. */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 /* System header to define __stub macros and hopefully few prototypes,
13673 which can conflict with char getloadavg (); below.
13674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13675 <limits.h> exists even on freestanding compilers. */
13676 #ifdef __STDC__
13677 # include <limits.h>
13678 #else
13679 # include <assert.h>
13680 #endif
13681 /* Override any gcc2 internal prototype to avoid an error. */
13682 #ifdef __cplusplus
13683 extern "C"
13684 {
13685 #endif
13686 /* We use char because int might match the return type of a gcc2
13687 builtin and then its argument prototype would still apply. */
13688 char getloadavg ();
13689 /* The GNU C library defines this for functions which it implements
13690 to always fail with ENOSYS. Some functions are actually named
13691 something starting with __ and the normal name is an alias. */
13692 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
13693 choke me
13694 #else
13695 char (*f) () = getloadavg;
13696 #endif
13697 #ifdef __cplusplus
13698 }
13699 #endif
13700
13701 int
13702 main ()
13703 {
13704 return f != getloadavg;
13705 ;
13706 return 0;
13707 }
13708 _ACEOF
13709 rm -f conftest.$ac_objext conftest$ac_exeext
13710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13711 (eval $ac_link) 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } &&
13715 { ac_try='test -s conftest$ac_exeext'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 ac_cv_func_getloadavg=yes
13722 else
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13725
13726 ac_cv_func_getloadavg=no
13727 fi
13728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13729 fi
13730 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
13731 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
13732 if test $ac_cv_func_getloadavg = yes; then
13733 exit 0
13734 else
13735 exit 1
13736 fi
13737 ) && ac_have_func=yes
13738
13739 # On HPUX9, an unprivileged user can get load averages through this function.
13740
13741 for ac_func in pstat_getdynamic
13742 do
13743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13744 echo "$as_me:$LINENO: checking for $ac_func" >&5
13745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13746 if eval "test \"\${$as_ac_var+set}\" = set"; then
13747 echo $ECHO_N "(cached) $ECHO_C" >&6
13748 else
13749 cat >conftest.$ac_ext <<_ACEOF
13750 #line $LINENO "configure"
13751 /* confdefs.h. */
13752 _ACEOF
13753 cat confdefs.h >>conftest.$ac_ext
13754 cat >>conftest.$ac_ext <<_ACEOF
13755 /* end confdefs.h. */
13756 /* System header to define __stub macros and hopefully few prototypes,
13757 which can conflict with char $ac_func (); below.
13758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13759 <limits.h> exists even on freestanding compilers. */
13760 #ifdef __STDC__
13761 # include <limits.h>
13762 #else
13763 # include <assert.h>
13764 #endif
13765 /* Override any gcc2 internal prototype to avoid an error. */
13766 #ifdef __cplusplus
13767 extern "C"
13768 {
13769 #endif
13770 /* We use char because int might match the return type of a gcc2
13771 builtin and then its argument prototype would still apply. */
13772 char $ac_func ();
13773 /* The GNU C library defines this for functions which it implements
13774 to always fail with ENOSYS. Some functions are actually named
13775 something starting with __ and the normal name is an alias. */
13776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13777 choke me
13778 #else
13779 char (*f) () = $ac_func;
13780 #endif
13781 #ifdef __cplusplus
13782 }
13783 #endif
13784
13785 int
13786 main ()
13787 {
13788 return f != $ac_func;
13789 ;
13790 return 0;
13791 }
13792 _ACEOF
13793 rm -f conftest.$ac_objext conftest$ac_exeext
13794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13795 (eval $ac_link) 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } &&
13799 { ac_try='test -s conftest$ac_exeext'
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; }; then
13805 eval "$as_ac_var=yes"
13806 else
13807 echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13809
13810 eval "$as_ac_var=no"
13811 fi
13812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13813 fi
13814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13816 if test `eval echo '${'$as_ac_var'}'` = yes; then
13817 cat >>confdefs.h <<_ACEOF
13818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13819 _ACEOF
13820
13821 fi
13822 done
13823
13824
13825 # Solaris has libkstat which does not require root.
13826
13827 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
13828 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
13829 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 else
13832 ac_check_lib_save_LIBS=$LIBS
13833 LIBS="-lkstat $LIBS"
13834 cat >conftest.$ac_ext <<_ACEOF
13835 #line $LINENO "configure"
13836 /* confdefs.h. */
13837 _ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13841
13842 /* Override any gcc2 internal prototype to avoid an error. */
13843 #ifdef __cplusplus
13844 extern "C"
13845 #endif
13846 /* We use char because int might match the return type of a gcc2
13847 builtin and then its argument prototype would still apply. */
13848 char kstat_open ();
13849 int
13850 main ()
13851 {
13852 kstat_open ();
13853 ;
13854 return 0;
13855 }
13856 _ACEOF
13857 rm -f conftest.$ac_objext conftest$ac_exeext
13858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13859 (eval $ac_link) 2>&5
13860 ac_status=$?
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); } &&
13863 { ac_try='test -s conftest$ac_exeext'
13864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 (eval $ac_try) 2>&5
13866 ac_status=$?
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; }; then
13869 ac_cv_lib_kstat_kstat_open=yes
13870 else
13871 echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13873
13874 ac_cv_lib_kstat_kstat_open=no
13875 fi
13876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13877 LIBS=$ac_check_lib_save_LIBS
13878 fi
13879 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
13880 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
13881 if test $ac_cv_lib_kstat_kstat_open = yes; then
13882 cat >>confdefs.h <<_ACEOF
13883 #define HAVE_LIBKSTAT 1
13884 _ACEOF
13885
13886 LIBS="-lkstat $LIBS"
13887
13888 fi
13889
13890 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
13891
13892 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13893 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13894 # to get the right answer into the cache.
13895 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13896 if test $ac_have_func = no; then
13897 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
13898 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
13899 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901 else
13902 ac_check_lib_save_LIBS=$LIBS
13903 LIBS="-lelf $LIBS"
13904 cat >conftest.$ac_ext <<_ACEOF
13905 #line $LINENO "configure"
13906 /* confdefs.h. */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911
13912 /* Override any gcc2 internal prototype to avoid an error. */
13913 #ifdef __cplusplus
13914 extern "C"
13915 #endif
13916 /* We use char because int might match the return type of a gcc2
13917 builtin and then its argument prototype would still apply. */
13918 char elf_begin ();
13919 int
13920 main ()
13921 {
13922 elf_begin ();
13923 ;
13924 return 0;
13925 }
13926 _ACEOF
13927 rm -f conftest.$ac_objext conftest$ac_exeext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13929 (eval $ac_link) 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -s conftest$ac_exeext'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
13939 ac_cv_lib_elf_elf_begin=yes
13940 else
13941 echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13943
13944 ac_cv_lib_elf_elf_begin=no
13945 fi
13946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13947 LIBS=$ac_check_lib_save_LIBS
13948 fi
13949 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
13950 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
13951 if test $ac_cv_lib_elf_elf_begin = yes; then
13952 LIBS="-lelf $LIBS"
13953 fi
13954
13955 fi
13956 if test $ac_have_func = no; then
13957 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
13958 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
13959 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 else
13962 ac_check_lib_save_LIBS=$LIBS
13963 LIBS="-lkvm $LIBS"
13964 cat >conftest.$ac_ext <<_ACEOF
13965 #line $LINENO "configure"
13966 /* confdefs.h. */
13967 _ACEOF
13968 cat confdefs.h >>conftest.$ac_ext
13969 cat >>conftest.$ac_ext <<_ACEOF
13970 /* end confdefs.h. */
13971
13972 /* Override any gcc2 internal prototype to avoid an error. */
13973 #ifdef __cplusplus
13974 extern "C"
13975 #endif
13976 /* We use char because int might match the return type of a gcc2
13977 builtin and then its argument prototype would still apply. */
13978 char kvm_open ();
13979 int
13980 main ()
13981 {
13982 kvm_open ();
13983 ;
13984 return 0;
13985 }
13986 _ACEOF
13987 rm -f conftest.$ac_objext conftest$ac_exeext
13988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13989 (eval $ac_link) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try='test -s conftest$ac_exeext'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13996 ac_status=$?
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }; then
13999 ac_cv_lib_kvm_kvm_open=yes
14000 else
14001 echo "$as_me: failed program was:" >&5
14002 sed 's/^/| /' conftest.$ac_ext >&5
14003
14004 ac_cv_lib_kvm_kvm_open=no
14005 fi
14006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14007 LIBS=$ac_check_lib_save_LIBS
14008 fi
14009 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14010 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14011 if test $ac_cv_lib_kvm_kvm_open = yes; then
14012 LIBS="-lkvm $LIBS"
14013 fi
14014
14015 # Check for the 4.4BSD definition of getloadavg.
14016 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14017 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14018 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 else
14021 ac_check_lib_save_LIBS=$LIBS
14022 LIBS="-lutil $LIBS"
14023 cat >conftest.$ac_ext <<_ACEOF
14024 #line $LINENO "configure"
14025 /* confdefs.h. */
14026 _ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14030
14031 /* Override any gcc2 internal prototype to avoid an error. */
14032 #ifdef __cplusplus
14033 extern "C"
14034 #endif
14035 /* We use char because int might match the return type of a gcc2
14036 builtin and then its argument prototype would still apply. */
14037 char getloadavg ();
14038 int
14039 main ()
14040 {
14041 getloadavg ();
14042 ;
14043 return 0;
14044 }
14045 _ACEOF
14046 rm -f conftest.$ac_objext conftest$ac_exeext
14047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14048 (eval $ac_link) 2>&5
14049 ac_status=$?
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); } &&
14052 { ac_try='test -s conftest$ac_exeext'
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14055 ac_status=$?
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; }; then
14058 ac_cv_lib_util_getloadavg=yes
14059 else
14060 echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14062
14063 ac_cv_lib_util_getloadavg=no
14064 fi
14065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14066 LIBS=$ac_check_lib_save_LIBS
14067 fi
14068 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14069 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14070 if test $ac_cv_lib_util_getloadavg = yes; then
14071 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
14072 fi
14073
14074 fi
14075
14076 if test $ac_have_func = no; then
14077 # There is a commonly available library for RS/6000 AIX.
14078 # Since it is not a standard part of AIX, it might be installed locally.
14079 ac_getloadavg_LIBS=$LIBS
14080 LIBS="-L/usr/local/lib $LIBS"
14081 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14082 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14083 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14085 else
14086 ac_check_lib_save_LIBS=$LIBS
14087 LIBS="-lgetloadavg $LIBS"
14088 cat >conftest.$ac_ext <<_ACEOF
14089 #line $LINENO "configure"
14090 /* confdefs.h. */
14091 _ACEOF
14092 cat confdefs.h >>conftest.$ac_ext
14093 cat >>conftest.$ac_ext <<_ACEOF
14094 /* end confdefs.h. */
14095
14096 /* Override any gcc2 internal prototype to avoid an error. */
14097 #ifdef __cplusplus
14098 extern "C"
14099 #endif
14100 /* We use char because int might match the return type of a gcc2
14101 builtin and then its argument prototype would still apply. */
14102 char getloadavg ();
14103 int
14104 main ()
14105 {
14106 getloadavg ();
14107 ;
14108 return 0;
14109 }
14110 _ACEOF
14111 rm -f conftest.$ac_objext conftest$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
14117 { ac_try='test -s conftest$ac_exeext'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 ac_cv_lib_getloadavg_getloadavg=yes
14124 else
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14127
14128 ac_cv_lib_getloadavg_getloadavg=no
14129 fi
14130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14131 LIBS=$ac_check_lib_save_LIBS
14132 fi
14133 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14134 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14135 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14136 LIBS="-lgetloadavg $LIBS"
14137 else
14138 LIBS=$ac_getloadavg_LIBS
14139 fi
14140
14141 fi
14142
14143 # Make sure it is really in the library, if we think we found it,
14144 # otherwise set up the replacement function.
14145
14146 for ac_func in getloadavg
14147 do
14148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14149 echo "$as_me:$LINENO: checking for $ac_func" >&5
14150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14151 if eval "test \"\${$as_ac_var+set}\" = set"; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
14153 else
14154 cat >conftest.$ac_ext <<_ACEOF
14155 #line $LINENO "configure"
14156 /* confdefs.h. */
14157 _ACEOF
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h. */
14161 /* System header to define __stub macros and hopefully few prototypes,
14162 which can conflict with char $ac_func (); below.
14163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14164 <limits.h> exists even on freestanding compilers. */
14165 #ifdef __STDC__
14166 # include <limits.h>
14167 #else
14168 # include <assert.h>
14169 #endif
14170 /* Override any gcc2 internal prototype to avoid an error. */
14171 #ifdef __cplusplus
14172 extern "C"
14173 {
14174 #endif
14175 /* We use char because int might match the return type of a gcc2
14176 builtin and then its argument prototype would still apply. */
14177 char $ac_func ();
14178 /* The GNU C library defines this for functions which it implements
14179 to always fail with ENOSYS. Some functions are actually named
14180 something starting with __ and the normal name is an alias. */
14181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14182 choke me
14183 #else
14184 char (*f) () = $ac_func;
14185 #endif
14186 #ifdef __cplusplus
14187 }
14188 #endif
14189
14190 int
14191 main ()
14192 {
14193 return f != $ac_func;
14194 ;
14195 return 0;
14196 }
14197 _ACEOF
14198 rm -f conftest.$ac_objext conftest$ac_exeext
14199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14200 (eval $ac_link) 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
14204 { ac_try='test -s conftest$ac_exeext'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
14210 eval "$as_ac_var=yes"
14211 else
14212 echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14214
14215 eval "$as_ac_var=no"
14216 fi
14217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14218 fi
14219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14221 if test `eval echo '${'$as_ac_var'}'` = yes; then
14222 cat >>confdefs.h <<_ACEOF
14223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14224 _ACEOF
14225
14226 else
14227 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
14228
14229 cat >>confdefs.h <<\_ACEOF
14230 #define C_GETLOADAVG 1
14231 _ACEOF
14232
14233 # Figure out what our getloadavg.c needs.
14234 ac_have_func=no
14235 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14236 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14237 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14238 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14240 fi
14241 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14242 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14243 else
14244 # Is the header compilable?
14245 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14246 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14247 cat >conftest.$ac_ext <<_ACEOF
14248 #line $LINENO "configure"
14249 /* confdefs.h. */
14250 _ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h. */
14254 $ac_includes_default
14255 #include <sys/dg_sys_info.h>
14256 _ACEOF
14257 rm -f conftest.$ac_objext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14259 (eval $ac_compile) 2>&5
14260 ac_status=$?
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } &&
14263 { ac_try='test -s conftest.$ac_objext'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 ac_header_compiler=yes
14270 else
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14273
14274 ac_header_compiler=no
14275 fi
14276 rm -f conftest.$ac_objext conftest.$ac_ext
14277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14278 echo "${ECHO_T}$ac_header_compiler" >&6
14279
14280 # Is the header present?
14281 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14282 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14283 cat >conftest.$ac_ext <<_ACEOF
14284 #line $LINENO "configure"
14285 /* confdefs.h. */
14286 _ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14290 #include <sys/dg_sys_info.h>
14291 _ACEOF
14292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14294 ac_status=$?
14295 grep -v '^ *+' conftest.er1 >conftest.err
14296 rm -f conftest.er1
14297 cat conftest.err >&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } >/dev/null; then
14300 if test -s conftest.err; then
14301 ac_cpp_err=$ac_c_preproc_warn_flag
14302 else
14303 ac_cpp_err=
14304 fi
14305 else
14306 ac_cpp_err=yes
14307 fi
14308 if test -z "$ac_cpp_err"; then
14309 ac_header_preproc=yes
14310 else
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14313
14314 ac_header_preproc=no
14315 fi
14316 rm -f conftest.err conftest.$ac_ext
14317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14318 echo "${ECHO_T}$ac_header_preproc" >&6
14319
14320 # So? What about this header?
14321 case $ac_header_compiler:$ac_header_preproc in
14322 yes:no )
14323 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14324 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14325 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14326 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14327 (
14328 cat <<\_ASBOX
14329 ## ------------------------------------ ##
14330 ## Report this to bug-autoconf@gnu.org. ##
14331 ## ------------------------------------ ##
14332 _ASBOX
14333 ) |
14334 sed "s/^/$as_me: WARNING: /" >&2
14335 ;;
14336 no:yes )
14337 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14338 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14339 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14340 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14341 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14342 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14343 (
14344 cat <<\_ASBOX
14345 ## ------------------------------------ ##
14346 ## Report this to bug-autoconf@gnu.org. ##
14347 ## ------------------------------------ ##
14348 _ASBOX
14349 ) |
14350 sed "s/^/$as_me: WARNING: /" >&2
14351 ;;
14352 esac
14353 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14354 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14355 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 else
14358 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
14359 fi
14360 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14361 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14362
14363 fi
14364 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14365 ac_have_func=yes
14366
14367 cat >>confdefs.h <<\_ACEOF
14368 #define DGUX 1
14369 _ACEOF
14370
14371
14372 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14373 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14374 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14376 else
14377 ac_check_lib_save_LIBS=$LIBS
14378 LIBS="-ldgc $LIBS"
14379 cat >conftest.$ac_ext <<_ACEOF
14380 #line $LINENO "configure"
14381 /* confdefs.h. */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14386
14387 /* Override any gcc2 internal prototype to avoid an error. */
14388 #ifdef __cplusplus
14389 extern "C"
14390 #endif
14391 /* We use char because int might match the return type of a gcc2
14392 builtin and then its argument prototype would still apply. */
14393 char dg_sys_info ();
14394 int
14395 main ()
14396 {
14397 dg_sys_info ();
14398 ;
14399 return 0;
14400 }
14401 _ACEOF
14402 rm -f conftest.$ac_objext conftest$ac_exeext
14403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14404 (eval $ac_link) 2>&5
14405 ac_status=$?
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
14408 { ac_try='test -s conftest$ac_exeext'
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14411 ac_status=$?
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; }; then
14414 ac_cv_lib_dgc_dg_sys_info=yes
14415 else
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14418
14419 ac_cv_lib_dgc_dg_sys_info=no
14420 fi
14421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14422 LIBS=$ac_check_lib_save_LIBS
14423 fi
14424 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14425 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14426 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
14427 cat >>confdefs.h <<_ACEOF
14428 #define HAVE_LIBDGC 1
14429 _ACEOF
14430
14431 LIBS="-ldgc $LIBS"
14432
14433 fi
14434
14435 fi
14436
14437
14438
14439 if test "${ac_cv_header_locale_h+set}" = set; then
14440 echo "$as_me:$LINENO: checking for locale.h" >&5
14441 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14442 if test "${ac_cv_header_locale_h+set}" = set; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14444 fi
14445 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14446 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14447 else
14448 # Is the header compilable?
14449 echo "$as_me:$LINENO: checking locale.h usability" >&5
14450 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
14451 cat >conftest.$ac_ext <<_ACEOF
14452 #line $LINENO "configure"
14453 /* confdefs.h. */
14454 _ACEOF
14455 cat confdefs.h >>conftest.$ac_ext
14456 cat >>conftest.$ac_ext <<_ACEOF
14457 /* end confdefs.h. */
14458 $ac_includes_default
14459 #include <locale.h>
14460 _ACEOF
14461 rm -f conftest.$ac_objext
14462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14463 (eval $ac_compile) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } &&
14467 { ac_try='test -s conftest.$ac_objext'
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14470 ac_status=$?
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14473 ac_header_compiler=yes
14474 else
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14477
14478 ac_header_compiler=no
14479 fi
14480 rm -f conftest.$ac_objext conftest.$ac_ext
14481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14482 echo "${ECHO_T}$ac_header_compiler" >&6
14483
14484 # Is the header present?
14485 echo "$as_me:$LINENO: checking locale.h presence" >&5
14486 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
14487 cat >conftest.$ac_ext <<_ACEOF
14488 #line $LINENO "configure"
14489 /* confdefs.h. */
14490 _ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14494 #include <locale.h>
14495 _ACEOF
14496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14498 ac_status=$?
14499 grep -v '^ *+' conftest.er1 >conftest.err
14500 rm -f conftest.er1
14501 cat conftest.err >&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } >/dev/null; then
14504 if test -s conftest.err; then
14505 ac_cpp_err=$ac_c_preproc_warn_flag
14506 else
14507 ac_cpp_err=
14508 fi
14509 else
14510 ac_cpp_err=yes
14511 fi
14512 if test -z "$ac_cpp_err"; then
14513 ac_header_preproc=yes
14514 else
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14517
14518 ac_header_preproc=no
14519 fi
14520 rm -f conftest.err conftest.$ac_ext
14521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14522 echo "${ECHO_T}$ac_header_preproc" >&6
14523
14524 # So? What about this header?
14525 case $ac_header_compiler:$ac_header_preproc in
14526 yes:no )
14527 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
14528 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
14530 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
14531 (
14532 cat <<\_ASBOX
14533 ## ------------------------------------ ##
14534 ## Report this to bug-autoconf@gnu.org. ##
14535 ## ------------------------------------ ##
14536 _ASBOX
14537 ) |
14538 sed "s/^/$as_me: WARNING: /" >&2
14539 ;;
14540 no:yes )
14541 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
14542 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
14543 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
14544 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
14545 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
14546 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
14547 (
14548 cat <<\_ASBOX
14549 ## ------------------------------------ ##
14550 ## Report this to bug-autoconf@gnu.org. ##
14551 ## ------------------------------------ ##
14552 _ASBOX
14553 ) |
14554 sed "s/^/$as_me: WARNING: /" >&2
14555 ;;
14556 esac
14557 echo "$as_me:$LINENO: checking for locale.h" >&5
14558 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14559 if test "${ac_cv_header_locale_h+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14562 ac_cv_header_locale_h=$ac_header_preproc
14563 fi
14564 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14565 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14566
14567 fi
14568
14569
14570
14571 for ac_func in setlocale
14572 do
14573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14574 echo "$as_me:$LINENO: checking for $ac_func" >&5
14575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14576 if eval "test \"\${$as_ac_var+set}\" = set"; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579 cat >conftest.$ac_ext <<_ACEOF
14580 #line $LINENO "configure"
14581 /* confdefs.h. */
14582 _ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14586 /* System header to define __stub macros and hopefully few prototypes,
14587 which can conflict with char $ac_func (); below.
14588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14589 <limits.h> exists even on freestanding compilers. */
14590 #ifdef __STDC__
14591 # include <limits.h>
14592 #else
14593 # include <assert.h>
14594 #endif
14595 /* Override any gcc2 internal prototype to avoid an error. */
14596 #ifdef __cplusplus
14597 extern "C"
14598 {
14599 #endif
14600 /* We use char because int might match the return type of a gcc2
14601 builtin and then its argument prototype would still apply. */
14602 char $ac_func ();
14603 /* The GNU C library defines this for functions which it implements
14604 to always fail with ENOSYS. Some functions are actually named
14605 something starting with __ and the normal name is an alias. */
14606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14607 choke me
14608 #else
14609 char (*f) () = $ac_func;
14610 #endif
14611 #ifdef __cplusplus
14612 }
14613 #endif
14614
14615 int
14616 main ()
14617 {
14618 return f != $ac_func;
14619 ;
14620 return 0;
14621 }
14622 _ACEOF
14623 rm -f conftest.$ac_objext conftest$ac_exeext
14624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14625 (eval $ac_link) 2>&5
14626 ac_status=$?
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } &&
14629 { ac_try='test -s conftest$ac_exeext'
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14632 ac_status=$?
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14635 eval "$as_ac_var=yes"
14636 else
14637 echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.$ac_ext >&5
14639
14640 eval "$as_ac_var=no"
14641 fi
14642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14643 fi
14644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14646 if test `eval echo '${'$as_ac_var'}'` = yes; then
14647 cat >>confdefs.h <<_ACEOF
14648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14649 _ACEOF
14650
14651 fi
14652 done
14653
14654
14655 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
14656 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
14657 # Irix 4.0.5F has the header but not the library.
14658 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
14659 ac_have_func=yes
14660
14661 cat >>confdefs.h <<\_ACEOF
14662 #define SVR4 1
14663 _ACEOF
14664
14665 fi
14666
14667 if test $ac_have_func = no; then
14668 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14669 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
14670 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
14671 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 fi
14674 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
14675 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
14676 else
14677 # Is the header compilable?
14678 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
14679 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
14680 cat >conftest.$ac_ext <<_ACEOF
14681 #line $LINENO "configure"
14682 /* confdefs.h. */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14687 $ac_includes_default
14688 #include <inq_stats/cpustats.h>
14689 _ACEOF
14690 rm -f conftest.$ac_objext
14691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14692 (eval $ac_compile) 2>&5
14693 ac_status=$?
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } &&
14696 { ac_try='test -s conftest.$ac_objext'
14697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698 (eval $ac_try) 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; }; then
14702 ac_header_compiler=yes
14703 else
14704 echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14706
14707 ac_header_compiler=no
14708 fi
14709 rm -f conftest.$ac_objext conftest.$ac_ext
14710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14711 echo "${ECHO_T}$ac_header_compiler" >&6
14712
14713 # Is the header present?
14714 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
14715 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
14716 cat >conftest.$ac_ext <<_ACEOF
14717 #line $LINENO "configure"
14718 /* confdefs.h. */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 #include <inq_stats/cpustats.h>
14724 _ACEOF
14725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14727 ac_status=$?
14728 grep -v '^ *+' conftest.er1 >conftest.err
14729 rm -f conftest.er1
14730 cat conftest.err >&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } >/dev/null; then
14733 if test -s conftest.err; then
14734 ac_cpp_err=$ac_c_preproc_warn_flag
14735 else
14736 ac_cpp_err=
14737 fi
14738 else
14739 ac_cpp_err=yes
14740 fi
14741 if test -z "$ac_cpp_err"; then
14742 ac_header_preproc=yes
14743 else
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14746
14747 ac_header_preproc=no
14748 fi
14749 rm -f conftest.err conftest.$ac_ext
14750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14751 echo "${ECHO_T}$ac_header_preproc" >&6
14752
14753 # So? What about this header?
14754 case $ac_header_compiler:$ac_header_preproc in
14755 yes:no )
14756 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
14757 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
14759 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
14760 (
14761 cat <<\_ASBOX
14762 ## ------------------------------------ ##
14763 ## Report this to bug-autoconf@gnu.org. ##
14764 ## ------------------------------------ ##
14765 _ASBOX
14766 ) |
14767 sed "s/^/$as_me: WARNING: /" >&2
14768 ;;
14769 no:yes )
14770 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
14771 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
14772 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
14773 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
14774 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
14775 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
14776 (
14777 cat <<\_ASBOX
14778 ## ------------------------------------ ##
14779 ## Report this to bug-autoconf@gnu.org. ##
14780 ## ------------------------------------ ##
14781 _ASBOX
14782 ) |
14783 sed "s/^/$as_me: WARNING: /" >&2
14784 ;;
14785 esac
14786 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
14787 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
14788 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14790 else
14791 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
14792 fi
14793 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
14794 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
14795
14796 fi
14797 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
14798 ac_have_func=yes
14799
14800 cat >>confdefs.h <<\_ACEOF
14801 #define UMAX 1
14802 _ACEOF
14803
14804
14805 cat >>confdefs.h <<\_ACEOF
14806 #define UMAX4_3 1
14807 _ACEOF
14808
14809 fi
14810
14811
14812 fi
14813
14814 if test $ac_have_func = no; then
14815 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
14816 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
14817 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
14818 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 fi
14821 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
14822 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
14823 else
14824 # Is the header compilable?
14825 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
14826 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
14827 cat >conftest.$ac_ext <<_ACEOF
14828 #line $LINENO "configure"
14829 /* confdefs.h. */
14830 _ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h. */
14834 $ac_includes_default
14835 #include <sys/cpustats.h>
14836 _ACEOF
14837 rm -f conftest.$ac_objext
14838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14839 (eval $ac_compile) 2>&5
14840 ac_status=$?
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } &&
14843 { ac_try='test -s conftest.$ac_objext'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14846 ac_status=$?
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; }; then
14849 ac_header_compiler=yes
14850 else
14851 echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14853
14854 ac_header_compiler=no
14855 fi
14856 rm -f conftest.$ac_objext conftest.$ac_ext
14857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14858 echo "${ECHO_T}$ac_header_compiler" >&6
14859
14860 # Is the header present?
14861 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
14862 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
14863 cat >conftest.$ac_ext <<_ACEOF
14864 #line $LINENO "configure"
14865 /* confdefs.h. */
14866 _ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14870 #include <sys/cpustats.h>
14871 _ACEOF
14872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14874 ac_status=$?
14875 grep -v '^ *+' conftest.er1 >conftest.err
14876 rm -f conftest.er1
14877 cat conftest.err >&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } >/dev/null; then
14880 if test -s conftest.err; then
14881 ac_cpp_err=$ac_c_preproc_warn_flag
14882 else
14883 ac_cpp_err=
14884 fi
14885 else
14886 ac_cpp_err=yes
14887 fi
14888 if test -z "$ac_cpp_err"; then
14889 ac_header_preproc=yes
14890 else
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14893
14894 ac_header_preproc=no
14895 fi
14896 rm -f conftest.err conftest.$ac_ext
14897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14898 echo "${ECHO_T}$ac_header_preproc" >&6
14899
14900 # So? What about this header?
14901 case $ac_header_compiler:$ac_header_preproc in
14902 yes:no )
14903 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
14904 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
14906 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
14907 (
14908 cat <<\_ASBOX
14909 ## ------------------------------------ ##
14910 ## Report this to bug-autoconf@gnu.org. ##
14911 ## ------------------------------------ ##
14912 _ASBOX
14913 ) |
14914 sed "s/^/$as_me: WARNING: /" >&2
14915 ;;
14916 no:yes )
14917 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
14918 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
14919 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
14920 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
14921 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
14922 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
14923 (
14924 cat <<\_ASBOX
14925 ## ------------------------------------ ##
14926 ## Report this to bug-autoconf@gnu.org. ##
14927 ## ------------------------------------ ##
14928 _ASBOX
14929 ) |
14930 sed "s/^/$as_me: WARNING: /" >&2
14931 ;;
14932 esac
14933 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
14934 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
14935 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 else
14938 ac_cv_header_sys_cpustats_h=$ac_header_preproc
14939 fi
14940 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
14941 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
14942
14943 fi
14944 if test $ac_cv_header_sys_cpustats_h = yes; then
14945 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
14946 #define UMAX 1
14947 _ACEOF
14948
14949 fi
14950
14951
14952 fi
14953
14954 if test $ac_have_func = no; then
14955
14956 for ac_header in mach/mach.h
14957 do
14958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14960 echo "$as_me:$LINENO: checking for $ac_header" >&5
14961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 fi
14965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14967 else
14968 # Is the header compilable?
14969 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14971 cat >conftest.$ac_ext <<_ACEOF
14972 #line $LINENO "configure"
14973 /* confdefs.h. */
14974 _ACEOF
14975 cat confdefs.h >>conftest.$ac_ext
14976 cat >>conftest.$ac_ext <<_ACEOF
14977 /* end confdefs.h. */
14978 $ac_includes_default
14979 #include <$ac_header>
14980 _ACEOF
14981 rm -f conftest.$ac_objext
14982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14983 (eval $ac_compile) 2>&5
14984 ac_status=$?
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } &&
14987 { ac_try='test -s conftest.$ac_objext'
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14990 ac_status=$?
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; }; then
14993 ac_header_compiler=yes
14994 else
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14997
14998 ac_header_compiler=no
14999 fi
15000 rm -f conftest.$ac_objext conftest.$ac_ext
15001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15002 echo "${ECHO_T}$ac_header_compiler" >&6
15003
15004 # Is the header present?
15005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15007 cat >conftest.$ac_ext <<_ACEOF
15008 #line $LINENO "configure"
15009 /* confdefs.h. */
15010 _ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15014 #include <$ac_header>
15015 _ACEOF
15016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15018 ac_status=$?
15019 grep -v '^ *+' conftest.er1 >conftest.err
15020 rm -f conftest.er1
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } >/dev/null; then
15024 if test -s conftest.err; then
15025 ac_cpp_err=$ac_c_preproc_warn_flag
15026 else
15027 ac_cpp_err=
15028 fi
15029 else
15030 ac_cpp_err=yes
15031 fi
15032 if test -z "$ac_cpp_err"; then
15033 ac_header_preproc=yes
15034 else
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15037
15038 ac_header_preproc=no
15039 fi
15040 rm -f conftest.err conftest.$ac_ext
15041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15042 echo "${ECHO_T}$ac_header_preproc" >&6
15043
15044 # So? What about this header?
15045 case $ac_header_compiler:$ac_header_preproc in
15046 yes:no )
15047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15051 (
15052 cat <<\_ASBOX
15053 ## ------------------------------------ ##
15054 ## Report this to bug-autoconf@gnu.org. ##
15055 ## ------------------------------------ ##
15056 _ASBOX
15057 ) |
15058 sed "s/^/$as_me: WARNING: /" >&2
15059 ;;
15060 no:yes )
15061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15067 (
15068 cat <<\_ASBOX
15069 ## ------------------------------------ ##
15070 ## Report this to bug-autoconf@gnu.org. ##
15071 ## ------------------------------------ ##
15072 _ASBOX
15073 ) |
15074 sed "s/^/$as_me: WARNING: /" >&2
15075 ;;
15076 esac
15077 echo "$as_me:$LINENO: checking for $ac_header" >&5
15078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15080 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 else
15082 eval "$as_ac_Header=$ac_header_preproc"
15083 fi
15084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15086
15087 fi
15088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15089 cat >>confdefs.h <<_ACEOF
15090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15091 _ACEOF
15092
15093 fi
15094
15095 done
15096
15097 fi
15098
15099
15100 for ac_header in nlist.h
15101 do
15102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15104 echo "$as_me:$LINENO: checking for $ac_header" >&5
15105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15108 fi
15109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15111 else
15112 # Is the header compilable?
15113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15115 cat >conftest.$ac_ext <<_ACEOF
15116 #line $LINENO "configure"
15117 /* confdefs.h. */
15118 _ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15122 $ac_includes_default
15123 #include <$ac_header>
15124 _ACEOF
15125 rm -f conftest.$ac_objext
15126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15127 (eval $ac_compile) 2>&5
15128 ac_status=$?
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } &&
15131 { ac_try='test -s conftest.$ac_objext'
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
15137 ac_header_compiler=yes
15138 else
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15141
15142 ac_header_compiler=no
15143 fi
15144 rm -f conftest.$ac_objext conftest.$ac_ext
15145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15146 echo "${ECHO_T}$ac_header_compiler" >&6
15147
15148 # Is the header present?
15149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15151 cat >conftest.$ac_ext <<_ACEOF
15152 #line $LINENO "configure"
15153 /* confdefs.h. */
15154 _ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 #include <$ac_header>
15159 _ACEOF
15160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15162 ac_status=$?
15163 grep -v '^ *+' conftest.er1 >conftest.err
15164 rm -f conftest.er1
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } >/dev/null; then
15168 if test -s conftest.err; then
15169 ac_cpp_err=$ac_c_preproc_warn_flag
15170 else
15171 ac_cpp_err=
15172 fi
15173 else
15174 ac_cpp_err=yes
15175 fi
15176 if test -z "$ac_cpp_err"; then
15177 ac_header_preproc=yes
15178 else
15179 echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15181
15182 ac_header_preproc=no
15183 fi
15184 rm -f conftest.err conftest.$ac_ext
15185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15186 echo "${ECHO_T}$ac_header_preproc" >&6
15187
15188 # So? What about this header?
15189 case $ac_header_compiler:$ac_header_preproc in
15190 yes:no )
15191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15195 (
15196 cat <<\_ASBOX
15197 ## ------------------------------------ ##
15198 ## Report this to bug-autoconf@gnu.org. ##
15199 ## ------------------------------------ ##
15200 _ASBOX
15201 ) |
15202 sed "s/^/$as_me: WARNING: /" >&2
15203 ;;
15204 no:yes )
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15211 (
15212 cat <<\_ASBOX
15213 ## ------------------------------------ ##
15214 ## Report this to bug-autoconf@gnu.org. ##
15215 ## ------------------------------------ ##
15216 _ASBOX
15217 ) |
15218 sed "s/^/$as_me: WARNING: /" >&2
15219 ;;
15220 esac
15221 echo "$as_me:$LINENO: checking for $ac_header" >&5
15222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15225 else
15226 eval "$as_ac_Header=$ac_header_preproc"
15227 fi
15228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15230
15231 fi
15232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15233 cat >>confdefs.h <<_ACEOF
15234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15235 _ACEOF
15236 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15237 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15238 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15240 else
15241 cat >conftest.$ac_ext <<_ACEOF
15242 #line $LINENO "configure"
15243 /* confdefs.h. */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 #include <nlist.h>
15249
15250 int
15251 main ()
15252 {
15253 static struct nlist ac_aggr;
15254 if (ac_aggr.n_un.n_name)
15255 return 0;
15256 ;
15257 return 0;
15258 }
15259 _ACEOF
15260 rm -f conftest.$ac_objext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15262 (eval $ac_compile) 2>&5
15263 ac_status=$?
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } &&
15266 { ac_try='test -s conftest.$ac_objext'
15267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268 (eval $ac_try) 2>&5
15269 ac_status=$?
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; }; then
15272 ac_cv_member_struct_nlist_n_un_n_name=yes
15273 else
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15276
15277 cat >conftest.$ac_ext <<_ACEOF
15278 #line $LINENO "configure"
15279 /* confdefs.h. */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15284 #include <nlist.h>
15285
15286 int
15287 main ()
15288 {
15289 static struct nlist ac_aggr;
15290 if (sizeof ac_aggr.n_un.n_name)
15291 return 0;
15292 ;
15293 return 0;
15294 }
15295 _ACEOF
15296 rm -f conftest.$ac_objext
15297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15298 (eval $ac_compile) 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); } &&
15302 { ac_try='test -s conftest.$ac_objext'
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15305 ac_status=$?
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15308 ac_cv_member_struct_nlist_n_un_n_name=yes
15309 else
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15312
15313 ac_cv_member_struct_nlist_n_un_n_name=no
15314 fi
15315 rm -f conftest.$ac_objext conftest.$ac_ext
15316 fi
15317 rm -f conftest.$ac_objext conftest.$ac_ext
15318 fi
15319 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15320 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15321 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15322
15323 cat >>confdefs.h <<_ACEOF
15324 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15325 _ACEOF
15326
15327
15328 cat >>confdefs.h <<\_ACEOF
15329 #define NLIST_NAME_UNION 1
15330 _ACEOF
15331
15332 fi
15333
15334
15335 fi
15336
15337 done
15338
15339 fi
15340 done
15341
15342
15343 # Some definitions of getloadavg require that the program be installed setgid.
15344 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
15345 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15346 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 else
15349 cat >conftest.$ac_ext <<_ACEOF
15350 #line $LINENO "configure"
15351 /* confdefs.h. */
15352 _ACEOF
15353 cat confdefs.h >>conftest.$ac_ext
15354 cat >>conftest.$ac_ext <<_ACEOF
15355 /* end confdefs.h. */
15356 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
15357 #ifdef LDAV_PRIVILEGED
15358 Yowza Am I SETGID yet
15359 #endif
15360 _ACEOF
15361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15362 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
15363 ac_cv_func_getloadavg_setgid=yes
15364 else
15365 ac_cv_func_getloadavg_setgid=no
15366 fi
15367 rm -f conftest*
15368
15369 fi
15370 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
15371 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
15372 if test $ac_cv_func_getloadavg_setgid = yes; then
15373 NEED_SETGID=true
15374
15375 cat >>confdefs.h <<\_ACEOF
15376 #define GETLOADAVG_PRIVILEGED 1
15377 _ACEOF
15378
15379 else
15380 NEED_SETGID=false
15381 fi
15382
15383 if test $ac_cv_func_getloadavg_setgid = yes; then
15384 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
15385 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
15386 if test "${ac_cv_group_kmem+set}" = set; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 else
15389 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15390 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
15391 # If we got an error (system does not support symlinks), try without -L.
15392 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
15393 ac_cv_group_kmem=`echo $ac_ls_output \
15394 | sed -ne 's/[ ][ ]*/ /g;
15395 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
15396 / /s/.* //;p;'`
15397
15398 fi
15399 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
15400 echo "${ECHO_T}$ac_cv_group_kmem" >&6
15401 KMEM_GROUP=$ac_cv_group_kmem
15402 fi
15403 if test "x$ac_save_LIBS" = x; then
15404 GETLOADAVG_LIBS=$LIBS
15405 else
15406 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
15407 fi
15408 LIBS=$ac_save_LIBS
15409
15410
15411
15412 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15413 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15414 if test "${ac_cv_sys_largefile_source+set}" = set; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15416 else
15417 while :; do
15418 ac_cv_sys_largefile_source=no
15419 cat >conftest.$ac_ext <<_ACEOF
15420 #line $LINENO "configure"
15421 /* confdefs.h. */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 #include <stdio.h>
15427 int
15428 main ()
15429 {
15430 return !fseeko;
15431 ;
15432 return 0;
15433 }
15434 _ACEOF
15435 rm -f conftest.$ac_objext
15436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15437 (eval $ac_compile) 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } &&
15441 { ac_try='test -s conftest.$ac_objext'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447 break
15448 else
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15451
15452 fi
15453 rm -f conftest.$ac_objext conftest.$ac_ext
15454 cat >conftest.$ac_ext <<_ACEOF
15455 #line $LINENO "configure"
15456 /* confdefs.h. */
15457 _ACEOF
15458 cat confdefs.h >>conftest.$ac_ext
15459 cat >>conftest.$ac_ext <<_ACEOF
15460 /* end confdefs.h. */
15461 #define _LARGEFILE_SOURCE 1
15462 #include <stdio.h>
15463 int
15464 main ()
15465 {
15466 return !fseeko;
15467 ;
15468 return 0;
15469 }
15470 _ACEOF
15471 rm -f conftest.$ac_objext
15472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15473 (eval $ac_compile) 2>&5
15474 ac_status=$?
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } &&
15477 { ac_try='test -s conftest.$ac_objext'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; }; then
15483 ac_cv_sys_largefile_source=1; break
15484 else
15485 echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15487
15488 fi
15489 rm -f conftest.$ac_objext conftest.$ac_ext
15490 break
15491 done
15492 fi
15493 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
15494 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
15495 if test "$ac_cv_sys_largefile_source" != no; then
15496
15497 cat >>confdefs.h <<_ACEOF
15498 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15499 _ACEOF
15500
15501 fi
15502 rm -f conftest*
15503
15504 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15505 # in glibc 2.1.3, but that breaks too many other things.
15506 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15507 echo "$as_me:$LINENO: checking for fseeko" >&5
15508 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
15509 if test "${ac_cv_func_fseeko+set}" = set; then
15510 echo $ECHO_N "(cached) $ECHO_C" >&6
15511 else
15512 cat >conftest.$ac_ext <<_ACEOF
15513 #line $LINENO "configure"
15514 /* confdefs.h. */
15515 _ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15519 #include <stdio.h>
15520 int
15521 main ()
15522 {
15523 return fseeko && fseeko (stdin, 0, 0);
15524 ;
15525 return 0;
15526 }
15527 _ACEOF
15528 rm -f conftest.$ac_objext conftest$ac_exeext
15529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15530 (eval $ac_link) 2>&5
15531 ac_status=$?
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try='test -s conftest$ac_exeext'
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; }; then
15540 ac_cv_func_fseeko=yes
15541 else
15542 echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15544
15545 ac_cv_func_fseeko=no
15546 fi
15547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15548 fi
15549 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
15550 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
15551 if test $ac_cv_func_fseeko = yes; then
15552
15553 cat >>confdefs.h <<\_ACEOF
15554 #define HAVE_FSEEKO 1
15555 _ACEOF
15556
15557 fi
15558
15559
15560 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
15561 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
15562 if test "${ac_cv_func_getpgrp_void+set}" = set; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15564 else
15565 # Use it with a single arg.
15566 cat >conftest.$ac_ext <<_ACEOF
15567 #line $LINENO "configure"
15568 /* confdefs.h. */
15569 _ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h. */
15573 $ac_includes_default
15574 int
15575 main ()
15576 {
15577 getpgrp (0);
15578 ;
15579 return 0;
15580 }
15581 _ACEOF
15582 rm -f conftest.$ac_objext
15583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15584 (eval $ac_compile) 2>&5
15585 ac_status=$?
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
15588 { ac_try='test -s conftest.$ac_objext'
15589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590 (eval $ac_try) 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; }; then
15594 ac_cv_func_getpgrp_void=no
15595 else
15596 echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15598
15599 ac_cv_func_getpgrp_void=yes
15600 fi
15601 rm -f conftest.$ac_objext conftest.$ac_ext
15602
15603 fi
15604 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
15605 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
15606 if test $ac_cv_func_getpgrp_void = yes; then
15607
15608 cat >>confdefs.h <<\_ACEOF
15609 #define GETPGRP_VOID 1
15610 _ACEOF
15611
15612 fi
15613
15614
15615
15616 for ac_func in strftime
15617 do
15618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15619 echo "$as_me:$LINENO: checking for $ac_func" >&5
15620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15621 if eval "test \"\${$as_ac_var+set}\" = set"; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15623 else
15624 cat >conftest.$ac_ext <<_ACEOF
15625 #line $LINENO "configure"
15626 /* confdefs.h. */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631 /* System header to define __stub macros and hopefully few prototypes,
15632 which can conflict with char $ac_func (); below.
15633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15634 <limits.h> exists even on freestanding compilers. */
15635 #ifdef __STDC__
15636 # include <limits.h>
15637 #else
15638 # include <assert.h>
15639 #endif
15640 /* Override any gcc2 internal prototype to avoid an error. */
15641 #ifdef __cplusplus
15642 extern "C"
15643 {
15644 #endif
15645 /* We use char because int might match the return type of a gcc2
15646 builtin and then its argument prototype would still apply. */
15647 char $ac_func ();
15648 /* The GNU C library defines this for functions which it implements
15649 to always fail with ENOSYS. Some functions are actually named
15650 something starting with __ and the normal name is an alias. */
15651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15652 choke me
15653 #else
15654 char (*f) () = $ac_func;
15655 #endif
15656 #ifdef __cplusplus
15657 }
15658 #endif
15659
15660 int
15661 main ()
15662 {
15663 return f != $ac_func;
15664 ;
15665 return 0;
15666 }
15667 _ACEOF
15668 rm -f conftest.$ac_objext conftest$ac_exeext
15669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15670 (eval $ac_link) 2>&5
15671 ac_status=$?
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } &&
15674 { ac_try='test -s conftest$ac_exeext'
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15677 ac_status=$?
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; }; then
15680 eval "$as_ac_var=yes"
15681 else
15682 echo "$as_me: failed program was:" >&5
15683 sed 's/^/| /' conftest.$ac_ext >&5
15684
15685 eval "$as_ac_var=no"
15686 fi
15687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15688 fi
15689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15691 if test `eval echo '${'$as_ac_var'}'` = yes; then
15692 cat >>confdefs.h <<_ACEOF
15693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15694 _ACEOF
15695
15696 else
15697 # strftime is in -lintl on SCO UNIX.
15698 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15699 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15700 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15702 else
15703 ac_check_lib_save_LIBS=$LIBS
15704 LIBS="-lintl $LIBS"
15705 cat >conftest.$ac_ext <<_ACEOF
15706 #line $LINENO "configure"
15707 /* confdefs.h. */
15708 _ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h. */
15712
15713 /* Override any gcc2 internal prototype to avoid an error. */
15714 #ifdef __cplusplus
15715 extern "C"
15716 #endif
15717 /* We use char because int might match the return type of a gcc2
15718 builtin and then its argument prototype would still apply. */
15719 char strftime ();
15720 int
15721 main ()
15722 {
15723 strftime ();
15724 ;
15725 return 0;
15726 }
15727 _ACEOF
15728 rm -f conftest.$ac_objext conftest$ac_exeext
15729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15730 (eval $ac_link) 2>&5
15731 ac_status=$?
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } &&
15734 { ac_try='test -s conftest$ac_exeext'
15735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736 (eval $ac_try) 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; }; then
15740 ac_cv_lib_intl_strftime=yes
15741 else
15742 echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15744
15745 ac_cv_lib_intl_strftime=no
15746 fi
15747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15748 LIBS=$ac_check_lib_save_LIBS
15749 fi
15750 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15751 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15752 if test $ac_cv_lib_intl_strftime = yes; then
15753 cat >>confdefs.h <<\_ACEOF
15754 #define HAVE_STRFTIME 1
15755 _ACEOF
15756
15757 LIBS="-lintl $LIBS"
15758 fi
15759
15760 fi
15761 done
15762
15763
15764 # UNIX98 PTYs.
15765
15766 for ac_func in grantpt
15767 do
15768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15769 echo "$as_me:$LINENO: checking for $ac_func" >&5
15770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15771 if eval "test \"\${$as_ac_var+set}\" = set"; then
15772 echo $ECHO_N "(cached) $ECHO_C" >&6
15773 else
15774 cat >conftest.$ac_ext <<_ACEOF
15775 #line $LINENO "configure"
15776 /* confdefs.h. */
15777 _ACEOF
15778 cat confdefs.h >>conftest.$ac_ext
15779 cat >>conftest.$ac_ext <<_ACEOF
15780 /* end confdefs.h. */
15781 /* System header to define __stub macros and hopefully few prototypes,
15782 which can conflict with char $ac_func (); below.
15783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15784 <limits.h> exists even on freestanding compilers. */
15785 #ifdef __STDC__
15786 # include <limits.h>
15787 #else
15788 # include <assert.h>
15789 #endif
15790 /* Override any gcc2 internal prototype to avoid an error. */
15791 #ifdef __cplusplus
15792 extern "C"
15793 {
15794 #endif
15795 /* We use char because int might match the return type of a gcc2
15796 builtin and then its argument prototype would still apply. */
15797 char $ac_func ();
15798 /* The GNU C library defines this for functions which it implements
15799 to always fail with ENOSYS. Some functions are actually named
15800 something starting with __ and the normal name is an alias. */
15801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15802 choke me
15803 #else
15804 char (*f) () = $ac_func;
15805 #endif
15806 #ifdef __cplusplus
15807 }
15808 #endif
15809
15810 int
15811 main ()
15812 {
15813 return f != $ac_func;
15814 ;
15815 return 0;
15816 }
15817 _ACEOF
15818 rm -f conftest.$ac_objext conftest$ac_exeext
15819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15820 (eval $ac_link) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } &&
15824 { ac_try='test -s conftest$ac_exeext'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15827 ac_status=$?
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; }; then
15830 eval "$as_ac_var=yes"
15831 else
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15834
15835 eval "$as_ac_var=no"
15836 fi
15837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15838 fi
15839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15841 if test `eval echo '${'$as_ac_var'}'` = yes; then
15842 cat >>confdefs.h <<_ACEOF
15843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15844 _ACEOF
15845
15846 fi
15847 done
15848
15849
15850 # PTY-related GNU extensions.
15851
15852 for ac_func in getpt
15853 do
15854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15855 echo "$as_me:$LINENO: checking for $ac_func" >&5
15856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15857 if eval "test \"\${$as_ac_var+set}\" = set"; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15859 else
15860 cat >conftest.$ac_ext <<_ACEOF
15861 #line $LINENO "configure"
15862 /* confdefs.h. */
15863 _ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h. */
15867 /* System header to define __stub macros and hopefully few prototypes,
15868 which can conflict with char $ac_func (); below.
15869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15870 <limits.h> exists even on freestanding compilers. */
15871 #ifdef __STDC__
15872 # include <limits.h>
15873 #else
15874 # include <assert.h>
15875 #endif
15876 /* Override any gcc2 internal prototype to avoid an error. */
15877 #ifdef __cplusplus
15878 extern "C"
15879 {
15880 #endif
15881 /* We use char because int might match the return type of a gcc2
15882 builtin and then its argument prototype would still apply. */
15883 char $ac_func ();
15884 /* The GNU C library defines this for functions which it implements
15885 to always fail with ENOSYS. Some functions are actually named
15886 something starting with __ and the normal name is an alias. */
15887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15888 choke me
15889 #else
15890 char (*f) () = $ac_func;
15891 #endif
15892 #ifdef __cplusplus
15893 }
15894 #endif
15895
15896 int
15897 main ()
15898 {
15899 return f != $ac_func;
15900 ;
15901 return 0;
15902 }
15903 _ACEOF
15904 rm -f conftest.$ac_objext conftest$ac_exeext
15905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15906 (eval $ac_link) 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
15910 { ac_try='test -s conftest$ac_exeext'
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15913 ac_status=$?
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; }; then
15916 eval "$as_ac_var=yes"
15917 else
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15920
15921 eval "$as_ac_var=no"
15922 fi
15923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15924 fi
15925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15927 if test `eval echo '${'$as_ac_var'}'` = yes; then
15928 cat >>confdefs.h <<_ACEOF
15929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15930 _ACEOF
15931
15932 fi
15933 done
15934
15935
15936 # Check this now, so that we will NOT find the above functions in ncurses.
15937 # That is because we have not set up to link ncurses in lib-src.
15938 # It's better to believe a function is not available
15939 # than to expect to find it in ncurses.
15940
15941 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
15942 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
15943 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
15944 echo $ECHO_N "(cached) $ECHO_C" >&6
15945 else
15946 ac_check_lib_save_LIBS=$LIBS
15947 LIBS="-lncurses $LIBS"
15948 cat >conftest.$ac_ext <<_ACEOF
15949 #line $LINENO "configure"
15950 /* confdefs.h. */
15951 _ACEOF
15952 cat confdefs.h >>conftest.$ac_ext
15953 cat >>conftest.$ac_ext <<_ACEOF
15954 /* end confdefs.h. */
15955
15956 /* Override any gcc2 internal prototype to avoid an error. */
15957 #ifdef __cplusplus
15958 extern "C"
15959 #endif
15960 /* We use char because int might match the return type of a gcc2
15961 builtin and then its argument prototype would still apply. */
15962 char tparm ();
15963 int
15964 main ()
15965 {
15966 tparm ();
15967 ;
15968 return 0;
15969 }
15970 _ACEOF
15971 rm -f conftest.$ac_objext conftest$ac_exeext
15972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15973 (eval $ac_link) 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } &&
15977 { ac_try='test -s conftest$ac_exeext'
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15980 ac_status=$?
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; }; then
15983 ac_cv_lib_ncurses_tparm=yes
15984 else
15985 echo "$as_me: failed program was:" >&5
15986 sed 's/^/| /' conftest.$ac_ext >&5
15987
15988 ac_cv_lib_ncurses_tparm=no
15989 fi
15990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15991 LIBS=$ac_check_lib_save_LIBS
15992 fi
15993 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
15994 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
15995 if test $ac_cv_lib_ncurses_tparm = yes; then
15996 cat >>confdefs.h <<_ACEOF
15997 #define HAVE_LIBNCURSES 1
15998 _ACEOF
15999
16000 LIBS="-lncurses $LIBS"
16001
16002 fi
16003
16004
16005 # Do we need the Hesiod library to provide the support routines?
16006 if test "$with_hesiod" = yes ; then
16007 # Don't set $LIBS here -- see comments above.
16008 resolv=no
16009 echo "$as_me:$LINENO: checking for res_send" >&5
16010 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16011 if test "${ac_cv_func_res_send+set}" = set; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16013 else
16014 cat >conftest.$ac_ext <<_ACEOF
16015 #line $LINENO "configure"
16016 /* confdefs.h. */
16017 _ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16021 /* System header to define __stub macros and hopefully few prototypes,
16022 which can conflict with char res_send (); below.
16023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16024 <limits.h> exists even on freestanding compilers. */
16025 #ifdef __STDC__
16026 # include <limits.h>
16027 #else
16028 # include <assert.h>
16029 #endif
16030 /* Override any gcc2 internal prototype to avoid an error. */
16031 #ifdef __cplusplus
16032 extern "C"
16033 {
16034 #endif
16035 /* We use char because int might match the return type of a gcc2
16036 builtin and then its argument prototype would still apply. */
16037 char res_send ();
16038 /* The GNU C library defines this for functions which it implements
16039 to always fail with ENOSYS. Some functions are actually named
16040 something starting with __ and the normal name is an alias. */
16041 #if defined (__stub_res_send) || defined (__stub___res_send)
16042 choke me
16043 #else
16044 char (*f) () = res_send;
16045 #endif
16046 #ifdef __cplusplus
16047 }
16048 #endif
16049
16050 int
16051 main ()
16052 {
16053 return f != res_send;
16054 ;
16055 return 0;
16056 }
16057 _ACEOF
16058 rm -f conftest.$ac_objext conftest$ac_exeext
16059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16060 (eval $ac_link) 2>&5
16061 ac_status=$?
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } &&
16064 { ac_try='test -s conftest$ac_exeext'
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 ac_cv_func_res_send=yes
16071 else
16072 echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16074
16075 ac_cv_func_res_send=no
16076 fi
16077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16078 fi
16079 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16080 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16081 if test $ac_cv_func_res_send = yes; then
16082 :
16083 else
16084 echo "$as_me:$LINENO: checking for __res_send" >&5
16085 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16086 if test "${ac_cv_func___res_send+set}" = set; then
16087 echo $ECHO_N "(cached) $ECHO_C" >&6
16088 else
16089 cat >conftest.$ac_ext <<_ACEOF
16090 #line $LINENO "configure"
16091 /* confdefs.h. */
16092 _ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16096 /* System header to define __stub macros and hopefully few prototypes,
16097 which can conflict with char __res_send (); below.
16098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16099 <limits.h> exists even on freestanding compilers. */
16100 #ifdef __STDC__
16101 # include <limits.h>
16102 #else
16103 # include <assert.h>
16104 #endif
16105 /* Override any gcc2 internal prototype to avoid an error. */
16106 #ifdef __cplusplus
16107 extern "C"
16108 {
16109 #endif
16110 /* We use char because int might match the return type of a gcc2
16111 builtin and then its argument prototype would still apply. */
16112 char __res_send ();
16113 /* The GNU C library defines this for functions which it implements
16114 to always fail with ENOSYS. Some functions are actually named
16115 something starting with __ and the normal name is an alias. */
16116 #if defined (__stub___res_send) || defined (__stub_____res_send)
16117 choke me
16118 #else
16119 char (*f) () = __res_send;
16120 #endif
16121 #ifdef __cplusplus
16122 }
16123 #endif
16124
16125 int
16126 main ()
16127 {
16128 return f != __res_send;
16129 ;
16130 return 0;
16131 }
16132 _ACEOF
16133 rm -f conftest.$ac_objext conftest$ac_exeext
16134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16135 (eval $ac_link) 2>&5
16136 ac_status=$?
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); } &&
16139 { ac_try='test -s conftest$ac_exeext'
16140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141 (eval $ac_try) 2>&5
16142 ac_status=$?
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); }; }; then
16145 ac_cv_func___res_send=yes
16146 else
16147 echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16149
16150 ac_cv_func___res_send=no
16151 fi
16152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16153 fi
16154 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16155 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16156 if test $ac_cv_func___res_send = yes; then
16157 :
16158 else
16159 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16160 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16161 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 else
16164 ac_check_lib_save_LIBS=$LIBS
16165 LIBS="-lresolv $LIBS"
16166 cat >conftest.$ac_ext <<_ACEOF
16167 #line $LINENO "configure"
16168 /* confdefs.h. */
16169 _ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h. */
16173
16174 /* Override any gcc2 internal prototype to avoid an error. */
16175 #ifdef __cplusplus
16176 extern "C"
16177 #endif
16178 /* We use char because int might match the return type of a gcc2
16179 builtin and then its argument prototype would still apply. */
16180 char res_send ();
16181 int
16182 main ()
16183 {
16184 res_send ();
16185 ;
16186 return 0;
16187 }
16188 _ACEOF
16189 rm -f conftest.$ac_objext conftest$ac_exeext
16190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16191 (eval $ac_link) 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try='test -s conftest$ac_exeext'
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_cv_lib_resolv_res_send=yes
16202 else
16203 echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16205
16206 ac_cv_lib_resolv_res_send=no
16207 fi
16208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16209 LIBS=$ac_check_lib_save_LIBS
16210 fi
16211 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
16212 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
16213 if test $ac_cv_lib_resolv_res_send = yes; then
16214 resolv=yes
16215 else
16216 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
16217 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
16218 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
16219 echo $ECHO_N "(cached) $ECHO_C" >&6
16220 else
16221 ac_check_lib_save_LIBS=$LIBS
16222 LIBS="-lresolv $LIBS"
16223 cat >conftest.$ac_ext <<_ACEOF
16224 #line $LINENO "configure"
16225 /* confdefs.h. */
16226 _ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230
16231 /* Override any gcc2 internal prototype to avoid an error. */
16232 #ifdef __cplusplus
16233 extern "C"
16234 #endif
16235 /* We use char because int might match the return type of a gcc2
16236 builtin and then its argument prototype would still apply. */
16237 char __res_send ();
16238 int
16239 main ()
16240 {
16241 __res_send ();
16242 ;
16243 return 0;
16244 }
16245 _ACEOF
16246 rm -f conftest.$ac_objext conftest$ac_exeext
16247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16248 (eval $ac_link) 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } &&
16252 { ac_try='test -s conftest$ac_exeext'
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; }; then
16258 ac_cv_lib_resolv___res_send=yes
16259 else
16260 echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16262
16263 ac_cv_lib_resolv___res_send=no
16264 fi
16265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16266 LIBS=$ac_check_lib_save_LIBS
16267 fi
16268 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
16269 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
16270 if test $ac_cv_lib_resolv___res_send = yes; then
16271 resolv=yes
16272 fi
16273
16274 fi
16275
16276 fi
16277
16278 fi
16279
16280 if test "$resolv" = yes ; then
16281 RESOLVLIB=-lresolv
16282
16283 cat >>confdefs.h <<\_ACEOF
16284 #define HAVE_LIBRESOLV 1
16285 _ACEOF
16286
16287 else
16288 RESOLVLIB=
16289 fi
16290 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
16291 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
16292 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
16293 echo $ECHO_N "(cached) $ECHO_C" >&6
16294 else
16295 cat >conftest.$ac_ext <<_ACEOF
16296 #line $LINENO "configure"
16297 /* confdefs.h. */
16298 _ACEOF
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h. */
16302 /* System header to define __stub macros and hopefully few prototypes,
16303 which can conflict with char hes_getmailhost (); below.
16304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16305 <limits.h> exists even on freestanding compilers. */
16306 #ifdef __STDC__
16307 # include <limits.h>
16308 #else
16309 # include <assert.h>
16310 #endif
16311 /* Override any gcc2 internal prototype to avoid an error. */
16312 #ifdef __cplusplus
16313 extern "C"
16314 {
16315 #endif
16316 /* We use char because int might match the return type of a gcc2
16317 builtin and then its argument prototype would still apply. */
16318 char hes_getmailhost ();
16319 /* The GNU C library defines this for functions which it implements
16320 to always fail with ENOSYS. Some functions are actually named
16321 something starting with __ and the normal name is an alias. */
16322 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
16323 choke me
16324 #else
16325 char (*f) () = hes_getmailhost;
16326 #endif
16327 #ifdef __cplusplus
16328 }
16329 #endif
16330
16331 int
16332 main ()
16333 {
16334 return f != hes_getmailhost;
16335 ;
16336 return 0;
16337 }
16338 _ACEOF
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341 (eval $ac_link) 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try='test -s conftest$ac_exeext'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16348 ac_status=$?
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; }; then
16351 ac_cv_func_hes_getmailhost=yes
16352 else
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16355
16356 ac_cv_func_hes_getmailhost=no
16357 fi
16358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16359 fi
16360 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
16361 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
16362 if test $ac_cv_func_hes_getmailhost = yes; then
16363 :
16364 else
16365 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
16366 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
16367 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
16368 echo $ECHO_N "(cached) $ECHO_C" >&6
16369 else
16370 ac_check_lib_save_LIBS=$LIBS
16371 LIBS="-lhesiod $RESOLVLIB $LIBS"
16372 cat >conftest.$ac_ext <<_ACEOF
16373 #line $LINENO "configure"
16374 /* confdefs.h. */
16375 _ACEOF
16376 cat confdefs.h >>conftest.$ac_ext
16377 cat >>conftest.$ac_ext <<_ACEOF
16378 /* end confdefs.h. */
16379
16380 /* Override any gcc2 internal prototype to avoid an error. */
16381 #ifdef __cplusplus
16382 extern "C"
16383 #endif
16384 /* We use char because int might match the return type of a gcc2
16385 builtin and then its argument prototype would still apply. */
16386 char hes_getmailhost ();
16387 int
16388 main ()
16389 {
16390 hes_getmailhost ();
16391 ;
16392 return 0;
16393 }
16394 _ACEOF
16395 rm -f conftest.$ac_objext conftest$ac_exeext
16396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16397 (eval $ac_link) 2>&5
16398 ac_status=$?
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } &&
16401 { ac_try='test -s conftest$ac_exeext'
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5
16404 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; }; then
16407 ac_cv_lib_hesiod_hes_getmailhost=yes
16408 else
16409 echo "$as_me: failed program was:" >&5
16410 sed 's/^/| /' conftest.$ac_ext >&5
16411
16412 ac_cv_lib_hesiod_hes_getmailhost=no
16413 fi
16414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16415 LIBS=$ac_check_lib_save_LIBS
16416 fi
16417 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
16418 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
16419 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
16420
16421 cat >>confdefs.h <<\_ACEOF
16422 #define HAVE_LIBHESIOD 1
16423 _ACEOF
16424
16425 else
16426 :
16427 fi
16428
16429 fi
16430
16431 fi
16432
16433 # These tell us which Kerberos-related libraries to use.
16434 if test "${with_kerberos+set}" = set; then
16435
16436 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
16437 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
16438 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16440 else
16441 ac_check_lib_save_LIBS=$LIBS
16442 LIBS="-lcom_err $LIBS"
16443 cat >conftest.$ac_ext <<_ACEOF
16444 #line $LINENO "configure"
16445 /* confdefs.h. */
16446 _ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450
16451 /* Override any gcc2 internal prototype to avoid an error. */
16452 #ifdef __cplusplus
16453 extern "C"
16454 #endif
16455 /* We use char because int might match the return type of a gcc2
16456 builtin and then its argument prototype would still apply. */
16457 char com_err ();
16458 int
16459 main ()
16460 {
16461 com_err ();
16462 ;
16463 return 0;
16464 }
16465 _ACEOF
16466 rm -f conftest.$ac_objext conftest$ac_exeext
16467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16468 (eval $ac_link) 2>&5
16469 ac_status=$?
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } &&
16472 { ac_try='test -s conftest$ac_exeext'
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16475 ac_status=$?
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; }; then
16478 ac_cv_lib_com_err_com_err=yes
16479 else
16480 echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16482
16483 ac_cv_lib_com_err_com_err=no
16484 fi
16485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16486 LIBS=$ac_check_lib_save_LIBS
16487 fi
16488 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
16489 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
16490 if test $ac_cv_lib_com_err_com_err = yes; then
16491 cat >>confdefs.h <<_ACEOF
16492 #define HAVE_LIBCOM_ERR 1
16493 _ACEOF
16494
16495 LIBS="-lcom_err $LIBS"
16496
16497 fi
16498
16499
16500 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
16501 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
16502 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16504 else
16505 ac_check_lib_save_LIBS=$LIBS
16506 LIBS="-lk5crypto $LIBS"
16507 cat >conftest.$ac_ext <<_ACEOF
16508 #line $LINENO "configure"
16509 /* confdefs.h. */
16510 _ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h. */
16514
16515 /* Override any gcc2 internal prototype to avoid an error. */
16516 #ifdef __cplusplus
16517 extern "C"
16518 #endif
16519 /* We use char because int might match the return type of a gcc2
16520 builtin and then its argument prototype would still apply. */
16521 char mit_des_cbc_encrypt ();
16522 int
16523 main ()
16524 {
16525 mit_des_cbc_encrypt ();
16526 ;
16527 return 0;
16528 }
16529 _ACEOF
16530 rm -f conftest.$ac_objext conftest$ac_exeext
16531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16532 (eval $ac_link) 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
16536 { ac_try='test -s conftest$ac_exeext'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
16543 else
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
16548 fi
16549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16550 LIBS=$ac_check_lib_save_LIBS
16551 fi
16552 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
16553 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
16554 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
16555 cat >>confdefs.h <<_ACEOF
16556 #define HAVE_LIBK5CRYPTO 1
16557 _ACEOF
16558
16559 LIBS="-lk5crypto $LIBS"
16560
16561 fi
16562
16563
16564 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
16565 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
16566 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 else
16569 ac_check_lib_save_LIBS=$LIBS
16570 LIBS="-lcrypto $LIBS"
16571 cat >conftest.$ac_ext <<_ACEOF
16572 #line $LINENO "configure"
16573 /* confdefs.h. */
16574 _ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16578
16579 /* Override any gcc2 internal prototype to avoid an error. */
16580 #ifdef __cplusplus
16581 extern "C"
16582 #endif
16583 /* We use char because int might match the return type of a gcc2
16584 builtin and then its argument prototype would still apply. */
16585 char mit_des_cbc_encrypt ();
16586 int
16587 main ()
16588 {
16589 mit_des_cbc_encrypt ();
16590 ;
16591 return 0;
16592 }
16593 _ACEOF
16594 rm -f conftest.$ac_objext conftest$ac_exeext
16595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16596 (eval $ac_link) 2>&5
16597 ac_status=$?
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } &&
16600 { ac_try='test -s conftest$ac_exeext'
16601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602 (eval $ac_try) 2>&5
16603 ac_status=$?
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; }; then
16606 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
16607 else
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16610
16611 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
16612 fi
16613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16614 LIBS=$ac_check_lib_save_LIBS
16615 fi
16616 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
16617 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
16618 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
16619 cat >>confdefs.h <<_ACEOF
16620 #define HAVE_LIBCRYPTO 1
16621 _ACEOF
16622
16623 LIBS="-lcrypto $LIBS"
16624
16625 fi
16626
16627
16628 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
16629 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
16630 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 else
16633 ac_check_lib_save_LIBS=$LIBS
16634 LIBS="-lkrb5 $LIBS"
16635 cat >conftest.$ac_ext <<_ACEOF
16636 #line $LINENO "configure"
16637 /* confdefs.h. */
16638 _ACEOF
16639 cat confdefs.h >>conftest.$ac_ext
16640 cat >>conftest.$ac_ext <<_ACEOF
16641 /* end confdefs.h. */
16642
16643 /* Override any gcc2 internal prototype to avoid an error. */
16644 #ifdef __cplusplus
16645 extern "C"
16646 #endif
16647 /* We use char because int might match the return type of a gcc2
16648 builtin and then its argument prototype would still apply. */
16649 char krb5_init_context ();
16650 int
16651 main ()
16652 {
16653 krb5_init_context ();
16654 ;
16655 return 0;
16656 }
16657 _ACEOF
16658 rm -f conftest.$ac_objext conftest$ac_exeext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16660 (eval $ac_link) 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -s conftest$ac_exeext'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; }; then
16670 ac_cv_lib_krb5_krb5_init_context=yes
16671 else
16672 echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16674
16675 ac_cv_lib_krb5_krb5_init_context=no
16676 fi
16677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16678 LIBS=$ac_check_lib_save_LIBS
16679 fi
16680 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16681 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
16682 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
16683 cat >>confdefs.h <<_ACEOF
16684 #define HAVE_LIBKRB5 1
16685 _ACEOF
16686
16687 LIBS="-lkrb5 $LIBS"
16688
16689 fi
16690
16691 if test "${with_kerberos5+set}" != set; then
16692
16693 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
16694 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
16695 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16697 else
16698 ac_check_lib_save_LIBS=$LIBS
16699 LIBS="-ldes425 $LIBS"
16700 cat >conftest.$ac_ext <<_ACEOF
16701 #line $LINENO "configure"
16702 /* confdefs.h. */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707
16708 /* Override any gcc2 internal prototype to avoid an error. */
16709 #ifdef __cplusplus
16710 extern "C"
16711 #endif
16712 /* We use char because int might match the return type of a gcc2
16713 builtin and then its argument prototype would still apply. */
16714 char des_cbc_encrypt ();
16715 int
16716 main ()
16717 {
16718 des_cbc_encrypt ();
16719 ;
16720 return 0;
16721 }
16722 _ACEOF
16723 rm -f conftest.$ac_objext conftest$ac_exeext
16724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16725 (eval $ac_link) 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); } &&
16729 { ac_try='test -s conftest$ac_exeext'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16735 ac_cv_lib_des425_des_cbc_encrypt=yes
16736 else
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16739
16740 ac_cv_lib_des425_des_cbc_encrypt=no
16741 fi
16742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16743 LIBS=$ac_check_lib_save_LIBS
16744 fi
16745 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16746 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
16747 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
16748 cat >>confdefs.h <<_ACEOF
16749 #define HAVE_LIBDES425 1
16750 _ACEOF
16751
16752 LIBS="-ldes425 $LIBS"
16753
16754 else
16755
16756 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
16757 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
16758 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16760 else
16761 ac_check_lib_save_LIBS=$LIBS
16762 LIBS="-ldes $LIBS"
16763 cat >conftest.$ac_ext <<_ACEOF
16764 #line $LINENO "configure"
16765 /* confdefs.h. */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16770
16771 /* Override any gcc2 internal prototype to avoid an error. */
16772 #ifdef __cplusplus
16773 extern "C"
16774 #endif
16775 /* We use char because int might match the return type of a gcc2
16776 builtin and then its argument prototype would still apply. */
16777 char des_cbc_encrypt ();
16778 int
16779 main ()
16780 {
16781 des_cbc_encrypt ();
16782 ;
16783 return 0;
16784 }
16785 _ACEOF
16786 rm -f conftest.$ac_objext conftest$ac_exeext
16787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16788 (eval $ac_link) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try='test -s conftest$ac_exeext'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16798 ac_cv_lib_des_des_cbc_encrypt=yes
16799 else
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16802
16803 ac_cv_lib_des_des_cbc_encrypt=no
16804 fi
16805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16806 LIBS=$ac_check_lib_save_LIBS
16807 fi
16808 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16809 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
16810 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
16811 cat >>confdefs.h <<_ACEOF
16812 #define HAVE_LIBDES 1
16813 _ACEOF
16814
16815 LIBS="-ldes $LIBS"
16816
16817 fi
16818
16819 fi
16820
16821
16822 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
16823 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
16824 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16826 else
16827 ac_check_lib_save_LIBS=$LIBS
16828 LIBS="-lkrb4 $LIBS"
16829 cat >conftest.$ac_ext <<_ACEOF
16830 #line $LINENO "configure"
16831 /* confdefs.h. */
16832 _ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16836
16837 /* Override any gcc2 internal prototype to avoid an error. */
16838 #ifdef __cplusplus
16839 extern "C"
16840 #endif
16841 /* We use char because int might match the return type of a gcc2
16842 builtin and then its argument prototype would still apply. */
16843 char krb_get_cred ();
16844 int
16845 main ()
16846 {
16847 krb_get_cred ();
16848 ;
16849 return 0;
16850 }
16851 _ACEOF
16852 rm -f conftest.$ac_objext conftest$ac_exeext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16854 (eval $ac_link) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
16858 { ac_try='test -s conftest$ac_exeext'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_cv_lib_krb4_krb_get_cred=yes
16865 else
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16868
16869 ac_cv_lib_krb4_krb_get_cred=no
16870 fi
16871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16872 LIBS=$ac_check_lib_save_LIBS
16873 fi
16874 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16875 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
16876 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
16877 cat >>confdefs.h <<_ACEOF
16878 #define HAVE_LIBKRB4 1
16879 _ACEOF
16880
16881 LIBS="-lkrb4 $LIBS"
16882
16883 else
16884
16885 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
16886 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
16887 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16889 else
16890 ac_check_lib_save_LIBS=$LIBS
16891 LIBS="-lkrb $LIBS"
16892 cat >conftest.$ac_ext <<_ACEOF
16893 #line $LINENO "configure"
16894 /* confdefs.h. */
16895 _ACEOF
16896 cat confdefs.h >>conftest.$ac_ext
16897 cat >>conftest.$ac_ext <<_ACEOF
16898 /* end confdefs.h. */
16899
16900 /* Override any gcc2 internal prototype to avoid an error. */
16901 #ifdef __cplusplus
16902 extern "C"
16903 #endif
16904 /* We use char because int might match the return type of a gcc2
16905 builtin and then its argument prototype would still apply. */
16906 char krb_get_cred ();
16907 int
16908 main ()
16909 {
16910 krb_get_cred ();
16911 ;
16912 return 0;
16913 }
16914 _ACEOF
16915 rm -f conftest.$ac_objext conftest$ac_exeext
16916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16917 (eval $ac_link) 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } &&
16921 { ac_try='test -s conftest$ac_exeext'
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16924 ac_status=$?
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 ac_cv_lib_krb_krb_get_cred=yes
16928 else
16929 echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16931
16932 ac_cv_lib_krb_krb_get_cred=no
16933 fi
16934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16935 LIBS=$ac_check_lib_save_LIBS
16936 fi
16937 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
16938 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
16939 if test $ac_cv_lib_krb_krb_get_cred = yes; then
16940 cat >>confdefs.h <<_ACEOF
16941 #define HAVE_LIBKRB 1
16942 _ACEOF
16943
16944 LIBS="-lkrb $LIBS"
16945
16946 fi
16947
16948 fi
16949
16950 fi
16951
16952 if test "${with_kerberos5+set}" = set; then
16953
16954 for ac_header in krb5.h
16955 do
16956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16958 echo "$as_me:$LINENO: checking for $ac_header" >&5
16959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16962 fi
16963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16965 else
16966 # Is the header compilable?
16967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16969 cat >conftest.$ac_ext <<_ACEOF
16970 #line $LINENO "configure"
16971 /* confdefs.h. */
16972 _ACEOF
16973 cat confdefs.h >>conftest.$ac_ext
16974 cat >>conftest.$ac_ext <<_ACEOF
16975 /* end confdefs.h. */
16976 $ac_includes_default
16977 #include <$ac_header>
16978 _ACEOF
16979 rm -f conftest.$ac_objext
16980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16981 (eval $ac_compile) 2>&5
16982 ac_status=$?
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } &&
16985 { ac_try='test -s conftest.$ac_objext'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_header_compiler=yes
16992 else
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16995
16996 ac_header_compiler=no
16997 fi
16998 rm -f conftest.$ac_objext conftest.$ac_ext
16999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17000 echo "${ECHO_T}$ac_header_compiler" >&6
17001
17002 # Is the header present?
17003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17005 cat >conftest.$ac_ext <<_ACEOF
17006 #line $LINENO "configure"
17007 /* confdefs.h. */
17008 _ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17012 #include <$ac_header>
17013 _ACEOF
17014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } >/dev/null; then
17022 if test -s conftest.err; then
17023 ac_cpp_err=$ac_c_preproc_warn_flag
17024 else
17025 ac_cpp_err=
17026 fi
17027 else
17028 ac_cpp_err=yes
17029 fi
17030 if test -z "$ac_cpp_err"; then
17031 ac_header_preproc=yes
17032 else
17033 echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17035
17036 ac_header_preproc=no
17037 fi
17038 rm -f conftest.err conftest.$ac_ext
17039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17040 echo "${ECHO_T}$ac_header_preproc" >&6
17041
17042 # So? What about this header?
17043 case $ac_header_compiler:$ac_header_preproc in
17044 yes:no )
17045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17049 (
17050 cat <<\_ASBOX
17051 ## ------------------------------------ ##
17052 ## Report this to bug-autoconf@gnu.org. ##
17053 ## ------------------------------------ ##
17054 _ASBOX
17055 ) |
17056 sed "s/^/$as_me: WARNING: /" >&2
17057 ;;
17058 no:yes )
17059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17065 (
17066 cat <<\_ASBOX
17067 ## ------------------------------------ ##
17068 ## Report this to bug-autoconf@gnu.org. ##
17069 ## ------------------------------------ ##
17070 _ASBOX
17071 ) |
17072 sed "s/^/$as_me: WARNING: /" >&2
17073 ;;
17074 esac
17075 echo "$as_me:$LINENO: checking for $ac_header" >&5
17076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17078 echo $ECHO_N "(cached) $ECHO_C" >&6
17079 else
17080 eval "$as_ac_Header=$ac_header_preproc"
17081 fi
17082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17084
17085 fi
17086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17087 cat >>confdefs.h <<_ACEOF
17088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17089 _ACEOF
17090
17091 fi
17092
17093 done
17094
17095 else
17096
17097 for ac_header in des.h
17098 do
17099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17101 echo "$as_me:$LINENO: checking for $ac_header" >&5
17102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17104 echo $ECHO_N "(cached) $ECHO_C" >&6
17105 fi
17106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17108 else
17109 # Is the header compilable?
17110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17112 cat >conftest.$ac_ext <<_ACEOF
17113 #line $LINENO "configure"
17114 /* confdefs.h. */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17119 $ac_includes_default
17120 #include <$ac_header>
17121 _ACEOF
17122 rm -f conftest.$ac_objext
17123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17124 (eval $ac_compile) 2>&5
17125 ac_status=$?
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } &&
17128 { ac_try='test -s conftest.$ac_objext'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17131 ac_status=$?
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17134 ac_header_compiler=yes
17135 else
17136 echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17138
17139 ac_header_compiler=no
17140 fi
17141 rm -f conftest.$ac_objext conftest.$ac_ext
17142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17143 echo "${ECHO_T}$ac_header_compiler" >&6
17144
17145 # Is the header present?
17146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17148 cat >conftest.$ac_ext <<_ACEOF
17149 #line $LINENO "configure"
17150 /* confdefs.h. */
17151 _ACEOF
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17155 #include <$ac_header>
17156 _ACEOF
17157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17159 ac_status=$?
17160 grep -v '^ *+' conftest.er1 >conftest.err
17161 rm -f conftest.er1
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } >/dev/null; then
17165 if test -s conftest.err; then
17166 ac_cpp_err=$ac_c_preproc_warn_flag
17167 else
17168 ac_cpp_err=
17169 fi
17170 else
17171 ac_cpp_err=yes
17172 fi
17173 if test -z "$ac_cpp_err"; then
17174 ac_header_preproc=yes
17175 else
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17178
17179 ac_header_preproc=no
17180 fi
17181 rm -f conftest.err conftest.$ac_ext
17182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17183 echo "${ECHO_T}$ac_header_preproc" >&6
17184
17185 # So? What about this header?
17186 case $ac_header_compiler:$ac_header_preproc in
17187 yes:no )
17188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17192 (
17193 cat <<\_ASBOX
17194 ## ------------------------------------ ##
17195 ## Report this to bug-autoconf@gnu.org. ##
17196 ## ------------------------------------ ##
17197 _ASBOX
17198 ) |
17199 sed "s/^/$as_me: WARNING: /" >&2
17200 ;;
17201 no:yes )
17202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17208 (
17209 cat <<\_ASBOX
17210 ## ------------------------------------ ##
17211 ## Report this to bug-autoconf@gnu.org. ##
17212 ## ------------------------------------ ##
17213 _ASBOX
17214 ) |
17215 sed "s/^/$as_me: WARNING: /" >&2
17216 ;;
17217 esac
17218 echo "$as_me:$LINENO: checking for $ac_header" >&5
17219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17222 else
17223 eval "$as_ac_Header=$ac_header_preproc"
17224 fi
17225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17227
17228 fi
17229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17230 cat >>confdefs.h <<_ACEOF
17231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17232 _ACEOF
17233
17234 else
17235
17236 for ac_header in kerberosIV/des.h
17237 do
17238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17240 echo "$as_me:$LINENO: checking for $ac_header" >&5
17241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17243 echo $ECHO_N "(cached) $ECHO_C" >&6
17244 fi
17245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17247 else
17248 # Is the header compilable?
17249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17251 cat >conftest.$ac_ext <<_ACEOF
17252 #line $LINENO "configure"
17253 /* confdefs.h. */
17254 _ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17258 $ac_includes_default
17259 #include <$ac_header>
17260 _ACEOF
17261 rm -f conftest.$ac_objext
17262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17263 (eval $ac_compile) 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } &&
17267 { ac_try='test -s conftest.$ac_objext'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17270 ac_status=$?
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17273 ac_header_compiler=yes
17274 else
17275 echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17277
17278 ac_header_compiler=no
17279 fi
17280 rm -f conftest.$ac_objext conftest.$ac_ext
17281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17282 echo "${ECHO_T}$ac_header_compiler" >&6
17283
17284 # Is the header present?
17285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17287 cat >conftest.$ac_ext <<_ACEOF
17288 #line $LINENO "configure"
17289 /* confdefs.h. */
17290 _ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17294 #include <$ac_header>
17295 _ACEOF
17296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17298 ac_status=$?
17299 grep -v '^ *+' conftest.er1 >conftest.err
17300 rm -f conftest.er1
17301 cat conftest.err >&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } >/dev/null; then
17304 if test -s conftest.err; then
17305 ac_cpp_err=$ac_c_preproc_warn_flag
17306 else
17307 ac_cpp_err=
17308 fi
17309 else
17310 ac_cpp_err=yes
17311 fi
17312 if test -z "$ac_cpp_err"; then
17313 ac_header_preproc=yes
17314 else
17315 echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17317
17318 ac_header_preproc=no
17319 fi
17320 rm -f conftest.err conftest.$ac_ext
17321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17322 echo "${ECHO_T}$ac_header_preproc" >&6
17323
17324 # So? What about this header?
17325 case $ac_header_compiler:$ac_header_preproc in
17326 yes:no )
17327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17331 (
17332 cat <<\_ASBOX
17333 ## ------------------------------------ ##
17334 ## Report this to bug-autoconf@gnu.org. ##
17335 ## ------------------------------------ ##
17336 _ASBOX
17337 ) |
17338 sed "s/^/$as_me: WARNING: /" >&2
17339 ;;
17340 no:yes )
17341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17347 (
17348 cat <<\_ASBOX
17349 ## ------------------------------------ ##
17350 ## Report this to bug-autoconf@gnu.org. ##
17351 ## ------------------------------------ ##
17352 _ASBOX
17353 ) |
17354 sed "s/^/$as_me: WARNING: /" >&2
17355 ;;
17356 esac
17357 echo "$as_me:$LINENO: checking for $ac_header" >&5
17358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17361 else
17362 eval "$as_ac_Header=$ac_header_preproc"
17363 fi
17364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17366
17367 fi
17368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17369 cat >>confdefs.h <<_ACEOF
17370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17371 _ACEOF
17372
17373 else
17374
17375 for ac_header in kerberos/des.h
17376 do
17377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17379 echo "$as_me:$LINENO: checking for $ac_header" >&5
17380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17382 echo $ECHO_N "(cached) $ECHO_C" >&6
17383 fi
17384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17386 else
17387 # Is the header compilable?
17388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17390 cat >conftest.$ac_ext <<_ACEOF
17391 #line $LINENO "configure"
17392 /* confdefs.h. */
17393 _ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17397 $ac_includes_default
17398 #include <$ac_header>
17399 _ACEOF
17400 rm -f conftest.$ac_objext
17401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17402 (eval $ac_compile) 2>&5
17403 ac_status=$?
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } &&
17406 { ac_try='test -s conftest.$ac_objext'
17407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408 (eval $ac_try) 2>&5
17409 ac_status=$?
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; }; then
17412 ac_header_compiler=yes
17413 else
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17416
17417 ac_header_compiler=no
17418 fi
17419 rm -f conftest.$ac_objext conftest.$ac_ext
17420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17421 echo "${ECHO_T}$ac_header_compiler" >&6
17422
17423 # Is the header present?
17424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17426 cat >conftest.$ac_ext <<_ACEOF
17427 #line $LINENO "configure"
17428 /* confdefs.h. */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 #include <$ac_header>
17434 _ACEOF
17435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17437 ac_status=$?
17438 grep -v '^ *+' conftest.er1 >conftest.err
17439 rm -f conftest.er1
17440 cat conftest.err >&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); } >/dev/null; then
17443 if test -s conftest.err; then
17444 ac_cpp_err=$ac_c_preproc_warn_flag
17445 else
17446 ac_cpp_err=
17447 fi
17448 else
17449 ac_cpp_err=yes
17450 fi
17451 if test -z "$ac_cpp_err"; then
17452 ac_header_preproc=yes
17453 else
17454 echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17456
17457 ac_header_preproc=no
17458 fi
17459 rm -f conftest.err conftest.$ac_ext
17460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17461 echo "${ECHO_T}$ac_header_preproc" >&6
17462
17463 # So? What about this header?
17464 case $ac_header_compiler:$ac_header_preproc in
17465 yes:no )
17466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17470 (
17471 cat <<\_ASBOX
17472 ## ------------------------------------ ##
17473 ## Report this to bug-autoconf@gnu.org. ##
17474 ## ------------------------------------ ##
17475 _ASBOX
17476 ) |
17477 sed "s/^/$as_me: WARNING: /" >&2
17478 ;;
17479 no:yes )
17480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17486 (
17487 cat <<\_ASBOX
17488 ## ------------------------------------ ##
17489 ## Report this to bug-autoconf@gnu.org. ##
17490 ## ------------------------------------ ##
17491 _ASBOX
17492 ) |
17493 sed "s/^/$as_me: WARNING: /" >&2
17494 ;;
17495 esac
17496 echo "$as_me:$LINENO: checking for $ac_header" >&5
17497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17500 else
17501 eval "$as_ac_Header=$ac_header_preproc"
17502 fi
17503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17505
17506 fi
17507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17508 cat >>confdefs.h <<_ACEOF
17509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17510 _ACEOF
17511
17512 fi
17513
17514 done
17515
17516 fi
17517
17518 done
17519
17520 fi
17521
17522 done
17523
17524
17525 for ac_header in krb.h
17526 do
17527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17529 echo "$as_me:$LINENO: checking for $ac_header" >&5
17530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17533 fi
17534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17536 else
17537 # Is the header compilable?
17538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17540 cat >conftest.$ac_ext <<_ACEOF
17541 #line $LINENO "configure"
17542 /* confdefs.h. */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17547 $ac_includes_default
17548 #include <$ac_header>
17549 _ACEOF
17550 rm -f conftest.$ac_objext
17551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17552 (eval $ac_compile) 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } &&
17556 { ac_try='test -s conftest.$ac_objext'
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17559 ac_status=$?
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; }; then
17562 ac_header_compiler=yes
17563 else
17564 echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.$ac_ext >&5
17566
17567 ac_header_compiler=no
17568 fi
17569 rm -f conftest.$ac_objext conftest.$ac_ext
17570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17571 echo "${ECHO_T}$ac_header_compiler" >&6
17572
17573 # Is the header present?
17574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17576 cat >conftest.$ac_ext <<_ACEOF
17577 #line $LINENO "configure"
17578 /* confdefs.h. */
17579 _ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h. */
17583 #include <$ac_header>
17584 _ACEOF
17585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17587 ac_status=$?
17588 grep -v '^ *+' conftest.er1 >conftest.err
17589 rm -f conftest.er1
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } >/dev/null; then
17593 if test -s conftest.err; then
17594 ac_cpp_err=$ac_c_preproc_warn_flag
17595 else
17596 ac_cpp_err=
17597 fi
17598 else
17599 ac_cpp_err=yes
17600 fi
17601 if test -z "$ac_cpp_err"; then
17602 ac_header_preproc=yes
17603 else
17604 echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17606
17607 ac_header_preproc=no
17608 fi
17609 rm -f conftest.err conftest.$ac_ext
17610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17611 echo "${ECHO_T}$ac_header_preproc" >&6
17612
17613 # So? What about this header?
17614 case $ac_header_compiler:$ac_header_preproc in
17615 yes:no )
17616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17620 (
17621 cat <<\_ASBOX
17622 ## ------------------------------------ ##
17623 ## Report this to bug-autoconf@gnu.org. ##
17624 ## ------------------------------------ ##
17625 _ASBOX
17626 ) |
17627 sed "s/^/$as_me: WARNING: /" >&2
17628 ;;
17629 no:yes )
17630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17636 (
17637 cat <<\_ASBOX
17638 ## ------------------------------------ ##
17639 ## Report this to bug-autoconf@gnu.org. ##
17640 ## ------------------------------------ ##
17641 _ASBOX
17642 ) |
17643 sed "s/^/$as_me: WARNING: /" >&2
17644 ;;
17645 esac
17646 echo "$as_me:$LINENO: checking for $ac_header" >&5
17647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17650 else
17651 eval "$as_ac_Header=$ac_header_preproc"
17652 fi
17653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17655
17656 fi
17657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17658 cat >>confdefs.h <<_ACEOF
17659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17660 _ACEOF
17661
17662 else
17663
17664 for ac_header in kerberosIV/krb.h
17665 do
17666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17668 echo "$as_me:$LINENO: checking for $ac_header" >&5
17669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17672 fi
17673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17675 else
17676 # Is the header compilable?
17677 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17679 cat >conftest.$ac_ext <<_ACEOF
17680 #line $LINENO "configure"
17681 /* confdefs.h. */
17682 _ACEOF
17683 cat confdefs.h >>conftest.$ac_ext
17684 cat >>conftest.$ac_ext <<_ACEOF
17685 /* end confdefs.h. */
17686 $ac_includes_default
17687 #include <$ac_header>
17688 _ACEOF
17689 rm -f conftest.$ac_objext
17690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17691 (eval $ac_compile) 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); } &&
17695 { ac_try='test -s conftest.$ac_objext'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17698 ac_status=$?
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; }; then
17701 ac_header_compiler=yes
17702 else
17703 echo "$as_me: failed program was:" >&5
17704 sed 's/^/| /' conftest.$ac_ext >&5
17705
17706 ac_header_compiler=no
17707 fi
17708 rm -f conftest.$ac_objext conftest.$ac_ext
17709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17710 echo "${ECHO_T}$ac_header_compiler" >&6
17711
17712 # Is the header present?
17713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17715 cat >conftest.$ac_ext <<_ACEOF
17716 #line $LINENO "configure"
17717 /* confdefs.h. */
17718 _ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h. */
17722 #include <$ac_header>
17723 _ACEOF
17724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17726 ac_status=$?
17727 grep -v '^ *+' conftest.er1 >conftest.err
17728 rm -f conftest.er1
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } >/dev/null; then
17732 if test -s conftest.err; then
17733 ac_cpp_err=$ac_c_preproc_warn_flag
17734 else
17735 ac_cpp_err=
17736 fi
17737 else
17738 ac_cpp_err=yes
17739 fi
17740 if test -z "$ac_cpp_err"; then
17741 ac_header_preproc=yes
17742 else
17743 echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17745
17746 ac_header_preproc=no
17747 fi
17748 rm -f conftest.err conftest.$ac_ext
17749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17750 echo "${ECHO_T}$ac_header_preproc" >&6
17751
17752 # So? What about this header?
17753 case $ac_header_compiler:$ac_header_preproc in
17754 yes:no )
17755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17759 (
17760 cat <<\_ASBOX
17761 ## ------------------------------------ ##
17762 ## Report this to bug-autoconf@gnu.org. ##
17763 ## ------------------------------------ ##
17764 _ASBOX
17765 ) |
17766 sed "s/^/$as_me: WARNING: /" >&2
17767 ;;
17768 no:yes )
17769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17775 (
17776 cat <<\_ASBOX
17777 ## ------------------------------------ ##
17778 ## Report this to bug-autoconf@gnu.org. ##
17779 ## ------------------------------------ ##
17780 _ASBOX
17781 ) |
17782 sed "s/^/$as_me: WARNING: /" >&2
17783 ;;
17784 esac
17785 echo "$as_me:$LINENO: checking for $ac_header" >&5
17786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17789 else
17790 eval "$as_ac_Header=$ac_header_preproc"
17791 fi
17792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17794
17795 fi
17796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17797 cat >>confdefs.h <<_ACEOF
17798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17799 _ACEOF
17800
17801 else
17802
17803 for ac_header in kerberos/krb.h
17804 do
17805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17807 echo "$as_me:$LINENO: checking for $ac_header" >&5
17808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17811 fi
17812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17814 else
17815 # Is the header compilable?
17816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17818 cat >conftest.$ac_ext <<_ACEOF
17819 #line $LINENO "configure"
17820 /* confdefs.h. */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17825 $ac_includes_default
17826 #include <$ac_header>
17827 _ACEOF
17828 rm -f conftest.$ac_objext
17829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17830 (eval $ac_compile) 2>&5
17831 ac_status=$?
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } &&
17834 { ac_try='test -s conftest.$ac_objext'
17835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836 (eval $ac_try) 2>&5
17837 ac_status=$?
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; }; then
17840 ac_header_compiler=yes
17841 else
17842 echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17844
17845 ac_header_compiler=no
17846 fi
17847 rm -f conftest.$ac_objext conftest.$ac_ext
17848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17849 echo "${ECHO_T}$ac_header_compiler" >&6
17850
17851 # Is the header present?
17852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17854 cat >conftest.$ac_ext <<_ACEOF
17855 #line $LINENO "configure"
17856 /* confdefs.h. */
17857 _ACEOF
17858 cat confdefs.h >>conftest.$ac_ext
17859 cat >>conftest.$ac_ext <<_ACEOF
17860 /* end confdefs.h. */
17861 #include <$ac_header>
17862 _ACEOF
17863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17865 ac_status=$?
17866 grep -v '^ *+' conftest.er1 >conftest.err
17867 rm -f conftest.er1
17868 cat conftest.err >&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } >/dev/null; then
17871 if test -s conftest.err; then
17872 ac_cpp_err=$ac_c_preproc_warn_flag
17873 else
17874 ac_cpp_err=
17875 fi
17876 else
17877 ac_cpp_err=yes
17878 fi
17879 if test -z "$ac_cpp_err"; then
17880 ac_header_preproc=yes
17881 else
17882 echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17884
17885 ac_header_preproc=no
17886 fi
17887 rm -f conftest.err conftest.$ac_ext
17888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17889 echo "${ECHO_T}$ac_header_preproc" >&6
17890
17891 # So? What about this header?
17892 case $ac_header_compiler:$ac_header_preproc in
17893 yes:no )
17894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17898 (
17899 cat <<\_ASBOX
17900 ## ------------------------------------ ##
17901 ## Report this to bug-autoconf@gnu.org. ##
17902 ## ------------------------------------ ##
17903 _ASBOX
17904 ) |
17905 sed "s/^/$as_me: WARNING: /" >&2
17906 ;;
17907 no:yes )
17908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17914 (
17915 cat <<\_ASBOX
17916 ## ------------------------------------ ##
17917 ## Report this to bug-autoconf@gnu.org. ##
17918 ## ------------------------------------ ##
17919 _ASBOX
17920 ) |
17921 sed "s/^/$as_me: WARNING: /" >&2
17922 ;;
17923 esac
17924 echo "$as_me:$LINENO: checking for $ac_header" >&5
17925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17927 echo $ECHO_N "(cached) $ECHO_C" >&6
17928 else
17929 eval "$as_ac_Header=$ac_header_preproc"
17930 fi
17931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17933
17934 fi
17935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17936 cat >>confdefs.h <<_ACEOF
17937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17938 _ACEOF
17939
17940 fi
17941
17942 done
17943
17944 fi
17945
17946 done
17947
17948 fi
17949
17950 done
17951
17952 fi
17953
17954 for ac_header in com_err.h
17955 do
17956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17958 echo "$as_me:$LINENO: checking for $ac_header" >&5
17959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17961 echo $ECHO_N "(cached) $ECHO_C" >&6
17962 fi
17963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17965 else
17966 # Is the header compilable?
17967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17969 cat >conftest.$ac_ext <<_ACEOF
17970 #line $LINENO "configure"
17971 /* confdefs.h. */
17972 _ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17976 $ac_includes_default
17977 #include <$ac_header>
17978 _ACEOF
17979 rm -f conftest.$ac_objext
17980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17981 (eval $ac_compile) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } &&
17985 { ac_try='test -s conftest.$ac_objext'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17988 ac_status=$?
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; }; then
17991 ac_header_compiler=yes
17992 else
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17995
17996 ac_header_compiler=no
17997 fi
17998 rm -f conftest.$ac_objext conftest.$ac_ext
17999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18000 echo "${ECHO_T}$ac_header_compiler" >&6
18001
18002 # Is the header present?
18003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18005 cat >conftest.$ac_ext <<_ACEOF
18006 #line $LINENO "configure"
18007 /* confdefs.h. */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 #include <$ac_header>
18013 _ACEOF
18014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18016 ac_status=$?
18017 grep -v '^ *+' conftest.er1 >conftest.err
18018 rm -f conftest.er1
18019 cat conftest.err >&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } >/dev/null; then
18022 if test -s conftest.err; then
18023 ac_cpp_err=$ac_c_preproc_warn_flag
18024 else
18025 ac_cpp_err=
18026 fi
18027 else
18028 ac_cpp_err=yes
18029 fi
18030 if test -z "$ac_cpp_err"; then
18031 ac_header_preproc=yes
18032 else
18033 echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.$ac_ext >&5
18035
18036 ac_header_preproc=no
18037 fi
18038 rm -f conftest.err conftest.$ac_ext
18039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18040 echo "${ECHO_T}$ac_header_preproc" >&6
18041
18042 # So? What about this header?
18043 case $ac_header_compiler:$ac_header_preproc in
18044 yes:no )
18045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18049 (
18050 cat <<\_ASBOX
18051 ## ------------------------------------ ##
18052 ## Report this to bug-autoconf@gnu.org. ##
18053 ## ------------------------------------ ##
18054 _ASBOX
18055 ) |
18056 sed "s/^/$as_me: WARNING: /" >&2
18057 ;;
18058 no:yes )
18059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18065 (
18066 cat <<\_ASBOX
18067 ## ------------------------------------ ##
18068 ## Report this to bug-autoconf@gnu.org. ##
18069 ## ------------------------------------ ##
18070 _ASBOX
18071 ) |
18072 sed "s/^/$as_me: WARNING: /" >&2
18073 ;;
18074 esac
18075 echo "$as_me:$LINENO: checking for $ac_header" >&5
18076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18079 else
18080 eval "$as_ac_Header=$ac_header_preproc"
18081 fi
18082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18084
18085 fi
18086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18087 cat >>confdefs.h <<_ACEOF
18088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18089 _ACEOF
18090
18091 fi
18092
18093 done
18094
18095 fi
18096
18097 # Solaris requires -lintl if you want strerror (which calls dgettext)
18098 # to return localized messages.
18099
18100 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
18101 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
18102 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
18104 else
18105 ac_check_lib_save_LIBS=$LIBS
18106 LIBS="-lintl $LIBS"
18107 cat >conftest.$ac_ext <<_ACEOF
18108 #line $LINENO "configure"
18109 /* confdefs.h. */
18110 _ACEOF
18111 cat confdefs.h >>conftest.$ac_ext
18112 cat >>conftest.$ac_ext <<_ACEOF
18113 /* end confdefs.h. */
18114
18115 /* Override any gcc2 internal prototype to avoid an error. */
18116 #ifdef __cplusplus
18117 extern "C"
18118 #endif
18119 /* We use char because int might match the return type of a gcc2
18120 builtin and then its argument prototype would still apply. */
18121 char dgettext ();
18122 int
18123 main ()
18124 {
18125 dgettext ();
18126 ;
18127 return 0;
18128 }
18129 _ACEOF
18130 rm -f conftest.$ac_objext conftest$ac_exeext
18131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18132 (eval $ac_link) 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } &&
18136 { ac_try='test -s conftest$ac_exeext'
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18139 ac_status=$?
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; }; then
18142 ac_cv_lib_intl_dgettext=yes
18143 else
18144 echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18146
18147 ac_cv_lib_intl_dgettext=no
18148 fi
18149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18150 LIBS=$ac_check_lib_save_LIBS
18151 fi
18152 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
18153 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
18154 if test $ac_cv_lib_intl_dgettext = yes; then
18155 cat >>confdefs.h <<_ACEOF
18156 #define HAVE_LIBINTL 1
18157 _ACEOF
18158
18159 LIBS="-lintl $LIBS"
18160
18161 fi
18162
18163
18164 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
18165 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
18166 if test "${emacs_cv_localtime_cache+set}" = set; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18168 else
18169 if test x$ac_cv_func_tzset = xyes; then
18170 if test "$cross_compiling" = yes; then
18171 # If we have tzset, assume the worst when cross-compiling.
18172 emacs_cv_localtime_cache=yes
18173 else
18174 cat >conftest.$ac_ext <<_ACEOF
18175 #line $LINENO "configure"
18176 /* confdefs.h. */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18181 #include <time.h>
18182 extern char **environ;
18183 unset_TZ ()
18184 {
18185 char **from, **to;
18186 for (to = from = environ; (*to = *from); from++)
18187 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
18188 to++;
18189 }
18190 char TZ_GMT0[] = "TZ=GMT0";
18191 char TZ_PST8[] = "TZ=PST8";
18192 main()
18193 {
18194 time_t now = time ((time_t *) 0);
18195 int hour_GMT0, hour_unset;
18196 if (putenv (TZ_GMT0) != 0)
18197 exit (1);
18198 hour_GMT0 = localtime (&now)->tm_hour;
18199 unset_TZ ();
18200 hour_unset = localtime (&now)->tm_hour;
18201 if (putenv (TZ_PST8) != 0)
18202 exit (1);
18203 if (localtime (&now)->tm_hour == hour_GMT0)
18204 exit (1);
18205 unset_TZ ();
18206 if (localtime (&now)->tm_hour != hour_unset)
18207 exit (1);
18208 exit (0);
18209 }
18210 _ACEOF
18211 rm -f conftest$ac_exeext
18212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18213 (eval $ac_link) 2>&5
18214 ac_status=$?
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18219 ac_status=$?
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; }; then
18222 emacs_cv_localtime_cache=no
18223 else
18224 echo "$as_me: program exited with status $ac_status" >&5
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18227
18228 ( exit $ac_status )
18229 emacs_cv_localtime_cache=yes
18230 fi
18231 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18232 fi
18233 else
18234 # If we lack tzset, report that localtime does not cache TZ,
18235 # since we can't invalidate the cache if we don't have tzset.
18236 emacs_cv_localtime_cache=no
18237 fi
18238 fi
18239 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
18240 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
18241 if test $emacs_cv_localtime_cache = yes; then
18242
18243 cat >>confdefs.h <<\_ACEOF
18244 #define LOCALTIME_CACHE 1
18245 _ACEOF
18246
18247 fi
18248
18249 if test "x$HAVE_TIMEVAL" = xyes; then
18250
18251 for ac_func in gettimeofday
18252 do
18253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18254 echo "$as_me:$LINENO: checking for $ac_func" >&5
18255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18256 if eval "test \"\${$as_ac_var+set}\" = set"; then
18257 echo $ECHO_N "(cached) $ECHO_C" >&6
18258 else
18259 cat >conftest.$ac_ext <<_ACEOF
18260 #line $LINENO "configure"
18261 /* confdefs.h. */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18266 /* System header to define __stub macros and hopefully few prototypes,
18267 which can conflict with char $ac_func (); below.
18268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18269 <limits.h> exists even on freestanding compilers. */
18270 #ifdef __STDC__
18271 # include <limits.h>
18272 #else
18273 # include <assert.h>
18274 #endif
18275 /* Override any gcc2 internal prototype to avoid an error. */
18276 #ifdef __cplusplus
18277 extern "C"
18278 {
18279 #endif
18280 /* We use char because int might match the return type of a gcc2
18281 builtin and then its argument prototype would still apply. */
18282 char $ac_func ();
18283 /* The GNU C library defines this for functions which it implements
18284 to always fail with ENOSYS. Some functions are actually named
18285 something starting with __ and the normal name is an alias. */
18286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18287 choke me
18288 #else
18289 char (*f) () = $ac_func;
18290 #endif
18291 #ifdef __cplusplus
18292 }
18293 #endif
18294
18295 int
18296 main ()
18297 {
18298 return f != $ac_func;
18299 ;
18300 return 0;
18301 }
18302 _ACEOF
18303 rm -f conftest.$ac_objext conftest$ac_exeext
18304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18305 (eval $ac_link) 2>&5
18306 ac_status=$?
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } &&
18309 { ac_try='test -s conftest$ac_exeext'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; }; then
18315 eval "$as_ac_var=yes"
18316 else
18317 echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18319
18320 eval "$as_ac_var=no"
18321 fi
18322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18323 fi
18324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18326 if test `eval echo '${'$as_ac_var'}'` = yes; then
18327 cat >>confdefs.h <<_ACEOF
18328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18329 _ACEOF
18330
18331 fi
18332 done
18333
18334 if test $ac_cv_func_gettimeofday = yes; then
18335 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
18336 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
18337 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18339 else
18340 cat >conftest.$ac_ext <<_ACEOF
18341 #line $LINENO "configure"
18342 /* confdefs.h. */
18343 _ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h. */
18347
18348 #ifdef TIME_WITH_SYS_TIME
18349 #include <sys/time.h>
18350 #include <time.h>
18351 #else
18352 #ifdef HAVE_SYS_TIME_H
18353 #include <sys/time.h>
18354 #else
18355 #include <time.h>
18356 #endif
18357 #endif
18358 int
18359 main ()
18360 {
18361 struct timeval time;
18362 gettimeofday (&time, 0);
18363 ;
18364 return 0;
18365 }
18366 _ACEOF
18367 rm -f conftest.$ac_objext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18369 (eval $ac_compile) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); } &&
18373 { ac_try='test -s conftest.$ac_objext'
18374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18376 ac_status=$?
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; }; then
18379 emacs_cv_gettimeofday_two_arguments=yes
18380 else
18381 echo "$as_me: failed program was:" >&5
18382 sed 's/^/| /' conftest.$ac_ext >&5
18383
18384 emacs_cv_gettimeofday_two_arguments=no
18385 fi
18386 rm -f conftest.$ac_objext conftest.$ac_ext
18387 fi
18388 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
18389 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
18390 if test $emacs_cv_gettimeofday_two_arguments = no; then
18391
18392 cat >>confdefs.h <<\_ACEOF
18393 #define GETTIMEOFDAY_ONE_ARGUMENT 1
18394 _ACEOF
18395
18396 fi
18397 fi
18398 fi
18399
18400 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
18401 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18402 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
18403 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18404 echo $ECHO_N "(cached) $ECHO_C" >&6
18405 else
18406 cat >conftest.$ac_ext <<_ACEOF
18407 #line $LINENO "configure"
18408 /* confdefs.h. */
18409 _ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18413 #include <sys/types.h>
18414 #include <$ac_cv_struct_tm>
18415
18416
18417 int
18418 main ()
18419 {
18420 static struct tm ac_aggr;
18421 if (ac_aggr.tm_zone)
18422 return 0;
18423 ;
18424 return 0;
18425 }
18426 _ACEOF
18427 rm -f conftest.$ac_objext
18428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18429 (eval $ac_compile) 2>&5
18430 ac_status=$?
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } &&
18433 { ac_try='test -s conftest.$ac_objext'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18436 ac_status=$?
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; }; then
18439 ac_cv_member_struct_tm_tm_zone=yes
18440 else
18441 echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18443
18444 cat >conftest.$ac_ext <<_ACEOF
18445 #line $LINENO "configure"
18446 /* confdefs.h. */
18447 _ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h. */
18451 #include <sys/types.h>
18452 #include <$ac_cv_struct_tm>
18453
18454
18455 int
18456 main ()
18457 {
18458 static struct tm ac_aggr;
18459 if (sizeof ac_aggr.tm_zone)
18460 return 0;
18461 ;
18462 return 0;
18463 }
18464 _ACEOF
18465 rm -f conftest.$ac_objext
18466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18467 (eval $ac_compile) 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } &&
18471 { ac_try='test -s conftest.$ac_objext'
18472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473 (eval $ac_try) 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; }; then
18477 ac_cv_member_struct_tm_tm_zone=yes
18478 else
18479 echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18481
18482 ac_cv_member_struct_tm_tm_zone=no
18483 fi
18484 rm -f conftest.$ac_objext conftest.$ac_ext
18485 fi
18486 rm -f conftest.$ac_objext conftest.$ac_ext
18487 fi
18488 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18489 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
18490 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18491
18492 cat >>confdefs.h <<_ACEOF
18493 #define HAVE_STRUCT_TM_TM_ZONE 1
18494 _ACEOF
18495
18496
18497 fi
18498
18499 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18500
18501 cat >>confdefs.h <<\_ACEOF
18502 #define HAVE_TM_ZONE 1
18503 _ACEOF
18504
18505 else
18506 echo "$as_me:$LINENO: checking for tzname" >&5
18507 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
18508 if test "${ac_cv_var_tzname+set}" = set; then
18509 echo $ECHO_N "(cached) $ECHO_C" >&6
18510 else
18511 cat >conftest.$ac_ext <<_ACEOF
18512 #line $LINENO "configure"
18513 /* confdefs.h. */
18514 _ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h. */
18518 #include <time.h>
18519 #ifndef tzname /* For SGI. */
18520 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
18521 #endif
18522
18523 int
18524 main ()
18525 {
18526 atoi(*tzname);
18527 ;
18528 return 0;
18529 }
18530 _ACEOF
18531 rm -f conftest.$ac_objext conftest$ac_exeext
18532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18533 (eval $ac_link) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
18537 { ac_try='test -s conftest$ac_exeext'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 ac_cv_var_tzname=yes
18544 else
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18547
18548 ac_cv_var_tzname=no
18549 fi
18550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18551 fi
18552 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18553 echo "${ECHO_T}$ac_cv_var_tzname" >&6
18554 if test $ac_cv_var_tzname = yes; then
18555
18556 cat >>confdefs.h <<\_ACEOF
18557 #define HAVE_TZNAME 1
18558 _ACEOF
18559
18560 fi
18561 fi
18562
18563
18564 if test "$ac_cv_func_gettimeofday" = yes; then
18565 echo "$as_me:$LINENO: checking for struct timezone" >&5
18566 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
18567 if test "${emacs_cv_struct_timezone+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18569 else
18570 cat >conftest.$ac_ext <<_ACEOF
18571 #line $LINENO "configure"
18572 /* confdefs.h. */
18573 _ACEOF
18574 cat confdefs.h >>conftest.$ac_ext
18575 cat >>conftest.$ac_ext <<_ACEOF
18576 /* end confdefs.h. */
18577 #include <sys/time.h>
18578 int
18579 main ()
18580 {
18581 struct timezone tz;
18582 ;
18583 return 0;
18584 }
18585 _ACEOF
18586 rm -f conftest.$ac_objext
18587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18588 (eval $ac_compile) 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } &&
18592 { ac_try='test -s conftest.$ac_objext'
18593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594 (eval $ac_try) 2>&5
18595 ac_status=$?
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); }; }; then
18598 if test "$cross_compiling" = yes; then
18599 emacs_cv_struct_timezone=yes
18600 else
18601 cat >conftest.$ac_ext <<_ACEOF
18602 #line $LINENO "configure"
18603 /* confdefs.h. */
18604 _ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h. */
18608
18609 #ifdef TIME_WITH_SYS_TIME
18610 #include <sys/time.h>
18611 #include <time.h>
18612 #else
18613 #ifdef HAVE_SYS_TIME_H
18614 #include <sys/time.h>
18615 #else
18616 #include <time.h>
18617 #endif
18618 #endif
18619 main () {
18620 struct timeval time;
18621 struct timezone dummy;
18622 exit (gettimeofday (&time, &dummy));
18623 }
18624 _ACEOF
18625 rm -f conftest$ac_exeext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18627 (eval $ac_link) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; }; then
18636 emacs_cv_struct_timezone=yes
18637 else
18638 echo "$as_me: program exited with status $ac_status" >&5
18639 echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18641
18642 ( exit $ac_status )
18643 emacs_cv_struct_timezone=no
18644 fi
18645 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18646 fi
18647 else
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18650
18651 emacs_cv_struct_timezone=no
18652 fi
18653 rm -f conftest.$ac_objext conftest.$ac_ext
18654 fi
18655 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
18656 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
18657 fi
18658
18659 ok_so_far=yes
18660 echo "$as_me:$LINENO: checking for socket" >&5
18661 echo $ECHO_N "checking for socket... $ECHO_C" >&6
18662 if test "${ac_cv_func_socket+set}" = set; then
18663 echo $ECHO_N "(cached) $ECHO_C" >&6
18664 else
18665 cat >conftest.$ac_ext <<_ACEOF
18666 #line $LINENO "configure"
18667 /* confdefs.h. */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672 /* System header to define __stub macros and hopefully few prototypes,
18673 which can conflict with char socket (); below.
18674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18675 <limits.h> exists even on freestanding compilers. */
18676 #ifdef __STDC__
18677 # include <limits.h>
18678 #else
18679 # include <assert.h>
18680 #endif
18681 /* Override any gcc2 internal prototype to avoid an error. */
18682 #ifdef __cplusplus
18683 extern "C"
18684 {
18685 #endif
18686 /* We use char because int might match the return type of a gcc2
18687 builtin and then its argument prototype would still apply. */
18688 char socket ();
18689 /* The GNU C library defines this for functions which it implements
18690 to always fail with ENOSYS. Some functions are actually named
18691 something starting with __ and the normal name is an alias. */
18692 #if defined (__stub_socket) || defined (__stub___socket)
18693 choke me
18694 #else
18695 char (*f) () = socket;
18696 #endif
18697 #ifdef __cplusplus
18698 }
18699 #endif
18700
18701 int
18702 main ()
18703 {
18704 return f != socket;
18705 ;
18706 return 0;
18707 }
18708 _ACEOF
18709 rm -f conftest.$ac_objext conftest$ac_exeext
18710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18711 (eval $ac_link) 2>&5
18712 ac_status=$?
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -s conftest$ac_exeext'
18716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18718 ac_status=$?
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; }; then
18721 ac_cv_func_socket=yes
18722 else
18723 echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18725
18726 ac_cv_func_socket=no
18727 fi
18728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18729 fi
18730 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18731 echo "${ECHO_T}$ac_cv_func_socket" >&6
18732 if test $ac_cv_func_socket = yes; then
18733 :
18734 else
18735 ok_so_far=no
18736 fi
18737
18738 if test $ok_so_far = yes; then
18739 if test "${ac_cv_header_netinet_in_h+set}" = set; then
18740 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
18741 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
18742 if test "${ac_cv_header_netinet_in_h+set}" = set; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 fi
18745 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
18746 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
18747 else
18748 # Is the header compilable?
18749 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
18750 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
18751 cat >conftest.$ac_ext <<_ACEOF
18752 #line $LINENO "configure"
18753 /* confdefs.h. */
18754 _ACEOF
18755 cat confdefs.h >>conftest.$ac_ext
18756 cat >>conftest.$ac_ext <<_ACEOF
18757 /* end confdefs.h. */
18758 $ac_includes_default
18759 #include <netinet/in.h>
18760 _ACEOF
18761 rm -f conftest.$ac_objext
18762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18763 (eval $ac_compile) 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } &&
18767 { ac_try='test -s conftest.$ac_objext'
18768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18770 ac_status=$?
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; }; then
18773 ac_header_compiler=yes
18774 else
18775 echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18777
18778 ac_header_compiler=no
18779 fi
18780 rm -f conftest.$ac_objext conftest.$ac_ext
18781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18782 echo "${ECHO_T}$ac_header_compiler" >&6
18783
18784 # Is the header present?
18785 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
18786 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
18787 cat >conftest.$ac_ext <<_ACEOF
18788 #line $LINENO "configure"
18789 /* confdefs.h. */
18790 _ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18794 #include <netinet/in.h>
18795 _ACEOF
18796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18798 ac_status=$?
18799 grep -v '^ *+' conftest.er1 >conftest.err
18800 rm -f conftest.er1
18801 cat conftest.err >&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); } >/dev/null; then
18804 if test -s conftest.err; then
18805 ac_cpp_err=$ac_c_preproc_warn_flag
18806 else
18807 ac_cpp_err=
18808 fi
18809 else
18810 ac_cpp_err=yes
18811 fi
18812 if test -z "$ac_cpp_err"; then
18813 ac_header_preproc=yes
18814 else
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18817
18818 ac_header_preproc=no
18819 fi
18820 rm -f conftest.err conftest.$ac_ext
18821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18822 echo "${ECHO_T}$ac_header_preproc" >&6
18823
18824 # So? What about this header?
18825 case $ac_header_compiler:$ac_header_preproc in
18826 yes:no )
18827 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
18828 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18829 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
18830 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
18831 (
18832 cat <<\_ASBOX
18833 ## ------------------------------------ ##
18834 ## Report this to bug-autoconf@gnu.org. ##
18835 ## ------------------------------------ ##
18836 _ASBOX
18837 ) |
18838 sed "s/^/$as_me: WARNING: /" >&2
18839 ;;
18840 no:yes )
18841 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
18842 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
18843 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
18844 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
18845 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
18846 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
18847 (
18848 cat <<\_ASBOX
18849 ## ------------------------------------ ##
18850 ## Report this to bug-autoconf@gnu.org. ##
18851 ## ------------------------------------ ##
18852 _ASBOX
18853 ) |
18854 sed "s/^/$as_me: WARNING: /" >&2
18855 ;;
18856 esac
18857 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
18858 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
18859 if test "${ac_cv_header_netinet_in_h+set}" = set; then
18860 echo $ECHO_N "(cached) $ECHO_C" >&6
18861 else
18862 ac_cv_header_netinet_in_h=$ac_header_preproc
18863 fi
18864 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
18865 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
18866
18867 fi
18868 if test $ac_cv_header_netinet_in_h = yes; then
18869 :
18870 else
18871 ok_so_far=no
18872 fi
18873
18874
18875 fi
18876 if test $ok_so_far = yes; then
18877 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
18878 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
18879 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
18880 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18882 fi
18883 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
18884 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
18885 else
18886 # Is the header compilable?
18887 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
18888 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
18889 cat >conftest.$ac_ext <<_ACEOF
18890 #line $LINENO "configure"
18891 /* confdefs.h. */
18892 _ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18896 $ac_includes_default
18897 #include <arpa/inet.h>
18898 _ACEOF
18899 rm -f conftest.$ac_objext
18900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18901 (eval $ac_compile) 2>&5
18902 ac_status=$?
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } &&
18905 { ac_try='test -s conftest.$ac_objext'
18906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907 (eval $ac_try) 2>&5
18908 ac_status=$?
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; }; then
18911 ac_header_compiler=yes
18912 else
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18915
18916 ac_header_compiler=no
18917 fi
18918 rm -f conftest.$ac_objext conftest.$ac_ext
18919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18920 echo "${ECHO_T}$ac_header_compiler" >&6
18921
18922 # Is the header present?
18923 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
18924 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
18925 cat >conftest.$ac_ext <<_ACEOF
18926 #line $LINENO "configure"
18927 /* confdefs.h. */
18928 _ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18932 #include <arpa/inet.h>
18933 _ACEOF
18934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18936 ac_status=$?
18937 grep -v '^ *+' conftest.er1 >conftest.err
18938 rm -f conftest.er1
18939 cat conftest.err >&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } >/dev/null; then
18942 if test -s conftest.err; then
18943 ac_cpp_err=$ac_c_preproc_warn_flag
18944 else
18945 ac_cpp_err=
18946 fi
18947 else
18948 ac_cpp_err=yes
18949 fi
18950 if test -z "$ac_cpp_err"; then
18951 ac_header_preproc=yes
18952 else
18953 echo "$as_me: failed program was:" >&5
18954 sed 's/^/| /' conftest.$ac_ext >&5
18955
18956 ac_header_preproc=no
18957 fi
18958 rm -f conftest.err conftest.$ac_ext
18959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18960 echo "${ECHO_T}$ac_header_preproc" >&6
18961
18962 # So? What about this header?
18963 case $ac_header_compiler:$ac_header_preproc in
18964 yes:no )
18965 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
18966 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18967 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
18968 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
18969 (
18970 cat <<\_ASBOX
18971 ## ------------------------------------ ##
18972 ## Report this to bug-autoconf@gnu.org. ##
18973 ## ------------------------------------ ##
18974 _ASBOX
18975 ) |
18976 sed "s/^/$as_me: WARNING: /" >&2
18977 ;;
18978 no:yes )
18979 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
18980 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
18981 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
18982 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
18983 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
18984 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
18985 (
18986 cat <<\_ASBOX
18987 ## ------------------------------------ ##
18988 ## Report this to bug-autoconf@gnu.org. ##
18989 ## ------------------------------------ ##
18990 _ASBOX
18991 ) |
18992 sed "s/^/$as_me: WARNING: /" >&2
18993 ;;
18994 esac
18995 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
18996 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
18997 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
18999 else
19000 ac_cv_header_arpa_inet_h=$ac_header_preproc
19001 fi
19002 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19003 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19004
19005 fi
19006 if test $ac_cv_header_arpa_inet_h = yes; then
19007 :
19008 else
19009 ok_so_far=no
19010 fi
19011
19012
19013 fi
19014 if test $ok_so_far = yes; then
19015
19016 cat >>confdefs.h <<\_ACEOF
19017 #define HAVE_INET_SOCKETS 1
19018 _ACEOF
19019
19020 fi
19021
19022
19023 for ac_header in sys/ioctl.h
19024 do
19025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19027 echo "$as_me:$LINENO: checking for $ac_header" >&5
19028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19030 echo $ECHO_N "(cached) $ECHO_C" >&6
19031 fi
19032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19034 else
19035 # Is the header compilable?
19036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19038 cat >conftest.$ac_ext <<_ACEOF
19039 #line $LINENO "configure"
19040 /* confdefs.h. */
19041 _ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19045 $ac_includes_default
19046 #include <$ac_header>
19047 _ACEOF
19048 rm -f conftest.$ac_objext
19049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19050 (eval $ac_compile) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
19054 { ac_try='test -s conftest.$ac_objext'
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
19060 ac_header_compiler=yes
19061 else
19062 echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19064
19065 ac_header_compiler=no
19066 fi
19067 rm -f conftest.$ac_objext conftest.$ac_ext
19068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19069 echo "${ECHO_T}$ac_header_compiler" >&6
19070
19071 # Is the header present?
19072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19074 cat >conftest.$ac_ext <<_ACEOF
19075 #line $LINENO "configure"
19076 /* confdefs.h. */
19077 _ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h. */
19081 #include <$ac_header>
19082 _ACEOF
19083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19085 ac_status=$?
19086 grep -v '^ *+' conftest.er1 >conftest.err
19087 rm -f conftest.er1
19088 cat conftest.err >&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } >/dev/null; then
19091 if test -s conftest.err; then
19092 ac_cpp_err=$ac_c_preproc_warn_flag
19093 else
19094 ac_cpp_err=
19095 fi
19096 else
19097 ac_cpp_err=yes
19098 fi
19099 if test -z "$ac_cpp_err"; then
19100 ac_header_preproc=yes
19101 else
19102 echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19104
19105 ac_header_preproc=no
19106 fi
19107 rm -f conftest.err conftest.$ac_ext
19108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19109 echo "${ECHO_T}$ac_header_preproc" >&6
19110
19111 # So? What about this header?
19112 case $ac_header_compiler:$ac_header_preproc in
19113 yes:no )
19114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19118 (
19119 cat <<\_ASBOX
19120 ## ------------------------------------ ##
19121 ## Report this to bug-autoconf@gnu.org. ##
19122 ## ------------------------------------ ##
19123 _ASBOX
19124 ) |
19125 sed "s/^/$as_me: WARNING: /" >&2
19126 ;;
19127 no:yes )
19128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19134 (
19135 cat <<\_ASBOX
19136 ## ------------------------------------ ##
19137 ## Report this to bug-autoconf@gnu.org. ##
19138 ## ------------------------------------ ##
19139 _ASBOX
19140 ) |
19141 sed "s/^/$as_me: WARNING: /" >&2
19142 ;;
19143 esac
19144 echo "$as_me:$LINENO: checking for $ac_header" >&5
19145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19147 echo $ECHO_N "(cached) $ECHO_C" >&6
19148 else
19149 eval "$as_ac_Header=$ac_header_preproc"
19150 fi
19151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19153
19154 fi
19155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19156 cat >>confdefs.h <<_ACEOF
19157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19158 _ACEOF
19159
19160 fi
19161
19162 done
19163
19164
19165 if test -f /usr/lpp/X11/bin/smt.exp; then
19166
19167 cat >>confdefs.h <<\_ACEOF
19168 #define HAVE_AIX_SMT_EXP 1
19169 _ACEOF
19170
19171 fi
19172
19173 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
19174 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
19175 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
19176 echo "$as_me:$LINENO: result: yes" >&5
19177 echo "${ECHO_T}yes" >&6
19178
19179 cat >>confdefs.h <<\_ACEOF
19180 #define HAVE_DEV_PTMX 1
19181 _ACEOF
19182
19183 else
19184 echo "$as_me:$LINENO: result: no" >&5
19185 echo "${ECHO_T}no" >&6
19186 fi
19187
19188 echo "$as_me:$LINENO: checking for pid_t" >&5
19189 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19190 if test "${ac_cv_type_pid_t+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19192 else
19193 cat >conftest.$ac_ext <<_ACEOF
19194 #line $LINENO "configure"
19195 /* confdefs.h. */
19196 _ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h. */
19200 $ac_includes_default
19201 int
19202 main ()
19203 {
19204 if ((pid_t *) 0)
19205 return 0;
19206 if (sizeof (pid_t))
19207 return 0;
19208 ;
19209 return 0;
19210 }
19211 _ACEOF
19212 rm -f conftest.$ac_objext
19213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19214 (eval $ac_compile) 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try='test -s conftest.$ac_objext'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224 ac_cv_type_pid_t=yes
19225 else
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19228
19229 ac_cv_type_pid_t=no
19230 fi
19231 rm -f conftest.$ac_objext conftest.$ac_ext
19232 fi
19233 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19234 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19235 if test $ac_cv_type_pid_t = yes; then
19236 :
19237 else
19238
19239 cat >>confdefs.h <<_ACEOF
19240 #define pid_t int
19241 _ACEOF
19242
19243 fi
19244
19245
19246
19247 for ac_header in unistd.h vfork.h
19248 do
19249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19251 echo "$as_me:$LINENO: checking for $ac_header" >&5
19252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19254 echo $ECHO_N "(cached) $ECHO_C" >&6
19255 fi
19256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19258 else
19259 # Is the header compilable?
19260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19262 cat >conftest.$ac_ext <<_ACEOF
19263 #line $LINENO "configure"
19264 /* confdefs.h. */
19265 _ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19269 $ac_includes_default
19270 #include <$ac_header>
19271 _ACEOF
19272 rm -f conftest.$ac_objext
19273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19274 (eval $ac_compile) 2>&5
19275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try='test -s conftest.$ac_objext'
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; }; then
19284 ac_header_compiler=yes
19285 else
19286 echo "$as_me: failed program was:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19288
19289 ac_header_compiler=no
19290 fi
19291 rm -f conftest.$ac_objext conftest.$ac_ext
19292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19293 echo "${ECHO_T}$ac_header_compiler" >&6
19294
19295 # Is the header present?
19296 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19298 cat >conftest.$ac_ext <<_ACEOF
19299 #line $LINENO "configure"
19300 /* confdefs.h. */
19301 _ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h. */
19305 #include <$ac_header>
19306 _ACEOF
19307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19309 ac_status=$?
19310 grep -v '^ *+' conftest.er1 >conftest.err
19311 rm -f conftest.er1
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } >/dev/null; then
19315 if test -s conftest.err; then
19316 ac_cpp_err=$ac_c_preproc_warn_flag
19317 else
19318 ac_cpp_err=
19319 fi
19320 else
19321 ac_cpp_err=yes
19322 fi
19323 if test -z "$ac_cpp_err"; then
19324 ac_header_preproc=yes
19325 else
19326 echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19328
19329 ac_header_preproc=no
19330 fi
19331 rm -f conftest.err conftest.$ac_ext
19332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19333 echo "${ECHO_T}$ac_header_preproc" >&6
19334
19335 # So? What about this header?
19336 case $ac_header_compiler:$ac_header_preproc in
19337 yes:no )
19338 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19342 (
19343 cat <<\_ASBOX
19344 ## ------------------------------------ ##
19345 ## Report this to bug-autoconf@gnu.org. ##
19346 ## ------------------------------------ ##
19347 _ASBOX
19348 ) |
19349 sed "s/^/$as_me: WARNING: /" >&2
19350 ;;
19351 no:yes )
19352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19358 (
19359 cat <<\_ASBOX
19360 ## ------------------------------------ ##
19361 ## Report this to bug-autoconf@gnu.org. ##
19362 ## ------------------------------------ ##
19363 _ASBOX
19364 ) |
19365 sed "s/^/$as_me: WARNING: /" >&2
19366 ;;
19367 esac
19368 echo "$as_me:$LINENO: checking for $ac_header" >&5
19369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19372 else
19373 eval "$as_ac_Header=$ac_header_preproc"
19374 fi
19375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19377
19378 fi
19379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19380 cat >>confdefs.h <<_ACEOF
19381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19382 _ACEOF
19383
19384 fi
19385
19386 done
19387
19388
19389
19390 for ac_func in fork vfork
19391 do
19392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19393 echo "$as_me:$LINENO: checking for $ac_func" >&5
19394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19395 if eval "test \"\${$as_ac_var+set}\" = set"; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19397 else
19398 cat >conftest.$ac_ext <<_ACEOF
19399 #line $LINENO "configure"
19400 /* confdefs.h. */
19401 _ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19405 /* System header to define __stub macros and hopefully few prototypes,
19406 which can conflict with char $ac_func (); below.
19407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19408 <limits.h> exists even on freestanding compilers. */
19409 #ifdef __STDC__
19410 # include <limits.h>
19411 #else
19412 # include <assert.h>
19413 #endif
19414 /* Override any gcc2 internal prototype to avoid an error. */
19415 #ifdef __cplusplus
19416 extern "C"
19417 {
19418 #endif
19419 /* We use char because int might match the return type of a gcc2
19420 builtin and then its argument prototype would still apply. */
19421 char $ac_func ();
19422 /* The GNU C library defines this for functions which it implements
19423 to always fail with ENOSYS. Some functions are actually named
19424 something starting with __ and the normal name is an alias. */
19425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19426 choke me
19427 #else
19428 char (*f) () = $ac_func;
19429 #endif
19430 #ifdef __cplusplus
19431 }
19432 #endif
19433
19434 int
19435 main ()
19436 {
19437 return f != $ac_func;
19438 ;
19439 return 0;
19440 }
19441 _ACEOF
19442 rm -f conftest.$ac_objext conftest$ac_exeext
19443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19444 (eval $ac_link) 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
19448 { ac_try='test -s conftest$ac_exeext'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; }; then
19454 eval "$as_ac_var=yes"
19455 else
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19458
19459 eval "$as_ac_var=no"
19460 fi
19461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19462 fi
19463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19465 if test `eval echo '${'$as_ac_var'}'` = yes; then
19466 cat >>confdefs.h <<_ACEOF
19467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19468 _ACEOF
19469
19470 fi
19471 done
19472
19473 if test "x$ac_cv_func_fork" = xyes; then
19474 echo "$as_me:$LINENO: checking for working fork" >&5
19475 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
19476 if test "${ac_cv_func_fork_works+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
19478 else
19479 if test "$cross_compiling" = yes; then
19480 ac_cv_func_fork_works=cross
19481 else
19482 cat >conftest.$ac_ext <<_ACEOF
19483 /* By Ruediger Kuhlmann. */
19484 #include <sys/types.h>
19485 #if HAVE_UNISTD_H
19486 # include <unistd.h>
19487 #endif
19488 /* Some systems only have a dummy stub for fork() */
19489 int main ()
19490 {
19491 if (fork() < 0)
19492 exit (1);
19493 exit (0);
19494 }
19495 _ACEOF
19496 rm -f conftest$ac_exeext
19497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19498 (eval $ac_link) 2>&5
19499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19503 (eval $ac_try) 2>&5
19504 ac_status=$?
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; }; then
19507 ac_cv_func_fork_works=yes
19508 else
19509 echo "$as_me: program exited with status $ac_status" >&5
19510 echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19512
19513 ( exit $ac_status )
19514 ac_cv_func_fork_works=no
19515 fi
19516 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19517 fi
19518 fi
19519 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
19520 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
19521
19522 else
19523 ac_cv_func_fork_works=$ac_cv_func_fork
19524 fi
19525 if test "x$ac_cv_func_fork_works" = xcross; then
19526 case $host in
19527 *-*-amigaos* | *-*-msdosdjgpp*)
19528 # Override, as these systems have only a dummy fork() stub
19529 ac_cv_func_fork_works=no
19530 ;;
19531 *)
19532 ac_cv_func_fork_works=yes
19533 ;;
19534 esac
19535 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19536 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19537 fi
19538 ac_cv_func_vfork_works=$ac_cv_func_vfork
19539 if test "x$ac_cv_func_vfork" = xyes; then
19540 echo "$as_me:$LINENO: checking for working vfork" >&5
19541 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
19542 if test "${ac_cv_func_vfork_works+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19544 else
19545 if test "$cross_compiling" = yes; then
19546 ac_cv_func_vfork_works=cross
19547 else
19548 cat >conftest.$ac_ext <<_ACEOF
19549 #line $LINENO "configure"
19550 /* confdefs.h. */
19551 _ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19555 /* Thanks to Paul Eggert for this test. */
19556 #include <stdio.h>
19557 #include <stdlib.h>
19558 #include <sys/types.h>
19559 #include <sys/stat.h>
19560 #include <sys/wait.h>
19561 #if HAVE_UNISTD_H
19562 # include <unistd.h>
19563 #endif
19564 #if HAVE_VFORK_H
19565 # include <vfork.h>
19566 #endif
19567 /* On some sparc systems, changes by the child to local and incoming
19568 argument registers are propagated back to the parent. The compiler
19569 is told about this with #include <vfork.h>, but some compilers
19570 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19571 static variable whose address is put into a register that is
19572 clobbered by the vfork. */
19573 static void
19574 #ifdef __cplusplus
19575 sparc_address_test (int arg)
19576 # else
19577 sparc_address_test (arg) int arg;
19578 #endif
19579 {
19580 static pid_t child;
19581 if (!child) {
19582 child = vfork ();
19583 if (child < 0) {
19584 perror ("vfork");
19585 _exit(2);
19586 }
19587 if (!child) {
19588 arg = getpid();
19589 write(-1, "", 0);
19590 _exit (arg);
19591 }
19592 }
19593 }
19594
19595 int
19596 main ()
19597 {
19598 pid_t parent = getpid ();
19599 pid_t child;
19600
19601 sparc_address_test (0);
19602
19603 child = vfork ();
19604
19605 if (child == 0) {
19606 /* Here is another test for sparc vfork register problems. This
19607 test uses lots of local variables, at least as many local
19608 variables as main has allocated so far including compiler
19609 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19610 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19611 reuse the register of parent for one of the local variables,
19612 since it will think that parent can't possibly be used any more
19613 in this routine. Assigning to the local variable will thus
19614 munge parent in the parent process. */
19615 pid_t
19616 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19617 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19618 /* Convince the compiler that p..p7 are live; otherwise, it might
19619 use the same hardware register for all 8 local variables. */
19620 if (p != p1 || p != p2 || p != p3 || p != p4
19621 || p != p5 || p != p6 || p != p7)
19622 _exit(1);
19623
19624 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19625 from child file descriptors. If the child closes a descriptor
19626 before it execs or exits, this munges the parent's descriptor
19627 as well. Test for this by closing stdout in the child. */
19628 _exit(close(fileno(stdout)) != 0);
19629 } else {
19630 int status;
19631 struct stat st;
19632
19633 while (wait(&status) != child)
19634 ;
19635 exit(
19636 /* Was there some problem with vforking? */
19637 child < 0
19638
19639 /* Did the child fail? (This shouldn't happen.) */
19640 || status
19641
19642 /* Did the vfork/compiler bug occur? */
19643 || parent != getpid()
19644
19645 /* Did the file descriptor bug occur? */
19646 || fstat(fileno(stdout), &st) != 0
19647 );
19648 }
19649 }
19650 _ACEOF
19651 rm -f conftest$ac_exeext
19652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19653 (eval $ac_link) 2>&5
19654 ac_status=$?
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658 (eval $ac_try) 2>&5
19659 ac_status=$?
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; }; then
19662 ac_cv_func_vfork_works=yes
19663 else
19664 echo "$as_me: program exited with status $ac_status" >&5
19665 echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19667
19668 ( exit $ac_status )
19669 ac_cv_func_vfork_works=no
19670 fi
19671 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19672 fi
19673 fi
19674 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
19675 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
19676
19677 fi;
19678 if test "x$ac_cv_func_fork_works" = xcross; then
19679 ac_cv_func_vfork_works=ac_cv_func_vfork
19680 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19681 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19682 fi
19683
19684 if test "x$ac_cv_func_vfork_works" = xyes; then
19685
19686 cat >>confdefs.h <<\_ACEOF
19687 #define HAVE_WORKING_VFORK 1
19688 _ACEOF
19689
19690 else
19691
19692 cat >>confdefs.h <<\_ACEOF
19693 #define vfork fork
19694 _ACEOF
19695
19696 fi
19697 if test "x$ac_cv_func_fork_works" = xyes; then
19698
19699 cat >>confdefs.h <<\_ACEOF
19700 #define HAVE_WORKING_FORK 1
19701 _ACEOF
19702
19703 fi
19704
19705
19706 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
19707 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
19708 if test "${emacs_cv_langinfo_codeset+set}" = set; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19710 else
19711 cat >conftest.$ac_ext <<_ACEOF
19712 #line $LINENO "configure"
19713 /* confdefs.h. */
19714 _ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
19718 #include <langinfo.h>
19719 int
19720 main ()
19721 {
19722 char* cs = nl_langinfo(CODESET);
19723 ;
19724 return 0;
19725 }
19726 _ACEOF
19727 rm -f conftest.$ac_objext conftest$ac_exeext
19728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19729 (eval $ac_link) 2>&5
19730 ac_status=$?
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } &&
19733 { ac_try='test -s conftest$ac_exeext'
19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735 (eval $ac_try) 2>&5
19736 ac_status=$?
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; }; then
19739 emacs_cv_langinfo_codeset=yes
19740 else
19741 echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19743
19744 emacs_cv_langinfo_codeset=no
19745 fi
19746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19747
19748 fi
19749 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
19750 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
19751 if test $emacs_cv_langinfo_codeset = yes; then
19752
19753 cat >>confdefs.h <<\_ACEOF
19754 #define HAVE_LANGINFO_CODESET 1
19755 _ACEOF
19756
19757 fi
19758
19759 echo "$as_me:$LINENO: checking for size_t" >&5
19760 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19761 if test "${ac_cv_type_size_t+set}" = set; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 else
19764 cat >conftest.$ac_ext <<_ACEOF
19765 #line $LINENO "configure"
19766 /* confdefs.h. */
19767 _ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h. */
19771 $ac_includes_default
19772 int
19773 main ()
19774 {
19775 if ((size_t *) 0)
19776 return 0;
19777 if (sizeof (size_t))
19778 return 0;
19779 ;
19780 return 0;
19781 }
19782 _ACEOF
19783 rm -f conftest.$ac_objext
19784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19785 (eval $ac_compile) 2>&5
19786 ac_status=$?
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); } &&
19789 { ac_try='test -s conftest.$ac_objext'
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19792 ac_status=$?
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; }; then
19795 ac_cv_type_size_t=yes
19796 else
19797 echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19799
19800 ac_cv_type_size_t=no
19801 fi
19802 rm -f conftest.$ac_objext conftest.$ac_ext
19803 fi
19804 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19805 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19806 if test $ac_cv_type_size_t = yes; then
19807
19808 cat >>confdefs.h <<_ACEOF
19809 #define HAVE_SIZE_T 1
19810 _ACEOF
19811
19812
19813 fi
19814
19815
19816 echo "$as_me:$LINENO: checking for mbstate_t" >&5
19817 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
19818 if test "${ac_cv_type_mbstate_t+set}" = set; then
19819 echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821 cat >conftest.$ac_ext <<_ACEOF
19822 #line $LINENO "configure"
19823 /* confdefs.h. */
19824 _ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h. */
19828 $ac_includes_default
19829 # include <wchar.h>
19830 int
19831 main ()
19832 {
19833 mbstate_t x; return sizeof x;
19834 ;
19835 return 0;
19836 }
19837 _ACEOF
19838 rm -f conftest.$ac_objext
19839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19840 (eval $ac_compile) 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
19844 { ac_try='test -s conftest.$ac_objext'
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19847 ac_status=$?
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; }; then
19850 ac_cv_type_mbstate_t=yes
19851 else
19852 echo "$as_me: failed program was:" >&5
19853 sed 's/^/| /' conftest.$ac_ext >&5
19854
19855 ac_cv_type_mbstate_t=no
19856 fi
19857 rm -f conftest.$ac_objext conftest.$ac_ext
19858 fi
19859 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
19860 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
19861 if test $ac_cv_type_mbstate_t = yes; then
19862
19863 cat >>confdefs.h <<\_ACEOF
19864 #define HAVE_MBSTATE_T 1
19865 _ACEOF
19866
19867 else
19868
19869 cat >>confdefs.h <<\_ACEOF
19870 #define mbstate_t int
19871 _ACEOF
19872
19873 fi
19874
19875 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
19876 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
19877 if test "${emacs_cv_c_restrict+set}" = set; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19879 else
19880 cat >conftest.$ac_ext <<_ACEOF
19881 #line $LINENO "configure"
19882 /* confdefs.h. */
19883 _ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19887 void fred (int *restrict x);
19888 int
19889 main ()
19890 {
19891
19892 ;
19893 return 0;
19894 }
19895 _ACEOF
19896 rm -f conftest.$ac_objext
19897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19898 (eval $ac_compile) 2>&5
19899 ac_status=$?
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } &&
19902 { ac_try='test -s conftest.$ac_objext'
19903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19905 ac_status=$?
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; }; then
19908 emacs_cv_c_restrict=yes
19909 else
19910 echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19912
19913 cat >conftest.$ac_ext <<_ACEOF
19914 #line $LINENO "configure"
19915 /* confdefs.h. */
19916 _ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h. */
19920 void fred (int *__restrict x);
19921 int
19922 main ()
19923 {
19924
19925 ;
19926 return 0;
19927 }
19928 _ACEOF
19929 rm -f conftest.$ac_objext
19930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19931 (eval $ac_compile) 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } &&
19935 { ac_try='test -s conftest.$ac_objext'
19936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937 (eval $ac_try) 2>&5
19938 ac_status=$?
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
19941 emacs_cv_c_restrict=__restrict
19942 else
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19945
19946 emacs_cv_c_restrict=no
19947 fi
19948 rm -f conftest.$ac_objext conftest.$ac_ext
19949 fi
19950 rm -f conftest.$ac_objext conftest.$ac_ext
19951 fi
19952 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
19953 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
19954 case "$emacs_cv_c_restrict" in
19955 yes) emacs_restrict=restrict;;
19956 no) emacs_restrict="";;
19957 *) emacs_restrict="$emacs_cv_c_restrict";;
19958 esac
19959 if test "$emacs_restrict" != __restrict; then
19960
19961 cat >>confdefs.h <<_ACEOF
19962 #define __restrict $emacs_restrict
19963 _ACEOF
19964
19965 fi
19966
19967 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
19968 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
19969 if test "${emacs_cv_c_restrict_arr+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19971 else
19972 cat >conftest.$ac_ext <<_ACEOF
19973 #line $LINENO "configure"
19974 /* confdefs.h. */
19975 _ACEOF
19976 cat confdefs.h >>conftest.$ac_ext
19977 cat >>conftest.$ac_ext <<_ACEOF
19978 /* end confdefs.h. */
19979 void fred (int x[__restrict]);
19980 int
19981 main ()
19982 {
19983
19984 ;
19985 return 0;
19986 }
19987 _ACEOF
19988 rm -f conftest.$ac_objext
19989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19990 (eval $ac_compile) 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
19994 { ac_try='test -s conftest.$ac_objext'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 emacs_cv_c_restrict_arr=yes
20001 else
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20004
20005 emacs_cv_c_restrict_arr=no
20006 fi
20007 rm -f conftest.$ac_objext conftest.$ac_ext
20008 fi
20009 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
20010 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
20011 if test "$emacs_cv_c_restrict_arr" = yes; then
20012
20013 cat >>confdefs.h <<\_ACEOF
20014 #define __restrict_arr __restrict
20015 _ACEOF
20016
20017 fi
20018
20019
20020
20021 # Set up the CFLAGS for real compilation, so we can substitute it.
20022 CFLAGS="$REAL_CFLAGS"
20023 CPPFLAGS="$REAL_CPPFLAGS"
20024
20025 #### Find out which version of Emacs this is.
20026 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
20027 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
20028 if test x"${version}" = x; then
20029 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
20030 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
20031 { (exit 1); exit 1; }; }
20032 fi
20033
20034 ### Specify what sort of things we'll be editing into Makefile and config.h.
20035 ### Use configuration here uncanonicalized to avoid exceeding size limits.
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071 cat >>confdefs.h <<_ACEOF
20072 #define EMACS_CONFIGURATION "${canonical}"
20073 _ACEOF
20074
20075
20076 cat >>confdefs.h <<_ACEOF
20077 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
20078 _ACEOF
20079
20080
20081 cat >>confdefs.h <<_ACEOF
20082 #define config_machfile "${machfile}"
20083 _ACEOF
20084
20085
20086 cat >>confdefs.h <<_ACEOF
20087 #define config_opsysfile "${opsysfile}"
20088 _ACEOF
20089
20090
20091 cat >>confdefs.h <<_ACEOF
20092 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
20093 _ACEOF
20094
20095
20096 cat >>confdefs.h <<_ACEOF
20097 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
20098 _ACEOF
20099
20100
20101 cat >>confdefs.h <<_ACEOF
20102 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
20103 _ACEOF
20104
20105
20106 cat >>confdefs.h <<_ACEOF
20107 #define UNEXEC_SRC ${UNEXEC_SRC}
20108 _ACEOF
20109
20110
20111 if test "${HAVE_X_WINDOWS}" = "yes" ; then
20112
20113 cat >>confdefs.h <<\_ACEOF
20114 #define HAVE_X_WINDOWS 1
20115 _ACEOF
20116
20117 fi
20118 if test "${USE_X_TOOLKIT}" != "none" ; then
20119
20120 cat >>confdefs.h <<\_ACEOF
20121 #define USE_X_TOOLKIT 1
20122 _ACEOF
20123
20124 fi
20125 if test "${HAVE_X11}" = "yes" ; then
20126
20127 cat >>confdefs.h <<\_ACEOF
20128 #define HAVE_X11 1
20129 _ACEOF
20130
20131 fi
20132 if test "${HAVE_XFREE386}" = "yes" ; then
20133
20134 cat >>confdefs.h <<\_ACEOF
20135 #define HAVE_XFREE386 1
20136 _ACEOF
20137
20138 fi
20139 if test "${HAVE_MENUS}" = "yes" ; then
20140
20141 cat >>confdefs.h <<\_ACEOF
20142 #define HAVE_MENUS 1
20143 _ACEOF
20144
20145 fi
20146 if test "${GNU_MALLOC}" = "yes" ; then
20147
20148 cat >>confdefs.h <<\_ACEOF
20149 #define GNU_MALLOC 1
20150 _ACEOF
20151
20152 fi
20153 if test "${REL_ALLOC}" = "yes" ; then
20154
20155 cat >>confdefs.h <<\_ACEOF
20156 #define REL_ALLOC 1
20157 _ACEOF
20158
20159 fi
20160
20161
20162
20163
20164
20165 #### Report on what we decided to do.
20166 #### Report GTK as a toolkit, even if it doesn't use Xt.
20167 #### It makes printing result more understandable as using GTK sets
20168 #### toolkit_scroll_bars to yes by default.
20169 if test "${HAVE_GTK}" = "yes"; then
20170 USE_X_TOOLKIT=GTK
20171 fi
20172
20173 echo "
20174 Configured for \`${canonical}'.
20175
20176 Where should the build process find the source code? ${srcdir}
20177 What operating system and machine description files should Emacs use?
20178 \`${opsysfile}' and \`${machfile}'
20179 What compiler should emacs be built with? ${CC} ${CFLAGS}
20180 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
20181 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
20182 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
20183 What window system should Emacs use? ${window_system}
20184 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
20185
20186 if test -n "${x_includes}"; then
20187 echo " Where do we find X Windows header files? ${x_includes}"
20188 else
20189 echo " Where do we find X Windows header files? Standard dirs"
20190 fi
20191 if test -n "${x_libraries}"; then
20192 echo " Where do we find X Windows libraries? ${x_libraries}"
20193 else
20194 echo " Where do we find X Windows libraries? Standard dirs"
20195 fi
20196
20197 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
20198 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
20199 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
20200 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
20201 echo " Does Emacs use -lungif? ${HAVE_GIF}"
20202 echo " Does Emacs use -lpng? ${HAVE_PNG}"
20203 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
20204 echo
20205
20206 if test $USE_XASSERTS = yes; then
20207 echo " Compiling with asserts turned on."
20208 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
20209 echo
20210 fi
20211
20212
20213
20214 # Remove any trailing slashes in these variables.
20215 test "${prefix}" != NONE &&
20216 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
20217 test "${exec_prefix}" != NONE &&
20218 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
20219
20220 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
20221 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
20222 ## from Makefile.c can correctly provide the arg `-traditional' to the
20223 ## C preprocessor.
20224
20225 cat >conftest.$ac_ext <<_ACEOF
20226 #line $LINENO "configure"
20227 /* confdefs.h. */
20228 _ACEOF
20229 cat confdefs.h >>conftest.$ac_ext
20230 cat >>conftest.$ac_ext <<_ACEOF
20231 /* end confdefs.h. */
20232 yes..yes
20233 _ACEOF
20234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20235 $EGREP "yes..yes" >/dev/null 2>&1; then
20236 CPP_NEED_TRADITIONAL=no
20237 else
20238 CPP_NEED_TRADITIONAL=yes
20239 fi
20240 rm -f conftest*
20241
20242
20243 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"
20244 ac_config_commands="$ac_config_commands default"
20245 cat >confcache <<\_ACEOF
20246 # This file is a shell script that caches the results of configure
20247 # tests run on this system so they can be shared between configure
20248 # scripts and configure runs, see configure's option --config-cache.
20249 # It is not useful on other systems. If it contains results you don't
20250 # want to keep, you may remove or edit it.
20251 #
20252 # config.status only pays attention to the cache file if you give it
20253 # the --recheck option to rerun configure.
20254 #
20255 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20256 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20257 # following values.
20258
20259 _ACEOF
20260
20261 # The following way of writing the cache mishandles newlines in values,
20262 # but we know of no workaround that is simple, portable, and efficient.
20263 # So, don't put newlines in cache variables' values.
20264 # Ultrix sh set writes to stderr and can't be redirected directly,
20265 # and sets the high bit in the cache file unless we assign to the vars.
20266 {
20267 (set) 2>&1 |
20268 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20269 *ac_space=\ *)
20270 # `set' does not quote correctly, so add quotes (double-quote
20271 # substitution turns \\\\ into \\, and sed turns \\ into \).
20272 sed -n \
20273 "s/'/'\\\\''/g;
20274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20275 ;;
20276 *)
20277 # `set' quotes correctly as required by POSIX, so do not add quotes.
20278 sed -n \
20279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20280 ;;
20281 esac;
20282 } |
20283 sed '
20284 t clear
20285 : clear
20286 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20287 t end
20288 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20289 : end' >>confcache
20290 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20291 if test -w $cache_file; then
20292 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20293 cat confcache >$cache_file
20294 else
20295 echo "not updating unwritable cache $cache_file"
20296 fi
20297 fi
20298 rm -f confcache
20299
20300 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20301 # Let make expand exec_prefix.
20302 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20303
20304 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20305 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20306 # trailing colons and then remove the whole line if VPATH becomes empty
20307 # (actually we leave an empty line to preserve line numbers).
20308 if test "x$srcdir" = x.; then
20309 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20310 s/:*\$(srcdir):*/:/;
20311 s/:*\${srcdir}:*/:/;
20312 s/:*@srcdir@:*/:/;
20313 s/^\([^=]*=[ ]*\):*/\1/;
20314 s/:*$//;
20315 s/^[^=]*=[ ]*$//;
20316 }'
20317 fi
20318
20319 DEFS=-DHAVE_CONFIG_H
20320
20321 ac_libobjs=
20322 ac_ltlibobjs=
20323 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20324 # 1. Remove the extension, and $U if already installed.
20325 ac_i=`echo "$ac_i" |
20326 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20327 # 2. Add them.
20328 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20329 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20330 done
20331 LIBOBJS=$ac_libobjs
20332
20333 LTLIBOBJS=$ac_ltlibobjs
20334
20335
20336
20337 : ${CONFIG_STATUS=./config.status}
20338 ac_clean_files_save=$ac_clean_files
20339 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20340 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20341 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20342 cat >$CONFIG_STATUS <<_ACEOF
20343 #! $SHELL
20344 # Generated by $as_me.
20345 # Run this file to recreate the current configuration.
20346 # Compiler output produced by configure, useful for debugging
20347 # configure, is in config.log if it exists.
20348
20349 debug=false
20350 ac_cs_recheck=false
20351 ac_cs_silent=false
20352 SHELL=\${CONFIG_SHELL-$SHELL}
20353 _ACEOF
20354
20355 cat >>$CONFIG_STATUS <<\_ACEOF
20356 ## --------------------- ##
20357 ## M4sh Initialization. ##
20358 ## --------------------- ##
20359
20360 # Be Bourne compatible
20361 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20362 emulate sh
20363 NULLCMD=:
20364 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20365 # is contrary to our usage. Disable this feature.
20366 alias -g '${1+"$@"}'='"$@"'
20367 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20368 set -o posix
20369 fi
20370
20371 # Support unset when possible.
20372 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
20373 as_unset=unset
20374 else
20375 as_unset=false
20376 fi
20377
20378
20379 # Work around bugs in pre-3.0 UWIN ksh.
20380 $as_unset ENV MAIL MAILPATH
20381 PS1='$ '
20382 PS2='> '
20383 PS4='+ '
20384
20385 # NLS nuisances.
20386 for as_var in \
20387 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20388 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20389 LC_TELEPHONE LC_TIME
20390 do
20391 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
20392 eval $as_var=C; export $as_var
20393 else
20394 $as_unset $as_var
20395 fi
20396 done
20397
20398 # Required to use basename.
20399 if expr a : '\(a\)' >/dev/null 2>&1; then
20400 as_expr=expr
20401 else
20402 as_expr=false
20403 fi
20404
20405 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20406 as_basename=basename
20407 else
20408 as_basename=false
20409 fi
20410
20411
20412 # Name of the executable.
20413 as_me=`$as_basename "$0" ||
20414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20415 X"$0" : 'X\(//\)$' \| \
20416 X"$0" : 'X\(/\)$' \| \
20417 . : '\(.\)' 2>/dev/null ||
20418 echo X/"$0" |
20419 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20420 /^X\/\(\/\/\)$/{ s//\1/; q; }
20421 /^X\/\(\/\).*/{ s//\1/; q; }
20422 s/.*/./; q'`
20423
20424
20425 # PATH needs CR, and LINENO needs CR and PATH.
20426 # Avoid depending upon Character Ranges.
20427 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20428 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20429 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20430 as_cr_digits='0123456789'
20431 as_cr_alnum=$as_cr_Letters$as_cr_digits
20432
20433 # The user is always right.
20434 if test "${PATH_SEPARATOR+set}" != set; then
20435 echo "#! /bin/sh" >conf$$.sh
20436 echo "exit 0" >>conf$$.sh
20437 chmod +x conf$$.sh
20438 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20439 PATH_SEPARATOR=';'
20440 else
20441 PATH_SEPARATOR=:
20442 fi
20443 rm -f conf$$.sh
20444 fi
20445
20446
20447 as_lineno_1=$LINENO
20448 as_lineno_2=$LINENO
20449 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20450 test "x$as_lineno_1" != "x$as_lineno_2" &&
20451 test "x$as_lineno_3" = "x$as_lineno_2" || {
20452 # Find who we are. Look in the path if we contain no path at all
20453 # relative or not.
20454 case $0 in
20455 *[\\/]* ) as_myself=$0 ;;
20456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20457 for as_dir in $PATH
20458 do
20459 IFS=$as_save_IFS
20460 test -z "$as_dir" && as_dir=.
20461 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20462 done
20463
20464 ;;
20465 esac
20466 # We did not find ourselves, most probably we were run as `sh COMMAND'
20467 # in which case we are not to be found in the path.
20468 if test "x$as_myself" = x; then
20469 as_myself=$0
20470 fi
20471 if test ! -f "$as_myself"; then
20472 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20473 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20474 { (exit 1); exit 1; }; }
20475 fi
20476 case $CONFIG_SHELL in
20477 '')
20478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20479 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20480 do
20481 IFS=$as_save_IFS
20482 test -z "$as_dir" && as_dir=.
20483 for as_base in sh bash ksh sh5; do
20484 case $as_dir in
20485 /*)
20486 if ("$as_dir/$as_base" -c '
20487 as_lineno_1=$LINENO
20488 as_lineno_2=$LINENO
20489 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20490 test "x$as_lineno_1" != "x$as_lineno_2" &&
20491 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20492 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20493 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20494 CONFIG_SHELL=$as_dir/$as_base
20495 export CONFIG_SHELL
20496 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20497 fi;;
20498 esac
20499 done
20500 done
20501 ;;
20502 esac
20503
20504 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20505 # uniformly replaced by the line number. The first 'sed' inserts a
20506 # line-number line before each line; the second 'sed' does the real
20507 # work. The second script uses 'N' to pair each line-number line
20508 # with the numbered line, and appends trailing '-' during
20509 # substitution so that $LINENO is not a special case at line end.
20510 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20511 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20512 sed '=' <$as_myself |
20513 sed '
20514 N
20515 s,$,-,
20516 : loop
20517 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20518 t loop
20519 s,-$,,
20520 s,^['$as_cr_digits']*\n,,
20521 ' >$as_me.lineno &&
20522 chmod +x $as_me.lineno ||
20523 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20524 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20525 { (exit 1); exit 1; }; }
20526
20527 # Don't try to exec as it changes $[0], causing all sort of problems
20528 # (the dirname of $[0] is not the place where we might find the
20529 # original and so on. Autoconf is especially sensible to this).
20530 . ./$as_me.lineno
20531 # Exit status is that of the last command.
20532 exit
20533 }
20534
20535
20536 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20537 *c*,-n*) ECHO_N= ECHO_C='
20538 ' ECHO_T=' ' ;;
20539 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20540 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20541 esac
20542
20543 if expr a : '\(a\)' >/dev/null 2>&1; then
20544 as_expr=expr
20545 else
20546 as_expr=false
20547 fi
20548
20549 rm -f conf$$ conf$$.exe conf$$.file
20550 echo >conf$$.file
20551 if ln -s conf$$.file conf$$ 2>/dev/null; then
20552 # We could just check for DJGPP; but this test a) works b) is more generic
20553 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20554 if test -f conf$$.exe; then
20555 # Don't use ln at all; we don't have any links
20556 as_ln_s='cp -p'
20557 else
20558 as_ln_s='ln -s'
20559 fi
20560 elif ln conf$$.file conf$$ 2>/dev/null; then
20561 as_ln_s=ln
20562 else
20563 as_ln_s='cp -p'
20564 fi
20565 rm -f conf$$ conf$$.exe conf$$.file
20566
20567 if mkdir -p . 2>/dev/null; then
20568 as_mkdir_p=:
20569 else
20570 as_mkdir_p=false
20571 fi
20572
20573 as_executable_p="test -f"
20574
20575 # Sed expression to map a string onto a valid CPP name.
20576 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20577
20578 # Sed expression to map a string onto a valid variable name.
20579 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20580
20581
20582 # IFS
20583 # We need space, tab and new line, in precisely that order.
20584 as_nl='
20585 '
20586 IFS=" $as_nl"
20587
20588 # CDPATH.
20589 $as_unset CDPATH
20590
20591 exec 6>&1
20592
20593 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20594 # report actual input values of CONFIG_FILES etc. instead of their
20595 # values after options handling. Logging --version etc. is OK.
20596 exec 5>>config.log
20597 {
20598 echo
20599 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20600 ## Running $as_me. ##
20601 _ASBOX
20602 } >&5
20603 cat >&5 <<_CSEOF
20604
20605 This file was extended by $as_me, which was
20606 generated by GNU Autoconf 2.57. Invocation command line was
20607
20608 CONFIG_FILES = $CONFIG_FILES
20609 CONFIG_HEADERS = $CONFIG_HEADERS
20610 CONFIG_LINKS = $CONFIG_LINKS
20611 CONFIG_COMMANDS = $CONFIG_COMMANDS
20612 $ $0 $@
20613
20614 _CSEOF
20615 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20616 echo >&5
20617 _ACEOF
20618
20619 # Files that config.status was made for.
20620 if test -n "$ac_config_files"; then
20621 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20622 fi
20623
20624 if test -n "$ac_config_headers"; then
20625 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20626 fi
20627
20628 if test -n "$ac_config_links"; then
20629 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20630 fi
20631
20632 if test -n "$ac_config_commands"; then
20633 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20634 fi
20635
20636 cat >>$CONFIG_STATUS <<\_ACEOF
20637
20638 ac_cs_usage="\
20639 \`$as_me' instantiates files from templates according to the
20640 current configuration.
20641
20642 Usage: $0 [OPTIONS] [FILE]...
20643
20644 -h, --help print this help, then exit
20645 -V, --version print version number, then exit
20646 -q, --quiet do not print progress messages
20647 -d, --debug don't remove temporary files
20648 --recheck update $as_me by reconfiguring in the same conditions
20649 --file=FILE[:TEMPLATE]
20650 instantiate the configuration file FILE
20651 --header=FILE[:TEMPLATE]
20652 instantiate the configuration header FILE
20653
20654 Configuration files:
20655 $config_files
20656
20657 Configuration headers:
20658 $config_headers
20659
20660 Configuration commands:
20661 $config_commands
20662
20663 Report bugs to <bug-autoconf@gnu.org>."
20664 _ACEOF
20665
20666 cat >>$CONFIG_STATUS <<_ACEOF
20667 ac_cs_version="\\
20668 config.status
20669 configured by $0, generated by GNU Autoconf 2.57,
20670 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20671
20672 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20673 Free Software Foundation, Inc.
20674 This config.status script is free software; the Free Software Foundation
20675 gives unlimited permission to copy, distribute and modify it."
20676 srcdir=$srcdir
20677 INSTALL="$INSTALL"
20678 _ACEOF
20679
20680 cat >>$CONFIG_STATUS <<\_ACEOF
20681 # If no file are specified by the user, then we need to provide default
20682 # value. By we need to know if files were specified by the user.
20683 ac_need_defaults=:
20684 while test $# != 0
20685 do
20686 case $1 in
20687 --*=*)
20688 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20689 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20690 ac_shift=:
20691 ;;
20692 -*)
20693 ac_option=$1
20694 ac_optarg=$2
20695 ac_shift=shift
20696 ;;
20697 *) # This is not an option, so the user has probably given explicit
20698 # arguments.
20699 ac_option=$1
20700 ac_need_defaults=false;;
20701 esac
20702
20703 case $ac_option in
20704 # Handling of the options.
20705 _ACEOF
20706 cat >>$CONFIG_STATUS <<\_ACEOF
20707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20708 ac_cs_recheck=: ;;
20709 --version | --vers* | -V )
20710 echo "$ac_cs_version"; exit 0 ;;
20711 --he | --h)
20712 # Conflict between --help and --header
20713 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20714 Try \`$0 --help' for more information." >&5
20715 echo "$as_me: error: ambiguous option: $1
20716 Try \`$0 --help' for more information." >&2;}
20717 { (exit 1); exit 1; }; };;
20718 --help | --hel | -h )
20719 echo "$ac_cs_usage"; exit 0 ;;
20720 --debug | --d* | -d )
20721 debug=: ;;
20722 --file | --fil | --fi | --f )
20723 $ac_shift
20724 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20725 ac_need_defaults=false;;
20726 --header | --heade | --head | --hea )
20727 $ac_shift
20728 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20729 ac_need_defaults=false;;
20730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20731 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20732 ac_cs_silent=: ;;
20733
20734 # This is an error.
20735 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20736 Try \`$0 --help' for more information." >&5
20737 echo "$as_me: error: unrecognized option: $1
20738 Try \`$0 --help' for more information." >&2;}
20739 { (exit 1); exit 1; }; } ;;
20740
20741 *) ac_config_targets="$ac_config_targets $1" ;;
20742
20743 esac
20744 shift
20745 done
20746
20747 ac_configure_extra_args=
20748
20749 if $ac_cs_silent; then
20750 exec 6>/dev/null
20751 ac_configure_extra_args="$ac_configure_extra_args --silent"
20752 fi
20753
20754 _ACEOF
20755 cat >>$CONFIG_STATUS <<_ACEOF
20756 if \$ac_cs_recheck; then
20757 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20758 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20759 fi
20760
20761 _ACEOF
20762
20763 cat >>$CONFIG_STATUS <<_ACEOF
20764 #
20765 # INIT-COMMANDS section.
20766 #
20767
20768 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
20769
20770 _ACEOF
20771
20772
20773
20774 cat >>$CONFIG_STATUS <<\_ACEOF
20775 for ac_config_target in $ac_config_targets
20776 do
20777 case "$ac_config_target" in
20778 # Handling of arguments.
20779 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20780 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
20781 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
20782 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20783 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
20784 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
20785 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
20786 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
20787 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
20788 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
20789 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20790 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20791 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20792 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20793 { (exit 1); exit 1; }; };;
20794 esac
20795 done
20796
20797 # If the user did not use the arguments to specify the items to instantiate,
20798 # then the envvar interface is used. Set only those that are not.
20799 # We use the long form for the default assignment because of an extremely
20800 # bizarre bug on SunOS 4.1.3.
20801 if $ac_need_defaults; then
20802 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20803 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20804 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20805 fi
20806
20807 # Have a temporary directory for convenience. Make it in the build tree
20808 # simply because there is no reason to put it here, and in addition,
20809 # creating and moving files from /tmp can sometimes cause problems.
20810 # Create a temporary directory, and hook for its removal unless debugging.
20811 $debug ||
20812 {
20813 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20814 trap '{ (exit 1); exit 1; }' 1 2 13 15
20815 }
20816
20817 # Create a (secure) tmp directory for tmp files.
20818
20819 {
20820 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20821 test -n "$tmp" && test -d "$tmp"
20822 } ||
20823 {
20824 tmp=./confstat$$-$RANDOM
20825 (umask 077 && mkdir $tmp)
20826 } ||
20827 {
20828 echo "$me: cannot create a temporary directory in ." >&2
20829 { (exit 1); exit 1; }
20830 }
20831
20832 _ACEOF
20833
20834 cat >>$CONFIG_STATUS <<_ACEOF
20835
20836 #
20837 # CONFIG_FILES section.
20838 #
20839
20840 # No need to generate the scripts if there are no CONFIG_FILES.
20841 # This happens for instance when ./config.status config.h
20842 if test -n "\$CONFIG_FILES"; then
20843 # Protect against being on the right side of a sed subst in config.status.
20844 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20845 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20846 s,@SHELL@,$SHELL,;t t
20847 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20848 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20849 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20850 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20851 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20852 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20853 s,@exec_prefix@,$exec_prefix,;t t
20854 s,@prefix@,$prefix,;t t
20855 s,@program_transform_name@,$program_transform_name,;t t
20856 s,@bindir@,$bindir,;t t
20857 s,@sbindir@,$sbindir,;t t
20858 s,@libexecdir@,$libexecdir,;t t
20859 s,@datadir@,$datadir,;t t
20860 s,@sysconfdir@,$sysconfdir,;t t
20861 s,@sharedstatedir@,$sharedstatedir,;t t
20862 s,@localstatedir@,$localstatedir,;t t
20863 s,@libdir@,$libdir,;t t
20864 s,@includedir@,$includedir,;t t
20865 s,@oldincludedir@,$oldincludedir,;t t
20866 s,@infodir@,$infodir,;t t
20867 s,@mandir@,$mandir,;t t
20868 s,@build_alias@,$build_alias,;t t
20869 s,@host_alias@,$host_alias,;t t
20870 s,@target_alias@,$target_alias,;t t
20871 s,@DEFS@,$DEFS,;t t
20872 s,@ECHO_C@,$ECHO_C,;t t
20873 s,@ECHO_N@,$ECHO_N,;t t
20874 s,@ECHO_T@,$ECHO_T,;t t
20875 s,@LIBS@,$LIBS,;t t
20876 s,@MAINT@,$MAINT,;t t
20877 s,@build@,$build,;t t
20878 s,@build_cpu@,$build_cpu,;t t
20879 s,@build_vendor@,$build_vendor,;t t
20880 s,@build_os@,$build_os,;t t
20881 s,@host@,$host,;t t
20882 s,@host_cpu@,$host_cpu,;t t
20883 s,@host_vendor@,$host_vendor,;t t
20884 s,@host_os@,$host_os,;t t
20885 s,@CC@,$CC,;t t
20886 s,@CFLAGS@,$CFLAGS,;t t
20887 s,@LDFLAGS@,$LDFLAGS,;t t
20888 s,@CPPFLAGS@,$CPPFLAGS,;t t
20889 s,@ac_ct_CC@,$ac_ct_CC,;t t
20890 s,@EXEEXT@,$EXEEXT,;t t
20891 s,@OBJEXT@,$OBJEXT,;t t
20892 s,@LN_S@,$LN_S,;t t
20893 s,@CPP@,$CPP,;t t
20894 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20895 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20896 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20897 s,@RANLIB@,$RANLIB,;t t
20898 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20899 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
20900 s,@EGREP@,$EGREP,;t t
20901 s,@LIBSOUND@,$LIBSOUND,;t t
20902 s,@SET_MAKE@,$SET_MAKE,;t t
20903 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20904 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
20905 s,@GTK_LIBS@,$GTK_LIBS,;t t
20906 s,@ALLOCA@,$ALLOCA,;t t
20907 s,@liblockfile@,$liblockfile,;t t
20908 s,@LIBOBJS@,$LIBOBJS,;t t
20909 s,@NEED_SETGID@,$NEED_SETGID,;t t
20910 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
20911 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
20912 s,@version@,$version,;t t
20913 s,@configuration@,$configuration,;t t
20914 s,@canonical@,$canonical,;t t
20915 s,@srcdir@,$srcdir,;t t
20916 s,@lispdir@,$lispdir,;t t
20917 s,@locallisppath@,$locallisppath,;t t
20918 s,@lisppath@,$lisppath,;t t
20919 s,@x_default_search_path@,$x_default_search_path,;t t
20920 s,@etcdir@,$etcdir,;t t
20921 s,@archlibdir@,$archlibdir,;t t
20922 s,@docdir@,$docdir,;t t
20923 s,@bitmapdir@,$bitmapdir,;t t
20924 s,@gamedir@,$gamedir,;t t
20925 s,@gameuser@,$gameuser,;t t
20926 s,@c_switch_system@,$c_switch_system,;t t
20927 s,@c_switch_machine@,$c_switch_machine,;t t
20928 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
20929 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
20930 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
20931 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
20932 s,@machfile@,$machfile,;t t
20933 s,@opsysfile@,$opsysfile,;t t
20934 s,@carbon_appdir@,$carbon_appdir,;t t
20935 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20936 CEOF
20937
20938 _ACEOF
20939
20940 cat >>$CONFIG_STATUS <<\_ACEOF
20941 # Split the substitutions into bite-sized pieces for seds with
20942 # small command number limits, like on Digital OSF/1 and HP-UX.
20943 ac_max_sed_lines=48
20944 ac_sed_frag=1 # Number of current file.
20945 ac_beg=1 # First line for current file.
20946 ac_end=$ac_max_sed_lines # Line after last line for current file.
20947 ac_more_lines=:
20948 ac_sed_cmds=
20949 while $ac_more_lines; do
20950 if test $ac_beg -gt 1; then
20951 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20952 else
20953 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20954 fi
20955 if test ! -s $tmp/subs.frag; then
20956 ac_more_lines=false
20957 else
20958 # The purpose of the label and of the branching condition is to
20959 # speed up the sed processing (if there are no `@' at all, there
20960 # is no need to browse any of the substitutions).
20961 # These are the two extra sed commands mentioned above.
20962 (echo ':t
20963 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20964 if test -z "$ac_sed_cmds"; then
20965 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20966 else
20967 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20968 fi
20969 ac_sed_frag=`expr $ac_sed_frag + 1`
20970 ac_beg=$ac_end
20971 ac_end=`expr $ac_end + $ac_max_sed_lines`
20972 fi
20973 done
20974 if test -z "$ac_sed_cmds"; then
20975 ac_sed_cmds=cat
20976 fi
20977 fi # test -n "$CONFIG_FILES"
20978
20979 _ACEOF
20980 cat >>$CONFIG_STATUS <<\_ACEOF
20981 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20983 case $ac_file in
20984 - | *:- | *:-:* ) # input from stdin
20985 cat >$tmp/stdin
20986 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20988 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20989 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20990 * ) ac_file_in=$ac_file.in ;;
20991 esac
20992
20993 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20994 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20995 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20996 X"$ac_file" : 'X\(//\)[^/]' \| \
20997 X"$ac_file" : 'X\(//\)$' \| \
20998 X"$ac_file" : 'X\(/\)' \| \
20999 . : '\(.\)' 2>/dev/null ||
21000 echo X"$ac_file" |
21001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21003 /^X\(\/\/\)$/{ s//\1/; q; }
21004 /^X\(\/\).*/{ s//\1/; q; }
21005 s/.*/./; q'`
21006 { if $as_mkdir_p; then
21007 mkdir -p "$ac_dir"
21008 else
21009 as_dir="$ac_dir"
21010 as_dirs=
21011 while test ! -d "$as_dir"; do
21012 as_dirs="$as_dir $as_dirs"
21013 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21015 X"$as_dir" : 'X\(//\)[^/]' \| \
21016 X"$as_dir" : 'X\(//\)$' \| \
21017 X"$as_dir" : 'X\(/\)' \| \
21018 . : '\(.\)' 2>/dev/null ||
21019 echo X"$as_dir" |
21020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21022 /^X\(\/\/\)$/{ s//\1/; q; }
21023 /^X\(\/\).*/{ s//\1/; q; }
21024 s/.*/./; q'`
21025 done
21026 test ! -n "$as_dirs" || mkdir $as_dirs
21027 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21028 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21029 { (exit 1); exit 1; }; }; }
21030
21031 ac_builddir=.
21032
21033 if test "$ac_dir" != .; then
21034 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21035 # A "../" for each directory in $ac_dir_suffix.
21036 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21037 else
21038 ac_dir_suffix= ac_top_builddir=
21039 fi
21040
21041 case $srcdir in
21042 .) # No --srcdir option. We are building in place.
21043 ac_srcdir=.
21044 if test -z "$ac_top_builddir"; then
21045 ac_top_srcdir=.
21046 else
21047 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21048 fi ;;
21049 [\\/]* | ?:[\\/]* ) # Absolute path.
21050 ac_srcdir=$srcdir$ac_dir_suffix;
21051 ac_top_srcdir=$srcdir ;;
21052 *) # Relative path.
21053 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21054 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21055 esac
21056 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
21057 # absolute.
21058 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
21059 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
21060 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
21061 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
21062
21063
21064 case $INSTALL in
21065 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21066 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21067 esac
21068
21069 if test x"$ac_file" != x-; then
21070 { echo "$as_me:$LINENO: creating $ac_file" >&5
21071 echo "$as_me: creating $ac_file" >&6;}
21072 rm -f "$ac_file"
21073 fi
21074 # Let's still pretend it is `configure' which instantiates (i.e., don't
21075 # use $as_me), people would be surprised to read:
21076 # /* config.h. Generated by config.status. */
21077 if test x"$ac_file" = x-; then
21078 configure_input=
21079 else
21080 configure_input="$ac_file. "
21081 fi
21082 configure_input=$configure_input"Generated from `echo $ac_file_in |
21083 sed 's,.*/,,'` by configure."
21084
21085 # First look for the input files in the build tree, otherwise in the
21086 # src tree.
21087 ac_file_inputs=`IFS=:
21088 for f in $ac_file_in; do
21089 case $f in
21090 -) echo $tmp/stdin ;;
21091 [\\/$]*)
21092 # Absolute (can't be DOS-style, as IFS=:)
21093 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21094 echo "$as_me: error: cannot find input file: $f" >&2;}
21095 { (exit 1); exit 1; }; }
21096 echo $f;;
21097 *) # Relative
21098 if test -f "$f"; then
21099 # Build tree
21100 echo $f
21101 elif test -f "$srcdir/$f"; then
21102 # Source tree
21103 echo $srcdir/$f
21104 else
21105 # /dev/null tree
21106 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21107 echo "$as_me: error: cannot find input file: $f" >&2;}
21108 { (exit 1); exit 1; }; }
21109 fi;;
21110 esac
21111 done` || { (exit 1); exit 1; }
21112 _ACEOF
21113 cat >>$CONFIG_STATUS <<_ACEOF
21114 sed "$ac_vpsub
21115 $extrasub
21116 _ACEOF
21117 cat >>$CONFIG_STATUS <<\_ACEOF
21118 :t
21119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21120 s,@configure_input@,$configure_input,;t t
21121 s,@srcdir@,$ac_srcdir,;t t
21122 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21123 s,@top_srcdir@,$ac_top_srcdir,;t t
21124 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21125 s,@builddir@,$ac_builddir,;t t
21126 s,@abs_builddir@,$ac_abs_builddir,;t t
21127 s,@top_builddir@,$ac_top_builddir,;t t
21128 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21129 s,@INSTALL@,$ac_INSTALL,;t t
21130 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21131 rm -f $tmp/stdin
21132 if test x"$ac_file" != x-; then
21133 mv $tmp/out $ac_file
21134 else
21135 cat $tmp/out
21136 rm -f $tmp/out
21137 fi
21138
21139 done
21140 _ACEOF
21141 cat >>$CONFIG_STATUS <<\_ACEOF
21142
21143 #
21144 # CONFIG_HEADER section.
21145 #
21146
21147 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21148 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21149 #
21150 # ac_d sets the value in "#define NAME VALUE" lines.
21151 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21152 ac_dB='[ ].*$,\1#\2'
21153 ac_dC=' '
21154 ac_dD=',;t'
21155 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21156 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21157 ac_uB='$,\1#\2define\3'
21158 ac_uC=' '
21159 ac_uD=',;t'
21160
21161 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21162 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21163 case $ac_file in
21164 - | *:- | *:-:* ) # input from stdin
21165 cat >$tmp/stdin
21166 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21168 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21169 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21170 * ) ac_file_in=$ac_file.in ;;
21171 esac
21172
21173 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21174 echo "$as_me: creating $ac_file" >&6;}
21175
21176 # First look for the input files in the build tree, otherwise in the
21177 # src tree.
21178 ac_file_inputs=`IFS=:
21179 for f in $ac_file_in; do
21180 case $f in
21181 -) echo $tmp/stdin ;;
21182 [\\/$]*)
21183 # Absolute (can't be DOS-style, as IFS=:)
21184 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21185 echo "$as_me: error: cannot find input file: $f" >&2;}
21186 { (exit 1); exit 1; }; }
21187 echo $f;;
21188 *) # Relative
21189 if test -f "$f"; then
21190 # Build tree
21191 echo $f
21192 elif test -f "$srcdir/$f"; then
21193 # Source tree
21194 echo $srcdir/$f
21195 else
21196 # /dev/null tree
21197 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21198 echo "$as_me: error: cannot find input file: $f" >&2;}
21199 { (exit 1); exit 1; }; }
21200 fi;;
21201 esac
21202 done` || { (exit 1); exit 1; }
21203 # Remove the trailing spaces.
21204 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21205
21206 _ACEOF
21207
21208 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21209 # `conftest.undefs', that substitutes the proper values into
21210 # config.h.in to produce config.h. The first handles `#define'
21211 # templates, and the second `#undef' templates.
21212 # And first: Protect against being on the right side of a sed subst in
21213 # config.status. Protect against being in an unquoted here document
21214 # in config.status.
21215 rm -f conftest.defines conftest.undefs
21216 # Using a here document instead of a string reduces the quoting nightmare.
21217 # Putting comments in sed scripts is not portable.
21218 #
21219 # `end' is used to avoid that the second main sed command (meant for
21220 # 0-ary CPP macros) applies to n-ary macro definitions.
21221 # See the Autoconf documentation for `clear'.
21222 cat >confdef2sed.sed <<\_ACEOF
21223 s/[\\&,]/\\&/g
21224 s,[\\$`],\\&,g
21225 t clear
21226 : clear
21227 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21228 t end
21229 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21230 : end
21231 _ACEOF
21232 # If some macros were called several times there might be several times
21233 # the same #defines, which is useless. Nevertheless, we may not want to
21234 # sort them, since we want the *last* AC-DEFINE to be honored.
21235 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21236 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21237 rm -f confdef2sed.sed
21238
21239 # This sed command replaces #undef with comments. This is necessary, for
21240 # example, in the case of _POSIX_SOURCE, which is predefined and required
21241 # on some systems where configure will not decide to define it.
21242 cat >>conftest.undefs <<\_ACEOF
21243 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21244 _ACEOF
21245
21246 # Break up conftest.defines because some shells have a limit on the size
21247 # of here documents, and old seds have small limits too (100 cmds).
21248 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21249 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21250 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21251 echo ' :' >>$CONFIG_STATUS
21252 rm -f conftest.tail
21253 while grep . conftest.defines >/dev/null
21254 do
21255 # Write a limited-size here document to $tmp/defines.sed.
21256 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21257 # Speed up: don't consider the non `#define' lines.
21258 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21259 # Work around the forget-to-reset-the-flag bug.
21260 echo 't clr' >>$CONFIG_STATUS
21261 echo ': clr' >>$CONFIG_STATUS
21262 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21263 echo 'CEOF
21264 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21265 rm -f $tmp/in
21266 mv $tmp/out $tmp/in
21267 ' >>$CONFIG_STATUS
21268 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21269 rm -f conftest.defines
21270 mv conftest.tail conftest.defines
21271 done
21272 rm -f conftest.defines
21273 echo ' fi # grep' >>$CONFIG_STATUS
21274 echo >>$CONFIG_STATUS
21275
21276 # Break up conftest.undefs because some shells have a limit on the size
21277 # of here documents, and old seds have small limits too (100 cmds).
21278 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21279 rm -f conftest.tail
21280 while grep . conftest.undefs >/dev/null
21281 do
21282 # Write a limited-size here document to $tmp/undefs.sed.
21283 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21284 # Speed up: don't consider the non `#undef'
21285 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21286 # Work around the forget-to-reset-the-flag bug.
21287 echo 't clr' >>$CONFIG_STATUS
21288 echo ': clr' >>$CONFIG_STATUS
21289 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21290 echo 'CEOF
21291 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21292 rm -f $tmp/in
21293 mv $tmp/out $tmp/in
21294 ' >>$CONFIG_STATUS
21295 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21296 rm -f conftest.undefs
21297 mv conftest.tail conftest.undefs
21298 done
21299 rm -f conftest.undefs
21300
21301 cat >>$CONFIG_STATUS <<\_ACEOF
21302 # Let's still pretend it is `configure' which instantiates (i.e., don't
21303 # use $as_me), people would be surprised to read:
21304 # /* config.h. Generated by config.status. */
21305 if test x"$ac_file" = x-; then
21306 echo "/* Generated by configure. */" >$tmp/config.h
21307 else
21308 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21309 fi
21310 cat $tmp/in >>$tmp/config.h
21311 rm -f $tmp/in
21312 if test x"$ac_file" != x-; then
21313 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21314 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21315 echo "$as_me: $ac_file is unchanged" >&6;}
21316 else
21317 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21318 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21319 X"$ac_file" : 'X\(//\)[^/]' \| \
21320 X"$ac_file" : 'X\(//\)$' \| \
21321 X"$ac_file" : 'X\(/\)' \| \
21322 . : '\(.\)' 2>/dev/null ||
21323 echo X"$ac_file" |
21324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21326 /^X\(\/\/\)$/{ s//\1/; q; }
21327 /^X\(\/\).*/{ s//\1/; q; }
21328 s/.*/./; q'`
21329 { if $as_mkdir_p; then
21330 mkdir -p "$ac_dir"
21331 else
21332 as_dir="$ac_dir"
21333 as_dirs=
21334 while test ! -d "$as_dir"; do
21335 as_dirs="$as_dir $as_dirs"
21336 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21338 X"$as_dir" : 'X\(//\)[^/]' \| \
21339 X"$as_dir" : 'X\(//\)$' \| \
21340 X"$as_dir" : 'X\(/\)' \| \
21341 . : '\(.\)' 2>/dev/null ||
21342 echo X"$as_dir" |
21343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21345 /^X\(\/\/\)$/{ s//\1/; q; }
21346 /^X\(\/\).*/{ s//\1/; q; }
21347 s/.*/./; q'`
21348 done
21349 test ! -n "$as_dirs" || mkdir $as_dirs
21350 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21351 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21352 { (exit 1); exit 1; }; }; }
21353
21354 rm -f $ac_file
21355 mv $tmp/config.h $ac_file
21356 fi
21357 else
21358 cat $tmp/config.h
21359 rm -f $tmp/config.h
21360 fi
21361 done
21362 _ACEOF
21363 cat >>$CONFIG_STATUS <<\_ACEOF
21364
21365 #
21366 # CONFIG_COMMANDS section.
21367 #
21368 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21369 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21370 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21371 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21372 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21373 X"$ac_dest" : 'X\(//\)[^/]' \| \
21374 X"$ac_dest" : 'X\(//\)$' \| \
21375 X"$ac_dest" : 'X\(/\)' \| \
21376 . : '\(.\)' 2>/dev/null ||
21377 echo X"$ac_dest" |
21378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21380 /^X\(\/\/\)$/{ s//\1/; q; }
21381 /^X\(\/\).*/{ s//\1/; q; }
21382 s/.*/./; q'`
21383 ac_builddir=.
21384
21385 if test "$ac_dir" != .; then
21386 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21387 # A "../" for each directory in $ac_dir_suffix.
21388 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21389 else
21390 ac_dir_suffix= ac_top_builddir=
21391 fi
21392
21393 case $srcdir in
21394 .) # No --srcdir option. We are building in place.
21395 ac_srcdir=.
21396 if test -z "$ac_top_builddir"; then
21397 ac_top_srcdir=.
21398 else
21399 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21400 fi ;;
21401 [\\/]* | ?:[\\/]* ) # Absolute path.
21402 ac_srcdir=$srcdir$ac_dir_suffix;
21403 ac_top_srcdir=$srcdir ;;
21404 *) # Relative path.
21405 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21406 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21407 esac
21408 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
21409 # absolute.
21410 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
21411 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
21412 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
21413 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
21414
21415
21416 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21417 echo "$as_me: executing $ac_dest commands" >&6;}
21418 case $ac_dest in
21419 default )
21420
21421 ### Make the necessary directories, if they don't exist.
21422 for dir in etc lisp ; do
21423 test -d ${dir} || mkdir ${dir}
21424 done
21425
21426 # Build src/Makefile from ${srcdir}/src/Makefile.c
21427 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
21428 # This must be done after src/config.h is built, since we rely on that file.
21429
21430 # Now get this: Some word that is part of the ${srcdir} directory name
21431 # or the ${configuration} value might, just might, happen to be an
21432 # identifier like `sun4' or `i386' or something, and be predefined by
21433 # the C preprocessor to some helpful value like 1, or maybe the empty
21434 # string. Needless to say consequent macro substitutions are less
21435 # than conducive to the makefile finding the correct directory.
21436 undefs="`echo $top_srcdir $configuration $canonical |
21437 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
21438 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
21439 `"
21440
21441 echo creating src/epaths.h
21442 ${MAKE-make} epaths-force
21443
21444 # As of 2000-11-19, newest development versions of GNU cpp preprocess
21445 # `..' to `. .' unless invoked with -traditional
21446
21447 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
21448 CPPFLAGS="$CPPFLAGS -traditional"
21449 fi
21450
21451 echo creating lib-src/Makefile
21452 ( cd lib-src
21453 rm -f junk.c junk1.c junk2.c
21454 sed -e '/start of cpp stuff/q' \
21455 < Makefile.c > junk1.c
21456 sed -e '1,/start of cpp stuff/d'\
21457 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
21458 < Makefile.c > junk.c
21459 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
21460 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
21461 cat junk1.c junk2.c > Makefile.new
21462 rm -f junk.c junk1.c junk2.c
21463 chmod 444 Makefile.new
21464 mv -f Makefile.new Makefile
21465 )
21466
21467 echo creating src/Makefile
21468 ( cd src
21469 rm -f junk.c junk1.c junk2.c
21470 sed -e '/start of cpp stuff/q' \
21471 < Makefile.c > junk1.c
21472 sed -e '1,/start of cpp stuff/d'\
21473 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
21474 < Makefile.c > junk.c
21475 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
21476 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
21477 cat junk1.c junk2.c > Makefile.new
21478 rm -f junk.c junk1.c junk2.c
21479 chmod 444 Makefile.new
21480 mv -f Makefile.new Makefile
21481 )
21482
21483 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
21484 echo creating src/.gdbinit
21485 echo source $srcdir/src/.gdbinit > src/.gdbinit
21486 fi
21487
21488 # This is how we know whether to re-run configure in certain cases.
21489 touch src/config.stamp
21490
21491 ;;
21492 esac
21493 done
21494 _ACEOF
21495
21496 cat >>$CONFIG_STATUS <<\_ACEOF
21497
21498 { (exit 0); exit 0; }
21499 _ACEOF
21500 chmod +x $CONFIG_STATUS
21501 ac_clean_files=$ac_clean_files_save
21502
21503
21504 # configure is writing to config.log, and then calls config.status.
21505 # config.status does its own redirection, appending to config.log.
21506 # Unfortunately, on DOS this fails, as config.log is still kept open
21507 # by configure, so config.status won't be able to write to it; its
21508 # output is simply discarded. So we exec the FD to /dev/null,
21509 # effectively closing config.log, so it can be properly (re)opened and
21510 # appended to by config.status. When coming back to configure, we
21511 # need to make the FD available again.
21512 if test "$no_create" != yes; then
21513 ac_cs_success=:
21514 ac_config_status_args=
21515 test "$silent" = yes &&
21516 ac_config_status_args="$ac_config_status_args --quiet"
21517 exec 5>/dev/null
21518 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21519 exec 5>>config.log
21520 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21521 # would make configure fail if this is the last instruction.
21522 $ac_cs_success || { (exit 1); exit 1; }
21523 fi
21524
21525