Mercurial > emacs
annotate configure @ 40364:f7b039994118
(sound_perror): Unblock SIGIO, turn on atimers.
Display errno only if non-zero.
(sound_warning): New function.
(vox_configure): Don't treat failing to set sample rate as error.
(various places): Improve error messages.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Sat, 27 Oct 2001 08:49:16 +0000 |
parents | f53d3da02996 |
children | bb16255e7f21 |
rev | line source |
---|---|
25897 | 1 #! /bin/sh |
2 # Guess values for system-dependent variables and create Makefiles. | |
40056 | 3 # Generated by Autoconf 2.52. |
25897 | 4 # |
40056 | 5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
6 # Free Software Foundation, Inc. | |
25897 | 7 # This configure script is free software; the Free Software Foundation |
8 # gives unlimited permission to copy, distribute and modify it. | |
9 | |
40056 | 10 # Avoid depending upon Character Ranges. |
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14 as_cr_digits='0123456789' | |
15 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16 | |
17 # Sed expression to map a string onto a valid variable name. | |
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
19 | |
20 # Sed expression to map a string onto a valid CPP name. | |
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
22 | |
23 # Be Bourne compatible | |
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
25 emulate sh | |
26 NULLCMD=: | |
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
28 set -o posix | |
29 fi | |
30 | |
31 # Name of the executable. | |
32 as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
33 | |
34 if expr a : '\(a\)' >/dev/null 2>&1; then | |
35 as_expr=expr | |
36 else | |
37 as_expr=false | |
38 fi | |
39 | |
40 rm -f conf$$ conf$$.exe conf$$.file | |
41 echo >conf$$.file | |
42 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
43 # We could just check for DJGPP; but this test a) works b) is more generic | |
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
45 if test -f conf$$.exe; then | |
46 # Don't use ln at all; we don't have any links | |
47 as_ln_s='cp -p' | |
48 else | |
49 as_ln_s='ln -s' | |
50 fi | |
51 elif ln conf$$.file conf$$ 2>/dev/null; then | |
52 as_ln_s=ln | |
53 else | |
54 as_ln_s='cp -p' | |
55 fi | |
56 rm -f conf$$ conf$$.exe conf$$.file | |
57 | |
58 as_executable_p="test -f" | |
59 | |
60 # Support unset when possible. | |
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
62 as_unset=unset | |
63 else | |
64 as_unset=false | |
65 fi | |
66 | |
67 # NLS nuisances. | |
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
76 | |
77 # IFS | |
78 # We need space, tab and new line, in precisely that order. | |
79 as_nl=' | |
80 ' | |
81 IFS=" $as_nl" | |
82 | |
83 # CDPATH. | |
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
85 | |
86 # Name of the host. | |
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
88 # so uname gets run too. | |
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
90 | |
91 exec 6>&1 | |
92 | |
93 # | |
94 # Initializations. | |
95 # | |
25897 | 96 ac_default_prefix=/usr/local |
40056 | 97 cross_compiling=no |
98 subdirs= | |
99 MFLAGS= MAKEFLAGS= | |
100 SHELL=${CONFIG_SHELL-/bin/sh} | |
101 | |
102 # Maximum number of lines to put in a shell here document. | |
103 # This variable seems obsolete. It should probably be removed, and | |
104 # only ac_max_sed_lines should be used. | |
105 : ${ac_max_here_lines=38} | |
106 | |
107 ac_unique_file="src/lisp.h" | |
108 # Factoring default headers for most tests. | |
109 ac_includes_default="\ | |
110 #include <stdio.h> | |
111 #if HAVE_SYS_TYPES_H | |
112 # include <sys/types.h> | |
113 #endif | |
114 #if HAVE_SYS_STAT_H | |
115 # include <sys/stat.h> | |
116 #endif | |
117 #if STDC_HEADERS | |
118 # include <stdlib.h> | |
119 # include <stddef.h> | |
120 #else | |
121 # if HAVE_STDLIB_H | |
122 # include <stdlib.h> | |
123 # endif | |
124 #endif | |
125 #if HAVE_STRING_H | |
126 # if !STDC_HEADERS && HAVE_MEMORY_H | |
127 # include <memory.h> | |
128 # endif | |
129 # include <string.h> | |
130 #endif | |
131 #if HAVE_STRINGS_H | |
132 # include <strings.h> | |
133 #endif | |
134 #if HAVE_INTTYPES_H | |
135 # include <inttypes.h> | |
136 #else | |
137 # if HAVE_STDINT_H | |
138 # include <stdint.h> | |
139 # endif | |
140 #endif | |
141 #if HAVE_UNISTD_H | |
142 # include <unistd.h> | |
143 #endif" | |
25897 | 144 |
145 # Initialize some variables set by options. | |
40056 | 146 ac_init_help= |
147 ac_init_version=false | |
25897 | 148 # The variables have the same names as the options, with |
149 # dashes changed to underlines. | |
40056 | 150 cache_file=/dev/null |
25897 | 151 exec_prefix=NONE |
152 no_create= | |
153 no_recursion= | |
154 prefix=NONE | |
155 program_prefix=NONE | |
156 program_suffix=NONE | |
157 program_transform_name=s,x,x, | |
158 silent= | |
159 site= | |
160 srcdir= | |
161 verbose= | |
162 x_includes=NONE | |
163 x_libraries=NONE | |
40056 | 164 |
165 # Installation directory options. | |
166 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
167 # and all the variables that are supposed to be based on exec_prefix | |
168 # by default will actually change. | |
169 # Use braces instead of parens because sh, perl, etc. also accept them. | |
25897 | 170 bindir='${exec_prefix}/bin' |
171 sbindir='${exec_prefix}/sbin' | |
172 libexecdir='${exec_prefix}/libexec' | |
173 datadir='${prefix}/share' | |
174 sysconfdir='${prefix}/etc' | |
175 sharedstatedir='${prefix}/com' | |
176 localstatedir='${prefix}/var' | |
177 libdir='${exec_prefix}/lib' | |
178 includedir='${prefix}/include' | |
179 oldincludedir='/usr/include' | |
180 infodir='${prefix}/info' | |
181 mandir='${prefix}/man' | |
182 | |
40056 | 183 # Identity of this package. |
184 PACKAGE_NAME= | |
185 PACKAGE_TARNAME= | |
186 PACKAGE_VERSION= | |
187 PACKAGE_STRING= | |
188 PACKAGE_BUGREPORT= | |
25897 | 189 |
190 ac_prev= | |
191 for ac_option | |
192 do | |
193 # If the previous option needs an argument, assign it. | |
194 if test -n "$ac_prev"; then | |
195 eval "$ac_prev=\$ac_option" | |
196 ac_prev= | |
197 continue | |
198 fi | |
199 | |
40056 | 200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
25897 | 201 |
202 # Accept the important Cygnus configure options, so we can diagnose typos. | |
203 | |
40056 | 204 case $ac_option in |
25897 | 205 |
206 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
207 ac_prev=bindir ;; | |
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
40056 | 209 bindir=$ac_optarg ;; |
25897 | 210 |
211 -build | --build | --buil | --bui | --bu) | |
40056 | 212 ac_prev=build_alias ;; |
25897 | 213 -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
40056 | 214 build_alias=$ac_optarg ;; |
25897 | 215 |
216 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
218 ac_prev=cache_file ;; | |
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
40056 | 221 cache_file=$ac_optarg ;; |
222 | |
223 --config-cache | -C) | |
224 cache_file=config.cache ;; | |
25897 | 225 |
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
227 ac_prev=datadir ;; | |
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
229 | --da=*) | |
40056 | 230 datadir=$ac_optarg ;; |
25897 | 231 |
232 -disable-* | --disable-*) | |
40056 | 233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
25897 | 234 # Reject names that are not valid shell variable names. |
40056 | 235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
237 { (exit 1); exit 1; }; } | |
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
239 eval "enable_$ac_feature=no" ;; | |
25897 | 240 |
241 -enable-* | --enable-*) | |
40056 | 242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
25897 | 243 # Reject names that are not valid shell variable names. |
40056 | 244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
246 { (exit 1); exit 1; }; } | |
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
248 case $ac_option in | |
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
25897 | 250 *) ac_optarg=yes ;; |
251 esac | |
40056 | 252 eval "enable_$ac_feature='$ac_optarg'" ;; |
25897 | 253 |
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
256 | --exec | --exe | --ex) | |
257 ac_prev=exec_prefix ;; | |
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
260 | --exec=* | --exe=* | --ex=*) | |
40056 | 261 exec_prefix=$ac_optarg ;; |
25897 | 262 |
263 -gas | --gas | --ga | --g) | |
264 # Obsolete; use --with-gas. | |
265 with_gas=yes ;; | |
266 | |
40056 | 267 -help | --help | --hel | --he | -h) |
268 ac_init_help=long ;; | |
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
270 ac_init_help=recursive ;; | |
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
272 ac_init_help=short ;; | |
25897 | 273 |
274 -host | --host | --hos | --ho) | |
40056 | 275 ac_prev=host_alias ;; |
25897 | 276 -host=* | --host=* | --hos=* | --ho=*) |
40056 | 277 host_alias=$ac_optarg ;; |
25897 | 278 |
279 -includedir | --includedir | --includedi | --included | --include \ | |
280 | --includ | --inclu | --incl | --inc) | |
281 ac_prev=includedir ;; | |
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
283 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
40056 | 284 includedir=$ac_optarg ;; |
25897 | 285 |
286 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
287 ac_prev=infodir ;; | |
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
40056 | 289 infodir=$ac_optarg ;; |
25897 | 290 |
291 -libdir | --libdir | --libdi | --libd) | |
292 ac_prev=libdir ;; | |
293 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
40056 | 294 libdir=$ac_optarg ;; |
25897 | 295 |
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
297 | --libexe | --libex | --libe) | |
298 ac_prev=libexecdir ;; | |
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
300 | --libexe=* | --libex=* | --libe=*) | |
40056 | 301 libexecdir=$ac_optarg ;; |
25897 | 302 |
303 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
304 | --localstate | --localstat | --localsta | --localst \ | |
305 | --locals | --local | --loca | --loc | --lo) | |
306 ac_prev=localstatedir ;; | |
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
40056 | 310 localstatedir=$ac_optarg ;; |
25897 | 311 |
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
313 ac_prev=mandir ;; | |
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
40056 | 315 mandir=$ac_optarg ;; |
25897 | 316 |
317 -nfp | --nfp | --nf) | |
318 # Obsolete; use --without-fp. | |
319 with_fp=no ;; | |
320 | |
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
322 | --no-cr | --no-c) | |
323 no_create=yes ;; | |
324 | |
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
327 no_recursion=yes ;; | |
328 | |
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
331 | --oldin | --oldi | --old | --ol | --o) | |
332 ac_prev=oldincludedir ;; | |
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
40056 | 336 oldincludedir=$ac_optarg ;; |
25897 | 337 |
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
339 ac_prev=prefix ;; | |
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
40056 | 341 prefix=$ac_optarg ;; |
25897 | 342 |
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
344 | --program-pre | --program-pr | --program-p) | |
345 ac_prev=program_prefix ;; | |
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
40056 | 348 program_prefix=$ac_optarg ;; |
25897 | 349 |
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
351 | --program-suf | --program-su | --program-s) | |
352 ac_prev=program_suffix ;; | |
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
40056 | 355 program_suffix=$ac_optarg ;; |
25897 | 356 |
357 -program-transform-name | --program-transform-name \ | |
358 | --program-transform-nam | --program-transform-na \ | |
359 | --program-transform-n | --program-transform- \ | |
360 | --program-transform | --program-transfor \ | |
361 | --program-transfo | --program-transf \ | |
362 | --program-trans | --program-tran \ | |
363 | --progr-tra | --program-tr | --program-t) | |
364 ac_prev=program_transform_name ;; | |
365 -program-transform-name=* | --program-transform-name=* \ | |
366 | --program-transform-nam=* | --program-transform-na=* \ | |
367 | --program-transform-n=* | --program-transform-=* \ | |
368 | --program-transform=* | --program-transfor=* \ | |
369 | --program-transfo=* | --program-transf=* \ | |
370 | --program-trans=* | --program-tran=* \ | |
371 | --progr-tra=* | --program-tr=* | --program-t=*) | |
40056 | 372 program_transform_name=$ac_optarg ;; |
25897 | 373 |
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
375 | -silent | --silent | --silen | --sile | --sil) | |
376 silent=yes ;; | |
377 | |
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
379 ac_prev=sbindir ;; | |
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
381 | --sbi=* | --sb=*) | |
40056 | 382 sbindir=$ac_optarg ;; |
25897 | 383 |
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
386 | --sharedst | --shareds | --shared | --share | --shar \ | |
387 | --sha | --sh) | |
388 ac_prev=sharedstatedir ;; | |
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
392 | --sha=* | --sh=*) | |
40056 | 393 sharedstatedir=$ac_optarg ;; |
25897 | 394 |
395 -site | --site | --sit) | |
396 ac_prev=site ;; | |
397 -site=* | --site=* | --sit=*) | |
40056 | 398 site=$ac_optarg ;; |
25897 | 399 |
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
401 ac_prev=srcdir ;; | |
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
40056 | 403 srcdir=$ac_optarg ;; |
25897 | 404 |
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
406 | --syscon | --sysco | --sysc | --sys | --sy) | |
407 ac_prev=sysconfdir ;; | |
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
40056 | 410 sysconfdir=$ac_optarg ;; |
25897 | 411 |
412 -target | --target | --targe | --targ | --tar | --ta | --t) | |
40056 | 413 ac_prev=target_alias ;; |
25897 | 414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
40056 | 415 target_alias=$ac_optarg ;; |
25897 | 416 |
417 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
418 verbose=yes ;; | |
419 | |
40056 | 420 -version | --version | --versio | --versi | --vers | -V) |
421 ac_init_version=: ;; | |
25897 | 422 |
423 -with-* | --with-*) | |
40056 | 424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
25897 | 425 # Reject names that are not valid shell variable names. |
40056 | 426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
427 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
428 { (exit 1); exit 1; }; } | |
25897 | 429 ac_package=`echo $ac_package| sed 's/-/_/g'` |
40056 | 430 case $ac_option in |
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
25897 | 432 *) ac_optarg=yes ;; |
433 esac | |
40056 | 434 eval "with_$ac_package='$ac_optarg'" ;; |
25897 | 435 |
436 -without-* | --without-*) | |
40056 | 437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
25897 | 438 # Reject names that are not valid shell variable names. |
40056 | 439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
440 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
441 { (exit 1); exit 1; }; } | |
442 ac_package=`echo $ac_package | sed 's/-/_/g'` | |
443 eval "with_$ac_package=no" ;; | |
25897 | 444 |
445 --x) | |
446 # Obsolete; use --with-x. | |
447 with_x=yes ;; | |
448 | |
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
450 | --x-incl | --x-inc | --x-in | --x-i) | |
451 ac_prev=x_includes ;; | |
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
40056 | 454 x_includes=$ac_optarg ;; |
25897 | 455 |
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
458 ac_prev=x_libraries ;; | |
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
40056 | 461 x_libraries=$ac_optarg ;; |
462 | |
463 -*) { echo "$as_me: error: unrecognized option: $ac_option | |
464 Try \`$0 --help' for more information." >&2 | |
465 { (exit 1); exit 1; }; } | |
25897 | 466 ;; |
467 | |
40056 | 468 *=*) |
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
470 # Reject names that are not valid shell variable names. | |
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
473 { (exit 1); exit 1; }; } | |
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
475 eval "$ac_envvar='$ac_optarg'" | |
476 export $ac_envvar ;; | |
477 | |
25897 | 478 *) |
40056 | 479 # FIXME: should be removed in autoconf 3.0. |
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
25897 | 484 ;; |
485 | |
486 esac | |
487 done | |
488 | |
489 if test -n "$ac_prev"; then | |
40056 | 490 ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
491 { echo "$as_me: error: missing argument to $ac_option" >&2 | |
492 { (exit 1); exit 1; }; } | |
493 fi | |
494 | |
495 # Be sure to have absolute paths. | |
496 for ac_var in exec_prefix prefix | |
25897 | 497 do |
40056 | 498 eval ac_val=$`echo $ac_var` |
499 case $ac_val in | |
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | |
502 { (exit 1); exit 1; }; };; | |
25897 | 503 esac |
504 done | |
505 | |
40056 | 506 # Be sure to have absolute paths. |
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
508 localstatedir libdir includedir oldincludedir infodir mandir | |
509 do | |
510 eval ac_val=$`echo $ac_var` | |
511 case $ac_val in | |
512 [\\/$]* | ?:[\\/]* ) ;; | |
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | |
514 { (exit 1); exit 1; }; };; | |
515 esac | |
516 done | |
517 | |
518 # There might be people who depend on the old broken behavior: `$host' | |
519 # used to hold the argument of --host etc. | |
520 build=$build_alias | |
521 host=$host_alias | |
522 target=$target_alias | |
523 | |
524 # FIXME: should be removed in autoconf 3.0. | |
525 if test "x$host_alias" != x; then | |
526 if test "x$build_alias" = x; then | |
527 cross_compiling=maybe | |
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
529 If a cross compiler is detected then cross compile mode will be used." >&2 | |
530 elif test "x$build_alias" != "x$host_alias"; then | |
531 cross_compiling=yes | |
532 fi | |
533 fi | |
534 | |
535 ac_tool_prefix= | |
536 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
537 | |
538 test "$silent" = yes && exec 6>/dev/null | |
25897 | 539 |
540 # Find the source files, if location was not specified. | |
541 if test -z "$srcdir"; then | |
542 ac_srcdir_defaulted=yes | |
543 # Try the directory containing this script, then its parent. | |
544 ac_prog=$0 | |
40056 | 545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` |
25897 | 546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
547 srcdir=$ac_confdir | |
548 if test ! -r $srcdir/$ac_unique_file; then | |
549 srcdir=.. | |
550 fi | |
551 else | |
552 ac_srcdir_defaulted=no | |
553 fi | |
554 if test ! -r $srcdir/$ac_unique_file; then | |
555 if test "$ac_srcdir_defaulted" = yes; then | |
40056 | 556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 |
557 { (exit 1); exit 1; }; } | |
25897 | 558 else |
40056 | 559 { echo "$as_me: error: cannot find sources in $srcdir" >&2 |
560 { (exit 1); exit 1; }; } | |
561 fi | |
562 fi | |
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
564 ac_env_build_alias_set=${build_alias+set} | |
565 ac_env_build_alias_value=$build_alias | |
566 ac_cv_env_build_alias_set=${build_alias+set} | |
567 ac_cv_env_build_alias_value=$build_alias | |
568 ac_env_host_alias_set=${host_alias+set} | |
569 ac_env_host_alias_value=$host_alias | |
570 ac_cv_env_host_alias_set=${host_alias+set} | |
571 ac_cv_env_host_alias_value=$host_alias | |
572 ac_env_target_alias_set=${target_alias+set} | |
573 ac_env_target_alias_value=$target_alias | |
574 ac_cv_env_target_alias_set=${target_alias+set} | |
575 ac_cv_env_target_alias_value=$target_alias | |
576 ac_env_CC_set=${CC+set} | |
577 ac_env_CC_value=$CC | |
578 ac_cv_env_CC_set=${CC+set} | |
579 ac_cv_env_CC_value=$CC | |
580 ac_env_CFLAGS_set=${CFLAGS+set} | |
581 ac_env_CFLAGS_value=$CFLAGS | |
582 ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
583 ac_cv_env_CFLAGS_value=$CFLAGS | |
584 ac_env_LDFLAGS_set=${LDFLAGS+set} | |
585 ac_env_LDFLAGS_value=$LDFLAGS | |
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
587 ac_cv_env_LDFLAGS_value=$LDFLAGS | |
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
589 ac_env_CPPFLAGS_value=$CPPFLAGS | |
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
592 ac_env_CPP_set=${CPP+set} | |
593 ac_env_CPP_value=$CPP | |
594 ac_cv_env_CPP_set=${CPP+set} | |
595 ac_cv_env_CPP_value=$CPP | |
596 | |
597 # | |
598 # Report the --help message. | |
599 # | |
600 if test "$ac_init_help" = "long"; then | |
601 # Omit some internal or obsolete options to make the list less imposing. | |
602 # This message is too long to be a string in the A/UX 3.1 sh. | |
603 cat <<EOF | |
604 \`configure' configures this package to adapt to many kinds of systems. | |
605 | |
606 Usage: $0 [OPTION]... [VAR=VALUE]... | |
607 | |
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
609 VAR=VALUE. See below for descriptions of some of the useful variables. | |
610 | |
611 Defaults for the options are specified in brackets. | |
612 | |
613 Configuration: | |
614 -h, --help display this help and exit | |
615 --help=short display options specific to this package | |
616 --help=recursive display the short help of all the included packages | |
617 -V, --version display version information and exit | |
618 -q, --quiet, --silent do not print \`checking...' messages | |
619 --cache-file=FILE cache test results in FILE [disabled] | |
620 -C, --config-cache alias for \`--cache-file=config.cache' | |
621 -n, --no-create do not create output files | |
622 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
623 | |
624 EOF | |
625 | |
626 cat <<EOF | |
627 Installation directories: | |
628 --prefix=PREFIX install architecture-independent files in PREFIX | |
629 [$ac_default_prefix] | |
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
631 [PREFIX] | |
632 | |
633 By default, \`make install' will install all the files in | |
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
636 for instance \`--prefix=\$HOME'. | |
637 | |
638 For better control, use the options below. | |
639 | |
640 Fine tuning of the installation directories: | |
641 --bindir=DIR user executables [EPREFIX/bin] | |
642 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
643 --libexecdir=DIR program executables [EPREFIX/libexec] | |
644 --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
648 --libdir=DIR object code libraries [EPREFIX/lib] | |
649 --includedir=DIR C header files [PREFIX/include] | |
650 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
651 --infodir=DIR info documentation [PREFIX/info] | |
652 --mandir=DIR man documentation [PREFIX/man] | |
653 EOF | |
654 | |
655 cat <<\EOF | |
656 | |
657 X features: | |
658 --x-includes=DIR X include files are in DIR | |
659 --x-libraries=DIR X library files are in DIR | |
660 | |
661 System types: | |
662 --build=BUILD configure for building on BUILD [guessed] | |
663 --host=HOST build programs to run on HOST [BUILD] | |
664 EOF | |
665 fi | |
666 | |
667 if test -n "$ac_init_help"; then | |
668 | |
669 cat <<\EOF | |
670 | |
671 Optional Features: | |
672 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
673 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
674 --disable-largefile omit support for large files | |
675 | |
676 Optional Packages: | |
677 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
678 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
679 --without-gcc don't use GCC to compile Emacs if GCC is found | |
680 --without-pop don't support POP mail retrieval with movemail | |
681 --with-kerberos support Kerberos-authenticated POP | |
682 --with-kerberos5 support Kerberos version 5 authenticated POP | |
683 --with-hesiod support Hesiod to get the POP server host | |
684 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no) | |
685 --with-xpm use -lXpm for displaying XPM images | |
686 --with-jpeg use -ljpeg for displaying JPEG images | |
687 --with-tiff use -ltiff for displaying TIFF images | |
688 --with-gif use -lungif for displaying GIF images | |
689 --with-png use -lpng for displaying PNG images | |
690 --without-toolkit-scroll-bars | |
691 don't use Motif or Xaw3d scroll bars | |
692 --without-xim don't use X11 XIM | |
693 --with-x use the X Window System | |
694 | |
695 Some influential environment variables: | |
696 CC C compiler command | |
697 CFLAGS C compiler flags | |
698 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
699 nonstandard directory <lib dir> | |
700 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
701 headers in a nonstandard directory <include dir> | |
702 CPP C preprocessor | |
703 | |
704 Use these variables to override the choices made by `configure' or to help | |
705 it to find libraries and programs with nonstandard names/locations. | |
706 | |
707 EOF | |
708 fi | |
709 | |
710 if test "$ac_init_help" = "recursive"; then | |
711 # If there are subdirs, report their specific --help. | |
712 ac_popdir=`pwd` | |
713 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | |
714 cd $ac_subdir | |
715 # A "../" for each directory in /$ac_subdir. | |
716 ac_dots=`echo $ac_subdir | | |
717 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
718 | |
719 case $srcdir in | |
720 .) # No --srcdir option. We are building in place. | |
721 ac_sub_srcdir=$srcdir ;; | |
722 [\\/]* | ?:[\\/]* ) # Absolute path. | |
723 ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
724 *) # Relative path. | |
725 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
726 esac | |
727 | |
728 # Check for guested configure; otherwise get Cygnus style configure. | |
729 if test -f $ac_sub_srcdir/configure.gnu; then | |
730 echo | |
731 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | |
732 elif test -f $ac_sub_srcdir/configure; then | |
733 echo | |
734 $SHELL $ac_sub_srcdir/configure --help=recursive | |
735 elif test -f $ac_sub_srcdir/configure.ac || | |
736 test -f $ac_sub_srcdir/configure.in; then | |
737 echo | |
738 $ac_configure --help | |
739 else | |
740 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 | |
741 fi | |
742 cd $ac_popdir | |
743 done | |
744 fi | |
745 | |
746 test -n "$ac_init_help" && exit 0 | |
747 if $ac_init_version; then | |
748 cat <<\EOF | |
749 | |
750 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
751 Free Software Foundation, Inc. | |
752 This configure script is free software; the Free Software Foundation | |
753 gives unlimited permission to copy, distribute and modify it. | |
754 EOF | |
755 exit 0 | |
756 fi | |
757 exec 5>config.log | |
758 cat >&5 <<EOF | |
759 This file contains any messages produced by compilers while | |
760 running configure, to aid debugging if configure makes a mistake. | |
761 | |
762 It was created by $as_me, which was | |
763 generated by GNU Autoconf 2.52. Invocation command line was | |
764 | |
765 $ $0 $@ | |
766 | |
767 EOF | |
768 { | |
769 cat <<_ASUNAME | |
770 ## ---------- ## | |
771 ## Platform. ## | |
772 ## ---------- ## | |
773 | |
774 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
775 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
776 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
777 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
778 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
779 | |
780 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
781 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
782 | |
783 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
784 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
785 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
786 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
787 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
788 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
789 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
790 | |
791 PATH = $PATH | |
792 | |
793 _ASUNAME | |
794 } >&5 | |
795 | |
796 cat >&5 <<EOF | |
797 ## ------------ ## | |
798 ## Core tests. ## | |
799 ## ------------ ## | |
800 | |
801 EOF | |
802 | |
803 # Keep a trace of the command line. | |
804 # Strip out --no-create and --no-recursion so they do not pile up. | |
805 # Also quote any args containing shell meta-characters. | |
806 ac_configure_args= | |
807 ac_sep= | |
808 for ac_arg | |
809 do | |
810 case $ac_arg in | |
811 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
812 | --no-cr | --no-c) ;; | |
813 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
814 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
815 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
816 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
817 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
818 ac_sep=" " ;; | |
819 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
820 ac_sep=" " ;; | |
821 esac | |
822 # Get rid of the leading space. | |
823 done | |
824 | |
825 # When interrupted or exit'd, cleanup temporary files, and complete | |
826 # config.log. We remove comments because anyway the quotes in there | |
827 # would cause problems or look ugly. | |
828 trap 'exit_status=$? | |
829 # Save into config.log some information that might help in debugging. | |
830 echo >&5 | |
831 echo "## ----------------- ##" >&5 | |
832 echo "## Cache variables. ##" >&5 | |
833 echo "## ----------------- ##" >&5 | |
834 echo >&5 | |
835 # The following way of writing the cache mishandles newlines in values, | |
836 { | |
837 (set) 2>&1 | | |
838 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
839 *ac_space=\ *) | |
840 sed -n \ | |
841 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
842 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
843 ;; | |
844 *) | |
845 sed -n \ | |
846 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
847 ;; | |
848 esac; | |
849 } >&5 | |
850 sed "/^$/d" confdefs.h >conftest.log | |
851 if test -s conftest.log; then | |
852 echo >&5 | |
853 echo "## ------------ ##" >&5 | |
854 echo "## confdefs.h. ##" >&5 | |
855 echo "## ------------ ##" >&5 | |
856 echo >&5 | |
857 cat conftest.log >&5 | |
858 fi | |
859 (echo; echo) >&5 | |
860 test "$ac_signal" != 0 && | |
861 echo "$as_me: caught signal $ac_signal" >&5 | |
862 echo "$as_me: exit $exit_status" >&5 | |
863 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | |
864 exit $exit_status | |
865 ' 0 | |
866 for ac_signal in 1 2 13 15; do | |
867 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
868 done | |
869 ac_signal=0 | |
870 | |
871 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
872 rm -rf conftest* confdefs.h | |
873 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
874 echo >confdefs.h | |
875 | |
876 # Let the site file select an alternate cache file if it wants to. | |
25897 | 877 # Prefer explicitly selected file to automatically selected ones. |
878 if test -z "$CONFIG_SITE"; then | |
879 if test "x$prefix" != xNONE; then | |
880 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
881 else | |
882 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
883 fi | |
884 fi | |
885 for ac_site_file in $CONFIG_SITE; do | |
886 if test -r "$ac_site_file"; then | |
40056 | 887 { echo "$as_me:887: loading site script $ac_site_file" >&5 |
888 echo "$as_me: loading site script $ac_site_file" >&6;} | |
889 cat "$ac_site_file" >&5 | |
25897 | 890 . "$ac_site_file" |
891 fi | |
892 done | |
893 | |
894 if test -r "$cache_file"; then | |
40056 | 895 # Some versions of bash will fail to source /dev/null (special |
896 # files actually), so we avoid doing that. | |
897 if test -f "$cache_file"; then | |
898 { echo "$as_me:898: loading cache $cache_file" >&5 | |
899 echo "$as_me: loading cache $cache_file" >&6;} | |
900 case $cache_file in | |
901 [\\/]* | ?:[\\/]* ) . $cache_file;; | |
902 *) . ./$cache_file;; | |
903 esac | |
904 fi | |
905 else | |
906 { echo "$as_me:906: creating cache $cache_file" >&5 | |
907 echo "$as_me: creating cache $cache_file" >&6;} | |
908 >$cache_file | |
909 fi | |
910 | |
911 # Check that the precious variables saved in the cache have kept the same | |
912 # value. | |
913 ac_cache_corrupted=false | |
914 for ac_var in `(set) 2>&1 | | |
915 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
916 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
917 eval ac_new_set=\$ac_env_${ac_var}_set | |
918 eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
919 eval ac_new_val="\$ac_env_${ac_var}_value" | |
920 case $ac_old_set,$ac_new_set in | |
921 set,) | |
922 { echo "$as_me:922: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
923 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
924 ac_cache_corrupted=: ;; | |
925 ,set) | |
926 { echo "$as_me:926: error: \`$ac_var' was not set in the previous run" >&5 | |
927 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
928 ac_cache_corrupted=: ;; | |
929 ,);; | |
930 *) | |
931 if test "x$ac_old_val" != "x$ac_new_val"; then | |
932 { echo "$as_me:932: error: \`$ac_var' has changed since the previous run:" >&5 | |
933 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
934 { echo "$as_me:934: former value: $ac_old_val" >&5 | |
935 echo "$as_me: former value: $ac_old_val" >&2;} | |
936 { echo "$as_me:936: current value: $ac_new_val" >&5 | |
937 echo "$as_me: current value: $ac_new_val" >&2;} | |
938 ac_cache_corrupted=: | |
939 fi;; | |
940 esac | |
941 # Pass precious variables to config.status. It doesn't matter if | |
942 # we pass some twice (in addition to the command line arguments). | |
943 if test "$ac_new_set" = set; then | |
944 case $ac_new_val in | |
945 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
946 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` | |
947 ac_configure_args="$ac_configure_args '$ac_arg'" | |
948 ;; | |
949 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" | |
950 ;; | |
951 esac | |
952 fi | |
953 done | |
954 if $ac_cache_corrupted; then | |
955 { echo "$as_me:955: error: changes in the environment can compromise the build" >&5 | |
956 echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
957 { { echo "$as_me:957: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
958 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
959 { (exit 1); exit 1; }; } | |
25897 | 960 fi |
961 | |
962 ac_ext=c | |
963 ac_cpp='$CPP $CPPFLAGS' | |
40056 | 964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
966 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
967 | |
968 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
969 *c*,-n*) ECHO_N= ECHO_C=' | |
970 ' ECHO_T=' ' ;; | |
971 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
972 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
973 esac | |
974 echo "#! $SHELL" >conftest.sh | |
975 echo "exit 0" >>conftest.sh | |
976 chmod +x conftest.sh | |
977 if { (echo "$as_me:977: PATH=\".;.\"; conftest.sh") >&5 | |
978 (PATH=".;."; conftest.sh) 2>&5 | |
979 ac_status=$? | |
980 echo "$as_me:980: \$? = $ac_status" >&5 | |
981 (exit $ac_status); }; then | |
982 ac_path_separator=';' | |
983 else | |
984 ac_path_separator=: | |
985 fi | |
986 PATH_SEPARATOR="$ac_path_separator" | |
987 rm -f conftest.sh | |
988 | |
989 ac_config_headers="$ac_config_headers src/config.h:src/config.in" | |
25897 | 990 |
991 lispdir='${datadir}/emacs/${version}/lisp' | |
992 locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
993 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
994 lisppath='${locallisppath}:${lispdir}' | |
995 etcdir='${datadir}/emacs/${version}/etc' | |
996 archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
997 docdir='${datadir}/emacs/${version}/etc' | |
998 | |
999 # Check whether --with-gcc or --without-gcc was given. | |
1000 if test "${with_gcc+set}" = set; then | |
1001 withval="$with_gcc" | |
40056 | 1002 |
1003 fi; | |
25897 | 1004 |
1005 # Check whether --with-pop or --without-pop was given. | |
1006 if test "${with_pop+set}" = set; then | |
1007 withval="$with_pop" | |
25994 | 1008 if test "$withval" = yes; then |
40056 | 1009 cat >>confdefs.h <<\EOF |
25897 | 1010 #define MAIL_USE_POP 1 |
1011 EOF | |
1012 | |
25994 | 1013 else : |
1014 fi | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1015 else |
40056 | 1016 cat >>confdefs.h <<\EOF |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1017 #define MAIL_USE_POP 1 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1018 EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1019 |
40056 | 1020 fi; |
25897 | 1021 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1022 # Check whether --with-kerberos or --without-kerberos was given. |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1023 if test "${with_kerberos+set}" = set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1024 withval="$with_kerberos" |
40056 | 1025 cat >>confdefs.h <<\EOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1026 #define KERBEROS 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1027 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1028 |
40056 | 1029 fi; |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1030 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1031 # Check whether --with-kerberos5 or --without-kerberos5 was given. |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1032 if test "${with_kerberos5+set}" = set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1033 withval="$with_kerberos5" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1034 if test "${with_kerberos5+set}" = set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1035 if test "${with_kerberos+set}" != set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1036 with_kerberos=yes |
40056 | 1037 cat >>confdefs.h <<\EOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1038 #define KERBEROS 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1039 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1040 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1041 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1042 fi |
40056 | 1043 cat >>confdefs.h <<\EOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1044 #define KERBEROS5 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1045 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1046 |
40056 | 1047 fi; |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1048 |
25897 | 1049 # Check whether --with-hesiod or --without-hesiod was given. |
1050 if test "${with_hesiod+set}" = set; then | |
1051 withval="$with_hesiod" | |
40056 | 1052 cat >>confdefs.h <<\EOF |
25897 | 1053 #define HESIOD 1 |
1054 EOF | |
1055 | |
40056 | 1056 fi; |
25897 | 1057 |
1058 # Check whether --with-x-toolkit or --without-x-toolkit was given. | |
1059 if test "${with_x_toolkit+set}" = set; then | |
1060 withval="$with_x_toolkit" | |
1061 case "${withval}" in | |
1062 y | ye | yes ) val=athena ;; | |
1063 n | no ) val=no ;; | |
1064 l | lu | luc | luci | lucid ) val=lucid ;; | |
1065 a | at | ath | athe | athen | athena ) val=athena ;; | |
1066 m | mo | mot | moti | motif ) val=motif ;; | |
1067 * ) | |
40056 | 1068 { { echo "$as_me:1068: error: \`--with-x-toolkit=$withval' is invalid\; |
25897 | 1069 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. |
40056 | 1070 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 |
1071 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; | |
1072 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | |
1073 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} | |
1074 { (exit 1); exit 1; }; } | |
25897 | 1075 ;; |
1076 esac | |
1077 with_x_toolkit=$val | |
1078 | |
40056 | 1079 fi; |
25897 | 1080 |
1081 # Check whether --with-xpm or --without-xpm was given. | |
1082 if test "${with_xpm+set}" = set; then | |
1083 withval="$with_xpm" | |
40056 | 1084 |
1085 fi; | |
25897 | 1086 |
1087 # Check whether --with-jpeg or --without-jpeg was given. | |
1088 if test "${with_jpeg+set}" = set; then | |
1089 withval="$with_jpeg" | |
40056 | 1090 |
1091 fi; | |
25897 | 1092 |
1093 # Check whether --with-tiff or --without-tiff was given. | |
1094 if test "${with_tiff+set}" = set; then | |
1095 withval="$with_tiff" | |
40056 | 1096 |
1097 fi; | |
25897 | 1098 |
1099 # Check whether --with-gif or --without-gif was given. | |
1100 if test "${with_gif+set}" = set; then | |
1101 withval="$with_gif" | |
40056 | 1102 |
1103 fi; | |
25897 | 1104 |
1105 # Check whether --with-png or --without-png was given. | |
1106 if test "${with_png+set}" = set; then | |
1107 withval="$with_png" | |
40056 | 1108 |
1109 fi; | |
25897 | 1110 |
1111 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. | |
1112 if test "${with_toolkit_scroll_bars+set}" = set; then | |
1113 withval="$with_toolkit_scroll_bars" | |
40056 | 1114 |
1115 fi; | |
25897 | 1116 |
29949 | 1117 # Check whether --with-xim or --without-xim was given. |
1118 if test "${with_xim+set}" = set; then | |
1119 withval="$with_xim" | |
40056 | 1120 |
1121 fi; | |
25897 | 1122 |
1123 #### Make srcdir absolute, if it isn't already. It's important to | |
31153 | 1124 #### avoid running the path through pwd unnecessarily, since pwd can |
25897 | 1125 #### give you automounter prefixes, which can go away. We do all this |
1126 #### so Emacs can find its files when run uninstalled. | |
31153 | 1127 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
1128 unset CDPATH | |
25897 | 1129 case "${srcdir}" in |
1130 /* ) ;; | |
1131 . ) | |
1132 ## We may be able to use the $PWD environment variable to make this | |
1133 ## absolute. But sometimes PWD is inaccurate. | |
31153 | 1134 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ; |
25897 | 1135 then |
1136 srcdir="$PWD" | |
1137 else | |
1138 srcdir="`(cd ${srcdir}; pwd)`" | |
1139 fi | |
1140 ;; | |
1141 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
1142 esac | |
1143 | |
1144 #### Check if the source directory already has a configured system in it. | |
1145 if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
1146 && test -f "${srcdir}/src/config.h" ; then | |
40056 | 1147 { echo "$as_me:1147: WARNING: The directory tree \`${srcdir}' is being used |
25897 | 1148 as a build directory right now; it has been configured in its own |
1149 right. To configure in another directory as well, you MUST | |
1150 use GNU make. If you do not have GNU make, then you must | |
1151 now do \`make distclean' in ${srcdir}, | |
40056 | 1152 and then run $0 again." >&5 |
1153 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
1154 as a build directory right now; it has been configured in its own | |
1155 right. To configure in another directory as well, you MUST | |
1156 use GNU make. If you do not have GNU make, then you must | |
1157 now do \`make distclean' in ${srcdir}, | |
1158 and then run $0 again." >&2;} | |
25897 | 1159 |
1160 extrasub='/^VPATH[ ]*=/c\ | |
1161 vpath %.c $(srcdir)\ | |
1162 vpath %.h $(srcdir)\ | |
1163 vpath %.y $(srcdir)\ | |
1164 vpath %.l $(srcdir)\ | |
1165 vpath %.s $(srcdir)\ | |
1166 vpath %.in $(srcdir)\ | |
1167 vpath %.texi $(srcdir)' | |
1168 fi | |
1169 | |
1170 #### Given the configuration name, set machfile and opsysfile to the | |
1171 #### names of the m/*.h and s/*.h files we should use. | |
1172 | |
1173 ### Canonicalize the configuration name. | |
1174 | |
1175 ac_aux_dir= | |
1176 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1177 if test -f $ac_dir/install-sh; then | |
1178 ac_aux_dir=$ac_dir | |
1179 ac_install_sh="$ac_aux_dir/install-sh -c" | |
1180 break | |
1181 elif test -f $ac_dir/install.sh; then | |
1182 ac_aux_dir=$ac_dir | |
1183 ac_install_sh="$ac_aux_dir/install.sh -c" | |
1184 break | |
40056 | 1185 elif test -f $ac_dir/shtool; then |
1186 ac_aux_dir=$ac_dir | |
1187 ac_install_sh="$ac_aux_dir/shtool install -c" | |
1188 break | |
25897 | 1189 fi |
1190 done | |
1191 if test -z "$ac_aux_dir"; then | |
40056 | 1192 { { echo "$as_me:1192: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1193 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1194 { (exit 1); exit 1; }; } | |
1195 fi | |
1196 ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1197 ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1198 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
25897 | 1199 |
1200 # Make sure we can run config.sub. | |
40056 | 1201 $ac_config_sub sun4 >/dev/null 2>&1 || |
1202 { { echo "$as_me:1202: error: cannot run $ac_config_sub" >&5 | |
1203 echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1204 { (exit 1); exit 1; }; } | |
1205 | |
1206 echo "$as_me:1206: checking build system type" >&5 | |
1207 echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1208 if test "${ac_cv_build+set}" = set; then | |
1209 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1210 else | |
1211 ac_cv_build_alias=$build_alias | |
1212 test -z "$ac_cv_build_alias" && | |
1213 ac_cv_build_alias=`$ac_config_guess` | |
1214 test -z "$ac_cv_build_alias" && | |
1215 { { echo "$as_me:1215: error: cannot guess build type; you must specify one" >&5 | |
1216 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1217 { (exit 1); exit 1; }; } | |
1218 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1219 { { echo "$as_me:1219: error: $ac_config_sub $ac_cv_build_alias failed." >&5 | |
1220 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} | |
1221 { (exit 1); exit 1; }; } | |
1222 | |
1223 fi | |
1224 echo "$as_me:1224: result: $ac_cv_build" >&5 | |
1225 echo "${ECHO_T}$ac_cv_build" >&6 | |
1226 build=$ac_cv_build | |
1227 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1228 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1229 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1230 | |
1231 echo "$as_me:1231: checking host system type" >&5 | |
1232 echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1233 if test "${ac_cv_host+set}" = set; then | |
1234 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1235 else | |
1236 ac_cv_host_alias=$host_alias | |
1237 test -z "$ac_cv_host_alias" && | |
1238 ac_cv_host_alias=$ac_cv_build_alias | |
1239 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1240 { { echo "$as_me:1240: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1241 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1242 { (exit 1); exit 1; }; } | |
1243 | |
1244 fi | |
1245 echo "$as_me:1245: result: $ac_cv_host" >&5 | |
1246 echo "${ECHO_T}$ac_cv_host" >&6 | |
1247 host=$ac_cv_host | |
1248 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1249 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1250 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
25897 | 1251 |
1252 canonical=$host | |
40060 | 1253 configuration=${host_alias-$host} |
25897 | 1254 |
1255 ### If you add support for a new configuration, add code to this | |
1256 ### switch statement to recognize your configuration name and select | |
1257 ### the appropriate operating system and machine description files. | |
1258 | |
1259 ### You would hope that you could choose an m/*.h file pretty much | |
1260 ### based on the machine portion of the configuration name, and an s- | |
1261 ### file based on the operating system portion. However, it turns out | |
1262 ### that each m/*.h file is pretty manufacturer-specific - for | |
1263 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
1264 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
1265 ### machines. So we basically have to have a special case for each | |
1266 ### configuration name. | |
1267 ### | |
1268 ### As far as handling version numbers on operating systems is | |
1269 ### concerned, make sure things will fail in a fixable way. If | |
1270 ### /etc/MACHINES doesn't say anything about version numbers, be | |
1271 ### prepared to handle anything reasonably. If version numbers | |
1272 ### matter, be sure /etc/MACHINES says something about it. | |
1273 ### | |
1274 ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
1275 ### "System V Release 4"; he writes, "The old convention encouraged | |
1276 ### confusion between `system' and `release' levels'." | |
1277 | |
1278 machine='' opsys='' unported=no | |
1279 case "${canonical}" in | |
1280 | |
1281 ## NetBSD ports | |
1282 *-*-netbsd* ) | |
1283 opsys=netbsd | |
1284 case "${canonical}" in | |
1285 alpha*-*-netbsd*) machine=alpha ;; | |
1286 i[3456]86-*-netbsd*) machine=intel386 ;; | |
1287 m68k-*-netbsd*) | |
1288 # This is somewhat bogus. | |
1289 machine=hp9000s300 ;; | |
1290 powerpc-apple-netbsd*) machine=macppc ;; | |
1291 mips-*-netbsd*) machine=pmax ;; | |
27927 | 1292 mipsel-*-netbsd*) machine=pmax ;; |
25897 | 1293 ns32k-*-netbsd*) machine=ns32000 ;; |
28674 | 1294 powerpc-*-netbsd*) machine=macppc ;; |
32034 | 1295 sparc*-*-netbsd*) machine=sparc ;; |
25897 | 1296 vax-*-netbsd*) machine=vax ;; |
27927 | 1297 arm-*-netbsd*) machine=arm ;; |
25897 | 1298 esac |
1299 ;; | |
1300 | |
1301 ## OpenBSD ports | |
1302 *-*-openbsd* ) | |
1303 opsys=openbsd | |
1304 case "${canonical}" in | |
1305 alpha*-*-openbsd*) machine=alpha ;; | |
1306 i386-*-openbsd*) machine=intel386 ;; | |
1307 m68k-*-openbsd*) machine=hp9000s300 ;; | |
1308 mipsel-*-openbsd*) machine=pmax ;; | |
1309 ns32k-*-openbsd*) machine=ns32000 ;; | |
1310 sparc-*-openbsd*) machine=sparc ;; | |
1311 vax-*-openbsd*) machine=vax ;; | |
1312 esac | |
1313 ;; | |
1314 | |
1315 ## Acorn RISCiX: | |
1316 arm-acorn-riscix1.1* ) | |
1317 machine=acorn opsys=riscix1-1 | |
1318 ;; | |
1319 arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
1320 ## This name is riscix12 instead of riscix1.2 | |
1321 ## to avoid a file name conflict on MSDOS. | |
1322 machine=acorn opsys=riscix12 | |
1323 ;; | |
1324 | |
1325 ## BSDI ports | |
1326 *-*-bsdi* ) | |
1327 opsys=bsdi | |
1328 case "${canonical}" in | |
1329 i[345]86-*-bsdi*) machine=intel386 ;; | |
1330 sparc-*-bsdi*) machine=sparc ;; | |
33740 | 1331 powerpc-*-bsdi*) machine=macppc ;; |
25897 | 1332 esac |
1333 case "${canonical}" in | |
1334 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
1335 *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
1336 *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
1337 *-*-bsdi3* ) opsys=bsdos3 ;; | |
1338 *-*-bsdi4* ) opsys=bsdos4 ;; | |
1339 esac | |
1340 ;; | |
1341 | |
1342 ## Alliant machines | |
1343 ## Strictly speaking, we need the version of the alliant operating | |
1344 ## system to choose the right machine file, but currently the | |
1345 ## configuration name doesn't tell us enough to choose the right | |
1346 ## one; we need to give alliants their own operating system name to | |
1347 ## do this right. When someone cares, they can help us. | |
1348 fx80-alliant-* ) | |
1349 machine=alliant4 opsys=bsd4-2 | |
1350 ;; | |
1351 i860-alliant-* ) | |
1352 machine=alliant-2800 opsys=bsd4-3 | |
1353 ;; | |
1354 | |
1355 ## Alpha (DEC) machines. | |
1356 alpha*-dec-osf* ) | |
1357 machine=alpha opsys=osf1 | |
1358 # This is needed to find X11R6.1 libraries for certain tests. | |
1359 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
1360 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
34446 | 1361 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
1362 # due to non-traditional preprocessing with the current compiler | |
1363 # defaults. OSF 4 can also have that compiler version, and there | |
1364 # seems always to have been a usable /usr/bin/cpp. | |
1365 NON_GNU_CPP=/usr/bin/cpp | |
27883 | 1366 case "${canonical}" in |
31994 | 1367 alpha*-dec-osf[5-9]*) |
31229 | 1368 opsys=osf5-0 ;; |
27883 | 1369 esac |
25897 | 1370 ;; |
1371 | |
1372 alpha*-*-linux-gnu* ) | |
1373 machine=alpha opsys=gnu-linux | |
1374 ;; | |
1375 | |
27205 | 1376 arm*-*-linux-gnu* ) |
1377 machine=arm opsys=gnu-linux | |
1378 ;; | |
1379 | |
1380 ppc-*-linux | \ | |
1381 powerpc-*-linux* ) | |
33740 | 1382 machine=macppc opsys=gnu-linux |
27205 | 1383 ;; |
1384 | |
25897 | 1385 ## Altos 3068 |
1386 m68*-altos-sysv* ) | |
1387 machine=altos opsys=usg5-2 | |
1388 ;; | |
1389 | |
1390 ## Amdahl UTS | |
1391 580-amdahl-sysv* ) | |
1392 machine=amdahl opsys=usg5-2-2 | |
1393 ;; | |
1394 | |
1395 ## Apollo, Domain/OS | |
1396 m68*-apollo-* ) | |
1397 machine=apollo opsys=bsd4-3 | |
1398 ;; | |
1399 | |
1400 ## AT&T 3b2, 3b5, 3b15, 3b20 | |
1401 we32k-att-sysv* ) | |
1402 machine=att3b opsys=usg5-2-2 | |
1403 ;; | |
1404 | |
1405 ## AT&T 3b1 - The Mighty Unix PC! | |
1406 m68*-att-sysv* ) | |
1407 machine=7300 opsys=usg5-2-2 | |
1408 ;; | |
1409 | |
1410 ## Bull dpx20 | |
1411 rs6000-bull-bosx* ) | |
1412 machine=ibmrs6000 opsys=aix3-2 | |
1413 ;; | |
1414 | |
1415 ## Bull dpx2 | |
1416 m68*-bull-sysv3* ) | |
1417 machine=dpx2 opsys=usg5-3 | |
1418 ;; | |
1419 | |
1420 ## Bull sps7 | |
1421 m68*-bull-sysv2* ) | |
1422 machine=sps7 opsys=usg5-2 | |
1423 ;; | |
1424 | |
1425 ## CCI 5/32, 6/32 -- see "Tahoe". | |
1426 | |
1427 ## Celerity | |
1428 ## I don't know what configuration name to use for this; config.sub | |
1429 ## doesn't seem to know anything about it. Hey, Celerity users, get | |
1430 ## in touch with us! | |
1431 celerity-celerity-bsd* ) | |
1432 machine=celerity opsys=bsd4-2 | |
1433 ;; | |
1434 | |
1435 ## Clipper | |
1436 ## What operating systems does this chip run that Emacs has been | |
1437 ## tested on? | |
1438 clipper-* ) | |
1439 machine=clipper | |
1440 ## We'll use the catch-all code at the bottom to guess the | |
1441 ## operating system. | |
1442 ;; | |
1443 | |
1444 ## Convex | |
1445 *-convex-bsd* | *-convex-convexos* ) | |
1446 machine=convex opsys=bsd4-3 | |
1447 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
1448 NON_GNU_CPP="cc -E -P" | |
1449 ;; | |
1450 | |
1451 ## Cubix QBx/386 | |
1452 i[3456]86-cubix-sysv* ) | |
1453 machine=intel386 opsys=usg5-3 | |
1454 ;; | |
1455 | |
1456 ## Cydra 5 | |
1457 cydra*-cydrome-sysv* ) | |
1458 machine=cydra5 opsys=usg5-3 | |
1459 ;; | |
1460 | |
1461 ## Data General AViiON Machines | |
1462 ## DG changed naming conventions with the release of 5.4.4.10, they | |
1463 ## dropped the initial 5.4 but left the intervening R. Because of the | |
1464 ## R this shouldn't conflict with older versions of the OS (which I | |
1465 ## think were named like dgux4.*). In addition, DG new AViiONs series | |
1466 ## uses either Motorola M88k or Intel Pentium CPUs. | |
1467 m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
1468 machine=aviion opsys=dgux4 | |
1469 ;; | |
1470 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
1471 ## This name is dgux5-4-3 instead of dgux5-4r3 | |
1472 ## to avoid a file name conflict on MSDOS. | |
1473 machine=aviion opsys=dgux5-4-3 | |
1474 ;; | |
1475 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
1476 machine=aviion opsys=dgux5-4r2 | |
1477 ;; | |
1478 m88k-dg-dgux* ) | |
1479 machine=aviion opsys=dgux | |
1480 ;; | |
1481 | |
1482 ## Data General AViiON Intel (x86) Machines | |
1483 ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
1484 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
1485 i[345]86-dg-dguxR4* ) | |
1486 machine=aviion-intel opsys=dgux4 | |
1487 ;; | |
1488 | |
1489 ## DECstations | |
1490 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1491 machine=pmax opsys=bsd4-2 | |
1492 ;; | |
1493 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1494 machine=pmax opsys=bsd4-3 | |
1495 ;; | |
1496 mips-dec-ultrix* ) | |
1497 machine=pmax opsys=ultrix4-3 | |
1498 ;; | |
1499 mips-dec-osf* ) | |
1500 machine=pmax opsys=osf1 | |
1501 ;; | |
1502 mips-dec-mach_bsd4.3* ) | |
1503 machine=pmax opsys=mach-bsd4-3 | |
1504 ;; | |
1505 | |
1506 ## Motorola Delta machines | |
1507 m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1508 machine=delta opsys=usg5-3 | |
1509 if test -z "`type gnucc | grep 'not found'`" | |
1510 then | |
1511 if test -s /etc/167config | |
1512 then CC="gnucc -m68040" | |
1513 else CC="gnucc -m68881" | |
1514 fi | |
1515 else | |
1516 if test -z "`type gcc | grep 'not found'`" | |
1517 then CC=gcc | |
1518 else CC=cc | |
1519 fi | |
1520 fi | |
1521 ;; | |
1522 m88k-motorola-sysv4* ) | |
1523 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1524 # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1525 # I hope there are not other 4.0 versions for this machine | |
1526 # which really need usg5-4 instead. | |
1527 machine=delta88k opsys=usg5-4-2 | |
1528 ;; | |
1529 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1530 machine=delta88k opsys=usg5-3 | |
1531 ;; | |
1532 | |
1533 ## Dual machines | |
1534 m68*-dual-sysv* ) | |
1535 machine=dual opsys=usg5-2 | |
1536 ;; | |
1537 m68*-dual-uniplus* ) | |
1538 machine=dual opsys=unipl5-2 | |
1539 ;; | |
1540 | |
1541 ## Elxsi 6400 | |
1542 elxsi-elxsi-sysv* ) | |
1543 machine=elxsi opsys=usg5-2 | |
1544 ;; | |
1545 | |
1546 ## Encore machines | |
1547 ns16k-encore-bsd* ) | |
1548 machine=ns16000 opsys=umax | |
1549 ;; | |
1550 | |
30069 | 1551 ## The GEC 63 - apparently, this port isn't really finished yet. |
1552 # I'm sure we finished off the last of the machines, though. -- fx | |
25897 | 1553 |
1554 ## Gould Power Node and NP1 | |
1555 pn-gould-bsd4.2* ) | |
1556 machine=gould opsys=bsd4-2 | |
1557 ;; | |
1558 pn-gould-bsd4.3* ) | |
1559 machine=gould opsys=bsd4-3 | |
1560 ;; | |
1561 np1-gould-bsd* ) | |
1562 machine=gould-np1 opsys=bsd4-3 | |
1563 ;; | |
1564 | |
1565 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
1566 ## as far as Emacs is concerned). | |
1567 m88k-harris-cxux* ) | |
1568 # Build needs to be different on 7.0 and later releases | |
1569 case "`uname -r`" in | |
1570 [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
1571 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
1572 esac | |
1573 NON_GNU_CPP="/lib/cpp" | |
1574 ;; | |
1575 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
1576 m68k-harris-cxux* ) | |
1577 machine=nh3000 opsys=cxux | |
1578 ;; | |
1579 ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
1580 powerpc-harris-powerunix ) | |
1581 machine=nh6000 opsys=powerunix | |
1582 NON_GNU_CPP="cc -Xo -E -P" | |
1583 ;; | |
1584 ## SR2001/SR2201 running HI-UX/MPP | |
1585 hppa1.1-hitachi-hiuxmpp* ) | |
1586 machine=sr2k opsys=hiuxmpp | |
1587 ;; | |
38811 | 1588 hppa1.1-hitachi-hiuxwe2* ) |
1589 machine=sr2k opsys=hiuxwe2 | |
1590 ;; | |
25897 | 1591 ## Honeywell XPS100 |
1592 xps*-honeywell-sysv* ) | |
1593 machine=xps100 opsys=usg5-2 | |
1594 ;; | |
1595 | |
1596 ## HP 9000 series 200 or 300 | |
1597 m68*-hp-bsd* ) | |
1598 machine=hp9000s300 opsys=bsd4-3 | |
1599 ;; | |
1600 ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
1601 m68*-hp-hpux* ) | |
1602 case "`uname -r`" in | |
1603 ## Someone's system reports A.B8.05 for this. | |
1604 ## I wonder what other possibilities there are. | |
1605 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1606 *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1607 *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
1608 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
1609 *) machine=hp9000s300 opsys=hpux ;; | |
1610 esac | |
1611 ;; | |
1612 | |
1613 ## HP 9000 series 700 and 800, running HP/UX | |
1614 hppa*-hp-hpux7* ) | |
1615 machine=hp800 opsys=hpux | |
1616 ;; | |
1617 hppa*-hp-hpux8* ) | |
1618 machine=hp800 opsys=hpux8 | |
1619 ;; | |
1620 hppa*-hp-hpux9shr* ) | |
1621 machine=hp800 opsys=hpux9shr | |
1622 ;; | |
1623 hppa*-hp-hpux9* ) | |
1624 machine=hp800 opsys=hpux9 | |
1625 ;; | |
1626 hppa*-hp-hpux1[0-9]* ) | |
1627 machine=hp800 opsys=hpux10 | |
1628 ;; | |
1629 | |
1630 ## HP 9000 series 700 and 800, running HP/UX | |
1631 hppa*-hp-hpux* ) | |
1632 ## Cross-compilation? Nah! | |
1633 case "`uname -r`" in | |
1634 ## Someone's system reports A.B8.05 for this. | |
1635 ## I wonder what other possibilities there are. | |
1636 *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
1637 *.08.* ) machine=hp800 opsys=hpux8 ;; | |
1638 *.09.* ) machine=hp800 opsys=hpux9 ;; | |
1639 *) machine=hp800 opsys=hpux10 ;; | |
1640 esac | |
1641 ;; | |
1642 hppa*-*-nextstep* ) | |
1643 machine=hp800 opsys=nextstep | |
1644 ;; | |
1645 | |
1646 ## Orion machines | |
1647 orion-orion-bsd* ) | |
1648 machine=orion opsys=bsd4-2 | |
1649 ;; | |
1650 clipper-orion-bsd* ) | |
1651 machine=orion105 opsys=bsd4-2 | |
1652 ;; | |
1653 | |
1654 ## IBM machines | |
1655 i[3456]86-ibm-aix1.1* ) | |
1656 machine=ibmps2-aix opsys=usg5-2-2 | |
1657 ;; | |
1658 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
1659 machine=ibmps2-aix opsys=usg5-3 | |
1660 ;; | |
1661 i370-ibm-aix*) | |
1662 machine=ibm370aix opsys=usg5-3 | |
1663 ;; | |
1664 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) | |
1665 machine=ibmrs6000 opsys=aix3-1 | |
1666 ;; | |
1667 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
1668 machine=ibmrs6000 opsys=aix3-2-5 | |
1669 ;; | |
1670 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
1671 machine=ibmrs6000 opsys=aix4-1 | |
1672 ;; | |
1673 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
1674 machine=ibmrs6000 opsys=aix4-2 | |
1675 ;; | |
1676 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) | |
1677 machine=ibmrs6000 opsys=aix4 | |
1678 ;; | |
1679 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
1680 machine=ibmrs6000 opsys=aix4-1 | |
1681 ;; | |
1682 rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
1683 machine=ibmrs6000 opsys=aix3-2 | |
1684 ;; | |
1685 romp-ibm-bsd4.3* ) | |
1686 machine=ibmrt opsys=bsd4-3 | |
1687 ;; | |
1688 romp-ibm-bsd4.2* ) | |
1689 machine=ibmrt opsys=bsd4-2 | |
1690 ;; | |
1691 romp-ibm-aos4.3* ) | |
1692 machine=ibmrt opsys=bsd4-3 | |
1693 ;; | |
1694 romp-ibm-aos4.2* ) | |
1695 machine=ibmrt opsys=bsd4-2 | |
1696 ;; | |
1697 romp-ibm-aos* ) | |
1698 machine=ibmrt opsys=bsd4-3 | |
1699 ;; | |
1700 romp-ibm-bsd* ) | |
1701 machine=ibmrt opsys=bsd4-3 | |
1702 ;; | |
1703 romp-ibm-aix* ) | |
1704 machine=ibmrt-aix opsys=usg5-2-2 | |
1705 ;; | |
1706 | |
1707 ## Integrated Solutions `Optimum V' | |
1708 m68*-isi-bsd4.2* ) | |
1709 machine=isi-ov opsys=bsd4-2 | |
1710 ;; | |
1711 m68*-isi-bsd4.3* ) | |
1712 machine=isi-ov opsys=bsd4-3 | |
1713 ;; | |
1714 | |
1715 ## Intel 386 machines where we do care about the manufacturer | |
1716 i[3456]86-intsys-sysv* ) | |
1717 machine=is386 opsys=usg5-2-2 | |
1718 ;; | |
1719 | |
1720 ## Prime EXL | |
1721 i[3456]86-prime-sysv* ) | |
1722 machine=i386 opsys=usg5-3 | |
1723 ;; | |
1724 | |
1725 ## Sequent Symmetry running Dynix | |
1726 i[3456]86-sequent-bsd* ) | |
1727 machine=symmetry opsys=bsd4-3 | |
1728 ;; | |
1729 | |
1730 ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
1731 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
1732 machine=sequent-ptx opsys=ptx4 | |
1733 NON_GNU_CPP=/lib/cpp | |
1734 ;; | |
1735 | |
1736 ## Sequent Symmetry running DYNIX/ptx | |
1737 ## Use the old cpp rather than the newer ANSI one. | |
1738 i[3456]86-sequent-ptx* ) | |
1739 machine=sequent-ptx opsys=ptx | |
1740 NON_GNU_CPP="/lib/cpp" | |
1741 ;; | |
1742 | |
1743 ## ncr machine running svr4.3. | |
1744 i[3456]86-ncr-sysv4.3 ) | |
1745 machine=ncr386 opsys=usg5-4-3 | |
1746 ;; | |
1747 | |
1748 ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
1749 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
1750 i[3456]86-ncr-sysv* ) | |
1751 machine=ncr386 opsys=usg5-4-2 | |
1752 ;; | |
1753 | |
1754 ## Intel Paragon OSF/1 | |
1755 i860-intel-osf1* ) | |
1756 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
1757 ;; | |
1758 | |
1759 ## Intel 860 | |
1760 i860-*-sysv4* ) | |
1761 machine=i860 opsys=usg5-4 | |
1762 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
1763 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
1764 ;; | |
1765 | |
28748 | 1766 ## Macintosh PowerPC |
1767 powerpc*-*-linux-gnu* ) | |
1768 machine=macppc opsys=gnu-linux | |
1769 ;; | |
1770 | |
25897 | 1771 ## Masscomp machines |
1772 m68*-masscomp-rtu* ) | |
1773 machine=masscomp opsys=rtu | |
1774 ;; | |
1775 | |
1776 ## Megatest machines | |
1777 m68*-megatest-bsd* ) | |
1778 machine=mega68 opsys=bsd4-2 | |
1779 ;; | |
1780 | |
1781 ## Workstations sold by MIPS | |
1782 ## This is not necessarily all workstations using the MIPS processor - | |
1783 ## Irises are produced by SGI, and DECstations by DEC. | |
1784 | |
1785 ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
1786 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
1787 ## it gives for choosing between the alternatives seems to be "Use | |
1788 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
1789 ## the BSD world." I'll assume that these are instructions for | |
1790 ## handling two odd situations, and that every other situation | |
1791 ## should use mips.h and usg5-2-2, they being listed first. | |
1792 mips-mips-usg* ) | |
1793 machine=mips4 | |
1794 ## Fall through to the general code at the bottom to decide on the OS. | |
1795 ;; | |
1796 mips-mips-riscos4* ) | |
1797 machine=mips4 opsys=bsd4-3 | |
1798 NON_GNU_CC="cc -systype bsd43" | |
1799 NON_GNU_CPP="cc -systype bsd43 -E" | |
1800 ;; | |
1801 mips-mips-riscos5* ) | |
1802 machine=mips4 opsys=riscos5 | |
1803 NON_GNU_CC="cc -systype bsd43" | |
1804 NON_GNU_CPP="cc -systype bsd43 -E" | |
1805 ;; | |
1806 mips-mips-bsd* ) | |
1807 machine=mips opsys=bsd4-3 | |
1808 ;; | |
1809 mips-mips-* ) | |
1810 machine=mips opsys=usg5-2-2 | |
1811 ;; | |
1812 | |
1813 ## NeXT | |
1814 m68*-next-* | m68k-*-nextstep* ) | |
1815 machine=m68k opsys=nextstep | |
1816 ;; | |
1817 | |
1818 ## The complete machine from National Semiconductor | |
1819 ns32k-ns-genix* ) | |
1820 machine=ns32000 opsys=usg5-2 | |
1821 ;; | |
1822 | |
1823 ## NCR machines | |
1824 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
1825 machine=tower32 opsys=usg5-2-2 | |
1826 ;; | |
1827 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
1828 machine=tower32v3 opsys=usg5-3 | |
1829 ;; | |
1830 | |
1831 ## NEC EWS4800 | |
1832 mips-nec-sysv4*) | |
1833 machine=ews4800 opsys=ux4800 | |
1834 ;; | |
1835 | |
1836 ## Nixdorf Targon 31 | |
1837 m68*-nixdorf-sysv* ) | |
1838 machine=targon31 opsys=usg5-2-2 | |
1839 ;; | |
1840 | |
1841 ## Nu (TI or LMI) | |
1842 m68*-nu-sysv* ) | |
1843 machine=nu opsys=usg5-2 | |
1844 ;; | |
1845 | |
1846 ## Plexus | |
1847 m68*-plexus-sysv* ) | |
1848 machine=plexus opsys=usg5-2 | |
1849 ;; | |
1850 | |
1851 ## PowerPC reference platform | |
1852 powerpcle-*-solaris2* ) | |
1853 machine=prep | |
1854 opsys=sol2-5 | |
1855 ;; | |
1856 | |
1857 ## Pyramid machines | |
1858 ## I don't really have any idea what sort of processor the Pyramid has, | |
1859 ## so I'm assuming it is its own architecture. | |
1860 pyramid-pyramid-bsd* ) | |
1861 machine=pyramid opsys=bsd4-2 | |
1862 ;; | |
1863 | |
1864 ## Sequent Balance | |
1865 ns32k-sequent-bsd4.2* ) | |
1866 machine=sequent opsys=bsd4-2 | |
1867 ;; | |
1868 ns32k-sequent-bsd4.3* ) | |
1869 machine=sequent opsys=bsd4-3 | |
1870 ;; | |
1871 | |
1872 ## Siemens Nixdorf | |
1873 mips-siemens-sysv* | mips-sni-sysv*) | |
1874 machine=mips-siemens opsys=usg5-4 | |
1875 NON_GNU_CC=/usr/ccs/bin/cc | |
1876 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1877 ;; | |
1878 | |
1879 ## Silicon Graphics machines | |
1880 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
1881 m68*-sgi-iris3.5* ) | |
1882 machine=irist opsys=iris3-5 | |
1883 ;; | |
1884 m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
1885 machine=irist opsys=iris3-6 | |
1886 ;; | |
1887 ## Iris 4D | |
1888 mips-sgi-irix3* ) | |
1889 machine=iris4d opsys=irix3-3 | |
1890 ;; | |
1891 mips-sgi-irix4* ) | |
1892 machine=iris4d opsys=irix4-0 | |
1893 ;; | |
1894 mips-sgi-irix6.5 ) | |
1895 machine=iris4d opsys=irix6-5 | |
26502 | 1896 # Without defining _LANGUAGE_C, things get masked out in the headers |
1897 # so that, for instance, grepping for `free' in stdlib.h fails and | |
1898 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
1899 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 1900 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
25897 | 1901 ;; |
1902 mips-sgi-irix6* ) | |
1903 machine=iris4d opsys=irix6-0 | |
27205 | 1904 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
26502 | 1905 # but presumably it does no harm. |
1906 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 1907 # -32 probably isn't necessary in later v.6s -- anyone know which? |
25897 | 1908 NON_GCC_TEST_OPTIONS=-32 |
1909 ;; | |
1910 mips-sgi-irix5.[01]* ) | |
1911 machine=iris4d opsys=irix5-0 | |
1912 ;; | |
1913 mips-sgi-irix5* | mips-sgi-irix* ) | |
1914 machine=iris4d opsys=irix5-2 | |
1915 ;; | |
1916 | |
1917 ## SONY machines | |
1918 m68*-sony-bsd4.2* ) | |
1919 machine=news opsys=bsd4-2 | |
1920 ;; | |
1921 m68*-sony-bsd4.3* ) | |
1922 machine=news opsys=bsd4-3 | |
1923 ;; | |
1924 m68*-sony-newsos3* | m68*-sony-news3*) | |
1925 machine=news opsys=bsd4-3 | |
1926 ;; | |
1927 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
1928 machine=news-risc opsys=bsd4-3 | |
1929 ;; | |
1930 mips-sony-newsos6* ) | |
1931 machine=news-r6 opsys=newsos6 | |
1932 ;; | |
1933 mips-sony-news* ) | |
1934 machine=news-risc opsys=newsos5 | |
1935 ;; | |
1936 | |
1937 ## Stride | |
1938 m68*-stride-sysv* ) | |
1939 machine=stride opsys=usg5-2 | |
1940 ;; | |
1941 | |
1942 ## Suns | |
1943 sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
1944 machine=sparc opsys=gnu-linux | |
1945 ;; | |
1946 | |
27949 | 1947 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
25897 | 1948 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
1949 | rs6000-*-solaris2*) | |
1950 case "${canonical}" in | |
1951 m68*-sunos1* ) machine=sun1 ;; | |
1952 m68*-sunos2* ) machine=sun2 ;; | |
1953 m68* ) machine=sun3 ;; | |
1954 i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
1955 i[3456]86-*-* ) machine=intel386 ;; | |
1956 powerpcle* ) machine=powerpcle ;; | |
1957 powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
1958 sparc* ) machine=sparc ;; | |
1959 * ) unported=yes ;; | |
1960 esac | |
1961 case "${canonical}" in | |
1962 ## The Sun386 didn't get past 4.0. | |
1963 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
1964 *-sunos4.0* ) opsys=sunos4-0 ;; | |
1965 *-sunos4.1.[3-9]*noshare ) | |
1966 ## This name is sunos413 instead of sunos4-1-3 | |
1967 ## to avoid a file name conflict on MSDOS. | |
1968 opsys=sunos413 | |
1969 NON_GNU_CPP=/usr/lib/cpp | |
1970 NON_GCC_TEST_OPTIONS=-Bstatic | |
1971 GCC_TEST_OPTIONS=-static | |
1972 ;; | |
1973 *-sunos4.1.[3-9]* | *-sunos4shr*) | |
1974 opsys=sunos4shr | |
1975 NON_GNU_CPP=/usr/lib/cpp | |
1976 ;; | |
1977 *-sunos4* | *-sunos ) | |
1978 opsys=sunos4-1 | |
1979 NON_GCC_TEST_OPTIONS=-Bstatic | |
1980 GCC_TEST_OPTIONS=-static | |
1981 ;; | |
1982 *-sunos5.3* | *-solaris2.3* ) | |
1983 opsys=sol2-3 | |
1984 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1985 ;; | |
1986 *-sunos5.4* | *-solaris2.4* ) | |
1987 opsys=sol2-4 | |
1988 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1989 RANLIB="ar -ts" | |
1990 ;; | |
1991 *-sunos5.5* | *-solaris2.5* ) | |
1992 opsys=sol2-5 | |
1993 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1994 RANLIB="ar -ts" | |
1995 ;; | |
1996 *-sunos5* | *-solaris* ) | |
1997 opsys=sol2-5 | |
1998 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1999 ;; | |
2000 * ) opsys=bsd4-2 ;; | |
2001 esac | |
2002 ## Watch out for a compiler that we know will not work. | |
2003 case "${canonical}" in | |
2004 *-solaris* | *-sunos5* ) | |
2005 if [ "x$CC" = x/usr/ucb/cc ]; then | |
2006 ## /usr/ucb/cc doesn't work; | |
2007 ## we should find some other compiler that does work. | |
2008 unset CC | |
2009 fi | |
2010 ;; | |
2011 *) ;; | |
2012 esac | |
2013 ;; | |
2014 sparc-*-nextstep* ) | |
2015 machine=sparc opsys=nextstep | |
2016 ;; | |
2017 | |
2018 ## Tadpole 68k | |
2019 m68*-tadpole-sysv* ) | |
2020 machine=tad68k opsys=usg5-3 | |
2021 ;; | |
2022 | |
2023 ## Tahoe machines | |
2024 tahoe-tahoe-bsd4.2* ) | |
2025 machine=tahoe opsys=bsd4-2 | |
2026 ;; | |
2027 tahoe-tahoe-bsd4.3* ) | |
2028 machine=tahoe opsys=bsd4-3 | |
2029 ;; | |
2030 | |
2031 ## Tandem Integrity S2 | |
2032 mips-tandem-sysv* ) | |
2033 machine=tandem-s2 opsys=usg5-3 | |
2034 ;; | |
2035 | |
2036 ## Tektronix XD88 | |
2037 m88k-tektronix-sysv3* ) | |
2038 machine=tekxd88 opsys=usg5-3 | |
2039 ;; | |
2040 | |
2041 ## Tektronix 16000 box (6130?) | |
2042 ns16k-tektronix-bsd* ) | |
2043 machine=ns16000 opsys=bsd4-2 | |
2044 ;; | |
2045 ## Tektronix 4300 | |
2046 ## src/m/tek4300.h hints that this is a m68k machine. | |
2047 m68*-tektronix-bsd* ) | |
2048 machine=tek4300 opsys=bsd4-3 | |
2049 ;; | |
2050 | |
2051 ## Titan P2 or P3 | |
2052 ## We seem to have lost the machine-description file titan.h! | |
2053 titan-titan-sysv* ) | |
2054 machine=titan opsys=usg5-3 | |
2055 ;; | |
2056 | |
2057 ## Ustation E30 (SS5E) | |
2058 m68*-unisys-uniplus* ) | |
2059 machine=ustation opsystem=unipl5-2 | |
2060 ;; | |
2061 | |
2062 ## Vaxen. | |
2063 vax-dec-* ) | |
2064 machine=vax | |
2065 case "${canonical}" in | |
2066 *-bsd4.1* ) opsys=bsd4-1 ;; | |
2067 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
2068 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
2069 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
2070 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
2071 *-vms* ) opsys=vms ;; | |
2072 * ) unported=yes | |
2073 esac | |
2074 ;; | |
2075 | |
2076 ## Whitechapel MG1 | |
2077 ns16k-whitechapel-* ) | |
2078 machine=mg1 | |
2079 ## We don't know what sort of OS runs on these; we'll let the | |
2080 ## operating system guessing code below try. | |
2081 ;; | |
2082 | |
2083 ## Wicat | |
2084 m68*-wicat-sysv* ) | |
2085 machine=wicat opsys=usg5-2 | |
2086 ;; | |
2087 | |
30576 | 2088 ## IA-64 |
2089 ia64*-*-linux* ) | |
2090 machine=ia64 opsys=gnu-linux | |
2091 ;; | |
2092 | |
25897 | 2093 ## Intel 386 machines where we don't care about the manufacturer |
2094 i[3456]86-*-* ) | |
2095 machine=intel386 | |
2096 case "${canonical}" in | |
29654 | 2097 *-lynxos* ) opsys=lynxos ;; |
25897 | 2098 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
2099 *-isc2.2* ) opsys=isc2-2 ;; | |
2100 *-isc4.0* ) opsys=isc4-0 ;; | |
2101 *-isc4.* ) opsys=isc4-1 | |
2102 GCC_TEST_OPTIONS=-posix | |
2103 NON_GCC_TEST_OPTIONS=-Xp | |
2104 ;; | |
2105 *-isc* ) opsys=isc3-0 ;; | |
2106 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
2107 *-esix* ) opsys=esix ;; | |
2108 *-xenix* ) opsys=xenix ;; | |
2109 *-linux-gnu* ) opsys=gnu-linux ;; | |
2110 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
40056 | 2111 *-sco3.2v5* ) opsys=sco5 |
25897 | 2112 NON_GNU_CPP=/lib/cpp |
2113 # Prevent -belf from being passed to $CPP. | |
2114 # /lib/cpp does not accept it. | |
2115 OVERRIDE_CPPFLAGS=" " | |
2116 ;; | |
2117 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
2118 *-386bsd* ) opsys=386bsd ;; | |
2119 *-freebsd* ) opsys=freebsd ;; | |
2120 *-nextstep* ) opsys=nextstep ;; | |
2121 ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
2122 esac | |
2123 ;; | |
2124 | |
2125 ## m68k Linux-based GNU system | |
2126 m68k-*-linux-gnu* ) | |
2127 machine=m68k opsys=gnu-linux | |
2128 ;; | |
2129 | |
2130 ## Mips Linux-based GNU system | |
2131 mips-*-linux-gnu* ) | |
2132 machine=mips opsys=gnu-linux | |
2133 ;; | |
2134 | |
2135 ## UXP/DS | |
2136 sparc-fujitsu-sysv4* ) | |
2137 machine=sparc opsys=uxpds | |
2138 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2139 RANLIB="ar -ts" | |
2140 ;; | |
2141 | |
2142 ## UXP/V | |
2143 f301-fujitsu-uxpv4.1) | |
2144 machine=f301 opsys=uxpv | |
2145 ;; | |
2146 | |
2147 * ) | |
2148 unported=yes | |
2149 ;; | |
2150 esac | |
2151 | |
2152 ### If the code above didn't choose an operating system, just choose | |
2153 ### an operating system based on the configuration name. You really | |
2154 ### only want to use this when you have no idea what the right | |
2155 ### operating system is; if you know what operating systems a machine | |
2156 ### runs, it's cleaner to make it explicit in the case statement | |
2157 ### above. | |
2158 if test x"${opsys}" = x; then | |
2159 case "${canonical}" in | |
2160 *-gnu* ) opsys=gnu ;; | |
2161 *-bsd4.[01] ) opsys=bsd4-1 ;; | |
2162 *-bsd4.2 ) opsys=bsd4-2 ;; | |
2163 *-bsd4.3 ) opsys=bsd4-3 ;; | |
2164 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
2165 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
2166 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
2167 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
2168 *-sysv4.2uw* ) opsys=unixware ;; | |
2169 *-sysv4.1* | *-sysvr4.1* ) | |
2170 NON_GNU_CPP=/usr/lib/cpp | |
2171 opsys=usg5-4 ;; | |
2172 *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
2173 if [ x$NON_GNU_CPP = x ]; then | |
2174 if [ -f /usr/ccs/lib/cpp ]; then | |
2175 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2176 else | |
2177 NON_GNU_CPP=/lib/cpp | |
2178 fi | |
2179 fi | |
2180 opsys=usg5-4-2 ;; | |
2181 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
2182 * ) | |
2183 unported=yes | |
2184 ;; | |
2185 esac | |
2186 fi | |
2187 | |
2188 if test $unported = yes; then | |
40056 | 2189 { { echo "$as_me:2189: error: Emacs hasn't been ported to \`${canonical}' systems. |
2190 Check \`etc/MACHINES' for recognized configuration names." >&5 | |
2191 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
2192 Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
2193 { (exit 1); exit 1; }; } | |
25897 | 2194 fi |
2195 | |
2196 machfile="m/${machine}.h" | |
2197 opsysfile="s/${opsys}.h" | |
2198 | |
2199 #### Choose a compiler. | |
2200 test -n "$CC" && cc_specified=yes | |
2201 | |
2202 # Save the value of CFLAGS that the user specified. | |
2203 SPECIFIED_CFLAGS="$CFLAGS" | |
2204 | |
2205 case ${with_gcc} in | |
2206 "yes" ) CC="gcc" GCC=yes ;; | |
2207 "no" ) : ${CC=cc} ;; | |
40056 | 2208 * ) |
2209 esac | |
2210 ac_ext=c | |
2211 ac_cpp='$CPP $CPPFLAGS' | |
2212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2214 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2215 if test -n "$ac_tool_prefix"; then | |
2216 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2217 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2218 echo "$as_me:2218: checking for $ac_word" >&5 | |
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2220 if test "${ac_cv_prog_CC+set}" = set; then | |
2221 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2222 else | |
2223 if test -n "$CC"; then | |
2224 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2225 else | |
2226 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2227 ac_dummy="$PATH" | |
2228 for ac_dir in $ac_dummy; do | |
2229 IFS=$ac_save_IFS | |
2230 test -z "$ac_dir" && ac_dir=. | |
2231 $as_executable_p "$ac_dir/$ac_word" || continue | |
2232 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2233 echo "$as_me:2233: found $ac_dir/$ac_word" >&5 | |
2234 break | |
2235 done | |
2236 | |
2237 fi | |
2238 fi | |
2239 CC=$ac_cv_prog_CC | |
2240 if test -n "$CC"; then | |
2241 echo "$as_me:2241: result: $CC" >&5 | |
2242 echo "${ECHO_T}$CC" >&6 | |
2243 else | |
2244 echo "$as_me:2244: result: no" >&5 | |
2245 echo "${ECHO_T}no" >&6 | |
2246 fi | |
2247 | |
2248 fi | |
2249 if test -z "$ac_cv_prog_CC"; then | |
2250 ac_ct_CC=$CC | |
2251 # Extract the first word of "gcc", so it can be a program name with args. | |
25897 | 2252 set dummy gcc; ac_word=$2 |
40056 | 2253 echo "$as_me:2253: checking for $ac_word" >&5 |
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2256 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2257 else | |
2258 if test -n "$ac_ct_CC"; then | |
2259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2260 else | |
2261 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2262 ac_dummy="$PATH" | |
2263 for ac_dir in $ac_dummy; do | |
2264 IFS=$ac_save_IFS | |
2265 test -z "$ac_dir" && ac_dir=. | |
2266 $as_executable_p "$ac_dir/$ac_word" || continue | |
2267 ac_cv_prog_ac_ct_CC="gcc" | |
2268 echo "$as_me:2268: found $ac_dir/$ac_word" >&5 | |
2269 break | |
2270 done | |
2271 | |
2272 fi | |
2273 fi | |
2274 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2275 if test -n "$ac_ct_CC"; then | |
2276 echo "$as_me:2276: result: $ac_ct_CC" >&5 | |
2277 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2278 else | |
2279 echo "$as_me:2279: result: no" >&5 | |
2280 echo "${ECHO_T}no" >&6 | |
2281 fi | |
2282 | |
2283 CC=$ac_ct_CC | |
2284 else | |
2285 CC="$ac_cv_prog_CC" | |
2286 fi | |
2287 | |
2288 if test -z "$CC"; then | |
2289 if test -n "$ac_tool_prefix"; then | |
2290 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2291 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2292 echo "$as_me:2292: checking for $ac_word" >&5 | |
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2294 if test "${ac_cv_prog_CC+set}" = set; then | |
2295 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 2296 else |
2297 if test -n "$CC"; then | |
2298 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2299 else | |
40056 | 2300 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2301 ac_dummy="$PATH" | |
2302 for ac_dir in $ac_dummy; do | |
2303 IFS=$ac_save_IFS | |
2304 test -z "$ac_dir" && ac_dir=. | |
2305 $as_executable_p "$ac_dir/$ac_word" || continue | |
2306 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2307 echo "$as_me:2307: found $ac_dir/$ac_word" >&5 | |
2308 break | |
2309 done | |
2310 | |
2311 fi | |
2312 fi | |
2313 CC=$ac_cv_prog_CC | |
25897 | 2314 if test -n "$CC"; then |
40056 | 2315 echo "$as_me:2315: result: $CC" >&5 |
2316 echo "${ECHO_T}$CC" >&6 | |
2317 else | |
2318 echo "$as_me:2318: result: no" >&5 | |
2319 echo "${ECHO_T}no" >&6 | |
2320 fi | |
2321 | |
2322 fi | |
2323 if test -z "$ac_cv_prog_CC"; then | |
2324 ac_ct_CC=$CC | |
2325 # Extract the first word of "cc", so it can be a program name with args. | |
2326 set dummy cc; ac_word=$2 | |
2327 echo "$as_me:2327: checking for $ac_word" >&5 | |
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2329 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2330 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2331 else | |
2332 if test -n "$ac_ct_CC"; then | |
2333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2334 else | |
2335 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2336 ac_dummy="$PATH" | |
2337 for ac_dir in $ac_dummy; do | |
2338 IFS=$ac_save_IFS | |
2339 test -z "$ac_dir" && ac_dir=. | |
2340 $as_executable_p "$ac_dir/$ac_word" || continue | |
2341 ac_cv_prog_ac_ct_CC="cc" | |
2342 echo "$as_me:2342: found $ac_dir/$ac_word" >&5 | |
2343 break | |
2344 done | |
2345 | |
2346 fi | |
2347 fi | |
2348 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2349 if test -n "$ac_ct_CC"; then | |
2350 echo "$as_me:2350: result: $ac_ct_CC" >&5 | |
2351 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2352 else | |
2353 echo "$as_me:2353: result: no" >&5 | |
2354 echo "${ECHO_T}no" >&6 | |
2355 fi | |
2356 | |
2357 CC=$ac_ct_CC | |
2358 else | |
2359 CC="$ac_cv_prog_CC" | |
2360 fi | |
2361 | |
2362 fi | |
25897 | 2363 if test -z "$CC"; then |
2364 # Extract the first word of "cc", so it can be a program name with args. | |
2365 set dummy cc; ac_word=$2 | |
40056 | 2366 echo "$as_me:2366: checking for $ac_word" >&5 |
2367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2368 if test "${ac_cv_prog_CC+set}" = set; then | |
2369 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 2370 else |
2371 if test -n "$CC"; then | |
2372 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2373 else | |
2374 ac_prog_rejected=no | |
40056 | 2375 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2376 ac_dummy="$PATH" | |
2377 for ac_dir in $ac_dummy; do | |
2378 IFS=$ac_save_IFS | |
2379 test -z "$ac_dir" && ac_dir=. | |
2380 $as_executable_p "$ac_dir/$ac_word" || continue | |
2381 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
2382 ac_prog_rejected=yes | |
2383 continue | |
2384 fi | |
2385 ac_cv_prog_CC="cc" | |
2386 echo "$as_me:2386: found $ac_dir/$ac_word" >&5 | |
2387 break | |
2388 done | |
2389 | |
25897 | 2390 if test $ac_prog_rejected = yes; then |
2391 # We found a bogon in the path, so make sure we never use it. | |
2392 set dummy $ac_cv_prog_CC | |
2393 shift | |
40056 | 2394 if test $# != 0; then |
25897 | 2395 # We chose a different compiler from the bogus one. |
2396 # However, it has the same basename, so the bogon will be chosen | |
2397 # first if we set CC to just the basename; use the full file name. | |
2398 shift | |
40056 | 2399 set dummy "$ac_dir/$ac_word" ${1+"$@"} |
25897 | 2400 shift |
2401 ac_cv_prog_CC="$@" | |
2402 fi | |
2403 fi | |
2404 fi | |
2405 fi | |
40056 | 2406 CC=$ac_cv_prog_CC |
25897 | 2407 if test -n "$CC"; then |
40056 | 2408 echo "$as_me:2408: result: $CC" >&5 |
2409 echo "${ECHO_T}$CC" >&6 | |
2410 else | |
2411 echo "$as_me:2411: result: no" >&5 | |
2412 echo "${ECHO_T}no" >&6 | |
2413 fi | |
2414 | |
2415 fi | |
2416 if test -z "$CC"; then | |
2417 if test -n "$ac_tool_prefix"; then | |
2418 for ac_prog in cl | |
2419 do | |
2420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2422 echo "$as_me:2422: checking for $ac_word" >&5 | |
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2424 if test "${ac_cv_prog_CC+set}" = set; then | |
2425 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27205 | 2426 else |
2427 if test -n "$CC"; then | |
2428 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2429 else | |
40056 | 2430 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2431 ac_dummy="$PATH" | |
2432 for ac_dir in $ac_dummy; do | |
2433 IFS=$ac_save_IFS | |
2434 test -z "$ac_dir" && ac_dir=. | |
2435 $as_executable_p "$ac_dir/$ac_word" || continue | |
2436 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2437 echo "$as_me:2437: found $ac_dir/$ac_word" >&5 | |
2438 break | |
2439 done | |
2440 | |
2441 fi | |
2442 fi | |
2443 CC=$ac_cv_prog_CC | |
27205 | 2444 if test -n "$CC"; then |
40056 | 2445 echo "$as_me:2445: result: $CC" >&5 |
2446 echo "${ECHO_T}$CC" >&6 | |
2447 else | |
2448 echo "$as_me:2448: result: no" >&5 | |
2449 echo "${ECHO_T}no" >&6 | |
2450 fi | |
2451 | |
2452 test -n "$CC" && break | |
2453 done | |
2454 fi | |
2455 if test -z "$CC"; then | |
2456 ac_ct_CC=$CC | |
2457 for ac_prog in cl | |
2458 do | |
2459 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2460 set dummy $ac_prog; ac_word=$2 | |
2461 echo "$as_me:2461: checking for $ac_word" >&5 | |
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2463 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2464 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2465 else | |
2466 if test -n "$ac_ct_CC"; then | |
2467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2468 else | |
2469 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2470 ac_dummy="$PATH" | |
2471 for ac_dir in $ac_dummy; do | |
2472 IFS=$ac_save_IFS | |
2473 test -z "$ac_dir" && ac_dir=. | |
2474 $as_executable_p "$ac_dir/$ac_word" || continue | |
2475 ac_cv_prog_ac_ct_CC="$ac_prog" | |
2476 echo "$as_me:2476: found $ac_dir/$ac_word" >&5 | |
2477 break | |
2478 done | |
2479 | |
2480 fi | |
2481 fi | |
2482 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2483 if test -n "$ac_ct_CC"; then | |
2484 echo "$as_me:2484: result: $ac_ct_CC" >&5 | |
2485 echo "${ECHO_T}$ac_ct_CC" >&6 | |
2486 else | |
2487 echo "$as_me:2487: result: no" >&5 | |
2488 echo "${ECHO_T}no" >&6 | |
2489 fi | |
2490 | |
2491 test -n "$ac_ct_CC" && break | |
2492 done | |
2493 | |
2494 CC=$ac_ct_CC | |
2495 fi | |
2496 | |
2497 fi | |
2498 | |
2499 test -z "$CC" && { { echo "$as_me:2499: error: no acceptable cc found in \$PATH" >&5 | |
2500 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | |
2501 { (exit 1); exit 1; }; } | |
2502 | |
2503 # Provide some information about the compiler. | |
2504 echo "$as_me:2504:" \ | |
2505 "checking for C compiler version" >&5 | |
2506 ac_compiler=`set X $ac_compile; echo $2` | |
2507 { (eval echo "$as_me:2507: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2508 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2509 ac_status=$? | |
2510 echo "$as_me:2510: \$? = $ac_status" >&5 | |
2511 (exit $ac_status); } | |
2512 { (eval echo "$as_me:2512: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2513 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2514 ac_status=$? | |
2515 echo "$as_me:2515: \$? = $ac_status" >&5 | |
2516 (exit $ac_status); } | |
2517 { (eval echo "$as_me:2517: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2518 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2519 ac_status=$? | |
2520 echo "$as_me:2520: \$? = $ac_status" >&5 | |
2521 (exit $ac_status); } | |
2522 | |
2523 cat >conftest.$ac_ext <<_ACEOF | |
2524 #line 2524 "configure" | |
2525 #include "confdefs.h" | |
2526 | |
2527 int | |
2528 main () | |
2529 { | |
2530 | |
2531 ; | |
2532 return 0; | |
2533 } | |
2534 _ACEOF | |
2535 ac_clean_files_save=$ac_clean_files | |
2536 ac_clean_files="$ac_clean_files a.out a.exe" | |
2537 # Try to create an executable without -o first, disregard a.out. | |
2538 # It will help us diagnose broken compilers, and finding out an intuition | |
2539 # of exeext. | |
2540 echo "$as_me:2540: checking for C compiler default output" >&5 | |
2541 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
2542 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2543 if { (eval echo "$as_me:2543: \"$ac_link_default\"") >&5 | |
2544 (eval $ac_link_default) 2>&5 | |
2545 ac_status=$? | |
2546 echo "$as_me:2546: \$? = $ac_status" >&5 | |
2547 (exit $ac_status); }; then | |
2548 # Find the output, starting from the most likely. This scheme is | |
2549 # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2550 # resort. | |
2551 for ac_file in `ls a.exe conftest.exe 2>/dev/null; | |
2552 ls a.out conftest 2>/dev/null; | |
2553 ls a.* conftest.* 2>/dev/null`; do | |
2554 case $ac_file in | |
2555 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2556 a.out ) # We found the default executable, but exeext='' is most | |
2557 # certainly right. | |
2558 break;; | |
2559 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2560 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
2561 export ac_cv_exeext | |
2562 break;; | |
2563 * ) break;; | |
2564 esac | |
2565 done | |
2566 else | |
2567 echo "$as_me: failed program was:" >&5 | |
2568 cat conftest.$ac_ext >&5 | |
2569 { { echo "$as_me:2569: error: C compiler cannot create executables" >&5 | |
2570 echo "$as_me: error: C compiler cannot create executables" >&2;} | |
2571 { (exit 77); exit 77; }; } | |
2572 fi | |
2573 | |
2574 ac_exeext=$ac_cv_exeext | |
2575 echo "$as_me:2575: result: $ac_file" >&5 | |
2576 echo "${ECHO_T}$ac_file" >&6 | |
2577 | |
2578 # Check the compiler produces executables we can run. If not, either | |
2579 # the compiler is broken, or we cross compile. | |
2580 echo "$as_me:2580: checking whether the C compiler works" >&5 | |
2581 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2582 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2583 # If not cross compiling, check that we can run a simple program. | |
2584 if test "$cross_compiling" != yes; then | |
2585 if { ac_try='./$ac_file' | |
2586 { (eval echo "$as_me:2586: \"$ac_try\"") >&5 | |
2587 (eval $ac_try) 2>&5 | |
2588 ac_status=$? | |
2589 echo "$as_me:2589: \$? = $ac_status" >&5 | |
2590 (exit $ac_status); }; }; then | |
2591 cross_compiling=no | |
25897 | 2592 else |
40056 | 2593 if test "$cross_compiling" = maybe; then |
2594 cross_compiling=yes | |
2595 else | |
2596 { { echo "$as_me:2596: error: cannot run C compiled programs. | |
2597 If you meant to cross compile, use \`--host'." >&5 | |
2598 echo "$as_me: error: cannot run C compiled programs. | |
2599 If you meant to cross compile, use \`--host'." >&2;} | |
2600 { (exit 1); exit 1; }; } | |
2601 fi | |
2602 fi | |
2603 fi | |
2604 echo "$as_me:2604: result: yes" >&5 | |
2605 echo "${ECHO_T}yes" >&6 | |
2606 | |
2607 rm -f a.out a.exe conftest$ac_cv_exeext | |
2608 ac_clean_files=$ac_clean_files_save | |
2609 # Check the compiler produces executables we can run. If not, either | |
2610 # the compiler is broken, or we cross compile. | |
2611 echo "$as_me:2611: checking whether we are cross compiling" >&5 | |
2612 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2613 echo "$as_me:2613: result: $cross_compiling" >&5 | |
2614 echo "${ECHO_T}$cross_compiling" >&6 | |
2615 | |
2616 echo "$as_me:2616: checking for executable suffix" >&5 | |
2617 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 | |
2618 if { (eval echo "$as_me:2618: \"$ac_link\"") >&5 | |
2619 (eval $ac_link) 2>&5 | |
2620 ac_status=$? | |
2621 echo "$as_me:2621: \$? = $ac_status" >&5 | |
2622 (exit $ac_status); }; then | |
2623 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2624 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2625 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2626 # `rm'. | |
2627 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
2628 case $ac_file in | |
2629 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2630 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2631 export ac_cv_exeext | |
2632 break;; | |
2633 * ) break;; | |
2634 esac | |
2635 done | |
2636 else | |
2637 { { echo "$as_me:2637: error: cannot compute EXEEXT: cannot compile and link" >&5 | |
2638 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} | |
2639 { (exit 1); exit 1; }; } | |
2640 fi | |
2641 | |
2642 rm -f conftest$ac_cv_exeext | |
2643 echo "$as_me:2643: result: $ac_cv_exeext" >&5 | |
2644 echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2645 | |
2646 rm -f conftest.$ac_ext | |
2647 EXEEXT=$ac_cv_exeext | |
2648 ac_exeext=$EXEEXT | |
2649 echo "$as_me:2649: checking for object suffix" >&5 | |
2650 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 | |
2651 if test "${ac_cv_objext+set}" = set; then | |
2652 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2653 else | |
2654 cat >conftest.$ac_ext <<_ACEOF | |
2655 #line 2655 "configure" | |
2656 #include "confdefs.h" | |
2657 | |
2658 int | |
2659 main () | |
2660 { | |
2661 | |
2662 ; | |
2663 return 0; | |
2664 } | |
2665 _ACEOF | |
2666 rm -f conftest.o conftest.obj | |
2667 if { (eval echo "$as_me:2667: \"$ac_compile\"") >&5 | |
2668 (eval $ac_compile) 2>&5 | |
2669 ac_status=$? | |
2670 echo "$as_me:2670: \$? = $ac_status" >&5 | |
2671 (exit $ac_status); }; then | |
2672 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2673 case $ac_file in | |
2674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2675 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2676 break;; | |
2677 esac | |
2678 done | |
2679 else | |
2680 echo "$as_me: failed program was:" >&5 | |
2681 cat conftest.$ac_ext >&5 | |
2682 { { echo "$as_me:2682: error: cannot compute OBJEXT: cannot compile" >&5 | |
2683 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} | |
2684 { (exit 1); exit 1; }; } | |
2685 fi | |
2686 | |
2687 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2688 fi | |
2689 echo "$as_me:2689: result: $ac_cv_objext" >&5 | |
2690 echo "${ECHO_T}$ac_cv_objext" >&6 | |
2691 OBJEXT=$ac_cv_objext | |
2692 ac_objext=$OBJEXT | |
2693 echo "$as_me:2693: checking whether we are using the GNU C compiler" >&5 | |
2694 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2695 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2696 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2697 else | |
2698 cat >conftest.$ac_ext <<_ACEOF | |
2699 #line 2699 "configure" | |
2700 #include "confdefs.h" | |
2701 | |
2702 int | |
2703 main () | |
2704 { | |
2705 #ifndef __GNUC__ | |
2706 choke me | |
2707 #endif | |
2708 | |
2709 ; | |
2710 return 0; | |
2711 } | |
2712 _ACEOF | |
2713 rm -f conftest.$ac_objext | |
2714 if { (eval echo "$as_me:2714: \"$ac_compile\"") >&5 | |
2715 (eval $ac_compile) 2>&5 | |
2716 ac_status=$? | |
2717 echo "$as_me:2717: \$? = $ac_status" >&5 | |
2718 (exit $ac_status); } && | |
2719 { ac_try='test -s conftest.$ac_objext' | |
2720 { (eval echo "$as_me:2720: \"$ac_try\"") >&5 | |
2721 (eval $ac_try) 2>&5 | |
2722 ac_status=$? | |
2723 echo "$as_me:2723: \$? = $ac_status" >&5 | |
2724 (exit $ac_status); }; }; then | |
2725 ac_compiler_gnu=yes | |
2726 else | |
2727 echo "$as_me: failed program was:" >&5 | |
2728 cat conftest.$ac_ext >&5 | |
2729 ac_compiler_gnu=no | |
2730 fi | |
2731 rm -f conftest.$ac_objext conftest.$ac_ext | |
2732 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2733 | |
2734 fi | |
2735 echo "$as_me:2735: result: $ac_cv_c_compiler_gnu" >&5 | |
2736 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2737 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2738 ac_test_CFLAGS=${CFLAGS+set} | |
2739 ac_save_CFLAGS=$CFLAGS | |
2740 CFLAGS="-g" | |
2741 echo "$as_me:2741: checking whether $CC accepts -g" >&5 | |
2742 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2743 if test "${ac_cv_prog_cc_g+set}" = set; then | |
2744 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2745 else | |
2746 cat >conftest.$ac_ext <<_ACEOF | |
2747 #line 2747 "configure" | |
2748 #include "confdefs.h" | |
2749 | |
2750 int | |
2751 main () | |
2752 { | |
2753 | |
2754 ; | |
2755 return 0; | |
2756 } | |
2757 _ACEOF | |
2758 rm -f conftest.$ac_objext | |
2759 if { (eval echo "$as_me:2759: \"$ac_compile\"") >&5 | |
2760 (eval $ac_compile) 2>&5 | |
2761 ac_status=$? | |
2762 echo "$as_me:2762: \$? = $ac_status" >&5 | |
2763 (exit $ac_status); } && | |
2764 { ac_try='test -s conftest.$ac_objext' | |
2765 { (eval echo "$as_me:2765: \"$ac_try\"") >&5 | |
2766 (eval $ac_try) 2>&5 | |
2767 ac_status=$? | |
2768 echo "$as_me:2768: \$? = $ac_status" >&5 | |
2769 (exit $ac_status); }; }; then | |
25897 | 2770 ac_cv_prog_cc_g=yes |
2771 else | |
40056 | 2772 echo "$as_me: failed program was:" >&5 |
2773 cat conftest.$ac_ext >&5 | |
2774 ac_cv_prog_cc_g=no | |
2775 fi | |
2776 rm -f conftest.$ac_objext conftest.$ac_ext | |
2777 fi | |
2778 echo "$as_me:2778: result: $ac_cv_prog_cc_g" >&5 | |
2779 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
27205 | 2780 if test "$ac_test_CFLAGS" = set; then |
40056 | 2781 CFLAGS=$ac_save_CFLAGS |
27205 | 2782 elif test $ac_cv_prog_cc_g = yes; then |
2783 if test "$GCC" = yes; then | |
25897 | 2784 CFLAGS="-g -O2" |
2785 else | |
27205 | 2786 CFLAGS="-g" |
25897 | 2787 fi |
2788 else | |
27205 | 2789 if test "$GCC" = yes; then |
2790 CFLAGS="-O2" | |
2791 else | |
2792 CFLAGS= | |
2793 fi | |
25897 | 2794 fi |
40056 | 2795 # Some people use a C++ compiler to compile C. Since we use `exit', |
2796 # in C++ we need to declare it. In case someone uses the same compiler | |
2797 # for both compiling C and C++ we need to have the C++ compiler decide | |
2798 # the declaration of exit, since it's the most demanding environment. | |
2799 cat >conftest.$ac_ext <<_ACEOF | |
2800 #ifndef __cplusplus | |
2801 choke me | |
2802 #endif | |
2803 _ACEOF | |
2804 rm -f conftest.$ac_objext | |
2805 if { (eval echo "$as_me:2805: \"$ac_compile\"") >&5 | |
2806 (eval $ac_compile) 2>&5 | |
2807 ac_status=$? | |
2808 echo "$as_me:2808: \$? = $ac_status" >&5 | |
2809 (exit $ac_status); } && | |
2810 { ac_try='test -s conftest.$ac_objext' | |
2811 { (eval echo "$as_me:2811: \"$ac_try\"") >&5 | |
2812 (eval $ac_try) 2>&5 | |
2813 ac_status=$? | |
2814 echo "$as_me:2814: \$? = $ac_status" >&5 | |
2815 (exit $ac_status); }; }; then | |
2816 for ac_declaration in \ | |
2817 ''\ | |
2818 '#include <stdlib.h>' \ | |
2819 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2820 'extern "C" void std::exit (int); using std::exit;' \ | |
2821 'extern "C" void exit (int) throw ();' \ | |
2822 'extern "C" void exit (int);' \ | |
2823 'void exit (int);' | |
2824 do | |
2825 cat >conftest.$ac_ext <<_ACEOF | |
2826 #line 2826 "configure" | |
2827 #include "confdefs.h" | |
2828 #include <stdlib.h> | |
2829 $ac_declaration | |
2830 int | |
2831 main () | |
2832 { | |
2833 exit (42); | |
2834 ; | |
2835 return 0; | |
2836 } | |
2837 _ACEOF | |
2838 rm -f conftest.$ac_objext | |
2839 if { (eval echo "$as_me:2839: \"$ac_compile\"") >&5 | |
2840 (eval $ac_compile) 2>&5 | |
2841 ac_status=$? | |
2842 echo "$as_me:2842: \$? = $ac_status" >&5 | |
2843 (exit $ac_status); } && | |
2844 { ac_try='test -s conftest.$ac_objext' | |
2845 { (eval echo "$as_me:2845: \"$ac_try\"") >&5 | |
2846 (eval $ac_try) 2>&5 | |
2847 ac_status=$? | |
2848 echo "$as_me:2848: \$? = $ac_status" >&5 | |
2849 (exit $ac_status); }; }; then | |
2850 : | |
2851 else | |
2852 echo "$as_me: failed program was:" >&5 | |
2853 cat conftest.$ac_ext >&5 | |
2854 continue | |
2855 fi | |
2856 rm -f conftest.$ac_objext conftest.$ac_ext | |
2857 cat >conftest.$ac_ext <<_ACEOF | |
2858 #line 2858 "configure" | |
2859 #include "confdefs.h" | |
2860 $ac_declaration | |
2861 int | |
2862 main () | |
2863 { | |
2864 exit (42); | |
2865 ; | |
2866 return 0; | |
2867 } | |
2868 _ACEOF | |
2869 rm -f conftest.$ac_objext | |
2870 if { (eval echo "$as_me:2870: \"$ac_compile\"") >&5 | |
2871 (eval $ac_compile) 2>&5 | |
2872 ac_status=$? | |
2873 echo "$as_me:2873: \$? = $ac_status" >&5 | |
2874 (exit $ac_status); } && | |
2875 { ac_try='test -s conftest.$ac_objext' | |
2876 { (eval echo "$as_me:2876: \"$ac_try\"") >&5 | |
2877 (eval $ac_try) 2>&5 | |
2878 ac_status=$? | |
2879 echo "$as_me:2879: \$? = $ac_status" >&5 | |
2880 (exit $ac_status); }; }; then | |
2881 break | |
2882 else | |
2883 echo "$as_me: failed program was:" >&5 | |
2884 cat conftest.$ac_ext >&5 | |
2885 fi | |
2886 rm -f conftest.$ac_objext conftest.$ac_ext | |
2887 done | |
2888 rm -f conftest* | |
2889 if test -n "$ac_declaration"; then | |
2890 echo '#ifdef __cplusplus' >>confdefs.h | |
2891 echo $ac_declaration >>confdefs.h | |
2892 echo '#endif' >>confdefs.h | |
2893 fi | |
2894 | |
2895 else | |
2896 echo "$as_me: failed program was:" >&5 | |
2897 cat conftest.$ac_ext >&5 | |
2898 fi | |
2899 rm -f conftest.$ac_objext conftest.$ac_ext | |
2900 ac_ext=c | |
2901 ac_cpp='$CPP $CPPFLAGS' | |
2902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2904 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25897 | 2905 |
2906 # On Suns, sometimes $CPP names a directory. | |
2907 if test -n "$CPP" && test -d "$CPP"; then | |
2908 CPP= | |
2909 fi | |
2910 | |
2911 #### Some systems specify a CPP to use unless we are using GCC. | |
2912 #### Now that we know whether we are using GCC, we can decide whether | |
2913 #### to use that one. | |
2914 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
2915 then | |
2916 CPP="$NON_GNU_CPP" | |
2917 fi | |
2918 | |
2919 #### Some systems specify a CC to use unless we are using GCC. | |
2920 #### Now that we know whether we are using GCC, we can decide whether | |
2921 #### to use that one. | |
2922 if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
2923 test x$cc_specified != xyes | |
2924 then | |
2925 CC="$NON_GNU_CC" | |
2926 fi | |
2927 | |
2928 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
2929 then | |
2930 CC="$CC $GCC_TEST_OPTIONS" | |
2931 fi | |
2932 | |
2933 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
2934 then | |
2935 CC="$CC $NON_GCC_TEST_OPTIONS" | |
2936 fi | |
2937 | |
2938 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x | |
2939 then | |
2940 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
2941 fi | |
2942 | |
2943 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
2944 then | |
2945 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
2946 fi | |
2947 | |
2948 #### Some other nice autoconf tests. If you add a test here which | |
2949 #### should make an entry in src/config.h, don't forget to add an | |
2950 #### #undef clause to src/config.h.in for autoconf to modify. | |
2951 | |
40056 | 2952 echo "$as_me:2952: checking whether ln -s works" >&5 |
2953 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
2954 LN_S=$as_ln_s | |
2955 if test "$LN_S" = "ln -s"; then | |
2956 echo "$as_me:2956: result: yes" >&5 | |
2957 echo "${ECHO_T}yes" >&6 | |
2958 else | |
2959 echo "$as_me:2959: result: no, using $LN_S" >&5 | |
2960 echo "${ECHO_T}no, using $LN_S" >&6 | |
2961 fi | |
2962 | |
2963 ac_ext=c | |
2964 ac_cpp='$CPP $CPPFLAGS' | |
2965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2967 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2968 echo "$as_me:2968: checking how to run the C preprocessor" >&5 | |
2969 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
25897 | 2970 # On Suns, sometimes $CPP names a directory. |
2971 if test -n "$CPP" && test -d "$CPP"; then | |
2972 CPP= | |
2973 fi | |
2974 if test -z "$CPP"; then | |
40056 | 2975 if test "${ac_cv_prog_CPP+set}" = set; then |
2976 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2977 else | |
2978 # Double quotes because CPP needs to be expanded | |
2979 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2980 do | |
2981 ac_preproc_ok=false | |
2982 for ac_c_preproc_warn_flag in '' yes | |
2983 do | |
2984 # Use a header file that comes with gcc, so configuring glibc | |
2985 # with a fresh cross-compiler works. | |
25897 | 2986 # On the NeXT, cc -E runs the code through the compiler's parser, |
40056 | 2987 # not just through cpp. "Syntax error" is here to catch this case. |
2988 cat >conftest.$ac_ext <<_ACEOF | |
2989 #line 2989 "configure" | |
25897 | 2990 #include "confdefs.h" |
2991 #include <assert.h> | |
40056 | 2992 Syntax error |
2993 _ACEOF | |
2994 if { (eval echo "$as_me:2994: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2996 ac_status=$? | |
2997 egrep -v '^ *\+' conftest.er1 >conftest.err | |
2998 rm -f conftest.er1 | |
2999 cat conftest.err >&5 | |
3000 echo "$as_me:3000: \$? = $ac_status" >&5 | |
3001 (exit $ac_status); } >/dev/null; then | |
3002 if test -s conftest.err; then | |
3003 ac_cpp_err=$ac_c_preproc_warn_flag | |
3004 else | |
3005 ac_cpp_err= | |
3006 fi | |
3007 else | |
3008 ac_cpp_err=yes | |
3009 fi | |
3010 if test -z "$ac_cpp_err"; then | |
27205 | 3011 : |
3012 else | |
40056 | 3013 echo "$as_me: failed program was:" >&5 |
27205 | 3014 cat conftest.$ac_ext >&5 |
40056 | 3015 # Broken: fails on valid input. |
3016 continue | |
3017 fi | |
3018 rm -f conftest.err conftest.$ac_ext | |
3019 | |
3020 # OK, works on sane cases. Now check whether non-existent headers | |
3021 # can be detected and how. | |
3022 cat >conftest.$ac_ext <<_ACEOF | |
3023 #line 3023 "configure" | |
3024 #include "confdefs.h" | |
3025 #include <ac_nonexistent.h> | |
3026 _ACEOF | |
3027 if { (eval echo "$as_me:3027: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3029 ac_status=$? | |
3030 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3031 rm -f conftest.er1 | |
3032 cat conftest.err >&5 | |
3033 echo "$as_me:3033: \$? = $ac_status" >&5 | |
3034 (exit $ac_status); } >/dev/null; then | |
3035 if test -s conftest.err; then | |
3036 ac_cpp_err=$ac_c_preproc_warn_flag | |
3037 else | |
3038 ac_cpp_err= | |
3039 fi | |
3040 else | |
3041 ac_cpp_err=yes | |
3042 fi | |
3043 if test -z "$ac_cpp_err"; then | |
3044 # Broken: success on invalid input. | |
3045 continue | |
3046 else | |
3047 echo "$as_me: failed program was:" >&5 | |
3048 cat conftest.$ac_ext >&5 | |
3049 # Passes both tests. | |
3050 ac_preproc_ok=: | |
3051 break | |
3052 fi | |
3053 rm -f conftest.err conftest.$ac_ext | |
3054 | |
3055 done | |
3056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3057 rm -f conftest.err conftest.$ac_ext | |
3058 if $ac_preproc_ok; then | |
3059 break | |
3060 fi | |
3061 | |
3062 done | |
3063 ac_cv_prog_CPP=$CPP | |
3064 | |
3065 fi | |
3066 CPP=$ac_cv_prog_CPP | |
3067 else | |
3068 ac_cv_prog_CPP=$CPP | |
3069 fi | |
3070 echo "$as_me:3070: result: $CPP" >&5 | |
3071 echo "${ECHO_T}$CPP" >&6 | |
3072 ac_preproc_ok=false | |
3073 for ac_c_preproc_warn_flag in '' yes | |
3074 do | |
3075 # Use a header file that comes with gcc, so configuring glibc | |
3076 # with a fresh cross-compiler works. | |
3077 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3078 # not just through cpp. "Syntax error" is here to catch this case. | |
3079 cat >conftest.$ac_ext <<_ACEOF | |
3080 #line 3080 "configure" | |
27205 | 3081 #include "confdefs.h" |
3082 #include <assert.h> | |
40056 | 3083 Syntax error |
3084 _ACEOF | |
3085 if { (eval echo "$as_me:3085: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3087 ac_status=$? | |
3088 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3089 rm -f conftest.er1 | |
3090 cat conftest.err >&5 | |
3091 echo "$as_me:3091: \$? = $ac_status" >&5 | |
3092 (exit $ac_status); } >/dev/null; then | |
3093 if test -s conftest.err; then | |
3094 ac_cpp_err=$ac_c_preproc_warn_flag | |
3095 else | |
3096 ac_cpp_err= | |
3097 fi | |
3098 else | |
3099 ac_cpp_err=yes | |
3100 fi | |
3101 if test -z "$ac_cpp_err"; then | |
25897 | 3102 : |
3103 else | |
40056 | 3104 echo "$as_me: failed program was:" >&5 |
25897 | 3105 cat conftest.$ac_ext >&5 |
40056 | 3106 # Broken: fails on valid input. |
3107 continue | |
3108 fi | |
3109 rm -f conftest.err conftest.$ac_ext | |
3110 | |
3111 # OK, works on sane cases. Now check whether non-existent headers | |
3112 # can be detected and how. | |
3113 cat >conftest.$ac_ext <<_ACEOF | |
3114 #line 3114 "configure" | |
3115 #include "confdefs.h" | |
3116 #include <ac_nonexistent.h> | |
3117 _ACEOF | |
3118 if { (eval echo "$as_me:3118: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3120 ac_status=$? | |
3121 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3122 rm -f conftest.er1 | |
3123 cat conftest.err >&5 | |
3124 echo "$as_me:3124: \$? = $ac_status" >&5 | |
3125 (exit $ac_status); } >/dev/null; then | |
3126 if test -s conftest.err; then | |
3127 ac_cpp_err=$ac_c_preproc_warn_flag | |
3128 else | |
3129 ac_cpp_err= | |
3130 fi | |
3131 else | |
3132 ac_cpp_err=yes | |
3133 fi | |
3134 if test -z "$ac_cpp_err"; then | |
3135 # Broken: success on invalid input. | |
3136 continue | |
3137 else | |
3138 echo "$as_me: failed program was:" >&5 | |
3139 cat conftest.$ac_ext >&5 | |
3140 # Passes both tests. | |
3141 ac_preproc_ok=: | |
3142 break | |
3143 fi | |
3144 rm -f conftest.err conftest.$ac_ext | |
3145 | |
3146 done | |
3147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3148 rm -f conftest.err conftest.$ac_ext | |
3149 if $ac_preproc_ok; then | |
3150 : | |
3151 else | |
3152 { { echo "$as_me:3152: error: C preprocessor \"$CPP\" fails sanity check" >&5 | |
3153 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | |
3154 { (exit 1); exit 1; }; } | |
3155 fi | |
3156 | |
3157 ac_ext=c | |
3158 ac_cpp='$CPP $CPPFLAGS' | |
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25897 | 3162 |
3163 # Find a good install program. We prefer a C program (faster), | |
3164 # so one script is as good as another. But avoid the broken or | |
3165 # incompatible versions: | |
3166 # SysV /etc/install, /usr/sbin/install | |
3167 # SunOS /usr/etc/install | |
3168 # IRIX /sbin/install | |
3169 # AIX /bin/install | |
40056 | 3170 # AmigaOS /C/install, which installs bootblocks on floppy discs |
27205 | 3171 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
25897 | 3172 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3173 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3174 # ./install, which can be erroneously created by make from ./install.sh. | |
40056 | 3175 echo "$as_me:3175: checking for a BSD compatible install" >&5 |
3176 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 | |
25897 | 3177 if test -z "$INSTALL"; then |
40056 | 3178 if test "${ac_cv_path_install+set}" = set; then |
3179 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3180 else | |
3181 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
25897 | 3182 for ac_dir in $PATH; do |
40056 | 3183 IFS=$ac_save_IFS |
25897 | 3184 # Account for people who put trailing slashes in PATH elements. |
40056 | 3185 case $ac_dir/ in |
3186 / | ./ | .// | /cC/* \ | |
3187 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
3188 | /usr/ucb/* ) ;; | |
25897 | 3189 *) |
3190 # OSF1 and SCO ODT 3.0 have their own names for install. | |
27205 | 3191 # Don't use installbsd from OSF since it installs stuff as root |
3192 # by default. | |
3193 for ac_prog in ginstall scoinst install; do | |
40056 | 3194 if $as_executable_p "$ac_dir/$ac_prog"; then |
25897 | 3195 if test $ac_prog = install && |
40056 | 3196 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
25897 | 3197 # AIX install. It has an incompatible calling convention. |
3198 : | |
40056 | 3199 elif test $ac_prog = install && |
3200 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
3201 # program-specific install script used by HP pwplus--don't use. | |
3202 : | |
25897 | 3203 else |
3204 ac_cv_path_install="$ac_dir/$ac_prog -c" | |
3205 break 2 | |
3206 fi | |
3207 fi | |
3208 done | |
3209 ;; | |
3210 esac | |
3211 done | |
3212 | |
3213 fi | |
3214 if test "${ac_cv_path_install+set}" = set; then | |
40056 | 3215 INSTALL=$ac_cv_path_install |
25897 | 3216 else |
3217 # As a last resort, use the slow shell script. We don't cache a | |
3218 # path for INSTALL within a source directory, because that will | |
3219 # break other packages using the cache if that directory is | |
3220 # removed, or if the path is relative. | |
40056 | 3221 INSTALL=$ac_install_sh |
3222 fi | |
3223 fi | |
3224 echo "$as_me:3224: result: $INSTALL" >&5 | |
3225 echo "${ECHO_T}$INSTALL" >&6 | |
25897 | 3226 |
3227 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3228 # It thinks the first close brace ends the variable substitution. | |
3229 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3230 | |
40056 | 3231 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
27205 | 3232 |
25897 | 3233 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3234 | |
3235 for ac_prog in 'bison -y' byacc | |
3236 do | |
40056 | 3237 # Extract the first word of "$ac_prog", so it can be a program name with args. |
25897 | 3238 set dummy $ac_prog; ac_word=$2 |
40056 | 3239 echo "$as_me:3239: checking for $ac_word" >&5 |
3240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3241 if test "${ac_cv_prog_YACC+set}" = set; then | |
3242 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 3243 else |
3244 if test -n "$YACC"; then | |
3245 ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
3246 else | |
40056 | 3247 ac_save_IFS=$IFS; IFS=$ac_path_separator |
3248 ac_dummy="$PATH" | |
3249 for ac_dir in $ac_dummy; do | |
3250 IFS=$ac_save_IFS | |
3251 test -z "$ac_dir" && ac_dir=. | |
3252 $as_executable_p "$ac_dir/$ac_word" || continue | |
3253 ac_cv_prog_YACC="$ac_prog" | |
3254 echo "$as_me:3254: found $ac_dir/$ac_word" >&5 | |
3255 break | |
3256 done | |
3257 | |
3258 fi | |
3259 fi | |
3260 YACC=$ac_cv_prog_YACC | |
25897 | 3261 if test -n "$YACC"; then |
40056 | 3262 echo "$as_me:3262: result: $YACC" >&5 |
3263 echo "${ECHO_T}$YACC" >&6 | |
3264 else | |
3265 echo "$as_me:3265: result: no" >&5 | |
3266 echo "${ECHO_T}no" >&6 | |
3267 fi | |
3268 | |
3269 test -n "$YACC" && break | |
25897 | 3270 done |
3271 test -n "$YACC" || YACC="yacc" | |
3272 | |
28060 | 3273 if test "x$RANLIB" = x; then |
40056 | 3274 if test -n "$ac_tool_prefix"; then |
3275 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3276 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3277 echo "$as_me:3277: checking for $ac_word" >&5 | |
3278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3279 if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3280 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28060 | 3281 else |
3282 if test -n "$RANLIB"; then | |
3283 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3284 else | |
40056 | 3285 ac_save_IFS=$IFS; IFS=$ac_path_separator |
3286 ac_dummy="$PATH" | |
3287 for ac_dir in $ac_dummy; do | |
3288 IFS=$ac_save_IFS | |
3289 test -z "$ac_dir" && ac_dir=. | |
3290 $as_executable_p "$ac_dir/$ac_word" || continue | |
3291 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3292 echo "$as_me:3292: found $ac_dir/$ac_word" >&5 | |
3293 break | |
3294 done | |
3295 | |
3296 fi | |
3297 fi | |
3298 RANLIB=$ac_cv_prog_RANLIB | |
28060 | 3299 if test -n "$RANLIB"; then |
40056 | 3300 echo "$as_me:3300: result: $RANLIB" >&5 |
3301 echo "${ECHO_T}$RANLIB" >&6 | |
3302 else | |
3303 echo "$as_me:3303: result: no" >&5 | |
3304 echo "${ECHO_T}no" >&6 | |
3305 fi | |
3306 | |
3307 fi | |
3308 if test -z "$ac_cv_prog_RANLIB"; then | |
3309 ac_ct_RANLIB=$RANLIB | |
3310 # Extract the first word of "ranlib", so it can be a program name with args. | |
3311 set dummy ranlib; ac_word=$2 | |
3312 echo "$as_me:3312: checking for $ac_word" >&5 | |
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3314 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3315 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3316 else | |
3317 if test -n "$ac_ct_RANLIB"; then | |
3318 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3319 else | |
3320 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
3321 ac_dummy="$PATH" | |
3322 for ac_dir in $ac_dummy; do | |
3323 IFS=$ac_save_IFS | |
3324 test -z "$ac_dir" && ac_dir=. | |
3325 $as_executable_p "$ac_dir/$ac_word" || continue | |
3326 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3327 echo "$as_me:3327: found $ac_dir/$ac_word" >&5 | |
3328 break | |
3329 done | |
3330 | |
3331 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3332 fi | |
3333 fi | |
3334 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3335 if test -n "$ac_ct_RANLIB"; then | |
3336 echo "$as_me:3336: result: $ac_ct_RANLIB" >&5 | |
3337 echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3338 else | |
3339 echo "$as_me:3339: result: no" >&5 | |
3340 echo "${ECHO_T}no" >&6 | |
3341 fi | |
3342 | |
3343 RANLIB=$ac_ct_RANLIB | |
3344 else | |
3345 RANLIB="$ac_cv_prog_RANLIB" | |
3346 fi | |
3347 | |
3348 fi | |
3349 | |
3350 echo "$as_me:3350: checking for AIX" >&5 | |
3351 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 | |
3352 cat >conftest.$ac_ext <<_ACEOF | |
3353 #line 3353 "configure" | |
25897 | 3354 #include "confdefs.h" |
3355 #ifdef _AIX | |
3356 yes | |
3357 #endif | |
3358 | |
40056 | 3359 _ACEOF |
25897 | 3360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3361 egrep "yes" >/dev/null 2>&1; then | |
40056 | 3362 echo "$as_me:3362: result: yes" >&5 |
3363 echo "${ECHO_T}yes" >&6 | |
3364 cat >>confdefs.h <<\EOF | |
25897 | 3365 #define _ALL_SOURCE 1 |
3366 EOF | |
3367 | |
3368 else | |
40056 | 3369 echo "$as_me:3369: result: no" >&5 |
3370 echo "${ECHO_T}no" >&6 | |
25897 | 3371 fi |
3372 rm -f conftest* | |
3373 | |
30311 | 3374 #### Extract some information from the operating system and machine files. |
3375 | |
40056 | 3376 { echo "$as_me:3376: checking the machine- and system-dependent files to find out |
30311 | 3377 - which libraries the lib-src programs will want, and |
40056 | 3378 - whether the GNU malloc routines are usable..." >&5 |
3379 echo "$as_me: checking the machine- and system-dependent files to find out | |
30311 | 3380 - which libraries the lib-src programs will want, and |
40056 | 3381 - whether the GNU malloc routines are usable..." >&6;} |
30311 | 3382 |
3383 ### First figure out CFLAGS (which we use for running the compiler here) | |
3384 ### and REAL_CFLAGS (which we use for real compilation). | |
3385 ### The two are the same except on a few systems, where they are made | |
3386 ### different to work around various lossages. For example, | |
3387 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
3388 ### as implying static linking. | |
3389 | |
3390 ### If the CFLAGS env var is specified, we use that value | |
3391 ### instead of the default. | |
3392 | |
3393 ### It's not important that this name contain the PID; you can't run | |
3394 ### two configures in the same directory and have anything work | |
3395 ### anyway. | |
3396 tempcname="conftest.c" | |
3397 | |
3398 echo ' | |
3399 #include "'${srcdir}'/src/'${opsysfile}'" | |
3400 #include "'${srcdir}'/src/'${machfile}'" | |
3401 #ifndef LIBS_MACHINE | |
3402 #define LIBS_MACHINE | |
3403 #endif | |
3404 #ifndef LIBS_SYSTEM | |
3405 #define LIBS_SYSTEM | |
3406 #endif | |
3407 #ifndef C_SWITCH_SYSTEM | |
3408 #define C_SWITCH_SYSTEM | |
3409 #endif | |
3410 #ifndef C_SWITCH_MACHINE | |
3411 #define C_SWITCH_MACHINE | |
3412 #endif | |
3413 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
3414 configure___ c_switch_system=C_SWITCH_SYSTEM | |
3415 configure___ c_switch_machine=C_SWITCH_MACHINE | |
3416 | |
3417 #ifndef LIB_X11_LIB | |
3418 #define LIB_X11_LIB -lX11 | |
3419 #endif | |
3420 | |
3421 #ifndef LIBX11_MACHINE | |
3422 #define LIBX11_MACHINE | |
3423 #endif | |
3424 | |
3425 #ifndef LIBX11_SYSTEM | |
3426 #define LIBX11_SYSTEM | |
3427 #endif | |
3428 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
3429 | |
3430 #ifdef UNEXEC | |
3431 configure___ unexec=UNEXEC | |
3432 #else | |
3433 configure___ unexec=unexec.o | |
3434 #endif | |
3435 | |
3436 #ifdef SYSTEM_MALLOC | |
3437 configure___ system_malloc=yes | |
3438 #else | |
3439 configure___ system_malloc=no | |
3440 #endif | |
3441 | |
31607 | 3442 #ifdef USE_MMAP_FOR_BUFFERS |
3443 configure___ use_mmap_for_buffers=yes | |
31417 | 3444 #else |
31607 | 3445 configure___ use_mmap_for_buffers=no |
31417 | 3446 #endif |
3447 | |
30311 | 3448 #ifndef C_DEBUG_SWITCH |
3449 #define C_DEBUG_SWITCH -g | |
3450 #endif | |
3451 | |
3452 #ifndef C_OPTIMIZE_SWITCH | |
3453 #ifdef __GNUC__ | |
3454 #define C_OPTIMIZE_SWITCH -O2 | |
3455 #else | |
3456 #define C_OPTIMIZE_SWITCH -O | |
3457 #endif | |
3458 #endif | |
3459 | |
3460 #ifndef LD_SWITCH_MACHINE | |
3461 #define LD_SWITCH_MACHINE | |
3462 #endif | |
3463 | |
3464 #ifndef LD_SWITCH_SYSTEM | |
3465 #define LD_SWITCH_SYSTEM | |
3466 #endif | |
3467 | |
3468 #ifndef LD_SWITCH_X_SITE_AUX | |
3469 #define LD_SWITCH_X_SITE_AUX | |
40056 | 3470 #endif |
30311 | 3471 |
3472 configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
3473 configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
3474 | |
3475 #ifdef THIS_IS_CONFIGURE | |
3476 | |
3477 /* Get the CFLAGS for tests in configure. */ | |
3478 #ifdef __GNUC__ | |
3479 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3480 #else | |
3481 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3482 #endif | |
3483 | |
3484 #else /* not THIS_IS_CONFIGURE */ | |
3485 | |
3486 /* Get the CFLAGS for real compilation. */ | |
3487 #ifdef __GNUC__ | |
3488 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3489 #else | |
3490 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3491 #endif | |
3492 | |
3493 #endif /* not THIS_IS_CONFIGURE */ | |
3494 ' > ${tempcname} | |
3495 | |
3496 # The value of CPP is a quoted variable reference, so we need to do this | |
3497 # to get its actual value... | |
3498 CPP=`eval "echo $CPP"` | |
3499 eval `${CPP} -Isrc ${tempcname} \ | |
3500 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3501 if test "x$SPECIFIED_CFLAGS" = x; then | |
3502 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
3503 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3504 else | |
3505 REAL_CFLAGS="$CFLAGS" | |
3506 fi | |
3507 rm ${tempcname} | |
3508 | |
3509 ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
3510 | |
3511 ### Make sure subsequent tests use flags consistent with the build flags. | |
3512 | |
3513 if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
3514 CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
3515 else | |
3516 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
3517 fi | |
3518 | |
40056 | 3519 # Check whether --enable-largefile or --disable-largefile was given. |
30576 | 3520 if test "${enable_largefile+set}" = set; then |
3521 enableval="$enable_largefile" | |
40056 | 3522 |
3523 fi; | |
3524 if test "$enable_largefile" != no; then | |
3525 | |
3526 echo "$as_me:3526: checking for special C compiler options needed for large files" >&5 | |
3527 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | |
3528 if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
3529 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30576 | 3530 else |
3531 ac_cv_sys_largefile_CC=no | |
40056 | 3532 if test "$GCC" != yes; then |
3533 ac_save_CC=$CC | |
3534 while :; do | |
3535 # IRIX 6.2 and later do not support large files by default, | |
3536 # so use the C compiler's -n32 option if that helps. | |
3537 cat >conftest.$ac_ext <<_ACEOF | |
3538 #line 3538 "configure" | |
30576 | 3539 #include "confdefs.h" |
3540 #include <sys/types.h> | |
40056 | 3541 /* Check that off_t can represent 2**63 - 1 correctly. |
3542 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3543 since some C++ compilers masquerading as C compilers | |
3544 incorrectly reject 9223372036854775807. */ | |
3545 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3546 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3547 && LARGE_OFF_T % 2147483647 == 1) | |
3548 ? 1 : -1]; | |
3549 int | |
3550 main () | |
3551 { | |
3552 | |
3553 ; | |
3554 return 0; | |
3555 } | |
3556 _ACEOF | |
3557 rm -f conftest.$ac_objext | |
3558 if { (eval echo "$as_me:3558: \"$ac_compile\"") >&5 | |
3559 (eval $ac_compile) 2>&5 | |
3560 ac_status=$? | |
3561 echo "$as_me:3561: \$? = $ac_status" >&5 | |
3562 (exit $ac_status); } && | |
3563 { ac_try='test -s conftest.$ac_objext' | |
3564 { (eval echo "$as_me:3564: \"$ac_try\"") >&5 | |
3565 (eval $ac_try) 2>&5 | |
3566 ac_status=$? | |
3567 echo "$as_me:3567: \$? = $ac_status" >&5 | |
3568 (exit $ac_status); }; }; then | |
3569 break | |
3570 else | |
3571 echo "$as_me: failed program was:" >&5 | |
3572 cat conftest.$ac_ext >&5 | |
3573 fi | |
3574 rm -f conftest.$ac_objext | |
3575 CC="$CC -n32" | |
3576 rm -f conftest.$ac_objext | |
3577 if { (eval echo "$as_me:3577: \"$ac_compile\"") >&5 | |
3578 (eval $ac_compile) 2>&5 | |
3579 ac_status=$? | |
3580 echo "$as_me:3580: \$? = $ac_status" >&5 | |
3581 (exit $ac_status); } && | |
3582 { ac_try='test -s conftest.$ac_objext' | |
3583 { (eval echo "$as_me:3583: \"$ac_try\"") >&5 | |
3584 (eval $ac_try) 2>&5 | |
3585 ac_status=$? | |
3586 echo "$as_me:3586: \$? = $ac_status" >&5 | |
3587 (exit $ac_status); }; }; then | |
3588 ac_cv_sys_largefile_CC=' -n32'; break | |
3589 else | |
3590 echo "$as_me: failed program was:" >&5 | |
3591 cat conftest.$ac_ext >&5 | |
3592 fi | |
3593 rm -f conftest.$ac_objext | |
3594 break | |
3595 done | |
3596 CC=$ac_save_CC | |
3597 rm -f conftest.$ac_ext | |
3598 fi | |
3599 fi | |
3600 echo "$as_me:3600: result: $ac_cv_sys_largefile_CC" >&5 | |
3601 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | |
3602 if test "$ac_cv_sys_largefile_CC" != no; then | |
3603 CC=$CC$ac_cv_sys_largefile_CC | |
3604 fi | |
3605 | |
3606 echo "$as_me:3606: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
3607 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
3608 if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
3609 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3610 else | |
3611 while :; do | |
30576 | 3612 ac_cv_sys_file_offset_bits=no |
40056 | 3613 cat >conftest.$ac_ext <<_ACEOF |
3614 #line 3614 "configure" | |
30576 | 3615 #include "confdefs.h" |
3616 #include <sys/types.h> | |
40056 | 3617 /* Check that off_t can represent 2**63 - 1 correctly. |
3618 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3619 since some C++ compilers masquerading as C compilers | |
3620 incorrectly reject 9223372036854775807. */ | |
3621 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3622 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3623 && LARGE_OFF_T % 2147483647 == 1) | |
3624 ? 1 : -1]; | |
3625 int | |
3626 main () | |
3627 { | |
3628 | |
3629 ; | |
3630 return 0; | |
3631 } | |
3632 _ACEOF | |
3633 rm -f conftest.$ac_objext | |
3634 if { (eval echo "$as_me:3634: \"$ac_compile\"") >&5 | |
3635 (eval $ac_compile) 2>&5 | |
3636 ac_status=$? | |
3637 echo "$as_me:3637: \$? = $ac_status" >&5 | |
3638 (exit $ac_status); } && | |
3639 { ac_try='test -s conftest.$ac_objext' | |
3640 { (eval echo "$as_me:3640: \"$ac_try\"") >&5 | |
3641 (eval $ac_try) 2>&5 | |
3642 ac_status=$? | |
3643 echo "$as_me:3643: \$? = $ac_status" >&5 | |
3644 (exit $ac_status); }; }; then | |
3645 break | |
3646 else | |
3647 echo "$as_me: failed program was:" >&5 | |
3648 cat conftest.$ac_ext >&5 | |
3649 fi | |
3650 rm -f conftest.$ac_objext conftest.$ac_ext | |
3651 cat >conftest.$ac_ext <<_ACEOF | |
3652 #line 3652 "configure" | |
30576 | 3653 #include "confdefs.h" |
3654 #define _FILE_OFFSET_BITS 64 | |
3655 #include <sys/types.h> | |
40056 | 3656 /* Check that off_t can represent 2**63 - 1 correctly. |
3657 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3658 since some C++ compilers masquerading as C compilers | |
3659 incorrectly reject 9223372036854775807. */ | |
3660 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3661 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3662 && LARGE_OFF_T % 2147483647 == 1) | |
3663 ? 1 : -1]; | |
3664 int | |
3665 main () | |
3666 { | |
3667 | |
3668 ; | |
3669 return 0; | |
3670 } | |
3671 _ACEOF | |
3672 rm -f conftest.$ac_objext | |
3673 if { (eval echo "$as_me:3673: \"$ac_compile\"") >&5 | |
3674 (eval $ac_compile) 2>&5 | |
3675 ac_status=$? | |
3676 echo "$as_me:3676: \$? = $ac_status" >&5 | |
3677 (exit $ac_status); } && | |
3678 { ac_try='test -s conftest.$ac_objext' | |
3679 { (eval echo "$as_me:3679: \"$ac_try\"") >&5 | |
3680 (eval $ac_try) 2>&5 | |
3681 ac_status=$? | |
3682 echo "$as_me:3682: \$? = $ac_status" >&5 | |
3683 (exit $ac_status); }; }; then | |
3684 ac_cv_sys_file_offset_bits=64; break | |
3685 else | |
3686 echo "$as_me: failed program was:" >&5 | |
3687 cat conftest.$ac_ext >&5 | |
3688 fi | |
3689 rm -f conftest.$ac_objext conftest.$ac_ext | |
3690 break | |
3691 done | |
3692 fi | |
3693 echo "$as_me:3693: result: $ac_cv_sys_file_offset_bits" >&5 | |
3694 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
3695 if test "$ac_cv_sys_file_offset_bits" != no; then | |
3696 | |
3697 cat >>confdefs.h <<EOF | |
3698 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
3699 EOF | |
3700 | |
30576 | 3701 fi |
3702 rm -f conftest* | |
40056 | 3703 echo "$as_me:3703: checking for _LARGE_FILES value needed for large files" >&5 |
3704 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
3705 if test "${ac_cv_sys_large_files+set}" = set; then | |
3706 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3707 else | |
3708 while :; do | |
34431 | 3709 ac_cv_sys_large_files=no |
40056 | 3710 cat >conftest.$ac_ext <<_ACEOF |
3711 #line 3711 "configure" | |
3712 #include "confdefs.h" | |
3713 #include <sys/types.h> | |
3714 /* Check that off_t can represent 2**63 - 1 correctly. | |
3715 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3716 since some C++ compilers masquerading as C compilers | |
3717 incorrectly reject 9223372036854775807. */ | |
3718 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3719 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3720 && LARGE_OFF_T % 2147483647 == 1) | |
3721 ? 1 : -1]; | |
3722 int | |
3723 main () | |
3724 { | |
3725 | |
3726 ; | |
3727 return 0; | |
3728 } | |
3729 _ACEOF | |
3730 rm -f conftest.$ac_objext | |
3731 if { (eval echo "$as_me:3731: \"$ac_compile\"") >&5 | |
3732 (eval $ac_compile) 2>&5 | |
3733 ac_status=$? | |
3734 echo "$as_me:3734: \$? = $ac_status" >&5 | |
3735 (exit $ac_status); } && | |
3736 { ac_try='test -s conftest.$ac_objext' | |
3737 { (eval echo "$as_me:3737: \"$ac_try\"") >&5 | |
3738 (eval $ac_try) 2>&5 | |
3739 ac_status=$? | |
3740 echo "$as_me:3740: \$? = $ac_status" >&5 | |
3741 (exit $ac_status); }; }; then | |
3742 break | |
3743 else | |
3744 echo "$as_me: failed program was:" >&5 | |
3745 cat conftest.$ac_ext >&5 | |
3746 fi | |
3747 rm -f conftest.$ac_objext conftest.$ac_ext | |
3748 cat >conftest.$ac_ext <<_ACEOF | |
3749 #line 3749 "configure" | |
30576 | 3750 #include "confdefs.h" |
3751 #define _LARGE_FILES 1 | |
40056 | 3752 #include <sys/types.h> |
3753 /* Check that off_t can represent 2**63 - 1 correctly. | |
3754 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3755 since some C++ compilers masquerading as C compilers | |
3756 incorrectly reject 9223372036854775807. */ | |
3757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3759 && LARGE_OFF_T % 2147483647 == 1) | |
3760 ? 1 : -1]; | |
3761 int | |
3762 main () | |
3763 { | |
3764 | |
3765 ; | |
3766 return 0; | |
3767 } | |
3768 _ACEOF | |
3769 rm -f conftest.$ac_objext | |
3770 if { (eval echo "$as_me:3770: \"$ac_compile\"") >&5 | |
3771 (eval $ac_compile) 2>&5 | |
3772 ac_status=$? | |
3773 echo "$as_me:3773: \$? = $ac_status" >&5 | |
3774 (exit $ac_status); } && | |
3775 { ac_try='test -s conftest.$ac_objext' | |
3776 { (eval echo "$as_me:3776: \"$ac_try\"") >&5 | |
3777 (eval $ac_try) 2>&5 | |
3778 ac_status=$? | |
3779 echo "$as_me:3779: \$? = $ac_status" >&5 | |
3780 (exit $ac_status); }; }; then | |
3781 ac_cv_sys_large_files=1; break | |
3782 else | |
3783 echo "$as_me: failed program was:" >&5 | |
3784 cat conftest.$ac_ext >&5 | |
3785 fi | |
3786 rm -f conftest.$ac_objext conftest.$ac_ext | |
3787 break | |
3788 done | |
3789 fi | |
3790 echo "$as_me:3790: result: $ac_cv_sys_large_files" >&5 | |
3791 echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3792 if test "$ac_cv_sys_large_files" != no; then | |
3793 | |
3794 cat >>confdefs.h <<EOF | |
3795 #define _LARGE_FILES $ac_cv_sys_large_files | |
3796 EOF | |
3797 | |
30576 | 3798 fi |
3799 rm -f conftest* | |
3800 fi | |
3801 | |
25897 | 3802 # Sound support for GNU/Linux and the free BSDs. |
40056 | 3803 |
3804 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
25897 | 3805 do |
40056 | 3806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3807 echo "$as_me:3807: checking for $ac_header" >&5 | |
3808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3809 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3810 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3811 else | |
3812 cat >conftest.$ac_ext <<_ACEOF | |
3813 #line 3813 "configure" | |
3814 #include "confdefs.h" | |
3815 #include <$ac_header> | |
3816 _ACEOF | |
3817 if { (eval echo "$as_me:3817: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3819 ac_status=$? | |
3820 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3821 rm -f conftest.er1 | |
3822 cat conftest.err >&5 | |
3823 echo "$as_me:3823: \$? = $ac_status" >&5 | |
3824 (exit $ac_status); } >/dev/null; then | |
3825 if test -s conftest.err; then | |
3826 ac_cpp_err=$ac_c_preproc_warn_flag | |
3827 else | |
3828 ac_cpp_err= | |
3829 fi | |
3830 else | |
3831 ac_cpp_err=yes | |
3832 fi | |
3833 if test -z "$ac_cpp_err"; then | |
3834 eval "$as_ac_Header=yes" | |
3835 else | |
3836 echo "$as_me: failed program was:" >&5 | |
25897 | 3837 cat conftest.$ac_ext >&5 |
40056 | 3838 eval "$as_ac_Header=no" |
3839 fi | |
3840 rm -f conftest.err conftest.$ac_ext | |
3841 fi | |
3842 echo "$as_me:3842: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3844 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3845 cat >>confdefs.h <<EOF | |
3846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3847 EOF | |
3848 | |
25897 | 3849 fi |
3850 done | |
3851 | |
30078
58ce7aad3fff
* configure.in: Check for <soundcard.h>. Look for ossaudio library, and set
Ken Raeburn <raeburn@raeburn.org>
parents:
30069
diff
changeset
|
3852 # Emulation library used on NetBSD. |
40056 | 3853 echo "$as_me:3853: checking for _oss_ioctl in -lossaudio" >&5 |
3854 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 | |
3855 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | |
3856 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3857 else | |
3858 ac_check_lib_save_LIBS=$LIBS | |
30078
58ce7aad3fff
* configure.in: Check for <soundcard.h>. Look for ossaudio library, and set
Ken Raeburn <raeburn@raeburn.org>
parents:
30069
diff
changeset
|
3859 LIBS="-lossaudio $LIBS" |
40056 | 3860 cat >conftest.$ac_ext <<_ACEOF |
3861 #line 3861 "configure" | |
3862 #include "confdefs.h" | |
3863 | |
30078
58ce7aad3fff
* configure.in: Check for <soundcard.h>. Look for ossaudio library, and set
Ken Raeburn <raeburn@raeburn.org>
parents:
30069
diff
changeset
|
3864 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 3865 #ifdef __cplusplus |
3866 extern "C" | |
3867 #endif | |
30078
58ce7aad3fff
* configure.in: Check for <soundcard.h>. Look for ossaudio library, and set
Ken Raeburn <raeburn@raeburn.org>
parents:
30069
diff
changeset
|
3868 /* We use char because int might match the return type of a gcc2 |
40056 | 3869 builtin and then its argument prototype would still apply. */ |
3870 char _oss_ioctl (); | |
3871 int | |
3872 main () | |
3873 { | |
3874 _oss_ioctl (); | |
3875 ; | |
3876 return 0; | |
3877 } | |
3878 _ACEOF | |
3879 rm -f conftest.$ac_objext conftest$ac_exeext | |
3880 if { (eval echo "$as_me:3880: \"$ac_link\"") >&5 | |
3881 (eval $ac_link) 2>&5 | |
3882 ac_status=$? | |
3883 echo "$as_me:3883: \$? = $ac_status" >&5 | |
3884 (exit $ac_status); } && | |
3885 { ac_try='test -s conftest$ac_exeext' | |
3886 { (eval echo "$as_me:3886: \"$ac_try\"") >&5 | |
3887 (eval $ac_try) 2>&5 | |
3888 ac_status=$? | |
3889 echo "$as_me:3889: \$? = $ac_status" >&5 | |
3890 (exit $ac_status); }; }; then | |
3891 ac_cv_lib_ossaudio__oss_ioctl=yes | |
3892 else | |
3893 echo "$as_me: failed program was:" >&5 | |
3894 cat conftest.$ac_ext >&5 | |
3895 ac_cv_lib_ossaudio__oss_ioctl=no | |
3896 fi | |
3897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3898 LIBS=$ac_check_lib_save_LIBS | |
3899 fi | |
3900 echo "$as_me:3900: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 | |
3901 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 | |
3902 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | |
30078
58ce7aad3fff
* configure.in: Check for <soundcard.h>. Look for ossaudio library, and set
Ken Raeburn <raeburn@raeburn.org>
parents:
30069
diff
changeset
|
3903 LIBSOUND=-lossaudio |
58ce7aad3fff
* configure.in: Check for <soundcard.h>. Look for ossaudio library, and set
Ken Raeburn <raeburn@raeburn.org>
parents:
30069
diff
changeset
|
3904 else |
40056 | 3905 LIBSOUND= |
3906 fi | |
3907 | |
3908 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3909 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
31229 | 3910 termcap.h stdio_ext.h fcntl.h term.h strings.h |
25897 | 3911 do |
40056 | 3912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3913 echo "$as_me:3913: checking for $ac_header" >&5 | |
3914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3915 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3916 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3917 else | |
3918 cat >conftest.$ac_ext <<_ACEOF | |
3919 #line 3919 "configure" | |
3920 #include "confdefs.h" | |
3921 #include <$ac_header> | |
3922 _ACEOF | |
3923 if { (eval echo "$as_me:3923: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3925 ac_status=$? | |
3926 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3927 rm -f conftest.er1 | |
3928 cat conftest.err >&5 | |
3929 echo "$as_me:3929: \$? = $ac_status" >&5 | |
3930 (exit $ac_status); } >/dev/null; then | |
3931 if test -s conftest.err; then | |
3932 ac_cpp_err=$ac_c_preproc_warn_flag | |
3933 else | |
3934 ac_cpp_err= | |
3935 fi | |
3936 else | |
3937 ac_cpp_err=yes | |
3938 fi | |
3939 if test -z "$ac_cpp_err"; then | |
3940 eval "$as_ac_Header=yes" | |
3941 else | |
3942 echo "$as_me: failed program was:" >&5 | |
25897 | 3943 cat conftest.$ac_ext >&5 |
40056 | 3944 eval "$as_ac_Header=no" |
3945 fi | |
3946 rm -f conftest.err conftest.$ac_ext | |
3947 fi | |
3948 echo "$as_me:3948: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3950 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3951 cat >>confdefs.h <<EOF | |
3952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3953 EOF | |
3954 | |
25897 | 3955 fi |
3956 done | |
3957 | |
40056 | 3958 echo "$as_me:3958: checking for ANSI C header files" >&5 |
3959 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3960 if test "${ac_cv_header_stdc+set}" = set; then | |
3961 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3962 else | |
3963 cat >conftest.$ac_ext <<_ACEOF | |
3964 #line 3964 "configure" | |
25897 | 3965 #include "confdefs.h" |
3966 #include <stdlib.h> | |
3967 #include <stdarg.h> | |
3968 #include <string.h> | |
3969 #include <float.h> | |
40056 | 3970 |
3971 _ACEOF | |
3972 if { (eval echo "$as_me:3972: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3974 ac_status=$? | |
3975 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3976 rm -f conftest.er1 | |
3977 cat conftest.err >&5 | |
3978 echo "$as_me:3978: \$? = $ac_status" >&5 | |
3979 (exit $ac_status); } >/dev/null; then | |
3980 if test -s conftest.err; then | |
3981 ac_cpp_err=$ac_c_preproc_warn_flag | |
3982 else | |
3983 ac_cpp_err= | |
3984 fi | |
3985 else | |
3986 ac_cpp_err=yes | |
3987 fi | |
3988 if test -z "$ac_cpp_err"; then | |
25897 | 3989 ac_cv_header_stdc=yes |
3990 else | |
40056 | 3991 echo "$as_me: failed program was:" >&5 |
25897 | 3992 cat conftest.$ac_ext >&5 |
3993 ac_cv_header_stdc=no | |
3994 fi | |
40056 | 3995 rm -f conftest.err conftest.$ac_ext |
25897 | 3996 |
3997 if test $ac_cv_header_stdc = yes; then | |
3998 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
40056 | 3999 cat >conftest.$ac_ext <<_ACEOF |
4000 #line 4000 "configure" | |
25897 | 4001 #include "confdefs.h" |
4002 #include <string.h> | |
40056 | 4003 |
4004 _ACEOF | |
25897 | 4005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4006 egrep "memchr" >/dev/null 2>&1; then | |
4007 : | |
4008 else | |
4009 ac_cv_header_stdc=no | |
4010 fi | |
4011 rm -f conftest* | |
4012 | |
4013 fi | |
4014 | |
4015 if test $ac_cv_header_stdc = yes; then | |
4016 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
40056 | 4017 cat >conftest.$ac_ext <<_ACEOF |
4018 #line 4018 "configure" | |
25897 | 4019 #include "confdefs.h" |
4020 #include <stdlib.h> | |
40056 | 4021 |
4022 _ACEOF | |
25897 | 4023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4024 egrep "free" >/dev/null 2>&1; then | |
4025 : | |
4026 else | |
4027 ac_cv_header_stdc=no | |
4028 fi | |
4029 rm -f conftest* | |
4030 | |
4031 fi | |
4032 | |
4033 if test $ac_cv_header_stdc = yes; then | |
4034 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
40056 | 4035 if test "$cross_compiling" = yes; then |
25897 | 4036 : |
4037 else | |
40056 | 4038 cat >conftest.$ac_ext <<_ACEOF |
4039 #line 4039 "configure" | |
25897 | 4040 #include "confdefs.h" |
4041 #include <ctype.h> | |
40056 | 4042 #if ((' ' & 0x0FF) == 0x020) |
4043 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4044 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4045 #else | |
4046 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4047 || ('j' <= (c) && (c) <= 'r') \ | |
4048 || ('s' <= (c) && (c) <= 'z')) | |
4049 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4050 #endif | |
4051 | |
25897 | 4052 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
40056 | 4053 int |
4054 main () | |
4055 { | |
4056 int i; | |
4057 for (i = 0; i < 256; i++) | |
4058 if (XOR (islower (i), ISLOWER (i)) | |
4059 || toupper (i) != TOUPPER (i)) | |
4060 exit(2); | |
4061 exit (0); | |
4062 } | |
4063 _ACEOF | |
4064 rm -f conftest$ac_exeext | |
4065 if { (eval echo "$as_me:4065: \"$ac_link\"") >&5 | |
4066 (eval $ac_link) 2>&5 | |
4067 ac_status=$? | |
4068 echo "$as_me:4068: \$? = $ac_status" >&5 | |
4069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4070 { (eval echo "$as_me:4070: \"$ac_try\"") >&5 | |
4071 (eval $ac_try) 2>&5 | |
4072 ac_status=$? | |
4073 echo "$as_me:4073: \$? = $ac_status" >&5 | |
4074 (exit $ac_status); }; }; then | |
25897 | 4075 : |
4076 else | |
40056 | 4077 echo "$as_me: program exited with status $ac_status" >&5 |
4078 echo "$as_me: failed program was:" >&5 | |
4079 cat conftest.$ac_ext >&5 | |
4080 ac_cv_header_stdc=no | |
4081 fi | |
4082 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4083 fi | |
4084 fi | |
4085 fi | |
4086 echo "$as_me:4086: result: $ac_cv_header_stdc" >&5 | |
4087 echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
25897 | 4088 if test $ac_cv_header_stdc = yes; then |
40056 | 4089 |
4090 cat >>confdefs.h <<\EOF | |
25897 | 4091 #define STDC_HEADERS 1 |
4092 EOF | |
4093 | |
4094 fi | |
4095 | |
40056 | 4096 echo "$as_me:4096: checking whether time.h and sys/time.h may both be included" >&5 |
4097 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
4098 if test "${ac_cv_header_time+set}" = set; then | |
4099 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4100 else | |
4101 cat >conftest.$ac_ext <<_ACEOF | |
4102 #line 4102 "configure" | |
25897 | 4103 #include "confdefs.h" |
4104 #include <sys/types.h> | |
4105 #include <sys/time.h> | |
4106 #include <time.h> | |
40056 | 4107 |
4108 int | |
4109 main () | |
4110 { | |
4111 if ((struct tm *) 0) | |
4112 return 0; | |
4113 ; | |
4114 return 0; | |
4115 } | |
4116 _ACEOF | |
4117 rm -f conftest.$ac_objext | |
4118 if { (eval echo "$as_me:4118: \"$ac_compile\"") >&5 | |
4119 (eval $ac_compile) 2>&5 | |
4120 ac_status=$? | |
4121 echo "$as_me:4121: \$? = $ac_status" >&5 | |
4122 (exit $ac_status); } && | |
4123 { ac_try='test -s conftest.$ac_objext' | |
4124 { (eval echo "$as_me:4124: \"$ac_try\"") >&5 | |
4125 (eval $ac_try) 2>&5 | |
4126 ac_status=$? | |
4127 echo "$as_me:4127: \$? = $ac_status" >&5 | |
4128 (exit $ac_status); }; }; then | |
25897 | 4129 ac_cv_header_time=yes |
4130 else | |
40056 | 4131 echo "$as_me: failed program was:" >&5 |
4132 cat conftest.$ac_ext >&5 | |
4133 ac_cv_header_time=no | |
4134 fi | |
4135 rm -f conftest.$ac_objext conftest.$ac_ext | |
4136 fi | |
4137 echo "$as_me:4137: result: $ac_cv_header_time" >&5 | |
4138 echo "${ECHO_T}$ac_cv_header_time" >&6 | |
25897 | 4139 if test $ac_cv_header_time = yes; then |
40056 | 4140 |
4141 cat >>confdefs.h <<\EOF | |
25897 | 4142 #define TIME_WITH_SYS_TIME 1 |
4143 EOF | |
4144 | |
4145 fi | |
4146 | |
40056 | 4147 echo "$as_me:4147: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
4148 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6 | |
4149 if test "${ac_cv_decl_sys_siglist+set}" = set; then | |
4150 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4151 else | |
4152 cat >conftest.$ac_ext <<_ACEOF | |
4153 #line 4153 "configure" | |
25897 | 4154 #include "confdefs.h" |
4155 #include <sys/types.h> | |
4156 #include <signal.h> | |
4157 /* NetBSD declares sys_siglist in unistd.h. */ | |
40056 | 4158 #if HAVE_UNISTD_H |
4159 # include <unistd.h> | |
4160 #endif | |
4161 | |
4162 int | |
4163 main () | |
4164 { | |
25897 | 4165 char *msg = *(sys_siglist + 1); |
40056 | 4166 ; |
4167 return 0; | |
4168 } | |
4169 _ACEOF | |
4170 rm -f conftest.$ac_objext | |
4171 if { (eval echo "$as_me:4171: \"$ac_compile\"") >&5 | |
4172 (eval $ac_compile) 2>&5 | |
4173 ac_status=$? | |
4174 echo "$as_me:4174: \$? = $ac_status" >&5 | |
4175 (exit $ac_status); } && | |
4176 { ac_try='test -s conftest.$ac_objext' | |
4177 { (eval echo "$as_me:4177: \"$ac_try\"") >&5 | |
4178 (eval $ac_try) 2>&5 | |
4179 ac_status=$? | |
4180 echo "$as_me:4180: \$? = $ac_status" >&5 | |
4181 (exit $ac_status); }; }; then | |
25897 | 4182 ac_cv_decl_sys_siglist=yes |
4183 else | |
40056 | 4184 echo "$as_me: failed program was:" >&5 |
4185 cat conftest.$ac_ext >&5 | |
4186 ac_cv_decl_sys_siglist=no | |
4187 fi | |
4188 rm -f conftest.$ac_objext conftest.$ac_ext | |
4189 fi | |
4190 echo "$as_me:4190: result: $ac_cv_decl_sys_siglist" >&5 | |
4191 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6 | |
25897 | 4192 if test $ac_cv_decl_sys_siglist = yes; then |
40056 | 4193 |
4194 cat >>confdefs.h <<\EOF | |
25897 | 4195 #define SYS_SIGLIST_DECLARED 1 |
4196 EOF | |
4197 | |
4198 fi | |
4199 | |
40056 | 4200 echo "$as_me:4200: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4201 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | |
4202 if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
4203 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4204 else | |
4205 cat >conftest.$ac_ext <<_ACEOF | |
4206 #line 4206 "configure" | |
30069 | 4207 #include "confdefs.h" |
4208 #include <sys/types.h> | |
4209 #include <sys/wait.h> | |
4210 #ifndef WEXITSTATUS | |
40056 | 4211 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
30069 | 4212 #endif |
4213 #ifndef WIFEXITED | |
40056 | 4214 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
4215 #endif | |
4216 | |
4217 int | |
4218 main () | |
4219 { | |
4220 int s; | |
4221 wait (&s); | |
4222 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4223 ; | |
4224 return 0; | |
4225 } | |
4226 _ACEOF | |
4227 rm -f conftest.$ac_objext | |
4228 if { (eval echo "$as_me:4228: \"$ac_compile\"") >&5 | |
4229 (eval $ac_compile) 2>&5 | |
4230 ac_status=$? | |
4231 echo "$as_me:4231: \$? = $ac_status" >&5 | |
4232 (exit $ac_status); } && | |
4233 { ac_try='test -s conftest.$ac_objext' | |
4234 { (eval echo "$as_me:4234: \"$ac_try\"") >&5 | |
4235 (eval $ac_try) 2>&5 | |
4236 ac_status=$? | |
4237 echo "$as_me:4237: \$? = $ac_status" >&5 | |
4238 (exit $ac_status); }; }; then | |
30069 | 4239 ac_cv_header_sys_wait_h=yes |
4240 else | |
40056 | 4241 echo "$as_me: failed program was:" >&5 |
4242 cat conftest.$ac_ext >&5 | |
4243 ac_cv_header_sys_wait_h=no | |
4244 fi | |
4245 rm -f conftest.$ac_objext conftest.$ac_ext | |
4246 fi | |
4247 echo "$as_me:4247: result: $ac_cv_header_sys_wait_h" >&5 | |
4248 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | |
30069 | 4249 if test $ac_cv_header_sys_wait_h = yes; then |
40056 | 4250 |
4251 cat >>confdefs.h <<\EOF | |
30069 | 4252 #define HAVE_SYS_WAIT_H 1 |
4253 EOF | |
4254 | |
4255 fi | |
4256 | |
40056 | 4257 echo "$as_me:4257: checking for struct utimbuf" >&5 |
4258 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 | |
4259 if test "${emacs_cv_struct_utimbuf+set}" = set; then | |
4260 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4261 else | |
4262 cat >conftest.$ac_ext <<_ACEOF | |
4263 #line 4263 "configure" | |
25897 | 4264 #include "confdefs.h" |
4265 #ifdef TIME_WITH_SYS_TIME | |
4266 #include <sys/time.h> | |
4267 #include <time.h> | |
4268 #else | |
4269 #ifdef HAVE_SYS_TIME_H | |
4270 #include <sys/time.h> | |
4271 #else | |
4272 #include <time.h> | |
4273 #endif | |
4274 #endif | |
4275 #ifdef HAVE_UTIME_H | |
4276 #include <utime.h> | |
4277 #endif | |
40056 | 4278 int |
4279 main () | |
4280 { | |
25897 | 4281 static struct utimbuf x; x.actime = x.modtime; |
40056 | 4282 ; |
4283 return 0; | |
4284 } | |
4285 _ACEOF | |
4286 rm -f conftest.$ac_objext | |
4287 if { (eval echo "$as_me:4287: \"$ac_compile\"") >&5 | |
4288 (eval $ac_compile) 2>&5 | |
4289 ac_status=$? | |
4290 echo "$as_me:4290: \$? = $ac_status" >&5 | |
4291 (exit $ac_status); } && | |
4292 { ac_try='test -s conftest.$ac_objext' | |
4293 { (eval echo "$as_me:4293: \"$ac_try\"") >&5 | |
4294 (eval $ac_try) 2>&5 | |
4295 ac_status=$? | |
4296 echo "$as_me:4296: \$? = $ac_status" >&5 | |
4297 (exit $ac_status); }; }; then | |
25897 | 4298 emacs_cv_struct_utimbuf=yes |
4299 else | |
40056 | 4300 echo "$as_me: failed program was:" >&5 |
4301 cat conftest.$ac_ext >&5 | |
4302 emacs_cv_struct_utimbuf=no | |
4303 fi | |
4304 rm -f conftest.$ac_objext conftest.$ac_ext | |
4305 fi | |
4306 echo "$as_me:4306: result: $emacs_cv_struct_utimbuf" >&5 | |
4307 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 | |
25897 | 4308 if test $emacs_cv_struct_utimbuf = yes; then |
40056 | 4309 cat >>confdefs.h <<\EOF |
25897 | 4310 #define HAVE_STRUCT_UTIMBUF 1 |
4311 EOF | |
4312 | |
4313 fi | |
4314 | |
40056 | 4315 echo "$as_me:4315: checking return type of signal handlers" >&5 |
4316 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
4317 if test "${ac_cv_type_signal+set}" = set; then | |
4318 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4319 else | |
4320 cat >conftest.$ac_ext <<_ACEOF | |
4321 #line 4321 "configure" | |
25897 | 4322 #include "confdefs.h" |
4323 #include <sys/types.h> | |
4324 #include <signal.h> | |
4325 #ifdef signal | |
40056 | 4326 # undef signal |
25897 | 4327 #endif |
4328 #ifdef __cplusplus | |
4329 extern "C" void (*signal (int, void (*)(int)))(int); | |
4330 #else | |
4331 void (*signal ()) (); | |
4332 #endif | |
4333 | |
40056 | 4334 int |
4335 main () | |
4336 { | |
25897 | 4337 int i; |
40056 | 4338 ; |
4339 return 0; | |
4340 } | |
4341 _ACEOF | |
4342 rm -f conftest.$ac_objext | |
4343 if { (eval echo "$as_me:4343: \"$ac_compile\"") >&5 | |
4344 (eval $ac_compile) 2>&5 | |
4345 ac_status=$? | |
4346 echo "$as_me:4346: \$? = $ac_status" >&5 | |
4347 (exit $ac_status); } && | |
4348 { ac_try='test -s conftest.$ac_objext' | |
4349 { (eval echo "$as_me:4349: \"$ac_try\"") >&5 | |
4350 (eval $ac_try) 2>&5 | |
4351 ac_status=$? | |
4352 echo "$as_me:4352: \$? = $ac_status" >&5 | |
4353 (exit $ac_status); }; }; then | |
25897 | 4354 ac_cv_type_signal=void |
4355 else | |
40056 | 4356 echo "$as_me: failed program was:" >&5 |
4357 cat conftest.$ac_ext >&5 | |
4358 ac_cv_type_signal=int | |
4359 fi | |
4360 rm -f conftest.$ac_objext conftest.$ac_ext | |
4361 fi | |
4362 echo "$as_me:4362: result: $ac_cv_type_signal" >&5 | |
4363 echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
4364 | |
4365 cat >>confdefs.h <<EOF | |
25897 | 4366 #define RETSIGTYPE $ac_cv_type_signal |
4367 EOF | |
4368 | |
40056 | 4369 echo "$as_me:4369: checking for speed_t" >&5 |
4370 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 | |
4371 if test "${emacs_cv_speed_t+set}" = set; then | |
4372 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4373 else | |
4374 cat >conftest.$ac_ext <<_ACEOF | |
4375 #line 4375 "configure" | |
29254 | 4376 #include "confdefs.h" |
4377 #include <termios.h> | |
40056 | 4378 int |
4379 main () | |
4380 { | |
29254 | 4381 speed_t x = 1; |
40056 | 4382 ; |
4383 return 0; | |
4384 } | |
4385 _ACEOF | |
4386 rm -f conftest.$ac_objext | |
4387 if { (eval echo "$as_me:4387: \"$ac_compile\"") >&5 | |
4388 (eval $ac_compile) 2>&5 | |
4389 ac_status=$? | |
4390 echo "$as_me:4390: \$? = $ac_status" >&5 | |
4391 (exit $ac_status); } && | |
4392 { ac_try='test -s conftest.$ac_objext' | |
4393 { (eval echo "$as_me:4393: \"$ac_try\"") >&5 | |
4394 (eval $ac_try) 2>&5 | |
4395 ac_status=$? | |
4396 echo "$as_me:4396: \$? = $ac_status" >&5 | |
4397 (exit $ac_status); }; }; then | |
29254 | 4398 emacs_cv_speed_t=yes |
4399 else | |
40056 | 4400 echo "$as_me: failed program was:" >&5 |
4401 cat conftest.$ac_ext >&5 | |
4402 emacs_cv_speed_t=no | |
4403 fi | |
4404 rm -f conftest.$ac_objext conftest.$ac_ext | |
4405 fi | |
4406 echo "$as_me:4406: result: $emacs_cv_speed_t" >&5 | |
4407 echo "${ECHO_T}$emacs_cv_speed_t" >&6 | |
29254 | 4408 if test $emacs_cv_speed_t = yes; then |
40056 | 4409 cat >>confdefs.h <<\EOF |
29254 | 4410 #define HAVE_SPEED_T 1 |
4411 EOF | |
4412 | |
4413 fi | |
4414 | |
40056 | 4415 echo "$as_me:4415: checking for struct timeval" >&5 |
4416 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 | |
4417 if test "${emacs_cv_struct_timeval+set}" = set; then | |
4418 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4419 else | |
4420 cat >conftest.$ac_ext <<_ACEOF | |
4421 #line 4421 "configure" | |
25897 | 4422 #include "confdefs.h" |
4423 #ifdef TIME_WITH_SYS_TIME | |
4424 #include <sys/time.h> | |
4425 #include <time.h> | |
4426 #else | |
4427 #ifdef HAVE_SYS_TIME_H | |
4428 #include <sys/time.h> | |
4429 #else | |
4430 #include <time.h> | |
4431 #endif | |
4432 #endif | |
40056 | 4433 int |
4434 main () | |
4435 { | |
25897 | 4436 static struct timeval x; x.tv_sec = x.tv_usec; |
40056 | 4437 ; |
4438 return 0; | |
4439 } | |
4440 _ACEOF | |
4441 rm -f conftest.$ac_objext | |
4442 if { (eval echo "$as_me:4442: \"$ac_compile\"") >&5 | |
4443 (eval $ac_compile) 2>&5 | |
4444 ac_status=$? | |
4445 echo "$as_me:4445: \$? = $ac_status" >&5 | |
4446 (exit $ac_status); } && | |
4447 { ac_try='test -s conftest.$ac_objext' | |
4448 { (eval echo "$as_me:4448: \"$ac_try\"") >&5 | |
4449 (eval $ac_try) 2>&5 | |
4450 ac_status=$? | |
4451 echo "$as_me:4451: \$? = $ac_status" >&5 | |
4452 (exit $ac_status); }; }; then | |
25897 | 4453 emacs_cv_struct_timeval=yes |
4454 else | |
40056 | 4455 echo "$as_me: failed program was:" >&5 |
4456 cat conftest.$ac_ext >&5 | |
4457 emacs_cv_struct_timeval=no | |
4458 fi | |
4459 rm -f conftest.$ac_objext conftest.$ac_ext | |
4460 fi | |
4461 echo "$as_me:4461: result: $emacs_cv_struct_timeval" >&5 | |
4462 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 | |
25897 | 4463 HAVE_TIMEVAL=$emacs_cv_struct_timeval |
4464 if test $emacs_cv_struct_timeval = yes; then | |
40056 | 4465 cat >>confdefs.h <<\EOF |
25897 | 4466 #define HAVE_TIMEVAL 1 |
4467 EOF | |
4468 | |
4469 fi | |
4470 | |
40056 | 4471 echo "$as_me:4471: checking for struct exception" >&5 |
4472 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 | |
4473 if test "${emacs_cv_struct_exception+set}" = set; then | |
4474 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4475 else | |
4476 cat >conftest.$ac_ext <<_ACEOF | |
4477 #line 4477 "configure" | |
29388 | 4478 #include "confdefs.h" |
4479 #include <math.h> | |
40056 | 4480 int |
4481 main () | |
4482 { | |
29388 | 4483 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
40056 | 4484 ; |
4485 return 0; | |
4486 } | |
4487 _ACEOF | |
4488 rm -f conftest.$ac_objext | |
4489 if { (eval echo "$as_me:4489: \"$ac_compile\"") >&5 | |
4490 (eval $ac_compile) 2>&5 | |
4491 ac_status=$? | |
4492 echo "$as_me:4492: \$? = $ac_status" >&5 | |
4493 (exit $ac_status); } && | |
4494 { ac_try='test -s conftest.$ac_objext' | |
4495 { (eval echo "$as_me:4495: \"$ac_try\"") >&5 | |
4496 (eval $ac_try) 2>&5 | |
4497 ac_status=$? | |
4498 echo "$as_me:4498: \$? = $ac_status" >&5 | |
4499 (exit $ac_status); }; }; then | |
29388 | 4500 emacs_cv_struct_exception=yes |
4501 else | |
40056 | 4502 echo "$as_me: failed program was:" >&5 |
4503 cat conftest.$ac_ext >&5 | |
4504 emacs_cv_struct_exception=no | |
4505 fi | |
4506 rm -f conftest.$ac_objext conftest.$ac_ext | |
4507 fi | |
4508 echo "$as_me:4508: result: $emacs_cv_struct_exception" >&5 | |
4509 echo "${ECHO_T}$emacs_cv_struct_exception" >&6 | |
29388 | 4510 HAVE_EXCEPTION=$emacs_cv_struct_exception |
4511 if test $emacs_cv_struct_exception != yes; then | |
40056 | 4512 cat >>confdefs.h <<\EOF |
29388 | 4513 #define NO_MATHERR 1 |
4514 EOF | |
4515 | |
4516 fi | |
4517 | |
40056 | 4518 echo "$as_me:4518: checking whether struct tm is in sys/time.h or time.h" >&5 |
4519 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | |
4520 if test "${ac_cv_struct_tm+set}" = set; then | |
4521 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4522 else | |
4523 cat >conftest.$ac_ext <<_ACEOF | |
4524 #line 4524 "configure" | |
25897 | 4525 #include "confdefs.h" |
4526 #include <sys/types.h> | |
4527 #include <time.h> | |
40056 | 4528 |
4529 int | |
4530 main () | |
4531 { | |
25897 | 4532 struct tm *tp; tp->tm_sec; |
40056 | 4533 ; |
4534 return 0; | |
4535 } | |
4536 _ACEOF | |
4537 rm -f conftest.$ac_objext | |
4538 if { (eval echo "$as_me:4538: \"$ac_compile\"") >&5 | |
4539 (eval $ac_compile) 2>&5 | |
4540 ac_status=$? | |
4541 echo "$as_me:4541: \$? = $ac_status" >&5 | |
4542 (exit $ac_status); } && | |
4543 { ac_try='test -s conftest.$ac_objext' | |
4544 { (eval echo "$as_me:4544: \"$ac_try\"") >&5 | |
4545 (eval $ac_try) 2>&5 | |
4546 ac_status=$? | |
4547 echo "$as_me:4547: \$? = $ac_status" >&5 | |
4548 (exit $ac_status); }; }; then | |
25897 | 4549 ac_cv_struct_tm=time.h |
4550 else | |
40056 | 4551 echo "$as_me: failed program was:" >&5 |
4552 cat conftest.$ac_ext >&5 | |
4553 ac_cv_struct_tm=sys/time.h | |
4554 fi | |
4555 rm -f conftest.$ac_objext conftest.$ac_ext | |
4556 fi | |
4557 echo "$as_me:4557: result: $ac_cv_struct_tm" >&5 | |
4558 echo "${ECHO_T}$ac_cv_struct_tm" >&6 | |
25897 | 4559 if test $ac_cv_struct_tm = sys/time.h; then |
40056 | 4560 |
4561 cat >>confdefs.h <<\EOF | |
25897 | 4562 #define TM_IN_SYS_TIME 1 |
4563 EOF | |
4564 | |
4565 fi | |
4566 | |
40056 | 4567 echo "$as_me:4567: checking for struct tm.tm_zone" >&5 |
4568 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 | |
4569 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
4570 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4571 else | |
4572 cat >conftest.$ac_ext <<_ACEOF | |
4573 #line 4573 "configure" | |
25897 | 4574 #include "confdefs.h" |
4575 #include <sys/types.h> | |
4576 #include <$ac_cv_struct_tm> | |
40056 | 4577 |
4578 int | |
4579 main () | |
4580 { | |
4581 static struct tm ac_aggr; | |
4582 if (ac_aggr.tm_zone) | |
4583 return 0; | |
4584 ; | |
4585 return 0; | |
4586 } | |
4587 _ACEOF | |
4588 rm -f conftest.$ac_objext | |
4589 if { (eval echo "$as_me:4589: \"$ac_compile\"") >&5 | |
4590 (eval $ac_compile) 2>&5 | |
4591 ac_status=$? | |
4592 echo "$as_me:4592: \$? = $ac_status" >&5 | |
4593 (exit $ac_status); } && | |
4594 { ac_try='test -s conftest.$ac_objext' | |
4595 { (eval echo "$as_me:4595: \"$ac_try\"") >&5 | |
4596 (eval $ac_try) 2>&5 | |
4597 ac_status=$? | |
4598 echo "$as_me:4598: \$? = $ac_status" >&5 | |
4599 (exit $ac_status); }; }; then | |
4600 ac_cv_member_struct_tm_tm_zone=yes | |
4601 else | |
4602 echo "$as_me: failed program was:" >&5 | |
4603 cat conftest.$ac_ext >&5 | |
4604 ac_cv_member_struct_tm_tm_zone=no | |
4605 fi | |
4606 rm -f conftest.$ac_objext conftest.$ac_ext | |
4607 fi | |
4608 echo "$as_me:4608: result: $ac_cv_member_struct_tm_tm_zone" >&5 | |
4609 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 | |
4610 if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
4611 | |
4612 cat >>confdefs.h <<EOF | |
4613 #define HAVE_STRUCT_TM_TM_ZONE 1 | |
4614 EOF | |
4615 | |
4616 fi | |
4617 | |
4618 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
4619 | |
4620 cat >>confdefs.h <<\EOF | |
25897 | 4621 #define HAVE_TM_ZONE 1 |
4622 EOF | |
4623 | |
4624 else | |
40056 | 4625 echo "$as_me:4625: checking for tzname" >&5 |
4626 echo $ECHO_N "checking for tzname... $ECHO_C" >&6 | |
4627 if test "${ac_cv_var_tzname+set}" = set; then | |
4628 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4629 else | |
4630 cat >conftest.$ac_ext <<_ACEOF | |
4631 #line 4631 "configure" | |
25897 | 4632 #include "confdefs.h" |
4633 #include <time.h> | |
4634 #ifndef tzname /* For SGI. */ | |
4635 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
4636 #endif | |
40056 | 4637 |
4638 int | |
4639 main () | |
4640 { | |
25897 | 4641 atoi(*tzname); |
40056 | 4642 ; |
4643 return 0; | |
4644 } | |
4645 _ACEOF | |
4646 rm -f conftest.$ac_objext conftest$ac_exeext | |
4647 if { (eval echo "$as_me:4647: \"$ac_link\"") >&5 | |
4648 (eval $ac_link) 2>&5 | |
4649 ac_status=$? | |
4650 echo "$as_me:4650: \$? = $ac_status" >&5 | |
4651 (exit $ac_status); } && | |
4652 { ac_try='test -s conftest$ac_exeext' | |
4653 { (eval echo "$as_me:4653: \"$ac_try\"") >&5 | |
4654 (eval $ac_try) 2>&5 | |
4655 ac_status=$? | |
4656 echo "$as_me:4656: \$? = $ac_status" >&5 | |
4657 (exit $ac_status); }; }; then | |
25897 | 4658 ac_cv_var_tzname=yes |
4659 else | |
40056 | 4660 echo "$as_me: failed program was:" >&5 |
4661 cat conftest.$ac_ext >&5 | |
4662 ac_cv_var_tzname=no | |
4663 fi | |
4664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4665 fi | |
4666 echo "$as_me:4666: result: $ac_cv_var_tzname" >&5 | |
4667 echo "${ECHO_T}$ac_cv_var_tzname" >&6 | |
25897 | 4668 if test $ac_cv_var_tzname = yes; then |
40056 | 4669 |
4670 cat >>confdefs.h <<\EOF | |
25897 | 4671 #define HAVE_TZNAME 1 |
4672 EOF | |
4673 | |
4674 fi | |
4675 fi | |
4676 | |
40056 | 4677 echo "$as_me:4677: checking for tm_gmtoff in struct tm" >&5 |
4678 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
4679 if test "${emacs_cv_tm_gmtoff+set}" = set; then | |
4680 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4681 else | |
4682 cat >conftest.$ac_ext <<_ACEOF | |
4683 #line 4683 "configure" | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4684 #include "confdefs.h" |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4685 #include <time.h> |
40056 | 4686 int |
4687 main () | |
4688 { | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4689 struct tm t; t.tm_gmtoff = 0 |
40056 | 4690 ; |
4691 return 0; | |
4692 } | |
4693 _ACEOF | |
4694 rm -f conftest.$ac_objext conftest$ac_exeext | |
4695 if { (eval echo "$as_me:4695: \"$ac_link\"") >&5 | |
4696 (eval $ac_link) 2>&5 | |
4697 ac_status=$? | |
4698 echo "$as_me:4698: \$? = $ac_status" >&5 | |
4699 (exit $ac_status); } && | |
4700 { ac_try='test -s conftest$ac_exeext' | |
4701 { (eval echo "$as_me:4701: \"$ac_try\"") >&5 | |
4702 (eval $ac_try) 2>&5 | |
4703 ac_status=$? | |
4704 echo "$as_me:4704: \$? = $ac_status" >&5 | |
4705 (exit $ac_status); }; }; then | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4706 emacs_cv_tm_gmtoff=yes |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4707 else |
40056 | 4708 echo "$as_me: failed program was:" >&5 |
4709 cat conftest.$ac_ext >&5 | |
4710 emacs_cv_tm_gmtoff=no | |
4711 fi | |
4712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4713 fi | |
4714 echo "$as_me:4714: result: $emacs_cv_tm_gmtoff" >&5 | |
4715 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4716 if test $emacs_cv_tm_gmtoff = yes; then |
40056 | 4717 cat >>confdefs.h <<\EOF |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4718 #define HAVE_TM_GMTOFF 1 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4719 EOF |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4720 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4721 fi |
25897 | 4722 |
40056 | 4723 echo "$as_me:4723: checking for $CC option to accept ANSI C" >&5 |
4724 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
4725 if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4726 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28060 | 4727 else |
4728 ac_cv_prog_cc_stdc=no | |
40056 | 4729 ac_save_CC=$CC |
4730 cat >conftest.$ac_ext <<_ACEOF | |
4731 #line 4731 "configure" | |
28060 | 4732 #include "confdefs.h" |
4733 #include <stdarg.h> | |
4734 #include <stdio.h> | |
4735 #include <sys/types.h> | |
4736 #include <sys/stat.h> | |
4737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4738 struct buf { int x; }; | |
4739 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4740 static char *e (p, i) | |
4741 char **p; | |
4742 int i; | |
4743 { | |
4744 return p[i]; | |
4745 } | |
4746 static char *f (char * (*g) (char **, int), char **p, ...) | |
4747 { | |
4748 char *s; | |
4749 va_list v; | |
4750 va_start (v,p); | |
4751 s = g (p, va_arg (v,int)); | |
4752 va_end (v); | |
4753 return s; | |
4754 } | |
4755 int test (int i, double x); | |
4756 struct s1 {int (*f) (int a);}; | |
4757 struct s2 {int (*f) (double a);}; | |
4758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4759 int argc; | |
4760 char **argv; | |
40056 | 4761 int |
4762 main () | |
4763 { | |
28060 | 4764 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
40056 | 4765 ; |
4766 return 0; | |
4767 } | |
4768 _ACEOF | |
4769 # Don't try gcc -ansi; that turns off useful extensions and | |
4770 # breaks some systems' header files. | |
4771 # AIX -qlanglvl=ansi | |
4772 # Ultrix and OSF/1 -std1 | |
4773 # HP-UX 10.20 and later -Ae | |
4774 # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4775 # SVR4 -Xc -D__EXTENSIONS__ | |
4776 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4777 do | |
4778 CC="$ac_save_CC $ac_arg" | |
4779 rm -f conftest.$ac_objext | |
4780 if { (eval echo "$as_me:4780: \"$ac_compile\"") >&5 | |
4781 (eval $ac_compile) 2>&5 | |
4782 ac_status=$? | |
4783 echo "$as_me:4783: \$? = $ac_status" >&5 | |
4784 (exit $ac_status); } && | |
4785 { ac_try='test -s conftest.$ac_objext' | |
4786 { (eval echo "$as_me:4786: \"$ac_try\"") >&5 | |
4787 (eval $ac_try) 2>&5 | |
4788 ac_status=$? | |
4789 echo "$as_me:4789: \$? = $ac_status" >&5 | |
4790 (exit $ac_status); }; }; then | |
4791 ac_cv_prog_cc_stdc=$ac_arg | |
4792 break | |
4793 else | |
4794 echo "$as_me: failed program was:" >&5 | |
4795 cat conftest.$ac_ext >&5 | |
4796 fi | |
4797 rm -f conftest.$ac_objext | |
28060 | 4798 done |
40056 | 4799 rm -f conftest.$ac_ext conftest.$ac_objext |
4800 CC=$ac_save_CC | |
28060 | 4801 |
4802 fi | |
4803 | |
4804 case "x$ac_cv_prog_cc_stdc" in | |
4805 x|xno) | |
40056 | 4806 echo "$as_me:4806: result: none needed" >&5 |
4807 echo "${ECHO_T}none needed" >&6 ;; | |
28060 | 4808 *) |
40056 | 4809 echo "$as_me:4809: result: $ac_cv_prog_cc_stdc" >&5 |
4810 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
28060 | 4811 CC="$CC $ac_cv_prog_cc_stdc" ;; |
4812 esac | |
4813 | |
40056 | 4814 echo "$as_me:4814: checking for function prototypes" >&5 |
4815 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 | |
28060 | 4816 if test "$ac_cv_prog_cc_stdc" != no; then |
40056 | 4817 echo "$as_me:4817: result: yes" >&5 |
4818 echo "${ECHO_T}yes" >&6 | |
4819 | |
4820 cat >>confdefs.h <<\EOF | |
28060 | 4821 #define PROTOTYPES 1 |
4822 EOF | |
4823 | |
4824 else | |
40056 | 4825 echo "$as_me:4825: result: no" >&5 |
4826 echo "${ECHO_T}no" >&6 | |
4827 fi | |
4828 | |
4829 echo "$as_me:4829: checking for working volatile" >&5 | |
4830 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 | |
4831 if test "${ac_cv_c_volatile+set}" = set; then | |
4832 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4833 else | |
4834 cat >conftest.$ac_ext <<_ACEOF | |
4835 #line 4835 "configure" | |
4836 #include "confdefs.h" | |
4837 | |
4838 int | |
4839 main () | |
4840 { | |
28060 | 4841 |
4842 volatile int x; | |
4843 int * volatile y; | |
40056 | 4844 ; |
4845 return 0; | |
4846 } | |
4847 _ACEOF | |
4848 rm -f conftest.$ac_objext | |
4849 if { (eval echo "$as_me:4849: \"$ac_compile\"") >&5 | |
4850 (eval $ac_compile) 2>&5 | |
4851 ac_status=$? | |
4852 echo "$as_me:4852: \$? = $ac_status" >&5 | |
4853 (exit $ac_status); } && | |
4854 { ac_try='test -s conftest.$ac_objext' | |
4855 { (eval echo "$as_me:4855: \"$ac_try\"") >&5 | |
4856 (eval $ac_try) 2>&5 | |
4857 ac_status=$? | |
4858 echo "$as_me:4858: \$? = $ac_status" >&5 | |
4859 (exit $ac_status); }; }; then | |
28060 | 4860 ac_cv_c_volatile=yes |
4861 else | |
40056 | 4862 echo "$as_me: failed program was:" >&5 |
4863 cat conftest.$ac_ext >&5 | |
4864 ac_cv_c_volatile=no | |
4865 fi | |
4866 rm -f conftest.$ac_objext conftest.$ac_ext | |
4867 fi | |
4868 echo "$as_me:4868: result: $ac_cv_c_volatile" >&5 | |
4869 echo "${ECHO_T}$ac_cv_c_volatile" >&6 | |
28060 | 4870 if test $ac_cv_c_volatile = no; then |
40056 | 4871 |
4872 cat >>confdefs.h <<\EOF | |
4873 #define volatile | |
4874 EOF | |
4875 | |
4876 fi | |
4877 | |
4878 echo "$as_me:4878: checking for an ANSI C-conforming const" >&5 | |
4879 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4880 if test "${ac_cv_c_const+set}" = set; then | |
4881 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4882 else | |
4883 cat >conftest.$ac_ext <<_ACEOF | |
4884 #line 4884 "configure" | |
4885 #include "confdefs.h" | |
4886 | |
4887 int | |
4888 main () | |
4889 { | |
4890 /* FIXME: Include the comments suggested by Paul. */ | |
4891 #ifndef __cplusplus | |
4892 /* Ultrix mips cc rejects this. */ | |
4893 typedef int charset[2]; | |
4894 const charset x; | |
4895 /* SunOS 4.1.1 cc rejects this. */ | |
4896 char const *const *ccp; | |
4897 char **p; | |
4898 /* NEC SVR4.0.2 mips cc rejects this. */ | |
4899 struct point {int x, y;}; | |
4900 static struct point const zero = {0,0}; | |
4901 /* AIX XL C 1.02.0.0 rejects this. | |
4902 It does not let you subtract one const X* pointer from another in | |
4903 an arm of an if-expression whose if-part is not a constant | |
4904 expression */ | |
4905 const char *g = "string"; | |
4906 ccp = &g + (g ? g-g : 0); | |
4907 /* HPUX 7.0 cc rejects these. */ | |
4908 ++ccp; | |
4909 p = (char**) ccp; | |
4910 ccp = (char const *const *) p; | |
4911 { /* SCO 3.2v4 cc rejects this. */ | |
4912 char *t; | |
4913 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4914 | |
4915 *t++ = 0; | |
4916 } | |
4917 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4918 int x[] = {25, 17}; | |
4919 const int *foo = &x[0]; | |
4920 ++foo; | |
4921 } | |
4922 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4923 typedef const int *iptr; | |
4924 iptr p = 0; | |
4925 ++p; | |
4926 } | |
4927 { /* AIX XL C 1.02.0.0 rejects this saying | |
4928 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4929 struct s { int j; const int *ap[3]; }; | |
4930 struct s *b; b->j = 5; | |
4931 } | |
4932 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4933 const int foo = 10; | |
4934 } | |
4935 #endif | |
4936 | |
4937 ; | |
4938 return 0; | |
4939 } | |
4940 _ACEOF | |
4941 rm -f conftest.$ac_objext | |
4942 if { (eval echo "$as_me:4942: \"$ac_compile\"") >&5 | |
4943 (eval $ac_compile) 2>&5 | |
4944 ac_status=$? | |
4945 echo "$as_me:4945: \$? = $ac_status" >&5 | |
4946 (exit $ac_status); } && | |
4947 { ac_try='test -s conftest.$ac_objext' | |
4948 { (eval echo "$as_me:4948: \"$ac_try\"") >&5 | |
4949 (eval $ac_try) 2>&5 | |
4950 ac_status=$? | |
4951 echo "$as_me:4951: \$? = $ac_status" >&5 | |
4952 (exit $ac_status); }; }; then | |
25897 | 4953 ac_cv_c_const=yes |
4954 else | |
40056 | 4955 echo "$as_me: failed program was:" >&5 |
4956 cat conftest.$ac_ext >&5 | |
4957 ac_cv_c_const=no | |
4958 fi | |
4959 rm -f conftest.$ac_objext conftest.$ac_ext | |
4960 fi | |
4961 echo "$as_me:4961: result: $ac_cv_c_const" >&5 | |
4962 echo "${ECHO_T}$ac_cv_c_const" >&6 | |
25897 | 4963 if test $ac_cv_c_const = no; then |
40056 | 4964 |
4965 cat >>confdefs.h <<\EOF | |
4966 #define const | |
4967 EOF | |
4968 | |
4969 fi | |
4970 | |
4971 echo "$as_me:4971: checking for void * support" >&5 | |
4972 echo $ECHO_N "checking for void * support... $ECHO_C" >&6 | |
4973 if test "${emacs_cv_void_star+set}" = set; then | |
4974 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4975 else | |
4976 cat >conftest.$ac_ext <<_ACEOF | |
4977 #line 4977 "configure" | |
4978 #include "confdefs.h" | |
4979 | |
4980 int | |
4981 main () | |
4982 { | |
28060 | 4983 void * foo; |
40056 | 4984 ; |
4985 return 0; | |
4986 } | |
4987 _ACEOF | |
4988 rm -f conftest.$ac_objext | |
4989 if { (eval echo "$as_me:4989: \"$ac_compile\"") >&5 | |
4990 (eval $ac_compile) 2>&5 | |
4991 ac_status=$? | |
4992 echo "$as_me:4992: \$? = $ac_status" >&5 | |
4993 (exit $ac_status); } && | |
4994 { ac_try='test -s conftest.$ac_objext' | |
4995 { (eval echo "$as_me:4995: \"$ac_try\"") >&5 | |
4996 (eval $ac_try) 2>&5 | |
4997 ac_status=$? | |
4998 echo "$as_me:4998: \$? = $ac_status" >&5 | |
4999 (exit $ac_status); }; }; then | |
28060 | 5000 emacs_cv_void_star=yes |
5001 else | |
40056 | 5002 echo "$as_me: failed program was:" >&5 |
5003 cat conftest.$ac_ext >&5 | |
5004 emacs_cv_void_star=no | |
5005 fi | |
5006 rm -f conftest.$ac_objext conftest.$ac_ext | |
5007 fi | |
5008 echo "$as_me:5008: result: $emacs_cv_void_star" >&5 | |
5009 echo "${ECHO_T}$emacs_cv_void_star" >&6 | |
28060 | 5010 if test $emacs_cv_void_star = yes; then |
40056 | 5011 cat >>confdefs.h <<\EOF |
28060 | 5012 #define POINTER_TYPE void |
5013 EOF | |
5014 | |
5015 else | |
40056 | 5016 cat >>confdefs.h <<\EOF |
28060 | 5017 #define POINTER_TYPE char |
5018 EOF | |
5019 | |
5020 fi | |
25897 | 5021 |
40056 | 5022 echo "$as_me:5022: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
5023 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 | |
5024 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
5025 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
5026 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5027 else | |
5028 cat >conftest.make <<\EOF | |
25897 | 5029 all: |
5030 @echo 'ac_maketemp="${MAKE}"' | |
5031 EOF | |
5032 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
40056 | 5033 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
25897 | 5034 if test -n "$ac_maketemp"; then |
5035 eval ac_cv_prog_make_${ac_make}_set=yes | |
5036 else | |
5037 eval ac_cv_prog_make_${ac_make}_set=no | |
5038 fi | |
40056 | 5039 rm -f conftest.make |
25897 | 5040 fi |
5041 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
40056 | 5042 echo "$as_me:5042: result: yes" >&5 |
5043 echo "${ECHO_T}yes" >&6 | |
25897 | 5044 SET_MAKE= |
5045 else | |
40056 | 5046 echo "$as_me:5046: result: no" >&5 |
5047 echo "${ECHO_T}no" >&6 | |
25897 | 5048 SET_MAKE="MAKE=${MAKE-make}" |
5049 fi | |
5050 | |
40056 | 5051 echo "$as_me:5051: checking for long file names" >&5 |
5052 echo $ECHO_N "checking for long file names... $ECHO_C" >&6 | |
5053 if test "${ac_cv_sys_long_file_names+set}" = set; then | |
5054 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 5055 else |
5056 ac_cv_sys_long_file_names=yes | |
5057 # Test for long file names in all the places we know might matter: | |
5058 # . the current directory, where building will happen | |
5059 # $prefix/lib where we will be installing things | |
5060 # $exec_prefix/lib likewise | |
5061 # eval it to expand exec_prefix. | |
5062 # $TMPDIR if set, where it might want to write temporary files | |
5063 # if $TMPDIR is not set: | |
5064 # /tmp where it might want to write temporary files | |
5065 # /var/tmp likewise | |
5066 # /usr/tmp likewise | |
5067 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
40056 | 5068 ac_tmpdirs=$TMPDIR |
25897 | 5069 else |
5070 ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
5071 fi | |
5072 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
5073 test -d $ac_dir || continue | |
5074 test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
40056 | 5075 ac_xdir=$ac_dir/cf$$ |
5076 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue | |
5077 ac_tf1=$ac_xdir/conftest9012345 | |
5078 ac_tf2=$ac_xdir/conftest9012346 | |
5079 (echo 1 >$ac_tf1) 2>/dev/null | |
5080 (echo 2 >$ac_tf2) 2>/dev/null | |
5081 ac_val=`cat $ac_tf1 2>/dev/null` | |
5082 if test ! -f $ac_tf1 || test "$ac_val" != 1; then | |
25897 | 5083 ac_cv_sys_long_file_names=no |
40056 | 5084 rm -rf $ac_xdir 2>/dev/null |
25897 | 5085 break |
5086 fi | |
40056 | 5087 rm -rf $ac_xdir 2>/dev/null |
25897 | 5088 done |
5089 fi | |
40056 | 5090 echo "$as_me:5090: result: $ac_cv_sys_long_file_names" >&5 |
5091 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 | |
25897 | 5092 if test $ac_cv_sys_long_file_names = yes; then |
40056 | 5093 |
5094 cat >>confdefs.h <<\EOF | |
25897 | 5095 #define HAVE_LONG_FILE_NAMES 1 |
5096 EOF | |
5097 | |
5098 fi | |
5099 | |
5100 #### Choose a window system. | |
5101 | |
40056 | 5102 echo "$as_me:5102: checking for X" >&5 |
5103 echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
25897 | 5104 |
5105 # Check whether --with-x or --without-x was given. | |
5106 if test "${with_x+set}" = set; then | |
5107 withval="$with_x" | |
40056 | 5108 |
5109 fi; | |
25897 | 5110 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
5111 if test "x$with_x" = xno; then | |
5112 # The user explicitly disabled X. | |
5113 have_x=disabled | |
5114 else | |
5115 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
5116 # Both variables are already set. | |
5117 have_x=yes | |
5118 else | |
40056 | 5119 if test "${ac_cv_have_x+set}" = set; then |
5120 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 5121 else |
5122 # One or both of the vars are not set, and there is no cached value. | |
40056 | 5123 ac_x_includes=no ac_x_libraries=no |
5124 rm -fr conftest.dir | |
5125 if mkdir conftest.dir; then | |
5126 cd conftest.dir | |
25897 | 5127 # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
40056 | 5128 cat >Imakefile <<'EOF' |
25897 | 5129 acfindx: |
5130 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
5131 EOF | |
5132 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
5133 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5134 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
5135 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
5136 for ac_extension in a so sl; do | |
5137 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
40056 | 5138 test -f $ac_im_libdir/libX11.$ac_extension; then |
25897 | 5139 ac_im_usrlibdir=$ac_im_libdir; break |
5140 fi | |
5141 done | |
5142 # Screen out bogus values from the imake configuration. They are | |
5143 # bogus both because they are the default anyway, and because | |
5144 # using them would break gcc on systems where it needs fixed includes. | |
40056 | 5145 case $ac_im_incroot in |
25897 | 5146 /usr/include) ;; |
40056 | 5147 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
25897 | 5148 esac |
40056 | 5149 case $ac_im_usrlibdir in |
25897 | 5150 /usr/lib | /lib) ;; |
40056 | 5151 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
25897 | 5152 esac |
5153 fi | |
5154 cd .. | |
40056 | 5155 rm -fr conftest.dir |
5156 fi | |
5157 | |
5158 # Standard set of common directories for X headers. | |
5159 # Check X11 before X11Rn because it is often a symlink to the current release. | |
5160 ac_x_header_dirs=' | |
5161 /usr/X11/include | |
5162 /usr/X11R6/include | |
5163 /usr/X11R5/include | |
5164 /usr/X11R4/include | |
5165 | |
5166 /usr/include/X11 | |
5167 /usr/include/X11R6 | |
5168 /usr/include/X11R5 | |
5169 /usr/include/X11R4 | |
5170 | |
5171 /usr/local/X11/include | |
5172 /usr/local/X11R6/include | |
5173 /usr/local/X11R5/include | |
5174 /usr/local/X11R4/include | |
5175 | |
5176 /usr/local/include/X11 | |
5177 /usr/local/include/X11R6 | |
5178 /usr/local/include/X11R5 | |
5179 /usr/local/include/X11R4 | |
5180 | |
5181 /usr/X386/include | |
5182 /usr/x386/include | |
5183 /usr/XFree86/include/X11 | |
5184 | |
5185 /usr/include | |
5186 /usr/local/include | |
5187 /usr/unsupported/include | |
5188 /usr/athena/include | |
5189 /usr/local/x11r5/include | |
5190 /usr/lpp/Xamples/include | |
5191 | |
5192 /usr/openwin/include | |
5193 /usr/openwin/share/include' | |
5194 | |
5195 if test "$ac_x_includes" = no; then | |
5196 # Guess where to find include files, by looking for Intrinsic.h. | |
25897 | 5197 # First, try using that file with no special directory specified. |
40056 | 5198 cat >conftest.$ac_ext <<_ACEOF |
5199 #line 5199 "configure" | |
5200 #include "confdefs.h" | |
5201 #include <X11/Intrinsic.h> | |
5202 _ACEOF | |
5203 if { (eval echo "$as_me:5203: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5205 ac_status=$? | |
5206 egrep -v '^ *\+' conftest.er1 >conftest.err | |
5207 rm -f conftest.er1 | |
5208 cat conftest.err >&5 | |
5209 echo "$as_me:5209: \$? = $ac_status" >&5 | |
5210 (exit $ac_status); } >/dev/null; then | |
5211 if test -s conftest.err; then | |
5212 ac_cpp_err=$ac_c_preproc_warn_flag | |
5213 else | |
5214 ac_cpp_err= | |
5215 fi | |
5216 else | |
5217 ac_cpp_err=yes | |
5218 fi | |
5219 if test -z "$ac_cpp_err"; then | |
25897 | 5220 # We can compile using X headers with no special include directory. |
5221 ac_x_includes= | |
5222 else | |
40056 | 5223 echo "$as_me: failed program was:" >&5 |
25897 | 5224 cat conftest.$ac_ext >&5 |
40056 | 5225 for ac_dir in $ac_x_header_dirs; do |
5226 if test -r "$ac_dir/X11/Intrinsic.h"; then | |
5227 ac_x_includes=$ac_dir | |
5228 break | |
5229 fi | |
5230 done | |
5231 fi | |
5232 rm -f conftest.err conftest.$ac_ext | |
5233 fi # $ac_x_includes = no | |
5234 | |
5235 if test "$ac_x_libraries" = no; then | |
25897 | 5236 # Check for the libraries. |
5237 # See if we find them without any special options. | |
5238 # Don't add to $LIBS permanently. | |
40056 | 5239 ac_save_LIBS=$LIBS |
5240 LIBS="-lXt $LIBS" | |
5241 cat >conftest.$ac_ext <<_ACEOF | |
5242 #line 5242 "configure" | |
5243 #include "confdefs.h" | |
5244 #include <X11/Intrinsic.h> | |
5245 int | |
5246 main () | |
5247 { | |
5248 XtMalloc (0) | |
5249 ; | |
5250 return 0; | |
5251 } | |
5252 _ACEOF | |
5253 rm -f conftest.$ac_objext conftest$ac_exeext | |
5254 if { (eval echo "$as_me:5254: \"$ac_link\"") >&5 | |
5255 (eval $ac_link) 2>&5 | |
5256 ac_status=$? | |
5257 echo "$as_me:5257: \$? = $ac_status" >&5 | |
5258 (exit $ac_status); } && | |
5259 { ac_try='test -s conftest$ac_exeext' | |
5260 { (eval echo "$as_me:5260: \"$ac_try\"") >&5 | |
5261 (eval $ac_try) 2>&5 | |
5262 ac_status=$? | |
5263 echo "$as_me:5263: \$? = $ac_status" >&5 | |
5264 (exit $ac_status); }; }; then | |
5265 LIBS=$ac_save_LIBS | |
25897 | 5266 # We can link X programs with no special library path. |
5267 ac_x_libraries= | |
5268 else | |
40056 | 5269 echo "$as_me: failed program was:" >&5 |
5270 cat conftest.$ac_ext >&5 | |
5271 LIBS=$ac_save_LIBS | |
5272 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
25897 | 5273 do |
40056 | 5274 # Don't even attempt the hair of trying to link an X program! |
25897 | 5275 for ac_extension in a so sl; do |
40056 | 5276 if test -r $ac_dir/libXt.$ac_extension; then |
25897 | 5277 ac_x_libraries=$ac_dir |
5278 break 2 | |
5279 fi | |
5280 done | |
5281 done | |
5282 fi | |
40056 | 5283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5284 fi # $ac_x_libraries = no | |
5285 | |
5286 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
25897 | 5287 # Didn't find X anywhere. Cache the known absence of X. |
5288 ac_cv_have_x="have_x=no" | |
5289 else | |
5290 # Record where we found X for the cache. | |
5291 ac_cv_have_x="have_x=yes \ | |
5292 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
5293 fi | |
5294 fi | |
40056 | 5295 |
25897 | 5296 fi |
5297 eval "$ac_cv_have_x" | |
5298 fi # $with_x != no | |
5299 | |
5300 if test "$have_x" != yes; then | |
40056 | 5301 echo "$as_me:5301: result: $have_x" >&5 |
5302 echo "${ECHO_T}$have_x" >&6 | |
25897 | 5303 no_x=yes |
5304 else | |
5305 # If each of the values was on the command line, it overrides each guess. | |
5306 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
5307 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
5308 # Update the cache value to reflect the command line values. | |
5309 ac_cv_have_x="have_x=yes \ | |
5310 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
40056 | 5311 echo "$as_me:5311: result: libraries $x_libraries, headers $x_includes" >&5 |
5312 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
25897 | 5313 fi |
5314 | |
5315 if test "$no_x" = yes; then | |
5316 window_system=none | |
5317 else | |
5318 window_system=x11 | |
5319 fi | |
5320 | |
5321 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
5322 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
5323 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
5324 x_default_search_path="" | |
5325 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
35666 | 5326 x_search_path="\ |
5327 ${x_library}/X11/%L/%T/%N%C%S:\ | |
5328 ${x_library}/X11/%l/%T/%N%C%S:\ | |
5329 ${x_library}/X11/%T/%N%C%S:\ | |
5330 ${x_library}/X11/%L/%T/%N%S:\ | |
5331 ${x_library}/X11/%l/%T/%N%S:\ | |
5332 ${x_library}/X11/%T/%N%S" | |
25897 | 5333 if test x"${x_default_search_path}" = x; then |
5334 x_default_search_path=${x_search_path} | |
5335 else | |
5336 x_default_search_path="${x_search_path}:${x_default_search_path}" | |
5337 fi | |
5338 done | |
5339 fi | |
5340 if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
5341 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
5342 fi | |
5343 | |
5344 if test x"${x_includes}" = x; then | |
5345 bitmapdir=/usr/include/X11/bitmaps | |
5346 else | |
5347 # accumulate include directories that have X11 bitmap subdirectories | |
5348 bmd_acc="dummyval" | |
5349 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
5350 if test -d "${bmd}/X11/bitmaps"; then | |
5351 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
26502 | 5352 fi |
5353 if test -d "${bmd}/bitmaps"; then | |
25897 | 5354 bmd_acc="${bmd_acc}:${bmd}/bitmaps" |
5355 fi | |
5356 done | |
5357 if test ${bmd_acc} != "dummyval"; then | |
5358 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
5359 fi | |
5360 fi | |
5361 | |
5362 case "${window_system}" in | |
5363 x11 ) | |
5364 HAVE_X_WINDOWS=yes | |
5365 HAVE_X11=yes | |
5366 case "${with_x_toolkit}" in | |
5367 athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
5368 motif ) USE_X_TOOLKIT=MOTIF ;; | |
5369 no ) USE_X_TOOLKIT=none ;; | |
5370 * ) USE_X_TOOLKIT=maybe ;; | |
5371 esac | |
5372 ;; | |
5373 none ) | |
5374 HAVE_X_WINDOWS=no | |
5375 HAVE_X11=no | |
5376 USE_X_TOOLKIT=none | |
5377 ;; | |
5378 esac | |
5379 | |
5380 ### If we're using X11, we should use the X menu package. | |
5381 HAVE_MENUS=no | |
5382 case ${HAVE_X11} in | |
5383 yes ) HAVE_MENUS=yes ;; | |
5384 esac | |
40056 | 5385 |
25897 | 5386 if test "${opsys}" = "hpux9"; then |
5387 case "${x_libraries}" in | |
5388 *X11R4* ) | |
5389 opsysfile="s/hpux9-x11r4.h" | |
5390 ;; | |
5391 esac | |
5392 fi | |
5393 | |
5394 if test "${opsys}" = "hpux9shr"; then | |
5395 case "${x_libraries}" in | |
5396 *X11R4* ) | |
5397 opsysfile="s/hpux9shxr4.h" | |
5398 ;; | |
5399 esac | |
5400 fi | |
5401 | |
5402 ### Compute the unexec source name from the object name. | |
5403 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
5404 | |
5405 # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
5406 # Assume not, until told otherwise. | |
5407 GNU_MALLOC=yes | |
5408 doug_lea_malloc=yes | |
40056 | 5409 echo "$as_me:5409: checking for malloc_get_state" >&5 |
5410 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 | |
5411 if test "${ac_cv_func_malloc_get_state+set}" = set; then | |
5412 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5413 else | |
5414 cat >conftest.$ac_ext <<_ACEOF | |
5415 #line 5415 "configure" | |
25897 | 5416 #include "confdefs.h" |
5417 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 5418 which can conflict with char malloc_get_state (); below. */ |
25897 | 5419 #include <assert.h> |
5420 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 5421 #ifdef __cplusplus |
5422 extern "C" | |
5423 #endif | |
25897 | 5424 /* We use char because int might match the return type of a gcc2 |
40056 | 5425 builtin and then its argument prototype would still apply. */ |
5426 char malloc_get_state (); | |
5427 char (*f) (); | |
5428 | |
5429 int | |
5430 main () | |
5431 { | |
25897 | 5432 /* The GNU C library defines this for functions which it implements |
5433 to always fail with ENOSYS. Some functions are actually named | |
5434 something starting with __ and the normal name is an alias. */ | |
5435 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
5436 choke me | |
5437 #else | |
40056 | 5438 f = malloc_get_state; |
5439 #endif | |
5440 | |
5441 ; | |
5442 return 0; | |
5443 } | |
5444 _ACEOF | |
5445 rm -f conftest.$ac_objext conftest$ac_exeext | |
5446 if { (eval echo "$as_me:5446: \"$ac_link\"") >&5 | |
5447 (eval $ac_link) 2>&5 | |
5448 ac_status=$? | |
5449 echo "$as_me:5449: \$? = $ac_status" >&5 | |
5450 (exit $ac_status); } && | |
5451 { ac_try='test -s conftest$ac_exeext' | |
5452 { (eval echo "$as_me:5452: \"$ac_try\"") >&5 | |
5453 (eval $ac_try) 2>&5 | |
5454 ac_status=$? | |
5455 echo "$as_me:5455: \$? = $ac_status" >&5 | |
5456 (exit $ac_status); }; }; then | |
5457 ac_cv_func_malloc_get_state=yes | |
5458 else | |
5459 echo "$as_me: failed program was:" >&5 | |
5460 cat conftest.$ac_ext >&5 | |
5461 ac_cv_func_malloc_get_state=no | |
5462 fi | |
5463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5464 fi | |
5465 echo "$as_me:5465: result: $ac_cv_func_malloc_get_state" >&5 | |
5466 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 | |
5467 if test $ac_cv_func_malloc_get_state = yes; then | |
25897 | 5468 : |
5469 else | |
40056 | 5470 doug_lea_malloc=no |
5471 fi | |
5472 | |
5473 echo "$as_me:5473: checking for malloc_set_state" >&5 | |
5474 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 | |
5475 if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
5476 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5477 else | |
5478 cat >conftest.$ac_ext <<_ACEOF | |
5479 #line 5479 "configure" | |
25897 | 5480 #include "confdefs.h" |
5481 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 5482 which can conflict with char malloc_set_state (); below. */ |
25897 | 5483 #include <assert.h> |
5484 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 5485 #ifdef __cplusplus |
5486 extern "C" | |
5487 #endif | |
25897 | 5488 /* We use char because int might match the return type of a gcc2 |
40056 | 5489 builtin and then its argument prototype would still apply. */ |
5490 char malloc_set_state (); | |
5491 char (*f) (); | |
5492 | |
5493 int | |
5494 main () | |
5495 { | |
25897 | 5496 /* The GNU C library defines this for functions which it implements |
5497 to always fail with ENOSYS. Some functions are actually named | |
5498 something starting with __ and the normal name is an alias. */ | |
5499 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
5500 choke me | |
5501 #else | |
40056 | 5502 f = malloc_set_state; |
5503 #endif | |
5504 | |
5505 ; | |
5506 return 0; | |
5507 } | |
5508 _ACEOF | |
5509 rm -f conftest.$ac_objext conftest$ac_exeext | |
5510 if { (eval echo "$as_me:5510: \"$ac_link\"") >&5 | |
5511 (eval $ac_link) 2>&5 | |
5512 ac_status=$? | |
5513 echo "$as_me:5513: \$? = $ac_status" >&5 | |
5514 (exit $ac_status); } && | |
5515 { ac_try='test -s conftest$ac_exeext' | |
5516 { (eval echo "$as_me:5516: \"$ac_try\"") >&5 | |
5517 (eval $ac_try) 2>&5 | |
5518 ac_status=$? | |
5519 echo "$as_me:5519: \$? = $ac_status" >&5 | |
5520 (exit $ac_status); }; }; then | |
5521 ac_cv_func_malloc_set_state=yes | |
5522 else | |
5523 echo "$as_me: failed program was:" >&5 | |
5524 cat conftest.$ac_ext >&5 | |
5525 ac_cv_func_malloc_set_state=no | |
5526 fi | |
5527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5528 fi | |
5529 echo "$as_me:5529: result: $ac_cv_func_malloc_set_state" >&5 | |
5530 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 | |
5531 if test $ac_cv_func_malloc_set_state = yes; then | |
25897 | 5532 : |
5533 else | |
40056 | 5534 doug_lea_malloc=no |
5535 fi | |
5536 | |
5537 echo "$as_me:5537: checking whether __after_morecore_hook exists" >&5 | |
5538 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 | |
5539 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
5540 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5541 else | |
5542 cat >conftest.$ac_ext <<_ACEOF | |
5543 #line 5543 "configure" | |
25897 | 5544 #include "confdefs.h" |
5545 extern void (* __after_morecore_hook)(); | |
40056 | 5546 int |
5547 main () | |
5548 { | |
25897 | 5549 __after_morecore_hook = 0 |
40056 | 5550 ; |
5551 return 0; | |
5552 } | |
5553 _ACEOF | |
5554 rm -f conftest.$ac_objext conftest$ac_exeext | |
5555 if { (eval echo "$as_me:5555: \"$ac_link\"") >&5 | |
5556 (eval $ac_link) 2>&5 | |
5557 ac_status=$? | |
5558 echo "$as_me:5558: \$? = $ac_status" >&5 | |
5559 (exit $ac_status); } && | |
5560 { ac_try='test -s conftest$ac_exeext' | |
5561 { (eval echo "$as_me:5561: \"$ac_try\"") >&5 | |
5562 (eval $ac_try) 2>&5 | |
5563 ac_status=$? | |
5564 echo "$as_me:5564: \$? = $ac_status" >&5 | |
5565 (exit $ac_status); }; }; then | |
25897 | 5566 emacs_cv_var___after_morecore_hook=yes |
5567 else | |
40056 | 5568 echo "$as_me: failed program was:" >&5 |
5569 cat conftest.$ac_ext >&5 | |
5570 emacs_cv_var___after_morecore_hook=no | |
5571 fi | |
5572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5573 fi | |
5574 echo "$as_me:5574: result: $emacs_cv_var___after_morecore_hook" >&5 | |
5575 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 | |
25897 | 5576 if test $emacs_cv_var___after_morecore_hook = no; then |
5577 doug_lea_malloc=no | |
5578 fi | |
5579 if test "${system_malloc}" = "yes"; then | |
5580 GNU_MALLOC=no | |
5581 GNU_MALLOC_reason=" | |
5582 (The GNU allocators don't work with this system configuration.)" | |
5583 fi | |
5584 if test "$doug_lea_malloc" = "yes" ; then | |
5585 if test "$GNU_MALLOC" = yes ; then | |
5586 GNU_MALLOC_reason=" | |
5587 (Using Doug Lea's new malloc from the GNU C Library.)" | |
5588 fi | |
40056 | 5589 cat >>confdefs.h <<\EOF |
25897 | 5590 #define DOUG_LEA_MALLOC 1 |
5591 EOF | |
5592 | |
5593 fi | |
5594 | |
5595 if test x"${REL_ALLOC}" = x; then | |
5596 REL_ALLOC=${GNU_MALLOC} | |
5597 fi | |
5598 | |
40056 | 5599 # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5600 | |
5601 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5602 inttypes.h stdint.h unistd.h | |
31417 | 5603 do |
40056 | 5604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5605 echo "$as_me:5605: checking for $ac_header" >&5 | |
5606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5607 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5608 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5609 else | |
5610 cat >conftest.$ac_ext <<_ACEOF | |
5611 #line 5611 "configure" | |
5612 #include "confdefs.h" | |
5613 $ac_includes_default | |
5614 #include <$ac_header> | |
5615 _ACEOF | |
5616 rm -f conftest.$ac_objext | |
5617 if { (eval echo "$as_me:5617: \"$ac_compile\"") >&5 | |
5618 (eval $ac_compile) 2>&5 | |
5619 ac_status=$? | |
5620 echo "$as_me:5620: \$? = $ac_status" >&5 | |
5621 (exit $ac_status); } && | |
5622 { ac_try='test -s conftest.$ac_objext' | |
5623 { (eval echo "$as_me:5623: \"$ac_try\"") >&5 | |
5624 (eval $ac_try) 2>&5 | |
5625 ac_status=$? | |
5626 echo "$as_me:5626: \$? = $ac_status" >&5 | |
5627 (exit $ac_status); }; }; then | |
5628 eval "$as_ac_Header=yes" | |
5629 else | |
5630 echo "$as_me: failed program was:" >&5 | |
5631 cat conftest.$ac_ext >&5 | |
5632 eval "$as_ac_Header=no" | |
5633 fi | |
5634 rm -f conftest.$ac_objext conftest.$ac_ext | |
5635 fi | |
5636 echo "$as_me:5636: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5638 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5639 cat >>confdefs.h <<EOF | |
5640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5641 EOF | |
5642 | |
5643 fi | |
5644 done | |
5645 | |
5646 for ac_header in stdlib.h unistd.h | |
5647 do | |
5648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5649 echo "$as_me:5649: checking for $ac_header" >&5 | |
5650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5651 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5652 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5653 else | |
5654 cat >conftest.$ac_ext <<_ACEOF | |
5655 #line 5655 "configure" | |
5656 #include "confdefs.h" | |
5657 #include <$ac_header> | |
5658 _ACEOF | |
5659 if { (eval echo "$as_me:5659: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5661 ac_status=$? | |
5662 egrep -v '^ *\+' conftest.er1 >conftest.err | |
5663 rm -f conftest.er1 | |
5664 cat conftest.err >&5 | |
5665 echo "$as_me:5665: \$? = $ac_status" >&5 | |
5666 (exit $ac_status); } >/dev/null; then | |
5667 if test -s conftest.err; then | |
5668 ac_cpp_err=$ac_c_preproc_warn_flag | |
5669 else | |
5670 ac_cpp_err= | |
5671 fi | |
5672 else | |
5673 ac_cpp_err=yes | |
5674 fi | |
5675 if test -z "$ac_cpp_err"; then | |
5676 eval "$as_ac_Header=yes" | |
5677 else | |
5678 echo "$as_me: failed program was:" >&5 | |
31417 | 5679 cat conftest.$ac_ext >&5 |
40056 | 5680 eval "$as_ac_Header=no" |
5681 fi | |
5682 rm -f conftest.err conftest.$ac_ext | |
5683 fi | |
5684 echo "$as_me:5684: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5686 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5687 cat >>confdefs.h <<EOF | |
5688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5689 EOF | |
5690 | |
31417 | 5691 fi |
5692 done | |
5693 | |
5694 for ac_func in getpagesize | |
5695 do | |
40056 | 5696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5697 echo "$as_me:5697: checking for $ac_func" >&5 | |
5698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5699 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5700 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5701 else | |
5702 cat >conftest.$ac_ext <<_ACEOF | |
5703 #line 5703 "configure" | |
31417 | 5704 #include "confdefs.h" |
5705 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 5706 which can conflict with char $ac_func (); below. */ |
31417 | 5707 #include <assert.h> |
5708 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 5709 #ifdef __cplusplus |
5710 extern "C" | |
5711 #endif | |
31417 | 5712 /* We use char because int might match the return type of a gcc2 |
40056 | 5713 builtin and then its argument prototype would still apply. */ |
5714 char $ac_func (); | |
5715 char (*f) (); | |
5716 | |
5717 int | |
5718 main () | |
5719 { | |
31417 | 5720 /* The GNU C library defines this for functions which it implements |
5721 to always fail with ENOSYS. Some functions are actually named | |
5722 something starting with __ and the normal name is an alias. */ | |
5723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5724 choke me | |
5725 #else | |
40056 | 5726 f = $ac_func; |
5727 #endif | |
5728 | |
5729 ; | |
5730 return 0; | |
5731 } | |
5732 _ACEOF | |
5733 rm -f conftest.$ac_objext conftest$ac_exeext | |
5734 if { (eval echo "$as_me:5734: \"$ac_link\"") >&5 | |
5735 (eval $ac_link) 2>&5 | |
5736 ac_status=$? | |
5737 echo "$as_me:5737: \$? = $ac_status" >&5 | |
5738 (exit $ac_status); } && | |
5739 { ac_try='test -s conftest$ac_exeext' | |
5740 { (eval echo "$as_me:5740: \"$ac_try\"") >&5 | |
5741 (eval $ac_try) 2>&5 | |
5742 ac_status=$? | |
5743 echo "$as_me:5743: \$? = $ac_status" >&5 | |
5744 (exit $ac_status); }; }; then | |
5745 eval "$as_ac_var=yes" | |
5746 else | |
5747 echo "$as_me: failed program was:" >&5 | |
5748 cat conftest.$ac_ext >&5 | |
5749 eval "$as_ac_var=no" | |
5750 fi | |
5751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5752 fi | |
5753 echo "$as_me:5753: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5755 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5756 cat >>confdefs.h <<EOF | |
5757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5758 EOF | |
5759 | |
31417 | 5760 fi |
5761 done | |
5762 | |
40056 | 5763 echo "$as_me:5763: checking for working mmap" >&5 |
5764 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
5765 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
5766 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31417 | 5767 else |
5768 if test "$cross_compiling" = yes; then | |
5769 ac_cv_func_mmap_fixed_mapped=no | |
5770 else | |
40056 | 5771 cat >conftest.$ac_ext <<_ACEOF |
5772 #line 5772 "configure" | |
5773 #include "confdefs.h" | |
5774 $ac_includes_default | |
31417 | 5775 /* Thanks to Mike Haertel and Jim Avera for this test. |
5776 Here is a matrix of mmap possibilities: | |
5777 mmap private not fixed | |
5778 mmap private fixed at somewhere currently unmapped | |
5779 mmap private fixed at somewhere already mapped | |
5780 mmap shared not fixed | |
5781 mmap shared fixed at somewhere currently unmapped | |
5782 mmap shared fixed at somewhere already mapped | |
5783 For private mappings, we should verify that changes cannot be read() | |
5784 back from the file, nor mmap's back from the file at a different | |
5785 address. (There have been systems where private was not correctly | |
5786 implemented like the infamous i386 svr4.0, and systems where the | |
31512 | 5787 VM page cache was not coherent with the file system buffer cache |
31417 | 5788 like early versions of FreeBSD and possibly contemporary NetBSD.) |
5789 For shared mappings, we should conversely verify that changes get | |
5790 propogated back to all the places they're supposed to be. | |
5791 | |
5792 Grep wants private fixed already mapped. | |
5793 The main things grep needs to know about mmap are: | |
5794 * does it exist and is it safe to write into the mmap'd area | |
5795 * how to use it (BSD variants) */ | |
40056 | 5796 |
31417 | 5797 #include <fcntl.h> |
5798 #include <sys/mman.h> | |
5799 | |
40056 | 5800 #if !STDC_HEADERS && !HAVE_STDLIB_H |
31512 | 5801 char *malloc (); |
5802 #endif | |
5803 | |
31417 | 5804 /* This mess was copied from the GNU getpagesize.h. */ |
31512 | 5805 #if !HAVE_GETPAGESIZE |
31417 | 5806 /* Assume that all systems that can run configure have sys/param.h. */ |
31512 | 5807 # if !HAVE_SYS_PARAM_H |
31417 | 5808 # define HAVE_SYS_PARAM_H 1 |
5809 # endif | |
5810 | |
5811 # ifdef _SC_PAGESIZE | |
5812 # define getpagesize() sysconf(_SC_PAGESIZE) | |
5813 # else /* no _SC_PAGESIZE */ | |
31512 | 5814 # if HAVE_SYS_PARAM_H |
31417 | 5815 # include <sys/param.h> |
5816 # ifdef EXEC_PAGESIZE | |
5817 # define getpagesize() EXEC_PAGESIZE | |
5818 # else /* no EXEC_PAGESIZE */ | |
5819 # ifdef NBPG | |
5820 # define getpagesize() NBPG * CLSIZE | |
5821 # ifndef CLSIZE | |
5822 # define CLSIZE 1 | |
5823 # endif /* no CLSIZE */ | |
5824 # else /* no NBPG */ | |
5825 # ifdef NBPC | |
5826 # define getpagesize() NBPC | |
5827 # else /* no NBPC */ | |
5828 # ifdef PAGESIZE | |
5829 # define getpagesize() PAGESIZE | |
5830 # endif /* PAGESIZE */ | |
5831 # endif /* no NBPC */ | |
5832 # endif /* no NBPG */ | |
5833 # endif /* no EXEC_PAGESIZE */ | |
5834 # else /* no HAVE_SYS_PARAM_H */ | |
5835 # define getpagesize() 8192 /* punt totally */ | |
5836 # endif /* no HAVE_SYS_PARAM_H */ | |
5837 # endif /* no _SC_PAGESIZE */ | |
5838 | |
5839 #endif /* no HAVE_GETPAGESIZE */ | |
5840 | |
5841 int | |
31512 | 5842 main () |
31417 | 5843 { |
31512 | 5844 char *data, *data2, *data3; |
5845 int i, pagesize; | |
5846 int fd; | |
5847 | |
5848 pagesize = getpagesize (); | |
5849 | |
5850 /* First, make a file with some known garbage in it. */ | |
5851 data = (char *) malloc (pagesize); | |
5852 if (!data) | |
5853 exit (1); | |
5854 for (i = 0; i < pagesize; ++i) | |
5855 *(data + i) = rand (); | |
5856 umask (0); | |
40056 | 5857 fd = creat ("conftest.mmap", 0600); |
31512 | 5858 if (fd < 0) |
5859 exit (1); | |
5860 if (write (fd, data, pagesize) != pagesize) | |
5861 exit (1); | |
5862 close (fd); | |
5863 | |
5864 /* Next, try to mmap the file at a fixed address which already has | |
5865 something else allocated at it. If we can, also make sure that | |
5866 we see the same garbage. */ | |
40056 | 5867 fd = open ("conftest.mmap", O_RDWR); |
31512 | 5868 if (fd < 0) |
5869 exit (1); | |
5870 data2 = (char *) malloc (2 * pagesize); | |
5871 if (!data2) | |
5872 exit (1); | |
5873 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
5874 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
5875 MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
5876 exit (1); | |
5877 for (i = 0; i < pagesize; ++i) | |
5878 if (*(data + i) != *(data2 + i)) | |
5879 exit (1); | |
5880 | |
5881 /* Finally, make sure that changes to the mapped area do not | |
5882 percolate back to the file as seen by read(). (This is a bug on | |
5883 some variants of i386 svr4.0.) */ | |
5884 for (i = 0; i < pagesize; ++i) | |
5885 *(data2 + i) = *(data2 + i) + 1; | |
5886 data3 = (char *) malloc (pagesize); | |
5887 if (!data3) | |
5888 exit (1); | |
5889 if (read (fd, data3, pagesize) != pagesize) | |
5890 exit (1); | |
5891 for (i = 0; i < pagesize; ++i) | |
5892 if (*(data + i) != *(data3 + i)) | |
5893 exit (1); | |
5894 close (fd); | |
5895 exit (0); | |
31417 | 5896 } |
40056 | 5897 _ACEOF |
5898 rm -f conftest$ac_exeext | |
5899 if { (eval echo "$as_me:5899: \"$ac_link\"") >&5 | |
5900 (eval $ac_link) 2>&5 | |
5901 ac_status=$? | |
5902 echo "$as_me:5902: \$? = $ac_status" >&5 | |
5903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5904 { (eval echo "$as_me:5904: \"$ac_try\"") >&5 | |
5905 (eval $ac_try) 2>&5 | |
5906 ac_status=$? | |
5907 echo "$as_me:5907: \$? = $ac_status" >&5 | |
5908 (exit $ac_status); }; }; then | |
31417 | 5909 ac_cv_func_mmap_fixed_mapped=yes |
5910 else | |
40056 | 5911 echo "$as_me: program exited with status $ac_status" >&5 |
5912 echo "$as_me: failed program was:" >&5 | |
5913 cat conftest.$ac_ext >&5 | |
5914 ac_cv_func_mmap_fixed_mapped=no | |
5915 fi | |
5916 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5917 fi | |
5918 fi | |
5919 echo "$as_me:5919: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
5920 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
31417 | 5921 if test $ac_cv_func_mmap_fixed_mapped = yes; then |
40056 | 5922 |
5923 cat >>confdefs.h <<\EOF | |
31417 | 5924 #define HAVE_MMAP 1 |
5925 EOF | |
5926 | |
5927 fi | |
40056 | 5928 rm -f conftest.mmap |
31417 | 5929 |
31607 | 5930 if test $use_mmap_for_buffers = yes; then |
5931 REL_ALLOC=no | |
31417 | 5932 fi |
5933 | |
25897 | 5934 LIBS="$libsrc_libs $LIBS" |
5935 | |
40056 | 5936 echo "$as_me:5936: checking for dnet_ntoa in -ldnet" >&5 |
5937 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
5938 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
5939 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5940 else | |
5941 ac_check_lib_save_LIBS=$LIBS | |
25897 | 5942 LIBS="-ldnet $LIBS" |
40056 | 5943 cat >conftest.$ac_ext <<_ACEOF |
5944 #line 5944 "configure" | |
5945 #include "confdefs.h" | |
5946 | |
25897 | 5947 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 5948 #ifdef __cplusplus |
5949 extern "C" | |
5950 #endif | |
25897 | 5951 /* We use char because int might match the return type of a gcc2 |
40056 | 5952 builtin and then its argument prototype would still apply. */ |
5953 char dnet_ntoa (); | |
5954 int | |
5955 main () | |
5956 { | |
5957 dnet_ntoa (); | |
5958 ; | |
5959 return 0; | |
5960 } | |
5961 _ACEOF | |
5962 rm -f conftest.$ac_objext conftest$ac_exeext | |
5963 if { (eval echo "$as_me:5963: \"$ac_link\"") >&5 | |
5964 (eval $ac_link) 2>&5 | |
5965 ac_status=$? | |
5966 echo "$as_me:5966: \$? = $ac_status" >&5 | |
5967 (exit $ac_status); } && | |
5968 { ac_try='test -s conftest$ac_exeext' | |
5969 { (eval echo "$as_me:5969: \"$ac_try\"") >&5 | |
5970 (eval $ac_try) 2>&5 | |
5971 ac_status=$? | |
5972 echo "$as_me:5972: \$? = $ac_status" >&5 | |
5973 (exit $ac_status); }; }; then | |
5974 ac_cv_lib_dnet_dnet_ntoa=yes | |
5975 else | |
5976 echo "$as_me: failed program was:" >&5 | |
5977 cat conftest.$ac_ext >&5 | |
5978 ac_cv_lib_dnet_dnet_ntoa=no | |
5979 fi | |
5980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5981 LIBS=$ac_check_lib_save_LIBS | |
5982 fi | |
5983 echo "$as_me:5983: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
5984 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
5985 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
5986 cat >>confdefs.h <<EOF | |
5987 #define HAVE_LIBDNET 1 | |
25897 | 5988 EOF |
5989 | |
5990 LIBS="-ldnet $LIBS" | |
5991 | |
40056 | 5992 fi |
5993 | |
5994 echo "$as_me:5994: checking for main in -lXbsd" >&5 | |
5995 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 | |
5996 if test "${ac_cv_lib_Xbsd_main+set}" = set; then | |
5997 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5998 else | |
5999 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6000 LIBS="-lXbsd $LIBS" |
40056 | 6001 cat >conftest.$ac_ext <<_ACEOF |
6002 #line 6002 "configure" | |
6003 #include "confdefs.h" | |
6004 | |
6005 int | |
6006 main () | |
6007 { | |
6008 main (); | |
6009 ; | |
6010 return 0; | |
6011 } | |
6012 _ACEOF | |
6013 rm -f conftest.$ac_objext conftest$ac_exeext | |
6014 if { (eval echo "$as_me:6014: \"$ac_link\"") >&5 | |
6015 (eval $ac_link) 2>&5 | |
6016 ac_status=$? | |
6017 echo "$as_me:6017: \$? = $ac_status" >&5 | |
6018 (exit $ac_status); } && | |
6019 { ac_try='test -s conftest$ac_exeext' | |
6020 { (eval echo "$as_me:6020: \"$ac_try\"") >&5 | |
6021 (eval $ac_try) 2>&5 | |
6022 ac_status=$? | |
6023 echo "$as_me:6023: \$? = $ac_status" >&5 | |
6024 (exit $ac_status); }; }; then | |
6025 ac_cv_lib_Xbsd_main=yes | |
6026 else | |
6027 echo "$as_me: failed program was:" >&5 | |
6028 cat conftest.$ac_ext >&5 | |
6029 ac_cv_lib_Xbsd_main=no | |
6030 fi | |
6031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6032 LIBS=$ac_check_lib_save_LIBS | |
6033 fi | |
6034 echo "$as_me:6034: result: $ac_cv_lib_Xbsd_main" >&5 | |
6035 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 | |
6036 if test $ac_cv_lib_Xbsd_main = yes; then | |
25897 | 6037 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" |
40056 | 6038 fi |
6039 | |
6040 echo "$as_me:6040: checking for cma_open in -lpthreads" >&5 | |
6041 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 | |
6042 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | |
6043 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6044 else | |
6045 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6046 LIBS="-lpthreads $LIBS" |
40056 | 6047 cat >conftest.$ac_ext <<_ACEOF |
6048 #line 6048 "configure" | |
6049 #include "confdefs.h" | |
6050 | |
25897 | 6051 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6052 #ifdef __cplusplus |
6053 extern "C" | |
6054 #endif | |
25897 | 6055 /* We use char because int might match the return type of a gcc2 |
40056 | 6056 builtin and then its argument prototype would still apply. */ |
6057 char cma_open (); | |
6058 int | |
6059 main () | |
6060 { | |
6061 cma_open (); | |
6062 ; | |
6063 return 0; | |
6064 } | |
6065 _ACEOF | |
6066 rm -f conftest.$ac_objext conftest$ac_exeext | |
6067 if { (eval echo "$as_me:6067: \"$ac_link\"") >&5 | |
6068 (eval $ac_link) 2>&5 | |
6069 ac_status=$? | |
6070 echo "$as_me:6070: \$? = $ac_status" >&5 | |
6071 (exit $ac_status); } && | |
6072 { ac_try='test -s conftest$ac_exeext' | |
6073 { (eval echo "$as_me:6073: \"$ac_try\"") >&5 | |
6074 (eval $ac_try) 2>&5 | |
6075 ac_status=$? | |
6076 echo "$as_me:6076: \$? = $ac_status" >&5 | |
6077 (exit $ac_status); }; }; then | |
6078 ac_cv_lib_pthreads_cma_open=yes | |
6079 else | |
6080 echo "$as_me: failed program was:" >&5 | |
6081 cat conftest.$ac_ext >&5 | |
6082 ac_cv_lib_pthreads_cma_open=no | |
6083 fi | |
6084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6085 LIBS=$ac_check_lib_save_LIBS | |
6086 fi | |
6087 echo "$as_me:6087: result: $ac_cv_lib_pthreads_cma_open" >&5 | |
6088 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 | |
6089 if test $ac_cv_lib_pthreads_cma_open = yes; then | |
6090 cat >>confdefs.h <<EOF | |
6091 #define HAVE_LIBPTHREADS 1 | |
25897 | 6092 EOF |
6093 | |
6094 LIBS="-lpthreads $LIBS" | |
6095 | |
40056 | 6096 fi |
6097 | |
6098 echo "$as_me:6098: checking for XFree86 in /usr/X386" >&5 | |
6099 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 | |
25897 | 6100 if test -d /usr/X386/include; then |
6101 HAVE_XFREE386=yes | |
6102 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
6103 else | |
6104 HAVE_XFREE386=no | |
6105 fi | |
40056 | 6106 echo "$as_me:6106: result: $HAVE_XFREE386" >&5 |
6107 echo "${ECHO_T}$HAVE_XFREE386" >&6 | |
25897 | 6108 |
6109 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | |
6110 # for the tests that follow. We set it back to REAL_CFLAGS later on. | |
6111 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6112 REAL_CPPFLAGS="$CPPFLAGS" |
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6113 |
25897 | 6114 if test "${HAVE_X11}" = "yes"; then |
6115 DEFS="$C_SWITCH_X_SITE $DEFS" | |
6116 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
6117 LIBS="$LIBX $LIBS" | |
6118 CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6119 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" |
25897 | 6120 |
6121 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
6122 # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
6123 # but it's more convenient here to set LD_RUN_PATH | |
6124 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
6125 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
6126 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
6127 export LD_RUN_PATH | |
6128 fi | |
6129 | |
6130 if test "${opsys}" = "gnu-linux"; then | |
40056 | 6131 echo "$as_me:6131: checking whether X on GNU/Linux needs -b to link" >&5 |
6132 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 | |
6133 cat >conftest.$ac_ext <<_ACEOF | |
6134 #line 6134 "configure" | |
6135 #include "confdefs.h" | |
6136 | |
6137 int | |
6138 main () | |
6139 { | |
25897 | 6140 XOpenDisplay ("foo"); |
40056 | 6141 ; |
6142 return 0; | |
6143 } | |
6144 _ACEOF | |
6145 rm -f conftest.$ac_objext conftest$ac_exeext | |
6146 if { (eval echo "$as_me:6146: \"$ac_link\"") >&5 | |
6147 (eval $ac_link) 2>&5 | |
6148 ac_status=$? | |
6149 echo "$as_me:6149: \$? = $ac_status" >&5 | |
6150 (exit $ac_status); } && | |
6151 { ac_try='test -s conftest$ac_exeext' | |
6152 { (eval echo "$as_me:6152: \"$ac_try\"") >&5 | |
6153 (eval $ac_try) 2>&5 | |
6154 ac_status=$? | |
6155 echo "$as_me:6155: \$? = $ac_status" >&5 | |
6156 (exit $ac_status); }; }; then | |
25897 | 6157 xlinux_first_failure=no |
6158 else | |
40056 | 6159 echo "$as_me: failed program was:" >&5 |
6160 cat conftest.$ac_ext >&5 | |
6161 xlinux_first_failure=yes | |
6162 fi | |
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6164 if test "${xlinux_first_failure}" = "yes"; then |
6165 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
6166 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
6167 OLD_CPPFLAGS="$CPPFLAGS" | |
6168 OLD_LIBS="$LIBS" | |
6169 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
6170 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
6171 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
6172 LIBS="$LIBS -b i486-linuxaout" | |
40056 | 6173 cat >conftest.$ac_ext <<_ACEOF |
6174 #line 6174 "configure" | |
6175 #include "confdefs.h" | |
6176 | |
6177 int | |
6178 main () | |
6179 { | |
25897 | 6180 XOpenDisplay ("foo"); |
40056 | 6181 ; |
6182 return 0; | |
6183 } | |
6184 _ACEOF | |
6185 rm -f conftest.$ac_objext conftest$ac_exeext | |
6186 if { (eval echo "$as_me:6186: \"$ac_link\"") >&5 | |
6187 (eval $ac_link) 2>&5 | |
6188 ac_status=$? | |
6189 echo "$as_me:6189: \$? = $ac_status" >&5 | |
6190 (exit $ac_status); } && | |
6191 { ac_try='test -s conftest$ac_exeext' | |
6192 { (eval echo "$as_me:6192: \"$ac_try\"") >&5 | |
6193 (eval $ac_try) 2>&5 | |
6194 ac_status=$? | |
6195 echo "$as_me:6195: \$? = $ac_status" >&5 | |
6196 (exit $ac_status); }; }; then | |
25897 | 6197 xlinux_second_failure=no |
6198 else | |
40056 | 6199 echo "$as_me: failed program was:" >&5 |
6200 cat conftest.$ac_ext >&5 | |
6201 xlinux_second_failure=yes | |
6202 fi | |
6203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6204 if test "${xlinux_second_failure}" = "yes"; then |
6205 # If we get the same failure with -b, there is no use adding -b. | |
6206 # So take it out. This plays safe. | |
6207 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
6208 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
6209 CPPFLAGS="$OLD_CPPFLAGS" | |
6210 LIBS="$OLD_LIBS" | |
40056 | 6211 echo "$as_me:6211: result: no" >&5 |
6212 echo "${ECHO_T}no" >&6 | |
25897 | 6213 else |
40056 | 6214 echo "$as_me:6214: result: yes" >&5 |
6215 echo "${ECHO_T}yes" >&6 | |
25897 | 6216 fi |
6217 else | |
40056 | 6218 echo "$as_me:6218: result: no" >&5 |
6219 echo "${ECHO_T}no" >&6 | |
25897 | 6220 fi |
6221 fi | |
6222 | |
35196 | 6223 # Reportedly, some broken Solaris systems have XKBlib.h but are missing |
6224 # header files included from there. | |
40056 | 6225 echo "$as_me:6225: checking for Xkb" >&5 |
6226 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 | |
6227 cat >conftest.$ac_ext <<_ACEOF | |
6228 #line 6228 "configure" | |
35196 | 6229 #include "confdefs.h" |
6230 #include <X11/Xlib.h> | |
6231 #include <X11/XKBlib.h> | |
40056 | 6232 int |
6233 main () | |
6234 { | |
35196 | 6235 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); |
40056 | 6236 ; |
6237 return 0; | |
6238 } | |
6239 _ACEOF | |
6240 rm -f conftest.$ac_objext conftest$ac_exeext | |
6241 if { (eval echo "$as_me:6241: \"$ac_link\"") >&5 | |
6242 (eval $ac_link) 2>&5 | |
6243 ac_status=$? | |
6244 echo "$as_me:6244: \$? = $ac_status" >&5 | |
6245 (exit $ac_status); } && | |
6246 { ac_try='test -s conftest$ac_exeext' | |
6247 { (eval echo "$as_me:6247: \"$ac_try\"") >&5 | |
6248 (eval $ac_try) 2>&5 | |
6249 ac_status=$? | |
6250 echo "$as_me:6250: \$? = $ac_status" >&5 | |
6251 (exit $ac_status); }; }; then | |
35196 | 6252 emacs_xkb=yes |
6253 else | |
40056 | 6254 echo "$as_me: failed program was:" >&5 |
6255 cat conftest.$ac_ext >&5 | |
6256 emacs_xkb=no | |
6257 fi | |
6258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6259 echo "$as_me:6259: result: $emacs_xkb" >&5 | |
6260 echo "${ECHO_T}$emacs_xkb" >&6 | |
35196 | 6261 if test $emacs_xkb = yes; then |
40056 | 6262 cat >>confdefs.h <<\EOF |
35196 | 6263 #define HAVE_XKBGETKEYBOARD 1 |
6264 EOF | |
6265 | |
6266 fi | |
6267 | |
40056 | 6268 for ac_func in XrmSetDatabase XScreenResourceString \ |
25897 | 6269 XScreenNumberOfScreen XSetWMProtocols |
6270 do | |
40056 | 6271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6272 echo "$as_me:6272: checking for $ac_func" >&5 | |
6273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6274 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6275 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6276 else | |
6277 cat >conftest.$ac_ext <<_ACEOF | |
6278 #line 6278 "configure" | |
25897 | 6279 #include "confdefs.h" |
6280 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 6281 which can conflict with char $ac_func (); below. */ |
25897 | 6282 #include <assert.h> |
6283 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 6284 #ifdef __cplusplus |
6285 extern "C" | |
6286 #endif | |
25897 | 6287 /* We use char because int might match the return type of a gcc2 |
40056 | 6288 builtin and then its argument prototype would still apply. */ |
6289 char $ac_func (); | |
6290 char (*f) (); | |
6291 | |
6292 int | |
6293 main () | |
6294 { | |
25897 | 6295 /* The GNU C library defines this for functions which it implements |
6296 to always fail with ENOSYS. Some functions are actually named | |
6297 something starting with __ and the normal name is an alias. */ | |
6298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6299 choke me | |
6300 #else | |
40056 | 6301 f = $ac_func; |
6302 #endif | |
6303 | |
6304 ; | |
6305 return 0; | |
6306 } | |
6307 _ACEOF | |
6308 rm -f conftest.$ac_objext conftest$ac_exeext | |
6309 if { (eval echo "$as_me:6309: \"$ac_link\"") >&5 | |
6310 (eval $ac_link) 2>&5 | |
6311 ac_status=$? | |
6312 echo "$as_me:6312: \$? = $ac_status" >&5 | |
6313 (exit $ac_status); } && | |
6314 { ac_try='test -s conftest$ac_exeext' | |
6315 { (eval echo "$as_me:6315: \"$ac_try\"") >&5 | |
6316 (eval $ac_try) 2>&5 | |
6317 ac_status=$? | |
6318 echo "$as_me:6318: \$? = $ac_status" >&5 | |
6319 (exit $ac_status); }; }; then | |
6320 eval "$as_ac_var=yes" | |
6321 else | |
6322 echo "$as_me: failed program was:" >&5 | |
6323 cat conftest.$ac_ext >&5 | |
6324 eval "$as_ac_var=no" | |
6325 fi | |
6326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6327 fi | |
6328 echo "$as_me:6328: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6330 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6331 cat >>confdefs.h <<EOF | |
6332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6333 EOF | |
6334 | |
25897 | 6335 fi |
6336 done | |
6337 | |
6338 fi | |
6339 | |
6340 if test "${window_system}" = "x11"; then | |
40056 | 6341 echo "$as_me:6341: checking X11 version 6" >&5 |
6342 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 | |
6343 if test "${emacs_cv_x11_version_6+set}" = set; then | |
6344 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6345 else | |
6346 cat >conftest.$ac_ext <<_ACEOF | |
6347 #line 6347 "configure" | |
25897 | 6348 #include "confdefs.h" |
6349 #include <X11/Xlib.h> | |
40056 | 6350 int |
6351 main () | |
6352 { | |
25897 | 6353 #if XlibSpecificationRelease < 6 |
6354 fail; | |
6355 #endif | |
6356 | |
40056 | 6357 ; |
6358 return 0; | |
6359 } | |
6360 _ACEOF | |
6361 rm -f conftest.$ac_objext conftest$ac_exeext | |
6362 if { (eval echo "$as_me:6362: \"$ac_link\"") >&5 | |
6363 (eval $ac_link) 2>&5 | |
6364 ac_status=$? | |
6365 echo "$as_me:6365: \$? = $ac_status" >&5 | |
6366 (exit $ac_status); } && | |
6367 { ac_try='test -s conftest$ac_exeext' | |
6368 { (eval echo "$as_me:6368: \"$ac_try\"") >&5 | |
6369 (eval $ac_try) 2>&5 | |
6370 ac_status=$? | |
6371 echo "$as_me:6371: \$? = $ac_status" >&5 | |
6372 (exit $ac_status); }; }; then | |
25897 | 6373 emacs_cv_x11_version_6=yes |
6374 else | |
40056 | 6375 echo "$as_me: failed program was:" >&5 |
6376 cat conftest.$ac_ext >&5 | |
6377 emacs_cv_x11_version_6=no | |
6378 fi | |
6379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6380 fi |
6381 | |
6382 if test $emacs_cv_x11_version_6 = yes; then | |
40056 | 6383 echo "$as_me:6383: result: 6 or newer" >&5 |
6384 echo "${ECHO_T}6 or newer" >&6 | |
6385 cat >>confdefs.h <<\EOF | |
25897 | 6386 #define HAVE_X11R6 1 |
6387 EOF | |
6388 | |
6389 else | |
40056 | 6390 echo "$as_me:6390: result: before 6" >&5 |
6391 echo "${ECHO_T}before 6" >&6 | |
25897 | 6392 fi |
6393 fi | |
6394 | |
6395 if test "${window_system}" = "x11"; then | |
40056 | 6396 echo "$as_me:6396: checking X11 version 5" >&5 |
6397 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 | |
6398 if test "${emacs_cv_x11_version_5+set}" = set; then | |
6399 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6400 else | |
6401 cat >conftest.$ac_ext <<_ACEOF | |
6402 #line 6402 "configure" | |
25897 | 6403 #include "confdefs.h" |
6404 #include <X11/Xlib.h> | |
40056 | 6405 int |
6406 main () | |
6407 { | |
25897 | 6408 #if XlibSpecificationRelease < 5 |
6409 fail; | |
6410 #endif | |
6411 | |
40056 | 6412 ; |
6413 return 0; | |
6414 } | |
6415 _ACEOF | |
6416 rm -f conftest.$ac_objext conftest$ac_exeext | |
6417 if { (eval echo "$as_me:6417: \"$ac_link\"") >&5 | |
6418 (eval $ac_link) 2>&5 | |
6419 ac_status=$? | |
6420 echo "$as_me:6420: \$? = $ac_status" >&5 | |
6421 (exit $ac_status); } && | |
6422 { ac_try='test -s conftest$ac_exeext' | |
6423 { (eval echo "$as_me:6423: \"$ac_try\"") >&5 | |
6424 (eval $ac_try) 2>&5 | |
6425 ac_status=$? | |
6426 echo "$as_me:6426: \$? = $ac_status" >&5 | |
6427 (exit $ac_status); }; }; then | |
25897 | 6428 emacs_cv_x11_version_5=yes |
6429 else | |
40056 | 6430 echo "$as_me: failed program was:" >&5 |
6431 cat conftest.$ac_ext >&5 | |
6432 emacs_cv_x11_version_5=no | |
6433 fi | |
6434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6435 fi |
6436 | |
6437 if test $emacs_cv_x11_version_5 = yes; then | |
40056 | 6438 echo "$as_me:6438: result: 5 or newer" >&5 |
6439 echo "${ECHO_T}5 or newer" >&6 | |
25897 | 6440 HAVE_X11R5=yes |
40056 | 6441 cat >>confdefs.h <<\EOF |
25897 | 6442 #define HAVE_X11R5 1 |
6443 EOF | |
6444 | |
6445 else | |
6446 HAVE_X11R5=no | |
40056 | 6447 echo "$as_me:6447: result: before 5" >&5 |
6448 echo "${ECHO_T}before 5" >&6 | |
25897 | 6449 fi |
6450 fi | |
6451 | |
6452 if test x"${USE_X_TOOLKIT}" = xmaybe; then | |
6453 if test x"${HAVE_X11R5}" = xyes; then | |
40056 | 6454 echo "$as_me:6454: checking X11 version 5 with Xaw" >&5 |
6455 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 | |
6456 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then | |
6457 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6458 else | |
6459 cat >conftest.$ac_ext <<_ACEOF | |
6460 #line 6460 "configure" | |
25897 | 6461 #include "confdefs.h" |
6462 | |
6463 #include <X11/Intrinsic.h> | |
6464 #include <X11/Xaw/Simple.h> | |
40056 | 6465 int |
6466 main () | |
6467 { | |
6468 | |
6469 ; | |
6470 return 0; | |
6471 } | |
6472 _ACEOF | |
6473 rm -f conftest.$ac_objext conftest$ac_exeext | |
6474 if { (eval echo "$as_me:6474: \"$ac_link\"") >&5 | |
6475 (eval $ac_link) 2>&5 | |
6476 ac_status=$? | |
6477 echo "$as_me:6477: \$? = $ac_status" >&5 | |
6478 (exit $ac_status); } && | |
6479 { ac_try='test -s conftest$ac_exeext' | |
6480 { (eval echo "$as_me:6480: \"$ac_try\"") >&5 | |
6481 (eval $ac_try) 2>&5 | |
6482 ac_status=$? | |
6483 echo "$as_me:6483: \$? = $ac_status" >&5 | |
6484 (exit $ac_status); }; }; then | |
25897 | 6485 emacs_cv_x11_version_5_with_xaw=yes |
6486 else | |
40056 | 6487 echo "$as_me: failed program was:" >&5 |
6488 cat conftest.$ac_ext >&5 | |
6489 emacs_cv_x11_version_5_with_xaw=no | |
6490 fi | |
6491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6492 fi |
6493 | |
6494 if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
40056 | 6495 echo "$as_me:6495: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
6496 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 | |
25897 | 6497 USE_X_TOOLKIT=LUCID |
6498 else | |
40056 | 6499 echo "$as_me:6499: result: before 5 or no Xaw; do not use toolkit by default" >&5 |
6500 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 | |
25897 | 6501 USE_X_TOOLKIT=none |
6502 fi | |
6503 else | |
6504 USE_X_TOOLKIT=none | |
6505 fi | |
6506 fi | |
6507 | |
6508 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
6509 | |
6510 if test "${USE_X_TOOLKIT}" != "none"; then | |
40056 | 6511 echo "$as_me:6511: checking X11 toolkit version" >&5 |
6512 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 | |
6513 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | |
6514 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6515 else | |
6516 cat >conftest.$ac_ext <<_ACEOF | |
6517 #line 6517 "configure" | |
25897 | 6518 #include "confdefs.h" |
6519 #include <X11/Intrinsic.h> | |
40056 | 6520 int |
6521 main () | |
6522 { | |
25897 | 6523 #if XtSpecificationRelease < 6 |
6524 fail; | |
6525 #endif | |
6526 | |
40056 | 6527 ; |
6528 return 0; | |
6529 } | |
6530 _ACEOF | |
6531 rm -f conftest.$ac_objext conftest$ac_exeext | |
6532 if { (eval echo "$as_me:6532: \"$ac_link\"") >&5 | |
6533 (eval $ac_link) 2>&5 | |
6534 ac_status=$? | |
6535 echo "$as_me:6535: \$? = $ac_status" >&5 | |
6536 (exit $ac_status); } && | |
6537 { ac_try='test -s conftest$ac_exeext' | |
6538 { (eval echo "$as_me:6538: \"$ac_try\"") >&5 | |
6539 (eval $ac_try) 2>&5 | |
6540 ac_status=$? | |
6541 echo "$as_me:6541: \$? = $ac_status" >&5 | |
6542 (exit $ac_status); }; }; then | |
25897 | 6543 emacs_cv_x11_toolkit_version_6=yes |
6544 else | |
40056 | 6545 echo "$as_me: failed program was:" >&5 |
6546 cat conftest.$ac_ext >&5 | |
6547 emacs_cv_x11_toolkit_version_6=no | |
6548 fi | |
6549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6550 fi |
6551 | |
6552 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
6553 if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
40056 | 6554 echo "$as_me:6554: result: 6 or newer" >&5 |
6555 echo "${ECHO_T}6 or newer" >&6 | |
6556 cat >>confdefs.h <<\EOF | |
25897 | 6557 #define HAVE_X11XTR6 1 |
6558 EOF | |
6559 | |
6560 else | |
40056 | 6561 echo "$as_me:6561: result: before 6" >&5 |
6562 echo "${ECHO_T}before 6" >&6 | |
25897 | 6563 fi |
6564 | |
6565 OLDLIBS="$LIBS" | |
6566 if test x$HAVE_X11XTR6 = xyes; then | |
6567 LIBS="-lXt -lSM -lICE $LIBS" | |
6568 else | |
6569 LIBS="-lXt $LIBS" | |
6570 fi | |
40056 | 6571 |
6572 echo "$as_me:6572: checking for XmuConvertStandardSelection in -lXmu" >&5 | |
6573 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 | |
6574 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | |
6575 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6576 else | |
6577 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6578 LIBS="-lXmu $LIBS" |
40056 | 6579 cat >conftest.$ac_ext <<_ACEOF |
6580 #line 6580 "configure" | |
6581 #include "confdefs.h" | |
6582 | |
25897 | 6583 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6584 #ifdef __cplusplus |
6585 extern "C" | |
6586 #endif | |
25897 | 6587 /* We use char because int might match the return type of a gcc2 |
40056 | 6588 builtin and then its argument prototype would still apply. */ |
6589 char XmuConvertStandardSelection (); | |
6590 int | |
6591 main () | |
6592 { | |
6593 XmuConvertStandardSelection (); | |
6594 ; | |
6595 return 0; | |
6596 } | |
6597 _ACEOF | |
6598 rm -f conftest.$ac_objext conftest$ac_exeext | |
6599 if { (eval echo "$as_me:6599: \"$ac_link\"") >&5 | |
6600 (eval $ac_link) 2>&5 | |
6601 ac_status=$? | |
6602 echo "$as_me:6602: \$? = $ac_status" >&5 | |
6603 (exit $ac_status); } && | |
6604 { ac_try='test -s conftest$ac_exeext' | |
6605 { (eval echo "$as_me:6605: \"$ac_try\"") >&5 | |
6606 (eval $ac_try) 2>&5 | |
6607 ac_status=$? | |
6608 echo "$as_me:6608: \$? = $ac_status" >&5 | |
6609 (exit $ac_status); }; }; then | |
6610 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | |
6611 else | |
6612 echo "$as_me: failed program was:" >&5 | |
6613 cat conftest.$ac_ext >&5 | |
6614 ac_cv_lib_Xmu_XmuConvertStandardSelection=no | |
6615 fi | |
6616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6617 LIBS=$ac_check_lib_save_LIBS | |
6618 fi | |
6619 echo "$as_me:6619: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 | |
6620 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 | |
6621 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | |
6622 cat >>confdefs.h <<EOF | |
6623 #define HAVE_LIBXMU 1 | |
25897 | 6624 EOF |
6625 | |
6626 LIBS="-lXmu $LIBS" | |
6627 | |
6628 fi | |
6629 | |
35206 | 6630 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" |
6631 fi | |
6632 | |
6633 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
6634 if test "${HAVE_X11}" = "yes"; then | |
6635 if test "${USE_X_TOOLKIT}" != "none"; then | |
40056 | 6636 |
6637 echo "$as_me:6637: checking for XShapeQueryExtension in -lXext" >&5 | |
6638 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
6639 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
6640 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6641 else | |
6642 ac_check_lib_save_LIBS=$LIBS | |
35206 | 6643 LIBS="-lXext $LIBS" |
40056 | 6644 cat >conftest.$ac_ext <<_ACEOF |
6645 #line 6645 "configure" | |
6646 #include "confdefs.h" | |
6647 | |
35206 | 6648 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6649 #ifdef __cplusplus |
6650 extern "C" | |
6651 #endif | |
35206 | 6652 /* We use char because int might match the return type of a gcc2 |
40056 | 6653 builtin and then its argument prototype would still apply. */ |
6654 char XShapeQueryExtension (); | |
6655 int | |
6656 main () | |
6657 { | |
6658 XShapeQueryExtension (); | |
6659 ; | |
6660 return 0; | |
6661 } | |
6662 _ACEOF | |
6663 rm -f conftest.$ac_objext conftest$ac_exeext | |
6664 if { (eval echo "$as_me:6664: \"$ac_link\"") >&5 | |
6665 (eval $ac_link) 2>&5 | |
6666 ac_status=$? | |
6667 echo "$as_me:6667: \$? = $ac_status" >&5 | |
6668 (exit $ac_status); } && | |
6669 { ac_try='test -s conftest$ac_exeext' | |
6670 { (eval echo "$as_me:6670: \"$ac_try\"") >&5 | |
6671 (eval $ac_try) 2>&5 | |
6672 ac_status=$? | |
6673 echo "$as_me:6673: \$? = $ac_status" >&5 | |
6674 (exit $ac_status); }; }; then | |
6675 ac_cv_lib_Xext_XShapeQueryExtension=yes | |
6676 else | |
6677 echo "$as_me: failed program was:" >&5 | |
6678 cat conftest.$ac_ext >&5 | |
6679 ac_cv_lib_Xext_XShapeQueryExtension=no | |
6680 fi | |
6681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6682 LIBS=$ac_check_lib_save_LIBS | |
6683 fi | |
6684 echo "$as_me:6684: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
6685 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
6686 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
6687 cat >>confdefs.h <<EOF | |
6688 #define HAVE_LIBXEXT 1 | |
35206 | 6689 EOF |
6690 | |
6691 LIBS="-lXext $LIBS" | |
6692 | |
6693 fi | |
6694 | |
6695 fi | |
25897 | 6696 fi |
6697 | |
6698 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
40056 | 6699 echo "$as_me:6699: checking for Motif version 2.1" >&5 |
6700 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 | |
6701 if test "${emacs_cv_motif_version_2_1+set}" = set; then | |
6702 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6703 else | |
6704 cat >conftest.$ac_ext <<_ACEOF | |
6705 #line 6705 "configure" | |
25897 | 6706 #include "confdefs.h" |
6707 #include <Xm/Xm.h> | |
40056 | 6708 int |
6709 main () | |
6710 { | |
25897 | 6711 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
6712 int x = 5; | |
6713 #else | |
6714 Motif version prior to 2.1. | |
6715 #endif | |
40056 | 6716 ; |
6717 return 0; | |
6718 } | |
6719 _ACEOF | |
6720 rm -f conftest.$ac_objext | |
6721 if { (eval echo "$as_me:6721: \"$ac_compile\"") >&5 | |
6722 (eval $ac_compile) 2>&5 | |
6723 ac_status=$? | |
6724 echo "$as_me:6724: \$? = $ac_status" >&5 | |
6725 (exit $ac_status); } && | |
6726 { ac_try='test -s conftest.$ac_objext' | |
6727 { (eval echo "$as_me:6727: \"$ac_try\"") >&5 | |
6728 (eval $ac_try) 2>&5 | |
6729 ac_status=$? | |
6730 echo "$as_me:6730: \$? = $ac_status" >&5 | |
6731 (exit $ac_status); }; }; then | |
25897 | 6732 emacs_cv_motif_version_2_1=yes |
6733 else | |
40056 | 6734 echo "$as_me: failed program was:" >&5 |
6735 cat conftest.$ac_ext >&5 | |
6736 emacs_cv_motif_version_2_1=no | |
6737 fi | |
6738 rm -f conftest.$ac_objext conftest.$ac_ext | |
6739 fi | |
6740 echo "$as_me:6740: result: $emacs_cv_motif_version_2_1" >&5 | |
6741 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 | |
25897 | 6742 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 |
6743 if test $emacs_cv_motif_version_2_1 = yes; then | |
34431 | 6744 HAVE_LIBXP=no |
40056 | 6745 cat >>confdefs.h <<\EOF |
25897 | 6746 #define HAVE_MOTIF_2_1 1 |
6747 EOF | |
6748 | |
40056 | 6749 echo "$as_me:6749: checking for XpCreateContext in -lXp" >&5 |
6750 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 | |
6751 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | |
6752 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6753 else | |
6754 ac_check_lib_save_LIBS=$LIBS | |
35206 | 6755 LIBS="-lXp $LIBS" |
40056 | 6756 cat >conftest.$ac_ext <<_ACEOF |
6757 #line 6757 "configure" | |
6758 #include "confdefs.h" | |
6759 | |
25897 | 6760 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6761 #ifdef __cplusplus |
6762 extern "C" | |
6763 #endif | |
25897 | 6764 /* We use char because int might match the return type of a gcc2 |
40056 | 6765 builtin and then its argument prototype would still apply. */ |
6766 char XpCreateContext (); | |
6767 int | |
6768 main () | |
6769 { | |
6770 XpCreateContext (); | |
6771 ; | |
6772 return 0; | |
6773 } | |
6774 _ACEOF | |
6775 rm -f conftest.$ac_objext conftest$ac_exeext | |
6776 if { (eval echo "$as_me:6776: \"$ac_link\"") >&5 | |
6777 (eval $ac_link) 2>&5 | |
6778 ac_status=$? | |
6779 echo "$as_me:6779: \$? = $ac_status" >&5 | |
6780 (exit $ac_status); } && | |
6781 { ac_try='test -s conftest$ac_exeext' | |
6782 { (eval echo "$as_me:6782: \"$ac_try\"") >&5 | |
6783 (eval $ac_try) 2>&5 | |
6784 ac_status=$? | |
6785 echo "$as_me:6785: \$? = $ac_status" >&5 | |
6786 (exit $ac_status); }; }; then | |
6787 ac_cv_lib_Xp_XpCreateContext=yes | |
6788 else | |
6789 echo "$as_me: failed program was:" >&5 | |
6790 cat conftest.$ac_ext >&5 | |
6791 ac_cv_lib_Xp_XpCreateContext=no | |
6792 fi | |
6793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6794 LIBS=$ac_check_lib_save_LIBS | |
6795 fi | |
6796 echo "$as_me:6796: result: $ac_cv_lib_Xp_XpCreateContext" >&5 | |
6797 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 | |
6798 if test $ac_cv_lib_Xp_XpCreateContext = yes; then | |
29906 | 6799 HAVE_LIBXP=yes |
25897 | 6800 fi |
6801 | |
29906 | 6802 if test ${HAVE_LIBXP} = yes; then |
40056 | 6803 cat >>confdefs.h <<\EOF |
29906 | 6804 #define HAVE_LIBXP 1 |
6805 EOF | |
6806 | |
40056 | 6807 fi |
25897 | 6808 fi |
6809 fi | |
6810 | |
6811 ### Is -lXaw3d available? | |
6812 HAVE_XAW3D=no | |
6813 if test "${HAVE_X11}" = "yes"; then | |
6814 if test "${USE_X_TOOLKIT}" != "none"; then | |
40056 | 6815 echo "$as_me:6815: checking for X11/Xaw3d/Scrollbar.h" >&5 |
6816 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 | |
6817 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then | |
6818 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6819 else | |
6820 cat >conftest.$ac_ext <<_ACEOF | |
6821 #line 6821 "configure" | |
25897 | 6822 #include "confdefs.h" |
6823 #include <X11/Xaw3d/Scrollbar.h> | |
40056 | 6824 _ACEOF |
6825 if { (eval echo "$as_me:6825: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6827 ac_status=$? | |
6828 egrep -v '^ *\+' conftest.er1 >conftest.err | |
6829 rm -f conftest.er1 | |
6830 cat conftest.err >&5 | |
6831 echo "$as_me:6831: \$? = $ac_status" >&5 | |
6832 (exit $ac_status); } >/dev/null; then | |
6833 if test -s conftest.err; then | |
6834 ac_cpp_err=$ac_c_preproc_warn_flag | |
6835 else | |
6836 ac_cpp_err= | |
6837 fi | |
6838 else | |
6839 ac_cpp_err=yes | |
6840 fi | |
6841 if test -z "$ac_cpp_err"; then | |
6842 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes | |
6843 else | |
6844 echo "$as_me: failed program was:" >&5 | |
25897 | 6845 cat conftest.$ac_ext >&5 |
40056 | 6846 ac_cv_header_X11_Xaw3d_Scrollbar_h=no |
6847 fi | |
6848 rm -f conftest.err conftest.$ac_ext | |
6849 fi | |
6850 echo "$as_me:6850: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 | |
6851 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 | |
6852 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then | |
6853 echo "$as_me:6853: checking for XawScrollbarSetThumb in -lXaw3d" >&5 | |
6854 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 | |
6855 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then | |
6856 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6857 else | |
6858 ac_check_lib_save_LIBS=$LIBS | |
35206 | 6859 LIBS="-lXaw3d $LIBS" |
40056 | 6860 cat >conftest.$ac_ext <<_ACEOF |
6861 #line 6861 "configure" | |
6862 #include "confdefs.h" | |
6863 | |
25897 | 6864 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6865 #ifdef __cplusplus |
6866 extern "C" | |
6867 #endif | |
25897 | 6868 /* We use char because int might match the return type of a gcc2 |
40056 | 6869 builtin and then its argument prototype would still apply. */ |
6870 char XawScrollbarSetThumb (); | |
6871 int | |
6872 main () | |
6873 { | |
6874 XawScrollbarSetThumb (); | |
6875 ; | |
6876 return 0; | |
6877 } | |
6878 _ACEOF | |
6879 rm -f conftest.$ac_objext conftest$ac_exeext | |
6880 if { (eval echo "$as_me:6880: \"$ac_link\"") >&5 | |
6881 (eval $ac_link) 2>&5 | |
6882 ac_status=$? | |
6883 echo "$as_me:6883: \$? = $ac_status" >&5 | |
6884 (exit $ac_status); } && | |
6885 { ac_try='test -s conftest$ac_exeext' | |
6886 { (eval echo "$as_me:6886: \"$ac_try\"") >&5 | |
6887 (eval $ac_try) 2>&5 | |
6888 ac_status=$? | |
6889 echo "$as_me:6889: \$? = $ac_status" >&5 | |
6890 (exit $ac_status); }; }; then | |
6891 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes | |
6892 else | |
6893 echo "$as_me: failed program was:" >&5 | |
6894 cat conftest.$ac_ext >&5 | |
6895 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no | |
6896 fi | |
6897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6898 LIBS=$ac_check_lib_save_LIBS | |
6899 fi | |
6900 echo "$as_me:6900: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 | |
6901 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 | |
6902 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then | |
25897 | 6903 HAVE_XAW3D=yes |
40056 | 6904 fi |
6905 | |
25897 | 6906 fi |
6907 | |
6908 if test "${HAVE_XAW3D}" = "yes"; then | |
40056 | 6909 cat >>confdefs.h <<\EOF |
25897 | 6910 #define HAVE_XAW3D 1 |
6911 EOF | |
6912 | |
6913 fi | |
6914 fi | |
6915 fi | |
6916 | |
6917 USE_TOOLKIT_SCROLL_BARS=no | |
6918 if test "${with_toolkit_scroll_bars}" != "no"; then | |
6919 if test "${USE_X_TOOLKIT}" != "none"; then | |
6920 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
40056 | 6921 cat >>confdefs.h <<\EOF |
25897 | 6922 #define USE_TOOLKIT_SCROLL_BARS 1 |
6923 EOF | |
6924 | |
6925 HAVE_XAW3D=no | |
6926 USE_TOOLKIT_SCROLL_BARS=yes | |
6927 elif test "${HAVE_XAW3D}" = "yes"; then | |
40056 | 6928 cat >>confdefs.h <<\EOF |
25897 | 6929 #define USE_TOOLKIT_SCROLL_BARS 1 |
6930 EOF | |
6931 | |
6932 USE_TOOLKIT_SCROLL_BARS=yes | |
6933 fi | |
6934 fi | |
6935 fi | |
6936 | |
29949 | 6937 if test "${with_xim}" != "no"; then |
40056 | 6938 cat >>confdefs.h <<\EOF |
29949 | 6939 #define USE_XIM 1 |
6940 EOF | |
6941 | |
6942 fi | |
6943 | |
25897 | 6944 ### Use -lXpm if available, unless `--with-xpm=no'. |
6945 HAVE_XPM=no | |
6946 if test "${HAVE_X11}" = "yes"; then | |
6947 if test "${with_xpm}" != "no"; then | |
40056 | 6948 echo "$as_me:6948: checking for X11/xpm.h" >&5 |
6949 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
6950 if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
6951 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6952 else | |
6953 cat >conftest.$ac_ext <<_ACEOF | |
6954 #line 6954 "configure" | |
25897 | 6955 #include "confdefs.h" |
6956 #include <X11/xpm.h> | |
40056 | 6957 _ACEOF |
6958 if { (eval echo "$as_me:6958: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6960 ac_status=$? | |
6961 egrep -v '^ *\+' conftest.er1 >conftest.err | |
6962 rm -f conftest.er1 | |
6963 cat conftest.err >&5 | |
6964 echo "$as_me:6964: \$? = $ac_status" >&5 | |
6965 (exit $ac_status); } >/dev/null; then | |
6966 if test -s conftest.err; then | |
6967 ac_cpp_err=$ac_c_preproc_warn_flag | |
6968 else | |
6969 ac_cpp_err= | |
6970 fi | |
6971 else | |
6972 ac_cpp_err=yes | |
6973 fi | |
6974 if test -z "$ac_cpp_err"; then | |
6975 ac_cv_header_X11_xpm_h=yes | |
6976 else | |
6977 echo "$as_me: failed program was:" >&5 | |
25897 | 6978 cat conftest.$ac_ext >&5 |
40056 | 6979 ac_cv_header_X11_xpm_h=no |
6980 fi | |
6981 rm -f conftest.err conftest.$ac_ext | |
6982 fi | |
6983 echo "$as_me:6983: result: $ac_cv_header_X11_xpm_h" >&5 | |
6984 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 | |
6985 if test $ac_cv_header_X11_xpm_h = yes; then | |
6986 echo "$as_me:6986: checking for XpmReadFileToPixmap in -lXpm" >&5 | |
6987 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 | |
6988 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | |
6989 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6990 else | |
6991 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6992 LIBS="-lXpm -lX11 $LIBS" |
40056 | 6993 cat >conftest.$ac_ext <<_ACEOF |
6994 #line 6994 "configure" | |
6995 #include "confdefs.h" | |
6996 | |
25897 | 6997 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6998 #ifdef __cplusplus |
6999 extern "C" | |
7000 #endif | |
25897 | 7001 /* We use char because int might match the return type of a gcc2 |
40056 | 7002 builtin and then its argument prototype would still apply. */ |
7003 char XpmReadFileToPixmap (); | |
7004 int | |
7005 main () | |
7006 { | |
7007 XpmReadFileToPixmap (); | |
7008 ; | |
7009 return 0; | |
7010 } | |
7011 _ACEOF | |
7012 rm -f conftest.$ac_objext conftest$ac_exeext | |
7013 if { (eval echo "$as_me:7013: \"$ac_link\"") >&5 | |
7014 (eval $ac_link) 2>&5 | |
7015 ac_status=$? | |
7016 echo "$as_me:7016: \$? = $ac_status" >&5 | |
7017 (exit $ac_status); } && | |
7018 { ac_try='test -s conftest$ac_exeext' | |
7019 { (eval echo "$as_me:7019: \"$ac_try\"") >&5 | |
7020 (eval $ac_try) 2>&5 | |
7021 ac_status=$? | |
7022 echo "$as_me:7022: \$? = $ac_status" >&5 | |
7023 (exit $ac_status); }; }; then | |
7024 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes | |
7025 else | |
7026 echo "$as_me: failed program was:" >&5 | |
7027 cat conftest.$ac_ext >&5 | |
7028 ac_cv_lib_Xpm_XpmReadFileToPixmap=no | |
7029 fi | |
7030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7031 LIBS=$ac_check_lib_save_LIBS | |
7032 fi | |
7033 echo "$as_me:7033: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 | |
7034 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 | |
7035 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | |
25897 | 7036 HAVE_XPM=yes |
40056 | 7037 fi |
7038 | |
25897 | 7039 fi |
7040 | |
30140 | 7041 if test "${HAVE_XPM}" = "yes"; then |
40056 | 7042 echo "$as_me:7042: checking for XpmReturnAllocPixels preprocessor define" >&5 |
7043 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 | |
7044 cat >conftest.$ac_ext <<_ACEOF | |
7045 #line 7045 "configure" | |
30140 | 7046 #include "confdefs.h" |
7047 #include "X11/xpm.h" | |
7048 #ifndef XpmReturnAllocPixels | |
7049 no_return_alloc_pixels | |
7050 #endif | |
40056 | 7051 |
7052 _ACEOF | |
30140 | 7053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7054 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then | |
7055 HAVE_XPM=no | |
7056 else | |
7057 HAVE_XPM=yes | |
7058 fi | |
7059 rm -f conftest* | |
7060 | |
36903 | 7061 if test "${HAVE_XPM}" = "yes"; then |
40056 | 7062 echo "$as_me:7062: result: yes" >&5 |
7063 echo "${ECHO_T}yes" >&6 | |
36903 | 7064 else |
40056 | 7065 echo "$as_me:7065: result: no" >&5 |
7066 echo "${ECHO_T}no" >&6 | |
36903 | 7067 fi |
31320 | 7068 fi |
25897 | 7069 fi |
7070 | |
7071 if test "${HAVE_XPM}" = "yes"; then | |
40056 | 7072 cat >>confdefs.h <<\EOF |
25897 | 7073 #define HAVE_XPM 1 |
7074 EOF | |
7075 | |
7076 fi | |
7077 fi | |
40056 | 7078 |
25897 | 7079 ### Use -ljpeg if available, unless `--with-jpeg=no'. |
7080 HAVE_JPEG=no | |
7081 if test "${HAVE_X11}" = "yes"; then | |
7082 if test "${with_jpeg}" != "no"; then | |
40056 | 7083 echo "$as_me:7083: checking for jerror.h" >&5 |
7084 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 | |
7085 if test "${ac_cv_header_jerror_h+set}" = set; then | |
7086 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7087 else | |
7088 cat >conftest.$ac_ext <<_ACEOF | |
7089 #line 7089 "configure" | |
27356 | 7090 #include "confdefs.h" |
7091 #include <jerror.h> | |
40056 | 7092 _ACEOF |
7093 if { (eval echo "$as_me:7093: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7095 ac_status=$? | |
7096 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7097 rm -f conftest.er1 | |
7098 cat conftest.err >&5 | |
7099 echo "$as_me:7099: \$? = $ac_status" >&5 | |
7100 (exit $ac_status); } >/dev/null; then | |
7101 if test -s conftest.err; then | |
7102 ac_cpp_err=$ac_c_preproc_warn_flag | |
7103 else | |
7104 ac_cpp_err= | |
7105 fi | |
7106 else | |
7107 ac_cpp_err=yes | |
7108 fi | |
7109 if test -z "$ac_cpp_err"; then | |
7110 ac_cv_header_jerror_h=yes | |
7111 else | |
7112 echo "$as_me: failed program was:" >&5 | |
27356 | 7113 cat conftest.$ac_ext >&5 |
40056 | 7114 ac_cv_header_jerror_h=no |
7115 fi | |
7116 rm -f conftest.err conftest.$ac_ext | |
7117 fi | |
7118 echo "$as_me:7118: result: $ac_cv_header_jerror_h" >&5 | |
7119 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 | |
7120 if test $ac_cv_header_jerror_h = yes; then | |
7121 echo "$as_me:7121: checking for jpeg_destroy_compress in -ljpeg" >&5 | |
7122 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 | |
7123 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | |
7124 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7125 else | |
7126 ac_check_lib_save_LIBS=$LIBS | |
35206 | 7127 LIBS="-ljpeg $LIBS" |
40056 | 7128 cat >conftest.$ac_ext <<_ACEOF |
7129 #line 7129 "configure" | |
7130 #include "confdefs.h" | |
7131 | |
25897 | 7132 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7133 #ifdef __cplusplus |
7134 extern "C" | |
7135 #endif | |
25897 | 7136 /* We use char because int might match the return type of a gcc2 |
40056 | 7137 builtin and then its argument prototype would still apply. */ |
7138 char jpeg_destroy_compress (); | |
7139 int | |
7140 main () | |
7141 { | |
7142 jpeg_destroy_compress (); | |
7143 ; | |
7144 return 0; | |
7145 } | |
7146 _ACEOF | |
7147 rm -f conftest.$ac_objext conftest$ac_exeext | |
7148 if { (eval echo "$as_me:7148: \"$ac_link\"") >&5 | |
7149 (eval $ac_link) 2>&5 | |
7150 ac_status=$? | |
7151 echo "$as_me:7151: \$? = $ac_status" >&5 | |
7152 (exit $ac_status); } && | |
7153 { ac_try='test -s conftest$ac_exeext' | |
7154 { (eval echo "$as_me:7154: \"$ac_try\"") >&5 | |
7155 (eval $ac_try) 2>&5 | |
7156 ac_status=$? | |
7157 echo "$as_me:7157: \$? = $ac_status" >&5 | |
7158 (exit $ac_status); }; }; then | |
7159 ac_cv_lib_jpeg_jpeg_destroy_compress=yes | |
7160 else | |
7161 echo "$as_me: failed program was:" >&5 | |
7162 cat conftest.$ac_ext >&5 | |
7163 ac_cv_lib_jpeg_jpeg_destroy_compress=no | |
7164 fi | |
7165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7166 LIBS=$ac_check_lib_save_LIBS | |
7167 fi | |
7168 echo "$as_me:7168: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 | |
7169 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 | |
7170 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | |
25897 | 7171 HAVE_JPEG=yes |
40056 | 7172 fi |
7173 | |
27356 | 7174 fi |
7175 | |
25897 | 7176 fi |
7177 | |
7178 if test "${HAVE_JPEG}" = "yes"; then | |
40056 | 7179 cat >>confdefs.h <<\EOF |
25897 | 7180 #define HAVE_JPEG 1 |
7181 EOF | |
7182 | |
7183 fi | |
7184 fi | |
40056 | 7185 |
25897 | 7186 ### Use -lpng if available, unless `--with-png=no'. |
7187 HAVE_PNG=no | |
7188 if test "${HAVE_X11}" = "yes"; then | |
7189 if test "${with_png}" != "no"; then | |
40056 | 7190 echo "$as_me:7190: checking for png.h" >&5 |
7191 echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
7192 if test "${ac_cv_header_png_h+set}" = set; then | |
7193 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7194 else | |
7195 cat >conftest.$ac_ext <<_ACEOF | |
7196 #line 7196 "configure" | |
25897 | 7197 #include "confdefs.h" |
7198 #include <png.h> | |
40056 | 7199 _ACEOF |
7200 if { (eval echo "$as_me:7200: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7202 ac_status=$? | |
7203 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7204 rm -f conftest.er1 | |
7205 cat conftest.err >&5 | |
7206 echo "$as_me:7206: \$? = $ac_status" >&5 | |
7207 (exit $ac_status); } >/dev/null; then | |
7208 if test -s conftest.err; then | |
7209 ac_cpp_err=$ac_c_preproc_warn_flag | |
7210 else | |
7211 ac_cpp_err= | |
7212 fi | |
7213 else | |
7214 ac_cpp_err=yes | |
7215 fi | |
7216 if test -z "$ac_cpp_err"; then | |
7217 ac_cv_header_png_h=yes | |
7218 else | |
7219 echo "$as_me: failed program was:" >&5 | |
25897 | 7220 cat conftest.$ac_ext >&5 |
40056 | 7221 ac_cv_header_png_h=no |
7222 fi | |
7223 rm -f conftest.err conftest.$ac_ext | |
7224 fi | |
7225 echo "$as_me:7225: result: $ac_cv_header_png_h" >&5 | |
7226 echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
7227 if test $ac_cv_header_png_h = yes; then | |
7228 echo "$as_me:7228: checking for png_get_channels in -lpng" >&5 | |
7229 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 | |
7230 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | |
7231 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7232 else | |
7233 ac_check_lib_save_LIBS=$LIBS | |
35206 | 7234 LIBS="-lpng -lz -lm $LIBS" |
40056 | 7235 cat >conftest.$ac_ext <<_ACEOF |
7236 #line 7236 "configure" | |
7237 #include "confdefs.h" | |
7238 | |
25897 | 7239 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7240 #ifdef __cplusplus |
7241 extern "C" | |
7242 #endif | |
25897 | 7243 /* We use char because int might match the return type of a gcc2 |
40056 | 7244 builtin and then its argument prototype would still apply. */ |
7245 char png_get_channels (); | |
7246 int | |
7247 main () | |
7248 { | |
7249 png_get_channels (); | |
7250 ; | |
7251 return 0; | |
7252 } | |
7253 _ACEOF | |
7254 rm -f conftest.$ac_objext conftest$ac_exeext | |
7255 if { (eval echo "$as_me:7255: \"$ac_link\"") >&5 | |
7256 (eval $ac_link) 2>&5 | |
7257 ac_status=$? | |
7258 echo "$as_me:7258: \$? = $ac_status" >&5 | |
7259 (exit $ac_status); } && | |
7260 { ac_try='test -s conftest$ac_exeext' | |
7261 { (eval echo "$as_me:7261: \"$ac_try\"") >&5 | |
7262 (eval $ac_try) 2>&5 | |
7263 ac_status=$? | |
7264 echo "$as_me:7264: \$? = $ac_status" >&5 | |
7265 (exit $ac_status); }; }; then | |
7266 ac_cv_lib_png_png_get_channels=yes | |
7267 else | |
7268 echo "$as_me: failed program was:" >&5 | |
7269 cat conftest.$ac_ext >&5 | |
7270 ac_cv_lib_png_png_get_channels=no | |
7271 fi | |
7272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7273 LIBS=$ac_check_lib_save_LIBS | |
7274 fi | |
7275 echo "$as_me:7275: result: $ac_cv_lib_png_png_get_channels" >&5 | |
7276 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 | |
7277 if test $ac_cv_lib_png_png_get_channels = yes; then | |
25897 | 7278 HAVE_PNG=yes |
40056 | 7279 fi |
7280 | |
25897 | 7281 fi |
7282 | |
7283 fi | |
7284 | |
7285 if test "${HAVE_PNG}" = "yes"; then | |
40056 | 7286 cat >>confdefs.h <<\EOF |
25897 | 7287 #define HAVE_PNG 1 |
7288 EOF | |
7289 | |
7290 fi | |
7291 fi | |
40056 | 7292 |
25897 | 7293 ### Use -ltiff if available, unless `--with-tiff=no'. |
7294 HAVE_TIFF=no | |
7295 if test "${HAVE_X11}" = "yes"; then | |
7296 if test "${with_tiff}" != "no"; then | |
40056 | 7297 echo "$as_me:7297: checking for tiffio.h" >&5 |
7298 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
7299 if test "${ac_cv_header_tiffio_h+set}" = set; then | |
7300 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7301 else | |
7302 cat >conftest.$ac_ext <<_ACEOF | |
7303 #line 7303 "configure" | |
25897 | 7304 #include "confdefs.h" |
7305 #include <tiffio.h> | |
40056 | 7306 _ACEOF |
7307 if { (eval echo "$as_me:7307: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7309 ac_status=$? | |
7310 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7311 rm -f conftest.er1 | |
7312 cat conftest.err >&5 | |
7313 echo "$as_me:7313: \$? = $ac_status" >&5 | |
7314 (exit $ac_status); } >/dev/null; then | |
7315 if test -s conftest.err; then | |
7316 ac_cpp_err=$ac_c_preproc_warn_flag | |
7317 else | |
7318 ac_cpp_err= | |
7319 fi | |
7320 else | |
7321 ac_cpp_err=yes | |
7322 fi | |
7323 if test -z "$ac_cpp_err"; then | |
7324 ac_cv_header_tiffio_h=yes | |
7325 else | |
7326 echo "$as_me: failed program was:" >&5 | |
25897 | 7327 cat conftest.$ac_ext >&5 |
40056 | 7328 ac_cv_header_tiffio_h=no |
7329 fi | |
7330 rm -f conftest.err conftest.$ac_ext | |
7331 fi | |
7332 echo "$as_me:7332: result: $ac_cv_header_tiffio_h" >&5 | |
7333 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
7334 if test $ac_cv_header_tiffio_h = yes; then | |
35206 | 7335 tifflibs="-lz -lm" |
27752
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
7336 # At least one tiff package requires the jpeg library. |
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
7337 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
40056 | 7338 echo "$as_me:7338: checking for TIFFGetVersion in -ltiff" >&5 |
7339 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 | |
7340 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | |
7341 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7342 else | |
7343 ac_check_lib_save_LIBS=$LIBS | |
27752
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
7344 LIBS="-ltiff $tifflibs $LIBS" |
40056 | 7345 cat >conftest.$ac_ext <<_ACEOF |
7346 #line 7346 "configure" | |
7347 #include "confdefs.h" | |
7348 | |
25897 | 7349 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7350 #ifdef __cplusplus |
7351 extern "C" | |
7352 #endif | |
25897 | 7353 /* We use char because int might match the return type of a gcc2 |
40056 | 7354 builtin and then its argument prototype would still apply. */ |
7355 char TIFFGetVersion (); | |
7356 int | |
7357 main () | |
7358 { | |
7359 TIFFGetVersion (); | |
7360 ; | |
7361 return 0; | |
7362 } | |
7363 _ACEOF | |
7364 rm -f conftest.$ac_objext conftest$ac_exeext | |
7365 if { (eval echo "$as_me:7365: \"$ac_link\"") >&5 | |
7366 (eval $ac_link) 2>&5 | |
7367 ac_status=$? | |
7368 echo "$as_me:7368: \$? = $ac_status" >&5 | |
7369 (exit $ac_status); } && | |
7370 { ac_try='test -s conftest$ac_exeext' | |
7371 { (eval echo "$as_me:7371: \"$ac_try\"") >&5 | |
7372 (eval $ac_try) 2>&5 | |
7373 ac_status=$? | |
7374 echo "$as_me:7374: \$? = $ac_status" >&5 | |
7375 (exit $ac_status); }; }; then | |
7376 ac_cv_lib_tiff_TIFFGetVersion=yes | |
7377 else | |
7378 echo "$as_me: failed program was:" >&5 | |
7379 cat conftest.$ac_ext >&5 | |
7380 ac_cv_lib_tiff_TIFFGetVersion=no | |
7381 fi | |
7382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7383 LIBS=$ac_check_lib_save_LIBS | |
7384 fi | |
7385 echo "$as_me:7385: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 | |
7386 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 | |
7387 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | |
25897 | 7388 HAVE_TIFF=yes |
40056 | 7389 fi |
7390 | |
25897 | 7391 fi |
7392 | |
7393 fi | |
7394 | |
7395 if test "${HAVE_TIFF}" = "yes"; then | |
40056 | 7396 cat >>confdefs.h <<\EOF |
25897 | 7397 #define HAVE_TIFF 1 |
7398 EOF | |
7399 | |
7400 fi | |
7401 fi | |
40056 | 7402 |
25897 | 7403 ### Use -lgif if available, unless `--with-gif=no'. |
7404 HAVE_GIF=no | |
7405 if test "${HAVE_X11}" = "yes"; then | |
7406 if test "${with_gif}" != "no"; then | |
40056 | 7407 echo "$as_me:7407: checking for gif_lib.h" >&5 |
7408 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 | |
7409 if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
7410 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7411 else | |
7412 cat >conftest.$ac_ext <<_ACEOF | |
7413 #line 7413 "configure" | |
25897 | 7414 #include "confdefs.h" |
7415 #include <gif_lib.h> | |
40056 | 7416 _ACEOF |
7417 if { (eval echo "$as_me:7417: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7419 ac_status=$? | |
7420 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7421 rm -f conftest.er1 | |
7422 cat conftest.err >&5 | |
7423 echo "$as_me:7423: \$? = $ac_status" >&5 | |
7424 (exit $ac_status); } >/dev/null; then | |
7425 if test -s conftest.err; then | |
7426 ac_cpp_err=$ac_c_preproc_warn_flag | |
7427 else | |
7428 ac_cpp_err= | |
7429 fi | |
7430 else | |
7431 ac_cpp_err=yes | |
7432 fi | |
7433 if test -z "$ac_cpp_err"; then | |
7434 ac_cv_header_gif_lib_h=yes | |
7435 else | |
7436 echo "$as_me: failed program was:" >&5 | |
25897 | 7437 cat conftest.$ac_ext >&5 |
40056 | 7438 ac_cv_header_gif_lib_h=no |
7439 fi | |
7440 rm -f conftest.err conftest.$ac_ext | |
7441 fi | |
7442 echo "$as_me:7442: result: $ac_cv_header_gif_lib_h" >&5 | |
7443 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 | |
7444 if test $ac_cv_header_gif_lib_h = yes; then | |
7445 echo "$as_me:7445: checking for DGifOpen in -lungif" >&5 | |
7446 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6 | |
7447 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then | |
7448 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7449 else | |
7450 ac_check_lib_save_LIBS=$LIBS | |
35206 | 7451 LIBS="-lungif $LIBS" |
40056 | 7452 cat >conftest.$ac_ext <<_ACEOF |
7453 #line 7453 "configure" | |
7454 #include "confdefs.h" | |
7455 | |
25897 | 7456 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7457 #ifdef __cplusplus |
7458 extern "C" | |
7459 #endif | |
25897 | 7460 /* We use char because int might match the return type of a gcc2 |
40056 | 7461 builtin and then its argument prototype would still apply. */ |
7462 char DGifOpen (); | |
7463 int | |
7464 main () | |
7465 { | |
7466 DGifOpen (); | |
7467 ; | |
7468 return 0; | |
7469 } | |
7470 _ACEOF | |
7471 rm -f conftest.$ac_objext conftest$ac_exeext | |
7472 if { (eval echo "$as_me:7472: \"$ac_link\"") >&5 | |
7473 (eval $ac_link) 2>&5 | |
7474 ac_status=$? | |
7475 echo "$as_me:7475: \$? = $ac_status" >&5 | |
7476 (exit $ac_status); } && | |
7477 { ac_try='test -s conftest$ac_exeext' | |
7478 { (eval echo "$as_me:7478: \"$ac_try\"") >&5 | |
7479 (eval $ac_try) 2>&5 | |
7480 ac_status=$? | |
7481 echo "$as_me:7481: \$? = $ac_status" >&5 | |
7482 (exit $ac_status); }; }; then | |
7483 ac_cv_lib_ungif_DGifOpen=yes | |
7484 else | |
7485 echo "$as_me: failed program was:" >&5 | |
7486 cat conftest.$ac_ext >&5 | |
7487 ac_cv_lib_ungif_DGifOpen=no | |
7488 fi | |
7489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7490 LIBS=$ac_check_lib_save_LIBS | |
7491 fi | |
7492 echo "$as_me:7492: result: $ac_cv_lib_ungif_DGifOpen" >&5 | |
7493 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6 | |
7494 if test $ac_cv_lib_ungif_DGifOpen = yes; then | |
25897 | 7495 HAVE_GIF=yes |
40056 | 7496 fi |
7497 | |
25897 | 7498 fi |
7499 | |
7500 fi | |
7501 | |
7502 if test "${HAVE_GIF}" = "yes"; then | |
40056 | 7503 cat >>confdefs.h <<\EOF |
25897 | 7504 #define HAVE_GIF 1 |
7505 EOF | |
7506 | |
7507 fi | |
7508 fi | |
7509 | |
7510 # If netdb.h doesn't declare h_errno, we must declare it by hand. | |
40056 | 7511 echo "$as_me:7511: checking whether netdb declares h_errno" >&5 |
7512 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 | |
7513 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | |
7514 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7515 else | |
7516 cat >conftest.$ac_ext <<_ACEOF | |
7517 #line 7517 "configure" | |
25897 | 7518 #include "confdefs.h" |
7519 #include <netdb.h> | |
40056 | 7520 int |
7521 main () | |
7522 { | |
25897 | 7523 return h_errno; |
40056 | 7524 ; |
7525 return 0; | |
7526 } | |
7527 _ACEOF | |
7528 rm -f conftest.$ac_objext conftest$ac_exeext | |
7529 if { (eval echo "$as_me:7529: \"$ac_link\"") >&5 | |
7530 (eval $ac_link) 2>&5 | |
7531 ac_status=$? | |
7532 echo "$as_me:7532: \$? = $ac_status" >&5 | |
7533 (exit $ac_status); } && | |
7534 { ac_try='test -s conftest$ac_exeext' | |
7535 { (eval echo "$as_me:7535: \"$ac_try\"") >&5 | |
7536 (eval $ac_try) 2>&5 | |
7537 ac_status=$? | |
7538 echo "$as_me:7538: \$? = $ac_status" >&5 | |
7539 (exit $ac_status); }; }; then | |
25897 | 7540 emacs_cv_netdb_declares_h_errno=yes |
7541 else | |
40056 | 7542 echo "$as_me: failed program was:" >&5 |
7543 cat conftest.$ac_ext >&5 | |
7544 emacs_cv_netdb_declares_h_errno=no | |
7545 fi | |
7546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7547 fi | |
7548 echo "$as_me:7548: result: $emacs_cv_netdb_declares_h_errno" >&5 | |
7549 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 | |
25897 | 7550 if test $emacs_cv_netdb_declares_h_errno = yes; then |
40056 | 7551 cat >>confdefs.h <<\EOF |
25897 | 7552 #define HAVE_H_ERRNO 1 |
7553 EOF | |
7554 | |
7555 fi | |
7556 | |
7557 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
7558 # for constant arguments. Useless! | |
40056 | 7559 echo "$as_me:7559: checking for working alloca.h" >&5 |
7560 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
7561 if test "${ac_cv_working_alloca_h+set}" = set; then | |
7562 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7563 else | |
7564 cat >conftest.$ac_ext <<_ACEOF | |
7565 #line 7565 "configure" | |
25897 | 7566 #include "confdefs.h" |
7567 #include <alloca.h> | |
40056 | 7568 int |
7569 main () | |
7570 { | |
7571 char *p = (char *) alloca (2 * sizeof (int)); | |
7572 ; | |
7573 return 0; | |
7574 } | |
7575 _ACEOF | |
7576 rm -f conftest.$ac_objext conftest$ac_exeext | |
7577 if { (eval echo "$as_me:7577: \"$ac_link\"") >&5 | |
7578 (eval $ac_link) 2>&5 | |
7579 ac_status=$? | |
7580 echo "$as_me:7580: \$? = $ac_status" >&5 | |
7581 (exit $ac_status); } && | |
7582 { ac_try='test -s conftest$ac_exeext' | |
7583 { (eval echo "$as_me:7583: \"$ac_try\"") >&5 | |
7584 (eval $ac_try) 2>&5 | |
7585 ac_status=$? | |
7586 echo "$as_me:7586: \$? = $ac_status" >&5 | |
7587 (exit $ac_status); }; }; then | |
7588 ac_cv_working_alloca_h=yes | |
7589 else | |
7590 echo "$as_me: failed program was:" >&5 | |
7591 cat conftest.$ac_ext >&5 | |
7592 ac_cv_working_alloca_h=no | |
7593 fi | |
7594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7595 fi | |
7596 echo "$as_me:7596: result: $ac_cv_working_alloca_h" >&5 | |
7597 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
7598 if test $ac_cv_working_alloca_h = yes; then | |
7599 | |
7600 cat >>confdefs.h <<\EOF | |
25897 | 7601 #define HAVE_ALLOCA_H 1 |
7602 EOF | |
7603 | |
7604 fi | |
7605 | |
40056 | 7606 echo "$as_me:7606: checking for alloca" >&5 |
7607 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
7608 if test "${ac_cv_func_alloca_works+set}" = set; then | |
7609 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7610 else | |
7611 cat >conftest.$ac_ext <<_ACEOF | |
7612 #line 7612 "configure" | |
7613 #include "confdefs.h" | |
25897 | 7614 #ifdef __GNUC__ |
7615 # define alloca __builtin_alloca | |
7616 #else | |
27205 | 7617 # ifdef _MSC_VER |
7618 # include <malloc.h> | |
7619 # define alloca _alloca | |
25897 | 7620 # else |
27205 | 7621 # if HAVE_ALLOCA_H |
7622 # include <alloca.h> | |
25897 | 7623 # else |
27205 | 7624 # ifdef _AIX |
7625 #pragma alloca | |
7626 # else | |
7627 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
25897 | 7628 char *alloca (); |
27205 | 7629 # endif |
25897 | 7630 # endif |
7631 # endif | |
7632 # endif | |
7633 #endif | |
7634 | |
40056 | 7635 int |
7636 main () | |
7637 { | |
7638 char *p = (char *) alloca (1); | |
7639 ; | |
7640 return 0; | |
7641 } | |
7642 _ACEOF | |
7643 rm -f conftest.$ac_objext conftest$ac_exeext | |
7644 if { (eval echo "$as_me:7644: \"$ac_link\"") >&5 | |
7645 (eval $ac_link) 2>&5 | |
7646 ac_status=$? | |
7647 echo "$as_me:7647: \$? = $ac_status" >&5 | |
7648 (exit $ac_status); } && | |
7649 { ac_try='test -s conftest$ac_exeext' | |
7650 { (eval echo "$as_me:7650: \"$ac_try\"") >&5 | |
7651 (eval $ac_try) 2>&5 | |
7652 ac_status=$? | |
7653 echo "$as_me:7653: \$? = $ac_status" >&5 | |
7654 (exit $ac_status); }; }; then | |
25897 | 7655 ac_cv_func_alloca_works=yes |
7656 else | |
40056 | 7657 echo "$as_me: failed program was:" >&5 |
7658 cat conftest.$ac_ext >&5 | |
7659 ac_cv_func_alloca_works=no | |
7660 fi | |
7661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7662 fi | |
7663 echo "$as_me:7663: result: $ac_cv_func_alloca_works" >&5 | |
7664 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
7665 | |
25897 | 7666 if test $ac_cv_func_alloca_works = yes; then |
40056 | 7667 |
7668 cat >>confdefs.h <<\EOF | |
25897 | 7669 #define HAVE_ALLOCA 1 |
7670 EOF | |
7671 | |
40056 | 7672 else |
25897 | 7673 # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
40056 | 7674 # that cause trouble. Some versions do not even contain alloca or |
7675 # contain a buggy version. If you still want to use their alloca, | |
7676 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
7677 | |
7678 ALLOCA=alloca.$ac_objext | |
7679 | |
7680 cat >>confdefs.h <<\EOF | |
25897 | 7681 #define C_ALLOCA 1 |
7682 EOF | |
7683 | |
40056 | 7684 echo "$as_me:7684: checking whether \`alloca.c' needs Cray hooks" >&5 |
7685 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
7686 if test "${ac_cv_os_cray+set}" = set; then | |
7687 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7688 else | |
7689 cat >conftest.$ac_ext <<_ACEOF | |
7690 #line 7690 "configure" | |
25897 | 7691 #include "confdefs.h" |
7692 #if defined(CRAY) && ! defined(CRAY2) | |
7693 webecray | |
7694 #else | |
7695 wenotbecray | |
7696 #endif | |
7697 | |
40056 | 7698 _ACEOF |
25897 | 7699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7700 egrep "webecray" >/dev/null 2>&1; then | |
7701 ac_cv_os_cray=yes | |
7702 else | |
7703 ac_cv_os_cray=no | |
7704 fi | |
7705 rm -f conftest* | |
7706 | |
7707 fi | |
40056 | 7708 echo "$as_me:7708: result: $ac_cv_os_cray" >&5 |
7709 echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
25897 | 7710 if test $ac_cv_os_cray = yes; then |
40056 | 7711 for ac_func in _getb67 GETB67 getb67; do |
7712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7713 echo "$as_me:7713: checking for $ac_func" >&5 | |
7714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7715 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7716 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7717 else | |
7718 cat >conftest.$ac_ext <<_ACEOF | |
7719 #line 7719 "configure" | |
25897 | 7720 #include "confdefs.h" |
7721 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 7722 which can conflict with char $ac_func (); below. */ |
25897 | 7723 #include <assert.h> |
7724 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 7725 #ifdef __cplusplus |
7726 extern "C" | |
7727 #endif | |
25897 | 7728 /* We use char because int might match the return type of a gcc2 |
40056 | 7729 builtin and then its argument prototype would still apply. */ |
7730 char $ac_func (); | |
7731 char (*f) (); | |
7732 | |
7733 int | |
7734 main () | |
7735 { | |
25897 | 7736 /* The GNU C library defines this for functions which it implements |
7737 to always fail with ENOSYS. Some functions are actually named | |
7738 something starting with __ and the normal name is an alias. */ | |
7739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7740 choke me | |
7741 #else | |
40056 | 7742 f = $ac_func; |
7743 #endif | |
7744 | |
7745 ; | |
7746 return 0; | |
7747 } | |
7748 _ACEOF | |
7749 rm -f conftest.$ac_objext conftest$ac_exeext | |
7750 if { (eval echo "$as_me:7750: \"$ac_link\"") >&5 | |
7751 (eval $ac_link) 2>&5 | |
7752 ac_status=$? | |
7753 echo "$as_me:7753: \$? = $ac_status" >&5 | |
7754 (exit $ac_status); } && | |
7755 { ac_try='test -s conftest$ac_exeext' | |
7756 { (eval echo "$as_me:7756: \"$ac_try\"") >&5 | |
7757 (eval $ac_try) 2>&5 | |
7758 ac_status=$? | |
7759 echo "$as_me:7759: \$? = $ac_status" >&5 | |
7760 (exit $ac_status); }; }; then | |
7761 eval "$as_ac_var=yes" | |
7762 else | |
7763 echo "$as_me: failed program was:" >&5 | |
7764 cat conftest.$ac_ext >&5 | |
7765 eval "$as_ac_var=no" | |
7766 fi | |
7767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7768 fi | |
7769 echo "$as_me:7769: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7771 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7772 | |
7773 cat >>confdefs.h <<EOF | |
25897 | 7774 #define CRAY_STACKSEG_END $ac_func |
7775 EOF | |
7776 | |
40056 | 7777 break |
7778 fi | |
7779 | |
7780 done | |
7781 fi | |
7782 | |
7783 echo "$as_me:7783: checking stack direction for C alloca" >&5 | |
7784 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
7785 if test "${ac_cv_c_stack_direction+set}" = set; then | |
7786 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 7787 else |
7788 if test "$cross_compiling" = yes; then | |
7789 ac_cv_c_stack_direction=0 | |
7790 else | |
40056 | 7791 cat >conftest.$ac_ext <<_ACEOF |
7792 #line 7792 "configure" | |
7793 #include "confdefs.h" | |
7794 int | |
25897 | 7795 find_stack_direction () |
7796 { | |
7797 static char *addr = 0; | |
7798 auto char dummy; | |
7799 if (addr == 0) | |
7800 { | |
7801 addr = &dummy; | |
7802 return find_stack_direction (); | |
7803 } | |
7804 else | |
7805 return (&dummy > addr) ? 1 : -1; | |
7806 } | |
40056 | 7807 |
7808 int | |
7809 main () | |
7810 { | |
7811 exit (find_stack_direction () < 0); | |
7812 } | |
7813 _ACEOF | |
7814 rm -f conftest$ac_exeext | |
7815 if { (eval echo "$as_me:7815: \"$ac_link\"") >&5 | |
7816 (eval $ac_link) 2>&5 | |
7817 ac_status=$? | |
7818 echo "$as_me:7818: \$? = $ac_status" >&5 | |
7819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7820 { (eval echo "$as_me:7820: \"$ac_try\"") >&5 | |
7821 (eval $ac_try) 2>&5 | |
7822 ac_status=$? | |
7823 echo "$as_me:7823: \$? = $ac_status" >&5 | |
7824 (exit $ac_status); }; }; then | |
25897 | 7825 ac_cv_c_stack_direction=1 |
7826 else | |
40056 | 7827 echo "$as_me: program exited with status $ac_status" >&5 |
7828 echo "$as_me: failed program was:" >&5 | |
7829 cat conftest.$ac_ext >&5 | |
7830 ac_cv_c_stack_direction=-1 | |
7831 fi | |
7832 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7833 fi | |
7834 fi | |
7835 echo "$as_me:7835: result: $ac_cv_c_stack_direction" >&5 | |
7836 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
7837 | |
7838 cat >>confdefs.h <<EOF | |
25897 | 7839 #define STACK_DIRECTION $ac_cv_c_stack_direction |
7840 EOF | |
7841 | |
7842 fi | |
7843 | |
7844 # fmod, logb, and frexp are found in -lm on most systems. | |
7845 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
40056 | 7846 |
7847 echo "$as_me:7847: checking for sqrt in -lm" >&5 | |
7848 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 | |
7849 if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
7850 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7851 else | |
7852 ac_check_lib_save_LIBS=$LIBS | |
25897 | 7853 LIBS="-lm $LIBS" |
40056 | 7854 cat >conftest.$ac_ext <<_ACEOF |
7855 #line 7855 "configure" | |
7856 #include "confdefs.h" | |
7857 | |
25897 | 7858 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7859 #ifdef __cplusplus |
7860 extern "C" | |
7861 #endif | |
25897 | 7862 /* We use char because int might match the return type of a gcc2 |
40056 | 7863 builtin and then its argument prototype would still apply. */ |
7864 char sqrt (); | |
7865 int | |
7866 main () | |
7867 { | |
7868 sqrt (); | |
7869 ; | |
7870 return 0; | |
7871 } | |
7872 _ACEOF | |
7873 rm -f conftest.$ac_objext conftest$ac_exeext | |
7874 if { (eval echo "$as_me:7874: \"$ac_link\"") >&5 | |
7875 (eval $ac_link) 2>&5 | |
7876 ac_status=$? | |
7877 echo "$as_me:7877: \$? = $ac_status" >&5 | |
7878 (exit $ac_status); } && | |
7879 { ac_try='test -s conftest$ac_exeext' | |
7880 { (eval echo "$as_me:7880: \"$ac_try\"") >&5 | |
7881 (eval $ac_try) 2>&5 | |
7882 ac_status=$? | |
7883 echo "$as_me:7883: \$? = $ac_status" >&5 | |
7884 (exit $ac_status); }; }; then | |
7885 ac_cv_lib_m_sqrt=yes | |
7886 else | |
7887 echo "$as_me: failed program was:" >&5 | |
7888 cat conftest.$ac_ext >&5 | |
7889 ac_cv_lib_m_sqrt=no | |
7890 fi | |
7891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7892 LIBS=$ac_check_lib_save_LIBS | |
7893 fi | |
7894 echo "$as_me:7894: result: $ac_cv_lib_m_sqrt" >&5 | |
7895 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 | |
7896 if test $ac_cv_lib_m_sqrt = yes; then | |
7897 cat >>confdefs.h <<EOF | |
7898 #define HAVE_LIBM 1 | |
25897 | 7899 EOF |
7900 | |
7901 LIBS="-lm $LIBS" | |
7902 | |
40056 | 7903 fi |
25897 | 7904 |
7905 # Check for mail-locking functions in a "mail" library | |
40056 | 7906 |
7907 echo "$as_me:7907: checking for maillock in -lmail" >&5 | |
7908 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 | |
7909 if test "${ac_cv_lib_mail_maillock+set}" = set; then | |
7910 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7911 else | |
7912 ac_check_lib_save_LIBS=$LIBS | |
25897 | 7913 LIBS="-lmail $LIBS" |
40056 | 7914 cat >conftest.$ac_ext <<_ACEOF |
7915 #line 7915 "configure" | |
7916 #include "confdefs.h" | |
7917 | |
25897 | 7918 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7919 #ifdef __cplusplus |
7920 extern "C" | |
7921 #endif | |
25897 | 7922 /* We use char because int might match the return type of a gcc2 |
40056 | 7923 builtin and then its argument prototype would still apply. */ |
7924 char maillock (); | |
7925 int | |
7926 main () | |
7927 { | |
7928 maillock (); | |
7929 ; | |
7930 return 0; | |
7931 } | |
7932 _ACEOF | |
7933 rm -f conftest.$ac_objext conftest$ac_exeext | |
7934 if { (eval echo "$as_me:7934: \"$ac_link\"") >&5 | |
7935 (eval $ac_link) 2>&5 | |
7936 ac_status=$? | |
7937 echo "$as_me:7937: \$? = $ac_status" >&5 | |
7938 (exit $ac_status); } && | |
7939 { ac_try='test -s conftest$ac_exeext' | |
7940 { (eval echo "$as_me:7940: \"$ac_try\"") >&5 | |
7941 (eval $ac_try) 2>&5 | |
7942 ac_status=$? | |
7943 echo "$as_me:7943: \$? = $ac_status" >&5 | |
7944 (exit $ac_status); }; }; then | |
7945 ac_cv_lib_mail_maillock=yes | |
7946 else | |
7947 echo "$as_me: failed program was:" >&5 | |
7948 cat conftest.$ac_ext >&5 | |
7949 ac_cv_lib_mail_maillock=no | |
7950 fi | |
7951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7952 LIBS=$ac_check_lib_save_LIBS | |
7953 fi | |
7954 echo "$as_me:7954: result: $ac_cv_lib_mail_maillock" >&5 | |
7955 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 | |
7956 if test $ac_cv_lib_mail_maillock = yes; then | |
7957 cat >>confdefs.h <<EOF | |
7958 #define HAVE_LIBMAIL 1 | |
25897 | 7959 EOF |
7960 | |
7961 LIBS="-lmail $LIBS" | |
7962 | |
40056 | 7963 fi |
7964 | |
7965 echo "$as_me:7965: checking for maillock in -llockfile" >&5 | |
7966 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 | |
7967 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | |
7968 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7969 else | |
7970 ac_check_lib_save_LIBS=$LIBS | |
25897 | 7971 LIBS="-llockfile $LIBS" |
40056 | 7972 cat >conftest.$ac_ext <<_ACEOF |
7973 #line 7973 "configure" | |
7974 #include "confdefs.h" | |
7975 | |
25897 | 7976 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7977 #ifdef __cplusplus |
7978 extern "C" | |
7979 #endif | |
25897 | 7980 /* We use char because int might match the return type of a gcc2 |
40056 | 7981 builtin and then its argument prototype would still apply. */ |
7982 char maillock (); | |
7983 int | |
7984 main () | |
7985 { | |
7986 maillock (); | |
7987 ; | |
7988 return 0; | |
7989 } | |
7990 _ACEOF | |
7991 rm -f conftest.$ac_objext conftest$ac_exeext | |
7992 if { (eval echo "$as_me:7992: \"$ac_link\"") >&5 | |
7993 (eval $ac_link) 2>&5 | |
7994 ac_status=$? | |
7995 echo "$as_me:7995: \$? = $ac_status" >&5 | |
7996 (exit $ac_status); } && | |
7997 { ac_try='test -s conftest$ac_exeext' | |
7998 { (eval echo "$as_me:7998: \"$ac_try\"") >&5 | |
7999 (eval $ac_try) 2>&5 | |
8000 ac_status=$? | |
8001 echo "$as_me:8001: \$? = $ac_status" >&5 | |
8002 (exit $ac_status); }; }; then | |
8003 ac_cv_lib_lockfile_maillock=yes | |
8004 else | |
8005 echo "$as_me: failed program was:" >&5 | |
8006 cat conftest.$ac_ext >&5 | |
8007 ac_cv_lib_lockfile_maillock=no | |
8008 fi | |
8009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8010 LIBS=$ac_check_lib_save_LIBS | |
8011 fi | |
8012 echo "$as_me:8012: result: $ac_cv_lib_lockfile_maillock" >&5 | |
8013 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 | |
8014 if test $ac_cv_lib_lockfile_maillock = yes; then | |
8015 cat >>confdefs.h <<EOF | |
8016 #define HAVE_LIBLOCKFILE 1 | |
25897 | 8017 EOF |
8018 | |
8019 LIBS="-llockfile $LIBS" | |
8020 | |
8021 fi | |
8022 | |
8023 # If we have the shared liblockfile, assume we must use it for mail | |
8024 # locking (e.g. Debian). If we couldn't link against liblockfile | |
8025 # (no liblockfile.a installed), ensure that we don't need to. | |
8026 if test "$ac_cv_lib_lockfile_maillock" = no; then | |
8027 # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
8028 set dummy liblockfile.so; ac_word=$2 | |
40056 | 8029 echo "$as_me:8029: checking for $ac_word" >&5 |
8030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8031 if test "${ac_cv_prog_liblockfile+set}" = set; then | |
8032 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 8033 else |
8034 if test -n "$liblockfile"; then | |
8035 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
8036 else | |
40056 | 8037 ac_save_IFS=$IFS; IFS=$ac_path_separator |
8038 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | |
8039 for ac_dir in $ac_dummy; do | |
8040 IFS=$ac_save_IFS | |
8041 test -z "$ac_dir" && ac_dir=. | |
8042 $as_executable_p "$ac_dir/$ac_word" || continue | |
8043 ac_cv_prog_liblockfile="yes" | |
8044 echo "$as_me:8044: found $ac_dir/$ac_word" >&5 | |
8045 break | |
8046 done | |
8047 | |
25897 | 8048 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" |
8049 fi | |
8050 fi | |
40056 | 8051 liblockfile=$ac_cv_prog_liblockfile |
25897 | 8052 if test -n "$liblockfile"; then |
40056 | 8053 echo "$as_me:8053: result: $liblockfile" >&5 |
8054 echo "${ECHO_T}$liblockfile" >&6 | |
8055 else | |
8056 echo "$as_me:8056: result: no" >&5 | |
8057 echo "${ECHO_T}no" >&6 | |
25897 | 8058 fi |
8059 | |
8060 if test $ac_cv_prog_liblockfile = yes; then | |
40056 | 8061 { { echo "$as_me:8061: error: Shared liblockfile found but can't link against it. |
25897 | 8062 This probably means that movemail could lose mail. |
40056 | 8063 There may be a \`development' package to install containing liblockfile." >&5 |
8064 echo "$as_me: error: Shared liblockfile found but can't link against it. | |
8065 This probably means that movemail could lose mail. | |
8066 There may be a \`development' package to install containing liblockfile." >&2;} | |
8067 { (exit 1); exit 1; }; } | |
8068 else cat >>confdefs.h <<\EOF | |
25897 | 8069 #define LIBMAIL -llockfile |
8070 EOF | |
8071 | |
8072 fi | |
8073 else : | |
8074 fi | |
40056 | 8075 |
25897 | 8076 for ac_func in touchlock |
8077 do | |
40056 | 8078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8079 echo "$as_me:8079: checking for $ac_func" >&5 | |
8080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8081 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8082 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8083 else | |
8084 cat >conftest.$ac_ext <<_ACEOF | |
8085 #line 8085 "configure" | |
25897 | 8086 #include "confdefs.h" |
8087 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 8088 which can conflict with char $ac_func (); below. */ |
25897 | 8089 #include <assert.h> |
8090 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 8091 #ifdef __cplusplus |
8092 extern "C" | |
8093 #endif | |
25897 | 8094 /* We use char because int might match the return type of a gcc2 |
40056 | 8095 builtin and then its argument prototype would still apply. */ |
8096 char $ac_func (); | |
8097 char (*f) (); | |
8098 | |
8099 int | |
8100 main () | |
8101 { | |
25897 | 8102 /* The GNU C library defines this for functions which it implements |
8103 to always fail with ENOSYS. Some functions are actually named | |
8104 something starting with __ and the normal name is an alias. */ | |
8105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8106 choke me | |
8107 #else | |
40056 | 8108 f = $ac_func; |
8109 #endif | |
8110 | |
8111 ; | |
8112 return 0; | |
8113 } | |
8114 _ACEOF | |
8115 rm -f conftest.$ac_objext conftest$ac_exeext | |
8116 if { (eval echo "$as_me:8116: \"$ac_link\"") >&5 | |
8117 (eval $ac_link) 2>&5 | |
8118 ac_status=$? | |
8119 echo "$as_me:8119: \$? = $ac_status" >&5 | |
8120 (exit $ac_status); } && | |
8121 { ac_try='test -s conftest$ac_exeext' | |
8122 { (eval echo "$as_me:8122: \"$ac_try\"") >&5 | |
8123 (eval $ac_try) 2>&5 | |
8124 ac_status=$? | |
8125 echo "$as_me:8125: \$? = $ac_status" >&5 | |
8126 (exit $ac_status); }; }; then | |
8127 eval "$as_ac_var=yes" | |
8128 else | |
8129 echo "$as_me: failed program was:" >&5 | |
8130 cat conftest.$ac_ext >&5 | |
8131 eval "$as_ac_var=no" | |
8132 fi | |
8133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8134 fi | |
8135 echo "$as_me:8135: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
8136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
8137 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8138 cat >>confdefs.h <<EOF | |
8139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8140 EOF | |
8141 | |
25897 | 8142 fi |
8143 done | |
8144 | |
40056 | 8145 for ac_header in maillock.h |
25897 | 8146 do |
40056 | 8147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8148 echo "$as_me:8148: checking for $ac_header" >&5 | |
8149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8150 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8151 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8152 else | |
8153 cat >conftest.$ac_ext <<_ACEOF | |
8154 #line 8154 "configure" | |
8155 #include "confdefs.h" | |
8156 #include <$ac_header> | |
8157 _ACEOF | |
8158 if { (eval echo "$as_me:8158: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8160 ac_status=$? | |
8161 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8162 rm -f conftest.er1 | |
8163 cat conftest.err >&5 | |
8164 echo "$as_me:8164: \$? = $ac_status" >&5 | |
8165 (exit $ac_status); } >/dev/null; then | |
8166 if test -s conftest.err; then | |
8167 ac_cpp_err=$ac_c_preproc_warn_flag | |
8168 else | |
8169 ac_cpp_err= | |
8170 fi | |
8171 else | |
8172 ac_cpp_err=yes | |
8173 fi | |
8174 if test -z "$ac_cpp_err"; then | |
8175 eval "$as_ac_Header=yes" | |
8176 else | |
8177 echo "$as_me: failed program was:" >&5 | |
25897 | 8178 cat conftest.$ac_ext >&5 |
40056 | 8179 eval "$as_ac_Header=no" |
8180 fi | |
8181 rm -f conftest.err conftest.$ac_ext | |
8182 fi | |
8183 echo "$as_me:8183: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8185 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8186 cat >>confdefs.h <<EOF | |
8187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8188 EOF | |
8189 | |
25897 | 8190 fi |
8191 done | |
8192 | |
29906 | 8193 for ac_func in gethostname getdomainname dup2 \ |
25897 | 8194 rename closedir mkdir rmdir sysinfo \ |
8195 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
8196 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
29733 | 8197 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
33286 | 8198 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \ |
8199 gai_strerror mkstemp | |
25897 | 8200 do |
40056 | 8201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8202 echo "$as_me:8202: checking for $ac_func" >&5 | |
8203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8204 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8205 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8206 else | |
8207 cat >conftest.$ac_ext <<_ACEOF | |
8208 #line 8208 "configure" | |
25897 | 8209 #include "confdefs.h" |
8210 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 8211 which can conflict with char $ac_func (); below. */ |
25897 | 8212 #include <assert.h> |
8213 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 8214 #ifdef __cplusplus |
8215 extern "C" | |
8216 #endif | |
25897 | 8217 /* We use char because int might match the return type of a gcc2 |
40056 | 8218 builtin and then its argument prototype would still apply. */ |
8219 char $ac_func (); | |
8220 char (*f) (); | |
8221 | |
8222 int | |
8223 main () | |
8224 { | |
25897 | 8225 /* The GNU C library defines this for functions which it implements |
8226 to always fail with ENOSYS. Some functions are actually named | |
8227 something starting with __ and the normal name is an alias. */ | |
8228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8229 choke me | |
8230 #else | |
40056 | 8231 f = $ac_func; |
8232 #endif | |
8233 | |
8234 ; | |
8235 return 0; | |
8236 } | |
8237 _ACEOF | |
8238 rm -f conftest.$ac_objext conftest$ac_exeext | |
8239 if { (eval echo "$as_me:8239: \"$ac_link\"") >&5 | |
8240 (eval $ac_link) 2>&5 | |
8241 ac_status=$? | |
8242 echo "$as_me:8242: \$? = $ac_status" >&5 | |
8243 (exit $ac_status); } && | |
8244 { ac_try='test -s conftest$ac_exeext' | |
8245 { (eval echo "$as_me:8245: \"$ac_try\"") >&5 | |
8246 (eval $ac_try) 2>&5 | |
8247 ac_status=$? | |
8248 echo "$as_me:8248: \$? = $ac_status" >&5 | |
8249 (exit $ac_status); }; }; then | |
8250 eval "$as_ac_var=yes" | |
8251 else | |
8252 echo "$as_me: failed program was:" >&5 | |
8253 cat conftest.$ac_ext >&5 | |
8254 eval "$as_ac_var=no" | |
8255 fi | |
8256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8257 fi | |
8258 echo "$as_me:8258: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
8259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
8260 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8261 cat >>confdefs.h <<EOF | |
8262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8263 EOF | |
8264 | |
25897 | 8265 fi |
8266 done | |
8267 | |
40056 | 8268 for ac_header in sys/time.h unistd.h |
28607 | 8269 do |
40056 | 8270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8271 echo "$as_me:8271: checking for $ac_header" >&5 | |
8272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8273 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8274 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8275 else | |
8276 cat >conftest.$ac_ext <<_ACEOF | |
8277 #line 8277 "configure" | |
8278 #include "confdefs.h" | |
8279 #include <$ac_header> | |
8280 _ACEOF | |
8281 if { (eval echo "$as_me:8281: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8283 ac_status=$? | |
8284 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8285 rm -f conftest.er1 | |
8286 cat conftest.err >&5 | |
8287 echo "$as_me:8287: \$? = $ac_status" >&5 | |
8288 (exit $ac_status); } >/dev/null; then | |
8289 if test -s conftest.err; then | |
8290 ac_cpp_err=$ac_c_preproc_warn_flag | |
8291 else | |
8292 ac_cpp_err= | |
8293 fi | |
8294 else | |
8295 ac_cpp_err=yes | |
8296 fi | |
8297 if test -z "$ac_cpp_err"; then | |
8298 eval "$as_ac_Header=yes" | |
8299 else | |
8300 echo "$as_me: failed program was:" >&5 | |
28607 | 8301 cat conftest.$ac_ext >&5 |
40056 | 8302 eval "$as_ac_Header=no" |
8303 fi | |
8304 rm -f conftest.err conftest.$ac_ext | |
8305 fi | |
8306 echo "$as_me:8306: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8308 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8309 cat >>confdefs.h <<EOF | |
8310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8311 EOF | |
8312 | |
28607 | 8313 fi |
8314 done | |
8315 | |
8316 for ac_func in alarm | |
8317 do | |
40056 | 8318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8319 echo "$as_me:8319: checking for $ac_func" >&5 | |
8320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8321 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8322 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8323 else | |
8324 cat >conftest.$ac_ext <<_ACEOF | |
8325 #line 8325 "configure" | |
28607 | 8326 #include "confdefs.h" |
8327 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 8328 which can conflict with char $ac_func (); below. */ |
28607 | 8329 #include <assert.h> |
8330 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 8331 #ifdef __cplusplus |
8332 extern "C" | |
8333 #endif | |
28607 | 8334 /* We use char because int might match the return type of a gcc2 |
40056 | 8335 builtin and then its argument prototype would still apply. */ |
8336 char $ac_func (); | |
8337 char (*f) (); | |
8338 | |
8339 int | |
8340 main () | |
8341 { | |
28607 | 8342 /* The GNU C library defines this for functions which it implements |
8343 to always fail with ENOSYS. Some functions are actually named | |
8344 something starting with __ and the normal name is an alias. */ | |
8345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8346 choke me | |
8347 #else | |
40056 | 8348 f = $ac_func; |
8349 #endif | |
8350 | |
8351 ; | |
8352 return 0; | |
8353 } | |
8354 _ACEOF | |
8355 rm -f conftest.$ac_objext conftest$ac_exeext | |
8356 if { (eval echo "$as_me:8356: \"$ac_link\"") >&5 | |
8357 (eval $ac_link) 2>&5 | |
8358 ac_status=$? | |
8359 echo "$as_me:8359: \$? = $ac_status" >&5 | |
8360 (exit $ac_status); } && | |
8361 { ac_try='test -s conftest$ac_exeext' | |
8362 { (eval echo "$as_me:8362: \"$ac_try\"") >&5 | |
8363 (eval $ac_try) 2>&5 | |
8364 ac_status=$? | |
8365 echo "$as_me:8365: \$? = $ac_status" >&5 | |
8366 (exit $ac_status); }; }; then | |
8367 eval "$as_ac_var=yes" | |
8368 else | |
8369 echo "$as_me: failed program was:" >&5 | |
8370 cat conftest.$ac_ext >&5 | |
8371 eval "$as_ac_var=no" | |
8372 fi | |
8373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8374 fi | |
8375 echo "$as_me:8375: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
8376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
8377 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8378 cat >>confdefs.h <<EOF | |
8379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8380 EOF | |
8381 | |
28607 | 8382 fi |
8383 done | |
8384 | |
40056 | 8385 echo "$as_me:8385: checking for working mktime" >&5 |
8386 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 | |
8387 if test "${ac_cv_func_working_mktime+set}" = set; then | |
8388 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28607 | 8389 else |
8390 if test "$cross_compiling" = yes; then | |
8391 ac_cv_func_working_mktime=no | |
8392 else | |
40056 | 8393 cat >conftest.$ac_ext <<_ACEOF |
8394 #line 8394 "configure" | |
8395 #include "confdefs.h" | |
8396 /* Test program from Paul Eggert and Tony Leneis. */ | |
28607 | 8397 #if TIME_WITH_SYS_TIME |
8398 # include <sys/time.h> | |
8399 # include <time.h> | |
8400 #else | |
8401 # if HAVE_SYS_TIME_H | |
8402 # include <sys/time.h> | |
8403 # else | |
8404 # include <time.h> | |
8405 # endif | |
8406 #endif | |
8407 | |
8408 #if HAVE_UNISTD_H | |
8409 # include <unistd.h> | |
8410 #endif | |
8411 | |
8412 #if !HAVE_ALARM | |
8413 # define alarm(X) /* empty */ | |
8414 #endif | |
8415 | |
8416 /* Work around redefinition to rpl_putenv by other config tests. */ | |
8417 #undef putenv | |
8418 | |
8419 static time_t time_t_max; | |
8420 | |
8421 /* Values we'll use to set the TZ environment variable. */ | |
8422 static const char *const tz_strings[] = { | |
8423 (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
8424 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
8425 }; | |
8426 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
8427 | |
8428 /* Fail if mktime fails to convert a date in the spring-forward gap. | |
8429 Based on a problem report from Andreas Jaeger. */ | |
8430 static void | |
8431 spring_forward_gap () | |
8432 { | |
40056 | 8433 /* glibc (up to about 1998-10-07) failed this test. */ |
28607 | 8434 struct tm tm; |
8435 | |
8436 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
8437 instead of "TZ=America/Vancouver" in order to detect the bug even | |
8438 on systems that don't support the Olson extension, or don't have the | |
8439 full zoneinfo tables installed. */ | |
8440 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
8441 | |
8442 tm.tm_year = 98; | |
8443 tm.tm_mon = 3; | |
8444 tm.tm_mday = 5; | |
8445 tm.tm_hour = 2; | |
8446 tm.tm_min = 0; | |
8447 tm.tm_sec = 0; | |
8448 tm.tm_isdst = -1; | |
8449 if (mktime (&tm) == (time_t)-1) | |
8450 exit (1); | |
8451 } | |
8452 | |
8453 static void | |
8454 mktime_test (now) | |
8455 time_t now; | |
8456 { | |
8457 struct tm *lt; | |
8458 if ((lt = localtime (&now)) && mktime (lt) != now) | |
8459 exit (1); | |
8460 now = time_t_max - now; | |
8461 if ((lt = localtime (&now)) && mktime (lt) != now) | |
8462 exit (1); | |
8463 } | |
8464 | |
8465 static void | |
8466 irix_6_4_bug () | |
8467 { | |
8468 /* Based on code from Ariel Faigon. */ | |
8469 struct tm tm; | |
8470 tm.tm_year = 96; | |
8471 tm.tm_mon = 3; | |
8472 tm.tm_mday = 0; | |
8473 tm.tm_hour = 0; | |
8474 tm.tm_min = 0; | |
8475 tm.tm_sec = 0; | |
8476 tm.tm_isdst = -1; | |
8477 mktime (&tm); | |
8478 if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
8479 exit (1); | |
8480 } | |
8481 | |
8482 static void | |
8483 bigtime_test (j) | |
8484 int j; | |
8485 { | |
8486 struct tm tm; | |
8487 time_t now; | |
8488 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
8489 now = mktime (&tm); | |
8490 if (now != (time_t) -1) | |
8491 { | |
8492 struct tm *lt = localtime (&now); | |
8493 if (! (lt | |
8494 && lt->tm_year == tm.tm_year | |
8495 && lt->tm_mon == tm.tm_mon | |
8496 && lt->tm_mday == tm.tm_mday | |
8497 && lt->tm_hour == tm.tm_hour | |
8498 && lt->tm_min == tm.tm_min | |
8499 && lt->tm_sec == tm.tm_sec | |
8500 && lt->tm_yday == tm.tm_yday | |
8501 && lt->tm_wday == tm.tm_wday | |
8502 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
8503 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
8504 exit (1); | |
8505 } | |
8506 } | |
8507 | |
8508 int | |
8509 main () | |
8510 { | |
8511 time_t t, delta; | |
8512 int i, j; | |
8513 | |
8514 /* This test makes some buggy mktime implementations loop. | |
8515 Give up after 60 seconds; a mktime slower than that | |
8516 isn't worth using anyway. */ | |
8517 alarm (60); | |
8518 | |
8519 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
8520 continue; | |
8521 time_t_max--; | |
8522 delta = time_t_max / 997; /* a suitable prime number */ | |
8523 for (i = 0; i < N_STRINGS; i++) | |
8524 { | |
8525 if (tz_strings[i]) | |
8526 putenv (tz_strings[i]); | |
8527 | |
8528 for (t = 0; t <= time_t_max - delta; t += delta) | |
8529 mktime_test (t); | |
8530 mktime_test ((time_t) 60 * 60); | |
8531 mktime_test ((time_t) 60 * 60 * 24); | |
8532 | |
8533 for (j = 1; 0 < j; j *= 2) | |
8534 bigtime_test (j); | |
8535 bigtime_test (j - 1); | |
8536 } | |
8537 irix_6_4_bug (); | |
8538 spring_forward_gap (); | |
8539 exit (0); | |
8540 } | |
40056 | 8541 _ACEOF |
8542 rm -f conftest$ac_exeext | |
8543 if { (eval echo "$as_me:8543: \"$ac_link\"") >&5 | |
8544 (eval $ac_link) 2>&5 | |
8545 ac_status=$? | |
8546 echo "$as_me:8546: \$? = $ac_status" >&5 | |
8547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8548 { (eval echo "$as_me:8548: \"$ac_try\"") >&5 | |
8549 (eval $ac_try) 2>&5 | |
8550 ac_status=$? | |
8551 echo "$as_me:8551: \$? = $ac_status" >&5 | |
8552 (exit $ac_status); }; }; then | |
28607 | 8553 ac_cv_func_working_mktime=yes |
8554 else | |
40056 | 8555 echo "$as_me: program exited with status $ac_status" >&5 |
8556 echo "$as_me: failed program was:" >&5 | |
8557 cat conftest.$ac_ext >&5 | |
8558 ac_cv_func_working_mktime=no | |
8559 fi | |
8560 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8561 fi | |
8562 fi | |
8563 echo "$as_me:8563: result: $ac_cv_func_working_mktime" >&5 | |
8564 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 | |
28607 | 8565 if test $ac_cv_func_working_mktime = no; then |
40056 | 8566 LIBOBJS="$LIBOBJS mktime.$ac_objext" |
28607 | 8567 fi |
8568 | |
8569 if test "$ac_cv_func_working_mktime" = no; then | |
40056 | 8570 cat >>confdefs.h <<\EOF |
28607 | 8571 #define BROKEN_MKTIME 1 |
8572 EOF | |
8573 | |
8574 fi | |
8575 | |
29834 | 8576 ac_have_func=no # yes means we've found a way to get the load average. |
8577 | |
40056 | 8578 ac_save_LIBS=$LIBS |
8579 | |
8580 # Check for getloadavg, but be sure not to touch the cache variable. | |
8581 (echo "$as_me:8581: checking for getloadavg" >&5 | |
8582 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 | |
8583 if test "${ac_cv_func_getloadavg+set}" = set; then | |
8584 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8585 else | |
8586 cat >conftest.$ac_ext <<_ACEOF | |
8587 #line 8587 "configure" | |
8588 #include "confdefs.h" | |
8589 /* System header to define __stub macros and hopefully few prototypes, | |
8590 which can conflict with char getloadavg (); below. */ | |
8591 #include <assert.h> | |
8592 /* Override any gcc2 internal prototype to avoid an error. */ | |
8593 #ifdef __cplusplus | |
8594 extern "C" | |
8595 #endif | |
8596 /* We use char because int might match the return type of a gcc2 | |
8597 builtin and then its argument prototype would still apply. */ | |
8598 char getloadavg (); | |
8599 char (*f) (); | |
8600 | |
8601 int | |
8602 main () | |
8603 { | |
8604 /* The GNU C library defines this for functions which it implements | |
8605 to always fail with ENOSYS. Some functions are actually named | |
8606 something starting with __ and the normal name is an alias. */ | |
8607 #if defined (__stub_getloadavg) || defined (__stub___getloadavg) | |
8608 choke me | |
8609 #else | |
8610 f = getloadavg; | |
8611 #endif | |
8612 | |
8613 ; | |
8614 return 0; | |
8615 } | |
8616 _ACEOF | |
8617 rm -f conftest.$ac_objext conftest$ac_exeext | |
8618 if { (eval echo "$as_me:8618: \"$ac_link\"") >&5 | |
8619 (eval $ac_link) 2>&5 | |
8620 ac_status=$? | |
8621 echo "$as_me:8621: \$? = $ac_status" >&5 | |
8622 (exit $ac_status); } && | |
8623 { ac_try='test -s conftest$ac_exeext' | |
8624 { (eval echo "$as_me:8624: \"$ac_try\"") >&5 | |
8625 (eval $ac_try) 2>&5 | |
8626 ac_status=$? | |
8627 echo "$as_me:8627: \$? = $ac_status" >&5 | |
8628 (exit $ac_status); }; }; then | |
8629 ac_cv_func_getloadavg=yes | |
8630 else | |
8631 echo "$as_me: failed program was:" >&5 | |
8632 cat conftest.$ac_ext >&5 | |
8633 ac_cv_func_getloadavg=no | |
8634 fi | |
8635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8636 fi | |
8637 echo "$as_me:8637: result: $ac_cv_func_getloadavg" >&5 | |
8638 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 | |
8639 if test $ac_cv_func_getloadavg = yes; then | |
8640 exit 0 | |
8641 else | |
8642 exit 1 | |
8643 fi | |
8644 ) && ac_have_func=yes | |
8645 | |
8646 # On HPUX9, an unprivileged user can get load averages through this function. | |
8647 | |
8648 for ac_func in pstat_getdynamic | |
8649 do | |
8650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8651 echo "$as_me:8651: checking for $ac_func" >&5 | |
8652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8653 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8654 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8655 else | |
8656 cat >conftest.$ac_ext <<_ACEOF | |
8657 #line 8657 "configure" | |
8658 #include "confdefs.h" | |
8659 /* System header to define __stub macros and hopefully few prototypes, | |
8660 which can conflict with char $ac_func (); below. */ | |
8661 #include <assert.h> | |
8662 /* Override any gcc2 internal prototype to avoid an error. */ | |
8663 #ifdef __cplusplus | |
8664 extern "C" | |
8665 #endif | |
8666 /* We use char because int might match the return type of a gcc2 | |
8667 builtin and then its argument prototype would still apply. */ | |
8668 char $ac_func (); | |
8669 char (*f) (); | |
8670 | |
8671 int | |
8672 main () | |
8673 { | |
8674 /* The GNU C library defines this for functions which it implements | |
8675 to always fail with ENOSYS. Some functions are actually named | |
8676 something starting with __ and the normal name is an alias. */ | |
8677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8678 choke me | |
8679 #else | |
8680 f = $ac_func; | |
8681 #endif | |
8682 | |
8683 ; | |
8684 return 0; | |
8685 } | |
8686 _ACEOF | |
8687 rm -f conftest.$ac_objext conftest$ac_exeext | |
8688 if { (eval echo "$as_me:8688: \"$ac_link\"") >&5 | |
8689 (eval $ac_link) 2>&5 | |
8690 ac_status=$? | |
8691 echo "$as_me:8691: \$? = $ac_status" >&5 | |
8692 (exit $ac_status); } && | |
8693 { ac_try='test -s conftest$ac_exeext' | |
8694 { (eval echo "$as_me:8694: \"$ac_try\"") >&5 | |
8695 (eval $ac_try) 2>&5 | |
8696 ac_status=$? | |
8697 echo "$as_me:8697: \$? = $ac_status" >&5 | |
8698 (exit $ac_status); }; }; then | |
8699 eval "$as_ac_var=yes" | |
8700 else | |
8701 echo "$as_me: failed program was:" >&5 | |
8702 cat conftest.$ac_ext >&5 | |
8703 eval "$as_ac_var=no" | |
8704 fi | |
8705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8706 fi | |
8707 echo "$as_me:8707: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
8708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
8709 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8710 cat >>confdefs.h <<EOF | |
8711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8712 EOF | |
8713 | |
8714 fi | |
8715 done | |
8716 | |
8717 # Solaris has libkstat which does not require root. | |
8718 | |
8719 echo "$as_me:8719: checking for kstat_open in -lkstat" >&5 | |
8720 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 | |
8721 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
8722 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8723 else | |
8724 ac_check_lib_save_LIBS=$LIBS | |
8725 LIBS="-lkstat $LIBS" | |
8726 cat >conftest.$ac_ext <<_ACEOF | |
8727 #line 8727 "configure" | |
8728 #include "confdefs.h" | |
8729 | |
8730 /* Override any gcc2 internal prototype to avoid an error. */ | |
8731 #ifdef __cplusplus | |
8732 extern "C" | |
8733 #endif | |
8734 /* We use char because int might match the return type of a gcc2 | |
8735 builtin and then its argument prototype would still apply. */ | |
8736 char kstat_open (); | |
8737 int | |
8738 main () | |
8739 { | |
8740 kstat_open (); | |
8741 ; | |
8742 return 0; | |
8743 } | |
8744 _ACEOF | |
8745 rm -f conftest.$ac_objext conftest$ac_exeext | |
8746 if { (eval echo "$as_me:8746: \"$ac_link\"") >&5 | |
8747 (eval $ac_link) 2>&5 | |
8748 ac_status=$? | |
8749 echo "$as_me:8749: \$? = $ac_status" >&5 | |
8750 (exit $ac_status); } && | |
8751 { ac_try='test -s conftest$ac_exeext' | |
8752 { (eval echo "$as_me:8752: \"$ac_try\"") >&5 | |
8753 (eval $ac_try) 2>&5 | |
8754 ac_status=$? | |
8755 echo "$as_me:8755: \$? = $ac_status" >&5 | |
8756 (exit $ac_status); }; }; then | |
8757 ac_cv_lib_kstat_kstat_open=yes | |
8758 else | |
8759 echo "$as_me: failed program was:" >&5 | |
8760 cat conftest.$ac_ext >&5 | |
8761 ac_cv_lib_kstat_kstat_open=no | |
8762 fi | |
8763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8764 LIBS=$ac_check_lib_save_LIBS | |
8765 fi | |
8766 echo "$as_me:8766: result: $ac_cv_lib_kstat_kstat_open" >&5 | |
8767 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 | |
8768 if test $ac_cv_lib_kstat_kstat_open = yes; then | |
8769 cat >>confdefs.h <<EOF | |
8770 #define HAVE_LIBKSTAT 1 | |
8771 EOF | |
8772 | |
8773 LIBS="-lkstat $LIBS" | |
8774 | |
8775 fi | |
8776 | |
8777 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes | |
8778 | |
29834 | 8779 # Some systems with -lutil have (and need) -lkvm as well, some do not. |
8780 # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
8781 # to get the right answer into the cache. | |
40056 | 8782 # For kstat on solaris, we need libelf to force the definition of SVR4 below. |
8783 if test $ac_have_func = no; then | |
8784 echo "$as_me:8784: checking for elf_begin in -lelf" >&5 | |
8785 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 | |
8786 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
8787 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8788 else | |
8789 ac_check_lib_save_LIBS=$LIBS | |
29834 | 8790 LIBS="-lelf $LIBS" |
40056 | 8791 cat >conftest.$ac_ext <<_ACEOF |
8792 #line 8792 "configure" | |
8793 #include "confdefs.h" | |
8794 | |
29834 | 8795 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8796 #ifdef __cplusplus |
8797 extern "C" | |
8798 #endif | |
29834 | 8799 /* We use char because int might match the return type of a gcc2 |
40056 | 8800 builtin and then its argument prototype would still apply. */ |
8801 char elf_begin (); | |
8802 int | |
8803 main () | |
8804 { | |
8805 elf_begin (); | |
8806 ; | |
8807 return 0; | |
8808 } | |
8809 _ACEOF | |
8810 rm -f conftest.$ac_objext conftest$ac_exeext | |
8811 if { (eval echo "$as_me:8811: \"$ac_link\"") >&5 | |
8812 (eval $ac_link) 2>&5 | |
8813 ac_status=$? | |
8814 echo "$as_me:8814: \$? = $ac_status" >&5 | |
8815 (exit $ac_status); } && | |
8816 { ac_try='test -s conftest$ac_exeext' | |
8817 { (eval echo "$as_me:8817: \"$ac_try\"") >&5 | |
8818 (eval $ac_try) 2>&5 | |
8819 ac_status=$? | |
8820 echo "$as_me:8820: \$? = $ac_status" >&5 | |
8821 (exit $ac_status); }; }; then | |
8822 ac_cv_lib_elf_elf_begin=yes | |
8823 else | |
8824 echo "$as_me: failed program was:" >&5 | |
8825 cat conftest.$ac_ext >&5 | |
8826 ac_cv_lib_elf_elf_begin=no | |
8827 fi | |
8828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8829 LIBS=$ac_check_lib_save_LIBS | |
8830 fi | |
8831 echo "$as_me:8831: result: $ac_cv_lib_elf_elf_begin" >&5 | |
8832 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 | |
8833 if test $ac_cv_lib_elf_elf_begin = yes; then | |
29834 | 8834 LIBS="-lelf $LIBS" |
40056 | 8835 fi |
8836 | |
8837 fi | |
8838 if test $ac_have_func = no; then | |
8839 echo "$as_me:8839: checking for kvm_open in -lkvm" >&5 | |
8840 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 | |
8841 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
8842 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8843 else | |
8844 ac_check_lib_save_LIBS=$LIBS | |
29834 | 8845 LIBS="-lkvm $LIBS" |
40056 | 8846 cat >conftest.$ac_ext <<_ACEOF |
8847 #line 8847 "configure" | |
8848 #include "confdefs.h" | |
8849 | |
29834 | 8850 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8851 #ifdef __cplusplus |
8852 extern "C" | |
8853 #endif | |
29834 | 8854 /* We use char because int might match the return type of a gcc2 |
40056 | 8855 builtin and then its argument prototype would still apply. */ |
8856 char kvm_open (); | |
8857 int | |
8858 main () | |
8859 { | |
8860 kvm_open (); | |
8861 ; | |
8862 return 0; | |
8863 } | |
8864 _ACEOF | |
8865 rm -f conftest.$ac_objext conftest$ac_exeext | |
8866 if { (eval echo "$as_me:8866: \"$ac_link\"") >&5 | |
8867 (eval $ac_link) 2>&5 | |
8868 ac_status=$? | |
8869 echo "$as_me:8869: \$? = $ac_status" >&5 | |
8870 (exit $ac_status); } && | |
8871 { ac_try='test -s conftest$ac_exeext' | |
8872 { (eval echo "$as_me:8872: \"$ac_try\"") >&5 | |
8873 (eval $ac_try) 2>&5 | |
8874 ac_status=$? | |
8875 echo "$as_me:8875: \$? = $ac_status" >&5 | |
8876 (exit $ac_status); }; }; then | |
8877 ac_cv_lib_kvm_kvm_open=yes | |
8878 else | |
8879 echo "$as_me: failed program was:" >&5 | |
8880 cat conftest.$ac_ext >&5 | |
8881 ac_cv_lib_kvm_kvm_open=no | |
8882 fi | |
8883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8884 LIBS=$ac_check_lib_save_LIBS | |
8885 fi | |
8886 echo "$as_me:8886: result: $ac_cv_lib_kvm_kvm_open" >&5 | |
8887 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 | |
8888 if test $ac_cv_lib_kvm_kvm_open = yes; then | |
29834 | 8889 LIBS="-lkvm $LIBS" |
40056 | 8890 fi |
8891 | |
8892 # Check for the 4.4BSD definition of getloadavg. | |
8893 echo "$as_me:8893: checking for getloadavg in -lutil" >&5 | |
8894 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 | |
8895 if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
8896 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8897 else | |
8898 ac_check_lib_save_LIBS=$LIBS | |
29834 | 8899 LIBS="-lutil $LIBS" |
40056 | 8900 cat >conftest.$ac_ext <<_ACEOF |
8901 #line 8901 "configure" | |
8902 #include "confdefs.h" | |
8903 | |
29834 | 8904 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8905 #ifdef __cplusplus |
8906 extern "C" | |
8907 #endif | |
29834 | 8908 /* We use char because int might match the return type of a gcc2 |
40056 | 8909 builtin and then its argument prototype would still apply. */ |
8910 char getloadavg (); | |
8911 int | |
8912 main () | |
8913 { | |
8914 getloadavg (); | |
8915 ; | |
8916 return 0; | |
8917 } | |
8918 _ACEOF | |
8919 rm -f conftest.$ac_objext conftest$ac_exeext | |
8920 if { (eval echo "$as_me:8920: \"$ac_link\"") >&5 | |
8921 (eval $ac_link) 2>&5 | |
8922 ac_status=$? | |
8923 echo "$as_me:8923: \$? = $ac_status" >&5 | |
8924 (exit $ac_status); } && | |
8925 { ac_try='test -s conftest$ac_exeext' | |
8926 { (eval echo "$as_me:8926: \"$ac_try\"") >&5 | |
8927 (eval $ac_try) 2>&5 | |
8928 ac_status=$? | |
8929 echo "$as_me:8929: \$? = $ac_status" >&5 | |
8930 (exit $ac_status); }; }; then | |
8931 ac_cv_lib_util_getloadavg=yes | |
8932 else | |
8933 echo "$as_me: failed program was:" >&5 | |
8934 cat conftest.$ac_ext >&5 | |
8935 ac_cv_lib_util_getloadavg=no | |
8936 fi | |
8937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8938 LIBS=$ac_check_lib_save_LIBS | |
8939 fi | |
8940 echo "$as_me:8940: result: $ac_cv_lib_util_getloadavg" >&5 | |
8941 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 | |
8942 if test $ac_cv_lib_util_getloadavg = yes; then | |
29834 | 8943 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes |
40056 | 8944 fi |
8945 | |
8946 fi | |
29834 | 8947 |
8948 if test $ac_have_func = no; then | |
8949 # There is a commonly available library for RS/6000 AIX. | |
8950 # Since it is not a standard part of AIX, it might be installed locally. | |
40056 | 8951 ac_getloadavg_LIBS=$LIBS |
8952 LIBS="-L/usr/local/lib $LIBS" | |
8953 echo "$as_me:8953: checking for getloadavg in -lgetloadavg" >&5 | |
8954 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 | |
8955 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
8956 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8957 else | |
8958 ac_check_lib_save_LIBS=$LIBS | |
29834 | 8959 LIBS="-lgetloadavg $LIBS" |
40056 | 8960 cat >conftest.$ac_ext <<_ACEOF |
8961 #line 8961 "configure" | |
8962 #include "confdefs.h" | |
8963 | |
29834 | 8964 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8965 #ifdef __cplusplus |
8966 extern "C" | |
8967 #endif | |
29834 | 8968 /* We use char because int might match the return type of a gcc2 |
40056 | 8969 builtin and then its argument prototype would still apply. */ |
8970 char getloadavg (); | |
8971 int | |
8972 main () | |
8973 { | |
8974 getloadavg (); | |
8975 ; | |
8976 return 0; | |
8977 } | |
8978 _ACEOF | |
8979 rm -f conftest.$ac_objext conftest$ac_exeext | |
8980 if { (eval echo "$as_me:8980: \"$ac_link\"") >&5 | |
8981 (eval $ac_link) 2>&5 | |
8982 ac_status=$? | |
8983 echo "$as_me:8983: \$? = $ac_status" >&5 | |
8984 (exit $ac_status); } && | |
8985 { ac_try='test -s conftest$ac_exeext' | |
8986 { (eval echo "$as_me:8986: \"$ac_try\"") >&5 | |
8987 (eval $ac_try) 2>&5 | |
8988 ac_status=$? | |
8989 echo "$as_me:8989: \$? = $ac_status" >&5 | |
8990 (exit $ac_status); }; }; then | |
8991 ac_cv_lib_getloadavg_getloadavg=yes | |
8992 else | |
8993 echo "$as_me: failed program was:" >&5 | |
8994 cat conftest.$ac_ext >&5 | |
8995 ac_cv_lib_getloadavg_getloadavg=no | |
8996 fi | |
8997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8998 LIBS=$ac_check_lib_save_LIBS | |
8999 fi | |
9000 echo "$as_me:9000: result: $ac_cv_lib_getloadavg_getloadavg" >&5 | |
9001 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 | |
9002 if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
29834 | 9003 LIBS="-lgetloadavg $LIBS" |
9004 else | |
40056 | 9005 LIBS=$ac_getloadavg_LIBS |
9006 fi | |
9007 | |
9008 fi | |
9009 | |
9010 # Make sure it is really in the library, if we think we found it, | |
9011 # otherwise set up the replacement function. | |
9012 | |
29834 | 9013 for ac_func in getloadavg |
9014 do | |
40056 | 9015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9016 echo "$as_me:9016: checking for $ac_func" >&5 | |
9017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9018 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9019 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9020 else | |
9021 cat >conftest.$ac_ext <<_ACEOF | |
9022 #line 9022 "configure" | |
29834 | 9023 #include "confdefs.h" |
9024 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 9025 which can conflict with char $ac_func (); below. */ |
29834 | 9026 #include <assert.h> |
9027 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 9028 #ifdef __cplusplus |
9029 extern "C" | |
9030 #endif | |
29834 | 9031 /* We use char because int might match the return type of a gcc2 |
40056 | 9032 builtin and then its argument prototype would still apply. */ |
9033 char $ac_func (); | |
9034 char (*f) (); | |
9035 | |
9036 int | |
9037 main () | |
9038 { | |
29834 | 9039 /* The GNU C library defines this for functions which it implements |
9040 to always fail with ENOSYS. Some functions are actually named | |
9041 something starting with __ and the normal name is an alias. */ | |
9042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9043 choke me | |
9044 #else | |
40056 | 9045 f = $ac_func; |
9046 #endif | |
9047 | |
9048 ; | |
9049 return 0; | |
9050 } | |
9051 _ACEOF | |
9052 rm -f conftest.$ac_objext conftest$ac_exeext | |
9053 if { (eval echo "$as_me:9053: \"$ac_link\"") >&5 | |
9054 (eval $ac_link) 2>&5 | |
9055 ac_status=$? | |
9056 echo "$as_me:9056: \$? = $ac_status" >&5 | |
9057 (exit $ac_status); } && | |
9058 { ac_try='test -s conftest$ac_exeext' | |
9059 { (eval echo "$as_me:9059: \"$ac_try\"") >&5 | |
9060 (eval $ac_try) 2>&5 | |
9061 ac_status=$? | |
9062 echo "$as_me:9062: \$? = $ac_status" >&5 | |
9063 (exit $ac_status); }; }; then | |
9064 eval "$as_ac_var=yes" | |
9065 else | |
9066 echo "$as_me: failed program was:" >&5 | |
9067 cat conftest.$ac_ext >&5 | |
9068 eval "$as_ac_var=no" | |
9069 fi | |
9070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9071 fi | |
9072 echo "$as_me:9072: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9074 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9075 cat >>confdefs.h <<EOF | |
9076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9077 EOF | |
9078 | |
9079 else | |
9080 LIBOBJS="$LIBOBJS getloadavg.$ac_objext" | |
9081 | |
9082 cat >>confdefs.h <<\EOF | |
9083 #define C_GETLOADAVG 1 | |
9084 EOF | |
9085 | |
9086 # Figure out what our getloadavg.c needs. | |
9087 ac_have_func=no | |
9088 echo "$as_me:9088: checking for sys/dg_sys_info.h" >&5 | |
9089 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 | |
9090 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
9091 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9092 else | |
9093 cat >conftest.$ac_ext <<_ACEOF | |
9094 #line 9094 "configure" | |
29834 | 9095 #include "confdefs.h" |
9096 #include <sys/dg_sys_info.h> | |
40056 | 9097 _ACEOF |
9098 if { (eval echo "$as_me:9098: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9100 ac_status=$? | |
9101 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9102 rm -f conftest.er1 | |
9103 cat conftest.err >&5 | |
9104 echo "$as_me:9104: \$? = $ac_status" >&5 | |
9105 (exit $ac_status); } >/dev/null; then | |
9106 if test -s conftest.err; then | |
9107 ac_cpp_err=$ac_c_preproc_warn_flag | |
9108 else | |
9109 ac_cpp_err= | |
9110 fi | |
9111 else | |
9112 ac_cpp_err=yes | |
9113 fi | |
9114 if test -z "$ac_cpp_err"; then | |
9115 ac_cv_header_sys_dg_sys_info_h=yes | |
9116 else | |
9117 echo "$as_me: failed program was:" >&5 | |
29834 | 9118 cat conftest.$ac_ext >&5 |
40056 | 9119 ac_cv_header_sys_dg_sys_info_h=no |
9120 fi | |
9121 rm -f conftest.err conftest.$ac_ext | |
9122 fi | |
9123 echo "$as_me:9123: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
9124 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 | |
9125 if test $ac_cv_header_sys_dg_sys_info_h = yes; then | |
9126 ac_have_func=yes | |
9127 | |
9128 cat >>confdefs.h <<\EOF | |
29834 | 9129 #define DGUX 1 |
9130 EOF | |
9131 | |
40056 | 9132 echo "$as_me:9132: checking for dg_sys_info in -ldgc" >&5 |
9133 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 | |
9134 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
9135 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9136 else | |
9137 ac_check_lib_save_LIBS=$LIBS | |
29834 | 9138 LIBS="-ldgc $LIBS" |
40056 | 9139 cat >conftest.$ac_ext <<_ACEOF |
9140 #line 9140 "configure" | |
9141 #include "confdefs.h" | |
9142 | |
29834 | 9143 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9144 #ifdef __cplusplus |
9145 extern "C" | |
9146 #endif | |
29834 | 9147 /* We use char because int might match the return type of a gcc2 |
40056 | 9148 builtin and then its argument prototype would still apply. */ |
9149 char dg_sys_info (); | |
9150 int | |
9151 main () | |
9152 { | |
9153 dg_sys_info (); | |
9154 ; | |
9155 return 0; | |
9156 } | |
9157 _ACEOF | |
9158 rm -f conftest.$ac_objext conftest$ac_exeext | |
9159 if { (eval echo "$as_me:9159: \"$ac_link\"") >&5 | |
9160 (eval $ac_link) 2>&5 | |
9161 ac_status=$? | |
9162 echo "$as_me:9162: \$? = $ac_status" >&5 | |
9163 (exit $ac_status); } && | |
9164 { ac_try='test -s conftest$ac_exeext' | |
9165 { (eval echo "$as_me:9165: \"$ac_try\"") >&5 | |
9166 (eval $ac_try) 2>&5 | |
9167 ac_status=$? | |
9168 echo "$as_me:9168: \$? = $ac_status" >&5 | |
9169 (exit $ac_status); }; }; then | |
9170 ac_cv_lib_dgc_dg_sys_info=yes | |
9171 else | |
9172 echo "$as_me: failed program was:" >&5 | |
9173 cat conftest.$ac_ext >&5 | |
9174 ac_cv_lib_dgc_dg_sys_info=no | |
9175 fi | |
9176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9177 LIBS=$ac_check_lib_save_LIBS | |
9178 fi | |
9179 echo "$as_me:9179: result: $ac_cv_lib_dgc_dg_sys_info" >&5 | |
9180 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 | |
9181 if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
9182 cat >>confdefs.h <<EOF | |
9183 #define HAVE_LIBDGC 1 | |
29834 | 9184 EOF |
9185 | |
9186 LIBS="-ldgc $LIBS" | |
9187 | |
40056 | 9188 fi |
9189 | |
9190 fi | |
9191 | |
9192 echo "$as_me:9192: checking for locale.h" >&5 | |
9193 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 | |
9194 if test "${ac_cv_header_locale_h+set}" = set; then | |
9195 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9196 else | |
9197 cat >conftest.$ac_ext <<_ACEOF | |
9198 #line 9198 "configure" | |
9199 #include "confdefs.h" | |
9200 #include <locale.h> | |
9201 _ACEOF | |
9202 if { (eval echo "$as_me:9202: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9204 ac_status=$? | |
9205 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9206 rm -f conftest.er1 | |
9207 cat conftest.err >&5 | |
9208 echo "$as_me:9208: \$? = $ac_status" >&5 | |
9209 (exit $ac_status); } >/dev/null; then | |
9210 if test -s conftest.err; then | |
9211 ac_cpp_err=$ac_c_preproc_warn_flag | |
9212 else | |
9213 ac_cpp_err= | |
9214 fi | |
9215 else | |
9216 ac_cpp_err=yes | |
9217 fi | |
9218 if test -z "$ac_cpp_err"; then | |
9219 ac_cv_header_locale_h=yes | |
9220 else | |
9221 echo "$as_me: failed program was:" >&5 | |
9222 cat conftest.$ac_ext >&5 | |
9223 ac_cv_header_locale_h=no | |
9224 fi | |
9225 rm -f conftest.err conftest.$ac_ext | |
9226 fi | |
9227 echo "$as_me:9227: result: $ac_cv_header_locale_h" >&5 | |
9228 echo "${ECHO_T}$ac_cv_header_locale_h" >&6 | |
9229 | |
9230 for ac_func in setlocale | |
9231 do | |
9232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9233 echo "$as_me:9233: checking for $ac_func" >&5 | |
9234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9235 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9236 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9237 else | |
9238 cat >conftest.$ac_ext <<_ACEOF | |
9239 #line 9239 "configure" | |
9240 #include "confdefs.h" | |
9241 /* System header to define __stub macros and hopefully few prototypes, | |
9242 which can conflict with char $ac_func (); below. */ | |
9243 #include <assert.h> | |
9244 /* Override any gcc2 internal prototype to avoid an error. */ | |
9245 #ifdef __cplusplus | |
9246 extern "C" | |
9247 #endif | |
9248 /* We use char because int might match the return type of a gcc2 | |
9249 builtin and then its argument prototype would still apply. */ | |
9250 char $ac_func (); | |
9251 char (*f) (); | |
9252 | |
9253 int | |
9254 main () | |
9255 { | |
9256 /* The GNU C library defines this for functions which it implements | |
9257 to always fail with ENOSYS. Some functions are actually named | |
9258 something starting with __ and the normal name is an alias. */ | |
9259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9260 choke me | |
9261 #else | |
9262 f = $ac_func; | |
9263 #endif | |
9264 | |
9265 ; | |
9266 return 0; | |
9267 } | |
9268 _ACEOF | |
9269 rm -f conftest.$ac_objext conftest$ac_exeext | |
9270 if { (eval echo "$as_me:9270: \"$ac_link\"") >&5 | |
9271 (eval $ac_link) 2>&5 | |
9272 ac_status=$? | |
9273 echo "$as_me:9273: \$? = $ac_status" >&5 | |
9274 (exit $ac_status); } && | |
9275 { ac_try='test -s conftest$ac_exeext' | |
9276 { (eval echo "$as_me:9276: \"$ac_try\"") >&5 | |
9277 (eval $ac_try) 2>&5 | |
9278 ac_status=$? | |
9279 echo "$as_me:9279: \$? = $ac_status" >&5 | |
9280 (exit $ac_status); }; }; then | |
9281 eval "$as_ac_var=yes" | |
9282 else | |
9283 echo "$as_me: failed program was:" >&5 | |
9284 cat conftest.$ac_ext >&5 | |
9285 eval "$as_ac_var=no" | |
9286 fi | |
9287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9288 fi | |
9289 echo "$as_me:9289: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9291 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9292 cat >>confdefs.h <<EOF | |
9293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9294 EOF | |
9295 | |
9296 fi | |
9297 done | |
9298 | |
9299 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | |
9300 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
9301 # Irix 4.0.5F has the header but not the library. | |
9302 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
9303 ac_have_func=yes | |
9304 | |
9305 cat >>confdefs.h <<\EOF | |
29834 | 9306 #define SVR4 1 |
9307 EOF | |
9308 | |
40056 | 9309 fi |
9310 | |
9311 if test $ac_have_func = no; then | |
9312 echo "$as_me:9312: checking for inq_stats/cpustats.h" >&5 | |
9313 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 | |
9314 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
9315 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9316 else | |
9317 cat >conftest.$ac_ext <<_ACEOF | |
9318 #line 9318 "configure" | |
29834 | 9319 #include "confdefs.h" |
9320 #include <inq_stats/cpustats.h> | |
40056 | 9321 _ACEOF |
9322 if { (eval echo "$as_me:9322: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9324 ac_status=$? | |
9325 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9326 rm -f conftest.er1 | |
9327 cat conftest.err >&5 | |
9328 echo "$as_me:9328: \$? = $ac_status" >&5 | |
9329 (exit $ac_status); } >/dev/null; then | |
9330 if test -s conftest.err; then | |
9331 ac_cpp_err=$ac_c_preproc_warn_flag | |
9332 else | |
9333 ac_cpp_err= | |
9334 fi | |
9335 else | |
9336 ac_cpp_err=yes | |
9337 fi | |
9338 if test -z "$ac_cpp_err"; then | |
9339 ac_cv_header_inq_stats_cpustats_h=yes | |
9340 else | |
9341 echo "$as_me: failed program was:" >&5 | |
29834 | 9342 cat conftest.$ac_ext >&5 |
40056 | 9343 ac_cv_header_inq_stats_cpustats_h=no |
9344 fi | |
9345 rm -f conftest.err conftest.$ac_ext | |
9346 fi | |
9347 echo "$as_me:9347: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
9348 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 | |
9349 if test $ac_cv_header_inq_stats_cpustats_h = yes; then | |
9350 ac_have_func=yes | |
9351 | |
9352 cat >>confdefs.h <<\EOF | |
29834 | 9353 #define UMAX 1 |
9354 EOF | |
9355 | |
40056 | 9356 cat >>confdefs.h <<\EOF |
29834 | 9357 #define UMAX4_3 1 |
9358 EOF | |
9359 | |
40056 | 9360 fi |
9361 | |
9362 fi | |
9363 | |
9364 if test $ac_have_func = no; then | |
9365 echo "$as_me:9365: checking for sys/cpustats.h" >&5 | |
9366 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 | |
9367 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
9368 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9369 else | |
9370 cat >conftest.$ac_ext <<_ACEOF | |
9371 #line 9371 "configure" | |
29834 | 9372 #include "confdefs.h" |
9373 #include <sys/cpustats.h> | |
40056 | 9374 _ACEOF |
9375 if { (eval echo "$as_me:9375: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9377 ac_status=$? | |
9378 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9379 rm -f conftest.er1 | |
9380 cat conftest.err >&5 | |
9381 echo "$as_me:9381: \$? = $ac_status" >&5 | |
9382 (exit $ac_status); } >/dev/null; then | |
9383 if test -s conftest.err; then | |
9384 ac_cpp_err=$ac_c_preproc_warn_flag | |
9385 else | |
9386 ac_cpp_err= | |
9387 fi | |
9388 else | |
9389 ac_cpp_err=yes | |
9390 fi | |
9391 if test -z "$ac_cpp_err"; then | |
9392 ac_cv_header_sys_cpustats_h=yes | |
9393 else | |
9394 echo "$as_me: failed program was:" >&5 | |
29834 | 9395 cat conftest.$ac_ext >&5 |
40056 | 9396 ac_cv_header_sys_cpustats_h=no |
9397 fi | |
9398 rm -f conftest.err conftest.$ac_ext | |
9399 fi | |
9400 echo "$as_me:9400: result: $ac_cv_header_sys_cpustats_h" >&5 | |
9401 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 | |
9402 if test $ac_cv_header_sys_cpustats_h = yes; then | |
9403 ac_have_func=yes; cat >>confdefs.h <<\EOF | |
29834 | 9404 #define UMAX 1 |
9405 EOF | |
9406 | |
40056 | 9407 fi |
9408 | |
9409 fi | |
9410 | |
9411 if test $ac_have_func = no; then | |
9412 | |
9413 for ac_header in mach/mach.h | |
29834 | 9414 do |
40056 | 9415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9416 echo "$as_me:9416: checking for $ac_header" >&5 | |
9417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9418 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9419 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9420 else | |
9421 cat >conftest.$ac_ext <<_ACEOF | |
9422 #line 9422 "configure" | |
9423 #include "confdefs.h" | |
9424 #include <$ac_header> | |
9425 _ACEOF | |
9426 if { (eval echo "$as_me:9426: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9428 ac_status=$? | |
9429 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9430 rm -f conftest.er1 | |
9431 cat conftest.err >&5 | |
9432 echo "$as_me:9432: \$? = $ac_status" >&5 | |
9433 (exit $ac_status); } >/dev/null; then | |
9434 if test -s conftest.err; then | |
9435 ac_cpp_err=$ac_c_preproc_warn_flag | |
9436 else | |
9437 ac_cpp_err= | |
9438 fi | |
9439 else | |
9440 ac_cpp_err=yes | |
9441 fi | |
9442 if test -z "$ac_cpp_err"; then | |
9443 eval "$as_ac_Header=yes" | |
9444 else | |
9445 echo "$as_me: failed program was:" >&5 | |
29834 | 9446 cat conftest.$ac_ext >&5 |
40056 | 9447 eval "$as_ac_Header=no" |
9448 fi | |
9449 rm -f conftest.err conftest.$ac_ext | |
9450 fi | |
9451 echo "$as_me:9451: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9453 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9454 cat >>confdefs.h <<EOF | |
9455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9456 EOF | |
9457 | |
29834 | 9458 fi |
9459 done | |
9460 | |
40056 | 9461 fi |
9462 | |
9463 for ac_header in nlist.h | |
9464 do | |
9465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9466 echo "$as_me:9466: checking for $ac_header" >&5 | |
9467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9468 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9469 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9470 else | |
9471 cat >conftest.$ac_ext <<_ACEOF | |
9472 #line 9472 "configure" | |
9473 #include "confdefs.h" | |
9474 #include <$ac_header> | |
9475 _ACEOF | |
9476 if { (eval echo "$as_me:9476: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9478 ac_status=$? | |
9479 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9480 rm -f conftest.er1 | |
9481 cat conftest.err >&5 | |
9482 echo "$as_me:9482: \$? = $ac_status" >&5 | |
9483 (exit $ac_status); } >/dev/null; then | |
9484 if test -s conftest.err; then | |
9485 ac_cpp_err=$ac_c_preproc_warn_flag | |
9486 else | |
9487 ac_cpp_err= | |
9488 fi | |
9489 else | |
9490 ac_cpp_err=yes | |
9491 fi | |
9492 if test -z "$ac_cpp_err"; then | |
9493 eval "$as_ac_Header=yes" | |
9494 else | |
9495 echo "$as_me: failed program was:" >&5 | |
9496 cat conftest.$ac_ext >&5 | |
9497 eval "$as_ac_Header=no" | |
9498 fi | |
9499 rm -f conftest.err conftest.$ac_ext | |
9500 fi | |
9501 echo "$as_me:9501: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9503 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9504 cat >>confdefs.h <<EOF | |
9505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9506 EOF | |
9507 echo "$as_me:9507: checking for struct nlist.n_un.n_name" >&5 | |
9508 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 | |
9509 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
9510 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9511 else | |
9512 cat >conftest.$ac_ext <<_ACEOF | |
9513 #line 9513 "configure" | |
29834 | 9514 #include "confdefs.h" |
9515 #include <nlist.h> | |
40056 | 9516 |
9517 int | |
9518 main () | |
9519 { | |
9520 static struct nlist ac_aggr; | |
9521 if (ac_aggr.n_un.n_name) | |
9522 return 0; | |
9523 ; | |
9524 return 0; | |
9525 } | |
9526 _ACEOF | |
9527 rm -f conftest.$ac_objext | |
9528 if { (eval echo "$as_me:9528: \"$ac_compile\"") >&5 | |
9529 (eval $ac_compile) 2>&5 | |
9530 ac_status=$? | |
9531 echo "$as_me:9531: \$? = $ac_status" >&5 | |
9532 (exit $ac_status); } && | |
9533 { ac_try='test -s conftest.$ac_objext' | |
9534 { (eval echo "$as_me:9534: \"$ac_try\"") >&5 | |
9535 (eval $ac_try) 2>&5 | |
9536 ac_status=$? | |
9537 echo "$as_me:9537: \$? = $ac_status" >&5 | |
9538 (exit $ac_status); }; }; then | |
9539 ac_cv_member_struct_nlist_n_un_n_name=yes | |
9540 else | |
9541 echo "$as_me: failed program was:" >&5 | |
9542 cat conftest.$ac_ext >&5 | |
9543 ac_cv_member_struct_nlist_n_un_n_name=no | |
9544 fi | |
9545 rm -f conftest.$ac_objext conftest.$ac_ext | |
9546 fi | |
9547 echo "$as_me:9547: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 | |
9548 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 | |
9549 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
9550 | |
9551 cat >>confdefs.h <<EOF | |
9552 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 | |
9553 EOF | |
9554 | |
9555 cat >>confdefs.h <<\EOF | |
29834 | 9556 #define NLIST_NAME_UNION 1 |
9557 EOF | |
9558 | |
40056 | 9559 fi |
9560 | |
9561 fi | |
9562 done | |
9563 | |
9564 fi | |
9565 done | |
29834 | 9566 |
9567 # Some definitions of getloadavg require that the program be installed setgid. | |
40056 | 9568 echo "$as_me:9568: checking whether getloadavg requires setgid" >&5 |
9569 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 | |
9570 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
9571 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9572 else | |
9573 cat >conftest.$ac_ext <<_ACEOF | |
9574 #line 9574 "configure" | |
29834 | 9575 #include "confdefs.h" |
9576 #include "$srcdir/getloadavg.c" | |
9577 #ifdef LDAV_PRIVILEGED | |
9578 Yowza Am I SETGID yet | |
9579 #endif | |
40056 | 9580 _ACEOF |
29834 | 9581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9582 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then | |
9583 ac_cv_func_getloadavg_setgid=yes | |
9584 else | |
9585 ac_cv_func_getloadavg_setgid=no | |
9586 fi | |
9587 rm -f conftest* | |
9588 | |
9589 fi | |
40056 | 9590 echo "$as_me:9590: result: $ac_cv_func_getloadavg_setgid" >&5 |
9591 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 | |
29834 | 9592 if test $ac_cv_func_getloadavg_setgid = yes; then |
40056 | 9593 NEED_SETGID=true |
9594 | |
9595 cat >>confdefs.h <<\EOF | |
29834 | 9596 #define GETLOADAVG_PRIVILEGED 1 |
9597 EOF | |
9598 | |
9599 else | |
9600 NEED_SETGID=false | |
9601 fi | |
9602 | |
9603 if test $ac_cv_func_getloadavg_setgid = yes; then | |
40056 | 9604 echo "$as_me:9604: checking group of /dev/kmem" >&5 |
9605 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 | |
9606 if test "${ac_cv_group_kmem+set}" = set; then | |
9607 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9608 else | |
9609 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
29834 | 9610 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` |
9611 # If we got an error (system does not support symlinks), try without -L. | |
9612 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
9613 ac_cv_group_kmem=`echo $ac_ls_output \ | |
9614 | sed -ne 's/[ ][ ]*/ /g; | |
9615 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
9616 / /s/.* //;p;'` | |
9617 | |
9618 fi | |
40056 | 9619 echo "$as_me:9619: result: $ac_cv_group_kmem" >&5 |
9620 echo "${ECHO_T}$ac_cv_group_kmem" >&6 | |
29834 | 9621 KMEM_GROUP=$ac_cv_group_kmem |
9622 fi | |
40056 | 9623 if test "x$ac_save_LIBS" = x; then |
9624 GETLOADAVG_LIBS=$LIBS | |
9625 else | |
9626 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
9627 fi | |
9628 LIBS=$ac_save_LIBS | |
9629 | |
9630 echo "$as_me:9630: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
9631 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 | |
9632 if test "${ac_cv_sys_largefile_source+set}" = set; then | |
9633 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9634 else | |
9635 while :; do | |
34431 | 9636 ac_cv_sys_largefile_source=no |
40056 | 9637 cat >conftest.$ac_ext <<_ACEOF |
9638 #line 9638 "configure" | |
34431 | 9639 #include "confdefs.h" |
9640 #include <stdio.h> | |
40056 | 9641 int |
9642 main () | |
9643 { | |
34431 | 9644 return !fseeko; |
40056 | 9645 ; |
9646 return 0; | |
9647 } | |
9648 _ACEOF | |
9649 rm -f conftest.$ac_objext | |
9650 if { (eval echo "$as_me:9650: \"$ac_compile\"") >&5 | |
9651 (eval $ac_compile) 2>&5 | |
9652 ac_status=$? | |
9653 echo "$as_me:9653: \$? = $ac_status" >&5 | |
9654 (exit $ac_status); } && | |
9655 { ac_try='test -s conftest.$ac_objext' | |
9656 { (eval echo "$as_me:9656: \"$ac_try\"") >&5 | |
9657 (eval $ac_try) 2>&5 | |
9658 ac_status=$? | |
9659 echo "$as_me:9659: \$? = $ac_status" >&5 | |
9660 (exit $ac_status); }; }; then | |
9661 break | |
9662 else | |
9663 echo "$as_me: failed program was:" >&5 | |
9664 cat conftest.$ac_ext >&5 | |
9665 fi | |
9666 rm -f conftest.$ac_objext conftest.$ac_ext | |
9667 cat >conftest.$ac_ext <<_ACEOF | |
9668 #line 9668 "configure" | |
34431 | 9669 #include "confdefs.h" |
9670 #define _LARGEFILE_SOURCE 1 | |
9671 #include <stdio.h> | |
40056 | 9672 int |
9673 main () | |
9674 { | |
34431 | 9675 return !fseeko; |
40056 | 9676 ; |
9677 return 0; | |
9678 } | |
9679 _ACEOF | |
9680 rm -f conftest.$ac_objext | |
9681 if { (eval echo "$as_me:9681: \"$ac_compile\"") >&5 | |
9682 (eval $ac_compile) 2>&5 | |
9683 ac_status=$? | |
9684 echo "$as_me:9684: \$? = $ac_status" >&5 | |
9685 (exit $ac_status); } && | |
9686 { ac_try='test -s conftest.$ac_objext' | |
9687 { (eval echo "$as_me:9687: \"$ac_try\"") >&5 | |
9688 (eval $ac_try) 2>&5 | |
9689 ac_status=$? | |
9690 echo "$as_me:9690: \$? = $ac_status" >&5 | |
9691 (exit $ac_status); }; }; then | |
9692 ac_cv_sys_largefile_source=1; break | |
9693 else | |
9694 echo "$as_me: failed program was:" >&5 | |
9695 cat conftest.$ac_ext >&5 | |
9696 fi | |
9697 rm -f conftest.$ac_objext conftest.$ac_ext | |
9698 break | |
9699 done | |
9700 fi | |
9701 echo "$as_me:9701: result: $ac_cv_sys_largefile_source" >&5 | |
9702 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
9703 if test "$ac_cv_sys_largefile_source" != no; then | |
9704 | |
9705 cat >>confdefs.h <<EOF | |
9706 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
9707 EOF | |
9708 | |
34431 | 9709 fi |
9710 rm -f conftest* | |
40056 | 9711 |
9712 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
9713 # in glibc 2.1.3, but that breaks too many other things. | |
9714 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
9715 echo "$as_me:9715: checking for fseeko" >&5 | |
9716 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
9717 if test "${ac_cv_func_fseeko+set}" = set; then | |
9718 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9719 else | |
9720 cat >conftest.$ac_ext <<_ACEOF | |
9721 #line 9721 "configure" | |
34431 | 9722 #include "confdefs.h" |
9723 #include <stdio.h> | |
40056 | 9724 int |
9725 main () | |
9726 { | |
34431 | 9727 return fseeko && fseeko (stdin, 0, 0); |
40056 | 9728 ; |
9729 return 0; | |
9730 } | |
9731 _ACEOF | |
9732 rm -f conftest.$ac_objext conftest$ac_exeext | |
9733 if { (eval echo "$as_me:9733: \"$ac_link\"") >&5 | |
9734 (eval $ac_link) 2>&5 | |
9735 ac_status=$? | |
9736 echo "$as_me:9736: \$? = $ac_status" >&5 | |
9737 (exit $ac_status); } && | |
9738 { ac_try='test -s conftest$ac_exeext' | |
9739 { (eval echo "$as_me:9739: \"$ac_try\"") >&5 | |
9740 (eval $ac_try) 2>&5 | |
9741 ac_status=$? | |
9742 echo "$as_me:9742: \$? = $ac_status" >&5 | |
9743 (exit $ac_status); }; }; then | |
34431 | 9744 ac_cv_func_fseeko=yes |
9745 else | |
40056 | 9746 echo "$as_me: failed program was:" >&5 |
9747 cat conftest.$ac_ext >&5 | |
9748 ac_cv_func_fseeko=no | |
9749 fi | |
9750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9751 fi | |
9752 echo "$as_me:9752: result: $ac_cv_func_fseeko" >&5 | |
9753 echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
9754 if test $ac_cv_func_fseeko = yes; then | |
9755 | |
9756 cat >>confdefs.h <<\EOF | |
34431 | 9757 #define HAVE_FSEEKO 1 |
9758 EOF | |
9759 | |
40056 | 9760 fi |
34431 | 9761 |
9762 # UNIX98 PTYs. | |
40056 | 9763 |
34431 | 9764 for ac_func in grantpt |
29036 | 9765 do |
40056 | 9766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9767 echo "$as_me:9767: checking for $ac_func" >&5 | |
9768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9769 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9770 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9771 else | |
9772 cat >conftest.$ac_ext <<_ACEOF | |
9773 #line 9773 "configure" | |
29036 | 9774 #include "confdefs.h" |
9775 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 9776 which can conflict with char $ac_func (); below. */ |
29036 | 9777 #include <assert.h> |
9778 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 9779 #ifdef __cplusplus |
9780 extern "C" | |
9781 #endif | |
29036 | 9782 /* We use char because int might match the return type of a gcc2 |
40056 | 9783 builtin and then its argument prototype would still apply. */ |
9784 char $ac_func (); | |
9785 char (*f) (); | |
9786 | |
9787 int | |
9788 main () | |
9789 { | |
29036 | 9790 /* The GNU C library defines this for functions which it implements |
9791 to always fail with ENOSYS. Some functions are actually named | |
9792 something starting with __ and the normal name is an alias. */ | |
9793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9794 choke me | |
9795 #else | |
40056 | 9796 f = $ac_func; |
9797 #endif | |
9798 | |
9799 ; | |
9800 return 0; | |
9801 } | |
9802 _ACEOF | |
9803 rm -f conftest.$ac_objext conftest$ac_exeext | |
9804 if { (eval echo "$as_me:9804: \"$ac_link\"") >&5 | |
9805 (eval $ac_link) 2>&5 | |
9806 ac_status=$? | |
9807 echo "$as_me:9807: \$? = $ac_status" >&5 | |
9808 (exit $ac_status); } && | |
9809 { ac_try='test -s conftest$ac_exeext' | |
9810 { (eval echo "$as_me:9810: \"$ac_try\"") >&5 | |
9811 (eval $ac_try) 2>&5 | |
9812 ac_status=$? | |
9813 echo "$as_me:9813: \$? = $ac_status" >&5 | |
9814 (exit $ac_status); }; }; then | |
9815 eval "$as_ac_var=yes" | |
9816 else | |
9817 echo "$as_me: failed program was:" >&5 | |
9818 cat conftest.$ac_ext >&5 | |
9819 eval "$as_ac_var=no" | |
9820 fi | |
9821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9822 fi | |
9823 echo "$as_me:9823: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9825 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9826 cat >>confdefs.h <<EOF | |
9827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9828 EOF | |
9829 | |
29036 | 9830 fi |
9831 done | |
9832 | |
9833 # PTY-related GNU extensions. | |
40056 | 9834 |
29036 | 9835 for ac_func in getpt |
9836 do | |
40056 | 9837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9838 echo "$as_me:9838: checking for $ac_func" >&5 | |
9839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9840 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9841 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9842 else | |
9843 cat >conftest.$ac_ext <<_ACEOF | |
9844 #line 9844 "configure" | |
29036 | 9845 #include "confdefs.h" |
9846 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 9847 which can conflict with char $ac_func (); below. */ |
29036 | 9848 #include <assert.h> |
9849 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 9850 #ifdef __cplusplus |
9851 extern "C" | |
9852 #endif | |
29036 | 9853 /* We use char because int might match the return type of a gcc2 |
40056 | 9854 builtin and then its argument prototype would still apply. */ |
9855 char $ac_func (); | |
9856 char (*f) (); | |
9857 | |
9858 int | |
9859 main () | |
9860 { | |
29036 | 9861 /* The GNU C library defines this for functions which it implements |
9862 to always fail with ENOSYS. Some functions are actually named | |
9863 something starting with __ and the normal name is an alias. */ | |
9864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9865 choke me | |
9866 #else | |
40056 | 9867 f = $ac_func; |
9868 #endif | |
9869 | |
9870 ; | |
9871 return 0; | |
9872 } | |
9873 _ACEOF | |
9874 rm -f conftest.$ac_objext conftest$ac_exeext | |
9875 if { (eval echo "$as_me:9875: \"$ac_link\"") >&5 | |
9876 (eval $ac_link) 2>&5 | |
9877 ac_status=$? | |
9878 echo "$as_me:9878: \$? = $ac_status" >&5 | |
9879 (exit $ac_status); } && | |
9880 { ac_try='test -s conftest$ac_exeext' | |
9881 { (eval echo "$as_me:9881: \"$ac_try\"") >&5 | |
9882 (eval $ac_try) 2>&5 | |
9883 ac_status=$? | |
9884 echo "$as_me:9884: \$? = $ac_status" >&5 | |
9885 (exit $ac_status); }; }; then | |
9886 eval "$as_ac_var=yes" | |
9887 else | |
9888 echo "$as_me: failed program was:" >&5 | |
9889 cat conftest.$ac_ext >&5 | |
9890 eval "$as_ac_var=no" | |
9891 fi | |
9892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9893 fi | |
9894 echo "$as_me:9894: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9896 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9897 cat >>confdefs.h <<EOF | |
9898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9899 EOF | |
9900 | |
29036 | 9901 fi |
9902 done | |
9903 | |
25897 | 9904 # Check this now, so that we will NOT find the above functions in ncurses. |
9905 # That is because we have not set up to link ncurses in lib-src. | |
9906 # It's better to believe a function is not available | |
9907 # than to expect to find it in ncurses. | |
40056 | 9908 |
9909 echo "$as_me:9909: checking for tparm in -lncurses" >&5 | |
9910 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 | |
9911 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then | |
9912 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9913 else | |
9914 ac_check_lib_save_LIBS=$LIBS | |
25897 | 9915 LIBS="-lncurses $LIBS" |
40056 | 9916 cat >conftest.$ac_ext <<_ACEOF |
9917 #line 9917 "configure" | |
9918 #include "confdefs.h" | |
9919 | |
25897 | 9920 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9921 #ifdef __cplusplus |
9922 extern "C" | |
9923 #endif | |
25897 | 9924 /* We use char because int might match the return type of a gcc2 |
40056 | 9925 builtin and then its argument prototype would still apply. */ |
9926 char tparm (); | |
9927 int | |
9928 main () | |
9929 { | |
9930 tparm (); | |
9931 ; | |
9932 return 0; | |
9933 } | |
9934 _ACEOF | |
9935 rm -f conftest.$ac_objext conftest$ac_exeext | |
9936 if { (eval echo "$as_me:9936: \"$ac_link\"") >&5 | |
9937 (eval $ac_link) 2>&5 | |
9938 ac_status=$? | |
9939 echo "$as_me:9939: \$? = $ac_status" >&5 | |
9940 (exit $ac_status); } && | |
9941 { ac_try='test -s conftest$ac_exeext' | |
9942 { (eval echo "$as_me:9942: \"$ac_try\"") >&5 | |
9943 (eval $ac_try) 2>&5 | |
9944 ac_status=$? | |
9945 echo "$as_me:9945: \$? = $ac_status" >&5 | |
9946 (exit $ac_status); }; }; then | |
9947 ac_cv_lib_ncurses_tparm=yes | |
9948 else | |
9949 echo "$as_me: failed program was:" >&5 | |
9950 cat conftest.$ac_ext >&5 | |
9951 ac_cv_lib_ncurses_tparm=no | |
9952 fi | |
9953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9954 LIBS=$ac_check_lib_save_LIBS | |
9955 fi | |
9956 echo "$as_me:9956: result: $ac_cv_lib_ncurses_tparm" >&5 | |
9957 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 | |
9958 if test $ac_cv_lib_ncurses_tparm = yes; then | |
9959 cat >>confdefs.h <<EOF | |
9960 #define HAVE_LIBNCURSES 1 | |
25897 | 9961 EOF |
9962 | |
9963 LIBS="-lncurses $LIBS" | |
9964 | |
40056 | 9965 fi |
25897 | 9966 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9967 # Do we need the Hesiod library to provide the support routines? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9968 if test "$with_hesiod" = yes ; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9969 # Don't set $LIBS here -- see comments above. |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9970 resolv=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9971 echo "$as_me:9971: checking for res_send" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9972 echo $ECHO_N "checking for res_send... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9973 if test "${ac_cv_func_res_send+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9974 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9975 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9976 cat >conftest.$ac_ext <<_ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9977 #line 9977 "configure" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9978 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9979 /* System header to define __stub macros and hopefully few prototypes, |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9980 which can conflict with char res_send (); below. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9981 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9982 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9983 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9984 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9985 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9986 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9987 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9988 char res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9989 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9990 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9991 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9992 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9993 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9994 /* The GNU C library defines this for functions which it implements |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9995 to always fail with ENOSYS. Some functions are actually named |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9996 something starting with __ and the normal name is an alias. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9997 #if defined (__stub_res_send) || defined (__stub___res_send) |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9998 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9999 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10000 f = res_send; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10001 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10002 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10003 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10004 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10005 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10006 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10007 rm -f conftest.$ac_objext conftest$ac_exeext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10008 if { (eval echo "$as_me:10008: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10009 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10010 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10011 echo "$as_me:10011: \$? = $ac_status" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10012 (exit $ac_status); } && |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10013 { ac_try='test -s conftest$ac_exeext' |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10014 { (eval echo "$as_me:10014: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10015 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10016 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10017 echo "$as_me:10017: \$? = $ac_status" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10018 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10019 ac_cv_func_res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10020 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10021 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10022 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10023 ac_cv_func_res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10024 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10026 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10027 echo "$as_me:10027: result: $ac_cv_func_res_send" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10028 echo "${ECHO_T}$ac_cv_func_res_send" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10029 if test $ac_cv_func_res_send = yes; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10030 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10031 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10032 echo "$as_me:10032: checking for __res_send" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10033 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10034 if test "${ac_cv_func___res_send+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10035 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10036 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10037 cat >conftest.$ac_ext <<_ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10038 #line 10038 "configure" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10039 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10040 /* System header to define __stub macros and hopefully few prototypes, |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10041 which can conflict with char __res_send (); below. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10042 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10043 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10044 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10045 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10046 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10047 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10048 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10049 char __res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10050 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10051 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10052 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10053 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10054 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10055 /* The GNU C library defines this for functions which it implements |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10056 to always fail with ENOSYS. Some functions are actually named |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10057 something starting with __ and the normal name is an alias. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10058 #if defined (__stub___res_send) || defined (__stub_____res_send) |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10059 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10060 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10061 f = __res_send; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10062 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10063 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10064 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10065 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10066 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10067 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10068 rm -f conftest.$ac_objext conftest$ac_exeext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10069 if { (eval echo "$as_me:10069: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10070 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10071 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10072 echo "$as_me:10072: \$? = $ac_status" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10073 (exit $ac_status); } && |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10074 { ac_try='test -s conftest$ac_exeext' |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10075 { (eval echo "$as_me:10075: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10076 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10077 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10078 echo "$as_me:10078: \$? = $ac_status" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10079 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10080 ac_cv_func___res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10081 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10082 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10083 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10084 ac_cv_func___res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10085 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10087 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10088 echo "$as_me:10088: result: $ac_cv_func___res_send" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10089 echo "${ECHO_T}$ac_cv_func___res_send" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10090 if test $ac_cv_func___res_send = yes; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10091 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10092 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10093 echo "$as_me:10093: checking for res_send in -lresolv" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10094 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10095 if test "${ac_cv_lib_resolv_res_send+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10096 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10097 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10098 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10099 LIBS="-lresolv $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10100 cat >conftest.$ac_ext <<_ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10101 #line 10101 "configure" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10102 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10103 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10104 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10105 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10106 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10107 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10108 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10109 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10110 char res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10111 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10112 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10113 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10114 res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10115 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10116 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10117 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10118 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10119 rm -f conftest.$ac_objext conftest$ac_exeext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10120 if { (eval echo "$as_me:10120: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10121 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10122 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10123 echo "$as_me:10123: \$? = $ac_status" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10124 (exit $ac_status); } && |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10125 { ac_try='test -s conftest$ac_exeext' |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10126 { (eval echo "$as_me:10126: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10127 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10128 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10129 echo "$as_me:10129: \$? = $ac_status" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10130 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10131 ac_cv_lib_resolv_res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10132 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10133 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10134 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10135 ac_cv_lib_resolv_res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10136 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10138 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10139 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10140 echo "$as_me:10140: result: $ac_cv_lib_resolv_res_send" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10141 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10142 if test $ac_cv_lib_resolv_res_send = yes; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10143 resolv=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10144 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10145 echo "$as_me:10145: checking for __res_send in -lresolv" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10146 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10147 if test "${ac_cv_lib_resolv___res_send+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10148 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10149 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10150 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10151 LIBS="-lresolv $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10152 cat >conftest.$ac_ext <<_ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10153 #line 10153 "configure" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10154 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10155 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10156 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10157 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10158 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10159 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10160 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10161 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10162 char __res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10163 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10164 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10165 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10166 __res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10167 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10168 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10169 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10170 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10171 rm -f conftest.$ac_objext conftest$ac_exeext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10172 if { (eval echo "$as_me:10172: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10173 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10174 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10175 echo "$as_me:10175: \$? = $ac_status" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10176 (exit $ac_status); } && |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10177 { ac_try='test -s conftest$ac_exeext' |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10178 { (eval echo "$as_me:10178: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10179 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10180 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10181 echo "$as_me:10181: \$? = $ac_status" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10182 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10183 ac_cv_lib_resolv___res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10184 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10185 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10186 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10187 ac_cv_lib_resolv___res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10188 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10190 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10191 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10192 echo "$as_me:10192: result: $ac_cv_lib_resolv___res_send" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10193 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10194 if test $ac_cv_lib_resolv___res_send = yes; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10195 resolv=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10196 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10197 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10198 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10199 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10200 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10201 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10202 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10203 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10204 if test "$resolv" = yes ; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10205 RESOLVLIB=-lresolv |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10206 cat >>confdefs.h <<\EOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10207 #define HAVE_LIBRESOLV 1 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10208 EOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10209 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10210 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10211 RESOLVLIB= |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10212 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10213 echo "$as_me:10213: checking for hes_getmailhost" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10214 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10215 if test "${ac_cv_func_hes_getmailhost+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10216 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10217 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10218 cat >conftest.$ac_ext <<_ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10219 #line 10219 "configure" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10220 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10221 /* System header to define __stub macros and hopefully few prototypes, |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10222 which can conflict with char hes_getmailhost (); below. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10223 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10224 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10225 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10226 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10227 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10228 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10229 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10230 char hes_getmailhost (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10231 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10232 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10233 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10234 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10235 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10236 /* The GNU C library defines this for functions which it implements |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10237 to always fail with ENOSYS. Some functions are actually named |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10238 something starting with __ and the normal name is an alias. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10239 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost) |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10240 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10241 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10242 f = hes_getmailhost; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10243 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10244 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10245 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10246 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10247 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10248 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10249 rm -f conftest.$ac_objext conftest$ac_exeext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10250 if { (eval echo "$as_me:10250: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10251 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10252 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10253 echo "$as_me:10253: \$? = $ac_status" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10254 (exit $ac_status); } && |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10255 { ac_try='test -s conftest$ac_exeext' |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10256 { (eval echo "$as_me:10256: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10257 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10258 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10259 echo "$as_me:10259: \$? = $ac_status" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10260 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10261 ac_cv_func_hes_getmailhost=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10262 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10263 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10264 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10265 ac_cv_func_hes_getmailhost=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10266 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10268 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10269 echo "$as_me:10269: result: $ac_cv_func_hes_getmailhost" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10270 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10271 if test $ac_cv_func_hes_getmailhost = yes; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10272 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10273 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10274 echo "$as_me:10274: checking for hes_getmailhost in -lhesiod" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10275 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10276 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10277 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10278 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10279 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10280 LIBS="-lhesiod $RESOLVLIB $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10281 cat >conftest.$ac_ext <<_ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10282 #line 10282 "configure" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10283 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10284 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10285 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10286 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10287 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10288 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10289 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10290 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10291 char hes_getmailhost (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10292 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10293 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10294 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10295 hes_getmailhost (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10296 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10297 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10298 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10299 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10300 rm -f conftest.$ac_objext conftest$ac_exeext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10301 if { (eval echo "$as_me:10301: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10302 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10303 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10304 echo "$as_me:10304: \$? = $ac_status" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10305 (exit $ac_status); } && |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10306 { ac_try='test -s conftest$ac_exeext' |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10307 { (eval echo "$as_me:10307: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10308 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10309 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10310 echo "$as_me:10310: \$? = $ac_status" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10311 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10312 ac_cv_lib_hesiod_hes_getmailhost=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10313 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10314 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10315 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10316 ac_cv_lib_hesiod_hes_getmailhost=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10317 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10319 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10320 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10321 echo "$as_me:10321: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10322 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10323 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10324 cat >>confdefs.h <<\EOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10325 #define HAVE_LIBHESIOD 1 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10326 EOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10327 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10328 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10329 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10330 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10331 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10332 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10333 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10334 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10335 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10336 # These tell us which Kerberos-related libraries to use. |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10337 if test "${with_kerberos+set}" = set; then |
40056 | 10338 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10339 echo "$as_me:10339: checking for com_err in -lcom_err" >&5 |
40056 | 10340 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 |
10341 if test "${ac_cv_lib_com_err_com_err+set}" = set; then | |
10342 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10343 else | |
10344 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10345 LIBS="-lcom_err $LIBS" |
40056 | 10346 cat >conftest.$ac_ext <<_ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10347 #line 10347 "configure" |
40056 | 10348 #include "confdefs.h" |
10349 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10350 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10351 #ifdef __cplusplus |
10352 extern "C" | |
10353 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10354 /* We use char because int might match the return type of a gcc2 |
40056 | 10355 builtin and then its argument prototype would still apply. */ |
10356 char com_err (); | |
10357 int | |
10358 main () | |
10359 { | |
10360 com_err (); | |
10361 ; | |
10362 return 0; | |
10363 } | |
10364 _ACEOF | |
10365 rm -f conftest.$ac_objext conftest$ac_exeext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10366 if { (eval echo "$as_me:10366: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10367 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10368 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10369 echo "$as_me:10369: \$? = $ac_status" >&5 |
40056 | 10370 (exit $ac_status); } && |
10371 { ac_try='test -s conftest$ac_exeext' | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10372 { (eval echo "$as_me:10372: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10373 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10374 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10375 echo "$as_me:10375: \$? = $ac_status" >&5 |
40056 | 10376 (exit $ac_status); }; }; then |
10377 ac_cv_lib_com_err_com_err=yes | |
10378 else | |
10379 echo "$as_me: failed program was:" >&5 | |
10380 cat conftest.$ac_ext >&5 | |
10381 ac_cv_lib_com_err_com_err=no | |
10382 fi | |
10383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10384 LIBS=$ac_check_lib_save_LIBS | |
10385 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10386 echo "$as_me:10386: result: $ac_cv_lib_com_err_com_err" >&5 |
40056 | 10387 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 |
10388 if test $ac_cv_lib_com_err_com_err = yes; then | |
10389 cat >>confdefs.h <<EOF | |
10390 #define HAVE_LIBCOM_ERR 1 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10391 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10392 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10393 LIBS="-lcom_err $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10394 |
40056 | 10395 fi |
10396 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10397 echo "$as_me:10397: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
40056 | 10398 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 |
10399 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | |
10400 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10401 else | |
10402 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10403 LIBS="-lk5crypto $LIBS" |
40056 | 10404 cat >conftest.$ac_ext <<_ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10405 #line 10405 "configure" |
40056 | 10406 #include "confdefs.h" |
10407 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10408 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10409 #ifdef __cplusplus |
10410 extern "C" | |
10411 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10412 /* We use char because int might match the return type of a gcc2 |
40056 | 10413 builtin and then its argument prototype would still apply. */ |
10414 char mit_des_cbc_encrypt (); | |
10415 int | |
10416 main () | |
10417 { | |
10418 mit_des_cbc_encrypt (); | |
10419 ; | |
10420 return 0; | |
10421 } | |
10422 _ACEOF | |
10423 rm -f conftest.$ac_objext conftest$ac_exeext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10424 if { (eval echo "$as_me:10424: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10425 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10426 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10427 echo "$as_me:10427: \$? = $ac_status" >&5 |
40056 | 10428 (exit $ac_status); } && |
10429 { ac_try='test -s conftest$ac_exeext' | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10430 { (eval echo "$as_me:10430: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10431 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10432 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10433 echo "$as_me:10433: \$? = $ac_status" >&5 |
40056 | 10434 (exit $ac_status); }; }; then |
10435 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | |
10436 else | |
10437 echo "$as_me: failed program was:" >&5 | |
10438 cat conftest.$ac_ext >&5 | |
10439 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no | |
10440 fi | |
10441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10442 LIBS=$ac_check_lib_save_LIBS | |
10443 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10444 echo "$as_me:10444: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
40056 | 10445 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 |
10446 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | |
10447 cat >>confdefs.h <<EOF | |
10448 #define HAVE_LIBK5CRYPTO 1 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10449 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10450 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10451 LIBS="-lk5crypto $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10452 |
40056 | 10453 fi |
10454 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10455 echo "$as_me:10455: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
40056 | 10456 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 |
10457 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | |
10458 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10459 else | |
10460 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10461 LIBS="-lcrypto $LIBS" |
40056 | 10462 cat >conftest.$ac_ext <<_ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10463 #line 10463 "configure" |
40056 | 10464 #include "confdefs.h" |
10465 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10466 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10467 #ifdef __cplusplus |
10468 extern "C" | |
10469 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10470 /* We use char because int might match the return type of a gcc2 |
40056 | 10471 builtin and then its argument prototype would still apply. */ |
10472 char mit_des_cbc_encrypt (); | |
10473 int | |
10474 main () | |
10475 { | |
10476 mit_des_cbc_encrypt (); | |
10477 ; | |
10478 return 0; | |
10479 } | |
10480 _ACEOF | |
10481 rm -f conftest.$ac_objext conftest$ac_exeext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10482 if { (eval echo "$as_me:10482: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10483 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10484 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10485 echo "$as_me:10485: \$? = $ac_status" >&5 |
40056 | 10486 (exit $ac_status); } && |
10487 { ac_try='test -s conftest$ac_exeext' | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10488 { (eval echo "$as_me:10488: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10489 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10490 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10491 echo "$as_me:10491: \$? = $ac_status" >&5 |
40056 | 10492 (exit $ac_status); }; }; then |
10493 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | |
10494 else | |
10495 echo "$as_me: failed program was:" >&5 | |
10496 cat conftest.$ac_ext >&5 | |
10497 ac_cv_lib_crypto_mit_des_cbc_encrypt=no | |
10498 fi | |
10499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10500 LIBS=$ac_check_lib_save_LIBS | |
10501 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10502 echo "$as_me:10502: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
40056 | 10503 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 |
10504 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | |
10505 cat >>confdefs.h <<EOF | |
10506 #define HAVE_LIBCRYPTO 1 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10507 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10508 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10509 LIBS="-lcrypto $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10510 |
40056 | 10511 fi |
10512 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10513 echo "$as_me:10513: checking for krb5_init_context in -lkrb5" >&5 |
40056 | 10514 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 |
10515 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | |
10516 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10517 else | |
10518 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10519 LIBS="-lkrb5 $LIBS" |
40056 | 10520 cat >conftest.$ac_ext <<_ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10521 #line 10521 "configure" |
40056 | 10522 #include "confdefs.h" |
10523 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10524 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10525 #ifdef __cplusplus |
10526 extern "C" | |
10527 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10528 /* We use char because int might match the return type of a gcc2 |
40056 | 10529 builtin and then its argument prototype would still apply. */ |
10530 char krb5_init_context (); | |
10531 int | |
10532 main () | |
10533 { | |
10534 krb5_init_context (); | |
10535 ; | |
10536 return 0; | |
10537 } | |
10538 _ACEOF | |
10539 rm -f conftest.$ac_objext conftest$ac_exeext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10540 if { (eval echo "$as_me:10540: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10541 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10542 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10543 echo "$as_me:10543: \$? = $ac_status" >&5 |
40056 | 10544 (exit $ac_status); } && |
10545 { ac_try='test -s conftest$ac_exeext' | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10546 { (eval echo "$as_me:10546: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10547 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10548 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10549 echo "$as_me:10549: \$? = $ac_status" >&5 |
40056 | 10550 (exit $ac_status); }; }; then |
10551 ac_cv_lib_krb5_krb5_init_context=yes | |
10552 else | |
10553 echo "$as_me: failed program was:" >&5 | |
10554 cat conftest.$ac_ext >&5 | |
10555 ac_cv_lib_krb5_krb5_init_context=no | |
10556 fi | |
10557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10558 LIBS=$ac_check_lib_save_LIBS | |
10559 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10560 echo "$as_me:10560: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
40056 | 10561 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 |
10562 if test $ac_cv_lib_krb5_krb5_init_context = yes; then | |
10563 cat >>confdefs.h <<EOF | |
10564 #define HAVE_LIBKRB5 1 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10565 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10566 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10567 LIBS="-lkrb5 $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10568 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10569 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10570 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10571 if test "${with_kerberos5+set}" != set; then |
40056 | 10572 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10573 echo "$as_me:10573: checking for des_cbc_encrypt in -ldes425" >&5 |
40056 | 10574 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 |
10575 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | |
10576 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10577 else | |
10578 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10579 LIBS="-ldes425 $LIBS" |
40056 | 10580 cat >conftest.$ac_ext <<_ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10581 #line 10581 "configure" |
40056 | 10582 #include "confdefs.h" |
10583 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10584 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10585 #ifdef __cplusplus |
10586 extern "C" | |
10587 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10588 /* We use char because int might match the return type of a gcc2 |
40056 | 10589 builtin and then its argument prototype would still apply. */ |
10590 char des_cbc_encrypt (); | |
10591 int | |
10592 main () | |
10593 { | |
10594 des_cbc_encrypt (); | |
10595 ; | |
10596 return 0; | |
10597 } | |
10598 _ACEOF | |
10599 rm -f conftest.$ac_objext conftest$ac_exeext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10600 if { (eval echo "$as_me:10600: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10601 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10602 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10603 echo "$as_me:10603: \$? = $ac_status" >&5 |
40056 | 10604 (exit $ac_status); } && |
10605 { ac_try='test -s conftest$ac_exeext' | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10606 { (eval echo "$as_me:10606: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10607 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10608 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10609 echo "$as_me:10609: \$? = $ac_status" >&5 |
40056 | 10610 (exit $ac_status); }; }; then |
10611 ac_cv_lib_des425_des_cbc_encrypt=yes | |
10612 else | |
10613 echo "$as_me: failed program was:" >&5 | |
10614 cat conftest.$ac_ext >&5 | |
10615 ac_cv_lib_des425_des_cbc_encrypt=no | |
10616 fi | |
10617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10618 LIBS=$ac_check_lib_save_LIBS | |
10619 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10620 echo "$as_me:10620: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
40056 | 10621 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 |
10622 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | |
10623 cat >>confdefs.h <<EOF | |
10624 #define HAVE_LIBDES425 1 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10625 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10626 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10627 LIBS="-ldes425 $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10628 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10629 else |
40056 | 10630 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10631 echo "$as_me:10631: checking for des_cbc_encrypt in -ldes" >&5 |
40056 | 10632 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 |
10633 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | |
10634 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10635 else | |
10636 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10637 LIBS="-ldes $LIBS" |
40056 | 10638 cat >conftest.$ac_ext <<_ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10639 #line 10639 "configure" |
40056 | 10640 #include "confdefs.h" |
10641 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10642 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10643 #ifdef __cplusplus |
10644 extern "C" | |
10645 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10646 /* We use char because int might match the return type of a gcc2 |
40056 | 10647 builtin and then its argument prototype would still apply. */ |
10648 char des_cbc_encrypt (); | |
10649 int | |
10650 main () | |
10651 { | |
10652 des_cbc_encrypt (); | |
10653 ; | |
10654 return 0; | |
10655 } | |
10656 _ACEOF | |
10657 rm -f conftest.$ac_objext conftest$ac_exeext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10658 if { (eval echo "$as_me:10658: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10659 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10660 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10661 echo "$as_me:10661: \$? = $ac_status" >&5 |
40056 | 10662 (exit $ac_status); } && |
10663 { ac_try='test -s conftest$ac_exeext' | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10664 { (eval echo "$as_me:10664: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10665 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10666 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10667 echo "$as_me:10667: \$? = $ac_status" >&5 |
40056 | 10668 (exit $ac_status); }; }; then |
10669 ac_cv_lib_des_des_cbc_encrypt=yes | |
10670 else | |
10671 echo "$as_me: failed program was:" >&5 | |
10672 cat conftest.$ac_ext >&5 | |
10673 ac_cv_lib_des_des_cbc_encrypt=no | |
10674 fi | |
10675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10676 LIBS=$ac_check_lib_save_LIBS | |
10677 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10678 echo "$as_me:10678: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
40056 | 10679 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 |
10680 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | |
10681 cat >>confdefs.h <<EOF | |
10682 #define HAVE_LIBDES 1 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10683 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10684 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10685 LIBS="-ldes $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10686 |
40056 | 10687 fi |
10688 | |
10689 fi | |
10690 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10691 echo "$as_me:10691: checking for krb_get_cred in -lkrb4" >&5 |
40056 | 10692 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 |
10693 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | |
10694 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10695 else | |
10696 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10697 LIBS="-lkrb4 $LIBS" |
40056 | 10698 cat >conftest.$ac_ext <<_ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10699 #line 10699 "configure" |
40056 | 10700 #include "confdefs.h" |
10701 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10702 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10703 #ifdef __cplusplus |
10704 extern "C" | |
10705 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10706 /* We use char because int might match the return type of a gcc2 |
40056 | 10707 builtin and then its argument prototype would still apply. */ |
10708 char krb_get_cred (); | |
10709 int | |
10710 main () | |
10711 { | |
10712 krb_get_cred (); | |
10713 ; | |
10714 return 0; | |
10715 } | |
10716 _ACEOF | |
10717 rm -f conftest.$ac_objext conftest$ac_exeext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10718 if { (eval echo "$as_me:10718: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10719 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10720 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10721 echo "$as_me:10721: \$? = $ac_status" >&5 |
40056 | 10722 (exit $ac_status); } && |
10723 { ac_try='test -s conftest$ac_exeext' | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10724 { (eval echo "$as_me:10724: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10725 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10726 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10727 echo "$as_me:10727: \$? = $ac_status" >&5 |
40056 | 10728 (exit $ac_status); }; }; then |
10729 ac_cv_lib_krb4_krb_get_cred=yes | |
10730 else | |
10731 echo "$as_me: failed program was:" >&5 | |
10732 cat conftest.$ac_ext >&5 | |
10733 ac_cv_lib_krb4_krb_get_cred=no | |
10734 fi | |
10735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10736 LIBS=$ac_check_lib_save_LIBS | |
10737 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10738 echo "$as_me:10738: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
40056 | 10739 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 |
10740 if test $ac_cv_lib_krb4_krb_get_cred = yes; then | |
10741 cat >>confdefs.h <<EOF | |
10742 #define HAVE_LIBKRB4 1 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10743 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10744 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10745 LIBS="-lkrb4 $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10746 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10747 else |
40056 | 10748 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10749 echo "$as_me:10749: checking for krb_get_cred in -lkrb" >&5 |
40056 | 10750 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 |
10751 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | |
10752 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10753 else | |
10754 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10755 LIBS="-lkrb $LIBS" |
40056 | 10756 cat >conftest.$ac_ext <<_ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10757 #line 10757 "configure" |
40056 | 10758 #include "confdefs.h" |
10759 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10760 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10761 #ifdef __cplusplus |
10762 extern "C" | |
10763 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10764 /* We use char because int might match the return type of a gcc2 |
40056 | 10765 builtin and then its argument prototype would still apply. */ |
10766 char krb_get_cred (); | |
10767 int | |
10768 main () | |
10769 { | |
10770 krb_get_cred (); | |
10771 ; | |
10772 return 0; | |
10773 } | |
10774 _ACEOF | |
10775 rm -f conftest.$ac_objext conftest$ac_exeext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10776 if { (eval echo "$as_me:10776: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10777 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10778 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10779 echo "$as_me:10779: \$? = $ac_status" >&5 |
40056 | 10780 (exit $ac_status); } && |
10781 { ac_try='test -s conftest$ac_exeext' | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10782 { (eval echo "$as_me:10782: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10783 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10784 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10785 echo "$as_me:10785: \$? = $ac_status" >&5 |
40056 | 10786 (exit $ac_status); }; }; then |
10787 ac_cv_lib_krb_krb_get_cred=yes | |
10788 else | |
10789 echo "$as_me: failed program was:" >&5 | |
10790 cat conftest.$ac_ext >&5 | |
10791 ac_cv_lib_krb_krb_get_cred=no | |
10792 fi | |
10793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10794 LIBS=$ac_check_lib_save_LIBS | |
10795 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10796 echo "$as_me:10796: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
40056 | 10797 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 |
10798 if test $ac_cv_lib_krb_krb_get_cred = yes; then | |
10799 cat >>confdefs.h <<EOF | |
10800 #define HAVE_LIBKRB 1 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10801 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10802 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10803 LIBS="-lkrb $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10804 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10805 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10806 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10807 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10808 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10809 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10810 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10811 if test "${with_kerberos5+set}" = set; then |
40056 | 10812 |
10813 for ac_header in krb5.h | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10814 do |
40056 | 10815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10816 echo "$as_me:10816: checking for $ac_header" >&5 |
40056 | 10817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10818 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10819 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10820 else | |
10821 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10822 #line 10822 "configure" |
40056 | 10823 #include "confdefs.h" |
10824 #include <$ac_header> | |
10825 _ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10826 if { (eval echo "$as_me:10826: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 10827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10828 ac_status=$? | |
10829 egrep -v '^ *\+' conftest.er1 >conftest.err | |
10830 rm -f conftest.er1 | |
10831 cat conftest.err >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10832 echo "$as_me:10832: \$? = $ac_status" >&5 |
40056 | 10833 (exit $ac_status); } >/dev/null; then |
10834 if test -s conftest.err; then | |
10835 ac_cpp_err=$ac_c_preproc_warn_flag | |
10836 else | |
10837 ac_cpp_err= | |
10838 fi | |
10839 else | |
10840 ac_cpp_err=yes | |
10841 fi | |
10842 if test -z "$ac_cpp_err"; then | |
10843 eval "$as_ac_Header=yes" | |
10844 else | |
10845 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10846 cat conftest.$ac_ext >&5 |
40056 | 10847 eval "$as_ac_Header=no" |
10848 fi | |
10849 rm -f conftest.err conftest.$ac_ext | |
10850 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10851 echo "$as_me:10851: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 10852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
10853 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10854 cat >>confdefs.h <<EOF | |
10855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10856 EOF | |
10857 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10858 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10859 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10860 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10861 else |
40056 | 10862 |
10863 for ac_header in des.h | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10864 do |
40056 | 10865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10866 echo "$as_me:10866: checking for $ac_header" >&5 |
40056 | 10867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10868 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10869 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10870 else | |
10871 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10872 #line 10872 "configure" |
40056 | 10873 #include "confdefs.h" |
10874 #include <$ac_header> | |
10875 _ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10876 if { (eval echo "$as_me:10876: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 10877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10878 ac_status=$? | |
10879 egrep -v '^ *\+' conftest.er1 >conftest.err | |
10880 rm -f conftest.er1 | |
10881 cat conftest.err >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10882 echo "$as_me:10882: \$? = $ac_status" >&5 |
40056 | 10883 (exit $ac_status); } >/dev/null; then |
10884 if test -s conftest.err; then | |
10885 ac_cpp_err=$ac_c_preproc_warn_flag | |
10886 else | |
10887 ac_cpp_err= | |
10888 fi | |
10889 else | |
10890 ac_cpp_err=yes | |
10891 fi | |
10892 if test -z "$ac_cpp_err"; then | |
10893 eval "$as_ac_Header=yes" | |
10894 else | |
10895 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10896 cat conftest.$ac_ext >&5 |
40056 | 10897 eval "$as_ac_Header=no" |
10898 fi | |
10899 rm -f conftest.err conftest.$ac_ext | |
10900 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10901 echo "$as_me:10901: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 10902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
10903 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10904 cat >>confdefs.h <<EOF | |
10905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10906 EOF | |
10907 | |
10908 else | |
10909 | |
10910 for ac_header in kerberosIV/des.h | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10911 do |
40056 | 10912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10913 echo "$as_me:10913: checking for $ac_header" >&5 |
40056 | 10914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10915 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10916 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10917 else | |
10918 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10919 #line 10919 "configure" |
40056 | 10920 #include "confdefs.h" |
10921 #include <$ac_header> | |
10922 _ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10923 if { (eval echo "$as_me:10923: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 10924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10925 ac_status=$? | |
10926 egrep -v '^ *\+' conftest.er1 >conftest.err | |
10927 rm -f conftest.er1 | |
10928 cat conftest.err >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10929 echo "$as_me:10929: \$? = $ac_status" >&5 |
40056 | 10930 (exit $ac_status); } >/dev/null; then |
10931 if test -s conftest.err; then | |
10932 ac_cpp_err=$ac_c_preproc_warn_flag | |
10933 else | |
10934 ac_cpp_err= | |
10935 fi | |
10936 else | |
10937 ac_cpp_err=yes | |
10938 fi | |
10939 if test -z "$ac_cpp_err"; then | |
10940 eval "$as_ac_Header=yes" | |
10941 else | |
10942 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10943 cat conftest.$ac_ext >&5 |
40056 | 10944 eval "$as_ac_Header=no" |
10945 fi | |
10946 rm -f conftest.err conftest.$ac_ext | |
10947 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10948 echo "$as_me:10948: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 10949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
10950 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10951 cat >>confdefs.h <<EOF | |
10952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10953 EOF | |
10954 | |
10955 else | |
10956 | |
10957 for ac_header in kerberos/des.h | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10958 do |
40056 | 10959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10960 echo "$as_me:10960: checking for $ac_header" >&5 |
40056 | 10961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10962 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10963 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10964 else | |
10965 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10966 #line 10966 "configure" |
40056 | 10967 #include "confdefs.h" |
10968 #include <$ac_header> | |
10969 _ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10970 if { (eval echo "$as_me:10970: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 10971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10972 ac_status=$? | |
10973 egrep -v '^ *\+' conftest.er1 >conftest.err | |
10974 rm -f conftest.er1 | |
10975 cat conftest.err >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10976 echo "$as_me:10976: \$? = $ac_status" >&5 |
40056 | 10977 (exit $ac_status); } >/dev/null; then |
10978 if test -s conftest.err; then | |
10979 ac_cpp_err=$ac_c_preproc_warn_flag | |
10980 else | |
10981 ac_cpp_err= | |
10982 fi | |
10983 else | |
10984 ac_cpp_err=yes | |
10985 fi | |
10986 if test -z "$ac_cpp_err"; then | |
10987 eval "$as_ac_Header=yes" | |
10988 else | |
10989 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10990 cat conftest.$ac_ext >&5 |
40056 | 10991 eval "$as_ac_Header=no" |
10992 fi | |
10993 rm -f conftest.err conftest.$ac_ext | |
10994 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10995 echo "$as_me:10995: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 10996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
10997 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10998 cat >>confdefs.h <<EOF | |
10999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11000 EOF | |
11001 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11002 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11003 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11004 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11005 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11006 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11007 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11008 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11009 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11010 |
40056 | 11011 for ac_header in krb.h |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11012 do |
40056 | 11013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11014 echo "$as_me:11014: checking for $ac_header" >&5 |
40056 | 11015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11016 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11017 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11018 else | |
11019 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11020 #line 11020 "configure" |
40056 | 11021 #include "confdefs.h" |
11022 #include <$ac_header> | |
11023 _ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11024 if { (eval echo "$as_me:11024: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11026 ac_status=$? | |
11027 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11028 rm -f conftest.er1 | |
11029 cat conftest.err >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11030 echo "$as_me:11030: \$? = $ac_status" >&5 |
40056 | 11031 (exit $ac_status); } >/dev/null; then |
11032 if test -s conftest.err; then | |
11033 ac_cpp_err=$ac_c_preproc_warn_flag | |
11034 else | |
11035 ac_cpp_err= | |
11036 fi | |
11037 else | |
11038 ac_cpp_err=yes | |
11039 fi | |
11040 if test -z "$ac_cpp_err"; then | |
11041 eval "$as_ac_Header=yes" | |
11042 else | |
11043 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11044 cat conftest.$ac_ext >&5 |
40056 | 11045 eval "$as_ac_Header=no" |
11046 fi | |
11047 rm -f conftest.err conftest.$ac_ext | |
11048 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11049 echo "$as_me:11049: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11051 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11052 cat >>confdefs.h <<EOF | |
11053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11054 EOF | |
11055 | |
11056 else | |
11057 | |
11058 for ac_header in kerberosIV/krb.h | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11059 do |
40056 | 11060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11061 echo "$as_me:11061: checking for $ac_header" >&5 |
40056 | 11062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11063 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11064 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11065 else | |
11066 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11067 #line 11067 "configure" |
40056 | 11068 #include "confdefs.h" |
11069 #include <$ac_header> | |
11070 _ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11071 if { (eval echo "$as_me:11071: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11073 ac_status=$? | |
11074 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11075 rm -f conftest.er1 | |
11076 cat conftest.err >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11077 echo "$as_me:11077: \$? = $ac_status" >&5 |
40056 | 11078 (exit $ac_status); } >/dev/null; then |
11079 if test -s conftest.err; then | |
11080 ac_cpp_err=$ac_c_preproc_warn_flag | |
11081 else | |
11082 ac_cpp_err= | |
11083 fi | |
11084 else | |
11085 ac_cpp_err=yes | |
11086 fi | |
11087 if test -z "$ac_cpp_err"; then | |
11088 eval "$as_ac_Header=yes" | |
11089 else | |
11090 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11091 cat conftest.$ac_ext >&5 |
40056 | 11092 eval "$as_ac_Header=no" |
11093 fi | |
11094 rm -f conftest.err conftest.$ac_ext | |
11095 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11096 echo "$as_me:11096: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11098 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11099 cat >>confdefs.h <<EOF | |
11100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11101 EOF | |
11102 | |
11103 else | |
11104 | |
11105 for ac_header in kerberos/krb.h | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11106 do |
40056 | 11107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11108 echo "$as_me:11108: checking for $ac_header" >&5 |
40056 | 11109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11110 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11111 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11112 else | |
11113 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11114 #line 11114 "configure" |
40056 | 11115 #include "confdefs.h" |
11116 #include <$ac_header> | |
11117 _ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11118 if { (eval echo "$as_me:11118: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11120 ac_status=$? | |
11121 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11122 rm -f conftest.er1 | |
11123 cat conftest.err >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11124 echo "$as_me:11124: \$? = $ac_status" >&5 |
40056 | 11125 (exit $ac_status); } >/dev/null; then |
11126 if test -s conftest.err; then | |
11127 ac_cpp_err=$ac_c_preproc_warn_flag | |
11128 else | |
11129 ac_cpp_err= | |
11130 fi | |
11131 else | |
11132 ac_cpp_err=yes | |
11133 fi | |
11134 if test -z "$ac_cpp_err"; then | |
11135 eval "$as_ac_Header=yes" | |
11136 else | |
11137 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11138 cat conftest.$ac_ext >&5 |
40056 | 11139 eval "$as_ac_Header=no" |
11140 fi | |
11141 rm -f conftest.err conftest.$ac_ext | |
11142 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11143 echo "$as_me:11143: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11145 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11146 cat >>confdefs.h <<EOF | |
11147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11148 EOF | |
11149 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11150 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11151 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11152 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11153 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11154 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11155 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11156 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11157 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11158 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11159 fi |
40056 | 11160 |
11161 for ac_header in com_err.h | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11162 do |
40056 | 11163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11164 echo "$as_me:11164: checking for $ac_header" >&5 |
40056 | 11165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11166 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11167 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11168 else | |
11169 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11170 #line 11170 "configure" |
40056 | 11171 #include "confdefs.h" |
11172 #include <$ac_header> | |
11173 _ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11174 if { (eval echo "$as_me:11174: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11176 ac_status=$? | |
11177 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11178 rm -f conftest.er1 | |
11179 cat conftest.err >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11180 echo "$as_me:11180: \$? = $ac_status" >&5 |
40056 | 11181 (exit $ac_status); } >/dev/null; then |
11182 if test -s conftest.err; then | |
11183 ac_cpp_err=$ac_c_preproc_warn_flag | |
11184 else | |
11185 ac_cpp_err= | |
11186 fi | |
11187 else | |
11188 ac_cpp_err=yes | |
11189 fi | |
11190 if test -z "$ac_cpp_err"; then | |
11191 eval "$as_ac_Header=yes" | |
11192 else | |
11193 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11194 cat conftest.$ac_ext >&5 |
40056 | 11195 eval "$as_ac_Header=no" |
11196 fi | |
11197 rm -f conftest.err conftest.$ac_ext | |
11198 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11199 echo "$as_me:11199: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11201 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11202 cat >>confdefs.h <<EOF | |
11203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11204 EOF | |
11205 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11206 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11207 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11208 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11209 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11210 |
25897 | 11211 # Solaris requires -lintl if you want strerror (which calls dgettext) |
11212 # to return localized messages. | |
40056 | 11213 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11214 echo "$as_me:11214: checking for dgettext in -lintl" >&5 |
40056 | 11215 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
11216 if test "${ac_cv_lib_intl_dgettext+set}" = set; then | |
11217 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11218 else | |
11219 ac_check_lib_save_LIBS=$LIBS | |
25897 | 11220 LIBS="-lintl $LIBS" |
40056 | 11221 cat >conftest.$ac_ext <<_ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11222 #line 11222 "configure" |
40056 | 11223 #include "confdefs.h" |
11224 | |
25897 | 11225 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 11226 #ifdef __cplusplus |
11227 extern "C" | |
11228 #endif | |
25897 | 11229 /* We use char because int might match the return type of a gcc2 |
40056 | 11230 builtin and then its argument prototype would still apply. */ |
11231 char dgettext (); | |
11232 int | |
11233 main () | |
11234 { | |
11235 dgettext (); | |
11236 ; | |
11237 return 0; | |
11238 } | |
11239 _ACEOF | |
11240 rm -f conftest.$ac_objext conftest$ac_exeext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11241 if { (eval echo "$as_me:11241: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11242 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11243 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11244 echo "$as_me:11244: \$? = $ac_status" >&5 |
40056 | 11245 (exit $ac_status); } && |
11246 { ac_try='test -s conftest$ac_exeext' | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11247 { (eval echo "$as_me:11247: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11248 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11249 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11250 echo "$as_me:11250: \$? = $ac_status" >&5 |
40056 | 11251 (exit $ac_status); }; }; then |
11252 ac_cv_lib_intl_dgettext=yes | |
11253 else | |
11254 echo "$as_me: failed program was:" >&5 | |
11255 cat conftest.$ac_ext >&5 | |
11256 ac_cv_lib_intl_dgettext=no | |
11257 fi | |
11258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11259 LIBS=$ac_check_lib_save_LIBS | |
11260 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11261 echo "$as_me:11261: result: $ac_cv_lib_intl_dgettext" >&5 |
40056 | 11262 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
11263 if test $ac_cv_lib_intl_dgettext = yes; then | |
11264 cat >>confdefs.h <<EOF | |
11265 #define HAVE_LIBINTL 1 | |
25897 | 11266 EOF |
11267 | |
11268 LIBS="-lintl $LIBS" | |
11269 | |
40056 | 11270 fi |
11271 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11272 echo "$as_me:11272: checking whether localtime caches TZ" >&5 |
40056 | 11273 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 |
11274 if test "${emacs_cv_localtime_cache+set}" = set; then | |
11275 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 11276 else |
11277 if test x$ac_cv_func_tzset = xyes; then | |
11278 if test "$cross_compiling" = yes; then | |
11279 # If we have tzset, assume the worst when cross-compiling. | |
11280 emacs_cv_localtime_cache=yes | |
11281 else | |
40056 | 11282 cat >conftest.$ac_ext <<_ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11283 #line 11283 "configure" |
25897 | 11284 #include "confdefs.h" |
11285 #include <time.h> | |
11286 extern char **environ; | |
11287 unset_TZ () | |
11288 { | |
11289 char **from, **to; | |
11290 for (to = from = environ; (*to = *from); from++) | |
11291 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
11292 to++; | |
11293 } | |
11294 char TZ_GMT0[] = "TZ=GMT0"; | |
11295 char TZ_PST8[] = "TZ=PST8"; | |
11296 main() | |
11297 { | |
11298 time_t now = time ((time_t *) 0); | |
11299 int hour_GMT0, hour_unset; | |
11300 if (putenv (TZ_GMT0) != 0) | |
11301 exit (1); | |
11302 hour_GMT0 = localtime (&now)->tm_hour; | |
11303 unset_TZ (); | |
11304 hour_unset = localtime (&now)->tm_hour; | |
11305 if (putenv (TZ_PST8) != 0) | |
11306 exit (1); | |
11307 if (localtime (&now)->tm_hour == hour_GMT0) | |
11308 exit (1); | |
11309 unset_TZ (); | |
11310 if (localtime (&now)->tm_hour != hour_unset) | |
11311 exit (1); | |
11312 exit (0); | |
11313 } | |
40056 | 11314 _ACEOF |
11315 rm -f conftest$ac_exeext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11316 if { (eval echo "$as_me:11316: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11317 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11318 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11319 echo "$as_me:11319: \$? = $ac_status" >&5 |
40056 | 11320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11321 { (eval echo "$as_me:11321: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11322 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11323 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11324 echo "$as_me:11324: \$? = $ac_status" >&5 |
40056 | 11325 (exit $ac_status); }; }; then |
25897 | 11326 emacs_cv_localtime_cache=no |
11327 else | |
40056 | 11328 echo "$as_me: program exited with status $ac_status" >&5 |
11329 echo "$as_me: failed program was:" >&5 | |
11330 cat conftest.$ac_ext >&5 | |
11331 emacs_cv_localtime_cache=yes | |
11332 fi | |
11333 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11334 fi | |
25897 | 11335 else |
11336 # If we lack tzset, report that localtime does not cache TZ, | |
11337 # since we can't invalidate the cache if we don't have tzset. | |
11338 emacs_cv_localtime_cache=no | |
11339 fi | |
11340 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11341 echo "$as_me:11341: result: $emacs_cv_localtime_cache" >&5 |
40056 | 11342 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 |
25897 | 11343 if test $emacs_cv_localtime_cache = yes; then |
40056 | 11344 cat >>confdefs.h <<\EOF |
25897 | 11345 #define LOCALTIME_CACHE 1 |
11346 EOF | |
11347 | |
11348 fi | |
11349 | |
11350 if test "x$HAVE_TIMEVAL" = xyes; then | |
40056 | 11351 |
11352 for ac_func in gettimeofday | |
29906 | 11353 do |
40056 | 11354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11355 echo "$as_me:11355: checking for $ac_func" >&5 |
40056 | 11356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
11357 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11358 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11359 else | |
11360 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11361 #line 11361 "configure" |
29906 | 11362 #include "confdefs.h" |
11363 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 11364 which can conflict with char $ac_func (); below. */ |
29906 | 11365 #include <assert.h> |
11366 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 11367 #ifdef __cplusplus |
11368 extern "C" | |
11369 #endif | |
29906 | 11370 /* We use char because int might match the return type of a gcc2 |
40056 | 11371 builtin and then its argument prototype would still apply. */ |
11372 char $ac_func (); | |
11373 char (*f) (); | |
11374 | |
11375 int | |
11376 main () | |
11377 { | |
29906 | 11378 /* The GNU C library defines this for functions which it implements |
11379 to always fail with ENOSYS. Some functions are actually named | |
11380 something starting with __ and the normal name is an alias. */ | |
11381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11382 choke me | |
11383 #else | |
40056 | 11384 f = $ac_func; |
11385 #endif | |
11386 | |
11387 ; | |
11388 return 0; | |
11389 } | |
11390 _ACEOF | |
11391 rm -f conftest.$ac_objext conftest$ac_exeext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11392 if { (eval echo "$as_me:11392: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11393 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11394 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11395 echo "$as_me:11395: \$? = $ac_status" >&5 |
40056 | 11396 (exit $ac_status); } && |
11397 { ac_try='test -s conftest$ac_exeext' | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11398 { (eval echo "$as_me:11398: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11399 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11400 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11401 echo "$as_me:11401: \$? = $ac_status" >&5 |
40056 | 11402 (exit $ac_status); }; }; then |
11403 eval "$as_ac_var=yes" | |
11404 else | |
11405 echo "$as_me: failed program was:" >&5 | |
11406 cat conftest.$ac_ext >&5 | |
11407 eval "$as_ac_var=no" | |
11408 fi | |
11409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11410 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11411 echo "$as_me:11411: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 11412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
11413 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11414 cat >>confdefs.h <<EOF | |
11415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11416 EOF | |
11417 | |
29906 | 11418 fi |
11419 done | |
11420 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11421 echo "$as_me:11421: checking whether gettimeofday can accept two arguments" >&5 |
40056 | 11422 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
11423 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
11424 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11425 else | |
11426 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11427 #line 11427 "configure" |
25897 | 11428 #include "confdefs.h" |
11429 | |
11430 #ifdef TIME_WITH_SYS_TIME | |
11431 #include <sys/time.h> | |
11432 #include <time.h> | |
11433 #else | |
11434 #ifdef HAVE_SYS_TIME_H | |
11435 #include <sys/time.h> | |
11436 #else | |
11437 #include <time.h> | |
11438 #endif | |
11439 #endif | |
40056 | 11440 int |
11441 main () | |
11442 { | |
29733 | 11443 struct timeval time; |
29906 | 11444 gettimeofday (&time, 0); |
40056 | 11445 ; |
11446 return 0; | |
11447 } | |
11448 _ACEOF | |
11449 rm -f conftest.$ac_objext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11450 if { (eval echo "$as_me:11450: \"$ac_compile\"") >&5 |
40056 | 11451 (eval $ac_compile) 2>&5 |
11452 ac_status=$? | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11453 echo "$as_me:11453: \$? = $ac_status" >&5 |
40056 | 11454 (exit $ac_status); } && |
11455 { ac_try='test -s conftest.$ac_objext' | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11456 { (eval echo "$as_me:11456: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11457 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11458 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11459 echo "$as_me:11459: \$? = $ac_status" >&5 |
40056 | 11460 (exit $ac_status); }; }; then |
25897 | 11461 emacs_cv_gettimeofday_two_arguments=yes |
11462 else | |
40056 | 11463 echo "$as_me: failed program was:" >&5 |
11464 cat conftest.$ac_ext >&5 | |
11465 emacs_cv_gettimeofday_two_arguments=no | |
11466 fi | |
11467 rm -f conftest.$ac_objext conftest.$ac_ext | |
11468 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11469 echo "$as_me:11469: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
40056 | 11470 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
25897 | 11471 if test $emacs_cv_gettimeofday_two_arguments = no; then |
40056 | 11472 cat >>confdefs.h <<\EOF |
25897 | 11473 #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
11474 EOF | |
11475 | |
11476 fi | |
11477 fi | |
11478 | |
29906 | 11479 if test "$ac_cv_func_gettimeofday" = yes; then |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11480 echo "$as_me:11480: checking for struct timezone" >&5 |
40056 | 11481 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 |
11482 if test "${emacs_cv_struct_timezone+set}" = set; then | |
11483 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11484 else | |
11485 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11486 #line 11486 "configure" |
29906 | 11487 #include "confdefs.h" |
11488 #include <sys/time.h> | |
40056 | 11489 int |
11490 main () | |
11491 { | |
29906 | 11492 struct timezone tz; |
40056 | 11493 ; |
11494 return 0; | |
11495 } | |
11496 _ACEOF | |
11497 rm -f conftest.$ac_objext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11498 if { (eval echo "$as_me:11498: \"$ac_compile\"") >&5 |
40056 | 11499 (eval $ac_compile) 2>&5 |
11500 ac_status=$? | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11501 echo "$as_me:11501: \$? = $ac_status" >&5 |
40056 | 11502 (exit $ac_status); } && |
11503 { ac_try='test -s conftest.$ac_objext' | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11504 { (eval echo "$as_me:11504: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11505 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11506 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11507 echo "$as_me:11507: \$? = $ac_status" >&5 |
40056 | 11508 (exit $ac_status); }; }; then |
29906 | 11509 if test "$cross_compiling" = yes; then |
11510 emacs_cv_struct_timezone=yes | |
11511 else | |
40056 | 11512 cat >conftest.$ac_ext <<_ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11513 #line 11513 "configure" |
29906 | 11514 #include "confdefs.h" |
11515 | |
11516 #ifdef TIME_WITH_SYS_TIME | |
11517 #include <sys/time.h> | |
11518 #include <time.h> | |
11519 #else | |
11520 #ifdef HAVE_SYS_TIME_H | |
11521 #include <sys/time.h> | |
11522 #else | |
11523 #include <time.h> | |
11524 #endif | |
11525 #endif | |
11526 main () { | |
11527 struct timeval time; | |
11528 struct timezone dummy; | |
11529 exit (gettimeofday (&time, &dummy)); | |
11530 } | |
40056 | 11531 _ACEOF |
11532 rm -f conftest$ac_exeext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11533 if { (eval echo "$as_me:11533: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11534 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11535 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11536 echo "$as_me:11536: \$? = $ac_status" >&5 |
40056 | 11537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11538 { (eval echo "$as_me:11538: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11539 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11540 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11541 echo "$as_me:11541: \$? = $ac_status" >&5 |
40056 | 11542 (exit $ac_status); }; }; then |
29906 | 11543 emacs_cv_struct_timezone=yes |
11544 else | |
40056 | 11545 echo "$as_me: program exited with status $ac_status" >&5 |
11546 echo "$as_me: failed program was:" >&5 | |
11547 cat conftest.$ac_ext >&5 | |
11548 emacs_cv_struct_timezone=no | |
11549 fi | |
11550 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11551 fi | |
11552 else | |
11553 echo "$as_me: failed program was:" >&5 | |
11554 cat conftest.$ac_ext >&5 | |
11555 emacs_cv_struct_timezone=no | |
11556 fi | |
11557 rm -f conftest.$ac_objext conftest.$ac_ext | |
11558 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11559 echo "$as_me:11559: result: $emacs_cv_struct_timezone" >&5 |
40056 | 11560 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 |
29906 | 11561 fi |
11562 | |
25897 | 11563 ok_so_far=yes |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11564 echo "$as_me:11564: checking for socket" >&5 |
40056 | 11565 echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
11566 if test "${ac_cv_func_socket+set}" = set; then | |
11567 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11568 else | |
11569 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11570 #line 11570 "configure" |
25897 | 11571 #include "confdefs.h" |
11572 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 11573 which can conflict with char socket (); below. */ |
25897 | 11574 #include <assert.h> |
11575 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 11576 #ifdef __cplusplus |
11577 extern "C" | |
11578 #endif | |
25897 | 11579 /* We use char because int might match the return type of a gcc2 |
40056 | 11580 builtin and then its argument prototype would still apply. */ |
11581 char socket (); | |
11582 char (*f) (); | |
11583 | |
11584 int | |
11585 main () | |
11586 { | |
25897 | 11587 /* The GNU C library defines this for functions which it implements |
11588 to always fail with ENOSYS. Some functions are actually named | |
11589 something starting with __ and the normal name is an alias. */ | |
11590 #if defined (__stub_socket) || defined (__stub___socket) | |
11591 choke me | |
11592 #else | |
40056 | 11593 f = socket; |
11594 #endif | |
11595 | |
11596 ; | |
11597 return 0; | |
11598 } | |
11599 _ACEOF | |
11600 rm -f conftest.$ac_objext conftest$ac_exeext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11601 if { (eval echo "$as_me:11601: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11602 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11603 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11604 echo "$as_me:11604: \$? = $ac_status" >&5 |
40056 | 11605 (exit $ac_status); } && |
11606 { ac_try='test -s conftest$ac_exeext' | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11607 { (eval echo "$as_me:11607: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11608 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11609 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11610 echo "$as_me:11610: \$? = $ac_status" >&5 |
40056 | 11611 (exit $ac_status); }; }; then |
11612 ac_cv_func_socket=yes | |
11613 else | |
11614 echo "$as_me: failed program was:" >&5 | |
11615 cat conftest.$ac_ext >&5 | |
11616 ac_cv_func_socket=no | |
11617 fi | |
11618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11619 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11620 echo "$as_me:11620: result: $ac_cv_func_socket" >&5 |
40056 | 11621 echo "${ECHO_T}$ac_cv_func_socket" >&6 |
11622 if test $ac_cv_func_socket = yes; then | |
25897 | 11623 : |
11624 else | |
40056 | 11625 ok_so_far=no |
25897 | 11626 fi |
11627 | |
11628 if test $ok_so_far = yes; then | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11629 echo "$as_me:11629: checking for netinet/in.h" >&5 |
40056 | 11630 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
11631 if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
11632 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11633 else | |
11634 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11635 #line 11635 "configure" |
25897 | 11636 #include "confdefs.h" |
11637 #include <netinet/in.h> | |
40056 | 11638 _ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11639 if { (eval echo "$as_me:11639: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11641 ac_status=$? | |
11642 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11643 rm -f conftest.er1 | |
11644 cat conftest.err >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11645 echo "$as_me:11645: \$? = $ac_status" >&5 |
40056 | 11646 (exit $ac_status); } >/dev/null; then |
11647 if test -s conftest.err; then | |
11648 ac_cpp_err=$ac_c_preproc_warn_flag | |
11649 else | |
11650 ac_cpp_err= | |
11651 fi | |
11652 else | |
11653 ac_cpp_err=yes | |
11654 fi | |
11655 if test -z "$ac_cpp_err"; then | |
11656 ac_cv_header_netinet_in_h=yes | |
11657 else | |
11658 echo "$as_me: failed program was:" >&5 | |
25897 | 11659 cat conftest.$ac_ext >&5 |
40056 | 11660 ac_cv_header_netinet_in_h=no |
11661 fi | |
11662 rm -f conftest.err conftest.$ac_ext | |
11663 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11664 echo "$as_me:11664: result: $ac_cv_header_netinet_in_h" >&5 |
40056 | 11665 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
11666 if test $ac_cv_header_netinet_in_h = yes; then | |
25897 | 11667 : |
11668 else | |
40056 | 11669 ok_so_far=no |
25897 | 11670 fi |
11671 | |
11672 fi | |
11673 if test $ok_so_far = yes; then | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11674 echo "$as_me:11674: checking for arpa/inet.h" >&5 |
40056 | 11675 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
11676 if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
11677 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11678 else | |
11679 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11680 #line 11680 "configure" |
25897 | 11681 #include "confdefs.h" |
11682 #include <arpa/inet.h> | |
40056 | 11683 _ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11684 if { (eval echo "$as_me:11684: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11686 ac_status=$? | |
11687 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11688 rm -f conftest.er1 | |
11689 cat conftest.err >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11690 echo "$as_me:11690: \$? = $ac_status" >&5 |
40056 | 11691 (exit $ac_status); } >/dev/null; then |
11692 if test -s conftest.err; then | |
11693 ac_cpp_err=$ac_c_preproc_warn_flag | |
11694 else | |
11695 ac_cpp_err= | |
11696 fi | |
11697 else | |
11698 ac_cpp_err=yes | |
11699 fi | |
11700 if test -z "$ac_cpp_err"; then | |
11701 ac_cv_header_arpa_inet_h=yes | |
11702 else | |
11703 echo "$as_me: failed program was:" >&5 | |
25897 | 11704 cat conftest.$ac_ext >&5 |
40056 | 11705 ac_cv_header_arpa_inet_h=no |
11706 fi | |
11707 rm -f conftest.err conftest.$ac_ext | |
11708 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11709 echo "$as_me:11709: result: $ac_cv_header_arpa_inet_h" >&5 |
40056 | 11710 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
11711 if test $ac_cv_header_arpa_inet_h = yes; then | |
25897 | 11712 : |
11713 else | |
40056 | 11714 ok_so_far=no |
25897 | 11715 fi |
11716 | |
11717 fi | |
11718 if test $ok_so_far = yes; then | |
40056 | 11719 cat >>confdefs.h <<\EOF |
25897 | 11720 #define HAVE_INET_SOCKETS 1 |
11721 EOF | |
11722 | |
11723 fi | |
11724 | |
11725 if test -f /usr/lpp/X11/bin/smt.exp; then | |
40056 | 11726 cat >>confdefs.h <<\EOF |
25897 | 11727 #define HAVE_AIX_SMT_EXP 1 |
11728 EOF | |
11729 | |
11730 fi | |
11731 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11732 echo "$as_me:11732: checking whether system supports dynamic ptys" >&5 |
40056 | 11733 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6 |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
11734 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11735 echo "$as_me:11735: result: yes" >&5 |
40056 | 11736 echo "${ECHO_T}yes" >&6 |
11737 cat >>confdefs.h <<\EOF | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
11738 #define HAVE_DEV_PTMX 1 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
11739 EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
11740 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
11741 else |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11742 echo "$as_me:11742: result: no" >&5 |
40056 | 11743 echo "${ECHO_T}no" >&6 |
11744 fi | |
11745 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11746 echo "$as_me:11746: checking for pid_t" >&5 |
40056 | 11747 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
11748 if test "${ac_cv_type_pid_t+set}" = set; then | |
11749 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11750 else | |
11751 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11752 #line 11752 "configure" |
40056 | 11753 #include "confdefs.h" |
11754 $ac_includes_default | |
11755 int | |
11756 main () | |
11757 { | |
11758 if ((pid_t *) 0) | |
11759 return 0; | |
11760 if (sizeof (pid_t)) | |
11761 return 0; | |
11762 ; | |
11763 return 0; | |
11764 } | |
11765 _ACEOF | |
11766 rm -f conftest.$ac_objext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11767 if { (eval echo "$as_me:11767: \"$ac_compile\"") >&5 |
40056 | 11768 (eval $ac_compile) 2>&5 |
11769 ac_status=$? | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11770 echo "$as_me:11770: \$? = $ac_status" >&5 |
40056 | 11771 (exit $ac_status); } && |
11772 { ac_try='test -s conftest.$ac_objext' | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11773 { (eval echo "$as_me:11773: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11774 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11775 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11776 echo "$as_me:11776: \$? = $ac_status" >&5 |
40056 | 11777 (exit $ac_status); }; }; then |
27675 | 11778 ac_cv_type_pid_t=yes |
11779 else | |
40056 | 11780 echo "$as_me: failed program was:" >&5 |
11781 cat conftest.$ac_ext >&5 | |
11782 ac_cv_type_pid_t=no | |
11783 fi | |
11784 rm -f conftest.$ac_objext conftest.$ac_ext | |
11785 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11786 echo "$as_me:11786: result: $ac_cv_type_pid_t" >&5 |
40056 | 11787 echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
11788 if test $ac_cv_type_pid_t = yes; then | |
11789 : | |
11790 else | |
11791 | |
11792 cat >>confdefs.h <<EOF | |
27675 | 11793 #define pid_t int |
11794 EOF | |
11795 | |
11796 fi | |
11797 | |
40056 | 11798 for ac_header in unistd.h vfork.h |
11799 do | |
11800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11801 echo "$as_me:11801: checking for $ac_header" >&5 |
40056 | 11802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11803 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11804 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11805 else | |
11806 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11807 #line 11807 "configure" |
40056 | 11808 #include "confdefs.h" |
11809 #include <$ac_header> | |
11810 _ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11811 if { (eval echo "$as_me:11811: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11813 ac_status=$? | |
11814 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11815 rm -f conftest.er1 | |
11816 cat conftest.err >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11817 echo "$as_me:11817: \$? = $ac_status" >&5 |
40056 | 11818 (exit $ac_status); } >/dev/null; then |
11819 if test -s conftest.err; then | |
11820 ac_cpp_err=$ac_c_preproc_warn_flag | |
11821 else | |
11822 ac_cpp_err= | |
11823 fi | |
11824 else | |
11825 ac_cpp_err=yes | |
11826 fi | |
11827 if test -z "$ac_cpp_err"; then | |
11828 eval "$as_ac_Header=yes" | |
11829 else | |
11830 echo "$as_me: failed program was:" >&5 | |
27675 | 11831 cat conftest.$ac_ext >&5 |
40056 | 11832 eval "$as_ac_Header=no" |
11833 fi | |
11834 rm -f conftest.err conftest.$ac_ext | |
11835 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11836 echo "$as_me:11836: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11838 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11839 cat >>confdefs.h <<EOF | |
11840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11841 EOF | |
11842 | |
11843 fi | |
11844 done | |
11845 | |
11846 for ac_func in fork vfork | |
11847 do | |
11848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11849 echo "$as_me:11849: checking for $ac_func" >&5 |
40056 | 11850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
11851 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11852 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11853 else | |
11854 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11855 #line 11855 "configure" |
27675 | 11856 #include "confdefs.h" |
11857 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 11858 which can conflict with char $ac_func (); below. */ |
27675 | 11859 #include <assert.h> |
11860 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 11861 #ifdef __cplusplus |
11862 extern "C" | |
11863 #endif | |
27675 | 11864 /* We use char because int might match the return type of a gcc2 |
40056 | 11865 builtin and then its argument prototype would still apply. */ |
11866 char $ac_func (); | |
11867 char (*f) (); | |
11868 | |
11869 int | |
11870 main () | |
11871 { | |
27675 | 11872 /* The GNU C library defines this for functions which it implements |
11873 to always fail with ENOSYS. Some functions are actually named | |
11874 something starting with __ and the normal name is an alias. */ | |
40056 | 11875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
27675 | 11876 choke me |
11877 #else | |
40056 | 11878 f = $ac_func; |
11879 #endif | |
11880 | |
11881 ; | |
11882 return 0; | |
11883 } | |
11884 _ACEOF | |
11885 rm -f conftest.$ac_objext conftest$ac_exeext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11886 if { (eval echo "$as_me:11886: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11887 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11888 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11889 echo "$as_me:11889: \$? = $ac_status" >&5 |
40056 | 11890 (exit $ac_status); } && |
11891 { ac_try='test -s conftest$ac_exeext' | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11892 { (eval echo "$as_me:11892: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11893 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11894 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11895 echo "$as_me:11895: \$? = $ac_status" >&5 |
40056 | 11896 (exit $ac_status); }; }; then |
11897 eval "$as_ac_var=yes" | |
11898 else | |
11899 echo "$as_me: failed program was:" >&5 | |
11900 cat conftest.$ac_ext >&5 | |
11901 eval "$as_ac_var=no" | |
11902 fi | |
11903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11904 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11905 echo "$as_me:11905: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 11906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
11907 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11908 cat >>confdefs.h <<EOF | |
11909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11910 EOF | |
11911 | |
11912 fi | |
11913 done | |
11914 | |
11915 ac_cv_func_fork_works=$ac_cv_func_fork | |
11916 if test "x$ac_cv_func_fork" = xyes; then | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11917 echo "$as_me:11917: checking for working fork" >&5 |
40056 | 11918 echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
11919 if test "${ac_cv_func_fork_works+set}" = set; then | |
11920 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11921 else | |
11922 if test "$cross_compiling" = yes; then | |
11923 ac_cv_func_fork_works=cross | |
11924 else | |
11925 cat >conftest.$ac_ext <<_ACEOF | |
11926 /* By Rüdiger Kuhlmann. */ | |
11927 #include <sys/types.h> | |
11928 #if HAVE_UNISTD_H | |
11929 # include <unistd.h> | |
11930 #endif | |
11931 /* Some systems only have a dummy stub for fork() */ | |
11932 int main () | |
11933 { | |
11934 if (fork() < 0) | |
11935 exit (1); | |
11936 exit (0); | |
11937 } | |
11938 _ACEOF | |
11939 rm -f conftest$ac_exeext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11940 if { (eval echo "$as_me:11940: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11941 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11942 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11943 echo "$as_me:11943: \$? = $ac_status" >&5 |
40056 | 11944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11945 { (eval echo "$as_me:11945: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11946 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11947 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11948 echo "$as_me:11948: \$? = $ac_status" >&5 |
40056 | 11949 (exit $ac_status); }; }; then |
11950 ac_cv_func_fork_works=yes | |
11951 else | |
11952 echo "$as_me: program exited with status $ac_status" >&5 | |
11953 echo "$as_me: failed program was:" >&5 | |
11954 cat conftest.$ac_ext >&5 | |
11955 ac_cv_func_fork_works=no | |
11956 fi | |
11957 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11958 fi | |
11959 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11960 echo "$as_me:11960: result: $ac_cv_func_fork_works" >&5 |
40056 | 11961 echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
11962 | |
11963 fi | |
11964 if test "x$ac_cv_func_fork_works" = xcross; then | |
11965 case $host in | |
11966 *-*-amigaos* | *-*-msdosdjgpp*) | |
11967 # Override, as these systems have only a dummy fork() stub | |
11968 ac_cv_func_fork_works=no | |
11969 ;; | |
11970 *) | |
11971 ac_cv_func_fork_works=yes | |
11972 ;; | |
11973 esac | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11974 { echo "$as_me:11974: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5 |
40056 | 11975 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;} |
11976 fi | |
27675 | 11977 ac_cv_func_vfork_works=$ac_cv_func_vfork |
40056 | 11978 if test "x$ac_cv_func_vfork" = xyes; then |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11979 echo "$as_me:11979: checking for working vfork" >&5 |
40056 | 11980 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
11981 if test "${ac_cv_func_vfork_works+set}" = set; then | |
11982 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11983 else | |
11984 if test "$cross_compiling" = yes; then | |
11985 ac_cv_func_vfork_works=cross | |
11986 else | |
11987 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
11988 #line 11988 "configure" |
27675 | 11989 #include "confdefs.h" |
11990 /* Thanks to Paul Eggert for this test. */ | |
11991 #include <stdio.h> | |
11992 #include <sys/types.h> | |
11993 #include <sys/stat.h> | |
40056 | 11994 #if HAVE_UNISTD_H |
11995 # include <unistd.h> | |
11996 #endif | |
11997 #if HAVE_VFORK_H | |
11998 # include <vfork.h> | |
27675 | 11999 #endif |
12000 /* On some sparc systems, changes by the child to local and incoming | |
40056 | 12001 argument registers are propagated back to the parent. The compiler |
12002 is told about this with #include <vfork.h>, but some compilers | |
12003 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
12004 static variable whose address is put into a register that is | |
12005 clobbered by the vfork. */ | |
27675 | 12006 static |
12007 #ifdef __cplusplus | |
12008 sparc_address_test (int arg) | |
40056 | 12009 # else |
27675 | 12010 sparc_address_test (arg) int arg; |
12011 #endif | |
12012 { | |
12013 static pid_t child; | |
12014 if (!child) { | |
12015 child = vfork (); | |
12016 if (child < 0) { | |
12017 perror ("vfork"); | |
12018 _exit(2); | |
12019 } | |
12020 if (!child) { | |
12021 arg = getpid(); | |
12022 write(-1, "", 0); | |
12023 _exit (arg); | |
12024 } | |
12025 } | |
12026 } | |
40056 | 12027 |
12028 int | |
12029 main () | |
12030 { | |
27675 | 12031 pid_t parent = getpid (); |
12032 pid_t child; | |
12033 | |
12034 sparc_address_test (); | |
12035 | |
12036 child = vfork (); | |
12037 | |
12038 if (child == 0) { | |
40056 | 12039 /* Here is another test for sparc vfork register problems. This |
12040 test uses lots of local variables, at least as many local | |
12041 variables as main has allocated so far including compiler | |
12042 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
12043 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
12044 reuse the register of parent for one of the local variables, | |
12045 since it will think that parent can't possibly be used any more | |
12046 in this routine. Assigning to the local variable will thus | |
12047 munge parent in the parent process. */ | |
27675 | 12048 pid_t |
12049 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
12050 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
12051 /* Convince the compiler that p..p7 are live; otherwise, it might | |
12052 use the same hardware register for all 8 local variables. */ | |
12053 if (p != p1 || p != p2 || p != p3 || p != p4 | |
12054 || p != p5 || p != p6 || p != p7) | |
12055 _exit(1); | |
12056 | |
40056 | 12057 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
12058 from child file descriptors. If the child closes a descriptor | |
12059 before it execs or exits, this munges the parent's descriptor | |
12060 as well. Test for this by closing stdout in the child. */ | |
27675 | 12061 _exit(close(fileno(stdout)) != 0); |
12062 } else { | |
12063 int status; | |
12064 struct stat st; | |
12065 | |
12066 while (wait(&status) != child) | |
12067 ; | |
12068 exit( | |
12069 /* Was there some problem with vforking? */ | |
12070 child < 0 | |
12071 | |
12072 /* Did the child fail? (This shouldn't happen.) */ | |
12073 || status | |
12074 | |
12075 /* Did the vfork/compiler bug occur? */ | |
12076 || parent != getpid() | |
12077 | |
12078 /* Did the file descriptor bug occur? */ | |
12079 || fstat(fileno(stdout), &st) != 0 | |
12080 ); | |
12081 } | |
12082 } | |
40056 | 12083 _ACEOF |
12084 rm -f conftest$ac_exeext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12085 if { (eval echo "$as_me:12085: \"$ac_link\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12086 (eval $ac_link) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12087 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12088 echo "$as_me:12088: \$? = $ac_status" >&5 |
40056 | 12089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12090 { (eval echo "$as_me:12090: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12091 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12092 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12093 echo "$as_me:12093: \$? = $ac_status" >&5 |
40056 | 12094 (exit $ac_status); }; }; then |
27675 | 12095 ac_cv_func_vfork_works=yes |
12096 else | |
40056 | 12097 echo "$as_me: program exited with status $ac_status" >&5 |
12098 echo "$as_me: failed program was:" >&5 | |
12099 cat conftest.$ac_ext >&5 | |
12100 ac_cv_func_vfork_works=no | |
12101 fi | |
12102 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12103 fi | |
12104 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12105 echo "$as_me:12105: result: $ac_cv_func_vfork_works" >&5 |
40056 | 12106 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
12107 | |
12108 fi; | |
12109 if test "x$ac_cv_func_fork_works" = xcross; then | |
12110 ac_cv_func_vfork_works=ac_cv_func_vfork | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12111 { echo "$as_me:12111: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5 |
40056 | 12112 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;} |
12113 fi | |
12114 | |
12115 if test "x$ac_cv_func_vfork_works" = xyes; then | |
12116 | |
12117 cat >>confdefs.h <<\EOF | |
12118 #define HAVE_WORKING_VFORK 1 | |
12119 EOF | |
12120 | |
12121 else | |
12122 | |
12123 cat >>confdefs.h <<\EOF | |
27675 | 12124 #define vfork fork |
12125 EOF | |
12126 | |
12127 fi | |
40056 | 12128 if test "x$ac_cv_func_fork_works" = xyes; then |
12129 | |
12130 cat >>confdefs.h <<\EOF | |
12131 #define HAVE_WORKING_FORK 1 | |
12132 EOF | |
12133 | |
12134 fi | |
27675 | 12135 |
30395 | 12136 # Fixme: This should be replaced when we have autoconf 2.14. |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12137 echo "$as_me:12137: checking for size_t" >&5 |
40056 | 12138 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
12139 if test "${ac_cv_type_size_t+set}" = set; then | |
12140 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12141 else | |
12142 cat >conftest.$ac_ext <<_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12143 #line 12143 "configure" |
40056 | 12144 #include "confdefs.h" |
12145 $ac_includes_default | |
12146 int | |
12147 main () | |
12148 { | |
12149 if ((size_t *) 0) | |
12150 return 0; | |
12151 if (sizeof (size_t)) | |
12152 return 0; | |
12153 ; | |
12154 return 0; | |
12155 } | |
12156 _ACEOF | |
12157 rm -f conftest.$ac_objext | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12158 if { (eval echo "$as_me:12158: \"$ac_compile\"") >&5 |
40056 | 12159 (eval $ac_compile) 2>&5 |
12160 ac_status=$? | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12161 echo "$as_me:12161: \$? = $ac_status" >&5 |
40056 | 12162 (exit $ac_status); } && |
12163 { ac_try='test -s conftest.$ac_objext' | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12164 { (eval echo "$as_me:12164: \"$ac_try\"") >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12165 (eval $ac_try) 2>&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12166 ac_status=$? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12167 echo "$as_me:12167: \$? = $ac_status" >&5 |
40056 | 12168 (exit $ac_status); }; }; then |
30395 | 12169 ac_cv_type_size_t=yes |
12170 else | |
40056 | 12171 echo "$as_me: failed program was:" >&5 |
12172 cat conftest.$ac_ext >&5 | |
12173 ac_cv_type_size_t=no | |
12174 fi | |
12175 rm -f conftest.$ac_objext conftest.$ac_ext | |
12176 fi | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12177 echo "$as_me:12177: result: $ac_cv_type_size_t" >&5 |
40056 | 12178 echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
12179 if test $ac_cv_type_size_t = yes; then | |
12180 : | |
12181 else | |
12182 | |
12183 cat >>confdefs.h <<EOF | |
30395 | 12184 #define size_t unsigned |
12185 EOF | |
12186 | |
12187 fi | |
12188 | |
25897 | 12189 # Set up the CFLAGS for real compilation, so we can substitute it. |
12190 CFLAGS="$REAL_CFLAGS" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
12191 CPPFLAGS="$REAL_CPPFLAGS" |
25897 | 12192 |
12193 #### Find out which version of Emacs this is. | |
12194 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
12195 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
12196 if test x"${version}" = x; then | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12197 { { echo "$as_me:12197: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 |
40056 | 12198 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} |
12199 { (exit 1); exit 1; }; } | |
25897 | 12200 fi |
12201 | |
12202 ### Specify what sort of things we'll be editing into Makefile and config.h. | |
12203 ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
12204 | |
40056 | 12205 cat >>confdefs.h <<EOF |
25897 | 12206 #define EMACS_CONFIGURATION "${canonical}" |
12207 EOF | |
12208 | |
40056 | 12209 cat >>confdefs.h <<EOF |
25897 | 12210 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" |
12211 EOF | |
12212 | |
40056 | 12213 cat >>confdefs.h <<EOF |
25897 | 12214 #define config_machfile "${machfile}" |
12215 EOF | |
12216 | |
40056 | 12217 cat >>confdefs.h <<EOF |
25897 | 12218 #define config_opsysfile "${opsysfile}" |
12219 EOF | |
12220 | |
40056 | 12221 cat >>confdefs.h <<EOF |
25897 | 12222 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} |
12223 EOF | |
12224 | |
40056 | 12225 cat >>confdefs.h <<EOF |
25897 | 12226 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} |
12227 EOF | |
12228 | |
40056 | 12229 cat >>confdefs.h <<EOF |
25897 | 12230 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} |
12231 EOF | |
12232 | |
40056 | 12233 cat >>confdefs.h <<EOF |
25897 | 12234 #define UNEXEC_SRC ${UNEXEC_SRC} |
12235 EOF | |
12236 | |
12237 if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
40056 | 12238 cat >>confdefs.h <<\EOF |
25897 | 12239 #define HAVE_X_WINDOWS 1 |
12240 EOF | |
12241 | |
12242 fi | |
12243 if test "${USE_X_TOOLKIT}" != "none" ; then | |
40056 | 12244 cat >>confdefs.h <<\EOF |
25897 | 12245 #define USE_X_TOOLKIT 1 |
12246 EOF | |
12247 | |
12248 fi | |
12249 if test "${HAVE_X11}" = "yes" ; then | |
40056 | 12250 cat >>confdefs.h <<\EOF |
25897 | 12251 #define HAVE_X11 1 |
12252 EOF | |
12253 | |
12254 fi | |
12255 if test "${HAVE_XFREE386}" = "yes" ; then | |
40056 | 12256 cat >>confdefs.h <<\EOF |
25897 | 12257 #define HAVE_XFREE386 1 |
12258 EOF | |
12259 | |
12260 fi | |
12261 if test "${HAVE_MENUS}" = "yes" ; then | |
40056 | 12262 cat >>confdefs.h <<\EOF |
25897 | 12263 #define HAVE_MENUS 1 |
12264 EOF | |
12265 | |
12266 fi | |
12267 if test "${GNU_MALLOC}" = "yes" ; then | |
40056 | 12268 cat >>confdefs.h <<\EOF |
25897 | 12269 #define GNU_MALLOC 1 |
12270 EOF | |
12271 | |
12272 fi | |
12273 if test "${REL_ALLOC}" = "yes" ; then | |
40056 | 12274 cat >>confdefs.h <<\EOF |
25897 | 12275 #define REL_ALLOC 1 |
12276 EOF | |
12277 | |
12278 fi | |
12279 | |
12280 #### Report on what we decided to do. | |
12281 echo " | |
12282 Configured for \`${canonical}'. | |
12283 | |
12284 Where should the build process find the source code? ${srcdir} | |
12285 What operating system and machine description files should Emacs use? | |
12286 \`${opsysfile}' and \`${machfile}' | |
12287 What compiler should emacs be built with? ${CC} ${CFLAGS} | |
12288 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
31417 | 12289 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
31607 | 12290 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
25897 | 12291 What window system should Emacs use? ${window_system} |
12292 What toolkit should Emacs use? ${USE_X_TOOLKIT}" | |
12293 | |
12294 if test -n "${x_includes}"; then | |
12295 echo " Where do we find X Windows header files? ${x_includes}" | |
12296 else | |
12297 echo " Where do we find X Windows header files? Standard dirs" | |
12298 fi | |
12299 if test -n "${x_libraries}"; then | |
12300 echo " Where do we find X Windows libraries? ${x_libraries}" | |
12301 else | |
12302 echo " Where do we find X Windows libraries? Standard dirs" | |
12303 fi | |
12304 | |
12305 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
12306 echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
12307 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
12308 echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
12309 echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
12310 echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
12311 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
12312 echo | |
12313 | |
12314 # Remove any trailing slashes in these variables. | |
12315 test "${prefix}" != NONE && | |
12316 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
12317 test "${exec_prefix}" != NONE && | |
12318 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
12319 | |
36354 | 12320 ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
12321 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
12322 ## from Makefile.c can correctly provide the arg `-traditional' to the | |
12323 ## C preprocessor. | |
12324 | |
40056 | 12325 cat >conftest.$ac_ext <<_ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12326 #line 12326 "configure" |
36354 | 12327 #include "confdefs.h" |
12328 yes..yes | |
40056 | 12329 _ACEOF |
36354 | 12330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12331 egrep "yes..yes" >/dev/null 2>&1; then | |
12332 CPP_NEED_TRADITIONAL=no | |
12333 else | |
12334 CPP_NEED_TRADITIONAL=yes | |
12335 fi | |
12336 rm -f conftest* | |
12337 | |
40056 | 12338 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 leim/Makefile" |
12339 ac_config_commands="$ac_config_commands default" | |
12340 cat >confcache <<\_ACEOF | |
25897 | 12341 # This file is a shell script that caches the results of configure |
12342 # tests run on this system so they can be shared between configure | |
40056 | 12343 # scripts and configure runs, see configure's option --config-cache. |
12344 # It is not useful on other systems. If it contains results you don't | |
12345 # want to keep, you may remove or edit it. | |
12346 # | |
12347 # config.status only pays attention to the cache file if you give it | |
12348 # the --recheck option to rerun configure. | |
25897 | 12349 # |
40056 | 12350 # `ac_cv_env_foo' variables (set or unset) will be overriden when |
12351 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12352 # following values. | |
12353 | |
12354 _ACEOF | |
12355 | |
25897 | 12356 # The following way of writing the cache mishandles newlines in values, |
12357 # but we know of no workaround that is simple, portable, and efficient. | |
12358 # So, don't put newlines in cache variables' values. | |
12359 # Ultrix sh set writes to stderr and can't be redirected directly, | |
12360 # and sets the high bit in the cache file unless we assign to the vars. | |
40056 | 12361 { |
12362 (set) 2>&1 | | |
12363 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
12364 *ac_space=\ *) | |
12365 # `set' does not quote correctly, so add quotes (double-quote | |
12366 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12367 sed -n \ | |
12368 "s/'/'\\\\''/g; | |
12369 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12370 ;; | |
12371 *) | |
12372 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12373 sed -n \ | |
12374 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
12375 ;; | |
12376 esac; | |
12377 } | | |
12378 sed ' | |
12379 t clear | |
12380 : clear | |
12381 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12382 t end | |
12383 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12384 : end' >>confcache | |
12385 if cmp -s $cache_file confcache; then :; else | |
25897 | 12386 if test -w $cache_file; then |
40056 | 12387 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
12388 cat confcache >$cache_file | |
25897 | 12389 else |
12390 echo "not updating unwritable cache $cache_file" | |
12391 fi | |
12392 fi | |
12393 rm -f confcache | |
12394 | |
12395 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
12396 # Let make expand exec_prefix. | |
12397 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12398 | |
40056 | 12399 # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12400 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12401 # trailing colons and then remove the whole line if VPATH becomes empty | |
12402 # (actually we leave an empty line to preserve line numbers). | |
25897 | 12403 if test "x$srcdir" = x.; then |
40056 | 12404 ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
12405 s/:*\$(srcdir):*/:/; | |
12406 s/:*\${srcdir}:*/:/; | |
12407 s/:*@srcdir@:*/:/; | |
12408 s/^\([^=]*=[ ]*\):*/\1/; | |
12409 s/:*$//; | |
12410 s/^[^=]*=[ ]*$//; | |
12411 }' | |
12412 fi | |
25897 | 12413 |
12414 DEFS=-DHAVE_CONFIG_H | |
12415 | |
12416 : ${CONFIG_STATUS=./config.status} | |
40056 | 12417 ac_clean_files_save=$ac_clean_files |
12418 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12419 { echo "$as_me:12419: creating $CONFIG_STATUS" >&5 |
40056 | 12420 echo "$as_me: creating $CONFIG_STATUS" >&6;} |
12421 cat >$CONFIG_STATUS <<_ACEOF | |
12422 #! $SHELL | |
25897 | 12423 # Generated automatically by configure. |
12424 # Run this file to recreate the current configuration. | |
12425 # Compiler output produced by configure, useful for debugging | |
40056 | 12426 # configure, is in config.log if it exists. |
12427 | |
12428 debug=false | |
12429 SHELL=\${CONFIG_SHELL-$SHELL} | |
12430 ac_cs_invocation="\$0 \$@" | |
12431 | |
12432 _ACEOF | |
12433 | |
12434 cat >>$CONFIG_STATUS <<\_ACEOF | |
12435 # Be Bourne compatible | |
12436 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
12437 emulate sh | |
12438 NULLCMD=: | |
12439 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
12440 set -o posix | |
12441 fi | |
12442 | |
12443 # Name of the executable. | |
12444 as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
12445 | |
12446 if expr a : '\(a\)' >/dev/null 2>&1; then | |
12447 as_expr=expr | |
12448 else | |
12449 as_expr=false | |
12450 fi | |
12451 | |
12452 rm -f conf$$ conf$$.exe conf$$.file | |
12453 echo >conf$$.file | |
12454 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12455 # We could just check for DJGPP; but this test a) works b) is more generic | |
12456 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
12457 if test -f conf$$.exe; then | |
12458 # Don't use ln at all; we don't have any links | |
12459 as_ln_s='cp -p' | |
12460 else | |
12461 as_ln_s='ln -s' | |
12462 fi | |
12463 elif ln conf$$.file conf$$ 2>/dev/null; then | |
12464 as_ln_s=ln | |
12465 else | |
12466 as_ln_s='cp -p' | |
12467 fi | |
12468 rm -f conf$$ conf$$.exe conf$$.file | |
12469 | |
12470 as_executable_p="test -f" | |
12471 | |
12472 # Support unset when possible. | |
12473 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
12474 as_unset=unset | |
12475 else | |
12476 as_unset=false | |
12477 fi | |
12478 | |
12479 # NLS nuisances. | |
12480 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
12481 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
12482 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
12483 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
12484 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
12485 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
12486 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
12487 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
12488 | |
12489 # IFS | |
12490 # We need space, tab and new line, in precisely that order. | |
12491 as_nl=' | |
12492 ' | |
12493 IFS=" $as_nl" | |
12494 | |
12495 # CDPATH. | |
12496 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
12497 | |
12498 exec 6>&1 | |
12499 | |
12500 _ACEOF | |
12501 | |
12502 # Files that config.status was made for. | |
12503 if test -n "$ac_config_files"; then | |
12504 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
12505 fi | |
12506 | |
12507 if test -n "$ac_config_headers"; then | |
12508 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
12509 fi | |
12510 | |
12511 if test -n "$ac_config_links"; then | |
12512 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
12513 fi | |
12514 | |
12515 if test -n "$ac_config_commands"; then | |
12516 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
12517 fi | |
12518 | |
12519 cat >>$CONFIG_STATUS <<\EOF | |
12520 | |
12521 ac_cs_usage="\ | |
12522 \`$as_me' instantiates files from templates according to the | |
12523 current configuration. | |
12524 | |
12525 Usage: $0 [OPTIONS] [FILE]... | |
12526 | |
12527 -h, --help print this help, then exit | |
12528 -V, --version print version number, then exit | |
12529 -d, --debug don't remove temporary files | |
12530 --recheck update $as_me by reconfiguring in the same conditions | |
12531 --file=FILE[:TEMPLATE] | |
12532 instantiate the configuration file FILE | |
12533 --header=FILE[:TEMPLATE] | |
12534 instantiate the configuration header FILE | |
12535 | |
12536 Configuration files: | |
12537 $config_files | |
12538 | |
12539 Configuration headers: | |
12540 $config_headers | |
12541 | |
12542 Configuration commands: | |
12543 $config_commands | |
12544 | |
12545 Report bugs to <bug-autoconf@gnu.org>." | |
12546 EOF | |
12547 | |
12548 cat >>$CONFIG_STATUS <<EOF | |
12549 ac_cs_version="\\ | |
12550 config.status | |
12551 configured by $0, generated by GNU Autoconf 2.52, | |
12552 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
12553 | |
12554 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
12555 Free Software Foundation, Inc. | |
12556 This config.status script is free software; the Free Software Foundation | |
12557 gives unlimited permission to copy, distribute and modify it." | |
12558 srcdir=$srcdir | |
12559 INSTALL="$INSTALL" | |
12560 EOF | |
12561 | |
12562 cat >>$CONFIG_STATUS <<\EOF | |
12563 # If no file are specified by the user, then we need to provide default | |
12564 # value. By we need to know if files were specified by the user. | |
12565 ac_need_defaults=: | |
12566 while test $# != 0 | |
25897 | 12567 do |
40056 | 12568 case $1 in |
12569 --*=*) | |
12570 ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
12571 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
12572 shift | |
12573 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
12574 shift | |
12575 ;; | |
12576 -*);; | |
12577 *) # This is not an option, so the user has probably given explicit | |
12578 # arguments. | |
12579 ac_need_defaults=false;; | |
12580 esac | |
12581 | |
12582 case $1 in | |
12583 # Handling of the options. | |
12584 EOF | |
12585 cat >>$CONFIG_STATUS <<EOF | |
25897 | 12586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
40056 | 12587 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
12588 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
12589 EOF | |
12590 cat >>$CONFIG_STATUS <<\EOF | |
12591 --version | --vers* | -V ) | |
12592 echo "$ac_cs_version"; exit 0 ;; | |
12593 --he | --h) | |
12594 # Conflict between --help and --header | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12595 { { echo "$as_me:12595: error: ambiguous option: $1 |
40056 | 12596 Try \`$0 --help' for more information." >&5 |
12597 echo "$as_me: error: ambiguous option: $1 | |
12598 Try \`$0 --help' for more information." >&2;} | |
12599 { (exit 1); exit 1; }; };; | |
12600 --help | --hel | -h ) | |
12601 echo "$ac_cs_usage"; exit 0 ;; | |
12602 --debug | --d* | -d ) | |
12603 debug=: ;; | |
12604 --file | --fil | --fi | --f ) | |
12605 shift | |
12606 CONFIG_FILES="$CONFIG_FILES $1" | |
12607 ac_need_defaults=false;; | |
12608 --header | --heade | --head | --hea ) | |
12609 shift | |
12610 CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
12611 ac_need_defaults=false;; | |
12612 | |
12613 # This is an error. | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12614 -*) { { echo "$as_me:12614: error: unrecognized option: $1 |
40056 | 12615 Try \`$0 --help' for more information." >&5 |
12616 echo "$as_me: error: unrecognized option: $1 | |
12617 Try \`$0 --help' for more information." >&2;} | |
12618 { (exit 1); exit 1; }; } ;; | |
12619 | |
12620 *) ac_config_targets="$ac_config_targets $1" ;; | |
12621 | |
12622 esac | |
12623 shift | |
12624 done | |
12625 | |
12626 exec 5>>config.log | |
12627 cat >&5 << _ACEOF | |
12628 | |
12629 ## ----------------------- ## | |
12630 ## Running config.status. ## | |
12631 ## ----------------------- ## | |
12632 | |
12633 This file was extended by $as_me 2.52, executed with | |
12634 CONFIG_FILES = $CONFIG_FILES | |
12635 CONFIG_HEADERS = $CONFIG_HEADERS | |
12636 CONFIG_LINKS = $CONFIG_LINKS | |
12637 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12638 > $ac_cs_invocation | |
12639 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
12640 | |
12641 _ACEOF | |
12642 EOF | |
12643 | |
12644 cat >>$CONFIG_STATUS <<EOF | |
12645 # | |
12646 # INIT-COMMANDS section. | |
12647 # | |
12648 | |
12649 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" | |
12650 | |
12651 EOF | |
12652 | |
12653 cat >>$CONFIG_STATUS <<\EOF | |
12654 for ac_config_target in $ac_config_targets | |
12655 do | |
12656 case "$ac_config_target" in | |
12657 # Handling of arguments. | |
12658 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12659 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
12660 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
12661 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
12662 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | |
12663 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; | |
12664 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | |
12665 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; | |
12666 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
12667 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12668 *) { { echo "$as_me:12668: error: invalid argument: $ac_config_target" >&5 |
40056 | 12669 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12670 { (exit 1); exit 1; }; };; | |
25897 | 12671 esac |
12672 done | |
12673 | |
40056 | 12674 # If the user did not use the arguments to specify the items to instantiate, |
12675 # then the envvar interface is used. Set only those that are not. | |
12676 # We use the long form for the default assignment because of an extremely | |
12677 # bizarre bug on SunOS 4.1.3. | |
12678 if $ac_need_defaults; then | |
12679 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12680 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
12681 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
12682 fi | |
12683 | |
12684 # Create a temporary directory, and hook for its removal unless debugging. | |
12685 $debug || | |
12686 { | |
12687 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
12688 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
12689 } | |
12690 | |
12691 # Create a (secure) tmp directory for tmp files. | |
12692 : ${TMPDIR=/tmp} | |
12693 { | |
12694 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
12695 test -n "$tmp" && test -d "$tmp" | |
12696 } || | |
12697 { | |
12698 tmp=$TMPDIR/cs$$-$RANDOM | |
12699 (umask 077 && mkdir $tmp) | |
12700 } || | |
12701 { | |
12702 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
12703 { (exit 1); exit 1; } | |
12704 } | |
12705 | |
12706 EOF | |
12707 | |
12708 cat >>$CONFIG_STATUS <<EOF | |
12709 | |
12710 # | |
12711 # CONFIG_FILES section. | |
12712 # | |
12713 | |
12714 # No need to generate the scripts if there are no CONFIG_FILES. | |
12715 # This happens for instance when ./config.status config.h | |
12716 if test -n "\$CONFIG_FILES"; then | |
12717 # Protect against being on the right side of a sed subst in config.status. | |
12718 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
12719 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
12720 s,@SHELL@,$SHELL,;t t | |
12721 s,@exec_prefix@,$exec_prefix,;t t | |
12722 s,@prefix@,$prefix,;t t | |
12723 s,@program_transform_name@,$program_transform_name,;t t | |
12724 s,@bindir@,$bindir,;t t | |
12725 s,@sbindir@,$sbindir,;t t | |
12726 s,@libexecdir@,$libexecdir,;t t | |
12727 s,@datadir@,$datadir,;t t | |
12728 s,@sysconfdir@,$sysconfdir,;t t | |
12729 s,@sharedstatedir@,$sharedstatedir,;t t | |
12730 s,@localstatedir@,$localstatedir,;t t | |
12731 s,@libdir@,$libdir,;t t | |
12732 s,@includedir@,$includedir,;t t | |
12733 s,@oldincludedir@,$oldincludedir,;t t | |
12734 s,@infodir@,$infodir,;t t | |
12735 s,@mandir@,$mandir,;t t | |
12736 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
12737 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
12738 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
12739 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
12740 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
12741 s,@build_alias@,$build_alias,;t t | |
12742 s,@host_alias@,$host_alias,;t t | |
12743 s,@target_alias@,$target_alias,;t t | |
12744 s,@ECHO_C@,$ECHO_C,;t t | |
12745 s,@ECHO_N@,$ECHO_N,;t t | |
12746 s,@ECHO_T@,$ECHO_T,;t t | |
12747 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
12748 s,@DEFS@,$DEFS,;t t | |
12749 s,@LIBS@,$LIBS,;t t | |
12750 s,@build@,$build,;t t | |
12751 s,@build_cpu@,$build_cpu,;t t | |
12752 s,@build_vendor@,$build_vendor,;t t | |
12753 s,@build_os@,$build_os,;t t | |
12754 s,@host@,$host,;t t | |
12755 s,@host_cpu@,$host_cpu,;t t | |
12756 s,@host_vendor@,$host_vendor,;t t | |
12757 s,@host_os@,$host_os,;t t | |
12758 s,@CC@,$CC,;t t | |
12759 s,@CFLAGS@,$CFLAGS,;t t | |
12760 s,@LDFLAGS@,$LDFLAGS,;t t | |
12761 s,@CPPFLAGS@,$CPPFLAGS,;t t | |
12762 s,@ac_ct_CC@,$ac_ct_CC,;t t | |
12763 s,@EXEEXT@,$EXEEXT,;t t | |
12764 s,@OBJEXT@,$OBJEXT,;t t | |
12765 s,@LN_S@,$LN_S,;t t | |
12766 s,@CPP@,$CPP,;t t | |
12767 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
12768 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
12769 s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
12770 s,@YACC@,$YACC,;t t | |
12771 s,@RANLIB@,$RANLIB,;t t | |
12772 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
12773 s,@LIBSOUND@,$LIBSOUND,;t t | |
12774 s,@SET_MAKE@,$SET_MAKE,;t t | |
12775 s,@ALLOCA@,$ALLOCA,;t t | |
12776 s,@liblockfile@,$liblockfile,;t t | |
12777 s,@LIBOBJS@,$LIBOBJS,;t t | |
12778 s,@NEED_SETGID@,$NEED_SETGID,;t t | |
12779 s,@KMEM_GROUP@,$KMEM_GROUP,;t t | |
12780 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t | |
12781 s,@version@,$version,;t t | |
12782 s,@configuration@,$configuration,;t t | |
12783 s,@canonical@,$canonical,;t t | |
12784 s,@srcdir@,$srcdir,;t t | |
12785 s,@lispdir@,$lispdir,;t t | |
12786 s,@locallisppath@,$locallisppath,;t t | |
12787 s,@lisppath@,$lisppath,;t t | |
12788 s,@x_default_search_path@,$x_default_search_path,;t t | |
12789 s,@etcdir@,$etcdir,;t t | |
12790 s,@archlibdir@,$archlibdir,;t t | |
12791 s,@docdir@,$docdir,;t t | |
12792 s,@bitmapdir@,$bitmapdir,;t t | |
12793 s,@c_switch_system@,$c_switch_system,;t t | |
12794 s,@c_switch_machine@,$c_switch_machine,;t t | |
12795 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t | |
12796 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t | |
12797 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t | |
12798 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t | |
12799 s,@machfile@,$machfile,;t t | |
12800 s,@opsysfile@,$opsysfile,;t t | |
25897 | 12801 CEOF |
40056 | 12802 |
12803 EOF | |
12804 | |
12805 cat >>$CONFIG_STATUS <<\EOF | |
12806 # Split the substitutions into bite-sized pieces for seds with | |
12807 # small command number limits, like on Digital OSF/1 and HP-UX. | |
12808 ac_max_sed_lines=48 | |
12809 ac_sed_frag=1 # Number of current file. | |
12810 ac_beg=1 # First line for current file. | |
12811 ac_end=$ac_max_sed_lines # Line after last line for current file. | |
12812 ac_more_lines=: | |
12813 ac_sed_cmds= | |
12814 while $ac_more_lines; do | |
12815 if test $ac_beg -gt 1; then | |
12816 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
25897 | 12817 else |
40056 | 12818 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
12819 fi | |
12820 if test ! -s $tmp/subs.frag; then | |
12821 ac_more_lines=false | |
12822 else | |
12823 # The purpose of the label and of the branching condition is to | |
12824 # speed up the sed processing (if there are no `@' at all, there | |
12825 # is no need to browse any of the substitutions). | |
12826 # These are the two extra sed commands mentioned above. | |
12827 (echo ':t | |
12828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
12829 if test -z "$ac_sed_cmds"; then | |
12830 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
12831 else | |
12832 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
12833 fi | |
12834 ac_sed_frag=`expr $ac_sed_frag + 1` | |
12835 ac_beg=$ac_end | |
12836 ac_end=`expr $ac_end + $ac_max_sed_lines` | |
25897 | 12837 fi |
40056 | 12838 done |
12839 if test -z "$ac_sed_cmds"; then | |
12840 ac_sed_cmds=cat | |
12841 fi | |
12842 fi # test -n "$CONFIG_FILES" | |
12843 | |
12844 EOF | |
12845 cat >>$CONFIG_STATUS <<\EOF | |
12846 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
25897 | 12847 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
40056 | 12848 case $ac_file in |
12849 - | *:- | *:-:* ) # input from stdin | |
12850 cat >$tmp/stdin | |
12851 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12852 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12853 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12854 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12855 * ) ac_file_in=$ac_file.in ;; | |
25897 | 12856 esac |
12857 | |
40056 | 12858 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
12859 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12860 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12861 X"$ac_file" : 'X\(//\)$' \| \ | |
12862 X"$ac_file" : 'X\(/\)' \| \ | |
12863 . : '\(.\)' 2>/dev/null || | |
12864 echo X"$ac_file" | | |
12865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12866 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12867 /^X\(\/\/\)$/{ s//\1/; q; } | |
12868 /^X\(\/\).*/{ s//\1/; q; } | |
12869 s/.*/./; q'` | |
25897 | 12870 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
40056 | 12871 { case "$ac_dir" in |
12872 [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
12873 *) as_incr_dir=.;; | |
12874 esac | |
12875 as_dummy="$ac_dir" | |
12876 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
12877 case $as_mkdir_dir in | |
12878 # Skip DOS drivespec | |
12879 ?:) as_incr_dir=$as_mkdir_dir ;; | |
12880 *) | |
12881 as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
12882 test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
12883 ;; | |
12884 esac | |
12885 done; } | |
12886 | |
12887 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | |
25897 | 12888 # A "../" for each directory in $ac_dir_suffix. |
40056 | 12889 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
25897 | 12890 else |
12891 ac_dir_suffix= ac_dots= | |
12892 fi | |
12893 | |
40056 | 12894 case $srcdir in |
12895 .) ac_srcdir=. | |
12896 if test -z "$ac_dots"; then | |
12897 ac_top_srcdir=. | |
12898 else | |
12899 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | |
12900 fi ;; | |
12901 [\\/]* | ?:[\\/]* ) | |
12902 ac_srcdir=$srcdir$ac_dir_suffix; | |
12903 ac_top_srcdir=$srcdir ;; | |
25897 | 12904 *) # Relative path. |
40056 | 12905 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
12906 ac_top_srcdir=$ac_dots$srcdir ;; | |
25897 | 12907 esac |
12908 | |
40056 | 12909 case $INSTALL in |
12910 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
12911 *) ac_INSTALL=$ac_dots$INSTALL ;; | |
25897 | 12912 esac |
12913 | |
40056 | 12914 if test x"$ac_file" != x-; then |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12915 { echo "$as_me:12915: creating $ac_file" >&5 |
40056 | 12916 echo "$as_me: creating $ac_file" >&6;} |
12917 rm -f "$ac_file" | |
12918 fi | |
12919 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12920 # use $as_me), people would be surprised to read: | |
12921 # /* config.h. Generated automatically by config.status. */ | |
12922 configure_input="Generated automatically from `echo $ac_file_in | | |
12923 sed 's,.*/,,'` by configure." | |
12924 | |
12925 # First look for the input files in the build tree, otherwise in the | |
12926 # src tree. | |
12927 ac_file_inputs=`IFS=: | |
12928 for f in $ac_file_in; do | |
12929 case $f in | |
12930 -) echo $tmp/stdin ;; | |
12931 [\\/$]*) | |
12932 # Absolute (can't be DOS-style, as IFS=:) | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12933 test -f "$f" || { { echo "$as_me:12933: error: cannot find input file: $f" >&5 |
40056 | 12934 echo "$as_me: error: cannot find input file: $f" >&2;} |
12935 { (exit 1); exit 1; }; } | |
12936 echo $f;; | |
12937 *) # Relative | |
12938 if test -f "$f"; then | |
12939 # Build tree | |
12940 echo $f | |
12941 elif test -f "$srcdir/$f"; then | |
12942 # Source tree | |
12943 echo $srcdir/$f | |
12944 else | |
12945 # /dev/null tree | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12946 { { echo "$as_me:12946: error: cannot find input file: $f" >&5 |
40056 | 12947 echo "$as_me: error: cannot find input file: $f" >&2;} |
12948 { (exit 1); exit 1; }; } | |
12949 fi;; | |
12950 esac | |
12951 done` || { (exit 1); exit 1; } | |
12952 EOF | |
12953 cat >>$CONFIG_STATUS <<EOF | |
12954 sed "$ac_vpsub | |
12955 $extrasub | |
12956 EOF | |
12957 cat >>$CONFIG_STATUS <<\EOF | |
12958 :t | |
12959 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12960 s,@configure_input@,$configure_input,;t t | |
12961 s,@srcdir@,$ac_srcdir,;t t | |
12962 s,@top_srcdir@,$ac_top_srcdir,;t t | |
12963 s,@INSTALL@,$ac_INSTALL,;t t | |
12964 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
12965 rm -f $tmp/stdin | |
12966 if test x"$ac_file" != x-; then | |
12967 mv $tmp/out $ac_file | |
12968 else | |
12969 cat $tmp/out | |
12970 rm -f $tmp/out | |
12971 fi | |
12972 | |
12973 done | |
12974 EOF | |
12975 cat >>$CONFIG_STATUS <<\EOF | |
12976 | |
12977 # | |
12978 # CONFIG_HEADER section. | |
12979 # | |
25897 | 12980 |
12981 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
12982 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
12983 # | |
12984 # ac_d sets the value in "#define NAME VALUE" lines. | |
40056 | 12985 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
12986 ac_dB='[ ].*$,\1#\2' | |
12987 ac_dC=' ' | |
12988 ac_dD=',;t' | |
12989 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
12990 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
12991 ac_uB='$,\1#\2define\3' | |
25897 | 12992 ac_uC=' ' |
40056 | 12993 ac_uD=',;t' |
12994 | |
12995 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
25897 | 12996 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
40056 | 12997 case $ac_file in |
12998 - | *:- | *:-:* ) # input from stdin | |
12999 cat >$tmp/stdin | |
13000 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13001 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13002 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13003 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13004 * ) ac_file_in=$ac_file.in ;; | |
25897 | 13005 esac |
13006 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13007 test x"$ac_file" != x- && { echo "$as_me:13007: creating $ac_file" >&5 |
40056 | 13008 echo "$as_me: creating $ac_file" >&6;} |
13009 | |
13010 # First look for the input files in the build tree, otherwise in the | |
13011 # src tree. | |
13012 ac_file_inputs=`IFS=: | |
13013 for f in $ac_file_in; do | |
13014 case $f in | |
13015 -) echo $tmp/stdin ;; | |
13016 [\\/$]*) | |
13017 # Absolute (can't be DOS-style, as IFS=:) | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13018 test -f "$f" || { { echo "$as_me:13018: error: cannot find input file: $f" >&5 |
40056 | 13019 echo "$as_me: error: cannot find input file: $f" >&2;} |
13020 { (exit 1); exit 1; }; } | |
13021 echo $f;; | |
13022 *) # Relative | |
13023 if test -f "$f"; then | |
13024 # Build tree | |
13025 echo $f | |
13026 elif test -f "$srcdir/$f"; then | |
13027 # Source tree | |
13028 echo $srcdir/$f | |
13029 else | |
13030 # /dev/null tree | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13031 { { echo "$as_me:13031: error: cannot find input file: $f" >&5 |
40056 | 13032 echo "$as_me: error: cannot find input file: $f" >&2;} |
13033 { (exit 1); exit 1; }; } | |
13034 fi;; | |
13035 esac | |
13036 done` || { (exit 1); exit 1; } | |
13037 # Remove the trailing spaces. | |
13038 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
13039 | |
13040 EOF | |
13041 | |
13042 # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
13043 # `conftest.undefs', that substitutes the proper values into | |
13044 # config.h.in to produce config.h. The first handles `#define' | |
13045 # templates, and the second `#undef' templates. | |
13046 # And first: Protect against being on the right side of a sed subst in | |
13047 # config.status. Protect against being in an unquoted here document | |
13048 # in config.status. | |
13049 rm -f conftest.defines conftest.undefs | |
13050 # Using a here document instead of a string reduces the quoting nightmare. | |
13051 # Putting comments in sed scripts is not portable. | |
13052 # | |
13053 # `end' is used to avoid that the second main sed command (meant for | |
13054 # 0-ary CPP macros) applies to n-ary macro definitions. | |
13055 # See the Autoconf documentation for `clear'. | |
13056 cat >confdef2sed.sed <<\EOF | |
13057 s/[\\&,]/\\&/g | |
13058 s,[\\$`],\\&,g | |
13059 t clear | |
13060 : clear | |
13061 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp | |
13062 t end | |
13063 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
13064 : end | |
13065 EOF | |
13066 # If some macros were called several times there might be several times | |
13067 # the same #defines, which is useless. Nevertheless, we may not want to | |
13068 # sort them, since we want the *last* AC-DEFINE to be honored. | |
13069 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
13070 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
13071 rm -f confdef2sed.sed | |
25897 | 13072 |
13073 # This sed command replaces #undef with comments. This is necessary, for | |
13074 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
13075 # on some systems where configure will not decide to define it. | |
40056 | 13076 cat >>conftest.undefs <<\EOF |
13077 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
13078 EOF | |
13079 | |
13080 # Break up conftest.defines because some shells have a limit on the size | |
13081 # of here documents, and old seds have small limits too (100 cmds). | |
13082 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
13083 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
13084 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
13085 echo ' :' >>$CONFIG_STATUS | |
25897 | 13086 rm -f conftest.tail |
40056 | 13087 while grep . conftest.defines >/dev/null |
25897 | 13088 do |
40056 | 13089 # Write a limited-size here document to $tmp/defines.sed. |
13090 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
13091 # Speed up: don't consider the non `#define' lines. | |
13092 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
13093 # Work around the forget-to-reset-the-flag bug. | |
13094 echo 't clr' >>$CONFIG_STATUS | |
13095 echo ': clr' >>$CONFIG_STATUS | |
13096 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
25897 | 13097 echo 'CEOF |
40056 | 13098 sed -f $tmp/defines.sed $tmp/in >$tmp/out |
13099 rm -f $tmp/in | |
13100 mv $tmp/out $tmp/in | |
13101 ' >>$CONFIG_STATUS | |
13102 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
13103 rm -f conftest.defines | |
13104 mv conftest.tail conftest.defines | |
13105 done | |
13106 rm -f conftest.defines | |
13107 echo ' fi # egrep' >>$CONFIG_STATUS | |
13108 echo >>$CONFIG_STATUS | |
13109 | |
13110 # Break up conftest.undefs because some shells have a limit on the size | |
13111 # of here documents, and old seds have small limits too (100 cmds). | |
13112 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
13113 rm -f conftest.tail | |
13114 while grep . conftest.undefs >/dev/null | |
13115 do | |
13116 # Write a limited-size here document to $tmp/undefs.sed. | |
13117 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
13118 # Speed up: don't consider the non `#undef' | |
13119 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
13120 # Work around the forget-to-reset-the-flag bug. | |
13121 echo 't clr' >>$CONFIG_STATUS | |
13122 echo ': clr' >>$CONFIG_STATUS | |
13123 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
13124 echo 'CEOF | |
13125 sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
13126 rm -f $tmp/in | |
13127 mv $tmp/out $tmp/in | |
13128 ' >>$CONFIG_STATUS | |
13129 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
13130 rm -f conftest.undefs | |
13131 mv conftest.tail conftest.undefs | |
25897 | 13132 done |
40056 | 13133 rm -f conftest.undefs |
13134 | |
13135 cat >>$CONFIG_STATUS <<\EOF | |
13136 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13137 # use $as_me), people would be surprised to read: | |
13138 # /* config.h. Generated automatically by config.status. */ | |
13139 if test x"$ac_file" = x-; then | |
13140 echo "/* Generated automatically by configure. */" >$tmp/config.h | |
25897 | 13141 else |
40056 | 13142 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
13143 fi | |
13144 cat $tmp/in >>$tmp/config.h | |
13145 rm -f $tmp/in | |
13146 if test x"$ac_file" != x-; then | |
13147 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13148 { echo "$as_me:13148: $ac_file is unchanged" >&5 |
40056 | 13149 echo "$as_me: $ac_file is unchanged" >&6;} |
13150 else | |
13151 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13152 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13153 X"$ac_file" : 'X\(//\)$' \| \ | |
13154 X"$ac_file" : 'X\(/\)' \| \ | |
13155 . : '\(.\)' 2>/dev/null || | |
13156 echo X"$ac_file" | | |
13157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13158 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13159 /^X\(\/\/\)$/{ s//\1/; q; } | |
13160 /^X\(\/\).*/{ s//\1/; q; } | |
13161 s/.*/./; q'` | |
25897 | 13162 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
40056 | 13163 { case "$ac_dir" in |
13164 [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
13165 *) as_incr_dir=.;; | |
13166 esac | |
13167 as_dummy="$ac_dir" | |
13168 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
13169 case $as_mkdir_dir in | |
13170 # Skip DOS drivespec | |
13171 ?:) as_incr_dir=$as_mkdir_dir ;; | |
13172 *) | |
13173 as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
13174 test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
13175 ;; | |
13176 esac | |
13177 done; } | |
13178 | |
13179 fi | |
13180 rm -f $ac_file | |
13181 mv $tmp/config.h $ac_file | |
25897 | 13182 fi |
40056 | 13183 else |
13184 cat $tmp/config.h | |
13185 rm -f $tmp/config.h | |
13186 fi | |
13187 done | |
13188 EOF | |
13189 cat >>$CONFIG_STATUS <<\EOF | |
13190 | |
13191 # | |
13192 # CONFIG_COMMANDS section. | |
13193 # | |
13194 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
13195 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
13196 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13197 | |
13198 case $ac_dest in | |
13199 default ) | |
25897 | 13200 |
13201 ### Make the necessary directories, if they don't exist. | |
13202 for dir in etc lisp ; do | |
13203 test -d ${dir} || mkdir ${dir} | |
13204 done | |
13205 | |
13206 # Build src/Makefile from ${srcdir}/src/Makefile.c | |
13207 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
13208 # This must be done after src/config.h is built, since we rely on that file. | |
13209 | |
13210 # Now get this: Some word that is part of the ${srcdir} directory name | |
13211 # or the ${configuration} value might, just might, happen to be an | |
13212 # identifier like `sun4' or `i386' or something, and be predefined by | |
13213 # the C preprocessor to some helpful value like 1, or maybe the empty | |
13214 # string. Needless to say consequent macro substitutions are less | |
13215 # than conducive to the makefile finding the correct directory. | |
13216 undefs="`echo $top_srcdir $configuration $canonical | | |
13217 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
13218 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
13219 `" | |
13220 | |
13221 echo creating src/epaths.h | |
40256 | 13222 ${MAKE-make} epaths-force |
25897 | 13223 |
33652 | 13224 # As of 2000-11-19, newest development versions of GNU cpp preprocess |
13225 # `..' to `. .' unless invoked with -traditional | |
13226 | |
36354 | 13227 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
33652 | 13228 CPPFLAGS="$CPPFLAGS -traditional" |
13229 fi | |
13230 | |
25897 | 13231 echo creating lib-src/Makefile |
13232 ( cd lib-src | |
13233 rm -f junk.c junk1.c junk2.c | |
13234 sed -e '/start of cpp stuff/q' \ | |
13235 < Makefile.c > junk1.c | |
13236 sed -e '1,/start of cpp stuff/d'\ | |
39239 | 13237 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
25897 | 13238 < Makefile.c > junk.c |
40056 | 13239 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
25897 | 13240 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
13241 cat junk1.c junk2.c > Makefile.new | |
13242 rm -f junk.c junk1.c junk2.c | |
13243 chmod 444 Makefile.new | |
13244 mv -f Makefile.new Makefile | |
13245 ) | |
13246 | |
13247 echo creating src/Makefile | |
13248 ( cd src | |
13249 rm -f junk.c junk1.c junk2.c | |
13250 sed -e '/start of cpp stuff/q' \ | |
13251 < Makefile.c > junk1.c | |
13252 sed -e '1,/start of cpp stuff/d'\ | |
39239 | 13253 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
25897 | 13254 < Makefile.c > junk.c |
40056 | 13255 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
25897 | 13256 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
13257 cat junk1.c junk2.c > Makefile.new | |
13258 rm -f junk.c junk1.c junk2.c | |
13259 chmod 444 Makefile.new | |
13260 mv -f Makefile.new Makefile | |
13261 ) | |
13262 | |
40056 | 13263 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
25897 | 13264 echo creating src/.gdbinit |
40056 | 13265 echo source $srcdir/src/.gdbinit > src/.gdbinit |
25897 | 13266 fi |
13267 | |
13268 # This is how we know whether to re-run configure in certain cases. | |
13269 touch src/config.stamp | |
13270 | |
40056 | 13271 ;; |
13272 esac | |
13273 done | |
13274 EOF | |
13275 | |
13276 cat >>$CONFIG_STATUS <<\EOF | |
13277 | |
13278 { (exit 0); exit 0; } | |
25897 | 13279 EOF |
13280 chmod +x $CONFIG_STATUS | |
40056 | 13281 ac_clean_files=$ac_clean_files_save |
13282 | |
13283 # configure is writing to config.log, and then calls config.status. | |
13284 # config.status does its own redirection, appending to config.log. | |
13285 # Unfortunately, on DOS this fails, as config.log is still kept open | |
13286 # by configure, so config.status won't be able to write to it; its | |
13287 # output is simply discarded. So we exec the FD to /dev/null, | |
13288 # effectively closing config.log, so it can be properly (re)opened and | |
13289 # appended to by config.status. When coming back to configure, we | |
13290 # need to make the FD available again. | |
13291 if test "$no_create" != yes; then | |
13292 ac_cs_success=: | |
13293 exec 5>/dev/null | |
13294 $SHELL $CONFIG_STATUS || ac_cs_success=false | |
13295 exec 5>>config.log | |
13296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13297 # would make configure fail if this is the last instruction. | |
13298 $ac_cs_success || { (exit 1); exit 1; } | |
13299 fi | |
13300 |