($(BLD)/emacsclient.exe, $(BLD)/emacsclientw.exe): Use $(USER32)
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
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 -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
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 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND PKG_CONFIG ALSA_CFLAGS ALSA_LIBS CFLAGS_SOUND SET_MAKE GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
843
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search for lisp files
864 specific to this site
865 --disable-largefile omit support for large files
866
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-gcc don't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version 5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server host
875 --without-sound don't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
890
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
898 CPP C preprocessor
899
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
902
903 _ACEOF
904 fi
905
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
912
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
919 fi
920
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
936
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
941 *)
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *)
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
959 *)
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *)
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
975
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
990 fi
991 cd $ac_popdir
992 done
993 fi
994
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
998
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003 exit 0
1004 fi
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1009
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1012
1013 $ $0 $@
1014
1015 _ACEOF
1016 {
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1021
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1027
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1030
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1038
1039 _ASUNAME
1040
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1043 do
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047 done
1048
1049 } >&5
1050
1051 cat >&5 <<_ACEOF
1052
1053
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1057
1058 _ACEOF
1059
1060
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1072 do
1073 for ac_arg
1074 do
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1085 2)
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1098 ;;
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1101 fi
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1105 ;;
1106 esac
1107 done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1111
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1119 {
1120 echo
1121
1122 cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1129 {
1130 (set) 2>&1 |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
1133 sed -n \
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 ;;
1137 *)
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ;;
1141 esac;
1142 }
1143 echo
1144
1145 cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1166 do
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1171 fi
1172
1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179 echo
1180 sed "/^$/d" confdefs.h | sort
1181 echo
1182 fi
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 exit $exit_status
1190 ' 0
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1195
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1200
1201 # Predefined preprocessor variables.
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1226
1227
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 fi
1236 fi
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1243 fi
1244 done
1245
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1256 fi
1257 else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1261 fi
1262
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1282 *)
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1304 fi
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1312 fi
1313
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1339
1340
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it if useless.
1348 cat <<\_ACEOF >conftest.sed
1349 s/[\\$]/&&/g;s/;s,x,x,$//
1350 _ACEOF
1351 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1352 rm conftest.sed
1353
1354
1355 lispdir='${datadir}/emacs/${version}/lisp'
1356 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp'
1358 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1359 etcdir='${datadir}/emacs/${version}/etc'
1360 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir='${datadir}/emacs/${version}/etc'
1362 gamedir='${localstatedir}/games/emacs'
1363
1364 gameuser=games
1365
1366
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1370
1371 fi;
1372
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1375 withval="$with_pop"
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h <<\_ACEOF
1378 #define MAIL_USE_POP 1
1379 _ACEOF
1380
1381 else :
1382 fi
1383 else
1384 cat >>confdefs.h <<\_ACEOF
1385 #define MAIL_USE_POP 1
1386 _ACEOF
1387
1388 fi;
1389
1390
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395 #define KERBEROS 1
1396 _ACEOF
1397
1398 fi;
1399
1400
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1406 with_kerberos=yes
1407 cat >>confdefs.h <<\_ACEOF
1408 #define KERBEROS 1
1409 _ACEOF
1410
1411 fi
1412 fi
1413
1414 cat >>confdefs.h <<\_ACEOF
1415 #define KERBEROS5 1
1416 _ACEOF
1417
1418 fi;
1419
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1423
1424 cat >>confdefs.h <<\_ACEOF
1425 #define HESIOD 1
1426 _ACEOF
1427
1428 fi;
1429
1430
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1434
1435 fi;
1436
1437
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye | yes ) val=athena ;;
1443 n | no ) val=no ;;
1444 l | lu | luc | luci | lucid ) val=lucid ;;
1445 a | at | ath | athe | athen | athena ) val=athena ;;
1446 m | mo | mot | moti | motif ) val=motif ;;
1447 g | gt | gtk ) val=gtk ;;
1448 * )
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1456 ;;
1457 esac
1458 with_x_toolkit=$val
1459
1460 fi;
1461
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1465
1466 fi;
1467
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1471
1472 fi;
1473
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1477
1478 fi;
1479
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1483
1484 fi;
1485
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1488 withval="$with_png"
1489
1490 fi;
1491
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1495
1496 fi;
1497
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1501
1502 fi;
1503
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1507
1508 fi;
1509
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1513
1514 fi;
1515
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1519
1520 fi;
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1525 fi;
1526
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531 else
1532 USE_XASSERTS=no
1533 fi;
1534
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539 else
1540 USE_MAINTAINER_MODE=no
1541 fi;
1542 if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544 else
1545 MAINT=#
1546 fi
1547
1548
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1556 fi
1557 fi;
1558
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1564 unset CDPATH
1565 case "${srcdir}" in
1566 /* ) ;;
1567 . )
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1574 then
1575 srcdir="$PWD"
1576 else
1577 srcdir="`(cd ${srcdir}; pwd)`"
1578 fi
1579 ;;
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581 esac
1582
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1598 fi
1599
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1602
1603 ### Canonicalize the configuration name.
1604
1605 ac_aux_dir=
1606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607 if test -f $ac_dir/install-sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 break
1611 elif test -f $ac_dir/install.sh; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 break
1615 elif test -f $ac_dir/shtool; then
1616 ac_aux_dir=$ac_dir
1617 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 break
1619 fi
1620 done
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1625 fi
1626 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1629
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 canonical=$host
1685 configuration=${host_alias-$host}
1686
1687
1688
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1692
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1701 ###
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1707 ###
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1711
1712 machine='' opsys='' unported=no
1713 case "${canonical}" in
1714
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 ia64-*-freebsd*) machine=ia64 ;;
1721 sparc64-*-freebsd*) machine=sparc ;;
1722 powerpc-*-freebsd*) machine=macppc ;;
1723 i[3456]86-*-freebsd*) machine=intel386 ;;
1724 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
1725 esac
1726 ;;
1727
1728 ## NetBSD ports
1729 *-*-netbsd* )
1730 opsys=netbsd
1731 if test -f /usr/lib/crti.o; then
1732
1733 cat >>confdefs.h <<\_ACEOF
1734 #define HAVE_CRTIN
1735 _ACEOF
1736
1737 fi
1738
1739 case "${canonical}" in
1740 alpha*-*-netbsd*) machine=alpha ;;
1741 i[3456]86-*-netbsd*) machine=intel386 ;;
1742 m68k-*-netbsd*)
1743 # This is somewhat bogus.
1744 machine=hp9000s300 ;;
1745 powerpc-apple-netbsd*) machine=macppc ;;
1746 mips-*-netbsd*) machine=pmax ;;
1747 mipsel-*-netbsd*) machine=pmax ;;
1748 mipseb-*-netbsd*) machine=pmax ;;
1749 ns32k-*-netbsd*) machine=ns32000 ;;
1750 powerpc-*-netbsd*) machine=macppc ;;
1751 sparc*-*-netbsd*) machine=sparc ;;
1752 vax-*-netbsd*) machine=vax ;;
1753 arm-*-netbsd*) machine=arm ;;
1754 esac
1755 ;;
1756
1757 ## OpenBSD ports
1758 *-*-openbsd* )
1759 opsys=openbsd
1760 case "${canonical}" in
1761 alpha*-*-openbsd*) machine=alpha ;;
1762 i386-*-openbsd*) machine=intel386 ;;
1763 x86_64-*-openbsd*) machine=amdx86-64 ;;
1764 m68k-*-openbsd*) machine=hp9000s300 ;;
1765 mipsel-*-openbsd*) machine=pmax ;;
1766 ns32k-*-openbsd*) machine=ns32000 ;;
1767 sparc-*-openbsd*) machine=sparc ;;
1768 vax-*-openbsd*) machine=vax ;;
1769 esac
1770 ;;
1771
1772 ## LynxOS ports
1773 *-*-lynxos* )
1774 opsys=lynxos
1775 case "${canonical}" in
1776 i[3456]86-*-lynxos*) machine=intel386 ;;
1777 powerpc-*-lynxos*) machine=powerpc ;;
1778 esac
1779 ;;
1780
1781 ## Acorn RISCiX:
1782 arm-acorn-riscix1.1* )
1783 machine=acorn opsys=riscix1-1
1784 ;;
1785 arm-acorn-riscix1.2* | arm-acorn-riscix )
1786 ## This name is riscix12 instead of riscix1.2
1787 ## to avoid a file name conflict on MSDOS.
1788 machine=acorn opsys=riscix12
1789 ;;
1790
1791 ## BSDI ports
1792 *-*-bsdi* )
1793 opsys=bsdi
1794 case "${canonical}" in
1795 i[345]86-*-bsdi*) machine=intel386 ;;
1796 sparc-*-bsdi*) machine=sparc ;;
1797 powerpc-*-bsdi*) machine=macppc ;;
1798 esac
1799 case "${canonical}" in
1800 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1801 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1802 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1803 *-*-bsdi3* ) opsys=bsdos3 ;;
1804 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1805 esac
1806 ;;
1807
1808 ## Alliant machines
1809 ## Strictly speaking, we need the version of the alliant operating
1810 ## system to choose the right machine file, but currently the
1811 ## configuration name doesn't tell us enough to choose the right
1812 ## one; we need to give alliants their own operating system name to
1813 ## do this right. When someone cares, they can help us.
1814 fx80-alliant-* )
1815 machine=alliant4 opsys=bsd4-2
1816 ;;
1817 i860-alliant-* )
1818 machine=alliant-2800 opsys=bsd4-3
1819 ;;
1820
1821 ## Alpha (DEC) machines.
1822 alpha*-dec-osf* )
1823 machine=alpha opsys=osf1
1824 # This is needed to find X11R6.1 libraries for certain tests.
1825 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1826 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1827 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1828 # due to non-traditional preprocessing with the current compiler
1829 # defaults. OSF 4 can also have that compiler version, and there
1830 # seems always to have been a usable /usr/bin/cpp.
1831 NON_GNU_CPP=/usr/bin/cpp
1832 case "${canonical}" in
1833 alpha*-dec-osf[5-9]*)
1834 opsys=osf5-0 ;;
1835 esac
1836 ;;
1837
1838 alpha*-*-linux-gnu* )
1839 machine=alpha opsys=gnu-linux
1840 ;;
1841
1842 arm*-*-linux-gnu* )
1843 machine=arm opsys=gnu-linux
1844 ;;
1845
1846 ## Altos 3068
1847 m68*-altos-sysv* )
1848 machine=altos opsys=usg5-2
1849 ;;
1850
1851 ## Amdahl UTS
1852 580-amdahl-sysv* )
1853 machine=amdahl opsys=usg5-2-2
1854 ;;
1855
1856 ## Apollo, Domain/OS
1857 m68*-apollo-* )
1858 machine=apollo opsys=bsd4-3
1859 ;;
1860
1861 ## AT&T 3b2, 3b5, 3b15, 3b20
1862 we32k-att-sysv* )
1863 machine=att3b opsys=usg5-2-2
1864 ;;
1865
1866 ## AT&T 3b1 - The Mighty Unix PC!
1867 m68*-att-sysv* )
1868 machine=7300 opsys=usg5-2-2
1869 ;;
1870
1871 ## Bull dpx20
1872 rs6000-bull-bosx* )
1873 machine=ibmrs6000 opsys=aix3-2
1874 ;;
1875
1876 ## Bull dpx2
1877 m68*-bull-sysv3* )
1878 machine=dpx2 opsys=usg5-3
1879 ;;
1880
1881 ## Bull sps7
1882 m68*-bull-sysv2* )
1883 machine=sps7 opsys=usg5-2
1884 ;;
1885
1886 ## CCI 5/32, 6/32 -- see "Tahoe".
1887
1888 ## Celerity
1889 ## I don't know what configuration name to use for this; config.sub
1890 ## doesn't seem to know anything about it. Hey, Celerity users, get
1891 ## in touch with us!
1892 celerity-celerity-bsd* )
1893 machine=celerity opsys=bsd4-2
1894 ;;
1895
1896 ## Clipper
1897 ## What operating systems does this chip run that Emacs has been
1898 ## tested on?
1899 clipper-* )
1900 machine=clipper
1901 ## We'll use the catch-all code at the bottom to guess the
1902 ## operating system.
1903 ;;
1904
1905 ## Compaq Nonstop
1906 mips-compaq-nonstopux* )
1907 machine=nonstopux opsys=nonstopux
1908 ;;
1909
1910 ## Convex
1911 *-convex-bsd* | *-convex-convexos* )
1912 machine=convex opsys=bsd4-3
1913 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1914 NON_GNU_CPP="cc -E -P"
1915 ;;
1916
1917 ## Cubix QBx/386
1918 i[3456]86-cubix-sysv* )
1919 machine=intel386 opsys=usg5-3
1920 ;;
1921
1922 ## Cydra 5
1923 cydra*-cydrome-sysv* )
1924 machine=cydra5 opsys=usg5-3
1925 ;;
1926
1927 ## Data General AViiON Machines
1928 ## DG changed naming conventions with the release of 5.4.4.10, they
1929 ## dropped the initial 5.4 but left the intervening R. Because of the
1930 ## R this shouldn't conflict with older versions of the OS (which I
1931 ## think were named like dgux4.*). In addition, DG new AViiONs series
1932 ## uses either Motorola M88k or Intel Pentium CPUs.
1933 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1934 machine=aviion opsys=dgux4
1935 ;;
1936 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1937 ## This name is dgux5-4-3 instead of dgux5-4r3
1938 ## to avoid a file name conflict on MSDOS.
1939 machine=aviion opsys=dgux5-4-3
1940 ;;
1941 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1942 machine=aviion opsys=dgux5-4r2
1943 ;;
1944 m88k-dg-dgux* )
1945 machine=aviion opsys=dgux
1946 ;;
1947
1948 ## Data General AViiON Intel (x86) Machines
1949 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1950 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1951 i[345]86-dg-dguxR4* )
1952 machine=aviion-intel opsys=dgux4
1953 ;;
1954
1955 ## DECstations
1956 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1957 machine=pmax opsys=bsd4-2
1958 ;;
1959 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1960 machine=pmax opsys=bsd4-3
1961 ;;
1962 mips-dec-ultrix* )
1963 machine=pmax opsys=ultrix4-3
1964 ;;
1965 mips-dec-osf* )
1966 machine=pmax opsys=osf1
1967 ;;
1968 mips-dec-mach_bsd4.3* )
1969 machine=pmax opsys=mach-bsd4-3
1970 ;;
1971
1972 ## Motorola Delta machines
1973 m68k-motorola-sysv* | m68000-motorola-sysv* )
1974 machine=delta opsys=usg5-3
1975 if test -z "`type gnucc | grep 'not found'`"
1976 then
1977 if test -s /etc/167config
1978 then CC="gnucc -m68040"
1979 else CC="gnucc -m68881"
1980 fi
1981 else
1982 if test -z "`type gcc | grep 'not found'`"
1983 then CC=gcc
1984 else CC=cc
1985 fi
1986 fi
1987 ;;
1988 m88k-motorola-sysv4* )
1989 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1990 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1991 # I hope there are not other 4.0 versions for this machine
1992 # which really need usg5-4 instead.
1993 machine=delta88k opsys=usg5-4-2
1994 ;;
1995 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1996 machine=delta88k opsys=usg5-3
1997 ;;
1998
1999 ## Dual machines
2000 m68*-dual-sysv* )
2001 machine=dual opsys=usg5-2
2002 ;;
2003 m68*-dual-uniplus* )
2004 machine=dual opsys=unipl5-2
2005 ;;
2006
2007 ## Elxsi 6400
2008 elxsi-elxsi-sysv* )
2009 machine=elxsi opsys=usg5-2
2010 ;;
2011
2012 ## Encore machines
2013 ns16k-encore-bsd* )
2014 machine=ns16000 opsys=umax
2015 ;;
2016
2017 ## The GEC 63 - apparently, this port isn't really finished yet.
2018 # I'm sure we finished off the last of the machines, though. -- fx
2019
2020 ## Gould Power Node and NP1
2021 pn-gould-bsd4.2* )
2022 machine=gould opsys=bsd4-2
2023 ;;
2024 pn-gould-bsd4.3* )
2025 machine=gould opsys=bsd4-3
2026 ;;
2027 np1-gould-bsd* )
2028 machine=gould-np1 opsys=bsd4-3
2029 ;;
2030
2031 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2032 ## as far as Emacs is concerned).
2033 m88k-harris-cxux* )
2034 # Build needs to be different on 7.0 and later releases
2035 case "`uname -r`" in
2036 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2037 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2038 esac
2039 NON_GNU_CPP="/lib/cpp"
2040 ;;
2041 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2042 m68k-harris-cxux* )
2043 machine=nh3000 opsys=cxux
2044 ;;
2045 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2046 powerpc-harris-powerunix )
2047 machine=nh6000 opsys=powerunix
2048 NON_GNU_CPP="cc -Xo -E -P"
2049 ;;
2050 ## SR2001/SR2201 running HI-UX/MPP
2051 hppa1.1-hitachi-hiuxmpp* )
2052 machine=sr2k opsys=hiuxmpp
2053 ;;
2054 hppa1.1-hitachi-hiuxwe2* )
2055 machine=sr2k opsys=hiuxwe2
2056 ;;
2057 ## Honeywell XPS100
2058 xps*-honeywell-sysv* )
2059 machine=xps100 opsys=usg5-2
2060 ;;
2061
2062 ## HP 9000 series 200 or 300
2063 m68*-hp-bsd* )
2064 machine=hp9000s300 opsys=bsd4-3
2065 ;;
2066 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2067 m68*-hp-hpux* )
2068 case "`uname -r`" in
2069 ## Someone's system reports A.B8.05 for this.
2070 ## I wonder what other possibilities there are.
2071 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2072 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2073 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2074 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2075 *) machine=hp9000s300 opsys=hpux ;;
2076 esac
2077 ;;
2078
2079 ## HP 9000 series 700 and 800, running HP/UX
2080 hppa*-hp-hpux7* )
2081 machine=hp800 opsys=hpux
2082 ;;
2083 hppa*-hp-hpux8* )
2084 machine=hp800 opsys=hpux8
2085 ;;
2086 hppa*-hp-hpux9shr* )
2087 machine=hp800 opsys=hpux9shr
2088 ;;
2089 hppa*-hp-hpux9* )
2090 machine=hp800 opsys=hpux9
2091 ;;
2092 hppa*-hp-hpux10.2* )
2093 machine=hp800 opsys=hpux10-20
2094 ;;
2095 hppa*-hp-hpux10* )
2096 machine=hp800 opsys=hpux10
2097 ;;
2098 hppa*-hp-hpux1[1-9]* )
2099 machine=hp800 opsys=hpux11
2100 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2101 ;;
2102
2103 hppa*-*-linux-gnu* )
2104 machine=hp800 opsys=gnu-linux
2105 ;;
2106
2107 ## HP 9000 series 700 and 800, running HP/UX
2108 hppa*-hp-hpux* )
2109 ## Cross-compilation? Nah!
2110 case "`uname -r`" in
2111 ## Someone's system reports A.B8.05 for this.
2112 ## I wonder what other possibilities there are.
2113 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2114 *.08.* ) machine=hp800 opsys=hpux8 ;;
2115 *.09.* ) machine=hp800 opsys=hpux9 ;;
2116 *) machine=hp800 opsys=hpux10 ;;
2117 esac
2118 ;;
2119 hppa*-*-nextstep* )
2120 machine=hp800 opsys=nextstep
2121 ;;
2122
2123 ## Orion machines
2124 orion-orion-bsd* )
2125 machine=orion opsys=bsd4-2
2126 ;;
2127 clipper-orion-bsd* )
2128 machine=orion105 opsys=bsd4-2
2129 ;;
2130
2131 ## IBM machines
2132 i[3456]86-ibm-aix1.1* )
2133 machine=ibmps2-aix opsys=usg5-2-2
2134 ;;
2135 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2136 machine=ibmps2-aix opsys=usg5-3
2137 ;;
2138 i370-ibm-aix*)
2139 machine=ibm370aix opsys=usg5-3
2140 ;;
2141 s390-*-linux-gnu* )
2142 machine=ibms390 opsys=gnu-linux
2143 ;;
2144 s390x-*-linux-gnu* )
2145 machine=ibms390x opsys=gnu-linux
2146 ;;
2147 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2148 machine=ibmrs6000 opsys=aix3-1
2149 ;;
2150 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2151 machine=ibmrs6000 opsys=aix3-2-5
2152 ;;
2153 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2154 machine=ibmrs6000 opsys=aix4-1
2155 ;;
2156 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2157 machine=ibmrs6000 opsys=aix4-2
2158 ;;
2159 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2160 machine=ibmrs6000 opsys=aix4-2
2161 ;;
2162 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2163 machine=ibmrs6000 opsys=aix4
2164 ;;
2165 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2166 machine=ibmrs6000 opsys=aix4-1
2167 ;;
2168 rs6000-ibm-aix* | powerpc-ibm-aix* )
2169 machine=ibmrs6000 opsys=aix3-2
2170 ;;
2171 romp-ibm-bsd4.3* )
2172 machine=ibmrt opsys=bsd4-3
2173 ;;
2174 romp-ibm-bsd4.2* )
2175 machine=ibmrt opsys=bsd4-2
2176 ;;
2177 romp-ibm-aos4.3* )
2178 machine=ibmrt opsys=bsd4-3
2179 ;;
2180 romp-ibm-aos4.2* )
2181 machine=ibmrt opsys=bsd4-2
2182 ;;
2183 romp-ibm-aos* )
2184 machine=ibmrt opsys=bsd4-3
2185 ;;
2186 romp-ibm-bsd* )
2187 machine=ibmrt opsys=bsd4-3
2188 ;;
2189 romp-ibm-aix* )
2190 machine=ibmrt-aix opsys=usg5-2-2
2191 ;;
2192
2193 ## Integrated Solutions `Optimum V'
2194 m68*-isi-bsd4.2* )
2195 machine=isi-ov opsys=bsd4-2
2196 ;;
2197 m68*-isi-bsd4.3* )
2198 machine=isi-ov opsys=bsd4-3
2199 ;;
2200
2201 ## Intel 386 machines where we do care about the manufacturer
2202 i[3456]86-intsys-sysv* )
2203 machine=is386 opsys=usg5-2-2
2204 ;;
2205
2206 ## Prime EXL
2207 i[3456]86-prime-sysv* )
2208 machine=i386 opsys=usg5-3
2209 ;;
2210
2211 ## Sequent Symmetry running Dynix
2212 i[3456]86-sequent-bsd* )
2213 machine=symmetry opsys=bsd4-3
2214 ;;
2215
2216 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2217 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2218 machine=sequent-ptx opsys=ptx4
2219 NON_GNU_CPP=/lib/cpp
2220 ;;
2221
2222 ## Sequent Symmetry running DYNIX/ptx
2223 ## Use the old cpp rather than the newer ANSI one.
2224 i[3456]86-sequent-ptx* )
2225 machine=sequent-ptx opsys=ptx
2226 NON_GNU_CPP="/lib/cpp"
2227 ;;
2228
2229 ## ncr machine running svr4.3.
2230 i[3456]86-ncr-sysv4.3 )
2231 machine=ncr386 opsys=usg5-4-3
2232 ;;
2233
2234 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2235 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2236 i[3456]86-ncr-sysv* )
2237 machine=ncr386 opsys=usg5-4-2
2238 ;;
2239
2240 ## Intel Paragon OSF/1
2241 i860-intel-osf1* )
2242 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2243 ;;
2244
2245 ## Intel 860
2246 i860-*-sysv4* )
2247 machine=i860 opsys=usg5-4
2248 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2249 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2250 ;;
2251
2252 ## Macintosh PowerPC
2253 powerpc*-*-linux-gnu* )
2254 machine=macppc opsys=gnu-linux
2255 ;;
2256
2257 ## Masscomp machines
2258 m68*-masscomp-rtu* )
2259 machine=masscomp opsys=rtu
2260 ;;
2261
2262 ## Megatest machines
2263 m68*-megatest-bsd* )
2264 machine=mega68 opsys=bsd4-2
2265 ;;
2266
2267 ## Workstations sold by MIPS
2268 ## This is not necessarily all workstations using the MIPS processor -
2269 ## Irises are produced by SGI, and DECstations by DEC.
2270
2271 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2272 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2273 ## it gives for choosing between the alternatives seems to be "Use
2274 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2275 ## the BSD world." I'll assume that these are instructions for
2276 ## handling two odd situations, and that every other situation
2277 ## should use mips.h and usg5-2-2, they being listed first.
2278 mips-mips-usg* )
2279 machine=mips4
2280 ## Fall through to the general code at the bottom to decide on the OS.
2281 ;;
2282 mips-mips-riscos4* )
2283 machine=mips4 opsys=bsd4-3
2284 NON_GNU_CC="cc -systype bsd43"
2285 NON_GNU_CPP="cc -systype bsd43 -E"
2286 ;;
2287 mips-mips-riscos5* )
2288 machine=mips4 opsys=riscos5
2289 NON_GNU_CC="cc -systype bsd43"
2290 NON_GNU_CPP="cc -systype bsd43 -E"
2291 ;;
2292 mips-mips-bsd* )
2293 machine=mips opsys=bsd4-3
2294 ;;
2295 mips-mips-* )
2296 machine=mips opsys=usg5-2-2
2297 ;;
2298
2299 ## NeXT
2300 m68*-next-* | m68k-*-nextstep* )
2301 machine=m68k opsys=nextstep
2302 ;;
2303
2304 ## The complete machine from National Semiconductor
2305 ns32k-ns-genix* )
2306 machine=ns32000 opsys=usg5-2
2307 ;;
2308
2309 ## NCR machines
2310 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2311 machine=tower32 opsys=usg5-2-2
2312 ;;
2313 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2314 machine=tower32v3 opsys=usg5-3
2315 ;;
2316
2317 ## NEC EWS4800
2318 mips-nec-sysv4*)
2319 machine=ews4800 opsys=ux4800
2320 ;;
2321
2322 ## Nixdorf Targon 31
2323 m68*-nixdorf-sysv* )
2324 machine=targon31 opsys=usg5-2-2
2325 ;;
2326
2327 ## Nu (TI or LMI)
2328 m68*-nu-sysv* )
2329 machine=nu opsys=usg5-2
2330 ;;
2331
2332 ## Plexus
2333 m68*-plexus-sysv* )
2334 machine=plexus opsys=usg5-2
2335 ;;
2336
2337 ## Pyramid machines
2338 ## I don't really have any idea what sort of processor the Pyramid has,
2339 ## so I'm assuming it is its own architecture.
2340 pyramid-pyramid-bsd* )
2341 machine=pyramid opsys=bsd4-2
2342 ;;
2343
2344 ## Sequent Balance
2345 ns32k-sequent-bsd4.2* )
2346 machine=sequent opsys=bsd4-2
2347 ;;
2348 ns32k-sequent-bsd4.3* )
2349 machine=sequent opsys=bsd4-3
2350 ;;
2351
2352 ## Siemens Nixdorf
2353 mips-siemens-sysv* | mips-sni-sysv*)
2354 machine=mips-siemens opsys=usg5-4
2355 NON_GNU_CC=/usr/ccs/bin/cc
2356 NON_GNU_CPP=/usr/ccs/lib/cpp
2357 ;;
2358
2359 ## Silicon Graphics machines
2360 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2361 m68*-sgi-iris3.5* )
2362 machine=irist opsys=iris3-5
2363 ;;
2364 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2365 machine=irist opsys=iris3-6
2366 ;;
2367 ## Iris 4D
2368 mips-sgi-irix3* )
2369 machine=iris4d opsys=irix3-3
2370 ;;
2371 mips-sgi-irix4* )
2372 machine=iris4d opsys=irix4-0
2373 ;;
2374 mips-sgi-irix6.5 )
2375 machine=iris4d opsys=irix6-5
2376 # Without defining _LANGUAGE_C, things get masked out in the headers
2377 # so that, for instance, grepping for `free' in stdlib.h fails and
2378 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2379 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2380 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2381 ;;
2382 mips-sgi-irix6* )
2383 machine=iris4d opsys=irix6-0
2384 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2385 # but presumably it does no harm.
2386 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2387 # -32 probably isn't necessary in later v.6s -- anyone know which?
2388 NON_GCC_TEST_OPTIONS=-32
2389 ;;
2390 mips-sgi-irix5.[01]* )
2391 machine=iris4d opsys=irix5-0
2392 ;;
2393 mips-sgi-irix5* | mips-sgi-irix* )
2394 machine=iris4d opsys=irix5-2
2395 ;;
2396
2397 ## SONY machines
2398 m68*-sony-bsd4.2* )
2399 machine=news opsys=bsd4-2
2400 ;;
2401 m68*-sony-bsd4.3* )
2402 machine=news opsys=bsd4-3
2403 ;;
2404 m68*-sony-newsos3* | m68*-sony-news3*)
2405 machine=news opsys=bsd4-3
2406 ;;
2407 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2408 machine=news-risc opsys=bsd4-3
2409 ;;
2410 mips-sony-newsos6* )
2411 machine=news-r6 opsys=newsos6
2412 ;;
2413 mips-sony-news* )
2414 machine=news-risc opsys=newsos5
2415 ;;
2416
2417 ## Stride
2418 m68*-stride-sysv* )
2419 machine=stride opsys=usg5-2
2420 ;;
2421
2422 ## Suns
2423 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2424 machine=sparc opsys=gnu-linux
2425 ;;
2426
2427 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2428 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2429 | rs6000-*-solaris2*)
2430 case "${canonical}" in
2431 m68*-sunos1* ) machine=sun1 ;;
2432 m68*-sunos2* ) machine=sun2 ;;
2433 m68* ) machine=sun3 ;;
2434 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2435 i[3456]86-*-* ) machine=intel386 ;;
2436 powerpcle* ) machine=powerpcle ;;
2437 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2438 sparc* ) machine=sparc ;;
2439 * ) unported=yes ;;
2440 esac
2441 case "${canonical}" in
2442 ## The Sun386 didn't get past 4.0.
2443 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2444 *-sunos4.0* ) opsys=sunos4-0 ;;
2445 *-sunos4.1.[3-9]*noshare )
2446 ## This name is sunos413 instead of sunos4-1-3
2447 ## to avoid a file name conflict on MSDOS.
2448 opsys=sunos413
2449 NON_GNU_CPP=/usr/lib/cpp
2450 NON_GCC_TEST_OPTIONS=-Bstatic
2451 GCC_TEST_OPTIONS=-static
2452 ;;
2453 *-sunos4.1.[3-9]* | *-sunos4shr*)
2454 opsys=sunos4shr
2455 NON_GNU_CPP=/usr/lib/cpp
2456 ;;
2457 *-sunos4* | *-sunos )
2458 opsys=sunos4-1
2459 NON_GCC_TEST_OPTIONS=-Bstatic
2460 GCC_TEST_OPTIONS=-static
2461 ;;
2462 *-sunos5.3* | *-solaris2.3* )
2463 opsys=sol2-3
2464 NON_GNU_CPP=/usr/ccs/lib/cpp
2465 ;;
2466 *-sunos5.4* | *-solaris2.4* )
2467 opsys=sol2-4
2468 NON_GNU_CPP=/usr/ccs/lib/cpp
2469 RANLIB="ar -ts"
2470 ;;
2471 *-sunos5.5* | *-solaris2.5* )
2472 opsys=sol2-5
2473 NON_GNU_CPP=/usr/ccs/lib/cpp
2474 RANLIB="ar -ts"
2475 ;;
2476 *-sunos5.6* | *-solaris2.6* )
2477 opsys=sol2-6
2478 NON_GNU_CPP=/usr/ccs/lib/cpp
2479 RANLIB="ar -ts"
2480 ;;
2481 *-sunos5* | *-solaris* )
2482 opsys=sol2-6
2483 NON_GNU_CPP=/usr/ccs/lib/cpp
2484 ;;
2485 * ) opsys=bsd4-2 ;;
2486 esac
2487 ## Watch out for a compiler that we know will not work.
2488 case "${canonical}" in
2489 *-solaris* | *-sunos5* )
2490 if [ "x$CC" = x/usr/ucb/cc ]; then
2491 ## /usr/ucb/cc doesn't work;
2492 ## we should find some other compiler that does work.
2493 unset CC
2494 fi
2495 ;;
2496 *) ;;
2497 esac
2498 ;;
2499 sparc-*-nextstep* )
2500 machine=sparc opsys=nextstep
2501 ;;
2502
2503 ## Tadpole 68k
2504 m68*-tadpole-sysv* )
2505 machine=tad68k opsys=usg5-3
2506 ;;
2507
2508 ## Tahoe machines
2509 tahoe-tahoe-bsd4.2* )
2510 machine=tahoe opsys=bsd4-2
2511 ;;
2512 tahoe-tahoe-bsd4.3* )
2513 machine=tahoe opsys=bsd4-3
2514 ;;
2515
2516 ## Tandem Integrity S2
2517 mips-tandem-sysv* )
2518 machine=tandem-s2 opsys=usg5-3
2519 ;;
2520
2521 ## Tektronix XD88
2522 m88k-tektronix-sysv3* )
2523 machine=tekxd88 opsys=usg5-3
2524 ;;
2525
2526 ## Tektronix 16000 box (6130?)
2527 ns16k-tektronix-bsd* )
2528 machine=ns16000 opsys=bsd4-2
2529 ;;
2530 ## Tektronix 4300
2531 ## src/m/tek4300.h hints that this is a m68k machine.
2532 m68*-tektronix-bsd* )
2533 machine=tek4300 opsys=bsd4-3
2534 ;;
2535
2536 ## Titan P2 or P3
2537 ## We seem to have lost the machine-description file titan.h!
2538 titan-titan-sysv* )
2539 machine=titan opsys=usg5-3
2540 ;;
2541
2542 ## Ustation E30 (SS5E)
2543 m68*-unisys-uniplus* )
2544 machine=ustation opsystem=unipl5-2
2545 ;;
2546
2547 ## Vaxen.
2548 vax-dec-* )
2549 machine=vax
2550 case "${canonical}" in
2551 *-bsd4.1* ) opsys=bsd4-1 ;;
2552 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2553 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2554 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2555 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2556 *-vms* ) opsys=vms ;;
2557 * ) unported=yes
2558 esac
2559 ;;
2560
2561 ## Whitechapel MG1
2562 ns16k-whitechapel-* )
2563 machine=mg1
2564 ## We don't know what sort of OS runs on these; we'll let the
2565 ## operating system guessing code below try.
2566 ;;
2567
2568 ## Wicat
2569 m68*-wicat-sysv* )
2570 machine=wicat opsys=usg5-2
2571 ;;
2572
2573 ## IA-64
2574 ia64*-*-linux* )
2575 machine=ia64 opsys=gnu-linux
2576 ;;
2577
2578 ## Intel 386 machines where we don't care about the manufacturer
2579 i[3456]86-*-* )
2580 machine=intel386
2581 case "${canonical}" in
2582 *-cygwin ) opsys=cygwin ;;
2583 *-darwin* ) opsys=darwin
2584 CPP="${CC-cc} -E -no-cpp-precomp"
2585 ;;
2586 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2587 *-isc2.2* ) opsys=isc2-2 ;;
2588 *-isc4.0* ) opsys=isc4-0 ;;
2589 *-isc4.* ) opsys=isc4-1
2590 GCC_TEST_OPTIONS=-posix
2591 NON_GCC_TEST_OPTIONS=-Xp
2592 ;;
2593 *-isc* ) opsys=isc3-0 ;;
2594 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2595 *-esix* ) opsys=esix ;;
2596 *-xenix* ) opsys=xenix ;;
2597 *-linux-gnu* ) opsys=gnu-linux ;;
2598 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2599 *-sco3.2v5* ) opsys=sco5
2600 NON_GNU_CPP=/lib/cpp
2601 # Prevent -belf from being passed to $CPP.
2602 # /lib/cpp does not accept it.
2603 OVERRIDE_CPPFLAGS=" "
2604 ;;
2605 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2606 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2607 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2608 *-386bsd* ) opsys=386bsd ;;
2609 *-nextstep* ) opsys=nextstep ;;
2610 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2611 esac
2612 ;;
2613
2614 ## m68k Linux-based GNU system
2615 m68k-*-linux-gnu* )
2616 machine=m68k opsys=gnu-linux
2617 ;;
2618
2619 ## Mips Linux-based GNU system
2620 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2621 machine=mips opsys=gnu-linux
2622 ;;
2623
2624 ## UXP/DS
2625 sparc-fujitsu-sysv4* )
2626 machine=sparc opsys=uxpds
2627 NON_GNU_CPP=/usr/ccs/lib/cpp
2628 RANLIB="ar -ts"
2629 ;;
2630
2631 ## UXP/V
2632 f301-fujitsu-uxpv4.1)
2633 machine=f301 opsys=uxpv
2634 ;;
2635
2636 ## Darwin / Mac OS X
2637 powerpc-apple-darwin* )
2638 machine=powermac opsys=darwin
2639 # Define CPP as follows to make autoconf work correctly.
2640 CPP="${CC-cc} -E -no-cpp-precomp"
2641 # Use fink packages if available.
2642 if test -d /sw/include && test -d /sw/lib; then
2643 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2644 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2645 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2646 fi
2647 ;;
2648
2649 ## AMD x86-64 Linux-based GNU system
2650 x86_64-*-linux-gnu* )
2651 machine=amdx86-64 opsys=gnu-linux
2652 ;;
2653
2654 * )
2655 unported=yes
2656 ;;
2657 esac
2658
2659 ### If the code above didn't choose an operating system, just choose
2660 ### an operating system based on the configuration name. You really
2661 ### only want to use this when you have no idea what the right
2662 ### operating system is; if you know what operating systems a machine
2663 ### runs, it's cleaner to make it explicit in the case statement
2664 ### above.
2665 if test x"${opsys}" = x; then
2666 case "${canonical}" in
2667 *-gnu* ) opsys=gnu ;;
2668 *-bsd4.[01] ) opsys=bsd4-1 ;;
2669 *-bsd4.2 ) opsys=bsd4-2 ;;
2670 *-bsd4.3 ) opsys=bsd4-3 ;;
2671 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2672 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2673 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2674 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2675 *-sysv4.2uw* ) opsys=unixware ;;
2676 *-sysv5uw* ) opsys=unixware ;;
2677 *-sysv5OpenUNIX* ) opsys=unixware ;;
2678 *-sysv4.1* | *-sysvr4.1* )
2679 NON_GNU_CPP=/usr/lib/cpp
2680 opsys=usg5-4 ;;
2681 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2682 if [ x$NON_GNU_CPP = x ]; then
2683 if [ -f /usr/ccs/lib/cpp ]; then
2684 NON_GNU_CPP=/usr/ccs/lib/cpp
2685 else
2686 NON_GNU_CPP=/lib/cpp
2687 fi
2688 fi
2689 opsys=usg5-4-2 ;;
2690 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2691 * )
2692 unported=yes
2693 ;;
2694 esac
2695 fi
2696
2697
2698
2699 if test $unported = yes; then
2700 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2701 Check \`etc/MACHINES' for recognized configuration names." >&5
2702 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2703 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2704 { (exit 1); exit 1; }; }
2705 fi
2706
2707 machfile="m/${machine}.h"
2708 opsysfile="s/${opsys}.h"
2709
2710
2711 #### Choose a compiler.
2712 test -n "$CC" && cc_specified=yes
2713
2714 # Save the value of CFLAGS that the user specified.
2715 SPECIFIED_CFLAGS="$CFLAGS"
2716
2717 case ${with_gcc} in
2718 "yes" ) CC="gcc" GCC=yes ;;
2719 "no" ) : ${CC=cc} ;;
2720 * )
2721 esac
2722 ac_ext=c
2723 ac_cpp='$CPP $CPPFLAGS'
2724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727 if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2729 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2730 echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2732 if test "${ac_cv_prog_CC+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2748 fi
2749 done
2750 done
2751
2752 fi
2753 fi
2754 CC=$ac_cv_prog_CC
2755 if test -n "$CC"; then
2756 echo "$as_me:$LINENO: result: $CC" >&5
2757 echo "${ECHO_T}$CC" >&6
2758 else
2759 echo "$as_me:$LINENO: result: no" >&5
2760 echo "${ECHO_T}no" >&6
2761 fi
2762
2763 fi
2764 if test -z "$ac_cv_prog_CC"; then
2765 ac_ct_CC=$CC
2766 # Extract the first word of "gcc", so it can be a program name with args.
2767 set dummy gcc; ac_word=$2
2768 echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2770 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773 if test -n "$ac_ct_CC"; then
2774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_ac_ct_CC="gcc"
2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787 done
2788 done
2789
2790 fi
2791 fi
2792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2793 if test -n "$ac_ct_CC"; then
2794 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2795 echo "${ECHO_T}$ac_ct_CC" >&6
2796 else
2797 echo "$as_me:$LINENO: result: no" >&5
2798 echo "${ECHO_T}no" >&6
2799 fi
2800
2801 CC=$ac_ct_CC
2802 else
2803 CC="$ac_cv_prog_CC"
2804 fi
2805
2806 if test -z "$CC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2809 set dummy ${ac_tool_prefix}cc; ac_word=$2
2810 echo "$as_me:$LINENO: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2812 if test "${ac_cv_prog_CC+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC="$CC" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_CC="${ac_tool_prefix}cc"
2826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829 done
2830 done
2831
2832 fi
2833 fi
2834 CC=$ac_cv_prog_CC
2835 if test -n "$CC"; then
2836 echo "$as_me:$LINENO: result: $CC" >&5
2837 echo "${ECHO_T}$CC" >&6
2838 else
2839 echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6
2841 fi
2842
2843 fi
2844 if test -z "$ac_cv_prog_CC"; then
2845 ac_ct_CC=$CC
2846 # Extract the first word of "cc", so it can be a program name with args.
2847 set dummy cc; ac_word=$2
2848 echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853 if test -n "$ac_ct_CC"; then
2854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2858 do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_ac_ct_CC="cc"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867 done
2868 done
2869
2870 fi
2871 fi
2872 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2873 if test -n "$ac_ct_CC"; then
2874 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2875 echo "${ECHO_T}$ac_ct_CC" >&6
2876 else
2877 echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2879 fi
2880
2881 CC=$ac_ct_CC
2882 else
2883 CC="$ac_cv_prog_CC"
2884 fi
2885
2886 fi
2887 if test -z "$CC"; then
2888 # Extract the first word of "cc", so it can be a program name with args.
2889 set dummy cc; ac_word=$2
2890 echo "$as_me:$LINENO: checking for $ac_word" >&5
2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892 if test "${ac_cv_prog_CC+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895 if test -n "$CC"; then
2896 ac_cv_prog_CC="$CC" # Let the user override the test.
2897 else
2898 ac_prog_rejected=no
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2907 ac_prog_rejected=yes
2908 continue
2909 fi
2910 ac_cv_prog_CC="cc"
2911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 break 2
2913 fi
2914 done
2915 done
2916
2917 if test $ac_prog_rejected = yes; then
2918 # We found a bogon in the path, so make sure we never use it.
2919 set dummy $ac_cv_prog_CC
2920 shift
2921 if test $# != 0; then
2922 # We chose a different compiler from the bogus one.
2923 # However, it has the same basename, so the bogon will be chosen
2924 # first if we set CC to just the basename; use the full file name.
2925 shift
2926 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2927 fi
2928 fi
2929 fi
2930 fi
2931 CC=$ac_cv_prog_CC
2932 if test -n "$CC"; then
2933 echo "$as_me:$LINENO: result: $CC" >&5
2934 echo "${ECHO_T}$CC" >&6
2935 else
2936 echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6
2938 fi
2939
2940 fi
2941 if test -z "$CC"; then
2942 if test -n "$ac_tool_prefix"; then
2943 for ac_prog in cl
2944 do
2945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2947 echo "$as_me:$LINENO: checking for $ac_word" >&5
2948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2949 if test "${ac_cv_prog_CC+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2965 fi
2966 done
2967 done
2968
2969 fi
2970 fi
2971 CC=$ac_cv_prog_CC
2972 if test -n "$CC"; then
2973 echo "$as_me:$LINENO: result: $CC" >&5
2974 echo "${ECHO_T}$CC" >&6
2975 else
2976 echo "$as_me:$LINENO: result: no" >&5
2977 echo "${ECHO_T}no" >&6
2978 fi
2979
2980 test -n "$CC" && break
2981 done
2982 fi
2983 if test -z "$CC"; then
2984 ac_ct_CC=$CC
2985 for ac_prog in cl
2986 do
2987 # Extract the first word of "$ac_prog", so it can be a program name with args.
2988 set dummy $ac_prog; ac_word=$2
2989 echo "$as_me:$LINENO: checking for $ac_word" >&5
2990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2991 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 else
2994 if test -n "$ac_ct_CC"; then
2995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
2999 do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_ac_ct_CC="$ac_prog"
3005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3007 fi
3008 done
3009 done
3010
3011 fi
3012 fi
3013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014 if test -n "$ac_ct_CC"; then
3015 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3016 echo "${ECHO_T}$ac_ct_CC" >&6
3017 else
3018 echo "$as_me:$LINENO: result: no" >&5
3019 echo "${ECHO_T}no" >&6
3020 fi
3021
3022 test -n "$ac_ct_CC" && break
3023 done
3024
3025 CC=$ac_ct_CC
3026 fi
3027
3028 fi
3029
3030
3031 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3032 See \`config.log' for more details." >&5
3033 echo "$as_me: error: no acceptable C compiler found in \$PATH
3034 See \`config.log' for more details." >&2;}
3035 { (exit 1); exit 1; }; }
3036
3037 # Provide some information about the compiler.
3038 echo "$as_me:$LINENO:" \
3039 "checking for C compiler version" >&5
3040 ac_compiler=`set X $ac_compile; echo $2`
3041 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3042 (eval $ac_compiler --version </dev/null >&5) 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }
3046 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3047 (eval $ac_compiler -v </dev/null >&5) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }
3051 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3052 (eval $ac_compiler -V </dev/null >&5) 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }
3056
3057 cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h. */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3063
3064 int
3065 main ()
3066 {
3067
3068 ;
3069 return 0;
3070 }
3071 _ACEOF
3072 ac_clean_files_save=$ac_clean_files
3073 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3074 # Try to create an executable without -o first, disregard a.out.
3075 # It will help us diagnose broken compilers, and finding out an intuition
3076 # of exeext.
3077 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3078 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3079 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3080 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3081 (eval $ac_link_default) 2>&5
3082 ac_status=$?
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; then
3085 # Find the output, starting from the most likely. This scheme is
3086 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3087 # resort.
3088
3089 # Be careful to initialize this variable, since it used to be cached.
3090 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3091 ac_cv_exeext=
3092 # b.out is created by i960 compilers.
3093 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3094 do
3095 test -f "$ac_file" || continue
3096 case $ac_file in
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3098 ;;
3099 conftest.$ac_ext )
3100 # This is the source file.
3101 ;;
3102 [ab].out )
3103 # We found the default executable, but exeext='' is most
3104 # certainly right.
3105 break;;
3106 *.* )
3107 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3108 # FIXME: I believe we export ac_cv_exeext for Libtool,
3109 # but it would be cool to find out if it's true. Does anybody
3110 # maintain Libtool? --akim.
3111 export ac_cv_exeext
3112 break;;
3113 * )
3114 break;;
3115 esac
3116 done
3117 else
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3120
3121 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3122 See \`config.log' for more details." >&5
3123 echo "$as_me: error: C compiler cannot create executables
3124 See \`config.log' for more details." >&2;}
3125 { (exit 77); exit 77; }; }
3126 fi
3127
3128 ac_exeext=$ac_cv_exeext
3129 echo "$as_me:$LINENO: result: $ac_file" >&5
3130 echo "${ECHO_T}$ac_file" >&6
3131
3132 # Check the compiler produces executables we can run. If not, either
3133 # the compiler is broken, or we cross compile.
3134 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3135 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3136 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3137 # If not cross compiling, check that we can run a simple program.
3138 if test "$cross_compiling" != yes; then
3139 if { ac_try='./$ac_file'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 (eval $ac_try) 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 cross_compiling=no
3146 else
3147 if test "$cross_compiling" = maybe; then
3148 cross_compiling=yes
3149 else
3150 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3151 If you meant to cross compile, use \`--host'.
3152 See \`config.log' for more details." >&5
3153 echo "$as_me: error: cannot run C compiled programs.
3154 If you meant to cross compile, use \`--host'.
3155 See \`config.log' for more details." >&2;}
3156 { (exit 1); exit 1; }; }
3157 fi
3158 fi
3159 fi
3160 echo "$as_me:$LINENO: result: yes" >&5
3161 echo "${ECHO_T}yes" >&6
3162
3163 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3164 ac_clean_files=$ac_clean_files_save
3165 # Check the compiler produces executables we can run. If not, either
3166 # the compiler is broken, or we cross compile.
3167 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3168 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3169 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3170 echo "${ECHO_T}$cross_compiling" >&6
3171
3172 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3173 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3175 (eval $ac_link) 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; then
3179 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3180 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3181 # work properly (i.e., refer to `conftest.exe'), while it won't with
3182 # `rm'.
3183 for ac_file in conftest.exe conftest conftest.*; do
3184 test -f "$ac_file" || continue
3185 case $ac_file in
3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3187 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3188 export ac_cv_exeext
3189 break;;
3190 * ) break;;
3191 esac
3192 done
3193 else
3194 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3195 See \`config.log' for more details." >&5
3196 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3197 See \`config.log' for more details." >&2;}
3198 { (exit 1); exit 1; }; }
3199 fi
3200
3201 rm -f conftest$ac_cv_exeext
3202 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3203 echo "${ECHO_T}$ac_cv_exeext" >&6
3204
3205 rm -f conftest.$ac_ext
3206 EXEEXT=$ac_cv_exeext
3207 ac_exeext=$EXEEXT
3208 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3209 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3210 if test "${ac_cv_objext+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213 cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h. */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3219
3220 int
3221 main ()
3222 {
3223
3224 ;
3225 return 0;
3226 }
3227 _ACEOF
3228 rm -f conftest.o conftest.obj
3229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3230 (eval $ac_compile) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; then
3234 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3235 case $ac_file in
3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3237 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3238 break;;
3239 esac
3240 done
3241 else
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3244
3245 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3246 See \`config.log' for more details." >&5
3247 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3248 See \`config.log' for more details." >&2;}
3249 { (exit 1); exit 1; }; }
3250 fi
3251
3252 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3253 fi
3254 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3255 echo "${ECHO_T}$ac_cv_objext" >&6
3256 OBJEXT=$ac_cv_objext
3257 ac_objext=$OBJEXT
3258 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3259 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3260 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263 cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h. */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3269
3270 int
3271 main ()
3272 {
3273 #ifndef __GNUC__
3274 choke me
3275 #endif
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>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try='test -z "$ac_c_werror_flag"
3291 || test ! -s conftest.err'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 (eval $ac_try) 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; } &&
3297 { ac_try='test -s conftest.$ac_objext'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 (eval $ac_try) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 ac_compiler_gnu=yes
3304 else
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308 ac_compiler_gnu=no
3309 fi
3310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3312
3313 fi
3314 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3315 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3316 GCC=`test $ac_compiler_gnu = yes && echo yes`
3317 ac_test_CFLAGS=${CFLAGS+set}
3318 ac_save_CFLAGS=$CFLAGS
3319 CFLAGS="-g"
3320 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3321 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3322 if test "${ac_cv_prog_cc_g+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325 cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h. */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3331
3332 int
3333 main ()
3334 {
3335
3336 ;
3337 return 0;
3338 }
3339 _ACEOF
3340 rm -f conftest.$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342 (eval $ac_compile) 2>conftest.er1
3343 ac_status=$?
3344 grep -v '^ *+' conftest.er1 >conftest.err
3345 rm -f conftest.er1
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } &&
3349 { ac_try='test -z "$ac_c_werror_flag"
3350 || test ! -s conftest.err'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; } &&
3356 { ac_try='test -s conftest.$ac_objext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 (eval $ac_try) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 ac_cv_prog_cc_g=yes
3363 else
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367 ac_cv_prog_cc_g=no
3368 fi
3369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3370 fi
3371 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3372 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3373 if test "$ac_test_CFLAGS" = set; then
3374 CFLAGS=$ac_save_CFLAGS
3375 elif test $ac_cv_prog_cc_g = yes; then
3376 if test "$GCC" = yes; then
3377 CFLAGS="-g -O2"
3378 else
3379 CFLAGS="-g"
3380 fi
3381 else
3382 if test "$GCC" = yes; then
3383 CFLAGS="-O2"
3384 else
3385 CFLAGS=
3386 fi
3387 fi
3388 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3389 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3390 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393 ac_cv_prog_cc_stdc=no
3394 ac_save_CC=$CC
3395 cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h. */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3401 #include <stdarg.h>
3402 #include <stdio.h>
3403 #include <sys/types.h>
3404 #include <sys/stat.h>
3405 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3406 struct buf { int x; };
3407 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3408 static char *e (p, i)
3409 char **p;
3410 int i;
3411 {
3412 return p[i];
3413 }
3414 static char *f (char * (*g) (char **, int), char **p, ...)
3415 {
3416 char *s;
3417 va_list v;
3418 va_start (v,p);
3419 s = g (p, va_arg (v,int));
3420 va_end (v);
3421 return s;
3422 }
3423
3424 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3425 function prototypes and stuff, but not '\xHH' hex character constants.
3426 These don't provoke an error unfortunately, instead are silently treated
3427 as 'x'. The following induces an error, until -std1 is added to get
3428 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3429 array size at least. It's necessary to write '\x00'==0 to get something
3430 that's true only with -std1. */
3431 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3432
3433 int test (int i, double x);
3434 struct s1 {int (*f) (int a);};
3435 struct s2 {int (*f) (double a);};
3436 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3437 int argc;
3438 char **argv;
3439 int
3440 main ()
3441 {
3442 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3443 ;
3444 return 0;
3445 }
3446 _ACEOF
3447 # Don't try gcc -ansi; that turns off useful extensions and
3448 # breaks some systems' header files.
3449 # AIX -qlanglvl=ansi
3450 # Ultrix and OSF/1 -std1
3451 # HP-UX 10.20 and later -Ae
3452 # HP-UX older versions -Aa -D_HPUX_SOURCE
3453 # SVR4 -Xc -D__EXTENSIONS__
3454 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3455 do
3456 CC="$ac_save_CC $ac_arg"
3457 rm -f conftest.$ac_objext
3458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459 (eval $ac_compile) 2>conftest.er1
3460 ac_status=$?
3461 grep -v '^ *+' conftest.er1 >conftest.err
3462 rm -f conftest.er1
3463 cat conftest.err >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try='test -z "$ac_c_werror_flag"
3467 || test ! -s conftest.err'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; } &&
3473 { ac_try='test -s conftest.$ac_objext'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 (eval $ac_try) 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3479 ac_cv_prog_cc_stdc=$ac_arg
3480 break
3481 else
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 fi
3486 rm -f conftest.err conftest.$ac_objext
3487 done
3488 rm -f conftest.$ac_ext conftest.$ac_objext
3489 CC=$ac_save_CC
3490
3491 fi
3492
3493 case "x$ac_cv_prog_cc_stdc" in
3494 x|xno)
3495 echo "$as_me:$LINENO: result: none needed" >&5
3496 echo "${ECHO_T}none needed" >&6 ;;
3497 *)
3498 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3499 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3500 CC="$CC $ac_cv_prog_cc_stdc" ;;
3501 esac
3502
3503 # Some people use a C++ compiler to compile C. Since we use `exit',
3504 # in C++ we need to declare it. In case someone uses the same compiler
3505 # for both compiling C and C++ we need to have the C++ compiler decide
3506 # the declaration of exit, since it's the most demanding environment.
3507 cat >conftest.$ac_ext <<_ACEOF
3508 #ifndef __cplusplus
3509 choke me
3510 #endif
3511 _ACEOF
3512 rm -f conftest.$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 for ac_declaration in \
3535 '' \
3536 'extern "C" void std::exit (int) throw (); using std::exit;' \
3537 'extern "C" void std::exit (int); using std::exit;' \
3538 'extern "C" void exit (int) throw ();' \
3539 'extern "C" void exit (int);' \
3540 'void exit (int);'
3541 do
3542 cat >conftest.$ac_ext <<_ACEOF
3543 /* confdefs.h. */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3548 $ac_declaration
3549 #include <stdlib.h>
3550 int
3551 main ()
3552 {
3553 exit (42);
3554 ;
3555 return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.$ac_objext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560 (eval $ac_compile) 2>conftest.er1
3561 ac_status=$?
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try='test -z "$ac_c_werror_flag"
3568 || test ! -s conftest.err'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 (eval $ac_try) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; } &&
3574 { ac_try='test -s conftest.$ac_objext'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3580 :
3581 else
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585 continue
3586 fi
3587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3588 cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h. */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 $ac_declaration
3595 int
3596 main ()
3597 {
3598 exit (42);
3599 ;
3600 return 0;
3601 }
3602 _ACEOF
3603 rm -f conftest.$ac_objext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605 (eval $ac_compile) 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } &&
3612 { ac_try='test -z "$ac_c_werror_flag"
3613 || test ! -s conftest.err'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 (eval $ac_try) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; } &&
3619 { ac_try='test -s conftest.$ac_objext'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 (eval $ac_try) 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3625 break
3626 else
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3629
3630 fi
3631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3632 done
3633 rm -f conftest*
3634 if test -n "$ac_declaration"; then
3635 echo '#ifdef __cplusplus' >>confdefs.h
3636 echo $ac_declaration >>confdefs.h
3637 echo '#endif' >>confdefs.h
3638 fi
3639
3640 else
3641 echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3643
3644 fi
3645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652
3653 # On Suns, sometimes $CPP names a directory.
3654 if test -n "$CPP" && test -d "$CPP"; then
3655 CPP=
3656 fi
3657
3658 #### Some systems specify a CPP to use unless we are using GCC.
3659 #### Now that we know whether we are using GCC, we can decide whether
3660 #### to use that one.
3661 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3662 then
3663 CPP="$NON_GNU_CPP"
3664 fi
3665
3666 #### Some systems specify a CC to use unless we are using GCC.
3667 #### Now that we know whether we are using GCC, we can decide whether
3668 #### to use that one.
3669 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3670 test x$cc_specified != xyes
3671 then
3672 CC="$NON_GNU_CC"
3673 fi
3674
3675 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3676 then
3677 CC="$CC $GCC_TEST_OPTIONS"
3678 fi
3679
3680 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3681 then
3682 CC="$CC $NON_GCC_TEST_OPTIONS"
3683 fi
3684
3685
3686 ac_ext=c
3687 ac_cpp='$CPP $CPPFLAGS'
3688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3692 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3693 # On Suns, sometimes $CPP names a directory.
3694 if test -n "$CPP" && test -d "$CPP"; then
3695 CPP=
3696 fi
3697 if test -z "$CPP"; then
3698 if test "${ac_cv_prog_CPP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 # Double quotes because CPP needs to be expanded
3702 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3703 do
3704 ac_preproc_ok=false
3705 for ac_c_preproc_warn_flag in '' yes
3706 do
3707 # Use a header file that comes with gcc, so configuring glibc
3708 # with a fresh cross-compiler works.
3709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3710 # <limits.h> exists even on freestanding compilers.
3711 # On the NeXT, cc -E runs the code through the compiler's parser,
3712 # not just through cpp. "Syntax error" is here to catch this case.
3713 cat >conftest.$ac_ext <<_ACEOF
3714 /* confdefs.h. */
3715 _ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3719 #ifdef __STDC__
3720 # include <limits.h>
3721 #else
3722 # include <assert.h>
3723 #endif
3724 Syntax error
3725 _ACEOF
3726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3728 ac_status=$?
3729 grep -v '^ *+' conftest.er1 >conftest.err
3730 rm -f conftest.er1
3731 cat conftest.err >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } >/dev/null; then
3734 if test -s conftest.err; then
3735 ac_cpp_err=$ac_c_preproc_warn_flag
3736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3737 else
3738 ac_cpp_err=
3739 fi
3740 else
3741 ac_cpp_err=yes
3742 fi
3743 if test -z "$ac_cpp_err"; then
3744 :
3745 else
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3748
3749 # Broken: fails on valid input.
3750 continue
3751 fi
3752 rm -f conftest.err conftest.$ac_ext
3753
3754 # OK, works on sane cases. Now check whether non-existent headers
3755 # can be detected and how.
3756 cat >conftest.$ac_ext <<_ACEOF
3757 /* confdefs.h. */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3762 #include <ac_nonexistent.h>
3763 _ACEOF
3764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3766 ac_status=$?
3767 grep -v '^ *+' conftest.er1 >conftest.err
3768 rm -f conftest.er1
3769 cat conftest.err >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } >/dev/null; then
3772 if test -s conftest.err; then
3773 ac_cpp_err=$ac_c_preproc_warn_flag
3774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3775 else
3776 ac_cpp_err=
3777 fi
3778 else
3779 ac_cpp_err=yes
3780 fi
3781 if test -z "$ac_cpp_err"; then
3782 # Broken: success on invalid input.
3783 continue
3784 else
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788 # Passes both tests.
3789 ac_preproc_ok=:
3790 break
3791 fi
3792 rm -f conftest.err conftest.$ac_ext
3793
3794 done
3795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3796 rm -f conftest.err conftest.$ac_ext
3797 if $ac_preproc_ok; then
3798 break
3799 fi
3800
3801 done
3802 ac_cv_prog_CPP=$CPP
3803
3804 fi
3805 CPP=$ac_cv_prog_CPP
3806 else
3807 ac_cv_prog_CPP=$CPP
3808 fi
3809 echo "$as_me:$LINENO: result: $CPP" >&5
3810 echo "${ECHO_T}$CPP" >&6
3811 ac_preproc_ok=false
3812 for ac_c_preproc_warn_flag in '' yes
3813 do
3814 # Use a header file that comes with gcc, so configuring glibc
3815 # with a fresh cross-compiler works.
3816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3817 # <limits.h> exists even on freestanding compilers.
3818 # On the NeXT, cc -E runs the code through the compiler's parser,
3819 # not just through cpp. "Syntax error" is here to catch this case.
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h. */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3826 #ifdef __STDC__
3827 # include <limits.h>
3828 #else
3829 # include <assert.h>
3830 #endif
3831 Syntax error
3832 _ACEOF
3833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } >/dev/null; then
3841 if test -s conftest.err; then
3842 ac_cpp_err=$ac_c_preproc_warn_flag
3843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3844 else
3845 ac_cpp_err=
3846 fi
3847 else
3848 ac_cpp_err=yes
3849 fi
3850 if test -z "$ac_cpp_err"; then
3851 :
3852 else
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856 # Broken: fails on valid input.
3857 continue
3858 fi
3859 rm -f conftest.err conftest.$ac_ext
3860
3861 # OK, works on sane cases. Now check whether non-existent headers
3862 # can be detected and how.
3863 cat >conftest.$ac_ext <<_ACEOF
3864 /* confdefs.h. */
3865 _ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3869 #include <ac_nonexistent.h>
3870 _ACEOF
3871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3873 ac_status=$?
3874 grep -v '^ *+' conftest.er1 >conftest.err
3875 rm -f conftest.er1
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } >/dev/null; then
3879 if test -s conftest.err; then
3880 ac_cpp_err=$ac_c_preproc_warn_flag
3881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3882 else
3883 ac_cpp_err=
3884 fi
3885 else
3886 ac_cpp_err=yes
3887 fi
3888 if test -z "$ac_cpp_err"; then
3889 # Broken: success on invalid input.
3890 continue
3891 else
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3894
3895 # Passes both tests.
3896 ac_preproc_ok=:
3897 break
3898 fi
3899 rm -f conftest.err conftest.$ac_ext
3900
3901 done
3902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3903 rm -f conftest.err conftest.$ac_ext
3904 if $ac_preproc_ok; then
3905 :
3906 else
3907 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3908 See \`config.log' for more details." >&5
3909 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3910 See \`config.log' for more details." >&2;}
3911 { (exit 1); exit 1; }; }
3912 fi
3913
3914 ac_ext=c
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919
3920
3921 echo "$as_me:$LINENO: checking for egrep" >&5
3922 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3923 if test "${ac_cv_prog_egrep+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3927 then ac_cv_prog_egrep='grep -E'
3928 else ac_cv_prog_egrep='egrep'
3929 fi
3930 fi
3931 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3932 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3933 EGREP=$ac_cv_prog_egrep
3934
3935
3936
3937 echo "$as_me:$LINENO: checking for AIX" >&5
3938 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3939 cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h. */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3945 #ifdef _AIX
3946 yes
3947 #endif
3948
3949 _ACEOF
3950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3951 $EGREP "yes" >/dev/null 2>&1; then
3952 echo "$as_me:$LINENO: result: yes" >&5
3953 echo "${ECHO_T}yes" >&6
3954 cat >>confdefs.h <<\_ACEOF
3955 #define _ALL_SOURCE 1
3956 _ACEOF
3957
3958 else
3959 echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3961 fi
3962 rm -f conftest*
3963
3964
3965
3966 cat >>confdefs.h <<\_ACEOF
3967 #define _GNU_SOURCE 1
3968 _ACEOF
3969
3970
3971
3972 ### Use -Wno-pointer-sign if the compiler supports it
3973 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3974 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3975 SAVE_CFLAGS="$CFLAGS"
3976 CFLAGS="$CFLAGS -Wno-pointer-sign"
3977 cat >conftest.$ac_ext <<_ACEOF
3978 /* confdefs.h. */
3979 _ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3983
3984 int
3985 main ()
3986 {
3987
3988 ;
3989 return 0;
3990 }
3991 _ACEOF
3992 rm -f conftest.$ac_objext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>conftest.er1
3995 ac_status=$?
3996 grep -v '^ *+' conftest.er1 >conftest.err
3997 rm -f conftest.er1
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try='test -z "$ac_c_werror_flag"
4002 || test ! -s conftest.err'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 (eval $ac_try) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try='test -s conftest.$ac_objext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 (eval $ac_try) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4014 has_option=yes
4015 else
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4018
4019 has_option=no
4020 fi
4021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4022 if test $has_option = yes; then
4023 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4024 fi
4025 echo "$as_me:$LINENO: result: $has_option" >&5
4026 echo "${ECHO_T}$has_option" >&6
4027 CFLAGS="$SAVE_CFLAGS"
4028 unset has_option
4029 unset SAVE_CFLAGS
4030
4031 #### Some other nice autoconf tests.
4032
4033 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4034 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4035 LN_S=$as_ln_s
4036 if test "$LN_S" = "ln -s"; then
4037 echo "$as_me:$LINENO: result: yes" >&5
4038 echo "${ECHO_T}yes" >&6
4039 else
4040 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4041 echo "${ECHO_T}no, using $LN_S" >&6
4042 fi
4043
4044 ac_ext=c
4045 ac_cpp='$CPP $CPPFLAGS'
4046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4050 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4051 # On Suns, sometimes $CPP names a directory.
4052 if test -n "$CPP" && test -d "$CPP"; then
4053 CPP=
4054 fi
4055 if test -z "$CPP"; then
4056 if test "${ac_cv_prog_CPP+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059 # Double quotes because CPP needs to be expanded
4060 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4061 do
4062 ac_preproc_ok=false
4063 for ac_c_preproc_warn_flag in '' yes
4064 do
4065 # Use a header file that comes with gcc, so configuring glibc
4066 # with a fresh cross-compiler works.
4067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4068 # <limits.h> exists even on freestanding compilers.
4069 # On the NeXT, cc -E runs the code through the compiler's parser,
4070 # not just through cpp. "Syntax error" is here to catch this case.
4071 cat >conftest.$ac_ext <<_ACEOF
4072 /* confdefs.h. */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4077 #ifdef __STDC__
4078 # include <limits.h>
4079 #else
4080 # include <assert.h>
4081 #endif
4082 Syntax error
4083 _ACEOF
4084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } >/dev/null; then
4092 if test -s conftest.err; then
4093 ac_cpp_err=$ac_c_preproc_warn_flag
4094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4095 else
4096 ac_cpp_err=
4097 fi
4098 else
4099 ac_cpp_err=yes
4100 fi
4101 if test -z "$ac_cpp_err"; then
4102 :
4103 else
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 # Broken: fails on valid input.
4108 continue
4109 fi
4110 rm -f conftest.err conftest.$ac_ext
4111
4112 # OK, works on sane cases. Now check whether non-existent headers
4113 # can be detected and how.
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h. */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <ac_nonexistent.h>
4121 _ACEOF
4122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } >/dev/null; then
4130 if test -s conftest.err; then
4131 ac_cpp_err=$ac_c_preproc_warn_flag
4132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4133 else
4134 ac_cpp_err=
4135 fi
4136 else
4137 ac_cpp_err=yes
4138 fi
4139 if test -z "$ac_cpp_err"; then
4140 # Broken: success on invalid input.
4141 continue
4142 else
4143 echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4145
4146 # Passes both tests.
4147 ac_preproc_ok=:
4148 break
4149 fi
4150 rm -f conftest.err conftest.$ac_ext
4151
4152 done
4153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4154 rm -f conftest.err conftest.$ac_ext
4155 if $ac_preproc_ok; then
4156 break
4157 fi
4158
4159 done
4160 ac_cv_prog_CPP=$CPP
4161
4162 fi
4163 CPP=$ac_cv_prog_CPP
4164 else
4165 ac_cv_prog_CPP=$CPP
4166 fi
4167 echo "$as_me:$LINENO: result: $CPP" >&5
4168 echo "${ECHO_T}$CPP" >&6
4169 ac_preproc_ok=false
4170 for ac_c_preproc_warn_flag in '' yes
4171 do
4172 # Use a header file that comes with gcc, so configuring glibc
4173 # with a fresh cross-compiler works.
4174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4175 # <limits.h> exists even on freestanding compilers.
4176 # On the NeXT, cc -E runs the code through the compiler's parser,
4177 # not just through cpp. "Syntax error" is here to catch this case.
4178 cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h. */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4184 #ifdef __STDC__
4185 # include <limits.h>
4186 #else
4187 # include <assert.h>
4188 #endif
4189 Syntax error
4190 _ACEOF
4191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4193 ac_status=$?
4194 grep -v '^ *+' conftest.er1 >conftest.err
4195 rm -f conftest.er1
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } >/dev/null; then
4199 if test -s conftest.err; then
4200 ac_cpp_err=$ac_c_preproc_warn_flag
4201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4202 else
4203 ac_cpp_err=
4204 fi
4205 else
4206 ac_cpp_err=yes
4207 fi
4208 if test -z "$ac_cpp_err"; then
4209 :
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 # Broken: fails on valid input.
4215 continue
4216 fi
4217 rm -f conftest.err conftest.$ac_ext
4218
4219 # OK, works on sane cases. Now check whether non-existent headers
4220 # can be detected and how.
4221 cat >conftest.$ac_ext <<_ACEOF
4222 /* confdefs.h. */
4223 _ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4227 #include <ac_nonexistent.h>
4228 _ACEOF
4229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4231 ac_status=$?
4232 grep -v '^ *+' conftest.er1 >conftest.err
4233 rm -f conftest.er1
4234 cat conftest.err >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } >/dev/null; then
4237 if test -s conftest.err; then
4238 ac_cpp_err=$ac_c_preproc_warn_flag
4239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4240 else
4241 ac_cpp_err=
4242 fi
4243 else
4244 ac_cpp_err=yes
4245 fi
4246 if test -z "$ac_cpp_err"; then
4247 # Broken: success on invalid input.
4248 continue
4249 else
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4252
4253 # Passes both tests.
4254 ac_preproc_ok=:
4255 break
4256 fi
4257 rm -f conftest.err conftest.$ac_ext
4258
4259 done
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.err conftest.$ac_ext
4262 if $ac_preproc_ok; then
4263 :
4264 else
4265 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4266 See \`config.log' for more details." >&5
4267 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4268 See \`config.log' for more details." >&2;}
4269 { (exit 1); exit 1; }; }
4270 fi
4271
4272 ac_ext=c
4273 ac_cpp='$CPP $CPPFLAGS'
4274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277
4278 # Find a good install program. We prefer a C program (faster),
4279 # so one script is as good as another. But avoid the broken or
4280 # incompatible versions:
4281 # SysV /etc/install, /usr/sbin/install
4282 # SunOS /usr/etc/install
4283 # IRIX /sbin/install
4284 # AIX /bin/install
4285 # AmigaOS /C/install, which installs bootblocks on floppy discs
4286 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4287 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4288 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4289 # OS/2's system install, which has a completely different semantic
4290 # ./install, which can be erroneously created by make from ./install.sh.
4291 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4292 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4293 if test -z "$INSTALL"; then
4294 if test "${ac_cv_path_install+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH
4299 do
4300 IFS=$as_save_IFS
4301 test -z "$as_dir" && as_dir=.
4302 # Account for people who put trailing slashes in PATH elements.
4303 case $as_dir/ in
4304 ./ | .// | /cC/* | \
4305 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4306 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4307 /usr/ucb/* ) ;;
4308 *)
4309 # OSF1 and SCO ODT 3.0 have their own names for install.
4310 # Don't use installbsd from OSF since it installs stuff as root
4311 # by default.
4312 for ac_prog in ginstall scoinst install; do
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4315 if test $ac_prog = install &&
4316 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4317 # AIX install. It has an incompatible calling convention.
4318 :
4319 elif test $ac_prog = install &&
4320 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4321 # program-specific install script used by HP pwplus--don't use.
4322 :
4323 else
4324 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4325 break 3
4326 fi
4327 fi
4328 done
4329 done
4330 ;;
4331 esac
4332 done
4333
4334
4335 fi
4336 if test "${ac_cv_path_install+set}" = set; then
4337 INSTALL=$ac_cv_path_install
4338 else
4339 # As a last resort, use the slow shell script. We don't cache a
4340 # path for INSTALL within a source directory, because that will
4341 # break other packages using the cache if that directory is
4342 # removed, or if the path is relative.
4343 INSTALL=$ac_install_sh
4344 fi
4345 fi
4346 echo "$as_me:$LINENO: result: $INSTALL" >&5
4347 echo "${ECHO_T}$INSTALL" >&6
4348
4349 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4350 # It thinks the first close brace ends the variable substitution.
4351 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4352
4353 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4354
4355 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4356
4357 if test "x$RANLIB" = x; then
4358 if test -n "$ac_tool_prefix"; then
4359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4361 echo "$as_me:$LINENO: checking for $ac_word" >&5
4362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4363 if test "${ac_cv_prog_RANLIB+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 if test -n "$RANLIB"; then
4367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380 done
4381 done
4382
4383 fi
4384 fi
4385 RANLIB=$ac_cv_prog_RANLIB
4386 if test -n "$RANLIB"; then
4387 echo "$as_me:$LINENO: result: $RANLIB" >&5
4388 echo "${ECHO_T}$RANLIB" >&6
4389 else
4390 echo "$as_me:$LINENO: result: no" >&5
4391 echo "${ECHO_T}no" >&6
4392 fi
4393
4394 fi
4395 if test -z "$ac_cv_prog_RANLIB"; then
4396 ac_ct_RANLIB=$RANLIB
4397 # Extract the first word of "ranlib", so it can be a program name with args.
4398 set dummy ranlib; ac_word=$2
4399 echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4401 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404 if test -n "$ac_ct_RANLIB"; then
4405 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4409 do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414 ac_cv_prog_ac_ct_RANLIB="ranlib"
4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4417 fi
4418 done
4419 done
4420
4421 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4422 fi
4423 fi
4424 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4425 if test -n "$ac_ct_RANLIB"; then
4426 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4427 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4428 else
4429 echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6
4431 fi
4432
4433 RANLIB=$ac_ct_RANLIB
4434 else
4435 RANLIB="$ac_cv_prog_RANLIB"
4436 fi
4437
4438 fi
4439 # Extract the first word of "install-info", so it can be a program name with args.
4440 set dummy install-info; ac_word=$2
4441 echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4443 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446 case $INSTALL_INFO in
4447 [\\/]* | ?:[\\/]*)
4448 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4449 ;;
4450 *)
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4461 fi
4462 done
4463 done
4464
4465 ;;
4466 esac
4467 fi
4468 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4469
4470 if test -n "$INSTALL_INFO"; then
4471 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4472 echo "${ECHO_T}$INSTALL_INFO" >&6
4473 else
4474 echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6
4476 fi
4477
4478 # Extract the first word of "install-info", so it can be a program name with args.
4479 set dummy install-info; ac_word=$2
4480 echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4482 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485 case $INSTALL_INFO in
4486 [\\/]* | ?:[\\/]*)
4487 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4488 ;;
4489 *)
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in /usr/sbin
4492 do
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4497 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4500 fi
4501 done
4502 done
4503
4504 ;;
4505 esac
4506 fi
4507 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4508
4509 if test -n "$INSTALL_INFO"; then
4510 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4511 echo "${ECHO_T}$INSTALL_INFO" >&6
4512 else
4513 echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6
4515 fi
4516
4517 # Extract the first word of "install-info", so it can be a program name with args.
4518 set dummy install-info; ac_word=$2
4519 echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4521 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524 case $INSTALL_INFO in
4525 [\\/]* | ?:[\\/]*)
4526 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4527 ;;
4528 *)
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in /sbin
4531 do
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 break 2
4539 fi
4540 done
4541 done
4542
4543 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4544 ;;
4545 esac
4546 fi
4547 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4548
4549 if test -n "$INSTALL_INFO"; then
4550 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4551 echo "${ECHO_T}$INSTALL_INFO" >&6
4552 else
4553 echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6
4555 fi
4556
4557 # Extract the first word of "gzip", so it can be a program name with args.
4558 set dummy gzip; ac_word=$2
4559 echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4561 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564 case $GZIP_PROG in
4565 [\\/]* | ?:[\\/]*)
4566 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4567 ;;
4568 *)
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4571 do
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4576 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 break 2
4579 fi
4580 done
4581 done
4582
4583 ;;
4584 esac
4585 fi
4586 GZIP_PROG=$ac_cv_path_GZIP_PROG
4587
4588 if test -n "$GZIP_PROG"; then
4589 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4590 echo "${ECHO_T}$GZIP_PROG" >&6
4591 else
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4594 fi
4595
4596
4597
4598 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4599 then
4600 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4601 fi
4602
4603 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4604 then
4605 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4606 fi
4607
4608
4609 late_LDFLAGS=$LDFLAGS
4610 if test "$GCC" = yes; then
4611 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4612 else
4613 LDFLAGS="$LDFLAGS -znocombreloc"
4614 fi
4615
4616 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4617 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4618 cat >conftest.$ac_ext <<_ACEOF
4619 main(){return 0;}
4620 _ACEOF
4621 rm -f conftest.$ac_objext conftest$ac_exeext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623 (eval $ac_link) 2>conftest.er1
4624 ac_status=$?
4625 grep -v '^ *+' conftest.er1 >conftest.err
4626 rm -f conftest.er1
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -z "$ac_c_werror_flag"
4631 || test ! -s conftest.err'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; } &&
4637 { ac_try='test -s conftest$ac_exeext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 echo "$as_me:$LINENO: result: yes" >&5
4644 echo "${ECHO_T}yes" >&6
4645 else
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4648
4649 LDFLAGS=$late_LDFLAGS
4650 echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6
4652 fi
4653 rm -f conftest.err conftest.$ac_objext \
4654 conftest$ac_exeext conftest.$ac_ext
4655
4656 #### Extract some information from the operating system and machine files.
4657
4658 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4659 - which libraries the lib-src programs will want, and
4660 - whether the GNU malloc routines are usable..." >&5
4661 echo "$as_me: checking the machine- and system-dependent files to find out
4662 - which libraries the lib-src programs will want, and
4663 - whether the GNU malloc routines are usable..." >&6;}
4664
4665 ### First figure out CFLAGS (which we use for running the compiler here)
4666 ### and REAL_CFLAGS (which we use for real compilation).
4667 ### The two are the same except on a few systems, where they are made
4668 ### different to work around various lossages. For example,
4669 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4670 ### as implying static linking.
4671
4672 ### If the CFLAGS env var is specified, we use that value
4673 ### instead of the default.
4674
4675 ### It's not important that this name contain the PID; you can't run
4676 ### two configures in the same directory and have anything work
4677 ### anyway.
4678 tempcname="conftest.c"
4679
4680 echo '
4681 #include "'${srcdir}'/src/'${opsysfile}'"
4682 #include "'${srcdir}'/src/'${machfile}'"
4683 #ifndef LIBS_MACHINE
4684 #define LIBS_MACHINE
4685 #endif
4686 #ifndef LIBS_SYSTEM
4687 #define LIBS_SYSTEM
4688 #endif
4689 #ifndef C_SWITCH_SYSTEM
4690 #define C_SWITCH_SYSTEM
4691 #endif
4692 #ifndef C_SWITCH_MACHINE
4693 #define C_SWITCH_MACHINE
4694 #endif
4695 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4696 configure___ c_switch_system=C_SWITCH_SYSTEM
4697 configure___ c_switch_machine=C_SWITCH_MACHINE
4698
4699 #ifndef LIB_X11_LIB
4700 #define LIB_X11_LIB -lX11
4701 #endif
4702
4703 #ifndef LIBX11_MACHINE
4704 #define LIBX11_MACHINE
4705 #endif
4706
4707 #ifndef LIBX11_SYSTEM
4708 #define LIBX11_SYSTEM
4709 #endif
4710 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4711
4712 #ifdef UNEXEC
4713 configure___ unexec=UNEXEC
4714 #else
4715 configure___ unexec=unexec.o
4716 #endif
4717
4718 #ifdef SYSTEM_MALLOC
4719 configure___ system_malloc=yes
4720 #else
4721 configure___ system_malloc=no
4722 #endif
4723
4724 #ifdef USE_MMAP_FOR_BUFFERS
4725 configure___ use_mmap_for_buffers=yes
4726 #else
4727 configure___ use_mmap_for_buffers=no
4728 #endif
4729
4730 #ifndef C_DEBUG_SWITCH
4731 #define C_DEBUG_SWITCH -g
4732 #endif
4733
4734 #ifndef C_OPTIMIZE_SWITCH
4735 #ifdef __GNUC__
4736 #define C_OPTIMIZE_SWITCH -O2
4737 #else
4738 #define C_OPTIMIZE_SWITCH -O
4739 #endif
4740 #endif
4741
4742 #ifndef C_WARNINGS_SWITCH
4743 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4744 #endif
4745
4746 #ifndef LD_SWITCH_MACHINE
4747 #define LD_SWITCH_MACHINE
4748 #endif
4749
4750 #ifndef LD_SWITCH_SYSTEM
4751 #define LD_SWITCH_SYSTEM
4752 #endif
4753
4754 #ifndef LD_SWITCH_X_SITE_AUX
4755 #define LD_SWITCH_X_SITE_AUX
4756 #endif
4757
4758 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4759 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4760
4761 #ifdef THIS_IS_CONFIGURE
4762
4763 /* Get the CFLAGS for tests in configure. */
4764 #ifdef __GNUC__
4765 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4766 #else
4767 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4768 #endif
4769
4770 #else /* not THIS_IS_CONFIGURE */
4771
4772 /* Get the CFLAGS for real compilation. */
4773 #ifdef __GNUC__
4774 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4775 #else
4776 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4777 #endif
4778
4779 #endif /* not THIS_IS_CONFIGURE */
4780 ' > ${tempcname}
4781
4782 # The value of CPP is a quoted variable reference, so we need to do this
4783 # to get its actual value...
4784 CPP=`eval "echo $CPP"`
4785 eval `${CPP} -Isrc ${tempcname} \
4786 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4787 if test "x$SPECIFIED_CFLAGS" = x; then
4788 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4789 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4790 else
4791 REAL_CFLAGS="$CFLAGS"
4792 fi
4793 rm ${tempcname}
4794
4795 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4796
4797 ### Make sure subsequent tests use flags consistent with the build flags.
4798
4799 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4800 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4801 else
4802 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4803 fi
4804
4805
4806
4807 # Check whether --enable-largefile or --disable-largefile was given.
4808 if test "${enable_largefile+set}" = set; then
4809 enableval="$enable_largefile"
4810
4811 fi;
4812 if test "$enable_largefile" != no; then
4813
4814 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4815 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4816 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819 ac_cv_sys_largefile_CC=no
4820 if test "$GCC" != yes; then
4821 ac_save_CC=$CC
4822 while :; do
4823 # IRIX 6.2 and later do not support large files by default,
4824 # so use the C compiler's -n32 option if that helps.
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 #include <sys/types.h>
4832 /* Check that off_t can represent 2**63 - 1 correctly.
4833 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4834 since some C++ compilers masquerading as C compilers
4835 incorrectly reject 9223372036854775807. */
4836 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4837 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4838 && LARGE_OFF_T % 2147483647 == 1)
4839 ? 1 : -1];
4840 int
4841 main ()
4842 {
4843
4844 ;
4845 return 0;
4846 }
4847 _ACEOF
4848 rm -f conftest.$ac_objext
4849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -z "$ac_c_werror_flag"
4858 || test ! -s conftest.err'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 (eval $ac_try) 2>&5
4861 ac_status=$?
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; } &&
4864 { ac_try='test -s conftest.$ac_objext'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 (eval $ac_try) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4870 break
4871 else
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4874
4875 fi
4876 rm -f conftest.err conftest.$ac_objext
4877 CC="$CC -n32"
4878 rm -f conftest.$ac_objext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880 (eval $ac_compile) 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try='test -z "$ac_c_werror_flag"
4888 || test ! -s conftest.err'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; } &&
4894 { ac_try='test -s conftest.$ac_objext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 ac_cv_sys_largefile_CC=' -n32'; break
4901 else
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4904
4905 fi
4906 rm -f conftest.err conftest.$ac_objext
4907 break
4908 done
4909 CC=$ac_save_CC
4910 rm -f conftest.$ac_ext
4911 fi
4912 fi
4913 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4914 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4915 if test "$ac_cv_sys_largefile_CC" != no; then
4916 CC=$CC$ac_cv_sys_largefile_CC
4917 fi
4918
4919 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4920 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4921 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924 while :; do
4925 ac_cv_sys_file_offset_bits=no
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 #include <sys/types.h>
4933 /* Check that off_t can represent 2**63 - 1 correctly.
4934 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4935 since some C++ compilers masquerading as C compilers
4936 incorrectly reject 9223372036854775807. */
4937 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4938 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4939 && LARGE_OFF_T % 2147483647 == 1)
4940 ? 1 : -1];
4941 int
4942 main ()
4943 {
4944
4945 ;
4946 return 0;
4947 }
4948 _ACEOF
4949 rm -f conftest.$ac_objext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>conftest.er1
4952 ac_status=$?
4953 grep -v '^ *+' conftest.er1 >conftest.err
4954 rm -f conftest.er1
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try='test -z "$ac_c_werror_flag"
4959 || test ! -s conftest.err'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 (eval $ac_try) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; } &&
4965 { ac_try='test -s conftest.$ac_objext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 (eval $ac_try) 2>&5
4968 ac_status=$?
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 break
4972 else
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 fi
4977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4978 cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h. */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 #define _FILE_OFFSET_BITS 64
4985 #include <sys/types.h>
4986 /* Check that off_t can represent 2**63 - 1 correctly.
4987 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4988 since some C++ compilers masquerading as C compilers
4989 incorrectly reject 9223372036854775807. */
4990 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4991 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4992 && LARGE_OFF_T % 2147483647 == 1)
4993 ? 1 : -1];
4994 int
4995 main ()
4996 {
4997
4998 ;
4999 return 0;
5000 }
5001 _ACEOF
5002 rm -f conftest.$ac_objext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try='test -s conftest.$ac_objext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 ac_cv_sys_file_offset_bits=64; break
5025 else
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5028
5029 fi
5030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5031 break
5032 done
5033 fi
5034 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5035 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5036 if test "$ac_cv_sys_file_offset_bits" != no; then
5037
5038 cat >>confdefs.h <<_ACEOF
5039 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5040 _ACEOF
5041
5042 fi
5043 rm -f conftest*
5044 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5045 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5046 if test "${ac_cv_sys_large_files+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049 while :; do
5050 ac_cv_sys_large_files=no
5051 cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h. */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 #include <sys/types.h>
5058 /* Check that off_t can represent 2**63 - 1 correctly.
5059 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5060 since some C++ compilers masquerading as C compilers
5061 incorrectly reject 9223372036854775807. */
5062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5063 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5064 && LARGE_OFF_T % 2147483647 == 1)
5065 ? 1 : -1];
5066 int
5067 main ()
5068 {
5069
5070 ;
5071 return 0;
5072 }
5073 _ACEOF
5074 rm -f conftest.$ac_objext
5075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5076 (eval $ac_compile) 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -z "$ac_c_werror_flag"
5084 || test ! -s conftest.err'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 (eval $ac_try) 2>&5
5087 ac_status=$?
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; } &&
5090 { ac_try='test -s conftest.$ac_objext'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 (eval $ac_try) 2>&5
5093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5096 break
5097 else
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5100
5101 fi
5102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5103 cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h. */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 #define _LARGE_FILES 1
5110 #include <sys/types.h>
5111 /* Check that off_t can represent 2**63 - 1 correctly.
5112 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5113 since some C++ compilers masquerading as C compilers
5114 incorrectly reject 9223372036854775807. */
5115 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5116 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5117 && LARGE_OFF_T % 2147483647 == 1)
5118 ? 1 : -1];
5119 int
5120 main ()
5121 {
5122
5123 ;
5124 return 0;
5125 }
5126 _ACEOF
5127 rm -f conftest.$ac_objext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129 (eval $ac_compile) 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
5136 { ac_try='test -z "$ac_c_werror_flag"
5137 || test ! -s conftest.err'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 (eval $ac_try) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; } &&
5143 { ac_try='test -s conftest.$ac_objext'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 (eval $ac_try) 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; }; then
5149 ac_cv_sys_large_files=1; break
5150 else
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5153
5154 fi
5155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5156 break
5157 done
5158 fi
5159 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5160 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5161 if test "$ac_cv_sys_large_files" != no; then
5162
5163 cat >>confdefs.h <<_ACEOF
5164 #define _LARGE_FILES $ac_cv_sys_large_files
5165 _ACEOF
5166
5167 fi
5168 rm -f conftest*
5169 fi
5170
5171
5172
5173 ### The standard library on x86-64 GNU/Linux distributions can
5174 ### be located in either /usr/lib64 or /usr/lib.
5175 case "${canonical}" in
5176 x86_64-*-linux-gnu* )
5177 if test -d /usr/lib64; then
5178
5179 cat >>confdefs.h <<\_ACEOF
5180 #define HAVE_X86_64_LIB64_DIR 1
5181 _ACEOF
5182
5183 fi
5184 esac
5185
5186
5187
5188
5189 if test "${with_sound}" != "no"; then
5190 # Sound support for GNU/Linux and the free BSDs.
5191 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5192 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5193 if test "${ac_cv_header_stdc+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 else
5196 cat >conftest.$ac_ext <<_ACEOF
5197 /* confdefs.h. */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5202 #include <stdlib.h>
5203 #include <stdarg.h>
5204 #include <string.h>
5205 #include <float.h>
5206
5207 int
5208 main ()
5209 {
5210
5211 ;
5212 return 0;
5213 }
5214 _ACEOF
5215 rm -f conftest.$ac_objext
5216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5217 (eval $ac_compile) 2>conftest.er1
5218 ac_status=$?
5219 grep -v '^ *+' conftest.er1 >conftest.err
5220 rm -f conftest.er1
5221 cat conftest.err >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try='test -z "$ac_c_werror_flag"
5225 || test ! -s conftest.err'
5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 (eval $ac_try) 2>&5
5228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; } &&
5231 { ac_try='test -s conftest.$ac_objext'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233 (eval $ac_try) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; }; then
5237 ac_cv_header_stdc=yes
5238 else
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5241
5242 ac_cv_header_stdc=no
5243 fi
5244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5245
5246 if test $ac_cv_header_stdc = yes; then
5247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5248 cat >conftest.$ac_ext <<_ACEOF
5249 /* confdefs.h. */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254 #include <string.h>
5255
5256 _ACEOF
5257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5258 $EGREP "memchr" >/dev/null 2>&1; then
5259 :
5260 else
5261 ac_cv_header_stdc=no
5262 fi
5263 rm -f conftest*
5264
5265 fi
5266
5267 if test $ac_cv_header_stdc = yes; then
5268 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5269 cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h. */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5275 #include <stdlib.h>
5276
5277 _ACEOF
5278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5279 $EGREP "free" >/dev/null 2>&1; then
5280 :
5281 else
5282 ac_cv_header_stdc=no
5283 fi
5284 rm -f conftest*
5285
5286 fi
5287
5288 if test $ac_cv_header_stdc = yes; then
5289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5290 if test "$cross_compiling" = yes; then
5291 :
5292 else
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h. */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 #include <ctype.h>
5300 #if ((' ' & 0x0FF) == 0x020)
5301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5303 #else
5304 # define ISLOWER(c) \
5305 (('a' <= (c) && (c) <= 'i') \
5306 || ('j' <= (c) && (c) <= 'r') \
5307 || ('s' <= (c) && (c) <= 'z'))
5308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5309 #endif
5310
5311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5312 int
5313 main ()
5314 {
5315 int i;
5316 for (i = 0; i < 256; i++)
5317 if (XOR (islower (i), ISLOWER (i))
5318 || toupper (i) != TOUPPER (i))
5319 exit(2);
5320 exit (0);
5321 }
5322 _ACEOF
5323 rm -f conftest$ac_exeext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5325 (eval $ac_link) 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 (eval $ac_try) 2>&5
5331 ac_status=$?
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5334 :
5335 else
5336 echo "$as_me: program exited with status $ac_status" >&5
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340 ( exit $ac_status )
5341 ac_cv_header_stdc=no
5342 fi
5343 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5344 fi
5345 fi
5346 fi
5347 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5348 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5349 if test $ac_cv_header_stdc = yes; then
5350
5351 cat >>confdefs.h <<\_ACEOF
5352 #define STDC_HEADERS 1
5353 _ACEOF
5354
5355 fi
5356
5357 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5368 inttypes.h stdint.h unistd.h
5369 do
5370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5371 echo "$as_me:$LINENO: checking for $ac_header" >&5
5372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376 cat >conftest.$ac_ext <<_ACEOF
5377 /* confdefs.h. */
5378 _ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5382 $ac_includes_default
5383
5384 #include <$ac_header>
5385 _ACEOF
5386 rm -f conftest.$ac_objext
5387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5388 (eval $ac_compile) 2>conftest.er1
5389 ac_status=$?
5390 grep -v '^ *+' conftest.er1 >conftest.err
5391 rm -f conftest.er1
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } &&
5395 { ac_try='test -z "$ac_c_werror_flag"
5396 || test ! -s conftest.err'
5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398 (eval $ac_try) 2>&5
5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; } &&
5402 { ac_try='test -s conftest.$ac_objext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 (eval $ac_try) 2>&5
5405 ac_status=$?
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 eval "$as_ac_Header=yes"
5409 else
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5412
5413 eval "$as_ac_Header=no"
5414 fi
5415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5416 fi
5417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5420 cat >>confdefs.h <<_ACEOF
5421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5422 _ACEOF
5423
5424 fi
5425
5426 done
5427
5428
5429
5430
5431
5432 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5433 do
5434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5436 echo "$as_me:$LINENO: checking for $ac_header" >&5
5437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 fi
5441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5443 else
5444 # Is the header compilable?
5445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5447 cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h. */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 $ac_includes_default
5454 #include <$ac_header>
5455 _ACEOF
5456 rm -f conftest.$ac_objext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5458 (eval $ac_compile) 2>conftest.er1
5459 ac_status=$?
5460 grep -v '^ *+' conftest.er1 >conftest.err
5461 rm -f conftest.er1
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } &&
5465 { ac_try='test -z "$ac_c_werror_flag"
5466 || test ! -s conftest.err'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 (eval $ac_try) 2>&5
5469 ac_status=$?
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; } &&
5472 { ac_try='test -s conftest.$ac_objext'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 (eval $ac_try) 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 ac_header_compiler=yes
5479 else
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5482
5483 ac_header_compiler=no
5484 fi
5485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5487 echo "${ECHO_T}$ac_header_compiler" >&6
5488
5489 # Is the header present?
5490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5492 cat >conftest.$ac_ext <<_ACEOF
5493 /* confdefs.h. */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498 #include <$ac_header>
5499 _ACEOF
5500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } >/dev/null; then
5508 if test -s conftest.err; then
5509 ac_cpp_err=$ac_c_preproc_warn_flag
5510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5511 else
5512 ac_cpp_err=
5513 fi
5514 else
5515 ac_cpp_err=yes
5516 fi
5517 if test -z "$ac_cpp_err"; then
5518 ac_header_preproc=yes
5519 else
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5522
5523 ac_header_preproc=no
5524 fi
5525 rm -f conftest.err conftest.$ac_ext
5526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5527 echo "${ECHO_T}$ac_header_preproc" >&6
5528
5529 # So? What about this header?
5530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5531 yes:no: )
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5536 ac_header_preproc=yes
5537 ;;
5538 no:yes:* )
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5551 (
5552 cat <<\_ASBOX
5553 ## ------------------------------------------ ##
5554 ## Report this to the AC_PACKAGE_NAME lists. ##
5555 ## ------------------------------------------ ##
5556 _ASBOX
5557 ) |
5558 sed "s/^/$as_me: WARNING: /" >&2
5559 ;;
5560 esac
5561 echo "$as_me:$LINENO: checking for $ac_header" >&5
5562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566 eval "$as_ac_Header=\$ac_header_preproc"
5567 fi
5568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5570
5571 fi
5572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5573 cat >>confdefs.h <<_ACEOF
5574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5575 _ACEOF
5576
5577 fi
5578
5579 done
5580
5581 # Emulation library used on NetBSD.
5582 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5583 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5584 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 ac_check_lib_save_LIBS=$LIBS
5588 LIBS="-lossaudio $LIBS"
5589 cat >conftest.$ac_ext <<_ACEOF
5590 /* confdefs.h. */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595
5596 /* Override any gcc2 internal prototype to avoid an error. */
5597 #ifdef __cplusplus
5598 extern "C"
5599 #endif
5600 /* We use char because int might match the return type of a gcc2
5601 builtin and then its argument prototype would still apply. */
5602 char _oss_ioctl ();
5603 int
5604 main ()
5605 {
5606 _oss_ioctl ();
5607 ;
5608 return 0;
5609 }
5610 _ACEOF
5611 rm -f conftest.$ac_objext conftest$ac_exeext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5613 (eval $ac_link) 2>conftest.er1
5614 ac_status=$?
5615 grep -v '^ *+' conftest.er1 >conftest.err
5616 rm -f conftest.er1
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } &&
5620 { ac_try='test -z "$ac_c_werror_flag"
5621 || test ! -s conftest.err'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623 (eval $ac_try) 2>&5
5624 ac_status=$?
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; } &&
5627 { ac_try='test -s conftest$ac_exeext'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 (eval $ac_try) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5633 ac_cv_lib_ossaudio__oss_ioctl=yes
5634 else
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638 ac_cv_lib_ossaudio__oss_ioctl=no
5639 fi
5640 rm -f conftest.err conftest.$ac_objext \
5641 conftest$ac_exeext conftest.$ac_ext
5642 LIBS=$ac_check_lib_save_LIBS
5643 fi
5644 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5645 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5646 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5647 LIBSOUND=-lossaudio
5648 else
5649 LIBSOUND=
5650 fi
5651
5652
5653
5654 ALSA_REQUIRED=1.0.0
5655 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5656 if test "X${with_pkg_config_prog}" != X; then
5657 PKG_CONFIG="${with_pkg_config_prog}"
5658 fi
5659
5660 succeeded=no
5661
5662 if test -z "$PKG_CONFIG"; then
5663 # Extract the first word of "pkg-config", so it can be a program name with args.
5664 set dummy pkg-config; ac_word=$2
5665 echo "$as_me:$LINENO: checking for $ac_word" >&5
5666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5667 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670 case $PKG_CONFIG in
5671 [\\/]* | ?:[\\/]*)
5672 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5673 ;;
5674 *)
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5677 do
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5682 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5685 fi
5686 done
5687 done
5688
5689 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5690 ;;
5691 esac
5692 fi
5693 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5694
5695 if test -n "$PKG_CONFIG"; then
5696 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5697 echo "${ECHO_T}$PKG_CONFIG" >&6
5698 else
5699 echo "$as_me:$LINENO: result: no" >&5
5700 echo "${ECHO_T}no" >&6
5701 fi
5702
5703 fi
5704
5705 if test "$PKG_CONFIG" = "no" ; then
5706 HAVE_ALSA=no
5707 else
5708 PKG_CONFIG_MIN_VERSION=0.9.0
5709 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5710 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5711 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5712
5713 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5714 echo "$as_me:$LINENO: result: yes" >&5
5715 echo "${ECHO_T}yes" >&6
5716 succeeded=yes
5717
5718 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5719 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5720 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5721 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5722 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5723
5724 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5725 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5726 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5727 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5728 echo "${ECHO_T}$ALSA_LIBS" >&6
5729 else
5730 echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6
5732 ALSA_CFLAGS=""
5733 ALSA_LIBS=""
5734 ## If we have a custom action on failure, don't print errors, but
5735 ## do set a variable so people can do so.
5736 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5737
5738 fi
5739
5740
5741
5742 else
5743 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5744 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5745 fi
5746 fi
5747
5748 if test $succeeded = yes; then
5749 HAVE_ALSA=yes
5750 else
5751 HAVE_ALSA=no
5752 fi
5753
5754 if test $HAVE_ALSA = yes; then
5755 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5756 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5757
5758 cat >>confdefs.h <<\_ACEOF
5759 #define HAVE_ALSA 1
5760 _ACEOF
5761
5762 fi
5763
5764 fi
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5792 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5793 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5794 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5795 sys/utsname.h pwd.h
5796 do
5797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5799 echo "$as_me:$LINENO: checking for $ac_header" >&5
5800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 fi
5804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5806 else
5807 # Is the header compilable?
5808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5810 cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h. */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5816 $ac_includes_default
5817 #include <$ac_header>
5818 _ACEOF
5819 rm -f conftest.$ac_objext
5820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5821 (eval $ac_compile) 2>conftest.er1
5822 ac_status=$?
5823 grep -v '^ *+' conftest.er1 >conftest.err
5824 rm -f conftest.er1
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } &&
5828 { ac_try='test -z "$ac_c_werror_flag"
5829 || test ! -s conftest.err'
5830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 (eval $ac_try) 2>&5
5832 ac_status=$?
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; } &&
5835 { ac_try='test -s conftest.$ac_objext'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 (eval $ac_try) 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5841 ac_header_compiler=yes
5842 else
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5845
5846 ac_header_compiler=no
5847 fi
5848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5850 echo "${ECHO_T}$ac_header_compiler" >&6
5851
5852 # Is the header present?
5853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5855 cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h. */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 #include <$ac_header>
5862 _ACEOF
5863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } >/dev/null; then
5871 if test -s conftest.err; then
5872 ac_cpp_err=$ac_c_preproc_warn_flag
5873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5874 else
5875 ac_cpp_err=
5876 fi
5877 else
5878 ac_cpp_err=yes
5879 fi
5880 if test -z "$ac_cpp_err"; then
5881 ac_header_preproc=yes
5882 else
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886 ac_header_preproc=no
5887 fi
5888 rm -f conftest.err conftest.$ac_ext
5889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5890 echo "${ECHO_T}$ac_header_preproc" >&6
5891
5892 # So? What about this header?
5893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5894 yes:no: )
5895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5899 ac_header_preproc=yes
5900 ;;
5901 no:yes:* )
5902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5914 (
5915 cat <<\_ASBOX
5916 ## ------------------------------------------ ##
5917 ## Report this to the AC_PACKAGE_NAME lists. ##
5918 ## ------------------------------------------ ##
5919 _ASBOX
5920 ) |
5921 sed "s/^/$as_me: WARNING: /" >&2
5922 ;;
5923 esac
5924 echo "$as_me:$LINENO: checking for $ac_header" >&5
5925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929 eval "$as_ac_Header=\$ac_header_preproc"
5930 fi
5931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5933
5934 fi
5935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5936 cat >>confdefs.h <<_ACEOF
5937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5938 _ACEOF
5939
5940 fi
5941
5942 done
5943
5944
5945 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5946 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h. */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 #include <sys/personality.h>
5954 int
5955 main ()
5956 {
5957 personality (PER_LINUX32)
5958 ;
5959 return 0;
5960 }
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964 (eval $ac_compile) 2>conftest.er1
5965 ac_status=$?
5966 grep -v '^ *+' conftest.er1 >conftest.err
5967 rm -f conftest.er1
5968 cat conftest.err >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } &&
5971 { ac_try='test -z "$ac_c_werror_flag"
5972 || test ! -s conftest.err'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try='test -s conftest.$ac_objext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 (eval $ac_try) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 emacs_cv_personality_linux32=yes
5985 else
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5988
5989 emacs_cv_personality_linux32=no
5990 fi
5991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5992 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5993 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5994
5995 if test $emacs_cv_personality_linux32 = yes; then
5996
5997 cat >>confdefs.h <<\_ACEOF
5998 #define HAVE_PERSONALITY_LINUX32 1
5999 _ACEOF
6000
6001 fi
6002
6003
6004 for ac_header in term.h
6005 do
6006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6007 echo "$as_me:$LINENO: checking for $ac_header" >&5
6008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012 cat >conftest.$ac_ext <<_ACEOF
6013 /* confdefs.h. */
6014 _ACEOF
6015 cat confdefs.h >>conftest.$ac_ext
6016 cat >>conftest.$ac_ext <<_ACEOF
6017 /* end confdefs.h. */
6018 #include <$ac_header>
6019 _ACEOF
6020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } >/dev/null; then
6028 if test -s conftest.err; then
6029 ac_cpp_err=$ac_c_preproc_warn_flag
6030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6031 else
6032 ac_cpp_err=
6033 fi
6034 else
6035 ac_cpp_err=yes
6036 fi
6037 if test -z "$ac_cpp_err"; then
6038 eval "$as_ac_Header=yes"
6039 else
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043 eval "$as_ac_Header=no"
6044 fi
6045 rm -f conftest.err conftest.$ac_ext
6046 fi
6047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6050 cat >>confdefs.h <<_ACEOF
6051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6052 _ACEOF
6053
6054 fi
6055
6056 done
6057
6058 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6059 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6060 if test "${ac_cv_header_stdc+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063 cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h. */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 #include <stdlib.h>
6070 #include <stdarg.h>
6071 #include <string.h>
6072 #include <float.h>
6073
6074 int
6075 main ()
6076 {
6077
6078 ;
6079 return 0;
6080 }
6081 _ACEOF
6082 rm -f conftest.$ac_objext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084 (eval $ac_compile) 2>conftest.er1
6085 ac_status=$?
6086 grep -v '^ *+' conftest.er1 >conftest.err
6087 rm -f conftest.er1
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -z "$ac_c_werror_flag"
6092 || test ! -s conftest.err'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; } &&
6098 { ac_try='test -s conftest.$ac_objext'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 (eval $ac_try) 2>&5
6101 ac_status=$?
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then
6104 ac_cv_header_stdc=yes
6105 else
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6108
6109 ac_cv_header_stdc=no
6110 fi
6111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6112
6113 if test $ac_cv_header_stdc = yes; then
6114 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6115 cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h. */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6121 #include <string.h>
6122
6123 _ACEOF
6124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6125 $EGREP "memchr" >/dev/null 2>&1; then
6126 :
6127 else
6128 ac_cv_header_stdc=no
6129 fi
6130 rm -f conftest*
6131
6132 fi
6133
6134 if test $ac_cv_header_stdc = yes; then
6135 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6136 cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h. */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 #include <stdlib.h>
6143
6144 _ACEOF
6145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6146 $EGREP "free" >/dev/null 2>&1; then
6147 :
6148 else
6149 ac_cv_header_stdc=no
6150 fi
6151 rm -f conftest*
6152
6153 fi
6154
6155 if test $ac_cv_header_stdc = yes; then
6156 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6157 if test "$cross_compiling" = yes; then
6158 :
6159 else
6160 cat >conftest.$ac_ext <<_ACEOF
6161 /* confdefs.h. */
6162 _ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6166 #include <ctype.h>
6167 #if ((' ' & 0x0FF) == 0x020)
6168 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6169 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6170 #else
6171 # define ISLOWER(c) \
6172 (('a' <= (c) && (c) <= 'i') \
6173 || ('j' <= (c) && (c) <= 'r') \
6174 || ('s' <= (c) && (c) <= 'z'))
6175 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6176 #endif
6177
6178 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6179 int
6180 main ()
6181 {
6182 int i;
6183 for (i = 0; i < 256; i++)
6184 if (XOR (islower (i), ISLOWER (i))
6185 || toupper (i) != TOUPPER (i))
6186 exit(2);
6187 exit (0);
6188 }
6189 _ACEOF
6190 rm -f conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192 (eval $ac_link) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 :
6202 else
6203 echo "$as_me: program exited with status $ac_status" >&5
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6206
6207 ( exit $ac_status )
6208 ac_cv_header_stdc=no
6209 fi
6210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6211 fi
6212 fi
6213 fi
6214 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6215 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6216 if test $ac_cv_header_stdc = yes; then
6217
6218 cat >>confdefs.h <<\_ACEOF
6219 #define STDC_HEADERS 1
6220 _ACEOF
6221
6222 fi
6223
6224 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6225 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6226 if test "${ac_cv_header_time+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #include <sys/types.h>
6236 #include <sys/time.h>
6237 #include <time.h>
6238
6239 int
6240 main ()
6241 {
6242 if ((struct tm *) 0)
6243 return 0;
6244 ;
6245 return 0;
6246 }
6247 _ACEOF
6248 rm -f conftest.$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250 (eval $ac_compile) 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } &&
6257 { ac_try='test -z "$ac_c_werror_flag"
6258 || test ! -s conftest.err'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest.$ac_objext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 (eval $ac_try) 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 ac_cv_header_time=yes
6271 else
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6274
6275 ac_cv_header_time=no
6276 fi
6277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6278 fi
6279 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6280 echo "${ECHO_T}$ac_cv_header_time" >&6
6281 if test $ac_cv_header_time = yes; then
6282
6283 cat >>confdefs.h <<\_ACEOF
6284 #define TIME_WITH_SYS_TIME 1
6285 _ACEOF
6286
6287 fi
6288
6289 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6290 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6291 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294 cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h. */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6300 $ac_includes_default
6301 int
6302 main ()
6303 {
6304 #ifndef sys_siglist
6305 char *p = (char *) sys_siglist;
6306 #endif
6307
6308 ;
6309 return 0;
6310 }
6311 _ACEOF
6312 rm -f conftest.$ac_objext
6313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6314 (eval $ac_compile) 2>conftest.er1
6315 ac_status=$?
6316 grep -v '^ *+' conftest.er1 >conftest.err
6317 rm -f conftest.er1
6318 cat conftest.err >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } &&
6321 { ac_try='test -z "$ac_c_werror_flag"
6322 || test ! -s conftest.err'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; } &&
6328 { ac_try='test -s conftest.$ac_objext'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 (eval $ac_try) 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; }; then
6334 ac_cv_have_decl_sys_siglist=yes
6335 else
6336 echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.$ac_ext >&5
6338
6339 ac_cv_have_decl_sys_siglist=no
6340 fi
6341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6342 fi
6343 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6344 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6345 if test $ac_cv_have_decl_sys_siglist = yes; then
6346
6347 cat >>confdefs.h <<_ACEOF
6348 #define HAVE_DECL_SYS_SIGLIST 1
6349 _ACEOF
6350
6351
6352 else
6353 cat >>confdefs.h <<_ACEOF
6354 #define HAVE_DECL_SYS_SIGLIST 0
6355 _ACEOF
6356
6357
6358 fi
6359
6360
6361 if test $ac_cv_have_decl_sys_siglist != yes; then
6362 # For Tru64, at least:
6363 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6364 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6365 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 else
6368 cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h. */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 $ac_includes_default
6375 int
6376 main ()
6377 {
6378 #ifndef __sys_siglist
6379 char *p = (char *) __sys_siglist;
6380 #endif
6381
6382 ;
6383 return 0;
6384 }
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388 (eval $ac_compile) 2>conftest.er1
6389 ac_status=$?
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try='test -z "$ac_c_werror_flag"
6396 || test ! -s conftest.err'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_cv_have_decl___sys_siglist=yes
6409 else
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6412
6413 ac_cv_have_decl___sys_siglist=no
6414 fi
6415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6416 fi
6417 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6418 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6419 if test $ac_cv_have_decl___sys_siglist = yes; then
6420
6421 cat >>confdefs.h <<_ACEOF
6422 #define HAVE_DECL___SYS_SIGLIST 1
6423 _ACEOF
6424
6425
6426 else
6427 cat >>confdefs.h <<_ACEOF
6428 #define HAVE_DECL___SYS_SIGLIST 0
6429 _ACEOF
6430
6431
6432 fi
6433
6434
6435 if test $ac_cv_have_decl___sys_siglist = yes; then
6436
6437 cat >>confdefs.h <<\_ACEOF
6438 #define sys_siglist __sys_siglist
6439 _ACEOF
6440
6441 fi
6442 fi
6443 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6444 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6445 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448 cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h. */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6454 #include <sys/types.h>
6455 #include <sys/wait.h>
6456 #ifndef WEXITSTATUS
6457 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6458 #endif
6459 #ifndef WIFEXITED
6460 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6461 #endif
6462
6463 int
6464 main ()
6465 {
6466 int s;
6467 wait (&s);
6468 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6469 ;
6470 return 0;
6471 }
6472 _ACEOF
6473 rm -f conftest.$ac_objext
6474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6475 (eval $ac_compile) 2>conftest.er1
6476 ac_status=$?
6477 grep -v '^ *+' conftest.er1 >conftest.err
6478 rm -f conftest.er1
6479 cat conftest.err >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } &&
6482 { ac_try='test -z "$ac_c_werror_flag"
6483 || test ! -s conftest.err'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 (eval $ac_try) 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; } &&
6489 { ac_try='test -s conftest.$ac_objext'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 (eval $ac_try) 2>&5
6492 ac_status=$?
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; }; then
6495 ac_cv_header_sys_wait_h=yes
6496 else
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6499
6500 ac_cv_header_sys_wait_h=no
6501 fi
6502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6503 fi
6504 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6505 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6506 if test $ac_cv_header_sys_wait_h = yes; then
6507
6508 cat >>confdefs.h <<\_ACEOF
6509 #define HAVE_SYS_WAIT_H 1
6510 _ACEOF
6511
6512 fi
6513
6514
6515 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6516 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6517 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 #ifdef TIME_WITH_SYS_TIME
6527 #include <sys/time.h>
6528 #include <time.h>
6529 #else
6530 #ifdef HAVE_SYS_TIME_H
6531 #include <sys/time.h>
6532 #else
6533 #include <time.h>
6534 #endif
6535 #endif
6536 #ifdef HAVE_UTIME_H
6537 #include <utime.h>
6538 #endif
6539 int
6540 main ()
6541 {
6542 static struct utimbuf x; x.actime = x.modtime;
6543 ;
6544 return 0;
6545 }
6546 _ACEOF
6547 rm -f conftest.$ac_objext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6549 (eval $ac_compile) 2>conftest.er1
6550 ac_status=$?
6551 grep -v '^ *+' conftest.er1 >conftest.err
6552 rm -f conftest.er1
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try='test -z "$ac_c_werror_flag"
6557 || test ! -s conftest.err'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 (eval $ac_try) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest.$ac_objext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 emacs_cv_struct_utimbuf=yes
6570 else
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6573
6574 emacs_cv_struct_utimbuf=no
6575 fi
6576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6577 fi
6578 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6579 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6580 if test $emacs_cv_struct_utimbuf = yes; then
6581
6582 cat >>confdefs.h <<\_ACEOF
6583 #define HAVE_STRUCT_UTIMBUF 1
6584 _ACEOF
6585
6586 fi
6587
6588 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6589 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6590 if test "${ac_cv_type_signal+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593 cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h. */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6599 #include <sys/types.h>
6600 #include <signal.h>
6601 #ifdef signal
6602 # undef signal
6603 #endif
6604 #ifdef __cplusplus
6605 extern "C" void (*signal (int, void (*)(int)))(int);
6606 #else
6607 void (*signal ()) ();
6608 #endif
6609
6610 int
6611 main ()
6612 {
6613 int i;
6614 ;
6615 return 0;
6616 }
6617 _ACEOF
6618 rm -f conftest.$ac_objext
6619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6620 (eval $ac_compile) 2>conftest.er1
6621 ac_status=$?
6622 grep -v '^ *+' conftest.er1 >conftest.err
6623 rm -f conftest.er1
6624 cat conftest.err >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 { ac_try='test -z "$ac_c_werror_flag"
6628 || test ! -s conftest.err'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; } &&
6634 { ac_try='test -s conftest.$ac_objext'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 (eval $ac_try) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_cv_type_signal=void
6641 else
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6644
6645 ac_cv_type_signal=int
6646 fi
6647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6648 fi
6649 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6650 echo "${ECHO_T}$ac_cv_type_signal" >&6
6651
6652 cat >>confdefs.h <<_ACEOF
6653 #define RETSIGTYPE $ac_cv_type_signal
6654 _ACEOF
6655
6656
6657
6658 echo "$as_me:$LINENO: checking for speed_t" >&5
6659 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6660 if test "${emacs_cv_speed_t+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663 cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h. */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669 #include <termios.h>
6670 int
6671 main ()
6672 {
6673 speed_t x = 1;
6674 ;
6675 return 0;
6676 }
6677 _ACEOF
6678 rm -f conftest.$ac_objext
6679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6680 (eval $ac_compile) 2>conftest.er1
6681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
6687 { ac_try='test -z "$ac_c_werror_flag"
6688 || test ! -s conftest.err'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 (eval $ac_try) 2>&5
6691 ac_status=$?
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; } &&
6694 { ac_try='test -s conftest.$ac_objext'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 (eval $ac_try) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }; then
6700 emacs_cv_speed_t=yes
6701 else
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6704
6705 emacs_cv_speed_t=no
6706 fi
6707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6708 fi
6709 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6710 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6711 if test $emacs_cv_speed_t = yes; then
6712
6713 cat >>confdefs.h <<\_ACEOF
6714 #define HAVE_SPEED_T 1
6715 _ACEOF
6716
6717 fi
6718
6719 echo "$as_me:$LINENO: checking for struct timeval" >&5
6720 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6721 if test "${emacs_cv_struct_timeval+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724 cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h. */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6730 #ifdef TIME_WITH_SYS_TIME
6731 #include <sys/time.h>
6732 #include <time.h>
6733 #else
6734 #ifdef HAVE_SYS_TIME_H
6735 #include <sys/time.h>
6736 #else
6737 #include <time.h>
6738 #endif
6739 #endif
6740 int
6741 main ()
6742 {
6743 static struct timeval x; x.tv_sec = x.tv_usec;
6744 ;
6745 return 0;
6746 }
6747 _ACEOF
6748 rm -f conftest.$ac_objext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6750 (eval $ac_compile) 2>conftest.er1
6751 ac_status=$?
6752 grep -v '^ *+' conftest.er1 >conftest.err
6753 rm -f conftest.er1
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -z "$ac_c_werror_flag"
6758 || test ! -s conftest.err'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; } &&
6764 { ac_try='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 emacs_cv_struct_timeval=yes
6771 else
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6774
6775 emacs_cv_struct_timeval=no
6776 fi
6777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6778 fi
6779 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6780 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6781 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6782 if test $emacs_cv_struct_timeval = yes; then
6783
6784 cat >>confdefs.h <<\_ACEOF
6785 #define HAVE_TIMEVAL 1
6786 _ACEOF
6787
6788 fi
6789
6790 echo "$as_me:$LINENO: checking for struct exception" >&5
6791 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6792 if test "${emacs_cv_struct_exception+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 #include <math.h>
6802 int
6803 main ()
6804 {
6805 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6806 ;
6807 return 0;
6808 }
6809 _ACEOF
6810 rm -f conftest.$ac_objext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>conftest.er1
6813 ac_status=$?
6814 grep -v '^ *+' conftest.er1 >conftest.err
6815 rm -f conftest.er1
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } &&
6819 { ac_try='test -z "$ac_c_werror_flag"
6820 || test ! -s conftest.err'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; } &&
6826 { ac_try='test -s conftest.$ac_objext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 emacs_cv_struct_exception=yes
6833 else
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6836
6837 emacs_cv_struct_exception=no
6838 fi
6839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6840 fi
6841 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6842 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6843 HAVE_EXCEPTION=$emacs_cv_struct_exception
6844 if test $emacs_cv_struct_exception != yes; then
6845
6846 cat >>confdefs.h <<\_ACEOF
6847 #define NO_MATHERR 1
6848 _ACEOF
6849
6850 fi
6851
6852
6853 for ac_header in sys/socket.h
6854 do
6855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6857 echo "$as_me:$LINENO: checking for $ac_header" >&5
6858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 fi
6862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6864 else
6865 # Is the header compilable?
6866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 $ac_includes_default
6875 #include <$ac_header>
6876 _ACEOF
6877 rm -f conftest.$ac_objext
6878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6879 (eval $ac_compile) 2>conftest.er1
6880 ac_status=$?
6881 grep -v '^ *+' conftest.er1 >conftest.err
6882 rm -f conftest.er1
6883 cat conftest.err >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } &&
6886 { ac_try='test -z "$ac_c_werror_flag"
6887 || test ! -s conftest.err'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 (eval $ac_try) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; } &&
6893 { ac_try='test -s conftest.$ac_objext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 (eval $ac_try) 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 ac_header_compiler=yes
6900 else
6901 echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6903
6904 ac_header_compiler=no
6905 fi
6906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6908 echo "${ECHO_T}$ac_header_compiler" >&6
6909
6910 # Is the header present?
6911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6913 cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h. */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 #include <$ac_header>
6920 _ACEOF
6921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6923 ac_status=$?
6924 grep -v '^ *+' conftest.er1 >conftest.err
6925 rm -f conftest.er1
6926 cat conftest.err >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } >/dev/null; then
6929 if test -s conftest.err; then
6930 ac_cpp_err=$ac_c_preproc_warn_flag
6931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6932 else
6933 ac_cpp_err=
6934 fi
6935 else
6936 ac_cpp_err=yes
6937 fi
6938 if test -z "$ac_cpp_err"; then
6939 ac_header_preproc=yes
6940 else
6941 echo "$as_me: failed program was:" >&5
6942 sed 's/^/| /' conftest.$ac_ext >&5
6943
6944 ac_header_preproc=no
6945 fi
6946 rm -f conftest.err conftest.$ac_ext
6947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6948 echo "${ECHO_T}$ac_header_preproc" >&6
6949
6950 # So? What about this header?
6951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6952 yes:no: )
6953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6957 ac_header_preproc=yes
6958 ;;
6959 no:yes:* )
6960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6972 (
6973 cat <<\_ASBOX
6974 ## ------------------------------------------ ##
6975 ## Report this to the AC_PACKAGE_NAME lists. ##
6976 ## ------------------------------------------ ##
6977 _ASBOX
6978 ) |
6979 sed "s/^/$as_me: WARNING: /" >&2
6980 ;;
6981 esac
6982 echo "$as_me:$LINENO: checking for $ac_header" >&5
6983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 eval "$as_ac_Header=\$ac_header_preproc"
6988 fi
6989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6991
6992 fi
6993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6994 cat >>confdefs.h <<_ACEOF
6995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6996 _ACEOF
6997
6998 fi
6999
7000 done
7001
7002
7003 for ac_header in net/if.h
7004 do
7005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7006 echo "$as_me:$LINENO: checking for $ac_header" >&5
7007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 else
7011 cat >conftest.$ac_ext <<_ACEOF
7012 /* confdefs.h. */
7013 _ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7017 $ac_includes_default
7018 #if HAVE_SYS_SOCKET_H
7019 #include <sys/socket.h>
7020 #endif
7021
7022 #include <$ac_header>
7023 _ACEOF
7024 rm -f conftest.$ac_objext
7025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7026 (eval $ac_compile) 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
7033 { ac_try='test -z "$ac_c_werror_flag"
7034 || test ! -s conftest.err'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 (eval $ac_try) 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; } &&
7040 { ac_try='test -s conftest.$ac_objext'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 (eval $ac_try) 2>&5
7043 ac_status=$?
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; }; then
7046 eval "$as_ac_Header=yes"
7047 else
7048 echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7050
7051 eval "$as_ac_Header=no"
7052 fi
7053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7054 fi
7055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7058 cat >>confdefs.h <<_ACEOF
7059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7060 _ACEOF
7061
7062 fi
7063
7064 done
7065
7066
7067 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7068 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7069 if test "${ac_cv_struct_tm+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072 cat >conftest.$ac_ext <<_ACEOF
7073 /* confdefs.h. */
7074 _ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h. */
7078 #include <sys/types.h>
7079 #include <time.h>
7080
7081 int
7082 main ()
7083 {
7084 struct tm *tp; tp->tm_sec;
7085 ;
7086 return 0;
7087 }
7088 _ACEOF
7089 rm -f conftest.$ac_objext
7090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7091 (eval $ac_compile) 2>conftest.er1
7092 ac_status=$?
7093 grep -v '^ *+' conftest.er1 >conftest.err
7094 rm -f conftest.er1
7095 cat conftest.err >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } &&
7098 { ac_try='test -z "$ac_c_werror_flag"
7099 || test ! -s conftest.err'
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101 (eval $ac_try) 2>&5
7102 ac_status=$?
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; } &&
7105 { ac_try='test -s conftest.$ac_objext'
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107 (eval $ac_try) 2>&5
7108 ac_status=$?
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; }; then
7111 ac_cv_struct_tm=time.h
7112 else
7113 echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7115
7116 ac_cv_struct_tm=sys/time.h
7117 fi
7118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7119 fi
7120 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7121 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7122 if test $ac_cv_struct_tm = sys/time.h; then
7123
7124 cat >>confdefs.h <<\_ACEOF
7125 #define TM_IN_SYS_TIME 1
7126 _ACEOF
7127
7128 fi
7129
7130 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7131 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7132 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135 cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h. */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7141 #include <sys/types.h>
7142 #include <$ac_cv_struct_tm>
7143
7144
7145 int
7146 main ()
7147 {
7148 static struct tm ac_aggr;
7149 if (ac_aggr.tm_zone)
7150 return 0;
7151 ;
7152 return 0;
7153 }
7154 _ACEOF
7155 rm -f conftest.$ac_objext
7156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7157 (eval $ac_compile) 2>conftest.er1
7158 ac_status=$?
7159 grep -v '^ *+' conftest.er1 >conftest.err
7160 rm -f conftest.er1
7161 cat conftest.err >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } &&
7164 { ac_try='test -z "$ac_c_werror_flag"
7165 || test ! -s conftest.err'
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 (eval $ac_try) 2>&5
7168 ac_status=$?
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; } &&
7171 { ac_try='test -s conftest.$ac_objext'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 (eval $ac_try) 2>&5
7174 ac_status=$?
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
7177 ac_cv_member_struct_tm_tm_zone=yes
7178 else
7179 echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7181
7182 cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h. */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7188 #include <sys/types.h>
7189 #include <$ac_cv_struct_tm>
7190
7191
7192 int
7193 main ()
7194 {
7195 static struct tm ac_aggr;
7196 if (sizeof ac_aggr.tm_zone)
7197 return 0;
7198 ;
7199 return 0;
7200 }
7201 _ACEOF
7202 rm -f conftest.$ac_objext
7203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7204 (eval $ac_compile) 2>conftest.er1
7205 ac_status=$?
7206 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -f conftest.er1
7208 cat conftest.err >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } &&
7211 { ac_try='test -z "$ac_c_werror_flag"
7212 || test ! -s conftest.err'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 (eval $ac_try) 2>&5
7215 ac_status=$?
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; } &&
7218 { ac_try='test -s conftest.$ac_objext'
7219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220 (eval $ac_try) 2>&5
7221 ac_status=$?
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; }; then
7224 ac_cv_member_struct_tm_tm_zone=yes
7225 else
7226 echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.$ac_ext >&5
7228
7229 ac_cv_member_struct_tm_tm_zone=no
7230 fi
7231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7232 fi
7233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7234 fi
7235 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7236 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7237 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7238
7239 cat >>confdefs.h <<_ACEOF
7240 #define HAVE_STRUCT_TM_TM_ZONE 1
7241 _ACEOF
7242
7243
7244 fi
7245
7246 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7247
7248 cat >>confdefs.h <<\_ACEOF
7249 #define HAVE_TM_ZONE 1
7250 _ACEOF
7251
7252 else
7253 echo "$as_me:$LINENO: checking for tzname" >&5
7254 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7255 if test "${ac_cv_var_tzname+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258 cat >conftest.$ac_ext <<_ACEOF
7259 /* confdefs.h. */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 #include <time.h>
7265 #ifndef tzname /* For SGI. */
7266 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7267 #endif
7268
7269 int
7270 main ()
7271 {
7272 atoi(*tzname);
7273 ;
7274 return 0;
7275 }
7276 _ACEOF
7277 rm -f conftest.$ac_objext conftest$ac_exeext
7278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7279 (eval $ac_link) 2>conftest.er1
7280 ac_status=$?
7281 grep -v '^ *+' conftest.er1 >conftest.err
7282 rm -f conftest.er1
7283 cat conftest.err >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } &&
7286 { ac_try='test -z "$ac_c_werror_flag"
7287 || test ! -s conftest.err'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 (eval $ac_try) 2>&5
7290 ac_status=$?
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; } &&
7293 { ac_try='test -s conftest$ac_exeext'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; }; then
7299 ac_cv_var_tzname=yes
7300 else
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7303
7304 ac_cv_var_tzname=no
7305 fi
7306 rm -f conftest.err conftest.$ac_objext \
7307 conftest$ac_exeext conftest.$ac_ext
7308 fi
7309 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7310 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7311 if test $ac_cv_var_tzname = yes; then
7312
7313 cat >>confdefs.h <<\_ACEOF
7314 #define HAVE_TZNAME 1
7315 _ACEOF
7316
7317 fi
7318 fi
7319
7320 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7321 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7322 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325 cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h. */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7331 #include <time.h>
7332
7333 int
7334 main ()
7335 {
7336 static struct tm ac_aggr;
7337 if (ac_aggr.tm_gmtoff)
7338 return 0;
7339 ;
7340 return 0;
7341 }
7342 _ACEOF
7343 rm -f conftest.$ac_objext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345 (eval $ac_compile) 2>conftest.er1
7346 ac_status=$?
7347 grep -v '^ *+' conftest.er1 >conftest.err
7348 rm -f conftest.er1
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } &&
7352 { ac_try='test -z "$ac_c_werror_flag"
7353 || test ! -s conftest.err'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 (eval $ac_try) 2>&5
7356 ac_status=$?
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; } &&
7359 { ac_try='test -s conftest.$ac_objext'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_cv_member_struct_tm_tm_gmtoff=yes
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370 cat >conftest.$ac_ext <<_ACEOF
7371 /* confdefs.h. */
7372 _ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7376 #include <time.h>
7377
7378 int
7379 main ()
7380 {
7381 static struct tm ac_aggr;
7382 if (sizeof ac_aggr.tm_gmtoff)
7383 return 0;
7384 ;
7385 return 0;
7386 }
7387 _ACEOF
7388 rm -f conftest.$ac_objext
7389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7390 (eval $ac_compile) 2>conftest.er1
7391 ac_status=$?
7392 grep -v '^ *+' conftest.er1 >conftest.err
7393 rm -f conftest.er1
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } &&
7397 { ac_try='test -z "$ac_c_werror_flag"
7398 || test ! -s conftest.err'
7399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400 (eval $ac_try) 2>&5
7401 ac_status=$?
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); }; } &&
7404 { ac_try='test -s conftest.$ac_objext'
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 (eval $ac_try) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; }; then
7410 ac_cv_member_struct_tm_tm_gmtoff=yes
7411 else
7412 echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7414
7415 ac_cv_member_struct_tm_tm_gmtoff=no
7416 fi
7417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7418 fi
7419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7420 fi
7421 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7422 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7423 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7424
7425 cat >>confdefs.h <<\_ACEOF
7426 #define HAVE_TM_GMTOFF 1
7427 _ACEOF
7428
7429 fi
7430
7431 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7432 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7433 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436 cat >conftest.$ac_ext <<_ACEOF
7437 /* confdefs.h. */
7438 _ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h. */
7442 $ac_includes_default
7443 #if HAVE_SYS_SOCKET_H
7444 #include <sys/socket.h>
7445 #endif
7446 #if HAVE_NET_IF_H
7447 #include <net/if.h>
7448 #endif
7449
7450 int
7451 main ()
7452 {
7453 static struct ifreq ac_aggr;
7454 if (ac_aggr.ifr_flags)
7455 return 0;
7456 ;
7457 return 0;
7458 }
7459 _ACEOF
7460 rm -f conftest.$ac_objext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7462 (eval $ac_compile) 2>conftest.er1
7463 ac_status=$?
7464 grep -v '^ *+' conftest.er1 >conftest.err
7465 rm -f conftest.er1
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } &&
7469 { ac_try='test -z "$ac_c_werror_flag"
7470 || test ! -s conftest.err'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; } &&
7476 { ac_try='test -s conftest.$ac_objext'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 ac_cv_member_struct_ifreq_ifr_flags=yes
7483 else
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7486
7487 cat >conftest.$ac_ext <<_ACEOF
7488 /* confdefs.h. */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7493 $ac_includes_default
7494 #if HAVE_SYS_SOCKET_H
7495 #include <sys/socket.h>
7496 #endif
7497 #if HAVE_NET_IF_H
7498 #include <net/if.h>
7499 #endif
7500
7501 int
7502 main ()
7503 {
7504 static struct ifreq ac_aggr;
7505 if (sizeof ac_aggr.ifr_flags)
7506 return 0;
7507 ;
7508 return 0;
7509 }
7510 _ACEOF
7511 rm -f conftest.$ac_objext
7512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7513 (eval $ac_compile) 2>conftest.er1
7514 ac_status=$?
7515 grep -v '^ *+' conftest.er1 >conftest.err
7516 rm -f conftest.er1
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } &&
7520 { ac_try='test -z "$ac_c_werror_flag"
7521 || test ! -s conftest.err'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 (eval $ac_try) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; } &&
7527 { ac_try='test -s conftest.$ac_objext'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 (eval $ac_try) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7533 ac_cv_member_struct_ifreq_ifr_flags=yes
7534 else
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7537
7538 ac_cv_member_struct_ifreq_ifr_flags=no
7539 fi
7540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7541 fi
7542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7543 fi
7544 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7545 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7546 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7547
7548 cat >>confdefs.h <<_ACEOF
7549 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7550 _ACEOF
7551
7552
7553 fi
7554 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7555 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7556 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559 cat >conftest.$ac_ext <<_ACEOF
7560 /* confdefs.h. */
7561 _ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h. */
7565 $ac_includes_default
7566 #if HAVE_SYS_SOCKET_H
7567 #include <sys/socket.h>
7568 #endif
7569 #if HAVE_NET_IF_H
7570 #include <net/if.h>
7571 #endif
7572
7573 int
7574 main ()
7575 {
7576 static struct ifreq ac_aggr;
7577 if (ac_aggr.ifr_hwaddr)
7578 return 0;
7579 ;
7580 return 0;
7581 }
7582 _ACEOF
7583 rm -f conftest.$ac_objext
7584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7585 (eval $ac_compile) 2>conftest.er1
7586 ac_status=$?
7587 grep -v '^ *+' conftest.er1 >conftest.err
7588 rm -f conftest.er1
7589 cat conftest.err >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } &&
7592 { ac_try='test -z "$ac_c_werror_flag"
7593 || test ! -s conftest.err'
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 (eval $ac_try) 2>&5
7596 ac_status=$?
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; } &&
7599 { ac_try='test -s conftest.$ac_objext'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 (eval $ac_try) 2>&5
7602 ac_status=$?
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
7605 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7606 else
7607 echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7609
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h. */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 $ac_includes_default
7617 #if HAVE_SYS_SOCKET_H
7618 #include <sys/socket.h>
7619 #endif
7620 #if HAVE_NET_IF_H
7621 #include <net/if.h>
7622 #endif
7623
7624 int
7625 main ()
7626 {
7627 static struct ifreq ac_aggr;
7628 if (sizeof ac_aggr.ifr_hwaddr)
7629 return 0;
7630 ;
7631 return 0;
7632 }
7633 _ACEOF
7634 rm -f conftest.$ac_objext
7635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7636 (eval $ac_compile) 2>conftest.er1
7637 ac_status=$?
7638 grep -v '^ *+' conftest.er1 >conftest.err
7639 rm -f conftest.er1
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } &&
7643 { ac_try='test -z "$ac_c_werror_flag"
7644 || test ! -s conftest.err'
7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 (eval $ac_try) 2>&5
7647 ac_status=$?
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; } &&
7650 { ac_try='test -s conftest.$ac_objext'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 (eval $ac_try) 2>&5
7653 ac_status=$?
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; }; then
7656 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7657 else
7658 echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7660
7661 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7662 fi
7663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7664 fi
7665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7666 fi
7667 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7668 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7669 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7670
7671 cat >>confdefs.h <<_ACEOF
7672 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7673 _ACEOF
7674
7675
7676 fi
7677 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7678 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7679 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682 cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h. */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 $ac_includes_default
7689 #if HAVE_SYS_SOCKET_H
7690 #include <sys/socket.h>
7691 #endif
7692 #if HAVE_NET_IF_H
7693 #include <net/if.h>
7694 #endif
7695
7696 int
7697 main ()
7698 {
7699 static struct ifreq ac_aggr;
7700 if (ac_aggr.ifr_netmask)
7701 return 0;
7702 ;
7703 return 0;
7704 }
7705 _ACEOF
7706 rm -f conftest.$ac_objext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7708 (eval $ac_compile) 2>conftest.er1
7709 ac_status=$?
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } &&
7715 { ac_try='test -z "$ac_c_werror_flag"
7716 || test ! -s conftest.err'
7717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 (eval $ac_try) 2>&5
7719 ac_status=$?
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; } &&
7722 { ac_try='test -s conftest.$ac_objext'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 (eval $ac_try) 2>&5
7725 ac_status=$?
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; }; then
7728 ac_cv_member_struct_ifreq_ifr_netmask=yes
7729 else
7730 echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7732
7733 cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h. */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7739 $ac_includes_default
7740 #if HAVE_SYS_SOCKET_H
7741 #include <sys/socket.h>
7742 #endif
7743 #if HAVE_NET_IF_H
7744 #include <net/if.h>
7745 #endif
7746
7747 int
7748 main ()
7749 {
7750 static struct ifreq ac_aggr;
7751 if (sizeof ac_aggr.ifr_netmask)
7752 return 0;
7753 ;
7754 return 0;
7755 }
7756 _ACEOF
7757 rm -f conftest.$ac_objext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7759 (eval $ac_compile) 2>conftest.er1
7760 ac_status=$?
7761 grep -v '^ *+' conftest.er1 >conftest.err
7762 rm -f conftest.er1
7763 cat conftest.err >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
7766 { ac_try='test -z "$ac_c_werror_flag"
7767 || test ! -s conftest.err'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 (eval $ac_try) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; } &&
7773 { ac_try='test -s conftest.$ac_objext'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 (eval $ac_try) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7779 ac_cv_member_struct_ifreq_ifr_netmask=yes
7780 else
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7783
7784 ac_cv_member_struct_ifreq_ifr_netmask=no
7785 fi
7786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7787 fi
7788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7789 fi
7790 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7791 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7792 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7793
7794 cat >>confdefs.h <<_ACEOF
7795 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7796 _ACEOF
7797
7798
7799 fi
7800 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7801 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7802 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805 cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h. */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 $ac_includes_default
7812 #if HAVE_SYS_SOCKET_H
7813 #include <sys/socket.h>
7814 #endif
7815 #if HAVE_NET_IF_H
7816 #include <net/if.h>
7817 #endif
7818
7819 int
7820 main ()
7821 {
7822 static struct ifreq ac_aggr;
7823 if (ac_aggr.ifr_broadaddr)
7824 return 0;
7825 ;
7826 return 0;
7827 }
7828 _ACEOF
7829 rm -f conftest.$ac_objext
7830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7831 (eval $ac_compile) 2>conftest.er1
7832 ac_status=$?
7833 grep -v '^ *+' conftest.er1 >conftest.err
7834 rm -f conftest.er1
7835 cat conftest.err >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } &&
7838 { ac_try='test -z "$ac_c_werror_flag"
7839 || test ! -s conftest.err'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 (eval $ac_try) 2>&5
7842 ac_status=$?
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; } &&
7845 { ac_try='test -s conftest.$ac_objext'
7846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 (eval $ac_try) 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; }; then
7851 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7852 else
7853 echo "$as_me: failed program was:" >&5
7854 sed 's/^/| /' conftest.$ac_ext >&5
7855
7856 cat >conftest.$ac_ext <<_ACEOF
7857 /* confdefs.h. */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862 $ac_includes_default
7863 #if HAVE_SYS_SOCKET_H
7864 #include <sys/socket.h>
7865 #endif
7866 #if HAVE_NET_IF_H
7867 #include <net/if.h>
7868 #endif
7869
7870 int
7871 main ()
7872 {
7873 static struct ifreq ac_aggr;
7874 if (sizeof ac_aggr.ifr_broadaddr)
7875 return 0;
7876 ;
7877 return 0;
7878 }
7879 _ACEOF
7880 rm -f conftest.$ac_objext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7882 (eval $ac_compile) 2>conftest.er1
7883 ac_status=$?
7884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try='test -z "$ac_c_werror_flag"
7890 || test ! -s conftest.err'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; } &&
7896 { ac_try='test -s conftest.$ac_objext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7903 else
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7906
7907 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7908 fi
7909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7910 fi
7911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7912 fi
7913 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7914 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7915 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7916
7917 cat >>confdefs.h <<_ACEOF
7918 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7919 _ACEOF
7920
7921
7922 fi
7923 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7924 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7925 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928 cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h. */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 $ac_includes_default
7935 #if HAVE_SYS_SOCKET_H
7936 #include <sys/socket.h>
7937 #endif
7938 #if HAVE_NET_IF_H
7939 #include <net/if.h>
7940 #endif
7941
7942 int
7943 main ()
7944 {
7945 static struct ifreq ac_aggr;
7946 if (ac_aggr.ifr_addr)
7947 return 0;
7948 ;
7949 return 0;
7950 }
7951 _ACEOF
7952 rm -f conftest.$ac_objext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954 (eval $ac_compile) 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try='test -z "$ac_c_werror_flag"
7962 || test ! -s conftest.err'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest.$ac_objext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_cv_member_struct_ifreq_ifr_addr=yes
7975 else
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7978
7979 cat >conftest.$ac_ext <<_ACEOF
7980 /* confdefs.h. */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7985 $ac_includes_default
7986 #if HAVE_SYS_SOCKET_H
7987 #include <sys/socket.h>
7988 #endif
7989 #if HAVE_NET_IF_H
7990 #include <net/if.h>
7991 #endif
7992
7993 int
7994 main ()
7995 {
7996 static struct ifreq ac_aggr;
7997 if (sizeof ac_aggr.ifr_addr)
7998 return 0;
7999 ;
8000 return 0;
8001 }
8002 _ACEOF
8003 rm -f conftest.$ac_objext
8004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8005 (eval $ac_compile) 2>conftest.er1
8006 ac_status=$?
8007 grep -v '^ *+' conftest.er1 >conftest.err
8008 rm -f conftest.er1
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } &&
8012 { ac_try='test -z "$ac_c_werror_flag"
8013 || test ! -s conftest.err'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 (eval $ac_try) 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; } &&
8019 { ac_try='test -s conftest.$ac_objext'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 (eval $ac_try) 2>&5
8022 ac_status=$?
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; }; then
8025 ac_cv_member_struct_ifreq_ifr_addr=yes
8026 else
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8029
8030 ac_cv_member_struct_ifreq_ifr_addr=no
8031 fi
8032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8033 fi
8034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8035 fi
8036 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8037 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
8038 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8039
8040 cat >>confdefs.h <<_ACEOF
8041 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8042 _ACEOF
8043
8044
8045 fi
8046
8047
8048
8049 echo "$as_me:$LINENO: checking for function prototypes" >&5
8050 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8051 if test "$ac_cv_prog_cc_stdc" != no; then
8052 echo "$as_me:$LINENO: result: yes" >&5
8053 echo "${ECHO_T}yes" >&6
8054
8055 cat >>confdefs.h <<\_ACEOF
8056 #define PROTOTYPES 1
8057 _ACEOF
8058
8059
8060 cat >>confdefs.h <<\_ACEOF
8061 #define __PROTOTYPES 1
8062 _ACEOF
8063
8064 else
8065 echo "$as_me:$LINENO: result: no" >&5
8066 echo "${ECHO_T}no" >&6
8067 fi
8068
8069 echo "$as_me:$LINENO: checking for working volatile" >&5
8070 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8071 if test "${ac_cv_c_volatile+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074 cat >conftest.$ac_ext <<_ACEOF
8075 /* confdefs.h. */
8076 _ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8080
8081 int
8082 main ()
8083 {
8084
8085 volatile int x;
8086 int * volatile y;
8087 ;
8088 return 0;
8089 }
8090 _ACEOF
8091 rm -f conftest.$ac_objext
8092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8093 (eval $ac_compile) 2>conftest.er1
8094 ac_status=$?
8095 grep -v '^ *+' conftest.er1 >conftest.err
8096 rm -f conftest.er1
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } &&
8100 { ac_try='test -z "$ac_c_werror_flag"
8101 || test ! -s conftest.err'
8102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 (eval $ac_try) 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; } &&
8107 { ac_try='test -s conftest.$ac_objext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 (eval $ac_try) 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 ac_cv_c_volatile=yes
8114 else
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8117
8118 ac_cv_c_volatile=no
8119 fi
8120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8121 fi
8122 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8123 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8124 if test $ac_cv_c_volatile = no; then
8125
8126 cat >>confdefs.h <<\_ACEOF
8127 #define volatile
8128 _ACEOF
8129
8130 fi
8131
8132 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8133 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8134 if test "${ac_cv_c_const+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 else
8137 cat >conftest.$ac_ext <<_ACEOF
8138 /* confdefs.h. */
8139 _ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8143
8144 int
8145 main ()
8146 {
8147 /* FIXME: Include the comments suggested by Paul. */
8148 #ifndef __cplusplus
8149 /* Ultrix mips cc rejects this. */
8150 typedef int charset[2];
8151 const charset x;
8152 /* SunOS 4.1.1 cc rejects this. */
8153 char const *const *ccp;
8154 char **p;
8155 /* NEC SVR4.0.2 mips cc rejects this. */
8156 struct point {int x, y;};
8157 static struct point const zero = {0,0};
8158 /* AIX XL C 1.02.0.0 rejects this.
8159 It does not let you subtract one const X* pointer from another in
8160 an arm of an if-expression whose if-part is not a constant
8161 expression */
8162 const char *g = "string";
8163 ccp = &g + (g ? g-g : 0);
8164 /* HPUX 7.0 cc rejects these. */
8165 ++ccp;
8166 p = (char**) ccp;
8167 ccp = (char const *const *) p;
8168 { /* SCO 3.2v4 cc rejects this. */
8169 char *t;
8170 char const *s = 0 ? (char *) 0 : (char const *) 0;
8171
8172 *t++ = 0;
8173 }
8174 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8175 int x[] = {25, 17};
8176 const int *foo = &x[0];
8177 ++foo;
8178 }
8179 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8180 typedef const int *iptr;
8181 iptr p = 0;
8182 ++p;
8183 }
8184 { /* AIX XL C 1.02.0.0 rejects this saying
8185 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8186 struct s { int j; const int *ap[3]; };
8187 struct s *b; b->j = 5;
8188 }
8189 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8190 const int foo = 10;
8191 }
8192 #endif
8193
8194 ;
8195 return 0;
8196 }
8197 _ACEOF
8198 rm -f conftest.$ac_objext
8199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8200 (eval $ac_compile) 2>conftest.er1
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } &&
8207 { ac_try='test -z "$ac_c_werror_flag"
8208 || test ! -s conftest.err'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210 (eval $ac_try) 2>&5
8211 ac_status=$?
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; } &&
8214 { ac_try='test -s conftest.$ac_objext'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 (eval $ac_try) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 ac_cv_c_const=yes
8221 else
8222 echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8224
8225 ac_cv_c_const=no
8226 fi
8227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8228 fi
8229 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8230 echo "${ECHO_T}$ac_cv_c_const" >&6
8231 if test $ac_cv_c_const = no; then
8232
8233 cat >>confdefs.h <<\_ACEOF
8234 #define const
8235 _ACEOF
8236
8237 fi
8238
8239 echo "$as_me:$LINENO: checking for void * support" >&5
8240 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8241 if test "${emacs_cv_void_star+set}" = set; then
8242 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 else
8244 cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h. */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250
8251 int
8252 main ()
8253 {
8254 void * foo;
8255 ;
8256 return 0;
8257 }
8258 _ACEOF
8259 rm -f conftest.$ac_objext
8260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8261 (eval $ac_compile) 2>conftest.er1
8262 ac_status=$?
8263 grep -v '^ *+' conftest.er1 >conftest.err
8264 rm -f conftest.er1
8265 cat conftest.err >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } &&
8268 { ac_try='test -z "$ac_c_werror_flag"
8269 || test ! -s conftest.err'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271 (eval $ac_try) 2>&5
8272 ac_status=$?
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; } &&
8275 { ac_try='test -s conftest.$ac_objext'
8276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277 (eval $ac_try) 2>&5
8278 ac_status=$?
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; }; then
8281 emacs_cv_void_star=yes
8282 else
8283 echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8285
8286 emacs_cv_void_star=no
8287 fi
8288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8289 fi
8290 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8291 echo "${ECHO_T}$emacs_cv_void_star" >&6
8292 if test $emacs_cv_void_star = yes; then
8293 cat >>confdefs.h <<\_ACEOF
8294 #define POINTER_TYPE void
8295 _ACEOF
8296
8297 else
8298 cat >>confdefs.h <<\_ACEOF
8299 #define POINTER_TYPE char
8300 _ACEOF
8301
8302 fi
8303
8304
8305
8306
8307
8308 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8309 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8310 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8311 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314 cat >conftest.make <<\_ACEOF
8315 all:
8316 @echo 'ac_maketemp="$(MAKE)"'
8317 _ACEOF
8318 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8319 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8320 if test -n "$ac_maketemp"; then
8321 eval ac_cv_prog_make_${ac_make}_set=yes
8322 else
8323 eval ac_cv_prog_make_${ac_make}_set=no
8324 fi
8325 rm -f conftest.make
8326 fi
8327 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8328 echo "$as_me:$LINENO: result: yes" >&5
8329 echo "${ECHO_T}yes" >&6
8330 SET_MAKE=
8331 else
8332 echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6
8334 SET_MAKE="MAKE=${MAKE-make}"
8335 fi
8336
8337
8338 echo "$as_me:$LINENO: checking for long file names" >&5
8339 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8340 if test "${ac_cv_sys_long_file_names+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343 ac_cv_sys_long_file_names=yes
8344 # Test for long file names in all the places we know might matter:
8345 # . the current directory, where building will happen
8346 # $prefix/lib where we will be installing things
8347 # $exec_prefix/lib likewise
8348 # eval it to expand exec_prefix.
8349 # $TMPDIR if set, where it might want to write temporary files
8350 # if $TMPDIR is not set:
8351 # /tmp where it might want to write temporary files
8352 # /var/tmp likewise
8353 # /usr/tmp likewise
8354 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8355 ac_tmpdirs=$TMPDIR
8356 else
8357 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8358 fi
8359 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8360 test -d $ac_dir || continue
8361 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8362 ac_xdir=$ac_dir/cf$$
8363 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8364 ac_tf1=$ac_xdir/conftest9012345
8365 ac_tf2=$ac_xdir/conftest9012346
8366 (echo 1 >$ac_tf1) 2>/dev/null
8367 (echo 2 >$ac_tf2) 2>/dev/null
8368 ac_val=`cat $ac_tf1 2>/dev/null`
8369 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8370 ac_cv_sys_long_file_names=no
8371 rm -rf $ac_xdir 2>/dev/null
8372 break
8373 fi
8374 rm -rf $ac_xdir 2>/dev/null
8375 done
8376 fi
8377 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8378 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8379 if test $ac_cv_sys_long_file_names = yes; then
8380
8381 cat >>confdefs.h <<\_ACEOF
8382 #define HAVE_LONG_FILE_NAMES 1
8383 _ACEOF
8384
8385 fi
8386
8387
8388 #### Choose a window system.
8389
8390 echo "$as_me:$LINENO: checking for X" >&5
8391 echo $ECHO_N "checking for X... $ECHO_C" >&6
8392
8393
8394 # Check whether --with-x or --without-x was given.
8395 if test "${with_x+set}" = set; then
8396 withval="$with_x"
8397
8398 fi;
8399 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8400 if test "x$with_x" = xno; then
8401 # The user explicitly disabled X.
8402 have_x=disabled
8403 else
8404 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8405 # Both variables are already set.
8406 have_x=yes
8407 else
8408 if test "${ac_cv_have_x+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411 # One or both of the vars are not set, and there is no cached value.
8412 ac_x_includes=no ac_x_libraries=no
8413 rm -fr conftest.dir
8414 if mkdir conftest.dir; then
8415 cd conftest.dir
8416 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8417 cat >Imakefile <<'_ACEOF'
8418 acfindx:
8419 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8420 _ACEOF
8421 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8422 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8423 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8424 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8425 for ac_extension in a so sl; do
8426 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8427 test -f $ac_im_libdir/libX11.$ac_extension; then
8428 ac_im_usrlibdir=$ac_im_libdir; break
8429 fi
8430 done
8431 # Screen out bogus values from the imake configuration. They are
8432 # bogus both because they are the default anyway, and because
8433 # using them would break gcc on systems where it needs fixed includes.
8434 case $ac_im_incroot in
8435 /usr/include) ;;
8436 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8437 esac
8438 case $ac_im_usrlibdir in
8439 /usr/lib | /lib) ;;
8440 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8441 esac
8442 fi
8443 cd ..
8444 rm -fr conftest.dir
8445 fi
8446
8447 # Standard set of common directories for X headers.
8448 # Check X11 before X11Rn because it is often a symlink to the current release.
8449 ac_x_header_dirs='
8450 /usr/X11/include
8451 /usr/X11R6/include
8452 /usr/X11R5/include
8453 /usr/X11R4/include
8454
8455 /usr/include/X11
8456 /usr/include/X11R6
8457 /usr/include/X11R5
8458 /usr/include/X11R4
8459
8460 /usr/local/X11/include
8461 /usr/local/X11R6/include
8462 /usr/local/X11R5/include
8463 /usr/local/X11R4/include
8464
8465 /usr/local/include/X11
8466 /usr/local/include/X11R6
8467 /usr/local/include/X11R5
8468 /usr/local/include/X11R4
8469
8470 /usr/X386/include
8471 /usr/x386/include
8472 /usr/XFree86/include/X11
8473
8474 /usr/include
8475 /usr/local/include
8476 /usr/unsupported/include
8477 /usr/athena/include
8478 /usr/local/x11r5/include
8479 /usr/lpp/Xamples/include
8480
8481 /usr/openwin/include
8482 /usr/openwin/share/include'
8483
8484 if test "$ac_x_includes" = no; then
8485 # Guess where to find include files, by looking for Intrinsic.h.
8486 # First, try using that file with no special directory specified.
8487 cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h. */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8493 #include <X11/Intrinsic.h>
8494 _ACEOF
8495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8497 ac_status=$?
8498 grep -v '^ *+' conftest.er1 >conftest.err
8499 rm -f conftest.er1
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } >/dev/null; then
8503 if test -s conftest.err; then
8504 ac_cpp_err=$ac_c_preproc_warn_flag
8505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8506 else
8507 ac_cpp_err=
8508 fi
8509 else
8510 ac_cpp_err=yes
8511 fi
8512 if test -z "$ac_cpp_err"; then
8513 # We can compile using X headers with no special include directory.
8514 ac_x_includes=
8515 else
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8518
8519 for ac_dir in $ac_x_header_dirs; do
8520 if test -r "$ac_dir/X11/Intrinsic.h"; then
8521 ac_x_includes=$ac_dir
8522 break
8523 fi
8524 done
8525 fi
8526 rm -f conftest.err conftest.$ac_ext
8527 fi # $ac_x_includes = no
8528
8529 if test "$ac_x_libraries" = no; then
8530 # Check for the libraries.
8531 # See if we find them without any special options.
8532 # Don't add to $LIBS permanently.
8533 ac_save_LIBS=$LIBS
8534 LIBS="-lXt $LIBS"
8535 cat >conftest.$ac_ext <<_ACEOF
8536 /* confdefs.h. */
8537 _ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8541 #include <X11/Intrinsic.h>
8542 int
8543 main ()
8544 {
8545 XtMalloc (0)
8546 ;
8547 return 0;
8548 }
8549 _ACEOF
8550 rm -f conftest.$ac_objext conftest$ac_exeext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8552 (eval $ac_link) 2>conftest.er1
8553 ac_status=$?
8554 grep -v '^ *+' conftest.er1 >conftest.err
8555 rm -f conftest.er1
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } &&
8559 { ac_try='test -z "$ac_c_werror_flag"
8560 || test ! -s conftest.err'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try='test -s conftest$ac_exeext'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 (eval $ac_try) 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8572 LIBS=$ac_save_LIBS
8573 # We can link X programs with no special library path.
8574 ac_x_libraries=
8575 else
8576 echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8578
8579 LIBS=$ac_save_LIBS
8580 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8581 do
8582 # Don't even attempt the hair of trying to link an X program!
8583 for ac_extension in a so sl; do
8584 if test -r $ac_dir/libXt.$ac_extension; then
8585 ac_x_libraries=$ac_dir
8586 break 2
8587 fi
8588 done
8589 done
8590 fi
8591 rm -f conftest.err conftest.$ac_objext \
8592 conftest$ac_exeext conftest.$ac_ext
8593 fi # $ac_x_libraries = no
8594
8595 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8596 # Didn't find X anywhere. Cache the known absence of X.
8597 ac_cv_have_x="have_x=no"
8598 else
8599 # Record where we found X for the cache.
8600 ac_cv_have_x="have_x=yes \
8601 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8602 fi
8603 fi
8604
8605 fi
8606 eval "$ac_cv_have_x"
8607 fi # $with_x != no
8608
8609 if test "$have_x" != yes; then
8610 echo "$as_me:$LINENO: result: $have_x" >&5
8611 echo "${ECHO_T}$have_x" >&6
8612 no_x=yes
8613 else
8614 # If each of the values was on the command line, it overrides each guess.
8615 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8616 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8617 # Update the cache value to reflect the command line values.
8618 ac_cv_have_x="have_x=yes \
8619 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8620 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8621 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8622 fi
8623
8624 if test "$no_x" = yes; then
8625 window_system=none
8626 else
8627 window_system=x11
8628 fi
8629
8630 if test "${x_libraries}" != NONE; then
8631 if test -n "${x_libraries}"; then
8632 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8633 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8634 fi
8635 x_default_search_path=""
8636 x_search_path=${x_libraries}
8637 if test -z "${x_search_path}"; then
8638 x_search_path=/usr/lib
8639 fi
8640 for x_library in `echo ${x_search_path}: | \
8641 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8642 x_search_path="\
8643 ${x_library}/X11/%L/%T/%N%C%S:\
8644 ${x_library}/X11/%l/%T/%N%C%S:\
8645 ${x_library}/X11/%T/%N%C%S:\
8646 ${x_library}/X11/%L/%T/%N%S:\
8647 ${x_library}/X11/%l/%T/%N%S:\
8648 ${x_library}/X11/%T/%N%S"
8649 if test x"${x_default_search_path}" = x; then
8650 x_default_search_path=${x_search_path}
8651 else
8652 x_default_search_path="${x_search_path}:${x_default_search_path}"
8653 fi
8654 done
8655 fi
8656 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8657 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8658 fi
8659
8660 if test x"${x_includes}" = x; then
8661 bitmapdir=/usr/include/X11/bitmaps
8662 else
8663 # accumulate include directories that have X11 bitmap subdirectories
8664 bmd_acc="dummyval"
8665 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8666 if test -d "${bmd}/X11/bitmaps"; then
8667 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8668 fi
8669 if test -d "${bmd}/bitmaps"; then
8670 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8671 fi
8672 done
8673 if test ${bmd_acc} != "dummyval"; then
8674 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8675 fi
8676 fi
8677
8678 HAVE_CARBON=no
8679 if test "${with_carbon}" != no; then
8680 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8681 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8682 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8683 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 fi
8686 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8687 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8688 else
8689 # Is the header compilable?
8690 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8691 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h. */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 $ac_includes_default
8699 #include <Carbon/Carbon.h>
8700 _ACEOF
8701 rm -f conftest.$ac_objext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8703 (eval $ac_compile) 2>conftest.er1
8704 ac_status=$?
8705 grep -v '^ *+' conftest.er1 >conftest.err
8706 rm -f conftest.er1
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try='test -z "$ac_c_werror_flag"
8711 || test ! -s conftest.err'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest.$ac_objext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_header_compiler=yes
8724 else
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8727
8728 ac_header_compiler=no
8729 fi
8730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8732 echo "${ECHO_T}$ac_header_compiler" >&6
8733
8734 # Is the header present?
8735 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8736 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h. */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8743 #include <Carbon/Carbon.h>
8744 _ACEOF
8745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8747 ac_status=$?
8748 grep -v '^ *+' conftest.er1 >conftest.err
8749 rm -f conftest.er1
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } >/dev/null; then
8753 if test -s conftest.err; then
8754 ac_cpp_err=$ac_c_preproc_warn_flag
8755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8756 else
8757 ac_cpp_err=
8758 fi
8759 else
8760 ac_cpp_err=yes
8761 fi
8762 if test -z "$ac_cpp_err"; then
8763 ac_header_preproc=yes
8764 else
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768 ac_header_preproc=no
8769 fi
8770 rm -f conftest.err conftest.$ac_ext
8771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8772 echo "${ECHO_T}$ac_header_preproc" >&6
8773
8774 # So? What about this header?
8775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8776 yes:no: )
8777 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8778 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8779 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8780 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8781 ac_header_preproc=yes
8782 ;;
8783 no:yes:* )
8784 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8785 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8786 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8787 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8789 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8790 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8791 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8792 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8793 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8794 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8795 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8796 (
8797 cat <<\_ASBOX
8798 ## ------------------------------------------ ##
8799 ## Report this to the AC_PACKAGE_NAME lists. ##
8800 ## ------------------------------------------ ##
8801 _ASBOX
8802 ) |
8803 sed "s/^/$as_me: WARNING: /" >&2
8804 ;;
8805 esac
8806 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8807 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8808 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 else
8811 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8812 fi
8813 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8814 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8815
8816 fi
8817 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8818 HAVE_CARBON=yes
8819 fi
8820
8821
8822 fi
8823 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8824 if test "${with_carbon+set}" != set \
8825 && test "${carbon_appdir_x+set}" != set; then
8826 for var in with_x with_x_toolkit with_gtk with_xim \
8827 with_xpm with_jpeg with_tiff with_gif with_png; do
8828 if eval test \"\${$var+set}\" = set; then
8829 HAVE_CARBON=no
8830 break
8831 fi
8832 done
8833 fi
8834 fi
8835 if test "${HAVE_CARBON}" = yes; then
8836 window_system=mac
8837 fi
8838
8839 case "${window_system}" in
8840 x11 )
8841 HAVE_X_WINDOWS=yes
8842 HAVE_X11=yes
8843 case "${with_x_toolkit}" in
8844 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8845 motif ) USE_X_TOOLKIT=MOTIF ;;
8846 gtk ) with_gtk=yes
8847 USE_X_TOOLKIT=none ;;
8848 no ) USE_X_TOOLKIT=none ;;
8849 * ) USE_X_TOOLKIT=maybe ;;
8850 esac
8851 ;;
8852 mac | none )
8853 HAVE_X_WINDOWS=no
8854 HAVE_X11=no
8855 USE_X_TOOLKIT=none
8856 ;;
8857 esac
8858
8859 ### If we're using X11, we should use the X menu package.
8860 HAVE_MENUS=no
8861 case ${HAVE_X11} in
8862 yes ) HAVE_MENUS=yes ;;
8863 esac
8864
8865 if test "${opsys}" = "hpux9"; then
8866 case "${x_libraries}" in
8867 *X11R4* )
8868 opsysfile="s/hpux9-x11r4.h"
8869 ;;
8870 esac
8871 fi
8872
8873 if test "${opsys}" = "hpux9shr"; then
8874 case "${x_libraries}" in
8875 *X11R4* )
8876 opsysfile="s/hpux9shxr4.h"
8877 ;;
8878 esac
8879 fi
8880
8881 ### Compute the unexec source name from the object name.
8882 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8883
8884 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8885 # Assume not, until told otherwise.
8886 GNU_MALLOC=yes
8887 doug_lea_malloc=yes
8888 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8889 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8890 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 else
8893 cat >conftest.$ac_ext <<_ACEOF
8894 /* confdefs.h. */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8901 #define malloc_get_state innocuous_malloc_get_state
8902
8903 /* System header to define __stub macros and hopefully few prototypes,
8904 which can conflict with char malloc_get_state (); below.
8905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8906 <limits.h> exists even on freestanding compilers. */
8907
8908 #ifdef __STDC__
8909 # include <limits.h>
8910 #else
8911 # include <assert.h>
8912 #endif
8913
8914 #undef malloc_get_state
8915
8916 /* Override any gcc2 internal prototype to avoid an error. */
8917 #ifdef __cplusplus
8918 extern "C"
8919 {
8920 #endif
8921 /* We use char because int might match the return type of a gcc2
8922 builtin and then its argument prototype would still apply. */
8923 char malloc_get_state ();
8924 /* The GNU C library defines this for functions which it implements
8925 to always fail with ENOSYS. Some functions are actually named
8926 something starting with __ and the normal name is an alias. */
8927 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8928 choke me
8929 #else
8930 char (*f) () = malloc_get_state;
8931 #endif
8932 #ifdef __cplusplus
8933 }
8934 #endif
8935
8936 int
8937 main ()
8938 {
8939 return f != malloc_get_state;
8940 ;
8941 return 0;
8942 }
8943 _ACEOF
8944 rm -f conftest.$ac_objext conftest$ac_exeext
8945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8946 (eval $ac_link) 2>conftest.er1
8947 ac_status=$?
8948 grep -v '^ *+' conftest.er1 >conftest.err
8949 rm -f conftest.er1
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -z "$ac_c_werror_flag"
8954 || test ! -s conftest.err'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; } &&
8960 { ac_try='test -s conftest$ac_exeext'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 (eval $ac_try) 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; }; then
8966 ac_cv_func_malloc_get_state=yes
8967 else
8968 echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8970
8971 ac_cv_func_malloc_get_state=no
8972 fi
8973 rm -f conftest.err conftest.$ac_objext \
8974 conftest$ac_exeext conftest.$ac_ext
8975 fi
8976 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8977 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8978 if test $ac_cv_func_malloc_get_state = yes; then
8979 :
8980 else
8981 doug_lea_malloc=no
8982 fi
8983
8984 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8985 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8986 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 else
8989 cat >conftest.$ac_ext <<_ACEOF
8990 /* confdefs.h. */
8991 _ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h. */
8995 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8997 #define malloc_set_state innocuous_malloc_set_state
8998
8999 /* System header to define __stub macros and hopefully few prototypes,
9000 which can conflict with char malloc_set_state (); below.
9001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9002 <limits.h> exists even on freestanding compilers. */
9003
9004 #ifdef __STDC__
9005 # include <limits.h>
9006 #else
9007 # include <assert.h>
9008 #endif
9009
9010 #undef malloc_set_state
9011
9012 /* Override any gcc2 internal prototype to avoid an error. */
9013 #ifdef __cplusplus
9014 extern "C"
9015 {
9016 #endif
9017 /* We use char because int might match the return type of a gcc2
9018 builtin and then its argument prototype would still apply. */
9019 char malloc_set_state ();
9020 /* The GNU C library defines this for functions which it implements
9021 to always fail with ENOSYS. Some functions are actually named
9022 something starting with __ and the normal name is an alias. */
9023 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
9024 choke me
9025 #else
9026 char (*f) () = malloc_set_state;
9027 #endif
9028 #ifdef __cplusplus
9029 }
9030 #endif
9031
9032 int
9033 main ()
9034 {
9035 return f != malloc_set_state;
9036 ;
9037 return 0;
9038 }
9039 _ACEOF
9040 rm -f conftest.$ac_objext conftest$ac_exeext
9041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9042 (eval $ac_link) 2>conftest.er1
9043 ac_status=$?
9044 grep -v '^ *+' conftest.er1 >conftest.err
9045 rm -f conftest.er1
9046 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } &&
9049 { ac_try='test -z "$ac_c_werror_flag"
9050 || test ! -s conftest.err'
9051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 (eval $ac_try) 2>&5
9053 ac_status=$?
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; } &&
9056 { ac_try='test -s conftest$ac_exeext'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 (eval $ac_try) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; }; then
9062 ac_cv_func_malloc_set_state=yes
9063 else
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9066
9067 ac_cv_func_malloc_set_state=no
9068 fi
9069 rm -f conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext conftest.$ac_ext
9071 fi
9072 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9073 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9074 if test $ac_cv_func_malloc_set_state = yes; then
9075 :
9076 else
9077 doug_lea_malloc=no
9078 fi
9079
9080 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9081 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9082 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085 cat >conftest.$ac_ext <<_ACEOF
9086 /* confdefs.h. */
9087 _ACEOF
9088 cat confdefs.h >>conftest.$ac_ext
9089 cat >>conftest.$ac_ext <<_ACEOF
9090 /* end confdefs.h. */
9091 extern void (* __after_morecore_hook)();
9092 int
9093 main ()
9094 {
9095 __after_morecore_hook = 0
9096 ;
9097 return 0;
9098 }
9099 _ACEOF
9100 rm -f conftest.$ac_objext conftest$ac_exeext
9101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9102 (eval $ac_link) 2>conftest.er1
9103 ac_status=$?
9104 grep -v '^ *+' conftest.er1 >conftest.err
9105 rm -f conftest.er1
9106 cat conftest.err >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } &&
9109 { ac_try='test -z "$ac_c_werror_flag"
9110 || test ! -s conftest.err'
9111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112 (eval $ac_try) 2>&5
9113 ac_status=$?
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; } &&
9116 { ac_try='test -s conftest$ac_exeext'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 (eval $ac_try) 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 emacs_cv_var___after_morecore_hook=yes
9123 else
9124 echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9126
9127 emacs_cv_var___after_morecore_hook=no
9128 fi
9129 rm -f conftest.err conftest.$ac_objext \
9130 conftest$ac_exeext conftest.$ac_ext
9131 fi
9132 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9133 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9134 if test $emacs_cv_var___after_morecore_hook = no; then
9135 doug_lea_malloc=no
9136 fi
9137 if test "${system_malloc}" = "yes"; then
9138 GNU_MALLOC=no
9139 GNU_MALLOC_reason="
9140 (The GNU allocators don't work with this system configuration.)"
9141 fi
9142 if test "$doug_lea_malloc" = "yes" ; then
9143 if test "$GNU_MALLOC" = yes ; then
9144 GNU_MALLOC_reason="
9145 (Using Doug Lea's new malloc from the GNU C Library.)"
9146 fi
9147
9148 cat >>confdefs.h <<\_ACEOF
9149 #define DOUG_LEA_MALLOC 1
9150 _ACEOF
9151
9152 fi
9153
9154 if test x"${REL_ALLOC}" = x; then
9155 REL_ALLOC=${GNU_MALLOC}
9156 fi
9157
9158
9159
9160
9161 for ac_header in stdlib.h unistd.h
9162 do
9163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9165 echo "$as_me:$LINENO: checking for $ac_header" >&5
9166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 fi
9170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9172 else
9173 # Is the header compilable?
9174 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9176 cat >conftest.$ac_ext <<_ACEOF
9177 /* confdefs.h. */
9178 _ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 $ac_includes_default
9183 #include <$ac_header>
9184 _ACEOF
9185 rm -f conftest.$ac_objext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9187 (eval $ac_compile) 2>conftest.er1
9188 ac_status=$?
9189 grep -v '^ *+' conftest.er1 >conftest.err
9190 rm -f conftest.er1
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } &&
9194 { ac_try='test -z "$ac_c_werror_flag"
9195 || test ! -s conftest.err'
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 (eval $ac_try) 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; } &&
9201 { ac_try='test -s conftest.$ac_objext'
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 (eval $ac_try) 2>&5
9204 ac_status=$?
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9207 ac_header_compiler=yes
9208 else
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9211
9212 ac_header_compiler=no
9213 fi
9214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9216 echo "${ECHO_T}$ac_header_compiler" >&6
9217
9218 # Is the header present?
9219 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9221 cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h. */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 #include <$ac_header>
9228 _ACEOF
9229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9231 ac_status=$?
9232 grep -v '^ *+' conftest.er1 >conftest.err
9233 rm -f conftest.er1
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } >/dev/null; then
9237 if test -s conftest.err; then
9238 ac_cpp_err=$ac_c_preproc_warn_flag
9239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9240 else
9241 ac_cpp_err=
9242 fi
9243 else
9244 ac_cpp_err=yes
9245 fi
9246 if test -z "$ac_cpp_err"; then
9247 ac_header_preproc=yes
9248 else
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9251
9252 ac_header_preproc=no
9253 fi
9254 rm -f conftest.err conftest.$ac_ext
9255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9256 echo "${ECHO_T}$ac_header_preproc" >&6
9257
9258 # So? What about this header?
9259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9260 yes:no: )
9261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9265 ac_header_preproc=yes
9266 ;;
9267 no:yes:* )
9268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9271 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9275 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9280 (
9281 cat <<\_ASBOX
9282 ## ------------------------------------------ ##
9283 ## Report this to the AC_PACKAGE_NAME lists. ##
9284 ## ------------------------------------------ ##
9285 _ASBOX
9286 ) |
9287 sed "s/^/$as_me: WARNING: /" >&2
9288 ;;
9289 esac
9290 echo "$as_me:$LINENO: checking for $ac_header" >&5
9291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 else
9295 eval "$as_ac_Header=\$ac_header_preproc"
9296 fi
9297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9299
9300 fi
9301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9302 cat >>confdefs.h <<_ACEOF
9303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9304 _ACEOF
9305
9306 fi
9307
9308 done
9309
9310
9311 for ac_func in getpagesize
9312 do
9313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9314 echo "$as_me:$LINENO: checking for $ac_func" >&5
9315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9316 if eval "test \"\${$as_ac_var+set}\" = set"; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 else
9319 cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h. */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9327 #define $ac_func innocuous_$ac_func
9328
9329 /* System header to define __stub macros and hopefully few prototypes,
9330 which can conflict with char $ac_func (); below.
9331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9332 <limits.h> exists even on freestanding compilers. */
9333
9334 #ifdef __STDC__
9335 # include <limits.h>
9336 #else
9337 # include <assert.h>
9338 #endif
9339
9340 #undef $ac_func
9341
9342 /* Override any gcc2 internal prototype to avoid an error. */
9343 #ifdef __cplusplus
9344 extern "C"
9345 {
9346 #endif
9347 /* We use char because int might match the return type of a gcc2
9348 builtin and then its argument prototype would still apply. */
9349 char $ac_func ();
9350 /* The GNU C library defines this for functions which it implements
9351 to always fail with ENOSYS. Some functions are actually named
9352 something starting with __ and the normal name is an alias. */
9353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9354 choke me
9355 #else
9356 char (*f) () = $ac_func;
9357 #endif
9358 #ifdef __cplusplus
9359 }
9360 #endif
9361
9362 int
9363 main ()
9364 {
9365 return f != $ac_func;
9366 ;
9367 return 0;
9368 }
9369 _ACEOF
9370 rm -f conftest.$ac_objext conftest$ac_exeext
9371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9372 (eval $ac_link) 2>conftest.er1
9373 ac_status=$?
9374 grep -v '^ *+' conftest.er1 >conftest.err
9375 rm -f conftest.er1
9376 cat conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } &&
9379 { ac_try='test -z "$ac_c_werror_flag"
9380 || test ! -s conftest.err'
9381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9382 (eval $ac_try) 2>&5
9383 ac_status=$?
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); }; } &&
9386 { ac_try='test -s conftest$ac_exeext'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388 (eval $ac_try) 2>&5
9389 ac_status=$?
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; }; then
9392 eval "$as_ac_var=yes"
9393 else
9394 echo "$as_me: failed program was:" >&5
9395 sed 's/^/| /' conftest.$ac_ext >&5
9396
9397 eval "$as_ac_var=no"
9398 fi
9399 rm -f conftest.err conftest.$ac_objext \
9400 conftest$ac_exeext conftest.$ac_ext
9401 fi
9402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9404 if test `eval echo '${'$as_ac_var'}'` = yes; then
9405 cat >>confdefs.h <<_ACEOF
9406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9407 _ACEOF
9408
9409 fi
9410 done
9411
9412 echo "$as_me:$LINENO: checking for working mmap" >&5
9413 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9414 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9417 if test "$cross_compiling" = yes; then
9418 ac_cv_func_mmap_fixed_mapped=no
9419 else
9420 cat >conftest.$ac_ext <<_ACEOF
9421 /* confdefs.h. */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9426 $ac_includes_default
9427 /* malloc might have been renamed as rpl_malloc. */
9428 #undef malloc
9429
9430 /* Thanks to Mike Haertel and Jim Avera for this test.
9431 Here is a matrix of mmap possibilities:
9432 mmap private not fixed
9433 mmap private fixed at somewhere currently unmapped
9434 mmap private fixed at somewhere already mapped
9435 mmap shared not fixed
9436 mmap shared fixed at somewhere currently unmapped
9437 mmap shared fixed at somewhere already mapped
9438 For private mappings, we should verify that changes cannot be read()
9439 back from the file, nor mmap's back from the file at a different
9440 address. (There have been systems where private was not correctly
9441 implemented like the infamous i386 svr4.0, and systems where the
9442 VM page cache was not coherent with the file system buffer cache
9443 like early versions of FreeBSD and possibly contemporary NetBSD.)
9444 For shared mappings, we should conversely verify that changes get
9445 propagated back to all the places they're supposed to be.
9446
9447 Grep wants private fixed already mapped.
9448 The main things grep needs to know about mmap are:
9449 * does it exist and is it safe to write into the mmap'd area
9450 * how to use it (BSD variants) */
9451
9452 #include <fcntl.h>
9453 #include <sys/mman.h>
9454
9455 #if !STDC_HEADERS && !HAVE_STDLIB_H
9456 char *malloc ();
9457 #endif
9458
9459 /* This mess was copied from the GNU getpagesize.h. */
9460 #if !HAVE_GETPAGESIZE
9461 /* Assume that all systems that can run configure have sys/param.h. */
9462 # if !HAVE_SYS_PARAM_H
9463 # define HAVE_SYS_PARAM_H 1
9464 # endif
9465
9466 # ifdef _SC_PAGESIZE
9467 # define getpagesize() sysconf(_SC_PAGESIZE)
9468 # else /* no _SC_PAGESIZE */
9469 # if HAVE_SYS_PARAM_H
9470 # include <sys/param.h>
9471 # ifdef EXEC_PAGESIZE
9472 # define getpagesize() EXEC_PAGESIZE
9473 # else /* no EXEC_PAGESIZE */
9474 # ifdef NBPG
9475 # define getpagesize() NBPG * CLSIZE
9476 # ifndef CLSIZE
9477 # define CLSIZE 1
9478 # endif /* no CLSIZE */
9479 # else /* no NBPG */
9480 # ifdef NBPC
9481 # define getpagesize() NBPC
9482 # else /* no NBPC */
9483 # ifdef PAGESIZE
9484 # define getpagesize() PAGESIZE
9485 # endif /* PAGESIZE */
9486 # endif /* no NBPC */
9487 # endif /* no NBPG */
9488 # endif /* no EXEC_PAGESIZE */
9489 # else /* no HAVE_SYS_PARAM_H */
9490 # define getpagesize() 8192 /* punt totally */
9491 # endif /* no HAVE_SYS_PARAM_H */
9492 # endif /* no _SC_PAGESIZE */
9493
9494 #endif /* no HAVE_GETPAGESIZE */
9495
9496 int
9497 main ()
9498 {
9499 char *data, *data2, *data3;
9500 int i, pagesize;
9501 int fd;
9502
9503 pagesize = getpagesize ();
9504
9505 /* First, make a file with some known garbage in it. */
9506 data = (char *) malloc (pagesize);
9507 if (!data)
9508 exit (1);
9509 for (i = 0; i < pagesize; ++i)
9510 *(data + i) = rand ();
9511 umask (0);
9512 fd = creat ("conftest.mmap", 0600);
9513 if (fd < 0)
9514 exit (1);
9515 if (write (fd, data, pagesize) != pagesize)
9516 exit (1);
9517 close (fd);
9518
9519 /* Next, try to mmap the file at a fixed address which already has
9520 something else allocated at it. If we can, also make sure that
9521 we see the same garbage. */
9522 fd = open ("conftest.mmap", O_RDWR);
9523 if (fd < 0)
9524 exit (1);
9525 data2 = (char *) malloc (2 * pagesize);
9526 if (!data2)
9527 exit (1);
9528 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9529 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9530 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9531 exit (1);
9532 for (i = 0; i < pagesize; ++i)
9533 if (*(data + i) != *(data2 + i))
9534 exit (1);
9535
9536 /* Finally, make sure that changes to the mapped area do not
9537 percolate back to the file as seen by read(). (This is a bug on
9538 some variants of i386 svr4.0.) */
9539 for (i = 0; i < pagesize; ++i)
9540 *(data2 + i) = *(data2 + i) + 1;
9541 data3 = (char *) malloc (pagesize);
9542 if (!data3)
9543 exit (1);
9544 if (read (fd, data3, pagesize) != pagesize)
9545 exit (1);
9546 for (i = 0; i < pagesize; ++i)
9547 if (*(data + i) != *(data3 + i))
9548 exit (1);
9549 close (fd);
9550 exit (0);
9551 }
9552 _ACEOF
9553 rm -f conftest$ac_exeext
9554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9555 (eval $ac_link) 2>&5
9556 ac_status=$?
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 (eval $ac_try) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 ac_cv_func_mmap_fixed_mapped=yes
9565 else
9566 echo "$as_me: program exited with status $ac_status" >&5
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9569
9570 ( exit $ac_status )
9571 ac_cv_func_mmap_fixed_mapped=no
9572 fi
9573 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9574 fi
9575 fi
9576 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9577 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9578 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9579
9580 cat >>confdefs.h <<\_ACEOF
9581 #define HAVE_MMAP 1
9582 _ACEOF
9583
9584 fi
9585 rm -f conftest.mmap
9586
9587 if test $use_mmap_for_buffers = yes; then
9588 REL_ALLOC=no
9589 fi
9590
9591 LIBS="$libsrc_libs $LIBS"
9592
9593
9594 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9595 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9596 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 else
9599 ac_check_lib_save_LIBS=$LIBS
9600 LIBS="-ldnet $LIBS"
9601 cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h. */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607
9608 /* Override any gcc2 internal prototype to avoid an error. */
9609 #ifdef __cplusplus
9610 extern "C"
9611 #endif
9612 /* We use char because int might match the return type of a gcc2
9613 builtin and then its argument prototype would still apply. */
9614 char dnet_ntoa ();
9615 int
9616 main ()
9617 {
9618 dnet_ntoa ();
9619 ;
9620 return 0;
9621 }
9622 _ACEOF
9623 rm -f conftest.$ac_objext conftest$ac_exeext
9624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9625 (eval $ac_link) 2>conftest.er1
9626 ac_status=$?
9627 grep -v '^ *+' conftest.er1 >conftest.err
9628 rm -f conftest.er1
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } &&
9632 { ac_try='test -z "$ac_c_werror_flag"
9633 || test ! -s conftest.err'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 (eval $ac_try) 2>&5
9636 ac_status=$?
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; } &&
9639 { ac_try='test -s conftest$ac_exeext'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
9645 ac_cv_lib_dnet_dnet_ntoa=yes
9646 else
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9649
9650 ac_cv_lib_dnet_dnet_ntoa=no
9651 fi
9652 rm -f conftest.err conftest.$ac_objext \
9653 conftest$ac_exeext conftest.$ac_ext
9654 LIBS=$ac_check_lib_save_LIBS
9655 fi
9656 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9657 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9658 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9659 cat >>confdefs.h <<_ACEOF
9660 #define HAVE_LIBDNET 1
9661 _ACEOF
9662
9663 LIBS="-ldnet $LIBS"
9664
9665 fi
9666
9667
9668 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9669 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9670 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673 ac_check_lib_save_LIBS=$LIBS
9674 LIBS="-lXbsd $LIBS"
9675 cat >conftest.$ac_ext <<_ACEOF
9676 /* confdefs.h. */
9677 _ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9681
9682
9683 int
9684 main ()
9685 {
9686 main ();
9687 ;
9688 return 0;
9689 }
9690 _ACEOF
9691 rm -f conftest.$ac_objext conftest$ac_exeext
9692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9693 (eval $ac_link) 2>conftest.er1
9694 ac_status=$?
9695 grep -v '^ *+' conftest.er1 >conftest.err
9696 rm -f conftest.er1
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } &&
9700 { ac_try='test -z "$ac_c_werror_flag"
9701 || test ! -s conftest.err'
9702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 (eval $ac_try) 2>&5
9704 ac_status=$?
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; } &&
9707 { ac_try='test -s conftest$ac_exeext'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 (eval $ac_try) 2>&5
9710 ac_status=$?
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; }; then
9713 ac_cv_lib_Xbsd_main=yes
9714 else
9715 echo "$as_me: failed program was:" >&5
9716 sed 's/^/| /' conftest.$ac_ext >&5
9717
9718 ac_cv_lib_Xbsd_main=no
9719 fi
9720 rm -f conftest.err conftest.$ac_objext \
9721 conftest$ac_exeext conftest.$ac_ext
9722 LIBS=$ac_check_lib_save_LIBS
9723 fi
9724 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9725 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9726 if test $ac_cv_lib_Xbsd_main = yes; then
9727 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9728 fi
9729
9730
9731
9732 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9733 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9734 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737 ac_check_lib_save_LIBS=$LIBS
9738 LIBS="-lpthreads $LIBS"
9739 cat >conftest.$ac_ext <<_ACEOF
9740 /* confdefs.h. */
9741 _ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9745
9746 /* Override any gcc2 internal prototype to avoid an error. */
9747 #ifdef __cplusplus
9748 extern "C"
9749 #endif
9750 /* We use char because int might match the return type of a gcc2
9751 builtin and then its argument prototype would still apply. */
9752 char cma_open ();
9753 int
9754 main ()
9755 {
9756 cma_open ();
9757 ;
9758 return 0;
9759 }
9760 _ACEOF
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9763 (eval $ac_link) 2>conftest.er1
9764 ac_status=$?
9765 grep -v '^ *+' conftest.er1 >conftest.err
9766 rm -f conftest.er1
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try='test -z "$ac_c_werror_flag"
9771 || test ! -s conftest.err'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 (eval $ac_try) 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; } &&
9777 { ac_try='test -s conftest$ac_exeext'
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 (eval $ac_try) 2>&5
9780 ac_status=$?
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; }; then
9783 ac_cv_lib_pthreads_cma_open=yes
9784 else
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9787
9788 ac_cv_lib_pthreads_cma_open=no
9789 fi
9790 rm -f conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792 LIBS=$ac_check_lib_save_LIBS
9793 fi
9794 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9795 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9796 if test $ac_cv_lib_pthreads_cma_open = yes; then
9797 cat >>confdefs.h <<_ACEOF
9798 #define HAVE_LIBPTHREADS 1
9799 _ACEOF
9800
9801 LIBS="-lpthreads $LIBS"
9802
9803 fi
9804
9805
9806 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9807 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9808 if test -d /usr/X386/include; then
9809 HAVE_XFREE386=yes
9810 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9811 else
9812 HAVE_XFREE386=no
9813 fi
9814 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9815 echo "${ECHO_T}$HAVE_XFREE386" >&6
9816
9817
9818 case ${host_os} in
9819 aix*)
9820 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9821 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9822 if test "${gdb_cv_bigtoc+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825
9826 case $GCC in
9827 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9828 *) gdb_cv_bigtoc=-bbigtoc ;;
9829 esac
9830
9831 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9832 cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h. */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9838
9839 int
9840 main ()
9841 {
9842 int i;
9843 ;
9844 return 0;
9845 }
9846 _ACEOF
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9849 (eval $ac_link) 2>conftest.er1
9850 ac_status=$?
9851 grep -v '^ *+' conftest.er1 >conftest.err
9852 rm -f conftest.er1
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -z "$ac_c_werror_flag"
9857 || test ! -s conftest.err'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 (eval $ac_try) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; } &&
9863 { ac_try='test -s conftest$ac_exeext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 (eval $ac_try) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9869 :
9870 else
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9873
9874 gdb_cv_bigtoc=
9875 fi
9876 rm -f conftest.err conftest.$ac_objext \
9877 conftest$ac_exeext conftest.$ac_ext
9878
9879 fi
9880 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9881 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9882 ;;
9883 esac
9884
9885 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9886 # used for the tests that follow. We set them back to REAL_CFLAGS and
9887 # REAL_CPPFLAGS later on.
9888
9889 REAL_CPPFLAGS="$CPPFLAGS"
9890
9891 if test "${HAVE_X11}" = "yes"; then
9892 DEFS="$C_SWITCH_X_SITE $DEFS"
9893 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9894 LIBS="$LIBX $LIBS"
9895 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9896 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9897
9898 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9899 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9900 # but it's more convenient here to set LD_RUN_PATH
9901 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9902 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9903 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9904 export LD_RUN_PATH
9905 fi
9906
9907 if test "${opsys}" = "gnu-linux"; then
9908 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9909 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9910 cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h. */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9916
9917 int
9918 main ()
9919 {
9920 XOpenDisplay ("foo");
9921 ;
9922 return 0;
9923 }
9924 _ACEOF
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9927 (eval $ac_link) 2>conftest.er1
9928 ac_status=$?
9929 grep -v '^ *+' conftest.er1 >conftest.err
9930 rm -f conftest.er1
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 { ac_try='test -z "$ac_c_werror_flag"
9935 || test ! -s conftest.err'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 (eval $ac_try) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; } &&
9941 { ac_try='test -s conftest$ac_exeext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 xlinux_first_failure=no
9948 else
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9951
9952 xlinux_first_failure=yes
9953 fi
9954 rm -f conftest.err conftest.$ac_objext \
9955 conftest$ac_exeext conftest.$ac_ext
9956 if test "${xlinux_first_failure}" = "yes"; then
9957 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9958 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9959 OLD_CPPFLAGS="$CPPFLAGS"
9960 OLD_LIBS="$LIBS"
9961 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9962 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9963 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9964 LIBS="$LIBS -b i486-linuxaout"
9965 cat >conftest.$ac_ext <<_ACEOF
9966 /* confdefs.h. */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9971
9972 int
9973 main ()
9974 {
9975 XOpenDisplay ("foo");
9976 ;
9977 return 0;
9978 }
9979 _ACEOF
9980 rm -f conftest.$ac_objext conftest$ac_exeext
9981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9982 (eval $ac_link) 2>conftest.er1
9983 ac_status=$?
9984 grep -v '^ *+' conftest.er1 >conftest.err
9985 rm -f conftest.er1
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } &&
9989 { ac_try='test -z "$ac_c_werror_flag"
9990 || test ! -s conftest.err'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 (eval $ac_try) 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; } &&
9996 { ac_try='test -s conftest$ac_exeext'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 (eval $ac_try) 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; }; then
10002 xlinux_second_failure=no
10003 else
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10006
10007 xlinux_second_failure=yes
10008 fi
10009 rm -f conftest.err conftest.$ac_objext \
10010 conftest$ac_exeext conftest.$ac_ext
10011 if test "${xlinux_second_failure}" = "yes"; then
10012 # If we get the same failure with -b, there is no use adding -b.
10013 # So take it out. This plays safe.
10014 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10015 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10016 CPPFLAGS="$OLD_CPPFLAGS"
10017 LIBS="$OLD_LIBS"
10018 echo "$as_me:$LINENO: result: no" >&5
10019 echo "${ECHO_T}no" >&6
10020 else
10021 echo "$as_me:$LINENO: result: yes" >&5
10022 echo "${ECHO_T}yes" >&6
10023 fi
10024 else
10025 echo "$as_me:$LINENO: result: no" >&5
10026 echo "${ECHO_T}no" >&6
10027 fi
10028 fi
10029
10030 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10031 # header files included from there.
10032 echo "$as_me:$LINENO: checking for Xkb" >&5
10033 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10034 cat >conftest.$ac_ext <<_ACEOF
10035 /* confdefs.h. */
10036 _ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h. */
10040 #include <X11/Xlib.h>
10041 #include <X11/XKBlib.h>
10042 int
10043 main ()
10044 {
10045 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10046 ;
10047 return 0;
10048 }
10049 _ACEOF
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10052 (eval $ac_link) 2>conftest.er1
10053 ac_status=$?
10054 grep -v '^ *+' conftest.er1 >conftest.err
10055 rm -f conftest.er1
10056 cat conftest.err >&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } &&
10059 { ac_try='test -z "$ac_c_werror_flag"
10060 || test ! -s conftest.err'
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; } &&
10066 { ac_try='test -s conftest$ac_exeext'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 emacs_xkb=yes
10073 else
10074 echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10076
10077 emacs_xkb=no
10078 fi
10079 rm -f conftest.err conftest.$ac_objext \
10080 conftest$ac_exeext conftest.$ac_ext
10081 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10082 echo "${ECHO_T}$emacs_xkb" >&6
10083 if test $emacs_xkb = yes; then
10084
10085 cat >>confdefs.h <<\_ACEOF
10086 #define HAVE_XKBGETKEYBOARD 1
10087 _ACEOF
10088
10089 fi
10090
10091
10092
10093
10094
10095 for ac_func in XrmSetDatabase XScreenResourceString \
10096 XScreenNumberOfScreen XSetWMProtocols
10097 do
10098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10099 echo "$as_me:$LINENO: checking for $ac_func" >&5
10100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10101 if eval "test \"\${$as_ac_var+set}\" = set"; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 else
10104 cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h. */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10112 #define $ac_func innocuous_$ac_func
10113
10114 /* System header to define __stub macros and hopefully few prototypes,
10115 which can conflict with char $ac_func (); below.
10116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10117 <limits.h> exists even on freestanding compilers. */
10118
10119 #ifdef __STDC__
10120 # include <limits.h>
10121 #else
10122 # include <assert.h>
10123 #endif
10124
10125 #undef $ac_func
10126
10127 /* Override any gcc2 internal prototype to avoid an error. */
10128 #ifdef __cplusplus
10129 extern "C"
10130 {
10131 #endif
10132 /* We use char because int might match the return type of a gcc2
10133 builtin and then its argument prototype would still apply. */
10134 char $ac_func ();
10135 /* The GNU C library defines this for functions which it implements
10136 to always fail with ENOSYS. Some functions are actually named
10137 something starting with __ and the normal name is an alias. */
10138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10139 choke me
10140 #else
10141 char (*f) () = $ac_func;
10142 #endif
10143 #ifdef __cplusplus
10144 }
10145 #endif
10146
10147 int
10148 main ()
10149 {
10150 return f != $ac_func;
10151 ;
10152 return 0;
10153 }
10154 _ACEOF
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10157 (eval $ac_link) 2>conftest.er1
10158 ac_status=$?
10159 grep -v '^ *+' conftest.er1 >conftest.err
10160 rm -f conftest.er1
10161 cat conftest.err >&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } &&
10164 { ac_try='test -z "$ac_c_werror_flag"
10165 || test ! -s conftest.err'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10168 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; } &&
10171 { ac_try='test -s conftest$ac_exeext'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 eval "$as_ac_var=yes"
10178 else
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10181
10182 eval "$as_ac_var=no"
10183 fi
10184 rm -f conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
10186 fi
10187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10189 if test `eval echo '${'$as_ac_var'}'` = yes; then
10190 cat >>confdefs.h <<_ACEOF
10191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10192 _ACEOF
10193
10194 fi
10195 done
10196
10197 fi
10198
10199 if test "${window_system}" = "x11"; then
10200 echo "$as_me:$LINENO: checking X11 version 6" >&5
10201 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10202 if test "${emacs_cv_x11_version_6+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205 cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h. */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211 #include <X11/Xlib.h>
10212 int
10213 main ()
10214 {
10215 #if XlibSpecificationRelease < 6
10216 fail;
10217 #endif
10218
10219 ;
10220 return 0;
10221 }
10222 _ACEOF
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10225 (eval $ac_link) 2>conftest.er1
10226 ac_status=$?
10227 grep -v '^ *+' conftest.er1 >conftest.err
10228 rm -f conftest.er1
10229 cat conftest.err >&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } &&
10232 { ac_try='test -z "$ac_c_werror_flag"
10233 || test ! -s conftest.err'
10234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235 (eval $ac_try) 2>&5
10236 ac_status=$?
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); }; } &&
10239 { ac_try='test -s conftest$ac_exeext'
10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; }; then
10245 emacs_cv_x11_version_6=yes
10246 else
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 emacs_cv_x11_version_6=no
10251 fi
10252 rm -f conftest.err conftest.$ac_objext \
10253 conftest$ac_exeext conftest.$ac_ext
10254 fi
10255
10256 if test $emacs_cv_x11_version_6 = yes; then
10257 echo "$as_me:$LINENO: result: 6 or newer" >&5
10258 echo "${ECHO_T}6 or newer" >&6
10259
10260 cat >>confdefs.h <<\_ACEOF
10261 #define HAVE_X11R6 1
10262 _ACEOF
10263
10264 else
10265 echo "$as_me:$LINENO: result: before 6" >&5
10266 echo "${ECHO_T}before 6" >&6
10267 fi
10268 fi
10269
10270 if test "${window_system}" = "x11"; then
10271 echo "$as_me:$LINENO: checking X11 version 5" >&5
10272 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10273 if test "${emacs_cv_x11_version_5+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 else
10276 cat >conftest.$ac_ext <<_ACEOF
10277 /* confdefs.h. */
10278 _ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h. */
10282 #include <X11/Xlib.h>
10283 int
10284 main ()
10285 {
10286 #if XlibSpecificationRelease < 5
10287 fail;
10288 #endif
10289
10290 ;
10291 return 0;
10292 }
10293 _ACEOF
10294 rm -f conftest.$ac_objext conftest$ac_exeext
10295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10296 (eval $ac_link) 2>conftest.er1
10297 ac_status=$?
10298 grep -v '^ *+' conftest.er1 >conftest.err
10299 rm -f conftest.er1
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } &&
10303 { ac_try='test -z "$ac_c_werror_flag"
10304 || test ! -s conftest.err'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10307 ac_status=$?
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; } &&
10310 { ac_try='test -s conftest$ac_exeext'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; }; then
10316 emacs_cv_x11_version_5=yes
10317 else
10318 echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10320
10321 emacs_cv_x11_version_5=no
10322 fi
10323 rm -f conftest.err conftest.$ac_objext \
10324 conftest$ac_exeext conftest.$ac_ext
10325 fi
10326
10327 if test $emacs_cv_x11_version_5 = yes; then
10328 echo "$as_me:$LINENO: result: 5 or newer" >&5
10329 echo "${ECHO_T}5 or newer" >&6
10330 HAVE_X11R5=yes
10331
10332 cat >>confdefs.h <<\_ACEOF
10333 #define HAVE_X11R5 1
10334 _ACEOF
10335
10336 else
10337 HAVE_X11R5=no
10338 echo "$as_me:$LINENO: result: before 5" >&5
10339 echo "${ECHO_T}before 5" >&6
10340 fi
10341 fi
10342
10343 HAVE_GTK=no
10344 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10345 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10346 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10347 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10348 { (exit 1); exit 1; }; };
10349 fi
10350 GLIB_REQUIRED=2.4
10351 GTK_REQUIRED=2.4
10352 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10353
10354 if test "X${with_pkg_config_prog}" != X; then
10355 PKG_CONFIG="${with_pkg_config_prog}"
10356 fi
10357
10358 succeeded=no
10359
10360 if test -z "$PKG_CONFIG"; then
10361 # Extract the first word of "pkg-config", so it can be a program name with args.
10362 set dummy pkg-config; ac_word=$2
10363 echo "$as_me:$LINENO: checking for $ac_word" >&5
10364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10365 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368 case $PKG_CONFIG in
10369 [\\/]* | ?:[\\/]*)
10370 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10371 ;;
10372 *)
10373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374 for as_dir in $PATH
10375 do
10376 IFS=$as_save_IFS
10377 test -z "$as_dir" && as_dir=.
10378 for ac_exec_ext in '' $ac_executable_extensions; do
10379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10380 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10382 break 2
10383 fi
10384 done
10385 done
10386
10387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10388 ;;
10389 esac
10390 fi
10391 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10392
10393 if test -n "$PKG_CONFIG"; then
10394 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10395 echo "${ECHO_T}$PKG_CONFIG" >&6
10396 else
10397 echo "$as_me:$LINENO: result: no" >&5
10398 echo "${ECHO_T}no" >&6
10399 fi
10400
10401 fi
10402
10403 if test "$PKG_CONFIG" = "no" ; then
10404 { { echo "$as_me:$LINENO: error:
10405 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10406 echo "$as_me: error:
10407 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10408 { (exit 1); exit 1; }; }
10409 else
10410 PKG_CONFIG_MIN_VERSION=0.9.0
10411 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10412 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10413 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10414
10415 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10416 echo "$as_me:$LINENO: result: yes" >&5
10417 echo "${ECHO_T}yes" >&6
10418 succeeded=yes
10419
10420 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10421 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10422 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10423 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10424 echo "${ECHO_T}$GTK_CFLAGS" >&6
10425
10426 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10427 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10428 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10429 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10430 echo "${ECHO_T}$GTK_LIBS" >&6
10431 else
10432 echo "$as_me:$LINENO: result: no" >&5
10433 echo "${ECHO_T}no" >&6
10434 GTK_CFLAGS=""
10435 GTK_LIBS=""
10436 ## If we have a custom action on failure, don't print errors, but
10437 ## do set a variable so people can do so.
10438 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10439 echo $GTK_PKG_ERRORS
10440 fi
10441
10442
10443
10444 else
10445 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10446 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10447 fi
10448 fi
10449
10450 if test $succeeded = yes; then
10451 :
10452 else
10453 { { 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
10454 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;}
10455 { (exit 1); exit 1; }; }
10456 fi
10457
10458
10459
10460 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10461 CFLAGS="$CFLAGS $GTK_CFLAGS"
10462 LIBS="$GTK_LIBS $LIBS"
10463 HAVE_GTK=yes
10464
10465 cat >>confdefs.h <<\_ACEOF
10466 #define HAVE_GTK 1
10467 _ACEOF
10468
10469 USE_X_TOOLKIT=none
10470
10471 if test "$with_toolkit_scroll_bars" != no; then
10472 with_toolkit_scroll_bars=yes
10473 fi
10474
10475 HAVE_GTK_MULTIDISPLAY=no
10476
10477 for ac_func in gdk_display_open
10478 do
10479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10480 echo "$as_me:$LINENO: checking for $ac_func" >&5
10481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10482 if eval "test \"\${$as_ac_var+set}\" = set"; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 else
10485 cat >conftest.$ac_ext <<_ACEOF
10486 /* confdefs.h. */
10487 _ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10493 #define $ac_func innocuous_$ac_func
10494
10495 /* System header to define __stub macros and hopefully few prototypes,
10496 which can conflict with char $ac_func (); below.
10497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10498 <limits.h> exists even on freestanding compilers. */
10499
10500 #ifdef __STDC__
10501 # include <limits.h>
10502 #else
10503 # include <assert.h>
10504 #endif
10505
10506 #undef $ac_func
10507
10508 /* Override any gcc2 internal prototype to avoid an error. */
10509 #ifdef __cplusplus
10510 extern "C"
10511 {
10512 #endif
10513 /* We use char because int might match the return type of a gcc2
10514 builtin and then its argument prototype would still apply. */
10515 char $ac_func ();
10516 /* The GNU C library defines this for functions which it implements
10517 to always fail with ENOSYS. Some functions are actually named
10518 something starting with __ and the normal name is an alias. */
10519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10520 choke me
10521 #else
10522 char (*f) () = $ac_func;
10523 #endif
10524 #ifdef __cplusplus
10525 }
10526 #endif
10527
10528 int
10529 main ()
10530 {
10531 return f != $ac_func;
10532 ;
10533 return 0;
10534 }
10535 _ACEOF
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10538 (eval $ac_link) 2>conftest.er1
10539 ac_status=$?
10540 grep -v '^ *+' conftest.er1 >conftest.err
10541 rm -f conftest.er1
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } &&
10545 { ac_try='test -z "$ac_c_werror_flag"
10546 || test ! -s conftest.err'
10547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548 (eval $ac_try) 2>&5
10549 ac_status=$?
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); }; } &&
10552 { ac_try='test -s conftest$ac_exeext'
10553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554 (eval $ac_try) 2>&5
10555 ac_status=$?
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; }; then
10558 eval "$as_ac_var=yes"
10559 else
10560 echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10562
10563 eval "$as_ac_var=no"
10564 fi
10565 rm -f conftest.err conftest.$ac_objext \
10566 conftest$ac_exeext conftest.$ac_ext
10567 fi
10568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10569 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10570 if test `eval echo '${'$as_ac_var'}'` = yes; then
10571 cat >>confdefs.h <<_ACEOF
10572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10573 _ACEOF
10574 HAVE_GTK_MULTIDISPLAY=yes
10575 fi
10576 done
10577
10578 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10579
10580 cat >>confdefs.h <<\_ACEOF
10581 #define HAVE_GTK_MULTIDISPLAY 1
10582 _ACEOF
10583
10584 fi
10585 HAVE_GTK_FILE_SELECTION=no
10586
10587 for ac_func in gtk_file_selection_new
10588 do
10589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10590 echo "$as_me:$LINENO: checking for $ac_func" >&5
10591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10592 if eval "test \"\${$as_ac_var+set}\" = set"; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595 cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h. */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10603 #define $ac_func innocuous_$ac_func
10604
10605 /* System header to define __stub macros and hopefully few prototypes,
10606 which can conflict with char $ac_func (); below.
10607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10608 <limits.h> exists even on freestanding compilers. */
10609
10610 #ifdef __STDC__
10611 # include <limits.h>
10612 #else
10613 # include <assert.h>
10614 #endif
10615
10616 #undef $ac_func
10617
10618 /* Override any gcc2 internal prototype to avoid an error. */
10619 #ifdef __cplusplus
10620 extern "C"
10621 {
10622 #endif
10623 /* We use char because int might match the return type of a gcc2
10624 builtin and then its argument prototype would still apply. */
10625 char $ac_func ();
10626 /* The GNU C library defines this for functions which it implements
10627 to always fail with ENOSYS. Some functions are actually named
10628 something starting with __ and the normal name is an alias. */
10629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10630 choke me
10631 #else
10632 char (*f) () = $ac_func;
10633 #endif
10634 #ifdef __cplusplus
10635 }
10636 #endif
10637
10638 int
10639 main ()
10640 {
10641 return f != $ac_func;
10642 ;
10643 return 0;
10644 }
10645 _ACEOF
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648 (eval $ac_link) 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
10655 { ac_try='test -z "$ac_c_werror_flag"
10656 || test ! -s conftest.err'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; } &&
10662 { ac_try='test -s conftest$ac_exeext'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
10668 eval "$as_ac_var=yes"
10669 else
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673 eval "$as_ac_var=no"
10674 fi
10675 rm -f conftest.err conftest.$ac_objext \
10676 conftest$ac_exeext conftest.$ac_ext
10677 fi
10678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10680 if test `eval echo '${'$as_ac_var'}'` = yes; then
10681 cat >>confdefs.h <<_ACEOF
10682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10683 _ACEOF
10684 HAVE_GTK_FILE_SELECTION=yes
10685 fi
10686 done
10687
10688
10689 HAVE_GTK_FILE_CHOOSER=no
10690
10691 for ac_func in gtk_file_chooser_dialog_new
10692 do
10693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10694 echo "$as_me:$LINENO: checking for $ac_func" >&5
10695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10696 if eval "test \"\${$as_ac_var+set}\" = set"; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 else
10699 cat >conftest.$ac_ext <<_ACEOF
10700 /* confdefs.h. */
10701 _ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10707 #define $ac_func innocuous_$ac_func
10708
10709 /* System header to define __stub macros and hopefully few prototypes,
10710 which can conflict with char $ac_func (); below.
10711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10712 <limits.h> exists even on freestanding compilers. */
10713
10714 #ifdef __STDC__
10715 # include <limits.h>
10716 #else
10717 # include <assert.h>
10718 #endif
10719
10720 #undef $ac_func
10721
10722 /* Override any gcc2 internal prototype to avoid an error. */
10723 #ifdef __cplusplus
10724 extern "C"
10725 {
10726 #endif
10727 /* We use char because int might match the return type of a gcc2
10728 builtin and then its argument prototype would still apply. */
10729 char $ac_func ();
10730 /* The GNU C library defines this for functions which it implements
10731 to always fail with ENOSYS. Some functions are actually named
10732 something starting with __ and the normal name is an alias. */
10733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10734 choke me
10735 #else
10736 char (*f) () = $ac_func;
10737 #endif
10738 #ifdef __cplusplus
10739 }
10740 #endif
10741
10742 int
10743 main ()
10744 {
10745 return f != $ac_func;
10746 ;
10747 return 0;
10748 }
10749 _ACEOF
10750 rm -f conftest.$ac_objext conftest$ac_exeext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10752 (eval $ac_link) 2>conftest.er1
10753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try='test -z "$ac_c_werror_flag"
10760 || test ! -s conftest.err'
10761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10762 (eval $ac_try) 2>&5
10763 ac_status=$?
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); }; } &&
10766 { ac_try='test -s conftest$ac_exeext'
10767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768 (eval $ac_try) 2>&5
10769 ac_status=$?
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; }; then
10772 eval "$as_ac_var=yes"
10773 else
10774 echo "$as_me: failed program was:" >&5
10775 sed 's/^/| /' conftest.$ac_ext >&5
10776
10777 eval "$as_ac_var=no"
10778 fi
10779 rm -f conftest.err conftest.$ac_objext \
10780 conftest$ac_exeext conftest.$ac_ext
10781 fi
10782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10784 if test `eval echo '${'$as_ac_var'}'` = yes; then
10785 cat >>confdefs.h <<_ACEOF
10786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10787 _ACEOF
10788 HAVE_GTK_FILE_CHOOSER=yes
10789 fi
10790 done
10791
10792
10793 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10794 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10795
10796 cat >>confdefs.h <<\_ACEOF
10797 #define HAVE_GTK_FILE_BOTH 1
10798 _ACEOF
10799
10800 fi
10801
10802 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10803 HAVE_GTK_AND_PTHREAD=no
10804
10805 for ac_header in pthread.h
10806 do
10807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10809 echo "$as_me:$LINENO: checking for $ac_header" >&5
10810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 fi
10814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10816 else
10817 # Is the header compilable?
10818 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10820 cat >conftest.$ac_ext <<_ACEOF
10821 /* confdefs.h. */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826 $ac_includes_default
10827 #include <$ac_header>
10828 _ACEOF
10829 rm -f conftest.$ac_objext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10831 (eval $ac_compile) 2>conftest.er1
10832 ac_status=$?
10833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
10838 { ac_try='test -z "$ac_c_werror_flag"
10839 || test ! -s conftest.err'
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10842 ac_status=$?
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; } &&
10845 { ac_try='test -s conftest.$ac_objext'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; }; then
10851 ac_header_compiler=yes
10852 else
10853 echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10855
10856 ac_header_compiler=no
10857 fi
10858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10860 echo "${ECHO_T}$ac_header_compiler" >&6
10861
10862 # Is the header present?
10863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10865 cat >conftest.$ac_ext <<_ACEOF
10866 /* confdefs.h. */
10867 _ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10871 #include <$ac_header>
10872 _ACEOF
10873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10875 ac_status=$?
10876 grep -v '^ *+' conftest.er1 >conftest.err
10877 rm -f conftest.er1
10878 cat conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } >/dev/null; then
10881 if test -s conftest.err; then
10882 ac_cpp_err=$ac_c_preproc_warn_flag
10883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10884 else
10885 ac_cpp_err=
10886 fi
10887 else
10888 ac_cpp_err=yes
10889 fi
10890 if test -z "$ac_cpp_err"; then
10891 ac_header_preproc=yes
10892 else
10893 echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10895
10896 ac_header_preproc=no
10897 fi
10898 rm -f conftest.err conftest.$ac_ext
10899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10900 echo "${ECHO_T}$ac_header_preproc" >&6
10901
10902 # So? What about this header?
10903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10904 yes:no: )
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10909 ac_header_preproc=yes
10910 ;;
10911 no:yes:* )
10912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10924 (
10925 cat <<\_ASBOX
10926 ## ------------------------------------------ ##
10927 ## Report this to the AC_PACKAGE_NAME lists. ##
10928 ## ------------------------------------------ ##
10929 _ASBOX
10930 ) |
10931 sed "s/^/$as_me: WARNING: /" >&2
10932 ;;
10933 esac
10934 echo "$as_me:$LINENO: checking for $ac_header" >&5
10935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939 eval "$as_ac_Header=\$ac_header_preproc"
10940 fi
10941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10943
10944 fi
10945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10946 cat >>confdefs.h <<_ACEOF
10947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10948 _ACEOF
10949
10950 fi
10951
10952 done
10953
10954 if test "$ac_cv_header_pthread_h"; then
10955 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10956 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10957 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10959 else
10960 ac_check_lib_save_LIBS=$LIBS
10961 LIBS="-lpthread $LIBS"
10962 cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h. */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968
10969 /* Override any gcc2 internal prototype to avoid an error. */
10970 #ifdef __cplusplus
10971 extern "C"
10972 #endif
10973 /* We use char because int might match the return type of a gcc2
10974 builtin and then its argument prototype would still apply. */
10975 char pthread_self ();
10976 int
10977 main ()
10978 {
10979 pthread_self ();
10980 ;
10981 return 0;
10982 }
10983 _ACEOF
10984 rm -f conftest.$ac_objext conftest$ac_exeext
10985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10986 (eval $ac_link) 2>conftest.er1
10987 ac_status=$?
10988 grep -v '^ *+' conftest.er1 >conftest.err
10989 rm -f conftest.er1
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try='test -z "$ac_c_werror_flag"
10994 || test ! -s conftest.err'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; } &&
11000 { ac_try='test -s conftest$ac_exeext'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11003 ac_status=$?
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; }; then
11006 ac_cv_lib_pthread_pthread_self=yes
11007 else
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11010
11011 ac_cv_lib_pthread_pthread_self=no
11012 fi
11013 rm -f conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11016 fi
11017 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11018 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
11019 if test $ac_cv_lib_pthread_pthread_self = yes; then
11020 HAVE_GTK_AND_PTHREAD=yes
11021 fi
11022
11023 fi
11024 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11025 GTK_LIBS="$GTK_LIBS -lpthread"
11026
11027 cat >>confdefs.h <<\_ACEOF
11028 #define HAVE_GTK_AND_PTHREAD 1
11029 _ACEOF
11030
11031 fi
11032 fi
11033 fi
11034
11035 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11036 if test x"${HAVE_X11R5}" = xyes; then
11037 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11038 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11039 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11041 else
11042 cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h. */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048
11049 #include <X11/Intrinsic.h>
11050 #include <X11/Xaw/Simple.h>
11051 int
11052 main ()
11053 {
11054
11055 ;
11056 return 0;
11057 }
11058 _ACEOF
11059 rm -f conftest.$ac_objext conftest$ac_exeext
11060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11061 (eval $ac_link) 2>conftest.er1
11062 ac_status=$?
11063 grep -v '^ *+' conftest.er1 >conftest.err
11064 rm -f conftest.er1
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } &&
11068 { ac_try='test -z "$ac_c_werror_flag"
11069 || test ! -s conftest.err'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; } &&
11075 { ac_try='test -s conftest$ac_exeext'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 emacs_cv_x11_version_5_with_xaw=yes
11082 else
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086 emacs_cv_x11_version_5_with_xaw=no
11087 fi
11088 rm -f conftest.err conftest.$ac_objext \
11089 conftest$ac_exeext conftest.$ac_ext
11090 fi
11091
11092 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11093 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11094 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11095 USE_X_TOOLKIT=LUCID
11096 else
11097 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11098 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11099 USE_X_TOOLKIT=none
11100 fi
11101 else
11102 USE_X_TOOLKIT=none
11103 fi
11104 fi
11105
11106 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11107
11108 if test "${USE_X_TOOLKIT}" != "none"; then
11109 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11110 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11111 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11113 else
11114 cat >conftest.$ac_ext <<_ACEOF
11115 /* confdefs.h. */
11116 _ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h. */
11120 #include <X11/Intrinsic.h>
11121 int
11122 main ()
11123 {
11124 #if XtSpecificationRelease < 6
11125 fail;
11126 #endif
11127
11128 ;
11129 return 0;
11130 }
11131 _ACEOF
11132 rm -f conftest.$ac_objext conftest$ac_exeext
11133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11134 (eval $ac_link) 2>conftest.er1
11135 ac_status=$?
11136 grep -v '^ *+' conftest.er1 >conftest.err
11137 rm -f conftest.er1
11138 cat conftest.err >&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } &&
11141 { ac_try='test -z "$ac_c_werror_flag"
11142 || test ! -s conftest.err'
11143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11144 (eval $ac_try) 2>&5
11145 ac_status=$?
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); }; } &&
11148 { ac_try='test -s conftest$ac_exeext'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }; then
11154 emacs_cv_x11_toolkit_version_6=yes
11155 else
11156 echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11158
11159 emacs_cv_x11_toolkit_version_6=no
11160 fi
11161 rm -f conftest.err conftest.$ac_objext \
11162 conftest$ac_exeext conftest.$ac_ext
11163 fi
11164
11165 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11166 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11167 echo "$as_me:$LINENO: result: 6 or newer" >&5
11168 echo "${ECHO_T}6 or newer" >&6
11169
11170 cat >>confdefs.h <<\_ACEOF
11171 #define HAVE_X11XTR6 1
11172 _ACEOF
11173
11174 else
11175 echo "$as_me:$LINENO: result: before 6" >&5
11176 echo "${ECHO_T}before 6" >&6
11177 fi
11178
11179 OLDLIBS="$LIBS"
11180 if test x$HAVE_X11XTR6 = xyes; then
11181 LIBS="-lXt -lSM -lICE $LIBS"
11182 else
11183 LIBS="-lXt $LIBS"
11184 fi
11185
11186 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11187 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11188 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191 ac_check_lib_save_LIBS=$LIBS
11192 LIBS="-lXmu $LIBS"
11193 cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h. */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199
11200 /* Override any gcc2 internal prototype to avoid an error. */
11201 #ifdef __cplusplus
11202 extern "C"
11203 #endif
11204 /* We use char because int might match the return type of a gcc2
11205 builtin and then its argument prototype would still apply. */
11206 char XmuConvertStandardSelection ();
11207 int
11208 main ()
11209 {
11210 XmuConvertStandardSelection ();
11211 ;
11212 return 0;
11213 }
11214 _ACEOF
11215 rm -f conftest.$ac_objext conftest$ac_exeext
11216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11217 (eval $ac_link) 2>conftest.er1
11218 ac_status=$?
11219 grep -v '^ *+' conftest.er1 >conftest.err
11220 rm -f conftest.er1
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } &&
11224 { ac_try='test -z "$ac_c_werror_flag"
11225 || test ! -s conftest.err'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; } &&
11231 { ac_try='test -s conftest$ac_exeext'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11238 else
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11241
11242 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11243 fi
11244 rm -f conftest.err conftest.$ac_objext \
11245 conftest$ac_exeext conftest.$ac_ext
11246 LIBS=$ac_check_lib_save_LIBS
11247 fi
11248 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11249 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11250 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11251 cat >>confdefs.h <<_ACEOF
11252 #define HAVE_LIBXMU 1
11253 _ACEOF
11254
11255 LIBS="-lXmu $LIBS"
11256
11257 fi
11258
11259 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11260 fi
11261
11262 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11263 if test "${HAVE_X11}" = "yes"; then
11264 if test "${USE_X_TOOLKIT}" != "none"; then
11265
11266 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11267 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11268 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 else
11271 ac_check_lib_save_LIBS=$LIBS
11272 LIBS="-lXext $LIBS"
11273 cat >conftest.$ac_ext <<_ACEOF
11274 /* confdefs.h. */
11275 _ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11279
11280 /* Override any gcc2 internal prototype to avoid an error. */
11281 #ifdef __cplusplus
11282 extern "C"
11283 #endif
11284 /* We use char because int might match the return type of a gcc2
11285 builtin and then its argument prototype would still apply. */
11286 char XShapeQueryExtension ();
11287 int
11288 main ()
11289 {
11290 XShapeQueryExtension ();
11291 ;
11292 return 0;
11293 }
11294 _ACEOF
11295 rm -f conftest.$ac_objext conftest$ac_exeext
11296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11297 (eval $ac_link) 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_c_werror_flag"
11305 || test ! -s conftest.err'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try='test -s conftest$ac_exeext'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11314 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 ac_cv_lib_Xext_XShapeQueryExtension=yes
11318 else
11319 echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11321
11322 ac_cv_lib_Xext_XShapeQueryExtension=no
11323 fi
11324 rm -f conftest.err conftest.$ac_objext \
11325 conftest$ac_exeext conftest.$ac_ext
11326 LIBS=$ac_check_lib_save_LIBS
11327 fi
11328 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11329 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11330 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11331 cat >>confdefs.h <<_ACEOF
11332 #define HAVE_LIBXEXT 1
11333 _ACEOF
11334
11335 LIBS="-lXext $LIBS"
11336
11337 fi
11338
11339 fi
11340 fi
11341
11342 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11343 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11344 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11345 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348 cat >conftest.$ac_ext <<_ACEOF
11349 /* confdefs.h. */
11350 _ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11354 #include <Xm/Xm.h>
11355 int
11356 main ()
11357 {
11358 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11359 int x = 5;
11360 #else
11361 Motif version prior to 2.1.
11362 #endif
11363 ;
11364 return 0;
11365 }
11366 _ACEOF
11367 rm -f conftest.$ac_objext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11369 (eval $ac_compile) 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try='test -z "$ac_c_werror_flag"
11377 || test ! -s conftest.err'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11380 ac_status=$?
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; } &&
11383 { ac_try='test -s conftest.$ac_objext'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 emacs_cv_motif_version_2_1=yes
11390 else
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11393
11394 emacs_cv_motif_version_2_1=no
11395 fi
11396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11397 fi
11398 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11399 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11400 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11401 if test $emacs_cv_motif_version_2_1 = yes; then
11402 HAVE_LIBXP=no
11403
11404 cat >>confdefs.h <<\_ACEOF
11405 #define HAVE_MOTIF_2_1 1
11406 _ACEOF
11407
11408 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11409 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11410 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413 ac_check_lib_save_LIBS=$LIBS
11414 LIBS="-lXp $LIBS"
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h. */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421
11422 /* Override any gcc2 internal prototype to avoid an error. */
11423 #ifdef __cplusplus
11424 extern "C"
11425 #endif
11426 /* We use char because int might match the return type of a gcc2
11427 builtin and then its argument prototype would still apply. */
11428 char XpCreateContext ();
11429 int
11430 main ()
11431 {
11432 XpCreateContext ();
11433 ;
11434 return 0;
11435 }
11436 _ACEOF
11437 rm -f conftest.$ac_objext conftest$ac_exeext
11438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11439 (eval $ac_link) 2>conftest.er1
11440 ac_status=$?
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try='test -z "$ac_c_werror_flag"
11447 || test ! -s conftest.err'
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11450 ac_status=$?
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; } &&
11453 { ac_try='test -s conftest$ac_exeext'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 ac_cv_lib_Xp_XpCreateContext=yes
11460 else
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11463
11464 ac_cv_lib_Xp_XpCreateContext=no
11465 fi
11466 rm -f conftest.err conftest.$ac_objext \
11467 conftest$ac_exeext conftest.$ac_ext
11468 LIBS=$ac_check_lib_save_LIBS
11469 fi
11470 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11471 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11472 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11473 HAVE_LIBXP=yes
11474 fi
11475
11476 if test ${HAVE_LIBXP} = yes; then
11477
11478 cat >>confdefs.h <<\_ACEOF
11479 #define HAVE_LIBXP 1
11480 _ACEOF
11481
11482 fi
11483 else
11484 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11485 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11486 if test "${emacs_cv_lesstif+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489 # We put this in CFLAGS temporarily to precede other -I options
11490 # that might be in CFLAGS temporarily.
11491 # We put this in CPPFLAGS where it precedes the other -I options.
11492 OLD_CPPFLAGS=$CPPFLAGS
11493 OLD_CFLAGS=$CFLAGS
11494 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11495 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h. */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11503 int
11504 main ()
11505 {
11506 int x = 5;
11507 ;
11508 return 0;
11509 }
11510 _ACEOF
11511 rm -f conftest.$ac_objext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11513 (eval $ac_compile) 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -z "$ac_c_werror_flag"
11521 || test ! -s conftest.err'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest.$ac_objext'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 emacs_cv_lesstif=yes
11534 else
11535 echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11537
11538 emacs_cv_lesstif=no
11539 fi
11540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11541 fi
11542 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11543 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11544 if test $emacs_cv_lesstif = yes; then
11545 # Make sure this -I option remains in CPPFLAGS after it is set
11546 # back to REAL_CPPFLAGS.
11547 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11548 # have those other -I options anyway. Ultimately, having this
11549 # directory ultimately in CPPFLAGS will be enough.
11550 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11551 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11552 else
11553 CFLAGS=$OLD_CFLAGS
11554 CPPFLAGS=$OLD_CPPFLAGS
11555 fi
11556 fi
11557 fi
11558
11559 ### Is -lXaw3d available?
11560 HAVE_XAW3D=no
11561 if test "${HAVE_X11}" = "yes"; then
11562 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11563 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11564 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11565 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 else
11568 cat >conftest.$ac_ext <<_ACEOF
11569 /* confdefs.h. */
11570 _ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 #include <X11/Xaw3d/Scrollbar.h>
11575 _ACEOF
11576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11578 ac_status=$?
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } >/dev/null; then
11584 if test -s conftest.err; then
11585 ac_cpp_err=$ac_c_preproc_warn_flag
11586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11587 else
11588 ac_cpp_err=
11589 fi
11590 else
11591 ac_cpp_err=yes
11592 fi
11593 if test -z "$ac_cpp_err"; then
11594 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11595 else
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11598
11599 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11600 fi
11601 rm -f conftest.err conftest.$ac_ext
11602 fi
11603 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11604 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11605 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11606 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11607 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11608 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611 ac_check_lib_save_LIBS=$LIBS
11612 LIBS="-lXaw3d $LIBS"
11613 cat >conftest.$ac_ext <<_ACEOF
11614 /* confdefs.h. */
11615 _ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11619
11620 /* Override any gcc2 internal prototype to avoid an error. */
11621 #ifdef __cplusplus
11622 extern "C"
11623 #endif
11624 /* We use char because int might match the return type of a gcc2
11625 builtin and then its argument prototype would still apply. */
11626 char XawScrollbarSetThumb ();
11627 int
11628 main ()
11629 {
11630 XawScrollbarSetThumb ();
11631 ;
11632 return 0;
11633 }
11634 _ACEOF
11635 rm -f conftest.$ac_objext conftest$ac_exeext
11636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11637 (eval $ac_link) 2>conftest.er1
11638 ac_status=$?
11639 grep -v '^ *+' conftest.er1 >conftest.err
11640 rm -f conftest.er1
11641 cat conftest.err >&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
11644 { ac_try='test -z "$ac_c_werror_flag"
11645 || test ! -s conftest.err'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; } &&
11651 { ac_try='test -s conftest$ac_exeext'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11658 else
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11661
11662 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11663 fi
11664 rm -f conftest.err conftest.$ac_objext \
11665 conftest$ac_exeext conftest.$ac_ext
11666 LIBS=$ac_check_lib_save_LIBS
11667 fi
11668 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11669 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11670 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11671 HAVE_XAW3D=yes
11672 fi
11673
11674 fi
11675
11676
11677 if test "${HAVE_XAW3D}" = "yes"; then
11678
11679 cat >>confdefs.h <<\_ACEOF
11680 #define HAVE_XAW3D 1
11681 _ACEOF
11682
11683 fi
11684 fi
11685 fi
11686
11687
11688
11689 USE_TOOLKIT_SCROLL_BARS=no
11690 if test "${with_toolkit_scroll_bars}" != "no"; then
11691 if test "${USE_X_TOOLKIT}" != "none"; then
11692 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11693 cat >>confdefs.h <<\_ACEOF
11694 #define USE_TOOLKIT_SCROLL_BARS 1
11695 _ACEOF
11696
11697 HAVE_XAW3D=no
11698 USE_TOOLKIT_SCROLL_BARS=yes
11699 elif test "${HAVE_XAW3D}" = "yes"; then
11700 cat >>confdefs.h <<\_ACEOF
11701 #define USE_TOOLKIT_SCROLL_BARS 1
11702 _ACEOF
11703
11704 USE_TOOLKIT_SCROLL_BARS=yes
11705 fi
11706 elif test "${HAVE_GTK}" = "yes"; then
11707 cat >>confdefs.h <<\_ACEOF
11708 #define USE_TOOLKIT_SCROLL_BARS 1
11709 _ACEOF
11710
11711 USE_TOOLKIT_SCROLL_BARS=yes
11712 elif test "${HAVE_CARBON}" = "yes"; then
11713 cat >>confdefs.h <<\_ACEOF
11714 #define USE_TOOLKIT_SCROLL_BARS 1
11715 _ACEOF
11716
11717 USE_TOOLKIT_SCROLL_BARS=yes
11718 fi
11719 fi
11720
11721 cat >conftest.$ac_ext <<_ACEOF
11722 /* confdefs.h. */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11727
11728 #include <X11/Xlib.h>
11729 #include <X11/Xresource.h>
11730 int
11731 main ()
11732 {
11733 XIMProc callback;
11734 ;
11735 return 0;
11736 }
11737 _ACEOF
11738 rm -f conftest.$ac_objext
11739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11740 (eval $ac_compile) 2>conftest.er1
11741 ac_status=$?
11742 grep -v '^ *+' conftest.er1 >conftest.err
11743 rm -f conftest.er1
11744 cat conftest.err >&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } &&
11747 { ac_try='test -z "$ac_c_werror_flag"
11748 || test ! -s conftest.err'
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try='test -s conftest.$ac_objext'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11757 ac_status=$?
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
11760 HAVE_XIM=yes
11761
11762 cat >>confdefs.h <<\_ACEOF
11763 #define HAVE_XIM 1
11764 _ACEOF
11765
11766 else
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11769
11770 HAVE_XIM=no
11771 fi
11772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11773
11774
11775 if test "${with_xim}" != "no"; then
11776
11777 cat >>confdefs.h <<\_ACEOF
11778 #define USE_XIM 1
11779 _ACEOF
11780
11781 fi
11782
11783
11784 if test "${HAVE_XIM}" != "no"; then
11785 late_CFLAGS=$CFLAGS
11786 if test "$GCC" = yes; then
11787 CFLAGS="$CFLAGS --pedantic-errors"
11788 fi
11789 cat >conftest.$ac_ext <<_ACEOF
11790 /* confdefs.h. */
11791 _ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h. */
11795
11796 #include <X11/Xlib.h>
11797 #include <X11/Xresource.h>
11798 int
11799 main ()
11800 {
11801 Display *display;
11802 XrmDatabase db;
11803 char *res_name;
11804 char *res_class;
11805 XIMProc callback;
11806 XPointer *client_data;
11807 #ifndef __GNUC__
11808 /* If we're not using GCC, it's probably not XFree86, and this is
11809 probably right, but we can't use something like --pedantic-errors. */
11810 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11811 char*, XIMProc, XPointer*);
11812 #endif
11813 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11814 client_data);
11815 ;
11816 return 0;
11817 }
11818 _ACEOF
11819 rm -f conftest.$ac_objext
11820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11821 (eval $ac_compile) 2>conftest.er1
11822 ac_status=$?
11823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -f conftest.er1
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try='test -z "$ac_c_werror_flag"
11829 || test ! -s conftest.err'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; } &&
11835 { ac_try='test -s conftest.$ac_objext'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 emacs_cv_arg6_star=yes
11842 else
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11845
11846 fi
11847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11848
11849 if test "$emacs_cv_arg6_star" = yes; then
11850 cat >>confdefs.h <<\_ACEOF
11851 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11852 _ACEOF
11853
11854 else
11855 cat >>confdefs.h <<\_ACEOF
11856 #define XRegisterIMInstantiateCallback_arg6 XPointer
11857 _ACEOF
11858
11859 fi
11860 CFLAGS=$late_CFLAGS
11861 fi
11862
11863 ### Use -lXpm if available, unless `--with-xpm=no'.
11864 HAVE_XPM=no
11865 if test "${HAVE_X11}" = "yes"; then
11866 if test "${with_xpm}" != "no"; then
11867 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11868 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11869 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11870 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 fi
11873 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11874 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11875 else
11876 # Is the header compilable?
11877 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11878 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11879 cat >conftest.$ac_ext <<_ACEOF
11880 /* confdefs.h. */
11881 _ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h. */
11885 $ac_includes_default
11886 #include <X11/xpm.h>
11887 _ACEOF
11888 rm -f conftest.$ac_objext
11889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11890 (eval $ac_compile) 2>conftest.er1
11891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
11897 { ac_try='test -z "$ac_c_werror_flag"
11898 || test ! -s conftest.err'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; } &&
11904 { ac_try='test -s conftest.$ac_objext'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 ac_header_compiler=yes
11911 else
11912 echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.$ac_ext >&5
11914
11915 ac_header_compiler=no
11916 fi
11917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11919 echo "${ECHO_T}$ac_header_compiler" >&6
11920
11921 # Is the header present?
11922 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11923 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11924 cat >conftest.$ac_ext <<_ACEOF
11925 /* confdefs.h. */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 #include <X11/xpm.h>
11931 _ACEOF
11932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11934 ac_status=$?
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } >/dev/null; then
11940 if test -s conftest.err; then
11941 ac_cpp_err=$ac_c_preproc_warn_flag
11942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11943 else
11944 ac_cpp_err=
11945 fi
11946 else
11947 ac_cpp_err=yes
11948 fi
11949 if test -z "$ac_cpp_err"; then
11950 ac_header_preproc=yes
11951 else
11952 echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.$ac_ext >&5
11954
11955 ac_header_preproc=no
11956 fi
11957 rm -f conftest.err conftest.$ac_ext
11958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11959 echo "${ECHO_T}$ac_header_preproc" >&6
11960
11961 # So? What about this header?
11962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11963 yes:no: )
11964 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11965 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11966 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11967 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11968 ac_header_preproc=yes
11969 ;;
11970 no:yes:* )
11971 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11972 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11973 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11974 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11975 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11976 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11977 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11978 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11979 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11980 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11981 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11982 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11983 (
11984 cat <<\_ASBOX
11985 ## ------------------------------------------ ##
11986 ## Report this to the AC_PACKAGE_NAME lists. ##
11987 ## ------------------------------------------ ##
11988 _ASBOX
11989 ) |
11990 sed "s/^/$as_me: WARNING: /" >&2
11991 ;;
11992 esac
11993 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11994 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11995 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 else
11998 ac_cv_header_X11_xpm_h=$ac_header_preproc
11999 fi
12000 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12001 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12002
12003 fi
12004 if test $ac_cv_header_X11_xpm_h = yes; then
12005 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12006 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
12007 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010 ac_check_lib_save_LIBS=$LIBS
12011 LIBS="-lXpm -lX11 $LIBS"
12012 cat >conftest.$ac_ext <<_ACEOF
12013 /* confdefs.h. */
12014 _ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h. */
12018
12019 /* Override any gcc2 internal prototype to avoid an error. */
12020 #ifdef __cplusplus
12021 extern "C"
12022 #endif
12023 /* We use char because int might match the return type of a gcc2
12024 builtin and then its argument prototype would still apply. */
12025 char XpmReadFileToPixmap ();
12026 int
12027 main ()
12028 {
12029 XpmReadFileToPixmap ();
12030 ;
12031 return 0;
12032 }
12033 _ACEOF
12034 rm -f conftest.$ac_objext conftest$ac_exeext
12035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12036 (eval $ac_link) 2>conftest.er1
12037 ac_status=$?
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try='test -z "$ac_c_werror_flag"
12044 || test ! -s conftest.err'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; } &&
12050 { ac_try='test -s conftest$ac_exeext'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12057 else
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12060
12061 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12062 fi
12063 rm -f conftest.err conftest.$ac_objext \
12064 conftest$ac_exeext conftest.$ac_ext
12065 LIBS=$ac_check_lib_save_LIBS
12066 fi
12067 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12068 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12069 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12070 HAVE_XPM=yes
12071 fi
12072
12073 fi
12074
12075
12076 if test "${HAVE_XPM}" = "yes"; then
12077 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12078 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12079 cat >conftest.$ac_ext <<_ACEOF
12080 /* confdefs.h. */
12081 _ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h. */
12085 #include "X11/xpm.h"
12086 #ifndef XpmReturnAllocPixels
12087 no_return_alloc_pixels
12088 #endif
12089
12090 _ACEOF
12091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12092 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12093 HAVE_XPM=no
12094 else
12095 HAVE_XPM=yes
12096 fi
12097 rm -f conftest*
12098
12099
12100 if test "${HAVE_XPM}" = "yes"; then
12101 echo "$as_me:$LINENO: result: yes" >&5
12102 echo "${ECHO_T}yes" >&6
12103 else
12104 echo "$as_me:$LINENO: result: no" >&5
12105 echo "${ECHO_T}no" >&6
12106 fi
12107 fi
12108 fi
12109
12110 if test "${HAVE_XPM}" = "yes"; then
12111
12112 cat >>confdefs.h <<\_ACEOF
12113 #define HAVE_XPM 1
12114 _ACEOF
12115
12116 fi
12117 fi
12118
12119 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12120 HAVE_JPEG=no
12121 if test "${HAVE_X11}" = "yes"; then
12122 if test "${with_jpeg}" != "no"; then
12123 if test "${ac_cv_header_jerror_h+set}" = set; then
12124 echo "$as_me:$LINENO: checking for jerror.h" >&5
12125 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12126 if test "${ac_cv_header_jerror_h+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 fi
12129 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12130 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12131 else
12132 # Is the header compilable?
12133 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12134 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12135 cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h. */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141 $ac_includes_default
12142 #include <jerror.h>
12143 _ACEOF
12144 rm -f conftest.$ac_objext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12146 (eval $ac_compile) 2>conftest.er1
12147 ac_status=$?
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -z "$ac_c_werror_flag"
12154 || test ! -s conftest.err'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try='test -s conftest.$ac_objext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 ac_header_compiler=yes
12167 else
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171 ac_header_compiler=no
12172 fi
12173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12175 echo "${ECHO_T}$ac_header_compiler" >&6
12176
12177 # Is the header present?
12178 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12179 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12180 cat >conftest.$ac_ext <<_ACEOF
12181 /* confdefs.h. */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12186 #include <jerror.h>
12187 _ACEOF
12188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12190 ac_status=$?
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } >/dev/null; then
12196 if test -s conftest.err; then
12197 ac_cpp_err=$ac_c_preproc_warn_flag
12198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12199 else
12200 ac_cpp_err=
12201 fi
12202 else
12203 ac_cpp_err=yes
12204 fi
12205 if test -z "$ac_cpp_err"; then
12206 ac_header_preproc=yes
12207 else
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12210
12211 ac_header_preproc=no
12212 fi
12213 rm -f conftest.err conftest.$ac_ext
12214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12215 echo "${ECHO_T}$ac_header_preproc" >&6
12216
12217 # So? What about this header?
12218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12219 yes:no: )
12220 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12221 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12223 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12224 ac_header_preproc=yes
12225 ;;
12226 no:yes:* )
12227 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12228 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12229 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12230 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12231 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12232 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12233 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12234 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12235 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12236 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12237 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12238 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12239 (
12240 cat <<\_ASBOX
12241 ## ------------------------------------------ ##
12242 ## Report this to the AC_PACKAGE_NAME lists. ##
12243 ## ------------------------------------------ ##
12244 _ASBOX
12245 ) |
12246 sed "s/^/$as_me: WARNING: /" >&2
12247 ;;
12248 esac
12249 echo "$as_me:$LINENO: checking for jerror.h" >&5
12250 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12251 if test "${ac_cv_header_jerror_h+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 else
12254 ac_cv_header_jerror_h=$ac_header_preproc
12255 fi
12256 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12257 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12258
12259 fi
12260 if test $ac_cv_header_jerror_h = yes; then
12261 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12262 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12263 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 else
12266 ac_check_lib_save_LIBS=$LIBS
12267 LIBS="-ljpeg $LIBS"
12268 cat >conftest.$ac_ext <<_ACEOF
12269 /* confdefs.h. */
12270 _ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12274
12275 /* Override any gcc2 internal prototype to avoid an error. */
12276 #ifdef __cplusplus
12277 extern "C"
12278 #endif
12279 /* We use char because int might match the return type of a gcc2
12280 builtin and then its argument prototype would still apply. */
12281 char jpeg_destroy_compress ();
12282 int
12283 main ()
12284 {
12285 jpeg_destroy_compress ();
12286 ;
12287 return 0;
12288 }
12289 _ACEOF
12290 rm -f conftest.$ac_objext conftest$ac_exeext
12291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12292 (eval $ac_link) 2>conftest.er1
12293 ac_status=$?
12294 grep -v '^ *+' conftest.er1 >conftest.err
12295 rm -f conftest.er1
12296 cat conftest.err >&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } &&
12299 { ac_try='test -z "$ac_c_werror_flag"
12300 || test ! -s conftest.err'
12301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302 (eval $ac_try) 2>&5
12303 ac_status=$?
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; } &&
12306 { ac_try='test -s conftest$ac_exeext'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12309 ac_status=$?
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; }; then
12312 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12313 else
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12316
12317 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12318 fi
12319 rm -f conftest.err conftest.$ac_objext \
12320 conftest$ac_exeext conftest.$ac_ext
12321 LIBS=$ac_check_lib_save_LIBS
12322 fi
12323 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12324 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12325 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12326 HAVE_JPEG=yes
12327 fi
12328
12329 fi
12330
12331
12332 fi
12333
12334
12335 if test "${HAVE_JPEG}" = "yes"; then
12336 cat >>confdefs.h <<\_ACEOF
12337 #define HAVE_JPEG 1
12338 _ACEOF
12339
12340 cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h. */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 #include <jpeglib.h>
12347 version=JPEG_LIB_VERSION
12348
12349 _ACEOF
12350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12351 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12352 cat >>confdefs.h <<\_ACEOF
12353 #define HAVE_JPEG 1
12354 _ACEOF
12355
12356 else
12357 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12358 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12359 HAVE_JPEG=no
12360 fi
12361 rm -f conftest*
12362
12363 fi
12364 fi
12365
12366 ### Use -lpng if available, unless `--with-png=no'.
12367 HAVE_PNG=no
12368 if test "${HAVE_X11}" = "yes"; then
12369 if test "${with_png}" != "no"; then
12370 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12371 # in /usr/include/libpng.
12372
12373
12374 for ac_header in png.h libpng/png.h
12375 do
12376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12378 echo "$as_me:$LINENO: checking for $ac_header" >&5
12379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12382 fi
12383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12385 else
12386 # Is the header compilable?
12387 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h. */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395 $ac_includes_default
12396 #include <$ac_header>
12397 _ACEOF
12398 rm -f conftest.$ac_objext
12399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12400 (eval $ac_compile) 2>conftest.er1
12401 ac_status=$?
12402 grep -v '^ *+' conftest.er1 >conftest.err
12403 rm -f conftest.er1
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } &&
12407 { ac_try='test -z "$ac_c_werror_flag"
12408 || test ! -s conftest.err'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; } &&
12414 { ac_try='test -s conftest.$ac_objext'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; }; then
12420 ac_header_compiler=yes
12421 else
12422 echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12424
12425 ac_header_compiler=no
12426 fi
12427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12428 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12429 echo "${ECHO_T}$ac_header_compiler" >&6
12430
12431 # Is the header present?
12432 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12434 cat >conftest.$ac_ext <<_ACEOF
12435 /* confdefs.h. */
12436 _ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12440 #include <$ac_header>
12441 _ACEOF
12442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12444 ac_status=$?
12445 grep -v '^ *+' conftest.er1 >conftest.err
12446 rm -f conftest.er1
12447 cat conftest.err >&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } >/dev/null; then
12450 if test -s conftest.err; then
12451 ac_cpp_err=$ac_c_preproc_warn_flag
12452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12453 else
12454 ac_cpp_err=
12455 fi
12456 else
12457 ac_cpp_err=yes
12458 fi
12459 if test -z "$ac_cpp_err"; then
12460 ac_header_preproc=yes
12461 else
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12464
12465 ac_header_preproc=no
12466 fi
12467 rm -f conftest.err conftest.$ac_ext
12468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12469 echo "${ECHO_T}$ac_header_preproc" >&6
12470
12471 # So? What about this header?
12472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12473 yes:no: )
12474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12478 ac_header_preproc=yes
12479 ;;
12480 no:yes:* )
12481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12493 (
12494 cat <<\_ASBOX
12495 ## ------------------------------------------ ##
12496 ## Report this to the AC_PACKAGE_NAME lists. ##
12497 ## ------------------------------------------ ##
12498 _ASBOX
12499 ) |
12500 sed "s/^/$as_me: WARNING: /" >&2
12501 ;;
12502 esac
12503 echo "$as_me:$LINENO: checking for $ac_header" >&5
12504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 else
12508 eval "$as_ac_Header=\$ac_header_preproc"
12509 fi
12510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12512
12513 fi
12514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12515 cat >>confdefs.h <<_ACEOF
12516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12517 _ACEOF
12518
12519 fi
12520
12521 done
12522
12523 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12524 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12525 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
12526 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 else
12529 ac_check_lib_save_LIBS=$LIBS
12530 LIBS="-lpng -lz -lm $LIBS"
12531 cat >conftest.$ac_ext <<_ACEOF
12532 /* confdefs.h. */
12533 _ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h. */
12537
12538 /* Override any gcc2 internal prototype to avoid an error. */
12539 #ifdef __cplusplus
12540 extern "C"
12541 #endif
12542 /* We use char because int might match the return type of a gcc2
12543 builtin and then its argument prototype would still apply. */
12544 char png_get_channels ();
12545 int
12546 main ()
12547 {
12548 png_get_channels ();
12549 ;
12550 return 0;
12551 }
12552 _ACEOF
12553 rm -f conftest.$ac_objext conftest$ac_exeext
12554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12555 (eval $ac_link) 2>conftest.er1
12556 ac_status=$?
12557 grep -v '^ *+' conftest.er1 >conftest.err
12558 rm -f conftest.er1
12559 cat conftest.err >&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); } &&
12562 { ac_try='test -z "$ac_c_werror_flag"
12563 || test ! -s conftest.err'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; } &&
12569 { ac_try='test -s conftest$ac_exeext'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; }; then
12575 ac_cv_lib_png_png_get_channels=yes
12576 else
12577 echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12579
12580 ac_cv_lib_png_png_get_channels=no
12581 fi
12582 rm -f conftest.err conftest.$ac_objext \
12583 conftest$ac_exeext conftest.$ac_ext
12584 LIBS=$ac_check_lib_save_LIBS
12585 fi
12586 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12587 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12588 if test $ac_cv_lib_png_png_get_channels = yes; then
12589 HAVE_PNG=yes
12590 fi
12591
12592 fi
12593 fi
12594
12595 if test "${HAVE_PNG}" = "yes"; then
12596
12597 cat >>confdefs.h <<\_ACEOF
12598 #define HAVE_PNG 1
12599 _ACEOF
12600
12601 fi
12602 fi
12603
12604 ### Use -ltiff if available, unless `--with-tiff=no'.
12605 HAVE_TIFF=no
12606 if test "${HAVE_X11}" = "yes"; then
12607 if test "${with_tiff}" != "no"; then
12608 if test "${ac_cv_header_tiffio_h+set}" = set; then
12609 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12610 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12611 if test "${ac_cv_header_tiffio_h+set}" = set; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12613 fi
12614 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12615 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12616 else
12617 # Is the header compilable?
12618 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12619 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12620 cat >conftest.$ac_ext <<_ACEOF
12621 /* confdefs.h. */
12622 _ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12626 $ac_includes_default
12627 #include <tiffio.h>
12628 _ACEOF
12629 rm -f conftest.$ac_objext
12630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12631 (eval $ac_compile) 2>conftest.er1
12632 ac_status=$?
12633 grep -v '^ *+' conftest.er1 >conftest.err
12634 rm -f conftest.er1
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } &&
12638 { ac_try='test -z "$ac_c_werror_flag"
12639 || test ! -s conftest.err'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } &&
12645 { ac_try='test -s conftest.$ac_objext'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; }; then
12651 ac_header_compiler=yes
12652 else
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12655
12656 ac_header_compiler=no
12657 fi
12658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12660 echo "${ECHO_T}$ac_header_compiler" >&6
12661
12662 # Is the header present?
12663 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12664 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12665 cat >conftest.$ac_ext <<_ACEOF
12666 /* confdefs.h. */
12667 _ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h. */
12671 #include <tiffio.h>
12672 _ACEOF
12673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12675 ac_status=$?
12676 grep -v '^ *+' conftest.er1 >conftest.err
12677 rm -f conftest.er1
12678 cat conftest.err >&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } >/dev/null; then
12681 if test -s conftest.err; then
12682 ac_cpp_err=$ac_c_preproc_warn_flag
12683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12684 else
12685 ac_cpp_err=
12686 fi
12687 else
12688 ac_cpp_err=yes
12689 fi
12690 if test -z "$ac_cpp_err"; then
12691 ac_header_preproc=yes
12692 else
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12695
12696 ac_header_preproc=no
12697 fi
12698 rm -f conftest.err conftest.$ac_ext
12699 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12700 echo "${ECHO_T}$ac_header_preproc" >&6
12701
12702 # So? What about this header?
12703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12704 yes:no: )
12705 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12706 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12707 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12708 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12709 ac_header_preproc=yes
12710 ;;
12711 no:yes:* )
12712 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12713 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12714 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12715 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12716 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12717 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12718 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12719 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12720 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12721 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12722 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12723 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12724 (
12725 cat <<\_ASBOX
12726 ## ------------------------------------------ ##
12727 ## Report this to the AC_PACKAGE_NAME lists. ##
12728 ## ------------------------------------------ ##
12729 _ASBOX
12730 ) |
12731 sed "s/^/$as_me: WARNING: /" >&2
12732 ;;
12733 esac
12734 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12735 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12736 if test "${ac_cv_header_tiffio_h+set}" = set; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 else
12739 ac_cv_header_tiffio_h=$ac_header_preproc
12740 fi
12741 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12742 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12743
12744 fi
12745 if test $ac_cv_header_tiffio_h = yes; then
12746 tifflibs="-lz -lm"
12747 # At least one tiff package requires the jpeg library.
12748 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12749 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12750 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12751 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 else
12754 ac_check_lib_save_LIBS=$LIBS
12755 LIBS="-ltiff $tifflibs $LIBS"
12756 cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h. */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12762
12763 /* Override any gcc2 internal prototype to avoid an error. */
12764 #ifdef __cplusplus
12765 extern "C"
12766 #endif
12767 /* We use char because int might match the return type of a gcc2
12768 builtin and then its argument prototype would still apply. */
12769 char TIFFGetVersion ();
12770 int
12771 main ()
12772 {
12773 TIFFGetVersion ();
12774 ;
12775 return 0;
12776 }
12777 _ACEOF
12778 rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12780 (eval $ac_link) 2>conftest.er1
12781 ac_status=$?
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } &&
12787 { ac_try='test -z "$ac_c_werror_flag"
12788 || test ! -s conftest.err'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12791 ac_status=$?
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; } &&
12794 { ac_try='test -s conftest$ac_exeext'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; }; then
12800 ac_cv_lib_tiff_TIFFGetVersion=yes
12801 else
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12804
12805 ac_cv_lib_tiff_TIFFGetVersion=no
12806 fi
12807 rm -f conftest.err conftest.$ac_objext \
12808 conftest$ac_exeext conftest.$ac_ext
12809 LIBS=$ac_check_lib_save_LIBS
12810 fi
12811 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12812 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12813 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12814 HAVE_TIFF=yes
12815 fi
12816
12817 fi
12818
12819
12820 fi
12821
12822 if test "${HAVE_TIFF}" = "yes"; then
12823
12824 cat >>confdefs.h <<\_ACEOF
12825 #define HAVE_TIFF 1
12826 _ACEOF
12827
12828 fi
12829 fi
12830
12831 ### Use -lgif if available, unless `--with-gif=no'.
12832 HAVE_GIF=no
12833 if test "${HAVE_X11}" = "yes"; then
12834 if test "${with_gif}" != "no"; then
12835 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12836 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12837 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12838 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12840 fi
12841 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12842 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12843 else
12844 # Is the header compilable?
12845 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12846 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12847 cat >conftest.$ac_ext <<_ACEOF
12848 /* confdefs.h. */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12853 $ac_includes_default
12854 #include <gif_lib.h>
12855 _ACEOF
12856 rm -f conftest.$ac_objext
12857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12858 (eval $ac_compile) 2>conftest.er1
12859 ac_status=$?
12860 grep -v '^ *+' conftest.er1 >conftest.err
12861 rm -f conftest.er1
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try='test -z "$ac_c_werror_flag"
12866 || test ! -s conftest.err'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; } &&
12872 { ac_try='test -s conftest.$ac_objext'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12875 ac_status=$?
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12878 ac_header_compiler=yes
12879 else
12880 echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12882
12883 ac_header_compiler=no
12884 fi
12885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12887 echo "${ECHO_T}$ac_header_compiler" >&6
12888
12889 # Is the header present?
12890 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12891 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12892 cat >conftest.$ac_ext <<_ACEOF
12893 /* confdefs.h. */
12894 _ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12898 #include <gif_lib.h>
12899 _ACEOF
12900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12902 ac_status=$?
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } >/dev/null; then
12908 if test -s conftest.err; then
12909 ac_cpp_err=$ac_c_preproc_warn_flag
12910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12911 else
12912 ac_cpp_err=
12913 fi
12914 else
12915 ac_cpp_err=yes
12916 fi
12917 if test -z "$ac_cpp_err"; then
12918 ac_header_preproc=yes
12919 else
12920 echo "$as_me: failed program was:" >&5
12921 sed 's/^/| /' conftest.$ac_ext >&5
12922
12923 ac_header_preproc=no
12924 fi
12925 rm -f conftest.err conftest.$ac_ext
12926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12927 echo "${ECHO_T}$ac_header_preproc" >&6
12928
12929 # So? What about this header?
12930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12931 yes:no: )
12932 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12933 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12934 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12935 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12936 ac_header_preproc=yes
12937 ;;
12938 no:yes:* )
12939 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12940 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12941 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12942 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12943 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12944 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12945 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12946 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12948 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12949 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12950 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12951 (
12952 cat <<\_ASBOX
12953 ## ------------------------------------------ ##
12954 ## Report this to the AC_PACKAGE_NAME lists. ##
12955 ## ------------------------------------------ ##
12956 _ASBOX
12957 ) |
12958 sed "s/^/$as_me: WARNING: /" >&2
12959 ;;
12960 esac
12961 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12962 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12963 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 else
12966 ac_cv_header_gif_lib_h=$ac_header_preproc
12967 fi
12968 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12969 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12970
12971 fi
12972 if test $ac_cv_header_gif_lib_h = yes; then
12973 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12974 # Earlier versions can crash Emacs.
12975 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12976 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12977 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 else
12980 ac_check_lib_save_LIBS=$LIBS
12981 LIBS="-lungif $LIBS"
12982 cat >conftest.$ac_ext <<_ACEOF
12983 /* confdefs.h. */
12984 _ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12988
12989 /* Override any gcc2 internal prototype to avoid an error. */
12990 #ifdef __cplusplus
12991 extern "C"
12992 #endif
12993 /* We use char because int might match the return type of a gcc2
12994 builtin and then its argument prototype would still apply. */
12995 char EGifPutExtensionLast ();
12996 int
12997 main ()
12998 {
12999 EGifPutExtensionLast ();
13000 ;
13001 return 0;
13002 }
13003 _ACEOF
13004 rm -f conftest.$ac_objext conftest$ac_exeext
13005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13006 (eval $ac_link) 2>conftest.er1
13007 ac_status=$?
13008 grep -v '^ *+' conftest.er1 >conftest.err
13009 rm -f conftest.er1
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } &&
13013 { ac_try='test -z "$ac_c_werror_flag"
13014 || test ! -s conftest.err'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; } &&
13020 { ac_try='test -s conftest$ac_exeext'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13026 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13027 else
13028 echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13030
13031 ac_cv_lib_ungif_EGifPutExtensionLast=no
13032 fi
13033 rm -f conftest.err conftest.$ac_objext \
13034 conftest$ac_exeext conftest.$ac_ext
13035 LIBS=$ac_check_lib_save_LIBS
13036 fi
13037 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13038 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13039 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13040 HAVE_GIF=yes
13041 fi
13042
13043 fi
13044
13045
13046 fi
13047
13048 if test "${HAVE_GIF}" = "yes"; then
13049
13050 cat >>confdefs.h <<\_ACEOF
13051 #define HAVE_GIF 1
13052 _ACEOF
13053
13054 fi
13055 fi
13056
13057 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13058 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13059 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13060 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 fi
13063 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13064 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13065 else
13066 # Is the header compilable?
13067 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13068 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13069 cat >conftest.$ac_ext <<_ACEOF
13070 /* confdefs.h. */
13071 _ACEOF
13072 cat confdefs.h >>conftest.$ac_ext
13073 cat >>conftest.$ac_ext <<_ACEOF
13074 /* end confdefs.h. */
13075 $ac_includes_default
13076 #include <malloc/malloc.h>
13077 _ACEOF
13078 rm -f conftest.$ac_objext
13079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13080 (eval $ac_compile) 2>conftest.er1
13081 ac_status=$?
13082 grep -v '^ *+' conftest.er1 >conftest.err
13083 rm -f conftest.er1
13084 cat conftest.err >&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); } &&
13087 { ac_try='test -z "$ac_c_werror_flag"
13088 || test ! -s conftest.err'
13089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13090 (eval $ac_try) 2>&5
13091 ac_status=$?
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }; } &&
13094 { ac_try='test -s conftest.$ac_objext'
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; }; then
13100 ac_header_compiler=yes
13101 else
13102 echo "$as_me: failed program was:" >&5
13103 sed 's/^/| /' conftest.$ac_ext >&5
13104
13105 ac_header_compiler=no
13106 fi
13107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13109 echo "${ECHO_T}$ac_header_compiler" >&6
13110
13111 # Is the header present?
13112 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13113 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13114 cat >conftest.$ac_ext <<_ACEOF
13115 /* confdefs.h. */
13116 _ACEOF
13117 cat confdefs.h >>conftest.$ac_ext
13118 cat >>conftest.$ac_ext <<_ACEOF
13119 /* end confdefs.h. */
13120 #include <malloc/malloc.h>
13121 _ACEOF
13122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13124 ac_status=$?
13125 grep -v '^ *+' conftest.er1 >conftest.err
13126 rm -f conftest.er1
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } >/dev/null; then
13130 if test -s conftest.err; then
13131 ac_cpp_err=$ac_c_preproc_warn_flag
13132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13133 else
13134 ac_cpp_err=
13135 fi
13136 else
13137 ac_cpp_err=yes
13138 fi
13139 if test -z "$ac_cpp_err"; then
13140 ac_header_preproc=yes
13141 else
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13144
13145 ac_header_preproc=no
13146 fi
13147 rm -f conftest.err conftest.$ac_ext
13148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13149 echo "${ECHO_T}$ac_header_preproc" >&6
13150
13151 # So? What about this header?
13152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13153 yes:no: )
13154 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13155 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13157 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13158 ac_header_preproc=yes
13159 ;;
13160 no:yes:* )
13161 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13162 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13163 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13164 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13166 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13168 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13170 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13172 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13173 (
13174 cat <<\_ASBOX
13175 ## ------------------------------------------ ##
13176 ## Report this to the AC_PACKAGE_NAME lists. ##
13177 ## ------------------------------------------ ##
13178 _ASBOX
13179 ) |
13180 sed "s/^/$as_me: WARNING: /" >&2
13181 ;;
13182 esac
13183 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13184 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13185 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 else
13188 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13189 fi
13190 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13191 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13192
13193 fi
13194 if test $ac_cv_header_malloc_malloc_h = yes; then
13195
13196 cat >>confdefs.h <<\_ACEOF
13197 #define HAVE_MALLOC_MALLOC_H 1
13198 _ACEOF
13199
13200 fi
13201
13202
13203
13204 ### Use Mac OS X Carbon API to implement GUI.
13205 if test "${HAVE_CARBON}" = "yes"; then
13206
13207 cat >>confdefs.h <<\_ACEOF
13208 #define HAVE_CARBON 1
13209 _ACEOF
13210
13211 ## Specify the install directory
13212 carbon_appdir=
13213 if test "${carbon_appdir_x}" != ""; then
13214 case ${carbon_appdir_x} in
13215 y | ye | yes) carbon_appdir=/Applications ;;
13216 * ) carbon_appdir=${carbon_appdir_x} ;;
13217 esac
13218 fi
13219 # We also have mouse menus.
13220 HAVE_MENUS=yes
13221 fi
13222
13223 ### Use session management (-lSM -lICE) if available
13224 HAVE_X_SM=no
13225 if test "${HAVE_X11}" = "yes"; then
13226 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13227 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13228 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13229 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13231 fi
13232 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13233 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13234 else
13235 # Is the header compilable?
13236 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13237 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13238 cat >conftest.$ac_ext <<_ACEOF
13239 /* confdefs.h. */
13240 _ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13244 $ac_includes_default
13245 #include <X11/SM/SMlib.h>
13246 _ACEOF
13247 rm -f conftest.$ac_objext
13248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13249 (eval $ac_compile) 2>conftest.er1
13250 ac_status=$?
13251 grep -v '^ *+' conftest.er1 >conftest.err
13252 rm -f conftest.er1
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
13256 { ac_try='test -z "$ac_c_werror_flag"
13257 || test ! -s conftest.err'
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); }; } &&
13263 { ac_try='test -s conftest.$ac_objext'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; }; then
13269 ac_header_compiler=yes
13270 else
13271 echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13273
13274 ac_header_compiler=no
13275 fi
13276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13278 echo "${ECHO_T}$ac_header_compiler" >&6
13279
13280 # Is the header present?
13281 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13282 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13283 cat >conftest.$ac_ext <<_ACEOF
13284 /* confdefs.h. */
13285 _ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13289 #include <X11/SM/SMlib.h>
13290 _ACEOF
13291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13293 ac_status=$?
13294 grep -v '^ *+' conftest.er1 >conftest.err
13295 rm -f conftest.er1
13296 cat conftest.err >&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } >/dev/null; then
13299 if test -s conftest.err; then
13300 ac_cpp_err=$ac_c_preproc_warn_flag
13301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13302 else
13303 ac_cpp_err=
13304 fi
13305 else
13306 ac_cpp_err=yes
13307 fi
13308 if test -z "$ac_cpp_err"; then
13309 ac_header_preproc=yes
13310 else
13311 echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13313
13314 ac_header_preproc=no
13315 fi
13316 rm -f conftest.err conftest.$ac_ext
13317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13318 echo "${ECHO_T}$ac_header_preproc" >&6
13319
13320 # So? What about this header?
13321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13322 yes:no: )
13323 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13324 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13326 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13327 ac_header_preproc=yes
13328 ;;
13329 no:yes:* )
13330 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13331 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13333 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13335 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13337 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13339 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13341 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13342 (
13343 cat <<\_ASBOX
13344 ## ------------------------------------------ ##
13345 ## Report this to the AC_PACKAGE_NAME lists. ##
13346 ## ------------------------------------------ ##
13347 _ASBOX
13348 ) |
13349 sed "s/^/$as_me: WARNING: /" >&2
13350 ;;
13351 esac
13352 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13353 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13354 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 else
13357 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13358 fi
13359 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13360 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13361
13362 fi
13363 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13364 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13365 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
13366 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13368 else
13369 ac_check_lib_save_LIBS=$LIBS
13370 LIBS="-lSM -lICE $LIBS"
13371 cat >conftest.$ac_ext <<_ACEOF
13372 /* confdefs.h. */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13377
13378 /* Override any gcc2 internal prototype to avoid an error. */
13379 #ifdef __cplusplus
13380 extern "C"
13381 #endif
13382 /* We use char because int might match the return type of a gcc2
13383 builtin and then its argument prototype would still apply. */
13384 char SmcOpenConnection ();
13385 int
13386 main ()
13387 {
13388 SmcOpenConnection ();
13389 ;
13390 return 0;
13391 }
13392 _ACEOF
13393 rm -f conftest.$ac_objext conftest$ac_exeext
13394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13395 (eval $ac_link) 2>conftest.er1
13396 ac_status=$?
13397 grep -v '^ *+' conftest.er1 >conftest.err
13398 rm -f conftest.er1
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } &&
13402 { ac_try='test -z "$ac_c_werror_flag"
13403 || test ! -s conftest.err'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13406 ac_status=$?
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; } &&
13409 { ac_try='test -s conftest$ac_exeext'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13412 ac_status=$?
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; }; then
13415 ac_cv_lib_SM_SmcOpenConnection=yes
13416 else
13417 echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13419
13420 ac_cv_lib_SM_SmcOpenConnection=no
13421 fi
13422 rm -f conftest.err conftest.$ac_objext \
13423 conftest$ac_exeext conftest.$ac_ext
13424 LIBS=$ac_check_lib_save_LIBS
13425 fi
13426 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13427 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
13428 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13429 HAVE_X_SM=yes
13430 fi
13431
13432 fi
13433
13434
13435
13436 if test "${HAVE_X_SM}" = "yes"; then
13437
13438 cat >>confdefs.h <<\_ACEOF
13439 #define HAVE_X_SM 1
13440 _ACEOF
13441
13442 case "$LIBS" in
13443 *-lSM*) ;;
13444 *) LIBS="-lSM -lICE $LIBS" ;;
13445 esac
13446 fi
13447 fi
13448
13449 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13450 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13451 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
13452 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 else
13455 cat >conftest.$ac_ext <<_ACEOF
13456 /* confdefs.h. */
13457 _ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h. */
13461 #include <netdb.h>
13462 int
13463 main ()
13464 {
13465 return h_errno;
13466 ;
13467 return 0;
13468 }
13469 _ACEOF
13470 rm -f conftest.$ac_objext conftest$ac_exeext
13471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13472 (eval $ac_link) 2>conftest.er1
13473 ac_status=$?
13474 grep -v '^ *+' conftest.er1 >conftest.err
13475 rm -f conftest.er1
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } &&
13479 { ac_try='test -z "$ac_c_werror_flag"
13480 || test ! -s conftest.err'
13481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13482 (eval $ac_try) 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; } &&
13486 { ac_try='test -s conftest$ac_exeext'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
13492 emacs_cv_netdb_declares_h_errno=yes
13493 else
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497 emacs_cv_netdb_declares_h_errno=no
13498 fi
13499 rm -f conftest.err conftest.$ac_objext \
13500 conftest$ac_exeext conftest.$ac_ext
13501 fi
13502 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13503 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13504 if test $emacs_cv_netdb_declares_h_errno = yes; then
13505
13506 cat >>confdefs.h <<\_ACEOF
13507 #define HAVE_H_ERRNO 1
13508 _ACEOF
13509
13510 fi
13511
13512 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13513 # for constant arguments. Useless!
13514 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13515 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13516 if test "${ac_cv_working_alloca_h+set}" = set; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13518 else
13519 cat >conftest.$ac_ext <<_ACEOF
13520 /* confdefs.h. */
13521 _ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13525 #include <alloca.h>
13526 int
13527 main ()
13528 {
13529 char *p = (char *) alloca (2 * sizeof (int));
13530 ;
13531 return 0;
13532 }
13533 _ACEOF
13534 rm -f conftest.$ac_objext conftest$ac_exeext
13535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13536 (eval $ac_link) 2>conftest.er1
13537 ac_status=$?
13538 grep -v '^ *+' conftest.er1 >conftest.err
13539 rm -f conftest.er1
13540 cat conftest.err >&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } &&
13543 { ac_try='test -z "$ac_c_werror_flag"
13544 || test ! -s conftest.err'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13547 ac_status=$?
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; } &&
13550 { ac_try='test -s conftest$ac_exeext'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13556 ac_cv_working_alloca_h=yes
13557 else
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13560
13561 ac_cv_working_alloca_h=no
13562 fi
13563 rm -f conftest.err conftest.$ac_objext \
13564 conftest$ac_exeext conftest.$ac_ext
13565 fi
13566 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13567 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13568 if test $ac_cv_working_alloca_h = yes; then
13569
13570 cat >>confdefs.h <<\_ACEOF
13571 #define HAVE_ALLOCA_H 1
13572 _ACEOF
13573
13574 fi
13575
13576 echo "$as_me:$LINENO: checking for alloca" >&5
13577 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13578 if test "${ac_cv_func_alloca_works+set}" = set; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 else
13581 cat >conftest.$ac_ext <<_ACEOF
13582 /* confdefs.h. */
13583 _ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13587 #ifdef __GNUC__
13588 # define alloca __builtin_alloca
13589 #else
13590 # ifdef _MSC_VER
13591 # include <malloc.h>
13592 # define alloca _alloca
13593 # else
13594 # if HAVE_ALLOCA_H
13595 # include <alloca.h>
13596 # else
13597 # ifdef _AIX
13598 #pragma alloca
13599 # else
13600 # ifndef alloca /* predefined by HP cc +Olibcalls */
13601 char *alloca ();
13602 # endif
13603 # endif
13604 # endif
13605 # endif
13606 #endif
13607
13608 int
13609 main ()
13610 {
13611 char *p = (char *) alloca (1);
13612 ;
13613 return 0;
13614 }
13615 _ACEOF
13616 rm -f conftest.$ac_objext conftest$ac_exeext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13618 (eval $ac_link) 2>conftest.er1
13619 ac_status=$?
13620 grep -v '^ *+' conftest.er1 >conftest.err
13621 rm -f conftest.er1
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } &&
13625 { ac_try='test -z "$ac_c_werror_flag"
13626 || test ! -s conftest.err'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; } &&
13632 { ac_try='test -s conftest$ac_exeext'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }; then
13638 ac_cv_func_alloca_works=yes
13639 else
13640 echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13642
13643 ac_cv_func_alloca_works=no
13644 fi
13645 rm -f conftest.err conftest.$ac_objext \
13646 conftest$ac_exeext conftest.$ac_ext
13647 fi
13648 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13649 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13650
13651 if test $ac_cv_func_alloca_works = yes; then
13652
13653 cat >>confdefs.h <<\_ACEOF
13654 #define HAVE_ALLOCA 1
13655 _ACEOF
13656
13657 else
13658 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13659 # that cause trouble. Some versions do not even contain alloca or
13660 # contain a buggy version. If you still want to use their alloca,
13661 # use ar to extract alloca.o from them instead of compiling alloca.c.
13662
13663 ALLOCA=alloca.$ac_objext
13664
13665 cat >>confdefs.h <<\_ACEOF
13666 #define C_ALLOCA 1
13667 _ACEOF
13668
13669
13670 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13671 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13672 if test "${ac_cv_os_cray+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 else
13675 cat >conftest.$ac_ext <<_ACEOF
13676 /* confdefs.h. */
13677 _ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13681 #if defined(CRAY) && ! defined(CRAY2)
13682 webecray
13683 #else
13684 wenotbecray
13685 #endif
13686
13687 _ACEOF
13688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13689 $EGREP "webecray" >/dev/null 2>&1; then
13690 ac_cv_os_cray=yes
13691 else
13692 ac_cv_os_cray=no
13693 fi
13694 rm -f conftest*
13695
13696 fi
13697 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13698 echo "${ECHO_T}$ac_cv_os_cray" >&6
13699 if test $ac_cv_os_cray = yes; then
13700 for ac_func in _getb67 GETB67 getb67; do
13701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13702 echo "$as_me:$LINENO: checking for $ac_func" >&5
13703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13704 if eval "test \"\${$as_ac_var+set}\" = set"; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 else
13707 cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h. */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13715 #define $ac_func innocuous_$ac_func
13716
13717 /* System header to define __stub macros and hopefully few prototypes,
13718 which can conflict with char $ac_func (); below.
13719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13720 <limits.h> exists even on freestanding compilers. */
13721
13722 #ifdef __STDC__
13723 # include <limits.h>
13724 #else
13725 # include <assert.h>
13726 #endif
13727
13728 #undef $ac_func
13729
13730 /* Override any gcc2 internal prototype to avoid an error. */
13731 #ifdef __cplusplus
13732 extern "C"
13733 {
13734 #endif
13735 /* We use char because int might match the return type of a gcc2
13736 builtin and then its argument prototype would still apply. */
13737 char $ac_func ();
13738 /* The GNU C library defines this for functions which it implements
13739 to always fail with ENOSYS. Some functions are actually named
13740 something starting with __ and the normal name is an alias. */
13741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13742 choke me
13743 #else
13744 char (*f) () = $ac_func;
13745 #endif
13746 #ifdef __cplusplus
13747 }
13748 #endif
13749
13750 int
13751 main ()
13752 {
13753 return f != $ac_func;
13754 ;
13755 return 0;
13756 }
13757 _ACEOF
13758 rm -f conftest.$ac_objext conftest$ac_exeext
13759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13760 (eval $ac_link) 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_c_werror_flag"
13768 || test ! -s conftest.err'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13771 ac_status=$?
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; } &&
13774 { ac_try='test -s conftest$ac_exeext'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 eval "$as_ac_var=yes"
13781 else
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13784
13785 eval "$as_ac_var=no"
13786 fi
13787 rm -f conftest.err conftest.$ac_objext \
13788 conftest$ac_exeext conftest.$ac_ext
13789 fi
13790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13792 if test `eval echo '${'$as_ac_var'}'` = yes; then
13793
13794 cat >>confdefs.h <<_ACEOF
13795 #define CRAY_STACKSEG_END $ac_func
13796 _ACEOF
13797
13798 break
13799 fi
13800
13801 done
13802 fi
13803
13804 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13805 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13806 if test "${ac_cv_c_stack_direction+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809 if test "$cross_compiling" = yes; then
13810 ac_cv_c_stack_direction=0
13811 else
13812 cat >conftest.$ac_ext <<_ACEOF
13813 /* confdefs.h. */
13814 _ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13818 int
13819 find_stack_direction ()
13820 {
13821 static char *addr = 0;
13822 auto char dummy;
13823 if (addr == 0)
13824 {
13825 addr = &dummy;
13826 return find_stack_direction ();
13827 }
13828 else
13829 return (&dummy > addr) ? 1 : -1;
13830 }
13831
13832 int
13833 main ()
13834 {
13835 exit (find_stack_direction () < 0);
13836 }
13837 _ACEOF
13838 rm -f conftest$ac_exeext
13839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13840 (eval $ac_link) 2>&5
13841 ac_status=$?
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849 ac_cv_c_stack_direction=1
13850 else
13851 echo "$as_me: program exited with status $ac_status" >&5
13852 echo "$as_me: failed program was:" >&5
13853 sed 's/^/| /' conftest.$ac_ext >&5
13854
13855 ( exit $ac_status )
13856 ac_cv_c_stack_direction=-1
13857 fi
13858 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13859 fi
13860 fi
13861 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13862 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13863
13864 cat >>confdefs.h <<_ACEOF
13865 #define STACK_DIRECTION $ac_cv_c_stack_direction
13866 _ACEOF
13867
13868
13869 fi
13870
13871
13872 # fmod, logb, and frexp are found in -lm on most systems.
13873 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13874
13875 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13876 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13877 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 else
13880 ac_check_lib_save_LIBS=$LIBS
13881 LIBS="-lm $LIBS"
13882 cat >conftest.$ac_ext <<_ACEOF
13883 /* confdefs.h. */
13884 _ACEOF
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h. */
13888
13889 /* Override any gcc2 internal prototype to avoid an error. */
13890 #ifdef __cplusplus
13891 extern "C"
13892 #endif
13893 /* We use char because int might match the return type of a gcc2
13894 builtin and then its argument prototype would still apply. */
13895 char sqrt ();
13896 int
13897 main ()
13898 {
13899 sqrt ();
13900 ;
13901 return 0;
13902 }
13903 _ACEOF
13904 rm -f conftest.$ac_objext conftest$ac_exeext
13905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13906 (eval $ac_link) 2>conftest.er1
13907 ac_status=$?
13908 grep -v '^ *+' conftest.er1 >conftest.err
13909 rm -f conftest.er1
13910 cat conftest.err >&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); } &&
13913 { ac_try='test -z "$ac_c_werror_flag"
13914 || test ! -s conftest.err'
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; } &&
13920 { ac_try='test -s conftest$ac_exeext'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13923 ac_status=$?
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 ac_cv_lib_m_sqrt=yes
13927 else
13928 echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13930
13931 ac_cv_lib_m_sqrt=no
13932 fi
13933 rm -f conftest.err conftest.$ac_objext \
13934 conftest$ac_exeext conftest.$ac_ext
13935 LIBS=$ac_check_lib_save_LIBS
13936 fi
13937 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13938 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13939 if test $ac_cv_lib_m_sqrt = yes; then
13940 cat >>confdefs.h <<_ACEOF
13941 #define HAVE_LIBM 1
13942 _ACEOF
13943
13944 LIBS="-lm $LIBS"
13945
13946 fi
13947
13948
13949 # Check for mail-locking functions in a "mail" library. Probably this should
13950 # have the same check as for liblockfile below.
13951
13952 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13953 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13954 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957 ac_check_lib_save_LIBS=$LIBS
13958 LIBS="-lmail $LIBS"
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h. */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965
13966 /* Override any gcc2 internal prototype to avoid an error. */
13967 #ifdef __cplusplus
13968 extern "C"
13969 #endif
13970 /* We use char because int might match the return type of a gcc2
13971 builtin and then its argument prototype would still apply. */
13972 char maillock ();
13973 int
13974 main ()
13975 {
13976 maillock ();
13977 ;
13978 return 0;
13979 }
13980 _ACEOF
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983 (eval $ac_link) 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try='test -z "$ac_c_werror_flag"
13991 || test ! -s conftest.err'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } &&
13997 { ac_try='test -s conftest$ac_exeext'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003 ac_cv_lib_mail_maillock=yes
14004 else
14005 echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14007
14008 ac_cv_lib_mail_maillock=no
14009 fi
14010 rm -f conftest.err conftest.$ac_objext \
14011 conftest$ac_exeext conftest.$ac_ext
14012 LIBS=$ac_check_lib_save_LIBS
14013 fi
14014 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14015 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14016 if test $ac_cv_lib_mail_maillock = yes; then
14017 cat >>confdefs.h <<_ACEOF
14018 #define HAVE_LIBMAIL 1
14019 _ACEOF
14020
14021 LIBS="-lmail $LIBS"
14022
14023 fi
14024
14025
14026 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14027 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14028 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 else
14031 ac_check_lib_save_LIBS=$LIBS
14032 LIBS="-llockfile $LIBS"
14033 cat >conftest.$ac_ext <<_ACEOF
14034 /* confdefs.h. */
14035 _ACEOF
14036 cat confdefs.h >>conftest.$ac_ext
14037 cat >>conftest.$ac_ext <<_ACEOF
14038 /* end confdefs.h. */
14039
14040 /* Override any gcc2 internal prototype to avoid an error. */
14041 #ifdef __cplusplus
14042 extern "C"
14043 #endif
14044 /* We use char because int might match the return type of a gcc2
14045 builtin and then its argument prototype would still apply. */
14046 char maillock ();
14047 int
14048 main ()
14049 {
14050 maillock ();
14051 ;
14052 return 0;
14053 }
14054 _ACEOF
14055 rm -f conftest.$ac_objext conftest$ac_exeext
14056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14057 (eval $ac_link) 2>conftest.er1
14058 ac_status=$?
14059 grep -v '^ *+' conftest.er1 >conftest.err
14060 rm -f conftest.er1
14061 cat conftest.err >&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } &&
14064 { ac_try='test -z "$ac_c_werror_flag"
14065 || test ! -s conftest.err'
14066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067 (eval $ac_try) 2>&5
14068 ac_status=$?
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; } &&
14071 { ac_try='test -s conftest$ac_exeext'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14074 ac_status=$?
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; }; then
14077 ac_cv_lib_lockfile_maillock=yes
14078 else
14079 echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14081
14082 ac_cv_lib_lockfile_maillock=no
14083 fi
14084 rm -f conftest.err conftest.$ac_objext \
14085 conftest$ac_exeext conftest.$ac_ext
14086 LIBS=$ac_check_lib_save_LIBS
14087 fi
14088 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14089 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14090 if test $ac_cv_lib_lockfile_maillock = yes; then
14091 cat >>confdefs.h <<_ACEOF
14092 #define HAVE_LIBLOCKFILE 1
14093 _ACEOF
14094
14095 LIBS="-llockfile $LIBS"
14096
14097 fi
14098
14099 # If we have the shared liblockfile, assume we must use it for mail
14100 # locking (e.g. Debian). If we couldn't link against liblockfile
14101 # (no liblockfile.a installed), ensure that we don't need to.
14102 if test "$ac_cv_lib_lockfile_maillock" = no; then
14103 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14104 set dummy liblockfile.so; ac_word=$2
14105 echo "$as_me:$LINENO: checking for $ac_word" >&5
14106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14107 if test "${ac_cv_prog_liblockfile+set}" = set; then
14108 echo $ECHO_N "(cached) $ECHO_C" >&6
14109 else
14110 if test -n "$liblockfile"; then
14111 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14112 else
14113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14114 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14115 for as_dir in $as_dummy
14116 do
14117 IFS=$as_save_IFS
14118 test -z "$as_dir" && as_dir=.
14119 for ac_exec_ext in '' $ac_executable_extensions; do
14120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14121 ac_cv_prog_liblockfile="yes"
14122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14123 break 2
14124 fi
14125 done
14126 done
14127
14128 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14129 fi
14130 fi
14131 liblockfile=$ac_cv_prog_liblockfile
14132 if test -n "$liblockfile"; then
14133 echo "$as_me:$LINENO: result: $liblockfile" >&5
14134 echo "${ECHO_T}$liblockfile" >&6
14135 else
14136 echo "$as_me:$LINENO: result: no" >&5
14137 echo "${ECHO_T}no" >&6
14138 fi
14139
14140 if test $ac_cv_prog_liblockfile = yes; then
14141 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14142 This probably means that movemail could lose mail.
14143 There may be a \`development' package to install containing liblockfile." >&5
14144 echo "$as_me: error: Shared liblockfile found but can't link against it.
14145 This probably means that movemail could lose mail.
14146 There may be a \`development' package to install containing liblockfile." >&2;}
14147 { (exit 1); exit 1; }; }
14148 else :
14149 fi
14150 fi
14151
14152 for ac_func in touchlock
14153 do
14154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14155 echo "$as_me:$LINENO: checking for $ac_func" >&5
14156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14157 if eval "test \"\${$as_ac_var+set}\" = set"; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160 cat >conftest.$ac_ext <<_ACEOF
14161 /* confdefs.h. */
14162 _ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h. */
14166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14168 #define $ac_func innocuous_$ac_func
14169
14170 /* System header to define __stub macros and hopefully few prototypes,
14171 which can conflict with char $ac_func (); below.
14172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14173 <limits.h> exists even on freestanding compilers. */
14174
14175 #ifdef __STDC__
14176 # include <limits.h>
14177 #else
14178 # include <assert.h>
14179 #endif
14180
14181 #undef $ac_func
14182
14183 /* Override any gcc2 internal prototype to avoid an error. */
14184 #ifdef __cplusplus
14185 extern "C"
14186 {
14187 #endif
14188 /* We use char because int might match the return type of a gcc2
14189 builtin and then its argument prototype would still apply. */
14190 char $ac_func ();
14191 /* The GNU C library defines this for functions which it implements
14192 to always fail with ENOSYS. Some functions are actually named
14193 something starting with __ and the normal name is an alias. */
14194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14195 choke me
14196 #else
14197 char (*f) () = $ac_func;
14198 #endif
14199 #ifdef __cplusplus
14200 }
14201 #endif
14202
14203 int
14204 main ()
14205 {
14206 return f != $ac_func;
14207 ;
14208 return 0;
14209 }
14210 _ACEOF
14211 rm -f conftest.$ac_objext conftest$ac_exeext
14212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14213 (eval $ac_link) 2>conftest.er1
14214 ac_status=$?
14215 grep -v '^ *+' conftest.er1 >conftest.err
14216 rm -f conftest.er1
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -z "$ac_c_werror_flag"
14221 || test ! -s conftest.err'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; } &&
14227 { ac_try='test -s conftest$ac_exeext'
14228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229 (eval $ac_try) 2>&5
14230 ac_status=$?
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; }; then
14233 eval "$as_ac_var=yes"
14234 else
14235 echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.$ac_ext >&5
14237
14238 eval "$as_ac_var=no"
14239 fi
14240 rm -f conftest.err conftest.$ac_objext \
14241 conftest$ac_exeext conftest.$ac_ext
14242 fi
14243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14245 if test `eval echo '${'$as_ac_var'}'` = yes; then
14246 cat >>confdefs.h <<_ACEOF
14247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14248 _ACEOF
14249
14250 fi
14251 done
14252
14253
14254 for ac_header in maillock.h
14255 do
14256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14258 echo "$as_me:$LINENO: checking for $ac_header" >&5
14259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 fi
14263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14265 else
14266 # Is the header compilable?
14267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14269 cat >conftest.$ac_ext <<_ACEOF
14270 /* confdefs.h. */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275 $ac_includes_default
14276 #include <$ac_header>
14277 _ACEOF
14278 rm -f conftest.$ac_objext
14279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14280 (eval $ac_compile) 2>conftest.er1
14281 ac_status=$?
14282 grep -v '^ *+' conftest.er1 >conftest.err
14283 rm -f conftest.er1
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
14287 { ac_try='test -z "$ac_c_werror_flag"
14288 || test ! -s conftest.err'
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14291 ac_status=$?
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; } &&
14294 { ac_try='test -s conftest.$ac_objext'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14297 ac_status=$?
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
14300 ac_header_compiler=yes
14301 else
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14304
14305 ac_header_compiler=no
14306 fi
14307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14309 echo "${ECHO_T}$ac_header_compiler" >&6
14310
14311 # Is the header present?
14312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14314 cat >conftest.$ac_ext <<_ACEOF
14315 /* confdefs.h. */
14316 _ACEOF
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h. */
14320 #include <$ac_header>
14321 _ACEOF
14322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14324 ac_status=$?
14325 grep -v '^ *+' conftest.er1 >conftest.err
14326 rm -f conftest.er1
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } >/dev/null; then
14330 if test -s conftest.err; then
14331 ac_cpp_err=$ac_c_preproc_warn_flag
14332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14333 else
14334 ac_cpp_err=
14335 fi
14336 else
14337 ac_cpp_err=yes
14338 fi
14339 if test -z "$ac_cpp_err"; then
14340 ac_header_preproc=yes
14341 else
14342 echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14344
14345 ac_header_preproc=no
14346 fi
14347 rm -f conftest.err conftest.$ac_ext
14348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14349 echo "${ECHO_T}$ac_header_preproc" >&6
14350
14351 # So? What about this header?
14352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14353 yes:no: )
14354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14358 ac_header_preproc=yes
14359 ;;
14360 no:yes:* )
14361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14373 (
14374 cat <<\_ASBOX
14375 ## ------------------------------------------ ##
14376 ## Report this to the AC_PACKAGE_NAME lists. ##
14377 ## ------------------------------------------ ##
14378 _ASBOX
14379 ) |
14380 sed "s/^/$as_me: WARNING: /" >&2
14381 ;;
14382 esac
14383 echo "$as_me:$LINENO: checking for $ac_header" >&5
14384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14387 else
14388 eval "$as_ac_Header=\$ac_header_preproc"
14389 fi
14390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14392
14393 fi
14394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14395 cat >>confdefs.h <<_ACEOF
14396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14397 _ACEOF
14398
14399 fi
14400
14401 done
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473 for ac_func in gethostname getdomainname dup2 \
14474 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14475 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14476 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14477 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14478 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14479 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14480 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
14481 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14482 do
14483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14484 echo "$as_me:$LINENO: checking for $ac_func" >&5
14485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14486 if eval "test \"\${$as_ac_var+set}\" = set"; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14488 else
14489 cat >conftest.$ac_ext <<_ACEOF
14490 /* confdefs.h. */
14491 _ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14497 #define $ac_func innocuous_$ac_func
14498
14499 /* System header to define __stub macros and hopefully few prototypes,
14500 which can conflict with char $ac_func (); below.
14501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14502 <limits.h> exists even on freestanding compilers. */
14503
14504 #ifdef __STDC__
14505 # include <limits.h>
14506 #else
14507 # include <assert.h>
14508 #endif
14509
14510 #undef $ac_func
14511
14512 /* Override any gcc2 internal prototype to avoid an error. */
14513 #ifdef __cplusplus
14514 extern "C"
14515 {
14516 #endif
14517 /* We use char because int might match the return type of a gcc2
14518 builtin and then its argument prototype would still apply. */
14519 char $ac_func ();
14520 /* The GNU C library defines this for functions which it implements
14521 to always fail with ENOSYS. Some functions are actually named
14522 something starting with __ and the normal name is an alias. */
14523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14524 choke me
14525 #else
14526 char (*f) () = $ac_func;
14527 #endif
14528 #ifdef __cplusplus
14529 }
14530 #endif
14531
14532 int
14533 main ()
14534 {
14535 return f != $ac_func;
14536 ;
14537 return 0;
14538 }
14539 _ACEOF
14540 rm -f conftest.$ac_objext conftest$ac_exeext
14541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14542 (eval $ac_link) 2>conftest.er1
14543 ac_status=$?
14544 grep -v '^ *+' conftest.er1 >conftest.err
14545 rm -f conftest.er1
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
14549 { ac_try='test -z "$ac_c_werror_flag"
14550 || test ! -s conftest.err'
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; } &&
14556 { ac_try='test -s conftest$ac_exeext'
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14562 eval "$as_ac_var=yes"
14563 else
14564 echo "$as_me: failed program was:" >&5
14565 sed 's/^/| /' conftest.$ac_ext >&5
14566
14567 eval "$as_ac_var=no"
14568 fi
14569 rm -f conftest.err conftest.$ac_objext \
14570 conftest$ac_exeext conftest.$ac_ext
14571 fi
14572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14574 if test `eval echo '${'$as_ac_var'}'` = yes; then
14575 cat >>confdefs.h <<_ACEOF
14576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14577 _ACEOF
14578
14579 fi
14580 done
14581
14582
14583
14584 for ac_header in sys/un.h
14585 do
14586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14588 echo "$as_me:$LINENO: checking for $ac_header" >&5
14589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14592 fi
14593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14595 else
14596 # Is the header compilable?
14597 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14599 cat >conftest.$ac_ext <<_ACEOF
14600 /* confdefs.h. */
14601 _ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h. */
14605 $ac_includes_default
14606 #include <$ac_header>
14607 _ACEOF
14608 rm -f conftest.$ac_objext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14610 (eval $ac_compile) 2>conftest.er1
14611 ac_status=$?
14612 grep -v '^ *+' conftest.er1 >conftest.err
14613 rm -f conftest.er1
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } &&
14617 { ac_try='test -z "$ac_c_werror_flag"
14618 || test ! -s conftest.err'
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14621 ac_status=$?
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; } &&
14624 { ac_try='test -s conftest.$ac_objext'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14627 ac_status=$?
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; }; then
14630 ac_header_compiler=yes
14631 else
14632 echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14634
14635 ac_header_compiler=no
14636 fi
14637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14639 echo "${ECHO_T}$ac_header_compiler" >&6
14640
14641 # Is the header present?
14642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14644 cat >conftest.$ac_ext <<_ACEOF
14645 /* confdefs.h. */
14646 _ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14650 #include <$ac_header>
14651 _ACEOF
14652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14654 ac_status=$?
14655 grep -v '^ *+' conftest.er1 >conftest.err
14656 rm -f conftest.er1
14657 cat conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } >/dev/null; then
14660 if test -s conftest.err; then
14661 ac_cpp_err=$ac_c_preproc_warn_flag
14662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14663 else
14664 ac_cpp_err=
14665 fi
14666 else
14667 ac_cpp_err=yes
14668 fi
14669 if test -z "$ac_cpp_err"; then
14670 ac_header_preproc=yes
14671 else
14672 echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.$ac_ext >&5
14674
14675 ac_header_preproc=no
14676 fi
14677 rm -f conftest.err conftest.$ac_ext
14678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14679 echo "${ECHO_T}$ac_header_preproc" >&6
14680
14681 # So? What about this header?
14682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14683 yes:no: )
14684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14688 ac_header_preproc=yes
14689 ;;
14690 no:yes:* )
14691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14703 (
14704 cat <<\_ASBOX
14705 ## ------------------------------------------ ##
14706 ## Report this to the AC_PACKAGE_NAME lists. ##
14707 ## ------------------------------------------ ##
14708 _ASBOX
14709 ) |
14710 sed "s/^/$as_me: WARNING: /" >&2
14711 ;;
14712 esac
14713 echo "$as_me:$LINENO: checking for $ac_header" >&5
14714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718 eval "$as_ac_Header=\$ac_header_preproc"
14719 fi
14720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14722
14723 fi
14724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14725 cat >>confdefs.h <<_ACEOF
14726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14727 _ACEOF
14728
14729 fi
14730
14731 done
14732
14733
14734
14735
14736
14737 for ac_header in stdlib.h sys/time.h unistd.h
14738 do
14739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14741 echo "$as_me:$LINENO: checking for $ac_header" >&5
14742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14744 echo $ECHO_N "(cached) $ECHO_C" >&6
14745 fi
14746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14748 else
14749 # Is the header compilable?
14750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14752 cat >conftest.$ac_ext <<_ACEOF
14753 /* confdefs.h. */
14754 _ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14758 $ac_includes_default
14759 #include <$ac_header>
14760 _ACEOF
14761 rm -f conftest.$ac_objext
14762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14763 (eval $ac_compile) 2>conftest.er1
14764 ac_status=$?
14765 grep -v '^ *+' conftest.er1 >conftest.err
14766 rm -f conftest.er1
14767 cat conftest.err >&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } &&
14770 { ac_try='test -z "$ac_c_werror_flag"
14771 || test ! -s conftest.err'
14772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14773 (eval $ac_try) 2>&5
14774 ac_status=$?
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); }; } &&
14777 { ac_try='test -s conftest.$ac_objext'
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14780 ac_status=$?
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; }; then
14783 ac_header_compiler=yes
14784 else
14785 echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14787
14788 ac_header_compiler=no
14789 fi
14790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14792 echo "${ECHO_T}$ac_header_compiler" >&6
14793
14794 # Is the header present?
14795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14797 cat >conftest.$ac_ext <<_ACEOF
14798 /* confdefs.h. */
14799 _ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14803 #include <$ac_header>
14804 _ACEOF
14805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14807 ac_status=$?
14808 grep -v '^ *+' conftest.er1 >conftest.err
14809 rm -f conftest.er1
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } >/dev/null; then
14813 if test -s conftest.err; then
14814 ac_cpp_err=$ac_c_preproc_warn_flag
14815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14816 else
14817 ac_cpp_err=
14818 fi
14819 else
14820 ac_cpp_err=yes
14821 fi
14822 if test -z "$ac_cpp_err"; then
14823 ac_header_preproc=yes
14824 else
14825 echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14827
14828 ac_header_preproc=no
14829 fi
14830 rm -f conftest.err conftest.$ac_ext
14831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14832 echo "${ECHO_T}$ac_header_preproc" >&6
14833
14834 # So? What about this header?
14835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14836 yes:no: )
14837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14841 ac_header_preproc=yes
14842 ;;
14843 no:yes:* )
14844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14856 (
14857 cat <<\_ASBOX
14858 ## ------------------------------------------ ##
14859 ## Report this to the AC_PACKAGE_NAME lists. ##
14860 ## ------------------------------------------ ##
14861 _ASBOX
14862 ) |
14863 sed "s/^/$as_me: WARNING: /" >&2
14864 ;;
14865 esac
14866 echo "$as_me:$LINENO: checking for $ac_header" >&5
14867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14870 else
14871 eval "$as_ac_Header=\$ac_header_preproc"
14872 fi
14873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14875
14876 fi
14877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14878 cat >>confdefs.h <<_ACEOF
14879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14880 _ACEOF
14881
14882 fi
14883
14884 done
14885
14886
14887 for ac_func in alarm
14888 do
14889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14890 echo "$as_me:$LINENO: checking for $ac_func" >&5
14891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14892 if eval "test \"\${$as_ac_var+set}\" = set"; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 else
14895 cat >conftest.$ac_ext <<_ACEOF
14896 /* confdefs.h. */
14897 _ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14903 #define $ac_func innocuous_$ac_func
14904
14905 /* System header to define __stub macros and hopefully few prototypes,
14906 which can conflict with char $ac_func (); below.
14907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14908 <limits.h> exists even on freestanding compilers. */
14909
14910 #ifdef __STDC__
14911 # include <limits.h>
14912 #else
14913 # include <assert.h>
14914 #endif
14915
14916 #undef $ac_func
14917
14918 /* Override any gcc2 internal prototype to avoid an error. */
14919 #ifdef __cplusplus
14920 extern "C"
14921 {
14922 #endif
14923 /* We use char because int might match the return type of a gcc2
14924 builtin and then its argument prototype would still apply. */
14925 char $ac_func ();
14926 /* The GNU C library defines this for functions which it implements
14927 to always fail with ENOSYS. Some functions are actually named
14928 something starting with __ and the normal name is an alias. */
14929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14930 choke me
14931 #else
14932 char (*f) () = $ac_func;
14933 #endif
14934 #ifdef __cplusplus
14935 }
14936 #endif
14937
14938 int
14939 main ()
14940 {
14941 return f != $ac_func;
14942 ;
14943 return 0;
14944 }
14945 _ACEOF
14946 rm -f conftest.$ac_objext conftest$ac_exeext
14947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14948 (eval $ac_link) 2>conftest.er1
14949 ac_status=$?
14950 grep -v '^ *+' conftest.er1 >conftest.err
14951 rm -f conftest.er1
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } &&
14955 { ac_try='test -z "$ac_c_werror_flag"
14956 || test ! -s conftest.err'
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14959 ac_status=$?
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; } &&
14962 { ac_try='test -s conftest$ac_exeext'
14963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964 (eval $ac_try) 2>&5
14965 ac_status=$?
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; }; then
14968 eval "$as_ac_var=yes"
14969 else
14970 echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14972
14973 eval "$as_ac_var=no"
14974 fi
14975 rm -f conftest.err conftest.$ac_objext \
14976 conftest$ac_exeext conftest.$ac_ext
14977 fi
14978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14980 if test `eval echo '${'$as_ac_var'}'` = yes; then
14981 cat >>confdefs.h <<_ACEOF
14982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14983 _ACEOF
14984
14985 fi
14986 done
14987
14988 echo "$as_me:$LINENO: checking for working mktime" >&5
14989 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14990 if test "${ac_cv_func_working_mktime+set}" = set; then
14991 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 else
14993 if test "$cross_compiling" = yes; then
14994 ac_cv_func_working_mktime=no
14995 else
14996 cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h. */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 /* Test program from Paul Eggert and Tony Leneis. */
15003 #if TIME_WITH_SYS_TIME
15004 # include <sys/time.h>
15005 # include <time.h>
15006 #else
15007 # if HAVE_SYS_TIME_H
15008 # include <sys/time.h>
15009 # else
15010 # include <time.h>
15011 # endif
15012 #endif
15013
15014 #if HAVE_STDLIB_H
15015 # include <stdlib.h>
15016 #endif
15017
15018 #if HAVE_UNISTD_H
15019 # include <unistd.h>
15020 #endif
15021
15022 #if !HAVE_ALARM
15023 # define alarm(X) /* empty */
15024 #endif
15025
15026 /* Work around redefinition to rpl_putenv by other config tests. */
15027 #undef putenv
15028
15029 static time_t time_t_max;
15030 static time_t time_t_min;
15031
15032 /* Values we'll use to set the TZ environment variable. */
15033 static char *tz_strings[] = {
15034 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15035 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15036 };
15037 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15038
15039 /* Fail if mktime fails to convert a date in the spring-forward gap.
15040 Based on a problem report from Andreas Jaeger. */
15041 static void
15042 spring_forward_gap ()
15043 {
15044 /* glibc (up to about 1998-10-07) failed this test. */
15045 struct tm tm;
15046
15047 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15048 instead of "TZ=America/Vancouver" in order to detect the bug even
15049 on systems that don't support the Olson extension, or don't have the
15050 full zoneinfo tables installed. */
15051 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15052
15053 tm.tm_year = 98;
15054 tm.tm_mon = 3;
15055 tm.tm_mday = 5;
15056 tm.tm_hour = 2;
15057 tm.tm_min = 0;
15058 tm.tm_sec = 0;
15059 tm.tm_isdst = -1;
15060 if (mktime (&tm) == (time_t)-1)
15061 exit (1);
15062 }
15063
15064 static void
15065 mktime_test1 (now)
15066 time_t now;
15067 {
15068 struct tm *lt;
15069 if ((lt = localtime (&now)) && mktime (lt) != now)
15070 exit (1);
15071 }
15072
15073 static void
15074 mktime_test (now)
15075 time_t now;
15076 {
15077 mktime_test1 (now);
15078 mktime_test1 ((time_t) (time_t_max - now));
15079 mktime_test1 ((time_t) (time_t_min + now));
15080 }
15081
15082 static void
15083 irix_6_4_bug ()
15084 {
15085 /* Based on code from Ariel Faigon. */
15086 struct tm tm;
15087 tm.tm_year = 96;
15088 tm.tm_mon = 3;
15089 tm.tm_mday = 0;
15090 tm.tm_hour = 0;
15091 tm.tm_min = 0;
15092 tm.tm_sec = 0;
15093 tm.tm_isdst = -1;
15094 mktime (&tm);
15095 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15096 exit (1);
15097 }
15098
15099 static void
15100 bigtime_test (j)
15101 int j;
15102 {
15103 struct tm tm;
15104 time_t now;
15105 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15106 now = mktime (&tm);
15107 if (now != (time_t) -1)
15108 {
15109 struct tm *lt = localtime (&now);
15110 if (! (lt
15111 && lt->tm_year == tm.tm_year
15112 && lt->tm_mon == tm.tm_mon
15113 && lt->tm_mday == tm.tm_mday
15114 && lt->tm_hour == tm.tm_hour
15115 && lt->tm_min == tm.tm_min
15116 && lt->tm_sec == tm.tm_sec
15117 && lt->tm_yday == tm.tm_yday
15118 && lt->tm_wday == tm.tm_wday
15119 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15120 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15121 exit (1);
15122 }
15123 }
15124
15125 int
15126 main ()
15127 {
15128 time_t t, delta;
15129 int i, j;
15130
15131 /* This test makes some buggy mktime implementations loop.
15132 Give up after 60 seconds; a mktime slower than that
15133 isn't worth using anyway. */
15134 alarm (60);
15135
15136 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15137 continue;
15138 time_t_max--;
15139 if ((time_t) -1 < 0)
15140 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15141 continue;
15142 delta = time_t_max / 997; /* a suitable prime number */
15143 for (i = 0; i < N_STRINGS; i++)
15144 {
15145 if (tz_strings[i])
15146 putenv (tz_strings[i]);
15147
15148 for (t = 0; t <= time_t_max - delta; t += delta)
15149 mktime_test (t);
15150 mktime_test ((time_t) 1);
15151 mktime_test ((time_t) (60 * 60));
15152 mktime_test ((time_t) (60 * 60 * 24));
15153
15154 for (j = 1; 0 < j; j *= 2)
15155 bigtime_test (j);
15156 bigtime_test (j - 1);
15157 }
15158 irix_6_4_bug ();
15159 spring_forward_gap ();
15160 exit (0);
15161 }
15162 _ACEOF
15163 rm -f conftest$ac_exeext
15164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15165 (eval $ac_link) 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15171 ac_status=$?
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15174 ac_cv_func_working_mktime=yes
15175 else
15176 echo "$as_me: program exited with status $ac_status" >&5
15177 echo "$as_me: failed program was:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15179
15180 ( exit $ac_status )
15181 ac_cv_func_working_mktime=no
15182 fi
15183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15184 fi
15185 fi
15186 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15187 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15188 if test $ac_cv_func_working_mktime = no; then
15189 case $LIBOBJS in
15190 "mktime.$ac_objext" | \
15191 *" mktime.$ac_objext" | \
15192 "mktime.$ac_objext "* | \
15193 *" mktime.$ac_objext "* ) ;;
15194 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
15195 esac
15196
15197 fi
15198
15199 if test "$ac_cv_func_working_mktime" = no; then
15200
15201 cat >>confdefs.h <<\_ACEOF
15202 #define BROKEN_MKTIME 1
15203 _ACEOF
15204
15205 fi
15206
15207 ac_have_func=no # yes means we've found a way to get the load average.
15208
15209 # Make sure getloadavg.c is where it belongs, at configure-time.
15210 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15211 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15212 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15213 { (exit 1); exit 1; }; }
15214
15215 ac_save_LIBS=$LIBS
15216
15217 # Check for getloadavg, but be sure not to touch the cache variable.
15218 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15219 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15220 if test "${ac_cv_func_getloadavg+set}" = set; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15222 else
15223 cat >conftest.$ac_ext <<_ACEOF
15224 /* confdefs.h. */
15225 _ACEOF
15226 cat confdefs.h >>conftest.$ac_ext
15227 cat >>conftest.$ac_ext <<_ACEOF
15228 /* end confdefs.h. */
15229 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15231 #define getloadavg innocuous_getloadavg
15232
15233 /* System header to define __stub macros and hopefully few prototypes,
15234 which can conflict with char getloadavg (); below.
15235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15236 <limits.h> exists even on freestanding compilers. */
15237
15238 #ifdef __STDC__
15239 # include <limits.h>
15240 #else
15241 # include <assert.h>
15242 #endif
15243
15244 #undef getloadavg
15245
15246 /* Override any gcc2 internal prototype to avoid an error. */
15247 #ifdef __cplusplus
15248 extern "C"
15249 {
15250 #endif
15251 /* We use char because int might match the return type of a gcc2
15252 builtin and then its argument prototype would still apply. */
15253 char getloadavg ();
15254 /* The GNU C library defines this for functions which it implements
15255 to always fail with ENOSYS. Some functions are actually named
15256 something starting with __ and the normal name is an alias. */
15257 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15258 choke me
15259 #else
15260 char (*f) () = getloadavg;
15261 #endif
15262 #ifdef __cplusplus
15263 }
15264 #endif
15265
15266 int
15267 main ()
15268 {
15269 return f != getloadavg;
15270 ;
15271 return 0;
15272 }
15273 _ACEOF
15274 rm -f conftest.$ac_objext conftest$ac_exeext
15275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15276 (eval $ac_link) 2>conftest.er1
15277 ac_status=$?
15278 grep -v '^ *+' conftest.er1 >conftest.err
15279 rm -f conftest.er1
15280 cat conftest.err >&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); } &&
15283 { ac_try='test -z "$ac_c_werror_flag"
15284 || test ! -s conftest.err'
15285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15286 (eval $ac_try) 2>&5
15287 ac_status=$?
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); }; } &&
15290 { ac_try='test -s conftest$ac_exeext'
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15293 ac_status=$?
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; }; then
15296 ac_cv_func_getloadavg=yes
15297 else
15298 echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.$ac_ext >&5
15300
15301 ac_cv_func_getloadavg=no
15302 fi
15303 rm -f conftest.err conftest.$ac_objext \
15304 conftest$ac_exeext conftest.$ac_ext
15305 fi
15306 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15307 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15308 if test $ac_cv_func_getloadavg = yes; then
15309 exit 0
15310 else
15311 exit 1
15312 fi
15313 ) && ac_have_func=yes
15314
15315 # On HPUX9, an unprivileged user can get load averages through this function.
15316
15317 for ac_func in pstat_getdynamic
15318 do
15319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15320 echo "$as_me:$LINENO: checking for $ac_func" >&5
15321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15322 if eval "test \"\${$as_ac_var+set}\" = set"; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325 cat >conftest.$ac_ext <<_ACEOF
15326 /* confdefs.h. */
15327 _ACEOF
15328 cat confdefs.h >>conftest.$ac_ext
15329 cat >>conftest.$ac_ext <<_ACEOF
15330 /* end confdefs.h. */
15331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15333 #define $ac_func innocuous_$ac_func
15334
15335 /* System header to define __stub macros and hopefully few prototypes,
15336 which can conflict with char $ac_func (); below.
15337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15338 <limits.h> exists even on freestanding compilers. */
15339
15340 #ifdef __STDC__
15341 # include <limits.h>
15342 #else
15343 # include <assert.h>
15344 #endif
15345
15346 #undef $ac_func
15347
15348 /* Override any gcc2 internal prototype to avoid an error. */
15349 #ifdef __cplusplus
15350 extern "C"
15351 {
15352 #endif
15353 /* We use char because int might match the return type of a gcc2
15354 builtin and then its argument prototype would still apply. */
15355 char $ac_func ();
15356 /* The GNU C library defines this for functions which it implements
15357 to always fail with ENOSYS. Some functions are actually named
15358 something starting with __ and the normal name is an alias. */
15359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15360 choke me
15361 #else
15362 char (*f) () = $ac_func;
15363 #endif
15364 #ifdef __cplusplus
15365 }
15366 #endif
15367
15368 int
15369 main ()
15370 {
15371 return f != $ac_func;
15372 ;
15373 return 0;
15374 }
15375 _ACEOF
15376 rm -f conftest.$ac_objext conftest$ac_exeext
15377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15378 (eval $ac_link) 2>conftest.er1
15379 ac_status=$?
15380 grep -v '^ *+' conftest.er1 >conftest.err
15381 rm -f conftest.er1
15382 cat conftest.err >&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } &&
15385 { ac_try='test -z "$ac_c_werror_flag"
15386 || test ! -s conftest.err'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
15392 { ac_try='test -s conftest$ac_exeext'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 eval "$as_ac_var=yes"
15399 else
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15402
15403 eval "$as_ac_var=no"
15404 fi
15405 rm -f conftest.err conftest.$ac_objext \
15406 conftest$ac_exeext conftest.$ac_ext
15407 fi
15408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15410 if test `eval echo '${'$as_ac_var'}'` = yes; then
15411 cat >>confdefs.h <<_ACEOF
15412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15413 _ACEOF
15414
15415 fi
15416 done
15417
15418
15419 # Solaris has libkstat which does not require root.
15420
15421 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15422 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
15423 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15425 else
15426 ac_check_lib_save_LIBS=$LIBS
15427 LIBS="-lkstat $LIBS"
15428 cat >conftest.$ac_ext <<_ACEOF
15429 /* confdefs.h. */
15430 _ACEOF
15431 cat confdefs.h >>conftest.$ac_ext
15432 cat >>conftest.$ac_ext <<_ACEOF
15433 /* end confdefs.h. */
15434
15435 /* Override any gcc2 internal prototype to avoid an error. */
15436 #ifdef __cplusplus
15437 extern "C"
15438 #endif
15439 /* We use char because int might match the return type of a gcc2
15440 builtin and then its argument prototype would still apply. */
15441 char kstat_open ();
15442 int
15443 main ()
15444 {
15445 kstat_open ();
15446 ;
15447 return 0;
15448 }
15449 _ACEOF
15450 rm -f conftest.$ac_objext conftest$ac_exeext
15451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15452 (eval $ac_link) 2>conftest.er1
15453 ac_status=$?
15454 grep -v '^ *+' conftest.er1 >conftest.err
15455 rm -f conftest.er1
15456 cat conftest.err >&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } &&
15459 { ac_try='test -z "$ac_c_werror_flag"
15460 || test ! -s conftest.err'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; } &&
15466 { ac_try='test -s conftest$ac_exeext'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15472 ac_cv_lib_kstat_kstat_open=yes
15473 else
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15476
15477 ac_cv_lib_kstat_kstat_open=no
15478 fi
15479 rm -f conftest.err conftest.$ac_objext \
15480 conftest$ac_exeext conftest.$ac_ext
15481 LIBS=$ac_check_lib_save_LIBS
15482 fi
15483 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15484 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
15485 if test $ac_cv_lib_kstat_kstat_open = yes; then
15486 cat >>confdefs.h <<_ACEOF
15487 #define HAVE_LIBKSTAT 1
15488 _ACEOF
15489
15490 LIBS="-lkstat $LIBS"
15491
15492 fi
15493
15494 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15495
15496 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15497 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15498 # to get the right answer into the cache.
15499 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15500 if test $ac_have_func = no; then
15501 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15502 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15503 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15504 echo $ECHO_N "(cached) $ECHO_C" >&6
15505 else
15506 ac_check_lib_save_LIBS=$LIBS
15507 LIBS="-lelf $LIBS"
15508 cat >conftest.$ac_ext <<_ACEOF
15509 /* confdefs.h. */
15510 _ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15514
15515 /* Override any gcc2 internal prototype to avoid an error. */
15516 #ifdef __cplusplus
15517 extern "C"
15518 #endif
15519 /* We use char because int might match the return type of a gcc2
15520 builtin and then its argument prototype would still apply. */
15521 char elf_begin ();
15522 int
15523 main ()
15524 {
15525 elf_begin ();
15526 ;
15527 return 0;
15528 }
15529 _ACEOF
15530 rm -f conftest.$ac_objext conftest$ac_exeext
15531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15532 (eval $ac_link) 2>conftest.er1
15533 ac_status=$?
15534 grep -v '^ *+' conftest.er1 >conftest.err
15535 rm -f conftest.er1
15536 cat conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } &&
15539 { ac_try='test -z "$ac_c_werror_flag"
15540 || test ! -s conftest.err'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; } &&
15546 { ac_try='test -s conftest$ac_exeext'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; }; then
15552 ac_cv_lib_elf_elf_begin=yes
15553 else
15554 echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15556
15557 ac_cv_lib_elf_elf_begin=no
15558 fi
15559 rm -f conftest.err conftest.$ac_objext \
15560 conftest$ac_exeext conftest.$ac_ext
15561 LIBS=$ac_check_lib_save_LIBS
15562 fi
15563 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15564 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15565 if test $ac_cv_lib_elf_elf_begin = yes; then
15566 LIBS="-lelf $LIBS"
15567 fi
15568
15569 fi
15570 if test $ac_have_func = no; then
15571 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15572 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15573 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15574 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 else
15576 ac_check_lib_save_LIBS=$LIBS
15577 LIBS="-lkvm $LIBS"
15578 cat >conftest.$ac_ext <<_ACEOF
15579 /* confdefs.h. */
15580 _ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h. */
15584
15585 /* Override any gcc2 internal prototype to avoid an error. */
15586 #ifdef __cplusplus
15587 extern "C"
15588 #endif
15589 /* We use char because int might match the return type of a gcc2
15590 builtin and then its argument prototype would still apply. */
15591 char kvm_open ();
15592 int
15593 main ()
15594 {
15595 kvm_open ();
15596 ;
15597 return 0;
15598 }
15599 _ACEOF
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15602 (eval $ac_link) 2>conftest.er1
15603 ac_status=$?
15604 grep -v '^ *+' conftest.er1 >conftest.err
15605 rm -f conftest.er1
15606 cat conftest.err >&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); } &&
15609 { ac_try='test -z "$ac_c_werror_flag"
15610 || test ! -s conftest.err'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15613 ac_status=$?
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; } &&
15616 { ac_try='test -s conftest$ac_exeext'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15619 ac_status=$?
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15622 ac_cv_lib_kvm_kvm_open=yes
15623 else
15624 echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15626
15627 ac_cv_lib_kvm_kvm_open=no
15628 fi
15629 rm -f conftest.err conftest.$ac_objext \
15630 conftest$ac_exeext conftest.$ac_ext
15631 LIBS=$ac_check_lib_save_LIBS
15632 fi
15633 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15634 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15635 if test $ac_cv_lib_kvm_kvm_open = yes; then
15636 LIBS="-lkvm $LIBS"
15637 fi
15638
15639 # Check for the 4.4BSD definition of getloadavg.
15640 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15641 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15642 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15643 echo $ECHO_N "(cached) $ECHO_C" >&6
15644 else
15645 ac_check_lib_save_LIBS=$LIBS
15646 LIBS="-lutil $LIBS"
15647 cat >conftest.$ac_ext <<_ACEOF
15648 /* confdefs.h. */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653
15654 /* Override any gcc2 internal prototype to avoid an error. */
15655 #ifdef __cplusplus
15656 extern "C"
15657 #endif
15658 /* We use char because int might match the return type of a gcc2
15659 builtin and then its argument prototype would still apply. */
15660 char getloadavg ();
15661 int
15662 main ()
15663 {
15664 getloadavg ();
15665 ;
15666 return 0;
15667 }
15668 _ACEOF
15669 rm -f conftest.$ac_objext conftest$ac_exeext
15670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15671 (eval $ac_link) 2>conftest.er1
15672 ac_status=$?
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
15678 { ac_try='test -z "$ac_c_werror_flag"
15679 || test ! -s conftest.err'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; } &&
15685 { ac_try='test -s conftest$ac_exeext'
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; }; then
15691 ac_cv_lib_util_getloadavg=yes
15692 else
15693 echo "$as_me: failed program was:" >&5
15694 sed 's/^/| /' conftest.$ac_ext >&5
15695
15696 ac_cv_lib_util_getloadavg=no
15697 fi
15698 rm -f conftest.err conftest.$ac_objext \
15699 conftest$ac_exeext conftest.$ac_ext
15700 LIBS=$ac_check_lib_save_LIBS
15701 fi
15702 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15703 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15704 if test $ac_cv_lib_util_getloadavg = yes; then
15705 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15706 fi
15707
15708 fi
15709
15710 if test $ac_have_func = no; then
15711 # There is a commonly available library for RS/6000 AIX.
15712 # Since it is not a standard part of AIX, it might be installed locally.
15713 ac_getloadavg_LIBS=$LIBS
15714 LIBS="-L/usr/local/lib $LIBS"
15715 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15716 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15717 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15718 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 else
15720 ac_check_lib_save_LIBS=$LIBS
15721 LIBS="-lgetloadavg $LIBS"
15722 cat >conftest.$ac_ext <<_ACEOF
15723 /* confdefs.h. */
15724 _ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h. */
15728
15729 /* Override any gcc2 internal prototype to avoid an error. */
15730 #ifdef __cplusplus
15731 extern "C"
15732 #endif
15733 /* We use char because int might match the return type of a gcc2
15734 builtin and then its argument prototype would still apply. */
15735 char getloadavg ();
15736 int
15737 main ()
15738 {
15739 getloadavg ();
15740 ;
15741 return 0;
15742 }
15743 _ACEOF
15744 rm -f conftest.$ac_objext conftest$ac_exeext
15745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15746 (eval $ac_link) 2>conftest.er1
15747 ac_status=$?
15748 grep -v '^ *+' conftest.er1 >conftest.err
15749 rm -f conftest.er1
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } &&
15753 { ac_try='test -z "$ac_c_werror_flag"
15754 || test ! -s conftest.err'
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15757 ac_status=$?
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; } &&
15760 { ac_try='test -s conftest$ac_exeext'
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15763 ac_status=$?
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; }; then
15766 ac_cv_lib_getloadavg_getloadavg=yes
15767 else
15768 echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15770
15771 ac_cv_lib_getloadavg_getloadavg=no
15772 fi
15773 rm -f conftest.err conftest.$ac_objext \
15774 conftest$ac_exeext conftest.$ac_ext
15775 LIBS=$ac_check_lib_save_LIBS
15776 fi
15777 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15778 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15779 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15780 LIBS="-lgetloadavg $LIBS"
15781 else
15782 LIBS=$ac_getloadavg_LIBS
15783 fi
15784
15785 fi
15786
15787 # Make sure it is really in the library, if we think we found it,
15788 # otherwise set up the replacement function.
15789
15790 for ac_func in getloadavg
15791 do
15792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15793 echo "$as_me:$LINENO: checking for $ac_func" >&5
15794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15795 if eval "test \"\${$as_ac_var+set}\" = set"; then
15796 echo $ECHO_N "(cached) $ECHO_C" >&6
15797 else
15798 cat >conftest.$ac_ext <<_ACEOF
15799 /* confdefs.h. */
15800 _ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15806 #define $ac_func innocuous_$ac_func
15807
15808 /* System header to define __stub macros and hopefully few prototypes,
15809 which can conflict with char $ac_func (); below.
15810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15811 <limits.h> exists even on freestanding compilers. */
15812
15813 #ifdef __STDC__
15814 # include <limits.h>
15815 #else
15816 # include <assert.h>
15817 #endif
15818
15819 #undef $ac_func
15820
15821 /* Override any gcc2 internal prototype to avoid an error. */
15822 #ifdef __cplusplus
15823 extern "C"
15824 {
15825 #endif
15826 /* We use char because int might match the return type of a gcc2
15827 builtin and then its argument prototype would still apply. */
15828 char $ac_func ();
15829 /* The GNU C library defines this for functions which it implements
15830 to always fail with ENOSYS. Some functions are actually named
15831 something starting with __ and the normal name is an alias. */
15832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15833 choke me
15834 #else
15835 char (*f) () = $ac_func;
15836 #endif
15837 #ifdef __cplusplus
15838 }
15839 #endif
15840
15841 int
15842 main ()
15843 {
15844 return f != $ac_func;
15845 ;
15846 return 0;
15847 }
15848 _ACEOF
15849 rm -f conftest.$ac_objext conftest$ac_exeext
15850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15851 (eval $ac_link) 2>conftest.er1
15852 ac_status=$?
15853 grep -v '^ *+' conftest.er1 >conftest.err
15854 rm -f conftest.er1
15855 cat conftest.err >&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); } &&
15858 { ac_try='test -z "$ac_c_werror_flag"
15859 || test ! -s conftest.err'
15860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861 (eval $ac_try) 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; } &&
15865 { ac_try='test -s conftest$ac_exeext'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15868 ac_status=$?
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; }; then
15871 eval "$as_ac_var=yes"
15872 else
15873 echo "$as_me: failed program was:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15875
15876 eval "$as_ac_var=no"
15877 fi
15878 rm -f conftest.err conftest.$ac_objext \
15879 conftest$ac_exeext conftest.$ac_ext
15880 fi
15881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15883 if test `eval echo '${'$as_ac_var'}'` = yes; then
15884 cat >>confdefs.h <<_ACEOF
15885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15886 _ACEOF
15887
15888 else
15889 case $LIBOBJS in
15890 "getloadavg.$ac_objext" | \
15891 *" getloadavg.$ac_objext" | \
15892 "getloadavg.$ac_objext "* | \
15893 *" getloadavg.$ac_objext "* ) ;;
15894 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15895 esac
15896
15897
15898 cat >>confdefs.h <<\_ACEOF
15899 #define C_GETLOADAVG 1
15900 _ACEOF
15901
15902 # Figure out what our getloadavg.c needs.
15903 ac_have_func=no
15904 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15905 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15906 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15907 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15908 echo $ECHO_N "(cached) $ECHO_C" >&6
15909 fi
15910 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15911 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15912 else
15913 # Is the header compilable?
15914 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15915 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15916 cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h. */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 $ac_includes_default
15923 #include <sys/dg_sys_info.h>
15924 _ACEOF
15925 rm -f conftest.$ac_objext
15926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15927 (eval $ac_compile) 2>conftest.er1
15928 ac_status=$?
15929 grep -v '^ *+' conftest.er1 >conftest.err
15930 rm -f conftest.er1
15931 cat conftest.err >&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
15934 { ac_try='test -z "$ac_c_werror_flag"
15935 || test ! -s conftest.err'
15936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15937 (eval $ac_try) 2>&5
15938 ac_status=$?
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); }; } &&
15941 { ac_try='test -s conftest.$ac_objext'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15944 ac_status=$?
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; }; then
15947 ac_header_compiler=yes
15948 else
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15951
15952 ac_header_compiler=no
15953 fi
15954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15956 echo "${ECHO_T}$ac_header_compiler" >&6
15957
15958 # Is the header present?
15959 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15960 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15961 cat >conftest.$ac_ext <<_ACEOF
15962 /* confdefs.h. */
15963 _ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h. */
15967 #include <sys/dg_sys_info.h>
15968 _ACEOF
15969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15971 ac_status=$?
15972 grep -v '^ *+' conftest.er1 >conftest.err
15973 rm -f conftest.er1
15974 cat conftest.err >&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } >/dev/null; then
15977 if test -s conftest.err; then
15978 ac_cpp_err=$ac_c_preproc_warn_flag
15979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15980 else
15981 ac_cpp_err=
15982 fi
15983 else
15984 ac_cpp_err=yes
15985 fi
15986 if test -z "$ac_cpp_err"; then
15987 ac_header_preproc=yes
15988 else
15989 echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15991
15992 ac_header_preproc=no
15993 fi
15994 rm -f conftest.err conftest.$ac_ext
15995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15996 echo "${ECHO_T}$ac_header_preproc" >&6
15997
15998 # So? What about this header?
15999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16000 yes:no: )
16001 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16002 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16004 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16005 ac_header_preproc=yes
16006 ;;
16007 no:yes:* )
16008 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16009 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16010 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16011 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16012 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16013 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16014 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16015 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16016 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16017 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16018 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16019 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16020 (
16021 cat <<\_ASBOX
16022 ## ------------------------------------------ ##
16023 ## Report this to the AC_PACKAGE_NAME lists. ##
16024 ## ------------------------------------------ ##
16025 _ASBOX
16026 ) |
16027 sed "s/^/$as_me: WARNING: /" >&2
16028 ;;
16029 esac
16030 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16031 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16032 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16033 echo $ECHO_N "(cached) $ECHO_C" >&6
16034 else
16035 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16036 fi
16037 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16038 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16039
16040 fi
16041 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16042 ac_have_func=yes
16043
16044 cat >>confdefs.h <<\_ACEOF
16045 #define DGUX 1
16046 _ACEOF
16047
16048
16049 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16050 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16051 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 else
16054 ac_check_lib_save_LIBS=$LIBS
16055 LIBS="-ldgc $LIBS"
16056 cat >conftest.$ac_ext <<_ACEOF
16057 /* confdefs.h. */
16058 _ACEOF
16059 cat confdefs.h >>conftest.$ac_ext
16060 cat >>conftest.$ac_ext <<_ACEOF
16061 /* end confdefs.h. */
16062
16063 /* Override any gcc2 internal prototype to avoid an error. */
16064 #ifdef __cplusplus
16065 extern "C"
16066 #endif
16067 /* We use char because int might match the return type of a gcc2
16068 builtin and then its argument prototype would still apply. */
16069 char dg_sys_info ();
16070 int
16071 main ()
16072 {
16073 dg_sys_info ();
16074 ;
16075 return 0;
16076 }
16077 _ACEOF
16078 rm -f conftest.$ac_objext conftest$ac_exeext
16079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16080 (eval $ac_link) 2>conftest.er1
16081 ac_status=$?
16082 grep -v '^ *+' conftest.er1 >conftest.err
16083 rm -f conftest.er1
16084 cat conftest.err >&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } &&
16087 { ac_try='test -z "$ac_c_werror_flag"
16088 || test ! -s conftest.err'
16089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16090 (eval $ac_try) 2>&5
16091 ac_status=$?
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); }; } &&
16094 { ac_try='test -s conftest$ac_exeext'
16095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096 (eval $ac_try) 2>&5
16097 ac_status=$?
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; }; then
16100 ac_cv_lib_dgc_dg_sys_info=yes
16101 else
16102 echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16104
16105 ac_cv_lib_dgc_dg_sys_info=no
16106 fi
16107 rm -f conftest.err conftest.$ac_objext \
16108 conftest$ac_exeext conftest.$ac_ext
16109 LIBS=$ac_check_lib_save_LIBS
16110 fi
16111 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16112 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16113 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16114 cat >>confdefs.h <<_ACEOF
16115 #define HAVE_LIBDGC 1
16116 _ACEOF
16117
16118 LIBS="-ldgc $LIBS"
16119
16120 fi
16121
16122 fi
16123
16124
16125
16126 if test "${ac_cv_header_locale_h+set}" = set; then
16127 echo "$as_me:$LINENO: checking for locale.h" >&5
16128 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16129 if test "${ac_cv_header_locale_h+set}" = set; then
16130 echo $ECHO_N "(cached) $ECHO_C" >&6
16131 fi
16132 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16133 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16134 else
16135 # Is the header compilable?
16136 echo "$as_me:$LINENO: checking locale.h usability" >&5
16137 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16138 cat >conftest.$ac_ext <<_ACEOF
16139 /* confdefs.h. */
16140 _ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h. */
16144 $ac_includes_default
16145 #include <locale.h>
16146 _ACEOF
16147 rm -f conftest.$ac_objext
16148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16149 (eval $ac_compile) 2>conftest.er1
16150 ac_status=$?
16151 grep -v '^ *+' conftest.er1 >conftest.err
16152 rm -f conftest.er1
16153 cat conftest.err >&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } &&
16156 { ac_try='test -z "$ac_c_werror_flag"
16157 || test ! -s conftest.err'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; } &&
16163 { ac_try='test -s conftest.$ac_objext'
16164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165 (eval $ac_try) 2>&5
16166 ac_status=$?
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; }; then
16169 ac_header_compiler=yes
16170 else
16171 echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.$ac_ext >&5
16173
16174 ac_header_compiler=no
16175 fi
16176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16178 echo "${ECHO_T}$ac_header_compiler" >&6
16179
16180 # Is the header present?
16181 echo "$as_me:$LINENO: checking locale.h presence" >&5
16182 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16183 cat >conftest.$ac_ext <<_ACEOF
16184 /* confdefs.h. */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 #include <locale.h>
16190 _ACEOF
16191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16193 ac_status=$?
16194 grep -v '^ *+' conftest.er1 >conftest.err
16195 rm -f conftest.er1
16196 cat conftest.err >&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } >/dev/null; then
16199 if test -s conftest.err; then
16200 ac_cpp_err=$ac_c_preproc_warn_flag
16201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16202 else
16203 ac_cpp_err=
16204 fi
16205 else
16206 ac_cpp_err=yes
16207 fi
16208 if test -z "$ac_cpp_err"; then
16209 ac_header_preproc=yes
16210 else
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16213
16214 ac_header_preproc=no
16215 fi
16216 rm -f conftest.err conftest.$ac_ext
16217 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16218 echo "${ECHO_T}$ac_header_preproc" >&6
16219
16220 # So? What about this header?
16221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16222 yes:no: )
16223 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16224 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16225 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16226 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16227 ac_header_preproc=yes
16228 ;;
16229 no:yes:* )
16230 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16231 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16232 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16233 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16234 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16235 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16236 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16237 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16238 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16239 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16241 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16242 (
16243 cat <<\_ASBOX
16244 ## ------------------------------------------ ##
16245 ## Report this to the AC_PACKAGE_NAME lists. ##
16246 ## ------------------------------------------ ##
16247 _ASBOX
16248 ) |
16249 sed "s/^/$as_me: WARNING: /" >&2
16250 ;;
16251 esac
16252 echo "$as_me:$LINENO: checking for locale.h" >&5
16253 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16254 if test "${ac_cv_header_locale_h+set}" = set; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257 ac_cv_header_locale_h=$ac_header_preproc
16258 fi
16259 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16260 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16261
16262 fi
16263
16264
16265
16266 for ac_func in setlocale
16267 do
16268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16269 echo "$as_me:$LINENO: checking for $ac_func" >&5
16270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16271 if eval "test \"\${$as_ac_var+set}\" = set"; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16273 else
16274 cat >conftest.$ac_ext <<_ACEOF
16275 /* confdefs.h. */
16276 _ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h. */
16280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16282 #define $ac_func innocuous_$ac_func
16283
16284 /* System header to define __stub macros and hopefully few prototypes,
16285 which can conflict with char $ac_func (); below.
16286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16287 <limits.h> exists even on freestanding compilers. */
16288
16289 #ifdef __STDC__
16290 # include <limits.h>
16291 #else
16292 # include <assert.h>
16293 #endif
16294
16295 #undef $ac_func
16296
16297 /* Override any gcc2 internal prototype to avoid an error. */
16298 #ifdef __cplusplus
16299 extern "C"
16300 {
16301 #endif
16302 /* We use char because int might match the return type of a gcc2
16303 builtin and then its argument prototype would still apply. */
16304 char $ac_func ();
16305 /* The GNU C library defines this for functions which it implements
16306 to always fail with ENOSYS. Some functions are actually named
16307 something starting with __ and the normal name is an alias. */
16308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16309 choke me
16310 #else
16311 char (*f) () = $ac_func;
16312 #endif
16313 #ifdef __cplusplus
16314 }
16315 #endif
16316
16317 int
16318 main ()
16319 {
16320 return f != $ac_func;
16321 ;
16322 return 0;
16323 }
16324 _ACEOF
16325 rm -f conftest.$ac_objext conftest$ac_exeext
16326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16327 (eval $ac_link) 2>conftest.er1
16328 ac_status=$?
16329 grep -v '^ *+' conftest.er1 >conftest.err
16330 rm -f conftest.er1
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
16334 { ac_try='test -z "$ac_c_werror_flag"
16335 || test ! -s conftest.err'
16336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16337 (eval $ac_try) 2>&5
16338 ac_status=$?
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); }; } &&
16341 { ac_try='test -s conftest$ac_exeext'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16344 ac_status=$?
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; }; then
16347 eval "$as_ac_var=yes"
16348 else
16349 echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16351
16352 eval "$as_ac_var=no"
16353 fi
16354 rm -f conftest.err conftest.$ac_objext \
16355 conftest$ac_exeext conftest.$ac_ext
16356 fi
16357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16359 if test `eval echo '${'$as_ac_var'}'` = yes; then
16360 cat >>confdefs.h <<_ACEOF
16361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16362 _ACEOF
16363
16364 fi
16365 done
16366
16367
16368 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16369 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16370 # Irix 4.0.5F has the header but not the library.
16371 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16372 ac_have_func=yes
16373
16374 cat >>confdefs.h <<\_ACEOF
16375 #define SVR4 1
16376 _ACEOF
16377
16378 fi
16379
16380 if test $ac_have_func = no; then
16381 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16382 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16383 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16384 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16385 echo $ECHO_N "(cached) $ECHO_C" >&6
16386 fi
16387 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16388 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16389 else
16390 # Is the header compilable?
16391 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16392 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
16393 cat >conftest.$ac_ext <<_ACEOF
16394 /* confdefs.h. */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 $ac_includes_default
16400 #include <inq_stats/cpustats.h>
16401 _ACEOF
16402 rm -f conftest.$ac_objext
16403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16404 (eval $ac_compile) 2>conftest.er1
16405 ac_status=$?
16406 grep -v '^ *+' conftest.er1 >conftest.err
16407 rm -f conftest.er1
16408 cat conftest.err >&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } &&
16411 { ac_try='test -z "$ac_c_werror_flag"
16412 || test ! -s conftest.err'
16413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414 (eval $ac_try) 2>&5
16415 ac_status=$?
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; } &&
16418 { ac_try='test -s conftest.$ac_objext'
16419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16420 (eval $ac_try) 2>&5
16421 ac_status=$?
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; }; then
16424 ac_header_compiler=yes
16425 else
16426 echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16428
16429 ac_header_compiler=no
16430 fi
16431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16433 echo "${ECHO_T}$ac_header_compiler" >&6
16434
16435 # Is the header present?
16436 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16437 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
16438 cat >conftest.$ac_ext <<_ACEOF
16439 /* confdefs.h. */
16440 _ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h. */
16444 #include <inq_stats/cpustats.h>
16445 _ACEOF
16446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16448 ac_status=$?
16449 grep -v '^ *+' conftest.er1 >conftest.err
16450 rm -f conftest.er1
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } >/dev/null; then
16454 if test -s conftest.err; then
16455 ac_cpp_err=$ac_c_preproc_warn_flag
16456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16457 else
16458 ac_cpp_err=
16459 fi
16460 else
16461 ac_cpp_err=yes
16462 fi
16463 if test -z "$ac_cpp_err"; then
16464 ac_header_preproc=yes
16465 else
16466 echo "$as_me: failed program was:" >&5
16467 sed 's/^/| /' conftest.$ac_ext >&5
16468
16469 ac_header_preproc=no
16470 fi
16471 rm -f conftest.err conftest.$ac_ext
16472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16473 echo "${ECHO_T}$ac_header_preproc" >&6
16474
16475 # So? What about this header?
16476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16477 yes:no: )
16478 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16479 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16480 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16481 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16482 ac_header_preproc=yes
16483 ;;
16484 no:yes:* )
16485 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16486 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16487 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16488 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16489 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16490 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16491 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16492 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16493 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16494 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16495 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16496 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16497 (
16498 cat <<\_ASBOX
16499 ## ------------------------------------------ ##
16500 ## Report this to the AC_PACKAGE_NAME lists. ##
16501 ## ------------------------------------------ ##
16502 _ASBOX
16503 ) |
16504 sed "s/^/$as_me: WARNING: /" >&2
16505 ;;
16506 esac
16507 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16508 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16509 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 else
16512 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16513 fi
16514 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16515 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16516
16517 fi
16518 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16519 ac_have_func=yes
16520
16521 cat >>confdefs.h <<\_ACEOF
16522 #define UMAX 1
16523 _ACEOF
16524
16525
16526 cat >>confdefs.h <<\_ACEOF
16527 #define UMAX4_3 1
16528 _ACEOF
16529
16530 fi
16531
16532
16533 fi
16534
16535 if test $ac_have_func = no; then
16536 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16537 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16538 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16539 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16540 echo $ECHO_N "(cached) $ECHO_C" >&6
16541 fi
16542 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16543 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16544 else
16545 # Is the header compilable?
16546 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16547 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16548 cat >conftest.$ac_ext <<_ACEOF
16549 /* confdefs.h. */
16550 _ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16554 $ac_includes_default
16555 #include <sys/cpustats.h>
16556 _ACEOF
16557 rm -f conftest.$ac_objext
16558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16559 (eval $ac_compile) 2>conftest.er1
16560 ac_status=$?
16561 grep -v '^ *+' conftest.er1 >conftest.err
16562 rm -f conftest.er1
16563 cat conftest.err >&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } &&
16566 { ac_try='test -z "$ac_c_werror_flag"
16567 || test ! -s conftest.err'
16568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569 (eval $ac_try) 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; } &&
16573 { ac_try='test -s conftest.$ac_objext'
16574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16575 (eval $ac_try) 2>&5
16576 ac_status=$?
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; }; then
16579 ac_header_compiler=yes
16580 else
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16583
16584 ac_header_compiler=no
16585 fi
16586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16588 echo "${ECHO_T}$ac_header_compiler" >&6
16589
16590 # Is the header present?
16591 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16592 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16593 cat >conftest.$ac_ext <<_ACEOF
16594 /* confdefs.h. */
16595 _ACEOF
16596 cat confdefs.h >>conftest.$ac_ext
16597 cat >>conftest.$ac_ext <<_ACEOF
16598 /* end confdefs.h. */
16599 #include <sys/cpustats.h>
16600 _ACEOF
16601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16603 ac_status=$?
16604 grep -v '^ *+' conftest.er1 >conftest.err
16605 rm -f conftest.er1
16606 cat conftest.err >&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } >/dev/null; then
16609 if test -s conftest.err; then
16610 ac_cpp_err=$ac_c_preproc_warn_flag
16611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16612 else
16613 ac_cpp_err=
16614 fi
16615 else
16616 ac_cpp_err=yes
16617 fi
16618 if test -z "$ac_cpp_err"; then
16619 ac_header_preproc=yes
16620 else
16621 echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16623
16624 ac_header_preproc=no
16625 fi
16626 rm -f conftest.err conftest.$ac_ext
16627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16628 echo "${ECHO_T}$ac_header_preproc" >&6
16629
16630 # So? What about this header?
16631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16632 yes:no: )
16633 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16634 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16635 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16636 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16637 ac_header_preproc=yes
16638 ;;
16639 no:yes:* )
16640 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16641 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16642 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16643 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16644 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16645 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16646 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16647 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16648 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16649 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16650 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16651 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16652 (
16653 cat <<\_ASBOX
16654 ## ------------------------------------------ ##
16655 ## Report this to the AC_PACKAGE_NAME lists. ##
16656 ## ------------------------------------------ ##
16657 _ASBOX
16658 ) |
16659 sed "s/^/$as_me: WARNING: /" >&2
16660 ;;
16661 esac
16662 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16663 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16664 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16666 else
16667 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16668 fi
16669 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16670 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16671
16672 fi
16673 if test $ac_cv_header_sys_cpustats_h = yes; then
16674 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16675 #define UMAX 1
16676 _ACEOF
16677
16678 fi
16679
16680
16681 fi
16682
16683 if test $ac_have_func = no; then
16684
16685 for ac_header in mach/mach.h
16686 do
16687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16689 echo "$as_me:$LINENO: checking for $ac_header" >&5
16690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16693 fi
16694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16696 else
16697 # Is the header compilable?
16698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16700 cat >conftest.$ac_ext <<_ACEOF
16701 /* confdefs.h. */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16706 $ac_includes_default
16707 #include <$ac_header>
16708 _ACEOF
16709 rm -f conftest.$ac_objext
16710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16711 (eval $ac_compile) 2>conftest.er1
16712 ac_status=$?
16713 grep -v '^ *+' conftest.er1 >conftest.err
16714 rm -f conftest.er1
16715 cat conftest.err >&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } &&
16718 { ac_try='test -z "$ac_c_werror_flag"
16719 || test ! -s conftest.err'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16722 ac_status=$?
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } &&
16725 { ac_try='test -s conftest.$ac_objext'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
16731 ac_header_compiler=yes
16732 else
16733 echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16735
16736 ac_header_compiler=no
16737 fi
16738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16740 echo "${ECHO_T}$ac_header_compiler" >&6
16741
16742 # Is the header present?
16743 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16745 cat >conftest.$ac_ext <<_ACEOF
16746 /* confdefs.h. */
16747 _ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h. */
16751 #include <$ac_header>
16752 _ACEOF
16753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16755 ac_status=$?
16756 grep -v '^ *+' conftest.er1 >conftest.err
16757 rm -f conftest.er1
16758 cat conftest.err >&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } >/dev/null; then
16761 if test -s conftest.err; then
16762 ac_cpp_err=$ac_c_preproc_warn_flag
16763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16764 else
16765 ac_cpp_err=
16766 fi
16767 else
16768 ac_cpp_err=yes
16769 fi
16770 if test -z "$ac_cpp_err"; then
16771 ac_header_preproc=yes
16772 else
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16775
16776 ac_header_preproc=no
16777 fi
16778 rm -f conftest.err conftest.$ac_ext
16779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16780 echo "${ECHO_T}$ac_header_preproc" >&6
16781
16782 # So? What about this header?
16783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16784 yes:no: )
16785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16789 ac_header_preproc=yes
16790 ;;
16791 no:yes:* )
16792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16804 (
16805 cat <<\_ASBOX
16806 ## ------------------------------------------ ##
16807 ## Report this to the AC_PACKAGE_NAME lists. ##
16808 ## ------------------------------------------ ##
16809 _ASBOX
16810 ) |
16811 sed "s/^/$as_me: WARNING: /" >&2
16812 ;;
16813 esac
16814 echo "$as_me:$LINENO: checking for $ac_header" >&5
16815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16818 else
16819 eval "$as_ac_Header=\$ac_header_preproc"
16820 fi
16821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16823
16824 fi
16825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16826 cat >>confdefs.h <<_ACEOF
16827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16828 _ACEOF
16829
16830 fi
16831
16832 done
16833
16834 fi
16835
16836
16837 for ac_header in nlist.h
16838 do
16839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16841 echo "$as_me:$LINENO: checking for $ac_header" >&5
16842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16844 echo $ECHO_N "(cached) $ECHO_C" >&6
16845 fi
16846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16848 else
16849 # Is the header compilable?
16850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16852 cat >conftest.$ac_ext <<_ACEOF
16853 /* confdefs.h. */
16854 _ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h. */
16858 $ac_includes_default
16859 #include <$ac_header>
16860 _ACEOF
16861 rm -f conftest.$ac_objext
16862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16863 (eval $ac_compile) 2>conftest.er1
16864 ac_status=$?
16865 grep -v '^ *+' conftest.er1 >conftest.err
16866 rm -f conftest.er1
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -z "$ac_c_werror_flag"
16871 || test ! -s conftest.err'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; } &&
16877 { ac_try='test -s conftest.$ac_objext'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; }; then
16883 ac_header_compiler=yes
16884 else
16885 echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16887
16888 ac_header_compiler=no
16889 fi
16890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16892 echo "${ECHO_T}$ac_header_compiler" >&6
16893
16894 # Is the header present?
16895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16897 cat >conftest.$ac_ext <<_ACEOF
16898 /* confdefs.h. */
16899 _ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h. */
16903 #include <$ac_header>
16904 _ACEOF
16905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16907 ac_status=$?
16908 grep -v '^ *+' conftest.er1 >conftest.err
16909 rm -f conftest.er1
16910 cat conftest.err >&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); } >/dev/null; then
16913 if test -s conftest.err; then
16914 ac_cpp_err=$ac_c_preproc_warn_flag
16915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16916 else
16917 ac_cpp_err=
16918 fi
16919 else
16920 ac_cpp_err=yes
16921 fi
16922 if test -z "$ac_cpp_err"; then
16923 ac_header_preproc=yes
16924 else
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16927
16928 ac_header_preproc=no
16929 fi
16930 rm -f conftest.err conftest.$ac_ext
16931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16932 echo "${ECHO_T}$ac_header_preproc" >&6
16933
16934 # So? What about this header?
16935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16936 yes:no: )
16937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16941 ac_header_preproc=yes
16942 ;;
16943 no:yes:* )
16944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16956 (
16957 cat <<\_ASBOX
16958 ## ------------------------------------------ ##
16959 ## Report this to the AC_PACKAGE_NAME lists. ##
16960 ## ------------------------------------------ ##
16961 _ASBOX
16962 ) |
16963 sed "s/^/$as_me: WARNING: /" >&2
16964 ;;
16965 esac
16966 echo "$as_me:$LINENO: checking for $ac_header" >&5
16967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16970 else
16971 eval "$as_ac_Header=\$ac_header_preproc"
16972 fi
16973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16975
16976 fi
16977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16978 cat >>confdefs.h <<_ACEOF
16979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16980 _ACEOF
16981 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16982 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16983 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986 cat >conftest.$ac_ext <<_ACEOF
16987 /* confdefs.h. */
16988 _ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16992 #include <nlist.h>
16993
16994 int
16995 main ()
16996 {
16997 static struct nlist ac_aggr;
16998 if (ac_aggr.n_un.n_name)
16999 return 0;
17000 ;
17001 return 0;
17002 }
17003 _ACEOF
17004 rm -f conftest.$ac_objext
17005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17006 (eval $ac_compile) 2>conftest.er1
17007 ac_status=$?
17008 grep -v '^ *+' conftest.er1 >conftest.err
17009 rm -f conftest.er1
17010 cat conftest.err >&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } &&
17013 { ac_try='test -z "$ac_c_werror_flag"
17014 || test ! -s conftest.err'
17015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016 (eval $ac_try) 2>&5
17017 ac_status=$?
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; } &&
17020 { ac_try='test -s conftest.$ac_objext'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 ac_cv_member_struct_nlist_n_un_n_name=yes
17027 else
17028 echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17030
17031 cat >conftest.$ac_ext <<_ACEOF
17032 /* confdefs.h. */
17033 _ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037 #include <nlist.h>
17038
17039 int
17040 main ()
17041 {
17042 static struct nlist ac_aggr;
17043 if (sizeof ac_aggr.n_un.n_name)
17044 return 0;
17045 ;
17046 return 0;
17047 }
17048 _ACEOF
17049 rm -f conftest.$ac_objext
17050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17051 (eval $ac_compile) 2>conftest.er1
17052 ac_status=$?
17053 grep -v '^ *+' conftest.er1 >conftest.err
17054 rm -f conftest.er1
17055 cat conftest.err >&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } &&
17058 { ac_try='test -z "$ac_c_werror_flag"
17059 || test ! -s conftest.err'
17060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061 (eval $ac_try) 2>&5
17062 ac_status=$?
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; } &&
17065 { ac_try='test -s conftest.$ac_objext'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17068 ac_status=$?
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 ac_cv_member_struct_nlist_n_un_n_name=yes
17072 else
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17075
17076 ac_cv_member_struct_nlist_n_un_n_name=no
17077 fi
17078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17079 fi
17080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17081 fi
17082 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17083 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17084 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17085
17086 cat >>confdefs.h <<_ACEOF
17087 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17088 _ACEOF
17089
17090
17091 cat >>confdefs.h <<\_ACEOF
17092 #define NLIST_NAME_UNION 1
17093 _ACEOF
17094
17095 fi
17096
17097
17098 fi
17099
17100 done
17101
17102 fi
17103 done
17104
17105
17106 # Some definitions of getloadavg require that the program be installed setgid.
17107 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17108 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17109 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17111 else
17112 cat >conftest.$ac_ext <<_ACEOF
17113 /* confdefs.h. */
17114 _ACEOF
17115 cat confdefs.h >>conftest.$ac_ext
17116 cat >>conftest.$ac_ext <<_ACEOF
17117 /* end confdefs.h. */
17118 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17119 #ifdef LDAV_PRIVILEGED
17120 Yowza Am I SETGID yet
17121 #endif
17122 _ACEOF
17123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17124 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17125 ac_cv_func_getloadavg_setgid=yes
17126 else
17127 ac_cv_func_getloadavg_setgid=no
17128 fi
17129 rm -f conftest*
17130
17131 fi
17132 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17133 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17134 if test $ac_cv_func_getloadavg_setgid = yes; then
17135 NEED_SETGID=true
17136
17137 cat >>confdefs.h <<\_ACEOF
17138 #define GETLOADAVG_PRIVILEGED 1
17139 _ACEOF
17140
17141 else
17142 NEED_SETGID=false
17143 fi
17144
17145 if test $ac_cv_func_getloadavg_setgid = yes; then
17146 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17147 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17148 if test "${ac_cv_group_kmem+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17152 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17153 # If we got an error (system does not support symlinks), try without -L.
17154 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17155 ac_cv_group_kmem=`echo $ac_ls_output \
17156 | sed -ne 's/[ ][ ]*/ /g;
17157 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17158 / /s/.* //;p;'`
17159
17160 fi
17161 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17162 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17163 KMEM_GROUP=$ac_cv_group_kmem
17164 fi
17165 if test "x$ac_save_LIBS" = x; then
17166 GETLOADAVG_LIBS=$LIBS
17167 else
17168 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17169 fi
17170 LIBS=$ac_save_LIBS
17171
17172
17173
17174 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17175 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17176 if test "${ac_cv_sys_largefile_source+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17178 else
17179 while :; do
17180 ac_cv_sys_largefile_source=no
17181 cat >conftest.$ac_ext <<_ACEOF
17182 /* confdefs.h. */
17183 _ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17187 #include <stdio.h>
17188 int
17189 main ()
17190 {
17191 return !fseeko;
17192 ;
17193 return 0;
17194 }
17195 _ACEOF
17196 rm -f conftest.$ac_objext
17197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17198 (eval $ac_compile) 2>conftest.er1
17199 ac_status=$?
17200 grep -v '^ *+' conftest.er1 >conftest.err
17201 rm -f conftest.er1
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
17205 { ac_try='test -z "$ac_c_werror_flag"
17206 || test ! -s conftest.err'
17207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17209 ac_status=$?
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; } &&
17212 { ac_try='test -s conftest.$ac_objext'
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; }; then
17218 break
17219 else
17220 echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17222
17223 fi
17224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17225 cat >conftest.$ac_ext <<_ACEOF
17226 /* confdefs.h. */
17227 _ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17231 #define _LARGEFILE_SOURCE 1
17232 #include <stdio.h>
17233 int
17234 main ()
17235 {
17236 return !fseeko;
17237 ;
17238 return 0;
17239 }
17240 _ACEOF
17241 rm -f conftest.$ac_objext
17242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17243 (eval $ac_compile) 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_c_werror_flag"
17251 || test ! -s conftest.err'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest.$ac_objext'
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 ac_cv_sys_largefile_source=1; break
17264 else
17265 echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17267
17268 fi
17269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17270 break
17271 done
17272 fi
17273 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17274 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17275 if test "$ac_cv_sys_largefile_source" != no; then
17276
17277 cat >>confdefs.h <<_ACEOF
17278 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17279 _ACEOF
17280
17281 fi
17282 rm -f conftest*
17283
17284 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17285 # in glibc 2.1.3, but that breaks too many other things.
17286 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17287 echo "$as_me:$LINENO: checking for fseeko" >&5
17288 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17289 if test "${ac_cv_func_fseeko+set}" = set; then
17290 echo $ECHO_N "(cached) $ECHO_C" >&6
17291 else
17292 cat >conftest.$ac_ext <<_ACEOF
17293 /* confdefs.h. */
17294 _ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h. */
17298 #include <stdio.h>
17299 int
17300 main ()
17301 {
17302 return fseeko && fseeko (stdin, 0, 0);
17303 ;
17304 return 0;
17305 }
17306 _ACEOF
17307 rm -f conftest.$ac_objext conftest$ac_exeext
17308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17309 (eval $ac_link) 2>conftest.er1
17310 ac_status=$?
17311 grep -v '^ *+' conftest.er1 >conftest.err
17312 rm -f conftest.er1
17313 cat conftest.err >&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); } &&
17316 { ac_try='test -z "$ac_c_werror_flag"
17317 || test ! -s conftest.err'
17318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319 (eval $ac_try) 2>&5
17320 ac_status=$?
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; } &&
17323 { ac_try='test -s conftest$ac_exeext'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; }; then
17329 ac_cv_func_fseeko=yes
17330 else
17331 echo "$as_me: failed program was:" >&5
17332 sed 's/^/| /' conftest.$ac_ext >&5
17333
17334 ac_cv_func_fseeko=no
17335 fi
17336 rm -f conftest.err conftest.$ac_objext \
17337 conftest$ac_exeext conftest.$ac_ext
17338 fi
17339 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17340 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17341 if test $ac_cv_func_fseeko = yes; then
17342
17343 cat >>confdefs.h <<\_ACEOF
17344 #define HAVE_FSEEKO 1
17345 _ACEOF
17346
17347 fi
17348
17349
17350 # Configure getopt.
17351 # getopt.m4 serial 10
17352
17353 # The getopt module assume you want GNU getopt, with getopt_long etc,
17354 # rather than vanilla POSIX getopt. This means your your code should
17355 # always include <getopt.h> for the getopt prototypes.
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367 # Prerequisites of lib/getopt*.
17368
17369
17370
17371
17372 GETOPT_H=
17373
17374 for ac_header in getopt.h
17375 do
17376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17378 echo "$as_me:$LINENO: checking for $ac_header" >&5
17379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17382 fi
17383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17385 else
17386 # Is the header compilable?
17387 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17389 cat >conftest.$ac_ext <<_ACEOF
17390 /* confdefs.h. */
17391 _ACEOF
17392 cat confdefs.h >>conftest.$ac_ext
17393 cat >>conftest.$ac_ext <<_ACEOF
17394 /* end confdefs.h. */
17395 $ac_includes_default
17396 #include <$ac_header>
17397 _ACEOF
17398 rm -f conftest.$ac_objext
17399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17400 (eval $ac_compile) 2>conftest.er1
17401 ac_status=$?
17402 grep -v '^ *+' conftest.er1 >conftest.err
17403 rm -f conftest.er1
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } &&
17407 { ac_try='test -z "$ac_c_werror_flag"
17408 || test ! -s conftest.err'
17409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410 (eval $ac_try) 2>&5
17411 ac_status=$?
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); }; } &&
17414 { ac_try='test -s conftest.$ac_objext'
17415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416 (eval $ac_try) 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; }; then
17420 ac_header_compiler=yes
17421 else
17422 echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17424
17425 ac_header_compiler=no
17426 fi
17427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17428 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17429 echo "${ECHO_T}$ac_header_compiler" >&6
17430
17431 # Is the header present?
17432 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17434 cat >conftest.$ac_ext <<_ACEOF
17435 /* confdefs.h. */
17436 _ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h. */
17440 #include <$ac_header>
17441 _ACEOF
17442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17444 ac_status=$?
17445 grep -v '^ *+' conftest.er1 >conftest.err
17446 rm -f conftest.er1
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } >/dev/null; then
17450 if test -s conftest.err; then
17451 ac_cpp_err=$ac_c_preproc_warn_flag
17452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17453 else
17454 ac_cpp_err=
17455 fi
17456 else
17457 ac_cpp_err=yes
17458 fi
17459 if test -z "$ac_cpp_err"; then
17460 ac_header_preproc=yes
17461 else
17462 echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17464
17465 ac_header_preproc=no
17466 fi
17467 rm -f conftest.err conftest.$ac_ext
17468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17469 echo "${ECHO_T}$ac_header_preproc" >&6
17470
17471 # So? What about this header?
17472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17473 yes:no: )
17474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17478 ac_header_preproc=yes
17479 ;;
17480 no:yes:* )
17481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17493 (
17494 cat <<\_ASBOX
17495 ## ------------------------------------------ ##
17496 ## Report this to the AC_PACKAGE_NAME lists. ##
17497 ## ------------------------------------------ ##
17498 _ASBOX
17499 ) |
17500 sed "s/^/$as_me: WARNING: /" >&2
17501 ;;
17502 esac
17503 echo "$as_me:$LINENO: checking for $ac_header" >&5
17504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17506 echo $ECHO_N "(cached) $ECHO_C" >&6
17507 else
17508 eval "$as_ac_Header=\$ac_header_preproc"
17509 fi
17510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17512
17513 fi
17514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17515 cat >>confdefs.h <<_ACEOF
17516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17517 _ACEOF
17518
17519 else
17520 GETOPT_H=getopt.h
17521 fi
17522
17523 done
17524
17525 if test -z "$GETOPT_H"; then
17526
17527 for ac_func in getopt_long_only
17528 do
17529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17530 echo "$as_me:$LINENO: checking for $ac_func" >&5
17531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17532 if eval "test \"\${$as_ac_var+set}\" = set"; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535 cat >conftest.$ac_ext <<_ACEOF
17536 /* confdefs.h. */
17537 _ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h. */
17541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17543 #define $ac_func innocuous_$ac_func
17544
17545 /* System header to define __stub macros and hopefully few prototypes,
17546 which can conflict with char $ac_func (); below.
17547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17548 <limits.h> exists even on freestanding compilers. */
17549
17550 #ifdef __STDC__
17551 # include <limits.h>
17552 #else
17553 # include <assert.h>
17554 #endif
17555
17556 #undef $ac_func
17557
17558 /* Override any gcc2 internal prototype to avoid an error. */
17559 #ifdef __cplusplus
17560 extern "C"
17561 {
17562 #endif
17563 /* We use char because int might match the return type of a gcc2
17564 builtin and then its argument prototype would still apply. */
17565 char $ac_func ();
17566 /* The GNU C library defines this for functions which it implements
17567 to always fail with ENOSYS. Some functions are actually named
17568 something starting with __ and the normal name is an alias. */
17569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17570 choke me
17571 #else
17572 char (*f) () = $ac_func;
17573 #endif
17574 #ifdef __cplusplus
17575 }
17576 #endif
17577
17578 int
17579 main ()
17580 {
17581 return f != $ac_func;
17582 ;
17583 return 0;
17584 }
17585 _ACEOF
17586 rm -f conftest.$ac_objext conftest$ac_exeext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17588 (eval $ac_link) 2>conftest.er1
17589 ac_status=$?
17590 grep -v '^ *+' conftest.er1 >conftest.err
17591 rm -f conftest.er1
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -z "$ac_c_werror_flag"
17596 || test ! -s conftest.err'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try='test -s conftest$ac_exeext'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 eval "$as_ac_var=yes"
17609 else
17610 echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17612
17613 eval "$as_ac_var=no"
17614 fi
17615 rm -f conftest.err conftest.$ac_objext \
17616 conftest$ac_exeext conftest.$ac_ext
17617 fi
17618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17620 if test `eval echo '${'$as_ac_var'}'` = yes; then
17621 cat >>confdefs.h <<_ACEOF
17622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17623 _ACEOF
17624
17625 else
17626 GETOPT_H=getopt.h
17627 fi
17628 done
17629
17630 fi
17631
17632 if test -z "$GETOPT_H"; then
17633 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17634 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17635 if test "${ac_cv_have_decl_optreset+set}" = set; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17637 else
17638 cat >conftest.$ac_ext <<_ACEOF
17639 /* confdefs.h. */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17644 #include <getopt.h>
17645
17646 int
17647 main ()
17648 {
17649 #ifndef optreset
17650 char *p = (char *) optreset;
17651 #endif
17652
17653 ;
17654 return 0;
17655 }
17656 _ACEOF
17657 rm -f conftest.$ac_objext
17658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17659 (eval $ac_compile) 2>conftest.er1
17660 ac_status=$?
17661 grep -v '^ *+' conftest.er1 >conftest.err
17662 rm -f conftest.er1
17663 cat conftest.err >&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
17666 { ac_try='test -z "$ac_c_werror_flag"
17667 || test ! -s conftest.err'
17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669 (eval $ac_try) 2>&5
17670 ac_status=$?
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; } &&
17673 { ac_try='test -s conftest.$ac_objext'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ac_cv_have_decl_optreset=yes
17680 else
17681 echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17683
17684 ac_cv_have_decl_optreset=no
17685 fi
17686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17687 fi
17688 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17689 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17690 if test $ac_cv_have_decl_optreset = yes; then
17691 GETOPT_H=getopt.h
17692 fi
17693
17694 fi
17695
17696 if test -z "$GETOPT_H"; then
17697 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17698 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17699 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17700 echo $ECHO_N "(cached) $ECHO_C" >&6
17701 else
17702 if test "$cross_compiling" = yes; then
17703 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17704 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17705 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17706 echo $ECHO_N "(cached) $ECHO_C" >&6
17707 else
17708 cat >conftest.$ac_ext <<_ACEOF
17709 /* confdefs.h. */
17710 _ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17714 #include <getopt.h>
17715
17716 int
17717 main ()
17718 {
17719 #ifndef getopt_clip
17720 char *p = (char *) getopt_clip;
17721 #endif
17722
17723 ;
17724 return 0;
17725 }
17726 _ACEOF
17727 rm -f conftest.$ac_objext
17728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17729 (eval $ac_compile) 2>conftest.er1
17730 ac_status=$?
17731 grep -v '^ *+' conftest.er1 >conftest.err
17732 rm -f conftest.er1
17733 cat conftest.err >&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); } &&
17736 { ac_try='test -z "$ac_c_werror_flag"
17737 || test ! -s conftest.err'
17738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739 (eval $ac_try) 2>&5
17740 ac_status=$?
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; } &&
17743 { ac_try='test -s conftest.$ac_objext'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17746 ac_status=$?
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; }; then
17749 ac_cv_have_decl_getopt_clip=yes
17750 else
17751 echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17753
17754 ac_cv_have_decl_getopt_clip=no
17755 fi
17756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17757 fi
17758 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17759 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17760 if test $ac_cv_have_decl_getopt_clip = yes; then
17761 gl_cv_func_gnu_getopt=no
17762 else
17763 gl_cv_func_gnu_getopt=yes
17764 fi
17765
17766 else
17767 cat >conftest.$ac_ext <<_ACEOF
17768 /* confdefs.h. */
17769 _ACEOF
17770 cat confdefs.h >>conftest.$ac_ext
17771 cat >>conftest.$ac_ext <<_ACEOF
17772 /* end confdefs.h. */
17773 #include <getopt.h>
17774 int
17775 main ()
17776 {
17777
17778 char *myargv[3];
17779 myargv[0] = "conftest";
17780 myargv[1] = "-+";
17781 myargv[2] = 0;
17782 return getopt (2, myargv, "+a") != '?';
17783
17784 ;
17785 return 0;
17786 }
17787 _ACEOF
17788 rm -f conftest$ac_exeext
17789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17790 (eval $ac_link) 2>&5
17791 ac_status=$?
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17799 gl_cv_func_gnu_getopt=yes
17800 else
17801 echo "$as_me: program exited with status $ac_status" >&5
17802 echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17804
17805 ( exit $ac_status )
17806 gl_cv_func_gnu_getopt=no
17807 fi
17808 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17809 fi
17810 fi
17811 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17812 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17813 if test "$gl_cv_func_gnu_getopt" = "no"; then
17814 GETOPT_H=getopt.h
17815 fi
17816 fi
17817
17818
17819
17820 if test -n "$GETOPT_H"; then
17821
17822
17823 GETOPT_H=getopt.h
17824
17825 cat >>confdefs.h <<\_ACEOF
17826 #define __GETOPT_PREFIX rpl_
17827 _ACEOF
17828
17829
17830
17831 :
17832 GETOPTOBJS='getopt.o getopt1.o'
17833
17834 fi
17835
17836
17837
17838
17839 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17840 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17841 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17842 echo $ECHO_N "(cached) $ECHO_C" >&6
17843 else
17844 # Use it with a single arg.
17845 cat >conftest.$ac_ext <<_ACEOF
17846 /* confdefs.h. */
17847 _ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h. */
17851 $ac_includes_default
17852 int
17853 main ()
17854 {
17855 getpgrp (0);
17856 ;
17857 return 0;
17858 }
17859 _ACEOF
17860 rm -f conftest.$ac_objext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17862 (eval $ac_compile) 2>conftest.er1
17863 ac_status=$?
17864 grep -v '^ *+' conftest.er1 >conftest.err
17865 rm -f conftest.er1
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } &&
17869 { ac_try='test -z "$ac_c_werror_flag"
17870 || test ! -s conftest.err'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; } &&
17876 { ac_try='test -s conftest.$ac_objext'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 ac_cv_func_getpgrp_void=no
17883 else
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17886
17887 ac_cv_func_getpgrp_void=yes
17888 fi
17889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17890
17891 fi
17892 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17893 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17894 if test $ac_cv_func_getpgrp_void = yes; then
17895
17896 cat >>confdefs.h <<\_ACEOF
17897 #define GETPGRP_VOID 1
17898 _ACEOF
17899
17900 fi
17901
17902
17903
17904 for ac_func in strftime
17905 do
17906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17907 echo "$as_me:$LINENO: checking for $ac_func" >&5
17908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17909 if eval "test \"\${$as_ac_var+set}\" = set"; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17911 else
17912 cat >conftest.$ac_ext <<_ACEOF
17913 /* confdefs.h. */
17914 _ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h. */
17918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17920 #define $ac_func innocuous_$ac_func
17921
17922 /* System header to define __stub macros and hopefully few prototypes,
17923 which can conflict with char $ac_func (); below.
17924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17925 <limits.h> exists even on freestanding compilers. */
17926
17927 #ifdef __STDC__
17928 # include <limits.h>
17929 #else
17930 # include <assert.h>
17931 #endif
17932
17933 #undef $ac_func
17934
17935 /* Override any gcc2 internal prototype to avoid an error. */
17936 #ifdef __cplusplus
17937 extern "C"
17938 {
17939 #endif
17940 /* We use char because int might match the return type of a gcc2
17941 builtin and then its argument prototype would still apply. */
17942 char $ac_func ();
17943 /* The GNU C library defines this for functions which it implements
17944 to always fail with ENOSYS. Some functions are actually named
17945 something starting with __ and the normal name is an alias. */
17946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17947 choke me
17948 #else
17949 char (*f) () = $ac_func;
17950 #endif
17951 #ifdef __cplusplus
17952 }
17953 #endif
17954
17955 int
17956 main ()
17957 {
17958 return f != $ac_func;
17959 ;
17960 return 0;
17961 }
17962 _ACEOF
17963 rm -f conftest.$ac_objext conftest$ac_exeext
17964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17965 (eval $ac_link) 2>conftest.er1
17966 ac_status=$?
17967 grep -v '^ *+' conftest.er1 >conftest.err
17968 rm -f conftest.er1
17969 cat conftest.err >&5
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } &&
17972 { ac_try='test -z "$ac_c_werror_flag"
17973 || test ! -s conftest.err'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17976 ac_status=$?
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try='test -s conftest$ac_exeext'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 eval "$as_ac_var=yes"
17986 else
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17989
17990 eval "$as_ac_var=no"
17991 fi
17992 rm -f conftest.err conftest.$ac_objext \
17993 conftest$ac_exeext conftest.$ac_ext
17994 fi
17995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17997 if test `eval echo '${'$as_ac_var'}'` = yes; then
17998 cat >>confdefs.h <<_ACEOF
17999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18000 _ACEOF
18001
18002 else
18003 # strftime is in -lintl on SCO UNIX.
18004 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18005 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18006 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18007 echo $ECHO_N "(cached) $ECHO_C" >&6
18008 else
18009 ac_check_lib_save_LIBS=$LIBS
18010 LIBS="-lintl $LIBS"
18011 cat >conftest.$ac_ext <<_ACEOF
18012 /* confdefs.h. */
18013 _ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18017
18018 /* Override any gcc2 internal prototype to avoid an error. */
18019 #ifdef __cplusplus
18020 extern "C"
18021 #endif
18022 /* We use char because int might match the return type of a gcc2
18023 builtin and then its argument prototype would still apply. */
18024 char strftime ();
18025 int
18026 main ()
18027 {
18028 strftime ();
18029 ;
18030 return 0;
18031 }
18032 _ACEOF
18033 rm -f conftest.$ac_objext conftest$ac_exeext
18034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18035 (eval $ac_link) 2>conftest.er1
18036 ac_status=$?
18037 grep -v '^ *+' conftest.er1 >conftest.err
18038 rm -f conftest.er1
18039 cat conftest.err >&5
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); } &&
18042 { ac_try='test -z "$ac_c_werror_flag"
18043 || test ! -s conftest.err'
18044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18045 (eval $ac_try) 2>&5
18046 ac_status=$?
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); }; } &&
18049 { ac_try='test -s conftest$ac_exeext'
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
18055 ac_cv_lib_intl_strftime=yes
18056 else
18057 echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18059
18060 ac_cv_lib_intl_strftime=no
18061 fi
18062 rm -f conftest.err conftest.$ac_objext \
18063 conftest$ac_exeext conftest.$ac_ext
18064 LIBS=$ac_check_lib_save_LIBS
18065 fi
18066 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18067 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18068 if test $ac_cv_lib_intl_strftime = yes; then
18069 cat >>confdefs.h <<\_ACEOF
18070 #define HAVE_STRFTIME 1
18071 _ACEOF
18072
18073 LIBS="-lintl $LIBS"
18074 fi
18075
18076 fi
18077 done
18078
18079
18080 # UNIX98 PTYs.
18081
18082 for ac_func in grantpt
18083 do
18084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18085 echo "$as_me:$LINENO: checking for $ac_func" >&5
18086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18087 if eval "test \"\${$as_ac_var+set}\" = set"; then
18088 echo $ECHO_N "(cached) $ECHO_C" >&6
18089 else
18090 cat >conftest.$ac_ext <<_ACEOF
18091 /* confdefs.h. */
18092 _ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h. */
18096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18098 #define $ac_func innocuous_$ac_func
18099
18100 /* System header to define __stub macros and hopefully few prototypes,
18101 which can conflict with char $ac_func (); below.
18102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18103 <limits.h> exists even on freestanding compilers. */
18104
18105 #ifdef __STDC__
18106 # include <limits.h>
18107 #else
18108 # include <assert.h>
18109 #endif
18110
18111 #undef $ac_func
18112
18113 /* Override any gcc2 internal prototype to avoid an error. */
18114 #ifdef __cplusplus
18115 extern "C"
18116 {
18117 #endif
18118 /* We use char because int might match the return type of a gcc2
18119 builtin and then its argument prototype would still apply. */
18120 char $ac_func ();
18121 /* The GNU C library defines this for functions which it implements
18122 to always fail with ENOSYS. Some functions are actually named
18123 something starting with __ and the normal name is an alias. */
18124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18125 choke me
18126 #else
18127 char (*f) () = $ac_func;
18128 #endif
18129 #ifdef __cplusplus
18130 }
18131 #endif
18132
18133 int
18134 main ()
18135 {
18136 return f != $ac_func;
18137 ;
18138 return 0;
18139 }
18140 _ACEOF
18141 rm -f conftest.$ac_objext conftest$ac_exeext
18142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18143 (eval $ac_link) 2>conftest.er1
18144 ac_status=$?
18145 grep -v '^ *+' conftest.er1 >conftest.err
18146 rm -f conftest.er1
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } &&
18150 { ac_try='test -z "$ac_c_werror_flag"
18151 || test ! -s conftest.err'
18152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153 (eval $ac_try) 2>&5
18154 ac_status=$?
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; } &&
18157 { ac_try='test -s conftest$ac_exeext'
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; }; then
18163 eval "$as_ac_var=yes"
18164 else
18165 echo "$as_me: failed program was:" >&5
18166 sed 's/^/| /' conftest.$ac_ext >&5
18167
18168 eval "$as_ac_var=no"
18169 fi
18170 rm -f conftest.err conftest.$ac_objext \
18171 conftest$ac_exeext conftest.$ac_ext
18172 fi
18173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18175 if test `eval echo '${'$as_ac_var'}'` = yes; then
18176 cat >>confdefs.h <<_ACEOF
18177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18178 _ACEOF
18179
18180 fi
18181 done
18182
18183
18184 # PTY-related GNU extensions.
18185
18186 for ac_func in getpt
18187 do
18188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18189 echo "$as_me:$LINENO: checking for $ac_func" >&5
18190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18191 if eval "test \"\${$as_ac_var+set}\" = set"; then
18192 echo $ECHO_N "(cached) $ECHO_C" >&6
18193 else
18194 cat >conftest.$ac_ext <<_ACEOF
18195 /* confdefs.h. */
18196 _ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h. */
18200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18202 #define $ac_func innocuous_$ac_func
18203
18204 /* System header to define __stub macros and hopefully few prototypes,
18205 which can conflict with char $ac_func (); below.
18206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18207 <limits.h> exists even on freestanding compilers. */
18208
18209 #ifdef __STDC__
18210 # include <limits.h>
18211 #else
18212 # include <assert.h>
18213 #endif
18214
18215 #undef $ac_func
18216
18217 /* Override any gcc2 internal prototype to avoid an error. */
18218 #ifdef __cplusplus
18219 extern "C"
18220 {
18221 #endif
18222 /* We use char because int might match the return type of a gcc2
18223 builtin and then its argument prototype would still apply. */
18224 char $ac_func ();
18225 /* The GNU C library defines this for functions which it implements
18226 to always fail with ENOSYS. Some functions are actually named
18227 something starting with __ and the normal name is an alias. */
18228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18229 choke me
18230 #else
18231 char (*f) () = $ac_func;
18232 #endif
18233 #ifdef __cplusplus
18234 }
18235 #endif
18236
18237 int
18238 main ()
18239 {
18240 return f != $ac_func;
18241 ;
18242 return 0;
18243 }
18244 _ACEOF
18245 rm -f conftest.$ac_objext conftest$ac_exeext
18246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18247 (eval $ac_link) 2>conftest.er1
18248 ac_status=$?
18249 grep -v '^ *+' conftest.er1 >conftest.err
18250 rm -f conftest.er1
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } &&
18254 { ac_try='test -z "$ac_c_werror_flag"
18255 || test ! -s conftest.err'
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest$ac_exeext'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18267 eval "$as_ac_var=yes"
18268 else
18269 echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18271
18272 eval "$as_ac_var=no"
18273 fi
18274 rm -f conftest.err conftest.$ac_objext \
18275 conftest$ac_exeext conftest.$ac_ext
18276 fi
18277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18279 if test `eval echo '${'$as_ac_var'}'` = yes; then
18280 cat >>confdefs.h <<_ACEOF
18281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18282 _ACEOF
18283
18284 fi
18285 done
18286
18287
18288 # Check this now, so that we will NOT find the above functions in ncurses.
18289 # That is because we have not set up to link ncurses in lib-src.
18290 # It's better to believe a function is not available
18291 # than to expect to find it in ncurses.
18292
18293 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18294 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18295 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18296 echo $ECHO_N "(cached) $ECHO_C" >&6
18297 else
18298 ac_check_lib_save_LIBS=$LIBS
18299 LIBS="-lncurses $LIBS"
18300 cat >conftest.$ac_ext <<_ACEOF
18301 /* confdefs.h. */
18302 _ACEOF
18303 cat confdefs.h >>conftest.$ac_ext
18304 cat >>conftest.$ac_ext <<_ACEOF
18305 /* end confdefs.h. */
18306
18307 /* Override any gcc2 internal prototype to avoid an error. */
18308 #ifdef __cplusplus
18309 extern "C"
18310 #endif
18311 /* We use char because int might match the return type of a gcc2
18312 builtin and then its argument prototype would still apply. */
18313 char tparm ();
18314 int
18315 main ()
18316 {
18317 tparm ();
18318 ;
18319 return 0;
18320 }
18321 _ACEOF
18322 rm -f conftest.$ac_objext conftest$ac_exeext
18323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18324 (eval $ac_link) 2>conftest.er1
18325 ac_status=$?
18326 grep -v '^ *+' conftest.er1 >conftest.err
18327 rm -f conftest.er1
18328 cat conftest.err >&5
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); } &&
18331 { ac_try='test -z "$ac_c_werror_flag"
18332 || test ! -s conftest.err'
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; } &&
18338 { ac_try='test -s conftest$ac_exeext'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 ac_cv_lib_ncurses_tparm=yes
18345 else
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18348
18349 ac_cv_lib_ncurses_tparm=no
18350 fi
18351 rm -f conftest.err conftest.$ac_objext \
18352 conftest$ac_exeext conftest.$ac_ext
18353 LIBS=$ac_check_lib_save_LIBS
18354 fi
18355 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18356 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18357 if test $ac_cv_lib_ncurses_tparm = yes; then
18358 cat >>confdefs.h <<_ACEOF
18359 #define HAVE_LIBNCURSES 1
18360 _ACEOF
18361
18362 LIBS="-lncurses $LIBS"
18363
18364 fi
18365
18366
18367 # Do we need the Hesiod library to provide the support routines?
18368 if test "$with_hesiod" = yes ; then
18369 # Don't set $LIBS here -- see comments above.
18370 resolv=no
18371 echo "$as_me:$LINENO: checking for res_send" >&5
18372 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
18373 if test "${ac_cv_func_res_send+set}" = set; then
18374 echo $ECHO_N "(cached) $ECHO_C" >&6
18375 else
18376 cat >conftest.$ac_ext <<_ACEOF
18377 /* confdefs.h. */
18378 _ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18382 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18384 #define res_send innocuous_res_send
18385
18386 /* System header to define __stub macros and hopefully few prototypes,
18387 which can conflict with char res_send (); below.
18388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18389 <limits.h> exists even on freestanding compilers. */
18390
18391 #ifdef __STDC__
18392 # include <limits.h>
18393 #else
18394 # include <assert.h>
18395 #endif
18396
18397 #undef res_send
18398
18399 /* Override any gcc2 internal prototype to avoid an error. */
18400 #ifdef __cplusplus
18401 extern "C"
18402 {
18403 #endif
18404 /* We use char because int might match the return type of a gcc2
18405 builtin and then its argument prototype would still apply. */
18406 char res_send ();
18407 /* The GNU C library defines this for functions which it implements
18408 to always fail with ENOSYS. Some functions are actually named
18409 something starting with __ and the normal name is an alias. */
18410 #if defined (__stub_res_send) || defined (__stub___res_send)
18411 choke me
18412 #else
18413 char (*f) () = res_send;
18414 #endif
18415 #ifdef __cplusplus
18416 }
18417 #endif
18418
18419 int
18420 main ()
18421 {
18422 return f != res_send;
18423 ;
18424 return 0;
18425 }
18426 _ACEOF
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18429 (eval $ac_link) 2>conftest.er1
18430 ac_status=$?
18431 grep -v '^ *+' conftest.er1 >conftest.err
18432 rm -f conftest.er1
18433 cat conftest.err >&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } &&
18436 { ac_try='test -z "$ac_c_werror_flag"
18437 || test ! -s conftest.err'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; } &&
18443 { ac_try='test -s conftest$ac_exeext'
18444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18446 ac_status=$?
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; }; then
18449 ac_cv_func_res_send=yes
18450 else
18451 echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18453
18454 ac_cv_func_res_send=no
18455 fi
18456 rm -f conftest.err conftest.$ac_objext \
18457 conftest$ac_exeext conftest.$ac_ext
18458 fi
18459 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18460 echo "${ECHO_T}$ac_cv_func_res_send" >&6
18461 if test $ac_cv_func_res_send = yes; then
18462 :
18463 else
18464 echo "$as_me:$LINENO: checking for __res_send" >&5
18465 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
18466 if test "${ac_cv_func___res_send+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18468 else
18469 cat >conftest.$ac_ext <<_ACEOF
18470 /* confdefs.h. */
18471 _ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18475 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18477 #define __res_send innocuous___res_send
18478
18479 /* System header to define __stub macros and hopefully few prototypes,
18480 which can conflict with char __res_send (); below.
18481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18482 <limits.h> exists even on freestanding compilers. */
18483
18484 #ifdef __STDC__
18485 # include <limits.h>
18486 #else
18487 # include <assert.h>
18488 #endif
18489
18490 #undef __res_send
18491
18492 /* Override any gcc2 internal prototype to avoid an error. */
18493 #ifdef __cplusplus
18494 extern "C"
18495 {
18496 #endif
18497 /* We use char because int might match the return type of a gcc2
18498 builtin and then its argument prototype would still apply. */
18499 char __res_send ();
18500 /* The GNU C library defines this for functions which it implements
18501 to always fail with ENOSYS. Some functions are actually named
18502 something starting with __ and the normal name is an alias. */
18503 #if defined (__stub___res_send) || defined (__stub_____res_send)
18504 choke me
18505 #else
18506 char (*f) () = __res_send;
18507 #endif
18508 #ifdef __cplusplus
18509 }
18510 #endif
18511
18512 int
18513 main ()
18514 {
18515 return f != __res_send;
18516 ;
18517 return 0;
18518 }
18519 _ACEOF
18520 rm -f conftest.$ac_objext conftest$ac_exeext
18521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18522 (eval $ac_link) 2>conftest.er1
18523 ac_status=$?
18524 grep -v '^ *+' conftest.er1 >conftest.err
18525 rm -f conftest.er1
18526 cat conftest.err >&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } &&
18529 { ac_try='test -z "$ac_c_werror_flag"
18530 || test ! -s conftest.err'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try='test -s conftest$ac_exeext'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18542 ac_cv_func___res_send=yes
18543 else
18544 echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18546
18547 ac_cv_func___res_send=no
18548 fi
18549 rm -f conftest.err conftest.$ac_objext \
18550 conftest$ac_exeext conftest.$ac_ext
18551 fi
18552 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18553 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18554 if test $ac_cv_func___res_send = yes; then
18555 :
18556 else
18557 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18558 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18559 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18561 else
18562 ac_check_lib_save_LIBS=$LIBS
18563 LIBS="-lresolv $LIBS"
18564 cat >conftest.$ac_ext <<_ACEOF
18565 /* confdefs.h. */
18566 _ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18570
18571 /* Override any gcc2 internal prototype to avoid an error. */
18572 #ifdef __cplusplus
18573 extern "C"
18574 #endif
18575 /* We use char because int might match the return type of a gcc2
18576 builtin and then its argument prototype would still apply. */
18577 char res_send ();
18578 int
18579 main ()
18580 {
18581 res_send ();
18582 ;
18583 return 0;
18584 }
18585 _ACEOF
18586 rm -f conftest.$ac_objext conftest$ac_exeext
18587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18588 (eval $ac_link) 2>conftest.er1
18589 ac_status=$?
18590 grep -v '^ *+' conftest.er1 >conftest.err
18591 rm -f conftest.er1
18592 cat conftest.err >&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } &&
18595 { ac_try='test -z "$ac_c_werror_flag"
18596 || test ! -s conftest.err'
18597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598 (eval $ac_try) 2>&5
18599 ac_status=$?
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; } &&
18602 { ac_try='test -s conftest$ac_exeext'
18603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604 (eval $ac_try) 2>&5
18605 ac_status=$?
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; }; then
18608 ac_cv_lib_resolv_res_send=yes
18609 else
18610 echo "$as_me: failed program was:" >&5
18611 sed 's/^/| /' conftest.$ac_ext >&5
18612
18613 ac_cv_lib_resolv_res_send=no
18614 fi
18615 rm -f conftest.err conftest.$ac_objext \
18616 conftest$ac_exeext conftest.$ac_ext
18617 LIBS=$ac_check_lib_save_LIBS
18618 fi
18619 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18620 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18621 if test $ac_cv_lib_resolv_res_send = yes; then
18622 resolv=yes
18623 else
18624 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18625 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18626 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18628 else
18629 ac_check_lib_save_LIBS=$LIBS
18630 LIBS="-lresolv $LIBS"
18631 cat >conftest.$ac_ext <<_ACEOF
18632 /* confdefs.h. */
18633 _ACEOF
18634 cat confdefs.h >>conftest.$ac_ext
18635 cat >>conftest.$ac_ext <<_ACEOF
18636 /* end confdefs.h. */
18637
18638 /* Override any gcc2 internal prototype to avoid an error. */
18639 #ifdef __cplusplus
18640 extern "C"
18641 #endif
18642 /* We use char because int might match the return type of a gcc2
18643 builtin and then its argument prototype would still apply. */
18644 char __res_send ();
18645 int
18646 main ()
18647 {
18648 __res_send ();
18649 ;
18650 return 0;
18651 }
18652 _ACEOF
18653 rm -f conftest.$ac_objext conftest$ac_exeext
18654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18655 (eval $ac_link) 2>conftest.er1
18656 ac_status=$?
18657 grep -v '^ *+' conftest.er1 >conftest.err
18658 rm -f conftest.er1
18659 cat conftest.err >&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } &&
18662 { ac_try='test -z "$ac_c_werror_flag"
18663 || test ! -s conftest.err'
18664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18665 (eval $ac_try) 2>&5
18666 ac_status=$?
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; } &&
18669 { ac_try='test -s conftest$ac_exeext'
18670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18671 (eval $ac_try) 2>&5
18672 ac_status=$?
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; }; then
18675 ac_cv_lib_resolv___res_send=yes
18676 else
18677 echo "$as_me: failed program was:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18679
18680 ac_cv_lib_resolv___res_send=no
18681 fi
18682 rm -f conftest.err conftest.$ac_objext \
18683 conftest$ac_exeext conftest.$ac_ext
18684 LIBS=$ac_check_lib_save_LIBS
18685 fi
18686 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18687 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18688 if test $ac_cv_lib_resolv___res_send = yes; then
18689 resolv=yes
18690 fi
18691
18692 fi
18693
18694 fi
18695
18696 fi
18697
18698 if test "$resolv" = yes ; then
18699 RESOLVLIB=-lresolv
18700
18701 cat >>confdefs.h <<\_ACEOF
18702 #define HAVE_LIBRESOLV 1
18703 _ACEOF
18704
18705 else
18706 RESOLVLIB=
18707 fi
18708 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18709 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18710 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18712 else
18713 cat >conftest.$ac_ext <<_ACEOF
18714 /* confdefs.h. */
18715 _ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h. */
18719 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18721 #define hes_getmailhost innocuous_hes_getmailhost
18722
18723 /* System header to define __stub macros and hopefully few prototypes,
18724 which can conflict with char hes_getmailhost (); below.
18725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18726 <limits.h> exists even on freestanding compilers. */
18727
18728 #ifdef __STDC__
18729 # include <limits.h>
18730 #else
18731 # include <assert.h>
18732 #endif
18733
18734 #undef hes_getmailhost
18735
18736 /* Override any gcc2 internal prototype to avoid an error. */
18737 #ifdef __cplusplus
18738 extern "C"
18739 {
18740 #endif
18741 /* We use char because int might match the return type of a gcc2
18742 builtin and then its argument prototype would still apply. */
18743 char hes_getmailhost ();
18744 /* The GNU C library defines this for functions which it implements
18745 to always fail with ENOSYS. Some functions are actually named
18746 something starting with __ and the normal name is an alias. */
18747 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18748 choke me
18749 #else
18750 char (*f) () = hes_getmailhost;
18751 #endif
18752 #ifdef __cplusplus
18753 }
18754 #endif
18755
18756 int
18757 main ()
18758 {
18759 return f != hes_getmailhost;
18760 ;
18761 return 0;
18762 }
18763 _ACEOF
18764 rm -f conftest.$ac_objext conftest$ac_exeext
18765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18766 (eval $ac_link) 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } &&
18773 { ac_try='test -z "$ac_c_werror_flag"
18774 || test ! -s conftest.err'
18775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18776 (eval $ac_try) 2>&5
18777 ac_status=$?
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); }; } &&
18780 { ac_try='test -s conftest$ac_exeext'
18781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18782 (eval $ac_try) 2>&5
18783 ac_status=$?
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; }; then
18786 ac_cv_func_hes_getmailhost=yes
18787 else
18788 echo "$as_me: failed program was:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18790
18791 ac_cv_func_hes_getmailhost=no
18792 fi
18793 rm -f conftest.err conftest.$ac_objext \
18794 conftest$ac_exeext conftest.$ac_ext
18795 fi
18796 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18797 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18798 if test $ac_cv_func_hes_getmailhost = yes; then
18799 :
18800 else
18801 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18802 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18803 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18804 echo $ECHO_N "(cached) $ECHO_C" >&6
18805 else
18806 ac_check_lib_save_LIBS=$LIBS
18807 LIBS="-lhesiod $RESOLVLIB $LIBS"
18808 cat >conftest.$ac_ext <<_ACEOF
18809 /* confdefs.h. */
18810 _ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18814
18815 /* Override any gcc2 internal prototype to avoid an error. */
18816 #ifdef __cplusplus
18817 extern "C"
18818 #endif
18819 /* We use char because int might match the return type of a gcc2
18820 builtin and then its argument prototype would still apply. */
18821 char hes_getmailhost ();
18822 int
18823 main ()
18824 {
18825 hes_getmailhost ();
18826 ;
18827 return 0;
18828 }
18829 _ACEOF
18830 rm -f conftest.$ac_objext conftest$ac_exeext
18831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18832 (eval $ac_link) 2>conftest.er1
18833 ac_status=$?
18834 grep -v '^ *+' conftest.er1 >conftest.err
18835 rm -f conftest.er1
18836 cat conftest.err >&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } &&
18839 { ac_try='test -z "$ac_c_werror_flag"
18840 || test ! -s conftest.err'
18841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18842 (eval $ac_try) 2>&5
18843 ac_status=$?
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; } &&
18846 { ac_try='test -s conftest$ac_exeext'
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; }; then
18852 ac_cv_lib_hesiod_hes_getmailhost=yes
18853 else
18854 echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18856
18857 ac_cv_lib_hesiod_hes_getmailhost=no
18858 fi
18859 rm -f conftest.err conftest.$ac_objext \
18860 conftest$ac_exeext conftest.$ac_ext
18861 LIBS=$ac_check_lib_save_LIBS
18862 fi
18863 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18864 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18865 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18866
18867 cat >>confdefs.h <<\_ACEOF
18868 #define HAVE_LIBHESIOD 1
18869 _ACEOF
18870
18871 else
18872 :
18873 fi
18874
18875 fi
18876
18877 fi
18878
18879 # These tell us which Kerberos-related libraries to use.
18880 if test "${with_kerberos+set}" = set; then
18881
18882 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18883 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18884 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887 ac_check_lib_save_LIBS=$LIBS
18888 LIBS="-lcom_err $LIBS"
18889 cat >conftest.$ac_ext <<_ACEOF
18890 /* confdefs.h. */
18891 _ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h. */
18895
18896 /* Override any gcc2 internal prototype to avoid an error. */
18897 #ifdef __cplusplus
18898 extern "C"
18899 #endif
18900 /* We use char because int might match the return type of a gcc2
18901 builtin and then its argument prototype would still apply. */
18902 char com_err ();
18903 int
18904 main ()
18905 {
18906 com_err ();
18907 ;
18908 return 0;
18909 }
18910 _ACEOF
18911 rm -f conftest.$ac_objext conftest$ac_exeext
18912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18913 (eval $ac_link) 2>conftest.er1
18914 ac_status=$?
18915 grep -v '^ *+' conftest.er1 >conftest.err
18916 rm -f conftest.er1
18917 cat conftest.err >&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); } &&
18920 { ac_try='test -z "$ac_c_werror_flag"
18921 || test ! -s conftest.err'
18922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923 (eval $ac_try) 2>&5
18924 ac_status=$?
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); }; } &&
18927 { ac_try='test -s conftest$ac_exeext'
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; }; then
18933 ac_cv_lib_com_err_com_err=yes
18934 else
18935 echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18937
18938 ac_cv_lib_com_err_com_err=no
18939 fi
18940 rm -f conftest.err conftest.$ac_objext \
18941 conftest$ac_exeext conftest.$ac_ext
18942 LIBS=$ac_check_lib_save_LIBS
18943 fi
18944 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18945 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18946 if test $ac_cv_lib_com_err_com_err = yes; then
18947 cat >>confdefs.h <<_ACEOF
18948 #define HAVE_LIBCOM_ERR 1
18949 _ACEOF
18950
18951 LIBS="-lcom_err $LIBS"
18952
18953 fi
18954
18955
18956 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18957 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18958 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18959 echo $ECHO_N "(cached) $ECHO_C" >&6
18960 else
18961 ac_check_lib_save_LIBS=$LIBS
18962 LIBS="-lk5crypto $LIBS"
18963 cat >conftest.$ac_ext <<_ACEOF
18964 /* confdefs.h. */
18965 _ACEOF
18966 cat confdefs.h >>conftest.$ac_ext
18967 cat >>conftest.$ac_ext <<_ACEOF
18968 /* end confdefs.h. */
18969
18970 /* Override any gcc2 internal prototype to avoid an error. */
18971 #ifdef __cplusplus
18972 extern "C"
18973 #endif
18974 /* We use char because int might match the return type of a gcc2
18975 builtin and then its argument prototype would still apply. */
18976 char mit_des_cbc_encrypt ();
18977 int
18978 main ()
18979 {
18980 mit_des_cbc_encrypt ();
18981 ;
18982 return 0;
18983 }
18984 _ACEOF
18985 rm -f conftest.$ac_objext conftest$ac_exeext
18986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18987 (eval $ac_link) 2>conftest.er1
18988 ac_status=$?
18989 grep -v '^ *+' conftest.er1 >conftest.err
18990 rm -f conftest.er1
18991 cat conftest.err >&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } &&
18994 { ac_try='test -z "$ac_c_werror_flag"
18995 || test ! -s conftest.err'
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; } &&
19001 { ac_try='test -s conftest$ac_exeext'
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; }; then
19007 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19008 else
19009 echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19011
19012 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19013 fi
19014 rm -f conftest.err conftest.$ac_objext \
19015 conftest$ac_exeext conftest.$ac_ext
19016 LIBS=$ac_check_lib_save_LIBS
19017 fi
19018 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19019 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19020 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19021 cat >>confdefs.h <<_ACEOF
19022 #define HAVE_LIBK5CRYPTO 1
19023 _ACEOF
19024
19025 LIBS="-lk5crypto $LIBS"
19026
19027 fi
19028
19029
19030 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19031 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19032 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19033 echo $ECHO_N "(cached) $ECHO_C" >&6
19034 else
19035 ac_check_lib_save_LIBS=$LIBS
19036 LIBS="-lcrypto $LIBS"
19037 cat >conftest.$ac_ext <<_ACEOF
19038 /* confdefs.h. */
19039 _ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h. */
19043
19044 /* Override any gcc2 internal prototype to avoid an error. */
19045 #ifdef __cplusplus
19046 extern "C"
19047 #endif
19048 /* We use char because int might match the return type of a gcc2
19049 builtin and then its argument prototype would still apply. */
19050 char mit_des_cbc_encrypt ();
19051 int
19052 main ()
19053 {
19054 mit_des_cbc_encrypt ();
19055 ;
19056 return 0;
19057 }
19058 _ACEOF
19059 rm -f conftest.$ac_objext conftest$ac_exeext
19060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19061 (eval $ac_link) 2>conftest.er1
19062 ac_status=$?
19063 grep -v '^ *+' conftest.er1 >conftest.err
19064 rm -f conftest.er1
19065 cat conftest.err >&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } &&
19068 { ac_try='test -z "$ac_c_werror_flag"
19069 || test ! -s conftest.err'
19070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071 (eval $ac_try) 2>&5
19072 ac_status=$?
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; } &&
19075 { ac_try='test -s conftest$ac_exeext'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19078 ac_status=$?
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
19081 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19082 else
19083 echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19085
19086 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19087 fi
19088 rm -f conftest.err conftest.$ac_objext \
19089 conftest$ac_exeext conftest.$ac_ext
19090 LIBS=$ac_check_lib_save_LIBS
19091 fi
19092 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19093 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19094 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19095 cat >>confdefs.h <<_ACEOF
19096 #define HAVE_LIBCRYPTO 1
19097 _ACEOF
19098
19099 LIBS="-lcrypto $LIBS"
19100
19101 fi
19102
19103
19104 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19105 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19106 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19107 echo $ECHO_N "(cached) $ECHO_C" >&6
19108 else
19109 ac_check_lib_save_LIBS=$LIBS
19110 LIBS="-lkrb5 $LIBS"
19111 cat >conftest.$ac_ext <<_ACEOF
19112 /* confdefs.h. */
19113 _ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19117
19118 /* Override any gcc2 internal prototype to avoid an error. */
19119 #ifdef __cplusplus
19120 extern "C"
19121 #endif
19122 /* We use char because int might match the return type of a gcc2
19123 builtin and then its argument prototype would still apply. */
19124 char krb5_init_context ();
19125 int
19126 main ()
19127 {
19128 krb5_init_context ();
19129 ;
19130 return 0;
19131 }
19132 _ACEOF
19133 rm -f conftest.$ac_objext conftest$ac_exeext
19134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19135 (eval $ac_link) 2>conftest.er1
19136 ac_status=$?
19137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } &&
19142 { ac_try='test -z "$ac_c_werror_flag"
19143 || test ! -s conftest.err'
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; } &&
19149 { ac_try='test -s conftest$ac_exeext'
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; }; then
19155 ac_cv_lib_krb5_krb5_init_context=yes
19156 else
19157 echo "$as_me: failed program was:" >&5
19158 sed 's/^/| /' conftest.$ac_ext >&5
19159
19160 ac_cv_lib_krb5_krb5_init_context=no
19161 fi
19162 rm -f conftest.err conftest.$ac_objext \
19163 conftest$ac_exeext conftest.$ac_ext
19164 LIBS=$ac_check_lib_save_LIBS
19165 fi
19166 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19167 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19168 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19169 cat >>confdefs.h <<_ACEOF
19170 #define HAVE_LIBKRB5 1
19171 _ACEOF
19172
19173 LIBS="-lkrb5 $LIBS"
19174
19175 fi
19176
19177 if test "${with_kerberos5+set}" != set; then
19178
19179 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19180 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19181 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19183 else
19184 ac_check_lib_save_LIBS=$LIBS
19185 LIBS="-ldes425 $LIBS"
19186 cat >conftest.$ac_ext <<_ACEOF
19187 /* confdefs.h. */
19188 _ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19192
19193 /* Override any gcc2 internal prototype to avoid an error. */
19194 #ifdef __cplusplus
19195 extern "C"
19196 #endif
19197 /* We use char because int might match the return type of a gcc2
19198 builtin and then its argument prototype would still apply. */
19199 char des_cbc_encrypt ();
19200 int
19201 main ()
19202 {
19203 des_cbc_encrypt ();
19204 ;
19205 return 0;
19206 }
19207 _ACEOF
19208 rm -f conftest.$ac_objext conftest$ac_exeext
19209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19210 (eval $ac_link) 2>conftest.er1
19211 ac_status=$?
19212 grep -v '^ *+' conftest.er1 >conftest.err
19213 rm -f conftest.er1
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } &&
19217 { ac_try='test -z "$ac_c_werror_flag"
19218 || test ! -s conftest.err'
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); }; } &&
19224 { ac_try='test -s conftest$ac_exeext'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; }; then
19230 ac_cv_lib_des425_des_cbc_encrypt=yes
19231 else
19232 echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19234
19235 ac_cv_lib_des425_des_cbc_encrypt=no
19236 fi
19237 rm -f conftest.err conftest.$ac_objext \
19238 conftest$ac_exeext conftest.$ac_ext
19239 LIBS=$ac_check_lib_save_LIBS
19240 fi
19241 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19242 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19243 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19244 cat >>confdefs.h <<_ACEOF
19245 #define HAVE_LIBDES425 1
19246 _ACEOF
19247
19248 LIBS="-ldes425 $LIBS"
19249
19250 else
19251
19252 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19253 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19254 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19255 echo $ECHO_N "(cached) $ECHO_C" >&6
19256 else
19257 ac_check_lib_save_LIBS=$LIBS
19258 LIBS="-ldes $LIBS"
19259 cat >conftest.$ac_ext <<_ACEOF
19260 /* confdefs.h. */
19261 _ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h. */
19265
19266 /* Override any gcc2 internal prototype to avoid an error. */
19267 #ifdef __cplusplus
19268 extern "C"
19269 #endif
19270 /* We use char because int might match the return type of a gcc2
19271 builtin and then its argument prototype would still apply. */
19272 char des_cbc_encrypt ();
19273 int
19274 main ()
19275 {
19276 des_cbc_encrypt ();
19277 ;
19278 return 0;
19279 }
19280 _ACEOF
19281 rm -f conftest.$ac_objext conftest$ac_exeext
19282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19283 (eval $ac_link) 2>conftest.er1
19284 ac_status=$?
19285 grep -v '^ *+' conftest.er1 >conftest.err
19286 rm -f conftest.er1
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
19290 { ac_try='test -z "$ac_c_werror_flag"
19291 || test ! -s conftest.err'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; } &&
19297 { ac_try='test -s conftest$ac_exeext'
19298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299 (eval $ac_try) 2>&5
19300 ac_status=$?
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; }; then
19303 ac_cv_lib_des_des_cbc_encrypt=yes
19304 else
19305 echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19307
19308 ac_cv_lib_des_des_cbc_encrypt=no
19309 fi
19310 rm -f conftest.err conftest.$ac_objext \
19311 conftest$ac_exeext conftest.$ac_ext
19312 LIBS=$ac_check_lib_save_LIBS
19313 fi
19314 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19315 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19316 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19317 cat >>confdefs.h <<_ACEOF
19318 #define HAVE_LIBDES 1
19319 _ACEOF
19320
19321 LIBS="-ldes $LIBS"
19322
19323 fi
19324
19325 fi
19326
19327
19328 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19329 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19330 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19331 echo $ECHO_N "(cached) $ECHO_C" >&6
19332 else
19333 ac_check_lib_save_LIBS=$LIBS
19334 LIBS="-lkrb4 $LIBS"
19335 cat >conftest.$ac_ext <<_ACEOF
19336 /* confdefs.h. */
19337 _ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19341
19342 /* Override any gcc2 internal prototype to avoid an error. */
19343 #ifdef __cplusplus
19344 extern "C"
19345 #endif
19346 /* We use char because int might match the return type of a gcc2
19347 builtin and then its argument prototype would still apply. */
19348 char krb_get_cred ();
19349 int
19350 main ()
19351 {
19352 krb_get_cred ();
19353 ;
19354 return 0;
19355 }
19356 _ACEOF
19357 rm -f conftest.$ac_objext conftest$ac_exeext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19359 (eval $ac_link) 2>conftest.er1
19360 ac_status=$?
19361 grep -v '^ *+' conftest.er1 >conftest.err
19362 rm -f conftest.er1
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } &&
19366 { ac_try='test -z "$ac_c_werror_flag"
19367 || test ! -s conftest.err'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; } &&
19373 { ac_try='test -s conftest$ac_exeext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_lib_krb4_krb_get_cred=yes
19380 else
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384 ac_cv_lib_krb4_krb_get_cred=no
19385 fi
19386 rm -f conftest.err conftest.$ac_objext \
19387 conftest$ac_exeext conftest.$ac_ext
19388 LIBS=$ac_check_lib_save_LIBS
19389 fi
19390 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19391 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
19392 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19393 cat >>confdefs.h <<_ACEOF
19394 #define HAVE_LIBKRB4 1
19395 _ACEOF
19396
19397 LIBS="-lkrb4 $LIBS"
19398
19399 else
19400
19401 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19402 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
19403 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
19405 else
19406 ac_check_lib_save_LIBS=$LIBS
19407 LIBS="-lkrb $LIBS"
19408 cat >conftest.$ac_ext <<_ACEOF
19409 /* confdefs.h. */
19410 _ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19414
19415 /* Override any gcc2 internal prototype to avoid an error. */
19416 #ifdef __cplusplus
19417 extern "C"
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 krb_get_cred ();
19422 int
19423 main ()
19424 {
19425 krb_get_cred ();
19426 ;
19427 return 0;
19428 }
19429 _ACEOF
19430 rm -f conftest.$ac_objext conftest$ac_exeext
19431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19432 (eval $ac_link) 2>conftest.er1
19433 ac_status=$?
19434 grep -v '^ *+' conftest.er1 >conftest.err
19435 rm -f conftest.er1
19436 cat conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } &&
19439 { ac_try='test -z "$ac_c_werror_flag"
19440 || test ! -s conftest.err'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; } &&
19446 { ac_try='test -s conftest$ac_exeext'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19452 ac_cv_lib_krb_krb_get_cred=yes
19453 else
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19456
19457 ac_cv_lib_krb_krb_get_cred=no
19458 fi
19459 rm -f conftest.err conftest.$ac_objext \
19460 conftest$ac_exeext conftest.$ac_ext
19461 LIBS=$ac_check_lib_save_LIBS
19462 fi
19463 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19464 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
19465 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19466 cat >>confdefs.h <<_ACEOF
19467 #define HAVE_LIBKRB 1
19468 _ACEOF
19469
19470 LIBS="-lkrb $LIBS"
19471
19472 fi
19473
19474 fi
19475
19476 fi
19477
19478 if test "${with_kerberos5+set}" = set; then
19479
19480 for ac_header in krb5.h
19481 do
19482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19484 echo "$as_me:$LINENO: checking for $ac_header" >&5
19485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19488 fi
19489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19491 else
19492 # Is the header compilable?
19493 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19495 cat >conftest.$ac_ext <<_ACEOF
19496 /* confdefs.h. */
19497 _ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h. */
19501 $ac_includes_default
19502 #include <$ac_header>
19503 _ACEOF
19504 rm -f conftest.$ac_objext
19505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19506 (eval $ac_compile) 2>conftest.er1
19507 ac_status=$?
19508 grep -v '^ *+' conftest.er1 >conftest.err
19509 rm -f conftest.er1
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } &&
19513 { ac_try='test -z "$ac_c_werror_flag"
19514 || test ! -s conftest.err'
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19517 ac_status=$?
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; } &&
19520 { ac_try='test -s conftest.$ac_objext'
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; }; then
19526 ac_header_compiler=yes
19527 else
19528 echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19530
19531 ac_header_compiler=no
19532 fi
19533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19534 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19535 echo "${ECHO_T}$ac_header_compiler" >&6
19536
19537 # Is the header present?
19538 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19540 cat >conftest.$ac_ext <<_ACEOF
19541 /* confdefs.h. */
19542 _ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h. */
19546 #include <$ac_header>
19547 _ACEOF
19548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19550 ac_status=$?
19551 grep -v '^ *+' conftest.er1 >conftest.err
19552 rm -f conftest.er1
19553 cat conftest.err >&5
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } >/dev/null; then
19556 if test -s conftest.err; then
19557 ac_cpp_err=$ac_c_preproc_warn_flag
19558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19559 else
19560 ac_cpp_err=
19561 fi
19562 else
19563 ac_cpp_err=yes
19564 fi
19565 if test -z "$ac_cpp_err"; then
19566 ac_header_preproc=yes
19567 else
19568 echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19570
19571 ac_header_preproc=no
19572 fi
19573 rm -f conftest.err conftest.$ac_ext
19574 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19575 echo "${ECHO_T}$ac_header_preproc" >&6
19576
19577 # So? What about this header?
19578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19579 yes:no: )
19580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19584 ac_header_preproc=yes
19585 ;;
19586 no:yes:* )
19587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19594 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19599 (
19600 cat <<\_ASBOX
19601 ## ------------------------------------------ ##
19602 ## Report this to the AC_PACKAGE_NAME lists. ##
19603 ## ------------------------------------------ ##
19604 _ASBOX
19605 ) |
19606 sed "s/^/$as_me: WARNING: /" >&2
19607 ;;
19608 esac
19609 echo "$as_me:$LINENO: checking for $ac_header" >&5
19610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19612 echo $ECHO_N "(cached) $ECHO_C" >&6
19613 else
19614 eval "$as_ac_Header=\$ac_header_preproc"
19615 fi
19616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19618
19619 fi
19620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19621 cat >>confdefs.h <<_ACEOF
19622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19623 _ACEOF
19624
19625 fi
19626
19627 done
19628
19629 else
19630
19631 for ac_header in des.h
19632 do
19633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19635 echo "$as_me:$LINENO: checking for $ac_header" >&5
19636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19638 echo $ECHO_N "(cached) $ECHO_C" >&6
19639 fi
19640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19642 else
19643 # Is the header compilable?
19644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19646 cat >conftest.$ac_ext <<_ACEOF
19647 /* confdefs.h. */
19648 _ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 $ac_includes_default
19653 #include <$ac_header>
19654 _ACEOF
19655 rm -f conftest.$ac_objext
19656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19657 (eval $ac_compile) 2>conftest.er1
19658 ac_status=$?
19659 grep -v '^ *+' conftest.er1 >conftest.err
19660 rm -f conftest.er1
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } &&
19664 { ac_try='test -z "$ac_c_werror_flag"
19665 || test ! -s conftest.err'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; } &&
19671 { ac_try='test -s conftest.$ac_objext'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19674 ac_status=$?
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; }; then
19677 ac_header_compiler=yes
19678 else
19679 echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19681
19682 ac_header_compiler=no
19683 fi
19684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19686 echo "${ECHO_T}$ac_header_compiler" >&6
19687
19688 # Is the header present?
19689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19691 cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h. */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19697 #include <$ac_header>
19698 _ACEOF
19699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19701 ac_status=$?
19702 grep -v '^ *+' conftest.er1 >conftest.err
19703 rm -f conftest.er1
19704 cat conftest.err >&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); } >/dev/null; then
19707 if test -s conftest.err; then
19708 ac_cpp_err=$ac_c_preproc_warn_flag
19709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19710 else
19711 ac_cpp_err=
19712 fi
19713 else
19714 ac_cpp_err=yes
19715 fi
19716 if test -z "$ac_cpp_err"; then
19717 ac_header_preproc=yes
19718 else
19719 echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19721
19722 ac_header_preproc=no
19723 fi
19724 rm -f conftest.err conftest.$ac_ext
19725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19726 echo "${ECHO_T}$ac_header_preproc" >&6
19727
19728 # So? What about this header?
19729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19730 yes:no: )
19731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19735 ac_header_preproc=yes
19736 ;;
19737 no:yes:* )
19738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19750 (
19751 cat <<\_ASBOX
19752 ## ------------------------------------------ ##
19753 ## Report this to the AC_PACKAGE_NAME lists. ##
19754 ## ------------------------------------------ ##
19755 _ASBOX
19756 ) |
19757 sed "s/^/$as_me: WARNING: /" >&2
19758 ;;
19759 esac
19760 echo "$as_me:$LINENO: checking for $ac_header" >&5
19761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19763 echo $ECHO_N "(cached) $ECHO_C" >&6
19764 else
19765 eval "$as_ac_Header=\$ac_header_preproc"
19766 fi
19767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19769
19770 fi
19771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19772 cat >>confdefs.h <<_ACEOF
19773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19774 _ACEOF
19775
19776 else
19777
19778 for ac_header in kerberosIV/des.h
19779 do
19780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19782 echo "$as_me:$LINENO: checking for $ac_header" >&5
19783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19786 fi
19787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19789 else
19790 # Is the header compilable?
19791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19793 cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h. */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19799 $ac_includes_default
19800 #include <$ac_header>
19801 _ACEOF
19802 rm -f conftest.$ac_objext
19803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19804 (eval $ac_compile) 2>conftest.er1
19805 ac_status=$?
19806 grep -v '^ *+' conftest.er1 >conftest.err
19807 rm -f conftest.er1
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } &&
19811 { ac_try='test -z "$ac_c_werror_flag"
19812 || test ! -s conftest.err'
19813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; } &&
19818 { ac_try='test -s conftest.$ac_objext'
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; }; then
19824 ac_header_compiler=yes
19825 else
19826 echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19828
19829 ac_header_compiler=no
19830 fi
19831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19833 echo "${ECHO_T}$ac_header_compiler" >&6
19834
19835 # Is the header present?
19836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19838 cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h. */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19844 #include <$ac_header>
19845 _ACEOF
19846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19848 ac_status=$?
19849 grep -v '^ *+' conftest.er1 >conftest.err
19850 rm -f conftest.er1
19851 cat conftest.err >&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } >/dev/null; then
19854 if test -s conftest.err; then
19855 ac_cpp_err=$ac_c_preproc_warn_flag
19856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19857 else
19858 ac_cpp_err=
19859 fi
19860 else
19861 ac_cpp_err=yes
19862 fi
19863 if test -z "$ac_cpp_err"; then
19864 ac_header_preproc=yes
19865 else
19866 echo "$as_me: failed program was:" >&5
19867 sed 's/^/| /' conftest.$ac_ext >&5
19868
19869 ac_header_preproc=no
19870 fi
19871 rm -f conftest.err conftest.$ac_ext
19872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19873 echo "${ECHO_T}$ac_header_preproc" >&6
19874
19875 # So? What about this header?
19876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19877 yes:no: )
19878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19882 ac_header_preproc=yes
19883 ;;
19884 no:yes:* )
19885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19897 (
19898 cat <<\_ASBOX
19899 ## ------------------------------------------ ##
19900 ## Report this to the AC_PACKAGE_NAME lists. ##
19901 ## ------------------------------------------ ##
19902 _ASBOX
19903 ) |
19904 sed "s/^/$as_me: WARNING: /" >&2
19905 ;;
19906 esac
19907 echo "$as_me:$LINENO: checking for $ac_header" >&5
19908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19911 else
19912 eval "$as_ac_Header=\$ac_header_preproc"
19913 fi
19914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19916
19917 fi
19918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19919 cat >>confdefs.h <<_ACEOF
19920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19921 _ACEOF
19922
19923 else
19924
19925 for ac_header in kerberos/des.h
19926 do
19927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19929 echo "$as_me:$LINENO: checking for $ac_header" >&5
19930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19932 echo $ECHO_N "(cached) $ECHO_C" >&6
19933 fi
19934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19936 else
19937 # Is the header compilable?
19938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19940 cat >conftest.$ac_ext <<_ACEOF
19941 /* confdefs.h. */
19942 _ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19946 $ac_includes_default
19947 #include <$ac_header>
19948 _ACEOF
19949 rm -f conftest.$ac_objext
19950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19951 (eval $ac_compile) 2>conftest.er1
19952 ac_status=$?
19953 grep -v '^ *+' conftest.er1 >conftest.err
19954 rm -f conftest.er1
19955 cat conftest.err >&5
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); } &&
19958 { ac_try='test -z "$ac_c_werror_flag"
19959 || test ! -s conftest.err'
19960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19961 (eval $ac_try) 2>&5
19962 ac_status=$?
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; } &&
19965 { ac_try='test -s conftest.$ac_objext'
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; }; then
19971 ac_header_compiler=yes
19972 else
19973 echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19975
19976 ac_header_compiler=no
19977 fi
19978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19980 echo "${ECHO_T}$ac_header_compiler" >&6
19981
19982 # Is the header present?
19983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19985 cat >conftest.$ac_ext <<_ACEOF
19986 /* confdefs.h. */
19987 _ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19991 #include <$ac_header>
19992 _ACEOF
19993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19995 ac_status=$?
19996 grep -v '^ *+' conftest.er1 >conftest.err
19997 rm -f conftest.er1
19998 cat conftest.err >&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); } >/dev/null; then
20001 if test -s conftest.err; then
20002 ac_cpp_err=$ac_c_preproc_warn_flag
20003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20004 else
20005 ac_cpp_err=
20006 fi
20007 else
20008 ac_cpp_err=yes
20009 fi
20010 if test -z "$ac_cpp_err"; then
20011 ac_header_preproc=yes
20012 else
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20015
20016 ac_header_preproc=no
20017 fi
20018 rm -f conftest.err conftest.$ac_ext
20019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20020 echo "${ECHO_T}$ac_header_preproc" >&6
20021
20022 # So? What about this header?
20023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20024 yes:no: )
20025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20029 ac_header_preproc=yes
20030 ;;
20031 no:yes:* )
20032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20044 (
20045 cat <<\_ASBOX
20046 ## ------------------------------------------ ##
20047 ## Report this to the AC_PACKAGE_NAME lists. ##
20048 ## ------------------------------------------ ##
20049 _ASBOX
20050 ) |
20051 sed "s/^/$as_me: WARNING: /" >&2
20052 ;;
20053 esac
20054 echo "$as_me:$LINENO: checking for $ac_header" >&5
20055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20057 echo $ECHO_N "(cached) $ECHO_C" >&6
20058 else
20059 eval "$as_ac_Header=\$ac_header_preproc"
20060 fi
20061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20063
20064 fi
20065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20066 cat >>confdefs.h <<_ACEOF
20067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20068 _ACEOF
20069
20070 fi
20071
20072 done
20073
20074 fi
20075
20076 done
20077
20078 fi
20079
20080 done
20081
20082
20083 for ac_header in krb.h
20084 do
20085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20087 echo "$as_me:$LINENO: checking for $ac_header" >&5
20088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 fi
20092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20094 else
20095 # Is the header compilable?
20096 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20098 cat >conftest.$ac_ext <<_ACEOF
20099 /* confdefs.h. */
20100 _ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20104 $ac_includes_default
20105 #include <$ac_header>
20106 _ACEOF
20107 rm -f conftest.$ac_objext
20108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20109 (eval $ac_compile) 2>conftest.er1
20110 ac_status=$?
20111 grep -v '^ *+' conftest.er1 >conftest.err
20112 rm -f conftest.er1
20113 cat conftest.err >&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } &&
20116 { ac_try='test -z "$ac_c_werror_flag"
20117 || test ! -s conftest.err'
20118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20119 (eval $ac_try) 2>&5
20120 ac_status=$?
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; } &&
20123 { ac_try='test -s conftest.$ac_objext'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20126 ac_status=$?
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; }; then
20129 ac_header_compiler=yes
20130 else
20131 echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.$ac_ext >&5
20133
20134 ac_header_compiler=no
20135 fi
20136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20137 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20138 echo "${ECHO_T}$ac_header_compiler" >&6
20139
20140 # Is the header present?
20141 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20143 cat >conftest.$ac_ext <<_ACEOF
20144 /* confdefs.h. */
20145 _ACEOF
20146 cat confdefs.h >>conftest.$ac_ext
20147 cat >>conftest.$ac_ext <<_ACEOF
20148 /* end confdefs.h. */
20149 #include <$ac_header>
20150 _ACEOF
20151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20153 ac_status=$?
20154 grep -v '^ *+' conftest.er1 >conftest.err
20155 rm -f conftest.er1
20156 cat conftest.err >&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); } >/dev/null; then
20159 if test -s conftest.err; then
20160 ac_cpp_err=$ac_c_preproc_warn_flag
20161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20162 else
20163 ac_cpp_err=
20164 fi
20165 else
20166 ac_cpp_err=yes
20167 fi
20168 if test -z "$ac_cpp_err"; then
20169 ac_header_preproc=yes
20170 else
20171 echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20173
20174 ac_header_preproc=no
20175 fi
20176 rm -f conftest.err conftest.$ac_ext
20177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20178 echo "${ECHO_T}$ac_header_preproc" >&6
20179
20180 # So? What about this header?
20181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20182 yes:no: )
20183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20187 ac_header_preproc=yes
20188 ;;
20189 no:yes:* )
20190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20202 (
20203 cat <<\_ASBOX
20204 ## ------------------------------------------ ##
20205 ## Report this to the AC_PACKAGE_NAME lists. ##
20206 ## ------------------------------------------ ##
20207 _ASBOX
20208 ) |
20209 sed "s/^/$as_me: WARNING: /" >&2
20210 ;;
20211 esac
20212 echo "$as_me:$LINENO: checking for $ac_header" >&5
20213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20215 echo $ECHO_N "(cached) $ECHO_C" >&6
20216 else
20217 eval "$as_ac_Header=\$ac_header_preproc"
20218 fi
20219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20221
20222 fi
20223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20224 cat >>confdefs.h <<_ACEOF
20225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20226 _ACEOF
20227
20228 else
20229
20230 for ac_header in kerberosIV/krb.h
20231 do
20232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20234 echo "$as_me:$LINENO: checking for $ac_header" >&5
20235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20238 fi
20239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20241 else
20242 # Is the header compilable?
20243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20245 cat >conftest.$ac_ext <<_ACEOF
20246 /* confdefs.h. */
20247 _ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h. */
20251 $ac_includes_default
20252 #include <$ac_header>
20253 _ACEOF
20254 rm -f conftest.$ac_objext
20255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20256 (eval $ac_compile) 2>conftest.er1
20257 ac_status=$?
20258 grep -v '^ *+' conftest.er1 >conftest.err
20259 rm -f conftest.er1
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } &&
20263 { ac_try='test -z "$ac_c_werror_flag"
20264 || test ! -s conftest.err'
20265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266 (eval $ac_try) 2>&5
20267 ac_status=$?
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; } &&
20270 { ac_try='test -s conftest.$ac_objext'
20271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272 (eval $ac_try) 2>&5
20273 ac_status=$?
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); }; }; then
20276 ac_header_compiler=yes
20277 else
20278 echo "$as_me: failed program was:" >&5
20279 sed 's/^/| /' conftest.$ac_ext >&5
20280
20281 ac_header_compiler=no
20282 fi
20283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20285 echo "${ECHO_T}$ac_header_compiler" >&6
20286
20287 # Is the header present?
20288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20290 cat >conftest.$ac_ext <<_ACEOF
20291 /* confdefs.h. */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20296 #include <$ac_header>
20297 _ACEOF
20298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20300 ac_status=$?
20301 grep -v '^ *+' conftest.er1 >conftest.err
20302 rm -f conftest.er1
20303 cat conftest.err >&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } >/dev/null; then
20306 if test -s conftest.err; then
20307 ac_cpp_err=$ac_c_preproc_warn_flag
20308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20309 else
20310 ac_cpp_err=
20311 fi
20312 else
20313 ac_cpp_err=yes
20314 fi
20315 if test -z "$ac_cpp_err"; then
20316 ac_header_preproc=yes
20317 else
20318 echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.$ac_ext >&5
20320
20321 ac_header_preproc=no
20322 fi
20323 rm -f conftest.err conftest.$ac_ext
20324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20325 echo "${ECHO_T}$ac_header_preproc" >&6
20326
20327 # So? What about this header?
20328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20329 yes:no: )
20330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20334 ac_header_preproc=yes
20335 ;;
20336 no:yes:* )
20337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20349 (
20350 cat <<\_ASBOX
20351 ## ------------------------------------------ ##
20352 ## Report this to the AC_PACKAGE_NAME lists. ##
20353 ## ------------------------------------------ ##
20354 _ASBOX
20355 ) |
20356 sed "s/^/$as_me: WARNING: /" >&2
20357 ;;
20358 esac
20359 echo "$as_me:$LINENO: checking for $ac_header" >&5
20360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20363 else
20364 eval "$as_ac_Header=\$ac_header_preproc"
20365 fi
20366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20368
20369 fi
20370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20371 cat >>confdefs.h <<_ACEOF
20372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20373 _ACEOF
20374
20375 else
20376
20377 for ac_header in kerberos/krb.h
20378 do
20379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20381 echo "$as_me:$LINENO: checking for $ac_header" >&5
20382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20384 echo $ECHO_N "(cached) $ECHO_C" >&6
20385 fi
20386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20388 else
20389 # Is the header compilable?
20390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20392 cat >conftest.$ac_ext <<_ACEOF
20393 /* confdefs.h. */
20394 _ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h. */
20398 $ac_includes_default
20399 #include <$ac_header>
20400 _ACEOF
20401 rm -f conftest.$ac_objext
20402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20403 (eval $ac_compile) 2>conftest.er1
20404 ac_status=$?
20405 grep -v '^ *+' conftest.er1 >conftest.err
20406 rm -f conftest.er1
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } &&
20410 { ac_try='test -z "$ac_c_werror_flag"
20411 || test ! -s conftest.err'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20414 ac_status=$?
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; } &&
20417 { ac_try='test -s conftest.$ac_objext'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20420 ac_status=$?
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; }; then
20423 ac_header_compiler=yes
20424 else
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20427
20428 ac_header_compiler=no
20429 fi
20430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20432 echo "${ECHO_T}$ac_header_compiler" >&6
20433
20434 # Is the header present?
20435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20437 cat >conftest.$ac_ext <<_ACEOF
20438 /* confdefs.h. */
20439 _ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20443 #include <$ac_header>
20444 _ACEOF
20445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20447 ac_status=$?
20448 grep -v '^ *+' conftest.er1 >conftest.err
20449 rm -f conftest.er1
20450 cat conftest.err >&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } >/dev/null; then
20453 if test -s conftest.err; then
20454 ac_cpp_err=$ac_c_preproc_warn_flag
20455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20456 else
20457 ac_cpp_err=
20458 fi
20459 else
20460 ac_cpp_err=yes
20461 fi
20462 if test -z "$ac_cpp_err"; then
20463 ac_header_preproc=yes
20464 else
20465 echo "$as_me: failed program was:" >&5
20466 sed 's/^/| /' conftest.$ac_ext >&5
20467
20468 ac_header_preproc=no
20469 fi
20470 rm -f conftest.err conftest.$ac_ext
20471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20472 echo "${ECHO_T}$ac_header_preproc" >&6
20473
20474 # So? What about this header?
20475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20476 yes:no: )
20477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20481 ac_header_preproc=yes
20482 ;;
20483 no:yes:* )
20484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20496 (
20497 cat <<\_ASBOX
20498 ## ------------------------------------------ ##
20499 ## Report this to the AC_PACKAGE_NAME lists. ##
20500 ## ------------------------------------------ ##
20501 _ASBOX
20502 ) |
20503 sed "s/^/$as_me: WARNING: /" >&2
20504 ;;
20505 esac
20506 echo "$as_me:$LINENO: checking for $ac_header" >&5
20507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
20510 else
20511 eval "$as_ac_Header=\$ac_header_preproc"
20512 fi
20513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20515
20516 fi
20517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20518 cat >>confdefs.h <<_ACEOF
20519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20520 _ACEOF
20521
20522 fi
20523
20524 done
20525
20526 fi
20527
20528 done
20529
20530 fi
20531
20532 done
20533
20534 fi
20535
20536 for ac_header in com_err.h
20537 do
20538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20540 echo "$as_me:$LINENO: checking for $ac_header" >&5
20541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20543 echo $ECHO_N "(cached) $ECHO_C" >&6
20544 fi
20545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20547 else
20548 # Is the header compilable?
20549 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20551 cat >conftest.$ac_ext <<_ACEOF
20552 /* confdefs.h. */
20553 _ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20557 $ac_includes_default
20558 #include <$ac_header>
20559 _ACEOF
20560 rm -f conftest.$ac_objext
20561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20562 (eval $ac_compile) 2>conftest.er1
20563 ac_status=$?
20564 grep -v '^ *+' conftest.er1 >conftest.err
20565 rm -f conftest.er1
20566 cat conftest.err >&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } &&
20569 { ac_try='test -z "$ac_c_werror_flag"
20570 || test ! -s conftest.err'
20571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572 (eval $ac_try) 2>&5
20573 ac_status=$?
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); }; } &&
20576 { ac_try='test -s conftest.$ac_objext'
20577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578 (eval $ac_try) 2>&5
20579 ac_status=$?
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); }; }; then
20582 ac_header_compiler=yes
20583 else
20584 echo "$as_me: failed program was:" >&5
20585 sed 's/^/| /' conftest.$ac_ext >&5
20586
20587 ac_header_compiler=no
20588 fi
20589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20590 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20591 echo "${ECHO_T}$ac_header_compiler" >&6
20592
20593 # Is the header present?
20594 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20596 cat >conftest.$ac_ext <<_ACEOF
20597 /* confdefs.h. */
20598 _ACEOF
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h. */
20602 #include <$ac_header>
20603 _ACEOF
20604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20606 ac_status=$?
20607 grep -v '^ *+' conftest.er1 >conftest.err
20608 rm -f conftest.er1
20609 cat conftest.err >&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } >/dev/null; then
20612 if test -s conftest.err; then
20613 ac_cpp_err=$ac_c_preproc_warn_flag
20614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20615 else
20616 ac_cpp_err=
20617 fi
20618 else
20619 ac_cpp_err=yes
20620 fi
20621 if test -z "$ac_cpp_err"; then
20622 ac_header_preproc=yes
20623 else
20624 echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20626
20627 ac_header_preproc=no
20628 fi
20629 rm -f conftest.err conftest.$ac_ext
20630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20631 echo "${ECHO_T}$ac_header_preproc" >&6
20632
20633 # So? What about this header?
20634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20635 yes:no: )
20636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20639 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20640 ac_header_preproc=yes
20641 ;;
20642 no:yes:* )
20643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20647 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20648 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20650 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20654 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20655 (
20656 cat <<\_ASBOX
20657 ## ------------------------------------------ ##
20658 ## Report this to the AC_PACKAGE_NAME lists. ##
20659 ## ------------------------------------------ ##
20660 _ASBOX
20661 ) |
20662 sed "s/^/$as_me: WARNING: /" >&2
20663 ;;
20664 esac
20665 echo "$as_me:$LINENO: checking for $ac_header" >&5
20666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20668 echo $ECHO_N "(cached) $ECHO_C" >&6
20669 else
20670 eval "$as_ac_Header=\$ac_header_preproc"
20671 fi
20672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20674
20675 fi
20676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20677 cat >>confdefs.h <<_ACEOF
20678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20679 _ACEOF
20680
20681 fi
20682
20683 done
20684
20685 fi
20686
20687 # Solaris requires -lintl if you want strerror (which calls dgettext)
20688 # to return localized messages.
20689
20690 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20691 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20692 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20693 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 else
20695 ac_check_lib_save_LIBS=$LIBS
20696 LIBS="-lintl $LIBS"
20697 cat >conftest.$ac_ext <<_ACEOF
20698 /* confdefs.h. */
20699 _ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20703
20704 /* Override any gcc2 internal prototype to avoid an error. */
20705 #ifdef __cplusplus
20706 extern "C"
20707 #endif
20708 /* We use char because int might match the return type of a gcc2
20709 builtin and then its argument prototype would still apply. */
20710 char dgettext ();
20711 int
20712 main ()
20713 {
20714 dgettext ();
20715 ;
20716 return 0;
20717 }
20718 _ACEOF
20719 rm -f conftest.$ac_objext conftest$ac_exeext
20720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20721 (eval $ac_link) 2>conftest.er1
20722 ac_status=$?
20723 grep -v '^ *+' conftest.er1 >conftest.err
20724 rm -f conftest.er1
20725 cat conftest.err >&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); } &&
20728 { ac_try='test -z "$ac_c_werror_flag"
20729 || test ! -s conftest.err'
20730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731 (eval $ac_try) 2>&5
20732 ac_status=$?
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); }; } &&
20735 { ac_try='test -s conftest$ac_exeext'
20736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737 (eval $ac_try) 2>&5
20738 ac_status=$?
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; }; then
20741 ac_cv_lib_intl_dgettext=yes
20742 else
20743 echo "$as_me: failed program was:" >&5
20744 sed 's/^/| /' conftest.$ac_ext >&5
20745
20746 ac_cv_lib_intl_dgettext=no
20747 fi
20748 rm -f conftest.err conftest.$ac_objext \
20749 conftest$ac_exeext conftest.$ac_ext
20750 LIBS=$ac_check_lib_save_LIBS
20751 fi
20752 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20753 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20754 if test $ac_cv_lib_intl_dgettext = yes; then
20755 cat >>confdefs.h <<_ACEOF
20756 #define HAVE_LIBINTL 1
20757 _ACEOF
20758
20759 LIBS="-lintl $LIBS"
20760
20761 fi
20762
20763
20764 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20765 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20766 if test "${emacs_cv_localtime_cache+set}" = set; then
20767 echo $ECHO_N "(cached) $ECHO_C" >&6
20768 else
20769 if test x$ac_cv_func_tzset = xyes; then
20770 if test "$cross_compiling" = yes; then
20771 # If we have tzset, assume the worst when cross-compiling.
20772 emacs_cv_localtime_cache=yes
20773 else
20774 cat >conftest.$ac_ext <<_ACEOF
20775 /* confdefs.h. */
20776 _ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h. */
20780 #include <time.h>
20781 extern char **environ;
20782 unset_TZ ()
20783 {
20784 char **from, **to;
20785 for (to = from = environ; (*to = *from); from++)
20786 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20787 to++;
20788 }
20789 char TZ_GMT0[] = "TZ=GMT0";
20790 char TZ_PST8[] = "TZ=PST8";
20791 main()
20792 {
20793 time_t now = time ((time_t *) 0);
20794 int hour_GMT0, hour_unset;
20795 if (putenv (TZ_GMT0) != 0)
20796 exit (1);
20797 hour_GMT0 = localtime (&now)->tm_hour;
20798 unset_TZ ();
20799 hour_unset = localtime (&now)->tm_hour;
20800 if (putenv (TZ_PST8) != 0)
20801 exit (1);
20802 if (localtime (&now)->tm_hour == hour_GMT0)
20803 exit (1);
20804 unset_TZ ();
20805 if (localtime (&now)->tm_hour != hour_unset)
20806 exit (1);
20807 exit (0);
20808 }
20809 _ACEOF
20810 rm -f conftest$ac_exeext
20811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20812 (eval $ac_link) 2>&5
20813 ac_status=$?
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20817 (eval $ac_try) 2>&5
20818 ac_status=$?
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); }; }; then
20821 emacs_cv_localtime_cache=no
20822 else
20823 echo "$as_me: program exited with status $ac_status" >&5
20824 echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20826
20827 ( exit $ac_status )
20828 emacs_cv_localtime_cache=yes
20829 fi
20830 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20831 fi
20832 else
20833 # If we lack tzset, report that localtime does not cache TZ,
20834 # since we can't invalidate the cache if we don't have tzset.
20835 emacs_cv_localtime_cache=no
20836 fi
20837 fi
20838 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20839 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20840 if test $emacs_cv_localtime_cache = yes; then
20841
20842 cat >>confdefs.h <<\_ACEOF
20843 #define LOCALTIME_CACHE 1
20844 _ACEOF
20845
20846 fi
20847
20848 if test "x$HAVE_TIMEVAL" = xyes; then
20849
20850 for ac_func in gettimeofday
20851 do
20852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20853 echo "$as_me:$LINENO: checking for $ac_func" >&5
20854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20855 if eval "test \"\${$as_ac_var+set}\" = set"; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20857 else
20858 cat >conftest.$ac_ext <<_ACEOF
20859 /* confdefs.h. */
20860 _ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h. */
20864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20866 #define $ac_func innocuous_$ac_func
20867
20868 /* System header to define __stub macros and hopefully few prototypes,
20869 which can conflict with char $ac_func (); below.
20870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20871 <limits.h> exists even on freestanding compilers. */
20872
20873 #ifdef __STDC__
20874 # include <limits.h>
20875 #else
20876 # include <assert.h>
20877 #endif
20878
20879 #undef $ac_func
20880
20881 /* Override any gcc2 internal prototype to avoid an error. */
20882 #ifdef __cplusplus
20883 extern "C"
20884 {
20885 #endif
20886 /* We use char because int might match the return type of a gcc2
20887 builtin and then its argument prototype would still apply. */
20888 char $ac_func ();
20889 /* The GNU C library defines this for functions which it implements
20890 to always fail with ENOSYS. Some functions are actually named
20891 something starting with __ and the normal name is an alias. */
20892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20893 choke me
20894 #else
20895 char (*f) () = $ac_func;
20896 #endif
20897 #ifdef __cplusplus
20898 }
20899 #endif
20900
20901 int
20902 main ()
20903 {
20904 return f != $ac_func;
20905 ;
20906 return 0;
20907 }
20908 _ACEOF
20909 rm -f conftest.$ac_objext conftest$ac_exeext
20910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20911 (eval $ac_link) 2>conftest.er1
20912 ac_status=$?
20913 grep -v '^ *+' conftest.er1 >conftest.err
20914 rm -f conftest.er1
20915 cat conftest.err >&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); } &&
20918 { ac_try='test -z "$ac_c_werror_flag"
20919 || test ! -s conftest.err'
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20922 ac_status=$?
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; } &&
20925 { ac_try='test -s conftest$ac_exeext'
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20928 ac_status=$?
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; }; then
20931 eval "$as_ac_var=yes"
20932 else
20933 echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20935
20936 eval "$as_ac_var=no"
20937 fi
20938 rm -f conftest.err conftest.$ac_objext \
20939 conftest$ac_exeext conftest.$ac_ext
20940 fi
20941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20943 if test `eval echo '${'$as_ac_var'}'` = yes; then
20944 cat >>confdefs.h <<_ACEOF
20945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20946 _ACEOF
20947
20948 fi
20949 done
20950
20951 if test $ac_cv_func_gettimeofday = yes; then
20952 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20953 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20954 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20955 echo $ECHO_N "(cached) $ECHO_C" >&6
20956 else
20957 cat >conftest.$ac_ext <<_ACEOF
20958 /* confdefs.h. */
20959 _ACEOF
20960 cat confdefs.h >>conftest.$ac_ext
20961 cat >>conftest.$ac_ext <<_ACEOF
20962 /* end confdefs.h. */
20963
20964 #ifdef TIME_WITH_SYS_TIME
20965 #include <sys/time.h>
20966 #include <time.h>
20967 #else
20968 #ifdef HAVE_SYS_TIME_H
20969 #include <sys/time.h>
20970 #else
20971 #include <time.h>
20972 #endif
20973 #endif
20974 int
20975 main ()
20976 {
20977 struct timeval time;
20978 gettimeofday (&time, 0);
20979 ;
20980 return 0;
20981 }
20982 _ACEOF
20983 rm -f conftest.$ac_objext
20984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20985 (eval $ac_compile) 2>conftest.er1
20986 ac_status=$?
20987 grep -v '^ *+' conftest.er1 >conftest.err
20988 rm -f conftest.er1
20989 cat conftest.err >&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } &&
20992 { ac_try='test -z "$ac_c_werror_flag"
20993 || test ! -s conftest.err'
20994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995 (eval $ac_try) 2>&5
20996 ac_status=$?
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; } &&
20999 { ac_try='test -s conftest.$ac_objext'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21002 ac_status=$?
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; }; then
21005 emacs_cv_gettimeofday_two_arguments=yes
21006 else
21007 echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21009
21010 emacs_cv_gettimeofday_two_arguments=no
21011 fi
21012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21013 fi
21014 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21015 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21016 if test $emacs_cv_gettimeofday_two_arguments = no; then
21017
21018 cat >>confdefs.h <<\_ACEOF
21019 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21020 _ACEOF
21021
21022 fi
21023 fi
21024 fi
21025
21026 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21027 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21028 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21029 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21030 echo $ECHO_N "(cached) $ECHO_C" >&6
21031 else
21032 cat >conftest.$ac_ext <<_ACEOF
21033 /* confdefs.h. */
21034 _ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21038 #include <sys/types.h>
21039 #include <$ac_cv_struct_tm>
21040
21041
21042 int
21043 main ()
21044 {
21045 static struct tm ac_aggr;
21046 if (ac_aggr.tm_zone)
21047 return 0;
21048 ;
21049 return 0;
21050 }
21051 _ACEOF
21052 rm -f conftest.$ac_objext
21053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21054 (eval $ac_compile) 2>conftest.er1
21055 ac_status=$?
21056 grep -v '^ *+' conftest.er1 >conftest.err
21057 rm -f conftest.er1
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } &&
21061 { ac_try='test -z "$ac_c_werror_flag"
21062 || test ! -s conftest.err'
21063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21064 (eval $ac_try) 2>&5
21065 ac_status=$?
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); }; } &&
21068 { ac_try='test -s conftest.$ac_objext'
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21071 ac_status=$?
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; }; then
21074 ac_cv_member_struct_tm_tm_zone=yes
21075 else
21076 echo "$as_me: failed program was:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21078
21079 cat >conftest.$ac_ext <<_ACEOF
21080 /* confdefs.h. */
21081 _ACEOF
21082 cat confdefs.h >>conftest.$ac_ext
21083 cat >>conftest.$ac_ext <<_ACEOF
21084 /* end confdefs.h. */
21085 #include <sys/types.h>
21086 #include <$ac_cv_struct_tm>
21087
21088
21089 int
21090 main ()
21091 {
21092 static struct tm ac_aggr;
21093 if (sizeof ac_aggr.tm_zone)
21094 return 0;
21095 ;
21096 return 0;
21097 }
21098 _ACEOF
21099 rm -f conftest.$ac_objext
21100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21101 (eval $ac_compile) 2>conftest.er1
21102 ac_status=$?
21103 grep -v '^ *+' conftest.er1 >conftest.err
21104 rm -f conftest.er1
21105 cat conftest.err >&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } &&
21108 { ac_try='test -z "$ac_c_werror_flag"
21109 || test ! -s conftest.err'
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21112 ac_status=$?
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; } &&
21115 { ac_try='test -s conftest.$ac_objext'
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117 (eval $ac_try) 2>&5
21118 ac_status=$?
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); }; }; then
21121 ac_cv_member_struct_tm_tm_zone=yes
21122 else
21123 echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21125
21126 ac_cv_member_struct_tm_tm_zone=no
21127 fi
21128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21129 fi
21130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21131 fi
21132 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21133 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21134 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21135
21136 cat >>confdefs.h <<_ACEOF
21137 #define HAVE_STRUCT_TM_TM_ZONE 1
21138 _ACEOF
21139
21140
21141 fi
21142
21143 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21144
21145 cat >>confdefs.h <<\_ACEOF
21146 #define HAVE_TM_ZONE 1
21147 _ACEOF
21148
21149 else
21150 echo "$as_me:$LINENO: checking for tzname" >&5
21151 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21152 if test "${ac_cv_var_tzname+set}" = set; then
21153 echo $ECHO_N "(cached) $ECHO_C" >&6
21154 else
21155 cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h. */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21161 #include <time.h>
21162 #ifndef tzname /* For SGI. */
21163 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21164 #endif
21165
21166 int
21167 main ()
21168 {
21169 atoi(*tzname);
21170 ;
21171 return 0;
21172 }
21173 _ACEOF
21174 rm -f conftest.$ac_objext conftest$ac_exeext
21175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21176 (eval $ac_link) 2>conftest.er1
21177 ac_status=$?
21178 grep -v '^ *+' conftest.er1 >conftest.err
21179 rm -f conftest.er1
21180 cat conftest.err >&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } &&
21183 { ac_try='test -z "$ac_c_werror_flag"
21184 || test ! -s conftest.err'
21185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186 (eval $ac_try) 2>&5
21187 ac_status=$?
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); }; } &&
21190 { ac_try='test -s conftest$ac_exeext'
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21193 ac_status=$?
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; }; then
21196 ac_cv_var_tzname=yes
21197 else
21198 echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21200
21201 ac_cv_var_tzname=no
21202 fi
21203 rm -f conftest.err conftest.$ac_objext \
21204 conftest$ac_exeext conftest.$ac_ext
21205 fi
21206 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21207 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21208 if test $ac_cv_var_tzname = yes; then
21209
21210 cat >>confdefs.h <<\_ACEOF
21211 #define HAVE_TZNAME 1
21212 _ACEOF
21213
21214 fi
21215 fi
21216
21217
21218 if test "$ac_cv_func_gettimeofday" = yes; then
21219 echo "$as_me:$LINENO: checking for struct timezone" >&5
21220 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21221 if test "${emacs_cv_struct_timezone+set}" = set; then
21222 echo $ECHO_N "(cached) $ECHO_C" >&6
21223 else
21224 cat >conftest.$ac_ext <<_ACEOF
21225 /* confdefs.h. */
21226 _ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21230 #include <sys/time.h>
21231 int
21232 main ()
21233 {
21234 struct timezone tz;
21235 ;
21236 return 0;
21237 }
21238 _ACEOF
21239 rm -f conftest.$ac_objext
21240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21241 (eval $ac_compile) 2>conftest.er1
21242 ac_status=$?
21243 grep -v '^ *+' conftest.er1 >conftest.err
21244 rm -f conftest.er1
21245 cat conftest.err >&5
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); } &&
21248 { ac_try='test -z "$ac_c_werror_flag"
21249 || test ! -s conftest.err'
21250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251 (eval $ac_try) 2>&5
21252 ac_status=$?
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; } &&
21255 { ac_try='test -s conftest.$ac_objext'
21256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257 (eval $ac_try) 2>&5
21258 ac_status=$?
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; }; then
21261 if test "$cross_compiling" = yes; then
21262 emacs_cv_struct_timezone=yes
21263 else
21264 cat >conftest.$ac_ext <<_ACEOF
21265 /* confdefs.h. */
21266 _ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h. */
21270
21271 #ifdef TIME_WITH_SYS_TIME
21272 #include <sys/time.h>
21273 #include <time.h>
21274 #else
21275 #ifdef HAVE_SYS_TIME_H
21276 #include <sys/time.h>
21277 #else
21278 #include <time.h>
21279 #endif
21280 #endif
21281 main () {
21282 struct timeval time;
21283 struct timezone dummy;
21284 exit (gettimeofday (&time, &dummy));
21285 }
21286 _ACEOF
21287 rm -f conftest$ac_exeext
21288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21289 (eval $ac_link) 2>&5
21290 ac_status=$?
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21295 ac_status=$?
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; }; then
21298 emacs_cv_struct_timezone=yes
21299 else
21300 echo "$as_me: program exited with status $ac_status" >&5
21301 echo "$as_me: failed program was:" >&5
21302 sed 's/^/| /' conftest.$ac_ext >&5
21303
21304 ( exit $ac_status )
21305 emacs_cv_struct_timezone=no
21306 fi
21307 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21308 fi
21309 else
21310 echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21312
21313 emacs_cv_struct_timezone=no
21314 fi
21315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21316 fi
21317 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21318 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21319 fi
21320
21321 ok_so_far=yes
21322 echo "$as_me:$LINENO: checking for socket" >&5
21323 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21324 if test "${ac_cv_func_socket+set}" = set; then
21325 echo $ECHO_N "(cached) $ECHO_C" >&6
21326 else
21327 cat >conftest.$ac_ext <<_ACEOF
21328 /* confdefs.h. */
21329 _ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h. */
21333 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21335 #define socket innocuous_socket
21336
21337 /* System header to define __stub macros and hopefully few prototypes,
21338 which can conflict with char socket (); below.
21339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21340 <limits.h> exists even on freestanding compilers. */
21341
21342 #ifdef __STDC__
21343 # include <limits.h>
21344 #else
21345 # include <assert.h>
21346 #endif
21347
21348 #undef socket
21349
21350 /* Override any gcc2 internal prototype to avoid an error. */
21351 #ifdef __cplusplus
21352 extern "C"
21353 {
21354 #endif
21355 /* We use char because int might match the return type of a gcc2
21356 builtin and then its argument prototype would still apply. */
21357 char socket ();
21358 /* The GNU C library defines this for functions which it implements
21359 to always fail with ENOSYS. Some functions are actually named
21360 something starting with __ and the normal name is an alias. */
21361 #if defined (__stub_socket) || defined (__stub___socket)
21362 choke me
21363 #else
21364 char (*f) () = socket;
21365 #endif
21366 #ifdef __cplusplus
21367 }
21368 #endif
21369
21370 int
21371 main ()
21372 {
21373 return f != socket;
21374 ;
21375 return 0;
21376 }
21377 _ACEOF
21378 rm -f conftest.$ac_objext conftest$ac_exeext
21379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21380 (eval $ac_link) 2>conftest.er1
21381 ac_status=$?
21382 grep -v '^ *+' conftest.er1 >conftest.err
21383 rm -f conftest.er1
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } &&
21387 { ac_try='test -z "$ac_c_werror_flag"
21388 || test ! -s conftest.err'
21389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390 (eval $ac_try) 2>&5
21391 ac_status=$?
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); }; } &&
21394 { ac_try='test -s conftest$ac_exeext'
21395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396 (eval $ac_try) 2>&5
21397 ac_status=$?
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); }; }; then
21400 ac_cv_func_socket=yes
21401 else
21402 echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21404
21405 ac_cv_func_socket=no
21406 fi
21407 rm -f conftest.err conftest.$ac_objext \
21408 conftest$ac_exeext conftest.$ac_ext
21409 fi
21410 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21411 echo "${ECHO_T}$ac_cv_func_socket" >&6
21412 if test $ac_cv_func_socket = yes; then
21413 :
21414 else
21415 ok_so_far=no
21416 fi
21417
21418 if test $ok_so_far = yes; then
21419 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21420 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21421 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21422 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21424 fi
21425 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21426 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21427 else
21428 # Is the header compilable?
21429 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21430 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
21431 cat >conftest.$ac_ext <<_ACEOF
21432 /* confdefs.h. */
21433 _ACEOF
21434 cat confdefs.h >>conftest.$ac_ext
21435 cat >>conftest.$ac_ext <<_ACEOF
21436 /* end confdefs.h. */
21437 $ac_includes_default
21438 #include <netinet/in.h>
21439 _ACEOF
21440 rm -f conftest.$ac_objext
21441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21442 (eval $ac_compile) 2>conftest.er1
21443 ac_status=$?
21444 grep -v '^ *+' conftest.er1 >conftest.err
21445 rm -f conftest.er1
21446 cat conftest.err >&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } &&
21449 { ac_try='test -z "$ac_c_werror_flag"
21450 || test ! -s conftest.err'
21451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21452 (eval $ac_try) 2>&5
21453 ac_status=$?
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); }; } &&
21456 { ac_try='test -s conftest.$ac_objext'
21457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21458 (eval $ac_try) 2>&5
21459 ac_status=$?
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); }; }; then
21462 ac_header_compiler=yes
21463 else
21464 echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21466
21467 ac_header_compiler=no
21468 fi
21469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21471 echo "${ECHO_T}$ac_header_compiler" >&6
21472
21473 # Is the header present?
21474 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21475 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
21476 cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h. */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21482 #include <netinet/in.h>
21483 _ACEOF
21484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21486 ac_status=$?
21487 grep -v '^ *+' conftest.er1 >conftest.err
21488 rm -f conftest.er1
21489 cat conftest.err >&5
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } >/dev/null; then
21492 if test -s conftest.err; then
21493 ac_cpp_err=$ac_c_preproc_warn_flag
21494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21495 else
21496 ac_cpp_err=
21497 fi
21498 else
21499 ac_cpp_err=yes
21500 fi
21501 if test -z "$ac_cpp_err"; then
21502 ac_header_preproc=yes
21503 else
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507 ac_header_preproc=no
21508 fi
21509 rm -f conftest.err conftest.$ac_ext
21510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21511 echo "${ECHO_T}$ac_header_preproc" >&6
21512
21513 # So? What about this header?
21514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21515 yes:no: )
21516 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21517 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21518 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21519 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21520 ac_header_preproc=yes
21521 ;;
21522 no:yes:* )
21523 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21524 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21526 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21528 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21530 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21532 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21533 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21534 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21535 (
21536 cat <<\_ASBOX
21537 ## ------------------------------------------ ##
21538 ## Report this to the AC_PACKAGE_NAME lists. ##
21539 ## ------------------------------------------ ##
21540 _ASBOX
21541 ) |
21542 sed "s/^/$as_me: WARNING: /" >&2
21543 ;;
21544 esac
21545 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21546 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
21547 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21549 else
21550 ac_cv_header_netinet_in_h=$ac_header_preproc
21551 fi
21552 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21553 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21554
21555 fi
21556 if test $ac_cv_header_netinet_in_h = yes; then
21557 :
21558 else
21559 ok_so_far=no
21560 fi
21561
21562
21563 fi
21564 if test $ok_so_far = yes; then
21565 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21566 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21567 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21568 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21570 fi
21571 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21572 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21573 else
21574 # Is the header compilable?
21575 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21576 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21577 cat >conftest.$ac_ext <<_ACEOF
21578 /* confdefs.h. */
21579 _ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h. */
21583 $ac_includes_default
21584 #include <arpa/inet.h>
21585 _ACEOF
21586 rm -f conftest.$ac_objext
21587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21588 (eval $ac_compile) 2>conftest.er1
21589 ac_status=$?
21590 grep -v '^ *+' conftest.er1 >conftest.err
21591 rm -f conftest.er1
21592 cat conftest.err >&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } &&
21595 { ac_try='test -z "$ac_c_werror_flag"
21596 || test ! -s conftest.err'
21597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21598 (eval $ac_try) 2>&5
21599 ac_status=$?
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); }; } &&
21602 { ac_try='test -s conftest.$ac_objext'
21603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21604 (eval $ac_try) 2>&5
21605 ac_status=$?
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); }; }; then
21608 ac_header_compiler=yes
21609 else
21610 echo "$as_me: failed program was:" >&5
21611 sed 's/^/| /' conftest.$ac_ext >&5
21612
21613 ac_header_compiler=no
21614 fi
21615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21617 echo "${ECHO_T}$ac_header_compiler" >&6
21618
21619 # Is the header present?
21620 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21621 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21622 cat >conftest.$ac_ext <<_ACEOF
21623 /* confdefs.h. */
21624 _ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21628 #include <arpa/inet.h>
21629 _ACEOF
21630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21632 ac_status=$?
21633 grep -v '^ *+' conftest.er1 >conftest.err
21634 rm -f conftest.er1
21635 cat conftest.err >&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } >/dev/null; then
21638 if test -s conftest.err; then
21639 ac_cpp_err=$ac_c_preproc_warn_flag
21640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21641 else
21642 ac_cpp_err=
21643 fi
21644 else
21645 ac_cpp_err=yes
21646 fi
21647 if test -z "$ac_cpp_err"; then
21648 ac_header_preproc=yes
21649 else
21650 echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21652
21653 ac_header_preproc=no
21654 fi
21655 rm -f conftest.err conftest.$ac_ext
21656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21657 echo "${ECHO_T}$ac_header_preproc" >&6
21658
21659 # So? What about this header?
21660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21661 yes:no: )
21662 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21663 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21664 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21665 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21666 ac_header_preproc=yes
21667 ;;
21668 no:yes:* )
21669 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21670 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21671 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21672 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21673 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21674 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21675 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21676 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21677 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21678 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21679 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21680 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21681 (
21682 cat <<\_ASBOX
21683 ## ------------------------------------------ ##
21684 ## Report this to the AC_PACKAGE_NAME lists. ##
21685 ## ------------------------------------------ ##
21686 _ASBOX
21687 ) |
21688 sed "s/^/$as_me: WARNING: /" >&2
21689 ;;
21690 esac
21691 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21692 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21693 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21694 echo $ECHO_N "(cached) $ECHO_C" >&6
21695 else
21696 ac_cv_header_arpa_inet_h=$ac_header_preproc
21697 fi
21698 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21699 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21700
21701 fi
21702 if test $ac_cv_header_arpa_inet_h = yes; then
21703 :
21704 else
21705 ok_so_far=no
21706 fi
21707
21708
21709 fi
21710 if test $ok_so_far = yes; then
21711
21712 cat >>confdefs.h <<\_ACEOF
21713 #define HAVE_INET_SOCKETS 1
21714 _ACEOF
21715
21716 fi
21717
21718
21719 for ac_header in sys/ioctl.h
21720 do
21721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21723 echo "$as_me:$LINENO: checking for $ac_header" >&5
21724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21726 echo $ECHO_N "(cached) $ECHO_C" >&6
21727 fi
21728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21730 else
21731 # Is the header compilable?
21732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21734 cat >conftest.$ac_ext <<_ACEOF
21735 /* confdefs.h. */
21736 _ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h. */
21740 $ac_includes_default
21741 #include <$ac_header>
21742 _ACEOF
21743 rm -f conftest.$ac_objext
21744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21745 (eval $ac_compile) 2>conftest.er1
21746 ac_status=$?
21747 grep -v '^ *+' conftest.er1 >conftest.err
21748 rm -f conftest.er1
21749 cat conftest.err >&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); } &&
21752 { ac_try='test -z "$ac_c_werror_flag"
21753 || test ! -s conftest.err'
21754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755 (eval $ac_try) 2>&5
21756 ac_status=$?
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; } &&
21759 { ac_try='test -s conftest.$ac_objext'
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21762 ac_status=$?
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; }; then
21765 ac_header_compiler=yes
21766 else
21767 echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21769
21770 ac_header_compiler=no
21771 fi
21772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21774 echo "${ECHO_T}$ac_header_compiler" >&6
21775
21776 # Is the header present?
21777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21779 cat >conftest.$ac_ext <<_ACEOF
21780 /* confdefs.h. */
21781 _ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h. */
21785 #include <$ac_header>
21786 _ACEOF
21787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21789 ac_status=$?
21790 grep -v '^ *+' conftest.er1 >conftest.err
21791 rm -f conftest.er1
21792 cat conftest.err >&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); } >/dev/null; then
21795 if test -s conftest.err; then
21796 ac_cpp_err=$ac_c_preproc_warn_flag
21797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21798 else
21799 ac_cpp_err=
21800 fi
21801 else
21802 ac_cpp_err=yes
21803 fi
21804 if test -z "$ac_cpp_err"; then
21805 ac_header_preproc=yes
21806 else
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810 ac_header_preproc=no
21811 fi
21812 rm -f conftest.err conftest.$ac_ext
21813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21814 echo "${ECHO_T}$ac_header_preproc" >&6
21815
21816 # So? What about this header?
21817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21818 yes:no: )
21819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21823 ac_header_preproc=yes
21824 ;;
21825 no:yes:* )
21826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21838 (
21839 cat <<\_ASBOX
21840 ## ------------------------------------------ ##
21841 ## Report this to the AC_PACKAGE_NAME lists. ##
21842 ## ------------------------------------------ ##
21843 _ASBOX
21844 ) |
21845 sed "s/^/$as_me: WARNING: /" >&2
21846 ;;
21847 esac
21848 echo "$as_me:$LINENO: checking for $ac_header" >&5
21849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21852 else
21853 eval "$as_ac_Header=\$ac_header_preproc"
21854 fi
21855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21857
21858 fi
21859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21860 cat >>confdefs.h <<_ACEOF
21861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21862 _ACEOF
21863
21864 fi
21865
21866 done
21867
21868
21869 if test -f /usr/lpp/X11/bin/smt.exp; then
21870
21871 cat >>confdefs.h <<\_ACEOF
21872 #define HAVE_AIX_SMT_EXP 1
21873 _ACEOF
21874
21875 fi
21876
21877 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21878 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21879 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21880 echo "$as_me:$LINENO: result: yes" >&5
21881 echo "${ECHO_T}yes" >&6
21882
21883 cat >>confdefs.h <<\_ACEOF
21884 #define HAVE_DEV_PTMX 1
21885 _ACEOF
21886
21887 else
21888 echo "$as_me:$LINENO: result: no" >&5
21889 echo "${ECHO_T}no" >&6
21890 fi
21891
21892 echo "$as_me:$LINENO: checking for pid_t" >&5
21893 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21894 if test "${ac_cv_type_pid_t+set}" = set; then
21895 echo $ECHO_N "(cached) $ECHO_C" >&6
21896 else
21897 cat >conftest.$ac_ext <<_ACEOF
21898 /* confdefs.h. */
21899 _ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21903 $ac_includes_default
21904 int
21905 main ()
21906 {
21907 if ((pid_t *) 0)
21908 return 0;
21909 if (sizeof (pid_t))
21910 return 0;
21911 ;
21912 return 0;
21913 }
21914 _ACEOF
21915 rm -f conftest.$ac_objext
21916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21917 (eval $ac_compile) 2>conftest.er1
21918 ac_status=$?
21919 grep -v '^ *+' conftest.er1 >conftest.err
21920 rm -f conftest.er1
21921 cat conftest.err >&5
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); } &&
21924 { ac_try='test -z "$ac_c_werror_flag"
21925 || test ! -s conftest.err'
21926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21927 (eval $ac_try) 2>&5
21928 ac_status=$?
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); }; } &&
21931 { ac_try='test -s conftest.$ac_objext'
21932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21933 (eval $ac_try) 2>&5
21934 ac_status=$?
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); }; }; then
21937 ac_cv_type_pid_t=yes
21938 else
21939 echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21941
21942 ac_cv_type_pid_t=no
21943 fi
21944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21945 fi
21946 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21947 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21948 if test $ac_cv_type_pid_t = yes; then
21949 :
21950 else
21951
21952 cat >>confdefs.h <<_ACEOF
21953 #define pid_t int
21954 _ACEOF
21955
21956 fi
21957
21958
21959
21960 for ac_header in unistd.h vfork.h
21961 do
21962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21964 echo "$as_me:$LINENO: checking for $ac_header" >&5
21965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21967 echo $ECHO_N "(cached) $ECHO_C" >&6
21968 fi
21969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21971 else
21972 # Is the header compilable?
21973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21975 cat >conftest.$ac_ext <<_ACEOF
21976 /* confdefs.h. */
21977 _ACEOF
21978 cat confdefs.h >>conftest.$ac_ext
21979 cat >>conftest.$ac_ext <<_ACEOF
21980 /* end confdefs.h. */
21981 $ac_includes_default
21982 #include <$ac_header>
21983 _ACEOF
21984 rm -f conftest.$ac_objext
21985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21986 (eval $ac_compile) 2>conftest.er1
21987 ac_status=$?
21988 grep -v '^ *+' conftest.er1 >conftest.err
21989 rm -f conftest.er1
21990 cat conftest.err >&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); } &&
21993 { ac_try='test -z "$ac_c_werror_flag"
21994 || test ! -s conftest.err'
21995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21996 (eval $ac_try) 2>&5
21997 ac_status=$?
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; } &&
22000 { ac_try='test -s conftest.$ac_objext'
22001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002 (eval $ac_try) 2>&5
22003 ac_status=$?
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); }; }; then
22006 ac_header_compiler=yes
22007 else
22008 echo "$as_me: failed program was:" >&5
22009 sed 's/^/| /' conftest.$ac_ext >&5
22010
22011 ac_header_compiler=no
22012 fi
22013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22015 echo "${ECHO_T}$ac_header_compiler" >&6
22016
22017 # Is the header present?
22018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22020 cat >conftest.$ac_ext <<_ACEOF
22021 /* confdefs.h. */
22022 _ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h. */
22026 #include <$ac_header>
22027 _ACEOF
22028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22030 ac_status=$?
22031 grep -v '^ *+' conftest.er1 >conftest.err
22032 rm -f conftest.er1
22033 cat conftest.err >&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); } >/dev/null; then
22036 if test -s conftest.err; then
22037 ac_cpp_err=$ac_c_preproc_warn_flag
22038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22039 else
22040 ac_cpp_err=
22041 fi
22042 else
22043 ac_cpp_err=yes
22044 fi
22045 if test -z "$ac_cpp_err"; then
22046 ac_header_preproc=yes
22047 else
22048 echo "$as_me: failed program was:" >&5
22049 sed 's/^/| /' conftest.$ac_ext >&5
22050
22051 ac_header_preproc=no
22052 fi
22053 rm -f conftest.err conftest.$ac_ext
22054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22055 echo "${ECHO_T}$ac_header_preproc" >&6
22056
22057 # So? What about this header?
22058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22059 yes:no: )
22060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22064 ac_header_preproc=yes
22065 ;;
22066 no:yes:* )
22067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22079 (
22080 cat <<\_ASBOX
22081 ## ------------------------------------------ ##
22082 ## Report this to the AC_PACKAGE_NAME lists. ##
22083 ## ------------------------------------------ ##
22084 _ASBOX
22085 ) |
22086 sed "s/^/$as_me: WARNING: /" >&2
22087 ;;
22088 esac
22089 echo "$as_me:$LINENO: checking for $ac_header" >&5
22090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22092 echo $ECHO_N "(cached) $ECHO_C" >&6
22093 else
22094 eval "$as_ac_Header=\$ac_header_preproc"
22095 fi
22096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22098
22099 fi
22100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22101 cat >>confdefs.h <<_ACEOF
22102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22103 _ACEOF
22104
22105 fi
22106
22107 done
22108
22109
22110
22111 for ac_func in fork vfork
22112 do
22113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22114 echo "$as_me:$LINENO: checking for $ac_func" >&5
22115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22116 if eval "test \"\${$as_ac_var+set}\" = set"; then
22117 echo $ECHO_N "(cached) $ECHO_C" >&6
22118 else
22119 cat >conftest.$ac_ext <<_ACEOF
22120 /* confdefs.h. */
22121 _ACEOF
22122 cat confdefs.h >>conftest.$ac_ext
22123 cat >>conftest.$ac_ext <<_ACEOF
22124 /* end confdefs.h. */
22125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22127 #define $ac_func innocuous_$ac_func
22128
22129 /* System header to define __stub macros and hopefully few prototypes,
22130 which can conflict with char $ac_func (); below.
22131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22132 <limits.h> exists even on freestanding compilers. */
22133
22134 #ifdef __STDC__
22135 # include <limits.h>
22136 #else
22137 # include <assert.h>
22138 #endif
22139
22140 #undef $ac_func
22141
22142 /* Override any gcc2 internal prototype to avoid an error. */
22143 #ifdef __cplusplus
22144 extern "C"
22145 {
22146 #endif
22147 /* We use char because int might match the return type of a gcc2
22148 builtin and then its argument prototype would still apply. */
22149 char $ac_func ();
22150 /* The GNU C library defines this for functions which it implements
22151 to always fail with ENOSYS. Some functions are actually named
22152 something starting with __ and the normal name is an alias. */
22153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22154 choke me
22155 #else
22156 char (*f) () = $ac_func;
22157 #endif
22158 #ifdef __cplusplus
22159 }
22160 #endif
22161
22162 int
22163 main ()
22164 {
22165 return f != $ac_func;
22166 ;
22167 return 0;
22168 }
22169 _ACEOF
22170 rm -f conftest.$ac_objext conftest$ac_exeext
22171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22172 (eval $ac_link) 2>conftest.er1
22173 ac_status=$?
22174 grep -v '^ *+' conftest.er1 >conftest.err
22175 rm -f conftest.er1
22176 cat conftest.err >&5
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } &&
22179 { ac_try='test -z "$ac_c_werror_flag"
22180 || test ! -s conftest.err'
22181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22182 (eval $ac_try) 2>&5
22183 ac_status=$?
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); }; } &&
22186 { ac_try='test -s conftest$ac_exeext'
22187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22188 (eval $ac_try) 2>&5
22189 ac_status=$?
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); }; }; then
22192 eval "$as_ac_var=yes"
22193 else
22194 echo "$as_me: failed program was:" >&5
22195 sed 's/^/| /' conftest.$ac_ext >&5
22196
22197 eval "$as_ac_var=no"
22198 fi
22199 rm -f conftest.err conftest.$ac_objext \
22200 conftest$ac_exeext conftest.$ac_ext
22201 fi
22202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22204 if test `eval echo '${'$as_ac_var'}'` = yes; then
22205 cat >>confdefs.h <<_ACEOF
22206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22207 _ACEOF
22208
22209 fi
22210 done
22211
22212 if test "x$ac_cv_func_fork" = xyes; then
22213 echo "$as_me:$LINENO: checking for working fork" >&5
22214 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22215 if test "${ac_cv_func_fork_works+set}" = set; then
22216 echo $ECHO_N "(cached) $ECHO_C" >&6
22217 else
22218 if test "$cross_compiling" = yes; then
22219 ac_cv_func_fork_works=cross
22220 else
22221 cat >conftest.$ac_ext <<_ACEOF
22222 /* By Ruediger Kuhlmann. */
22223 #include <sys/types.h>
22224 #if HAVE_UNISTD_H
22225 # include <unistd.h>
22226 #endif
22227 /* Some systems only have a dummy stub for fork() */
22228 int main ()
22229 {
22230 if (fork() < 0)
22231 exit (1);
22232 exit (0);
22233 }
22234 _ACEOF
22235 rm -f conftest$ac_exeext
22236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22237 (eval $ac_link) 2>&5
22238 ac_status=$?
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22242 (eval $ac_try) 2>&5
22243 ac_status=$?
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); }; }; then
22246 ac_cv_func_fork_works=yes
22247 else
22248 echo "$as_me: program exited with status $ac_status" >&5
22249 echo "$as_me: failed program was:" >&5
22250 sed 's/^/| /' conftest.$ac_ext >&5
22251
22252 ( exit $ac_status )
22253 ac_cv_func_fork_works=no
22254 fi
22255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22256 fi
22257 fi
22258 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22259 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22260
22261 else
22262 ac_cv_func_fork_works=$ac_cv_func_fork
22263 fi
22264 if test "x$ac_cv_func_fork_works" = xcross; then
22265 case $host in
22266 *-*-amigaos* | *-*-msdosdjgpp*)
22267 # Override, as these systems have only a dummy fork() stub
22268 ac_cv_func_fork_works=no
22269 ;;
22270 *)
22271 ac_cv_func_fork_works=yes
22272 ;;
22273 esac
22274 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22275 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22276 fi
22277 ac_cv_func_vfork_works=$ac_cv_func_vfork
22278 if test "x$ac_cv_func_vfork" = xyes; then
22279 echo "$as_me:$LINENO: checking for working vfork" >&5
22280 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22281 if test "${ac_cv_func_vfork_works+set}" = set; then
22282 echo $ECHO_N "(cached) $ECHO_C" >&6
22283 else
22284 if test "$cross_compiling" = yes; then
22285 ac_cv_func_vfork_works=cross
22286 else
22287 cat >conftest.$ac_ext <<_ACEOF
22288 /* confdefs.h. */
22289 _ACEOF
22290 cat confdefs.h >>conftest.$ac_ext
22291 cat >>conftest.$ac_ext <<_ACEOF
22292 /* end confdefs.h. */
22293 /* Thanks to Paul Eggert for this test. */
22294 #include <stdio.h>
22295 #include <stdlib.h>
22296 #include <sys/types.h>
22297 #include <sys/stat.h>
22298 #include <sys/wait.h>
22299 #if HAVE_UNISTD_H
22300 # include <unistd.h>
22301 #endif
22302 #if HAVE_VFORK_H
22303 # include <vfork.h>
22304 #endif
22305 /* On some sparc systems, changes by the child to local and incoming
22306 argument registers are propagated back to the parent. The compiler
22307 is told about this with #include <vfork.h>, but some compilers
22308 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22309 static variable whose address is put into a register that is
22310 clobbered by the vfork. */
22311 static void
22312 #ifdef __cplusplus
22313 sparc_address_test (int arg)
22314 # else
22315 sparc_address_test (arg) int arg;
22316 #endif
22317 {
22318 static pid_t child;
22319 if (!child) {
22320 child = vfork ();
22321 if (child < 0) {
22322 perror ("vfork");
22323 _exit(2);
22324 }
22325 if (!child) {
22326 arg = getpid();
22327 write(-1, "", 0);
22328 _exit (arg);
22329 }
22330 }
22331 }
22332
22333 int
22334 main ()
22335 {
22336 pid_t parent = getpid ();
22337 pid_t child;
22338
22339 sparc_address_test (0);
22340
22341 child = vfork ();
22342
22343 if (child == 0) {
22344 /* Here is another test for sparc vfork register problems. This
22345 test uses lots of local variables, at least as many local
22346 variables as main has allocated so far including compiler
22347 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22348 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22349 reuse the register of parent for one of the local variables,
22350 since it will think that parent can't possibly be used any more
22351 in this routine. Assigning to the local variable will thus
22352 munge parent in the parent process. */
22353 pid_t
22354 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22355 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22356 /* Convince the compiler that p..p7 are live; otherwise, it might
22357 use the same hardware register for all 8 local variables. */
22358 if (p != p1 || p != p2 || p != p3 || p != p4
22359 || p != p5 || p != p6 || p != p7)
22360 _exit(1);
22361
22362 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22363 from child file descriptors. If the child closes a descriptor
22364 before it execs or exits, this munges the parent's descriptor
22365 as well. Test for this by closing stdout in the child. */
22366 _exit(close(fileno(stdout)) != 0);
22367 } else {
22368 int status;
22369 struct stat st;
22370
22371 while (wait(&status) != child)
22372 ;
22373 exit(
22374 /* Was there some problem with vforking? */
22375 child < 0
22376
22377 /* Did the child fail? (This shouldn't happen.) */
22378 || status
22379
22380 /* Did the vfork/compiler bug occur? */
22381 || parent != getpid()
22382
22383 /* Did the file descriptor bug occur? */
22384 || fstat(fileno(stdout), &st) != 0
22385 );
22386 }
22387 }
22388 _ACEOF
22389 rm -f conftest$ac_exeext
22390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22391 (eval $ac_link) 2>&5
22392 ac_status=$?
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22397 ac_status=$?
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); }; }; then
22400 ac_cv_func_vfork_works=yes
22401 else
22402 echo "$as_me: program exited with status $ac_status" >&5
22403 echo "$as_me: failed program was:" >&5
22404 sed 's/^/| /' conftest.$ac_ext >&5
22405
22406 ( exit $ac_status )
22407 ac_cv_func_vfork_works=no
22408 fi
22409 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22410 fi
22411 fi
22412 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22413 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
22414
22415 fi;
22416 if test "x$ac_cv_func_fork_works" = xcross; then
22417 ac_cv_func_vfork_works=$ac_cv_func_vfork
22418 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22419 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22420 fi
22421
22422 if test "x$ac_cv_func_vfork_works" = xyes; then
22423
22424 cat >>confdefs.h <<\_ACEOF
22425 #define HAVE_WORKING_VFORK 1
22426 _ACEOF
22427
22428 else
22429
22430 cat >>confdefs.h <<\_ACEOF
22431 #define vfork fork
22432 _ACEOF
22433
22434 fi
22435 if test "x$ac_cv_func_fork_works" = xyes; then
22436
22437 cat >>confdefs.h <<\_ACEOF
22438 #define HAVE_WORKING_FORK 1
22439 _ACEOF
22440
22441 fi
22442
22443
22444 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22445 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
22446 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22447 echo $ECHO_N "(cached) $ECHO_C" >&6
22448 else
22449 cat >conftest.$ac_ext <<_ACEOF
22450 /* confdefs.h. */
22451 _ACEOF
22452 cat confdefs.h >>conftest.$ac_ext
22453 cat >>conftest.$ac_ext <<_ACEOF
22454 /* end confdefs.h. */
22455 #include <langinfo.h>
22456 int
22457 main ()
22458 {
22459 char* cs = nl_langinfo(CODESET);
22460 ;
22461 return 0;
22462 }
22463 _ACEOF
22464 rm -f conftest.$ac_objext conftest$ac_exeext
22465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22466 (eval $ac_link) 2>conftest.er1
22467 ac_status=$?
22468 grep -v '^ *+' conftest.er1 >conftest.err
22469 rm -f conftest.er1
22470 cat conftest.err >&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); } &&
22473 { ac_try='test -z "$ac_c_werror_flag"
22474 || test ! -s conftest.err'
22475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476 (eval $ac_try) 2>&5
22477 ac_status=$?
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); }; } &&
22480 { ac_try='test -s conftest$ac_exeext'
22481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482 (eval $ac_try) 2>&5
22483 ac_status=$?
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); }; }; then
22486 emacs_cv_langinfo_codeset=yes
22487 else
22488 echo "$as_me: failed program was:" >&5
22489 sed 's/^/| /' conftest.$ac_ext >&5
22490
22491 emacs_cv_langinfo_codeset=no
22492 fi
22493 rm -f conftest.err conftest.$ac_objext \
22494 conftest$ac_exeext conftest.$ac_ext
22495
22496 fi
22497 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22498 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
22499 if test $emacs_cv_langinfo_codeset = yes; then
22500
22501 cat >>confdefs.h <<\_ACEOF
22502 #define HAVE_LANGINFO_CODESET 1
22503 _ACEOF
22504
22505 fi
22506
22507 echo "$as_me:$LINENO: checking for size_t" >&5
22508 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22509 if test "${ac_cv_type_size_t+set}" = set; then
22510 echo $ECHO_N "(cached) $ECHO_C" >&6
22511 else
22512 cat >conftest.$ac_ext <<_ACEOF
22513 /* confdefs.h. */
22514 _ACEOF
22515 cat confdefs.h >>conftest.$ac_ext
22516 cat >>conftest.$ac_ext <<_ACEOF
22517 /* end confdefs.h. */
22518 $ac_includes_default
22519 int
22520 main ()
22521 {
22522 if ((size_t *) 0)
22523 return 0;
22524 if (sizeof (size_t))
22525 return 0;
22526 ;
22527 return 0;
22528 }
22529 _ACEOF
22530 rm -f conftest.$ac_objext
22531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22532 (eval $ac_compile) 2>conftest.er1
22533 ac_status=$?
22534 grep -v '^ *+' conftest.er1 >conftest.err
22535 rm -f conftest.er1
22536 cat conftest.err >&5
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); } &&
22539 { ac_try='test -z "$ac_c_werror_flag"
22540 || test ! -s conftest.err'
22541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542 (eval $ac_try) 2>&5
22543 ac_status=$?
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; } &&
22546 { ac_try='test -s conftest.$ac_objext'
22547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548 (eval $ac_try) 2>&5
22549 ac_status=$?
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); }; }; then
22552 ac_cv_type_size_t=yes
22553 else
22554 echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22556
22557 ac_cv_type_size_t=no
22558 fi
22559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22560 fi
22561 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22562 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22563 if test $ac_cv_type_size_t = yes; then
22564
22565 cat >>confdefs.h <<_ACEOF
22566 #define HAVE_SIZE_T 1
22567 _ACEOF
22568
22569
22570 fi
22571
22572
22573 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22574 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22575 if test "${ac_cv_type_mbstate_t+set}" = set; then
22576 echo $ECHO_N "(cached) $ECHO_C" >&6
22577 else
22578 cat >conftest.$ac_ext <<_ACEOF
22579 /* confdefs.h. */
22580 _ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h. */
22584 $ac_includes_default
22585 # include <wchar.h>
22586 int
22587 main ()
22588 {
22589 mbstate_t x; return sizeof x;
22590 ;
22591 return 0;
22592 }
22593 _ACEOF
22594 rm -f conftest.$ac_objext
22595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22596 (eval $ac_compile) 2>conftest.er1
22597 ac_status=$?
22598 grep -v '^ *+' conftest.er1 >conftest.err
22599 rm -f conftest.er1
22600 cat conftest.err >&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } &&
22603 { ac_try='test -z "$ac_c_werror_flag"
22604 || test ! -s conftest.err'
22605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22606 (eval $ac_try) 2>&5
22607 ac_status=$?
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); }; } &&
22610 { ac_try='test -s conftest.$ac_objext'
22611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612 (eval $ac_try) 2>&5
22613 ac_status=$?
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); }; }; then
22616 ac_cv_type_mbstate_t=yes
22617 else
22618 echo "$as_me: failed program was:" >&5
22619 sed 's/^/| /' conftest.$ac_ext >&5
22620
22621 ac_cv_type_mbstate_t=no
22622 fi
22623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22624 fi
22625 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22626 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22627 if test $ac_cv_type_mbstate_t = yes; then
22628
22629 cat >>confdefs.h <<\_ACEOF
22630 #define HAVE_MBSTATE_T 1
22631 _ACEOF
22632
22633 else
22634
22635 cat >>confdefs.h <<\_ACEOF
22636 #define mbstate_t int
22637 _ACEOF
22638
22639 fi
22640
22641 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22642 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22643 if test "${emacs_cv_c_restrict+set}" = set; then
22644 echo $ECHO_N "(cached) $ECHO_C" >&6
22645 else
22646 cat >conftest.$ac_ext <<_ACEOF
22647 /* confdefs.h. */
22648 _ACEOF
22649 cat confdefs.h >>conftest.$ac_ext
22650 cat >>conftest.$ac_ext <<_ACEOF
22651 /* end confdefs.h. */
22652 void fred (int *restrict x);
22653 int
22654 main ()
22655 {
22656
22657 ;
22658 return 0;
22659 }
22660 _ACEOF
22661 rm -f conftest.$ac_objext
22662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22663 (eval $ac_compile) 2>conftest.er1
22664 ac_status=$?
22665 grep -v '^ *+' conftest.er1 >conftest.err
22666 rm -f conftest.er1
22667 cat conftest.err >&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); } &&
22670 { ac_try='test -z "$ac_c_werror_flag"
22671 || test ! -s conftest.err'
22672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673 (eval $ac_try) 2>&5
22674 ac_status=$?
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); }; } &&
22677 { ac_try='test -s conftest.$ac_objext'
22678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22679 (eval $ac_try) 2>&5
22680 ac_status=$?
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); }; }; then
22683 emacs_cv_c_restrict=yes
22684 else
22685 echo "$as_me: failed program was:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22687
22688 cat >conftest.$ac_ext <<_ACEOF
22689 /* confdefs.h. */
22690 _ACEOF
22691 cat confdefs.h >>conftest.$ac_ext
22692 cat >>conftest.$ac_ext <<_ACEOF
22693 /* end confdefs.h. */
22694 void fred (int *__restrict x);
22695 int
22696 main ()
22697 {
22698
22699 ;
22700 return 0;
22701 }
22702 _ACEOF
22703 rm -f conftest.$ac_objext
22704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22705 (eval $ac_compile) 2>conftest.er1
22706 ac_status=$?
22707 grep -v '^ *+' conftest.er1 >conftest.err
22708 rm -f conftest.er1
22709 cat conftest.err >&5
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); } &&
22712 { ac_try='test -z "$ac_c_werror_flag"
22713 || test ! -s conftest.err'
22714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22715 (eval $ac_try) 2>&5
22716 ac_status=$?
22717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718 (exit $ac_status); }; } &&
22719 { ac_try='test -s conftest.$ac_objext'
22720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22721 (eval $ac_try) 2>&5
22722 ac_status=$?
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); }; }; then
22725 emacs_cv_c_restrict=__restrict
22726 else
22727 echo "$as_me: failed program was:" >&5
22728 sed 's/^/| /' conftest.$ac_ext >&5
22729
22730 emacs_cv_c_restrict=no
22731 fi
22732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22733 fi
22734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22735 fi
22736 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22737 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22738 case "$emacs_cv_c_restrict" in
22739 yes) emacs_restrict=restrict;;
22740 no) emacs_restrict="";;
22741 *) emacs_restrict="$emacs_cv_c_restrict";;
22742 esac
22743 if test "$emacs_restrict" != __restrict; then
22744
22745 cat >>confdefs.h <<_ACEOF
22746 #define __restrict $emacs_restrict
22747 _ACEOF
22748
22749 fi
22750
22751 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22752 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22753 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22754 echo $ECHO_N "(cached) $ECHO_C" >&6
22755 else
22756 cat >conftest.$ac_ext <<_ACEOF
22757 /* confdefs.h. */
22758 _ACEOF
22759 cat confdefs.h >>conftest.$ac_ext
22760 cat >>conftest.$ac_ext <<_ACEOF
22761 /* end confdefs.h. */
22762 void fred (int x[__restrict]);
22763 int
22764 main ()
22765 {
22766
22767 ;
22768 return 0;
22769 }
22770 _ACEOF
22771 rm -f conftest.$ac_objext
22772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22773 (eval $ac_compile) 2>conftest.er1
22774 ac_status=$?
22775 grep -v '^ *+' conftest.er1 >conftest.err
22776 rm -f conftest.er1
22777 cat conftest.err >&5
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); } &&
22780 { ac_try='test -z "$ac_c_werror_flag"
22781 || test ! -s conftest.err'
22782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783 (eval $ac_try) 2>&5
22784 ac_status=$?
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); }; } &&
22787 { ac_try='test -s conftest.$ac_objext'
22788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789 (eval $ac_try) 2>&5
22790 ac_status=$?
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); }; }; then
22793 emacs_cv_c_restrict_arr=yes
22794 else
22795 echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22797
22798 emacs_cv_c_restrict_arr=no
22799 fi
22800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22801 fi
22802 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22803 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22804 if test "$emacs_cv_c_restrict_arr" = yes; then
22805
22806 cat >>confdefs.h <<\_ACEOF
22807 #define __restrict_arr __restrict
22808 _ACEOF
22809
22810 fi
22811
22812
22813
22814 # Set up the CFLAGS for real compilation, so we can substitute it.
22815 CFLAGS="$REAL_CFLAGS"
22816 CPPFLAGS="$REAL_CPPFLAGS"
22817
22818 #### Find out which version of Emacs this is.
22819 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22820 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22821 if test x"${version}" = x; then
22822 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22823 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22824 { (exit 1); exit 1; }; }
22825 fi
22826
22827 ### Specify what sort of things we'll be editing into Makefile and config.h.
22828 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859
22860
22861
22862
22863
22864 cat >>confdefs.h <<_ACEOF
22865 #define EMACS_CONFIGURATION "${canonical}"
22866 _ACEOF
22867
22868
22869 cat >>confdefs.h <<_ACEOF
22870 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22871 _ACEOF
22872
22873
22874 cat >>confdefs.h <<_ACEOF
22875 #define config_machfile "${machfile}"
22876 _ACEOF
22877
22878
22879 cat >>confdefs.h <<_ACEOF
22880 #define config_opsysfile "${opsysfile}"
22881 _ACEOF
22882
22883
22884 cat >>confdefs.h <<_ACEOF
22885 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22886 _ACEOF
22887
22888
22889 cat >>confdefs.h <<_ACEOF
22890 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22891 _ACEOF
22892
22893
22894 cat >>confdefs.h <<_ACEOF
22895 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22896 _ACEOF
22897
22898
22899 cat >>confdefs.h <<_ACEOF
22900 #define UNEXEC_SRC ${UNEXEC_SRC}
22901 _ACEOF
22902
22903
22904 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22905
22906 cat >>confdefs.h <<\_ACEOF
22907 #define HAVE_X_WINDOWS 1
22908 _ACEOF
22909
22910 fi
22911 if test "${USE_X_TOOLKIT}" != "none" ; then
22912
22913 cat >>confdefs.h <<\_ACEOF
22914 #define USE_X_TOOLKIT 1
22915 _ACEOF
22916
22917 fi
22918 if test "${HAVE_X11}" = "yes" ; then
22919
22920 cat >>confdefs.h <<\_ACEOF
22921 #define HAVE_X11 1
22922 _ACEOF
22923
22924 fi
22925 if test "${HAVE_XFREE386}" = "yes" ; then
22926
22927 cat >>confdefs.h <<\_ACEOF
22928 #define HAVE_XFREE386 1
22929 _ACEOF
22930
22931 fi
22932 if test "${HAVE_MENUS}" = "yes" ; then
22933
22934 cat >>confdefs.h <<\_ACEOF
22935 #define HAVE_MENUS 1
22936 _ACEOF
22937
22938 fi
22939 if test "${GNU_MALLOC}" = "yes" ; then
22940
22941 cat >>confdefs.h <<\_ACEOF
22942 #define GNU_MALLOC 1
22943 _ACEOF
22944
22945 fi
22946 if test "${REL_ALLOC}" = "yes" ; then
22947
22948 cat >>confdefs.h <<\_ACEOF
22949 #define REL_ALLOC 1
22950 _ACEOF
22951
22952 fi
22953
22954
22955
22956
22957
22958 #### Report on what we decided to do.
22959 #### Report GTK as a toolkit, even if it doesn't use Xt.
22960 #### It makes printing result more understandable as using GTK sets
22961 #### toolkit_scroll_bars to yes by default.
22962 if test "${HAVE_GTK}" = "yes"; then
22963 USE_X_TOOLKIT=GTK
22964 fi
22965
22966 echo "
22967 Configured for \`${canonical}'.
22968
22969 Where should the build process find the source code? ${srcdir}
22970 What operating system and machine description files should Emacs use?
22971 \`${opsysfile}' and \`${machfile}'
22972 What compiler should emacs be built with? ${CC} ${CFLAGS}
22973 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22974 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22975 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22976 What window system should Emacs use? ${window_system}
22977 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22978
22979 if test -n "${x_includes}"; then
22980 echo " Where do we find X Windows header files? ${x_includes}"
22981 else
22982 echo " Where do we find X Windows header files? Standard dirs"
22983 fi
22984 if test -n "${x_libraries}"; then
22985 echo " Where do we find X Windows libraries? ${x_libraries}"
22986 else
22987 echo " Where do we find X Windows libraries? Standard dirs"
22988 fi
22989
22990 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22991 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22992 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22993 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22994 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22995 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22996 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22997 echo
22998
22999 if test $USE_XASSERTS = yes; then
23000 echo " Compiling with asserts turned on."
23001 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23002 echo
23003 fi
23004
23005
23006
23007 # Remove any trailing slashes in these variables.
23008 test "${prefix}" != NONE &&
23009 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23010 test "${exec_prefix}" != NONE &&
23011 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23012
23013 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23014 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23015 ## from Makefile.c can correctly provide the arg `-traditional' to the
23016 ## C preprocessor.
23017
23018 cat >conftest.$ac_ext <<_ACEOF
23019 /* confdefs.h. */
23020 _ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h. */
23024 yes..yes
23025 _ACEOF
23026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23027 $EGREP "yes..yes" >/dev/null 2>&1; then
23028 CPP_NEED_TRADITIONAL=no
23029 else
23030 CPP_NEED_TRADITIONAL=yes
23031 fi
23032 rm -f conftest*
23033
23034
23035 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"
23036 ac_config_commands="$ac_config_commands default"
23037 cat >confcache <<\_ACEOF
23038 # This file is a shell script that caches the results of configure
23039 # tests run on this system so they can be shared between configure
23040 # scripts and configure runs, see configure's option --config-cache.
23041 # It is not useful on other systems. If it contains results you don't
23042 # want to keep, you may remove or edit it.
23043 #
23044 # config.status only pays attention to the cache file if you give it
23045 # the --recheck option to rerun configure.
23046 #
23047 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23048 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23049 # following values.
23050
23051 _ACEOF
23052
23053 # The following way of writing the cache mishandles newlines in values,
23054 # but we know of no workaround that is simple, portable, and efficient.
23055 # So, don't put newlines in cache variables' values.
23056 # Ultrix sh set writes to stderr and can't be redirected directly,
23057 # and sets the high bit in the cache file unless we assign to the vars.
23058 {
23059 (set) 2>&1 |
23060 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23061 *ac_space=\ *)
23062 # `set' does not quote correctly, so add quotes (double-quote
23063 # substitution turns \\\\ into \\, and sed turns \\ into \).
23064 sed -n \
23065 "s/'/'\\\\''/g;
23066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23067 ;;
23068 *)
23069 # `set' quotes correctly as required by POSIX, so do not add quotes.
23070 sed -n \
23071 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23072 ;;
23073 esac;
23074 } |
23075 sed '
23076 t clear
23077 : clear
23078 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23079 t end
23080 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23081 : end' >>confcache
23082 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23083 if test -w $cache_file; then
23084 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23085 cat confcache >$cache_file
23086 else
23087 echo "not updating unwritable cache $cache_file"
23088 fi
23089 fi
23090 rm -f confcache
23091
23092 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23093 # Let make expand exec_prefix.
23094 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23095
23096 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23097 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23098 # trailing colons and then remove the whole line if VPATH becomes empty
23099 # (actually we leave an empty line to preserve line numbers).
23100 if test "x$srcdir" = x.; then
23101 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23102 s/:*\$(srcdir):*/:/;
23103 s/:*\${srcdir}:*/:/;
23104 s/:*@srcdir@:*/:/;
23105 s/^\([^=]*=[ ]*\):*/\1/;
23106 s/:*$//;
23107 s/^[^=]*=[ ]*$//;
23108 }'
23109 fi
23110
23111 DEFS=-DHAVE_CONFIG_H
23112
23113 ac_libobjs=
23114 ac_ltlibobjs=
23115 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23116 # 1. Remove the extension, and $U if already installed.
23117 ac_i=`echo "$ac_i" |
23118 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23119 # 2. Add them.
23120 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23121 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23122 done
23123 LIBOBJS=$ac_libobjs
23124
23125 LTLIBOBJS=$ac_ltlibobjs
23126
23127
23128
23129 : ${CONFIG_STATUS=./config.status}
23130 ac_clean_files_save=$ac_clean_files
23131 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23132 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23133 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23134 cat >$CONFIG_STATUS <<_ACEOF
23135 #! $SHELL
23136 # Generated by $as_me.
23137 # Run this file to recreate the current configuration.
23138 # Compiler output produced by configure, useful for debugging
23139 # configure, is in config.log if it exists.
23140
23141 debug=false
23142 ac_cs_recheck=false
23143 ac_cs_silent=false
23144 SHELL=\${CONFIG_SHELL-$SHELL}
23145 _ACEOF
23146
23147 cat >>$CONFIG_STATUS <<\_ACEOF
23148 ## --------------------- ##
23149 ## M4sh Initialization. ##
23150 ## --------------------- ##
23151
23152 # Be Bourne compatible
23153 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23154 emulate sh
23155 NULLCMD=:
23156 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23157 # is contrary to our usage. Disable this feature.
23158 alias -g '${1+"$@"}'='"$@"'
23159 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23160 set -o posix
23161 fi
23162 DUALCASE=1; export DUALCASE # for MKS sh
23163
23164 # Support unset when possible.
23165 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23166 as_unset=unset
23167 else
23168 as_unset=false
23169 fi
23170
23171
23172 # Work around bugs in pre-3.0 UWIN ksh.
23173 $as_unset ENV MAIL MAILPATH
23174 PS1='$ '
23175 PS2='> '
23176 PS4='+ '
23177
23178 # NLS nuisances.
23179 for as_var in \
23180 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23181 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23182 LC_TELEPHONE LC_TIME
23183 do
23184 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23185 eval $as_var=C; export $as_var
23186 else
23187 $as_unset $as_var
23188 fi
23189 done
23190
23191 # Required to use basename.
23192 if expr a : '\(a\)' >/dev/null 2>&1; then
23193 as_expr=expr
23194 else
23195 as_expr=false
23196 fi
23197
23198 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23199 as_basename=basename
23200 else
23201 as_basename=false
23202 fi
23203
23204
23205 # Name of the executable.
23206 as_me=`$as_basename "$0" ||
23207 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23208 X"$0" : 'X\(//\)$' \| \
23209 X"$0" : 'X\(/\)$' \| \
23210 . : '\(.\)' 2>/dev/null ||
23211 echo X/"$0" |
23212 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23213 /^X\/\(\/\/\)$/{ s//\1/; q; }
23214 /^X\/\(\/\).*/{ s//\1/; q; }
23215 s/.*/./; q'`
23216
23217
23218 # PATH needs CR, and LINENO needs CR and PATH.
23219 # Avoid depending upon Character Ranges.
23220 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23221 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23222 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23223 as_cr_digits='0123456789'
23224 as_cr_alnum=$as_cr_Letters$as_cr_digits
23225
23226 # The user is always right.
23227 if test "${PATH_SEPARATOR+set}" != set; then
23228 echo "#! /bin/sh" >conf$$.sh
23229 echo "exit 0" >>conf$$.sh
23230 chmod +x conf$$.sh
23231 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23232 PATH_SEPARATOR=';'
23233 else
23234 PATH_SEPARATOR=:
23235 fi
23236 rm -f conf$$.sh
23237 fi
23238
23239
23240 as_lineno_1=$LINENO
23241 as_lineno_2=$LINENO
23242 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23243 test "x$as_lineno_1" != "x$as_lineno_2" &&
23244 test "x$as_lineno_3" = "x$as_lineno_2" || {
23245 # Find who we are. Look in the path if we contain no path at all
23246 # relative or not.
23247 case $0 in
23248 *[\\/]* ) as_myself=$0 ;;
23249 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23250 for as_dir in $PATH
23251 do
23252 IFS=$as_save_IFS
23253 test -z "$as_dir" && as_dir=.
23254 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23255 done
23256
23257 ;;
23258 esac
23259 # We did not find ourselves, most probably we were run as `sh COMMAND'
23260 # in which case we are not to be found in the path.
23261 if test "x$as_myself" = x; then
23262 as_myself=$0
23263 fi
23264 if test ! -f "$as_myself"; then
23265 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23266 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23267 { (exit 1); exit 1; }; }
23268 fi
23269 case $CONFIG_SHELL in
23270 '')
23271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23272 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23273 do
23274 IFS=$as_save_IFS
23275 test -z "$as_dir" && as_dir=.
23276 for as_base in sh bash ksh sh5; do
23277 case $as_dir in
23278 /*)
23279 if ("$as_dir/$as_base" -c '
23280 as_lineno_1=$LINENO
23281 as_lineno_2=$LINENO
23282 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23283 test "x$as_lineno_1" != "x$as_lineno_2" &&
23284 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23285 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23286 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23287 CONFIG_SHELL=$as_dir/$as_base
23288 export CONFIG_SHELL
23289 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23290 fi;;
23291 esac
23292 done
23293 done
23294 ;;
23295 esac
23296
23297 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23298 # uniformly replaced by the line number. The first 'sed' inserts a
23299 # line-number line before each line; the second 'sed' does the real
23300 # work. The second script uses 'N' to pair each line-number line
23301 # with the numbered line, and appends trailing '-' during
23302 # substitution so that $LINENO is not a special case at line end.
23303 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23304 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23305 sed '=' <$as_myself |
23306 sed '
23307 N
23308 s,$,-,
23309 : loop
23310 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23311 t loop
23312 s,-$,,
23313 s,^['$as_cr_digits']*\n,,
23314 ' >$as_me.lineno &&
23315 chmod +x $as_me.lineno ||
23316 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23317 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23318 { (exit 1); exit 1; }; }
23319
23320 # Don't try to exec as it changes $[0], causing all sort of problems
23321 # (the dirname of $[0] is not the place where we might find the
23322 # original and so on. Autoconf is especially sensible to this).
23323 . ./$as_me.lineno
23324 # Exit status is that of the last command.
23325 exit
23326 }
23327
23328
23329 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23330 *c*,-n*) ECHO_N= ECHO_C='
23331 ' ECHO_T=' ' ;;
23332 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23333 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23334 esac
23335
23336 if expr a : '\(a\)' >/dev/null 2>&1; then
23337 as_expr=expr
23338 else
23339 as_expr=false
23340 fi
23341
23342 rm -f conf$$ conf$$.exe conf$$.file
23343 echo >conf$$.file
23344 if ln -s conf$$.file conf$$ 2>/dev/null; then
23345 # We could just check for DJGPP; but this test a) works b) is more generic
23346 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23347 if test -f conf$$.exe; then
23348 # Don't use ln at all; we don't have any links
23349 as_ln_s='cp -p'
23350 else
23351 as_ln_s='ln -s'
23352 fi
23353 elif ln conf$$.file conf$$ 2>/dev/null; then
23354 as_ln_s=ln
23355 else
23356 as_ln_s='cp -p'
23357 fi
23358 rm -f conf$$ conf$$.exe conf$$.file
23359
23360 if mkdir -p . 2>/dev/null; then
23361 as_mkdir_p=:
23362 else
23363 test -d ./-p && rmdir ./-p
23364 as_mkdir_p=false
23365 fi
23366
23367 as_executable_p="test -f"
23368
23369 # Sed expression to map a string onto a valid CPP name.
23370 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23371
23372 # Sed expression to map a string onto a valid variable name.
23373 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23374
23375
23376 # IFS
23377 # We need space, tab and new line, in precisely that order.
23378 as_nl='
23379 '
23380 IFS=" $as_nl"
23381
23382 # CDPATH.
23383 $as_unset CDPATH
23384
23385 exec 6>&1
23386
23387 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23388 # report actual input values of CONFIG_FILES etc. instead of their
23389 # values after options handling. Logging --version etc. is OK.
23390 exec 5>>config.log
23391 {
23392 echo
23393 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23394 ## Running $as_me. ##
23395 _ASBOX
23396 } >&5
23397 cat >&5 <<_CSEOF
23398
23399 This file was extended by $as_me, which was
23400 generated by GNU Autoconf 2.59. Invocation command line was
23401
23402 CONFIG_FILES = $CONFIG_FILES
23403 CONFIG_HEADERS = $CONFIG_HEADERS
23404 CONFIG_LINKS = $CONFIG_LINKS
23405 CONFIG_COMMANDS = $CONFIG_COMMANDS
23406 $ $0 $@
23407
23408 _CSEOF
23409 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23410 echo >&5
23411 _ACEOF
23412
23413 # Files that config.status was made for.
23414 if test -n "$ac_config_files"; then
23415 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23416 fi
23417
23418 if test -n "$ac_config_headers"; then
23419 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23420 fi
23421
23422 if test -n "$ac_config_links"; then
23423 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23424 fi
23425
23426 if test -n "$ac_config_commands"; then
23427 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23428 fi
23429
23430 cat >>$CONFIG_STATUS <<\_ACEOF
23431
23432 ac_cs_usage="\
23433 \`$as_me' instantiates files from templates according to the
23434 current configuration.
23435
23436 Usage: $0 [OPTIONS] [FILE]...
23437
23438 -h, --help print this help, then exit
23439 -V, --version print version number, then exit
23440 -q, --quiet do not print progress messages
23441 -d, --debug don't remove temporary files
23442 --recheck update $as_me by reconfiguring in the same conditions
23443 --file=FILE[:TEMPLATE]
23444 instantiate the configuration file FILE
23445 --header=FILE[:TEMPLATE]
23446 instantiate the configuration header FILE
23447
23448 Configuration files:
23449 $config_files
23450
23451 Configuration headers:
23452 $config_headers
23453
23454 Configuration commands:
23455 $config_commands
23456
23457 Report bugs to <bug-autoconf@gnu.org>."
23458 _ACEOF
23459
23460 cat >>$CONFIG_STATUS <<_ACEOF
23461 ac_cs_version="\\
23462 config.status
23463 configured by $0, generated by GNU Autoconf 2.59,
23464 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23465
23466 Copyright (C) 2003 Free Software Foundation, Inc.
23467 This config.status script is free software; the Free Software Foundation
23468 gives unlimited permission to copy, distribute and modify it."
23469 srcdir=$srcdir
23470 INSTALL="$INSTALL"
23471 _ACEOF
23472
23473 cat >>$CONFIG_STATUS <<\_ACEOF
23474 # If no file are specified by the user, then we need to provide default
23475 # value. By we need to know if files were specified by the user.
23476 ac_need_defaults=:
23477 while test $# != 0
23478 do
23479 case $1 in
23480 --*=*)
23481 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23482 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23483 ac_shift=:
23484 ;;
23485 -*)
23486 ac_option=$1
23487 ac_optarg=$2
23488 ac_shift=shift
23489 ;;
23490 *) # This is not an option, so the user has probably given explicit
23491 # arguments.
23492 ac_option=$1
23493 ac_need_defaults=false;;
23494 esac
23495
23496 case $ac_option in
23497 # Handling of the options.
23498 _ACEOF
23499 cat >>$CONFIG_STATUS <<\_ACEOF
23500 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23501 ac_cs_recheck=: ;;
23502 --version | --vers* | -V )
23503 echo "$ac_cs_version"; exit 0 ;;
23504 --he | --h)
23505 # Conflict between --help and --header
23506 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23507 Try \`$0 --help' for more information." >&5
23508 echo "$as_me: error: ambiguous option: $1
23509 Try \`$0 --help' for more information." >&2;}
23510 { (exit 1); exit 1; }; };;
23511 --help | --hel | -h )
23512 echo "$ac_cs_usage"; exit 0 ;;
23513 --debug | --d* | -d )
23514 debug=: ;;
23515 --file | --fil | --fi | --f )
23516 $ac_shift
23517 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23518 ac_need_defaults=false;;
23519 --header | --heade | --head | --hea )
23520 $ac_shift
23521 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23522 ac_need_defaults=false;;
23523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23524 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23525 ac_cs_silent=: ;;
23526
23527 # This is an error.
23528 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23529 Try \`$0 --help' for more information." >&5
23530 echo "$as_me: error: unrecognized option: $1
23531 Try \`$0 --help' for more information." >&2;}
23532 { (exit 1); exit 1; }; } ;;
23533
23534 *) ac_config_targets="$ac_config_targets $1" ;;
23535
23536 esac
23537 shift
23538 done
23539
23540 ac_configure_extra_args=
23541
23542 if $ac_cs_silent; then
23543 exec 6>/dev/null
23544 ac_configure_extra_args="$ac_configure_extra_args --silent"
23545 fi
23546
23547 _ACEOF
23548 cat >>$CONFIG_STATUS <<_ACEOF
23549 if \$ac_cs_recheck; then
23550 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23551 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23552 fi
23553
23554 _ACEOF
23555
23556 cat >>$CONFIG_STATUS <<_ACEOF
23557 #
23558 # INIT-COMMANDS section.
23559 #
23560
23561 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23562
23563 _ACEOF
23564
23565
23566
23567 cat >>$CONFIG_STATUS <<\_ACEOF
23568 for ac_config_target in $ac_config_targets
23569 do
23570 case "$ac_config_target" in
23571 # Handling of arguments.
23572 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23573 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23574 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23575 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23576 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23577 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23578 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23579 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23580 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23581 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23582 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23583 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23584 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23585 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23586 { (exit 1); exit 1; }; };;
23587 esac
23588 done
23589
23590 # If the user did not use the arguments to specify the items to instantiate,
23591 # then the envvar interface is used. Set only those that are not.
23592 # We use the long form for the default assignment because of an extremely
23593 # bizarre bug on SunOS 4.1.3.
23594 if $ac_need_defaults; then
23595 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23596 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23597 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23598 fi
23599
23600 # Have a temporary directory for convenience. Make it in the build tree
23601 # simply because there is no reason to put it here, and in addition,
23602 # creating and moving files from /tmp can sometimes cause problems.
23603 # Create a temporary directory, and hook for its removal unless debugging.
23604 $debug ||
23605 {
23606 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23607 trap '{ (exit 1); exit 1; }' 1 2 13 15
23608 }
23609
23610 # Create a (secure) tmp directory for tmp files.
23611
23612 {
23613 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23614 test -n "$tmp" && test -d "$tmp"
23615 } ||
23616 {
23617 tmp=./confstat$$-$RANDOM
23618 (umask 077 && mkdir $tmp)
23619 } ||
23620 {
23621 echo "$me: cannot create a temporary directory in ." >&2
23622 { (exit 1); exit 1; }
23623 }
23624
23625 _ACEOF
23626
23627 cat >>$CONFIG_STATUS <<_ACEOF
23628
23629 #
23630 # CONFIG_FILES section.
23631 #
23632
23633 # No need to generate the scripts if there are no CONFIG_FILES.
23634 # This happens for instance when ./config.status config.h
23635 if test -n "\$CONFIG_FILES"; then
23636 # Protect against being on the right side of a sed subst in config.status.
23637 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23638 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23639 s,@SHELL@,$SHELL,;t t
23640 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23641 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23642 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23643 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23644 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23645 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23646 s,@exec_prefix@,$exec_prefix,;t t
23647 s,@prefix@,$prefix,;t t
23648 s,@program_transform_name@,$program_transform_name,;t t
23649 s,@bindir@,$bindir,;t t
23650 s,@sbindir@,$sbindir,;t t
23651 s,@libexecdir@,$libexecdir,;t t
23652 s,@datadir@,$datadir,;t t
23653 s,@sysconfdir@,$sysconfdir,;t t
23654 s,@sharedstatedir@,$sharedstatedir,;t t
23655 s,@localstatedir@,$localstatedir,;t t
23656 s,@libdir@,$libdir,;t t
23657 s,@includedir@,$includedir,;t t
23658 s,@oldincludedir@,$oldincludedir,;t t
23659 s,@infodir@,$infodir,;t t
23660 s,@mandir@,$mandir,;t t
23661 s,@build_alias@,$build_alias,;t t
23662 s,@host_alias@,$host_alias,;t t
23663 s,@target_alias@,$target_alias,;t t
23664 s,@DEFS@,$DEFS,;t t
23665 s,@ECHO_C@,$ECHO_C,;t t
23666 s,@ECHO_N@,$ECHO_N,;t t
23667 s,@ECHO_T@,$ECHO_T,;t t
23668 s,@LIBS@,$LIBS,;t t
23669 s,@MAINT@,$MAINT,;t t
23670 s,@build@,$build,;t t
23671 s,@build_cpu@,$build_cpu,;t t
23672 s,@build_vendor@,$build_vendor,;t t
23673 s,@build_os@,$build_os,;t t
23674 s,@host@,$host,;t t
23675 s,@host_cpu@,$host_cpu,;t t
23676 s,@host_vendor@,$host_vendor,;t t
23677 s,@host_os@,$host_os,;t t
23678 s,@CC@,$CC,;t t
23679 s,@CFLAGS@,$CFLAGS,;t t
23680 s,@LDFLAGS@,$LDFLAGS,;t t
23681 s,@CPPFLAGS@,$CPPFLAGS,;t t
23682 s,@ac_ct_CC@,$ac_ct_CC,;t t
23683 s,@EXEEXT@,$EXEEXT,;t t
23684 s,@OBJEXT@,$OBJEXT,;t t
23685 s,@CPP@,$CPP,;t t
23686 s,@EGREP@,$EGREP,;t t
23687 s,@LN_S@,$LN_S,;t t
23688 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23689 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23690 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23691 s,@RANLIB@,$RANLIB,;t t
23692 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23693 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23694 s,@GZIP_PROG@,$GZIP_PROG,;t t
23695 s,@LIBSOUND@,$LIBSOUND,;t t
23696 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23697 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
23698 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
23699 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
23700 s,@SET_MAKE@,$SET_MAKE,;t t
23701 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23702 s,@GTK_LIBS@,$GTK_LIBS,;t t
23703 s,@ALLOCA@,$ALLOCA,;t t
23704 s,@liblockfile@,$liblockfile,;t t
23705 s,@LIBOBJS@,$LIBOBJS,;t t
23706 s,@NEED_SETGID@,$NEED_SETGID,;t t
23707 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23708 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23709 s,@GETOPT_H@,$GETOPT_H,;t t
23710 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23711 s,@version@,$version,;t t
23712 s,@configuration@,$configuration,;t t
23713 s,@canonical@,$canonical,;t t
23714 s,@srcdir@,$srcdir,;t t
23715 s,@lispdir@,$lispdir,;t t
23716 s,@locallisppath@,$locallisppath,;t t
23717 s,@lisppath@,$lisppath,;t t
23718 s,@x_default_search_path@,$x_default_search_path,;t t
23719 s,@etcdir@,$etcdir,;t t
23720 s,@archlibdir@,$archlibdir,;t t
23721 s,@docdir@,$docdir,;t t
23722 s,@bitmapdir@,$bitmapdir,;t t
23723 s,@gamedir@,$gamedir,;t t
23724 s,@gameuser@,$gameuser,;t t
23725 s,@c_switch_system@,$c_switch_system,;t t
23726 s,@c_switch_machine@,$c_switch_machine,;t t
23727 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23728 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23729 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23730 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23731 s,@machfile@,$machfile,;t t
23732 s,@opsysfile@,$opsysfile,;t t
23733 s,@carbon_appdir@,$carbon_appdir,;t t
23734 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23735 CEOF
23736
23737 _ACEOF
23738
23739 cat >>$CONFIG_STATUS <<\_ACEOF
23740 # Split the substitutions into bite-sized pieces for seds with
23741 # small command number limits, like on Digital OSF/1 and HP-UX.
23742 ac_max_sed_lines=48
23743 ac_sed_frag=1 # Number of current file.
23744 ac_beg=1 # First line for current file.
23745 ac_end=$ac_max_sed_lines # Line after last line for current file.
23746 ac_more_lines=:
23747 ac_sed_cmds=
23748 while $ac_more_lines; do
23749 if test $ac_beg -gt 1; then
23750 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23751 else
23752 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23753 fi
23754 if test ! -s $tmp/subs.frag; then
23755 ac_more_lines=false
23756 else
23757 # The purpose of the label and of the branching condition is to
23758 # speed up the sed processing (if there are no `@' at all, there
23759 # is no need to browse any of the substitutions).
23760 # These are the two extra sed commands mentioned above.
23761 (echo ':t
23762 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23763 if test -z "$ac_sed_cmds"; then
23764 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23765 else
23766 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23767 fi
23768 ac_sed_frag=`expr $ac_sed_frag + 1`
23769 ac_beg=$ac_end
23770 ac_end=`expr $ac_end + $ac_max_sed_lines`
23771 fi
23772 done
23773 if test -z "$ac_sed_cmds"; then
23774 ac_sed_cmds=cat
23775 fi
23776 fi # test -n "$CONFIG_FILES"
23777
23778 _ACEOF
23779 cat >>$CONFIG_STATUS <<\_ACEOF
23780 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23781 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23782 case $ac_file in
23783 - | *:- | *:-:* ) # input from stdin
23784 cat >$tmp/stdin
23785 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23786 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23787 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23788 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23789 * ) ac_file_in=$ac_file.in ;;
23790 esac
23791
23792 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23793 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23794 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23795 X"$ac_file" : 'X\(//\)[^/]' \| \
23796 X"$ac_file" : 'X\(//\)$' \| \
23797 X"$ac_file" : 'X\(/\)' \| \
23798 . : '\(.\)' 2>/dev/null ||
23799 echo X"$ac_file" |
23800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23801 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23802 /^X\(\/\/\)$/{ s//\1/; q; }
23803 /^X\(\/\).*/{ s//\1/; q; }
23804 s/.*/./; q'`
23805 { if $as_mkdir_p; then
23806 mkdir -p "$ac_dir"
23807 else
23808 as_dir="$ac_dir"
23809 as_dirs=
23810 while test ! -d "$as_dir"; do
23811 as_dirs="$as_dir $as_dirs"
23812 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23813 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23814 X"$as_dir" : 'X\(//\)[^/]' \| \
23815 X"$as_dir" : 'X\(//\)$' \| \
23816 X"$as_dir" : 'X\(/\)' \| \
23817 . : '\(.\)' 2>/dev/null ||
23818 echo X"$as_dir" |
23819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23821 /^X\(\/\/\)$/{ s//\1/; q; }
23822 /^X\(\/\).*/{ s//\1/; q; }
23823 s/.*/./; q'`
23824 done
23825 test ! -n "$as_dirs" || mkdir $as_dirs
23826 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23827 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23828 { (exit 1); exit 1; }; }; }
23829
23830 ac_builddir=.
23831
23832 if test "$ac_dir" != .; then
23833 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23834 # A "../" for each directory in $ac_dir_suffix.
23835 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23836 else
23837 ac_dir_suffix= ac_top_builddir=
23838 fi
23839
23840 case $srcdir in
23841 .) # No --srcdir option. We are building in place.
23842 ac_srcdir=.
23843 if test -z "$ac_top_builddir"; then
23844 ac_top_srcdir=.
23845 else
23846 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23847 fi ;;
23848 [\\/]* | ?:[\\/]* ) # Absolute path.
23849 ac_srcdir=$srcdir$ac_dir_suffix;
23850 ac_top_srcdir=$srcdir ;;
23851 *) # Relative path.
23852 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23853 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23854 esac
23855
23856 # Do not use `cd foo && pwd` to compute absolute paths, because
23857 # the directories may not exist.
23858 case `pwd` in
23859 .) ac_abs_builddir="$ac_dir";;
23860 *)
23861 case "$ac_dir" in
23862 .) ac_abs_builddir=`pwd`;;
23863 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23864 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23865 esac;;
23866 esac
23867 case $ac_abs_builddir in
23868 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23869 *)
23870 case ${ac_top_builddir}. in
23871 .) ac_abs_top_builddir=$ac_abs_builddir;;
23872 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23873 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23874 esac;;
23875 esac
23876 case $ac_abs_builddir in
23877 .) ac_abs_srcdir=$ac_srcdir;;
23878 *)
23879 case $ac_srcdir in
23880 .) ac_abs_srcdir=$ac_abs_builddir;;
23881 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23882 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23883 esac;;
23884 esac
23885 case $ac_abs_builddir in
23886 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23887 *)
23888 case $ac_top_srcdir in
23889 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23890 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23891 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23892 esac;;
23893 esac
23894
23895
23896 case $INSTALL in
23897 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23898 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23899 esac
23900
23901 if test x"$ac_file" != x-; then
23902 { echo "$as_me:$LINENO: creating $ac_file" >&5
23903 echo "$as_me: creating $ac_file" >&6;}
23904 rm -f "$ac_file"
23905 fi
23906 # Let's still pretend it is `configure' which instantiates (i.e., don't
23907 # use $as_me), people would be surprised to read:
23908 # /* config.h. Generated by config.status. */
23909 if test x"$ac_file" = x-; then
23910 configure_input=
23911 else
23912 configure_input="$ac_file. "
23913 fi
23914 configure_input=$configure_input"Generated from `echo $ac_file_in |
23915 sed 's,.*/,,'` by configure."
23916
23917 # First look for the input files in the build tree, otherwise in the
23918 # src tree.
23919 ac_file_inputs=`IFS=:
23920 for f in $ac_file_in; do
23921 case $f in
23922 -) echo $tmp/stdin ;;
23923 [\\/$]*)
23924 # Absolute (can't be DOS-style, as IFS=:)
23925 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23926 echo "$as_me: error: cannot find input file: $f" >&2;}
23927 { (exit 1); exit 1; }; }
23928 echo "$f";;
23929 *) # Relative
23930 if test -f "$f"; then
23931 # Build tree
23932 echo "$f"
23933 elif test -f "$srcdir/$f"; then
23934 # Source tree
23935 echo "$srcdir/$f"
23936 else
23937 # /dev/null tree
23938 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23939 echo "$as_me: error: cannot find input file: $f" >&2;}
23940 { (exit 1); exit 1; }; }
23941 fi;;
23942 esac
23943 done` || { (exit 1); exit 1; }
23944 _ACEOF
23945 cat >>$CONFIG_STATUS <<_ACEOF
23946 sed "$ac_vpsub
23947 $extrasub
23948 _ACEOF
23949 cat >>$CONFIG_STATUS <<\_ACEOF
23950 :t
23951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23952 s,@configure_input@,$configure_input,;t t
23953 s,@srcdir@,$ac_srcdir,;t t
23954 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23955 s,@top_srcdir@,$ac_top_srcdir,;t t
23956 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23957 s,@builddir@,$ac_builddir,;t t
23958 s,@abs_builddir@,$ac_abs_builddir,;t t
23959 s,@top_builddir@,$ac_top_builddir,;t t
23960 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23961 s,@INSTALL@,$ac_INSTALL,;t t
23962 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23963 rm -f $tmp/stdin
23964 if test x"$ac_file" != x-; then
23965 mv $tmp/out $ac_file
23966 else
23967 cat $tmp/out
23968 rm -f $tmp/out
23969 fi
23970
23971 done
23972 _ACEOF
23973 cat >>$CONFIG_STATUS <<\_ACEOF
23974
23975 #
23976 # CONFIG_HEADER section.
23977 #
23978
23979 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23980 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23981 #
23982 # ac_d sets the value in "#define NAME VALUE" lines.
23983 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23984 ac_dB='[ ].*$,\1#\2'
23985 ac_dC=' '
23986 ac_dD=',;t'
23987 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23988 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23989 ac_uB='$,\1#\2define\3'
23990 ac_uC=' '
23991 ac_uD=',;t'
23992
23993 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23994 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23995 case $ac_file in
23996 - | *:- | *:-:* ) # input from stdin
23997 cat >$tmp/stdin
23998 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23999 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24000 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24001 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24002 * ) ac_file_in=$ac_file.in ;;
24003 esac
24004
24005 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24006 echo "$as_me: creating $ac_file" >&6;}
24007
24008 # First look for the input files in the build tree, otherwise in the
24009 # src tree.
24010 ac_file_inputs=`IFS=:
24011 for f in $ac_file_in; do
24012 case $f in
24013 -) echo $tmp/stdin ;;
24014 [\\/$]*)
24015 # Absolute (can't be DOS-style, as IFS=:)
24016 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24017 echo "$as_me: error: cannot find input file: $f" >&2;}
24018 { (exit 1); exit 1; }; }
24019 # Do quote $f, to prevent DOS paths from being IFS'd.
24020 echo "$f";;
24021 *) # Relative
24022 if test -f "$f"; then
24023 # Build tree
24024 echo "$f"
24025 elif test -f "$srcdir/$f"; then
24026 # Source tree
24027 echo "$srcdir/$f"
24028 else
24029 # /dev/null tree
24030 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24031 echo "$as_me: error: cannot find input file: $f" >&2;}
24032 { (exit 1); exit 1; }; }
24033 fi;;
24034 esac
24035 done` || { (exit 1); exit 1; }
24036 # Remove the trailing spaces.
24037 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24038
24039 _ACEOF
24040
24041 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24042 # `conftest.undefs', that substitutes the proper values into
24043 # config.h.in to produce config.h. The first handles `#define'
24044 # templates, and the second `#undef' templates.
24045 # And first: Protect against being on the right side of a sed subst in
24046 # config.status. Protect against being in an unquoted here document
24047 # in config.status.
24048 rm -f conftest.defines conftest.undefs
24049 # Using a here document instead of a string reduces the quoting nightmare.
24050 # Putting comments in sed scripts is not portable.
24051 #
24052 # `end' is used to avoid that the second main sed command (meant for
24053 # 0-ary CPP macros) applies to n-ary macro definitions.
24054 # See the Autoconf documentation for `clear'.
24055 cat >confdef2sed.sed <<\_ACEOF
24056 s/[\\&,]/\\&/g
24057 s,[\\$`],\\&,g
24058 t clear
24059 : clear
24060 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24061 t end
24062 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24063 : end
24064 _ACEOF
24065 # If some macros were called several times there might be several times
24066 # the same #defines, which is useless. Nevertheless, we may not want to
24067 # sort them, since we want the *last* AC-DEFINE to be honored.
24068 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24069 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24070 rm -f confdef2sed.sed
24071
24072 # This sed command replaces #undef with comments. This is necessary, for
24073 # example, in the case of _POSIX_SOURCE, which is predefined and required
24074 # on some systems where configure will not decide to define it.
24075 cat >>conftest.undefs <<\_ACEOF
24076 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24077 _ACEOF
24078
24079 # Break up conftest.defines because some shells have a limit on the size
24080 # of here documents, and old seds have small limits too (100 cmds).
24081 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24082 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24083 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24084 echo ' :' >>$CONFIG_STATUS
24085 rm -f conftest.tail
24086 while grep . conftest.defines >/dev/null
24087 do
24088 # Write a limited-size here document to $tmp/defines.sed.
24089 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24090 # Speed up: don't consider the non `#define' lines.
24091 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24092 # Work around the forget-to-reset-the-flag bug.
24093 echo 't clr' >>$CONFIG_STATUS
24094 echo ': clr' >>$CONFIG_STATUS
24095 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24096 echo 'CEOF
24097 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24098 rm -f $tmp/in
24099 mv $tmp/out $tmp/in
24100 ' >>$CONFIG_STATUS
24101 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24102 rm -f conftest.defines
24103 mv conftest.tail conftest.defines
24104 done
24105 rm -f conftest.defines
24106 echo ' fi # grep' >>$CONFIG_STATUS
24107 echo >>$CONFIG_STATUS
24108
24109 # Break up conftest.undefs because some shells have a limit on the size
24110 # of here documents, and old seds have small limits too (100 cmds).
24111 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24112 rm -f conftest.tail
24113 while grep . conftest.undefs >/dev/null
24114 do
24115 # Write a limited-size here document to $tmp/undefs.sed.
24116 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24117 # Speed up: don't consider the non `#undef'
24118 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24119 # Work around the forget-to-reset-the-flag bug.
24120 echo 't clr' >>$CONFIG_STATUS
24121 echo ': clr' >>$CONFIG_STATUS
24122 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24123 echo 'CEOF
24124 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24125 rm -f $tmp/in
24126 mv $tmp/out $tmp/in
24127 ' >>$CONFIG_STATUS
24128 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24129 rm -f conftest.undefs
24130 mv conftest.tail conftest.undefs
24131 done
24132 rm -f conftest.undefs
24133
24134 cat >>$CONFIG_STATUS <<\_ACEOF
24135 # Let's still pretend it is `configure' which instantiates (i.e., don't
24136 # use $as_me), people would be surprised to read:
24137 # /* config.h. Generated by config.status. */
24138 if test x"$ac_file" = x-; then
24139 echo "/* Generated by configure. */" >$tmp/config.h
24140 else
24141 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24142 fi
24143 cat $tmp/in >>$tmp/config.h
24144 rm -f $tmp/in
24145 if test x"$ac_file" != x-; then
24146 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24147 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24148 echo "$as_me: $ac_file is unchanged" >&6;}
24149 else
24150 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24151 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24152 X"$ac_file" : 'X\(//\)[^/]' \| \
24153 X"$ac_file" : 'X\(//\)$' \| \
24154 X"$ac_file" : 'X\(/\)' \| \
24155 . : '\(.\)' 2>/dev/null ||
24156 echo X"$ac_file" |
24157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24159 /^X\(\/\/\)$/{ s//\1/; q; }
24160 /^X\(\/\).*/{ s//\1/; q; }
24161 s/.*/./; q'`
24162 { if $as_mkdir_p; then
24163 mkdir -p "$ac_dir"
24164 else
24165 as_dir="$ac_dir"
24166 as_dirs=
24167 while test ! -d "$as_dir"; do
24168 as_dirs="$as_dir $as_dirs"
24169 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24171 X"$as_dir" : 'X\(//\)[^/]' \| \
24172 X"$as_dir" : 'X\(//\)$' \| \
24173 X"$as_dir" : 'X\(/\)' \| \
24174 . : '\(.\)' 2>/dev/null ||
24175 echo X"$as_dir" |
24176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24178 /^X\(\/\/\)$/{ s//\1/; q; }
24179 /^X\(\/\).*/{ s//\1/; q; }
24180 s/.*/./; q'`
24181 done
24182 test ! -n "$as_dirs" || mkdir $as_dirs
24183 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24184 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24185 { (exit 1); exit 1; }; }; }
24186
24187 rm -f $ac_file
24188 mv $tmp/config.h $ac_file
24189 fi
24190 else
24191 cat $tmp/config.h
24192 rm -f $tmp/config.h
24193 fi
24194 done
24195 _ACEOF
24196 cat >>$CONFIG_STATUS <<\_ACEOF
24197
24198 #
24199 # CONFIG_COMMANDS section.
24200 #
24201 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24202 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24203 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24204 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24205 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24206 X"$ac_dest" : 'X\(//\)[^/]' \| \
24207 X"$ac_dest" : 'X\(//\)$' \| \
24208 X"$ac_dest" : 'X\(/\)' \| \
24209 . : '\(.\)' 2>/dev/null ||
24210 echo X"$ac_dest" |
24211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24212 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24213 /^X\(\/\/\)$/{ s//\1/; q; }
24214 /^X\(\/\).*/{ s//\1/; q; }
24215 s/.*/./; q'`
24216 { if $as_mkdir_p; then
24217 mkdir -p "$ac_dir"
24218 else
24219 as_dir="$ac_dir"
24220 as_dirs=
24221 while test ! -d "$as_dir"; do
24222 as_dirs="$as_dir $as_dirs"
24223 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24224 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24225 X"$as_dir" : 'X\(//\)[^/]' \| \
24226 X"$as_dir" : 'X\(//\)$' \| \
24227 X"$as_dir" : 'X\(/\)' \| \
24228 . : '\(.\)' 2>/dev/null ||
24229 echo X"$as_dir" |
24230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24232 /^X\(\/\/\)$/{ s//\1/; q; }
24233 /^X\(\/\).*/{ s//\1/; q; }
24234 s/.*/./; q'`
24235 done
24236 test ! -n "$as_dirs" || mkdir $as_dirs
24237 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24238 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24239 { (exit 1); exit 1; }; }; }
24240
24241 ac_builddir=.
24242
24243 if test "$ac_dir" != .; then
24244 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24245 # A "../" for each directory in $ac_dir_suffix.
24246 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24247 else
24248 ac_dir_suffix= ac_top_builddir=
24249 fi
24250
24251 case $srcdir in
24252 .) # No --srcdir option. We are building in place.
24253 ac_srcdir=.
24254 if test -z "$ac_top_builddir"; then
24255 ac_top_srcdir=.
24256 else
24257 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24258 fi ;;
24259 [\\/]* | ?:[\\/]* ) # Absolute path.
24260 ac_srcdir=$srcdir$ac_dir_suffix;
24261 ac_top_srcdir=$srcdir ;;
24262 *) # Relative path.
24263 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24264 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24265 esac
24266
24267 # Do not use `cd foo && pwd` to compute absolute paths, because
24268 # the directories may not exist.
24269 case `pwd` in
24270 .) ac_abs_builddir="$ac_dir";;
24271 *)
24272 case "$ac_dir" in
24273 .) ac_abs_builddir=`pwd`;;
24274 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24275 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24276 esac;;
24277 esac
24278 case $ac_abs_builddir in
24279 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24280 *)
24281 case ${ac_top_builddir}. in
24282 .) ac_abs_top_builddir=$ac_abs_builddir;;
24283 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24284 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24285 esac;;
24286 esac
24287 case $ac_abs_builddir in
24288 .) ac_abs_srcdir=$ac_srcdir;;
24289 *)
24290 case $ac_srcdir in
24291 .) ac_abs_srcdir=$ac_abs_builddir;;
24292 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24293 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24294 esac;;
24295 esac
24296 case $ac_abs_builddir in
24297 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24298 *)
24299 case $ac_top_srcdir in
24300 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24301 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24302 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24303 esac;;
24304 esac
24305
24306
24307 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24308 echo "$as_me: executing $ac_dest commands" >&6;}
24309 case $ac_dest in
24310 default )
24311
24312 ### Make the necessary directories, if they don't exist.
24313 for dir in etc lisp ; do
24314 test -d ${dir} || mkdir ${dir}
24315 done
24316
24317 # Build src/Makefile from ${srcdir}/src/Makefile.c
24318 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24319 # This must be done after src/config.h is built, since we rely on that file.
24320
24321 # Now get this: Some word that is part of the ${srcdir} directory name
24322 # or the ${configuration} value might, just might, happen to be an
24323 # identifier like `sun4' or `i386' or something, and be predefined by
24324 # the C preprocessor to some helpful value like 1, or maybe the empty
24325 # string. Needless to say consequent macro substitutions are less
24326 # than conducive to the makefile finding the correct directory.
24327 undefs="`echo $top_srcdir $configuration $canonical |
24328 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24329 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24330 `"
24331
24332 echo creating src/epaths.h
24333 ${MAKE-make} epaths-force
24334
24335 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24336 # `..' to `. .' unless invoked with -traditional
24337
24338 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24339 CPPFLAGS="$CPPFLAGS -traditional"
24340 fi
24341
24342 echo creating lib-src/Makefile
24343 ( cd lib-src
24344 rm -f junk.c junk1.c junk2.c
24345 sed -e '/start of cpp stuff/q' \
24346 < Makefile.c > junk1.c
24347 sed -e '1,/start of cpp stuff/d'\
24348 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24349 < Makefile.c > junk.c
24350 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24351 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24352 cat junk1.c junk2.c > Makefile.new
24353 rm -f junk.c junk1.c junk2.c
24354 chmod 444 Makefile.new
24355 mv -f Makefile.new Makefile
24356 )
24357
24358 echo creating src/Makefile
24359 ( cd src
24360 rm -f junk.c junk1.c junk2.c
24361 sed -e '/start of cpp stuff/q' \
24362 < Makefile.c > junk1.c
24363 sed -e '1,/start of cpp stuff/d'\
24364 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24365 < Makefile.c > junk.c
24366 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24367 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24368 cat junk1.c junk2.c > Makefile.new
24369 rm -f junk.c junk1.c junk2.c
24370 chmod 444 Makefile.new
24371 mv -f Makefile.new Makefile
24372 )
24373
24374 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24375 echo creating src/.gdbinit
24376 echo source $srcdir/src/.gdbinit > src/.gdbinit
24377 fi
24378
24379 # This is how we know whether to re-run configure in certain cases.
24380 touch src/config.stamp
24381
24382 ;;
24383 esac
24384 done
24385 _ACEOF
24386
24387 cat >>$CONFIG_STATUS <<\_ACEOF
24388
24389 { (exit 0); exit 0; }
24390 _ACEOF
24391 chmod +x $CONFIG_STATUS
24392 ac_clean_files=$ac_clean_files_save
24393
24394
24395 # configure is writing to config.log, and then calls config.status.
24396 # config.status does its own redirection, appending to config.log.
24397 # Unfortunately, on DOS this fails, as config.log is still kept open
24398 # by configure, so config.status won't be able to write to it; its
24399 # output is simply discarded. So we exec the FD to /dev/null,
24400 # effectively closing config.log, so it can be properly (re)opened and
24401 # appended to by config.status. When coming back to configure, we
24402 # need to make the FD available again.
24403 if test "$no_create" != yes; then
24404 ac_cs_success=:
24405 ac_config_status_args=
24406 test "$silent" = yes &&
24407 ac_config_status_args="$ac_config_status_args --quiet"
24408 exec 5>/dev/null
24409 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24410 exec 5>>config.log
24411 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24412 # would make configure fail if this is the last instruction.
24413 $ac_cs_success || { (exit 1); exit 1; }
24414 fi
24415
24416