Mercurial > emacs
annotate configure @ 44022:17bf646199a1
(LIBS): Add $(WSOCK32). From David Ponce <dponce@voila.fr>.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Tue, 19 Mar 2002 12:01:09 +0000 |
parents | 54ecf0606394 |
children | 343a3a52107d |
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 # |
43721 | 5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
40056 | 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 | |
41100 | 657 Program names: |
658 --program-prefix=PREFIX prepend PREFIX to installed program names | |
659 --program-suffix=SUFFIX append SUFFIX to installed program names | |
660 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
661 | |
40056 | 662 X features: |
663 --x-includes=DIR X include files are in DIR | |
664 --x-libraries=DIR X library files are in DIR | |
665 | |
666 System types: | |
667 --build=BUILD configure for building on BUILD [guessed] | |
668 --host=HOST build programs to run on HOST [BUILD] | |
669 EOF | |
670 fi | |
671 | |
672 if test -n "$ac_init_help"; then | |
673 | |
674 cat <<\EOF | |
675 | |
676 Optional Features: | |
677 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
678 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
679 --disable-largefile omit support for large files | |
680 | |
681 Optional Packages: | |
682 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
683 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
684 --without-gcc don't use GCC to compile Emacs if GCC is found | |
685 --without-pop don't support POP mail retrieval with movemail | |
686 --with-kerberos support Kerberos-authenticated POP | |
687 --with-kerberos5 support Kerberos version 5 authenticated POP | |
688 --with-hesiod support Hesiod to get the POP server host | |
689 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no) | |
690 --with-xpm use -lXpm for displaying XPM images | |
691 --with-jpeg use -ljpeg for displaying JPEG images | |
692 --with-tiff use -ltiff for displaying TIFF images | |
693 --with-gif use -lungif for displaying GIF images | |
694 --with-png use -lpng for displaying PNG images | |
695 --without-toolkit-scroll-bars | |
40632 | 696 don't use Motif or Xaw3d scroll bars |
697 --without-xim don't use X11 XIM | |
40056 | 698 --with-x use the X Window System |
699 | |
700 Some influential environment variables: | |
701 CC C compiler command | |
702 CFLAGS C compiler flags | |
703 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
704 nonstandard directory <lib dir> | |
705 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
706 headers in a nonstandard directory <include dir> | |
707 CPP C preprocessor | |
708 | |
709 Use these variables to override the choices made by `configure' or to help | |
710 it to find libraries and programs with nonstandard names/locations. | |
711 | |
712 EOF | |
713 fi | |
714 | |
715 if test "$ac_init_help" = "recursive"; then | |
716 # If there are subdirs, report their specific --help. | |
717 ac_popdir=`pwd` | |
718 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | |
719 cd $ac_subdir | |
720 # A "../" for each directory in /$ac_subdir. | |
721 ac_dots=`echo $ac_subdir | | |
722 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
723 | |
724 case $srcdir in | |
725 .) # No --srcdir option. We are building in place. | |
726 ac_sub_srcdir=$srcdir ;; | |
727 [\\/]* | ?:[\\/]* ) # Absolute path. | |
728 ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
729 *) # Relative path. | |
730 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
731 esac | |
732 | |
733 # Check for guested configure; otherwise get Cygnus style configure. | |
734 if test -f $ac_sub_srcdir/configure.gnu; then | |
735 echo | |
736 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | |
737 elif test -f $ac_sub_srcdir/configure; then | |
738 echo | |
739 $SHELL $ac_sub_srcdir/configure --help=recursive | |
740 elif test -f $ac_sub_srcdir/configure.ac || | |
741 test -f $ac_sub_srcdir/configure.in; then | |
742 echo | |
743 $ac_configure --help | |
744 else | |
745 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 | |
746 fi | |
747 cd $ac_popdir | |
748 done | |
749 fi | |
750 | |
751 test -n "$ac_init_help" && exit 0 | |
752 if $ac_init_version; then | |
753 cat <<\EOF | |
754 | |
755 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
756 Free Software Foundation, Inc. | |
757 This configure script is free software; the Free Software Foundation | |
758 gives unlimited permission to copy, distribute and modify it. | |
759 EOF | |
760 exit 0 | |
761 fi | |
762 exec 5>config.log | |
763 cat >&5 <<EOF | |
764 This file contains any messages produced by compilers while | |
765 running configure, to aid debugging if configure makes a mistake. | |
766 | |
767 It was created by $as_me, which was | |
768 generated by GNU Autoconf 2.52. Invocation command line was | |
769 | |
770 $ $0 $@ | |
771 | |
772 EOF | |
773 { | |
774 cat <<_ASUNAME | |
775 ## ---------- ## | |
776 ## Platform. ## | |
777 ## ---------- ## | |
778 | |
779 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
780 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
781 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
782 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
783 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
784 | |
785 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
786 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
787 | |
788 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
789 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
790 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
791 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
792 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
793 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
794 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
795 | |
796 PATH = $PATH | |
797 | |
798 _ASUNAME | |
799 } >&5 | |
800 | |
801 cat >&5 <<EOF | |
802 ## ------------ ## | |
803 ## Core tests. ## | |
804 ## ------------ ## | |
805 | |
806 EOF | |
807 | |
808 # Keep a trace of the command line. | |
809 # Strip out --no-create and --no-recursion so they do not pile up. | |
810 # Also quote any args containing shell meta-characters. | |
811 ac_configure_args= | |
812 ac_sep= | |
813 for ac_arg | |
814 do | |
815 case $ac_arg in | |
816 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
817 | --no-cr | --no-c) ;; | |
818 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
819 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
820 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
821 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
822 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
823 ac_sep=" " ;; | |
824 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
825 ac_sep=" " ;; | |
826 esac | |
827 # Get rid of the leading space. | |
828 done | |
829 | |
830 # When interrupted or exit'd, cleanup temporary files, and complete | |
831 # config.log. We remove comments because anyway the quotes in there | |
832 # would cause problems or look ugly. | |
833 trap 'exit_status=$? | |
834 # Save into config.log some information that might help in debugging. | |
835 echo >&5 | |
836 echo "## ----------------- ##" >&5 | |
837 echo "## Cache variables. ##" >&5 | |
838 echo "## ----------------- ##" >&5 | |
839 echo >&5 | |
840 # The following way of writing the cache mishandles newlines in values, | |
841 { | |
842 (set) 2>&1 | | |
843 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
844 *ac_space=\ *) | |
845 sed -n \ | |
846 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
848 ;; | |
849 *) | |
850 sed -n \ | |
851 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
852 ;; | |
853 esac; | |
854 } >&5 | |
855 sed "/^$/d" confdefs.h >conftest.log | |
856 if test -s conftest.log; then | |
857 echo >&5 | |
858 echo "## ------------ ##" >&5 | |
859 echo "## confdefs.h. ##" >&5 | |
860 echo "## ------------ ##" >&5 | |
861 echo >&5 | |
862 cat conftest.log >&5 | |
863 fi | |
864 (echo; echo) >&5 | |
865 test "$ac_signal" != 0 && | |
866 echo "$as_me: caught signal $ac_signal" >&5 | |
867 echo "$as_me: exit $exit_status" >&5 | |
868 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | |
869 exit $exit_status | |
870 ' 0 | |
871 for ac_signal in 1 2 13 15; do | |
872 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
873 done | |
874 ac_signal=0 | |
875 | |
876 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
877 rm -rf conftest* confdefs.h | |
878 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
879 echo >confdefs.h | |
880 | |
881 # Let the site file select an alternate cache file if it wants to. | |
25897 | 882 # Prefer explicitly selected file to automatically selected ones. |
883 if test -z "$CONFIG_SITE"; then | |
884 if test "x$prefix" != xNONE; then | |
885 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
886 else | |
887 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
888 fi | |
889 fi | |
890 for ac_site_file in $CONFIG_SITE; do | |
891 if test -r "$ac_site_file"; then | |
41100 | 892 { echo "$as_me:892: loading site script $ac_site_file" >&5 |
40056 | 893 echo "$as_me: loading site script $ac_site_file" >&6;} |
894 cat "$ac_site_file" >&5 | |
25897 | 895 . "$ac_site_file" |
896 fi | |
897 done | |
898 | |
899 if test -r "$cache_file"; then | |
40056 | 900 # Some versions of bash will fail to source /dev/null (special |
901 # files actually), so we avoid doing that. | |
902 if test -f "$cache_file"; then | |
41100 | 903 { echo "$as_me:903: loading cache $cache_file" >&5 |
40056 | 904 echo "$as_me: loading cache $cache_file" >&6;} |
905 case $cache_file in | |
906 [\\/]* | ?:[\\/]* ) . $cache_file;; | |
907 *) . ./$cache_file;; | |
908 esac | |
909 fi | |
910 else | |
41100 | 911 { echo "$as_me:911: creating cache $cache_file" >&5 |
40056 | 912 echo "$as_me: creating cache $cache_file" >&6;} |
913 >$cache_file | |
914 fi | |
915 | |
916 # Check that the precious variables saved in the cache have kept the same | |
917 # value. | |
918 ac_cache_corrupted=false | |
919 for ac_var in `(set) 2>&1 | | |
920 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
921 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
922 eval ac_new_set=\$ac_env_${ac_var}_set | |
923 eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
924 eval ac_new_val="\$ac_env_${ac_var}_value" | |
925 case $ac_old_set,$ac_new_set in | |
926 set,) | |
41100 | 927 { echo "$as_me:927: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
40056 | 928 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
929 ac_cache_corrupted=: ;; | |
930 ,set) | |
41100 | 931 { echo "$as_me:931: error: \`$ac_var' was not set in the previous run" >&5 |
40056 | 932 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
933 ac_cache_corrupted=: ;; | |
934 ,);; | |
935 *) | |
936 if test "x$ac_old_val" != "x$ac_new_val"; then | |
41100 | 937 { echo "$as_me:937: error: \`$ac_var' has changed since the previous run:" >&5 |
40056 | 938 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
41100 | 939 { echo "$as_me:939: former value: $ac_old_val" >&5 |
40056 | 940 echo "$as_me: former value: $ac_old_val" >&2;} |
41100 | 941 { echo "$as_me:941: current value: $ac_new_val" >&5 |
40056 | 942 echo "$as_me: current value: $ac_new_val" >&2;} |
943 ac_cache_corrupted=: | |
944 fi;; | |
945 esac | |
946 # Pass precious variables to config.status. It doesn't matter if | |
947 # we pass some twice (in addition to the command line arguments). | |
948 if test "$ac_new_set" = set; then | |
949 case $ac_new_val in | |
950 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
951 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` | |
952 ac_configure_args="$ac_configure_args '$ac_arg'" | |
953 ;; | |
954 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" | |
955 ;; | |
956 esac | |
957 fi | |
958 done | |
959 if $ac_cache_corrupted; then | |
41100 | 960 { echo "$as_me:960: error: changes in the environment can compromise the build" >&5 |
40056 | 961 echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
41100 | 962 { { echo "$as_me:962: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
40056 | 963 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
964 { (exit 1); exit 1; }; } | |
25897 | 965 fi |
966 | |
967 ac_ext=c | |
968 ac_cpp='$CPP $CPPFLAGS' | |
40056 | 969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
971 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
972 | |
973 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
974 *c*,-n*) ECHO_N= ECHO_C=' | |
975 ' ECHO_T=' ' ;; | |
976 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
977 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
978 esac | |
979 echo "#! $SHELL" >conftest.sh | |
980 echo "exit 0" >>conftest.sh | |
981 chmod +x conftest.sh | |
41100 | 982 if { (echo "$as_me:982: PATH=\".;.\"; conftest.sh") >&5 |
40056 | 983 (PATH=".;."; conftest.sh) 2>&5 |
984 ac_status=$? | |
41100 | 985 echo "$as_me:985: \$? = $ac_status" >&5 |
40056 | 986 (exit $ac_status); }; then |
987 ac_path_separator=';' | |
988 else | |
989 ac_path_separator=: | |
990 fi | |
991 PATH_SEPARATOR="$ac_path_separator" | |
992 rm -f conftest.sh | |
993 | |
994 ac_config_headers="$ac_config_headers src/config.h:src/config.in" | |
25897 | 995 |
41100 | 996 test "$program_prefix" != NONE && |
997 program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
998 # Use a double $ so make ignores it. | |
999 test "$program_suffix" != NONE && | |
1000 program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1001 # Double any \ or $. echo might interpret backslashes. | |
1002 # By default was `s,x,x', remove it if useless. | |
1003 cat <<\_ACEOF >conftest.sed | |
1004 s/[\\$]/&&/g;s/;s,x,x,$// | |
1005 _ACEOF | |
1006 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1007 rm conftest.sed | |
1008 | |
25897 | 1009 lispdir='${datadir}/emacs/${version}/lisp' |
1010 locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
1011 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
1012 lisppath='${locallisppath}:${lispdir}' | |
1013 etcdir='${datadir}/emacs/${version}/etc' | |
1014 archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
1015 docdir='${datadir}/emacs/${version}/etc' | |
1016 | |
1017 # Check whether --with-gcc or --without-gcc was given. | |
1018 if test "${with_gcc+set}" = set; then | |
1019 withval="$with_gcc" | |
40056 | 1020 |
1021 fi; | |
25897 | 1022 |
1023 # Check whether --with-pop or --without-pop was given. | |
1024 if test "${with_pop+set}" = set; then | |
1025 withval="$with_pop" | |
25994 | 1026 if test "$withval" = yes; then |
40056 | 1027 cat >>confdefs.h <<\EOF |
25897 | 1028 #define MAIL_USE_POP 1 |
1029 EOF | |
1030 | |
25994 | 1031 else : |
1032 fi | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1033 else |
40056 | 1034 cat >>confdefs.h <<\EOF |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1035 #define MAIL_USE_POP 1 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1036 EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1037 |
40056 | 1038 fi; |
25897 | 1039 |
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
|
1040 # 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
|
1041 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
|
1042 withval="$with_kerberos" |
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 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
|
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 |
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
|
1049 # 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
|
1050 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
|
1051 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
|
1052 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
|
1053 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
|
1054 with_kerberos=yes |
40056 | 1055 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
|
1056 #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
|
1057 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
|
1058 |
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
|
1059 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
|
1060 fi |
40056 | 1061 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
|
1062 #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
|
1063 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
|
1064 |
40056 | 1065 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
|
1066 |
25897 | 1067 # Check whether --with-hesiod or --without-hesiod was given. |
1068 if test "${with_hesiod+set}" = set; then | |
1069 withval="$with_hesiod" | |
40056 | 1070 cat >>confdefs.h <<\EOF |
25897 | 1071 #define HESIOD 1 |
1072 EOF | |
1073 | |
40056 | 1074 fi; |
25897 | 1075 |
1076 # Check whether --with-x-toolkit or --without-x-toolkit was given. | |
1077 if test "${with_x_toolkit+set}" = set; then | |
1078 withval="$with_x_toolkit" | |
1079 case "${withval}" in | |
1080 y | ye | yes ) val=athena ;; | |
1081 n | no ) val=no ;; | |
1082 l | lu | luc | luci | lucid ) val=lucid ;; | |
1083 a | at | ath | athe | athen | athena ) val=athena ;; | |
1084 m | mo | mot | moti | motif ) val=motif ;; | |
1085 * ) | |
41100 | 1086 { { echo "$as_me:1086: error: \`--with-x-toolkit=$withval' is invalid\; |
25897 | 1087 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. |
40056 | 1088 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 |
1089 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; | |
1090 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | |
1091 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} | |
1092 { (exit 1); exit 1; }; } | |
25897 | 1093 ;; |
1094 esac | |
1095 with_x_toolkit=$val | |
1096 | |
40056 | 1097 fi; |
25897 | 1098 |
1099 # Check whether --with-xpm or --without-xpm was given. | |
1100 if test "${with_xpm+set}" = set; then | |
1101 withval="$with_xpm" | |
40056 | 1102 |
1103 fi; | |
25897 | 1104 |
1105 # Check whether --with-jpeg or --without-jpeg was given. | |
1106 if test "${with_jpeg+set}" = set; then | |
1107 withval="$with_jpeg" | |
40056 | 1108 |
1109 fi; | |
25897 | 1110 |
1111 # Check whether --with-tiff or --without-tiff was given. | |
1112 if test "${with_tiff+set}" = set; then | |
1113 withval="$with_tiff" | |
40056 | 1114 |
1115 fi; | |
25897 | 1116 |
1117 # Check whether --with-gif or --without-gif was given. | |
1118 if test "${with_gif+set}" = set; then | |
1119 withval="$with_gif" | |
40056 | 1120 |
1121 fi; | |
25897 | 1122 |
1123 # Check whether --with-png or --without-png was given. | |
1124 if test "${with_png+set}" = set; then | |
1125 withval="$with_png" | |
40056 | 1126 |
1127 fi; | |
25897 | 1128 |
1129 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. | |
1130 if test "${with_toolkit_scroll_bars+set}" = set; then | |
1131 withval="$with_toolkit_scroll_bars" | |
40056 | 1132 |
1133 fi; | |
25897 | 1134 |
29949 | 1135 # Check whether --with-xim or --without-xim was given. |
1136 if test "${with_xim+set}" = set; then | |
1137 withval="$with_xim" | |
40056 | 1138 |
1139 fi; | |
25897 | 1140 |
1141 #### Make srcdir absolute, if it isn't already. It's important to | |
31153 | 1142 #### avoid running the path through pwd unnecessarily, since pwd can |
25897 | 1143 #### give you automounter prefixes, which can go away. We do all this |
1144 #### so Emacs can find its files when run uninstalled. | |
31153 | 1145 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
1146 unset CDPATH | |
25897 | 1147 case "${srcdir}" in |
1148 /* ) ;; | |
1149 . ) | |
1150 ## We may be able to use the $PWD environment variable to make this | |
1151 ## absolute. But sometimes PWD is inaccurate. | |
43721 | 1152 ## Note: we used to use ${PWD} at the end instead of `pwd`, |
1153 ## but that tested only for a well-formed and valid PWD, | |
1154 ## it did not object when PWD was well-formed and valid but just wrong. | |
1155 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | |
25897 | 1156 then |
1157 srcdir="$PWD" | |
1158 else | |
1159 srcdir="`(cd ${srcdir}; pwd)`" | |
1160 fi | |
1161 ;; | |
1162 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
1163 esac | |
1164 | |
1165 #### Check if the source directory already has a configured system in it. | |
1166 if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
1167 && test -f "${srcdir}/src/config.h" ; then | |
43721 | 1168 { echo "$as_me:1168: WARNING: The directory tree \`${srcdir}' is being used |
25897 | 1169 as a build directory right now; it has been configured in its own |
1170 right. To configure in another directory as well, you MUST | |
1171 use GNU make. If you do not have GNU make, then you must | |
1172 now do \`make distclean' in ${srcdir}, | |
40056 | 1173 and then run $0 again." >&5 |
1174 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
1175 as a build directory right now; it has been configured in its own | |
1176 right. To configure in another directory as well, you MUST | |
1177 use GNU make. If you do not have GNU make, then you must | |
1178 now do \`make distclean' in ${srcdir}, | |
1179 and then run $0 again." >&2;} | |
25897 | 1180 |
1181 extrasub='/^VPATH[ ]*=/c\ | |
1182 vpath %.c $(srcdir)\ | |
1183 vpath %.h $(srcdir)\ | |
1184 vpath %.y $(srcdir)\ | |
1185 vpath %.l $(srcdir)\ | |
1186 vpath %.s $(srcdir)\ | |
1187 vpath %.in $(srcdir)\ | |
1188 vpath %.texi $(srcdir)' | |
1189 fi | |
1190 | |
1191 #### Given the configuration name, set machfile and opsysfile to the | |
1192 #### names of the m/*.h and s/*.h files we should use. | |
1193 | |
1194 ### Canonicalize the configuration name. | |
1195 | |
1196 ac_aux_dir= | |
1197 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1198 if test -f $ac_dir/install-sh; then | |
1199 ac_aux_dir=$ac_dir | |
1200 ac_install_sh="$ac_aux_dir/install-sh -c" | |
1201 break | |
1202 elif test -f $ac_dir/install.sh; then | |
1203 ac_aux_dir=$ac_dir | |
1204 ac_install_sh="$ac_aux_dir/install.sh -c" | |
1205 break | |
40056 | 1206 elif test -f $ac_dir/shtool; then |
1207 ac_aux_dir=$ac_dir | |
1208 ac_install_sh="$ac_aux_dir/shtool install -c" | |
1209 break | |
25897 | 1210 fi |
1211 done | |
1212 if test -z "$ac_aux_dir"; then | |
43721 | 1213 { { echo "$as_me:1213: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
40056 | 1214 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1215 { (exit 1); exit 1; }; } | |
1216 fi | |
1217 ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1218 ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1219 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
25897 | 1220 |
1221 # Make sure we can run config.sub. | |
40056 | 1222 $ac_config_sub sun4 >/dev/null 2>&1 || |
43721 | 1223 { { echo "$as_me:1223: error: cannot run $ac_config_sub" >&5 |
40056 | 1224 echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1225 { (exit 1); exit 1; }; } | |
1226 | |
43721 | 1227 echo "$as_me:1227: checking build system type" >&5 |
40056 | 1228 echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1229 if test "${ac_cv_build+set}" = set; then | |
1230 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1231 else | |
1232 ac_cv_build_alias=$build_alias | |
1233 test -z "$ac_cv_build_alias" && | |
1234 ac_cv_build_alias=`$ac_config_guess` | |
1235 test -z "$ac_cv_build_alias" && | |
43721 | 1236 { { echo "$as_me:1236: error: cannot guess build type; you must specify one" >&5 |
40056 | 1237 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1238 { (exit 1); exit 1; }; } | |
1239 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
43721 | 1240 { { echo "$as_me:1240: error: $ac_config_sub $ac_cv_build_alias failed." >&5 |
40056 | 1241 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} |
1242 { (exit 1); exit 1; }; } | |
1243 | |
1244 fi | |
43721 | 1245 echo "$as_me:1245: result: $ac_cv_build" >&5 |
40056 | 1246 echo "${ECHO_T}$ac_cv_build" >&6 |
1247 build=$ac_cv_build | |
1248 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1249 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1250 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1251 | |
43721 | 1252 echo "$as_me:1252: checking host system type" >&5 |
40056 | 1253 echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1254 if test "${ac_cv_host+set}" = set; then | |
1255 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1256 else | |
1257 ac_cv_host_alias=$host_alias | |
1258 test -z "$ac_cv_host_alias" && | |
1259 ac_cv_host_alias=$ac_cv_build_alias | |
1260 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
43721 | 1261 { { echo "$as_me:1261: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
40056 | 1262 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1263 { (exit 1); exit 1; }; } | |
1264 | |
1265 fi | |
43721 | 1266 echo "$as_me:1266: result: $ac_cv_host" >&5 |
40056 | 1267 echo "${ECHO_T}$ac_cv_host" >&6 |
1268 host=$ac_cv_host | |
1269 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1270 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1271 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
25897 | 1272 |
1273 canonical=$host | |
40060 | 1274 configuration=${host_alias-$host} |
25897 | 1275 |
1276 ### If you add support for a new configuration, add code to this | |
1277 ### switch statement to recognize your configuration name and select | |
1278 ### the appropriate operating system and machine description files. | |
1279 | |
1280 ### You would hope that you could choose an m/*.h file pretty much | |
1281 ### based on the machine portion of the configuration name, and an s- | |
1282 ### file based on the operating system portion. However, it turns out | |
1283 ### that each m/*.h file is pretty manufacturer-specific - for | |
1284 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
1285 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
1286 ### machines. So we basically have to have a special case for each | |
1287 ### configuration name. | |
1288 ### | |
1289 ### As far as handling version numbers on operating systems is | |
1290 ### concerned, make sure things will fail in a fixable way. If | |
1291 ### /etc/MACHINES doesn't say anything about version numbers, be | |
1292 ### prepared to handle anything reasonably. If version numbers | |
1293 ### matter, be sure /etc/MACHINES says something about it. | |
1294 ### | |
1295 ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
1296 ### "System V Release 4"; he writes, "The old convention encouraged | |
1297 ### confusion between `system' and `release' levels'." | |
1298 | |
1299 machine='' opsys='' unported=no | |
1300 case "${canonical}" in | |
1301 | |
41675 | 1302 ## FreeBSD ports |
1303 *-*-freebsd* ) | |
1304 opsys=freebsd | |
1305 case "${canonical}" in | |
1306 alpha*-*-freebsd*) machine=alpha ;; | |
1307 i[3456]86-*-freebsd*) machine=intel386 ;; | |
1308 esac | |
1309 ;; | |
1310 | |
25897 | 1311 ## NetBSD ports |
1312 *-*-netbsd* ) | |
1313 opsys=netbsd | |
1314 case "${canonical}" in | |
1315 alpha*-*-netbsd*) machine=alpha ;; | |
1316 i[3456]86-*-netbsd*) machine=intel386 ;; | |
1317 m68k-*-netbsd*) | |
1318 # This is somewhat bogus. | |
1319 machine=hp9000s300 ;; | |
1320 powerpc-apple-netbsd*) machine=macppc ;; | |
1321 mips-*-netbsd*) machine=pmax ;; | |
27927 | 1322 mipsel-*-netbsd*) machine=pmax ;; |
25897 | 1323 ns32k-*-netbsd*) machine=ns32000 ;; |
28674 | 1324 powerpc-*-netbsd*) machine=macppc ;; |
32034 | 1325 sparc*-*-netbsd*) machine=sparc ;; |
25897 | 1326 vax-*-netbsd*) machine=vax ;; |
27927 | 1327 arm-*-netbsd*) machine=arm ;; |
25897 | 1328 esac |
1329 ;; | |
1330 | |
1331 ## OpenBSD ports | |
1332 *-*-openbsd* ) | |
1333 opsys=openbsd | |
1334 case "${canonical}" in | |
1335 alpha*-*-openbsd*) machine=alpha ;; | |
1336 i386-*-openbsd*) machine=intel386 ;; | |
1337 m68k-*-openbsd*) machine=hp9000s300 ;; | |
1338 mipsel-*-openbsd*) machine=pmax ;; | |
1339 ns32k-*-openbsd*) machine=ns32000 ;; | |
1340 sparc-*-openbsd*) machine=sparc ;; | |
1341 vax-*-openbsd*) machine=vax ;; | |
1342 esac | |
1343 ;; | |
1344 | |
1345 ## Acorn RISCiX: | |
1346 arm-acorn-riscix1.1* ) | |
1347 machine=acorn opsys=riscix1-1 | |
1348 ;; | |
1349 arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
1350 ## This name is riscix12 instead of riscix1.2 | |
1351 ## to avoid a file name conflict on MSDOS. | |
1352 machine=acorn opsys=riscix12 | |
1353 ;; | |
1354 | |
1355 ## BSDI ports | |
1356 *-*-bsdi* ) | |
1357 opsys=bsdi | |
1358 case "${canonical}" in | |
1359 i[345]86-*-bsdi*) machine=intel386 ;; | |
1360 sparc-*-bsdi*) machine=sparc ;; | |
33740 | 1361 powerpc-*-bsdi*) machine=macppc ;; |
25897 | 1362 esac |
1363 case "${canonical}" in | |
1364 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
1365 *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
1366 *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
1367 *-*-bsdi3* ) opsys=bsdos3 ;; | |
42988 | 1368 *-*-bsdi[45]* ) opsys=bsdos4 ;; |
25897 | 1369 esac |
1370 ;; | |
1371 | |
1372 ## Alliant machines | |
1373 ## Strictly speaking, we need the version of the alliant operating | |
1374 ## system to choose the right machine file, but currently the | |
1375 ## configuration name doesn't tell us enough to choose the right | |
1376 ## one; we need to give alliants their own operating system name to | |
1377 ## do this right. When someone cares, they can help us. | |
1378 fx80-alliant-* ) | |
1379 machine=alliant4 opsys=bsd4-2 | |
1380 ;; | |
1381 i860-alliant-* ) | |
1382 machine=alliant-2800 opsys=bsd4-3 | |
1383 ;; | |
1384 | |
1385 ## Alpha (DEC) machines. | |
1386 alpha*-dec-osf* ) | |
1387 machine=alpha opsys=osf1 | |
1388 # This is needed to find X11R6.1 libraries for certain tests. | |
1389 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
1390 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
34446 | 1391 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
1392 # due to non-traditional preprocessing with the current compiler | |
1393 # defaults. OSF 4 can also have that compiler version, and there | |
1394 # seems always to have been a usable /usr/bin/cpp. | |
1395 NON_GNU_CPP=/usr/bin/cpp | |
27883 | 1396 case "${canonical}" in |
31994 | 1397 alpha*-dec-osf[5-9]*) |
31229 | 1398 opsys=osf5-0 ;; |
27883 | 1399 esac |
25897 | 1400 ;; |
1401 | |
1402 alpha*-*-linux-gnu* ) | |
1403 machine=alpha opsys=gnu-linux | |
1404 ;; | |
1405 | |
27205 | 1406 arm*-*-linux-gnu* ) |
1407 machine=arm opsys=gnu-linux | |
1408 ;; | |
1409 | |
1410 ppc-*-linux | \ | |
1411 powerpc-*-linux* ) | |
33740 | 1412 machine=macppc opsys=gnu-linux |
27205 | 1413 ;; |
1414 | |
25897 | 1415 ## Altos 3068 |
1416 m68*-altos-sysv* ) | |
1417 machine=altos opsys=usg5-2 | |
1418 ;; | |
1419 | |
1420 ## Amdahl UTS | |
1421 580-amdahl-sysv* ) | |
1422 machine=amdahl opsys=usg5-2-2 | |
1423 ;; | |
1424 | |
1425 ## Apollo, Domain/OS | |
1426 m68*-apollo-* ) | |
1427 machine=apollo opsys=bsd4-3 | |
1428 ;; | |
1429 | |
1430 ## AT&T 3b2, 3b5, 3b15, 3b20 | |
1431 we32k-att-sysv* ) | |
1432 machine=att3b opsys=usg5-2-2 | |
1433 ;; | |
1434 | |
1435 ## AT&T 3b1 - The Mighty Unix PC! | |
1436 m68*-att-sysv* ) | |
1437 machine=7300 opsys=usg5-2-2 | |
1438 ;; | |
1439 | |
1440 ## Bull dpx20 | |
1441 rs6000-bull-bosx* ) | |
1442 machine=ibmrs6000 opsys=aix3-2 | |
1443 ;; | |
1444 | |
1445 ## Bull dpx2 | |
1446 m68*-bull-sysv3* ) | |
1447 machine=dpx2 opsys=usg5-3 | |
1448 ;; | |
1449 | |
1450 ## Bull sps7 | |
1451 m68*-bull-sysv2* ) | |
1452 machine=sps7 opsys=usg5-2 | |
1453 ;; | |
1454 | |
1455 ## CCI 5/32, 6/32 -- see "Tahoe". | |
1456 | |
1457 ## Celerity | |
1458 ## I don't know what configuration name to use for this; config.sub | |
1459 ## doesn't seem to know anything about it. Hey, Celerity users, get | |
1460 ## in touch with us! | |
1461 celerity-celerity-bsd* ) | |
1462 machine=celerity opsys=bsd4-2 | |
1463 ;; | |
1464 | |
1465 ## Clipper | |
1466 ## What operating systems does this chip run that Emacs has been | |
1467 ## tested on? | |
1468 clipper-* ) | |
1469 machine=clipper | |
1470 ## We'll use the catch-all code at the bottom to guess the | |
1471 ## operating system. | |
1472 ;; | |
1473 | |
43721 | 1474 ## Compaq Nonstop |
1475 mips-compaq-nonstopux* ) | |
1476 machine=nonstopux opsys=nonstopux | |
1477 ;; | |
1478 | |
25897 | 1479 ## Convex |
1480 *-convex-bsd* | *-convex-convexos* ) | |
1481 machine=convex opsys=bsd4-3 | |
1482 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
1483 NON_GNU_CPP="cc -E -P" | |
1484 ;; | |
1485 | |
1486 ## Cubix QBx/386 | |
1487 i[3456]86-cubix-sysv* ) | |
1488 machine=intel386 opsys=usg5-3 | |
1489 ;; | |
1490 | |
1491 ## Cydra 5 | |
1492 cydra*-cydrome-sysv* ) | |
1493 machine=cydra5 opsys=usg5-3 | |
1494 ;; | |
1495 | |
1496 ## Data General AViiON Machines | |
1497 ## DG changed naming conventions with the release of 5.4.4.10, they | |
1498 ## dropped the initial 5.4 but left the intervening R. Because of the | |
1499 ## R this shouldn't conflict with older versions of the OS (which I | |
1500 ## think were named like dgux4.*). In addition, DG new AViiONs series | |
1501 ## uses either Motorola M88k or Intel Pentium CPUs. | |
1502 m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
1503 machine=aviion opsys=dgux4 | |
1504 ;; | |
1505 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
1506 ## This name is dgux5-4-3 instead of dgux5-4r3 | |
1507 ## to avoid a file name conflict on MSDOS. | |
1508 machine=aviion opsys=dgux5-4-3 | |
1509 ;; | |
1510 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
1511 machine=aviion opsys=dgux5-4r2 | |
1512 ;; | |
1513 m88k-dg-dgux* ) | |
1514 machine=aviion opsys=dgux | |
1515 ;; | |
1516 | |
1517 ## Data General AViiON Intel (x86) Machines | |
1518 ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
1519 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
1520 i[345]86-dg-dguxR4* ) | |
1521 machine=aviion-intel opsys=dgux4 | |
1522 ;; | |
1523 | |
1524 ## DECstations | |
1525 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1526 machine=pmax opsys=bsd4-2 | |
1527 ;; | |
1528 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1529 machine=pmax opsys=bsd4-3 | |
1530 ;; | |
1531 mips-dec-ultrix* ) | |
1532 machine=pmax opsys=ultrix4-3 | |
1533 ;; | |
1534 mips-dec-osf* ) | |
1535 machine=pmax opsys=osf1 | |
1536 ;; | |
1537 mips-dec-mach_bsd4.3* ) | |
1538 machine=pmax opsys=mach-bsd4-3 | |
1539 ;; | |
1540 | |
1541 ## Motorola Delta machines | |
1542 m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1543 machine=delta opsys=usg5-3 | |
1544 if test -z "`type gnucc | grep 'not found'`" | |
1545 then | |
1546 if test -s /etc/167config | |
1547 then CC="gnucc -m68040" | |
1548 else CC="gnucc -m68881" | |
1549 fi | |
1550 else | |
1551 if test -z "`type gcc | grep 'not found'`" | |
1552 then CC=gcc | |
1553 else CC=cc | |
1554 fi | |
1555 fi | |
1556 ;; | |
1557 m88k-motorola-sysv4* ) | |
1558 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1559 # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1560 # I hope there are not other 4.0 versions for this machine | |
1561 # which really need usg5-4 instead. | |
1562 machine=delta88k opsys=usg5-4-2 | |
1563 ;; | |
1564 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1565 machine=delta88k opsys=usg5-3 | |
1566 ;; | |
1567 | |
1568 ## Dual machines | |
1569 m68*-dual-sysv* ) | |
1570 machine=dual opsys=usg5-2 | |
1571 ;; | |
1572 m68*-dual-uniplus* ) | |
1573 machine=dual opsys=unipl5-2 | |
1574 ;; | |
1575 | |
1576 ## Elxsi 6400 | |
1577 elxsi-elxsi-sysv* ) | |
1578 machine=elxsi opsys=usg5-2 | |
1579 ;; | |
1580 | |
1581 ## Encore machines | |
1582 ns16k-encore-bsd* ) | |
1583 machine=ns16000 opsys=umax | |
1584 ;; | |
1585 | |
30069 | 1586 ## The GEC 63 - apparently, this port isn't really finished yet. |
1587 # I'm sure we finished off the last of the machines, though. -- fx | |
25897 | 1588 |
1589 ## Gould Power Node and NP1 | |
1590 pn-gould-bsd4.2* ) | |
1591 machine=gould opsys=bsd4-2 | |
1592 ;; | |
1593 pn-gould-bsd4.3* ) | |
1594 machine=gould opsys=bsd4-3 | |
1595 ;; | |
1596 np1-gould-bsd* ) | |
1597 machine=gould-np1 opsys=bsd4-3 | |
1598 ;; | |
1599 | |
1600 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
1601 ## as far as Emacs is concerned). | |
1602 m88k-harris-cxux* ) | |
1603 # Build needs to be different on 7.0 and later releases | |
1604 case "`uname -r`" in | |
1605 [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
1606 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
1607 esac | |
1608 NON_GNU_CPP="/lib/cpp" | |
1609 ;; | |
1610 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
1611 m68k-harris-cxux* ) | |
1612 machine=nh3000 opsys=cxux | |
1613 ;; | |
1614 ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
1615 powerpc-harris-powerunix ) | |
1616 machine=nh6000 opsys=powerunix | |
1617 NON_GNU_CPP="cc -Xo -E -P" | |
1618 ;; | |
1619 ## SR2001/SR2201 running HI-UX/MPP | |
1620 hppa1.1-hitachi-hiuxmpp* ) | |
1621 machine=sr2k opsys=hiuxmpp | |
1622 ;; | |
38811 | 1623 hppa1.1-hitachi-hiuxwe2* ) |
1624 machine=sr2k opsys=hiuxwe2 | |
1625 ;; | |
25897 | 1626 ## Honeywell XPS100 |
1627 xps*-honeywell-sysv* ) | |
1628 machine=xps100 opsys=usg5-2 | |
1629 ;; | |
1630 | |
1631 ## HP 9000 series 200 or 300 | |
1632 m68*-hp-bsd* ) | |
1633 machine=hp9000s300 opsys=bsd4-3 | |
1634 ;; | |
1635 ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
1636 m68*-hp-hpux* ) | |
1637 case "`uname -r`" in | |
1638 ## Someone's system reports A.B8.05 for this. | |
1639 ## I wonder what other possibilities there are. | |
1640 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1641 *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1642 *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
1643 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
1644 *) machine=hp9000s300 opsys=hpux ;; | |
1645 esac | |
1646 ;; | |
1647 | |
1648 ## HP 9000 series 700 and 800, running HP/UX | |
1649 hppa*-hp-hpux7* ) | |
1650 machine=hp800 opsys=hpux | |
1651 ;; | |
1652 hppa*-hp-hpux8* ) | |
1653 machine=hp800 opsys=hpux8 | |
1654 ;; | |
1655 hppa*-hp-hpux9shr* ) | |
1656 machine=hp800 opsys=hpux9shr | |
1657 ;; | |
1658 hppa*-hp-hpux9* ) | |
1659 machine=hp800 opsys=hpux9 | |
1660 ;; | |
40632 | 1661 hppa*-hp-hpux10* ) |
25897 | 1662 machine=hp800 opsys=hpux10 |
1663 ;; | |
40632 | 1664 hppa*-hp-hpux1[1-9]* ) |
1665 machine=hp800 opsys=hpux11 | |
1666 ;; | |
25897 | 1667 |
41960 | 1668 hppa*-*-linux-gnu* ) |
1669 machine=hp800 opsys=gnu-linux | |
1670 ;; | |
1671 | |
25897 | 1672 ## HP 9000 series 700 and 800, running HP/UX |
1673 hppa*-hp-hpux* ) | |
1674 ## Cross-compilation? Nah! | |
1675 case "`uname -r`" in | |
1676 ## Someone's system reports A.B8.05 for this. | |
1677 ## I wonder what other possibilities there are. | |
1678 *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
1679 *.08.* ) machine=hp800 opsys=hpux8 ;; | |
1680 *.09.* ) machine=hp800 opsys=hpux9 ;; | |
1681 *) machine=hp800 opsys=hpux10 ;; | |
1682 esac | |
1683 ;; | |
1684 hppa*-*-nextstep* ) | |
1685 machine=hp800 opsys=nextstep | |
1686 ;; | |
1687 | |
1688 ## Orion machines | |
1689 orion-orion-bsd* ) | |
1690 machine=orion opsys=bsd4-2 | |
1691 ;; | |
1692 clipper-orion-bsd* ) | |
1693 machine=orion105 opsys=bsd4-2 | |
1694 ;; | |
1695 | |
1696 ## IBM machines | |
1697 i[3456]86-ibm-aix1.1* ) | |
1698 machine=ibmps2-aix opsys=usg5-2-2 | |
1699 ;; | |
1700 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
1701 machine=ibmps2-aix opsys=usg5-3 | |
1702 ;; | |
1703 i370-ibm-aix*) | |
1704 machine=ibm370aix opsys=usg5-3 | |
1705 ;; | |
40426 | 1706 s390-*-linux-gnu) |
1707 machine=ibms390 opsys=gnu-linux | |
1708 ;; | |
25897 | 1709 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
1710 machine=ibmrs6000 opsys=aix3-1 | |
1711 ;; | |
1712 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
1713 machine=ibmrs6000 opsys=aix3-2-5 | |
1714 ;; | |
1715 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
1716 machine=ibmrs6000 opsys=aix4-1 | |
1717 ;; | |
1718 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
1719 machine=ibmrs6000 opsys=aix4-2 | |
1720 ;; | |
43924 | 1721 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* ) |
1722 machine=ibmrs6000 opsys=aix4-2 | |
1723 ;; | |
25897 | 1724 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
1725 machine=ibmrs6000 opsys=aix4 | |
1726 ;; | |
1727 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
1728 machine=ibmrs6000 opsys=aix4-1 | |
1729 ;; | |
1730 rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
1731 machine=ibmrs6000 opsys=aix3-2 | |
1732 ;; | |
1733 romp-ibm-bsd4.3* ) | |
1734 machine=ibmrt opsys=bsd4-3 | |
1735 ;; | |
1736 romp-ibm-bsd4.2* ) | |
1737 machine=ibmrt opsys=bsd4-2 | |
1738 ;; | |
1739 romp-ibm-aos4.3* ) | |
1740 machine=ibmrt opsys=bsd4-3 | |
1741 ;; | |
1742 romp-ibm-aos4.2* ) | |
1743 machine=ibmrt opsys=bsd4-2 | |
1744 ;; | |
1745 romp-ibm-aos* ) | |
1746 machine=ibmrt opsys=bsd4-3 | |
1747 ;; | |
1748 romp-ibm-bsd* ) | |
1749 machine=ibmrt opsys=bsd4-3 | |
1750 ;; | |
1751 romp-ibm-aix* ) | |
1752 machine=ibmrt-aix opsys=usg5-2-2 | |
1753 ;; | |
1754 | |
1755 ## Integrated Solutions `Optimum V' | |
1756 m68*-isi-bsd4.2* ) | |
1757 machine=isi-ov opsys=bsd4-2 | |
1758 ;; | |
1759 m68*-isi-bsd4.3* ) | |
1760 machine=isi-ov opsys=bsd4-3 | |
1761 ;; | |
1762 | |
1763 ## Intel 386 machines where we do care about the manufacturer | |
1764 i[3456]86-intsys-sysv* ) | |
1765 machine=is386 opsys=usg5-2-2 | |
1766 ;; | |
1767 | |
1768 ## Prime EXL | |
1769 i[3456]86-prime-sysv* ) | |
1770 machine=i386 opsys=usg5-3 | |
1771 ;; | |
1772 | |
1773 ## Sequent Symmetry running Dynix | |
1774 i[3456]86-sequent-bsd* ) | |
1775 machine=symmetry opsys=bsd4-3 | |
1776 ;; | |
1777 | |
1778 ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
1779 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
1780 machine=sequent-ptx opsys=ptx4 | |
1781 NON_GNU_CPP=/lib/cpp | |
1782 ;; | |
1783 | |
1784 ## Sequent Symmetry running DYNIX/ptx | |
1785 ## Use the old cpp rather than the newer ANSI one. | |
1786 i[3456]86-sequent-ptx* ) | |
1787 machine=sequent-ptx opsys=ptx | |
1788 NON_GNU_CPP="/lib/cpp" | |
1789 ;; | |
1790 | |
1791 ## ncr machine running svr4.3. | |
1792 i[3456]86-ncr-sysv4.3 ) | |
1793 machine=ncr386 opsys=usg5-4-3 | |
1794 ;; | |
1795 | |
1796 ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
1797 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
1798 i[3456]86-ncr-sysv* ) | |
1799 machine=ncr386 opsys=usg5-4-2 | |
1800 ;; | |
1801 | |
1802 ## Intel Paragon OSF/1 | |
1803 i860-intel-osf1* ) | |
1804 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
1805 ;; | |
1806 | |
1807 ## Intel 860 | |
1808 i860-*-sysv4* ) | |
1809 machine=i860 opsys=usg5-4 | |
1810 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
1811 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
1812 ;; | |
1813 | |
28748 | 1814 ## Macintosh PowerPC |
1815 powerpc*-*-linux-gnu* ) | |
1816 machine=macppc opsys=gnu-linux | |
1817 ;; | |
1818 | |
25897 | 1819 ## Masscomp machines |
1820 m68*-masscomp-rtu* ) | |
1821 machine=masscomp opsys=rtu | |
1822 ;; | |
1823 | |
1824 ## Megatest machines | |
1825 m68*-megatest-bsd* ) | |
1826 machine=mega68 opsys=bsd4-2 | |
1827 ;; | |
1828 | |
1829 ## Workstations sold by MIPS | |
1830 ## This is not necessarily all workstations using the MIPS processor - | |
1831 ## Irises are produced by SGI, and DECstations by DEC. | |
1832 | |
1833 ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
1834 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
1835 ## it gives for choosing between the alternatives seems to be "Use | |
1836 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
1837 ## the BSD world." I'll assume that these are instructions for | |
1838 ## handling two odd situations, and that every other situation | |
1839 ## should use mips.h and usg5-2-2, they being listed first. | |
1840 mips-mips-usg* ) | |
1841 machine=mips4 | |
1842 ## Fall through to the general code at the bottom to decide on the OS. | |
1843 ;; | |
1844 mips-mips-riscos4* ) | |
1845 machine=mips4 opsys=bsd4-3 | |
1846 NON_GNU_CC="cc -systype bsd43" | |
1847 NON_GNU_CPP="cc -systype bsd43 -E" | |
1848 ;; | |
1849 mips-mips-riscos5* ) | |
1850 machine=mips4 opsys=riscos5 | |
1851 NON_GNU_CC="cc -systype bsd43" | |
1852 NON_GNU_CPP="cc -systype bsd43 -E" | |
1853 ;; | |
1854 mips-mips-bsd* ) | |
1855 machine=mips opsys=bsd4-3 | |
1856 ;; | |
1857 mips-mips-* ) | |
1858 machine=mips opsys=usg5-2-2 | |
1859 ;; | |
1860 | |
1861 ## NeXT | |
1862 m68*-next-* | m68k-*-nextstep* ) | |
1863 machine=m68k opsys=nextstep | |
1864 ;; | |
1865 | |
1866 ## The complete machine from National Semiconductor | |
1867 ns32k-ns-genix* ) | |
1868 machine=ns32000 opsys=usg5-2 | |
1869 ;; | |
1870 | |
1871 ## NCR machines | |
1872 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
1873 machine=tower32 opsys=usg5-2-2 | |
1874 ;; | |
1875 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
1876 machine=tower32v3 opsys=usg5-3 | |
1877 ;; | |
1878 | |
1879 ## NEC EWS4800 | |
1880 mips-nec-sysv4*) | |
1881 machine=ews4800 opsys=ux4800 | |
1882 ;; | |
1883 | |
1884 ## Nixdorf Targon 31 | |
1885 m68*-nixdorf-sysv* ) | |
1886 machine=targon31 opsys=usg5-2-2 | |
1887 ;; | |
1888 | |
1889 ## Nu (TI or LMI) | |
1890 m68*-nu-sysv* ) | |
1891 machine=nu opsys=usg5-2 | |
1892 ;; | |
1893 | |
1894 ## Plexus | |
1895 m68*-plexus-sysv* ) | |
1896 machine=plexus opsys=usg5-2 | |
1897 ;; | |
1898 | |
1899 ## PowerPC reference platform | |
1900 powerpcle-*-solaris2* ) | |
1901 machine=prep | |
1902 opsys=sol2-5 | |
1903 ;; | |
1904 | |
1905 ## Pyramid machines | |
1906 ## I don't really have any idea what sort of processor the Pyramid has, | |
1907 ## so I'm assuming it is its own architecture. | |
1908 pyramid-pyramid-bsd* ) | |
1909 machine=pyramid opsys=bsd4-2 | |
1910 ;; | |
1911 | |
1912 ## Sequent Balance | |
1913 ns32k-sequent-bsd4.2* ) | |
1914 machine=sequent opsys=bsd4-2 | |
1915 ;; | |
1916 ns32k-sequent-bsd4.3* ) | |
1917 machine=sequent opsys=bsd4-3 | |
1918 ;; | |
1919 | |
1920 ## Siemens Nixdorf | |
1921 mips-siemens-sysv* | mips-sni-sysv*) | |
1922 machine=mips-siemens opsys=usg5-4 | |
1923 NON_GNU_CC=/usr/ccs/bin/cc | |
1924 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1925 ;; | |
1926 | |
1927 ## Silicon Graphics machines | |
1928 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
1929 m68*-sgi-iris3.5* ) | |
1930 machine=irist opsys=iris3-5 | |
1931 ;; | |
1932 m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
1933 machine=irist opsys=iris3-6 | |
1934 ;; | |
1935 ## Iris 4D | |
1936 mips-sgi-irix3* ) | |
1937 machine=iris4d opsys=irix3-3 | |
1938 ;; | |
1939 mips-sgi-irix4* ) | |
1940 machine=iris4d opsys=irix4-0 | |
1941 ;; | |
1942 mips-sgi-irix6.5 ) | |
1943 machine=iris4d opsys=irix6-5 | |
26502 | 1944 # Without defining _LANGUAGE_C, things get masked out in the headers |
1945 # so that, for instance, grepping for `free' in stdlib.h fails and | |
1946 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
1947 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 1948 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
25897 | 1949 ;; |
1950 mips-sgi-irix6* ) | |
1951 machine=iris4d opsys=irix6-0 | |
27205 | 1952 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
26502 | 1953 # but presumably it does no harm. |
1954 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 1955 # -32 probably isn't necessary in later v.6s -- anyone know which? |
25897 | 1956 NON_GCC_TEST_OPTIONS=-32 |
1957 ;; | |
1958 mips-sgi-irix5.[01]* ) | |
1959 machine=iris4d opsys=irix5-0 | |
1960 ;; | |
1961 mips-sgi-irix5* | mips-sgi-irix* ) | |
1962 machine=iris4d opsys=irix5-2 | |
1963 ;; | |
1964 | |
1965 ## SONY machines | |
1966 m68*-sony-bsd4.2* ) | |
1967 machine=news opsys=bsd4-2 | |
1968 ;; | |
1969 m68*-sony-bsd4.3* ) | |
1970 machine=news opsys=bsd4-3 | |
1971 ;; | |
1972 m68*-sony-newsos3* | m68*-sony-news3*) | |
1973 machine=news opsys=bsd4-3 | |
1974 ;; | |
1975 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
1976 machine=news-risc opsys=bsd4-3 | |
1977 ;; | |
1978 mips-sony-newsos6* ) | |
1979 machine=news-r6 opsys=newsos6 | |
1980 ;; | |
1981 mips-sony-news* ) | |
1982 machine=news-risc opsys=newsos5 | |
1983 ;; | |
1984 | |
1985 ## Stride | |
1986 m68*-stride-sysv* ) | |
1987 machine=stride opsys=usg5-2 | |
1988 ;; | |
1989 | |
1990 ## Suns | |
1991 sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
1992 machine=sparc opsys=gnu-linux | |
1993 ;; | |
1994 | |
27949 | 1995 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
25897 | 1996 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
1997 | rs6000-*-solaris2*) | |
1998 case "${canonical}" in | |
1999 m68*-sunos1* ) machine=sun1 ;; | |
2000 m68*-sunos2* ) machine=sun2 ;; | |
2001 m68* ) machine=sun3 ;; | |
2002 i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
2003 i[3456]86-*-* ) machine=intel386 ;; | |
2004 powerpcle* ) machine=powerpcle ;; | |
2005 powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
2006 sparc* ) machine=sparc ;; | |
2007 * ) unported=yes ;; | |
2008 esac | |
2009 case "${canonical}" in | |
2010 ## The Sun386 didn't get past 4.0. | |
2011 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
2012 *-sunos4.0* ) opsys=sunos4-0 ;; | |
2013 *-sunos4.1.[3-9]*noshare ) | |
2014 ## This name is sunos413 instead of sunos4-1-3 | |
2015 ## to avoid a file name conflict on MSDOS. | |
2016 opsys=sunos413 | |
2017 NON_GNU_CPP=/usr/lib/cpp | |
2018 NON_GCC_TEST_OPTIONS=-Bstatic | |
2019 GCC_TEST_OPTIONS=-static | |
2020 ;; | |
2021 *-sunos4.1.[3-9]* | *-sunos4shr*) | |
2022 opsys=sunos4shr | |
2023 NON_GNU_CPP=/usr/lib/cpp | |
2024 ;; | |
2025 *-sunos4* | *-sunos ) | |
2026 opsys=sunos4-1 | |
2027 NON_GCC_TEST_OPTIONS=-Bstatic | |
2028 GCC_TEST_OPTIONS=-static | |
2029 ;; | |
2030 *-sunos5.3* | *-solaris2.3* ) | |
2031 opsys=sol2-3 | |
2032 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2033 ;; | |
2034 *-sunos5.4* | *-solaris2.4* ) | |
2035 opsys=sol2-4 | |
2036 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2037 RANLIB="ar -ts" | |
2038 ;; | |
2039 *-sunos5.5* | *-solaris2.5* ) | |
2040 opsys=sol2-5 | |
2041 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2042 RANLIB="ar -ts" | |
2043 ;; | |
2044 *-sunos5* | *-solaris* ) | |
2045 opsys=sol2-5 | |
2046 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2047 ;; | |
2048 * ) opsys=bsd4-2 ;; | |
2049 esac | |
2050 ## Watch out for a compiler that we know will not work. | |
2051 case "${canonical}" in | |
2052 *-solaris* | *-sunos5* ) | |
2053 if [ "x$CC" = x/usr/ucb/cc ]; then | |
2054 ## /usr/ucb/cc doesn't work; | |
2055 ## we should find some other compiler that does work. | |
2056 unset CC | |
2057 fi | |
2058 ;; | |
2059 *) ;; | |
2060 esac | |
2061 ;; | |
2062 sparc-*-nextstep* ) | |
2063 machine=sparc opsys=nextstep | |
2064 ;; | |
2065 | |
2066 ## Tadpole 68k | |
2067 m68*-tadpole-sysv* ) | |
2068 machine=tad68k opsys=usg5-3 | |
2069 ;; | |
2070 | |
2071 ## Tahoe machines | |
2072 tahoe-tahoe-bsd4.2* ) | |
2073 machine=tahoe opsys=bsd4-2 | |
2074 ;; | |
2075 tahoe-tahoe-bsd4.3* ) | |
2076 machine=tahoe opsys=bsd4-3 | |
2077 ;; | |
2078 | |
2079 ## Tandem Integrity S2 | |
2080 mips-tandem-sysv* ) | |
2081 machine=tandem-s2 opsys=usg5-3 | |
2082 ;; | |
2083 | |
2084 ## Tektronix XD88 | |
2085 m88k-tektronix-sysv3* ) | |
2086 machine=tekxd88 opsys=usg5-3 | |
2087 ;; | |
2088 | |
2089 ## Tektronix 16000 box (6130?) | |
2090 ns16k-tektronix-bsd* ) | |
2091 machine=ns16000 opsys=bsd4-2 | |
2092 ;; | |
2093 ## Tektronix 4300 | |
2094 ## src/m/tek4300.h hints that this is a m68k machine. | |
2095 m68*-tektronix-bsd* ) | |
2096 machine=tek4300 opsys=bsd4-3 | |
2097 ;; | |
2098 | |
2099 ## Titan P2 or P3 | |
2100 ## We seem to have lost the machine-description file titan.h! | |
2101 titan-titan-sysv* ) | |
2102 machine=titan opsys=usg5-3 | |
2103 ;; | |
2104 | |
2105 ## Ustation E30 (SS5E) | |
2106 m68*-unisys-uniplus* ) | |
2107 machine=ustation opsystem=unipl5-2 | |
2108 ;; | |
2109 | |
2110 ## Vaxen. | |
2111 vax-dec-* ) | |
2112 machine=vax | |
2113 case "${canonical}" in | |
2114 *-bsd4.1* ) opsys=bsd4-1 ;; | |
2115 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
2116 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
2117 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
2118 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
2119 *-vms* ) opsys=vms ;; | |
2120 * ) unported=yes | |
2121 esac | |
2122 ;; | |
2123 | |
2124 ## Whitechapel MG1 | |
2125 ns16k-whitechapel-* ) | |
2126 machine=mg1 | |
2127 ## We don't know what sort of OS runs on these; we'll let the | |
2128 ## operating system guessing code below try. | |
2129 ;; | |
2130 | |
2131 ## Wicat | |
2132 m68*-wicat-sysv* ) | |
2133 machine=wicat opsys=usg5-2 | |
2134 ;; | |
2135 | |
30576 | 2136 ## IA-64 |
2137 ia64*-*-linux* ) | |
2138 machine=ia64 opsys=gnu-linux | |
2139 ;; | |
2140 | |
25897 | 2141 ## Intel 386 machines where we don't care about the manufacturer |
2142 i[3456]86-*-* ) | |
2143 machine=intel386 | |
2144 case "${canonical}" in | |
29654 | 2145 *-lynxos* ) opsys=lynxos ;; |
25897 | 2146 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
2147 *-isc2.2* ) opsys=isc2-2 ;; | |
2148 *-isc4.0* ) opsys=isc4-0 ;; | |
2149 *-isc4.* ) opsys=isc4-1 | |
2150 GCC_TEST_OPTIONS=-posix | |
2151 NON_GCC_TEST_OPTIONS=-Xp | |
2152 ;; | |
2153 *-isc* ) opsys=isc3-0 ;; | |
2154 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
2155 *-esix* ) opsys=esix ;; | |
2156 *-xenix* ) opsys=xenix ;; | |
2157 *-linux-gnu* ) opsys=gnu-linux ;; | |
2158 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
40056 | 2159 *-sco3.2v5* ) opsys=sco5 |
25897 | 2160 NON_GNU_CPP=/lib/cpp |
2161 # Prevent -belf from being passed to $CPP. | |
2162 # /lib/cpp does not accept it. | |
2163 OVERRIDE_CPPFLAGS=" " | |
2164 ;; | |
2165 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
2166 *-386bsd* ) opsys=386bsd ;; | |
2167 *-nextstep* ) opsys=nextstep ;; | |
2168 ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
2169 esac | |
2170 ;; | |
2171 | |
2172 ## m68k Linux-based GNU system | |
2173 m68k-*-linux-gnu* ) | |
2174 machine=m68k opsys=gnu-linux | |
2175 ;; | |
2176 | |
2177 ## Mips Linux-based GNU system | |
2178 mips-*-linux-gnu* ) | |
2179 machine=mips opsys=gnu-linux | |
2180 ;; | |
2181 | |
2182 ## UXP/DS | |
2183 sparc-fujitsu-sysv4* ) | |
2184 machine=sparc opsys=uxpds | |
2185 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2186 RANLIB="ar -ts" | |
2187 ;; | |
2188 | |
2189 ## UXP/V | |
2190 f301-fujitsu-uxpv4.1) | |
2191 machine=f301 opsys=uxpv | |
2192 ;; | |
2193 | |
2194 * ) | |
2195 unported=yes | |
2196 ;; | |
2197 esac | |
2198 | |
2199 ### If the code above didn't choose an operating system, just choose | |
2200 ### an operating system based on the configuration name. You really | |
2201 ### only want to use this when you have no idea what the right | |
2202 ### operating system is; if you know what operating systems a machine | |
2203 ### runs, it's cleaner to make it explicit in the case statement | |
2204 ### above. | |
2205 if test x"${opsys}" = x; then | |
2206 case "${canonical}" in | |
2207 *-gnu* ) opsys=gnu ;; | |
2208 *-bsd4.[01] ) opsys=bsd4-1 ;; | |
2209 *-bsd4.2 ) opsys=bsd4-2 ;; | |
2210 *-bsd4.3 ) opsys=bsd4-3 ;; | |
2211 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
2212 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
2213 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
2214 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
2215 *-sysv4.2uw* ) opsys=unixware ;; | |
2216 *-sysv4.1* | *-sysvr4.1* ) | |
2217 NON_GNU_CPP=/usr/lib/cpp | |
2218 opsys=usg5-4 ;; | |
2219 *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
2220 if [ x$NON_GNU_CPP = x ]; then | |
2221 if [ -f /usr/ccs/lib/cpp ]; then | |
2222 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2223 else | |
2224 NON_GNU_CPP=/lib/cpp | |
2225 fi | |
2226 fi | |
2227 opsys=usg5-4-2 ;; | |
2228 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
2229 * ) | |
2230 unported=yes | |
2231 ;; | |
2232 esac | |
2233 fi | |
2234 | |
2235 if test $unported = yes; then | |
43924 | 2236 { { echo "$as_me:2236: error: Emacs hasn't been ported to \`${canonical}' systems. |
40056 | 2237 Check \`etc/MACHINES' for recognized configuration names." >&5 |
2238 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
2239 Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
2240 { (exit 1); exit 1; }; } | |
25897 | 2241 fi |
2242 | |
2243 machfile="m/${machine}.h" | |
2244 opsysfile="s/${opsys}.h" | |
2245 | |
2246 #### Choose a compiler. | |
2247 test -n "$CC" && cc_specified=yes | |
2248 | |
2249 # Save the value of CFLAGS that the user specified. | |
2250 SPECIFIED_CFLAGS="$CFLAGS" | |
2251 | |
2252 case ${with_gcc} in | |
2253 "yes" ) CC="gcc" GCC=yes ;; | |
2254 "no" ) : ${CC=cc} ;; | |
40056 | 2255 * ) |
2256 esac | |
2257 ac_ext=c | |
2258 ac_cpp='$CPP $CPPFLAGS' | |
2259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2261 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2262 if test -n "$ac_tool_prefix"; then | |
2263 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2264 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
43924 | 2265 echo "$as_me:2265: checking for $ac_word" >&5 |
40056 | 2266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2267 if test "${ac_cv_prog_CC+set}" = set; then | |
2268 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2269 else | |
2270 if test -n "$CC"; then | |
2271 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2272 else | |
2273 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2274 ac_dummy="$PATH" | |
2275 for ac_dir in $ac_dummy; do | |
2276 IFS=$ac_save_IFS | |
2277 test -z "$ac_dir" && ac_dir=. | |
2278 $as_executable_p "$ac_dir/$ac_word" || continue | |
2279 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
43924 | 2280 echo "$as_me:2280: found $ac_dir/$ac_word" >&5 |
40056 | 2281 break |
2282 done | |
2283 | |
2284 fi | |
2285 fi | |
2286 CC=$ac_cv_prog_CC | |
2287 if test -n "$CC"; then | |
43924 | 2288 echo "$as_me:2288: result: $CC" >&5 |
40056 | 2289 echo "${ECHO_T}$CC" >&6 |
2290 else | |
43924 | 2291 echo "$as_me:2291: result: no" >&5 |
40056 | 2292 echo "${ECHO_T}no" >&6 |
2293 fi | |
2294 | |
2295 fi | |
2296 if test -z "$ac_cv_prog_CC"; then | |
2297 ac_ct_CC=$CC | |
2298 # Extract the first word of "gcc", so it can be a program name with args. | |
25897 | 2299 set dummy gcc; ac_word=$2 |
43924 | 2300 echo "$as_me:2300: checking for $ac_word" >&5 |
40056 | 2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2302 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2303 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2304 else | |
2305 if test -n "$ac_ct_CC"; then | |
2306 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2307 else | |
2308 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2309 ac_dummy="$PATH" | |
2310 for ac_dir in $ac_dummy; do | |
2311 IFS=$ac_save_IFS | |
2312 test -z "$ac_dir" && ac_dir=. | |
2313 $as_executable_p "$ac_dir/$ac_word" || continue | |
2314 ac_cv_prog_ac_ct_CC="gcc" | |
43924 | 2315 echo "$as_me:2315: found $ac_dir/$ac_word" >&5 |
40056 | 2316 break |
2317 done | |
2318 | |
2319 fi | |
2320 fi | |
2321 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2322 if test -n "$ac_ct_CC"; then | |
43924 | 2323 echo "$as_me:2323: result: $ac_ct_CC" >&5 |
40056 | 2324 echo "${ECHO_T}$ac_ct_CC" >&6 |
2325 else | |
43924 | 2326 echo "$as_me:2326: result: no" >&5 |
40056 | 2327 echo "${ECHO_T}no" >&6 |
2328 fi | |
2329 | |
2330 CC=$ac_ct_CC | |
2331 else | |
2332 CC="$ac_cv_prog_CC" | |
2333 fi | |
2334 | |
2335 if test -z "$CC"; then | |
2336 if test -n "$ac_tool_prefix"; then | |
2337 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2338 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
43924 | 2339 echo "$as_me:2339: checking for $ac_word" >&5 |
40056 | 2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2341 if test "${ac_cv_prog_CC+set}" = set; then | |
2342 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 2343 else |
2344 if test -n "$CC"; then | |
2345 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2346 else | |
40056 | 2347 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2348 ac_dummy="$PATH" | |
2349 for ac_dir in $ac_dummy; do | |
2350 IFS=$ac_save_IFS | |
2351 test -z "$ac_dir" && ac_dir=. | |
2352 $as_executable_p "$ac_dir/$ac_word" || continue | |
2353 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
43924 | 2354 echo "$as_me:2354: found $ac_dir/$ac_word" >&5 |
40056 | 2355 break |
2356 done | |
2357 | |
2358 fi | |
2359 fi | |
2360 CC=$ac_cv_prog_CC | |
25897 | 2361 if test -n "$CC"; then |
43924 | 2362 echo "$as_me:2362: result: $CC" >&5 |
40056 | 2363 echo "${ECHO_T}$CC" >&6 |
2364 else | |
43924 | 2365 echo "$as_me:2365: result: no" >&5 |
40056 | 2366 echo "${ECHO_T}no" >&6 |
2367 fi | |
2368 | |
2369 fi | |
2370 if test -z "$ac_cv_prog_CC"; then | |
2371 ac_ct_CC=$CC | |
2372 # Extract the first word of "cc", so it can be a program name with args. | |
2373 set dummy cc; ac_word=$2 | |
43924 | 2374 echo "$as_me:2374: checking for $ac_word" >&5 |
40056 | 2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2376 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2377 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2378 else | |
2379 if test -n "$ac_ct_CC"; then | |
2380 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2381 else | |
2382 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2383 ac_dummy="$PATH" | |
2384 for ac_dir in $ac_dummy; do | |
2385 IFS=$ac_save_IFS | |
2386 test -z "$ac_dir" && ac_dir=. | |
2387 $as_executable_p "$ac_dir/$ac_word" || continue | |
2388 ac_cv_prog_ac_ct_CC="cc" | |
43924 | 2389 echo "$as_me:2389: found $ac_dir/$ac_word" >&5 |
40056 | 2390 break |
2391 done | |
2392 | |
2393 fi | |
2394 fi | |
2395 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2396 if test -n "$ac_ct_CC"; then | |
43924 | 2397 echo "$as_me:2397: result: $ac_ct_CC" >&5 |
40056 | 2398 echo "${ECHO_T}$ac_ct_CC" >&6 |
2399 else | |
43924 | 2400 echo "$as_me:2400: result: no" >&5 |
40056 | 2401 echo "${ECHO_T}no" >&6 |
2402 fi | |
2403 | |
2404 CC=$ac_ct_CC | |
2405 else | |
2406 CC="$ac_cv_prog_CC" | |
2407 fi | |
2408 | |
2409 fi | |
25897 | 2410 if test -z "$CC"; then |
2411 # Extract the first word of "cc", so it can be a program name with args. | |
2412 set dummy cc; ac_word=$2 | |
43924 | 2413 echo "$as_me:2413: checking for $ac_word" >&5 |
40056 | 2414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2415 if test "${ac_cv_prog_CC+set}" = set; then | |
2416 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 2417 else |
2418 if test -n "$CC"; then | |
2419 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2420 else | |
2421 ac_prog_rejected=no | |
40056 | 2422 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2423 ac_dummy="$PATH" | |
2424 for ac_dir in $ac_dummy; do | |
2425 IFS=$ac_save_IFS | |
2426 test -z "$ac_dir" && ac_dir=. | |
2427 $as_executable_p "$ac_dir/$ac_word" || continue | |
2428 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
2429 ac_prog_rejected=yes | |
2430 continue | |
2431 fi | |
2432 ac_cv_prog_CC="cc" | |
43924 | 2433 echo "$as_me:2433: found $ac_dir/$ac_word" >&5 |
40056 | 2434 break |
2435 done | |
2436 | |
25897 | 2437 if test $ac_prog_rejected = yes; then |
2438 # We found a bogon in the path, so make sure we never use it. | |
2439 set dummy $ac_cv_prog_CC | |
2440 shift | |
40056 | 2441 if test $# != 0; then |
25897 | 2442 # We chose a different compiler from the bogus one. |
2443 # However, it has the same basename, so the bogon will be chosen | |
2444 # first if we set CC to just the basename; use the full file name. | |
2445 shift | |
40056 | 2446 set dummy "$ac_dir/$ac_word" ${1+"$@"} |
25897 | 2447 shift |
2448 ac_cv_prog_CC="$@" | |
2449 fi | |
2450 fi | |
2451 fi | |
2452 fi | |
40056 | 2453 CC=$ac_cv_prog_CC |
25897 | 2454 if test -n "$CC"; then |
43924 | 2455 echo "$as_me:2455: result: $CC" >&5 |
40056 | 2456 echo "${ECHO_T}$CC" >&6 |
2457 else | |
43924 | 2458 echo "$as_me:2458: result: no" >&5 |
40056 | 2459 echo "${ECHO_T}no" >&6 |
2460 fi | |
2461 | |
2462 fi | |
2463 if test -z "$CC"; then | |
2464 if test -n "$ac_tool_prefix"; then | |
2465 for ac_prog in cl | |
2466 do | |
2467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2468 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
43924 | 2469 echo "$as_me:2469: checking for $ac_word" >&5 |
40056 | 2470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2471 if test "${ac_cv_prog_CC+set}" = set; then | |
2472 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27205 | 2473 else |
2474 if test -n "$CC"; then | |
2475 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2476 else | |
40056 | 2477 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2478 ac_dummy="$PATH" | |
2479 for ac_dir in $ac_dummy; do | |
2480 IFS=$ac_save_IFS | |
2481 test -z "$ac_dir" && ac_dir=. | |
2482 $as_executable_p "$ac_dir/$ac_word" || continue | |
2483 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
43924 | 2484 echo "$as_me:2484: found $ac_dir/$ac_word" >&5 |
40056 | 2485 break |
2486 done | |
2487 | |
2488 fi | |
2489 fi | |
2490 CC=$ac_cv_prog_CC | |
27205 | 2491 if test -n "$CC"; then |
43924 | 2492 echo "$as_me:2492: result: $CC" >&5 |
40056 | 2493 echo "${ECHO_T}$CC" >&6 |
2494 else | |
43924 | 2495 echo "$as_me:2495: result: no" >&5 |
40056 | 2496 echo "${ECHO_T}no" >&6 |
2497 fi | |
2498 | |
2499 test -n "$CC" && break | |
2500 done | |
2501 fi | |
2502 if test -z "$CC"; then | |
2503 ac_ct_CC=$CC | |
2504 for ac_prog in cl | |
2505 do | |
2506 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2507 set dummy $ac_prog; ac_word=$2 | |
43924 | 2508 echo "$as_me:2508: checking for $ac_word" >&5 |
40056 | 2509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2510 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2511 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2512 else | |
2513 if test -n "$ac_ct_CC"; then | |
2514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2515 else | |
2516 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2517 ac_dummy="$PATH" | |
2518 for ac_dir in $ac_dummy; do | |
2519 IFS=$ac_save_IFS | |
2520 test -z "$ac_dir" && ac_dir=. | |
2521 $as_executable_p "$ac_dir/$ac_word" || continue | |
2522 ac_cv_prog_ac_ct_CC="$ac_prog" | |
43924 | 2523 echo "$as_me:2523: found $ac_dir/$ac_word" >&5 |
40056 | 2524 break |
2525 done | |
2526 | |
2527 fi | |
2528 fi | |
2529 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2530 if test -n "$ac_ct_CC"; then | |
43924 | 2531 echo "$as_me:2531: result: $ac_ct_CC" >&5 |
40056 | 2532 echo "${ECHO_T}$ac_ct_CC" >&6 |
2533 else | |
43924 | 2534 echo "$as_me:2534: result: no" >&5 |
40056 | 2535 echo "${ECHO_T}no" >&6 |
2536 fi | |
2537 | |
2538 test -n "$ac_ct_CC" && break | |
2539 done | |
2540 | |
2541 CC=$ac_ct_CC | |
2542 fi | |
2543 | |
2544 fi | |
2545 | |
43924 | 2546 test -z "$CC" && { { echo "$as_me:2546: error: no acceptable cc found in \$PATH" >&5 |
40056 | 2547 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
2548 { (exit 1); exit 1; }; } | |
2549 | |
2550 # Provide some information about the compiler. | |
43924 | 2551 echo "$as_me:2551:" \ |
40056 | 2552 "checking for C compiler version" >&5 |
2553 ac_compiler=`set X $ac_compile; echo $2` | |
43924 | 2554 { (eval echo "$as_me:2554: \"$ac_compiler --version </dev/null >&5\"") >&5 |
40056 | 2555 (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2556 ac_status=$? | |
43924 | 2557 echo "$as_me:2557: \$? = $ac_status" >&5 |
40056 | 2558 (exit $ac_status); } |
43924 | 2559 { (eval echo "$as_me:2559: \"$ac_compiler -v </dev/null >&5\"") >&5 |
40056 | 2560 (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2561 ac_status=$? | |
43924 | 2562 echo "$as_me:2562: \$? = $ac_status" >&5 |
40056 | 2563 (exit $ac_status); } |
43924 | 2564 { (eval echo "$as_me:2564: \"$ac_compiler -V </dev/null >&5\"") >&5 |
40056 | 2565 (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2566 ac_status=$? | |
43924 | 2567 echo "$as_me:2567: \$? = $ac_status" >&5 |
40056 | 2568 (exit $ac_status); } |
2569 | |
2570 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 2571 #line 2571 "configure" |
40056 | 2572 #include "confdefs.h" |
2573 | |
2574 int | |
2575 main () | |
2576 { | |
2577 | |
2578 ; | |
2579 return 0; | |
2580 } | |
2581 _ACEOF | |
2582 ac_clean_files_save=$ac_clean_files | |
2583 ac_clean_files="$ac_clean_files a.out a.exe" | |
2584 # Try to create an executable without -o first, disregard a.out. | |
2585 # It will help us diagnose broken compilers, and finding out an intuition | |
2586 # of exeext. | |
43924 | 2587 echo "$as_me:2587: checking for C compiler default output" >&5 |
40056 | 2588 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
2589 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
43924 | 2590 if { (eval echo "$as_me:2590: \"$ac_link_default\"") >&5 |
40056 | 2591 (eval $ac_link_default) 2>&5 |
2592 ac_status=$? | |
43924 | 2593 echo "$as_me:2593: \$? = $ac_status" >&5 |
40056 | 2594 (exit $ac_status); }; then |
2595 # Find the output, starting from the most likely. This scheme is | |
2596 # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2597 # resort. | |
2598 for ac_file in `ls a.exe conftest.exe 2>/dev/null; | |
2599 ls a.out conftest 2>/dev/null; | |
2600 ls a.* conftest.* 2>/dev/null`; do | |
2601 case $ac_file in | |
2602 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2603 a.out ) # We found the default executable, but exeext='' is most | |
2604 # certainly right. | |
2605 break;; | |
2606 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2607 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
2608 export ac_cv_exeext | |
2609 break;; | |
2610 * ) break;; | |
2611 esac | |
2612 done | |
2613 else | |
2614 echo "$as_me: failed program was:" >&5 | |
2615 cat conftest.$ac_ext >&5 | |
43924 | 2616 { { echo "$as_me:2616: error: C compiler cannot create executables" >&5 |
40056 | 2617 echo "$as_me: error: C compiler cannot create executables" >&2;} |
2618 { (exit 77); exit 77; }; } | |
2619 fi | |
2620 | |
2621 ac_exeext=$ac_cv_exeext | |
43924 | 2622 echo "$as_me:2622: result: $ac_file" >&5 |
40056 | 2623 echo "${ECHO_T}$ac_file" >&6 |
2624 | |
2625 # Check the compiler produces executables we can run. If not, either | |
2626 # the compiler is broken, or we cross compile. | |
43924 | 2627 echo "$as_me:2627: checking whether the C compiler works" >&5 |
40056 | 2628 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2629 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2630 # If not cross compiling, check that we can run a simple program. | |
2631 if test "$cross_compiling" != yes; then | |
2632 if { ac_try='./$ac_file' | |
43924 | 2633 { (eval echo "$as_me:2633: \"$ac_try\"") >&5 |
2634 (eval $ac_try) 2>&5 | |
2635 ac_status=$? | |
2636 echo "$as_me:2636: \$? = $ac_status" >&5 | |
40056 | 2637 (exit $ac_status); }; }; then |
2638 cross_compiling=no | |
25897 | 2639 else |
40056 | 2640 if test "$cross_compiling" = maybe; then |
2641 cross_compiling=yes | |
2642 else | |
43924 | 2643 { { echo "$as_me:2643: error: cannot run C compiled programs. |
40056 | 2644 If you meant to cross compile, use \`--host'." >&5 |
2645 echo "$as_me: error: cannot run C compiled programs. | |
2646 If you meant to cross compile, use \`--host'." >&2;} | |
2647 { (exit 1); exit 1; }; } | |
2648 fi | |
2649 fi | |
2650 fi | |
43924 | 2651 echo "$as_me:2651: result: yes" >&5 |
40056 | 2652 echo "${ECHO_T}yes" >&6 |
2653 | |
2654 rm -f a.out a.exe conftest$ac_cv_exeext | |
2655 ac_clean_files=$ac_clean_files_save | |
2656 # Check the compiler produces executables we can run. If not, either | |
2657 # the compiler is broken, or we cross compile. | |
43924 | 2658 echo "$as_me:2658: checking whether we are cross compiling" >&5 |
40056 | 2659 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
43924 | 2660 echo "$as_me:2660: result: $cross_compiling" >&5 |
40056 | 2661 echo "${ECHO_T}$cross_compiling" >&6 |
2662 | |
43924 | 2663 echo "$as_me:2663: checking for executable suffix" >&5 |
40056 | 2664 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
43924 | 2665 if { (eval echo "$as_me:2665: \"$ac_link\"") >&5 |
2666 (eval $ac_link) 2>&5 | |
2667 ac_status=$? | |
2668 echo "$as_me:2668: \$? = $ac_status" >&5 | |
40056 | 2669 (exit $ac_status); }; then |
2670 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2671 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2672 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2673 # `rm'. | |
2674 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
2675 case $ac_file in | |
2676 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2677 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2678 export ac_cv_exeext | |
2679 break;; | |
2680 * ) break;; | |
2681 esac | |
2682 done | |
2683 else | |
43924 | 2684 { { echo "$as_me:2684: error: cannot compute EXEEXT: cannot compile and link" >&5 |
40056 | 2685 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
2686 { (exit 1); exit 1; }; } | |
2687 fi | |
2688 | |
2689 rm -f conftest$ac_cv_exeext | |
43924 | 2690 echo "$as_me:2690: result: $ac_cv_exeext" >&5 |
40056 | 2691 echo "${ECHO_T}$ac_cv_exeext" >&6 |
2692 | |
2693 rm -f conftest.$ac_ext | |
2694 EXEEXT=$ac_cv_exeext | |
2695 ac_exeext=$EXEEXT | |
43924 | 2696 echo "$as_me:2696: checking for object suffix" >&5 |
40056 | 2697 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
2698 if test "${ac_cv_objext+set}" = set; then | |
2699 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2700 else | |
2701 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 2702 #line 2702 "configure" |
40056 | 2703 #include "confdefs.h" |
2704 | |
2705 int | |
2706 main () | |
2707 { | |
2708 | |
2709 ; | |
2710 return 0; | |
2711 } | |
2712 _ACEOF | |
2713 rm -f conftest.o conftest.obj | |
43924 | 2714 if { (eval echo "$as_me:2714: \"$ac_compile\"") >&5 |
40056 | 2715 (eval $ac_compile) 2>&5 |
2716 ac_status=$? | |
43924 | 2717 echo "$as_me:2717: \$? = $ac_status" >&5 |
40056 | 2718 (exit $ac_status); }; then |
2719 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2720 case $ac_file in | |
2721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2722 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2723 break;; | |
2724 esac | |
2725 done | |
2726 else | |
2727 echo "$as_me: failed program was:" >&5 | |
2728 cat conftest.$ac_ext >&5 | |
43924 | 2729 { { echo "$as_me:2729: error: cannot compute OBJEXT: cannot compile" >&5 |
40056 | 2730 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
2731 { (exit 1); exit 1; }; } | |
2732 fi | |
2733 | |
2734 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2735 fi | |
43924 | 2736 echo "$as_me:2736: result: $ac_cv_objext" >&5 |
40056 | 2737 echo "${ECHO_T}$ac_cv_objext" >&6 |
2738 OBJEXT=$ac_cv_objext | |
2739 ac_objext=$OBJEXT | |
43924 | 2740 echo "$as_me:2740: checking whether we are using the GNU C compiler" >&5 |
40056 | 2741 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2742 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2743 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2744 else | |
2745 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 2746 #line 2746 "configure" |
40056 | 2747 #include "confdefs.h" |
2748 | |
2749 int | |
2750 main () | |
2751 { | |
2752 #ifndef __GNUC__ | |
2753 choke me | |
2754 #endif | |
2755 | |
2756 ; | |
2757 return 0; | |
2758 } | |
2759 _ACEOF | |
2760 rm -f conftest.$ac_objext | |
43924 | 2761 if { (eval echo "$as_me:2761: \"$ac_compile\"") >&5 |
40056 | 2762 (eval $ac_compile) 2>&5 |
2763 ac_status=$? | |
43924 | 2764 echo "$as_me:2764: \$? = $ac_status" >&5 |
41148 | 2765 (exit $ac_status); } && |
2766 { ac_try='test -s conftest.$ac_objext' | |
43924 | 2767 { (eval echo "$as_me:2767: \"$ac_try\"") >&5 |
2768 (eval $ac_try) 2>&5 | |
2769 ac_status=$? | |
2770 echo "$as_me:2770: \$? = $ac_status" >&5 | |
40056 | 2771 (exit $ac_status); }; }; then |
2772 ac_compiler_gnu=yes | |
2773 else | |
2774 echo "$as_me: failed program was:" >&5 | |
2775 cat conftest.$ac_ext >&5 | |
2776 ac_compiler_gnu=no | |
2777 fi | |
2778 rm -f conftest.$ac_objext conftest.$ac_ext | |
2779 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2780 | |
2781 fi | |
43924 | 2782 echo "$as_me:2782: result: $ac_cv_c_compiler_gnu" >&5 |
40056 | 2783 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2784 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2785 ac_test_CFLAGS=${CFLAGS+set} | |
2786 ac_save_CFLAGS=$CFLAGS | |
2787 CFLAGS="-g" | |
43924 | 2788 echo "$as_me:2788: checking whether $CC accepts -g" >&5 |
40056 | 2789 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2790 if test "${ac_cv_prog_cc_g+set}" = set; then | |
2791 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2792 else | |
2793 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 2794 #line 2794 "configure" |
40056 | 2795 #include "confdefs.h" |
2796 | |
2797 int | |
2798 main () | |
2799 { | |
2800 | |
2801 ; | |
2802 return 0; | |
2803 } | |
2804 _ACEOF | |
2805 rm -f conftest.$ac_objext | |
43924 | 2806 if { (eval echo "$as_me:2806: \"$ac_compile\"") >&5 |
40056 | 2807 (eval $ac_compile) 2>&5 |
2808 ac_status=$? | |
43924 | 2809 echo "$as_me:2809: \$? = $ac_status" >&5 |
41148 | 2810 (exit $ac_status); } && |
2811 { ac_try='test -s conftest.$ac_objext' | |
43924 | 2812 { (eval echo "$as_me:2812: \"$ac_try\"") >&5 |
2813 (eval $ac_try) 2>&5 | |
2814 ac_status=$? | |
2815 echo "$as_me:2815: \$? = $ac_status" >&5 | |
40056 | 2816 (exit $ac_status); }; }; then |
25897 | 2817 ac_cv_prog_cc_g=yes |
2818 else | |
40056 | 2819 echo "$as_me: failed program was:" >&5 |
2820 cat conftest.$ac_ext >&5 | |
2821 ac_cv_prog_cc_g=no | |
2822 fi | |
2823 rm -f conftest.$ac_objext conftest.$ac_ext | |
2824 fi | |
43924 | 2825 echo "$as_me:2825: result: $ac_cv_prog_cc_g" >&5 |
40056 | 2826 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
27205 | 2827 if test "$ac_test_CFLAGS" = set; then |
40056 | 2828 CFLAGS=$ac_save_CFLAGS |
27205 | 2829 elif test $ac_cv_prog_cc_g = yes; then |
2830 if test "$GCC" = yes; then | |
25897 | 2831 CFLAGS="-g -O2" |
2832 else | |
27205 | 2833 CFLAGS="-g" |
25897 | 2834 fi |
2835 else | |
27205 | 2836 if test "$GCC" = yes; then |
2837 CFLAGS="-O2" | |
2838 else | |
2839 CFLAGS= | |
2840 fi | |
25897 | 2841 fi |
40056 | 2842 # Some people use a C++ compiler to compile C. Since we use `exit', |
2843 # in C++ we need to declare it. In case someone uses the same compiler | |
2844 # for both compiling C and C++ we need to have the C++ compiler decide | |
2845 # the declaration of exit, since it's the most demanding environment. | |
2846 cat >conftest.$ac_ext <<_ACEOF | |
2847 #ifndef __cplusplus | |
2848 choke me | |
2849 #endif | |
2850 _ACEOF | |
2851 rm -f conftest.$ac_objext | |
43924 | 2852 if { (eval echo "$as_me:2852: \"$ac_compile\"") >&5 |
40056 | 2853 (eval $ac_compile) 2>&5 |
2854 ac_status=$? | |
43924 | 2855 echo "$as_me:2855: \$? = $ac_status" >&5 |
41148 | 2856 (exit $ac_status); } && |
2857 { ac_try='test -s conftest.$ac_objext' | |
43924 | 2858 { (eval echo "$as_me:2858: \"$ac_try\"") >&5 |
2859 (eval $ac_try) 2>&5 | |
2860 ac_status=$? | |
2861 echo "$as_me:2861: \$? = $ac_status" >&5 | |
40056 | 2862 (exit $ac_status); }; }; then |
2863 for ac_declaration in \ | |
2864 ''\ | |
2865 '#include <stdlib.h>' \ | |
2866 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2867 'extern "C" void std::exit (int); using std::exit;' \ | |
2868 'extern "C" void exit (int) throw ();' \ | |
2869 'extern "C" void exit (int);' \ | |
2870 'void exit (int);' | |
2871 do | |
2872 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 2873 #line 2873 "configure" |
40056 | 2874 #include "confdefs.h" |
2875 #include <stdlib.h> | |
2876 $ac_declaration | |
2877 int | |
2878 main () | |
2879 { | |
2880 exit (42); | |
2881 ; | |
2882 return 0; | |
2883 } | |
2884 _ACEOF | |
2885 rm -f conftest.$ac_objext | |
43924 | 2886 if { (eval echo "$as_me:2886: \"$ac_compile\"") >&5 |
40056 | 2887 (eval $ac_compile) 2>&5 |
2888 ac_status=$? | |
43924 | 2889 echo "$as_me:2889: \$? = $ac_status" >&5 |
41148 | 2890 (exit $ac_status); } && |
2891 { ac_try='test -s conftest.$ac_objext' | |
43924 | 2892 { (eval echo "$as_me:2892: \"$ac_try\"") >&5 |
2893 (eval $ac_try) 2>&5 | |
2894 ac_status=$? | |
2895 echo "$as_me:2895: \$? = $ac_status" >&5 | |
40056 | 2896 (exit $ac_status); }; }; then |
2897 : | |
2898 else | |
2899 echo "$as_me: failed program was:" >&5 | |
2900 cat conftest.$ac_ext >&5 | |
2901 continue | |
2902 fi | |
2903 rm -f conftest.$ac_objext conftest.$ac_ext | |
2904 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 2905 #line 2905 "configure" |
40056 | 2906 #include "confdefs.h" |
2907 $ac_declaration | |
2908 int | |
2909 main () | |
2910 { | |
2911 exit (42); | |
2912 ; | |
2913 return 0; | |
2914 } | |
2915 _ACEOF | |
2916 rm -f conftest.$ac_objext | |
43924 | 2917 if { (eval echo "$as_me:2917: \"$ac_compile\"") >&5 |
40056 | 2918 (eval $ac_compile) 2>&5 |
2919 ac_status=$? | |
43924 | 2920 echo "$as_me:2920: \$? = $ac_status" >&5 |
41148 | 2921 (exit $ac_status); } && |
2922 { ac_try='test -s conftest.$ac_objext' | |
43924 | 2923 { (eval echo "$as_me:2923: \"$ac_try\"") >&5 |
2924 (eval $ac_try) 2>&5 | |
2925 ac_status=$? | |
2926 echo "$as_me:2926: \$? = $ac_status" >&5 | |
40056 | 2927 (exit $ac_status); }; }; then |
2928 break | |
2929 else | |
2930 echo "$as_me: failed program was:" >&5 | |
2931 cat conftest.$ac_ext >&5 | |
2932 fi | |
2933 rm -f conftest.$ac_objext conftest.$ac_ext | |
2934 done | |
2935 rm -f conftest* | |
2936 if test -n "$ac_declaration"; then | |
2937 echo '#ifdef __cplusplus' >>confdefs.h | |
2938 echo $ac_declaration >>confdefs.h | |
2939 echo '#endif' >>confdefs.h | |
2940 fi | |
2941 | |
2942 else | |
2943 echo "$as_me: failed program was:" >&5 | |
2944 cat conftest.$ac_ext >&5 | |
2945 fi | |
2946 rm -f conftest.$ac_objext conftest.$ac_ext | |
2947 ac_ext=c | |
2948 ac_cpp='$CPP $CPPFLAGS' | |
2949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2951 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25897 | 2952 |
2953 # On Suns, sometimes $CPP names a directory. | |
2954 if test -n "$CPP" && test -d "$CPP"; then | |
2955 CPP= | |
2956 fi | |
2957 | |
2958 #### Some systems specify a CPP to use unless we are using GCC. | |
2959 #### Now that we know whether we are using GCC, we can decide whether | |
2960 #### to use that one. | |
2961 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
2962 then | |
2963 CPP="$NON_GNU_CPP" | |
2964 fi | |
2965 | |
2966 #### Some systems specify a CC to use unless we are using GCC. | |
2967 #### Now that we know whether we are using GCC, we can decide whether | |
2968 #### to use that one. | |
2969 if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
2970 test x$cc_specified != xyes | |
2971 then | |
2972 CC="$NON_GNU_CC" | |
2973 fi | |
2974 | |
2975 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
2976 then | |
2977 CC="$CC $GCC_TEST_OPTIONS" | |
2978 fi | |
2979 | |
2980 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
2981 then | |
2982 CC="$CC $NON_GCC_TEST_OPTIONS" | |
2983 fi | |
2984 | |
2985 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x | |
2986 then | |
2987 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
2988 fi | |
2989 | |
2990 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
2991 then | |
2992 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
2993 fi | |
2994 | |
2995 #### Some other nice autoconf tests. If you add a test here which | |
2996 #### should make an entry in src/config.h, don't forget to add an | |
2997 #### #undef clause to src/config.h.in for autoconf to modify. | |
2998 | |
43924 | 2999 echo "$as_me:2999: checking whether ln -s works" >&5 |
40056 | 3000 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3001 LN_S=$as_ln_s | |
3002 if test "$LN_S" = "ln -s"; then | |
43924 | 3003 echo "$as_me:3003: result: yes" >&5 |
40056 | 3004 echo "${ECHO_T}yes" >&6 |
3005 else | |
43924 | 3006 echo "$as_me:3006: result: no, using $LN_S" >&5 |
40056 | 3007 echo "${ECHO_T}no, using $LN_S" >&6 |
3008 fi | |
3009 | |
3010 ac_ext=c | |
3011 ac_cpp='$CPP $CPPFLAGS' | |
3012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3014 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
43924 | 3015 echo "$as_me:3015: checking how to run the C preprocessor" >&5 |
40056 | 3016 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
25897 | 3017 # On Suns, sometimes $CPP names a directory. |
3018 if test -n "$CPP" && test -d "$CPP"; then | |
3019 CPP= | |
3020 fi | |
3021 if test -z "$CPP"; then | |
40056 | 3022 if test "${ac_cv_prog_CPP+set}" = set; then |
3023 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3024 else | |
3025 # Double quotes because CPP needs to be expanded | |
3026 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3027 do | |
3028 ac_preproc_ok=false | |
3029 for ac_c_preproc_warn_flag in '' yes | |
3030 do | |
3031 # Use a header file that comes with gcc, so configuring glibc | |
3032 # with a fresh cross-compiler works. | |
25897 | 3033 # On the NeXT, cc -E runs the code through the compiler's parser, |
40056 | 3034 # not just through cpp. "Syntax error" is here to catch this case. |
3035 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 3036 #line 3036 "configure" |
25897 | 3037 #include "confdefs.h" |
3038 #include <assert.h> | |
40056 | 3039 Syntax error |
3040 _ACEOF | |
43924 | 3041 if { (eval echo "$as_me:3041: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3043 ac_status=$? | |
3044 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3045 rm -f conftest.er1 | |
3046 cat conftest.err >&5 | |
43924 | 3047 echo "$as_me:3047: \$? = $ac_status" >&5 |
40056 | 3048 (exit $ac_status); } >/dev/null; then |
3049 if test -s conftest.err; then | |
3050 ac_cpp_err=$ac_c_preproc_warn_flag | |
3051 else | |
3052 ac_cpp_err= | |
3053 fi | |
3054 else | |
3055 ac_cpp_err=yes | |
3056 fi | |
3057 if test -z "$ac_cpp_err"; then | |
27205 | 3058 : |
3059 else | |
40056 | 3060 echo "$as_me: failed program was:" >&5 |
27205 | 3061 cat conftest.$ac_ext >&5 |
40056 | 3062 # Broken: fails on valid input. |
3063 continue | |
3064 fi | |
3065 rm -f conftest.err conftest.$ac_ext | |
3066 | |
3067 # OK, works on sane cases. Now check whether non-existent headers | |
3068 # can be detected and how. | |
3069 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 3070 #line 3070 "configure" |
40056 | 3071 #include "confdefs.h" |
3072 #include <ac_nonexistent.h> | |
3073 _ACEOF | |
43924 | 3074 if { (eval echo "$as_me:3074: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3076 ac_status=$? | |
3077 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3078 rm -f conftest.er1 | |
3079 cat conftest.err >&5 | |
43924 | 3080 echo "$as_me:3080: \$? = $ac_status" >&5 |
40056 | 3081 (exit $ac_status); } >/dev/null; then |
3082 if test -s conftest.err; then | |
3083 ac_cpp_err=$ac_c_preproc_warn_flag | |
3084 else | |
3085 ac_cpp_err= | |
3086 fi | |
3087 else | |
3088 ac_cpp_err=yes | |
3089 fi | |
3090 if test -z "$ac_cpp_err"; then | |
3091 # Broken: success on invalid input. | |
3092 continue | |
3093 else | |
3094 echo "$as_me: failed program was:" >&5 | |
3095 cat conftest.$ac_ext >&5 | |
3096 # Passes both tests. | |
3097 ac_preproc_ok=: | |
3098 break | |
3099 fi | |
3100 rm -f conftest.err conftest.$ac_ext | |
3101 | |
3102 done | |
3103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3104 rm -f conftest.err conftest.$ac_ext | |
3105 if $ac_preproc_ok; then | |
3106 break | |
3107 fi | |
3108 | |
3109 done | |
3110 ac_cv_prog_CPP=$CPP | |
3111 | |
3112 fi | |
3113 CPP=$ac_cv_prog_CPP | |
3114 else | |
3115 ac_cv_prog_CPP=$CPP | |
3116 fi | |
43924 | 3117 echo "$as_me:3117: result: $CPP" >&5 |
40056 | 3118 echo "${ECHO_T}$CPP" >&6 |
3119 ac_preproc_ok=false | |
3120 for ac_c_preproc_warn_flag in '' yes | |
3121 do | |
3122 # Use a header file that comes with gcc, so configuring glibc | |
3123 # with a fresh cross-compiler works. | |
3124 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3125 # not just through cpp. "Syntax error" is here to catch this case. | |
3126 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 3127 #line 3127 "configure" |
27205 | 3128 #include "confdefs.h" |
3129 #include <assert.h> | |
40056 | 3130 Syntax error |
3131 _ACEOF | |
43924 | 3132 if { (eval echo "$as_me:3132: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3134 ac_status=$? | |
3135 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3136 rm -f conftest.er1 | |
3137 cat conftest.err >&5 | |
43924 | 3138 echo "$as_me:3138: \$? = $ac_status" >&5 |
40056 | 3139 (exit $ac_status); } >/dev/null; then |
3140 if test -s conftest.err; then | |
3141 ac_cpp_err=$ac_c_preproc_warn_flag | |
3142 else | |
3143 ac_cpp_err= | |
3144 fi | |
3145 else | |
3146 ac_cpp_err=yes | |
3147 fi | |
3148 if test -z "$ac_cpp_err"; then | |
25897 | 3149 : |
3150 else | |
40056 | 3151 echo "$as_me: failed program was:" >&5 |
25897 | 3152 cat conftest.$ac_ext >&5 |
40056 | 3153 # Broken: fails on valid input. |
3154 continue | |
3155 fi | |
3156 rm -f conftest.err conftest.$ac_ext | |
3157 | |
3158 # OK, works on sane cases. Now check whether non-existent headers | |
3159 # can be detected and how. | |
3160 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 3161 #line 3161 "configure" |
40056 | 3162 #include "confdefs.h" |
3163 #include <ac_nonexistent.h> | |
3164 _ACEOF | |
43924 | 3165 if { (eval echo "$as_me:3165: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3167 ac_status=$? | |
3168 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3169 rm -f conftest.er1 | |
3170 cat conftest.err >&5 | |
43924 | 3171 echo "$as_me:3171: \$? = $ac_status" >&5 |
40056 | 3172 (exit $ac_status); } >/dev/null; then |
3173 if test -s conftest.err; then | |
3174 ac_cpp_err=$ac_c_preproc_warn_flag | |
3175 else | |
3176 ac_cpp_err= | |
3177 fi | |
3178 else | |
3179 ac_cpp_err=yes | |
3180 fi | |
3181 if test -z "$ac_cpp_err"; then | |
3182 # Broken: success on invalid input. | |
3183 continue | |
3184 else | |
3185 echo "$as_me: failed program was:" >&5 | |
3186 cat conftest.$ac_ext >&5 | |
3187 # Passes both tests. | |
3188 ac_preproc_ok=: | |
3189 break | |
3190 fi | |
3191 rm -f conftest.err conftest.$ac_ext | |
3192 | |
3193 done | |
3194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3195 rm -f conftest.err conftest.$ac_ext | |
3196 if $ac_preproc_ok; then | |
3197 : | |
3198 else | |
43924 | 3199 { { echo "$as_me:3199: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
40056 | 3200 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
3201 { (exit 1); exit 1; }; } | |
3202 fi | |
3203 | |
3204 ac_ext=c | |
3205 ac_cpp='$CPP $CPPFLAGS' | |
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25897 | 3209 |
3210 # Find a good install program. We prefer a C program (faster), | |
3211 # so one script is as good as another. But avoid the broken or | |
3212 # incompatible versions: | |
3213 # SysV /etc/install, /usr/sbin/install | |
3214 # SunOS /usr/etc/install | |
3215 # IRIX /sbin/install | |
3216 # AIX /bin/install | |
40056 | 3217 # AmigaOS /C/install, which installs bootblocks on floppy discs |
27205 | 3218 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
25897 | 3219 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3220 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3221 # ./install, which can be erroneously created by make from ./install.sh. | |
43924 | 3222 echo "$as_me:3222: checking for a BSD compatible install" >&5 |
40056 | 3223 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
25897 | 3224 if test -z "$INSTALL"; then |
40056 | 3225 if test "${ac_cv_path_install+set}" = set; then |
3226 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3227 else | |
3228 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
25897 | 3229 for ac_dir in $PATH; do |
40056 | 3230 IFS=$ac_save_IFS |
25897 | 3231 # Account for people who put trailing slashes in PATH elements. |
40056 | 3232 case $ac_dir/ in |
3233 / | ./ | .// | /cC/* \ | |
3234 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
3235 | /usr/ucb/* ) ;; | |
25897 | 3236 *) |
3237 # OSF1 and SCO ODT 3.0 have their own names for install. | |
27205 | 3238 # Don't use installbsd from OSF since it installs stuff as root |
3239 # by default. | |
3240 for ac_prog in ginstall scoinst install; do | |
40056 | 3241 if $as_executable_p "$ac_dir/$ac_prog"; then |
25897 | 3242 if test $ac_prog = install && |
40056 | 3243 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
25897 | 3244 # AIX install. It has an incompatible calling convention. |
3245 : | |
40056 | 3246 elif test $ac_prog = install && |
3247 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
3248 # program-specific install script used by HP pwplus--don't use. | |
3249 : | |
25897 | 3250 else |
3251 ac_cv_path_install="$ac_dir/$ac_prog -c" | |
3252 break 2 | |
3253 fi | |
3254 fi | |
3255 done | |
3256 ;; | |
3257 esac | |
3258 done | |
3259 | |
3260 fi | |
3261 if test "${ac_cv_path_install+set}" = set; then | |
40056 | 3262 INSTALL=$ac_cv_path_install |
25897 | 3263 else |
3264 # As a last resort, use the slow shell script. We don't cache a | |
3265 # path for INSTALL within a source directory, because that will | |
3266 # break other packages using the cache if that directory is | |
3267 # removed, or if the path is relative. | |
40056 | 3268 INSTALL=$ac_install_sh |
3269 fi | |
3270 fi | |
43924 | 3271 echo "$as_me:3271: result: $INSTALL" >&5 |
40056 | 3272 echo "${ECHO_T}$INSTALL" >&6 |
25897 | 3273 |
3274 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3275 # It thinks the first close brace ends the variable substitution. | |
3276 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3277 | |
40056 | 3278 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
27205 | 3279 |
25897 | 3280 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3281 | |
3282 for ac_prog in 'bison -y' byacc | |
3283 do | |
40056 | 3284 # Extract the first word of "$ac_prog", so it can be a program name with args. |
25897 | 3285 set dummy $ac_prog; ac_word=$2 |
43924 | 3286 echo "$as_me:3286: checking for $ac_word" >&5 |
40056 | 3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3288 if test "${ac_cv_prog_YACC+set}" = set; then | |
3289 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 3290 else |
3291 if test -n "$YACC"; then | |
3292 ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
3293 else | |
40056 | 3294 ac_save_IFS=$IFS; IFS=$ac_path_separator |
3295 ac_dummy="$PATH" | |
3296 for ac_dir in $ac_dummy; do | |
3297 IFS=$ac_save_IFS | |
3298 test -z "$ac_dir" && ac_dir=. | |
3299 $as_executable_p "$ac_dir/$ac_word" || continue | |
3300 ac_cv_prog_YACC="$ac_prog" | |
43924 | 3301 echo "$as_me:3301: found $ac_dir/$ac_word" >&5 |
40056 | 3302 break |
3303 done | |
3304 | |
3305 fi | |
3306 fi | |
3307 YACC=$ac_cv_prog_YACC | |
25897 | 3308 if test -n "$YACC"; then |
43924 | 3309 echo "$as_me:3309: result: $YACC" >&5 |
40056 | 3310 echo "${ECHO_T}$YACC" >&6 |
3311 else | |
43924 | 3312 echo "$as_me:3312: result: no" >&5 |
40056 | 3313 echo "${ECHO_T}no" >&6 |
3314 fi | |
3315 | |
3316 test -n "$YACC" && break | |
25897 | 3317 done |
3318 test -n "$YACC" || YACC="yacc" | |
3319 | |
28060 | 3320 if test "x$RANLIB" = x; then |
40056 | 3321 if test -n "$ac_tool_prefix"; then |
3322 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3323 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
43924 | 3324 echo "$as_me:3324: checking for $ac_word" >&5 |
40056 | 3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3326 if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3327 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28060 | 3328 else |
3329 if test -n "$RANLIB"; then | |
3330 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3331 else | |
40056 | 3332 ac_save_IFS=$IFS; IFS=$ac_path_separator |
3333 ac_dummy="$PATH" | |
3334 for ac_dir in $ac_dummy; do | |
3335 IFS=$ac_save_IFS | |
3336 test -z "$ac_dir" && ac_dir=. | |
3337 $as_executable_p "$ac_dir/$ac_word" || continue | |
3338 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
43924 | 3339 echo "$as_me:3339: found $ac_dir/$ac_word" >&5 |
40056 | 3340 break |
3341 done | |
3342 | |
3343 fi | |
3344 fi | |
3345 RANLIB=$ac_cv_prog_RANLIB | |
28060 | 3346 if test -n "$RANLIB"; then |
43924 | 3347 echo "$as_me:3347: result: $RANLIB" >&5 |
40056 | 3348 echo "${ECHO_T}$RANLIB" >&6 |
3349 else | |
43924 | 3350 echo "$as_me:3350: result: no" >&5 |
40056 | 3351 echo "${ECHO_T}no" >&6 |
3352 fi | |
3353 | |
3354 fi | |
3355 if test -z "$ac_cv_prog_RANLIB"; then | |
3356 ac_ct_RANLIB=$RANLIB | |
3357 # Extract the first word of "ranlib", so it can be a program name with args. | |
3358 set dummy ranlib; ac_word=$2 | |
43924 | 3359 echo "$as_me:3359: checking for $ac_word" >&5 |
40056 | 3360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3361 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3362 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3363 else | |
3364 if test -n "$ac_ct_RANLIB"; then | |
3365 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3366 else | |
3367 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
3368 ac_dummy="$PATH" | |
3369 for ac_dir in $ac_dummy; do | |
3370 IFS=$ac_save_IFS | |
3371 test -z "$ac_dir" && ac_dir=. | |
3372 $as_executable_p "$ac_dir/$ac_word" || continue | |
3373 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
43924 | 3374 echo "$as_me:3374: found $ac_dir/$ac_word" >&5 |
40056 | 3375 break |
3376 done | |
3377 | |
3378 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3379 fi | |
3380 fi | |
3381 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3382 if test -n "$ac_ct_RANLIB"; then | |
43924 | 3383 echo "$as_me:3383: result: $ac_ct_RANLIB" >&5 |
40056 | 3384 echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
3385 else | |
43924 | 3386 echo "$as_me:3386: result: no" >&5 |
40056 | 3387 echo "${ECHO_T}no" >&6 |
3388 fi | |
3389 | |
3390 RANLIB=$ac_ct_RANLIB | |
3391 else | |
3392 RANLIB="$ac_cv_prog_RANLIB" | |
3393 fi | |
3394 | |
3395 fi | |
3396 | |
43924 | 3397 echo "$as_me:3397: checking for AIX" >&5 |
40056 | 3398 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
3399 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 3400 #line 3400 "configure" |
25897 | 3401 #include "confdefs.h" |
3402 #ifdef _AIX | |
3403 yes | |
3404 #endif | |
3405 | |
40056 | 3406 _ACEOF |
25897 | 3407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3408 egrep "yes" >/dev/null 2>&1; then | |
43924 | 3409 echo "$as_me:3409: result: yes" >&5 |
40056 | 3410 echo "${ECHO_T}yes" >&6 |
3411 cat >>confdefs.h <<\EOF | |
25897 | 3412 #define _ALL_SOURCE 1 |
3413 EOF | |
3414 | |
3415 else | |
43924 | 3416 echo "$as_me:3416: result: no" >&5 |
40056 | 3417 echo "${ECHO_T}no" >&6 |
25897 | 3418 fi |
3419 rm -f conftest* | |
3420 | |
30311 | 3421 #### Extract some information from the operating system and machine files. |
3422 | |
43924 | 3423 { echo "$as_me:3423: checking the machine- and system-dependent files to find out |
30311 | 3424 - which libraries the lib-src programs will want, and |
40056 | 3425 - whether the GNU malloc routines are usable..." >&5 |
3426 echo "$as_me: checking the machine- and system-dependent files to find out | |
30311 | 3427 - which libraries the lib-src programs will want, and |
40056 | 3428 - whether the GNU malloc routines are usable..." >&6;} |
30311 | 3429 |
3430 ### First figure out CFLAGS (which we use for running the compiler here) | |
3431 ### and REAL_CFLAGS (which we use for real compilation). | |
3432 ### The two are the same except on a few systems, where they are made | |
3433 ### different to work around various lossages. For example, | |
3434 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
3435 ### as implying static linking. | |
3436 | |
3437 ### If the CFLAGS env var is specified, we use that value | |
3438 ### instead of the default. | |
3439 | |
3440 ### It's not important that this name contain the PID; you can't run | |
3441 ### two configures in the same directory and have anything work | |
3442 ### anyway. | |
3443 tempcname="conftest.c" | |
3444 | |
3445 echo ' | |
3446 #include "'${srcdir}'/src/'${opsysfile}'" | |
3447 #include "'${srcdir}'/src/'${machfile}'" | |
3448 #ifndef LIBS_MACHINE | |
3449 #define LIBS_MACHINE | |
3450 #endif | |
3451 #ifndef LIBS_SYSTEM | |
3452 #define LIBS_SYSTEM | |
3453 #endif | |
3454 #ifndef C_SWITCH_SYSTEM | |
3455 #define C_SWITCH_SYSTEM | |
3456 #endif | |
3457 #ifndef C_SWITCH_MACHINE | |
3458 #define C_SWITCH_MACHINE | |
3459 #endif | |
3460 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
3461 configure___ c_switch_system=C_SWITCH_SYSTEM | |
3462 configure___ c_switch_machine=C_SWITCH_MACHINE | |
3463 | |
3464 #ifndef LIB_X11_LIB | |
3465 #define LIB_X11_LIB -lX11 | |
3466 #endif | |
3467 | |
3468 #ifndef LIBX11_MACHINE | |
3469 #define LIBX11_MACHINE | |
3470 #endif | |
3471 | |
3472 #ifndef LIBX11_SYSTEM | |
3473 #define LIBX11_SYSTEM | |
3474 #endif | |
3475 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
3476 | |
3477 #ifdef UNEXEC | |
3478 configure___ unexec=UNEXEC | |
3479 #else | |
3480 configure___ unexec=unexec.o | |
3481 #endif | |
3482 | |
3483 #ifdef SYSTEM_MALLOC | |
3484 configure___ system_malloc=yes | |
3485 #else | |
3486 configure___ system_malloc=no | |
3487 #endif | |
3488 | |
31607 | 3489 #ifdef USE_MMAP_FOR_BUFFERS |
3490 configure___ use_mmap_for_buffers=yes | |
31417 | 3491 #else |
31607 | 3492 configure___ use_mmap_for_buffers=no |
31417 | 3493 #endif |
3494 | |
30311 | 3495 #ifndef C_DEBUG_SWITCH |
3496 #define C_DEBUG_SWITCH -g | |
3497 #endif | |
3498 | |
3499 #ifndef C_OPTIMIZE_SWITCH | |
3500 #ifdef __GNUC__ | |
3501 #define C_OPTIMIZE_SWITCH -O2 | |
3502 #else | |
3503 #define C_OPTIMIZE_SWITCH -O | |
3504 #endif | |
3505 #endif | |
3506 | |
3507 #ifndef LD_SWITCH_MACHINE | |
3508 #define LD_SWITCH_MACHINE | |
3509 #endif | |
3510 | |
3511 #ifndef LD_SWITCH_SYSTEM | |
3512 #define LD_SWITCH_SYSTEM | |
3513 #endif | |
3514 | |
3515 #ifndef LD_SWITCH_X_SITE_AUX | |
3516 #define LD_SWITCH_X_SITE_AUX | |
40056 | 3517 #endif |
30311 | 3518 |
3519 configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
3520 configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
3521 | |
3522 #ifdef THIS_IS_CONFIGURE | |
3523 | |
3524 /* Get the CFLAGS for tests in configure. */ | |
3525 #ifdef __GNUC__ | |
3526 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3527 #else | |
3528 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3529 #endif | |
3530 | |
3531 #else /* not THIS_IS_CONFIGURE */ | |
3532 | |
3533 /* Get the CFLAGS for real compilation. */ | |
3534 #ifdef __GNUC__ | |
3535 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3536 #else | |
3537 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3538 #endif | |
3539 | |
3540 #endif /* not THIS_IS_CONFIGURE */ | |
3541 ' > ${tempcname} | |
3542 | |
3543 # The value of CPP is a quoted variable reference, so we need to do this | |
3544 # to get its actual value... | |
3545 CPP=`eval "echo $CPP"` | |
3546 eval `${CPP} -Isrc ${tempcname} \ | |
3547 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3548 if test "x$SPECIFIED_CFLAGS" = x; then | |
3549 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
3550 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3551 else | |
3552 REAL_CFLAGS="$CFLAGS" | |
3553 fi | |
3554 rm ${tempcname} | |
3555 | |
3556 ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
3557 | |
3558 ### Make sure subsequent tests use flags consistent with the build flags. | |
3559 | |
3560 if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
3561 CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
3562 else | |
3563 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
3564 fi | |
3565 | |
40056 | 3566 # Check whether --enable-largefile or --disable-largefile was given. |
30576 | 3567 if test "${enable_largefile+set}" = set; then |
3568 enableval="$enable_largefile" | |
40056 | 3569 |
3570 fi; | |
3571 if test "$enable_largefile" != no; then | |
3572 | |
43924 | 3573 echo "$as_me:3573: checking for special C compiler options needed for large files" >&5 |
40056 | 3574 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
3575 if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
3576 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30576 | 3577 else |
3578 ac_cv_sys_largefile_CC=no | |
40056 | 3579 if test "$GCC" != yes; then |
3580 ac_save_CC=$CC | |
3581 while :; do | |
3582 # IRIX 6.2 and later do not support large files by default, | |
3583 # so use the C compiler's -n32 option if that helps. | |
3584 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 3585 #line 3585 "configure" |
30576 | 3586 #include "confdefs.h" |
3587 #include <sys/types.h> | |
40056 | 3588 /* Check that off_t can represent 2**63 - 1 correctly. |
3589 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3590 since some C++ compilers masquerading as C compilers | |
3591 incorrectly reject 9223372036854775807. */ | |
3592 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3593 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3594 && LARGE_OFF_T % 2147483647 == 1) | |
3595 ? 1 : -1]; | |
3596 int | |
3597 main () | |
3598 { | |
3599 | |
3600 ; | |
3601 return 0; | |
3602 } | |
3603 _ACEOF | |
3604 rm -f conftest.$ac_objext | |
43924 | 3605 if { (eval echo "$as_me:3605: \"$ac_compile\"") >&5 |
40056 | 3606 (eval $ac_compile) 2>&5 |
3607 ac_status=$? | |
43924 | 3608 echo "$as_me:3608: \$? = $ac_status" >&5 |
41148 | 3609 (exit $ac_status); } && |
3610 { ac_try='test -s conftest.$ac_objext' | |
43924 | 3611 { (eval echo "$as_me:3611: \"$ac_try\"") >&5 |
3612 (eval $ac_try) 2>&5 | |
3613 ac_status=$? | |
3614 echo "$as_me:3614: \$? = $ac_status" >&5 | |
40056 | 3615 (exit $ac_status); }; }; then |
3616 break | |
3617 else | |
3618 echo "$as_me: failed program was:" >&5 | |
3619 cat conftest.$ac_ext >&5 | |
3620 fi | |
3621 rm -f conftest.$ac_objext | |
3622 CC="$CC -n32" | |
3623 rm -f conftest.$ac_objext | |
43924 | 3624 if { (eval echo "$as_me:3624: \"$ac_compile\"") >&5 |
40056 | 3625 (eval $ac_compile) 2>&5 |
3626 ac_status=$? | |
43924 | 3627 echo "$as_me:3627: \$? = $ac_status" >&5 |
41148 | 3628 (exit $ac_status); } && |
3629 { ac_try='test -s conftest.$ac_objext' | |
43924 | 3630 { (eval echo "$as_me:3630: \"$ac_try\"") >&5 |
3631 (eval $ac_try) 2>&5 | |
3632 ac_status=$? | |
3633 echo "$as_me:3633: \$? = $ac_status" >&5 | |
40056 | 3634 (exit $ac_status); }; }; then |
3635 ac_cv_sys_largefile_CC=' -n32'; break | |
3636 else | |
3637 echo "$as_me: failed program was:" >&5 | |
3638 cat conftest.$ac_ext >&5 | |
3639 fi | |
3640 rm -f conftest.$ac_objext | |
3641 break | |
3642 done | |
3643 CC=$ac_save_CC | |
3644 rm -f conftest.$ac_ext | |
3645 fi | |
3646 fi | |
43924 | 3647 echo "$as_me:3647: result: $ac_cv_sys_largefile_CC" >&5 |
40056 | 3648 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
3649 if test "$ac_cv_sys_largefile_CC" != no; then | |
3650 CC=$CC$ac_cv_sys_largefile_CC | |
3651 fi | |
3652 | |
43924 | 3653 echo "$as_me:3653: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
40056 | 3654 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
3655 if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
3656 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3657 else | |
3658 while :; do | |
30576 | 3659 ac_cv_sys_file_offset_bits=no |
40056 | 3660 cat >conftest.$ac_ext <<_ACEOF |
43924 | 3661 #line 3661 "configure" |
30576 | 3662 #include "confdefs.h" |
3663 #include <sys/types.h> | |
40056 | 3664 /* Check that off_t can represent 2**63 - 1 correctly. |
3665 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3666 since some C++ compilers masquerading as C compilers | |
3667 incorrectly reject 9223372036854775807. */ | |
3668 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3669 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3670 && LARGE_OFF_T % 2147483647 == 1) | |
3671 ? 1 : -1]; | |
3672 int | |
3673 main () | |
3674 { | |
3675 | |
3676 ; | |
3677 return 0; | |
3678 } | |
3679 _ACEOF | |
3680 rm -f conftest.$ac_objext | |
43924 | 3681 if { (eval echo "$as_me:3681: \"$ac_compile\"") >&5 |
40056 | 3682 (eval $ac_compile) 2>&5 |
3683 ac_status=$? | |
43924 | 3684 echo "$as_me:3684: \$? = $ac_status" >&5 |
41148 | 3685 (exit $ac_status); } && |
3686 { ac_try='test -s conftest.$ac_objext' | |
43924 | 3687 { (eval echo "$as_me:3687: \"$ac_try\"") >&5 |
3688 (eval $ac_try) 2>&5 | |
3689 ac_status=$? | |
3690 echo "$as_me:3690: \$? = $ac_status" >&5 | |
40056 | 3691 (exit $ac_status); }; }; then |
3692 break | |
3693 else | |
3694 echo "$as_me: failed program was:" >&5 | |
3695 cat conftest.$ac_ext >&5 | |
3696 fi | |
3697 rm -f conftest.$ac_objext conftest.$ac_ext | |
3698 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 3699 #line 3699 "configure" |
30576 | 3700 #include "confdefs.h" |
3701 #define _FILE_OFFSET_BITS 64 | |
3702 #include <sys/types.h> | |
40056 | 3703 /* Check that off_t can represent 2**63 - 1 correctly. |
3704 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3705 since some C++ compilers masquerading as C compilers | |
3706 incorrectly reject 9223372036854775807. */ | |
3707 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3708 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3709 && LARGE_OFF_T % 2147483647 == 1) | |
3710 ? 1 : -1]; | |
3711 int | |
3712 main () | |
3713 { | |
3714 | |
3715 ; | |
3716 return 0; | |
3717 } | |
3718 _ACEOF | |
3719 rm -f conftest.$ac_objext | |
43924 | 3720 if { (eval echo "$as_me:3720: \"$ac_compile\"") >&5 |
40056 | 3721 (eval $ac_compile) 2>&5 |
3722 ac_status=$? | |
43924 | 3723 echo "$as_me:3723: \$? = $ac_status" >&5 |
41148 | 3724 (exit $ac_status); } && |
3725 { ac_try='test -s conftest.$ac_objext' | |
43924 | 3726 { (eval echo "$as_me:3726: \"$ac_try\"") >&5 |
3727 (eval $ac_try) 2>&5 | |
3728 ac_status=$? | |
3729 echo "$as_me:3729: \$? = $ac_status" >&5 | |
40056 | 3730 (exit $ac_status); }; }; then |
3731 ac_cv_sys_file_offset_bits=64; break | |
3732 else | |
3733 echo "$as_me: failed program was:" >&5 | |
3734 cat conftest.$ac_ext >&5 | |
3735 fi | |
3736 rm -f conftest.$ac_objext conftest.$ac_ext | |
3737 break | |
3738 done | |
3739 fi | |
43924 | 3740 echo "$as_me:3740: result: $ac_cv_sys_file_offset_bits" >&5 |
40056 | 3741 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
3742 if test "$ac_cv_sys_file_offset_bits" != no; then | |
3743 | |
3744 cat >>confdefs.h <<EOF | |
3745 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
3746 EOF | |
3747 | |
30576 | 3748 fi |
3749 rm -f conftest* | |
43924 | 3750 echo "$as_me:3750: checking for _LARGE_FILES value needed for large files" >&5 |
40056 | 3751 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
3752 if test "${ac_cv_sys_large_files+set}" = set; then | |
3753 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3754 else | |
3755 while :; do | |
34431 | 3756 ac_cv_sys_large_files=no |
40056 | 3757 cat >conftest.$ac_ext <<_ACEOF |
43924 | 3758 #line 3758 "configure" |
40056 | 3759 #include "confdefs.h" |
3760 #include <sys/types.h> | |
3761 /* Check that off_t can represent 2**63 - 1 correctly. | |
3762 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3763 since some C++ compilers masquerading as C compilers | |
3764 incorrectly reject 9223372036854775807. */ | |
3765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3767 && LARGE_OFF_T % 2147483647 == 1) | |
3768 ? 1 : -1]; | |
3769 int | |
3770 main () | |
3771 { | |
3772 | |
3773 ; | |
3774 return 0; | |
3775 } | |
3776 _ACEOF | |
3777 rm -f conftest.$ac_objext | |
43924 | 3778 if { (eval echo "$as_me:3778: \"$ac_compile\"") >&5 |
40056 | 3779 (eval $ac_compile) 2>&5 |
3780 ac_status=$? | |
43924 | 3781 echo "$as_me:3781: \$? = $ac_status" >&5 |
41148 | 3782 (exit $ac_status); } && |
3783 { ac_try='test -s conftest.$ac_objext' | |
43924 | 3784 { (eval echo "$as_me:3784: \"$ac_try\"") >&5 |
3785 (eval $ac_try) 2>&5 | |
3786 ac_status=$? | |
3787 echo "$as_me:3787: \$? = $ac_status" >&5 | |
40056 | 3788 (exit $ac_status); }; }; then |
3789 break | |
3790 else | |
3791 echo "$as_me: failed program was:" >&5 | |
3792 cat conftest.$ac_ext >&5 | |
3793 fi | |
3794 rm -f conftest.$ac_objext conftest.$ac_ext | |
3795 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 3796 #line 3796 "configure" |
30576 | 3797 #include "confdefs.h" |
3798 #define _LARGE_FILES 1 | |
40056 | 3799 #include <sys/types.h> |
3800 /* Check that off_t can represent 2**63 - 1 correctly. | |
3801 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3802 since some C++ compilers masquerading as C compilers | |
3803 incorrectly reject 9223372036854775807. */ | |
3804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3806 && LARGE_OFF_T % 2147483647 == 1) | |
3807 ? 1 : -1]; | |
3808 int | |
3809 main () | |
3810 { | |
3811 | |
3812 ; | |
3813 return 0; | |
3814 } | |
3815 _ACEOF | |
3816 rm -f conftest.$ac_objext | |
43924 | 3817 if { (eval echo "$as_me:3817: \"$ac_compile\"") >&5 |
40056 | 3818 (eval $ac_compile) 2>&5 |
3819 ac_status=$? | |
43924 | 3820 echo "$as_me:3820: \$? = $ac_status" >&5 |
41148 | 3821 (exit $ac_status); } && |
3822 { ac_try='test -s conftest.$ac_objext' | |
43924 | 3823 { (eval echo "$as_me:3823: \"$ac_try\"") >&5 |
3824 (eval $ac_try) 2>&5 | |
3825 ac_status=$? | |
3826 echo "$as_me:3826: \$? = $ac_status" >&5 | |
40056 | 3827 (exit $ac_status); }; }; then |
3828 ac_cv_sys_large_files=1; break | |
3829 else | |
3830 echo "$as_me: failed program was:" >&5 | |
3831 cat conftest.$ac_ext >&5 | |
3832 fi | |
3833 rm -f conftest.$ac_objext conftest.$ac_ext | |
3834 break | |
3835 done | |
3836 fi | |
43924 | 3837 echo "$as_me:3837: result: $ac_cv_sys_large_files" >&5 |
40056 | 3838 echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
3839 if test "$ac_cv_sys_large_files" != no; then | |
3840 | |
3841 cat >>confdefs.h <<EOF | |
3842 #define _LARGE_FILES $ac_cv_sys_large_files | |
3843 EOF | |
3844 | |
30576 | 3845 fi |
3846 rm -f conftest* | |
3847 fi | |
3848 | |
25897 | 3849 # Sound support for GNU/Linux and the free BSDs. |
40056 | 3850 |
3851 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
25897 | 3852 do |
40056 | 3853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
43924 | 3854 echo "$as_me:3854: checking for $ac_header" >&5 |
40056 | 3855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3856 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3857 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3858 else | |
3859 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 3860 #line 3860 "configure" |
40056 | 3861 #include "confdefs.h" |
3862 #include <$ac_header> | |
3863 _ACEOF | |
43924 | 3864 if { (eval echo "$as_me:3864: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3866 ac_status=$? | |
3867 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3868 rm -f conftest.er1 | |
3869 cat conftest.err >&5 | |
43924 | 3870 echo "$as_me:3870: \$? = $ac_status" >&5 |
40056 | 3871 (exit $ac_status); } >/dev/null; then |
3872 if test -s conftest.err; then | |
3873 ac_cpp_err=$ac_c_preproc_warn_flag | |
3874 else | |
3875 ac_cpp_err= | |
3876 fi | |
3877 else | |
3878 ac_cpp_err=yes | |
3879 fi | |
3880 if test -z "$ac_cpp_err"; then | |
3881 eval "$as_ac_Header=yes" | |
3882 else | |
3883 echo "$as_me: failed program was:" >&5 | |
25897 | 3884 cat conftest.$ac_ext >&5 |
40056 | 3885 eval "$as_ac_Header=no" |
3886 fi | |
3887 rm -f conftest.err conftest.$ac_ext | |
3888 fi | |
43924 | 3889 echo "$as_me:3889: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 3890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3891 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3892 cat >>confdefs.h <<EOF | |
3893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3894 EOF | |
3895 | |
25897 | 3896 fi |
3897 done | |
3898 | |
30078
58ce7aad3fff
* configure.in: Check for <soundcard.h>. Look for ossaudio library, and set
Ken Raeburn <raeburn@raeburn.org>
parents:
30069
diff
changeset
|
3899 # Emulation library used on NetBSD. |
43924 | 3900 echo "$as_me:3900: checking for _oss_ioctl in -lossaudio" >&5 |
40056 | 3901 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
3902 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | |
3903 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3904 else | |
3905 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
|
3906 LIBS="-lossaudio $LIBS" |
40056 | 3907 cat >conftest.$ac_ext <<_ACEOF |
43924 | 3908 #line 3908 "configure" |
40056 | 3909 #include "confdefs.h" |
3910 | |
30078
58ce7aad3fff
* configure.in: Check for <soundcard.h>. Look for ossaudio library, and set
Ken Raeburn <raeburn@raeburn.org>
parents:
30069
diff
changeset
|
3911 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 3912 #ifdef __cplusplus |
3913 extern "C" | |
3914 #endif | |
30078
58ce7aad3fff
* configure.in: Check for <soundcard.h>. Look for ossaudio library, and set
Ken Raeburn <raeburn@raeburn.org>
parents:
30069
diff
changeset
|
3915 /* We use char because int might match the return type of a gcc2 |
40056 | 3916 builtin and then its argument prototype would still apply. */ |
3917 char _oss_ioctl (); | |
3918 int | |
3919 main () | |
3920 { | |
3921 _oss_ioctl (); | |
3922 ; | |
3923 return 0; | |
3924 } | |
3925 _ACEOF | |
3926 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 3927 if { (eval echo "$as_me:3927: \"$ac_link\"") >&5 |
3928 (eval $ac_link) 2>&5 | |
3929 ac_status=$? | |
3930 echo "$as_me:3930: \$? = $ac_status" >&5 | |
41148 | 3931 (exit $ac_status); } && |
3932 { ac_try='test -s conftest$ac_exeext' | |
43924 | 3933 { (eval echo "$as_me:3933: \"$ac_try\"") >&5 |
3934 (eval $ac_try) 2>&5 | |
3935 ac_status=$? | |
3936 echo "$as_me:3936: \$? = $ac_status" >&5 | |
40056 | 3937 (exit $ac_status); }; }; then |
3938 ac_cv_lib_ossaudio__oss_ioctl=yes | |
3939 else | |
3940 echo "$as_me: failed program was:" >&5 | |
3941 cat conftest.$ac_ext >&5 | |
3942 ac_cv_lib_ossaudio__oss_ioctl=no | |
3943 fi | |
3944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3945 LIBS=$ac_check_lib_save_LIBS | |
3946 fi | |
43924 | 3947 echo "$as_me:3947: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
40056 | 3948 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
3949 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
|
3950 LIBSOUND=-lossaudio |
58ce7aad3fff
* configure.in: Check for <soundcard.h>. Look for ossaudio library, and set
Ken Raeburn <raeburn@raeburn.org>
parents:
30069
diff
changeset
|
3951 else |
40056 | 3952 LIBSOUND= |
3953 fi | |
3954 | |
3955 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
|
3956 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
41148 | 3957 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h |
25897 | 3958 do |
40056 | 3959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
43924 | 3960 echo "$as_me:3960: checking for $ac_header" >&5 |
40056 | 3961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3962 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3963 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3964 else | |
3965 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 3966 #line 3966 "configure" |
40056 | 3967 #include "confdefs.h" |
3968 #include <$ac_header> | |
3969 _ACEOF | |
43924 | 3970 if { (eval echo "$as_me:3970: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3972 ac_status=$? | |
3973 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3974 rm -f conftest.er1 | |
3975 cat conftest.err >&5 | |
43924 | 3976 echo "$as_me:3976: \$? = $ac_status" >&5 |
40056 | 3977 (exit $ac_status); } >/dev/null; then |
3978 if test -s conftest.err; then | |
3979 ac_cpp_err=$ac_c_preproc_warn_flag | |
3980 else | |
3981 ac_cpp_err= | |
3982 fi | |
3983 else | |
3984 ac_cpp_err=yes | |
3985 fi | |
3986 if test -z "$ac_cpp_err"; then | |
3987 eval "$as_ac_Header=yes" | |
3988 else | |
3989 echo "$as_me: failed program was:" >&5 | |
25897 | 3990 cat conftest.$ac_ext >&5 |
40056 | 3991 eval "$as_ac_Header=no" |
3992 fi | |
3993 rm -f conftest.err conftest.$ac_ext | |
3994 fi | |
43924 | 3995 echo "$as_me:3995: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 3996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3997 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3998 cat >>confdefs.h <<EOF | |
3999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4000 EOF | |
4001 | |
25897 | 4002 fi |
4003 done | |
4004 | |
43924 | 4005 echo "$as_me:4005: checking for ANSI C header files" >&5 |
40056 | 4006 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4007 if test "${ac_cv_header_stdc+set}" = set; then | |
4008 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4009 else | |
4010 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 4011 #line 4011 "configure" |
25897 | 4012 #include "confdefs.h" |
4013 #include <stdlib.h> | |
4014 #include <stdarg.h> | |
4015 #include <string.h> | |
4016 #include <float.h> | |
40056 | 4017 |
4018 _ACEOF | |
43924 | 4019 if { (eval echo "$as_me:4019: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 4020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4021 ac_status=$? | |
4022 egrep -v '^ *\+' conftest.er1 >conftest.err | |
4023 rm -f conftest.er1 | |
4024 cat conftest.err >&5 | |
43924 | 4025 echo "$as_me:4025: \$? = $ac_status" >&5 |
40056 | 4026 (exit $ac_status); } >/dev/null; then |
4027 if test -s conftest.err; then | |
4028 ac_cpp_err=$ac_c_preproc_warn_flag | |
4029 else | |
4030 ac_cpp_err= | |
4031 fi | |
4032 else | |
4033 ac_cpp_err=yes | |
4034 fi | |
4035 if test -z "$ac_cpp_err"; then | |
25897 | 4036 ac_cv_header_stdc=yes |
4037 else | |
40056 | 4038 echo "$as_me: failed program was:" >&5 |
25897 | 4039 cat conftest.$ac_ext >&5 |
4040 ac_cv_header_stdc=no | |
4041 fi | |
40056 | 4042 rm -f conftest.err conftest.$ac_ext |
25897 | 4043 |
4044 if test $ac_cv_header_stdc = yes; then | |
4045 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
40056 | 4046 cat >conftest.$ac_ext <<_ACEOF |
43924 | 4047 #line 4047 "configure" |
25897 | 4048 #include "confdefs.h" |
4049 #include <string.h> | |
40056 | 4050 |
4051 _ACEOF | |
25897 | 4052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4053 egrep "memchr" >/dev/null 2>&1; then | |
4054 : | |
4055 else | |
4056 ac_cv_header_stdc=no | |
4057 fi | |
4058 rm -f conftest* | |
4059 | |
4060 fi | |
4061 | |
4062 if test $ac_cv_header_stdc = yes; then | |
4063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
40056 | 4064 cat >conftest.$ac_ext <<_ACEOF |
43924 | 4065 #line 4065 "configure" |
25897 | 4066 #include "confdefs.h" |
4067 #include <stdlib.h> | |
40056 | 4068 |
4069 _ACEOF | |
25897 | 4070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4071 egrep "free" >/dev/null 2>&1; then | |
4072 : | |
4073 else | |
4074 ac_cv_header_stdc=no | |
4075 fi | |
4076 rm -f conftest* | |
4077 | |
4078 fi | |
4079 | |
4080 if test $ac_cv_header_stdc = yes; then | |
4081 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
40056 | 4082 if test "$cross_compiling" = yes; then |
25897 | 4083 : |
4084 else | |
40056 | 4085 cat >conftest.$ac_ext <<_ACEOF |
43924 | 4086 #line 4086 "configure" |
25897 | 4087 #include "confdefs.h" |
4088 #include <ctype.h> | |
40056 | 4089 #if ((' ' & 0x0FF) == 0x020) |
4090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4092 #else | |
4093 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4094 || ('j' <= (c) && (c) <= 'r') \ | |
4095 || ('s' <= (c) && (c) <= 'z')) | |
4096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4097 #endif | |
4098 | |
25897 | 4099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
40056 | 4100 int |
4101 main () | |
4102 { | |
4103 int i; | |
4104 for (i = 0; i < 256; i++) | |
4105 if (XOR (islower (i), ISLOWER (i)) | |
4106 || toupper (i) != TOUPPER (i)) | |
4107 exit(2); | |
4108 exit (0); | |
4109 } | |
4110 _ACEOF | |
4111 rm -f conftest$ac_exeext | |
43924 | 4112 if { (eval echo "$as_me:4112: \"$ac_link\"") >&5 |
4113 (eval $ac_link) 2>&5 | |
4114 ac_status=$? | |
4115 echo "$as_me:4115: \$? = $ac_status" >&5 | |
40056 | 4116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
43924 | 4117 { (eval echo "$as_me:4117: \"$ac_try\"") >&5 |
4118 (eval $ac_try) 2>&5 | |
4119 ac_status=$? | |
4120 echo "$as_me:4120: \$? = $ac_status" >&5 | |
40056 | 4121 (exit $ac_status); }; }; then |
25897 | 4122 : |
4123 else | |
40056 | 4124 echo "$as_me: program exited with status $ac_status" >&5 |
4125 echo "$as_me: failed program was:" >&5 | |
4126 cat conftest.$ac_ext >&5 | |
4127 ac_cv_header_stdc=no | |
4128 fi | |
4129 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4130 fi | |
4131 fi | |
4132 fi | |
43924 | 4133 echo "$as_me:4133: result: $ac_cv_header_stdc" >&5 |
40056 | 4134 echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
25897 | 4135 if test $ac_cv_header_stdc = yes; then |
40056 | 4136 |
4137 cat >>confdefs.h <<\EOF | |
25897 | 4138 #define STDC_HEADERS 1 |
4139 EOF | |
4140 | |
4141 fi | |
4142 | |
43924 | 4143 echo "$as_me:4143: checking whether time.h and sys/time.h may both be included" >&5 |
40056 | 4144 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
4145 if test "${ac_cv_header_time+set}" = set; then | |
4146 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4147 else | |
4148 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 4149 #line 4149 "configure" |
25897 | 4150 #include "confdefs.h" |
4151 #include <sys/types.h> | |
4152 #include <sys/time.h> | |
4153 #include <time.h> | |
40056 | 4154 |
4155 int | |
4156 main () | |
4157 { | |
4158 if ((struct tm *) 0) | |
4159 return 0; | |
4160 ; | |
4161 return 0; | |
4162 } | |
4163 _ACEOF | |
4164 rm -f conftest.$ac_objext | |
43924 | 4165 if { (eval echo "$as_me:4165: \"$ac_compile\"") >&5 |
40056 | 4166 (eval $ac_compile) 2>&5 |
4167 ac_status=$? | |
43924 | 4168 echo "$as_me:4168: \$? = $ac_status" >&5 |
41148 | 4169 (exit $ac_status); } && |
4170 { ac_try='test -s conftest.$ac_objext' | |
43924 | 4171 { (eval echo "$as_me:4171: \"$ac_try\"") >&5 |
4172 (eval $ac_try) 2>&5 | |
4173 ac_status=$? | |
4174 echo "$as_me:4174: \$? = $ac_status" >&5 | |
40056 | 4175 (exit $ac_status); }; }; then |
25897 | 4176 ac_cv_header_time=yes |
4177 else | |
40056 | 4178 echo "$as_me: failed program was:" >&5 |
4179 cat conftest.$ac_ext >&5 | |
4180 ac_cv_header_time=no | |
4181 fi | |
4182 rm -f conftest.$ac_objext conftest.$ac_ext | |
4183 fi | |
43924 | 4184 echo "$as_me:4184: result: $ac_cv_header_time" >&5 |
40056 | 4185 echo "${ECHO_T}$ac_cv_header_time" >&6 |
25897 | 4186 if test $ac_cv_header_time = yes; then |
40056 | 4187 |
4188 cat >>confdefs.h <<\EOF | |
25897 | 4189 #define TIME_WITH_SYS_TIME 1 |
4190 EOF | |
4191 | |
4192 fi | |
4193 | |
43924 | 4194 echo "$as_me:4194: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
40056 | 4195 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6 |
4196 if test "${ac_cv_decl_sys_siglist+set}" = set; then | |
4197 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4198 else | |
4199 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 4200 #line 4200 "configure" |
25897 | 4201 #include "confdefs.h" |
4202 #include <sys/types.h> | |
4203 #include <signal.h> | |
4204 /* NetBSD declares sys_siglist in unistd.h. */ | |
40056 | 4205 #if HAVE_UNISTD_H |
4206 # include <unistd.h> | |
4207 #endif | |
4208 | |
4209 int | |
4210 main () | |
4211 { | |
25897 | 4212 char *msg = *(sys_siglist + 1); |
40056 | 4213 ; |
4214 return 0; | |
4215 } | |
4216 _ACEOF | |
4217 rm -f conftest.$ac_objext | |
43924 | 4218 if { (eval echo "$as_me:4218: \"$ac_compile\"") >&5 |
40056 | 4219 (eval $ac_compile) 2>&5 |
4220 ac_status=$? | |
43924 | 4221 echo "$as_me:4221: \$? = $ac_status" >&5 |
41148 | 4222 (exit $ac_status); } && |
4223 { ac_try='test -s conftest.$ac_objext' | |
43924 | 4224 { (eval echo "$as_me:4224: \"$ac_try\"") >&5 |
4225 (eval $ac_try) 2>&5 | |
4226 ac_status=$? | |
4227 echo "$as_me:4227: \$? = $ac_status" >&5 | |
40056 | 4228 (exit $ac_status); }; }; then |
25897 | 4229 ac_cv_decl_sys_siglist=yes |
4230 else | |
40056 | 4231 echo "$as_me: failed program was:" >&5 |
4232 cat conftest.$ac_ext >&5 | |
4233 ac_cv_decl_sys_siglist=no | |
4234 fi | |
4235 rm -f conftest.$ac_objext conftest.$ac_ext | |
4236 fi | |
43924 | 4237 echo "$as_me:4237: result: $ac_cv_decl_sys_siglist" >&5 |
40056 | 4238 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6 |
25897 | 4239 if test $ac_cv_decl_sys_siglist = yes; then |
40056 | 4240 |
4241 cat >>confdefs.h <<\EOF | |
25897 | 4242 #define SYS_SIGLIST_DECLARED 1 |
4243 EOF | |
4244 | |
4245 fi | |
4246 | |
43924 | 4247 echo "$as_me:4247: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
40056 | 4248 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
4249 if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
4250 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4251 else | |
4252 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 4253 #line 4253 "configure" |
30069 | 4254 #include "confdefs.h" |
4255 #include <sys/types.h> | |
4256 #include <sys/wait.h> | |
4257 #ifndef WEXITSTATUS | |
40056 | 4258 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
30069 | 4259 #endif |
4260 #ifndef WIFEXITED | |
40056 | 4261 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
4262 #endif | |
4263 | |
4264 int | |
4265 main () | |
4266 { | |
4267 int s; | |
4268 wait (&s); | |
4269 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4270 ; | |
4271 return 0; | |
4272 } | |
4273 _ACEOF | |
4274 rm -f conftest.$ac_objext | |
43924 | 4275 if { (eval echo "$as_me:4275: \"$ac_compile\"") >&5 |
40056 | 4276 (eval $ac_compile) 2>&5 |
4277 ac_status=$? | |
43924 | 4278 echo "$as_me:4278: \$? = $ac_status" >&5 |
41148 | 4279 (exit $ac_status); } && |
4280 { ac_try='test -s conftest.$ac_objext' | |
43924 | 4281 { (eval echo "$as_me:4281: \"$ac_try\"") >&5 |
4282 (eval $ac_try) 2>&5 | |
4283 ac_status=$? | |
4284 echo "$as_me:4284: \$? = $ac_status" >&5 | |
40056 | 4285 (exit $ac_status); }; }; then |
30069 | 4286 ac_cv_header_sys_wait_h=yes |
4287 else | |
40056 | 4288 echo "$as_me: failed program was:" >&5 |
4289 cat conftest.$ac_ext >&5 | |
4290 ac_cv_header_sys_wait_h=no | |
4291 fi | |
4292 rm -f conftest.$ac_objext conftest.$ac_ext | |
4293 fi | |
43924 | 4294 echo "$as_me:4294: result: $ac_cv_header_sys_wait_h" >&5 |
40056 | 4295 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
30069 | 4296 if test $ac_cv_header_sys_wait_h = yes; then |
40056 | 4297 |
4298 cat >>confdefs.h <<\EOF | |
30069 | 4299 #define HAVE_SYS_WAIT_H 1 |
4300 EOF | |
4301 | |
4302 fi | |
4303 | |
43924 | 4304 echo "$as_me:4304: checking for struct utimbuf" >&5 |
40056 | 4305 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 |
4306 if test "${emacs_cv_struct_utimbuf+set}" = set; then | |
4307 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4308 else | |
4309 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 4310 #line 4310 "configure" |
25897 | 4311 #include "confdefs.h" |
4312 #ifdef TIME_WITH_SYS_TIME | |
4313 #include <sys/time.h> | |
4314 #include <time.h> | |
4315 #else | |
4316 #ifdef HAVE_SYS_TIME_H | |
4317 #include <sys/time.h> | |
4318 #else | |
4319 #include <time.h> | |
4320 #endif | |
4321 #endif | |
4322 #ifdef HAVE_UTIME_H | |
4323 #include <utime.h> | |
4324 #endif | |
40056 | 4325 int |
4326 main () | |
4327 { | |
25897 | 4328 static struct utimbuf x; x.actime = x.modtime; |
40056 | 4329 ; |
4330 return 0; | |
4331 } | |
4332 _ACEOF | |
4333 rm -f conftest.$ac_objext | |
43924 | 4334 if { (eval echo "$as_me:4334: \"$ac_compile\"") >&5 |
40056 | 4335 (eval $ac_compile) 2>&5 |
4336 ac_status=$? | |
43924 | 4337 echo "$as_me:4337: \$? = $ac_status" >&5 |
41148 | 4338 (exit $ac_status); } && |
4339 { ac_try='test -s conftest.$ac_objext' | |
43924 | 4340 { (eval echo "$as_me:4340: \"$ac_try\"") >&5 |
4341 (eval $ac_try) 2>&5 | |
4342 ac_status=$? | |
4343 echo "$as_me:4343: \$? = $ac_status" >&5 | |
40056 | 4344 (exit $ac_status); }; }; then |
25897 | 4345 emacs_cv_struct_utimbuf=yes |
4346 else | |
40056 | 4347 echo "$as_me: failed program was:" >&5 |
4348 cat conftest.$ac_ext >&5 | |
4349 emacs_cv_struct_utimbuf=no | |
4350 fi | |
4351 rm -f conftest.$ac_objext conftest.$ac_ext | |
4352 fi | |
43924 | 4353 echo "$as_me:4353: result: $emacs_cv_struct_utimbuf" >&5 |
40056 | 4354 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 |
25897 | 4355 if test $emacs_cv_struct_utimbuf = yes; then |
40056 | 4356 cat >>confdefs.h <<\EOF |
25897 | 4357 #define HAVE_STRUCT_UTIMBUF 1 |
4358 EOF | |
4359 | |
4360 fi | |
4361 | |
43924 | 4362 echo "$as_me:4362: checking return type of signal handlers" >&5 |
40056 | 4363 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
4364 if test "${ac_cv_type_signal+set}" = set; then | |
4365 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4366 else | |
4367 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 4368 #line 4368 "configure" |
25897 | 4369 #include "confdefs.h" |
4370 #include <sys/types.h> | |
4371 #include <signal.h> | |
4372 #ifdef signal | |
40056 | 4373 # undef signal |
25897 | 4374 #endif |
4375 #ifdef __cplusplus | |
4376 extern "C" void (*signal (int, void (*)(int)))(int); | |
4377 #else | |
4378 void (*signal ()) (); | |
4379 #endif | |
4380 | |
40056 | 4381 int |
4382 main () | |
4383 { | |
25897 | 4384 int i; |
40056 | 4385 ; |
4386 return 0; | |
4387 } | |
4388 _ACEOF | |
4389 rm -f conftest.$ac_objext | |
43924 | 4390 if { (eval echo "$as_me:4390: \"$ac_compile\"") >&5 |
40056 | 4391 (eval $ac_compile) 2>&5 |
4392 ac_status=$? | |
43924 | 4393 echo "$as_me:4393: \$? = $ac_status" >&5 |
41148 | 4394 (exit $ac_status); } && |
4395 { ac_try='test -s conftest.$ac_objext' | |
43924 | 4396 { (eval echo "$as_me:4396: \"$ac_try\"") >&5 |
4397 (eval $ac_try) 2>&5 | |
4398 ac_status=$? | |
4399 echo "$as_me:4399: \$? = $ac_status" >&5 | |
40056 | 4400 (exit $ac_status); }; }; then |
25897 | 4401 ac_cv_type_signal=void |
4402 else | |
40056 | 4403 echo "$as_me: failed program was:" >&5 |
4404 cat conftest.$ac_ext >&5 | |
4405 ac_cv_type_signal=int | |
4406 fi | |
4407 rm -f conftest.$ac_objext conftest.$ac_ext | |
4408 fi | |
43924 | 4409 echo "$as_me:4409: result: $ac_cv_type_signal" >&5 |
40056 | 4410 echo "${ECHO_T}$ac_cv_type_signal" >&6 |
4411 | |
4412 cat >>confdefs.h <<EOF | |
25897 | 4413 #define RETSIGTYPE $ac_cv_type_signal |
4414 EOF | |
4415 | |
43924 | 4416 echo "$as_me:4416: checking for speed_t" >&5 |
40056 | 4417 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 |
4418 if test "${emacs_cv_speed_t+set}" = set; then | |
4419 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4420 else | |
4421 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 4422 #line 4422 "configure" |
29254 | 4423 #include "confdefs.h" |
4424 #include <termios.h> | |
40056 | 4425 int |
4426 main () | |
4427 { | |
29254 | 4428 speed_t x = 1; |
40056 | 4429 ; |
4430 return 0; | |
4431 } | |
4432 _ACEOF | |
4433 rm -f conftest.$ac_objext | |
43924 | 4434 if { (eval echo "$as_me:4434: \"$ac_compile\"") >&5 |
40056 | 4435 (eval $ac_compile) 2>&5 |
4436 ac_status=$? | |
43924 | 4437 echo "$as_me:4437: \$? = $ac_status" >&5 |
41148 | 4438 (exit $ac_status); } && |
4439 { ac_try='test -s conftest.$ac_objext' | |
43924 | 4440 { (eval echo "$as_me:4440: \"$ac_try\"") >&5 |
4441 (eval $ac_try) 2>&5 | |
4442 ac_status=$? | |
4443 echo "$as_me:4443: \$? = $ac_status" >&5 | |
40056 | 4444 (exit $ac_status); }; }; then |
29254 | 4445 emacs_cv_speed_t=yes |
4446 else | |
40056 | 4447 echo "$as_me: failed program was:" >&5 |
4448 cat conftest.$ac_ext >&5 | |
4449 emacs_cv_speed_t=no | |
4450 fi | |
4451 rm -f conftest.$ac_objext conftest.$ac_ext | |
4452 fi | |
43924 | 4453 echo "$as_me:4453: result: $emacs_cv_speed_t" >&5 |
40056 | 4454 echo "${ECHO_T}$emacs_cv_speed_t" >&6 |
29254 | 4455 if test $emacs_cv_speed_t = yes; then |
40056 | 4456 cat >>confdefs.h <<\EOF |
29254 | 4457 #define HAVE_SPEED_T 1 |
4458 EOF | |
4459 | |
4460 fi | |
4461 | |
43924 | 4462 echo "$as_me:4462: checking for struct timeval" >&5 |
40056 | 4463 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 |
4464 if test "${emacs_cv_struct_timeval+set}" = set; then | |
4465 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4466 else | |
4467 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 4468 #line 4468 "configure" |
25897 | 4469 #include "confdefs.h" |
4470 #ifdef TIME_WITH_SYS_TIME | |
4471 #include <sys/time.h> | |
4472 #include <time.h> | |
4473 #else | |
4474 #ifdef HAVE_SYS_TIME_H | |
4475 #include <sys/time.h> | |
4476 #else | |
4477 #include <time.h> | |
4478 #endif | |
4479 #endif | |
40056 | 4480 int |
4481 main () | |
4482 { | |
25897 | 4483 static struct timeval x; x.tv_sec = x.tv_usec; |
40056 | 4484 ; |
4485 return 0; | |
4486 } | |
4487 _ACEOF | |
4488 rm -f conftest.$ac_objext | |
43924 | 4489 if { (eval echo "$as_me:4489: \"$ac_compile\"") >&5 |
40056 | 4490 (eval $ac_compile) 2>&5 |
4491 ac_status=$? | |
43924 | 4492 echo "$as_me:4492: \$? = $ac_status" >&5 |
41148 | 4493 (exit $ac_status); } && |
4494 { ac_try='test -s conftest.$ac_objext' | |
43924 | 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 | |
40056 | 4499 (exit $ac_status); }; }; then |
25897 | 4500 emacs_cv_struct_timeval=yes |
4501 else | |
40056 | 4502 echo "$as_me: failed program was:" >&5 |
4503 cat conftest.$ac_ext >&5 | |
4504 emacs_cv_struct_timeval=no | |
4505 fi | |
4506 rm -f conftest.$ac_objext conftest.$ac_ext | |
4507 fi | |
43924 | 4508 echo "$as_me:4508: result: $emacs_cv_struct_timeval" >&5 |
40056 | 4509 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 |
25897 | 4510 HAVE_TIMEVAL=$emacs_cv_struct_timeval |
4511 if test $emacs_cv_struct_timeval = yes; then | |
40056 | 4512 cat >>confdefs.h <<\EOF |
25897 | 4513 #define HAVE_TIMEVAL 1 |
4514 EOF | |
4515 | |
4516 fi | |
4517 | |
43924 | 4518 echo "$as_me:4518: checking for struct exception" >&5 |
40056 | 4519 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 |
4520 if test "${emacs_cv_struct_exception+set}" = set; then | |
4521 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4522 else | |
4523 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 4524 #line 4524 "configure" |
29388 | 4525 #include "confdefs.h" |
4526 #include <math.h> | |
40056 | 4527 int |
4528 main () | |
4529 { | |
29388 | 4530 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
40056 | 4531 ; |
4532 return 0; | |
4533 } | |
4534 _ACEOF | |
4535 rm -f conftest.$ac_objext | |
43924 | 4536 if { (eval echo "$as_me:4536: \"$ac_compile\"") >&5 |
40056 | 4537 (eval $ac_compile) 2>&5 |
4538 ac_status=$? | |
43924 | 4539 echo "$as_me:4539: \$? = $ac_status" >&5 |
41148 | 4540 (exit $ac_status); } && |
4541 { ac_try='test -s conftest.$ac_objext' | |
43924 | 4542 { (eval echo "$as_me:4542: \"$ac_try\"") >&5 |
4543 (eval $ac_try) 2>&5 | |
4544 ac_status=$? | |
4545 echo "$as_me:4545: \$? = $ac_status" >&5 | |
40056 | 4546 (exit $ac_status); }; }; then |
29388 | 4547 emacs_cv_struct_exception=yes |
4548 else | |
40056 | 4549 echo "$as_me: failed program was:" >&5 |
4550 cat conftest.$ac_ext >&5 | |
4551 emacs_cv_struct_exception=no | |
4552 fi | |
4553 rm -f conftest.$ac_objext conftest.$ac_ext | |
4554 fi | |
43924 | 4555 echo "$as_me:4555: result: $emacs_cv_struct_exception" >&5 |
40056 | 4556 echo "${ECHO_T}$emacs_cv_struct_exception" >&6 |
29388 | 4557 HAVE_EXCEPTION=$emacs_cv_struct_exception |
4558 if test $emacs_cv_struct_exception != yes; then | |
40056 | 4559 cat >>confdefs.h <<\EOF |
29388 | 4560 #define NO_MATHERR 1 |
4561 EOF | |
4562 | |
4563 fi | |
4564 | |
43924 | 4565 echo "$as_me:4565: checking whether struct tm is in sys/time.h or time.h" >&5 |
40056 | 4566 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
4567 if test "${ac_cv_struct_tm+set}" = set; then | |
4568 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4569 else | |
4570 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 4571 #line 4571 "configure" |
25897 | 4572 #include "confdefs.h" |
4573 #include <sys/types.h> | |
4574 #include <time.h> | |
40056 | 4575 |
4576 int | |
4577 main () | |
4578 { | |
25897 | 4579 struct tm *tp; tp->tm_sec; |
40056 | 4580 ; |
4581 return 0; | |
4582 } | |
4583 _ACEOF | |
4584 rm -f conftest.$ac_objext | |
43924 | 4585 if { (eval echo "$as_me:4585: \"$ac_compile\"") >&5 |
40056 | 4586 (eval $ac_compile) 2>&5 |
4587 ac_status=$? | |
43924 | 4588 echo "$as_me:4588: \$? = $ac_status" >&5 |
41148 | 4589 (exit $ac_status); } && |
4590 { ac_try='test -s conftest.$ac_objext' | |
43924 | 4591 { (eval echo "$as_me:4591: \"$ac_try\"") >&5 |
4592 (eval $ac_try) 2>&5 | |
4593 ac_status=$? | |
4594 echo "$as_me:4594: \$? = $ac_status" >&5 | |
40056 | 4595 (exit $ac_status); }; }; then |
25897 | 4596 ac_cv_struct_tm=time.h |
4597 else | |
40056 | 4598 echo "$as_me: failed program was:" >&5 |
4599 cat conftest.$ac_ext >&5 | |
4600 ac_cv_struct_tm=sys/time.h | |
4601 fi | |
4602 rm -f conftest.$ac_objext conftest.$ac_ext | |
4603 fi | |
43924 | 4604 echo "$as_me:4604: result: $ac_cv_struct_tm" >&5 |
40056 | 4605 echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
25897 | 4606 if test $ac_cv_struct_tm = sys/time.h; then |
40056 | 4607 |
4608 cat >>confdefs.h <<\EOF | |
25897 | 4609 #define TM_IN_SYS_TIME 1 |
4610 EOF | |
4611 | |
4612 fi | |
4613 | |
43924 | 4614 echo "$as_me:4614: checking for struct tm.tm_zone" >&5 |
40056 | 4615 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
4616 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
4617 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4618 else | |
4619 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 4620 #line 4620 "configure" |
25897 | 4621 #include "confdefs.h" |
4622 #include <sys/types.h> | |
4623 #include <$ac_cv_struct_tm> | |
40056 | 4624 |
4625 int | |
4626 main () | |
4627 { | |
4628 static struct tm ac_aggr; | |
4629 if (ac_aggr.tm_zone) | |
4630 return 0; | |
4631 ; | |
4632 return 0; | |
4633 } | |
4634 _ACEOF | |
4635 rm -f conftest.$ac_objext | |
43924 | 4636 if { (eval echo "$as_me:4636: \"$ac_compile\"") >&5 |
40056 | 4637 (eval $ac_compile) 2>&5 |
4638 ac_status=$? | |
43924 | 4639 echo "$as_me:4639: \$? = $ac_status" >&5 |
41148 | 4640 (exit $ac_status); } && |
4641 { ac_try='test -s conftest.$ac_objext' | |
43924 | 4642 { (eval echo "$as_me:4642: \"$ac_try\"") >&5 |
4643 (eval $ac_try) 2>&5 | |
4644 ac_status=$? | |
4645 echo "$as_me:4645: \$? = $ac_status" >&5 | |
40056 | 4646 (exit $ac_status); }; }; then |
4647 ac_cv_member_struct_tm_tm_zone=yes | |
4648 else | |
4649 echo "$as_me: failed program was:" >&5 | |
4650 cat conftest.$ac_ext >&5 | |
4651 ac_cv_member_struct_tm_tm_zone=no | |
4652 fi | |
4653 rm -f conftest.$ac_objext conftest.$ac_ext | |
4654 fi | |
43924 | 4655 echo "$as_me:4655: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
40056 | 4656 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
4657 if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
4658 | |
4659 cat >>confdefs.h <<EOF | |
4660 #define HAVE_STRUCT_TM_TM_ZONE 1 | |
4661 EOF | |
4662 | |
4663 fi | |
4664 | |
4665 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
4666 | |
4667 cat >>confdefs.h <<\EOF | |
25897 | 4668 #define HAVE_TM_ZONE 1 |
4669 EOF | |
4670 | |
4671 else | |
43924 | 4672 echo "$as_me:4672: checking for tzname" >&5 |
40056 | 4673 echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
4674 if test "${ac_cv_var_tzname+set}" = set; then | |
4675 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4676 else | |
4677 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 4678 #line 4678 "configure" |
25897 | 4679 #include "confdefs.h" |
4680 #include <time.h> | |
4681 #ifndef tzname /* For SGI. */ | |
4682 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
4683 #endif | |
40056 | 4684 |
4685 int | |
4686 main () | |
4687 { | |
25897 | 4688 atoi(*tzname); |
40056 | 4689 ; |
4690 return 0; | |
4691 } | |
4692 _ACEOF | |
4693 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 4694 if { (eval echo "$as_me:4694: \"$ac_link\"") >&5 |
4695 (eval $ac_link) 2>&5 | |
4696 ac_status=$? | |
4697 echo "$as_me:4697: \$? = $ac_status" >&5 | |
41148 | 4698 (exit $ac_status); } && |
4699 { ac_try='test -s conftest$ac_exeext' | |
43924 | 4700 { (eval echo "$as_me:4700: \"$ac_try\"") >&5 |
4701 (eval $ac_try) 2>&5 | |
4702 ac_status=$? | |
4703 echo "$as_me:4703: \$? = $ac_status" >&5 | |
40056 | 4704 (exit $ac_status); }; }; then |
25897 | 4705 ac_cv_var_tzname=yes |
4706 else | |
40056 | 4707 echo "$as_me: failed program was:" >&5 |
4708 cat conftest.$ac_ext >&5 | |
4709 ac_cv_var_tzname=no | |
4710 fi | |
4711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4712 fi | |
43924 | 4713 echo "$as_me:4713: result: $ac_cv_var_tzname" >&5 |
40056 | 4714 echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
25897 | 4715 if test $ac_cv_var_tzname = yes; then |
40056 | 4716 |
4717 cat >>confdefs.h <<\EOF | |
25897 | 4718 #define HAVE_TZNAME 1 |
4719 EOF | |
4720 | |
4721 fi | |
4722 fi | |
4723 | |
43924 | 4724 echo "$as_me:4724: checking for tm_gmtoff in struct tm" >&5 |
40056 | 4725 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 |
4726 if test "${emacs_cv_tm_gmtoff+set}" = set; then | |
4727 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4728 else | |
4729 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 4730 #line 4730 "configure" |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4731 #include "confdefs.h" |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4732 #include <time.h> |
40056 | 4733 int |
4734 main () | |
4735 { | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4736 struct tm t; t.tm_gmtoff = 0 |
40056 | 4737 ; |
4738 return 0; | |
4739 } | |
4740 _ACEOF | |
4741 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 4742 if { (eval echo "$as_me:4742: \"$ac_link\"") >&5 |
4743 (eval $ac_link) 2>&5 | |
4744 ac_status=$? | |
4745 echo "$as_me:4745: \$? = $ac_status" >&5 | |
41148 | 4746 (exit $ac_status); } && |
4747 { ac_try='test -s conftest$ac_exeext' | |
43924 | 4748 { (eval echo "$as_me:4748: \"$ac_try\"") >&5 |
4749 (eval $ac_try) 2>&5 | |
4750 ac_status=$? | |
4751 echo "$as_me:4751: \$? = $ac_status" >&5 | |
40056 | 4752 (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
|
4753 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
|
4754 else |
40056 | 4755 echo "$as_me: failed program was:" >&5 |
4756 cat conftest.$ac_ext >&5 | |
4757 emacs_cv_tm_gmtoff=no | |
4758 fi | |
4759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4760 fi | |
43924 | 4761 echo "$as_me:4761: result: $emacs_cv_tm_gmtoff" >&5 |
40056 | 4762 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
|
4763 if test $emacs_cv_tm_gmtoff = yes; then |
40056 | 4764 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
|
4765 #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
|
4766 EOF |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4767 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4768 fi |
25897 | 4769 |
43924 | 4770 echo "$as_me:4770: checking for $CC option to accept ANSI C" >&5 |
40056 | 4771 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
4772 if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4773 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28060 | 4774 else |
4775 ac_cv_prog_cc_stdc=no | |
40056 | 4776 ac_save_CC=$CC |
4777 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 4778 #line 4778 "configure" |
28060 | 4779 #include "confdefs.h" |
4780 #include <stdarg.h> | |
4781 #include <stdio.h> | |
4782 #include <sys/types.h> | |
4783 #include <sys/stat.h> | |
4784 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4785 struct buf { int x; }; | |
4786 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4787 static char *e (p, i) | |
4788 char **p; | |
4789 int i; | |
4790 { | |
4791 return p[i]; | |
4792 } | |
4793 static char *f (char * (*g) (char **, int), char **p, ...) | |
4794 { | |
4795 char *s; | |
4796 va_list v; | |
4797 va_start (v,p); | |
4798 s = g (p, va_arg (v,int)); | |
4799 va_end (v); | |
4800 return s; | |
4801 } | |
4802 int test (int i, double x); | |
4803 struct s1 {int (*f) (int a);}; | |
4804 struct s2 {int (*f) (double a);}; | |
4805 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4806 int argc; | |
4807 char **argv; | |
40056 | 4808 int |
4809 main () | |
4810 { | |
28060 | 4811 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
40056 | 4812 ; |
4813 return 0; | |
4814 } | |
4815 _ACEOF | |
4816 # Don't try gcc -ansi; that turns off useful extensions and | |
4817 # breaks some systems' header files. | |
4818 # AIX -qlanglvl=ansi | |
4819 # Ultrix and OSF/1 -std1 | |
4820 # HP-UX 10.20 and later -Ae | |
4821 # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4822 # SVR4 -Xc -D__EXTENSIONS__ | |
4823 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4824 do | |
4825 CC="$ac_save_CC $ac_arg" | |
4826 rm -f conftest.$ac_objext | |
43924 | 4827 if { (eval echo "$as_me:4827: \"$ac_compile\"") >&5 |
40056 | 4828 (eval $ac_compile) 2>&5 |
4829 ac_status=$? | |
43924 | 4830 echo "$as_me:4830: \$? = $ac_status" >&5 |
41148 | 4831 (exit $ac_status); } && |
4832 { ac_try='test -s conftest.$ac_objext' | |
43924 | 4833 { (eval echo "$as_me:4833: \"$ac_try\"") >&5 |
4834 (eval $ac_try) 2>&5 | |
4835 ac_status=$? | |
4836 echo "$as_me:4836: \$? = $ac_status" >&5 | |
40056 | 4837 (exit $ac_status); }; }; then |
4838 ac_cv_prog_cc_stdc=$ac_arg | |
4839 break | |
4840 else | |
4841 echo "$as_me: failed program was:" >&5 | |
4842 cat conftest.$ac_ext >&5 | |
4843 fi | |
4844 rm -f conftest.$ac_objext | |
28060 | 4845 done |
40056 | 4846 rm -f conftest.$ac_ext conftest.$ac_objext |
4847 CC=$ac_save_CC | |
28060 | 4848 |
4849 fi | |
4850 | |
4851 case "x$ac_cv_prog_cc_stdc" in | |
4852 x|xno) | |
43924 | 4853 echo "$as_me:4853: result: none needed" >&5 |
40056 | 4854 echo "${ECHO_T}none needed" >&6 ;; |
28060 | 4855 *) |
43924 | 4856 echo "$as_me:4856: result: $ac_cv_prog_cc_stdc" >&5 |
40056 | 4857 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
28060 | 4858 CC="$CC $ac_cv_prog_cc_stdc" ;; |
4859 esac | |
4860 | |
43924 | 4861 echo "$as_me:4861: checking for function prototypes" >&5 |
40056 | 4862 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
28060 | 4863 if test "$ac_cv_prog_cc_stdc" != no; then |
43924 | 4864 echo "$as_me:4864: result: yes" >&5 |
40056 | 4865 echo "${ECHO_T}yes" >&6 |
4866 | |
4867 cat >>confdefs.h <<\EOF | |
28060 | 4868 #define PROTOTYPES 1 |
4869 EOF | |
4870 | |
4871 else | |
43924 | 4872 echo "$as_me:4872: result: no" >&5 |
40056 | 4873 echo "${ECHO_T}no" >&6 |
4874 fi | |
4875 | |
43924 | 4876 echo "$as_me:4876: checking for working volatile" >&5 |
40056 | 4877 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
4878 if test "${ac_cv_c_volatile+set}" = set; then | |
4879 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4880 else | |
4881 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 4882 #line 4882 "configure" |
40056 | 4883 #include "confdefs.h" |
4884 | |
4885 int | |
4886 main () | |
4887 { | |
28060 | 4888 |
4889 volatile int x; | |
4890 int * volatile y; | |
40056 | 4891 ; |
4892 return 0; | |
4893 } | |
4894 _ACEOF | |
4895 rm -f conftest.$ac_objext | |
43924 | 4896 if { (eval echo "$as_me:4896: \"$ac_compile\"") >&5 |
40056 | 4897 (eval $ac_compile) 2>&5 |
4898 ac_status=$? | |
43924 | 4899 echo "$as_me:4899: \$? = $ac_status" >&5 |
41148 | 4900 (exit $ac_status); } && |
4901 { ac_try='test -s conftest.$ac_objext' | |
43924 | 4902 { (eval echo "$as_me:4902: \"$ac_try\"") >&5 |
4903 (eval $ac_try) 2>&5 | |
4904 ac_status=$? | |
4905 echo "$as_me:4905: \$? = $ac_status" >&5 | |
40056 | 4906 (exit $ac_status); }; }; then |
28060 | 4907 ac_cv_c_volatile=yes |
4908 else | |
40056 | 4909 echo "$as_me: failed program was:" >&5 |
4910 cat conftest.$ac_ext >&5 | |
4911 ac_cv_c_volatile=no | |
4912 fi | |
4913 rm -f conftest.$ac_objext conftest.$ac_ext | |
4914 fi | |
43924 | 4915 echo "$as_me:4915: result: $ac_cv_c_volatile" >&5 |
40056 | 4916 echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
28060 | 4917 if test $ac_cv_c_volatile = no; then |
40056 | 4918 |
4919 cat >>confdefs.h <<\EOF | |
4920 #define volatile | |
4921 EOF | |
4922 | |
4923 fi | |
4924 | |
43924 | 4925 echo "$as_me:4925: checking for an ANSI C-conforming const" >&5 |
40056 | 4926 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
4927 if test "${ac_cv_c_const+set}" = set; then | |
4928 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4929 else | |
4930 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 4931 #line 4931 "configure" |
40056 | 4932 #include "confdefs.h" |
4933 | |
4934 int | |
4935 main () | |
4936 { | |
4937 /* FIXME: Include the comments suggested by Paul. */ | |
4938 #ifndef __cplusplus | |
4939 /* Ultrix mips cc rejects this. */ | |
4940 typedef int charset[2]; | |
4941 const charset x; | |
4942 /* SunOS 4.1.1 cc rejects this. */ | |
4943 char const *const *ccp; | |
4944 char **p; | |
4945 /* NEC SVR4.0.2 mips cc rejects this. */ | |
4946 struct point {int x, y;}; | |
4947 static struct point const zero = {0,0}; | |
4948 /* AIX XL C 1.02.0.0 rejects this. | |
4949 It does not let you subtract one const X* pointer from another in | |
4950 an arm of an if-expression whose if-part is not a constant | |
4951 expression */ | |
4952 const char *g = "string"; | |
4953 ccp = &g + (g ? g-g : 0); | |
4954 /* HPUX 7.0 cc rejects these. */ | |
4955 ++ccp; | |
4956 p = (char**) ccp; | |
4957 ccp = (char const *const *) p; | |
4958 { /* SCO 3.2v4 cc rejects this. */ | |
4959 char *t; | |
4960 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4961 | |
4962 *t++ = 0; | |
4963 } | |
4964 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4965 int x[] = {25, 17}; | |
4966 const int *foo = &x[0]; | |
4967 ++foo; | |
4968 } | |
4969 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4970 typedef const int *iptr; | |
4971 iptr p = 0; | |
4972 ++p; | |
4973 } | |
4974 { /* AIX XL C 1.02.0.0 rejects this saying | |
4975 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4976 struct s { int j; const int *ap[3]; }; | |
4977 struct s *b; b->j = 5; | |
4978 } | |
4979 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4980 const int foo = 10; | |
4981 } | |
4982 #endif | |
4983 | |
4984 ; | |
4985 return 0; | |
4986 } | |
4987 _ACEOF | |
4988 rm -f conftest.$ac_objext | |
43924 | 4989 if { (eval echo "$as_me:4989: \"$ac_compile\"") >&5 |
40056 | 4990 (eval $ac_compile) 2>&5 |
4991 ac_status=$? | |
43924 | 4992 echo "$as_me:4992: \$? = $ac_status" >&5 |
41148 | 4993 (exit $ac_status); } && |
4994 { ac_try='test -s conftest.$ac_objext' | |
43924 | 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 | |
40056 | 4999 (exit $ac_status); }; }; then |
25897 | 5000 ac_cv_c_const=yes |
5001 else | |
40056 | 5002 echo "$as_me: failed program was:" >&5 |
5003 cat conftest.$ac_ext >&5 | |
5004 ac_cv_c_const=no | |
5005 fi | |
5006 rm -f conftest.$ac_objext conftest.$ac_ext | |
5007 fi | |
43924 | 5008 echo "$as_me:5008: result: $ac_cv_c_const" >&5 |
40056 | 5009 echo "${ECHO_T}$ac_cv_c_const" >&6 |
25897 | 5010 if test $ac_cv_c_const = no; then |
40056 | 5011 |
5012 cat >>confdefs.h <<\EOF | |
5013 #define const | |
5014 EOF | |
5015 | |
5016 fi | |
5017 | |
43924 | 5018 echo "$as_me:5018: checking for void * support" >&5 |
40056 | 5019 echo $ECHO_N "checking for void * support... $ECHO_C" >&6 |
5020 if test "${emacs_cv_void_star+set}" = set; then | |
5021 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5022 else | |
5023 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 5024 #line 5024 "configure" |
40056 | 5025 #include "confdefs.h" |
5026 | |
5027 int | |
5028 main () | |
5029 { | |
28060 | 5030 void * foo; |
40056 | 5031 ; |
5032 return 0; | |
5033 } | |
5034 _ACEOF | |
5035 rm -f conftest.$ac_objext | |
43924 | 5036 if { (eval echo "$as_me:5036: \"$ac_compile\"") >&5 |
40056 | 5037 (eval $ac_compile) 2>&5 |
5038 ac_status=$? | |
43924 | 5039 echo "$as_me:5039: \$? = $ac_status" >&5 |
41148 | 5040 (exit $ac_status); } && |
5041 { ac_try='test -s conftest.$ac_objext' | |
43924 | 5042 { (eval echo "$as_me:5042: \"$ac_try\"") >&5 |
5043 (eval $ac_try) 2>&5 | |
5044 ac_status=$? | |
5045 echo "$as_me:5045: \$? = $ac_status" >&5 | |
40056 | 5046 (exit $ac_status); }; }; then |
28060 | 5047 emacs_cv_void_star=yes |
5048 else | |
40056 | 5049 echo "$as_me: failed program was:" >&5 |
5050 cat conftest.$ac_ext >&5 | |
5051 emacs_cv_void_star=no | |
5052 fi | |
5053 rm -f conftest.$ac_objext conftest.$ac_ext | |
5054 fi | |
43924 | 5055 echo "$as_me:5055: result: $emacs_cv_void_star" >&5 |
40056 | 5056 echo "${ECHO_T}$emacs_cv_void_star" >&6 |
28060 | 5057 if test $emacs_cv_void_star = yes; then |
40056 | 5058 cat >>confdefs.h <<\EOF |
28060 | 5059 #define POINTER_TYPE void |
5060 EOF | |
5061 | |
5062 else | |
40056 | 5063 cat >>confdefs.h <<\EOF |
28060 | 5064 #define POINTER_TYPE char |
5065 EOF | |
5066 | |
5067 fi | |
25897 | 5068 |
43924 | 5069 echo "$as_me:5069: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
40056 | 5070 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
5071 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
5072 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
5073 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5074 else | |
5075 cat >conftest.make <<\EOF | |
25897 | 5076 all: |
5077 @echo 'ac_maketemp="${MAKE}"' | |
5078 EOF | |
5079 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
40056 | 5080 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
25897 | 5081 if test -n "$ac_maketemp"; then |
5082 eval ac_cv_prog_make_${ac_make}_set=yes | |
5083 else | |
5084 eval ac_cv_prog_make_${ac_make}_set=no | |
5085 fi | |
40056 | 5086 rm -f conftest.make |
25897 | 5087 fi |
5088 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
43924 | 5089 echo "$as_me:5089: result: yes" >&5 |
40056 | 5090 echo "${ECHO_T}yes" >&6 |
25897 | 5091 SET_MAKE= |
5092 else | |
43924 | 5093 echo "$as_me:5093: result: no" >&5 |
40056 | 5094 echo "${ECHO_T}no" >&6 |
25897 | 5095 SET_MAKE="MAKE=${MAKE-make}" |
5096 fi | |
5097 | |
43924 | 5098 echo "$as_me:5098: checking for long file names" >&5 |
40056 | 5099 echo $ECHO_N "checking for long file names... $ECHO_C" >&6 |
5100 if test "${ac_cv_sys_long_file_names+set}" = set; then | |
5101 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 5102 else |
5103 ac_cv_sys_long_file_names=yes | |
5104 # Test for long file names in all the places we know might matter: | |
5105 # . the current directory, where building will happen | |
5106 # $prefix/lib where we will be installing things | |
5107 # $exec_prefix/lib likewise | |
5108 # eval it to expand exec_prefix. | |
5109 # $TMPDIR if set, where it might want to write temporary files | |
5110 # if $TMPDIR is not set: | |
5111 # /tmp where it might want to write temporary files | |
5112 # /var/tmp likewise | |
5113 # /usr/tmp likewise | |
5114 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
40056 | 5115 ac_tmpdirs=$TMPDIR |
25897 | 5116 else |
5117 ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
5118 fi | |
5119 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
5120 test -d $ac_dir || continue | |
5121 test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
40056 | 5122 ac_xdir=$ac_dir/cf$$ |
5123 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue | |
5124 ac_tf1=$ac_xdir/conftest9012345 | |
5125 ac_tf2=$ac_xdir/conftest9012346 | |
5126 (echo 1 >$ac_tf1) 2>/dev/null | |
5127 (echo 2 >$ac_tf2) 2>/dev/null | |
5128 ac_val=`cat $ac_tf1 2>/dev/null` | |
5129 if test ! -f $ac_tf1 || test "$ac_val" != 1; then | |
25897 | 5130 ac_cv_sys_long_file_names=no |
40056 | 5131 rm -rf $ac_xdir 2>/dev/null |
25897 | 5132 break |
5133 fi | |
40056 | 5134 rm -rf $ac_xdir 2>/dev/null |
25897 | 5135 done |
5136 fi | |
43924 | 5137 echo "$as_me:5137: result: $ac_cv_sys_long_file_names" >&5 |
40056 | 5138 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 |
25897 | 5139 if test $ac_cv_sys_long_file_names = yes; then |
40056 | 5140 |
5141 cat >>confdefs.h <<\EOF | |
25897 | 5142 #define HAVE_LONG_FILE_NAMES 1 |
5143 EOF | |
5144 | |
5145 fi | |
5146 | |
5147 #### Choose a window system. | |
5148 | |
43924 | 5149 echo "$as_me:5149: checking for X" >&5 |
40056 | 5150 echo $ECHO_N "checking for X... $ECHO_C" >&6 |
25897 | 5151 |
5152 # Check whether --with-x or --without-x was given. | |
5153 if test "${with_x+set}" = set; then | |
5154 withval="$with_x" | |
40056 | 5155 |
5156 fi; | |
25897 | 5157 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
5158 if test "x$with_x" = xno; then | |
5159 # The user explicitly disabled X. | |
5160 have_x=disabled | |
5161 else | |
5162 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
5163 # Both variables are already set. | |
5164 have_x=yes | |
5165 else | |
40056 | 5166 if test "${ac_cv_have_x+set}" = set; then |
5167 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 5168 else |
5169 # One or both of the vars are not set, and there is no cached value. | |
40056 | 5170 ac_x_includes=no ac_x_libraries=no |
5171 rm -fr conftest.dir | |
5172 if mkdir conftest.dir; then | |
5173 cd conftest.dir | |
25897 | 5174 # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
40056 | 5175 cat >Imakefile <<'EOF' |
25897 | 5176 acfindx: |
5177 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
5178 EOF | |
5179 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
5180 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5181 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
5182 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
5183 for ac_extension in a so sl; do | |
5184 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
40056 | 5185 test -f $ac_im_libdir/libX11.$ac_extension; then |
25897 | 5186 ac_im_usrlibdir=$ac_im_libdir; break |
5187 fi | |
5188 done | |
5189 # Screen out bogus values from the imake configuration. They are | |
5190 # bogus both because they are the default anyway, and because | |
5191 # using them would break gcc on systems where it needs fixed includes. | |
40056 | 5192 case $ac_im_incroot in |
25897 | 5193 /usr/include) ;; |
40056 | 5194 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
25897 | 5195 esac |
40056 | 5196 case $ac_im_usrlibdir in |
25897 | 5197 /usr/lib | /lib) ;; |
40056 | 5198 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
25897 | 5199 esac |
5200 fi | |
5201 cd .. | |
40056 | 5202 rm -fr conftest.dir |
5203 fi | |
5204 | |
5205 # Standard set of common directories for X headers. | |
5206 # Check X11 before X11Rn because it is often a symlink to the current release. | |
5207 ac_x_header_dirs=' | |
5208 /usr/X11/include | |
5209 /usr/X11R6/include | |
5210 /usr/X11R5/include | |
5211 /usr/X11R4/include | |
5212 | |
5213 /usr/include/X11 | |
5214 /usr/include/X11R6 | |
5215 /usr/include/X11R5 | |
5216 /usr/include/X11R4 | |
5217 | |
5218 /usr/local/X11/include | |
5219 /usr/local/X11R6/include | |
5220 /usr/local/X11R5/include | |
5221 /usr/local/X11R4/include | |
5222 | |
5223 /usr/local/include/X11 | |
5224 /usr/local/include/X11R6 | |
5225 /usr/local/include/X11R5 | |
5226 /usr/local/include/X11R4 | |
5227 | |
5228 /usr/X386/include | |
5229 /usr/x386/include | |
5230 /usr/XFree86/include/X11 | |
5231 | |
5232 /usr/include | |
5233 /usr/local/include | |
5234 /usr/unsupported/include | |
5235 /usr/athena/include | |
5236 /usr/local/x11r5/include | |
5237 /usr/lpp/Xamples/include | |
5238 | |
5239 /usr/openwin/include | |
5240 /usr/openwin/share/include' | |
5241 | |
5242 if test "$ac_x_includes" = no; then | |
5243 # Guess where to find include files, by looking for Intrinsic.h. | |
25897 | 5244 # First, try using that file with no special directory specified. |
40056 | 5245 cat >conftest.$ac_ext <<_ACEOF |
43924 | 5246 #line 5246 "configure" |
40056 | 5247 #include "confdefs.h" |
5248 #include <X11/Intrinsic.h> | |
5249 _ACEOF | |
43924 | 5250 if { (eval echo "$as_me:5250: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 5251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5252 ac_status=$? | |
5253 egrep -v '^ *\+' conftest.er1 >conftest.err | |
5254 rm -f conftest.er1 | |
5255 cat conftest.err >&5 | |
43924 | 5256 echo "$as_me:5256: \$? = $ac_status" >&5 |
40056 | 5257 (exit $ac_status); } >/dev/null; then |
5258 if test -s conftest.err; then | |
5259 ac_cpp_err=$ac_c_preproc_warn_flag | |
5260 else | |
5261 ac_cpp_err= | |
5262 fi | |
5263 else | |
5264 ac_cpp_err=yes | |
5265 fi | |
5266 if test -z "$ac_cpp_err"; then | |
25897 | 5267 # We can compile using X headers with no special include directory. |
5268 ac_x_includes= | |
5269 else | |
40056 | 5270 echo "$as_me: failed program was:" >&5 |
25897 | 5271 cat conftest.$ac_ext >&5 |
40056 | 5272 for ac_dir in $ac_x_header_dirs; do |
5273 if test -r "$ac_dir/X11/Intrinsic.h"; then | |
5274 ac_x_includes=$ac_dir | |
5275 break | |
5276 fi | |
5277 done | |
5278 fi | |
5279 rm -f conftest.err conftest.$ac_ext | |
5280 fi # $ac_x_includes = no | |
5281 | |
5282 if test "$ac_x_libraries" = no; then | |
25897 | 5283 # Check for the libraries. |
5284 # See if we find them without any special options. | |
5285 # Don't add to $LIBS permanently. | |
40056 | 5286 ac_save_LIBS=$LIBS |
5287 LIBS="-lXt $LIBS" | |
5288 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 5289 #line 5289 "configure" |
40056 | 5290 #include "confdefs.h" |
5291 #include <X11/Intrinsic.h> | |
5292 int | |
5293 main () | |
5294 { | |
5295 XtMalloc (0) | |
5296 ; | |
5297 return 0; | |
5298 } | |
5299 _ACEOF | |
5300 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 5301 if { (eval echo "$as_me:5301: \"$ac_link\"") >&5 |
5302 (eval $ac_link) 2>&5 | |
5303 ac_status=$? | |
5304 echo "$as_me:5304: \$? = $ac_status" >&5 | |
41148 | 5305 (exit $ac_status); } && |
5306 { ac_try='test -s conftest$ac_exeext' | |
43924 | 5307 { (eval echo "$as_me:5307: \"$ac_try\"") >&5 |
5308 (eval $ac_try) 2>&5 | |
5309 ac_status=$? | |
5310 echo "$as_me:5310: \$? = $ac_status" >&5 | |
40056 | 5311 (exit $ac_status); }; }; then |
5312 LIBS=$ac_save_LIBS | |
25897 | 5313 # We can link X programs with no special library path. |
5314 ac_x_libraries= | |
5315 else | |
40056 | 5316 echo "$as_me: failed program was:" >&5 |
5317 cat conftest.$ac_ext >&5 | |
5318 LIBS=$ac_save_LIBS | |
5319 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
25897 | 5320 do |
40056 | 5321 # Don't even attempt the hair of trying to link an X program! |
25897 | 5322 for ac_extension in a so sl; do |
40056 | 5323 if test -r $ac_dir/libXt.$ac_extension; then |
25897 | 5324 ac_x_libraries=$ac_dir |
5325 break 2 | |
5326 fi | |
5327 done | |
5328 done | |
5329 fi | |
40056 | 5330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5331 fi # $ac_x_libraries = no | |
5332 | |
5333 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
25897 | 5334 # Didn't find X anywhere. Cache the known absence of X. |
5335 ac_cv_have_x="have_x=no" | |
5336 else | |
5337 # Record where we found X for the cache. | |
5338 ac_cv_have_x="have_x=yes \ | |
5339 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
5340 fi | |
5341 fi | |
40056 | 5342 |
25897 | 5343 fi |
5344 eval "$ac_cv_have_x" | |
5345 fi # $with_x != no | |
5346 | |
5347 if test "$have_x" != yes; then | |
43924 | 5348 echo "$as_me:5348: result: $have_x" >&5 |
40056 | 5349 echo "${ECHO_T}$have_x" >&6 |
25897 | 5350 no_x=yes |
5351 else | |
5352 # If each of the values was on the command line, it overrides each guess. | |
5353 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
5354 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
5355 # Update the cache value to reflect the command line values. | |
5356 ac_cv_have_x="have_x=yes \ | |
5357 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
43924 | 5358 echo "$as_me:5358: result: libraries $x_libraries, headers $x_includes" >&5 |
40056 | 5359 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
25897 | 5360 fi |
5361 | |
5362 if test "$no_x" = yes; then | |
5363 window_system=none | |
5364 else | |
5365 window_system=x11 | |
5366 fi | |
5367 | |
5368 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
5369 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
5370 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
5371 x_default_search_path="" | |
5372 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
35666 | 5373 x_search_path="\ |
5374 ${x_library}/X11/%L/%T/%N%C%S:\ | |
5375 ${x_library}/X11/%l/%T/%N%C%S:\ | |
5376 ${x_library}/X11/%T/%N%C%S:\ | |
5377 ${x_library}/X11/%L/%T/%N%S:\ | |
5378 ${x_library}/X11/%l/%T/%N%S:\ | |
5379 ${x_library}/X11/%T/%N%S" | |
25897 | 5380 if test x"${x_default_search_path}" = x; then |
5381 x_default_search_path=${x_search_path} | |
5382 else | |
5383 x_default_search_path="${x_search_path}:${x_default_search_path}" | |
5384 fi | |
5385 done | |
5386 fi | |
5387 if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
5388 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
5389 fi | |
5390 | |
5391 if test x"${x_includes}" = x; then | |
5392 bitmapdir=/usr/include/X11/bitmaps | |
5393 else | |
5394 # accumulate include directories that have X11 bitmap subdirectories | |
5395 bmd_acc="dummyval" | |
5396 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
5397 if test -d "${bmd}/X11/bitmaps"; then | |
5398 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
26502 | 5399 fi |
5400 if test -d "${bmd}/bitmaps"; then | |
25897 | 5401 bmd_acc="${bmd_acc}:${bmd}/bitmaps" |
5402 fi | |
5403 done | |
5404 if test ${bmd_acc} != "dummyval"; then | |
5405 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
5406 fi | |
5407 fi | |
5408 | |
5409 case "${window_system}" in | |
5410 x11 ) | |
5411 HAVE_X_WINDOWS=yes | |
5412 HAVE_X11=yes | |
5413 case "${with_x_toolkit}" in | |
5414 athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
5415 motif ) USE_X_TOOLKIT=MOTIF ;; | |
5416 no ) USE_X_TOOLKIT=none ;; | |
5417 * ) USE_X_TOOLKIT=maybe ;; | |
5418 esac | |
5419 ;; | |
5420 none ) | |
5421 HAVE_X_WINDOWS=no | |
5422 HAVE_X11=no | |
5423 USE_X_TOOLKIT=none | |
5424 ;; | |
5425 esac | |
5426 | |
5427 ### If we're using X11, we should use the X menu package. | |
5428 HAVE_MENUS=no | |
5429 case ${HAVE_X11} in | |
5430 yes ) HAVE_MENUS=yes ;; | |
5431 esac | |
40056 | 5432 |
25897 | 5433 if test "${opsys}" = "hpux9"; then |
5434 case "${x_libraries}" in | |
5435 *X11R4* ) | |
5436 opsysfile="s/hpux9-x11r4.h" | |
5437 ;; | |
5438 esac | |
5439 fi | |
5440 | |
5441 if test "${opsys}" = "hpux9shr"; then | |
5442 case "${x_libraries}" in | |
5443 *X11R4* ) | |
5444 opsysfile="s/hpux9shxr4.h" | |
5445 ;; | |
5446 esac | |
5447 fi | |
5448 | |
5449 ### Compute the unexec source name from the object name. | |
5450 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
5451 | |
5452 # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
5453 # Assume not, until told otherwise. | |
5454 GNU_MALLOC=yes | |
5455 doug_lea_malloc=yes | |
43924 | 5456 echo "$as_me:5456: checking for malloc_get_state" >&5 |
40056 | 5457 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 |
5458 if test "${ac_cv_func_malloc_get_state+set}" = set; then | |
5459 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5460 else | |
5461 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 5462 #line 5462 "configure" |
25897 | 5463 #include "confdefs.h" |
5464 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 5465 which can conflict with char malloc_get_state (); below. */ |
25897 | 5466 #include <assert.h> |
5467 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 5468 #ifdef __cplusplus |
5469 extern "C" | |
5470 #endif | |
25897 | 5471 /* We use char because int might match the return type of a gcc2 |
40056 | 5472 builtin and then its argument prototype would still apply. */ |
5473 char malloc_get_state (); | |
5474 char (*f) (); | |
5475 | |
5476 int | |
5477 main () | |
5478 { | |
25897 | 5479 /* The GNU C library defines this for functions which it implements |
5480 to always fail with ENOSYS. Some functions are actually named | |
5481 something starting with __ and the normal name is an alias. */ | |
5482 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
5483 choke me | |
5484 #else | |
40056 | 5485 f = malloc_get_state; |
5486 #endif | |
5487 | |
5488 ; | |
5489 return 0; | |
5490 } | |
5491 _ACEOF | |
5492 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 5493 if { (eval echo "$as_me:5493: \"$ac_link\"") >&5 |
5494 (eval $ac_link) 2>&5 | |
5495 ac_status=$? | |
5496 echo "$as_me:5496: \$? = $ac_status" >&5 | |
41148 | 5497 (exit $ac_status); } && |
5498 { ac_try='test -s conftest$ac_exeext' | |
43924 | 5499 { (eval echo "$as_me:5499: \"$ac_try\"") >&5 |
5500 (eval $ac_try) 2>&5 | |
5501 ac_status=$? | |
5502 echo "$as_me:5502: \$? = $ac_status" >&5 | |
40056 | 5503 (exit $ac_status); }; }; then |
5504 ac_cv_func_malloc_get_state=yes | |
5505 else | |
5506 echo "$as_me: failed program was:" >&5 | |
5507 cat conftest.$ac_ext >&5 | |
5508 ac_cv_func_malloc_get_state=no | |
5509 fi | |
5510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5511 fi | |
43924 | 5512 echo "$as_me:5512: result: $ac_cv_func_malloc_get_state" >&5 |
40056 | 5513 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 |
5514 if test $ac_cv_func_malloc_get_state = yes; then | |
25897 | 5515 : |
5516 else | |
40056 | 5517 doug_lea_malloc=no |
5518 fi | |
5519 | |
43924 | 5520 echo "$as_me:5520: checking for malloc_set_state" >&5 |
40056 | 5521 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 |
5522 if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
5523 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5524 else | |
5525 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 5526 #line 5526 "configure" |
25897 | 5527 #include "confdefs.h" |
5528 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 5529 which can conflict with char malloc_set_state (); below. */ |
25897 | 5530 #include <assert.h> |
5531 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 5532 #ifdef __cplusplus |
5533 extern "C" | |
5534 #endif | |
25897 | 5535 /* We use char because int might match the return type of a gcc2 |
40056 | 5536 builtin and then its argument prototype would still apply. */ |
5537 char malloc_set_state (); | |
5538 char (*f) (); | |
5539 | |
5540 int | |
5541 main () | |
5542 { | |
25897 | 5543 /* The GNU C library defines this for functions which it implements |
5544 to always fail with ENOSYS. Some functions are actually named | |
5545 something starting with __ and the normal name is an alias. */ | |
5546 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
5547 choke me | |
5548 #else | |
40056 | 5549 f = malloc_set_state; |
5550 #endif | |
5551 | |
5552 ; | |
5553 return 0; | |
5554 } | |
5555 _ACEOF | |
5556 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 5557 if { (eval echo "$as_me:5557: \"$ac_link\"") >&5 |
5558 (eval $ac_link) 2>&5 | |
5559 ac_status=$? | |
5560 echo "$as_me:5560: \$? = $ac_status" >&5 | |
41148 | 5561 (exit $ac_status); } && |
5562 { ac_try='test -s conftest$ac_exeext' | |
43924 | 5563 { (eval echo "$as_me:5563: \"$ac_try\"") >&5 |
5564 (eval $ac_try) 2>&5 | |
5565 ac_status=$? | |
5566 echo "$as_me:5566: \$? = $ac_status" >&5 | |
40056 | 5567 (exit $ac_status); }; }; then |
5568 ac_cv_func_malloc_set_state=yes | |
5569 else | |
5570 echo "$as_me: failed program was:" >&5 | |
5571 cat conftest.$ac_ext >&5 | |
5572 ac_cv_func_malloc_set_state=no | |
5573 fi | |
5574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5575 fi | |
43924 | 5576 echo "$as_me:5576: result: $ac_cv_func_malloc_set_state" >&5 |
40056 | 5577 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 |
5578 if test $ac_cv_func_malloc_set_state = yes; then | |
25897 | 5579 : |
5580 else | |
40056 | 5581 doug_lea_malloc=no |
5582 fi | |
5583 | |
43924 | 5584 echo "$as_me:5584: checking whether __after_morecore_hook exists" >&5 |
40056 | 5585 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 |
5586 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
5587 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5588 else | |
5589 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 5590 #line 5590 "configure" |
25897 | 5591 #include "confdefs.h" |
5592 extern void (* __after_morecore_hook)(); | |
40056 | 5593 int |
5594 main () | |
5595 { | |
25897 | 5596 __after_morecore_hook = 0 |
40056 | 5597 ; |
5598 return 0; | |
5599 } | |
5600 _ACEOF | |
5601 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 5602 if { (eval echo "$as_me:5602: \"$ac_link\"") >&5 |
5603 (eval $ac_link) 2>&5 | |
5604 ac_status=$? | |
5605 echo "$as_me:5605: \$? = $ac_status" >&5 | |
41148 | 5606 (exit $ac_status); } && |
5607 { ac_try='test -s conftest$ac_exeext' | |
43924 | 5608 { (eval echo "$as_me:5608: \"$ac_try\"") >&5 |
5609 (eval $ac_try) 2>&5 | |
5610 ac_status=$? | |
5611 echo "$as_me:5611: \$? = $ac_status" >&5 | |
40056 | 5612 (exit $ac_status); }; }; then |
25897 | 5613 emacs_cv_var___after_morecore_hook=yes |
5614 else | |
40056 | 5615 echo "$as_me: failed program was:" >&5 |
5616 cat conftest.$ac_ext >&5 | |
5617 emacs_cv_var___after_morecore_hook=no | |
5618 fi | |
5619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5620 fi | |
43924 | 5621 echo "$as_me:5621: result: $emacs_cv_var___after_morecore_hook" >&5 |
40056 | 5622 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 |
25897 | 5623 if test $emacs_cv_var___after_morecore_hook = no; then |
5624 doug_lea_malloc=no | |
5625 fi | |
5626 if test "${system_malloc}" = "yes"; then | |
5627 GNU_MALLOC=no | |
5628 GNU_MALLOC_reason=" | |
5629 (The GNU allocators don't work with this system configuration.)" | |
5630 fi | |
5631 if test "$doug_lea_malloc" = "yes" ; then | |
5632 if test "$GNU_MALLOC" = yes ; then | |
5633 GNU_MALLOC_reason=" | |
5634 (Using Doug Lea's new malloc from the GNU C Library.)" | |
5635 fi | |
40056 | 5636 cat >>confdefs.h <<\EOF |
25897 | 5637 #define DOUG_LEA_MALLOC 1 |
5638 EOF | |
5639 | |
5640 fi | |
5641 | |
5642 if test x"${REL_ALLOC}" = x; then | |
5643 REL_ALLOC=${GNU_MALLOC} | |
5644 fi | |
5645 | |
40056 | 5646 # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5647 | |
5648 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5649 inttypes.h stdint.h unistd.h | |
31417 | 5650 do |
40056 | 5651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
43924 | 5652 echo "$as_me:5652: checking for $ac_header" >&5 |
40056 | 5653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5654 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5655 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5656 else | |
5657 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 5658 #line 5658 "configure" |
40056 | 5659 #include "confdefs.h" |
5660 $ac_includes_default | |
5661 #include <$ac_header> | |
5662 _ACEOF | |
5663 rm -f conftest.$ac_objext | |
43924 | 5664 if { (eval echo "$as_me:5664: \"$ac_compile\"") >&5 |
40056 | 5665 (eval $ac_compile) 2>&5 |
5666 ac_status=$? | |
43924 | 5667 echo "$as_me:5667: \$? = $ac_status" >&5 |
41148 | 5668 (exit $ac_status); } && |
5669 { ac_try='test -s conftest.$ac_objext' | |
43924 | 5670 { (eval echo "$as_me:5670: \"$ac_try\"") >&5 |
5671 (eval $ac_try) 2>&5 | |
5672 ac_status=$? | |
5673 echo "$as_me:5673: \$? = $ac_status" >&5 | |
40056 | 5674 (exit $ac_status); }; }; then |
5675 eval "$as_ac_Header=yes" | |
5676 else | |
5677 echo "$as_me: failed program was:" >&5 | |
5678 cat conftest.$ac_ext >&5 | |
5679 eval "$as_ac_Header=no" | |
5680 fi | |
5681 rm -f conftest.$ac_objext conftest.$ac_ext | |
5682 fi | |
43924 | 5683 echo "$as_me:5683: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 5684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5685 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5686 cat >>confdefs.h <<EOF | |
5687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5688 EOF | |
5689 | |
5690 fi | |
5691 done | |
5692 | |
5693 for ac_header in stdlib.h unistd.h | |
5694 do | |
5695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
43924 | 5696 echo "$as_me:5696: checking for $ac_header" >&5 |
40056 | 5697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5698 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5699 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5700 else | |
5701 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 5702 #line 5702 "configure" |
40056 | 5703 #include "confdefs.h" |
5704 #include <$ac_header> | |
5705 _ACEOF | |
43924 | 5706 if { (eval echo "$as_me:5706: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 5707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5708 ac_status=$? | |
5709 egrep -v '^ *\+' conftest.er1 >conftest.err | |
5710 rm -f conftest.er1 | |
5711 cat conftest.err >&5 | |
43924 | 5712 echo "$as_me:5712: \$? = $ac_status" >&5 |
40056 | 5713 (exit $ac_status); } >/dev/null; then |
5714 if test -s conftest.err; then | |
5715 ac_cpp_err=$ac_c_preproc_warn_flag | |
5716 else | |
5717 ac_cpp_err= | |
5718 fi | |
5719 else | |
5720 ac_cpp_err=yes | |
5721 fi | |
5722 if test -z "$ac_cpp_err"; then | |
5723 eval "$as_ac_Header=yes" | |
5724 else | |
5725 echo "$as_me: failed program was:" >&5 | |
31417 | 5726 cat conftest.$ac_ext >&5 |
40056 | 5727 eval "$as_ac_Header=no" |
5728 fi | |
5729 rm -f conftest.err conftest.$ac_ext | |
5730 fi | |
43924 | 5731 echo "$as_me:5731: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 5732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5733 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5734 cat >>confdefs.h <<EOF | |
5735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5736 EOF | |
5737 | |
31417 | 5738 fi |
5739 done | |
5740 | |
5741 for ac_func in getpagesize | |
5742 do | |
40056 | 5743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
43924 | 5744 echo "$as_me:5744: checking for $ac_func" >&5 |
40056 | 5745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5746 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5747 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5748 else | |
5749 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 5750 #line 5750 "configure" |
31417 | 5751 #include "confdefs.h" |
5752 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 5753 which can conflict with char $ac_func (); below. */ |
31417 | 5754 #include <assert.h> |
5755 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 5756 #ifdef __cplusplus |
5757 extern "C" | |
5758 #endif | |
31417 | 5759 /* We use char because int might match the return type of a gcc2 |
40056 | 5760 builtin and then its argument prototype would still apply. */ |
5761 char $ac_func (); | |
5762 char (*f) (); | |
5763 | |
5764 int | |
5765 main () | |
5766 { | |
31417 | 5767 /* The GNU C library defines this for functions which it implements |
5768 to always fail with ENOSYS. Some functions are actually named | |
5769 something starting with __ and the normal name is an alias. */ | |
5770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5771 choke me | |
5772 #else | |
40056 | 5773 f = $ac_func; |
5774 #endif | |
5775 | |
5776 ; | |
5777 return 0; | |
5778 } | |
5779 _ACEOF | |
5780 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 5781 if { (eval echo "$as_me:5781: \"$ac_link\"") >&5 |
5782 (eval $ac_link) 2>&5 | |
5783 ac_status=$? | |
5784 echo "$as_me:5784: \$? = $ac_status" >&5 | |
41148 | 5785 (exit $ac_status); } && |
5786 { ac_try='test -s conftest$ac_exeext' | |
43924 | 5787 { (eval echo "$as_me:5787: \"$ac_try\"") >&5 |
5788 (eval $ac_try) 2>&5 | |
5789 ac_status=$? | |
5790 echo "$as_me:5790: \$? = $ac_status" >&5 | |
40056 | 5791 (exit $ac_status); }; }; then |
5792 eval "$as_ac_var=yes" | |
5793 else | |
5794 echo "$as_me: failed program was:" >&5 | |
5795 cat conftest.$ac_ext >&5 | |
5796 eval "$as_ac_var=no" | |
5797 fi | |
5798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5799 fi | |
43924 | 5800 echo "$as_me:5800: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 5801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5802 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5803 cat >>confdefs.h <<EOF | |
5804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5805 EOF | |
5806 | |
31417 | 5807 fi |
5808 done | |
5809 | |
43924 | 5810 echo "$as_me:5810: checking for working mmap" >&5 |
40056 | 5811 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
5812 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
5813 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31417 | 5814 else |
5815 if test "$cross_compiling" = yes; then | |
5816 ac_cv_func_mmap_fixed_mapped=no | |
5817 else | |
40056 | 5818 cat >conftest.$ac_ext <<_ACEOF |
43924 | 5819 #line 5819 "configure" |
40056 | 5820 #include "confdefs.h" |
5821 $ac_includes_default | |
31417 | 5822 /* Thanks to Mike Haertel and Jim Avera for this test. |
5823 Here is a matrix of mmap possibilities: | |
5824 mmap private not fixed | |
5825 mmap private fixed at somewhere currently unmapped | |
5826 mmap private fixed at somewhere already mapped | |
5827 mmap shared not fixed | |
5828 mmap shared fixed at somewhere currently unmapped | |
5829 mmap shared fixed at somewhere already mapped | |
5830 For private mappings, we should verify that changes cannot be read() | |
5831 back from the file, nor mmap's back from the file at a different | |
5832 address. (There have been systems where private was not correctly | |
5833 implemented like the infamous i386 svr4.0, and systems where the | |
31512 | 5834 VM page cache was not coherent with the file system buffer cache |
31417 | 5835 like early versions of FreeBSD and possibly contemporary NetBSD.) |
5836 For shared mappings, we should conversely verify that changes get | |
5837 propogated back to all the places they're supposed to be. | |
5838 | |
5839 Grep wants private fixed already mapped. | |
5840 The main things grep needs to know about mmap are: | |
5841 * does it exist and is it safe to write into the mmap'd area | |
5842 * how to use it (BSD variants) */ | |
40056 | 5843 |
31417 | 5844 #include <fcntl.h> |
5845 #include <sys/mman.h> | |
5846 | |
40056 | 5847 #if !STDC_HEADERS && !HAVE_STDLIB_H |
31512 | 5848 char *malloc (); |
5849 #endif | |
5850 | |
31417 | 5851 /* This mess was copied from the GNU getpagesize.h. */ |
31512 | 5852 #if !HAVE_GETPAGESIZE |
31417 | 5853 /* Assume that all systems that can run configure have sys/param.h. */ |
31512 | 5854 # if !HAVE_SYS_PARAM_H |
31417 | 5855 # define HAVE_SYS_PARAM_H 1 |
5856 # endif | |
5857 | |
5858 # ifdef _SC_PAGESIZE | |
5859 # define getpagesize() sysconf(_SC_PAGESIZE) | |
5860 # else /* no _SC_PAGESIZE */ | |
31512 | 5861 # if HAVE_SYS_PARAM_H |
31417 | 5862 # include <sys/param.h> |
5863 # ifdef EXEC_PAGESIZE | |
5864 # define getpagesize() EXEC_PAGESIZE | |
5865 # else /* no EXEC_PAGESIZE */ | |
5866 # ifdef NBPG | |
5867 # define getpagesize() NBPG * CLSIZE | |
5868 # ifndef CLSIZE | |
5869 # define CLSIZE 1 | |
5870 # endif /* no CLSIZE */ | |
5871 # else /* no NBPG */ | |
5872 # ifdef NBPC | |
5873 # define getpagesize() NBPC | |
5874 # else /* no NBPC */ | |
5875 # ifdef PAGESIZE | |
5876 # define getpagesize() PAGESIZE | |
5877 # endif /* PAGESIZE */ | |
5878 # endif /* no NBPC */ | |
5879 # endif /* no NBPG */ | |
5880 # endif /* no EXEC_PAGESIZE */ | |
5881 # else /* no HAVE_SYS_PARAM_H */ | |
5882 # define getpagesize() 8192 /* punt totally */ | |
5883 # endif /* no HAVE_SYS_PARAM_H */ | |
5884 # endif /* no _SC_PAGESIZE */ | |
5885 | |
5886 #endif /* no HAVE_GETPAGESIZE */ | |
5887 | |
5888 int | |
31512 | 5889 main () |
31417 | 5890 { |
31512 | 5891 char *data, *data2, *data3; |
5892 int i, pagesize; | |
5893 int fd; | |
5894 | |
5895 pagesize = getpagesize (); | |
5896 | |
5897 /* First, make a file with some known garbage in it. */ | |
5898 data = (char *) malloc (pagesize); | |
5899 if (!data) | |
5900 exit (1); | |
5901 for (i = 0; i < pagesize; ++i) | |
5902 *(data + i) = rand (); | |
5903 umask (0); | |
40056 | 5904 fd = creat ("conftest.mmap", 0600); |
31512 | 5905 if (fd < 0) |
5906 exit (1); | |
5907 if (write (fd, data, pagesize) != pagesize) | |
5908 exit (1); | |
5909 close (fd); | |
5910 | |
5911 /* Next, try to mmap the file at a fixed address which already has | |
5912 something else allocated at it. If we can, also make sure that | |
5913 we see the same garbage. */ | |
40056 | 5914 fd = open ("conftest.mmap", O_RDWR); |
31512 | 5915 if (fd < 0) |
5916 exit (1); | |
5917 data2 = (char *) malloc (2 * pagesize); | |
5918 if (!data2) | |
5919 exit (1); | |
5920 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
5921 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
5922 MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
5923 exit (1); | |
5924 for (i = 0; i < pagesize; ++i) | |
5925 if (*(data + i) != *(data2 + i)) | |
5926 exit (1); | |
5927 | |
5928 /* Finally, make sure that changes to the mapped area do not | |
5929 percolate back to the file as seen by read(). (This is a bug on | |
5930 some variants of i386 svr4.0.) */ | |
5931 for (i = 0; i < pagesize; ++i) | |
5932 *(data2 + i) = *(data2 + i) + 1; | |
5933 data3 = (char *) malloc (pagesize); | |
5934 if (!data3) | |
5935 exit (1); | |
5936 if (read (fd, data3, pagesize) != pagesize) | |
5937 exit (1); | |
5938 for (i = 0; i < pagesize; ++i) | |
5939 if (*(data + i) != *(data3 + i)) | |
5940 exit (1); | |
5941 close (fd); | |
5942 exit (0); | |
31417 | 5943 } |
40056 | 5944 _ACEOF |
5945 rm -f conftest$ac_exeext | |
43924 | 5946 if { (eval echo "$as_me:5946: \"$ac_link\"") >&5 |
5947 (eval $ac_link) 2>&5 | |
5948 ac_status=$? | |
5949 echo "$as_me:5949: \$? = $ac_status" >&5 | |
40056 | 5950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
43924 | 5951 { (eval echo "$as_me:5951: \"$ac_try\"") >&5 |
5952 (eval $ac_try) 2>&5 | |
5953 ac_status=$? | |
5954 echo "$as_me:5954: \$? = $ac_status" >&5 | |
40056 | 5955 (exit $ac_status); }; }; then |
31417 | 5956 ac_cv_func_mmap_fixed_mapped=yes |
5957 else | |
40056 | 5958 echo "$as_me: program exited with status $ac_status" >&5 |
5959 echo "$as_me: failed program was:" >&5 | |
5960 cat conftest.$ac_ext >&5 | |
5961 ac_cv_func_mmap_fixed_mapped=no | |
5962 fi | |
5963 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5964 fi | |
5965 fi | |
43924 | 5966 echo "$as_me:5966: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
40056 | 5967 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
31417 | 5968 if test $ac_cv_func_mmap_fixed_mapped = yes; then |
40056 | 5969 |
5970 cat >>confdefs.h <<\EOF | |
31417 | 5971 #define HAVE_MMAP 1 |
5972 EOF | |
5973 | |
5974 fi | |
40056 | 5975 rm -f conftest.mmap |
31417 | 5976 |
31607 | 5977 if test $use_mmap_for_buffers = yes; then |
5978 REL_ALLOC=no | |
31417 | 5979 fi |
5980 | |
25897 | 5981 LIBS="$libsrc_libs $LIBS" |
5982 | |
43924 | 5983 echo "$as_me:5983: checking for dnet_ntoa in -ldnet" >&5 |
40056 | 5984 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
5985 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
5986 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5987 else | |
5988 ac_check_lib_save_LIBS=$LIBS | |
25897 | 5989 LIBS="-ldnet $LIBS" |
40056 | 5990 cat >conftest.$ac_ext <<_ACEOF |
43924 | 5991 #line 5991 "configure" |
40056 | 5992 #include "confdefs.h" |
5993 | |
25897 | 5994 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 5995 #ifdef __cplusplus |
5996 extern "C" | |
5997 #endif | |
25897 | 5998 /* We use char because int might match the return type of a gcc2 |
40056 | 5999 builtin and then its argument prototype would still apply. */ |
6000 char dnet_ntoa (); | |
6001 int | |
6002 main () | |
6003 { | |
6004 dnet_ntoa (); | |
6005 ; | |
6006 return 0; | |
6007 } | |
6008 _ACEOF | |
6009 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 6010 if { (eval echo "$as_me:6010: \"$ac_link\"") >&5 |
6011 (eval $ac_link) 2>&5 | |
6012 ac_status=$? | |
6013 echo "$as_me:6013: \$? = $ac_status" >&5 | |
41148 | 6014 (exit $ac_status); } && |
6015 { ac_try='test -s conftest$ac_exeext' | |
43924 | 6016 { (eval echo "$as_me:6016: \"$ac_try\"") >&5 |
6017 (eval $ac_try) 2>&5 | |
6018 ac_status=$? | |
6019 echo "$as_me:6019: \$? = $ac_status" >&5 | |
40056 | 6020 (exit $ac_status); }; }; then |
6021 ac_cv_lib_dnet_dnet_ntoa=yes | |
6022 else | |
6023 echo "$as_me: failed program was:" >&5 | |
6024 cat conftest.$ac_ext >&5 | |
6025 ac_cv_lib_dnet_dnet_ntoa=no | |
6026 fi | |
6027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6028 LIBS=$ac_check_lib_save_LIBS | |
6029 fi | |
43924 | 6030 echo "$as_me:6030: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
40056 | 6031 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
6032 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
6033 cat >>confdefs.h <<EOF | |
6034 #define HAVE_LIBDNET 1 | |
25897 | 6035 EOF |
6036 | |
6037 LIBS="-ldnet $LIBS" | |
6038 | |
40056 | 6039 fi |
6040 | |
43924 | 6041 echo "$as_me:6041: checking for main in -lXbsd" >&5 |
40056 | 6042 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 |
6043 if test "${ac_cv_lib_Xbsd_main+set}" = set; then | |
6044 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6045 else | |
6046 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6047 LIBS="-lXbsd $LIBS" |
40056 | 6048 cat >conftest.$ac_ext <<_ACEOF |
43924 | 6049 #line 6049 "configure" |
40056 | 6050 #include "confdefs.h" |
6051 | |
6052 int | |
6053 main () | |
6054 { | |
6055 main (); | |
6056 ; | |
6057 return 0; | |
6058 } | |
6059 _ACEOF | |
6060 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 6061 if { (eval echo "$as_me:6061: \"$ac_link\"") >&5 |
6062 (eval $ac_link) 2>&5 | |
6063 ac_status=$? | |
6064 echo "$as_me:6064: \$? = $ac_status" >&5 | |
41148 | 6065 (exit $ac_status); } && |
6066 { ac_try='test -s conftest$ac_exeext' | |
43924 | 6067 { (eval echo "$as_me:6067: \"$ac_try\"") >&5 |
6068 (eval $ac_try) 2>&5 | |
6069 ac_status=$? | |
6070 echo "$as_me:6070: \$? = $ac_status" >&5 | |
40056 | 6071 (exit $ac_status); }; }; then |
6072 ac_cv_lib_Xbsd_main=yes | |
6073 else | |
6074 echo "$as_me: failed program was:" >&5 | |
6075 cat conftest.$ac_ext >&5 | |
6076 ac_cv_lib_Xbsd_main=no | |
6077 fi | |
6078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6079 LIBS=$ac_check_lib_save_LIBS | |
6080 fi | |
43924 | 6081 echo "$as_me:6081: result: $ac_cv_lib_Xbsd_main" >&5 |
40056 | 6082 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 |
6083 if test $ac_cv_lib_Xbsd_main = yes; then | |
25897 | 6084 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" |
40056 | 6085 fi |
6086 | |
43924 | 6087 echo "$as_me:6087: checking for cma_open in -lpthreads" >&5 |
40056 | 6088 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 |
6089 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | |
6090 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6091 else | |
6092 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6093 LIBS="-lpthreads $LIBS" |
40056 | 6094 cat >conftest.$ac_ext <<_ACEOF |
43924 | 6095 #line 6095 "configure" |
40056 | 6096 #include "confdefs.h" |
6097 | |
25897 | 6098 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6099 #ifdef __cplusplus |
6100 extern "C" | |
6101 #endif | |
25897 | 6102 /* We use char because int might match the return type of a gcc2 |
40056 | 6103 builtin and then its argument prototype would still apply. */ |
6104 char cma_open (); | |
6105 int | |
6106 main () | |
6107 { | |
6108 cma_open (); | |
6109 ; | |
6110 return 0; | |
6111 } | |
6112 _ACEOF | |
6113 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 6114 if { (eval echo "$as_me:6114: \"$ac_link\"") >&5 |
6115 (eval $ac_link) 2>&5 | |
6116 ac_status=$? | |
6117 echo "$as_me:6117: \$? = $ac_status" >&5 | |
41148 | 6118 (exit $ac_status); } && |
6119 { ac_try='test -s conftest$ac_exeext' | |
43924 | 6120 { (eval echo "$as_me:6120: \"$ac_try\"") >&5 |
6121 (eval $ac_try) 2>&5 | |
6122 ac_status=$? | |
6123 echo "$as_me:6123: \$? = $ac_status" >&5 | |
40056 | 6124 (exit $ac_status); }; }; then |
6125 ac_cv_lib_pthreads_cma_open=yes | |
6126 else | |
6127 echo "$as_me: failed program was:" >&5 | |
6128 cat conftest.$ac_ext >&5 | |
6129 ac_cv_lib_pthreads_cma_open=no | |
6130 fi | |
6131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6132 LIBS=$ac_check_lib_save_LIBS | |
6133 fi | |
43924 | 6134 echo "$as_me:6134: result: $ac_cv_lib_pthreads_cma_open" >&5 |
40056 | 6135 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 |
6136 if test $ac_cv_lib_pthreads_cma_open = yes; then | |
6137 cat >>confdefs.h <<EOF | |
6138 #define HAVE_LIBPTHREADS 1 | |
25897 | 6139 EOF |
6140 | |
6141 LIBS="-lpthreads $LIBS" | |
6142 | |
40056 | 6143 fi |
6144 | |
43924 | 6145 echo "$as_me:6145: checking for XFree86 in /usr/X386" >&5 |
40056 | 6146 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 |
25897 | 6147 if test -d /usr/X386/include; then |
6148 HAVE_XFREE386=yes | |
6149 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
6150 else | |
6151 HAVE_XFREE386=no | |
6152 fi | |
43924 | 6153 echo "$as_me:6153: result: $HAVE_XFREE386" >&5 |
40056 | 6154 echo "${ECHO_T}$HAVE_XFREE386" >&6 |
25897 | 6155 |
6156 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | |
6157 # for the tests that follow. We set it back to REAL_CFLAGS later on. | |
6158 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6159 REAL_CPPFLAGS="$CPPFLAGS" |
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6160 |
25897 | 6161 if test "${HAVE_X11}" = "yes"; then |
6162 DEFS="$C_SWITCH_X_SITE $DEFS" | |
6163 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
6164 LIBS="$LIBX $LIBS" | |
6165 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
|
6166 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" |
25897 | 6167 |
6168 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
6169 # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
6170 # but it's more convenient here to set LD_RUN_PATH | |
6171 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
6172 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
6173 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
6174 export LD_RUN_PATH | |
6175 fi | |
6176 | |
6177 if test "${opsys}" = "gnu-linux"; then | |
43924 | 6178 echo "$as_me:6178: checking whether X on GNU/Linux needs -b to link" >&5 |
40056 | 6179 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 |
6180 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 6181 #line 6181 "configure" |
40056 | 6182 #include "confdefs.h" |
6183 | |
6184 int | |
6185 main () | |
6186 { | |
25897 | 6187 XOpenDisplay ("foo"); |
40056 | 6188 ; |
6189 return 0; | |
6190 } | |
6191 _ACEOF | |
6192 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 6193 if { (eval echo "$as_me:6193: \"$ac_link\"") >&5 |
6194 (eval $ac_link) 2>&5 | |
6195 ac_status=$? | |
6196 echo "$as_me:6196: \$? = $ac_status" >&5 | |
41148 | 6197 (exit $ac_status); } && |
6198 { ac_try='test -s conftest$ac_exeext' | |
43924 | 6199 { (eval echo "$as_me:6199: \"$ac_try\"") >&5 |
6200 (eval $ac_try) 2>&5 | |
6201 ac_status=$? | |
6202 echo "$as_me:6202: \$? = $ac_status" >&5 | |
40056 | 6203 (exit $ac_status); }; }; then |
25897 | 6204 xlinux_first_failure=no |
6205 else | |
40056 | 6206 echo "$as_me: failed program was:" >&5 |
6207 cat conftest.$ac_ext >&5 | |
6208 xlinux_first_failure=yes | |
6209 fi | |
6210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6211 if test "${xlinux_first_failure}" = "yes"; then |
6212 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
6213 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
6214 OLD_CPPFLAGS="$CPPFLAGS" | |
6215 OLD_LIBS="$LIBS" | |
6216 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
6217 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
6218 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
6219 LIBS="$LIBS -b i486-linuxaout" | |
40056 | 6220 cat >conftest.$ac_ext <<_ACEOF |
43924 | 6221 #line 6221 "configure" |
40056 | 6222 #include "confdefs.h" |
6223 | |
6224 int | |
6225 main () | |
6226 { | |
25897 | 6227 XOpenDisplay ("foo"); |
40056 | 6228 ; |
6229 return 0; | |
6230 } | |
6231 _ACEOF | |
6232 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 6233 if { (eval echo "$as_me:6233: \"$ac_link\"") >&5 |
6234 (eval $ac_link) 2>&5 | |
6235 ac_status=$? | |
6236 echo "$as_me:6236: \$? = $ac_status" >&5 | |
41148 | 6237 (exit $ac_status); } && |
6238 { ac_try='test -s conftest$ac_exeext' | |
43924 | 6239 { (eval echo "$as_me:6239: \"$ac_try\"") >&5 |
6240 (eval $ac_try) 2>&5 | |
6241 ac_status=$? | |
6242 echo "$as_me:6242: \$? = $ac_status" >&5 | |
40056 | 6243 (exit $ac_status); }; }; then |
25897 | 6244 xlinux_second_failure=no |
6245 else | |
40056 | 6246 echo "$as_me: failed program was:" >&5 |
6247 cat conftest.$ac_ext >&5 | |
6248 xlinux_second_failure=yes | |
6249 fi | |
6250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6251 if test "${xlinux_second_failure}" = "yes"; then |
6252 # If we get the same failure with -b, there is no use adding -b. | |
6253 # So take it out. This plays safe. | |
6254 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
6255 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
6256 CPPFLAGS="$OLD_CPPFLAGS" | |
6257 LIBS="$OLD_LIBS" | |
43924 | 6258 echo "$as_me:6258: result: no" >&5 |
40056 | 6259 echo "${ECHO_T}no" >&6 |
25897 | 6260 else |
43924 | 6261 echo "$as_me:6261: result: yes" >&5 |
40056 | 6262 echo "${ECHO_T}yes" >&6 |
25897 | 6263 fi |
6264 else | |
43924 | 6265 echo "$as_me:6265: result: no" >&5 |
40056 | 6266 echo "${ECHO_T}no" >&6 |
25897 | 6267 fi |
6268 fi | |
6269 | |
35196 | 6270 # Reportedly, some broken Solaris systems have XKBlib.h but are missing |
6271 # header files included from there. | |
43924 | 6272 echo "$as_me:6272: checking for Xkb" >&5 |
40056 | 6273 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 |
6274 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 6275 #line 6275 "configure" |
35196 | 6276 #include "confdefs.h" |
6277 #include <X11/Xlib.h> | |
6278 #include <X11/XKBlib.h> | |
40056 | 6279 int |
6280 main () | |
6281 { | |
35196 | 6282 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); |
40056 | 6283 ; |
6284 return 0; | |
6285 } | |
6286 _ACEOF | |
6287 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 6288 if { (eval echo "$as_me:6288: \"$ac_link\"") >&5 |
6289 (eval $ac_link) 2>&5 | |
6290 ac_status=$? | |
6291 echo "$as_me:6291: \$? = $ac_status" >&5 | |
41148 | 6292 (exit $ac_status); } && |
6293 { ac_try='test -s conftest$ac_exeext' | |
43924 | 6294 { (eval echo "$as_me:6294: \"$ac_try\"") >&5 |
6295 (eval $ac_try) 2>&5 | |
6296 ac_status=$? | |
6297 echo "$as_me:6297: \$? = $ac_status" >&5 | |
40056 | 6298 (exit $ac_status); }; }; then |
35196 | 6299 emacs_xkb=yes |
6300 else | |
40056 | 6301 echo "$as_me: failed program was:" >&5 |
6302 cat conftest.$ac_ext >&5 | |
6303 emacs_xkb=no | |
6304 fi | |
6305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
43924 | 6306 echo "$as_me:6306: result: $emacs_xkb" >&5 |
40056 | 6307 echo "${ECHO_T}$emacs_xkb" >&6 |
35196 | 6308 if test $emacs_xkb = yes; then |
40056 | 6309 cat >>confdefs.h <<\EOF |
35196 | 6310 #define HAVE_XKBGETKEYBOARD 1 |
6311 EOF | |
6312 | |
6313 fi | |
6314 | |
40056 | 6315 for ac_func in XrmSetDatabase XScreenResourceString \ |
25897 | 6316 XScreenNumberOfScreen XSetWMProtocols |
6317 do | |
40056 | 6318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
43924 | 6319 echo "$as_me:6319: checking for $ac_func" >&5 |
40056 | 6320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
6321 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6322 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6323 else | |
6324 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 6325 #line 6325 "configure" |
25897 | 6326 #include "confdefs.h" |
6327 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 6328 which can conflict with char $ac_func (); below. */ |
25897 | 6329 #include <assert.h> |
6330 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 6331 #ifdef __cplusplus |
6332 extern "C" | |
6333 #endif | |
25897 | 6334 /* We use char because int might match the return type of a gcc2 |
40056 | 6335 builtin and then its argument prototype would still apply. */ |
6336 char $ac_func (); | |
6337 char (*f) (); | |
6338 | |
6339 int | |
6340 main () | |
6341 { | |
25897 | 6342 /* The GNU C library defines this for functions which it implements |
6343 to always fail with ENOSYS. Some functions are actually named | |
6344 something starting with __ and the normal name is an alias. */ | |
6345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6346 choke me | |
6347 #else | |
40056 | 6348 f = $ac_func; |
6349 #endif | |
6350 | |
6351 ; | |
6352 return 0; | |
6353 } | |
6354 _ACEOF | |
6355 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 6356 if { (eval echo "$as_me:6356: \"$ac_link\"") >&5 |
6357 (eval $ac_link) 2>&5 | |
6358 ac_status=$? | |
6359 echo "$as_me:6359: \$? = $ac_status" >&5 | |
41148 | 6360 (exit $ac_status); } && |
6361 { ac_try='test -s conftest$ac_exeext' | |
43924 | 6362 { (eval echo "$as_me:6362: \"$ac_try\"") >&5 |
6363 (eval $ac_try) 2>&5 | |
6364 ac_status=$? | |
6365 echo "$as_me:6365: \$? = $ac_status" >&5 | |
40056 | 6366 (exit $ac_status); }; }; then |
6367 eval "$as_ac_var=yes" | |
6368 else | |
6369 echo "$as_me: failed program was:" >&5 | |
6370 cat conftest.$ac_ext >&5 | |
6371 eval "$as_ac_var=no" | |
6372 fi | |
6373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6374 fi | |
43924 | 6375 echo "$as_me:6375: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 6376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
6377 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6378 cat >>confdefs.h <<EOF | |
6379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6380 EOF | |
6381 | |
25897 | 6382 fi |
6383 done | |
6384 | |
6385 fi | |
6386 | |
6387 if test "${window_system}" = "x11"; then | |
43924 | 6388 echo "$as_me:6388: checking X11 version 6" >&5 |
40056 | 6389 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 |
6390 if test "${emacs_cv_x11_version_6+set}" = set; then | |
6391 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6392 else | |
6393 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 6394 #line 6394 "configure" |
25897 | 6395 #include "confdefs.h" |
6396 #include <X11/Xlib.h> | |
40056 | 6397 int |
6398 main () | |
6399 { | |
25897 | 6400 #if XlibSpecificationRelease < 6 |
6401 fail; | |
6402 #endif | |
6403 | |
40056 | 6404 ; |
6405 return 0; | |
6406 } | |
6407 _ACEOF | |
6408 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 6409 if { (eval echo "$as_me:6409: \"$ac_link\"") >&5 |
6410 (eval $ac_link) 2>&5 | |
6411 ac_status=$? | |
6412 echo "$as_me:6412: \$? = $ac_status" >&5 | |
41148 | 6413 (exit $ac_status); } && |
6414 { ac_try='test -s conftest$ac_exeext' | |
43924 | 6415 { (eval echo "$as_me:6415: \"$ac_try\"") >&5 |
6416 (eval $ac_try) 2>&5 | |
6417 ac_status=$? | |
6418 echo "$as_me:6418: \$? = $ac_status" >&5 | |
40056 | 6419 (exit $ac_status); }; }; then |
25897 | 6420 emacs_cv_x11_version_6=yes |
6421 else | |
40056 | 6422 echo "$as_me: failed program was:" >&5 |
6423 cat conftest.$ac_ext >&5 | |
6424 emacs_cv_x11_version_6=no | |
6425 fi | |
6426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6427 fi |
6428 | |
6429 if test $emacs_cv_x11_version_6 = yes; then | |
43924 | 6430 echo "$as_me:6430: result: 6 or newer" >&5 |
40056 | 6431 echo "${ECHO_T}6 or newer" >&6 |
6432 cat >>confdefs.h <<\EOF | |
25897 | 6433 #define HAVE_X11R6 1 |
6434 EOF | |
6435 | |
6436 else | |
43924 | 6437 echo "$as_me:6437: result: before 6" >&5 |
40056 | 6438 echo "${ECHO_T}before 6" >&6 |
25897 | 6439 fi |
6440 fi | |
6441 | |
6442 if test "${window_system}" = "x11"; then | |
43924 | 6443 echo "$as_me:6443: checking X11 version 5" >&5 |
40056 | 6444 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 |
6445 if test "${emacs_cv_x11_version_5+set}" = set; then | |
6446 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6447 else | |
6448 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 6449 #line 6449 "configure" |
25897 | 6450 #include "confdefs.h" |
6451 #include <X11/Xlib.h> | |
40056 | 6452 int |
6453 main () | |
6454 { | |
25897 | 6455 #if XlibSpecificationRelease < 5 |
6456 fail; | |
6457 #endif | |
6458 | |
40056 | 6459 ; |
6460 return 0; | |
6461 } | |
6462 _ACEOF | |
6463 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 6464 if { (eval echo "$as_me:6464: \"$ac_link\"") >&5 |
6465 (eval $ac_link) 2>&5 | |
6466 ac_status=$? | |
6467 echo "$as_me:6467: \$? = $ac_status" >&5 | |
41148 | 6468 (exit $ac_status); } && |
6469 { ac_try='test -s conftest$ac_exeext' | |
43924 | 6470 { (eval echo "$as_me:6470: \"$ac_try\"") >&5 |
6471 (eval $ac_try) 2>&5 | |
6472 ac_status=$? | |
6473 echo "$as_me:6473: \$? = $ac_status" >&5 | |
40056 | 6474 (exit $ac_status); }; }; then |
25897 | 6475 emacs_cv_x11_version_5=yes |
6476 else | |
40056 | 6477 echo "$as_me: failed program was:" >&5 |
6478 cat conftest.$ac_ext >&5 | |
6479 emacs_cv_x11_version_5=no | |
6480 fi | |
6481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6482 fi |
6483 | |
6484 if test $emacs_cv_x11_version_5 = yes; then | |
43924 | 6485 echo "$as_me:6485: result: 5 or newer" >&5 |
40056 | 6486 echo "${ECHO_T}5 or newer" >&6 |
25897 | 6487 HAVE_X11R5=yes |
40056 | 6488 cat >>confdefs.h <<\EOF |
25897 | 6489 #define HAVE_X11R5 1 |
6490 EOF | |
6491 | |
6492 else | |
6493 HAVE_X11R5=no | |
43924 | 6494 echo "$as_me:6494: result: before 5" >&5 |
40056 | 6495 echo "${ECHO_T}before 5" >&6 |
25897 | 6496 fi |
6497 fi | |
6498 | |
6499 if test x"${USE_X_TOOLKIT}" = xmaybe; then | |
6500 if test x"${HAVE_X11R5}" = xyes; then | |
43924 | 6501 echo "$as_me:6501: checking X11 version 5 with Xaw" >&5 |
40056 | 6502 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 |
6503 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then | |
6504 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6505 else | |
6506 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 6507 #line 6507 "configure" |
25897 | 6508 #include "confdefs.h" |
6509 | |
6510 #include <X11/Intrinsic.h> | |
6511 #include <X11/Xaw/Simple.h> | |
40056 | 6512 int |
6513 main () | |
6514 { | |
6515 | |
6516 ; | |
6517 return 0; | |
6518 } | |
6519 _ACEOF | |
6520 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 6521 if { (eval echo "$as_me:6521: \"$ac_link\"") >&5 |
6522 (eval $ac_link) 2>&5 | |
6523 ac_status=$? | |
6524 echo "$as_me:6524: \$? = $ac_status" >&5 | |
41148 | 6525 (exit $ac_status); } && |
6526 { ac_try='test -s conftest$ac_exeext' | |
43924 | 6527 { (eval echo "$as_me:6527: \"$ac_try\"") >&5 |
6528 (eval $ac_try) 2>&5 | |
6529 ac_status=$? | |
6530 echo "$as_me:6530: \$? = $ac_status" >&5 | |
40056 | 6531 (exit $ac_status); }; }; then |
25897 | 6532 emacs_cv_x11_version_5_with_xaw=yes |
6533 else | |
40056 | 6534 echo "$as_me: failed program was:" >&5 |
6535 cat conftest.$ac_ext >&5 | |
6536 emacs_cv_x11_version_5_with_xaw=no | |
6537 fi | |
6538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6539 fi |
6540 | |
6541 if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
43924 | 6542 echo "$as_me:6542: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
40056 | 6543 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 |
25897 | 6544 USE_X_TOOLKIT=LUCID |
6545 else | |
43924 | 6546 echo "$as_me:6546: result: before 5 or no Xaw; do not use toolkit by default" >&5 |
40056 | 6547 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 |
25897 | 6548 USE_X_TOOLKIT=none |
6549 fi | |
6550 else | |
6551 USE_X_TOOLKIT=none | |
6552 fi | |
6553 fi | |
6554 | |
6555 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
6556 | |
6557 if test "${USE_X_TOOLKIT}" != "none"; then | |
43924 | 6558 echo "$as_me:6558: checking X11 toolkit version" >&5 |
40056 | 6559 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 |
6560 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | |
6561 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6562 else | |
6563 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 6564 #line 6564 "configure" |
25897 | 6565 #include "confdefs.h" |
6566 #include <X11/Intrinsic.h> | |
40056 | 6567 int |
6568 main () | |
6569 { | |
25897 | 6570 #if XtSpecificationRelease < 6 |
6571 fail; | |
6572 #endif | |
6573 | |
40056 | 6574 ; |
6575 return 0; | |
6576 } | |
6577 _ACEOF | |
6578 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 6579 if { (eval echo "$as_me:6579: \"$ac_link\"") >&5 |
6580 (eval $ac_link) 2>&5 | |
6581 ac_status=$? | |
6582 echo "$as_me:6582: \$? = $ac_status" >&5 | |
41148 | 6583 (exit $ac_status); } && |
6584 { ac_try='test -s conftest$ac_exeext' | |
43924 | 6585 { (eval echo "$as_me:6585: \"$ac_try\"") >&5 |
6586 (eval $ac_try) 2>&5 | |
6587 ac_status=$? | |
6588 echo "$as_me:6588: \$? = $ac_status" >&5 | |
40056 | 6589 (exit $ac_status); }; }; then |
25897 | 6590 emacs_cv_x11_toolkit_version_6=yes |
6591 else | |
40056 | 6592 echo "$as_me: failed program was:" >&5 |
6593 cat conftest.$ac_ext >&5 | |
6594 emacs_cv_x11_toolkit_version_6=no | |
6595 fi | |
6596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6597 fi |
6598 | |
6599 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
6600 if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
43924 | 6601 echo "$as_me:6601: result: 6 or newer" >&5 |
40056 | 6602 echo "${ECHO_T}6 or newer" >&6 |
6603 cat >>confdefs.h <<\EOF | |
25897 | 6604 #define HAVE_X11XTR6 1 |
6605 EOF | |
6606 | |
6607 else | |
43924 | 6608 echo "$as_me:6608: result: before 6" >&5 |
40056 | 6609 echo "${ECHO_T}before 6" >&6 |
25897 | 6610 fi |
6611 | |
6612 OLDLIBS="$LIBS" | |
6613 if test x$HAVE_X11XTR6 = xyes; then | |
6614 LIBS="-lXt -lSM -lICE $LIBS" | |
6615 else | |
6616 LIBS="-lXt $LIBS" | |
6617 fi | |
40056 | 6618 |
43924 | 6619 echo "$as_me:6619: checking for XmuConvertStandardSelection in -lXmu" >&5 |
40056 | 6620 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 |
6621 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | |
6622 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6623 else | |
6624 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6625 LIBS="-lXmu $LIBS" |
40056 | 6626 cat >conftest.$ac_ext <<_ACEOF |
43924 | 6627 #line 6627 "configure" |
40056 | 6628 #include "confdefs.h" |
6629 | |
25897 | 6630 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6631 #ifdef __cplusplus |
6632 extern "C" | |
6633 #endif | |
25897 | 6634 /* We use char because int might match the return type of a gcc2 |
40056 | 6635 builtin and then its argument prototype would still apply. */ |
6636 char XmuConvertStandardSelection (); | |
6637 int | |
6638 main () | |
6639 { | |
6640 XmuConvertStandardSelection (); | |
6641 ; | |
6642 return 0; | |
6643 } | |
6644 _ACEOF | |
6645 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 6646 if { (eval echo "$as_me:6646: \"$ac_link\"") >&5 |
6647 (eval $ac_link) 2>&5 | |
6648 ac_status=$? | |
6649 echo "$as_me:6649: \$? = $ac_status" >&5 | |
41148 | 6650 (exit $ac_status); } && |
6651 { ac_try='test -s conftest$ac_exeext' | |
43924 | 6652 { (eval echo "$as_me:6652: \"$ac_try\"") >&5 |
6653 (eval $ac_try) 2>&5 | |
6654 ac_status=$? | |
6655 echo "$as_me:6655: \$? = $ac_status" >&5 | |
40056 | 6656 (exit $ac_status); }; }; then |
6657 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | |
6658 else | |
6659 echo "$as_me: failed program was:" >&5 | |
6660 cat conftest.$ac_ext >&5 | |
6661 ac_cv_lib_Xmu_XmuConvertStandardSelection=no | |
6662 fi | |
6663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6664 LIBS=$ac_check_lib_save_LIBS | |
6665 fi | |
43924 | 6666 echo "$as_me:6666: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
40056 | 6667 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 |
6668 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | |
6669 cat >>confdefs.h <<EOF | |
6670 #define HAVE_LIBXMU 1 | |
25897 | 6671 EOF |
6672 | |
6673 LIBS="-lXmu $LIBS" | |
6674 | |
6675 fi | |
6676 | |
35206 | 6677 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" |
6678 fi | |
6679 | |
6680 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
6681 if test "${HAVE_X11}" = "yes"; then | |
6682 if test "${USE_X_TOOLKIT}" != "none"; then | |
40056 | 6683 |
43924 | 6684 echo "$as_me:6684: checking for XShapeQueryExtension in -lXext" >&5 |
40056 | 6685 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
6686 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
6687 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6688 else | |
6689 ac_check_lib_save_LIBS=$LIBS | |
35206 | 6690 LIBS="-lXext $LIBS" |
40056 | 6691 cat >conftest.$ac_ext <<_ACEOF |
43924 | 6692 #line 6692 "configure" |
40056 | 6693 #include "confdefs.h" |
6694 | |
35206 | 6695 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6696 #ifdef __cplusplus |
6697 extern "C" | |
6698 #endif | |
35206 | 6699 /* We use char because int might match the return type of a gcc2 |
40056 | 6700 builtin and then its argument prototype would still apply. */ |
6701 char XShapeQueryExtension (); | |
6702 int | |
6703 main () | |
6704 { | |
6705 XShapeQueryExtension (); | |
6706 ; | |
6707 return 0; | |
6708 } | |
6709 _ACEOF | |
6710 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 6711 if { (eval echo "$as_me:6711: \"$ac_link\"") >&5 |
6712 (eval $ac_link) 2>&5 | |
6713 ac_status=$? | |
6714 echo "$as_me:6714: \$? = $ac_status" >&5 | |
41148 | 6715 (exit $ac_status); } && |
6716 { ac_try='test -s conftest$ac_exeext' | |
43924 | 6717 { (eval echo "$as_me:6717: \"$ac_try\"") >&5 |
6718 (eval $ac_try) 2>&5 | |
6719 ac_status=$? | |
6720 echo "$as_me:6720: \$? = $ac_status" >&5 | |
40056 | 6721 (exit $ac_status); }; }; then |
6722 ac_cv_lib_Xext_XShapeQueryExtension=yes | |
6723 else | |
6724 echo "$as_me: failed program was:" >&5 | |
6725 cat conftest.$ac_ext >&5 | |
6726 ac_cv_lib_Xext_XShapeQueryExtension=no | |
6727 fi | |
6728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6729 LIBS=$ac_check_lib_save_LIBS | |
6730 fi | |
43924 | 6731 echo "$as_me:6731: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
40056 | 6732 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
6733 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
6734 cat >>confdefs.h <<EOF | |
6735 #define HAVE_LIBXEXT 1 | |
35206 | 6736 EOF |
6737 | |
6738 LIBS="-lXext $LIBS" | |
6739 | |
6740 fi | |
6741 | |
6742 fi | |
25897 | 6743 fi |
6744 | |
6745 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
43924 | 6746 echo "$as_me:6746: checking for Motif version 2.1" >&5 |
40056 | 6747 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 |
6748 if test "${emacs_cv_motif_version_2_1+set}" = set; then | |
6749 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6750 else | |
6751 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 6752 #line 6752 "configure" |
25897 | 6753 #include "confdefs.h" |
6754 #include <Xm/Xm.h> | |
40056 | 6755 int |
6756 main () | |
6757 { | |
25897 | 6758 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
6759 int x = 5; | |
6760 #else | |
6761 Motif version prior to 2.1. | |
6762 #endif | |
40056 | 6763 ; |
6764 return 0; | |
6765 } | |
6766 _ACEOF | |
6767 rm -f conftest.$ac_objext | |
43924 | 6768 if { (eval echo "$as_me:6768: \"$ac_compile\"") >&5 |
40056 | 6769 (eval $ac_compile) 2>&5 |
6770 ac_status=$? | |
43924 | 6771 echo "$as_me:6771: \$? = $ac_status" >&5 |
41148 | 6772 (exit $ac_status); } && |
6773 { ac_try='test -s conftest.$ac_objext' | |
43924 | 6774 { (eval echo "$as_me:6774: \"$ac_try\"") >&5 |
6775 (eval $ac_try) 2>&5 | |
6776 ac_status=$? | |
6777 echo "$as_me:6777: \$? = $ac_status" >&5 | |
40056 | 6778 (exit $ac_status); }; }; then |
25897 | 6779 emacs_cv_motif_version_2_1=yes |
6780 else | |
40056 | 6781 echo "$as_me: failed program was:" >&5 |
6782 cat conftest.$ac_ext >&5 | |
6783 emacs_cv_motif_version_2_1=no | |
6784 fi | |
6785 rm -f conftest.$ac_objext conftest.$ac_ext | |
6786 fi | |
43924 | 6787 echo "$as_me:6787: result: $emacs_cv_motif_version_2_1" >&5 |
40056 | 6788 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 |
25897 | 6789 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 |
6790 if test $emacs_cv_motif_version_2_1 = yes; then | |
34431 | 6791 HAVE_LIBXP=no |
40056 | 6792 cat >>confdefs.h <<\EOF |
25897 | 6793 #define HAVE_MOTIF_2_1 1 |
6794 EOF | |
6795 | |
43924 | 6796 echo "$as_me:6796: checking for XpCreateContext in -lXp" >&5 |
40056 | 6797 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 |
6798 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | |
6799 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6800 else | |
6801 ac_check_lib_save_LIBS=$LIBS | |
35206 | 6802 LIBS="-lXp $LIBS" |
40056 | 6803 cat >conftest.$ac_ext <<_ACEOF |
43924 | 6804 #line 6804 "configure" |
40056 | 6805 #include "confdefs.h" |
6806 | |
25897 | 6807 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6808 #ifdef __cplusplus |
6809 extern "C" | |
6810 #endif | |
25897 | 6811 /* We use char because int might match the return type of a gcc2 |
40056 | 6812 builtin and then its argument prototype would still apply. */ |
6813 char XpCreateContext (); | |
6814 int | |
6815 main () | |
6816 { | |
6817 XpCreateContext (); | |
6818 ; | |
6819 return 0; | |
6820 } | |
6821 _ACEOF | |
6822 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 6823 if { (eval echo "$as_me:6823: \"$ac_link\"") >&5 |
6824 (eval $ac_link) 2>&5 | |
6825 ac_status=$? | |
6826 echo "$as_me:6826: \$? = $ac_status" >&5 | |
41148 | 6827 (exit $ac_status); } && |
6828 { ac_try='test -s conftest$ac_exeext' | |
43924 | 6829 { (eval echo "$as_me:6829: \"$ac_try\"") >&5 |
6830 (eval $ac_try) 2>&5 | |
6831 ac_status=$? | |
6832 echo "$as_me:6832: \$? = $ac_status" >&5 | |
40056 | 6833 (exit $ac_status); }; }; then |
6834 ac_cv_lib_Xp_XpCreateContext=yes | |
6835 else | |
6836 echo "$as_me: failed program was:" >&5 | |
6837 cat conftest.$ac_ext >&5 | |
6838 ac_cv_lib_Xp_XpCreateContext=no | |
6839 fi | |
6840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6841 LIBS=$ac_check_lib_save_LIBS | |
6842 fi | |
43924 | 6843 echo "$as_me:6843: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
40056 | 6844 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 |
6845 if test $ac_cv_lib_Xp_XpCreateContext = yes; then | |
29906 | 6846 HAVE_LIBXP=yes |
25897 | 6847 fi |
6848 | |
29906 | 6849 if test ${HAVE_LIBXP} = yes; then |
40056 | 6850 cat >>confdefs.h <<\EOF |
29906 | 6851 #define HAVE_LIBXP 1 |
6852 EOF | |
6853 | |
40056 | 6854 fi |
25897 | 6855 fi |
6856 fi | |
6857 | |
6858 ### Is -lXaw3d available? | |
6859 HAVE_XAW3D=no | |
6860 if test "${HAVE_X11}" = "yes"; then | |
6861 if test "${USE_X_TOOLKIT}" != "none"; then | |
43924 | 6862 echo "$as_me:6862: checking for X11/Xaw3d/Scrollbar.h" >&5 |
40056 | 6863 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 |
6864 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then | |
6865 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6866 else | |
6867 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 6868 #line 6868 "configure" |
25897 | 6869 #include "confdefs.h" |
6870 #include <X11/Xaw3d/Scrollbar.h> | |
40056 | 6871 _ACEOF |
43924 | 6872 if { (eval echo "$as_me:6872: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 6873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6874 ac_status=$? | |
6875 egrep -v '^ *\+' conftest.er1 >conftest.err | |
6876 rm -f conftest.er1 | |
6877 cat conftest.err >&5 | |
43924 | 6878 echo "$as_me:6878: \$? = $ac_status" >&5 |
40056 | 6879 (exit $ac_status); } >/dev/null; then |
6880 if test -s conftest.err; then | |
6881 ac_cpp_err=$ac_c_preproc_warn_flag | |
6882 else | |
6883 ac_cpp_err= | |
6884 fi | |
6885 else | |
6886 ac_cpp_err=yes | |
6887 fi | |
6888 if test -z "$ac_cpp_err"; then | |
6889 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes | |
6890 else | |
6891 echo "$as_me: failed program was:" >&5 | |
25897 | 6892 cat conftest.$ac_ext >&5 |
40056 | 6893 ac_cv_header_X11_Xaw3d_Scrollbar_h=no |
6894 fi | |
6895 rm -f conftest.err conftest.$ac_ext | |
6896 fi | |
43924 | 6897 echo "$as_me:6897: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 |
40056 | 6898 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 |
6899 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then | |
43924 | 6900 echo "$as_me:6900: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
40056 | 6901 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 |
6902 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then | |
6903 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6904 else | |
6905 ac_check_lib_save_LIBS=$LIBS | |
35206 | 6906 LIBS="-lXaw3d $LIBS" |
40056 | 6907 cat >conftest.$ac_ext <<_ACEOF |
43924 | 6908 #line 6908 "configure" |
40056 | 6909 #include "confdefs.h" |
6910 | |
25897 | 6911 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6912 #ifdef __cplusplus |
6913 extern "C" | |
6914 #endif | |
25897 | 6915 /* We use char because int might match the return type of a gcc2 |
40056 | 6916 builtin and then its argument prototype would still apply. */ |
6917 char XawScrollbarSetThumb (); | |
6918 int | |
6919 main () | |
6920 { | |
6921 XawScrollbarSetThumb (); | |
6922 ; | |
6923 return 0; | |
6924 } | |
6925 _ACEOF | |
6926 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 6927 if { (eval echo "$as_me:6927: \"$ac_link\"") >&5 |
6928 (eval $ac_link) 2>&5 | |
6929 ac_status=$? | |
6930 echo "$as_me:6930: \$? = $ac_status" >&5 | |
41148 | 6931 (exit $ac_status); } && |
6932 { ac_try='test -s conftest$ac_exeext' | |
43924 | 6933 { (eval echo "$as_me:6933: \"$ac_try\"") >&5 |
6934 (eval $ac_try) 2>&5 | |
6935 ac_status=$? | |
6936 echo "$as_me:6936: \$? = $ac_status" >&5 | |
40056 | 6937 (exit $ac_status); }; }; then |
6938 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes | |
6939 else | |
6940 echo "$as_me: failed program was:" >&5 | |
6941 cat conftest.$ac_ext >&5 | |
6942 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no | |
6943 fi | |
6944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6945 LIBS=$ac_check_lib_save_LIBS | |
6946 fi | |
43924 | 6947 echo "$as_me:6947: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
40056 | 6948 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 |
6949 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then | |
25897 | 6950 HAVE_XAW3D=yes |
40056 | 6951 fi |
6952 | |
25897 | 6953 fi |
6954 | |
6955 if test "${HAVE_XAW3D}" = "yes"; then | |
40056 | 6956 cat >>confdefs.h <<\EOF |
25897 | 6957 #define HAVE_XAW3D 1 |
6958 EOF | |
6959 | |
6960 fi | |
6961 fi | |
6962 fi | |
6963 | |
6964 USE_TOOLKIT_SCROLL_BARS=no | |
6965 if test "${with_toolkit_scroll_bars}" != "no"; then | |
6966 if test "${USE_X_TOOLKIT}" != "none"; then | |
6967 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
40056 | 6968 cat >>confdefs.h <<\EOF |
25897 | 6969 #define USE_TOOLKIT_SCROLL_BARS 1 |
6970 EOF | |
6971 | |
6972 HAVE_XAW3D=no | |
6973 USE_TOOLKIT_SCROLL_BARS=yes | |
6974 elif test "${HAVE_XAW3D}" = "yes"; then | |
40056 | 6975 cat >>confdefs.h <<\EOF |
25897 | 6976 #define USE_TOOLKIT_SCROLL_BARS 1 |
6977 EOF | |
6978 | |
6979 USE_TOOLKIT_SCROLL_BARS=yes | |
6980 fi | |
6981 fi | |
6982 fi | |
6983 | |
29949 | 6984 if test "${with_xim}" != "no"; then |
40056 | 6985 cat >>confdefs.h <<\EOF |
29949 | 6986 #define USE_XIM 1 |
6987 EOF | |
6988 | |
6989 fi | |
6990 | |
25897 | 6991 ### Use -lXpm if available, unless `--with-xpm=no'. |
6992 HAVE_XPM=no | |
6993 if test "${HAVE_X11}" = "yes"; then | |
6994 if test "${with_xpm}" != "no"; then | |
43924 | 6995 echo "$as_me:6995: checking for X11/xpm.h" >&5 |
40056 | 6996 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 |
6997 if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
6998 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6999 else | |
7000 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 7001 #line 7001 "configure" |
25897 | 7002 #include "confdefs.h" |
7003 #include <X11/xpm.h> | |
40056 | 7004 _ACEOF |
43924 | 7005 if { (eval echo "$as_me:7005: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 7006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7007 ac_status=$? | |
7008 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7009 rm -f conftest.er1 | |
7010 cat conftest.err >&5 | |
43924 | 7011 echo "$as_me:7011: \$? = $ac_status" >&5 |
40056 | 7012 (exit $ac_status); } >/dev/null; then |
7013 if test -s conftest.err; then | |
7014 ac_cpp_err=$ac_c_preproc_warn_flag | |
7015 else | |
7016 ac_cpp_err= | |
7017 fi | |
7018 else | |
7019 ac_cpp_err=yes | |
7020 fi | |
7021 if test -z "$ac_cpp_err"; then | |
7022 ac_cv_header_X11_xpm_h=yes | |
7023 else | |
7024 echo "$as_me: failed program was:" >&5 | |
25897 | 7025 cat conftest.$ac_ext >&5 |
40056 | 7026 ac_cv_header_X11_xpm_h=no |
7027 fi | |
7028 rm -f conftest.err conftest.$ac_ext | |
7029 fi | |
43924 | 7030 echo "$as_me:7030: result: $ac_cv_header_X11_xpm_h" >&5 |
40056 | 7031 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 |
7032 if test $ac_cv_header_X11_xpm_h = yes; then | |
43924 | 7033 echo "$as_me:7033: checking for XpmReadFileToPixmap in -lXpm" >&5 |
40056 | 7034 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 |
7035 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | |
7036 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7037 else | |
7038 ac_check_lib_save_LIBS=$LIBS | |
25897 | 7039 LIBS="-lXpm -lX11 $LIBS" |
40056 | 7040 cat >conftest.$ac_ext <<_ACEOF |
43924 | 7041 #line 7041 "configure" |
40056 | 7042 #include "confdefs.h" |
7043 | |
25897 | 7044 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7045 #ifdef __cplusplus |
7046 extern "C" | |
7047 #endif | |
25897 | 7048 /* We use char because int might match the return type of a gcc2 |
40056 | 7049 builtin and then its argument prototype would still apply. */ |
7050 char XpmReadFileToPixmap (); | |
7051 int | |
7052 main () | |
7053 { | |
7054 XpmReadFileToPixmap (); | |
7055 ; | |
7056 return 0; | |
7057 } | |
7058 _ACEOF | |
7059 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 7060 if { (eval echo "$as_me:7060: \"$ac_link\"") >&5 |
7061 (eval $ac_link) 2>&5 | |
7062 ac_status=$? | |
7063 echo "$as_me:7063: \$? = $ac_status" >&5 | |
41148 | 7064 (exit $ac_status); } && |
7065 { ac_try='test -s conftest$ac_exeext' | |
43924 | 7066 { (eval echo "$as_me:7066: \"$ac_try\"") >&5 |
7067 (eval $ac_try) 2>&5 | |
7068 ac_status=$? | |
7069 echo "$as_me:7069: \$? = $ac_status" >&5 | |
40056 | 7070 (exit $ac_status); }; }; then |
7071 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes | |
7072 else | |
7073 echo "$as_me: failed program was:" >&5 | |
7074 cat conftest.$ac_ext >&5 | |
7075 ac_cv_lib_Xpm_XpmReadFileToPixmap=no | |
7076 fi | |
7077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7078 LIBS=$ac_check_lib_save_LIBS | |
7079 fi | |
43924 | 7080 echo "$as_me:7080: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
40056 | 7081 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 |
7082 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | |
25897 | 7083 HAVE_XPM=yes |
40056 | 7084 fi |
7085 | |
25897 | 7086 fi |
7087 | |
30140 | 7088 if test "${HAVE_XPM}" = "yes"; then |
43924 | 7089 echo "$as_me:7089: checking for XpmReturnAllocPixels preprocessor define" >&5 |
40056 | 7090 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 |
7091 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 7092 #line 7092 "configure" |
30140 | 7093 #include "confdefs.h" |
7094 #include "X11/xpm.h" | |
7095 #ifndef XpmReturnAllocPixels | |
7096 no_return_alloc_pixels | |
7097 #endif | |
40056 | 7098 |
7099 _ACEOF | |
30140 | 7100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7101 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then | |
7102 HAVE_XPM=no | |
7103 else | |
7104 HAVE_XPM=yes | |
7105 fi | |
7106 rm -f conftest* | |
7107 | |
36903 | 7108 if test "${HAVE_XPM}" = "yes"; then |
43924 | 7109 echo "$as_me:7109: result: yes" >&5 |
40056 | 7110 echo "${ECHO_T}yes" >&6 |
36903 | 7111 else |
43924 | 7112 echo "$as_me:7112: result: no" >&5 |
40056 | 7113 echo "${ECHO_T}no" >&6 |
36903 | 7114 fi |
31320 | 7115 fi |
25897 | 7116 fi |
7117 | |
7118 if test "${HAVE_XPM}" = "yes"; then | |
40056 | 7119 cat >>confdefs.h <<\EOF |
25897 | 7120 #define HAVE_XPM 1 |
7121 EOF | |
7122 | |
7123 fi | |
7124 fi | |
40056 | 7125 |
25897 | 7126 ### Use -ljpeg if available, unless `--with-jpeg=no'. |
7127 HAVE_JPEG=no | |
7128 if test "${HAVE_X11}" = "yes"; then | |
7129 if test "${with_jpeg}" != "no"; then | |
43924 | 7130 echo "$as_me:7130: checking for jerror.h" >&5 |
40056 | 7131 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 |
7132 if test "${ac_cv_header_jerror_h+set}" = set; then | |
7133 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7134 else | |
7135 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 7136 #line 7136 "configure" |
27356 | 7137 #include "confdefs.h" |
7138 #include <jerror.h> | |
40056 | 7139 _ACEOF |
43924 | 7140 if { (eval echo "$as_me:7140: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 7141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7142 ac_status=$? | |
7143 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7144 rm -f conftest.er1 | |
7145 cat conftest.err >&5 | |
43924 | 7146 echo "$as_me:7146: \$? = $ac_status" >&5 |
40056 | 7147 (exit $ac_status); } >/dev/null; then |
7148 if test -s conftest.err; then | |
7149 ac_cpp_err=$ac_c_preproc_warn_flag | |
7150 else | |
7151 ac_cpp_err= | |
7152 fi | |
7153 else | |
7154 ac_cpp_err=yes | |
7155 fi | |
7156 if test -z "$ac_cpp_err"; then | |
7157 ac_cv_header_jerror_h=yes | |
7158 else | |
7159 echo "$as_me: failed program was:" >&5 | |
27356 | 7160 cat conftest.$ac_ext >&5 |
40056 | 7161 ac_cv_header_jerror_h=no |
7162 fi | |
7163 rm -f conftest.err conftest.$ac_ext | |
7164 fi | |
43924 | 7165 echo "$as_me:7165: result: $ac_cv_header_jerror_h" >&5 |
40056 | 7166 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 |
7167 if test $ac_cv_header_jerror_h = yes; then | |
43924 | 7168 echo "$as_me:7168: checking for jpeg_destroy_compress in -ljpeg" >&5 |
40056 | 7169 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 |
7170 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | |
7171 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7172 else | |
7173 ac_check_lib_save_LIBS=$LIBS | |
35206 | 7174 LIBS="-ljpeg $LIBS" |
40056 | 7175 cat >conftest.$ac_ext <<_ACEOF |
43924 | 7176 #line 7176 "configure" |
40056 | 7177 #include "confdefs.h" |
7178 | |
25897 | 7179 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7180 #ifdef __cplusplus |
7181 extern "C" | |
7182 #endif | |
25897 | 7183 /* We use char because int might match the return type of a gcc2 |
40056 | 7184 builtin and then its argument prototype would still apply. */ |
7185 char jpeg_destroy_compress (); | |
7186 int | |
7187 main () | |
7188 { | |
7189 jpeg_destroy_compress (); | |
7190 ; | |
7191 return 0; | |
7192 } | |
7193 _ACEOF | |
7194 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 7195 if { (eval echo "$as_me:7195: \"$ac_link\"") >&5 |
7196 (eval $ac_link) 2>&5 | |
7197 ac_status=$? | |
7198 echo "$as_me:7198: \$? = $ac_status" >&5 | |
41148 | 7199 (exit $ac_status); } && |
7200 { ac_try='test -s conftest$ac_exeext' | |
43924 | 7201 { (eval echo "$as_me:7201: \"$ac_try\"") >&5 |
7202 (eval $ac_try) 2>&5 | |
7203 ac_status=$? | |
7204 echo "$as_me:7204: \$? = $ac_status" >&5 | |
40056 | 7205 (exit $ac_status); }; }; then |
7206 ac_cv_lib_jpeg_jpeg_destroy_compress=yes | |
7207 else | |
7208 echo "$as_me: failed program was:" >&5 | |
7209 cat conftest.$ac_ext >&5 | |
7210 ac_cv_lib_jpeg_jpeg_destroy_compress=no | |
7211 fi | |
7212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7213 LIBS=$ac_check_lib_save_LIBS | |
7214 fi | |
43924 | 7215 echo "$as_me:7215: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
40056 | 7216 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 |
7217 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | |
25897 | 7218 HAVE_JPEG=yes |
40056 | 7219 fi |
7220 | |
27356 | 7221 fi |
7222 | |
25897 | 7223 fi |
7224 | |
7225 if test "${HAVE_JPEG}" = "yes"; then | |
40056 | 7226 cat >>confdefs.h <<\EOF |
25897 | 7227 #define HAVE_JPEG 1 |
7228 EOF | |
7229 | |
43721 | 7230 cat >conftest.$ac_ext <<_ACEOF |
43924 | 7231 #line 7231 "configure" |
43721 | 7232 #include "confdefs.h" |
7233 #include <jpeglib.h> | |
7234 version=JPEG_LIB_VERSION | |
7235 | |
7236 _ACEOF | |
7237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7238 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then | |
7239 cat >>confdefs.h <<\EOF | |
7240 #define HAVE_JPEG 1 | |
7241 EOF | |
7242 | |
7243 else | |
43924 | 7244 { echo "$as_me:7244: WARNING: libjpeg found, but not version 6b or later" >&5 |
43721 | 7245 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
7246 HAVE_JPEG=no | |
7247 fi | |
7248 rm -f conftest* | |
7249 | |
25897 | 7250 fi |
7251 fi | |
40056 | 7252 |
25897 | 7253 ### Use -lpng if available, unless `--with-png=no'. |
7254 HAVE_PNG=no | |
7255 if test "${HAVE_X11}" = "yes"; then | |
7256 if test "${with_png}" != "no"; then | |
43924 | 7257 echo "$as_me:7257: checking for png.h" >&5 |
40056 | 7258 echo $ECHO_N "checking for png.h... $ECHO_C" >&6 |
7259 if test "${ac_cv_header_png_h+set}" = set; then | |
7260 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7261 else | |
7262 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 7263 #line 7263 "configure" |
25897 | 7264 #include "confdefs.h" |
7265 #include <png.h> | |
40056 | 7266 _ACEOF |
43924 | 7267 if { (eval echo "$as_me:7267: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 7268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7269 ac_status=$? | |
7270 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7271 rm -f conftest.er1 | |
7272 cat conftest.err >&5 | |
43924 | 7273 echo "$as_me:7273: \$? = $ac_status" >&5 |
40056 | 7274 (exit $ac_status); } >/dev/null; then |
7275 if test -s conftest.err; then | |
7276 ac_cpp_err=$ac_c_preproc_warn_flag | |
7277 else | |
7278 ac_cpp_err= | |
7279 fi | |
7280 else | |
7281 ac_cpp_err=yes | |
7282 fi | |
7283 if test -z "$ac_cpp_err"; then | |
7284 ac_cv_header_png_h=yes | |
7285 else | |
7286 echo "$as_me: failed program was:" >&5 | |
25897 | 7287 cat conftest.$ac_ext >&5 |
40056 | 7288 ac_cv_header_png_h=no |
7289 fi | |
7290 rm -f conftest.err conftest.$ac_ext | |
7291 fi | |
43924 | 7292 echo "$as_me:7292: result: $ac_cv_header_png_h" >&5 |
40056 | 7293 echo "${ECHO_T}$ac_cv_header_png_h" >&6 |
7294 if test $ac_cv_header_png_h = yes; then | |
43924 | 7295 echo "$as_me:7295: checking for png_get_channels in -lpng" >&5 |
40056 | 7296 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 |
7297 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | |
7298 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7299 else | |
7300 ac_check_lib_save_LIBS=$LIBS | |
35206 | 7301 LIBS="-lpng -lz -lm $LIBS" |
40056 | 7302 cat >conftest.$ac_ext <<_ACEOF |
43924 | 7303 #line 7303 "configure" |
40056 | 7304 #include "confdefs.h" |
7305 | |
25897 | 7306 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7307 #ifdef __cplusplus |
7308 extern "C" | |
7309 #endif | |
25897 | 7310 /* We use char because int might match the return type of a gcc2 |
40056 | 7311 builtin and then its argument prototype would still apply. */ |
7312 char png_get_channels (); | |
7313 int | |
7314 main () | |
7315 { | |
7316 png_get_channels (); | |
7317 ; | |
7318 return 0; | |
7319 } | |
7320 _ACEOF | |
7321 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 7322 if { (eval echo "$as_me:7322: \"$ac_link\"") >&5 |
7323 (eval $ac_link) 2>&5 | |
7324 ac_status=$? | |
7325 echo "$as_me:7325: \$? = $ac_status" >&5 | |
41148 | 7326 (exit $ac_status); } && |
7327 { ac_try='test -s conftest$ac_exeext' | |
43924 | 7328 { (eval echo "$as_me:7328: \"$ac_try\"") >&5 |
7329 (eval $ac_try) 2>&5 | |
7330 ac_status=$? | |
7331 echo "$as_me:7331: \$? = $ac_status" >&5 | |
40056 | 7332 (exit $ac_status); }; }; then |
7333 ac_cv_lib_png_png_get_channels=yes | |
7334 else | |
7335 echo "$as_me: failed program was:" >&5 | |
7336 cat conftest.$ac_ext >&5 | |
7337 ac_cv_lib_png_png_get_channels=no | |
7338 fi | |
7339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7340 LIBS=$ac_check_lib_save_LIBS | |
7341 fi | |
43924 | 7342 echo "$as_me:7342: result: $ac_cv_lib_png_png_get_channels" >&5 |
40056 | 7343 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 |
7344 if test $ac_cv_lib_png_png_get_channels = yes; then | |
25897 | 7345 HAVE_PNG=yes |
40056 | 7346 fi |
7347 | |
25897 | 7348 fi |
7349 | |
7350 fi | |
7351 | |
7352 if test "${HAVE_PNG}" = "yes"; then | |
40056 | 7353 cat >>confdefs.h <<\EOF |
25897 | 7354 #define HAVE_PNG 1 |
7355 EOF | |
7356 | |
7357 fi | |
7358 fi | |
40056 | 7359 |
25897 | 7360 ### Use -ltiff if available, unless `--with-tiff=no'. |
7361 HAVE_TIFF=no | |
7362 if test "${HAVE_X11}" = "yes"; then | |
7363 if test "${with_tiff}" != "no"; then | |
43924 | 7364 echo "$as_me:7364: checking for tiffio.h" >&5 |
40056 | 7365 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
7366 if test "${ac_cv_header_tiffio_h+set}" = set; then | |
7367 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7368 else | |
7369 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 7370 #line 7370 "configure" |
25897 | 7371 #include "confdefs.h" |
7372 #include <tiffio.h> | |
40056 | 7373 _ACEOF |
43924 | 7374 if { (eval echo "$as_me:7374: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 7375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7376 ac_status=$? | |
7377 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7378 rm -f conftest.er1 | |
7379 cat conftest.err >&5 | |
43924 | 7380 echo "$as_me:7380: \$? = $ac_status" >&5 |
40056 | 7381 (exit $ac_status); } >/dev/null; then |
7382 if test -s conftest.err; then | |
7383 ac_cpp_err=$ac_c_preproc_warn_flag | |
7384 else | |
7385 ac_cpp_err= | |
7386 fi | |
7387 else | |
7388 ac_cpp_err=yes | |
7389 fi | |
7390 if test -z "$ac_cpp_err"; then | |
7391 ac_cv_header_tiffio_h=yes | |
7392 else | |
7393 echo "$as_me: failed program was:" >&5 | |
25897 | 7394 cat conftest.$ac_ext >&5 |
40056 | 7395 ac_cv_header_tiffio_h=no |
7396 fi | |
7397 rm -f conftest.err conftest.$ac_ext | |
7398 fi | |
43924 | 7399 echo "$as_me:7399: result: $ac_cv_header_tiffio_h" >&5 |
40056 | 7400 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
7401 if test $ac_cv_header_tiffio_h = yes; then | |
35206 | 7402 tifflibs="-lz -lm" |
27752
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
7403 # 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
|
7404 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
43924 | 7405 echo "$as_me:7405: checking for TIFFGetVersion in -ltiff" >&5 |
40056 | 7406 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 |
7407 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | |
7408 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7409 else | |
7410 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
|
7411 LIBS="-ltiff $tifflibs $LIBS" |
40056 | 7412 cat >conftest.$ac_ext <<_ACEOF |
43924 | 7413 #line 7413 "configure" |
40056 | 7414 #include "confdefs.h" |
7415 | |
25897 | 7416 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7417 #ifdef __cplusplus |
7418 extern "C" | |
7419 #endif | |
25897 | 7420 /* We use char because int might match the return type of a gcc2 |
40056 | 7421 builtin and then its argument prototype would still apply. */ |
7422 char TIFFGetVersion (); | |
7423 int | |
7424 main () | |
7425 { | |
7426 TIFFGetVersion (); | |
7427 ; | |
7428 return 0; | |
7429 } | |
7430 _ACEOF | |
7431 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 7432 if { (eval echo "$as_me:7432: \"$ac_link\"") >&5 |
7433 (eval $ac_link) 2>&5 | |
7434 ac_status=$? | |
7435 echo "$as_me:7435: \$? = $ac_status" >&5 | |
41148 | 7436 (exit $ac_status); } && |
7437 { ac_try='test -s conftest$ac_exeext' | |
43924 | 7438 { (eval echo "$as_me:7438: \"$ac_try\"") >&5 |
7439 (eval $ac_try) 2>&5 | |
7440 ac_status=$? | |
7441 echo "$as_me:7441: \$? = $ac_status" >&5 | |
40056 | 7442 (exit $ac_status); }; }; then |
7443 ac_cv_lib_tiff_TIFFGetVersion=yes | |
7444 else | |
7445 echo "$as_me: failed program was:" >&5 | |
7446 cat conftest.$ac_ext >&5 | |
7447 ac_cv_lib_tiff_TIFFGetVersion=no | |
7448 fi | |
7449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7450 LIBS=$ac_check_lib_save_LIBS | |
7451 fi | |
43924 | 7452 echo "$as_me:7452: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
40056 | 7453 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 |
7454 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | |
25897 | 7455 HAVE_TIFF=yes |
40056 | 7456 fi |
7457 | |
25897 | 7458 fi |
7459 | |
7460 fi | |
7461 | |
7462 if test "${HAVE_TIFF}" = "yes"; then | |
40056 | 7463 cat >>confdefs.h <<\EOF |
25897 | 7464 #define HAVE_TIFF 1 |
7465 EOF | |
7466 | |
7467 fi | |
7468 fi | |
40056 | 7469 |
25897 | 7470 ### Use -lgif if available, unless `--with-gif=no'. |
7471 HAVE_GIF=no | |
7472 if test "${HAVE_X11}" = "yes"; then | |
7473 if test "${with_gif}" != "no"; then | |
43924 | 7474 echo "$as_me:7474: checking for gif_lib.h" >&5 |
40056 | 7475 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 |
7476 if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
7477 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7478 else | |
7479 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 7480 #line 7480 "configure" |
25897 | 7481 #include "confdefs.h" |
7482 #include <gif_lib.h> | |
40056 | 7483 _ACEOF |
43924 | 7484 if { (eval echo "$as_me:7484: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 7485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7486 ac_status=$? | |
7487 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7488 rm -f conftest.er1 | |
7489 cat conftest.err >&5 | |
43924 | 7490 echo "$as_me:7490: \$? = $ac_status" >&5 |
40056 | 7491 (exit $ac_status); } >/dev/null; then |
7492 if test -s conftest.err; then | |
7493 ac_cpp_err=$ac_c_preproc_warn_flag | |
7494 else | |
7495 ac_cpp_err= | |
7496 fi | |
7497 else | |
7498 ac_cpp_err=yes | |
7499 fi | |
7500 if test -z "$ac_cpp_err"; then | |
7501 ac_cv_header_gif_lib_h=yes | |
7502 else | |
7503 echo "$as_me: failed program was:" >&5 | |
25897 | 7504 cat conftest.$ac_ext >&5 |
40056 | 7505 ac_cv_header_gif_lib_h=no |
7506 fi | |
7507 rm -f conftest.err conftest.$ac_ext | |
7508 fi | |
43924 | 7509 echo "$as_me:7509: result: $ac_cv_header_gif_lib_h" >&5 |
40056 | 7510 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 |
7511 if test $ac_cv_header_gif_lib_h = yes; then | |
43721 | 7512 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. |
7513 # Earlier versions can crash Emacs. | |
43924 | 7514 echo "$as_me:7514: checking for EGifPutExtensionLast in -lungif" >&5 |
43721 | 7515 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6 |
7516 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | |
40056 | 7517 echo $ECHO_N "(cached) $ECHO_C" >&6 |
7518 else | |
7519 ac_check_lib_save_LIBS=$LIBS | |
35206 | 7520 LIBS="-lungif $LIBS" |
40056 | 7521 cat >conftest.$ac_ext <<_ACEOF |
43924 | 7522 #line 7522 "configure" |
40056 | 7523 #include "confdefs.h" |
7524 | |
25897 | 7525 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7526 #ifdef __cplusplus |
7527 extern "C" | |
7528 #endif | |
25897 | 7529 /* We use char because int might match the return type of a gcc2 |
40056 | 7530 builtin and then its argument prototype would still apply. */ |
43721 | 7531 char EGifPutExtensionLast (); |
7532 int | |
7533 main () | |
7534 { | |
7535 EGifPutExtensionLast (); | |
40056 | 7536 ; |
7537 return 0; | |
7538 } | |
7539 _ACEOF | |
7540 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 7541 if { (eval echo "$as_me:7541: \"$ac_link\"") >&5 |
7542 (eval $ac_link) 2>&5 | |
7543 ac_status=$? | |
7544 echo "$as_me:7544: \$? = $ac_status" >&5 | |
41148 | 7545 (exit $ac_status); } && |
7546 { ac_try='test -s conftest$ac_exeext' | |
43924 | 7547 { (eval echo "$as_me:7547: \"$ac_try\"") >&5 |
7548 (eval $ac_try) 2>&5 | |
7549 ac_status=$? | |
7550 echo "$as_me:7550: \$? = $ac_status" >&5 | |
43721 | 7551 (exit $ac_status); }; }; then |
7552 ac_cv_lib_ungif_EGifPutExtensionLast=yes | |
7553 else | |
7554 echo "$as_me: failed program was:" >&5 | |
7555 cat conftest.$ac_ext >&5 | |
7556 ac_cv_lib_ungif_EGifPutExtensionLast=no | |
40056 | 7557 fi |
7558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7559 LIBS=$ac_check_lib_save_LIBS | |
7560 fi | |
43924 | 7561 echo "$as_me:7561: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
43721 | 7562 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6 |
7563 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | |
25897 | 7564 HAVE_GIF=yes |
40056 | 7565 fi |
7566 | |
25897 | 7567 fi |
7568 | |
7569 fi | |
7570 | |
7571 if test "${HAVE_GIF}" = "yes"; then | |
40056 | 7572 cat >>confdefs.h <<\EOF |
25897 | 7573 #define HAVE_GIF 1 |
7574 EOF | |
7575 | |
7576 fi | |
7577 fi | |
7578 | |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7579 ### Use session management (-lSM -lICE) if available |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7580 HAVE_X_SM=no |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7581 if test "${HAVE_X11}" = "yes"; then |
43924 | 7582 echo "$as_me:7582: checking for X11/SM/SMlib.h" >&5 |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7583 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7584 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7585 echo $ECHO_N "(cached) $ECHO_C" >&6 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7586 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7587 cat >conftest.$ac_ext <<_ACEOF |
43924 | 7588 #line 7588 "configure" |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7589 #include "confdefs.h" |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7590 #include <X11/SM/SMlib.h> |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7591 _ACEOF |
43924 | 7592 if { (eval echo "$as_me:7592: \"$ac_cpp conftest.$ac_ext\"") >&5 |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7594 ac_status=$? |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7595 egrep -v '^ *\+' conftest.er1 >conftest.err |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7596 rm -f conftest.er1 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7597 cat conftest.err >&5 |
43924 | 7598 echo "$as_me:7598: \$? = $ac_status" >&5 |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7599 (exit $ac_status); } >/dev/null; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7600 if test -s conftest.err; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7601 ac_cpp_err=$ac_c_preproc_warn_flag |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7602 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7603 ac_cpp_err= |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7604 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7605 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7606 ac_cpp_err=yes |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7607 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7608 if test -z "$ac_cpp_err"; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7609 ac_cv_header_X11_SM_SMlib_h=yes |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7610 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7611 echo "$as_me: failed program was:" >&5 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7612 cat conftest.$ac_ext >&5 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7613 ac_cv_header_X11_SM_SMlib_h=no |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7614 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7615 rm -f conftest.err conftest.$ac_ext |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7616 fi |
43924 | 7617 echo "$as_me:7617: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7618 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7619 if test $ac_cv_header_X11_SM_SMlib_h = yes; then |
43924 | 7620 echo "$as_me:7620: checking for SmcOpenConnection in -lSM" >&5 |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7621 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7622 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7623 echo $ECHO_N "(cached) $ECHO_C" >&6 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7624 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7625 ac_check_lib_save_LIBS=$LIBS |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7626 LIBS="-lSM $LIBS" |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7627 cat >conftest.$ac_ext <<_ACEOF |
43924 | 7628 #line 7628 "configure" |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7629 #include "confdefs.h" |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7630 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7631 /* Override any gcc2 internal prototype to avoid an error. */ |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7632 #ifdef __cplusplus |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7633 extern "C" |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7634 #endif |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7635 /* We use char because int might match the return type of a gcc2 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7636 builtin and then its argument prototype would still apply. */ |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7637 char SmcOpenConnection (); |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7638 int |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7639 main () |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7640 { |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7641 SmcOpenConnection (); |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7642 ; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7643 return 0; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7644 } |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7645 _ACEOF |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7646 rm -f conftest.$ac_objext conftest$ac_exeext |
43924 | 7647 if { (eval echo "$as_me:7647: \"$ac_link\"") >&5 |
7648 (eval $ac_link) 2>&5 | |
7649 ac_status=$? | |
7650 echo "$as_me:7650: \$? = $ac_status" >&5 | |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7651 (exit $ac_status); } && |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7652 { ac_try='test -s conftest$ac_exeext' |
43924 | 7653 { (eval echo "$as_me:7653: \"$ac_try\"") >&5 |
7654 (eval $ac_try) 2>&5 | |
7655 ac_status=$? | |
7656 echo "$as_me:7656: \$? = $ac_status" >&5 | |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7657 (exit $ac_status); }; }; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7658 ac_cv_lib_SM_SmcOpenConnection=yes |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7659 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7660 echo "$as_me: failed program was:" >&5 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7661 cat conftest.$ac_ext >&5 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7662 ac_cv_lib_SM_SmcOpenConnection=no |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7663 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7665 LIBS=$ac_check_lib_save_LIBS |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7666 fi |
43924 | 7667 echo "$as_me:7667: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7668 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7669 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7670 HAVE_X_SM=yes |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7671 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7672 -lICE |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7673 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7674 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7675 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7676 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7677 if test "${HAVE_X_SM}" = "yes"; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7678 cat >>confdefs.h <<\EOF |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7679 #define HAVE_X_SM 1 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7680 EOF |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7681 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7682 case "$LIBS" in |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7683 *-lSM*) ;; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7684 *) LIBS="-lSM -lICE $LIBS" ;; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7685 esac |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7686 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7687 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7688 |
25897 | 7689 # If netdb.h doesn't declare h_errno, we must declare it by hand. |
43924 | 7690 echo "$as_me:7690: checking whether netdb declares h_errno" >&5 |
40056 | 7691 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 |
7692 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | |
7693 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7694 else | |
7695 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 7696 #line 7696 "configure" |
25897 | 7697 #include "confdefs.h" |
7698 #include <netdb.h> | |
40056 | 7699 int |
7700 main () | |
7701 { | |
25897 | 7702 return h_errno; |
40056 | 7703 ; |
7704 return 0; | |
7705 } | |
7706 _ACEOF | |
7707 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 7708 if { (eval echo "$as_me:7708: \"$ac_link\"") >&5 |
7709 (eval $ac_link) 2>&5 | |
7710 ac_status=$? | |
7711 echo "$as_me:7711: \$? = $ac_status" >&5 | |
41148 | 7712 (exit $ac_status); } && |
7713 { ac_try='test -s conftest$ac_exeext' | |
43924 | 7714 { (eval echo "$as_me:7714: \"$ac_try\"") >&5 |
7715 (eval $ac_try) 2>&5 | |
7716 ac_status=$? | |
7717 echo "$as_me:7717: \$? = $ac_status" >&5 | |
40056 | 7718 (exit $ac_status); }; }; then |
25897 | 7719 emacs_cv_netdb_declares_h_errno=yes |
7720 else | |
40056 | 7721 echo "$as_me: failed program was:" >&5 |
7722 cat conftest.$ac_ext >&5 | |
7723 emacs_cv_netdb_declares_h_errno=no | |
7724 fi | |
7725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7726 fi | |
43924 | 7727 echo "$as_me:7727: result: $emacs_cv_netdb_declares_h_errno" >&5 |
40056 | 7728 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 |
25897 | 7729 if test $emacs_cv_netdb_declares_h_errno = yes; then |
40056 | 7730 cat >>confdefs.h <<\EOF |
25897 | 7731 #define HAVE_H_ERRNO 1 |
7732 EOF | |
7733 | |
7734 fi | |
7735 | |
7736 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
7737 # for constant arguments. Useless! | |
43924 | 7738 echo "$as_me:7738: checking for working alloca.h" >&5 |
40056 | 7739 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
7740 if test "${ac_cv_working_alloca_h+set}" = set; then | |
7741 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7742 else | |
7743 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 7744 #line 7744 "configure" |
25897 | 7745 #include "confdefs.h" |
7746 #include <alloca.h> | |
40056 | 7747 int |
7748 main () | |
7749 { | |
7750 char *p = (char *) alloca (2 * sizeof (int)); | |
7751 ; | |
7752 return 0; | |
7753 } | |
7754 _ACEOF | |
7755 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 7756 if { (eval echo "$as_me:7756: \"$ac_link\"") >&5 |
7757 (eval $ac_link) 2>&5 | |
7758 ac_status=$? | |
7759 echo "$as_me:7759: \$? = $ac_status" >&5 | |
41148 | 7760 (exit $ac_status); } && |
7761 { ac_try='test -s conftest$ac_exeext' | |
43924 | 7762 { (eval echo "$as_me:7762: \"$ac_try\"") >&5 |
7763 (eval $ac_try) 2>&5 | |
7764 ac_status=$? | |
7765 echo "$as_me:7765: \$? = $ac_status" >&5 | |
40056 | 7766 (exit $ac_status); }; }; then |
7767 ac_cv_working_alloca_h=yes | |
7768 else | |
7769 echo "$as_me: failed program was:" >&5 | |
7770 cat conftest.$ac_ext >&5 | |
7771 ac_cv_working_alloca_h=no | |
7772 fi | |
7773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7774 fi | |
43924 | 7775 echo "$as_me:7775: result: $ac_cv_working_alloca_h" >&5 |
40056 | 7776 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
7777 if test $ac_cv_working_alloca_h = yes; then | |
7778 | |
7779 cat >>confdefs.h <<\EOF | |
25897 | 7780 #define HAVE_ALLOCA_H 1 |
7781 EOF | |
7782 | |
7783 fi | |
7784 | |
43924 | 7785 echo "$as_me:7785: checking for alloca" >&5 |
40056 | 7786 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
7787 if test "${ac_cv_func_alloca_works+set}" = set; then | |
7788 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7789 else | |
7790 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 7791 #line 7791 "configure" |
40056 | 7792 #include "confdefs.h" |
25897 | 7793 #ifdef __GNUC__ |
7794 # define alloca __builtin_alloca | |
7795 #else | |
27205 | 7796 # ifdef _MSC_VER |
7797 # include <malloc.h> | |
7798 # define alloca _alloca | |
25897 | 7799 # else |
27205 | 7800 # if HAVE_ALLOCA_H |
7801 # include <alloca.h> | |
25897 | 7802 # else |
27205 | 7803 # ifdef _AIX |
7804 #pragma alloca | |
7805 # else | |
7806 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
25897 | 7807 char *alloca (); |
27205 | 7808 # endif |
25897 | 7809 # endif |
7810 # endif | |
7811 # endif | |
7812 #endif | |
7813 | |
40056 | 7814 int |
7815 main () | |
7816 { | |
7817 char *p = (char *) alloca (1); | |
7818 ; | |
7819 return 0; | |
7820 } | |
7821 _ACEOF | |
7822 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 7823 if { (eval echo "$as_me:7823: \"$ac_link\"") >&5 |
7824 (eval $ac_link) 2>&5 | |
7825 ac_status=$? | |
7826 echo "$as_me:7826: \$? = $ac_status" >&5 | |
41148 | 7827 (exit $ac_status); } && |
7828 { ac_try='test -s conftest$ac_exeext' | |
43924 | 7829 { (eval echo "$as_me:7829: \"$ac_try\"") >&5 |
7830 (eval $ac_try) 2>&5 | |
7831 ac_status=$? | |
7832 echo "$as_me:7832: \$? = $ac_status" >&5 | |
40056 | 7833 (exit $ac_status); }; }; then |
25897 | 7834 ac_cv_func_alloca_works=yes |
7835 else | |
40056 | 7836 echo "$as_me: failed program was:" >&5 |
7837 cat conftest.$ac_ext >&5 | |
7838 ac_cv_func_alloca_works=no | |
7839 fi | |
7840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7841 fi | |
43924 | 7842 echo "$as_me:7842: result: $ac_cv_func_alloca_works" >&5 |
40056 | 7843 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
7844 | |
25897 | 7845 if test $ac_cv_func_alloca_works = yes; then |
40056 | 7846 |
7847 cat >>confdefs.h <<\EOF | |
25897 | 7848 #define HAVE_ALLOCA 1 |
7849 EOF | |
7850 | |
40056 | 7851 else |
25897 | 7852 # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
40056 | 7853 # that cause trouble. Some versions do not even contain alloca or |
7854 # contain a buggy version. If you still want to use their alloca, | |
7855 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
7856 | |
7857 ALLOCA=alloca.$ac_objext | |
7858 | |
7859 cat >>confdefs.h <<\EOF | |
25897 | 7860 #define C_ALLOCA 1 |
7861 EOF | |
7862 | |
43924 | 7863 echo "$as_me:7863: checking whether \`alloca.c' needs Cray hooks" >&5 |
40056 | 7864 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
7865 if test "${ac_cv_os_cray+set}" = set; then | |
7866 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7867 else | |
7868 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 7869 #line 7869 "configure" |
25897 | 7870 #include "confdefs.h" |
7871 #if defined(CRAY) && ! defined(CRAY2) | |
7872 webecray | |
7873 #else | |
7874 wenotbecray | |
7875 #endif | |
7876 | |
40056 | 7877 _ACEOF |
25897 | 7878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7879 egrep "webecray" >/dev/null 2>&1; then | |
7880 ac_cv_os_cray=yes | |
7881 else | |
7882 ac_cv_os_cray=no | |
7883 fi | |
7884 rm -f conftest* | |
7885 | |
7886 fi | |
43924 | 7887 echo "$as_me:7887: result: $ac_cv_os_cray" >&5 |
40056 | 7888 echo "${ECHO_T}$ac_cv_os_cray" >&6 |
25897 | 7889 if test $ac_cv_os_cray = yes; then |
40056 | 7890 for ac_func in _getb67 GETB67 getb67; do |
7891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
43924 | 7892 echo "$as_me:7892: checking for $ac_func" >&5 |
40056 | 7893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
7894 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7895 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7896 else | |
7897 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 7898 #line 7898 "configure" |
25897 | 7899 #include "confdefs.h" |
7900 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 7901 which can conflict with char $ac_func (); below. */ |
25897 | 7902 #include <assert.h> |
7903 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 7904 #ifdef __cplusplus |
7905 extern "C" | |
7906 #endif | |
25897 | 7907 /* We use char because int might match the return type of a gcc2 |
40056 | 7908 builtin and then its argument prototype would still apply. */ |
7909 char $ac_func (); | |
7910 char (*f) (); | |
7911 | |
7912 int | |
7913 main () | |
7914 { | |
25897 | 7915 /* The GNU C library defines this for functions which it implements |
7916 to always fail with ENOSYS. Some functions are actually named | |
7917 something starting with __ and the normal name is an alias. */ | |
7918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7919 choke me | |
7920 #else | |
40056 | 7921 f = $ac_func; |
7922 #endif | |
7923 | |
7924 ; | |
7925 return 0; | |
7926 } | |
7927 _ACEOF | |
7928 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 7929 if { (eval echo "$as_me:7929: \"$ac_link\"") >&5 |
7930 (eval $ac_link) 2>&5 | |
7931 ac_status=$? | |
7932 echo "$as_me:7932: \$? = $ac_status" >&5 | |
41148 | 7933 (exit $ac_status); } && |
7934 { ac_try='test -s conftest$ac_exeext' | |
43924 | 7935 { (eval echo "$as_me:7935: \"$ac_try\"") >&5 |
7936 (eval $ac_try) 2>&5 | |
7937 ac_status=$? | |
7938 echo "$as_me:7938: \$? = $ac_status" >&5 | |
40056 | 7939 (exit $ac_status); }; }; then |
7940 eval "$as_ac_var=yes" | |
7941 else | |
7942 echo "$as_me: failed program was:" >&5 | |
7943 cat conftest.$ac_ext >&5 | |
7944 eval "$as_ac_var=no" | |
7945 fi | |
7946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7947 fi | |
43924 | 7948 echo "$as_me:7948: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 7949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
7950 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7951 | |
7952 cat >>confdefs.h <<EOF | |
25897 | 7953 #define CRAY_STACKSEG_END $ac_func |
7954 EOF | |
7955 | |
40056 | 7956 break |
7957 fi | |
7958 | |
7959 done | |
7960 fi | |
7961 | |
43924 | 7962 echo "$as_me:7962: checking stack direction for C alloca" >&5 |
40056 | 7963 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
7964 if test "${ac_cv_c_stack_direction+set}" = set; then | |
7965 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 7966 else |
7967 if test "$cross_compiling" = yes; then | |
7968 ac_cv_c_stack_direction=0 | |
7969 else | |
40056 | 7970 cat >conftest.$ac_ext <<_ACEOF |
43924 | 7971 #line 7971 "configure" |
40056 | 7972 #include "confdefs.h" |
7973 int | |
25897 | 7974 find_stack_direction () |
7975 { | |
7976 static char *addr = 0; | |
7977 auto char dummy; | |
7978 if (addr == 0) | |
7979 { | |
7980 addr = &dummy; | |
7981 return find_stack_direction (); | |
7982 } | |
7983 else | |
7984 return (&dummy > addr) ? 1 : -1; | |
7985 } | |
40056 | 7986 |
7987 int | |
7988 main () | |
7989 { | |
7990 exit (find_stack_direction () < 0); | |
7991 } | |
7992 _ACEOF | |
7993 rm -f conftest$ac_exeext | |
43924 | 7994 if { (eval echo "$as_me:7994: \"$ac_link\"") >&5 |
7995 (eval $ac_link) 2>&5 | |
7996 ac_status=$? | |
7997 echo "$as_me:7997: \$? = $ac_status" >&5 | |
40056 | 7998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
43924 | 7999 { (eval echo "$as_me:7999: \"$ac_try\"") >&5 |
8000 (eval $ac_try) 2>&5 | |
8001 ac_status=$? | |
8002 echo "$as_me:8002: \$? = $ac_status" >&5 | |
40056 | 8003 (exit $ac_status); }; }; then |
25897 | 8004 ac_cv_c_stack_direction=1 |
8005 else | |
40056 | 8006 echo "$as_me: program exited with status $ac_status" >&5 |
8007 echo "$as_me: failed program was:" >&5 | |
8008 cat conftest.$ac_ext >&5 | |
8009 ac_cv_c_stack_direction=-1 | |
8010 fi | |
8011 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8012 fi | |
8013 fi | |
43924 | 8014 echo "$as_me:8014: result: $ac_cv_c_stack_direction" >&5 |
40056 | 8015 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
8016 | |
8017 cat >>confdefs.h <<EOF | |
25897 | 8018 #define STACK_DIRECTION $ac_cv_c_stack_direction |
8019 EOF | |
8020 | |
8021 fi | |
8022 | |
8023 # fmod, logb, and frexp are found in -lm on most systems. | |
8024 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
40056 | 8025 |
43924 | 8026 echo "$as_me:8026: checking for sqrt in -lm" >&5 |
40056 | 8027 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
8028 if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
8029 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8030 else | |
8031 ac_check_lib_save_LIBS=$LIBS | |
25897 | 8032 LIBS="-lm $LIBS" |
40056 | 8033 cat >conftest.$ac_ext <<_ACEOF |
43924 | 8034 #line 8034 "configure" |
40056 | 8035 #include "confdefs.h" |
8036 | |
25897 | 8037 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8038 #ifdef __cplusplus |
8039 extern "C" | |
8040 #endif | |
25897 | 8041 /* We use char because int might match the return type of a gcc2 |
40056 | 8042 builtin and then its argument prototype would still apply. */ |
8043 char sqrt (); | |
8044 int | |
8045 main () | |
8046 { | |
8047 sqrt (); | |
8048 ; | |
8049 return 0; | |
8050 } | |
8051 _ACEOF | |
8052 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 8053 if { (eval echo "$as_me:8053: \"$ac_link\"") >&5 |
8054 (eval $ac_link) 2>&5 | |
8055 ac_status=$? | |
8056 echo "$as_me:8056: \$? = $ac_status" >&5 | |
41148 | 8057 (exit $ac_status); } && |
8058 { ac_try='test -s conftest$ac_exeext' | |
43924 | 8059 { (eval echo "$as_me:8059: \"$ac_try\"") >&5 |
8060 (eval $ac_try) 2>&5 | |
8061 ac_status=$? | |
8062 echo "$as_me:8062: \$? = $ac_status" >&5 | |
40056 | 8063 (exit $ac_status); }; }; then |
8064 ac_cv_lib_m_sqrt=yes | |
8065 else | |
8066 echo "$as_me: failed program was:" >&5 | |
8067 cat conftest.$ac_ext >&5 | |
8068 ac_cv_lib_m_sqrt=no | |
8069 fi | |
8070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8071 LIBS=$ac_check_lib_save_LIBS | |
8072 fi | |
43924 | 8073 echo "$as_me:8073: result: $ac_cv_lib_m_sqrt" >&5 |
40056 | 8074 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
8075 if test $ac_cv_lib_m_sqrt = yes; then | |
8076 cat >>confdefs.h <<EOF | |
8077 #define HAVE_LIBM 1 | |
25897 | 8078 EOF |
8079 | |
8080 LIBS="-lm $LIBS" | |
8081 | |
40056 | 8082 fi |
25897 | 8083 |
8084 # Check for mail-locking functions in a "mail" library | |
40056 | 8085 |
43924 | 8086 echo "$as_me:8086: checking for maillock in -lmail" >&5 |
40056 | 8087 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 |
8088 if test "${ac_cv_lib_mail_maillock+set}" = set; then | |
8089 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8090 else | |
8091 ac_check_lib_save_LIBS=$LIBS | |
25897 | 8092 LIBS="-lmail $LIBS" |
40056 | 8093 cat >conftest.$ac_ext <<_ACEOF |
43924 | 8094 #line 8094 "configure" |
40056 | 8095 #include "confdefs.h" |
8096 | |
25897 | 8097 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8098 #ifdef __cplusplus |
8099 extern "C" | |
8100 #endif | |
25897 | 8101 /* We use char because int might match the return type of a gcc2 |
40056 | 8102 builtin and then its argument prototype would still apply. */ |
8103 char maillock (); | |
8104 int | |
8105 main () | |
8106 { | |
8107 maillock (); | |
8108 ; | |
8109 return 0; | |
8110 } | |
8111 _ACEOF | |
8112 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 8113 if { (eval echo "$as_me:8113: \"$ac_link\"") >&5 |
8114 (eval $ac_link) 2>&5 | |
8115 ac_status=$? | |
8116 echo "$as_me:8116: \$? = $ac_status" >&5 | |
41148 | 8117 (exit $ac_status); } && |
8118 { ac_try='test -s conftest$ac_exeext' | |
43924 | 8119 { (eval echo "$as_me:8119: \"$ac_try\"") >&5 |
8120 (eval $ac_try) 2>&5 | |
8121 ac_status=$? | |
8122 echo "$as_me:8122: \$? = $ac_status" >&5 | |
40056 | 8123 (exit $ac_status); }; }; then |
8124 ac_cv_lib_mail_maillock=yes | |
8125 else | |
8126 echo "$as_me: failed program was:" >&5 | |
8127 cat conftest.$ac_ext >&5 | |
8128 ac_cv_lib_mail_maillock=no | |
8129 fi | |
8130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8131 LIBS=$ac_check_lib_save_LIBS | |
8132 fi | |
43924 | 8133 echo "$as_me:8133: result: $ac_cv_lib_mail_maillock" >&5 |
40056 | 8134 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 |
8135 if test $ac_cv_lib_mail_maillock = yes; then | |
8136 cat >>confdefs.h <<EOF | |
8137 #define HAVE_LIBMAIL 1 | |
25897 | 8138 EOF |
8139 | |
8140 LIBS="-lmail $LIBS" | |
8141 | |
40056 | 8142 fi |
8143 | |
43924 | 8144 echo "$as_me:8144: checking for maillock in -llockfile" >&5 |
40056 | 8145 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 |
8146 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | |
8147 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8148 else | |
8149 ac_check_lib_save_LIBS=$LIBS | |
25897 | 8150 LIBS="-llockfile $LIBS" |
40056 | 8151 cat >conftest.$ac_ext <<_ACEOF |
43924 | 8152 #line 8152 "configure" |
40056 | 8153 #include "confdefs.h" |
8154 | |
25897 | 8155 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8156 #ifdef __cplusplus |
8157 extern "C" | |
8158 #endif | |
25897 | 8159 /* We use char because int might match the return type of a gcc2 |
40056 | 8160 builtin and then its argument prototype would still apply. */ |
8161 char maillock (); | |
8162 int | |
8163 main () | |
8164 { | |
8165 maillock (); | |
8166 ; | |
8167 return 0; | |
8168 } | |
8169 _ACEOF | |
8170 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 8171 if { (eval echo "$as_me:8171: \"$ac_link\"") >&5 |
8172 (eval $ac_link) 2>&5 | |
8173 ac_status=$? | |
8174 echo "$as_me:8174: \$? = $ac_status" >&5 | |
41148 | 8175 (exit $ac_status); } && |
8176 { ac_try='test -s conftest$ac_exeext' | |
43924 | 8177 { (eval echo "$as_me:8177: \"$ac_try\"") >&5 |
8178 (eval $ac_try) 2>&5 | |
8179 ac_status=$? | |
8180 echo "$as_me:8180: \$? = $ac_status" >&5 | |
40056 | 8181 (exit $ac_status); }; }; then |
8182 ac_cv_lib_lockfile_maillock=yes | |
8183 else | |
8184 echo "$as_me: failed program was:" >&5 | |
8185 cat conftest.$ac_ext >&5 | |
8186 ac_cv_lib_lockfile_maillock=no | |
8187 fi | |
8188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8189 LIBS=$ac_check_lib_save_LIBS | |
8190 fi | |
43924 | 8191 echo "$as_me:8191: result: $ac_cv_lib_lockfile_maillock" >&5 |
40056 | 8192 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 |
8193 if test $ac_cv_lib_lockfile_maillock = yes; then | |
8194 cat >>confdefs.h <<EOF | |
8195 #define HAVE_LIBLOCKFILE 1 | |
25897 | 8196 EOF |
8197 | |
8198 LIBS="-llockfile $LIBS" | |
8199 | |
8200 fi | |
8201 | |
8202 # If we have the shared liblockfile, assume we must use it for mail | |
8203 # locking (e.g. Debian). If we couldn't link against liblockfile | |
8204 # (no liblockfile.a installed), ensure that we don't need to. | |
8205 if test "$ac_cv_lib_lockfile_maillock" = no; then | |
8206 # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
8207 set dummy liblockfile.so; ac_word=$2 | |
43924 | 8208 echo "$as_me:8208: checking for $ac_word" >&5 |
40056 | 8209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8210 if test "${ac_cv_prog_liblockfile+set}" = set; then | |
8211 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 8212 else |
8213 if test -n "$liblockfile"; then | |
8214 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
8215 else | |
40056 | 8216 ac_save_IFS=$IFS; IFS=$ac_path_separator |
8217 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | |
8218 for ac_dir in $ac_dummy; do | |
8219 IFS=$ac_save_IFS | |
8220 test -z "$ac_dir" && ac_dir=. | |
8221 $as_executable_p "$ac_dir/$ac_word" || continue | |
8222 ac_cv_prog_liblockfile="yes" | |
43924 | 8223 echo "$as_me:8223: found $ac_dir/$ac_word" >&5 |
40056 | 8224 break |
8225 done | |
8226 | |
25897 | 8227 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" |
8228 fi | |
8229 fi | |
40056 | 8230 liblockfile=$ac_cv_prog_liblockfile |
25897 | 8231 if test -n "$liblockfile"; then |
43924 | 8232 echo "$as_me:8232: result: $liblockfile" >&5 |
40056 | 8233 echo "${ECHO_T}$liblockfile" >&6 |
8234 else | |
43924 | 8235 echo "$as_me:8235: result: no" >&5 |
40056 | 8236 echo "${ECHO_T}no" >&6 |
25897 | 8237 fi |
8238 | |
8239 if test $ac_cv_prog_liblockfile = yes; then | |
43924 | 8240 { { echo "$as_me:8240: error: Shared liblockfile found but can't link against it. |
25897 | 8241 This probably means that movemail could lose mail. |
40056 | 8242 There may be a \`development' package to install containing liblockfile." >&5 |
8243 echo "$as_me: error: Shared liblockfile found but can't link against it. | |
8244 This probably means that movemail could lose mail. | |
8245 There may be a \`development' package to install containing liblockfile." >&2;} | |
8246 { (exit 1); exit 1; }; } | |
8247 else cat >>confdefs.h <<\EOF | |
25897 | 8248 #define LIBMAIL -llockfile |
8249 EOF | |
8250 | |
8251 fi | |
8252 else : | |
8253 fi | |
40056 | 8254 |
25897 | 8255 for ac_func in touchlock |
8256 do | |
40056 | 8257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
43924 | 8258 echo "$as_me:8258: checking for $ac_func" >&5 |
40056 | 8259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8260 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8261 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8262 else | |
8263 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 8264 #line 8264 "configure" |
25897 | 8265 #include "confdefs.h" |
8266 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 8267 which can conflict with char $ac_func (); below. */ |
25897 | 8268 #include <assert.h> |
8269 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 8270 #ifdef __cplusplus |
8271 extern "C" | |
8272 #endif | |
25897 | 8273 /* We use char because int might match the return type of a gcc2 |
40056 | 8274 builtin and then its argument prototype would still apply. */ |
8275 char $ac_func (); | |
8276 char (*f) (); | |
8277 | |
8278 int | |
8279 main () | |
8280 { | |
25897 | 8281 /* The GNU C library defines this for functions which it implements |
8282 to always fail with ENOSYS. Some functions are actually named | |
8283 something starting with __ and the normal name is an alias. */ | |
8284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8285 choke me | |
8286 #else | |
40056 | 8287 f = $ac_func; |
8288 #endif | |
8289 | |
8290 ; | |
8291 return 0; | |
8292 } | |
8293 _ACEOF | |
8294 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 8295 if { (eval echo "$as_me:8295: \"$ac_link\"") >&5 |
8296 (eval $ac_link) 2>&5 | |
8297 ac_status=$? | |
8298 echo "$as_me:8298: \$? = $ac_status" >&5 | |
41148 | 8299 (exit $ac_status); } && |
8300 { ac_try='test -s conftest$ac_exeext' | |
43924 | 8301 { (eval echo "$as_me:8301: \"$ac_try\"") >&5 |
8302 (eval $ac_try) 2>&5 | |
8303 ac_status=$? | |
8304 echo "$as_me:8304: \$? = $ac_status" >&5 | |
40056 | 8305 (exit $ac_status); }; }; then |
8306 eval "$as_ac_var=yes" | |
8307 else | |
8308 echo "$as_me: failed program was:" >&5 | |
8309 cat conftest.$ac_ext >&5 | |
8310 eval "$as_ac_var=no" | |
8311 fi | |
8312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8313 fi | |
43924 | 8314 echo "$as_me:8314: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 8315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8316 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8317 cat >>confdefs.h <<EOF | |
8318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8319 EOF | |
8320 | |
25897 | 8321 fi |
8322 done | |
8323 | |
44001
54ecf0606394
Manually edited to add checks for sendto, recvfrom, getsockopt, setsockopt,
Kim F. Storm <storm@cua.dk>
parents:
43924
diff
changeset
|
8324 for ac_header in maillock.h sys/un.h |
25897 | 8325 do |
40056 | 8326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
43924 | 8327 echo "$as_me:8327: checking for $ac_header" >&5 |
40056 | 8328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8329 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8330 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8331 else | |
8332 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 8333 #line 8333 "configure" |
40056 | 8334 #include "confdefs.h" |
8335 #include <$ac_header> | |
8336 _ACEOF | |
43924 | 8337 if { (eval echo "$as_me:8337: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 8338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8339 ac_status=$? | |
8340 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8341 rm -f conftest.er1 | |
8342 cat conftest.err >&5 | |
43924 | 8343 echo "$as_me:8343: \$? = $ac_status" >&5 |
40056 | 8344 (exit $ac_status); } >/dev/null; then |
8345 if test -s conftest.err; then | |
8346 ac_cpp_err=$ac_c_preproc_warn_flag | |
8347 else | |
8348 ac_cpp_err= | |
8349 fi | |
8350 else | |
8351 ac_cpp_err=yes | |
8352 fi | |
8353 if test -z "$ac_cpp_err"; then | |
8354 eval "$as_ac_Header=yes" | |
8355 else | |
8356 echo "$as_me: failed program was:" >&5 | |
25897 | 8357 cat conftest.$ac_ext >&5 |
40056 | 8358 eval "$as_ac_Header=no" |
8359 fi | |
8360 rm -f conftest.err conftest.$ac_ext | |
8361 fi | |
43924 | 8362 echo "$as_me:8362: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 8363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
8364 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8365 cat >>confdefs.h <<EOF | |
8366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8367 EOF | |
8368 | |
25897 | 8369 fi |
8370 done | |
8371 | |
44001
54ecf0606394
Manually edited to add checks for sendto, recvfrom, getsockopt, setsockopt,
Kim F. Storm <storm@cua.dk>
parents:
43924
diff
changeset
|
8372 for ac_func in gethostname getdomainname dup2 \ |
25897 | 8373 rename closedir mkdir rmdir sysinfo \ |
8374 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
8375 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
29733 | 8376 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
42401 | 8377 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
44001
54ecf0606394
Manually edited to add checks for sendto, recvfrom, getsockopt, setsockopt,
Kim F. Storm <storm@cua.dk>
parents:
43924
diff
changeset
|
8378 sendto recvfrom getsockopt setsockopt getsockname getpeername \ |
33286 | 8379 gai_strerror mkstemp |
25897 | 8380 do |
40056 | 8381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
43924 | 8382 echo "$as_me:8381: checking for $ac_func" >&5 |
40056 | 8383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8384 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8385 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8386 else | |
8387 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 8388 #line 8387 "configure" |
25897 | 8389 #include "confdefs.h" |
8390 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 8391 which can conflict with char $ac_func (); below. */ |
25897 | 8392 #include <assert.h> |
8393 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 8394 #ifdef __cplusplus |
8395 extern "C" | |
8396 #endif | |
25897 | 8397 /* We use char because int might match the return type of a gcc2 |
40056 | 8398 builtin and then its argument prototype would still apply. */ |
8399 char $ac_func (); | |
8400 char (*f) (); | |
8401 | |
8402 int | |
8403 main () | |
8404 { | |
25897 | 8405 /* The GNU C library defines this for functions which it implements |
8406 to always fail with ENOSYS. Some functions are actually named | |
8407 something starting with __ and the normal name is an alias. */ | |
8408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8409 choke me | |
8410 #else | |
40056 | 8411 f = $ac_func; |
8412 #endif | |
8413 | |
8414 ; | |
8415 return 0; | |
8416 } | |
8417 _ACEOF | |
8418 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 8419 if { (eval echo "$as_me:8418: \"$ac_link\"") >&5 |
8420 (eval $ac_link) 2>&5 | |
8421 ac_status=$? | |
8422 echo "$as_me:8421: \$? = $ac_status" >&5 | |
41148 | 8423 (exit $ac_status); } && |
8424 { ac_try='test -s conftest$ac_exeext' | |
43924 | 8425 { (eval echo "$as_me:8424: \"$ac_try\"") >&5 |
8426 (eval $ac_try) 2>&5 | |
8427 ac_status=$? | |
8428 echo "$as_me:8427: \$? = $ac_status" >&5 | |
40056 | 8429 (exit $ac_status); }; }; then |
8430 eval "$as_ac_var=yes" | |
8431 else | |
8432 echo "$as_me: failed program was:" >&5 | |
8433 cat conftest.$ac_ext >&5 | |
8434 eval "$as_ac_var=no" | |
8435 fi | |
8436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8437 fi | |
43924 | 8438 echo "$as_me:8437: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 8439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8440 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8441 cat >>confdefs.h <<EOF | |
8442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8443 EOF | |
8444 | |
25897 | 8445 fi |
8446 done | |
8447 | |
40056 | 8448 for ac_header in sys/time.h unistd.h |
28607 | 8449 do |
40056 | 8450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
43924 | 8451 echo "$as_me:8450: checking for $ac_header" >&5 |
40056 | 8452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8453 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8454 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8455 else | |
8456 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 8457 #line 8456 "configure" |
40056 | 8458 #include "confdefs.h" |
8459 #include <$ac_header> | |
8460 _ACEOF | |
43924 | 8461 if { (eval echo "$as_me:8460: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 8462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8463 ac_status=$? | |
8464 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8465 rm -f conftest.er1 | |
8466 cat conftest.err >&5 | |
43924 | 8467 echo "$as_me:8466: \$? = $ac_status" >&5 |
40056 | 8468 (exit $ac_status); } >/dev/null; then |
8469 if test -s conftest.err; then | |
8470 ac_cpp_err=$ac_c_preproc_warn_flag | |
8471 else | |
8472 ac_cpp_err= | |
8473 fi | |
8474 else | |
8475 ac_cpp_err=yes | |
8476 fi | |
8477 if test -z "$ac_cpp_err"; then | |
8478 eval "$as_ac_Header=yes" | |
8479 else | |
8480 echo "$as_me: failed program was:" >&5 | |
28607 | 8481 cat conftest.$ac_ext >&5 |
40056 | 8482 eval "$as_ac_Header=no" |
8483 fi | |
8484 rm -f conftest.err conftest.$ac_ext | |
8485 fi | |
43924 | 8486 echo "$as_me:8485: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 8487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
8488 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8489 cat >>confdefs.h <<EOF | |
8490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8491 EOF | |
8492 | |
28607 | 8493 fi |
8494 done | |
8495 | |
8496 for ac_func in alarm | |
8497 do | |
40056 | 8498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
43924 | 8499 echo "$as_me:8498: checking for $ac_func" >&5 |
40056 | 8500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8501 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8502 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8503 else | |
8504 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 8505 #line 8504 "configure" |
28607 | 8506 #include "confdefs.h" |
8507 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 8508 which can conflict with char $ac_func (); below. */ |
28607 | 8509 #include <assert.h> |
8510 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 8511 #ifdef __cplusplus |
8512 extern "C" | |
8513 #endif | |
28607 | 8514 /* We use char because int might match the return type of a gcc2 |
40056 | 8515 builtin and then its argument prototype would still apply. */ |
8516 char $ac_func (); | |
8517 char (*f) (); | |
8518 | |
8519 int | |
8520 main () | |
8521 { | |
28607 | 8522 /* The GNU C library defines this for functions which it implements |
8523 to always fail with ENOSYS. Some functions are actually named | |
8524 something starting with __ and the normal name is an alias. */ | |
8525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8526 choke me | |
8527 #else | |
40056 | 8528 f = $ac_func; |
8529 #endif | |
8530 | |
8531 ; | |
8532 return 0; | |
8533 } | |
8534 _ACEOF | |
8535 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 8536 if { (eval echo "$as_me:8535: \"$ac_link\"") >&5 |
8537 (eval $ac_link) 2>&5 | |
8538 ac_status=$? | |
8539 echo "$as_me:8538: \$? = $ac_status" >&5 | |
41148 | 8540 (exit $ac_status); } && |
8541 { ac_try='test -s conftest$ac_exeext' | |
43924 | 8542 { (eval echo "$as_me:8541: \"$ac_try\"") >&5 |
8543 (eval $ac_try) 2>&5 | |
8544 ac_status=$? | |
8545 echo "$as_me:8544: \$? = $ac_status" >&5 | |
40056 | 8546 (exit $ac_status); }; }; then |
8547 eval "$as_ac_var=yes" | |
8548 else | |
8549 echo "$as_me: failed program was:" >&5 | |
8550 cat conftest.$ac_ext >&5 | |
8551 eval "$as_ac_var=no" | |
8552 fi | |
8553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8554 fi | |
43924 | 8555 echo "$as_me:8554: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 8556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8557 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8558 cat >>confdefs.h <<EOF | |
8559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8560 EOF | |
8561 | |
28607 | 8562 fi |
8563 done | |
8564 | |
43924 | 8565 echo "$as_me:8564: checking for working mktime" >&5 |
40056 | 8566 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 |
8567 if test "${ac_cv_func_working_mktime+set}" = set; then | |
8568 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28607 | 8569 else |
8570 if test "$cross_compiling" = yes; then | |
8571 ac_cv_func_working_mktime=no | |
8572 else | |
40056 | 8573 cat >conftest.$ac_ext <<_ACEOF |
43924 | 8574 #line 8573 "configure" |
40056 | 8575 #include "confdefs.h" |
8576 /* Test program from Paul Eggert and Tony Leneis. */ | |
28607 | 8577 #if TIME_WITH_SYS_TIME |
8578 # include <sys/time.h> | |
8579 # include <time.h> | |
8580 #else | |
8581 # if HAVE_SYS_TIME_H | |
8582 # include <sys/time.h> | |
8583 # else | |
8584 # include <time.h> | |
8585 # endif | |
8586 #endif | |
8587 | |
8588 #if HAVE_UNISTD_H | |
8589 # include <unistd.h> | |
8590 #endif | |
8591 | |
8592 #if !HAVE_ALARM | |
8593 # define alarm(X) /* empty */ | |
8594 #endif | |
8595 | |
8596 /* Work around redefinition to rpl_putenv by other config tests. */ | |
8597 #undef putenv | |
8598 | |
8599 static time_t time_t_max; | |
8600 | |
8601 /* Values we'll use to set the TZ environment variable. */ | |
8602 static const char *const tz_strings[] = { | |
8603 (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
8604 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
8605 }; | |
8606 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
8607 | |
8608 /* Fail if mktime fails to convert a date in the spring-forward gap. | |
8609 Based on a problem report from Andreas Jaeger. */ | |
8610 static void | |
8611 spring_forward_gap () | |
8612 { | |
40056 | 8613 /* glibc (up to about 1998-10-07) failed this test. */ |
28607 | 8614 struct tm tm; |
8615 | |
8616 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
8617 instead of "TZ=America/Vancouver" in order to detect the bug even | |
8618 on systems that don't support the Olson extension, or don't have the | |
8619 full zoneinfo tables installed. */ | |
8620 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
8621 | |
8622 tm.tm_year = 98; | |
8623 tm.tm_mon = 3; | |
8624 tm.tm_mday = 5; | |
8625 tm.tm_hour = 2; | |
8626 tm.tm_min = 0; | |
8627 tm.tm_sec = 0; | |
8628 tm.tm_isdst = -1; | |
8629 if (mktime (&tm) == (time_t)-1) | |
8630 exit (1); | |
8631 } | |
8632 | |
8633 static void | |
8634 mktime_test (now) | |
8635 time_t now; | |
8636 { | |
8637 struct tm *lt; | |
8638 if ((lt = localtime (&now)) && mktime (lt) != now) | |
8639 exit (1); | |
8640 now = time_t_max - now; | |
8641 if ((lt = localtime (&now)) && mktime (lt) != now) | |
8642 exit (1); | |
8643 } | |
8644 | |
8645 static void | |
8646 irix_6_4_bug () | |
8647 { | |
8648 /* Based on code from Ariel Faigon. */ | |
8649 struct tm tm; | |
8650 tm.tm_year = 96; | |
8651 tm.tm_mon = 3; | |
8652 tm.tm_mday = 0; | |
8653 tm.tm_hour = 0; | |
8654 tm.tm_min = 0; | |
8655 tm.tm_sec = 0; | |
8656 tm.tm_isdst = -1; | |
8657 mktime (&tm); | |
8658 if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
8659 exit (1); | |
8660 } | |
8661 | |
8662 static void | |
8663 bigtime_test (j) | |
8664 int j; | |
8665 { | |
8666 struct tm tm; | |
8667 time_t now; | |
8668 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
8669 now = mktime (&tm); | |
8670 if (now != (time_t) -1) | |
8671 { | |
8672 struct tm *lt = localtime (&now); | |
8673 if (! (lt | |
8674 && lt->tm_year == tm.tm_year | |
8675 && lt->tm_mon == tm.tm_mon | |
8676 && lt->tm_mday == tm.tm_mday | |
8677 && lt->tm_hour == tm.tm_hour | |
8678 && lt->tm_min == tm.tm_min | |
8679 && lt->tm_sec == tm.tm_sec | |
8680 && lt->tm_yday == tm.tm_yday | |
8681 && lt->tm_wday == tm.tm_wday | |
8682 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
8683 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
8684 exit (1); | |
8685 } | |
8686 } | |
8687 | |
8688 int | |
8689 main () | |
8690 { | |
8691 time_t t, delta; | |
8692 int i, j; | |
8693 | |
8694 /* This test makes some buggy mktime implementations loop. | |
8695 Give up after 60 seconds; a mktime slower than that | |
8696 isn't worth using anyway. */ | |
8697 alarm (60); | |
8698 | |
8699 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
8700 continue; | |
8701 time_t_max--; | |
8702 delta = time_t_max / 997; /* a suitable prime number */ | |
8703 for (i = 0; i < N_STRINGS; i++) | |
8704 { | |
8705 if (tz_strings[i]) | |
8706 putenv (tz_strings[i]); | |
8707 | |
8708 for (t = 0; t <= time_t_max - delta; t += delta) | |
8709 mktime_test (t); | |
8710 mktime_test ((time_t) 60 * 60); | |
8711 mktime_test ((time_t) 60 * 60 * 24); | |
8712 | |
8713 for (j = 1; 0 < j; j *= 2) | |
8714 bigtime_test (j); | |
8715 bigtime_test (j - 1); | |
8716 } | |
8717 irix_6_4_bug (); | |
8718 spring_forward_gap (); | |
8719 exit (0); | |
8720 } | |
40056 | 8721 _ACEOF |
8722 rm -f conftest$ac_exeext | |
43924 | 8723 if { (eval echo "$as_me:8722: \"$ac_link\"") >&5 |
8724 (eval $ac_link) 2>&5 | |
8725 ac_status=$? | |
8726 echo "$as_me:8725: \$? = $ac_status" >&5 | |
40056 | 8727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
43924 | 8728 { (eval echo "$as_me:8727: \"$ac_try\"") >&5 |
8729 (eval $ac_try) 2>&5 | |
8730 ac_status=$? | |
8731 echo "$as_me:8730: \$? = $ac_status" >&5 | |
40056 | 8732 (exit $ac_status); }; }; then |
28607 | 8733 ac_cv_func_working_mktime=yes |
8734 else | |
40056 | 8735 echo "$as_me: program exited with status $ac_status" >&5 |
8736 echo "$as_me: failed program was:" >&5 | |
8737 cat conftest.$ac_ext >&5 | |
8738 ac_cv_func_working_mktime=no | |
8739 fi | |
8740 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8741 fi | |
8742 fi | |
43924 | 8743 echo "$as_me:8742: result: $ac_cv_func_working_mktime" >&5 |
40056 | 8744 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 |
28607 | 8745 if test $ac_cv_func_working_mktime = no; then |
40056 | 8746 LIBOBJS="$LIBOBJS mktime.$ac_objext" |
28607 | 8747 fi |
8748 | |
8749 if test "$ac_cv_func_working_mktime" = no; then | |
40056 | 8750 cat >>confdefs.h <<\EOF |
28607 | 8751 #define BROKEN_MKTIME 1 |
8752 EOF | |
8753 | |
8754 fi | |
8755 | |
29834 | 8756 ac_have_func=no # yes means we've found a way to get the load average. |
8757 | |
40056 | 8758 ac_save_LIBS=$LIBS |
8759 | |
8760 # Check for getloadavg, but be sure not to touch the cache variable. | |
43924 | 8761 (echo "$as_me:8760: checking for getloadavg" >&5 |
40056 | 8762 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 |
8763 if test "${ac_cv_func_getloadavg+set}" = set; then | |
8764 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8765 else | |
8766 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 8767 #line 8766 "configure" |
40056 | 8768 #include "confdefs.h" |
8769 /* System header to define __stub macros and hopefully few prototypes, | |
8770 which can conflict with char getloadavg (); below. */ | |
8771 #include <assert.h> | |
8772 /* Override any gcc2 internal prototype to avoid an error. */ | |
8773 #ifdef __cplusplus | |
8774 extern "C" | |
8775 #endif | |
8776 /* We use char because int might match the return type of a gcc2 | |
8777 builtin and then its argument prototype would still apply. */ | |
8778 char getloadavg (); | |
8779 char (*f) (); | |
8780 | |
8781 int | |
8782 main () | |
8783 { | |
8784 /* The GNU C library defines this for functions which it implements | |
8785 to always fail with ENOSYS. Some functions are actually named | |
8786 something starting with __ and the normal name is an alias. */ | |
8787 #if defined (__stub_getloadavg) || defined (__stub___getloadavg) | |
8788 choke me | |
8789 #else | |
8790 f = getloadavg; | |
8791 #endif | |
8792 | |
8793 ; | |
8794 return 0; | |
8795 } | |
8796 _ACEOF | |
8797 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 8798 if { (eval echo "$as_me:8797: \"$ac_link\"") >&5 |
8799 (eval $ac_link) 2>&5 | |
8800 ac_status=$? | |
8801 echo "$as_me:8800: \$? = $ac_status" >&5 | |
41148 | 8802 (exit $ac_status); } && |
8803 { ac_try='test -s conftest$ac_exeext' | |
43924 | 8804 { (eval echo "$as_me:8803: \"$ac_try\"") >&5 |
8805 (eval $ac_try) 2>&5 | |
8806 ac_status=$? | |
8807 echo "$as_me:8806: \$? = $ac_status" >&5 | |
40056 | 8808 (exit $ac_status); }; }; then |
8809 ac_cv_func_getloadavg=yes | |
8810 else | |
8811 echo "$as_me: failed program was:" >&5 | |
8812 cat conftest.$ac_ext >&5 | |
8813 ac_cv_func_getloadavg=no | |
8814 fi | |
8815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8816 fi | |
43924 | 8817 echo "$as_me:8816: result: $ac_cv_func_getloadavg" >&5 |
40056 | 8818 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 |
8819 if test $ac_cv_func_getloadavg = yes; then | |
8820 exit 0 | |
8821 else | |
8822 exit 1 | |
8823 fi | |
8824 ) && ac_have_func=yes | |
8825 | |
8826 # On HPUX9, an unprivileged user can get load averages through this function. | |
8827 | |
8828 for ac_func in pstat_getdynamic | |
8829 do | |
8830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
43924 | 8831 echo "$as_me:8830: checking for $ac_func" >&5 |
40056 | 8832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8833 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8834 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8835 else | |
8836 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 8837 #line 8836 "configure" |
40056 | 8838 #include "confdefs.h" |
8839 /* System header to define __stub macros and hopefully few prototypes, | |
8840 which can conflict with char $ac_func (); below. */ | |
8841 #include <assert.h> | |
8842 /* Override any gcc2 internal prototype to avoid an error. */ | |
8843 #ifdef __cplusplus | |
8844 extern "C" | |
8845 #endif | |
8846 /* We use char because int might match the return type of a gcc2 | |
8847 builtin and then its argument prototype would still apply. */ | |
8848 char $ac_func (); | |
8849 char (*f) (); | |
8850 | |
8851 int | |
8852 main () | |
8853 { | |
8854 /* The GNU C library defines this for functions which it implements | |
8855 to always fail with ENOSYS. Some functions are actually named | |
8856 something starting with __ and the normal name is an alias. */ | |
8857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8858 choke me | |
8859 #else | |
8860 f = $ac_func; | |
8861 #endif | |
8862 | |
8863 ; | |
8864 return 0; | |
8865 } | |
8866 _ACEOF | |
8867 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 8868 if { (eval echo "$as_me:8867: \"$ac_link\"") >&5 |
8869 (eval $ac_link) 2>&5 | |
8870 ac_status=$? | |
8871 echo "$as_me:8870: \$? = $ac_status" >&5 | |
41148 | 8872 (exit $ac_status); } && |
8873 { ac_try='test -s conftest$ac_exeext' | |
43924 | 8874 { (eval echo "$as_me:8873: \"$ac_try\"") >&5 |
8875 (eval $ac_try) 2>&5 | |
8876 ac_status=$? | |
8877 echo "$as_me:8876: \$? = $ac_status" >&5 | |
40056 | 8878 (exit $ac_status); }; }; then |
8879 eval "$as_ac_var=yes" | |
8880 else | |
8881 echo "$as_me: failed program was:" >&5 | |
8882 cat conftest.$ac_ext >&5 | |
8883 eval "$as_ac_var=no" | |
8884 fi | |
8885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8886 fi | |
43924 | 8887 echo "$as_me:8886: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 8888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8889 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8890 cat >>confdefs.h <<EOF | |
8891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8892 EOF | |
8893 | |
8894 fi | |
8895 done | |
8896 | |
8897 # Solaris has libkstat which does not require root. | |
8898 | |
43924 | 8899 echo "$as_me:8898: checking for kstat_open in -lkstat" >&5 |
40056 | 8900 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 |
8901 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
8902 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8903 else | |
8904 ac_check_lib_save_LIBS=$LIBS | |
8905 LIBS="-lkstat $LIBS" | |
8906 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 8907 #line 8906 "configure" |
40056 | 8908 #include "confdefs.h" |
8909 | |
8910 /* Override any gcc2 internal prototype to avoid an error. */ | |
8911 #ifdef __cplusplus | |
8912 extern "C" | |
8913 #endif | |
8914 /* We use char because int might match the return type of a gcc2 | |
8915 builtin and then its argument prototype would still apply. */ | |
8916 char kstat_open (); | |
8917 int | |
8918 main () | |
8919 { | |
8920 kstat_open (); | |
8921 ; | |
8922 return 0; | |
8923 } | |
8924 _ACEOF | |
8925 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 8926 if { (eval echo "$as_me:8925: \"$ac_link\"") >&5 |
8927 (eval $ac_link) 2>&5 | |
8928 ac_status=$? | |
8929 echo "$as_me:8928: \$? = $ac_status" >&5 | |
41148 | 8930 (exit $ac_status); } && |
8931 { ac_try='test -s conftest$ac_exeext' | |
43924 | 8932 { (eval echo "$as_me:8931: \"$ac_try\"") >&5 |
8933 (eval $ac_try) 2>&5 | |
8934 ac_status=$? | |
8935 echo "$as_me:8934: \$? = $ac_status" >&5 | |
40056 | 8936 (exit $ac_status); }; }; then |
8937 ac_cv_lib_kstat_kstat_open=yes | |
8938 else | |
8939 echo "$as_me: failed program was:" >&5 | |
8940 cat conftest.$ac_ext >&5 | |
8941 ac_cv_lib_kstat_kstat_open=no | |
8942 fi | |
8943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8944 LIBS=$ac_check_lib_save_LIBS | |
8945 fi | |
43924 | 8946 echo "$as_me:8945: result: $ac_cv_lib_kstat_kstat_open" >&5 |
40056 | 8947 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 |
8948 if test $ac_cv_lib_kstat_kstat_open = yes; then | |
8949 cat >>confdefs.h <<EOF | |
8950 #define HAVE_LIBKSTAT 1 | |
8951 EOF | |
8952 | |
8953 LIBS="-lkstat $LIBS" | |
8954 | |
8955 fi | |
8956 | |
8957 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes | |
8958 | |
29834 | 8959 # Some systems with -lutil have (and need) -lkvm as well, some do not. |
8960 # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
8961 # to get the right answer into the cache. | |
40056 | 8962 # For kstat on solaris, we need libelf to force the definition of SVR4 below. |
8963 if test $ac_have_func = no; then | |
43924 | 8964 echo "$as_me:8963: checking for elf_begin in -lelf" >&5 |
40056 | 8965 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
8966 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
8967 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8968 else | |
8969 ac_check_lib_save_LIBS=$LIBS | |
29834 | 8970 LIBS="-lelf $LIBS" |
40056 | 8971 cat >conftest.$ac_ext <<_ACEOF |
43924 | 8972 #line 8971 "configure" |
40056 | 8973 #include "confdefs.h" |
8974 | |
29834 | 8975 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8976 #ifdef __cplusplus |
8977 extern "C" | |
8978 #endif | |
29834 | 8979 /* We use char because int might match the return type of a gcc2 |
40056 | 8980 builtin and then its argument prototype would still apply. */ |
8981 char elf_begin (); | |
8982 int | |
8983 main () | |
8984 { | |
8985 elf_begin (); | |
8986 ; | |
8987 return 0; | |
8988 } | |
8989 _ACEOF | |
8990 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 8991 if { (eval echo "$as_me:8990: \"$ac_link\"") >&5 |
8992 (eval $ac_link) 2>&5 | |
8993 ac_status=$? | |
8994 echo "$as_me:8993: \$? = $ac_status" >&5 | |
41148 | 8995 (exit $ac_status); } && |
8996 { ac_try='test -s conftest$ac_exeext' | |
43924 | 8997 { (eval echo "$as_me:8996: \"$ac_try\"") >&5 |
8998 (eval $ac_try) 2>&5 | |
8999 ac_status=$? | |
9000 echo "$as_me:8999: \$? = $ac_status" >&5 | |
40056 | 9001 (exit $ac_status); }; }; then |
9002 ac_cv_lib_elf_elf_begin=yes | |
9003 else | |
9004 echo "$as_me: failed program was:" >&5 | |
9005 cat conftest.$ac_ext >&5 | |
9006 ac_cv_lib_elf_elf_begin=no | |
9007 fi | |
9008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9009 LIBS=$ac_check_lib_save_LIBS | |
9010 fi | |
43924 | 9011 echo "$as_me:9010: result: $ac_cv_lib_elf_elf_begin" >&5 |
40056 | 9012 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
9013 if test $ac_cv_lib_elf_elf_begin = yes; then | |
29834 | 9014 LIBS="-lelf $LIBS" |
40056 | 9015 fi |
9016 | |
9017 fi | |
9018 if test $ac_have_func = no; then | |
43924 | 9019 echo "$as_me:9018: checking for kvm_open in -lkvm" >&5 |
40056 | 9020 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 |
9021 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
9022 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9023 else | |
9024 ac_check_lib_save_LIBS=$LIBS | |
29834 | 9025 LIBS="-lkvm $LIBS" |
40056 | 9026 cat >conftest.$ac_ext <<_ACEOF |
43924 | 9027 #line 9026 "configure" |
40056 | 9028 #include "confdefs.h" |
9029 | |
29834 | 9030 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9031 #ifdef __cplusplus |
9032 extern "C" | |
9033 #endif | |
29834 | 9034 /* We use char because int might match the return type of a gcc2 |
40056 | 9035 builtin and then its argument prototype would still apply. */ |
9036 char kvm_open (); | |
9037 int | |
9038 main () | |
9039 { | |
9040 kvm_open (); | |
9041 ; | |
9042 return 0; | |
9043 } | |
9044 _ACEOF | |
9045 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 9046 if { (eval echo "$as_me:9045: \"$ac_link\"") >&5 |
9047 (eval $ac_link) 2>&5 | |
9048 ac_status=$? | |
9049 echo "$as_me:9048: \$? = $ac_status" >&5 | |
41148 | 9050 (exit $ac_status); } && |
9051 { ac_try='test -s conftest$ac_exeext' | |
43924 | 9052 { (eval echo "$as_me:9051: \"$ac_try\"") >&5 |
9053 (eval $ac_try) 2>&5 | |
9054 ac_status=$? | |
9055 echo "$as_me:9054: \$? = $ac_status" >&5 | |
40056 | 9056 (exit $ac_status); }; }; then |
9057 ac_cv_lib_kvm_kvm_open=yes | |
9058 else | |
9059 echo "$as_me: failed program was:" >&5 | |
9060 cat conftest.$ac_ext >&5 | |
9061 ac_cv_lib_kvm_kvm_open=no | |
9062 fi | |
9063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9064 LIBS=$ac_check_lib_save_LIBS | |
9065 fi | |
43924 | 9066 echo "$as_me:9065: result: $ac_cv_lib_kvm_kvm_open" >&5 |
40056 | 9067 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 |
9068 if test $ac_cv_lib_kvm_kvm_open = yes; then | |
29834 | 9069 LIBS="-lkvm $LIBS" |
40056 | 9070 fi |
9071 | |
9072 # Check for the 4.4BSD definition of getloadavg. | |
43924 | 9073 echo "$as_me:9072: checking for getloadavg in -lutil" >&5 |
40056 | 9074 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 |
9075 if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
9076 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9077 else | |
9078 ac_check_lib_save_LIBS=$LIBS | |
29834 | 9079 LIBS="-lutil $LIBS" |
40056 | 9080 cat >conftest.$ac_ext <<_ACEOF |
43924 | 9081 #line 9080 "configure" |
40056 | 9082 #include "confdefs.h" |
9083 | |
29834 | 9084 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9085 #ifdef __cplusplus |
9086 extern "C" | |
9087 #endif | |
29834 | 9088 /* We use char because int might match the return type of a gcc2 |
40056 | 9089 builtin and then its argument prototype would still apply. */ |
9090 char getloadavg (); | |
9091 int | |
9092 main () | |
9093 { | |
9094 getloadavg (); | |
9095 ; | |
9096 return 0; | |
9097 } | |
9098 _ACEOF | |
9099 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 9100 if { (eval echo "$as_me:9099: \"$ac_link\"") >&5 |
9101 (eval $ac_link) 2>&5 | |
9102 ac_status=$? | |
9103 echo "$as_me:9102: \$? = $ac_status" >&5 | |
41148 | 9104 (exit $ac_status); } && |
9105 { ac_try='test -s conftest$ac_exeext' | |
43924 | 9106 { (eval echo "$as_me:9105: \"$ac_try\"") >&5 |
9107 (eval $ac_try) 2>&5 | |
9108 ac_status=$? | |
9109 echo "$as_me:9108: \$? = $ac_status" >&5 | |
40056 | 9110 (exit $ac_status); }; }; then |
9111 ac_cv_lib_util_getloadavg=yes | |
9112 else | |
9113 echo "$as_me: failed program was:" >&5 | |
9114 cat conftest.$ac_ext >&5 | |
9115 ac_cv_lib_util_getloadavg=no | |
9116 fi | |
9117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9118 LIBS=$ac_check_lib_save_LIBS | |
9119 fi | |
43924 | 9120 echo "$as_me:9119: result: $ac_cv_lib_util_getloadavg" >&5 |
40056 | 9121 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 |
9122 if test $ac_cv_lib_util_getloadavg = yes; then | |
29834 | 9123 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes |
40056 | 9124 fi |
9125 | |
9126 fi | |
29834 | 9127 |
9128 if test $ac_have_func = no; then | |
9129 # There is a commonly available library for RS/6000 AIX. | |
9130 # Since it is not a standard part of AIX, it might be installed locally. | |
40056 | 9131 ac_getloadavg_LIBS=$LIBS |
9132 LIBS="-L/usr/local/lib $LIBS" | |
43924 | 9133 echo "$as_me:9132: checking for getloadavg in -lgetloadavg" >&5 |
40056 | 9134 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 |
9135 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
9136 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9137 else | |
9138 ac_check_lib_save_LIBS=$LIBS | |
29834 | 9139 LIBS="-lgetloadavg $LIBS" |
40056 | 9140 cat >conftest.$ac_ext <<_ACEOF |
43924 | 9141 #line 9140 "configure" |
40056 | 9142 #include "confdefs.h" |
9143 | |
29834 | 9144 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9145 #ifdef __cplusplus |
9146 extern "C" | |
9147 #endif | |
29834 | 9148 /* We use char because int might match the return type of a gcc2 |
40056 | 9149 builtin and then its argument prototype would still apply. */ |
9150 char getloadavg (); | |
9151 int | |
9152 main () | |
9153 { | |
9154 getloadavg (); | |
9155 ; | |
9156 return 0; | |
9157 } | |
9158 _ACEOF | |
9159 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 9160 if { (eval echo "$as_me:9159: \"$ac_link\"") >&5 |
9161 (eval $ac_link) 2>&5 | |
9162 ac_status=$? | |
9163 echo "$as_me:9162: \$? = $ac_status" >&5 | |
41148 | 9164 (exit $ac_status); } && |
9165 { ac_try='test -s conftest$ac_exeext' | |
43924 | 9166 { (eval echo "$as_me:9165: \"$ac_try\"") >&5 |
9167 (eval $ac_try) 2>&5 | |
9168 ac_status=$? | |
9169 echo "$as_me:9168: \$? = $ac_status" >&5 | |
40056 | 9170 (exit $ac_status); }; }; then |
9171 ac_cv_lib_getloadavg_getloadavg=yes | |
9172 else | |
9173 echo "$as_me: failed program was:" >&5 | |
9174 cat conftest.$ac_ext >&5 | |
9175 ac_cv_lib_getloadavg_getloadavg=no | |
9176 fi | |
9177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9178 LIBS=$ac_check_lib_save_LIBS | |
9179 fi | |
43924 | 9180 echo "$as_me:9179: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
40056 | 9181 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 |
9182 if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
29834 | 9183 LIBS="-lgetloadavg $LIBS" |
9184 else | |
40056 | 9185 LIBS=$ac_getloadavg_LIBS |
9186 fi | |
9187 | |
9188 fi | |
9189 | |
9190 # Make sure it is really in the library, if we think we found it, | |
9191 # otherwise set up the replacement function. | |
9192 | |
29834 | 9193 for ac_func in getloadavg |
9194 do | |
40056 | 9195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
43924 | 9196 echo "$as_me:9195: checking for $ac_func" >&5 |
40056 | 9197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9198 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9199 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9200 else | |
9201 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 9202 #line 9201 "configure" |
29834 | 9203 #include "confdefs.h" |
9204 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 9205 which can conflict with char $ac_func (); below. */ |
29834 | 9206 #include <assert.h> |
9207 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 9208 #ifdef __cplusplus |
9209 extern "C" | |
9210 #endif | |
29834 | 9211 /* We use char because int might match the return type of a gcc2 |
40056 | 9212 builtin and then its argument prototype would still apply. */ |
9213 char $ac_func (); | |
9214 char (*f) (); | |
9215 | |
9216 int | |
9217 main () | |
9218 { | |
29834 | 9219 /* The GNU C library defines this for functions which it implements |
9220 to always fail with ENOSYS. Some functions are actually named | |
9221 something starting with __ and the normal name is an alias. */ | |
9222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9223 choke me | |
9224 #else | |
40056 | 9225 f = $ac_func; |
9226 #endif | |
9227 | |
9228 ; | |
9229 return 0; | |
9230 } | |
9231 _ACEOF | |
9232 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 9233 if { (eval echo "$as_me:9232: \"$ac_link\"") >&5 |
9234 (eval $ac_link) 2>&5 | |
9235 ac_status=$? | |
9236 echo "$as_me:9235: \$? = $ac_status" >&5 | |
41148 | 9237 (exit $ac_status); } && |
9238 { ac_try='test -s conftest$ac_exeext' | |
43924 | 9239 { (eval echo "$as_me:9238: \"$ac_try\"") >&5 |
9240 (eval $ac_try) 2>&5 | |
9241 ac_status=$? | |
9242 echo "$as_me:9241: \$? = $ac_status" >&5 | |
40056 | 9243 (exit $ac_status); }; }; then |
9244 eval "$as_ac_var=yes" | |
9245 else | |
9246 echo "$as_me: failed program was:" >&5 | |
9247 cat conftest.$ac_ext >&5 | |
9248 eval "$as_ac_var=no" | |
9249 fi | |
9250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9251 fi | |
43924 | 9252 echo "$as_me:9251: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 9253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9254 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9255 cat >>confdefs.h <<EOF | |
9256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9257 EOF | |
9258 | |
9259 else | |
9260 LIBOBJS="$LIBOBJS getloadavg.$ac_objext" | |
9261 | |
9262 cat >>confdefs.h <<\EOF | |
9263 #define C_GETLOADAVG 1 | |
9264 EOF | |
9265 | |
9266 # Figure out what our getloadavg.c needs. | |
9267 ac_have_func=no | |
43924 | 9268 echo "$as_me:9267: checking for sys/dg_sys_info.h" >&5 |
40056 | 9269 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 |
9270 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
9271 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9272 else | |
9273 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 9274 #line 9273 "configure" |
29834 | 9275 #include "confdefs.h" |
9276 #include <sys/dg_sys_info.h> | |
40056 | 9277 _ACEOF |
43924 | 9278 if { (eval echo "$as_me:9277: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 9279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9280 ac_status=$? | |
9281 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9282 rm -f conftest.er1 | |
9283 cat conftest.err >&5 | |
43924 | 9284 echo "$as_me:9283: \$? = $ac_status" >&5 |
40056 | 9285 (exit $ac_status); } >/dev/null; then |
9286 if test -s conftest.err; then | |
9287 ac_cpp_err=$ac_c_preproc_warn_flag | |
9288 else | |
9289 ac_cpp_err= | |
9290 fi | |
9291 else | |
9292 ac_cpp_err=yes | |
9293 fi | |
9294 if test -z "$ac_cpp_err"; then | |
9295 ac_cv_header_sys_dg_sys_info_h=yes | |
9296 else | |
9297 echo "$as_me: failed program was:" >&5 | |
29834 | 9298 cat conftest.$ac_ext >&5 |
40056 | 9299 ac_cv_header_sys_dg_sys_info_h=no |
9300 fi | |
9301 rm -f conftest.err conftest.$ac_ext | |
9302 fi | |
43924 | 9303 echo "$as_me:9302: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
40056 | 9304 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 |
9305 if test $ac_cv_header_sys_dg_sys_info_h = yes; then | |
9306 ac_have_func=yes | |
9307 | |
9308 cat >>confdefs.h <<\EOF | |
29834 | 9309 #define DGUX 1 |
9310 EOF | |
9311 | |
43924 | 9312 echo "$as_me:9311: checking for dg_sys_info in -ldgc" >&5 |
40056 | 9313 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 |
9314 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
9315 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9316 else | |
9317 ac_check_lib_save_LIBS=$LIBS | |
29834 | 9318 LIBS="-ldgc $LIBS" |
40056 | 9319 cat >conftest.$ac_ext <<_ACEOF |
43924 | 9320 #line 9319 "configure" |
40056 | 9321 #include "confdefs.h" |
9322 | |
29834 | 9323 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9324 #ifdef __cplusplus |
9325 extern "C" | |
9326 #endif | |
29834 | 9327 /* We use char because int might match the return type of a gcc2 |
40056 | 9328 builtin and then its argument prototype would still apply. */ |
9329 char dg_sys_info (); | |
9330 int | |
9331 main () | |
9332 { | |
9333 dg_sys_info (); | |
9334 ; | |
9335 return 0; | |
9336 } | |
9337 _ACEOF | |
9338 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 9339 if { (eval echo "$as_me:9338: \"$ac_link\"") >&5 |
9340 (eval $ac_link) 2>&5 | |
9341 ac_status=$? | |
9342 echo "$as_me:9341: \$? = $ac_status" >&5 | |
41148 | 9343 (exit $ac_status); } && |
9344 { ac_try='test -s conftest$ac_exeext' | |
43924 | 9345 { (eval echo "$as_me:9344: \"$ac_try\"") >&5 |
9346 (eval $ac_try) 2>&5 | |
9347 ac_status=$? | |
9348 echo "$as_me:9347: \$? = $ac_status" >&5 | |
40056 | 9349 (exit $ac_status); }; }; then |
9350 ac_cv_lib_dgc_dg_sys_info=yes | |
9351 else | |
9352 echo "$as_me: failed program was:" >&5 | |
9353 cat conftest.$ac_ext >&5 | |
9354 ac_cv_lib_dgc_dg_sys_info=no | |
9355 fi | |
9356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9357 LIBS=$ac_check_lib_save_LIBS | |
9358 fi | |
43924 | 9359 echo "$as_me:9358: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
40056 | 9360 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 |
9361 if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
9362 cat >>confdefs.h <<EOF | |
9363 #define HAVE_LIBDGC 1 | |
29834 | 9364 EOF |
9365 | |
9366 LIBS="-ldgc $LIBS" | |
9367 | |
40056 | 9368 fi |
9369 | |
9370 fi | |
9371 | |
43924 | 9372 echo "$as_me:9371: checking for locale.h" >&5 |
40056 | 9373 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 |
9374 if test "${ac_cv_header_locale_h+set}" = set; then | |
9375 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9376 else | |
9377 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 9378 #line 9377 "configure" |
40056 | 9379 #include "confdefs.h" |
9380 #include <locale.h> | |
9381 _ACEOF | |
43924 | 9382 if { (eval echo "$as_me:9381: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 9383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9384 ac_status=$? | |
9385 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9386 rm -f conftest.er1 | |
9387 cat conftest.err >&5 | |
43924 | 9388 echo "$as_me:9387: \$? = $ac_status" >&5 |
40056 | 9389 (exit $ac_status); } >/dev/null; then |
9390 if test -s conftest.err; then | |
9391 ac_cpp_err=$ac_c_preproc_warn_flag | |
9392 else | |
9393 ac_cpp_err= | |
9394 fi | |
9395 else | |
9396 ac_cpp_err=yes | |
9397 fi | |
9398 if test -z "$ac_cpp_err"; then | |
9399 ac_cv_header_locale_h=yes | |
9400 else | |
9401 echo "$as_me: failed program was:" >&5 | |
9402 cat conftest.$ac_ext >&5 | |
9403 ac_cv_header_locale_h=no | |
9404 fi | |
9405 rm -f conftest.err conftest.$ac_ext | |
9406 fi | |
43924 | 9407 echo "$as_me:9406: result: $ac_cv_header_locale_h" >&5 |
40056 | 9408 echo "${ECHO_T}$ac_cv_header_locale_h" >&6 |
9409 | |
9410 for ac_func in setlocale | |
9411 do | |
9412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
43924 | 9413 echo "$as_me:9412: checking for $ac_func" >&5 |
40056 | 9414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9415 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9416 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9417 else | |
9418 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 9419 #line 9418 "configure" |
40056 | 9420 #include "confdefs.h" |
9421 /* System header to define __stub macros and hopefully few prototypes, | |
9422 which can conflict with char $ac_func (); below. */ | |
9423 #include <assert.h> | |
9424 /* Override any gcc2 internal prototype to avoid an error. */ | |
9425 #ifdef __cplusplus | |
9426 extern "C" | |
9427 #endif | |
9428 /* We use char because int might match the return type of a gcc2 | |
9429 builtin and then its argument prototype would still apply. */ | |
9430 char $ac_func (); | |
9431 char (*f) (); | |
9432 | |
9433 int | |
9434 main () | |
9435 { | |
9436 /* The GNU C library defines this for functions which it implements | |
9437 to always fail with ENOSYS. Some functions are actually named | |
9438 something starting with __ and the normal name is an alias. */ | |
9439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9440 choke me | |
9441 #else | |
9442 f = $ac_func; | |
9443 #endif | |
9444 | |
9445 ; | |
9446 return 0; | |
9447 } | |
9448 _ACEOF | |
9449 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 9450 if { (eval echo "$as_me:9449: \"$ac_link\"") >&5 |
9451 (eval $ac_link) 2>&5 | |
9452 ac_status=$? | |
9453 echo "$as_me:9452: \$? = $ac_status" >&5 | |
41148 | 9454 (exit $ac_status); } && |
9455 { ac_try='test -s conftest$ac_exeext' | |
43924 | 9456 { (eval echo "$as_me:9455: \"$ac_try\"") >&5 |
9457 (eval $ac_try) 2>&5 | |
9458 ac_status=$? | |
9459 echo "$as_me:9458: \$? = $ac_status" >&5 | |
40056 | 9460 (exit $ac_status); }; }; then |
9461 eval "$as_ac_var=yes" | |
9462 else | |
9463 echo "$as_me: failed program was:" >&5 | |
9464 cat conftest.$ac_ext >&5 | |
9465 eval "$as_ac_var=no" | |
9466 fi | |
9467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9468 fi | |
43924 | 9469 echo "$as_me:9468: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 9470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9471 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9472 cat >>confdefs.h <<EOF | |
9473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9474 EOF | |
9475 | |
9476 fi | |
9477 done | |
9478 | |
9479 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | |
9480 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
9481 # Irix 4.0.5F has the header but not the library. | |
9482 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
9483 ac_have_func=yes | |
9484 | |
9485 cat >>confdefs.h <<\EOF | |
29834 | 9486 #define SVR4 1 |
9487 EOF | |
9488 | |
40056 | 9489 fi |
9490 | |
9491 if test $ac_have_func = no; then | |
43924 | 9492 echo "$as_me:9491: checking for inq_stats/cpustats.h" >&5 |
40056 | 9493 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 |
9494 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
9495 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9496 else | |
9497 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 9498 #line 9497 "configure" |
29834 | 9499 #include "confdefs.h" |
9500 #include <inq_stats/cpustats.h> | |
40056 | 9501 _ACEOF |
43924 | 9502 if { (eval echo "$as_me:9501: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 9503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9504 ac_status=$? | |
9505 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9506 rm -f conftest.er1 | |
9507 cat conftest.err >&5 | |
43924 | 9508 echo "$as_me:9507: \$? = $ac_status" >&5 |
40056 | 9509 (exit $ac_status); } >/dev/null; then |
9510 if test -s conftest.err; then | |
9511 ac_cpp_err=$ac_c_preproc_warn_flag | |
9512 else | |
9513 ac_cpp_err= | |
9514 fi | |
9515 else | |
9516 ac_cpp_err=yes | |
9517 fi | |
9518 if test -z "$ac_cpp_err"; then | |
9519 ac_cv_header_inq_stats_cpustats_h=yes | |
9520 else | |
9521 echo "$as_me: failed program was:" >&5 | |
29834 | 9522 cat conftest.$ac_ext >&5 |
40056 | 9523 ac_cv_header_inq_stats_cpustats_h=no |
9524 fi | |
9525 rm -f conftest.err conftest.$ac_ext | |
9526 fi | |
43924 | 9527 echo "$as_me:9526: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
40056 | 9528 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 |
9529 if test $ac_cv_header_inq_stats_cpustats_h = yes; then | |
9530 ac_have_func=yes | |
9531 | |
9532 cat >>confdefs.h <<\EOF | |
29834 | 9533 #define UMAX 1 |
9534 EOF | |
9535 | |
40056 | 9536 cat >>confdefs.h <<\EOF |
29834 | 9537 #define UMAX4_3 1 |
9538 EOF | |
9539 | |
40056 | 9540 fi |
9541 | |
9542 fi | |
9543 | |
9544 if test $ac_have_func = no; then | |
43924 | 9545 echo "$as_me:9544: checking for sys/cpustats.h" >&5 |
40056 | 9546 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 |
9547 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
9548 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9549 else | |
9550 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 9551 #line 9550 "configure" |
29834 | 9552 #include "confdefs.h" |
9553 #include <sys/cpustats.h> | |
40056 | 9554 _ACEOF |
43924 | 9555 if { (eval echo "$as_me:9554: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 9556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9557 ac_status=$? | |
9558 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9559 rm -f conftest.er1 | |
9560 cat conftest.err >&5 | |
43924 | 9561 echo "$as_me:9560: \$? = $ac_status" >&5 |
40056 | 9562 (exit $ac_status); } >/dev/null; then |
9563 if test -s conftest.err; then | |
9564 ac_cpp_err=$ac_c_preproc_warn_flag | |
9565 else | |
9566 ac_cpp_err= | |
9567 fi | |
9568 else | |
9569 ac_cpp_err=yes | |
9570 fi | |
9571 if test -z "$ac_cpp_err"; then | |
9572 ac_cv_header_sys_cpustats_h=yes | |
9573 else | |
9574 echo "$as_me: failed program was:" >&5 | |
29834 | 9575 cat conftest.$ac_ext >&5 |
40056 | 9576 ac_cv_header_sys_cpustats_h=no |
9577 fi | |
9578 rm -f conftest.err conftest.$ac_ext | |
9579 fi | |
43924 | 9580 echo "$as_me:9579: result: $ac_cv_header_sys_cpustats_h" >&5 |
40056 | 9581 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 |
9582 if test $ac_cv_header_sys_cpustats_h = yes; then | |
9583 ac_have_func=yes; cat >>confdefs.h <<\EOF | |
29834 | 9584 #define UMAX 1 |
9585 EOF | |
9586 | |
40056 | 9587 fi |
9588 | |
9589 fi | |
9590 | |
9591 if test $ac_have_func = no; then | |
9592 | |
9593 for ac_header in mach/mach.h | |
29834 | 9594 do |
40056 | 9595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
43924 | 9596 echo "$as_me:9595: checking for $ac_header" >&5 |
40056 | 9597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
9598 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9599 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9600 else | |
9601 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 9602 #line 9601 "configure" |
40056 | 9603 #include "confdefs.h" |
9604 #include <$ac_header> | |
9605 _ACEOF | |
43924 | 9606 if { (eval echo "$as_me:9605: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 9607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9608 ac_status=$? | |
9609 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9610 rm -f conftest.er1 | |
9611 cat conftest.err >&5 | |
43924 | 9612 echo "$as_me:9611: \$? = $ac_status" >&5 |
40056 | 9613 (exit $ac_status); } >/dev/null; then |
9614 if test -s conftest.err; then | |
9615 ac_cpp_err=$ac_c_preproc_warn_flag | |
9616 else | |
9617 ac_cpp_err= | |
9618 fi | |
9619 else | |
9620 ac_cpp_err=yes | |
9621 fi | |
9622 if test -z "$ac_cpp_err"; then | |
9623 eval "$as_ac_Header=yes" | |
9624 else | |
9625 echo "$as_me: failed program was:" >&5 | |
29834 | 9626 cat conftest.$ac_ext >&5 |
40056 | 9627 eval "$as_ac_Header=no" |
9628 fi | |
9629 rm -f conftest.err conftest.$ac_ext | |
9630 fi | |
43924 | 9631 echo "$as_me:9630: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 9632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
9633 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9634 cat >>confdefs.h <<EOF | |
9635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9636 EOF | |
9637 | |
29834 | 9638 fi |
9639 done | |
9640 | |
40056 | 9641 fi |
9642 | |
9643 for ac_header in nlist.h | |
9644 do | |
9645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
43924 | 9646 echo "$as_me:9645: checking for $ac_header" >&5 |
40056 | 9647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
9648 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9649 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9650 else | |
9651 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 9652 #line 9651 "configure" |
40056 | 9653 #include "confdefs.h" |
9654 #include <$ac_header> | |
9655 _ACEOF | |
43924 | 9656 if { (eval echo "$as_me:9655: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 9657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9658 ac_status=$? | |
9659 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9660 rm -f conftest.er1 | |
9661 cat conftest.err >&5 | |
43924 | 9662 echo "$as_me:9661: \$? = $ac_status" >&5 |
40056 | 9663 (exit $ac_status); } >/dev/null; then |
9664 if test -s conftest.err; then | |
9665 ac_cpp_err=$ac_c_preproc_warn_flag | |
9666 else | |
9667 ac_cpp_err= | |
9668 fi | |
9669 else | |
9670 ac_cpp_err=yes | |
9671 fi | |
9672 if test -z "$ac_cpp_err"; then | |
9673 eval "$as_ac_Header=yes" | |
9674 else | |
9675 echo "$as_me: failed program was:" >&5 | |
9676 cat conftest.$ac_ext >&5 | |
9677 eval "$as_ac_Header=no" | |
9678 fi | |
9679 rm -f conftest.err conftest.$ac_ext | |
9680 fi | |
43924 | 9681 echo "$as_me:9680: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 9682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
9683 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9684 cat >>confdefs.h <<EOF | |
9685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9686 EOF | |
43924 | 9687 echo "$as_me:9686: checking for struct nlist.n_un.n_name" >&5 |
40056 | 9688 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 |
9689 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
9690 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9691 else | |
9692 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 9693 #line 9692 "configure" |
29834 | 9694 #include "confdefs.h" |
9695 #include <nlist.h> | |
40056 | 9696 |
9697 int | |
9698 main () | |
9699 { | |
9700 static struct nlist ac_aggr; | |
9701 if (ac_aggr.n_un.n_name) | |
9702 return 0; | |
9703 ; | |
9704 return 0; | |
9705 } | |
9706 _ACEOF | |
9707 rm -f conftest.$ac_objext | |
43924 | 9708 if { (eval echo "$as_me:9707: \"$ac_compile\"") >&5 |
40056 | 9709 (eval $ac_compile) 2>&5 |
9710 ac_status=$? | |
43924 | 9711 echo "$as_me:9710: \$? = $ac_status" >&5 |
41148 | 9712 (exit $ac_status); } && |
9713 { ac_try='test -s conftest.$ac_objext' | |
43924 | 9714 { (eval echo "$as_me:9713: \"$ac_try\"") >&5 |
9715 (eval $ac_try) 2>&5 | |
9716 ac_status=$? | |
9717 echo "$as_me:9716: \$? = $ac_status" >&5 | |
40056 | 9718 (exit $ac_status); }; }; then |
9719 ac_cv_member_struct_nlist_n_un_n_name=yes | |
9720 else | |
9721 echo "$as_me: failed program was:" >&5 | |
9722 cat conftest.$ac_ext >&5 | |
9723 ac_cv_member_struct_nlist_n_un_n_name=no | |
9724 fi | |
9725 rm -f conftest.$ac_objext conftest.$ac_ext | |
9726 fi | |
43924 | 9727 echo "$as_me:9726: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
40056 | 9728 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 |
9729 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
9730 | |
9731 cat >>confdefs.h <<EOF | |
9732 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 | |
9733 EOF | |
9734 | |
9735 cat >>confdefs.h <<\EOF | |
29834 | 9736 #define NLIST_NAME_UNION 1 |
9737 EOF | |
9738 | |
40056 | 9739 fi |
9740 | |
9741 fi | |
9742 done | |
9743 | |
9744 fi | |
9745 done | |
29834 | 9746 |
9747 # Some definitions of getloadavg require that the program be installed setgid. | |
43924 | 9748 echo "$as_me:9747: checking whether getloadavg requires setgid" >&5 |
40056 | 9749 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 |
9750 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
9751 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9752 else | |
9753 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 9754 #line 9753 "configure" |
29834 | 9755 #include "confdefs.h" |
9756 #include "$srcdir/getloadavg.c" | |
9757 #ifdef LDAV_PRIVILEGED | |
9758 Yowza Am I SETGID yet | |
9759 #endif | |
40056 | 9760 _ACEOF |
29834 | 9761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9762 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then | |
9763 ac_cv_func_getloadavg_setgid=yes | |
9764 else | |
9765 ac_cv_func_getloadavg_setgid=no | |
9766 fi | |
9767 rm -f conftest* | |
9768 | |
9769 fi | |
43924 | 9770 echo "$as_me:9769: result: $ac_cv_func_getloadavg_setgid" >&5 |
40056 | 9771 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 |
29834 | 9772 if test $ac_cv_func_getloadavg_setgid = yes; then |
40056 | 9773 NEED_SETGID=true |
9774 | |
9775 cat >>confdefs.h <<\EOF | |
29834 | 9776 #define GETLOADAVG_PRIVILEGED 1 |
9777 EOF | |
9778 | |
9779 else | |
9780 NEED_SETGID=false | |
9781 fi | |
9782 | |
9783 if test $ac_cv_func_getloadavg_setgid = yes; then | |
43924 | 9784 echo "$as_me:9783: checking group of /dev/kmem" >&5 |
40056 | 9785 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 |
9786 if test "${ac_cv_group_kmem+set}" = set; then | |
9787 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9788 else | |
9789 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
29834 | 9790 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` |
9791 # If we got an error (system does not support symlinks), try without -L. | |
9792 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
9793 ac_cv_group_kmem=`echo $ac_ls_output \ | |
9794 | sed -ne 's/[ ][ ]*/ /g; | |
9795 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
9796 / /s/.* //;p;'` | |
9797 | |
9798 fi | |
43924 | 9799 echo "$as_me:9798: result: $ac_cv_group_kmem" >&5 |
40056 | 9800 echo "${ECHO_T}$ac_cv_group_kmem" >&6 |
29834 | 9801 KMEM_GROUP=$ac_cv_group_kmem |
9802 fi | |
40056 | 9803 if test "x$ac_save_LIBS" = x; then |
9804 GETLOADAVG_LIBS=$LIBS | |
9805 else | |
9806 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
9807 fi | |
9808 LIBS=$ac_save_LIBS | |
9809 | |
43924 | 9810 echo "$as_me:9809: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
40056 | 9811 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
9812 if test "${ac_cv_sys_largefile_source+set}" = set; then | |
9813 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9814 else | |
9815 while :; do | |
34431 | 9816 ac_cv_sys_largefile_source=no |
40056 | 9817 cat >conftest.$ac_ext <<_ACEOF |
43924 | 9818 #line 9817 "configure" |
34431 | 9819 #include "confdefs.h" |
9820 #include <stdio.h> | |
40056 | 9821 int |
9822 main () | |
9823 { | |
34431 | 9824 return !fseeko; |
40056 | 9825 ; |
9826 return 0; | |
9827 } | |
9828 _ACEOF | |
9829 rm -f conftest.$ac_objext | |
43924 | 9830 if { (eval echo "$as_me:9829: \"$ac_compile\"") >&5 |
40056 | 9831 (eval $ac_compile) 2>&5 |
9832 ac_status=$? | |
43924 | 9833 echo "$as_me:9832: \$? = $ac_status" >&5 |
41148 | 9834 (exit $ac_status); } && |
9835 { ac_try='test -s conftest.$ac_objext' | |
43924 | 9836 { (eval echo "$as_me:9835: \"$ac_try\"") >&5 |
9837 (eval $ac_try) 2>&5 | |
9838 ac_status=$? | |
9839 echo "$as_me:9838: \$? = $ac_status" >&5 | |
40056 | 9840 (exit $ac_status); }; }; then |
9841 break | |
9842 else | |
9843 echo "$as_me: failed program was:" >&5 | |
9844 cat conftest.$ac_ext >&5 | |
9845 fi | |
9846 rm -f conftest.$ac_objext conftest.$ac_ext | |
9847 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 9848 #line 9847 "configure" |
34431 | 9849 #include "confdefs.h" |
9850 #define _LARGEFILE_SOURCE 1 | |
9851 #include <stdio.h> | |
40056 | 9852 int |
9853 main () | |
9854 { | |
34431 | 9855 return !fseeko; |
40056 | 9856 ; |
9857 return 0; | |
9858 } | |
9859 _ACEOF | |
9860 rm -f conftest.$ac_objext | |
43924 | 9861 if { (eval echo "$as_me:9860: \"$ac_compile\"") >&5 |
40056 | 9862 (eval $ac_compile) 2>&5 |
9863 ac_status=$? | |
43924 | 9864 echo "$as_me:9863: \$? = $ac_status" >&5 |
41148 | 9865 (exit $ac_status); } && |
9866 { ac_try='test -s conftest.$ac_objext' | |
43924 | 9867 { (eval echo "$as_me:9866: \"$ac_try\"") >&5 |
9868 (eval $ac_try) 2>&5 | |
9869 ac_status=$? | |
9870 echo "$as_me:9869: \$? = $ac_status" >&5 | |
40056 | 9871 (exit $ac_status); }; }; then |
9872 ac_cv_sys_largefile_source=1; break | |
9873 else | |
9874 echo "$as_me: failed program was:" >&5 | |
9875 cat conftest.$ac_ext >&5 | |
9876 fi | |
9877 rm -f conftest.$ac_objext conftest.$ac_ext | |
9878 break | |
9879 done | |
9880 fi | |
43924 | 9881 echo "$as_me:9880: result: $ac_cv_sys_largefile_source" >&5 |
40056 | 9882 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 |
9883 if test "$ac_cv_sys_largefile_source" != no; then | |
9884 | |
9885 cat >>confdefs.h <<EOF | |
9886 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
9887 EOF | |
9888 | |
34431 | 9889 fi |
9890 rm -f conftest* | |
40056 | 9891 |
9892 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
9893 # in glibc 2.1.3, but that breaks too many other things. | |
9894 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
43924 | 9895 echo "$as_me:9894: checking for fseeko" >&5 |
40056 | 9896 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 |
9897 if test "${ac_cv_func_fseeko+set}" = set; then | |
9898 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9899 else | |
9900 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 9901 #line 9900 "configure" |
34431 | 9902 #include "confdefs.h" |
9903 #include <stdio.h> | |
40056 | 9904 int |
9905 main () | |
9906 { | |
34431 | 9907 return fseeko && fseeko (stdin, 0, 0); |
40056 | 9908 ; |
9909 return 0; | |
9910 } | |
9911 _ACEOF | |
9912 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 9913 if { (eval echo "$as_me:9912: \"$ac_link\"") >&5 |
9914 (eval $ac_link) 2>&5 | |
9915 ac_status=$? | |
9916 echo "$as_me:9915: \$? = $ac_status" >&5 | |
41148 | 9917 (exit $ac_status); } && |
9918 { ac_try='test -s conftest$ac_exeext' | |
43924 | 9919 { (eval echo "$as_me:9918: \"$ac_try\"") >&5 |
9920 (eval $ac_try) 2>&5 | |
9921 ac_status=$? | |
9922 echo "$as_me:9921: \$? = $ac_status" >&5 | |
40056 | 9923 (exit $ac_status); }; }; then |
34431 | 9924 ac_cv_func_fseeko=yes |
9925 else | |
40056 | 9926 echo "$as_me: failed program was:" >&5 |
9927 cat conftest.$ac_ext >&5 | |
9928 ac_cv_func_fseeko=no | |
9929 fi | |
9930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9931 fi | |
43924 | 9932 echo "$as_me:9931: result: $ac_cv_func_fseeko" >&5 |
40056 | 9933 echo "${ECHO_T}$ac_cv_func_fseeko" >&6 |
9934 if test $ac_cv_func_fseeko = yes; then | |
9935 | |
9936 cat >>confdefs.h <<\EOF | |
34431 | 9937 #define HAVE_FSEEKO 1 |
9938 EOF | |
9939 | |
40056 | 9940 fi |
34431 | 9941 |
9942 # UNIX98 PTYs. | |
40056 | 9943 |
34431 | 9944 for ac_func in grantpt |
29036 | 9945 do |
40056 | 9946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
43924 | 9947 echo "$as_me:9946: checking for $ac_func" >&5 |
40056 | 9948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9949 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9950 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9951 else | |
9952 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 9953 #line 9952 "configure" |
29036 | 9954 #include "confdefs.h" |
9955 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 9956 which can conflict with char $ac_func (); below. */ |
29036 | 9957 #include <assert.h> |
9958 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 9959 #ifdef __cplusplus |
9960 extern "C" | |
9961 #endif | |
29036 | 9962 /* We use char because int might match the return type of a gcc2 |
40056 | 9963 builtin and then its argument prototype would still apply. */ |
9964 char $ac_func (); | |
9965 char (*f) (); | |
9966 | |
9967 int | |
9968 main () | |
9969 { | |
29036 | 9970 /* The GNU C library defines this for functions which it implements |
9971 to always fail with ENOSYS. Some functions are actually named | |
9972 something starting with __ and the normal name is an alias. */ | |
9973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9974 choke me | |
9975 #else | |
40056 | 9976 f = $ac_func; |
9977 #endif | |
9978 | |
9979 ; | |
9980 return 0; | |
9981 } | |
9982 _ACEOF | |
9983 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 9984 if { (eval echo "$as_me:9983: \"$ac_link\"") >&5 |
9985 (eval $ac_link) 2>&5 | |
9986 ac_status=$? | |
9987 echo "$as_me:9986: \$? = $ac_status" >&5 | |
41148 | 9988 (exit $ac_status); } && |
9989 { ac_try='test -s conftest$ac_exeext' | |
43924 | 9990 { (eval echo "$as_me:9989: \"$ac_try\"") >&5 |
9991 (eval $ac_try) 2>&5 | |
9992 ac_status=$? | |
9993 echo "$as_me:9992: \$? = $ac_status" >&5 | |
40056 | 9994 (exit $ac_status); }; }; then |
9995 eval "$as_ac_var=yes" | |
9996 else | |
9997 echo "$as_me: failed program was:" >&5 | |
9998 cat conftest.$ac_ext >&5 | |
9999 eval "$as_ac_var=no" | |
10000 fi | |
10001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10002 fi | |
43924 | 10003 echo "$as_me:10002: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 10004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10005 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10006 cat >>confdefs.h <<EOF | |
10007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10008 EOF | |
10009 | |
29036 | 10010 fi |
10011 done | |
10012 | |
10013 # PTY-related GNU extensions. | |
40056 | 10014 |
29036 | 10015 for ac_func in getpt |
10016 do | |
40056 | 10017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
43924 | 10018 echo "$as_me:10017: checking for $ac_func" >&5 |
40056 | 10019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10020 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10021 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10022 else | |
10023 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 10024 #line 10023 "configure" |
29036 | 10025 #include "confdefs.h" |
10026 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 10027 which can conflict with char $ac_func (); below. */ |
29036 | 10028 #include <assert.h> |
10029 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 10030 #ifdef __cplusplus |
10031 extern "C" | |
10032 #endif | |
29036 | 10033 /* We use char because int might match the return type of a gcc2 |
40056 | 10034 builtin and then its argument prototype would still apply. */ |
10035 char $ac_func (); | |
10036 char (*f) (); | |
10037 | |
10038 int | |
10039 main () | |
10040 { | |
29036 | 10041 /* The GNU C library defines this for functions which it implements |
10042 to always fail with ENOSYS. Some functions are actually named | |
10043 something starting with __ and the normal name is an alias. */ | |
10044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10045 choke me | |
10046 #else | |
40056 | 10047 f = $ac_func; |
10048 #endif | |
10049 | |
10050 ; | |
10051 return 0; | |
10052 } | |
10053 _ACEOF | |
10054 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 10055 if { (eval echo "$as_me:10054: \"$ac_link\"") >&5 |
10056 (eval $ac_link) 2>&5 | |
10057 ac_status=$? | |
10058 echo "$as_me:10057: \$? = $ac_status" >&5 | |
41148 | 10059 (exit $ac_status); } && |
10060 { ac_try='test -s conftest$ac_exeext' | |
43924 | 10061 { (eval echo "$as_me:10060: \"$ac_try\"") >&5 |
10062 (eval $ac_try) 2>&5 | |
10063 ac_status=$? | |
10064 echo "$as_me:10063: \$? = $ac_status" >&5 | |
40056 | 10065 (exit $ac_status); }; }; then |
10066 eval "$as_ac_var=yes" | |
10067 else | |
10068 echo "$as_me: failed program was:" >&5 | |
10069 cat conftest.$ac_ext >&5 | |
10070 eval "$as_ac_var=no" | |
10071 fi | |
10072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10073 fi | |
43924 | 10074 echo "$as_me:10073: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 10075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10076 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10077 cat >>confdefs.h <<EOF | |
10078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10079 EOF | |
10080 | |
29036 | 10081 fi |
10082 done | |
10083 | |
25897 | 10084 # Check this now, so that we will NOT find the above functions in ncurses. |
10085 # That is because we have not set up to link ncurses in lib-src. | |
10086 # It's better to believe a function is not available | |
10087 # than to expect to find it in ncurses. | |
40056 | 10088 |
43924 | 10089 echo "$as_me:10088: checking for tparm in -lncurses" >&5 |
40056 | 10090 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 |
10091 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then | |
10092 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10093 else | |
10094 ac_check_lib_save_LIBS=$LIBS | |
25897 | 10095 LIBS="-lncurses $LIBS" |
40056 | 10096 cat >conftest.$ac_ext <<_ACEOF |
43924 | 10097 #line 10096 "configure" |
40056 | 10098 #include "confdefs.h" |
10099 | |
25897 | 10100 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10101 #ifdef __cplusplus |
10102 extern "C" | |
10103 #endif | |
25897 | 10104 /* We use char because int might match the return type of a gcc2 |
40056 | 10105 builtin and then its argument prototype would still apply. */ |
10106 char tparm (); | |
10107 int | |
10108 main () | |
10109 { | |
10110 tparm (); | |
10111 ; | |
10112 return 0; | |
10113 } | |
10114 _ACEOF | |
10115 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 10116 if { (eval echo "$as_me:10115: \"$ac_link\"") >&5 |
10117 (eval $ac_link) 2>&5 | |
10118 ac_status=$? | |
10119 echo "$as_me:10118: \$? = $ac_status" >&5 | |
41148 | 10120 (exit $ac_status); } && |
10121 { ac_try='test -s conftest$ac_exeext' | |
43924 | 10122 { (eval echo "$as_me:10121: \"$ac_try\"") >&5 |
10123 (eval $ac_try) 2>&5 | |
10124 ac_status=$? | |
10125 echo "$as_me:10124: \$? = $ac_status" >&5 | |
40056 | 10126 (exit $ac_status); }; }; then |
10127 ac_cv_lib_ncurses_tparm=yes | |
10128 else | |
10129 echo "$as_me: failed program was:" >&5 | |
10130 cat conftest.$ac_ext >&5 | |
10131 ac_cv_lib_ncurses_tparm=no | |
10132 fi | |
10133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10134 LIBS=$ac_check_lib_save_LIBS | |
10135 fi | |
43924 | 10136 echo "$as_me:10135: result: $ac_cv_lib_ncurses_tparm" >&5 |
40056 | 10137 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 |
10138 if test $ac_cv_lib_ncurses_tparm = yes; then | |
10139 cat >>confdefs.h <<EOF | |
10140 #define HAVE_LIBNCURSES 1 | |
25897 | 10141 EOF |
10142 | |
10143 LIBS="-lncurses $LIBS" | |
10144 | |
40056 | 10145 fi |
25897 | 10146 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10147 # 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
|
10148 if test "$with_hesiod" = yes ; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10149 # 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
|
10150 resolv=no |
43924 | 10151 echo "$as_me:10150: checking for res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10152 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
|
10153 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
|
10154 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
|
10155 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10156 cat >conftest.$ac_ext <<_ACEOF |
43924 | 10157 #line 10156 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10158 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10159 /* 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
|
10160 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
|
10161 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10162 /* 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
|
10163 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10164 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10165 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10166 /* 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
|
10167 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
|
10168 char res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10169 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10170 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10171 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10172 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10173 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10174 /* 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
|
10175 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
|
10176 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
|
10177 #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
|
10178 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10179 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10180 f = res_send; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10181 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10182 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10183 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10184 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10185 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10186 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10187 rm -f conftest.$ac_objext conftest$ac_exeext |
43924 | 10188 if { (eval echo "$as_me:10187: \"$ac_link\"") >&5 |
10189 (eval $ac_link) 2>&5 | |
10190 ac_status=$? | |
10191 echo "$as_me:10190: \$? = $ac_status" >&5 | |
41148 | 10192 (exit $ac_status); } && |
10193 { ac_try='test -s conftest$ac_exeext' | |
43924 | 10194 { (eval echo "$as_me:10193: \"$ac_try\"") >&5 |
10195 (eval $ac_try) 2>&5 | |
10196 ac_status=$? | |
10197 echo "$as_me:10196: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10198 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10199 ac_cv_func_res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10200 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10201 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
|
10202 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10203 ac_cv_func_res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10204 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10205 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
|
10206 fi |
43924 | 10207 echo "$as_me:10206: result: $ac_cv_func_res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10208 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
|
10209 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
|
10210 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10211 else |
43924 | 10212 echo "$as_me:10211: checking for __res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10213 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
|
10214 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
|
10215 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
|
10216 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10217 cat >conftest.$ac_ext <<_ACEOF |
43924 | 10218 #line 10217 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10219 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10220 /* 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
|
10221 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
|
10222 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10223 /* 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
|
10224 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10225 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10226 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10227 /* 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
|
10228 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
|
10229 char __res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10230 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10231 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10232 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10233 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10234 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10235 /* 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
|
10236 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
|
10237 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
|
10238 #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
|
10239 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10240 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10241 f = __res_send; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10242 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10243 |
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 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10246 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10247 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10248 rm -f conftest.$ac_objext conftest$ac_exeext |
43924 | 10249 if { (eval echo "$as_me:10248: \"$ac_link\"") >&5 |
10250 (eval $ac_link) 2>&5 | |
10251 ac_status=$? | |
10252 echo "$as_me:10251: \$? = $ac_status" >&5 | |
41148 | 10253 (exit $ac_status); } && |
10254 { ac_try='test -s conftest$ac_exeext' | |
43924 | 10255 { (eval echo "$as_me:10254: \"$ac_try\"") >&5 |
10256 (eval $ac_try) 2>&5 | |
10257 ac_status=$? | |
10258 echo "$as_me:10257: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10259 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10260 ac_cv_func___res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10261 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10262 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
|
10263 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10264 ac_cv_func___res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10265 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10266 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
|
10267 fi |
43924 | 10268 echo "$as_me:10267: result: $ac_cv_func___res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10269 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
|
10270 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
|
10271 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10272 else |
43924 | 10273 echo "$as_me:10272: checking for res_send in -lresolv" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10274 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
|
10275 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
|
10276 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
|
10277 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10278 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10279 LIBS="-lresolv $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10280 cat >conftest.$ac_ext <<_ACEOF |
43924 | 10281 #line 10280 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10282 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10283 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10284 /* 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
|
10285 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10286 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10287 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10288 /* 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
|
10289 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
|
10290 char res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10291 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10292 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10293 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10294 res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10295 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10296 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10297 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10298 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10299 rm -f conftest.$ac_objext conftest$ac_exeext |
43924 | 10300 if { (eval echo "$as_me:10299: \"$ac_link\"") >&5 |
10301 (eval $ac_link) 2>&5 | |
10302 ac_status=$? | |
10303 echo "$as_me:10302: \$? = $ac_status" >&5 | |
41148 | 10304 (exit $ac_status); } && |
10305 { ac_try='test -s conftest$ac_exeext' | |
43924 | 10306 { (eval echo "$as_me:10305: \"$ac_try\"") >&5 |
10307 (eval $ac_try) 2>&5 | |
10308 ac_status=$? | |
10309 echo "$as_me:10308: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10310 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10311 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
|
10312 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10313 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
|
10314 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10315 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
|
10316 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10317 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
|
10318 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10319 fi |
43924 | 10320 echo "$as_me:10319: result: $ac_cv_lib_resolv_res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10321 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
|
10322 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
|
10323 resolv=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10324 else |
43924 | 10325 echo "$as_me:10324: checking for __res_send in -lresolv" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10326 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
|
10327 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
|
10328 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
|
10329 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10330 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10331 LIBS="-lresolv $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10332 cat >conftest.$ac_ext <<_ACEOF |
43924 | 10333 #line 10332 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10334 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10335 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10336 /* 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
|
10337 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10338 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10339 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10340 /* 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
|
10341 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
|
10342 char __res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10343 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10344 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10345 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10346 __res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10347 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10348 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10349 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10350 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10351 rm -f conftest.$ac_objext conftest$ac_exeext |
43924 | 10352 if { (eval echo "$as_me:10351: \"$ac_link\"") >&5 |
10353 (eval $ac_link) 2>&5 | |
10354 ac_status=$? | |
10355 echo "$as_me:10354: \$? = $ac_status" >&5 | |
41148 | 10356 (exit $ac_status); } && |
10357 { ac_try='test -s conftest$ac_exeext' | |
43924 | 10358 { (eval echo "$as_me:10357: \"$ac_try\"") >&5 |
10359 (eval $ac_try) 2>&5 | |
10360 ac_status=$? | |
10361 echo "$as_me:10360: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10362 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10363 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
|
10364 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10365 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
|
10366 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10367 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
|
10368 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10369 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
|
10370 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10371 fi |
43924 | 10372 echo "$as_me:10371: result: $ac_cv_lib_resolv___res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10373 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
|
10374 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
|
10375 resolv=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10376 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10377 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10378 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10379 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10380 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10381 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10382 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10383 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10384 if test "$resolv" = yes ; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10385 RESOLVLIB=-lresolv |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10386 cat >>confdefs.h <<\EOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10387 #define HAVE_LIBRESOLV 1 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10388 EOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10389 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10390 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10391 RESOLVLIB= |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10392 fi |
43924 | 10393 echo "$as_me:10392: checking for hes_getmailhost" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10394 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
|
10395 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
|
10396 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
|
10397 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10398 cat >conftest.$ac_ext <<_ACEOF |
43924 | 10399 #line 10398 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10400 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10401 /* 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
|
10402 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
|
10403 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10404 /* 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
|
10405 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10406 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10407 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10408 /* 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
|
10409 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
|
10410 char hes_getmailhost (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10411 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10412 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10413 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10414 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10415 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10416 /* 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
|
10417 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
|
10418 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
|
10419 #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
|
10420 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10421 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10422 f = hes_getmailhost; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10423 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10424 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10425 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10426 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10427 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10428 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10429 rm -f conftest.$ac_objext conftest$ac_exeext |
43924 | 10430 if { (eval echo "$as_me:10429: \"$ac_link\"") >&5 |
10431 (eval $ac_link) 2>&5 | |
10432 ac_status=$? | |
10433 echo "$as_me:10432: \$? = $ac_status" >&5 | |
41148 | 10434 (exit $ac_status); } && |
10435 { ac_try='test -s conftest$ac_exeext' | |
43924 | 10436 { (eval echo "$as_me:10435: \"$ac_try\"") >&5 |
10437 (eval $ac_try) 2>&5 | |
10438 ac_status=$? | |
10439 echo "$as_me:10438: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10440 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10441 ac_cv_func_hes_getmailhost=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10442 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10443 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
|
10444 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10445 ac_cv_func_hes_getmailhost=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10446 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10447 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
|
10448 fi |
43924 | 10449 echo "$as_me:10448: result: $ac_cv_func_hes_getmailhost" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10450 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
|
10451 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
|
10452 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10453 else |
43924 | 10454 echo "$as_me:10453: checking for hes_getmailhost in -lhesiod" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10455 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
|
10456 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
|
10457 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
|
10458 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10459 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10460 LIBS="-lhesiod $RESOLVLIB $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10461 cat >conftest.$ac_ext <<_ACEOF |
43924 | 10462 #line 10461 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10463 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10464 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10465 /* 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
|
10466 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10467 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10468 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10469 /* 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
|
10470 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
|
10471 char hes_getmailhost (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10472 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10473 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10474 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10475 hes_getmailhost (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10476 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10477 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10478 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10479 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10480 rm -f conftest.$ac_objext conftest$ac_exeext |
43924 | 10481 if { (eval echo "$as_me:10480: \"$ac_link\"") >&5 |
10482 (eval $ac_link) 2>&5 | |
10483 ac_status=$? | |
10484 echo "$as_me:10483: \$? = $ac_status" >&5 | |
41148 | 10485 (exit $ac_status); } && |
10486 { ac_try='test -s conftest$ac_exeext' | |
43924 | 10487 { (eval echo "$as_me:10486: \"$ac_try\"") >&5 |
10488 (eval $ac_try) 2>&5 | |
10489 ac_status=$? | |
10490 echo "$as_me:10489: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10491 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10492 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
|
10493 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10494 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
|
10495 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10496 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
|
10497 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10498 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
|
10499 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10500 fi |
43924 | 10501 echo "$as_me:10500: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10502 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
|
10503 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
|
10504 cat >>confdefs.h <<\EOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10505 #define HAVE_LIBHESIOD 1 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10506 EOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10507 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10508 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10509 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10510 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10511 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10512 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10513 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10514 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10515 |
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
|
10516 # 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
|
10517 if test "${with_kerberos+set}" = set; then |
40056 | 10518 |
43924 | 10519 echo "$as_me:10518: checking for com_err in -lcom_err" >&5 |
40056 | 10520 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 |
10521 if test "${ac_cv_lib_com_err_com_err+set}" = set; then | |
10522 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10523 else | |
10524 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
|
10525 LIBS="-lcom_err $LIBS" |
40056 | 10526 cat >conftest.$ac_ext <<_ACEOF |
43924 | 10527 #line 10526 "configure" |
40056 | 10528 #include "confdefs.h" |
10529 | |
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
|
10530 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10531 #ifdef __cplusplus |
10532 extern "C" | |
10533 #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
|
10534 /* We use char because int might match the return type of a gcc2 |
40056 | 10535 builtin and then its argument prototype would still apply. */ |
10536 char com_err (); | |
10537 int | |
10538 main () | |
10539 { | |
10540 com_err (); | |
10541 ; | |
10542 return 0; | |
10543 } | |
10544 _ACEOF | |
10545 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 10546 if { (eval echo "$as_me:10545: \"$ac_link\"") >&5 |
10547 (eval $ac_link) 2>&5 | |
10548 ac_status=$? | |
10549 echo "$as_me:10548: \$? = $ac_status" >&5 | |
41148 | 10550 (exit $ac_status); } && |
10551 { ac_try='test -s conftest$ac_exeext' | |
43924 | 10552 { (eval echo "$as_me:10551: \"$ac_try\"") >&5 |
10553 (eval $ac_try) 2>&5 | |
10554 ac_status=$? | |
10555 echo "$as_me:10554: \$? = $ac_status" >&5 | |
40056 | 10556 (exit $ac_status); }; }; then |
10557 ac_cv_lib_com_err_com_err=yes | |
10558 else | |
10559 echo "$as_me: failed program was:" >&5 | |
10560 cat conftest.$ac_ext >&5 | |
10561 ac_cv_lib_com_err_com_err=no | |
10562 fi | |
10563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10564 LIBS=$ac_check_lib_save_LIBS | |
10565 fi | |
43924 | 10566 echo "$as_me:10565: result: $ac_cv_lib_com_err_com_err" >&5 |
40056 | 10567 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 |
10568 if test $ac_cv_lib_com_err_com_err = yes; then | |
10569 cat >>confdefs.h <<EOF | |
10570 #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
|
10571 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
|
10572 |
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
|
10573 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
|
10574 |
40056 | 10575 fi |
10576 | |
43924 | 10577 echo "$as_me:10576: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
40056 | 10578 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 |
10579 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | |
10580 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10581 else | |
10582 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
|
10583 LIBS="-lk5crypto $LIBS" |
40056 | 10584 cat >conftest.$ac_ext <<_ACEOF |
43924 | 10585 #line 10584 "configure" |
40056 | 10586 #include "confdefs.h" |
10587 | |
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 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10589 #ifdef __cplusplus |
10590 extern "C" | |
10591 #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
|
10592 /* We use char because int might match the return type of a gcc2 |
40056 | 10593 builtin and then its argument prototype would still apply. */ |
10594 char mit_des_cbc_encrypt (); | |
10595 int | |
10596 main () | |
10597 { | |
10598 mit_des_cbc_encrypt (); | |
10599 ; | |
10600 return 0; | |
10601 } | |
10602 _ACEOF | |
10603 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 10604 if { (eval echo "$as_me:10603: \"$ac_link\"") >&5 |
10605 (eval $ac_link) 2>&5 | |
10606 ac_status=$? | |
10607 echo "$as_me:10606: \$? = $ac_status" >&5 | |
41148 | 10608 (exit $ac_status); } && |
10609 { ac_try='test -s conftest$ac_exeext' | |
43924 | 10610 { (eval echo "$as_me:10609: \"$ac_try\"") >&5 |
10611 (eval $ac_try) 2>&5 | |
10612 ac_status=$? | |
10613 echo "$as_me:10612: \$? = $ac_status" >&5 | |
40056 | 10614 (exit $ac_status); }; }; then |
10615 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | |
10616 else | |
10617 echo "$as_me: failed program was:" >&5 | |
10618 cat conftest.$ac_ext >&5 | |
10619 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no | |
10620 fi | |
10621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10622 LIBS=$ac_check_lib_save_LIBS | |
10623 fi | |
43924 | 10624 echo "$as_me:10623: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
40056 | 10625 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 |
10626 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | |
10627 cat >>confdefs.h <<EOF | |
10628 #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
|
10629 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
|
10630 |
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
|
10631 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
|
10632 |
40056 | 10633 fi |
10634 | |
43924 | 10635 echo "$as_me:10634: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
40056 | 10636 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 |
10637 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | |
10638 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10639 else | |
10640 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
|
10641 LIBS="-lcrypto $LIBS" |
40056 | 10642 cat >conftest.$ac_ext <<_ACEOF |
43924 | 10643 #line 10642 "configure" |
40056 | 10644 #include "confdefs.h" |
10645 | |
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 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10647 #ifdef __cplusplus |
10648 extern "C" | |
10649 #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
|
10650 /* We use char because int might match the return type of a gcc2 |
40056 | 10651 builtin and then its argument prototype would still apply. */ |
10652 char mit_des_cbc_encrypt (); | |
10653 int | |
10654 main () | |
10655 { | |
10656 mit_des_cbc_encrypt (); | |
10657 ; | |
10658 return 0; | |
10659 } | |
10660 _ACEOF | |
10661 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 10662 if { (eval echo "$as_me:10661: \"$ac_link\"") >&5 |
10663 (eval $ac_link) 2>&5 | |
10664 ac_status=$? | |
10665 echo "$as_me:10664: \$? = $ac_status" >&5 | |
41148 | 10666 (exit $ac_status); } && |
10667 { ac_try='test -s conftest$ac_exeext' | |
43924 | 10668 { (eval echo "$as_me:10667: \"$ac_try\"") >&5 |
10669 (eval $ac_try) 2>&5 | |
10670 ac_status=$? | |
10671 echo "$as_me:10670: \$? = $ac_status" >&5 | |
40056 | 10672 (exit $ac_status); }; }; then |
10673 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | |
10674 else | |
10675 echo "$as_me: failed program was:" >&5 | |
10676 cat conftest.$ac_ext >&5 | |
10677 ac_cv_lib_crypto_mit_des_cbc_encrypt=no | |
10678 fi | |
10679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10680 LIBS=$ac_check_lib_save_LIBS | |
10681 fi | |
43924 | 10682 echo "$as_me:10681: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
40056 | 10683 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 |
10684 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | |
10685 cat >>confdefs.h <<EOF | |
10686 #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
|
10687 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
|
10688 |
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
|
10689 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
|
10690 |
40056 | 10691 fi |
10692 | |
43924 | 10693 echo "$as_me:10692: checking for krb5_init_context in -lkrb5" >&5 |
40056 | 10694 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 |
10695 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | |
10696 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10697 else | |
10698 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
|
10699 LIBS="-lkrb5 $LIBS" |
40056 | 10700 cat >conftest.$ac_ext <<_ACEOF |
43924 | 10701 #line 10700 "configure" |
40056 | 10702 #include "confdefs.h" |
10703 | |
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
|
10704 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10705 #ifdef __cplusplus |
10706 extern "C" | |
10707 #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
|
10708 /* We use char because int might match the return type of a gcc2 |
40056 | 10709 builtin and then its argument prototype would still apply. */ |
10710 char krb5_init_context (); | |
10711 int | |
10712 main () | |
10713 { | |
10714 krb5_init_context (); | |
10715 ; | |
10716 return 0; | |
10717 } | |
10718 _ACEOF | |
10719 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 10720 if { (eval echo "$as_me:10719: \"$ac_link\"") >&5 |
10721 (eval $ac_link) 2>&5 | |
10722 ac_status=$? | |
10723 echo "$as_me:10722: \$? = $ac_status" >&5 | |
41148 | 10724 (exit $ac_status); } && |
10725 { ac_try='test -s conftest$ac_exeext' | |
43924 | 10726 { (eval echo "$as_me:10725: \"$ac_try\"") >&5 |
10727 (eval $ac_try) 2>&5 | |
10728 ac_status=$? | |
10729 echo "$as_me:10728: \$? = $ac_status" >&5 | |
40056 | 10730 (exit $ac_status); }; }; then |
10731 ac_cv_lib_krb5_krb5_init_context=yes | |
10732 else | |
10733 echo "$as_me: failed program was:" >&5 | |
10734 cat conftest.$ac_ext >&5 | |
10735 ac_cv_lib_krb5_krb5_init_context=no | |
10736 fi | |
10737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10738 LIBS=$ac_check_lib_save_LIBS | |
10739 fi | |
43924 | 10740 echo "$as_me:10739: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
40056 | 10741 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 |
10742 if test $ac_cv_lib_krb5_krb5_init_context = yes; then | |
10743 cat >>confdefs.h <<EOF | |
10744 #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
|
10745 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
|
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 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
|
10748 |
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
|
10749 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
|
10750 |
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
|
10751 if test "${with_kerberos5+set}" != set; then |
40056 | 10752 |
43924 | 10753 echo "$as_me:10752: checking for des_cbc_encrypt in -ldes425" >&5 |
40056 | 10754 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 |
10755 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | |
10756 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10757 else | |
10758 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
|
10759 LIBS="-ldes425 $LIBS" |
40056 | 10760 cat >conftest.$ac_ext <<_ACEOF |
43924 | 10761 #line 10760 "configure" |
40056 | 10762 #include "confdefs.h" |
10763 | |
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 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10765 #ifdef __cplusplus |
10766 extern "C" | |
10767 #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
|
10768 /* We use char because int might match the return type of a gcc2 |
40056 | 10769 builtin and then its argument prototype would still apply. */ |
10770 char des_cbc_encrypt (); | |
10771 int | |
10772 main () | |
10773 { | |
10774 des_cbc_encrypt (); | |
10775 ; | |
10776 return 0; | |
10777 } | |
10778 _ACEOF | |
10779 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 10780 if { (eval echo "$as_me:10779: \"$ac_link\"") >&5 |
10781 (eval $ac_link) 2>&5 | |
10782 ac_status=$? | |
10783 echo "$as_me:10782: \$? = $ac_status" >&5 | |
41148 | 10784 (exit $ac_status); } && |
10785 { ac_try='test -s conftest$ac_exeext' | |
43924 | 10786 { (eval echo "$as_me:10785: \"$ac_try\"") >&5 |
10787 (eval $ac_try) 2>&5 | |
10788 ac_status=$? | |
10789 echo "$as_me:10788: \$? = $ac_status" >&5 | |
40056 | 10790 (exit $ac_status); }; }; then |
10791 ac_cv_lib_des425_des_cbc_encrypt=yes | |
10792 else | |
10793 echo "$as_me: failed program was:" >&5 | |
10794 cat conftest.$ac_ext >&5 | |
10795 ac_cv_lib_des425_des_cbc_encrypt=no | |
10796 fi | |
10797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10798 LIBS=$ac_check_lib_save_LIBS | |
10799 fi | |
43924 | 10800 echo "$as_me:10799: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
40056 | 10801 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 |
10802 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | |
10803 cat >>confdefs.h <<EOF | |
10804 #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
|
10805 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
|
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 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
|
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 else |
40056 | 10810 |
43924 | 10811 echo "$as_me:10810: checking for des_cbc_encrypt in -ldes" >&5 |
40056 | 10812 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 |
10813 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | |
10814 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10815 else | |
10816 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
|
10817 LIBS="-ldes $LIBS" |
40056 | 10818 cat >conftest.$ac_ext <<_ACEOF |
43924 | 10819 #line 10818 "configure" |
40056 | 10820 #include "confdefs.h" |
10821 | |
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
|
10822 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10823 #ifdef __cplusplus |
10824 extern "C" | |
10825 #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
|
10826 /* We use char because int might match the return type of a gcc2 |
40056 | 10827 builtin and then its argument prototype would still apply. */ |
10828 char des_cbc_encrypt (); | |
10829 int | |
10830 main () | |
10831 { | |
10832 des_cbc_encrypt (); | |
10833 ; | |
10834 return 0; | |
10835 } | |
10836 _ACEOF | |
10837 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 10838 if { (eval echo "$as_me:10837: \"$ac_link\"") >&5 |
10839 (eval $ac_link) 2>&5 | |
10840 ac_status=$? | |
10841 echo "$as_me:10840: \$? = $ac_status" >&5 | |
41148 | 10842 (exit $ac_status); } && |
10843 { ac_try='test -s conftest$ac_exeext' | |
43924 | 10844 { (eval echo "$as_me:10843: \"$ac_try\"") >&5 |
10845 (eval $ac_try) 2>&5 | |
10846 ac_status=$? | |
10847 echo "$as_me:10846: \$? = $ac_status" >&5 | |
40056 | 10848 (exit $ac_status); }; }; then |
10849 ac_cv_lib_des_des_cbc_encrypt=yes | |
10850 else | |
10851 echo "$as_me: failed program was:" >&5 | |
10852 cat conftest.$ac_ext >&5 | |
10853 ac_cv_lib_des_des_cbc_encrypt=no | |
10854 fi | |
10855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10856 LIBS=$ac_check_lib_save_LIBS | |
10857 fi | |
43924 | 10858 echo "$as_me:10857: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
40056 | 10859 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 |
10860 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | |
10861 cat >>confdefs.h <<EOF | |
10862 #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
|
10863 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
|
10864 |
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
|
10865 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
|
10866 |
40056 | 10867 fi |
10868 | |
10869 fi | |
10870 | |
43924 | 10871 echo "$as_me:10870: checking for krb_get_cred in -lkrb4" >&5 |
40056 | 10872 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 |
10873 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | |
10874 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10875 else | |
10876 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
|
10877 LIBS="-lkrb4 $LIBS" |
40056 | 10878 cat >conftest.$ac_ext <<_ACEOF |
43924 | 10879 #line 10878 "configure" |
40056 | 10880 #include "confdefs.h" |
10881 | |
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
|
10882 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10883 #ifdef __cplusplus |
10884 extern "C" | |
10885 #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
|
10886 /* We use char because int might match the return type of a gcc2 |
40056 | 10887 builtin and then its argument prototype would still apply. */ |
10888 char krb_get_cred (); | |
10889 int | |
10890 main () | |
10891 { | |
10892 krb_get_cred (); | |
10893 ; | |
10894 return 0; | |
10895 } | |
10896 _ACEOF | |
10897 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 10898 if { (eval echo "$as_me:10897: \"$ac_link\"") >&5 |
10899 (eval $ac_link) 2>&5 | |
10900 ac_status=$? | |
10901 echo "$as_me:10900: \$? = $ac_status" >&5 | |
41148 | 10902 (exit $ac_status); } && |
10903 { ac_try='test -s conftest$ac_exeext' | |
43924 | 10904 { (eval echo "$as_me:10903: \"$ac_try\"") >&5 |
10905 (eval $ac_try) 2>&5 | |
10906 ac_status=$? | |
10907 echo "$as_me:10906: \$? = $ac_status" >&5 | |
40056 | 10908 (exit $ac_status); }; }; then |
10909 ac_cv_lib_krb4_krb_get_cred=yes | |
10910 else | |
10911 echo "$as_me: failed program was:" >&5 | |
10912 cat conftest.$ac_ext >&5 | |
10913 ac_cv_lib_krb4_krb_get_cred=no | |
10914 fi | |
10915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10916 LIBS=$ac_check_lib_save_LIBS | |
10917 fi | |
43924 | 10918 echo "$as_me:10917: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
40056 | 10919 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 |
10920 if test $ac_cv_lib_krb4_krb_get_cred = yes; then | |
10921 cat >>confdefs.h <<EOF | |
10922 #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
|
10923 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
|
10924 |
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
|
10925 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
|
10926 |
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
|
10927 else |
40056 | 10928 |
43924 | 10929 echo "$as_me:10928: checking for krb_get_cred in -lkrb" >&5 |
40056 | 10930 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 |
10931 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | |
10932 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10933 else | |
10934 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
|
10935 LIBS="-lkrb $LIBS" |
40056 | 10936 cat >conftest.$ac_ext <<_ACEOF |
43924 | 10937 #line 10936 "configure" |
40056 | 10938 #include "confdefs.h" |
10939 | |
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
|
10940 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10941 #ifdef __cplusplus |
10942 extern "C" | |
10943 #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
|
10944 /* We use char because int might match the return type of a gcc2 |
40056 | 10945 builtin and then its argument prototype would still apply. */ |
10946 char krb_get_cred (); | |
10947 int | |
10948 main () | |
10949 { | |
10950 krb_get_cred (); | |
10951 ; | |
10952 return 0; | |
10953 } | |
10954 _ACEOF | |
10955 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 10956 if { (eval echo "$as_me:10955: \"$ac_link\"") >&5 |
10957 (eval $ac_link) 2>&5 | |
10958 ac_status=$? | |
10959 echo "$as_me:10958: \$? = $ac_status" >&5 | |
41148 | 10960 (exit $ac_status); } && |
10961 { ac_try='test -s conftest$ac_exeext' | |
43924 | 10962 { (eval echo "$as_me:10961: \"$ac_try\"") >&5 |
10963 (eval $ac_try) 2>&5 | |
10964 ac_status=$? | |
10965 echo "$as_me:10964: \$? = $ac_status" >&5 | |
40056 | 10966 (exit $ac_status); }; }; then |
10967 ac_cv_lib_krb_krb_get_cred=yes | |
10968 else | |
10969 echo "$as_me: failed program was:" >&5 | |
10970 cat conftest.$ac_ext >&5 | |
10971 ac_cv_lib_krb_krb_get_cred=no | |
10972 fi | |
10973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10974 LIBS=$ac_check_lib_save_LIBS | |
10975 fi | |
43924 | 10976 echo "$as_me:10975: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
40056 | 10977 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 |
10978 if test $ac_cv_lib_krb_krb_get_cred = yes; then | |
10979 cat >>confdefs.h <<EOF | |
10980 #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
|
10981 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
|
10982 |
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
|
10983 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
|
10984 |
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
|
10985 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
|
10986 |
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
|
10987 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
|
10988 |
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
|
10989 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
|
10990 |
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
|
10991 if test "${with_kerberos5+set}" = set; then |
40056 | 10992 |
10993 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
|
10994 do |
40056 | 10995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
43924 | 10996 echo "$as_me:10995: checking for $ac_header" >&5 |
40056 | 10997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10998 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10999 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11000 else | |
11001 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 11002 #line 11001 "configure" |
40056 | 11003 #include "confdefs.h" |
11004 #include <$ac_header> | |
11005 _ACEOF | |
43924 | 11006 if { (eval echo "$as_me:11005: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11008 ac_status=$? | |
11009 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11010 rm -f conftest.er1 | |
11011 cat conftest.err >&5 | |
43924 | 11012 echo "$as_me:11011: \$? = $ac_status" >&5 |
40056 | 11013 (exit $ac_status); } >/dev/null; then |
11014 if test -s conftest.err; then | |
11015 ac_cpp_err=$ac_c_preproc_warn_flag | |
11016 else | |
11017 ac_cpp_err= | |
11018 fi | |
11019 else | |
11020 ac_cpp_err=yes | |
11021 fi | |
11022 if test -z "$ac_cpp_err"; then | |
11023 eval "$as_ac_Header=yes" | |
11024 else | |
11025 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
|
11026 cat conftest.$ac_ext >&5 |
40056 | 11027 eval "$as_ac_Header=no" |
11028 fi | |
11029 rm -f conftest.err conftest.$ac_ext | |
11030 fi | |
43924 | 11031 echo "$as_me:11030: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11033 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11034 cat >>confdefs.h <<EOF | |
11035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11036 EOF | |
11037 | |
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
|
11038 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
|
11039 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
|
11040 |
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
|
11041 else |
40056 | 11042 |
11043 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
|
11044 do |
40056 | 11045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
43924 | 11046 echo "$as_me:11045: checking for $ac_header" >&5 |
40056 | 11047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11048 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11049 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11050 else | |
11051 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 11052 #line 11051 "configure" |
40056 | 11053 #include "confdefs.h" |
11054 #include <$ac_header> | |
11055 _ACEOF | |
43924 | 11056 if { (eval echo "$as_me:11055: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11058 ac_status=$? | |
11059 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11060 rm -f conftest.er1 | |
11061 cat conftest.err >&5 | |
43924 | 11062 echo "$as_me:11061: \$? = $ac_status" >&5 |
40056 | 11063 (exit $ac_status); } >/dev/null; then |
11064 if test -s conftest.err; then | |
11065 ac_cpp_err=$ac_c_preproc_warn_flag | |
11066 else | |
11067 ac_cpp_err= | |
11068 fi | |
11069 else | |
11070 ac_cpp_err=yes | |
11071 fi | |
11072 if test -z "$ac_cpp_err"; then | |
11073 eval "$as_ac_Header=yes" | |
11074 else | |
11075 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
|
11076 cat conftest.$ac_ext >&5 |
40056 | 11077 eval "$as_ac_Header=no" |
11078 fi | |
11079 rm -f conftest.err conftest.$ac_ext | |
11080 fi | |
43924 | 11081 echo "$as_me:11080: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11083 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11084 cat >>confdefs.h <<EOF | |
11085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11086 EOF | |
11087 | |
11088 else | |
11089 | |
11090 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
|
11091 do |
40056 | 11092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
43924 | 11093 echo "$as_me:11092: checking for $ac_header" >&5 |
40056 | 11094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11095 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11096 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11097 else | |
11098 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 11099 #line 11098 "configure" |
40056 | 11100 #include "confdefs.h" |
11101 #include <$ac_header> | |
11102 _ACEOF | |
43924 | 11103 if { (eval echo "$as_me:11102: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11105 ac_status=$? | |
11106 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11107 rm -f conftest.er1 | |
11108 cat conftest.err >&5 | |
43924 | 11109 echo "$as_me:11108: \$? = $ac_status" >&5 |
40056 | 11110 (exit $ac_status); } >/dev/null; then |
11111 if test -s conftest.err; then | |
11112 ac_cpp_err=$ac_c_preproc_warn_flag | |
11113 else | |
11114 ac_cpp_err= | |
11115 fi | |
11116 else | |
11117 ac_cpp_err=yes | |
11118 fi | |
11119 if test -z "$ac_cpp_err"; then | |
11120 eval "$as_ac_Header=yes" | |
11121 else | |
11122 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
|
11123 cat conftest.$ac_ext >&5 |
40056 | 11124 eval "$as_ac_Header=no" |
11125 fi | |
11126 rm -f conftest.err conftest.$ac_ext | |
11127 fi | |
43924 | 11128 echo "$as_me:11127: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11130 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11131 cat >>confdefs.h <<EOF | |
11132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11133 EOF | |
11134 | |
11135 else | |
11136 | |
11137 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
|
11138 do |
40056 | 11139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
43924 | 11140 echo "$as_me:11139: checking for $ac_header" >&5 |
40056 | 11141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11142 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11143 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11144 else | |
11145 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 11146 #line 11145 "configure" |
40056 | 11147 #include "confdefs.h" |
11148 #include <$ac_header> | |
11149 _ACEOF | |
43924 | 11150 if { (eval echo "$as_me:11149: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11152 ac_status=$? | |
11153 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11154 rm -f conftest.er1 | |
11155 cat conftest.err >&5 | |
43924 | 11156 echo "$as_me:11155: \$? = $ac_status" >&5 |
40056 | 11157 (exit $ac_status); } >/dev/null; then |
11158 if test -s conftest.err; then | |
11159 ac_cpp_err=$ac_c_preproc_warn_flag | |
11160 else | |
11161 ac_cpp_err= | |
11162 fi | |
11163 else | |
11164 ac_cpp_err=yes | |
11165 fi | |
11166 if test -z "$ac_cpp_err"; then | |
11167 eval "$as_ac_Header=yes" | |
11168 else | |
11169 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
|
11170 cat conftest.$ac_ext >&5 |
40056 | 11171 eval "$as_ac_Header=no" |
11172 fi | |
11173 rm -f conftest.err conftest.$ac_ext | |
11174 fi | |
43924 | 11175 echo "$as_me:11174: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11177 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11178 cat >>confdefs.h <<EOF | |
11179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11180 EOF | |
11181 | |
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
|
11182 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
|
11183 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
|
11184 |
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
|
11185 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
|
11186 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
|
11187 |
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
|
11188 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
|
11189 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
|
11190 |
40056 | 11191 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
|
11192 do |
40056 | 11193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
43924 | 11194 echo "$as_me:11193: checking for $ac_header" >&5 |
40056 | 11195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11196 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11197 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11198 else | |
11199 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 11200 #line 11199 "configure" |
40056 | 11201 #include "confdefs.h" |
11202 #include <$ac_header> | |
11203 _ACEOF | |
43924 | 11204 if { (eval echo "$as_me:11203: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11206 ac_status=$? | |
11207 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11208 rm -f conftest.er1 | |
11209 cat conftest.err >&5 | |
43924 | 11210 echo "$as_me:11209: \$? = $ac_status" >&5 |
40056 | 11211 (exit $ac_status); } >/dev/null; then |
11212 if test -s conftest.err; then | |
11213 ac_cpp_err=$ac_c_preproc_warn_flag | |
11214 else | |
11215 ac_cpp_err= | |
11216 fi | |
11217 else | |
11218 ac_cpp_err=yes | |
11219 fi | |
11220 if test -z "$ac_cpp_err"; then | |
11221 eval "$as_ac_Header=yes" | |
11222 else | |
11223 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
|
11224 cat conftest.$ac_ext >&5 |
40056 | 11225 eval "$as_ac_Header=no" |
11226 fi | |
11227 rm -f conftest.err conftest.$ac_ext | |
11228 fi | |
43924 | 11229 echo "$as_me:11228: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11231 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11232 cat >>confdefs.h <<EOF | |
11233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11234 EOF | |
11235 | |
11236 else | |
11237 | |
11238 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
|
11239 do |
40056 | 11240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
43924 | 11241 echo "$as_me:11240: checking for $ac_header" >&5 |
40056 | 11242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11243 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11244 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11245 else | |
11246 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 11247 #line 11246 "configure" |
40056 | 11248 #include "confdefs.h" |
11249 #include <$ac_header> | |
11250 _ACEOF | |
43924 | 11251 if { (eval echo "$as_me:11250: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11253 ac_status=$? | |
11254 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11255 rm -f conftest.er1 | |
11256 cat conftest.err >&5 | |
43924 | 11257 echo "$as_me:11256: \$? = $ac_status" >&5 |
40056 | 11258 (exit $ac_status); } >/dev/null; then |
11259 if test -s conftest.err; then | |
11260 ac_cpp_err=$ac_c_preproc_warn_flag | |
11261 else | |
11262 ac_cpp_err= | |
11263 fi | |
11264 else | |
11265 ac_cpp_err=yes | |
11266 fi | |
11267 if test -z "$ac_cpp_err"; then | |
11268 eval "$as_ac_Header=yes" | |
11269 else | |
11270 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
|
11271 cat conftest.$ac_ext >&5 |
40056 | 11272 eval "$as_ac_Header=no" |
11273 fi | |
11274 rm -f conftest.err conftest.$ac_ext | |
11275 fi | |
43924 | 11276 echo "$as_me:11275: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11278 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11279 cat >>confdefs.h <<EOF | |
11280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11281 EOF | |
11282 | |
11283 else | |
11284 | |
11285 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
|
11286 do |
40056 | 11287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
43924 | 11288 echo "$as_me:11287: checking for $ac_header" >&5 |
40056 | 11289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11290 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11291 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11292 else | |
11293 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 11294 #line 11293 "configure" |
40056 | 11295 #include "confdefs.h" |
11296 #include <$ac_header> | |
11297 _ACEOF | |
43924 | 11298 if { (eval echo "$as_me:11297: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11300 ac_status=$? | |
11301 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11302 rm -f conftest.er1 | |
11303 cat conftest.err >&5 | |
43924 | 11304 echo "$as_me:11303: \$? = $ac_status" >&5 |
40056 | 11305 (exit $ac_status); } >/dev/null; then |
11306 if test -s conftest.err; then | |
11307 ac_cpp_err=$ac_c_preproc_warn_flag | |
11308 else | |
11309 ac_cpp_err= | |
11310 fi | |
11311 else | |
11312 ac_cpp_err=yes | |
11313 fi | |
11314 if test -z "$ac_cpp_err"; then | |
11315 eval "$as_ac_Header=yes" | |
11316 else | |
11317 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
|
11318 cat conftest.$ac_ext >&5 |
40056 | 11319 eval "$as_ac_Header=no" |
11320 fi | |
11321 rm -f conftest.err conftest.$ac_ext | |
11322 fi | |
43924 | 11323 echo "$as_me:11322: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11325 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11326 cat >>confdefs.h <<EOF | |
11327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11328 EOF | |
11329 | |
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
|
11330 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
|
11331 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
|
11332 |
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
|
11333 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
|
11334 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
|
11335 |
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
|
11336 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
|
11337 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
|
11338 |
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
|
11339 fi |
40056 | 11340 |
11341 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
|
11342 do |
40056 | 11343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
43924 | 11344 echo "$as_me:11343: checking for $ac_header" >&5 |
40056 | 11345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11346 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11347 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11348 else | |
11349 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 11350 #line 11349 "configure" |
40056 | 11351 #include "confdefs.h" |
11352 #include <$ac_header> | |
11353 _ACEOF | |
43924 | 11354 if { (eval echo "$as_me:11353: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11356 ac_status=$? | |
11357 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11358 rm -f conftest.er1 | |
11359 cat conftest.err >&5 | |
43924 | 11360 echo "$as_me:11359: \$? = $ac_status" >&5 |
40056 | 11361 (exit $ac_status); } >/dev/null; then |
11362 if test -s conftest.err; then | |
11363 ac_cpp_err=$ac_c_preproc_warn_flag | |
11364 else | |
11365 ac_cpp_err= | |
11366 fi | |
11367 else | |
11368 ac_cpp_err=yes | |
11369 fi | |
11370 if test -z "$ac_cpp_err"; then | |
11371 eval "$as_ac_Header=yes" | |
11372 else | |
11373 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
|
11374 cat conftest.$ac_ext >&5 |
40056 | 11375 eval "$as_ac_Header=no" |
11376 fi | |
11377 rm -f conftest.err conftest.$ac_ext | |
11378 fi | |
43924 | 11379 echo "$as_me:11378: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11381 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11382 cat >>confdefs.h <<EOF | |
11383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11384 EOF | |
11385 | |
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
|
11386 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
|
11387 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
|
11388 |
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
|
11389 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
|
11390 |
25897 | 11391 # Solaris requires -lintl if you want strerror (which calls dgettext) |
11392 # to return localized messages. | |
40056 | 11393 |
43924 | 11394 echo "$as_me:11393: checking for dgettext in -lintl" >&5 |
40056 | 11395 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
11396 if test "${ac_cv_lib_intl_dgettext+set}" = set; then | |
11397 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11398 else | |
11399 ac_check_lib_save_LIBS=$LIBS | |
25897 | 11400 LIBS="-lintl $LIBS" |
40056 | 11401 cat >conftest.$ac_ext <<_ACEOF |
43924 | 11402 #line 11401 "configure" |
40056 | 11403 #include "confdefs.h" |
11404 | |
25897 | 11405 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 11406 #ifdef __cplusplus |
11407 extern "C" | |
11408 #endif | |
25897 | 11409 /* We use char because int might match the return type of a gcc2 |
40056 | 11410 builtin and then its argument prototype would still apply. */ |
11411 char dgettext (); | |
11412 int | |
11413 main () | |
11414 { | |
11415 dgettext (); | |
11416 ; | |
11417 return 0; | |
11418 } | |
11419 _ACEOF | |
11420 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 11421 if { (eval echo "$as_me:11420: \"$ac_link\"") >&5 |
11422 (eval $ac_link) 2>&5 | |
11423 ac_status=$? | |
11424 echo "$as_me:11423: \$? = $ac_status" >&5 | |
41148 | 11425 (exit $ac_status); } && |
11426 { ac_try='test -s conftest$ac_exeext' | |
43924 | 11427 { (eval echo "$as_me:11426: \"$ac_try\"") >&5 |
11428 (eval $ac_try) 2>&5 | |
11429 ac_status=$? | |
11430 echo "$as_me:11429: \$? = $ac_status" >&5 | |
40056 | 11431 (exit $ac_status); }; }; then |
11432 ac_cv_lib_intl_dgettext=yes | |
11433 else | |
11434 echo "$as_me: failed program was:" >&5 | |
11435 cat conftest.$ac_ext >&5 | |
11436 ac_cv_lib_intl_dgettext=no | |
11437 fi | |
11438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11439 LIBS=$ac_check_lib_save_LIBS | |
11440 fi | |
43924 | 11441 echo "$as_me:11440: result: $ac_cv_lib_intl_dgettext" >&5 |
40056 | 11442 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
11443 if test $ac_cv_lib_intl_dgettext = yes; then | |
11444 cat >>confdefs.h <<EOF | |
11445 #define HAVE_LIBINTL 1 | |
25897 | 11446 EOF |
11447 | |
11448 LIBS="-lintl $LIBS" | |
11449 | |
40056 | 11450 fi |
11451 | |
43924 | 11452 echo "$as_me:11451: checking whether localtime caches TZ" >&5 |
40056 | 11453 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 |
11454 if test "${emacs_cv_localtime_cache+set}" = set; then | |
11455 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 11456 else |
11457 if test x$ac_cv_func_tzset = xyes; then | |
11458 if test "$cross_compiling" = yes; then | |
11459 # If we have tzset, assume the worst when cross-compiling. | |
11460 emacs_cv_localtime_cache=yes | |
11461 else | |
40056 | 11462 cat >conftest.$ac_ext <<_ACEOF |
43924 | 11463 #line 11462 "configure" |
25897 | 11464 #include "confdefs.h" |
11465 #include <time.h> | |
11466 extern char **environ; | |
11467 unset_TZ () | |
11468 { | |
11469 char **from, **to; | |
11470 for (to = from = environ; (*to = *from); from++) | |
11471 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
11472 to++; | |
11473 } | |
11474 char TZ_GMT0[] = "TZ=GMT0"; | |
11475 char TZ_PST8[] = "TZ=PST8"; | |
11476 main() | |
11477 { | |
11478 time_t now = time ((time_t *) 0); | |
11479 int hour_GMT0, hour_unset; | |
11480 if (putenv (TZ_GMT0) != 0) | |
11481 exit (1); | |
11482 hour_GMT0 = localtime (&now)->tm_hour; | |
11483 unset_TZ (); | |
11484 hour_unset = localtime (&now)->tm_hour; | |
11485 if (putenv (TZ_PST8) != 0) | |
11486 exit (1); | |
11487 if (localtime (&now)->tm_hour == hour_GMT0) | |
11488 exit (1); | |
11489 unset_TZ (); | |
11490 if (localtime (&now)->tm_hour != hour_unset) | |
11491 exit (1); | |
11492 exit (0); | |
11493 } | |
40056 | 11494 _ACEOF |
11495 rm -f conftest$ac_exeext | |
43924 | 11496 if { (eval echo "$as_me:11495: \"$ac_link\"") >&5 |
11497 (eval $ac_link) 2>&5 | |
11498 ac_status=$? | |
11499 echo "$as_me:11498: \$? = $ac_status" >&5 | |
40056 | 11500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
43924 | 11501 { (eval echo "$as_me:11500: \"$ac_try\"") >&5 |
11502 (eval $ac_try) 2>&5 | |
11503 ac_status=$? | |
11504 echo "$as_me:11503: \$? = $ac_status" >&5 | |
40056 | 11505 (exit $ac_status); }; }; then |
25897 | 11506 emacs_cv_localtime_cache=no |
11507 else | |
40056 | 11508 echo "$as_me: program exited with status $ac_status" >&5 |
11509 echo "$as_me: failed program was:" >&5 | |
11510 cat conftest.$ac_ext >&5 | |
11511 emacs_cv_localtime_cache=yes | |
11512 fi | |
11513 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11514 fi | |
25897 | 11515 else |
11516 # If we lack tzset, report that localtime does not cache TZ, | |
11517 # since we can't invalidate the cache if we don't have tzset. | |
11518 emacs_cv_localtime_cache=no | |
11519 fi | |
11520 fi | |
43924 | 11521 echo "$as_me:11520: result: $emacs_cv_localtime_cache" >&5 |
40056 | 11522 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 |
25897 | 11523 if test $emacs_cv_localtime_cache = yes; then |
40056 | 11524 cat >>confdefs.h <<\EOF |
25897 | 11525 #define LOCALTIME_CACHE 1 |
11526 EOF | |
11527 | |
11528 fi | |
11529 | |
11530 if test "x$HAVE_TIMEVAL" = xyes; then | |
40056 | 11531 |
11532 for ac_func in gettimeofday | |
29906 | 11533 do |
40056 | 11534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
43924 | 11535 echo "$as_me:11534: checking for $ac_func" >&5 |
40056 | 11536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
11537 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11538 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11539 else | |
11540 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 11541 #line 11540 "configure" |
29906 | 11542 #include "confdefs.h" |
11543 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 11544 which can conflict with char $ac_func (); below. */ |
29906 | 11545 #include <assert.h> |
11546 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 11547 #ifdef __cplusplus |
11548 extern "C" | |
11549 #endif | |
29906 | 11550 /* We use char because int might match the return type of a gcc2 |
40056 | 11551 builtin and then its argument prototype would still apply. */ |
11552 char $ac_func (); | |
11553 char (*f) (); | |
11554 | |
11555 int | |
11556 main () | |
11557 { | |
29906 | 11558 /* The GNU C library defines this for functions which it implements |
11559 to always fail with ENOSYS. Some functions are actually named | |
11560 something starting with __ and the normal name is an alias. */ | |
11561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11562 choke me | |
11563 #else | |
40056 | 11564 f = $ac_func; |
11565 #endif | |
11566 | |
11567 ; | |
11568 return 0; | |
11569 } | |
11570 _ACEOF | |
11571 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 11572 if { (eval echo "$as_me:11571: \"$ac_link\"") >&5 |
11573 (eval $ac_link) 2>&5 | |
11574 ac_status=$? | |
11575 echo "$as_me:11574: \$? = $ac_status" >&5 | |
41148 | 11576 (exit $ac_status); } && |
11577 { ac_try='test -s conftest$ac_exeext' | |
43924 | 11578 { (eval echo "$as_me:11577: \"$ac_try\"") >&5 |
11579 (eval $ac_try) 2>&5 | |
11580 ac_status=$? | |
11581 echo "$as_me:11580: \$? = $ac_status" >&5 | |
40056 | 11582 (exit $ac_status); }; }; then |
11583 eval "$as_ac_var=yes" | |
11584 else | |
11585 echo "$as_me: failed program was:" >&5 | |
11586 cat conftest.$ac_ext >&5 | |
11587 eval "$as_ac_var=no" | |
11588 fi | |
11589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11590 fi | |
43924 | 11591 echo "$as_me:11590: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 11592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
11593 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11594 cat >>confdefs.h <<EOF | |
11595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11596 EOF | |
11597 | |
29906 | 11598 fi |
11599 done | |
11600 | |
43924 | 11601 echo "$as_me:11600: checking whether gettimeofday can accept two arguments" >&5 |
40056 | 11602 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
11603 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
11604 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11605 else | |
11606 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 11607 #line 11606 "configure" |
25897 | 11608 #include "confdefs.h" |
11609 | |
11610 #ifdef TIME_WITH_SYS_TIME | |
11611 #include <sys/time.h> | |
11612 #include <time.h> | |
11613 #else | |
11614 #ifdef HAVE_SYS_TIME_H | |
11615 #include <sys/time.h> | |
11616 #else | |
11617 #include <time.h> | |
11618 #endif | |
11619 #endif | |
40056 | 11620 int |
11621 main () | |
11622 { | |
29733 | 11623 struct timeval time; |
29906 | 11624 gettimeofday (&time, 0); |
40056 | 11625 ; |
11626 return 0; | |
11627 } | |
11628 _ACEOF | |
11629 rm -f conftest.$ac_objext | |
43924 | 11630 if { (eval echo "$as_me:11629: \"$ac_compile\"") >&5 |
40056 | 11631 (eval $ac_compile) 2>&5 |
11632 ac_status=$? | |
43924 | 11633 echo "$as_me:11632: \$? = $ac_status" >&5 |
41148 | 11634 (exit $ac_status); } && |
11635 { ac_try='test -s conftest.$ac_objext' | |
43924 | 11636 { (eval echo "$as_me:11635: \"$ac_try\"") >&5 |
11637 (eval $ac_try) 2>&5 | |
11638 ac_status=$? | |
11639 echo "$as_me:11638: \$? = $ac_status" >&5 | |
40056 | 11640 (exit $ac_status); }; }; then |
25897 | 11641 emacs_cv_gettimeofday_two_arguments=yes |
11642 else | |
40056 | 11643 echo "$as_me: failed program was:" >&5 |
11644 cat conftest.$ac_ext >&5 | |
11645 emacs_cv_gettimeofday_two_arguments=no | |
11646 fi | |
11647 rm -f conftest.$ac_objext conftest.$ac_ext | |
11648 fi | |
43924 | 11649 echo "$as_me:11648: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
40056 | 11650 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
25897 | 11651 if test $emacs_cv_gettimeofday_two_arguments = no; then |
40056 | 11652 cat >>confdefs.h <<\EOF |
25897 | 11653 #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
11654 EOF | |
11655 | |
11656 fi | |
11657 fi | |
11658 | |
29906 | 11659 if test "$ac_cv_func_gettimeofday" = yes; then |
43924 | 11660 echo "$as_me:11659: checking for struct timezone" >&5 |
40056 | 11661 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 |
11662 if test "${emacs_cv_struct_timezone+set}" = set; then | |
11663 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11664 else | |
11665 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 11666 #line 11665 "configure" |
29906 | 11667 #include "confdefs.h" |
11668 #include <sys/time.h> | |
40056 | 11669 int |
11670 main () | |
11671 { | |
29906 | 11672 struct timezone tz; |
40056 | 11673 ; |
11674 return 0; | |
11675 } | |
11676 _ACEOF | |
11677 rm -f conftest.$ac_objext | |
43924 | 11678 if { (eval echo "$as_me:11677: \"$ac_compile\"") >&5 |
40056 | 11679 (eval $ac_compile) 2>&5 |
11680 ac_status=$? | |
43924 | 11681 echo "$as_me:11680: \$? = $ac_status" >&5 |
41148 | 11682 (exit $ac_status); } && |
11683 { ac_try='test -s conftest.$ac_objext' | |
43924 | 11684 { (eval echo "$as_me:11683: \"$ac_try\"") >&5 |
11685 (eval $ac_try) 2>&5 | |
11686 ac_status=$? | |
11687 echo "$as_me:11686: \$? = $ac_status" >&5 | |
40056 | 11688 (exit $ac_status); }; }; then |
29906 | 11689 if test "$cross_compiling" = yes; then |
11690 emacs_cv_struct_timezone=yes | |
11691 else | |
40056 | 11692 cat >conftest.$ac_ext <<_ACEOF |
43924 | 11693 #line 11692 "configure" |
29906 | 11694 #include "confdefs.h" |
11695 | |
11696 #ifdef TIME_WITH_SYS_TIME | |
11697 #include <sys/time.h> | |
11698 #include <time.h> | |
11699 #else | |
11700 #ifdef HAVE_SYS_TIME_H | |
11701 #include <sys/time.h> | |
11702 #else | |
11703 #include <time.h> | |
11704 #endif | |
11705 #endif | |
11706 main () { | |
11707 struct timeval time; | |
11708 struct timezone dummy; | |
11709 exit (gettimeofday (&time, &dummy)); | |
11710 } | |
40056 | 11711 _ACEOF |
11712 rm -f conftest$ac_exeext | |
43924 | 11713 if { (eval echo "$as_me:11712: \"$ac_link\"") >&5 |
11714 (eval $ac_link) 2>&5 | |
11715 ac_status=$? | |
11716 echo "$as_me:11715: \$? = $ac_status" >&5 | |
40056 | 11717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
43924 | 11718 { (eval echo "$as_me:11717: \"$ac_try\"") >&5 |
11719 (eval $ac_try) 2>&5 | |
11720 ac_status=$? | |
11721 echo "$as_me:11720: \$? = $ac_status" >&5 | |
40056 | 11722 (exit $ac_status); }; }; then |
29906 | 11723 emacs_cv_struct_timezone=yes |
11724 else | |
40056 | 11725 echo "$as_me: program exited with status $ac_status" >&5 |
11726 echo "$as_me: failed program was:" >&5 | |
11727 cat conftest.$ac_ext >&5 | |
11728 emacs_cv_struct_timezone=no | |
11729 fi | |
11730 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11731 fi | |
11732 else | |
11733 echo "$as_me: failed program was:" >&5 | |
11734 cat conftest.$ac_ext >&5 | |
11735 emacs_cv_struct_timezone=no | |
11736 fi | |
11737 rm -f conftest.$ac_objext conftest.$ac_ext | |
11738 fi | |
43924 | 11739 echo "$as_me:11738: result: $emacs_cv_struct_timezone" >&5 |
40056 | 11740 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 |
29906 | 11741 fi |
11742 | |
25897 | 11743 ok_so_far=yes |
43924 | 11744 echo "$as_me:11743: checking for socket" >&5 |
40056 | 11745 echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
11746 if test "${ac_cv_func_socket+set}" = set; then | |
11747 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11748 else | |
11749 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 11750 #line 11749 "configure" |
25897 | 11751 #include "confdefs.h" |
11752 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 11753 which can conflict with char socket (); below. */ |
25897 | 11754 #include <assert.h> |
11755 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 11756 #ifdef __cplusplus |
11757 extern "C" | |
11758 #endif | |
25897 | 11759 /* We use char because int might match the return type of a gcc2 |
40056 | 11760 builtin and then its argument prototype would still apply. */ |
11761 char socket (); | |
11762 char (*f) (); | |
11763 | |
11764 int | |
11765 main () | |
11766 { | |
25897 | 11767 /* The GNU C library defines this for functions which it implements |
11768 to always fail with ENOSYS. Some functions are actually named | |
11769 something starting with __ and the normal name is an alias. */ | |
11770 #if defined (__stub_socket) || defined (__stub___socket) | |
11771 choke me | |
11772 #else | |
40056 | 11773 f = socket; |
11774 #endif | |
11775 | |
11776 ; | |
11777 return 0; | |
11778 } | |
11779 _ACEOF | |
11780 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 11781 if { (eval echo "$as_me:11780: \"$ac_link\"") >&5 |
11782 (eval $ac_link) 2>&5 | |
11783 ac_status=$? | |
11784 echo "$as_me:11783: \$? = $ac_status" >&5 | |
41148 | 11785 (exit $ac_status); } && |
11786 { ac_try='test -s conftest$ac_exeext' | |
43924 | 11787 { (eval echo "$as_me:11786: \"$ac_try\"") >&5 |
11788 (eval $ac_try) 2>&5 | |
11789 ac_status=$? | |
11790 echo "$as_me:11789: \$? = $ac_status" >&5 | |
40056 | 11791 (exit $ac_status); }; }; then |
11792 ac_cv_func_socket=yes | |
11793 else | |
11794 echo "$as_me: failed program was:" >&5 | |
11795 cat conftest.$ac_ext >&5 | |
11796 ac_cv_func_socket=no | |
11797 fi | |
11798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11799 fi | |
43924 | 11800 echo "$as_me:11799: result: $ac_cv_func_socket" >&5 |
40056 | 11801 echo "${ECHO_T}$ac_cv_func_socket" >&6 |
11802 if test $ac_cv_func_socket = yes; then | |
25897 | 11803 : |
11804 else | |
40056 | 11805 ok_so_far=no |
25897 | 11806 fi |
11807 | |
11808 if test $ok_so_far = yes; then | |
43924 | 11809 echo "$as_me:11808: checking for netinet/in.h" >&5 |
40056 | 11810 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
11811 if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
11812 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11813 else | |
11814 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 11815 #line 11814 "configure" |
25897 | 11816 #include "confdefs.h" |
11817 #include <netinet/in.h> | |
40056 | 11818 _ACEOF |
43924 | 11819 if { (eval echo "$as_me:11818: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11821 ac_status=$? | |
11822 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11823 rm -f conftest.er1 | |
11824 cat conftest.err >&5 | |
43924 | 11825 echo "$as_me:11824: \$? = $ac_status" >&5 |
40056 | 11826 (exit $ac_status); } >/dev/null; then |
11827 if test -s conftest.err; then | |
11828 ac_cpp_err=$ac_c_preproc_warn_flag | |
11829 else | |
11830 ac_cpp_err= | |
11831 fi | |
11832 else | |
11833 ac_cpp_err=yes | |
11834 fi | |
11835 if test -z "$ac_cpp_err"; then | |
11836 ac_cv_header_netinet_in_h=yes | |
11837 else | |
11838 echo "$as_me: failed program was:" >&5 | |
25897 | 11839 cat conftest.$ac_ext >&5 |
40056 | 11840 ac_cv_header_netinet_in_h=no |
11841 fi | |
11842 rm -f conftest.err conftest.$ac_ext | |
11843 fi | |
43924 | 11844 echo "$as_me:11843: result: $ac_cv_header_netinet_in_h" >&5 |
40056 | 11845 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
11846 if test $ac_cv_header_netinet_in_h = yes; then | |
25897 | 11847 : |
11848 else | |
40056 | 11849 ok_so_far=no |
25897 | 11850 fi |
11851 | |
11852 fi | |
11853 if test $ok_so_far = yes; then | |
43924 | 11854 echo "$as_me:11853: checking for arpa/inet.h" >&5 |
40056 | 11855 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
11856 if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
11857 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11858 else | |
11859 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 11860 #line 11859 "configure" |
25897 | 11861 #include "confdefs.h" |
11862 #include <arpa/inet.h> | |
40056 | 11863 _ACEOF |
43924 | 11864 if { (eval echo "$as_me:11863: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11866 ac_status=$? | |
11867 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11868 rm -f conftest.er1 | |
11869 cat conftest.err >&5 | |
43924 | 11870 echo "$as_me:11869: \$? = $ac_status" >&5 |
40056 | 11871 (exit $ac_status); } >/dev/null; then |
11872 if test -s conftest.err; then | |
11873 ac_cpp_err=$ac_c_preproc_warn_flag | |
11874 else | |
11875 ac_cpp_err= | |
11876 fi | |
11877 else | |
11878 ac_cpp_err=yes | |
11879 fi | |
11880 if test -z "$ac_cpp_err"; then | |
11881 ac_cv_header_arpa_inet_h=yes | |
11882 else | |
11883 echo "$as_me: failed program was:" >&5 | |
25897 | 11884 cat conftest.$ac_ext >&5 |
40056 | 11885 ac_cv_header_arpa_inet_h=no |
11886 fi | |
11887 rm -f conftest.err conftest.$ac_ext | |
11888 fi | |
43924 | 11889 echo "$as_me:11888: result: $ac_cv_header_arpa_inet_h" >&5 |
40056 | 11890 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
11891 if test $ac_cv_header_arpa_inet_h = yes; then | |
25897 | 11892 : |
11893 else | |
40056 | 11894 ok_so_far=no |
25897 | 11895 fi |
11896 | |
11897 fi | |
11898 if test $ok_so_far = yes; then | |
40056 | 11899 cat >>confdefs.h <<\EOF |
25897 | 11900 #define HAVE_INET_SOCKETS 1 |
11901 EOF | |
11902 | |
11903 fi | |
11904 | |
11905 if test -f /usr/lpp/X11/bin/smt.exp; then | |
40056 | 11906 cat >>confdefs.h <<\EOF |
25897 | 11907 #define HAVE_AIX_SMT_EXP 1 |
11908 EOF | |
11909 | |
11910 fi | |
11911 | |
43924 | 11912 echo "$as_me:11911: checking whether system supports dynamic ptys" >&5 |
40056 | 11913 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
|
11914 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
43924 | 11915 echo "$as_me:11914: result: yes" >&5 |
40056 | 11916 echo "${ECHO_T}yes" >&6 |
11917 cat >>confdefs.h <<\EOF | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
11918 #define HAVE_DEV_PTMX 1 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
11919 EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
11920 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
11921 else |
43924 | 11922 echo "$as_me:11921: result: no" >&5 |
40056 | 11923 echo "${ECHO_T}no" >&6 |
11924 fi | |
11925 | |
43924 | 11926 echo "$as_me:11925: checking for pid_t" >&5 |
40056 | 11927 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
11928 if test "${ac_cv_type_pid_t+set}" = set; then | |
11929 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11930 else | |
11931 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 11932 #line 11931 "configure" |
40056 | 11933 #include "confdefs.h" |
11934 $ac_includes_default | |
11935 int | |
11936 main () | |
11937 { | |
11938 if ((pid_t *) 0) | |
11939 return 0; | |
11940 if (sizeof (pid_t)) | |
11941 return 0; | |
11942 ; | |
11943 return 0; | |
11944 } | |
11945 _ACEOF | |
11946 rm -f conftest.$ac_objext | |
43924 | 11947 if { (eval echo "$as_me:11946: \"$ac_compile\"") >&5 |
40056 | 11948 (eval $ac_compile) 2>&5 |
11949 ac_status=$? | |
43924 | 11950 echo "$as_me:11949: \$? = $ac_status" >&5 |
41148 | 11951 (exit $ac_status); } && |
11952 { ac_try='test -s conftest.$ac_objext' | |
43924 | 11953 { (eval echo "$as_me:11952: \"$ac_try\"") >&5 |
11954 (eval $ac_try) 2>&5 | |
11955 ac_status=$? | |
11956 echo "$as_me:11955: \$? = $ac_status" >&5 | |
40056 | 11957 (exit $ac_status); }; }; then |
27675 | 11958 ac_cv_type_pid_t=yes |
11959 else | |
40056 | 11960 echo "$as_me: failed program was:" >&5 |
11961 cat conftest.$ac_ext >&5 | |
11962 ac_cv_type_pid_t=no | |
11963 fi | |
11964 rm -f conftest.$ac_objext conftest.$ac_ext | |
11965 fi | |
43924 | 11966 echo "$as_me:11965: result: $ac_cv_type_pid_t" >&5 |
40056 | 11967 echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
11968 if test $ac_cv_type_pid_t = yes; then | |
11969 : | |
11970 else | |
11971 | |
11972 cat >>confdefs.h <<EOF | |
27675 | 11973 #define pid_t int |
11974 EOF | |
11975 | |
11976 fi | |
11977 | |
40056 | 11978 for ac_header in unistd.h vfork.h |
11979 do | |
11980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
43924 | 11981 echo "$as_me:11980: checking for $ac_header" >&5 |
40056 | 11982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11983 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11984 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11985 else | |
11986 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 11987 #line 11986 "configure" |
40056 | 11988 #include "confdefs.h" |
11989 #include <$ac_header> | |
11990 _ACEOF | |
43924 | 11991 if { (eval echo "$as_me:11990: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11993 ac_status=$? | |
11994 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11995 rm -f conftest.er1 | |
11996 cat conftest.err >&5 | |
43924 | 11997 echo "$as_me:11996: \$? = $ac_status" >&5 |
40056 | 11998 (exit $ac_status); } >/dev/null; then |
11999 if test -s conftest.err; then | |
12000 ac_cpp_err=$ac_c_preproc_warn_flag | |
12001 else | |
12002 ac_cpp_err= | |
12003 fi | |
12004 else | |
12005 ac_cpp_err=yes | |
12006 fi | |
12007 if test -z "$ac_cpp_err"; then | |
12008 eval "$as_ac_Header=yes" | |
12009 else | |
12010 echo "$as_me: failed program was:" >&5 | |
27675 | 12011 cat conftest.$ac_ext >&5 |
40056 | 12012 eval "$as_ac_Header=no" |
12013 fi | |
12014 rm -f conftest.err conftest.$ac_ext | |
12015 fi | |
43924 | 12016 echo "$as_me:12015: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 12017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
12018 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12019 cat >>confdefs.h <<EOF | |
12020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12021 EOF | |
12022 | |
12023 fi | |
12024 done | |
12025 | |
12026 for ac_func in fork vfork | |
12027 do | |
12028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
43924 | 12029 echo "$as_me:12028: checking for $ac_func" >&5 |
40056 | 12030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12031 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12032 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12033 else | |
12034 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 12035 #line 12034 "configure" |
27675 | 12036 #include "confdefs.h" |
12037 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 12038 which can conflict with char $ac_func (); below. */ |
27675 | 12039 #include <assert.h> |
12040 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 12041 #ifdef __cplusplus |
12042 extern "C" | |
12043 #endif | |
27675 | 12044 /* We use char because int might match the return type of a gcc2 |
40056 | 12045 builtin and then its argument prototype would still apply. */ |
12046 char $ac_func (); | |
12047 char (*f) (); | |
12048 | |
12049 int | |
12050 main () | |
12051 { | |
27675 | 12052 /* The GNU C library defines this for functions which it implements |
12053 to always fail with ENOSYS. Some functions are actually named | |
12054 something starting with __ and the normal name is an alias. */ | |
40056 | 12055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
27675 | 12056 choke me |
12057 #else | |
40056 | 12058 f = $ac_func; |
12059 #endif | |
12060 | |
12061 ; | |
12062 return 0; | |
12063 } | |
12064 _ACEOF | |
12065 rm -f conftest.$ac_objext conftest$ac_exeext | |
43924 | 12066 if { (eval echo "$as_me:12065: \"$ac_link\"") >&5 |
12067 (eval $ac_link) 2>&5 | |
12068 ac_status=$? | |
12069 echo "$as_me:12068: \$? = $ac_status" >&5 | |
41148 | 12070 (exit $ac_status); } && |
12071 { ac_try='test -s conftest$ac_exeext' | |
43924 | 12072 { (eval echo "$as_me:12071: \"$ac_try\"") >&5 |
12073 (eval $ac_try) 2>&5 | |
12074 ac_status=$? | |
12075 echo "$as_me:12074: \$? = $ac_status" >&5 | |
40056 | 12076 (exit $ac_status); }; }; then |
12077 eval "$as_ac_var=yes" | |
12078 else | |
12079 echo "$as_me: failed program was:" >&5 | |
12080 cat conftest.$ac_ext >&5 | |
12081 eval "$as_ac_var=no" | |
12082 fi | |
12083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12084 fi | |
43924 | 12085 echo "$as_me:12084: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 12086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12087 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
12088 cat >>confdefs.h <<EOF | |
12089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12090 EOF | |
12091 | |
12092 fi | |
12093 done | |
12094 | |
12095 ac_cv_func_fork_works=$ac_cv_func_fork | |
12096 if test "x$ac_cv_func_fork" = xyes; then | |
43924 | 12097 echo "$as_me:12096: checking for working fork" >&5 |
40056 | 12098 echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
12099 if test "${ac_cv_func_fork_works+set}" = set; then | |
12100 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12101 else | |
12102 if test "$cross_compiling" = yes; then | |
12103 ac_cv_func_fork_works=cross | |
12104 else | |
12105 cat >conftest.$ac_ext <<_ACEOF | |
12106 /* By Rüdiger Kuhlmann. */ | |
12107 #include <sys/types.h> | |
12108 #if HAVE_UNISTD_H | |
12109 # include <unistd.h> | |
12110 #endif | |
12111 /* Some systems only have a dummy stub for fork() */ | |
12112 int main () | |
12113 { | |
12114 if (fork() < 0) | |
12115 exit (1); | |
12116 exit (0); | |
12117 } | |
12118 _ACEOF | |
12119 rm -f conftest$ac_exeext | |
43924 | 12120 if { (eval echo "$as_me:12119: \"$ac_link\"") >&5 |
12121 (eval $ac_link) 2>&5 | |
12122 ac_status=$? | |
12123 echo "$as_me:12122: \$? = $ac_status" >&5 | |
40056 | 12124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
43924 | 12125 { (eval echo "$as_me:12124: \"$ac_try\"") >&5 |
12126 (eval $ac_try) 2>&5 | |
12127 ac_status=$? | |
12128 echo "$as_me:12127: \$? = $ac_status" >&5 | |
40056 | 12129 (exit $ac_status); }; }; then |
12130 ac_cv_func_fork_works=yes | |
12131 else | |
12132 echo "$as_me: program exited with status $ac_status" >&5 | |
12133 echo "$as_me: failed program was:" >&5 | |
12134 cat conftest.$ac_ext >&5 | |
12135 ac_cv_func_fork_works=no | |
12136 fi | |
12137 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12138 fi | |
12139 fi | |
43924 | 12140 echo "$as_me:12139: result: $ac_cv_func_fork_works" >&5 |
40056 | 12141 echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
12142 | |
12143 fi | |
12144 if test "x$ac_cv_func_fork_works" = xcross; then | |
12145 case $host in | |
12146 *-*-amigaos* | *-*-msdosdjgpp*) | |
12147 # Override, as these systems have only a dummy fork() stub | |
12148 ac_cv_func_fork_works=no | |
12149 ;; | |
12150 *) | |
12151 ac_cv_func_fork_works=yes | |
12152 ;; | |
12153 esac | |
43924 | 12154 { echo "$as_me:12153: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5 |
40056 | 12155 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;} |
12156 fi | |
27675 | 12157 ac_cv_func_vfork_works=$ac_cv_func_vfork |
40056 | 12158 if test "x$ac_cv_func_vfork" = xyes; then |
43924 | 12159 echo "$as_me:12158: checking for working vfork" >&5 |
40056 | 12160 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
12161 if test "${ac_cv_func_vfork_works+set}" = set; then | |
12162 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12163 else | |
12164 if test "$cross_compiling" = yes; then | |
12165 ac_cv_func_vfork_works=cross | |
12166 else | |
12167 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 12168 #line 12167 "configure" |
27675 | 12169 #include "confdefs.h" |
12170 /* Thanks to Paul Eggert for this test. */ | |
12171 #include <stdio.h> | |
12172 #include <sys/types.h> | |
12173 #include <sys/stat.h> | |
40056 | 12174 #if HAVE_UNISTD_H |
12175 # include <unistd.h> | |
12176 #endif | |
12177 #if HAVE_VFORK_H | |
12178 # include <vfork.h> | |
27675 | 12179 #endif |
12180 /* On some sparc systems, changes by the child to local and incoming | |
40056 | 12181 argument registers are propagated back to the parent. The compiler |
12182 is told about this with #include <vfork.h>, but some compilers | |
12183 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
12184 static variable whose address is put into a register that is | |
12185 clobbered by the vfork. */ | |
27675 | 12186 static |
12187 #ifdef __cplusplus | |
12188 sparc_address_test (int arg) | |
40056 | 12189 # else |
27675 | 12190 sparc_address_test (arg) int arg; |
12191 #endif | |
12192 { | |
12193 static pid_t child; | |
12194 if (!child) { | |
12195 child = vfork (); | |
12196 if (child < 0) { | |
12197 perror ("vfork"); | |
12198 _exit(2); | |
12199 } | |
12200 if (!child) { | |
12201 arg = getpid(); | |
12202 write(-1, "", 0); | |
12203 _exit (arg); | |
12204 } | |
12205 } | |
12206 } | |
40056 | 12207 |
12208 int | |
12209 main () | |
12210 { | |
27675 | 12211 pid_t parent = getpid (); |
12212 pid_t child; | |
12213 | |
12214 sparc_address_test (); | |
12215 | |
12216 child = vfork (); | |
12217 | |
12218 if (child == 0) { | |
40056 | 12219 /* Here is another test for sparc vfork register problems. This |
12220 test uses lots of local variables, at least as many local | |
12221 variables as main has allocated so far including compiler | |
12222 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
12223 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
12224 reuse the register of parent for one of the local variables, | |
12225 since it will think that parent can't possibly be used any more | |
12226 in this routine. Assigning to the local variable will thus | |
12227 munge parent in the parent process. */ | |
27675 | 12228 pid_t |
12229 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
12230 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
12231 /* Convince the compiler that p..p7 are live; otherwise, it might | |
12232 use the same hardware register for all 8 local variables. */ | |
12233 if (p != p1 || p != p2 || p != p3 || p != p4 | |
12234 || p != p5 || p != p6 || p != p7) | |
12235 _exit(1); | |
12236 | |
40056 | 12237 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
12238 from child file descriptors. If the child closes a descriptor | |
12239 before it execs or exits, this munges the parent's descriptor | |
12240 as well. Test for this by closing stdout in the child. */ | |
27675 | 12241 _exit(close(fileno(stdout)) != 0); |
12242 } else { | |
12243 int status; | |
12244 struct stat st; | |
12245 | |
12246 while (wait(&status) != child) | |
12247 ; | |
12248 exit( | |
12249 /* Was there some problem with vforking? */ | |
12250 child < 0 | |
12251 | |
12252 /* Did the child fail? (This shouldn't happen.) */ | |
12253 || status | |
12254 | |
12255 /* Did the vfork/compiler bug occur? */ | |
12256 || parent != getpid() | |
12257 | |
12258 /* Did the file descriptor bug occur? */ | |
12259 || fstat(fileno(stdout), &st) != 0 | |
12260 ); | |
12261 } | |
12262 } | |
40056 | 12263 _ACEOF |
12264 rm -f conftest$ac_exeext | |
43924 | 12265 if { (eval echo "$as_me:12264: \"$ac_link\"") >&5 |
12266 (eval $ac_link) 2>&5 | |
12267 ac_status=$? | |
12268 echo "$as_me:12267: \$? = $ac_status" >&5 | |
40056 | 12269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
43924 | 12270 { (eval echo "$as_me:12269: \"$ac_try\"") >&5 |
12271 (eval $ac_try) 2>&5 | |
12272 ac_status=$? | |
12273 echo "$as_me:12272: \$? = $ac_status" >&5 | |
40056 | 12274 (exit $ac_status); }; }; then |
27675 | 12275 ac_cv_func_vfork_works=yes |
12276 else | |
40056 | 12277 echo "$as_me: program exited with status $ac_status" >&5 |
12278 echo "$as_me: failed program was:" >&5 | |
12279 cat conftest.$ac_ext >&5 | |
12280 ac_cv_func_vfork_works=no | |
12281 fi | |
12282 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12283 fi | |
12284 fi | |
43924 | 12285 echo "$as_me:12284: result: $ac_cv_func_vfork_works" >&5 |
40056 | 12286 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
12287 | |
12288 fi; | |
12289 if test "x$ac_cv_func_fork_works" = xcross; then | |
12290 ac_cv_func_vfork_works=ac_cv_func_vfork | |
43924 | 12291 { echo "$as_me:12290: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5 |
40056 | 12292 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;} |
12293 fi | |
12294 | |
12295 if test "x$ac_cv_func_vfork_works" = xyes; then | |
12296 | |
12297 cat >>confdefs.h <<\EOF | |
12298 #define HAVE_WORKING_VFORK 1 | |
12299 EOF | |
12300 | |
12301 else | |
12302 | |
12303 cat >>confdefs.h <<\EOF | |
27675 | 12304 #define vfork fork |
12305 EOF | |
12306 | |
12307 fi | |
40056 | 12308 if test "x$ac_cv_func_fork_works" = xyes; then |
12309 | |
12310 cat >>confdefs.h <<\EOF | |
12311 #define HAVE_WORKING_FORK 1 | |
12312 EOF | |
12313 | |
12314 fi | |
27675 | 12315 |
30395 | 12316 # Fixme: This should be replaced when we have autoconf 2.14. |
43924 | 12317 echo "$as_me:12316: checking for size_t" >&5 |
40056 | 12318 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
12319 if test "${ac_cv_type_size_t+set}" = set; then | |
12320 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12321 else | |
12322 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 12323 #line 12322 "configure" |
40056 | 12324 #include "confdefs.h" |
12325 $ac_includes_default | |
12326 int | |
12327 main () | |
12328 { | |
12329 if ((size_t *) 0) | |
12330 return 0; | |
12331 if (sizeof (size_t)) | |
12332 return 0; | |
12333 ; | |
12334 return 0; | |
12335 } | |
12336 _ACEOF | |
12337 rm -f conftest.$ac_objext | |
43924 | 12338 if { (eval echo "$as_me:12337: \"$ac_compile\"") >&5 |
40056 | 12339 (eval $ac_compile) 2>&5 |
12340 ac_status=$? | |
43924 | 12341 echo "$as_me:12340: \$? = $ac_status" >&5 |
41148 | 12342 (exit $ac_status); } && |
12343 { ac_try='test -s conftest.$ac_objext' | |
43924 | 12344 { (eval echo "$as_me:12343: \"$ac_try\"") >&5 |
12345 (eval $ac_try) 2>&5 | |
12346 ac_status=$? | |
12347 echo "$as_me:12346: \$? = $ac_status" >&5 | |
40056 | 12348 (exit $ac_status); }; }; then |
30395 | 12349 ac_cv_type_size_t=yes |
12350 else | |
40056 | 12351 echo "$as_me: failed program was:" >&5 |
12352 cat conftest.$ac_ext >&5 | |
12353 ac_cv_type_size_t=no | |
12354 fi | |
12355 rm -f conftest.$ac_objext conftest.$ac_ext | |
12356 fi | |
43924 | 12357 echo "$as_me:12356: result: $ac_cv_type_size_t" >&5 |
40056 | 12358 echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
12359 if test $ac_cv_type_size_t = yes; then | |
12360 : | |
12361 else | |
12362 | |
12363 cat >>confdefs.h <<EOF | |
30395 | 12364 #define size_t unsigned |
12365 EOF | |
12366 | |
12367 fi | |
12368 | |
25897 | 12369 # Set up the CFLAGS for real compilation, so we can substitute it. |
12370 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
|
12371 CPPFLAGS="$REAL_CPPFLAGS" |
25897 | 12372 |
12373 #### Find out which version of Emacs this is. | |
12374 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
12375 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
12376 if test x"${version}" = x; then | |
43924 | 12377 { { echo "$as_me:12376: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 |
40056 | 12378 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} |
12379 { (exit 1); exit 1; }; } | |
25897 | 12380 fi |
12381 | |
12382 ### Specify what sort of things we'll be editing into Makefile and config.h. | |
12383 ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
12384 | |
40056 | 12385 cat >>confdefs.h <<EOF |
25897 | 12386 #define EMACS_CONFIGURATION "${canonical}" |
12387 EOF | |
12388 | |
40056 | 12389 cat >>confdefs.h <<EOF |
25897 | 12390 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" |
12391 EOF | |
12392 | |
40056 | 12393 cat >>confdefs.h <<EOF |
25897 | 12394 #define config_machfile "${machfile}" |
12395 EOF | |
12396 | |
40056 | 12397 cat >>confdefs.h <<EOF |
25897 | 12398 #define config_opsysfile "${opsysfile}" |
12399 EOF | |
12400 | |
40056 | 12401 cat >>confdefs.h <<EOF |
25897 | 12402 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} |
12403 EOF | |
12404 | |
40056 | 12405 cat >>confdefs.h <<EOF |
25897 | 12406 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} |
12407 EOF | |
12408 | |
40056 | 12409 cat >>confdefs.h <<EOF |
25897 | 12410 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} |
12411 EOF | |
12412 | |
40056 | 12413 cat >>confdefs.h <<EOF |
25897 | 12414 #define UNEXEC_SRC ${UNEXEC_SRC} |
12415 EOF | |
12416 | |
12417 if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
40056 | 12418 cat >>confdefs.h <<\EOF |
25897 | 12419 #define HAVE_X_WINDOWS 1 |
12420 EOF | |
12421 | |
12422 fi | |
12423 if test "${USE_X_TOOLKIT}" != "none" ; then | |
40056 | 12424 cat >>confdefs.h <<\EOF |
25897 | 12425 #define USE_X_TOOLKIT 1 |
12426 EOF | |
12427 | |
12428 fi | |
12429 if test "${HAVE_X11}" = "yes" ; then | |
40056 | 12430 cat >>confdefs.h <<\EOF |
25897 | 12431 #define HAVE_X11 1 |
12432 EOF | |
12433 | |
12434 fi | |
12435 if test "${HAVE_XFREE386}" = "yes" ; then | |
40056 | 12436 cat >>confdefs.h <<\EOF |
25897 | 12437 #define HAVE_XFREE386 1 |
12438 EOF | |
12439 | |
12440 fi | |
12441 if test "${HAVE_MENUS}" = "yes" ; then | |
40056 | 12442 cat >>confdefs.h <<\EOF |
25897 | 12443 #define HAVE_MENUS 1 |
12444 EOF | |
12445 | |
12446 fi | |
12447 if test "${GNU_MALLOC}" = "yes" ; then | |
40056 | 12448 cat >>confdefs.h <<\EOF |
25897 | 12449 #define GNU_MALLOC 1 |
12450 EOF | |
12451 | |
12452 fi | |
12453 if test "${REL_ALLOC}" = "yes" ; then | |
40056 | 12454 cat >>confdefs.h <<\EOF |
25897 | 12455 #define REL_ALLOC 1 |
12456 EOF | |
12457 | |
12458 fi | |
12459 | |
40777 | 12460 for ac_header in nlist.h |
12461 do | |
12462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
43924 | 12463 echo "$as_me:12462: checking for $ac_header" >&5 |
40777 | 12464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
12465 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12466 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12467 else | |
12468 cat >conftest.$ac_ext <<_ACEOF | |
43924 | 12469 #line 12468 "configure" |
40777 | 12470 #include "confdefs.h" |
12471 #include <$ac_header> | |
12472 _ACEOF | |
43924 | 12473 if { (eval echo "$as_me:12472: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40777 | 12474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12475 ac_status=$? | |
12476 egrep -v '^ *\+' conftest.er1 >conftest.err | |
12477 rm -f conftest.er1 | |
12478 cat conftest.err >&5 | |
43924 | 12479 echo "$as_me:12478: \$? = $ac_status" >&5 |
40777 | 12480 (exit $ac_status); } >/dev/null; then |
12481 if test -s conftest.err; then | |
12482 ac_cpp_err=$ac_c_preproc_warn_flag | |
12483 else | |
12484 ac_cpp_err= | |
12485 fi | |
12486 else | |
12487 ac_cpp_err=yes | |
12488 fi | |
12489 if test -z "$ac_cpp_err"; then | |
12490 eval "$as_ac_Header=yes" | |
12491 else | |
12492 echo "$as_me: failed program was:" >&5 | |
12493 cat conftest.$ac_ext >&5 | |
12494 eval "$as_ac_Header=no" | |
12495 fi | |
12496 rm -f conftest.err conftest.$ac_ext | |
12497 fi | |
43924 | 12498 echo "$as_me:12497: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40777 | 12499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
12500 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12501 cat >>confdefs.h <<EOF | |
12502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12503 EOF | |
12504 | |
12505 cat >>confdefs.h <<\EOF | |
12506 #define NLIST_STRUCT 1 | |
12507 EOF | |
12508 | |
12509 fi | |
12510 done | |
12511 | |
25897 | 12512 #### Report on what we decided to do. |
12513 echo " | |
12514 Configured for \`${canonical}'. | |
12515 | |
12516 Where should the build process find the source code? ${srcdir} | |
12517 What operating system and machine description files should Emacs use? | |
12518 \`${opsysfile}' and \`${machfile}' | |
12519 What compiler should emacs be built with? ${CC} ${CFLAGS} | |
12520 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
31417 | 12521 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
31607 | 12522 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
25897 | 12523 What window system should Emacs use? ${window_system} |
12524 What toolkit should Emacs use? ${USE_X_TOOLKIT}" | |
12525 | |
12526 if test -n "${x_includes}"; then | |
12527 echo " Where do we find X Windows header files? ${x_includes}" | |
12528 else | |
12529 echo " Where do we find X Windows header files? Standard dirs" | |
12530 fi | |
12531 if test -n "${x_libraries}"; then | |
12532 echo " Where do we find X Windows libraries? ${x_libraries}" | |
12533 else | |
12534 echo " Where do we find X Windows libraries? Standard dirs" | |
12535 fi | |
12536 | |
12537 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
12538 echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
12539 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
12540 echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
12541 echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
12542 echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
12543 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
12544 echo | |
12545 | |
12546 # Remove any trailing slashes in these variables. | |
12547 test "${prefix}" != NONE && | |
12548 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
12549 test "${exec_prefix}" != NONE && | |
12550 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
12551 | |
36354 | 12552 ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
12553 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
12554 ## from Makefile.c can correctly provide the arg `-traditional' to the | |
12555 ## C preprocessor. | |
12556 | |
40056 | 12557 cat >conftest.$ac_ext <<_ACEOF |
43924 | 12558 #line 12557 "configure" |
36354 | 12559 #include "confdefs.h" |
12560 yes..yes | |
40056 | 12561 _ACEOF |
36354 | 12562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12563 egrep "yes..yes" >/dev/null 2>&1; then | |
12564 CPP_NEED_TRADITIONAL=no | |
12565 else | |
12566 CPP_NEED_TRADITIONAL=yes | |
12567 fi | |
12568 rm -f conftest* | |
12569 | |
41431 | 12570 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile" |
40056 | 12571 ac_config_commands="$ac_config_commands default" |
12572 cat >confcache <<\_ACEOF | |
25897 | 12573 # This file is a shell script that caches the results of configure |
12574 # tests run on this system so they can be shared between configure | |
40056 | 12575 # scripts and configure runs, see configure's option --config-cache. |
12576 # It is not useful on other systems. If it contains results you don't | |
12577 # want to keep, you may remove or edit it. | |
12578 # | |
12579 # config.status only pays attention to the cache file if you give it | |
12580 # the --recheck option to rerun configure. | |
25897 | 12581 # |
40056 | 12582 # `ac_cv_env_foo' variables (set or unset) will be overriden when |
12583 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12584 # following values. | |
12585 | |
12586 _ACEOF | |
12587 | |
25897 | 12588 # The following way of writing the cache mishandles newlines in values, |
12589 # but we know of no workaround that is simple, portable, and efficient. | |
12590 # So, don't put newlines in cache variables' values. | |
12591 # Ultrix sh set writes to stderr and can't be redirected directly, | |
12592 # and sets the high bit in the cache file unless we assign to the vars. | |
40056 | 12593 { |
12594 (set) 2>&1 | | |
12595 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
12596 *ac_space=\ *) | |
12597 # `set' does not quote correctly, so add quotes (double-quote | |
12598 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12599 sed -n \ | |
12600 "s/'/'\\\\''/g; | |
12601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12602 ;; | |
12603 *) | |
12604 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12605 sed -n \ | |
12606 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
12607 ;; | |
12608 esac; | |
12609 } | | |
12610 sed ' | |
12611 t clear | |
12612 : clear | |
12613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12614 t end | |
12615 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12616 : end' >>confcache | |
12617 if cmp -s $cache_file confcache; then :; else | |
25897 | 12618 if test -w $cache_file; then |
40056 | 12619 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
12620 cat confcache >$cache_file | |
25897 | 12621 else |
12622 echo "not updating unwritable cache $cache_file" | |
12623 fi | |
12624 fi | |
12625 rm -f confcache | |
12626 | |
12627 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
12628 # Let make expand exec_prefix. | |
12629 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12630 | |
40056 | 12631 # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12632 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12633 # trailing colons and then remove the whole line if VPATH becomes empty | |
12634 # (actually we leave an empty line to preserve line numbers). | |
25897 | 12635 if test "x$srcdir" = x.; then |
40056 | 12636 ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
12637 s/:*\$(srcdir):*/:/; | |
12638 s/:*\${srcdir}:*/:/; | |
12639 s/:*@srcdir@:*/:/; | |
12640 s/^\([^=]*=[ ]*\):*/\1/; | |
12641 s/:*$//; | |
12642 s/^[^=]*=[ ]*$//; | |
12643 }' | |
12644 fi | |
25897 | 12645 |
12646 DEFS=-DHAVE_CONFIG_H | |
12647 | |
12648 : ${CONFIG_STATUS=./config.status} | |
40056 | 12649 ac_clean_files_save=$ac_clean_files |
12650 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
43924 | 12651 { echo "$as_me:12650: creating $CONFIG_STATUS" >&5 |
40056 | 12652 echo "$as_me: creating $CONFIG_STATUS" >&6;} |
12653 cat >$CONFIG_STATUS <<_ACEOF | |
12654 #! $SHELL | |
25897 | 12655 # Generated automatically by configure. |
12656 # Run this file to recreate the current configuration. | |
12657 # Compiler output produced by configure, useful for debugging | |
40056 | 12658 # configure, is in config.log if it exists. |
12659 | |
12660 debug=false | |
12661 SHELL=\${CONFIG_SHELL-$SHELL} | |
12662 ac_cs_invocation="\$0 \$@" | |
12663 | |
12664 _ACEOF | |
12665 | |
12666 cat >>$CONFIG_STATUS <<\_ACEOF | |
12667 # Be Bourne compatible | |
12668 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
12669 emulate sh | |
12670 NULLCMD=: | |
12671 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
12672 set -o posix | |
12673 fi | |
12674 | |
12675 # Name of the executable. | |
12676 as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
12677 | |
12678 if expr a : '\(a\)' >/dev/null 2>&1; then | |
12679 as_expr=expr | |
12680 else | |
12681 as_expr=false | |
12682 fi | |
12683 | |
12684 rm -f conf$$ conf$$.exe conf$$.file | |
12685 echo >conf$$.file | |
12686 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12687 # We could just check for DJGPP; but this test a) works b) is more generic | |
12688 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
12689 if test -f conf$$.exe; then | |
12690 # Don't use ln at all; we don't have any links | |
12691 as_ln_s='cp -p' | |
12692 else | |
12693 as_ln_s='ln -s' | |
12694 fi | |
12695 elif ln conf$$.file conf$$ 2>/dev/null; then | |
12696 as_ln_s=ln | |
12697 else | |
12698 as_ln_s='cp -p' | |
12699 fi | |
12700 rm -f conf$$ conf$$.exe conf$$.file | |
12701 | |
12702 as_executable_p="test -f" | |
12703 | |
12704 # Support unset when possible. | |
12705 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
12706 as_unset=unset | |
12707 else | |
12708 as_unset=false | |
12709 fi | |
12710 | |
12711 # NLS nuisances. | |
12712 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
12713 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
12714 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
12715 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
12716 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
12717 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
12718 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
12719 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
12720 | |
12721 # IFS | |
12722 # We need space, tab and new line, in precisely that order. | |
12723 as_nl=' | |
12724 ' | |
12725 IFS=" $as_nl" | |
12726 | |
12727 # CDPATH. | |
12728 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
12729 | |
12730 exec 6>&1 | |
12731 | |
12732 _ACEOF | |
12733 | |
12734 # Files that config.status was made for. | |
12735 if test -n "$ac_config_files"; then | |
12736 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
12737 fi | |
12738 | |
12739 if test -n "$ac_config_headers"; then | |
12740 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
12741 fi | |
12742 | |
12743 if test -n "$ac_config_links"; then | |
12744 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
12745 fi | |
12746 | |
12747 if test -n "$ac_config_commands"; then | |
12748 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
12749 fi | |
12750 | |
12751 cat >>$CONFIG_STATUS <<\EOF | |
12752 | |
12753 ac_cs_usage="\ | |
12754 \`$as_me' instantiates files from templates according to the | |
12755 current configuration. | |
12756 | |
12757 Usage: $0 [OPTIONS] [FILE]... | |
12758 | |
12759 -h, --help print this help, then exit | |
12760 -V, --version print version number, then exit | |
12761 -d, --debug don't remove temporary files | |
12762 --recheck update $as_me by reconfiguring in the same conditions | |
12763 --file=FILE[:TEMPLATE] | |
12764 instantiate the configuration file FILE | |
12765 --header=FILE[:TEMPLATE] | |
12766 instantiate the configuration header FILE | |
12767 | |
12768 Configuration files: | |
12769 $config_files | |
12770 | |
12771 Configuration headers: | |
12772 $config_headers | |
12773 | |
12774 Configuration commands: | |
12775 $config_commands | |
12776 | |
12777 Report bugs to <bug-autoconf@gnu.org>." | |
12778 EOF | |
12779 | |
12780 cat >>$CONFIG_STATUS <<EOF | |
12781 ac_cs_version="\\ | |
12782 config.status | |
12783 configured by $0, generated by GNU Autoconf 2.52, | |
12784 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
12785 | |
12786 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
12787 Free Software Foundation, Inc. | |
12788 This config.status script is free software; the Free Software Foundation | |
12789 gives unlimited permission to copy, distribute and modify it." | |
12790 srcdir=$srcdir | |
12791 INSTALL="$INSTALL" | |
12792 EOF | |
12793 | |
12794 cat >>$CONFIG_STATUS <<\EOF | |
12795 # If no file are specified by the user, then we need to provide default | |
12796 # value. By we need to know if files were specified by the user. | |
12797 ac_need_defaults=: | |
12798 while test $# != 0 | |
25897 | 12799 do |
40056 | 12800 case $1 in |
12801 --*=*) | |
12802 ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
12803 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
12804 shift | |
12805 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
12806 shift | |
12807 ;; | |
12808 -*);; | |
12809 *) # This is not an option, so the user has probably given explicit | |
12810 # arguments. | |
12811 ac_need_defaults=false;; | |
12812 esac | |
12813 | |
12814 case $1 in | |
12815 # Handling of the options. | |
12816 EOF | |
12817 cat >>$CONFIG_STATUS <<EOF | |
25897 | 12818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
40056 | 12819 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
12820 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
12821 EOF | |
12822 cat >>$CONFIG_STATUS <<\EOF | |
12823 --version | --vers* | -V ) | |
12824 echo "$ac_cs_version"; exit 0 ;; | |
12825 --he | --h) | |
12826 # Conflict between --help and --header | |
43924 | 12827 { { echo "$as_me:12826: error: ambiguous option: $1 |
40056 | 12828 Try \`$0 --help' for more information." >&5 |
12829 echo "$as_me: error: ambiguous option: $1 | |
12830 Try \`$0 --help' for more information." >&2;} | |
12831 { (exit 1); exit 1; }; };; | |
12832 --help | --hel | -h ) | |
12833 echo "$ac_cs_usage"; exit 0 ;; | |
12834 --debug | --d* | -d ) | |
12835 debug=: ;; | |
12836 --file | --fil | --fi | --f ) | |
12837 shift | |
12838 CONFIG_FILES="$CONFIG_FILES $1" | |
12839 ac_need_defaults=false;; | |
12840 --header | --heade | --head | --hea ) | |
12841 shift | |
12842 CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
12843 ac_need_defaults=false;; | |
12844 | |
12845 # This is an error. | |
43924 | 12846 -*) { { echo "$as_me:12845: error: unrecognized option: $1 |
40056 | 12847 Try \`$0 --help' for more information." >&5 |
12848 echo "$as_me: error: unrecognized option: $1 | |
12849 Try \`$0 --help' for more information." >&2;} | |
12850 { (exit 1); exit 1; }; } ;; | |
12851 | |
12852 *) ac_config_targets="$ac_config_targets $1" ;; | |
12853 | |
12854 esac | |
12855 shift | |
12856 done | |
12857 | |
12858 exec 5>>config.log | |
12859 cat >&5 << _ACEOF | |
12860 | |
12861 ## ----------------------- ## | |
12862 ## Running config.status. ## | |
12863 ## ----------------------- ## | |
12864 | |
12865 This file was extended by $as_me 2.52, executed with | |
12866 CONFIG_FILES = $CONFIG_FILES | |
12867 CONFIG_HEADERS = $CONFIG_HEADERS | |
12868 CONFIG_LINKS = $CONFIG_LINKS | |
12869 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12870 > $ac_cs_invocation | |
12871 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
12872 | |
12873 _ACEOF | |
12874 EOF | |
12875 | |
12876 cat >>$CONFIG_STATUS <<EOF | |
12877 # | |
12878 # INIT-COMMANDS section. | |
12879 # | |
12880 | |
12881 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" | |
12882 | |
12883 EOF | |
12884 | |
12885 cat >>$CONFIG_STATUS <<\EOF | |
12886 for ac_config_target in $ac_config_targets | |
12887 do | |
12888 case "$ac_config_target" in | |
12889 # Handling of arguments. | |
12890 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12891 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
12892 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
12893 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
12894 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | |
12895 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; | |
12896 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | |
40893 | 12897 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;; |
41431 | 12898 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;; |
40056 | 12899 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
12900 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
12901 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
43924 | 12902 *) { { echo "$as_me:12901: error: invalid argument: $ac_config_target" >&5 |
40056 | 12903 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12904 { (exit 1); exit 1; }; };; | |
25897 | 12905 esac |
12906 done | |
12907 | |
40056 | 12908 # If the user did not use the arguments to specify the items to instantiate, |
12909 # then the envvar interface is used. Set only those that are not. | |
12910 # We use the long form for the default assignment because of an extremely | |
12911 # bizarre bug on SunOS 4.1.3. | |
12912 if $ac_need_defaults; then | |
12913 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12914 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
12915 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
12916 fi | |
12917 | |
12918 # Create a temporary directory, and hook for its removal unless debugging. | |
12919 $debug || | |
12920 { | |
12921 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
12922 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
12923 } | |
12924 | |
12925 # Create a (secure) tmp directory for tmp files. | |
12926 : ${TMPDIR=/tmp} | |
12927 { | |
12928 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
12929 test -n "$tmp" && test -d "$tmp" | |
12930 } || | |
12931 { | |
12932 tmp=$TMPDIR/cs$$-$RANDOM | |
12933 (umask 077 && mkdir $tmp) | |
12934 } || | |
12935 { | |
12936 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
12937 { (exit 1); exit 1; } | |
12938 } | |
12939 | |
12940 EOF | |
12941 | |
12942 cat >>$CONFIG_STATUS <<EOF | |
12943 | |
12944 # | |
12945 # CONFIG_FILES section. | |
12946 # | |
12947 | |
12948 # No need to generate the scripts if there are no CONFIG_FILES. | |
12949 # This happens for instance when ./config.status config.h | |
12950 if test -n "\$CONFIG_FILES"; then | |
12951 # Protect against being on the right side of a sed subst in config.status. | |
12952 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
12953 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
12954 s,@SHELL@,$SHELL,;t t | |
12955 s,@exec_prefix@,$exec_prefix,;t t | |
12956 s,@prefix@,$prefix,;t t | |
12957 s,@program_transform_name@,$program_transform_name,;t t | |
12958 s,@bindir@,$bindir,;t t | |
12959 s,@sbindir@,$sbindir,;t t | |
12960 s,@libexecdir@,$libexecdir,;t t | |
12961 s,@datadir@,$datadir,;t t | |
12962 s,@sysconfdir@,$sysconfdir,;t t | |
12963 s,@sharedstatedir@,$sharedstatedir,;t t | |
12964 s,@localstatedir@,$localstatedir,;t t | |
12965 s,@libdir@,$libdir,;t t | |
12966 s,@includedir@,$includedir,;t t | |
12967 s,@oldincludedir@,$oldincludedir,;t t | |
12968 s,@infodir@,$infodir,;t t | |
12969 s,@mandir@,$mandir,;t t | |
12970 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
12971 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
12972 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
12973 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
12974 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
12975 s,@build_alias@,$build_alias,;t t | |
12976 s,@host_alias@,$host_alias,;t t | |
12977 s,@target_alias@,$target_alias,;t t | |
12978 s,@ECHO_C@,$ECHO_C,;t t | |
12979 s,@ECHO_N@,$ECHO_N,;t t | |
12980 s,@ECHO_T@,$ECHO_T,;t t | |
12981 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
12982 s,@DEFS@,$DEFS,;t t | |
12983 s,@LIBS@,$LIBS,;t t | |
12984 s,@build@,$build,;t t | |
12985 s,@build_cpu@,$build_cpu,;t t | |
12986 s,@build_vendor@,$build_vendor,;t t | |
12987 s,@build_os@,$build_os,;t t | |
12988 s,@host@,$host,;t t | |
12989 s,@host_cpu@,$host_cpu,;t t | |
12990 s,@host_vendor@,$host_vendor,;t t | |
12991 s,@host_os@,$host_os,;t t | |
12992 s,@CC@,$CC,;t t | |
12993 s,@CFLAGS@,$CFLAGS,;t t | |
12994 s,@LDFLAGS@,$LDFLAGS,;t t | |
12995 s,@CPPFLAGS@,$CPPFLAGS,;t t | |
12996 s,@ac_ct_CC@,$ac_ct_CC,;t t | |
12997 s,@EXEEXT@,$EXEEXT,;t t | |
12998 s,@OBJEXT@,$OBJEXT,;t t | |
12999 s,@LN_S@,$LN_S,;t t | |
13000 s,@CPP@,$CPP,;t t | |
13001 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
13002 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
13003 s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
13004 s,@YACC@,$YACC,;t t | |
13005 s,@RANLIB@,$RANLIB,;t t | |
13006 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
13007 s,@LIBSOUND@,$LIBSOUND,;t t | |
13008 s,@SET_MAKE@,$SET_MAKE,;t t | |
13009 s,@ALLOCA@,$ALLOCA,;t t | |
13010 s,@liblockfile@,$liblockfile,;t t | |
13011 s,@LIBOBJS@,$LIBOBJS,;t t | |
13012 s,@NEED_SETGID@,$NEED_SETGID,;t t | |
13013 s,@KMEM_GROUP@,$KMEM_GROUP,;t t | |
13014 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t | |
13015 s,@version@,$version,;t t | |
13016 s,@configuration@,$configuration,;t t | |
13017 s,@canonical@,$canonical,;t t | |
13018 s,@srcdir@,$srcdir,;t t | |
13019 s,@lispdir@,$lispdir,;t t | |
13020 s,@locallisppath@,$locallisppath,;t t | |
13021 s,@lisppath@,$lisppath,;t t | |
13022 s,@x_default_search_path@,$x_default_search_path,;t t | |
13023 s,@etcdir@,$etcdir,;t t | |
13024 s,@archlibdir@,$archlibdir,;t t | |
13025 s,@docdir@,$docdir,;t t | |
13026 s,@bitmapdir@,$bitmapdir,;t t | |
13027 s,@c_switch_system@,$c_switch_system,;t t | |
13028 s,@c_switch_machine@,$c_switch_machine,;t t | |
13029 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t | |
13030 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t | |
13031 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t | |
13032 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t | |
13033 s,@machfile@,$machfile,;t t | |
13034 s,@opsysfile@,$opsysfile,;t t | |
25897 | 13035 CEOF |
40056 | 13036 |
13037 EOF | |
13038 | |
13039 cat >>$CONFIG_STATUS <<\EOF | |
13040 # Split the substitutions into bite-sized pieces for seds with | |
13041 # small command number limits, like on Digital OSF/1 and HP-UX. | |
13042 ac_max_sed_lines=48 | |
13043 ac_sed_frag=1 # Number of current file. | |
13044 ac_beg=1 # First line for current file. | |
13045 ac_end=$ac_max_sed_lines # Line after last line for current file. | |
13046 ac_more_lines=: | |
13047 ac_sed_cmds= | |
13048 while $ac_more_lines; do | |
13049 if test $ac_beg -gt 1; then | |
13050 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
25897 | 13051 else |
40056 | 13052 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
13053 fi | |
13054 if test ! -s $tmp/subs.frag; then | |
13055 ac_more_lines=false | |
13056 else | |
13057 # The purpose of the label and of the branching condition is to | |
13058 # speed up the sed processing (if there are no `@' at all, there | |
13059 # is no need to browse any of the substitutions). | |
13060 # These are the two extra sed commands mentioned above. | |
13061 (echo ':t | |
13062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
13063 if test -z "$ac_sed_cmds"; then | |
13064 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
13065 else | |
13066 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
13067 fi | |
13068 ac_sed_frag=`expr $ac_sed_frag + 1` | |
13069 ac_beg=$ac_end | |
13070 ac_end=`expr $ac_end + $ac_max_sed_lines` | |
25897 | 13071 fi |
40056 | 13072 done |
13073 if test -z "$ac_sed_cmds"; then | |
13074 ac_sed_cmds=cat | |
13075 fi | |
13076 fi # test -n "$CONFIG_FILES" | |
13077 | |
13078 EOF | |
13079 cat >>$CONFIG_STATUS <<\EOF | |
13080 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
25897 | 13081 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
40056 | 13082 case $ac_file in |
13083 - | *:- | *:-:* ) # input from stdin | |
13084 cat >$tmp/stdin | |
13085 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13086 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13087 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13088 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13089 * ) ac_file_in=$ac_file.in ;; | |
25897 | 13090 esac |
13091 | |
40056 | 13092 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
13093 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13094 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13095 X"$ac_file" : 'X\(//\)$' \| \ | |
13096 X"$ac_file" : 'X\(/\)' \| \ | |
13097 . : '\(.\)' 2>/dev/null || | |
13098 echo X"$ac_file" | | |
13099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13100 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13101 /^X\(\/\/\)$/{ s//\1/; q; } | |
13102 /^X\(\/\).*/{ s//\1/; q; } | |
13103 s/.*/./; q'` | |
25897 | 13104 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
40056 | 13105 { case "$ac_dir" in |
13106 [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
13107 *) as_incr_dir=.;; | |
13108 esac | |
13109 as_dummy="$ac_dir" | |
13110 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
13111 case $as_mkdir_dir in | |
13112 # Skip DOS drivespec | |
13113 ?:) as_incr_dir=$as_mkdir_dir ;; | |
13114 *) | |
13115 as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
13116 test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
13117 ;; | |
13118 esac | |
13119 done; } | |
13120 | |
13121 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | |
25897 | 13122 # A "../" for each directory in $ac_dir_suffix. |
40056 | 13123 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
25897 | 13124 else |
13125 ac_dir_suffix= ac_dots= | |
13126 fi | |
13127 | |
40056 | 13128 case $srcdir in |
13129 .) ac_srcdir=. | |
13130 if test -z "$ac_dots"; then | |
13131 ac_top_srcdir=. | |
13132 else | |
13133 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | |
13134 fi ;; | |
13135 [\\/]* | ?:[\\/]* ) | |
13136 ac_srcdir=$srcdir$ac_dir_suffix; | |
13137 ac_top_srcdir=$srcdir ;; | |
25897 | 13138 *) # Relative path. |
40056 | 13139 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
13140 ac_top_srcdir=$ac_dots$srcdir ;; | |
25897 | 13141 esac |
13142 | |
40056 | 13143 case $INSTALL in |
13144 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
13145 *) ac_INSTALL=$ac_dots$INSTALL ;; | |
25897 | 13146 esac |
13147 | |
40056 | 13148 if test x"$ac_file" != x-; then |
43924 | 13149 { echo "$as_me:13148: creating $ac_file" >&5 |
40056 | 13150 echo "$as_me: creating $ac_file" >&6;} |
13151 rm -f "$ac_file" | |
13152 fi | |
13153 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13154 # use $as_me), people would be surprised to read: | |
13155 # /* config.h. Generated automatically by config.status. */ | |
13156 configure_input="Generated automatically from `echo $ac_file_in | | |
13157 sed 's,.*/,,'` by configure." | |
13158 | |
13159 # First look for the input files in the build tree, otherwise in the | |
13160 # src tree. | |
13161 ac_file_inputs=`IFS=: | |
13162 for f in $ac_file_in; do | |
13163 case $f in | |
13164 -) echo $tmp/stdin ;; | |
13165 [\\/$]*) | |
13166 # Absolute (can't be DOS-style, as IFS=:) | |
43924 | 13167 test -f "$f" || { { echo "$as_me:13166: error: cannot find input file: $f" >&5 |
40056 | 13168 echo "$as_me: error: cannot find input file: $f" >&2;} |
13169 { (exit 1); exit 1; }; } | |
13170 echo $f;; | |
13171 *) # Relative | |
13172 if test -f "$f"; then | |
13173 # Build tree | |
13174 echo $f | |
13175 elif test -f "$srcdir/$f"; then | |
13176 # Source tree | |
13177 echo $srcdir/$f | |
13178 else | |
13179 # /dev/null tree | |
43924 | 13180 { { echo "$as_me:13179: error: cannot find input file: $f" >&5 |
40056 | 13181 echo "$as_me: error: cannot find input file: $f" >&2;} |
13182 { (exit 1); exit 1; }; } | |
13183 fi;; | |
13184 esac | |
13185 done` || { (exit 1); exit 1; } | |
13186 EOF | |
13187 cat >>$CONFIG_STATUS <<EOF | |
13188 sed "$ac_vpsub | |
13189 $extrasub | |
13190 EOF | |
13191 cat >>$CONFIG_STATUS <<\EOF | |
13192 :t | |
13193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13194 s,@configure_input@,$configure_input,;t t | |
13195 s,@srcdir@,$ac_srcdir,;t t | |
13196 s,@top_srcdir@,$ac_top_srcdir,;t t | |
13197 s,@INSTALL@,$ac_INSTALL,;t t | |
13198 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
13199 rm -f $tmp/stdin | |
13200 if test x"$ac_file" != x-; then | |
13201 mv $tmp/out $ac_file | |
13202 else | |
13203 cat $tmp/out | |
13204 rm -f $tmp/out | |
13205 fi | |
13206 | |
13207 done | |
13208 EOF | |
13209 cat >>$CONFIG_STATUS <<\EOF | |
13210 | |
13211 # | |
13212 # CONFIG_HEADER section. | |
13213 # | |
25897 | 13214 |
13215 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
13216 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
13217 # | |
13218 # ac_d sets the value in "#define NAME VALUE" lines. | |
40056 | 13219 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
13220 ac_dB='[ ].*$,\1#\2' | |
13221 ac_dC=' ' | |
13222 ac_dD=',;t' | |
13223 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
13224 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
13225 ac_uB='$,\1#\2define\3' | |
25897 | 13226 ac_uC=' ' |
40056 | 13227 ac_uD=',;t' |
13228 | |
13229 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
25897 | 13230 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
40056 | 13231 case $ac_file in |
13232 - | *:- | *:-:* ) # input from stdin | |
13233 cat >$tmp/stdin | |
13234 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13235 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13236 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13237 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13238 * ) ac_file_in=$ac_file.in ;; | |
25897 | 13239 esac |
13240 | |
43924 | 13241 test x"$ac_file" != x- && { echo "$as_me:13240: creating $ac_file" >&5 |
40056 | 13242 echo "$as_me: creating $ac_file" >&6;} |
13243 | |
13244 # First look for the input files in the build tree, otherwise in the | |
13245 # src tree. | |
13246 ac_file_inputs=`IFS=: | |
13247 for f in $ac_file_in; do | |
13248 case $f in | |
13249 -) echo $tmp/stdin ;; | |
13250 [\\/$]*) | |
13251 # Absolute (can't be DOS-style, as IFS=:) | |
43924 | 13252 test -f "$f" || { { echo "$as_me:13251: error: cannot find input file: $f" >&5 |
40056 | 13253 echo "$as_me: error: cannot find input file: $f" >&2;} |
13254 { (exit 1); exit 1; }; } | |
13255 echo $f;; | |
13256 *) # Relative | |
13257 if test -f "$f"; then | |
13258 # Build tree | |
13259 echo $f | |
13260 elif test -f "$srcdir/$f"; then | |
13261 # Source tree | |
13262 echo $srcdir/$f | |
13263 else | |
13264 # /dev/null tree | |
43924 | 13265 { { echo "$as_me:13264: error: cannot find input file: $f" >&5 |
40056 | 13266 echo "$as_me: error: cannot find input file: $f" >&2;} |
13267 { (exit 1); exit 1; }; } | |
13268 fi;; | |
13269 esac | |
13270 done` || { (exit 1); exit 1; } | |
13271 # Remove the trailing spaces. | |
13272 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
13273 | |
13274 EOF | |
13275 | |
13276 # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
13277 # `conftest.undefs', that substitutes the proper values into | |
13278 # config.h.in to produce config.h. The first handles `#define' | |
13279 # templates, and the second `#undef' templates. | |
13280 # And first: Protect against being on the right side of a sed subst in | |
13281 # config.status. Protect against being in an unquoted here document | |
13282 # in config.status. | |
13283 rm -f conftest.defines conftest.undefs | |
13284 # Using a here document instead of a string reduces the quoting nightmare. | |
13285 # Putting comments in sed scripts is not portable. | |
13286 # | |
13287 # `end' is used to avoid that the second main sed command (meant for | |
13288 # 0-ary CPP macros) applies to n-ary macro definitions. | |
13289 # See the Autoconf documentation for `clear'. | |
13290 cat >confdef2sed.sed <<\EOF | |
13291 s/[\\&,]/\\&/g | |
13292 s,[\\$`],\\&,g | |
13293 t clear | |
13294 : clear | |
13295 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp | |
13296 t end | |
13297 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
13298 : end | |
13299 EOF | |
13300 # If some macros were called several times there might be several times | |
13301 # the same #defines, which is useless. Nevertheless, we may not want to | |
13302 # sort them, since we want the *last* AC-DEFINE to be honored. | |
13303 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
13304 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
13305 rm -f confdef2sed.sed | |
25897 | 13306 |
13307 # This sed command replaces #undef with comments. This is necessary, for | |
13308 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
13309 # on some systems where configure will not decide to define it. | |
40056 | 13310 cat >>conftest.undefs <<\EOF |
13311 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
13312 EOF | |
13313 | |
13314 # Break up conftest.defines because some shells have a limit on the size | |
13315 # of here documents, and old seds have small limits too (100 cmds). | |
13316 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
13317 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
13318 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
13319 echo ' :' >>$CONFIG_STATUS | |
25897 | 13320 rm -f conftest.tail |
40056 | 13321 while grep . conftest.defines >/dev/null |
25897 | 13322 do |
40056 | 13323 # Write a limited-size here document to $tmp/defines.sed. |
13324 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
13325 # Speed up: don't consider the non `#define' lines. | |
13326 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
13327 # Work around the forget-to-reset-the-flag bug. | |
13328 echo 't clr' >>$CONFIG_STATUS | |
13329 echo ': clr' >>$CONFIG_STATUS | |
13330 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
25897 | 13331 echo 'CEOF |
40056 | 13332 sed -f $tmp/defines.sed $tmp/in >$tmp/out |
13333 rm -f $tmp/in | |
13334 mv $tmp/out $tmp/in | |
13335 ' >>$CONFIG_STATUS | |
13336 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
13337 rm -f conftest.defines | |
13338 mv conftest.tail conftest.defines | |
13339 done | |
13340 rm -f conftest.defines | |
13341 echo ' fi # egrep' >>$CONFIG_STATUS | |
13342 echo >>$CONFIG_STATUS | |
13343 | |
13344 # Break up conftest.undefs because some shells have a limit on the size | |
13345 # of here documents, and old seds have small limits too (100 cmds). | |
13346 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
13347 rm -f conftest.tail | |
13348 while grep . conftest.undefs >/dev/null | |
13349 do | |
13350 # Write a limited-size here document to $tmp/undefs.sed. | |
13351 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
13352 # Speed up: don't consider the non `#undef' | |
13353 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
13354 # Work around the forget-to-reset-the-flag bug. | |
13355 echo 't clr' >>$CONFIG_STATUS | |
13356 echo ': clr' >>$CONFIG_STATUS | |
13357 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
13358 echo 'CEOF | |
13359 sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
13360 rm -f $tmp/in | |
13361 mv $tmp/out $tmp/in | |
13362 ' >>$CONFIG_STATUS | |
13363 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
13364 rm -f conftest.undefs | |
13365 mv conftest.tail conftest.undefs | |
25897 | 13366 done |
40056 | 13367 rm -f conftest.undefs |
13368 | |
13369 cat >>$CONFIG_STATUS <<\EOF | |
13370 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13371 # use $as_me), people would be surprised to read: | |
13372 # /* config.h. Generated automatically by config.status. */ | |
13373 if test x"$ac_file" = x-; then | |
13374 echo "/* Generated automatically by configure. */" >$tmp/config.h | |
25897 | 13375 else |
40056 | 13376 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
13377 fi | |
13378 cat $tmp/in >>$tmp/config.h | |
13379 rm -f $tmp/in | |
13380 if test x"$ac_file" != x-; then | |
13381 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
43924 | 13382 { echo "$as_me:13381: $ac_file is unchanged" >&5 |
40056 | 13383 echo "$as_me: $ac_file is unchanged" >&6;} |
13384 else | |
13385 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13386 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13387 X"$ac_file" : 'X\(//\)$' \| \ | |
13388 X"$ac_file" : 'X\(/\)' \| \ | |
13389 . : '\(.\)' 2>/dev/null || | |
13390 echo X"$ac_file" | | |
13391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13392 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13393 /^X\(\/\/\)$/{ s//\1/; q; } | |
13394 /^X\(\/\).*/{ s//\1/; q; } | |
13395 s/.*/./; q'` | |
25897 | 13396 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
40056 | 13397 { case "$ac_dir" in |
13398 [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
13399 *) as_incr_dir=.;; | |
13400 esac | |
13401 as_dummy="$ac_dir" | |
13402 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
13403 case $as_mkdir_dir in | |
13404 # Skip DOS drivespec | |
13405 ?:) as_incr_dir=$as_mkdir_dir ;; | |
13406 *) | |
13407 as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
13408 test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
13409 ;; | |
13410 esac | |
13411 done; } | |
13412 | |
13413 fi | |
13414 rm -f $ac_file | |
13415 mv $tmp/config.h $ac_file | |
25897 | 13416 fi |
40056 | 13417 else |
13418 cat $tmp/config.h | |
13419 rm -f $tmp/config.h | |
13420 fi | |
13421 done | |
13422 EOF | |
13423 cat >>$CONFIG_STATUS <<\EOF | |
13424 | |
13425 # | |
13426 # CONFIG_COMMANDS section. | |
13427 # | |
13428 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
13429 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
13430 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13431 | |
13432 case $ac_dest in | |
13433 default ) | |
25897 | 13434 |
13435 ### Make the necessary directories, if they don't exist. | |
13436 for dir in etc lisp ; do | |
13437 test -d ${dir} || mkdir ${dir} | |
13438 done | |
13439 | |
13440 # Build src/Makefile from ${srcdir}/src/Makefile.c | |
13441 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
13442 # This must be done after src/config.h is built, since we rely on that file. | |
13443 | |
13444 # Now get this: Some word that is part of the ${srcdir} directory name | |
13445 # or the ${configuration} value might, just might, happen to be an | |
13446 # identifier like `sun4' or `i386' or something, and be predefined by | |
13447 # the C preprocessor to some helpful value like 1, or maybe the empty | |
13448 # string. Needless to say consequent macro substitutions are less | |
13449 # than conducive to the makefile finding the correct directory. | |
13450 undefs="`echo $top_srcdir $configuration $canonical | | |
13451 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
13452 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
13453 `" | |
13454 | |
13455 echo creating src/epaths.h | |
40256 | 13456 ${MAKE-make} epaths-force |
25897 | 13457 |
33652 | 13458 # As of 2000-11-19, newest development versions of GNU cpp preprocess |
13459 # `..' to `. .' unless invoked with -traditional | |
13460 | |
36354 | 13461 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
33652 | 13462 CPPFLAGS="$CPPFLAGS -traditional" |
13463 fi | |
13464 | |
25897 | 13465 echo creating lib-src/Makefile |
13466 ( cd lib-src | |
13467 rm -f junk.c junk1.c junk2.c | |
13468 sed -e '/start of cpp stuff/q' \ | |
13469 < Makefile.c > junk1.c | |
13470 sed -e '1,/start of cpp stuff/d'\ | |
39239 | 13471 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
25897 | 13472 < Makefile.c > junk.c |
40056 | 13473 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
25897 | 13474 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
13475 cat junk1.c junk2.c > Makefile.new | |
13476 rm -f junk.c junk1.c junk2.c | |
13477 chmod 444 Makefile.new | |
13478 mv -f Makefile.new Makefile | |
13479 ) | |
13480 | |
13481 echo creating src/Makefile | |
13482 ( cd src | |
13483 rm -f junk.c junk1.c junk2.c | |
13484 sed -e '/start of cpp stuff/q' \ | |
13485 < Makefile.c > junk1.c | |
13486 sed -e '1,/start of cpp stuff/d'\ | |
39239 | 13487 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
25897 | 13488 < Makefile.c > junk.c |
40056 | 13489 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
25897 | 13490 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
13491 cat junk1.c junk2.c > Makefile.new | |
13492 rm -f junk.c junk1.c junk2.c | |
13493 chmod 444 Makefile.new | |
13494 mv -f Makefile.new Makefile | |
13495 ) | |
13496 | |
40056 | 13497 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
25897 | 13498 echo creating src/.gdbinit |
40056 | 13499 echo source $srcdir/src/.gdbinit > src/.gdbinit |
25897 | 13500 fi |
13501 | |
13502 # This is how we know whether to re-run configure in certain cases. | |
13503 touch src/config.stamp | |
13504 | |
40056 | 13505 ;; |
13506 esac | |
13507 done | |
13508 EOF | |
13509 | |
13510 cat >>$CONFIG_STATUS <<\EOF | |
13511 | |
13512 { (exit 0); exit 0; } | |
25897 | 13513 EOF |
13514 chmod +x $CONFIG_STATUS | |
40056 | 13515 ac_clean_files=$ac_clean_files_save |
13516 | |
13517 # configure is writing to config.log, and then calls config.status. | |
13518 # config.status does its own redirection, appending to config.log. | |
13519 # Unfortunately, on DOS this fails, as config.log is still kept open | |
13520 # by configure, so config.status won't be able to write to it; its | |
13521 # output is simply discarded. So we exec the FD to /dev/null, | |
13522 # effectively closing config.log, so it can be properly (re)opened and | |
13523 # appended to by config.status. When coming back to configure, we | |
13524 # need to make the FD available again. | |
13525 if test "$no_create" != yes; then | |
13526 ac_cs_success=: | |
13527 exec 5>/dev/null | |
13528 $SHELL $CONFIG_STATUS || ac_cs_success=false | |
13529 exec 5>>config.log | |
13530 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13531 # would make configure fail if this is the last instruction. | |
13532 $ac_cs_success || { (exit 1); exit 1; } | |
13533 fi | |
13534 |