Mercurial > emacs
annotate configure @ 47309:ecc0e6fd8056
*** empty log message ***
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Sun, 08 Sep 2002 20:37:44 +0000 |
parents | 5502ee23a19b |
children | aaa302e0c7ae |
rev | line source |
---|---|
25897 | 1 #! /bin/sh |
2 # Guess values for system-dependent variables and create Makefiles. | |
45226 | 3 # Generated by Autoconf 2.52. |
25897 | 4 # |
45226 | 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. | |
44994 | 9 |
45226 | 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" | |
40056 | 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. | |
45226 | 32 as_me=`echo "$0" |sed 's,.*[\\/],,'` |
40056 | 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 | |
45226 | 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; } | |
40056 | 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. | |
45226 | 84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
40056 | 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= | |
45226 | 99 MFLAGS= MAKEFLAGS= |
40056 | 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 | |
45226 | 183 # Identity of this package. |
184 PACKAGE_NAME= | |
185 PACKAGE_TARNAME= | |
186 PACKAGE_VERSION= | |
187 PACKAGE_STRING= | |
188 PACKAGE_BUGREPORT= | |
189 | |
25897 | 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 \ | |
45226 | 322 | --no-cr | --no-c) |
25897 | 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 | '' ) ;; | |
45226 | 501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
40056 | 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 [\\/$]* | ?:[\\/]* ) ;; | |
45226 | 513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
40056 | 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 | |
45226 | 524 # FIXME: should be removed in autoconf 3.0. |
40056 | 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. | |
45226 | 544 ac_prog=$0 |
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` | |
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
25897 | 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 | |
45226 | 556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 |
40056 | 557 { (exit 1); exit 1; }; } |
25897 | 558 else |
45226 | 559 { echo "$as_me: error: cannot find sources in $srcdir" >&2 |
40056 | 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. | |
45226 | 603 cat <<EOF |
40056 | 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 | |
45226 | 624 EOF |
625 | |
626 cat <<EOF | |
40056 | 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] | |
45226 | 653 EOF |
654 | |
655 cat <<\EOF | |
40056 | 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] | |
45226 | 668 --host=HOST build programs to run on HOST [BUILD] |
669 EOF | |
40056 | 670 fi |
671 | |
672 if test -n "$ac_init_help"; then | |
673 | |
45226 | 674 cat <<\EOF |
40056 | 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) | |
44809 | 684 --with-game-user use specified user for game directory |
40056 | 685 --without-gcc don't use GCC to compile Emacs if GCC is found |
686 --without-pop don't support POP mail retrieval with movemail | |
687 --with-kerberos support Kerberos-authenticated POP | |
688 --with-kerberos5 support Kerberos version 5 authenticated POP | |
689 --with-hesiod support Hesiod to get the POP server host | |
44435 | 690 --without-sound don't compile with sound support |
40056 | 691 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no) |
692 --with-xpm use -lXpm for displaying XPM images | |
693 --with-jpeg use -ljpeg for displaying JPEG images | |
694 --with-tiff use -ltiff for displaying TIFF images | |
695 --with-gif use -lungif for displaying GIF images | |
696 --with-png use -lpng for displaying PNG images | |
697 --without-toolkit-scroll-bars | |
40632 | 698 don't use Motif or Xaw3d scroll bars |
699 --without-xim don't use X11 XIM | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
700 --without-carbon don't use Carbon GUI on Mac OS X |
40056 | 701 --with-x use the X Window System |
702 | |
703 Some influential environment variables: | |
704 CC C compiler command | |
705 CFLAGS C compiler flags | |
706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
707 nonstandard directory <lib dir> | |
708 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
709 headers in a nonstandard directory <include dir> | |
710 CPP C preprocessor | |
711 | |
712 Use these variables to override the choices made by `configure' or to help | |
713 it to find libraries and programs with nonstandard names/locations. | |
714 | |
45226 | 715 EOF |
40056 | 716 fi |
717 | |
718 if test "$ac_init_help" = "recursive"; then | |
719 # If there are subdirs, report their specific --help. | |
720 ac_popdir=`pwd` | |
45226 | 721 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue |
722 cd $ac_subdir | |
723 # A "../" for each directory in /$ac_subdir. | |
724 ac_dots=`echo $ac_subdir | | |
725 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
726 | |
727 case $srcdir in | |
728 .) # No --srcdir option. We are building in place. | |
729 ac_sub_srcdir=$srcdir ;; | |
730 [\\/]* | ?:[\\/]* ) # Absolute path. | |
731 ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
732 *) # Relative path. | |
733 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
734 esac | |
735 | |
40056 | 736 # Check for guested configure; otherwise get Cygnus style configure. |
45226 | 737 if test -f $ac_sub_srcdir/configure.gnu; then |
40056 | 738 echo |
45226 | 739 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive |
740 elif test -f $ac_sub_srcdir/configure; then | |
40056 | 741 echo |
45226 | 742 $SHELL $ac_sub_srcdir/configure --help=recursive |
743 elif test -f $ac_sub_srcdir/configure.ac || | |
744 test -f $ac_sub_srcdir/configure.in; then | |
40056 | 745 echo |
746 $ac_configure --help | |
747 else | |
45226 | 748 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 |
40056 | 749 fi |
750 cd $ac_popdir | |
751 done | |
752 fi | |
753 | |
754 test -n "$ac_init_help" && exit 0 | |
755 if $ac_init_version; then | |
45226 | 756 cat <<\EOF |
757 | |
758 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
40056 | 759 Free Software Foundation, Inc. |
760 This configure script is free software; the Free Software Foundation | |
761 gives unlimited permission to copy, distribute and modify it. | |
45226 | 762 EOF |
40056 | 763 exit 0 |
764 fi | |
765 exec 5>config.log | |
45226 | 766 cat >&5 <<EOF |
40056 | 767 This file contains any messages produced by compilers while |
768 running configure, to aid debugging if configure makes a mistake. | |
769 | |
770 It was created by $as_me, which was | |
45226 | 771 generated by GNU Autoconf 2.52. Invocation command line was |
40056 | 772 |
773 $ $0 $@ | |
774 | |
45226 | 775 EOF |
40056 | 776 { |
777 cat <<_ASUNAME | |
45226 | 778 ## ---------- ## |
779 ## Platform. ## | |
780 ## ---------- ## | |
40056 | 781 |
782 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
783 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
784 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
785 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
786 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
787 | |
788 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
789 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
790 | |
791 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
792 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
793 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
794 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
795 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
796 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
797 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
798 | |
45226 | 799 PATH = $PATH |
800 | |
40056 | 801 _ASUNAME |
802 } >&5 | |
803 | |
45226 | 804 cat >&5 <<EOF |
805 ## ------------ ## | |
806 ## Core tests. ## | |
807 ## ------------ ## | |
808 | |
809 EOF | |
40056 | 810 |
811 # Keep a trace of the command line. | |
812 # Strip out --no-create and --no-recursion so they do not pile up. | |
813 # Also quote any args containing shell meta-characters. | |
814 ac_configure_args= | |
815 ac_sep= | |
816 for ac_arg | |
817 do | |
818 case $ac_arg in | |
819 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
45226 | 820 | --no-cr | --no-c) ;; |
40056 | 821 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
45226 | 822 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
40056 | 823 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
45226 | 824 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` |
825 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
826 ac_sep=" " ;; | |
827 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
828 ac_sep=" " ;; | |
40056 | 829 esac |
830 # Get rid of the leading space. | |
831 done | |
832 | |
833 # When interrupted or exit'd, cleanup temporary files, and complete | |
834 # config.log. We remove comments because anyway the quotes in there | |
835 # would cause problems or look ugly. | |
836 trap 'exit_status=$? | |
837 # Save into config.log some information that might help in debugging. | |
45226 | 838 echo >&5 |
839 echo "## ----------------- ##" >&5 | |
840 echo "## Cache variables. ##" >&5 | |
841 echo "## ----------------- ##" >&5 | |
842 echo >&5 | |
843 # The following way of writing the cache mishandles newlines in values, | |
40056 | 844 { |
845 (set) 2>&1 | | |
846 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
847 *ac_space=\ *) | |
848 sed -n \ | |
849 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
851 ;; | |
852 *) | |
853 sed -n \ | |
854 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
855 ;; | |
856 esac; | |
45226 | 857 } >&5 |
858 sed "/^$/d" confdefs.h >conftest.log | |
859 if test -s conftest.log; then | |
860 echo >&5 | |
861 echo "## ------------ ##" >&5 | |
862 echo "## confdefs.h. ##" >&5 | |
863 echo "## ------------ ##" >&5 | |
864 echo >&5 | |
865 cat conftest.log >&5 | |
866 fi | |
867 (echo; echo) >&5 | |
868 test "$ac_signal" != 0 && | |
869 echo "$as_me: caught signal $ac_signal" >&5 | |
870 echo "$as_me: exit $exit_status" >&5 | |
871 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | |
40056 | 872 exit $exit_status |
873 ' 0 | |
874 for ac_signal in 1 2 13 15; do | |
875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
876 done | |
877 ac_signal=0 | |
878 | |
879 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
880 rm -rf conftest* confdefs.h | |
881 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
882 echo >confdefs.h | |
883 | |
884 # Let the site file select an alternate cache file if it wants to. | |
25897 | 885 # Prefer explicitly selected file to automatically selected ones. |
886 if test -z "$CONFIG_SITE"; then | |
887 if test "x$prefix" != xNONE; then | |
888 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
889 else | |
890 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
891 fi | |
892 fi | |
893 for ac_site_file in $CONFIG_SITE; do | |
894 if test -r "$ac_site_file"; then | |
46596 | 895 { echo "$as_me:895: loading site script $ac_site_file" >&5 |
40056 | 896 echo "$as_me: loading site script $ac_site_file" >&6;} |
45226 | 897 cat "$ac_site_file" >&5 |
25897 | 898 . "$ac_site_file" |
899 fi | |
900 done | |
901 | |
902 if test -r "$cache_file"; then | |
40056 | 903 # Some versions of bash will fail to source /dev/null (special |
904 # files actually), so we avoid doing that. | |
905 if test -f "$cache_file"; then | |
46596 | 906 { echo "$as_me:906: loading cache $cache_file" >&5 |
40056 | 907 echo "$as_me: loading cache $cache_file" >&6;} |
908 case $cache_file in | |
909 [\\/]* | ?:[\\/]* ) . $cache_file;; | |
910 *) . ./$cache_file;; | |
911 esac | |
912 fi | |
913 else | |
46596 | 914 { echo "$as_me:914: creating cache $cache_file" >&5 |
40056 | 915 echo "$as_me: creating cache $cache_file" >&6;} |
916 >$cache_file | |
917 fi | |
918 | |
919 # Check that the precious variables saved in the cache have kept the same | |
920 # value. | |
921 ac_cache_corrupted=false | |
922 for ac_var in `(set) 2>&1 | | |
923 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
924 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
925 eval ac_new_set=\$ac_env_${ac_var}_set | |
926 eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
927 eval ac_new_val="\$ac_env_${ac_var}_value" | |
928 case $ac_old_set,$ac_new_set in | |
929 set,) | |
46596 | 930 { echo "$as_me:930: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
40056 | 931 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
932 ac_cache_corrupted=: ;; | |
933 ,set) | |
46596 | 934 { echo "$as_me:934: error: \`$ac_var' was not set in the previous run" >&5 |
40056 | 935 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
936 ac_cache_corrupted=: ;; | |
937 ,);; | |
938 *) | |
939 if test "x$ac_old_val" != "x$ac_new_val"; then | |
46596 | 940 { echo "$as_me:940: error: \`$ac_var' has changed since the previous run:" >&5 |
40056 | 941 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
46596 | 942 { echo "$as_me:942: former value: $ac_old_val" >&5 |
40056 | 943 echo "$as_me: former value: $ac_old_val" >&2;} |
46596 | 944 { echo "$as_me:944: current value: $ac_new_val" >&5 |
40056 | 945 echo "$as_me: current value: $ac_new_val" >&2;} |
946 ac_cache_corrupted=: | |
947 fi;; | |
948 esac | |
45226 | 949 # Pass precious variables to config.status. It doesn't matter if |
950 # we pass some twice (in addition to the command line arguments). | |
40056 | 951 if test "$ac_new_set" = set; then |
952 case $ac_new_val in | |
953 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
45226 | 954 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` |
955 ac_configure_args="$ac_configure_args '$ac_arg'" | |
956 ;; | |
957 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" | |
958 ;; | |
40056 | 959 esac |
960 fi | |
961 done | |
962 if $ac_cache_corrupted; then | |
46596 | 963 { echo "$as_me:963: error: changes in the environment can compromise the build" >&5 |
40056 | 964 echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
46596 | 965 { { echo "$as_me:965: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
40056 | 966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
967 { (exit 1); exit 1; }; } | |
25897 | 968 fi |
969 | |
970 ac_ext=c | |
971 ac_cpp='$CPP $CPPFLAGS' | |
40056 | 972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
974 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
975 | |
45226 | 976 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
977 *c*,-n*) ECHO_N= ECHO_C=' | |
978 ' ECHO_T=' ' ;; | |
979 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
980 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
981 esac | |
982 echo "#! $SHELL" >conftest.sh | |
983 echo "exit 0" >>conftest.sh | |
984 chmod +x conftest.sh | |
46596 | 985 if { (echo "$as_me:985: PATH=\".;.\"; conftest.sh") >&5 |
45226 | 986 (PATH=".;."; conftest.sh) 2>&5 |
987 ac_status=$? | |
46596 | 988 echo "$as_me:988: \$? = $ac_status" >&5 |
45226 | 989 (exit $ac_status); }; then |
990 ac_path_separator=';' | |
991 else | |
992 ac_path_separator=: | |
993 fi | |
994 PATH_SEPARATOR="$ac_path_separator" | |
995 rm -f conftest.sh | |
40056 | 996 |
44994 | 997 ac_config_headers="$ac_config_headers src/config.h:src/config.in" |
25897 | 998 |
41100 | 999 test "$program_prefix" != NONE && |
1000 program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1001 # Use a double $ so make ignores it. | |
1002 test "$program_suffix" != NONE && | |
1003 program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1004 # Double any \ or $. echo might interpret backslashes. | |
1005 # By default was `s,x,x', remove it if useless. | |
1006 cat <<\_ACEOF >conftest.sed | |
1007 s/[\\$]/&&/g;s/;s,x,x,$// | |
1008 _ACEOF | |
1009 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1010 rm conftest.sed | |
1011 | |
25897 | 1012 lispdir='${datadir}/emacs/${version}/lisp' |
1013 locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
1014 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
1015 lisppath='${locallisppath}:${lispdir}' | |
1016 etcdir='${datadir}/emacs/${version}/etc' | |
1017 archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
1018 docdir='${datadir}/emacs/${version}/etc' | |
46596 | 1019 gamedir='${localstatedir}/games/emacs' |
44493 | 1020 |
1021 gameuser=games | |
1022 | |
1023 # Check whether --with-game-user or --without-game-user was given. | |
1024 if test "${with_game_user+set}" = set; then | |
1025 withval="$with_game_user" | |
1026 gameuser="$withval" | |
1027 fi; | |
1028 | |
25897 | 1029 # Check whether --with-gcc or --without-gcc was given. |
1030 if test "${with_gcc+set}" = set; then | |
1031 withval="$with_gcc" | |
40056 | 1032 |
1033 fi; | |
25897 | 1034 |
1035 # Check whether --with-pop or --without-pop was given. | |
1036 if test "${with_pop+set}" = set; then | |
1037 withval="$with_pop" | |
25994 | 1038 if test "$withval" = yes; then |
45226 | 1039 cat >>confdefs.h <<\EOF |
25897 | 1040 #define MAIL_USE_POP 1 |
45226 | 1041 EOF |
25897 | 1042 |
25994 | 1043 else : |
1044 fi | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1045 else |
45226 | 1046 cat >>confdefs.h <<\EOF |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1047 #define MAIL_USE_POP 1 |
45226 | 1048 EOF |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1049 |
40056 | 1050 fi; |
25897 | 1051 |
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
|
1052 # 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
|
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 withval="$with_kerberos" |
45226 | 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 |
45226 | 1057 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
|
1058 |
40056 | 1059 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
|
1060 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1061 # 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
|
1062 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
|
1063 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
|
1064 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
|
1065 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
|
1066 with_kerberos=yes |
45226 | 1067 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
|
1068 #define KERBEROS 1 |
45226 | 1069 EOF |
1070 | |
1071 fi | |
1072 fi | |
1073 | |
1074 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
|
1075 #define KERBEROS5 1 |
45226 | 1076 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
|
1077 |
40056 | 1078 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
|
1079 |
25897 | 1080 # Check whether --with-hesiod or --without-hesiod was given. |
1081 if test "${with_hesiod+set}" = set; then | |
1082 withval="$with_hesiod" | |
44569 | 1083 |
45226 | 1084 cat >>confdefs.h <<\EOF |
25897 | 1085 #define HESIOD 1 |
45226 | 1086 EOF |
25897 | 1087 |
40056 | 1088 fi; |
25897 | 1089 |
44435 | 1090 # Check whether --with-sound or --without-sound was given. |
1091 if test "${with_sound+set}" = set; then | |
1092 withval="$with_sound" | |
1093 | |
1094 fi; | |
1095 | |
25897 | 1096 # Check whether --with-x-toolkit or --without-x-toolkit was given. |
1097 if test "${with_x_toolkit+set}" = set; then | |
1098 withval="$with_x_toolkit" | |
1099 case "${withval}" in | |
1100 y | ye | yes ) val=athena ;; | |
1101 n | no ) val=no ;; | |
1102 l | lu | luc | luci | lucid ) val=lucid ;; | |
1103 a | at | ath | athe | athen | athena ) val=athena ;; | |
1104 m | mo | mot | moti | motif ) val=motif ;; | |
1105 * ) | |
46596 | 1106 { { echo "$as_me:1106: error: \`--with-x-toolkit=$withval' is invalid\; |
25897 | 1107 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. |
40056 | 1108 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 |
1109 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; | |
1110 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | |
1111 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} | |
1112 { (exit 1); exit 1; }; } | |
25897 | 1113 ;; |
1114 esac | |
1115 with_x_toolkit=$val | |
1116 | |
40056 | 1117 fi; |
25897 | 1118 |
1119 # Check whether --with-xpm or --without-xpm was given. | |
1120 if test "${with_xpm+set}" = set; then | |
1121 withval="$with_xpm" | |
40056 | 1122 |
1123 fi; | |
25897 | 1124 |
1125 # Check whether --with-jpeg or --without-jpeg was given. | |
1126 if test "${with_jpeg+set}" = set; then | |
1127 withval="$with_jpeg" | |
40056 | 1128 |
1129 fi; | |
25897 | 1130 |
1131 # Check whether --with-tiff or --without-tiff was given. | |
1132 if test "${with_tiff+set}" = set; then | |
1133 withval="$with_tiff" | |
40056 | 1134 |
1135 fi; | |
25897 | 1136 |
1137 # Check whether --with-gif or --without-gif was given. | |
1138 if test "${with_gif+set}" = set; then | |
1139 withval="$with_gif" | |
40056 | 1140 |
1141 fi; | |
25897 | 1142 |
1143 # Check whether --with-png or --without-png was given. | |
1144 if test "${with_png+set}" = set; then | |
1145 withval="$with_png" | |
40056 | 1146 |
1147 fi; | |
25897 | 1148 |
1149 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. | |
1150 if test "${with_toolkit_scroll_bars+set}" = set; then | |
1151 withval="$with_toolkit_scroll_bars" | |
40056 | 1152 |
1153 fi; | |
25897 | 1154 |
29949 | 1155 # Check whether --with-xim or --without-xim was given. |
1156 if test "${with_xim+set}" = set; then | |
1157 withval="$with_xim" | |
40056 | 1158 |
1159 fi; | |
25897 | 1160 |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1161 # Check whether --with-carbon or --without-carbon was given. |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1162 if test "${with_carbon+set}" = set; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1163 withval="$with_carbon" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1164 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1165 fi; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1166 |
25897 | 1167 #### Make srcdir absolute, if it isn't already. It's important to |
31153 | 1168 #### avoid running the path through pwd unnecessarily, since pwd can |
25897 | 1169 #### give you automounter prefixes, which can go away. We do all this |
1170 #### so Emacs can find its files when run uninstalled. | |
31153 | 1171 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
1172 unset CDPATH | |
25897 | 1173 case "${srcdir}" in |
1174 /* ) ;; | |
1175 . ) | |
1176 ## We may be able to use the $PWD environment variable to make this | |
1177 ## absolute. But sometimes PWD is inaccurate. | |
43721 | 1178 ## Note: we used to use ${PWD} at the end instead of `pwd`, |
1179 ## but that tested only for a well-formed and valid PWD, | |
1180 ## it did not object when PWD was well-formed and valid but just wrong. | |
1181 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | |
25897 | 1182 then |
1183 srcdir="$PWD" | |
1184 else | |
1185 srcdir="`(cd ${srcdir}; pwd)`" | |
1186 fi | |
1187 ;; | |
1188 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
1189 esac | |
1190 | |
1191 #### Check if the source directory already has a configured system in it. | |
1192 if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
1193 && test -f "${srcdir}/src/config.h" ; then | |
46596 | 1194 { echo "$as_me:1194: WARNING: The directory tree \`${srcdir}' is being used |
25897 | 1195 as a build directory right now; it has been configured in its own |
1196 right. To configure in another directory as well, you MUST | |
1197 use GNU make. If you do not have GNU make, then you must | |
1198 now do \`make distclean' in ${srcdir}, | |
40056 | 1199 and then run $0 again." >&5 |
1200 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
1201 as a build directory right now; it has been configured in its own | |
1202 right. To configure in another directory as well, you MUST | |
1203 use GNU make. If you do not have GNU make, then you must | |
1204 now do \`make distclean' in ${srcdir}, | |
1205 and then run $0 again." >&2;} | |
25897 | 1206 |
1207 extrasub='/^VPATH[ ]*=/c\ | |
1208 vpath %.c $(srcdir)\ | |
1209 vpath %.h $(srcdir)\ | |
1210 vpath %.y $(srcdir)\ | |
1211 vpath %.l $(srcdir)\ | |
1212 vpath %.s $(srcdir)\ | |
1213 vpath %.in $(srcdir)\ | |
1214 vpath %.texi $(srcdir)' | |
1215 fi | |
1216 | |
1217 #### Given the configuration name, set machfile and opsysfile to the | |
1218 #### names of the m/*.h and s/*.h files we should use. | |
1219 | |
1220 ### Canonicalize the configuration name. | |
1221 | |
1222 ac_aux_dir= | |
1223 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1224 if test -f $ac_dir/install-sh; then | |
1225 ac_aux_dir=$ac_dir | |
1226 ac_install_sh="$ac_aux_dir/install-sh -c" | |
1227 break | |
1228 elif test -f $ac_dir/install.sh; then | |
1229 ac_aux_dir=$ac_dir | |
1230 ac_install_sh="$ac_aux_dir/install.sh -c" | |
1231 break | |
40056 | 1232 elif test -f $ac_dir/shtool; then |
1233 ac_aux_dir=$ac_dir | |
1234 ac_install_sh="$ac_aux_dir/shtool install -c" | |
1235 break | |
25897 | 1236 fi |
1237 done | |
1238 if test -z "$ac_aux_dir"; then | |
46596 | 1239 { { echo "$as_me:1239: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
40056 | 1240 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1241 { (exit 1); exit 1; }; } | |
1242 fi | |
1243 ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1244 ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1245 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
25897 | 1246 |
1247 # Make sure we can run config.sub. | |
40056 | 1248 $ac_config_sub sun4 >/dev/null 2>&1 || |
46596 | 1249 { { echo "$as_me:1249: error: cannot run $ac_config_sub" >&5 |
40056 | 1250 echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1251 { (exit 1); exit 1; }; } | |
1252 | |
46596 | 1253 echo "$as_me:1253: checking build system type" >&5 |
40056 | 1254 echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1255 if test "${ac_cv_build+set}" = set; then | |
1256 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1257 else | |
1258 ac_cv_build_alias=$build_alias | |
1259 test -z "$ac_cv_build_alias" && | |
1260 ac_cv_build_alias=`$ac_config_guess` | |
1261 test -z "$ac_cv_build_alias" && | |
46596 | 1262 { { echo "$as_me:1262: error: cannot guess build type; you must specify one" >&5 |
40056 | 1263 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1264 { (exit 1); exit 1; }; } | |
1265 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
46596 | 1266 { { echo "$as_me:1266: error: $ac_config_sub $ac_cv_build_alias failed." >&5 |
45226 | 1267 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} |
40056 | 1268 { (exit 1); exit 1; }; } |
1269 | |
1270 fi | |
46596 | 1271 echo "$as_me:1271: result: $ac_cv_build" >&5 |
40056 | 1272 echo "${ECHO_T}$ac_cv_build" >&6 |
1273 build=$ac_cv_build | |
1274 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1275 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1276 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1277 | |
46596 | 1278 echo "$as_me:1278: checking host system type" >&5 |
40056 | 1279 echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1280 if test "${ac_cv_host+set}" = set; then | |
1281 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1282 else | |
1283 ac_cv_host_alias=$host_alias | |
1284 test -z "$ac_cv_host_alias" && | |
1285 ac_cv_host_alias=$ac_cv_build_alias | |
1286 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
46596 | 1287 { { echo "$as_me:1287: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
40056 | 1288 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1289 { (exit 1); exit 1; }; } | |
1290 | |
1291 fi | |
46596 | 1292 echo "$as_me:1292: result: $ac_cv_host" >&5 |
40056 | 1293 echo "${ECHO_T}$ac_cv_host" >&6 |
1294 host=$ac_cv_host | |
1295 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1296 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1297 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
25897 | 1298 |
1299 canonical=$host | |
40060 | 1300 configuration=${host_alias-$host} |
25897 | 1301 |
1302 ### If you add support for a new configuration, add code to this | |
1303 ### switch statement to recognize your configuration name and select | |
1304 ### the appropriate operating system and machine description files. | |
1305 | |
1306 ### You would hope that you could choose an m/*.h file pretty much | |
1307 ### based on the machine portion of the configuration name, and an s- | |
1308 ### file based on the operating system portion. However, it turns out | |
1309 ### that each m/*.h file is pretty manufacturer-specific - for | |
1310 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
1311 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
1312 ### machines. So we basically have to have a special case for each | |
1313 ### configuration name. | |
1314 ### | |
1315 ### As far as handling version numbers on operating systems is | |
1316 ### concerned, make sure things will fail in a fixable way. If | |
1317 ### /etc/MACHINES doesn't say anything about version numbers, be | |
1318 ### prepared to handle anything reasonably. If version numbers | |
1319 ### matter, be sure /etc/MACHINES says something about it. | |
1320 ### | |
1321 ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
1322 ### "System V Release 4"; he writes, "The old convention encouraged | |
1323 ### confusion between `system' and `release' levels'." | |
1324 | |
1325 machine='' opsys='' unported=no | |
1326 case "${canonical}" in | |
1327 | |
41675 | 1328 ## FreeBSD ports |
1329 *-*-freebsd* ) | |
1330 opsys=freebsd | |
1331 case "${canonical}" in | |
1332 alpha*-*-freebsd*) machine=alpha ;; | |
1333 i[3456]86-*-freebsd*) machine=intel386 ;; | |
1334 esac | |
1335 ;; | |
1336 | |
25897 | 1337 ## NetBSD ports |
1338 *-*-netbsd* ) | |
1339 opsys=netbsd | |
1340 case "${canonical}" in | |
1341 alpha*-*-netbsd*) machine=alpha ;; | |
1342 i[3456]86-*-netbsd*) machine=intel386 ;; | |
1343 m68k-*-netbsd*) | |
1344 # This is somewhat bogus. | |
1345 machine=hp9000s300 ;; | |
1346 powerpc-apple-netbsd*) machine=macppc ;; | |
1347 mips-*-netbsd*) machine=pmax ;; | |
27927 | 1348 mipsel-*-netbsd*) machine=pmax ;; |
45961 | 1349 mipseb-*-netbsd*) machine=pmax ;; |
25897 | 1350 ns32k-*-netbsd*) machine=ns32000 ;; |
28674 | 1351 powerpc-*-netbsd*) machine=macppc ;; |
32034 | 1352 sparc*-*-netbsd*) machine=sparc ;; |
25897 | 1353 vax-*-netbsd*) machine=vax ;; |
27927 | 1354 arm-*-netbsd*) machine=arm ;; |
25897 | 1355 esac |
1356 ;; | |
1357 | |
1358 ## OpenBSD ports | |
1359 *-*-openbsd* ) | |
1360 opsys=openbsd | |
1361 case "${canonical}" in | |
1362 alpha*-*-openbsd*) machine=alpha ;; | |
1363 i386-*-openbsd*) machine=intel386 ;; | |
1364 m68k-*-openbsd*) machine=hp9000s300 ;; | |
1365 mipsel-*-openbsd*) machine=pmax ;; | |
1366 ns32k-*-openbsd*) machine=ns32000 ;; | |
1367 sparc-*-openbsd*) machine=sparc ;; | |
1368 vax-*-openbsd*) machine=vax ;; | |
1369 esac | |
1370 ;; | |
1371 | |
1372 ## Acorn RISCiX: | |
1373 arm-acorn-riscix1.1* ) | |
1374 machine=acorn opsys=riscix1-1 | |
1375 ;; | |
1376 arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
1377 ## This name is riscix12 instead of riscix1.2 | |
1378 ## to avoid a file name conflict on MSDOS. | |
1379 machine=acorn opsys=riscix12 | |
1380 ;; | |
1381 | |
1382 ## BSDI ports | |
1383 *-*-bsdi* ) | |
1384 opsys=bsdi | |
1385 case "${canonical}" in | |
1386 i[345]86-*-bsdi*) machine=intel386 ;; | |
1387 sparc-*-bsdi*) machine=sparc ;; | |
33740 | 1388 powerpc-*-bsdi*) machine=macppc ;; |
25897 | 1389 esac |
1390 case "${canonical}" in | |
1391 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
1392 *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
1393 *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
1394 *-*-bsdi3* ) opsys=bsdos3 ;; | |
42988 | 1395 *-*-bsdi[45]* ) opsys=bsdos4 ;; |
25897 | 1396 esac |
1397 ;; | |
1398 | |
1399 ## Alliant machines | |
1400 ## Strictly speaking, we need the version of the alliant operating | |
1401 ## system to choose the right machine file, but currently the | |
1402 ## configuration name doesn't tell us enough to choose the right | |
1403 ## one; we need to give alliants their own operating system name to | |
1404 ## do this right. When someone cares, they can help us. | |
1405 fx80-alliant-* ) | |
1406 machine=alliant4 opsys=bsd4-2 | |
1407 ;; | |
1408 i860-alliant-* ) | |
1409 machine=alliant-2800 opsys=bsd4-3 | |
1410 ;; | |
1411 | |
1412 ## Alpha (DEC) machines. | |
1413 alpha*-dec-osf* ) | |
1414 machine=alpha opsys=osf1 | |
1415 # This is needed to find X11R6.1 libraries for certain tests. | |
1416 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
1417 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
34446 | 1418 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
1419 # due to non-traditional preprocessing with the current compiler | |
1420 # defaults. OSF 4 can also have that compiler version, and there | |
1421 # seems always to have been a usable /usr/bin/cpp. | |
1422 NON_GNU_CPP=/usr/bin/cpp | |
27883 | 1423 case "${canonical}" in |
31994 | 1424 alpha*-dec-osf[5-9]*) |
31229 | 1425 opsys=osf5-0 ;; |
27883 | 1426 esac |
25897 | 1427 ;; |
1428 | |
1429 alpha*-*-linux-gnu* ) | |
1430 machine=alpha opsys=gnu-linux | |
1431 ;; | |
1432 | |
27205 | 1433 arm*-*-linux-gnu* ) |
1434 machine=arm opsys=gnu-linux | |
1435 ;; | |
1436 | |
1437 ppc-*-linux | \ | |
1438 powerpc-*-linux* ) | |
33740 | 1439 machine=macppc opsys=gnu-linux |
27205 | 1440 ;; |
1441 | |
25897 | 1442 ## Altos 3068 |
1443 m68*-altos-sysv* ) | |
1444 machine=altos opsys=usg5-2 | |
1445 ;; | |
1446 | |
1447 ## Amdahl UTS | |
1448 580-amdahl-sysv* ) | |
1449 machine=amdahl opsys=usg5-2-2 | |
1450 ;; | |
1451 | |
1452 ## Apollo, Domain/OS | |
1453 m68*-apollo-* ) | |
1454 machine=apollo opsys=bsd4-3 | |
1455 ;; | |
1456 | |
1457 ## AT&T 3b2, 3b5, 3b15, 3b20 | |
1458 we32k-att-sysv* ) | |
1459 machine=att3b opsys=usg5-2-2 | |
1460 ;; | |
1461 | |
1462 ## AT&T 3b1 - The Mighty Unix PC! | |
1463 m68*-att-sysv* ) | |
1464 machine=7300 opsys=usg5-2-2 | |
1465 ;; | |
1466 | |
1467 ## Bull dpx20 | |
1468 rs6000-bull-bosx* ) | |
1469 machine=ibmrs6000 opsys=aix3-2 | |
1470 ;; | |
1471 | |
1472 ## Bull dpx2 | |
1473 m68*-bull-sysv3* ) | |
1474 machine=dpx2 opsys=usg5-3 | |
1475 ;; | |
1476 | |
1477 ## Bull sps7 | |
1478 m68*-bull-sysv2* ) | |
1479 machine=sps7 opsys=usg5-2 | |
1480 ;; | |
1481 | |
1482 ## CCI 5/32, 6/32 -- see "Tahoe". | |
1483 | |
1484 ## Celerity | |
1485 ## I don't know what configuration name to use for this; config.sub | |
1486 ## doesn't seem to know anything about it. Hey, Celerity users, get | |
1487 ## in touch with us! | |
1488 celerity-celerity-bsd* ) | |
1489 machine=celerity opsys=bsd4-2 | |
1490 ;; | |
1491 | |
1492 ## Clipper | |
1493 ## What operating systems does this chip run that Emacs has been | |
1494 ## tested on? | |
1495 clipper-* ) | |
1496 machine=clipper | |
1497 ## We'll use the catch-all code at the bottom to guess the | |
1498 ## operating system. | |
1499 ;; | |
1500 | |
43721 | 1501 ## Compaq Nonstop |
1502 mips-compaq-nonstopux* ) | |
1503 machine=nonstopux opsys=nonstopux | |
1504 ;; | |
1505 | |
25897 | 1506 ## Convex |
1507 *-convex-bsd* | *-convex-convexos* ) | |
1508 machine=convex opsys=bsd4-3 | |
1509 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
1510 NON_GNU_CPP="cc -E -P" | |
1511 ;; | |
1512 | |
1513 ## Cubix QBx/386 | |
1514 i[3456]86-cubix-sysv* ) | |
1515 machine=intel386 opsys=usg5-3 | |
1516 ;; | |
1517 | |
1518 ## Cydra 5 | |
1519 cydra*-cydrome-sysv* ) | |
1520 machine=cydra5 opsys=usg5-3 | |
1521 ;; | |
1522 | |
1523 ## Data General AViiON Machines | |
1524 ## DG changed naming conventions with the release of 5.4.4.10, they | |
1525 ## dropped the initial 5.4 but left the intervening R. Because of the | |
1526 ## R this shouldn't conflict with older versions of the OS (which I | |
1527 ## think were named like dgux4.*). In addition, DG new AViiONs series | |
1528 ## uses either Motorola M88k or Intel Pentium CPUs. | |
1529 m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
1530 machine=aviion opsys=dgux4 | |
1531 ;; | |
1532 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
1533 ## This name is dgux5-4-3 instead of dgux5-4r3 | |
1534 ## to avoid a file name conflict on MSDOS. | |
1535 machine=aviion opsys=dgux5-4-3 | |
1536 ;; | |
1537 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
1538 machine=aviion opsys=dgux5-4r2 | |
1539 ;; | |
1540 m88k-dg-dgux* ) | |
1541 machine=aviion opsys=dgux | |
1542 ;; | |
1543 | |
1544 ## Data General AViiON Intel (x86) Machines | |
1545 ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
1546 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
1547 i[345]86-dg-dguxR4* ) | |
1548 machine=aviion-intel opsys=dgux4 | |
1549 ;; | |
1550 | |
1551 ## DECstations | |
1552 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1553 machine=pmax opsys=bsd4-2 | |
1554 ;; | |
1555 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1556 machine=pmax opsys=bsd4-3 | |
1557 ;; | |
1558 mips-dec-ultrix* ) | |
1559 machine=pmax opsys=ultrix4-3 | |
1560 ;; | |
1561 mips-dec-osf* ) | |
1562 machine=pmax opsys=osf1 | |
1563 ;; | |
1564 mips-dec-mach_bsd4.3* ) | |
1565 machine=pmax opsys=mach-bsd4-3 | |
1566 ;; | |
1567 | |
1568 ## Motorola Delta machines | |
1569 m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1570 machine=delta opsys=usg5-3 | |
1571 if test -z "`type gnucc | grep 'not found'`" | |
1572 then | |
1573 if test -s /etc/167config | |
1574 then CC="gnucc -m68040" | |
1575 else CC="gnucc -m68881" | |
1576 fi | |
1577 else | |
1578 if test -z "`type gcc | grep 'not found'`" | |
1579 then CC=gcc | |
1580 else CC=cc | |
1581 fi | |
1582 fi | |
1583 ;; | |
1584 m88k-motorola-sysv4* ) | |
1585 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1586 # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1587 # I hope there are not other 4.0 versions for this machine | |
1588 # which really need usg5-4 instead. | |
1589 machine=delta88k opsys=usg5-4-2 | |
1590 ;; | |
1591 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1592 machine=delta88k opsys=usg5-3 | |
1593 ;; | |
1594 | |
1595 ## Dual machines | |
1596 m68*-dual-sysv* ) | |
1597 machine=dual opsys=usg5-2 | |
1598 ;; | |
1599 m68*-dual-uniplus* ) | |
1600 machine=dual opsys=unipl5-2 | |
1601 ;; | |
1602 | |
1603 ## Elxsi 6400 | |
1604 elxsi-elxsi-sysv* ) | |
1605 machine=elxsi opsys=usg5-2 | |
1606 ;; | |
1607 | |
1608 ## Encore machines | |
1609 ns16k-encore-bsd* ) | |
1610 machine=ns16000 opsys=umax | |
1611 ;; | |
1612 | |
30069 | 1613 ## The GEC 63 - apparently, this port isn't really finished yet. |
1614 # I'm sure we finished off the last of the machines, though. -- fx | |
25897 | 1615 |
1616 ## Gould Power Node and NP1 | |
1617 pn-gould-bsd4.2* ) | |
1618 machine=gould opsys=bsd4-2 | |
1619 ;; | |
1620 pn-gould-bsd4.3* ) | |
1621 machine=gould opsys=bsd4-3 | |
1622 ;; | |
1623 np1-gould-bsd* ) | |
1624 machine=gould-np1 opsys=bsd4-3 | |
1625 ;; | |
1626 | |
1627 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
1628 ## as far as Emacs is concerned). | |
1629 m88k-harris-cxux* ) | |
1630 # Build needs to be different on 7.0 and later releases | |
1631 case "`uname -r`" in | |
1632 [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
1633 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
1634 esac | |
1635 NON_GNU_CPP="/lib/cpp" | |
1636 ;; | |
1637 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
1638 m68k-harris-cxux* ) | |
1639 machine=nh3000 opsys=cxux | |
1640 ;; | |
1641 ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
1642 powerpc-harris-powerunix ) | |
1643 machine=nh6000 opsys=powerunix | |
1644 NON_GNU_CPP="cc -Xo -E -P" | |
1645 ;; | |
1646 ## SR2001/SR2201 running HI-UX/MPP | |
1647 hppa1.1-hitachi-hiuxmpp* ) | |
1648 machine=sr2k opsys=hiuxmpp | |
1649 ;; | |
38811 | 1650 hppa1.1-hitachi-hiuxwe2* ) |
1651 machine=sr2k opsys=hiuxwe2 | |
1652 ;; | |
25897 | 1653 ## Honeywell XPS100 |
1654 xps*-honeywell-sysv* ) | |
1655 machine=xps100 opsys=usg5-2 | |
1656 ;; | |
1657 | |
1658 ## HP 9000 series 200 or 300 | |
1659 m68*-hp-bsd* ) | |
1660 machine=hp9000s300 opsys=bsd4-3 | |
1661 ;; | |
1662 ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
1663 m68*-hp-hpux* ) | |
1664 case "`uname -r`" in | |
1665 ## Someone's system reports A.B8.05 for this. | |
1666 ## I wonder what other possibilities there are. | |
1667 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1668 *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1669 *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
1670 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
1671 *) machine=hp9000s300 opsys=hpux ;; | |
1672 esac | |
1673 ;; | |
1674 | |
1675 ## HP 9000 series 700 and 800, running HP/UX | |
1676 hppa*-hp-hpux7* ) | |
1677 machine=hp800 opsys=hpux | |
1678 ;; | |
1679 hppa*-hp-hpux8* ) | |
1680 machine=hp800 opsys=hpux8 | |
1681 ;; | |
1682 hppa*-hp-hpux9shr* ) | |
1683 machine=hp800 opsys=hpux9shr | |
1684 ;; | |
1685 hppa*-hp-hpux9* ) | |
1686 machine=hp800 opsys=hpux9 | |
1687 ;; | |
40632 | 1688 hppa*-hp-hpux10* ) |
25897 | 1689 machine=hp800 opsys=hpux10 |
1690 ;; | |
40632 | 1691 hppa*-hp-hpux1[1-9]* ) |
1692 machine=hp800 opsys=hpux11 | |
1693 ;; | |
25897 | 1694 |
41960 | 1695 hppa*-*-linux-gnu* ) |
1696 machine=hp800 opsys=gnu-linux | |
1697 ;; | |
1698 | |
25897 | 1699 ## HP 9000 series 700 and 800, running HP/UX |
1700 hppa*-hp-hpux* ) | |
1701 ## Cross-compilation? Nah! | |
1702 case "`uname -r`" in | |
1703 ## Someone's system reports A.B8.05 for this. | |
1704 ## I wonder what other possibilities there are. | |
1705 *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
1706 *.08.* ) machine=hp800 opsys=hpux8 ;; | |
1707 *.09.* ) machine=hp800 opsys=hpux9 ;; | |
1708 *) machine=hp800 opsys=hpux10 ;; | |
1709 esac | |
1710 ;; | |
1711 hppa*-*-nextstep* ) | |
1712 machine=hp800 opsys=nextstep | |
1713 ;; | |
1714 | |
1715 ## Orion machines | |
1716 orion-orion-bsd* ) | |
1717 machine=orion opsys=bsd4-2 | |
1718 ;; | |
1719 clipper-orion-bsd* ) | |
1720 machine=orion105 opsys=bsd4-2 | |
1721 ;; | |
1722 | |
1723 ## IBM machines | |
1724 i[3456]86-ibm-aix1.1* ) | |
1725 machine=ibmps2-aix opsys=usg5-2-2 | |
1726 ;; | |
1727 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
1728 machine=ibmps2-aix opsys=usg5-3 | |
1729 ;; | |
1730 i370-ibm-aix*) | |
1731 machine=ibm370aix opsys=usg5-3 | |
1732 ;; | |
40426 | 1733 s390-*-linux-gnu) |
1734 machine=ibms390 opsys=gnu-linux | |
1735 ;; | |
25897 | 1736 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
1737 machine=ibmrs6000 opsys=aix3-1 | |
1738 ;; | |
1739 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
1740 machine=ibmrs6000 opsys=aix3-2-5 | |
1741 ;; | |
1742 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
1743 machine=ibmrs6000 opsys=aix4-1 | |
1744 ;; | |
1745 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
1746 machine=ibmrs6000 opsys=aix4-2 | |
1747 ;; | |
43924 | 1748 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* ) |
1749 machine=ibmrs6000 opsys=aix4-2 | |
1750 ;; | |
25897 | 1751 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
1752 machine=ibmrs6000 opsys=aix4 | |
1753 ;; | |
1754 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
1755 machine=ibmrs6000 opsys=aix4-1 | |
1756 ;; | |
1757 rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
1758 machine=ibmrs6000 opsys=aix3-2 | |
1759 ;; | |
1760 romp-ibm-bsd4.3* ) | |
1761 machine=ibmrt opsys=bsd4-3 | |
1762 ;; | |
1763 romp-ibm-bsd4.2* ) | |
1764 machine=ibmrt opsys=bsd4-2 | |
1765 ;; | |
1766 romp-ibm-aos4.3* ) | |
1767 machine=ibmrt opsys=bsd4-3 | |
1768 ;; | |
1769 romp-ibm-aos4.2* ) | |
1770 machine=ibmrt opsys=bsd4-2 | |
1771 ;; | |
1772 romp-ibm-aos* ) | |
1773 machine=ibmrt opsys=bsd4-3 | |
1774 ;; | |
1775 romp-ibm-bsd* ) | |
1776 machine=ibmrt opsys=bsd4-3 | |
1777 ;; | |
1778 romp-ibm-aix* ) | |
1779 machine=ibmrt-aix opsys=usg5-2-2 | |
1780 ;; | |
1781 | |
1782 ## Integrated Solutions `Optimum V' | |
1783 m68*-isi-bsd4.2* ) | |
1784 machine=isi-ov opsys=bsd4-2 | |
1785 ;; | |
1786 m68*-isi-bsd4.3* ) | |
1787 machine=isi-ov opsys=bsd4-3 | |
1788 ;; | |
1789 | |
1790 ## Intel 386 machines where we do care about the manufacturer | |
1791 i[3456]86-intsys-sysv* ) | |
1792 machine=is386 opsys=usg5-2-2 | |
1793 ;; | |
1794 | |
1795 ## Prime EXL | |
1796 i[3456]86-prime-sysv* ) | |
1797 machine=i386 opsys=usg5-3 | |
1798 ;; | |
1799 | |
1800 ## Sequent Symmetry running Dynix | |
1801 i[3456]86-sequent-bsd* ) | |
1802 machine=symmetry opsys=bsd4-3 | |
1803 ;; | |
1804 | |
1805 ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
1806 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
1807 machine=sequent-ptx opsys=ptx4 | |
1808 NON_GNU_CPP=/lib/cpp | |
1809 ;; | |
1810 | |
1811 ## Sequent Symmetry running DYNIX/ptx | |
1812 ## Use the old cpp rather than the newer ANSI one. | |
1813 i[3456]86-sequent-ptx* ) | |
1814 machine=sequent-ptx opsys=ptx | |
1815 NON_GNU_CPP="/lib/cpp" | |
1816 ;; | |
1817 | |
1818 ## ncr machine running svr4.3. | |
1819 i[3456]86-ncr-sysv4.3 ) | |
1820 machine=ncr386 opsys=usg5-4-3 | |
1821 ;; | |
1822 | |
1823 ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
1824 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
1825 i[3456]86-ncr-sysv* ) | |
1826 machine=ncr386 opsys=usg5-4-2 | |
1827 ;; | |
1828 | |
1829 ## Intel Paragon OSF/1 | |
1830 i860-intel-osf1* ) | |
1831 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
1832 ;; | |
1833 | |
1834 ## Intel 860 | |
1835 i860-*-sysv4* ) | |
1836 machine=i860 opsys=usg5-4 | |
1837 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
1838 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
1839 ;; | |
1840 | |
28748 | 1841 ## Macintosh PowerPC |
1842 powerpc*-*-linux-gnu* ) | |
1843 machine=macppc opsys=gnu-linux | |
1844 ;; | |
1845 | |
25897 | 1846 ## Masscomp machines |
1847 m68*-masscomp-rtu* ) | |
1848 machine=masscomp opsys=rtu | |
1849 ;; | |
1850 | |
1851 ## Megatest machines | |
1852 m68*-megatest-bsd* ) | |
1853 machine=mega68 opsys=bsd4-2 | |
1854 ;; | |
1855 | |
1856 ## Workstations sold by MIPS | |
1857 ## This is not necessarily all workstations using the MIPS processor - | |
1858 ## Irises are produced by SGI, and DECstations by DEC. | |
1859 | |
1860 ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
1861 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
1862 ## it gives for choosing between the alternatives seems to be "Use | |
1863 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
1864 ## the BSD world." I'll assume that these are instructions for | |
1865 ## handling two odd situations, and that every other situation | |
1866 ## should use mips.h and usg5-2-2, they being listed first. | |
1867 mips-mips-usg* ) | |
1868 machine=mips4 | |
1869 ## Fall through to the general code at the bottom to decide on the OS. | |
1870 ;; | |
1871 mips-mips-riscos4* ) | |
1872 machine=mips4 opsys=bsd4-3 | |
1873 NON_GNU_CC="cc -systype bsd43" | |
1874 NON_GNU_CPP="cc -systype bsd43 -E" | |
1875 ;; | |
1876 mips-mips-riscos5* ) | |
1877 machine=mips4 opsys=riscos5 | |
1878 NON_GNU_CC="cc -systype bsd43" | |
1879 NON_GNU_CPP="cc -systype bsd43 -E" | |
1880 ;; | |
1881 mips-mips-bsd* ) | |
1882 machine=mips opsys=bsd4-3 | |
1883 ;; | |
1884 mips-mips-* ) | |
1885 machine=mips opsys=usg5-2-2 | |
1886 ;; | |
1887 | |
1888 ## NeXT | |
1889 m68*-next-* | m68k-*-nextstep* ) | |
1890 machine=m68k opsys=nextstep | |
1891 ;; | |
1892 | |
1893 ## The complete machine from National Semiconductor | |
1894 ns32k-ns-genix* ) | |
1895 machine=ns32000 opsys=usg5-2 | |
1896 ;; | |
1897 | |
1898 ## NCR machines | |
1899 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
1900 machine=tower32 opsys=usg5-2-2 | |
1901 ;; | |
1902 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
1903 machine=tower32v3 opsys=usg5-3 | |
1904 ;; | |
1905 | |
1906 ## NEC EWS4800 | |
1907 mips-nec-sysv4*) | |
1908 machine=ews4800 opsys=ux4800 | |
1909 ;; | |
1910 | |
1911 ## Nixdorf Targon 31 | |
1912 m68*-nixdorf-sysv* ) | |
1913 machine=targon31 opsys=usg5-2-2 | |
1914 ;; | |
1915 | |
1916 ## Nu (TI or LMI) | |
1917 m68*-nu-sysv* ) | |
1918 machine=nu opsys=usg5-2 | |
1919 ;; | |
1920 | |
1921 ## Plexus | |
1922 m68*-plexus-sysv* ) | |
1923 machine=plexus opsys=usg5-2 | |
1924 ;; | |
1925 | |
1926 ## PowerPC reference platform | |
1927 powerpcle-*-solaris2* ) | |
1928 machine=prep | |
1929 opsys=sol2-5 | |
1930 ;; | |
1931 | |
1932 ## Pyramid machines | |
1933 ## I don't really have any idea what sort of processor the Pyramid has, | |
1934 ## so I'm assuming it is its own architecture. | |
1935 pyramid-pyramid-bsd* ) | |
1936 machine=pyramid opsys=bsd4-2 | |
1937 ;; | |
1938 | |
1939 ## Sequent Balance | |
1940 ns32k-sequent-bsd4.2* ) | |
1941 machine=sequent opsys=bsd4-2 | |
1942 ;; | |
1943 ns32k-sequent-bsd4.3* ) | |
1944 machine=sequent opsys=bsd4-3 | |
1945 ;; | |
1946 | |
1947 ## Siemens Nixdorf | |
1948 mips-siemens-sysv* | mips-sni-sysv*) | |
1949 machine=mips-siemens opsys=usg5-4 | |
1950 NON_GNU_CC=/usr/ccs/bin/cc | |
1951 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1952 ;; | |
1953 | |
1954 ## Silicon Graphics machines | |
1955 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
1956 m68*-sgi-iris3.5* ) | |
1957 machine=irist opsys=iris3-5 | |
1958 ;; | |
1959 m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
1960 machine=irist opsys=iris3-6 | |
1961 ;; | |
1962 ## Iris 4D | |
1963 mips-sgi-irix3* ) | |
1964 machine=iris4d opsys=irix3-3 | |
1965 ;; | |
1966 mips-sgi-irix4* ) | |
1967 machine=iris4d opsys=irix4-0 | |
1968 ;; | |
1969 mips-sgi-irix6.5 ) | |
1970 machine=iris4d opsys=irix6-5 | |
26502 | 1971 # Without defining _LANGUAGE_C, things get masked out in the headers |
1972 # so that, for instance, grepping for `free' in stdlib.h fails and | |
1973 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
1974 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 1975 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
25897 | 1976 ;; |
1977 mips-sgi-irix6* ) | |
1978 machine=iris4d opsys=irix6-0 | |
27205 | 1979 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
26502 | 1980 # but presumably it does no harm. |
1981 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 1982 # -32 probably isn't necessary in later v.6s -- anyone know which? |
25897 | 1983 NON_GCC_TEST_OPTIONS=-32 |
1984 ;; | |
1985 mips-sgi-irix5.[01]* ) | |
1986 machine=iris4d opsys=irix5-0 | |
1987 ;; | |
1988 mips-sgi-irix5* | mips-sgi-irix* ) | |
1989 machine=iris4d opsys=irix5-2 | |
1990 ;; | |
1991 | |
1992 ## SONY machines | |
1993 m68*-sony-bsd4.2* ) | |
1994 machine=news opsys=bsd4-2 | |
1995 ;; | |
1996 m68*-sony-bsd4.3* ) | |
1997 machine=news opsys=bsd4-3 | |
1998 ;; | |
1999 m68*-sony-newsos3* | m68*-sony-news3*) | |
2000 machine=news opsys=bsd4-3 | |
2001 ;; | |
2002 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
2003 machine=news-risc opsys=bsd4-3 | |
2004 ;; | |
2005 mips-sony-newsos6* ) | |
2006 machine=news-r6 opsys=newsos6 | |
2007 ;; | |
2008 mips-sony-news* ) | |
2009 machine=news-risc opsys=newsos5 | |
2010 ;; | |
2011 | |
2012 ## Stride | |
2013 m68*-stride-sysv* ) | |
2014 machine=stride opsys=usg5-2 | |
2015 ;; | |
2016 | |
2017 ## Suns | |
2018 sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
2019 machine=sparc opsys=gnu-linux | |
2020 ;; | |
2021 | |
27949 | 2022 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
25897 | 2023 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
2024 | rs6000-*-solaris2*) | |
2025 case "${canonical}" in | |
2026 m68*-sunos1* ) machine=sun1 ;; | |
2027 m68*-sunos2* ) machine=sun2 ;; | |
2028 m68* ) machine=sun3 ;; | |
2029 i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
2030 i[3456]86-*-* ) machine=intel386 ;; | |
2031 powerpcle* ) machine=powerpcle ;; | |
2032 powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
2033 sparc* ) machine=sparc ;; | |
2034 * ) unported=yes ;; | |
2035 esac | |
2036 case "${canonical}" in | |
2037 ## The Sun386 didn't get past 4.0. | |
2038 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
2039 *-sunos4.0* ) opsys=sunos4-0 ;; | |
2040 *-sunos4.1.[3-9]*noshare ) | |
2041 ## This name is sunos413 instead of sunos4-1-3 | |
2042 ## to avoid a file name conflict on MSDOS. | |
2043 opsys=sunos413 | |
2044 NON_GNU_CPP=/usr/lib/cpp | |
2045 NON_GCC_TEST_OPTIONS=-Bstatic | |
2046 GCC_TEST_OPTIONS=-static | |
2047 ;; | |
2048 *-sunos4.1.[3-9]* | *-sunos4shr*) | |
2049 opsys=sunos4shr | |
2050 NON_GNU_CPP=/usr/lib/cpp | |
2051 ;; | |
2052 *-sunos4* | *-sunos ) | |
2053 opsys=sunos4-1 | |
2054 NON_GCC_TEST_OPTIONS=-Bstatic | |
2055 GCC_TEST_OPTIONS=-static | |
2056 ;; | |
2057 *-sunos5.3* | *-solaris2.3* ) | |
2058 opsys=sol2-3 | |
2059 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2060 ;; | |
2061 *-sunos5.4* | *-solaris2.4* ) | |
2062 opsys=sol2-4 | |
2063 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2064 RANLIB="ar -ts" | |
2065 ;; | |
2066 *-sunos5.5* | *-solaris2.5* ) | |
2067 opsys=sol2-5 | |
2068 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2069 RANLIB="ar -ts" | |
2070 ;; | |
2071 *-sunos5* | *-solaris* ) | |
2072 opsys=sol2-5 | |
2073 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2074 ;; | |
2075 * ) opsys=bsd4-2 ;; | |
2076 esac | |
2077 ## Watch out for a compiler that we know will not work. | |
2078 case "${canonical}" in | |
2079 *-solaris* | *-sunos5* ) | |
2080 if [ "x$CC" = x/usr/ucb/cc ]; then | |
2081 ## /usr/ucb/cc doesn't work; | |
2082 ## we should find some other compiler that does work. | |
2083 unset CC | |
2084 fi | |
2085 ;; | |
2086 *) ;; | |
2087 esac | |
2088 ;; | |
2089 sparc-*-nextstep* ) | |
2090 machine=sparc opsys=nextstep | |
2091 ;; | |
2092 | |
2093 ## Tadpole 68k | |
2094 m68*-tadpole-sysv* ) | |
2095 machine=tad68k opsys=usg5-3 | |
2096 ;; | |
2097 | |
2098 ## Tahoe machines | |
2099 tahoe-tahoe-bsd4.2* ) | |
2100 machine=tahoe opsys=bsd4-2 | |
2101 ;; | |
2102 tahoe-tahoe-bsd4.3* ) | |
2103 machine=tahoe opsys=bsd4-3 | |
2104 ;; | |
2105 | |
2106 ## Tandem Integrity S2 | |
2107 mips-tandem-sysv* ) | |
2108 machine=tandem-s2 opsys=usg5-3 | |
2109 ;; | |
2110 | |
2111 ## Tektronix XD88 | |
2112 m88k-tektronix-sysv3* ) | |
2113 machine=tekxd88 opsys=usg5-3 | |
2114 ;; | |
2115 | |
2116 ## Tektronix 16000 box (6130?) | |
2117 ns16k-tektronix-bsd* ) | |
2118 machine=ns16000 opsys=bsd4-2 | |
2119 ;; | |
2120 ## Tektronix 4300 | |
2121 ## src/m/tek4300.h hints that this is a m68k machine. | |
2122 m68*-tektronix-bsd* ) | |
2123 machine=tek4300 opsys=bsd4-3 | |
2124 ;; | |
2125 | |
2126 ## Titan P2 or P3 | |
2127 ## We seem to have lost the machine-description file titan.h! | |
2128 titan-titan-sysv* ) | |
2129 machine=titan opsys=usg5-3 | |
2130 ;; | |
2131 | |
2132 ## Ustation E30 (SS5E) | |
2133 m68*-unisys-uniplus* ) | |
2134 machine=ustation opsystem=unipl5-2 | |
2135 ;; | |
2136 | |
2137 ## Vaxen. | |
2138 vax-dec-* ) | |
2139 machine=vax | |
2140 case "${canonical}" in | |
2141 *-bsd4.1* ) opsys=bsd4-1 ;; | |
2142 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
2143 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
2144 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
2145 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
2146 *-vms* ) opsys=vms ;; | |
2147 * ) unported=yes | |
2148 esac | |
2149 ;; | |
2150 | |
2151 ## Whitechapel MG1 | |
2152 ns16k-whitechapel-* ) | |
2153 machine=mg1 | |
2154 ## We don't know what sort of OS runs on these; we'll let the | |
2155 ## operating system guessing code below try. | |
2156 ;; | |
2157 | |
2158 ## Wicat | |
2159 m68*-wicat-sysv* ) | |
2160 machine=wicat opsys=usg5-2 | |
2161 ;; | |
2162 | |
30576 | 2163 ## IA-64 |
2164 ia64*-*-linux* ) | |
2165 machine=ia64 opsys=gnu-linux | |
2166 ;; | |
2167 | |
25897 | 2168 ## Intel 386 machines where we don't care about the manufacturer |
2169 i[3456]86-*-* ) | |
2170 machine=intel386 | |
2171 case "${canonical}" in | |
29654 | 2172 *-lynxos* ) opsys=lynxos ;; |
25897 | 2173 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
2174 *-isc2.2* ) opsys=isc2-2 ;; | |
2175 *-isc4.0* ) opsys=isc4-0 ;; | |
2176 *-isc4.* ) opsys=isc4-1 | |
2177 GCC_TEST_OPTIONS=-posix | |
2178 NON_GCC_TEST_OPTIONS=-Xp | |
2179 ;; | |
2180 *-isc* ) opsys=isc3-0 ;; | |
2181 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
2182 *-esix* ) opsys=esix ;; | |
2183 *-xenix* ) opsys=xenix ;; | |
2184 *-linux-gnu* ) opsys=gnu-linux ;; | |
2185 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
40056 | 2186 *-sco3.2v5* ) opsys=sco5 |
25897 | 2187 NON_GNU_CPP=/lib/cpp |
2188 # Prevent -belf from being passed to $CPP. | |
2189 # /lib/cpp does not accept it. | |
2190 OVERRIDE_CPPFLAGS=" " | |
2191 ;; | |
2192 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
2193 *-386bsd* ) opsys=386bsd ;; | |
2194 *-nextstep* ) opsys=nextstep ;; | |
2195 ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
2196 esac | |
2197 ;; | |
2198 | |
2199 ## m68k Linux-based GNU system | |
2200 m68k-*-linux-gnu* ) | |
2201 machine=m68k opsys=gnu-linux | |
2202 ;; | |
2203 | |
2204 ## Mips Linux-based GNU system | |
2205 mips-*-linux-gnu* ) | |
2206 machine=mips opsys=gnu-linux | |
2207 ;; | |
2208 | |
2209 ## UXP/DS | |
2210 sparc-fujitsu-sysv4* ) | |
2211 machine=sparc opsys=uxpds | |
2212 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2213 RANLIB="ar -ts" | |
2214 ;; | |
2215 | |
2216 ## UXP/V | |
2217 f301-fujitsu-uxpv4.1) | |
2218 machine=f301 opsys=uxpv | |
2219 ;; | |
2220 | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2221 ## Darwin / Mac OS X |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2222 powerpc-apple-darwin* ) |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2223 machine=powermac opsys=darwin |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2224 # Define CPP as follows to make autoconf work correctly. |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2225 CPP="cc -E -traditional-cpp" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2226 ;; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2227 |
45668 | 2228 ## AMD x86-64 Linux-based GNU system |
2229 x86_64-*-linux-gnu* ) | |
46596 | 2230 machine=amdx86-64 opsys=gnu-linux |
45668 | 2231 ;; |
2232 | |
25897 | 2233 * ) |
2234 unported=yes | |
2235 ;; | |
2236 esac | |
2237 | |
2238 ### If the code above didn't choose an operating system, just choose | |
2239 ### an operating system based on the configuration name. You really | |
2240 ### only want to use this when you have no idea what the right | |
2241 ### operating system is; if you know what operating systems a machine | |
2242 ### runs, it's cleaner to make it explicit in the case statement | |
2243 ### above. | |
2244 if test x"${opsys}" = x; then | |
2245 case "${canonical}" in | |
2246 *-gnu* ) opsys=gnu ;; | |
2247 *-bsd4.[01] ) opsys=bsd4-1 ;; | |
2248 *-bsd4.2 ) opsys=bsd4-2 ;; | |
2249 *-bsd4.3 ) opsys=bsd4-3 ;; | |
2250 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
2251 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
2252 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
2253 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
2254 *-sysv4.2uw* ) opsys=unixware ;; | |
2255 *-sysv4.1* | *-sysvr4.1* ) | |
2256 NON_GNU_CPP=/usr/lib/cpp | |
2257 opsys=usg5-4 ;; | |
2258 *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
2259 if [ x$NON_GNU_CPP = x ]; then | |
2260 if [ -f /usr/ccs/lib/cpp ]; then | |
2261 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2262 else | |
2263 NON_GNU_CPP=/lib/cpp | |
2264 fi | |
2265 fi | |
2266 opsys=usg5-4-2 ;; | |
2267 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
2268 * ) | |
2269 unported=yes | |
2270 ;; | |
2271 esac | |
2272 fi | |
2273 | |
2274 if test $unported = yes; then | |
46596 | 2275 { { echo "$as_me:2275: error: Emacs hasn't been ported to \`${canonical}' systems. |
40056 | 2276 Check \`etc/MACHINES' for recognized configuration names." >&5 |
2277 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
2278 Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
2279 { (exit 1); exit 1; }; } | |
25897 | 2280 fi |
2281 | |
2282 machfile="m/${machine}.h" | |
2283 opsysfile="s/${opsys}.h" | |
2284 | |
2285 #### Choose a compiler. | |
2286 test -n "$CC" && cc_specified=yes | |
2287 | |
2288 # Save the value of CFLAGS that the user specified. | |
2289 SPECIFIED_CFLAGS="$CFLAGS" | |
2290 | |
2291 case ${with_gcc} in | |
2292 "yes" ) CC="gcc" GCC=yes ;; | |
2293 "no" ) : ${CC=cc} ;; | |
40056 | 2294 * ) |
2295 esac | |
2296 ac_ext=c | |
2297 ac_cpp='$CPP $CPPFLAGS' | |
2298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2300 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2301 if test -n "$ac_tool_prefix"; then | |
2302 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2303 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
46596 | 2304 echo "$as_me:2304: checking for $ac_word" >&5 |
40056 | 2305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2306 if test "${ac_cv_prog_CC+set}" = set; then | |
2307 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2308 else | |
2309 if test -n "$CC"; then | |
2310 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2311 else | |
45226 | 2312 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2313 ac_dummy="$PATH" | |
2314 for ac_dir in $ac_dummy; do | |
2315 IFS=$ac_save_IFS | |
2316 test -z "$ac_dir" && ac_dir=. | |
2317 $as_executable_p "$ac_dir/$ac_word" || continue | |
2318 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
46596 | 2319 echo "$as_me:2319: found $ac_dir/$ac_word" >&5 |
45226 | 2320 break |
40056 | 2321 done |
2322 | |
2323 fi | |
2324 fi | |
2325 CC=$ac_cv_prog_CC | |
2326 if test -n "$CC"; then | |
46596 | 2327 echo "$as_me:2327: result: $CC" >&5 |
40056 | 2328 echo "${ECHO_T}$CC" >&6 |
2329 else | |
46596 | 2330 echo "$as_me:2330: result: no" >&5 |
40056 | 2331 echo "${ECHO_T}no" >&6 |
2332 fi | |
2333 | |
2334 fi | |
2335 if test -z "$ac_cv_prog_CC"; then | |
2336 ac_ct_CC=$CC | |
2337 # Extract the first word of "gcc", so it can be a program name with args. | |
25897 | 2338 set dummy gcc; ac_word=$2 |
46596 | 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_ac_ct_CC+set}" = set; then | |
2342 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2343 else | |
2344 if test -n "$ac_ct_CC"; then | |
2345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2346 else | |
45226 | 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_ac_ct_CC="gcc" | |
46596 | 2354 echo "$as_me:2354: found $ac_dir/$ac_word" >&5 |
45226 | 2355 break |
40056 | 2356 done |
2357 | |
2358 fi | |
2359 fi | |
2360 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2361 if test -n "$ac_ct_CC"; then | |
46596 | 2362 echo "$as_me:2362: result: $ac_ct_CC" >&5 |
40056 | 2363 echo "${ECHO_T}$ac_ct_CC" >&6 |
2364 else | |
46596 | 2365 echo "$as_me:2365: result: no" >&5 |
40056 | 2366 echo "${ECHO_T}no" >&6 |
2367 fi | |
2368 | |
2369 CC=$ac_ct_CC | |
2370 else | |
2371 CC="$ac_cv_prog_CC" | |
2372 fi | |
2373 | |
2374 if test -z "$CC"; then | |
2375 if test -n "$ac_tool_prefix"; then | |
2376 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2377 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
46596 | 2378 echo "$as_me:2378: checking for $ac_word" >&5 |
40056 | 2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2380 if test "${ac_cv_prog_CC+set}" = set; then | |
2381 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 2382 else |
2383 if test -n "$CC"; then | |
2384 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2385 else | |
45226 | 2386 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2387 ac_dummy="$PATH" | |
2388 for ac_dir in $ac_dummy; do | |
2389 IFS=$ac_save_IFS | |
2390 test -z "$ac_dir" && ac_dir=. | |
2391 $as_executable_p "$ac_dir/$ac_word" || continue | |
2392 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
46596 | 2393 echo "$as_me:2393: found $ac_dir/$ac_word" >&5 |
45226 | 2394 break |
40056 | 2395 done |
2396 | |
2397 fi | |
2398 fi | |
2399 CC=$ac_cv_prog_CC | |
25897 | 2400 if test -n "$CC"; then |
46596 | 2401 echo "$as_me:2401: result: $CC" >&5 |
40056 | 2402 echo "${ECHO_T}$CC" >&6 |
2403 else | |
46596 | 2404 echo "$as_me:2404: result: no" >&5 |
40056 | 2405 echo "${ECHO_T}no" >&6 |
2406 fi | |
2407 | |
2408 fi | |
2409 if test -z "$ac_cv_prog_CC"; then | |
2410 ac_ct_CC=$CC | |
2411 # Extract the first word of "cc", so it can be a program name with args. | |
2412 set dummy cc; ac_word=$2 | |
46596 | 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_ac_ct_CC+set}" = set; then | |
2416 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2417 else | |
2418 if test -n "$ac_ct_CC"; then | |
2419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2420 else | |
45226 | 2421 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2422 ac_dummy="$PATH" | |
2423 for ac_dir in $ac_dummy; do | |
2424 IFS=$ac_save_IFS | |
2425 test -z "$ac_dir" && ac_dir=. | |
2426 $as_executable_p "$ac_dir/$ac_word" || continue | |
2427 ac_cv_prog_ac_ct_CC="cc" | |
46596 | 2428 echo "$as_me:2428: found $ac_dir/$ac_word" >&5 |
45226 | 2429 break |
40056 | 2430 done |
2431 | |
2432 fi | |
2433 fi | |
2434 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2435 if test -n "$ac_ct_CC"; then | |
46596 | 2436 echo "$as_me:2436: result: $ac_ct_CC" >&5 |
40056 | 2437 echo "${ECHO_T}$ac_ct_CC" >&6 |
2438 else | |
46596 | 2439 echo "$as_me:2439: result: no" >&5 |
40056 | 2440 echo "${ECHO_T}no" >&6 |
2441 fi | |
2442 | |
2443 CC=$ac_ct_CC | |
2444 else | |
2445 CC="$ac_cv_prog_CC" | |
2446 fi | |
2447 | |
2448 fi | |
25897 | 2449 if test -z "$CC"; then |
2450 # Extract the first word of "cc", so it can be a program name with args. | |
2451 set dummy cc; ac_word=$2 | |
46596 | 2452 echo "$as_me:2452: checking for $ac_word" >&5 |
40056 | 2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2454 if test "${ac_cv_prog_CC+set}" = set; then | |
2455 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 2456 else |
2457 if test -n "$CC"; then | |
2458 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2459 else | |
2460 ac_prog_rejected=no | |
45226 | 2461 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2462 ac_dummy="$PATH" | |
2463 for ac_dir in $ac_dummy; do | |
2464 IFS=$ac_save_IFS | |
2465 test -z "$ac_dir" && ac_dir=. | |
2466 $as_executable_p "$ac_dir/$ac_word" || continue | |
2467 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
2468 ac_prog_rejected=yes | |
2469 continue | |
2470 fi | |
2471 ac_cv_prog_CC="cc" | |
46596 | 2472 echo "$as_me:2472: found $ac_dir/$ac_word" >&5 |
45226 | 2473 break |
40056 | 2474 done |
2475 | |
25897 | 2476 if test $ac_prog_rejected = yes; then |
2477 # We found a bogon in the path, so make sure we never use it. | |
2478 set dummy $ac_cv_prog_CC | |
2479 shift | |
40056 | 2480 if test $# != 0; then |
25897 | 2481 # We chose a different compiler from the bogus one. |
2482 # However, it has the same basename, so the bogon will be chosen | |
2483 # first if we set CC to just the basename; use the full file name. | |
2484 shift | |
45226 | 2485 set dummy "$ac_dir/$ac_word" ${1+"$@"} |
25897 | 2486 shift |
2487 ac_cv_prog_CC="$@" | |
2488 fi | |
2489 fi | |
2490 fi | |
2491 fi | |
40056 | 2492 CC=$ac_cv_prog_CC |
25897 | 2493 if test -n "$CC"; then |
46596 | 2494 echo "$as_me:2494: result: $CC" >&5 |
40056 | 2495 echo "${ECHO_T}$CC" >&6 |
2496 else | |
46596 | 2497 echo "$as_me:2497: result: no" >&5 |
40056 | 2498 echo "${ECHO_T}no" >&6 |
2499 fi | |
2500 | |
2501 fi | |
2502 if test -z "$CC"; then | |
2503 if test -n "$ac_tool_prefix"; then | |
2504 for ac_prog in cl | |
2505 do | |
2506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
46596 | 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_CC+set}" = set; then | |
2511 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27205 | 2512 else |
2513 if test -n "$CC"; then | |
2514 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2515 else | |
45226 | 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_CC="$ac_tool_prefix$ac_prog" | |
46596 | 2523 echo "$as_me:2523: found $ac_dir/$ac_word" >&5 |
45226 | 2524 break |
40056 | 2525 done |
2526 | |
2527 fi | |
2528 fi | |
2529 CC=$ac_cv_prog_CC | |
27205 | 2530 if test -n "$CC"; then |
46596 | 2531 echo "$as_me:2531: result: $CC" >&5 |
40056 | 2532 echo "${ECHO_T}$CC" >&6 |
2533 else | |
46596 | 2534 echo "$as_me:2534: result: no" >&5 |
40056 | 2535 echo "${ECHO_T}no" >&6 |
2536 fi | |
2537 | |
2538 test -n "$CC" && break | |
2539 done | |
2540 fi | |
2541 if test -z "$CC"; then | |
2542 ac_ct_CC=$CC | |
2543 for ac_prog in cl | |
2544 do | |
2545 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2546 set dummy $ac_prog; ac_word=$2 | |
46596 | 2547 echo "$as_me:2547: checking for $ac_word" >&5 |
40056 | 2548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2549 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2550 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2551 else | |
2552 if test -n "$ac_ct_CC"; then | |
2553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2554 else | |
45226 | 2555 ac_save_IFS=$IFS; IFS=$ac_path_separator |
2556 ac_dummy="$PATH" | |
2557 for ac_dir in $ac_dummy; do | |
2558 IFS=$ac_save_IFS | |
2559 test -z "$ac_dir" && ac_dir=. | |
2560 $as_executable_p "$ac_dir/$ac_word" || continue | |
2561 ac_cv_prog_ac_ct_CC="$ac_prog" | |
46596 | 2562 echo "$as_me:2562: found $ac_dir/$ac_word" >&5 |
45226 | 2563 break |
40056 | 2564 done |
2565 | |
2566 fi | |
2567 fi | |
2568 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2569 if test -n "$ac_ct_CC"; then | |
46596 | 2570 echo "$as_me:2570: result: $ac_ct_CC" >&5 |
40056 | 2571 echo "${ECHO_T}$ac_ct_CC" >&6 |
2572 else | |
46596 | 2573 echo "$as_me:2573: result: no" >&5 |
40056 | 2574 echo "${ECHO_T}no" >&6 |
2575 fi | |
2576 | |
2577 test -n "$ac_ct_CC" && break | |
2578 done | |
2579 | |
2580 CC=$ac_ct_CC | |
2581 fi | |
2582 | |
2583 fi | |
2584 | |
46596 | 2585 test -z "$CC" && { { echo "$as_me:2585: error: no acceptable cc found in \$PATH" >&5 |
45226 | 2586 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
40056 | 2587 { (exit 1); exit 1; }; } |
2588 | |
2589 # Provide some information about the compiler. | |
46596 | 2590 echo "$as_me:2590:" \ |
40056 | 2591 "checking for C compiler version" >&5 |
2592 ac_compiler=`set X $ac_compile; echo $2` | |
46596 | 2593 { (eval echo "$as_me:2593: \"$ac_compiler --version </dev/null >&5\"") >&5 |
40056 | 2594 (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2595 ac_status=$? | |
46596 | 2596 echo "$as_me:2596: \$? = $ac_status" >&5 |
40056 | 2597 (exit $ac_status); } |
46596 | 2598 { (eval echo "$as_me:2598: \"$ac_compiler -v </dev/null >&5\"") >&5 |
45668 | 2599 (eval $ac_compiler -v </dev/null >&5) 2>&5 |
40056 | 2600 ac_status=$? |
46596 | 2601 echo "$as_me:2601: \$? = $ac_status" >&5 |
40056 | 2602 (exit $ac_status); } |
46596 | 2603 { (eval echo "$as_me:2603: \"$ac_compiler -V </dev/null >&5\"") >&5 |
45668 | 2604 (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2605 ac_status=$? | |
46596 | 2606 echo "$as_me:2606: \$? = $ac_status" >&5 |
45668 | 2607 (exit $ac_status); } |
40056 | 2608 |
2609 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 2610 #line 2610 "configure" |
45226 | 2611 #include "confdefs.h" |
2612 | |
40056 | 2613 int |
2614 main () | |
2615 { | |
2616 | |
2617 ; | |
2618 return 0; | |
2619 } | |
2620 _ACEOF | |
2621 ac_clean_files_save=$ac_clean_files | |
2622 ac_clean_files="$ac_clean_files a.out a.exe" | |
2623 # Try to create an executable without -o first, disregard a.out. | |
2624 # It will help us diagnose broken compilers, and finding out an intuition | |
2625 # of exeext. | |
46596 | 2626 echo "$as_me:2626: checking for C compiler default output" >&5 |
40056 | 2627 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
2628 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
46596 | 2629 if { (eval echo "$as_me:2629: \"$ac_link_default\"") >&5 |
40056 | 2630 (eval $ac_link_default) 2>&5 |
2631 ac_status=$? | |
46596 | 2632 echo "$as_me:2632: \$? = $ac_status" >&5 |
40056 | 2633 (exit $ac_status); }; then |
2634 # Find the output, starting from the most likely. This scheme is | |
2635 # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2636 # resort. | |
45226 | 2637 for ac_file in `ls a.exe conftest.exe 2>/dev/null; |
40056 | 2638 ls a.out conftest 2>/dev/null; |
2639 ls a.* conftest.* 2>/dev/null`; do | |
2640 case $ac_file in | |
45226 | 2641 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
40056 | 2642 a.out ) # We found the default executable, but exeext='' is most |
2643 # certainly right. | |
2644 break;; | |
2645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2646 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
2647 export ac_cv_exeext | |
2648 break;; | |
2649 * ) break;; | |
2650 esac | |
2651 done | |
2652 else | |
2653 echo "$as_me: failed program was:" >&5 | |
2654 cat conftest.$ac_ext >&5 | |
46596 | 2655 { { echo "$as_me:2655: error: C compiler cannot create executables" >&5 |
40056 | 2656 echo "$as_me: error: C compiler cannot create executables" >&2;} |
2657 { (exit 77); exit 77; }; } | |
2658 fi | |
2659 | |
2660 ac_exeext=$ac_cv_exeext | |
46596 | 2661 echo "$as_me:2661: result: $ac_file" >&5 |
40056 | 2662 echo "${ECHO_T}$ac_file" >&6 |
2663 | |
2664 # Check the compiler produces executables we can run. If not, either | |
2665 # the compiler is broken, or we cross compile. | |
46596 | 2666 echo "$as_me:2666: checking whether the C compiler works" >&5 |
40056 | 2667 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2668 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2669 # If not cross compiling, check that we can run a simple program. | |
2670 if test "$cross_compiling" != yes; then | |
2671 if { ac_try='./$ac_file' | |
46596 | 2672 { (eval echo "$as_me:2672: \"$ac_try\"") >&5 |
2673 (eval $ac_try) 2>&5 | |
2674 ac_status=$? | |
2675 echo "$as_me:2675: \$? = $ac_status" >&5 | |
40056 | 2676 (exit $ac_status); }; }; then |
2677 cross_compiling=no | |
25897 | 2678 else |
40056 | 2679 if test "$cross_compiling" = maybe; then |
2680 cross_compiling=yes | |
2681 else | |
46596 | 2682 { { echo "$as_me:2682: error: cannot run C compiled programs. |
40056 | 2683 If you meant to cross compile, use \`--host'." >&5 |
2684 echo "$as_me: error: cannot run C compiled programs. | |
2685 If you meant to cross compile, use \`--host'." >&2;} | |
2686 { (exit 1); exit 1; }; } | |
2687 fi | |
2688 fi | |
2689 fi | |
46596 | 2690 echo "$as_me:2690: result: yes" >&5 |
40056 | 2691 echo "${ECHO_T}yes" >&6 |
2692 | |
2693 rm -f a.out a.exe conftest$ac_cv_exeext | |
2694 ac_clean_files=$ac_clean_files_save | |
2695 # Check the compiler produces executables we can run. If not, either | |
2696 # the compiler is broken, or we cross compile. | |
46596 | 2697 echo "$as_me:2697: checking whether we are cross compiling" >&5 |
40056 | 2698 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
46596 | 2699 echo "$as_me:2699: result: $cross_compiling" >&5 |
40056 | 2700 echo "${ECHO_T}$cross_compiling" >&6 |
2701 | |
46596 | 2702 echo "$as_me:2702: checking for executable suffix" >&5 |
45226 | 2703 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
46596 | 2704 if { (eval echo "$as_me:2704: \"$ac_link\"") >&5 |
2705 (eval $ac_link) 2>&5 | |
2706 ac_status=$? | |
2707 echo "$as_me:2707: \$? = $ac_status" >&5 | |
40056 | 2708 (exit $ac_status); }; then |
2709 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2710 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2711 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2712 # `rm'. | |
2713 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
2714 case $ac_file in | |
44994 | 2715 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
40056 | 2716 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2717 export ac_cv_exeext | |
2718 break;; | |
2719 * ) break;; | |
2720 esac | |
2721 done | |
2722 else | |
46596 | 2723 { { echo "$as_me:2723: error: cannot compute EXEEXT: cannot compile and link" >&5 |
45226 | 2724 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
40056 | 2725 { (exit 1); exit 1; }; } |
2726 fi | |
2727 | |
2728 rm -f conftest$ac_cv_exeext | |
46596 | 2729 echo "$as_me:2729: result: $ac_cv_exeext" >&5 |
40056 | 2730 echo "${ECHO_T}$ac_cv_exeext" >&6 |
2731 | |
2732 rm -f conftest.$ac_ext | |
2733 EXEEXT=$ac_cv_exeext | |
2734 ac_exeext=$EXEEXT | |
46596 | 2735 echo "$as_me:2735: checking for object suffix" >&5 |
45226 | 2736 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
40056 | 2737 if test "${ac_cv_objext+set}" = set; then |
2738 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2739 else | |
2740 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 2741 #line 2741 "configure" |
45226 | 2742 #include "confdefs.h" |
2743 | |
40056 | 2744 int |
2745 main () | |
2746 { | |
2747 | |
2748 ; | |
2749 return 0; | |
2750 } | |
2751 _ACEOF | |
2752 rm -f conftest.o conftest.obj | |
46596 | 2753 if { (eval echo "$as_me:2753: \"$ac_compile\"") >&5 |
44493 | 2754 (eval $ac_compile) 2>&5 |
2755 ac_status=$? | |
46596 | 2756 echo "$as_me:2756: \$? = $ac_status" >&5 |
40056 | 2757 (exit $ac_status); }; then |
2758 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2759 case $ac_file in | |
44994 | 2760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
40056 | 2761 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2762 break;; | |
2763 esac | |
2764 done | |
2765 else | |
2766 echo "$as_me: failed program was:" >&5 | |
2767 cat conftest.$ac_ext >&5 | |
46596 | 2768 { { echo "$as_me:2768: error: cannot compute OBJEXT: cannot compile" >&5 |
45226 | 2769 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
40056 | 2770 { (exit 1); exit 1; }; } |
2771 fi | |
2772 | |
2773 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2774 fi | |
46596 | 2775 echo "$as_me:2775: result: $ac_cv_objext" >&5 |
40056 | 2776 echo "${ECHO_T}$ac_cv_objext" >&6 |
2777 OBJEXT=$ac_cv_objext | |
2778 ac_objext=$OBJEXT | |
46596 | 2779 echo "$as_me:2779: checking whether we are using the GNU C compiler" >&5 |
40056 | 2780 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2781 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2782 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2783 else | |
2784 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 2785 #line 2785 "configure" |
45226 | 2786 #include "confdefs.h" |
2787 | |
40056 | 2788 int |
2789 main () | |
2790 { | |
2791 #ifndef __GNUC__ | |
2792 choke me | |
2793 #endif | |
2794 | |
2795 ; | |
2796 return 0; | |
2797 } | |
2798 _ACEOF | |
2799 rm -f conftest.$ac_objext | |
46596 | 2800 if { (eval echo "$as_me:2800: \"$ac_compile\"") >&5 |
44493 | 2801 (eval $ac_compile) 2>&5 |
2802 ac_status=$? | |
46596 | 2803 echo "$as_me:2803: \$? = $ac_status" >&5 |
44493 | 2804 (exit $ac_status); } && |
2805 { ac_try='test -s conftest.$ac_objext' | |
46596 | 2806 { (eval echo "$as_me:2806: \"$ac_try\"") >&5 |
2807 (eval $ac_try) 2>&5 | |
2808 ac_status=$? | |
2809 echo "$as_me:2809: \$? = $ac_status" >&5 | |
40056 | 2810 (exit $ac_status); }; }; then |
2811 ac_compiler_gnu=yes | |
2812 else | |
2813 echo "$as_me: failed program was:" >&5 | |
2814 cat conftest.$ac_ext >&5 | |
2815 ac_compiler_gnu=no | |
2816 fi | |
2817 rm -f conftest.$ac_objext conftest.$ac_ext | |
2818 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2819 | |
2820 fi | |
46596 | 2821 echo "$as_me:2821: result: $ac_cv_c_compiler_gnu" >&5 |
40056 | 2822 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2823 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2824 ac_test_CFLAGS=${CFLAGS+set} | |
2825 ac_save_CFLAGS=$CFLAGS | |
2826 CFLAGS="-g" | |
46596 | 2827 echo "$as_me:2827: checking whether $CC accepts -g" >&5 |
40056 | 2828 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2829 if test "${ac_cv_prog_cc_g+set}" = set; then | |
2830 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2831 else | |
2832 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 2833 #line 2833 "configure" |
45226 | 2834 #include "confdefs.h" |
2835 | |
44493 | 2836 int |
2837 main () | |
2838 { | |
2839 | |
2840 ; | |
2841 return 0; | |
2842 } | |
2843 _ACEOF | |
2844 rm -f conftest.$ac_objext | |
46596 | 2845 if { (eval echo "$as_me:2845: \"$ac_compile\"") >&5 |
44493 | 2846 (eval $ac_compile) 2>&5 |
2847 ac_status=$? | |
46596 | 2848 echo "$as_me:2848: \$? = $ac_status" >&5 |
44493 | 2849 (exit $ac_status); } && |
2850 { ac_try='test -s conftest.$ac_objext' | |
46596 | 2851 { (eval echo "$as_me:2851: \"$ac_try\"") >&5 |
2852 (eval $ac_try) 2>&5 | |
2853 ac_status=$? | |
2854 echo "$as_me:2854: \$? = $ac_status" >&5 | |
40056 | 2855 (exit $ac_status); }; }; then |
25897 | 2856 ac_cv_prog_cc_g=yes |
2857 else | |
40056 | 2858 echo "$as_me: failed program was:" >&5 |
2859 cat conftest.$ac_ext >&5 | |
2860 ac_cv_prog_cc_g=no | |
2861 fi | |
2862 rm -f conftest.$ac_objext conftest.$ac_ext | |
2863 fi | |
46596 | 2864 echo "$as_me:2864: result: $ac_cv_prog_cc_g" >&5 |
40056 | 2865 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
27205 | 2866 if test "$ac_test_CFLAGS" = set; then |
40056 | 2867 CFLAGS=$ac_save_CFLAGS |
27205 | 2868 elif test $ac_cv_prog_cc_g = yes; then |
2869 if test "$GCC" = yes; then | |
25897 | 2870 CFLAGS="-g -O2" |
2871 else | |
27205 | 2872 CFLAGS="-g" |
25897 | 2873 fi |
2874 else | |
27205 | 2875 if test "$GCC" = yes; then |
2876 CFLAGS="-O2" | |
2877 else | |
2878 CFLAGS= | |
2879 fi | |
25897 | 2880 fi |
40056 | 2881 # Some people use a C++ compiler to compile C. Since we use `exit', |
2882 # in C++ we need to declare it. In case someone uses the same compiler | |
2883 # for both compiling C and C++ we need to have the C++ compiler decide | |
2884 # the declaration of exit, since it's the most demanding environment. | |
2885 cat >conftest.$ac_ext <<_ACEOF | |
2886 #ifndef __cplusplus | |
2887 choke me | |
2888 #endif | |
2889 _ACEOF | |
2890 rm -f conftest.$ac_objext | |
46596 | 2891 if { (eval echo "$as_me:2891: \"$ac_compile\"") >&5 |
44493 | 2892 (eval $ac_compile) 2>&5 |
2893 ac_status=$? | |
46596 | 2894 echo "$as_me:2894: \$? = $ac_status" >&5 |
44493 | 2895 (exit $ac_status); } && |
2896 { ac_try='test -s conftest.$ac_objext' | |
46596 | 2897 { (eval echo "$as_me:2897: \"$ac_try\"") >&5 |
2898 (eval $ac_try) 2>&5 | |
2899 ac_status=$? | |
2900 echo "$as_me:2900: \$? = $ac_status" >&5 | |
40056 | 2901 (exit $ac_status); }; }; then |
2902 for ac_declaration in \ | |
2903 ''\ | |
2904 '#include <stdlib.h>' \ | |
2905 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2906 'extern "C" void std::exit (int); using std::exit;' \ | |
2907 'extern "C" void exit (int) throw ();' \ | |
2908 'extern "C" void exit (int);' \ | |
2909 'void exit (int);' | |
2910 do | |
2911 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 2912 #line 2912 "configure" |
40056 | 2913 #include "confdefs.h" |
2914 #include <stdlib.h> | |
2915 $ac_declaration | |
2916 int | |
2917 main () | |
2918 { | |
2919 exit (42); | |
2920 ; | |
2921 return 0; | |
2922 } | |
2923 _ACEOF | |
2924 rm -f conftest.$ac_objext | |
46596 | 2925 if { (eval echo "$as_me:2925: \"$ac_compile\"") >&5 |
44493 | 2926 (eval $ac_compile) 2>&5 |
2927 ac_status=$? | |
46596 | 2928 echo "$as_me:2928: \$? = $ac_status" >&5 |
44493 | 2929 (exit $ac_status); } && |
2930 { ac_try='test -s conftest.$ac_objext' | |
46596 | 2931 { (eval echo "$as_me:2931: \"$ac_try\"") >&5 |
2932 (eval $ac_try) 2>&5 | |
2933 ac_status=$? | |
2934 echo "$as_me:2934: \$? = $ac_status" >&5 | |
40056 | 2935 (exit $ac_status); }; }; then |
2936 : | |
2937 else | |
2938 echo "$as_me: failed program was:" >&5 | |
2939 cat conftest.$ac_ext >&5 | |
2940 continue | |
2941 fi | |
2942 rm -f conftest.$ac_objext conftest.$ac_ext | |
2943 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 2944 #line 2944 "configure" |
40056 | 2945 #include "confdefs.h" |
2946 $ac_declaration | |
2947 int | |
2948 main () | |
2949 { | |
2950 exit (42); | |
2951 ; | |
2952 return 0; | |
2953 } | |
2954 _ACEOF | |
2955 rm -f conftest.$ac_objext | |
46596 | 2956 if { (eval echo "$as_me:2956: \"$ac_compile\"") >&5 |
44493 | 2957 (eval $ac_compile) 2>&5 |
2958 ac_status=$? | |
46596 | 2959 echo "$as_me:2959: \$? = $ac_status" >&5 |
44493 | 2960 (exit $ac_status); } && |
2961 { ac_try='test -s conftest.$ac_objext' | |
46596 | 2962 { (eval echo "$as_me:2962: \"$ac_try\"") >&5 |
2963 (eval $ac_try) 2>&5 | |
2964 ac_status=$? | |
2965 echo "$as_me:2965: \$? = $ac_status" >&5 | |
40056 | 2966 (exit $ac_status); }; }; then |
2967 break | |
2968 else | |
2969 echo "$as_me: failed program was:" >&5 | |
2970 cat conftest.$ac_ext >&5 | |
2971 fi | |
2972 rm -f conftest.$ac_objext conftest.$ac_ext | |
2973 done | |
2974 rm -f conftest* | |
2975 if test -n "$ac_declaration"; then | |
2976 echo '#ifdef __cplusplus' >>confdefs.h | |
2977 echo $ac_declaration >>confdefs.h | |
2978 echo '#endif' >>confdefs.h | |
2979 fi | |
2980 | |
2981 else | |
2982 echo "$as_me: failed program was:" >&5 | |
2983 cat conftest.$ac_ext >&5 | |
2984 fi | |
2985 rm -f conftest.$ac_objext conftest.$ac_ext | |
2986 ac_ext=c | |
2987 ac_cpp='$CPP $CPPFLAGS' | |
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25897 | 2991 |
2992 # On Suns, sometimes $CPP names a directory. | |
2993 if test -n "$CPP" && test -d "$CPP"; then | |
2994 CPP= | |
2995 fi | |
2996 | |
2997 #### Some systems specify a CPP to use unless we are using GCC. | |
2998 #### Now that we know whether we are using GCC, we can decide whether | |
2999 #### to use that one. | |
3000 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
3001 then | |
3002 CPP="$NON_GNU_CPP" | |
3003 fi | |
3004 | |
3005 #### Some systems specify a CC to use unless we are using GCC. | |
3006 #### Now that we know whether we are using GCC, we can decide whether | |
3007 #### to use that one. | |
3008 if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
3009 test x$cc_specified != xyes | |
3010 then | |
3011 CC="$NON_GNU_CC" | |
3012 fi | |
3013 | |
3014 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
3015 then | |
3016 CC="$CC $GCC_TEST_OPTIONS" | |
3017 fi | |
3018 | |
3019 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
3020 then | |
3021 CC="$CC $NON_GCC_TEST_OPTIONS" | |
3022 fi | |
3023 | |
3024 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x | |
3025 then | |
3026 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
3027 fi | |
3028 | |
3029 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
3030 then | |
3031 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
3032 fi | |
3033 | |
3034 #### Some other nice autoconf tests. If you add a test here which | |
3035 #### should make an entry in src/config.h, don't forget to add an | |
3036 #### #undef clause to src/config.h.in for autoconf to modify. | |
3037 | |
46596 | 3038 echo "$as_me:3038: checking whether ln -s works" >&5 |
40056 | 3039 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3040 LN_S=$as_ln_s | |
3041 if test "$LN_S" = "ln -s"; then | |
46596 | 3042 echo "$as_me:3042: result: yes" >&5 |
40056 | 3043 echo "${ECHO_T}yes" >&6 |
3044 else | |
46596 | 3045 echo "$as_me:3045: result: no, using $LN_S" >&5 |
40056 | 3046 echo "${ECHO_T}no, using $LN_S" >&6 |
3047 fi | |
3048 | |
3049 ac_ext=c | |
3050 ac_cpp='$CPP $CPPFLAGS' | |
3051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3053 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
46596 | 3054 echo "$as_me:3054: checking how to run the C preprocessor" >&5 |
40056 | 3055 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
25897 | 3056 # On Suns, sometimes $CPP names a directory. |
3057 if test -n "$CPP" && test -d "$CPP"; then | |
3058 CPP= | |
3059 fi | |
3060 if test -z "$CPP"; then | |
40056 | 3061 if test "${ac_cv_prog_CPP+set}" = set; then |
3062 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3063 else | |
3064 # Double quotes because CPP needs to be expanded | |
3065 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3066 do | |
3067 ac_preproc_ok=false | |
3068 for ac_c_preproc_warn_flag in '' yes | |
3069 do | |
3070 # Use a header file that comes with gcc, so configuring glibc | |
3071 # with a fresh cross-compiler works. | |
25897 | 3072 # On the NeXT, cc -E runs the code through the compiler's parser, |
40056 | 3073 # not just through cpp. "Syntax error" is here to catch this case. |
3074 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 3075 #line 3075 "configure" |
25897 | 3076 #include "confdefs.h" |
3077 #include <assert.h> | |
40056 | 3078 Syntax error |
3079 _ACEOF | |
46596 | 3080 if { (eval echo "$as_me:3080: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3082 ac_status=$? | |
3083 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3084 rm -f conftest.er1 | |
3085 cat conftest.err >&5 | |
46596 | 3086 echo "$as_me:3086: \$? = $ac_status" >&5 |
40056 | 3087 (exit $ac_status); } >/dev/null; then |
3088 if test -s conftest.err; then | |
3089 ac_cpp_err=$ac_c_preproc_warn_flag | |
3090 else | |
3091 ac_cpp_err= | |
3092 fi | |
3093 else | |
3094 ac_cpp_err=yes | |
3095 fi | |
3096 if test -z "$ac_cpp_err"; then | |
27205 | 3097 : |
3098 else | |
40056 | 3099 echo "$as_me: failed program was:" >&5 |
27205 | 3100 cat conftest.$ac_ext >&5 |
40056 | 3101 # Broken: fails on valid input. |
3102 continue | |
3103 fi | |
3104 rm -f conftest.err conftest.$ac_ext | |
3105 | |
3106 # OK, works on sane cases. Now check whether non-existent headers | |
3107 # can be detected and how. | |
3108 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 3109 #line 3109 "configure" |
40056 | 3110 #include "confdefs.h" |
3111 #include <ac_nonexistent.h> | |
3112 _ACEOF | |
46596 | 3113 if { (eval echo "$as_me:3113: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3115 ac_status=$? | |
3116 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3117 rm -f conftest.er1 | |
3118 cat conftest.err >&5 | |
46596 | 3119 echo "$as_me:3119: \$? = $ac_status" >&5 |
40056 | 3120 (exit $ac_status); } >/dev/null; then |
3121 if test -s conftest.err; then | |
3122 ac_cpp_err=$ac_c_preproc_warn_flag | |
3123 else | |
3124 ac_cpp_err= | |
3125 fi | |
3126 else | |
3127 ac_cpp_err=yes | |
3128 fi | |
3129 if test -z "$ac_cpp_err"; then | |
3130 # Broken: success on invalid input. | |
3131 continue | |
3132 else | |
3133 echo "$as_me: failed program was:" >&5 | |
3134 cat conftest.$ac_ext >&5 | |
3135 # Passes both tests. | |
3136 ac_preproc_ok=: | |
3137 break | |
3138 fi | |
3139 rm -f conftest.err conftest.$ac_ext | |
3140 | |
3141 done | |
3142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3143 rm -f conftest.err conftest.$ac_ext | |
3144 if $ac_preproc_ok; then | |
3145 break | |
3146 fi | |
3147 | |
3148 done | |
3149 ac_cv_prog_CPP=$CPP | |
3150 | |
3151 fi | |
3152 CPP=$ac_cv_prog_CPP | |
3153 else | |
3154 ac_cv_prog_CPP=$CPP | |
3155 fi | |
46596 | 3156 echo "$as_me:3156: result: $CPP" >&5 |
40056 | 3157 echo "${ECHO_T}$CPP" >&6 |
3158 ac_preproc_ok=false | |
3159 for ac_c_preproc_warn_flag in '' yes | |
3160 do | |
3161 # Use a header file that comes with gcc, so configuring glibc | |
3162 # with a fresh cross-compiler works. | |
3163 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3164 # not just through cpp. "Syntax error" is here to catch this case. | |
3165 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 3166 #line 3166 "configure" |
27205 | 3167 #include "confdefs.h" |
3168 #include <assert.h> | |
40056 | 3169 Syntax error |
3170 _ACEOF | |
46596 | 3171 if { (eval echo "$as_me:3171: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3173 ac_status=$? | |
3174 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3175 rm -f conftest.er1 | |
3176 cat conftest.err >&5 | |
46596 | 3177 echo "$as_me:3177: \$? = $ac_status" >&5 |
40056 | 3178 (exit $ac_status); } >/dev/null; then |
3179 if test -s conftest.err; then | |
3180 ac_cpp_err=$ac_c_preproc_warn_flag | |
3181 else | |
3182 ac_cpp_err= | |
3183 fi | |
3184 else | |
3185 ac_cpp_err=yes | |
3186 fi | |
3187 if test -z "$ac_cpp_err"; then | |
25897 | 3188 : |
3189 else | |
40056 | 3190 echo "$as_me: failed program was:" >&5 |
25897 | 3191 cat conftest.$ac_ext >&5 |
40056 | 3192 # Broken: fails on valid input. |
3193 continue | |
3194 fi | |
3195 rm -f conftest.err conftest.$ac_ext | |
3196 | |
3197 # OK, works on sane cases. Now check whether non-existent headers | |
3198 # can be detected and how. | |
3199 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 3200 #line 3200 "configure" |
40056 | 3201 #include "confdefs.h" |
3202 #include <ac_nonexistent.h> | |
3203 _ACEOF | |
46596 | 3204 if { (eval echo "$as_me:3204: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3206 ac_status=$? | |
3207 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3208 rm -f conftest.er1 | |
3209 cat conftest.err >&5 | |
46596 | 3210 echo "$as_me:3210: \$? = $ac_status" >&5 |
40056 | 3211 (exit $ac_status); } >/dev/null; then |
3212 if test -s conftest.err; then | |
3213 ac_cpp_err=$ac_c_preproc_warn_flag | |
3214 else | |
3215 ac_cpp_err= | |
3216 fi | |
3217 else | |
3218 ac_cpp_err=yes | |
3219 fi | |
3220 if test -z "$ac_cpp_err"; then | |
3221 # Broken: success on invalid input. | |
3222 continue | |
3223 else | |
3224 echo "$as_me: failed program was:" >&5 | |
3225 cat conftest.$ac_ext >&5 | |
3226 # Passes both tests. | |
3227 ac_preproc_ok=: | |
3228 break | |
3229 fi | |
3230 rm -f conftest.err conftest.$ac_ext | |
3231 | |
3232 done | |
3233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3234 rm -f conftest.err conftest.$ac_ext | |
3235 if $ac_preproc_ok; then | |
3236 : | |
3237 else | |
46596 | 3238 { { echo "$as_me:3238: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
40056 | 3239 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
3240 { (exit 1); exit 1; }; } | |
3241 fi | |
3242 | |
3243 ac_ext=c | |
3244 ac_cpp='$CPP $CPPFLAGS' | |
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25897 | 3248 |
3249 # Find a good install program. We prefer a C program (faster), | |
3250 # so one script is as good as another. But avoid the broken or | |
3251 # incompatible versions: | |
3252 # SysV /etc/install, /usr/sbin/install | |
3253 # SunOS /usr/etc/install | |
3254 # IRIX /sbin/install | |
3255 # AIX /bin/install | |
40056 | 3256 # AmigaOS /C/install, which installs bootblocks on floppy discs |
27205 | 3257 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
25897 | 3258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3260 # ./install, which can be erroneously created by make from ./install.sh. | |
46596 | 3261 echo "$as_me:3261: checking for a BSD compatible install" >&5 |
45226 | 3262 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
25897 | 3263 if test -z "$INSTALL"; then |
40056 | 3264 if test "${ac_cv_path_install+set}" = set; then |
3265 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3266 else | |
45226 | 3267 ac_save_IFS=$IFS; IFS=$ac_path_separator |
3268 for ac_dir in $PATH; do | |
3269 IFS=$ac_save_IFS | |
3270 # Account for people who put trailing slashes in PATH elements. | |
3271 case $ac_dir/ in | |
3272 / | ./ | .// | /cC/* \ | |
3273 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
3274 | /usr/ucb/* ) ;; | |
3275 *) | |
3276 # OSF1 and SCO ODT 3.0 have their own names for install. | |
3277 # Don't use installbsd from OSF since it installs stuff as root | |
3278 # by default. | |
3279 for ac_prog in ginstall scoinst install; do | |
3280 if $as_executable_p "$ac_dir/$ac_prog"; then | |
3281 if test $ac_prog = install && | |
3282 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
3283 # AIX install. It has an incompatible calling convention. | |
3284 : | |
3285 elif test $ac_prog = install && | |
3286 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
3287 # program-specific install script used by HP pwplus--don't use. | |
3288 : | |
3289 else | |
3290 ac_cv_path_install="$ac_dir/$ac_prog -c" | |
3291 break 2 | |
3292 fi | |
3293 fi | |
25897 | 3294 done |
45226 | 3295 ;; |
3296 esac | |
3297 done | |
25897 | 3298 |
3299 fi | |
3300 if test "${ac_cv_path_install+set}" = set; then | |
40056 | 3301 INSTALL=$ac_cv_path_install |
25897 | 3302 else |
3303 # As a last resort, use the slow shell script. We don't cache a | |
3304 # path for INSTALL within a source directory, because that will | |
3305 # break other packages using the cache if that directory is | |
3306 # removed, or if the path is relative. | |
40056 | 3307 INSTALL=$ac_install_sh |
3308 fi | |
3309 fi | |
46596 | 3310 echo "$as_me:3310: result: $INSTALL" >&5 |
40056 | 3311 echo "${ECHO_T}$INSTALL" >&6 |
25897 | 3312 |
3313 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3314 # It thinks the first close brace ends the variable substitution. | |
3315 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3316 | |
40056 | 3317 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
27205 | 3318 |
25897 | 3319 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3320 | |
3321 for ac_prog in 'bison -y' byacc | |
3322 do | |
40056 | 3323 # Extract the first word of "$ac_prog", so it can be a program name with args. |
25897 | 3324 set dummy $ac_prog; ac_word=$2 |
46596 | 3325 echo "$as_me:3325: checking for $ac_word" >&5 |
40056 | 3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3327 if test "${ac_cv_prog_YACC+set}" = set; then | |
3328 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 3329 else |
3330 if test -n "$YACC"; then | |
3331 ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
3332 else | |
45226 | 3333 ac_save_IFS=$IFS; IFS=$ac_path_separator |
3334 ac_dummy="$PATH" | |
3335 for ac_dir in $ac_dummy; do | |
3336 IFS=$ac_save_IFS | |
3337 test -z "$ac_dir" && ac_dir=. | |
3338 $as_executable_p "$ac_dir/$ac_word" || continue | |
3339 ac_cv_prog_YACC="$ac_prog" | |
46596 | 3340 echo "$as_me:3340: found $ac_dir/$ac_word" >&5 |
45226 | 3341 break |
40056 | 3342 done |
3343 | |
3344 fi | |
3345 fi | |
3346 YACC=$ac_cv_prog_YACC | |
25897 | 3347 if test -n "$YACC"; then |
46596 | 3348 echo "$as_me:3348: result: $YACC" >&5 |
40056 | 3349 echo "${ECHO_T}$YACC" >&6 |
3350 else | |
46596 | 3351 echo "$as_me:3351: result: no" >&5 |
40056 | 3352 echo "${ECHO_T}no" >&6 |
3353 fi | |
3354 | |
3355 test -n "$YACC" && break | |
25897 | 3356 done |
3357 test -n "$YACC" || YACC="yacc" | |
3358 | |
28060 | 3359 if test "x$RANLIB" = x; then |
40056 | 3360 if test -n "$ac_tool_prefix"; then |
3361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3362 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
46596 | 3363 echo "$as_me:3363: checking for $ac_word" >&5 |
40056 | 3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3365 if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3366 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28060 | 3367 else |
3368 if test -n "$RANLIB"; then | |
3369 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3370 else | |
45226 | 3371 ac_save_IFS=$IFS; IFS=$ac_path_separator |
3372 ac_dummy="$PATH" | |
3373 for ac_dir in $ac_dummy; do | |
3374 IFS=$ac_save_IFS | |
3375 test -z "$ac_dir" && ac_dir=. | |
3376 $as_executable_p "$ac_dir/$ac_word" || continue | |
3377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
46596 | 3378 echo "$as_me:3378: found $ac_dir/$ac_word" >&5 |
45226 | 3379 break |
40056 | 3380 done |
3381 | |
3382 fi | |
3383 fi | |
3384 RANLIB=$ac_cv_prog_RANLIB | |
28060 | 3385 if test -n "$RANLIB"; then |
46596 | 3386 echo "$as_me:3386: result: $RANLIB" >&5 |
40056 | 3387 echo "${ECHO_T}$RANLIB" >&6 |
3388 else | |
46596 | 3389 echo "$as_me:3389: result: no" >&5 |
40056 | 3390 echo "${ECHO_T}no" >&6 |
3391 fi | |
3392 | |
3393 fi | |
3394 if test -z "$ac_cv_prog_RANLIB"; then | |
3395 ac_ct_RANLIB=$RANLIB | |
3396 # Extract the first word of "ranlib", so it can be a program name with args. | |
3397 set dummy ranlib; ac_word=$2 | |
46596 | 3398 echo "$as_me:3398: checking for $ac_word" >&5 |
40056 | 3399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3400 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3401 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3402 else | |
3403 if test -n "$ac_ct_RANLIB"; then | |
3404 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3405 else | |
45226 | 3406 ac_save_IFS=$IFS; IFS=$ac_path_separator |
3407 ac_dummy="$PATH" | |
3408 for ac_dir in $ac_dummy; do | |
3409 IFS=$ac_save_IFS | |
3410 test -z "$ac_dir" && ac_dir=. | |
3411 $as_executable_p "$ac_dir/$ac_word" || continue | |
3412 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
46596 | 3413 echo "$as_me:3413: found $ac_dir/$ac_word" >&5 |
45226 | 3414 break |
40056 | 3415 done |
3416 | |
3417 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3418 fi | |
3419 fi | |
3420 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3421 if test -n "$ac_ct_RANLIB"; then | |
46596 | 3422 echo "$as_me:3422: result: $ac_ct_RANLIB" >&5 |
40056 | 3423 echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
3424 else | |
46596 | 3425 echo "$as_me:3425: result: no" >&5 |
40056 | 3426 echo "${ECHO_T}no" >&6 |
3427 fi | |
3428 | |
3429 RANLIB=$ac_ct_RANLIB | |
3430 else | |
3431 RANLIB="$ac_cv_prog_RANLIB" | |
3432 fi | |
3433 | |
3434 fi | |
3435 | |
46596 | 3436 echo "$as_me:3436: checking for AIX" >&5 |
40056 | 3437 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
3438 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 3439 #line 3439 "configure" |
25897 | 3440 #include "confdefs.h" |
3441 #ifdef _AIX | |
3442 yes | |
3443 #endif | |
3444 | |
40056 | 3445 _ACEOF |
25897 | 3446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3447 egrep "yes" >/dev/null 2>&1; then | |
46596 | 3448 echo "$as_me:3448: result: yes" >&5 |
40056 | 3449 echo "${ECHO_T}yes" >&6 |
45226 | 3450 cat >>confdefs.h <<\EOF |
25897 | 3451 #define _ALL_SOURCE 1 |
45226 | 3452 EOF |
3453 | |
3454 else | |
46596 | 3455 echo "$as_me:3455: result: no" >&5 |
40056 | 3456 echo "${ECHO_T}no" >&6 |
25897 | 3457 fi |
3458 rm -f conftest* | |
3459 | |
30311 | 3460 #### Extract some information from the operating system and machine files. |
3461 | |
46596 | 3462 { echo "$as_me:3462: checking the machine- and system-dependent files to find out |
30311 | 3463 - which libraries the lib-src programs will want, and |
40056 | 3464 - whether the GNU malloc routines are usable..." >&5 |
3465 echo "$as_me: checking the machine- and system-dependent files to find out | |
30311 | 3466 - which libraries the lib-src programs will want, and |
40056 | 3467 - whether the GNU malloc routines are usable..." >&6;} |
30311 | 3468 |
3469 ### First figure out CFLAGS (which we use for running the compiler here) | |
3470 ### and REAL_CFLAGS (which we use for real compilation). | |
3471 ### The two are the same except on a few systems, where they are made | |
3472 ### different to work around various lossages. For example, | |
3473 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
3474 ### as implying static linking. | |
3475 | |
3476 ### If the CFLAGS env var is specified, we use that value | |
3477 ### instead of the default. | |
3478 | |
3479 ### It's not important that this name contain the PID; you can't run | |
3480 ### two configures in the same directory and have anything work | |
3481 ### anyway. | |
3482 tempcname="conftest.c" | |
3483 | |
3484 echo ' | |
3485 #include "'${srcdir}'/src/'${opsysfile}'" | |
3486 #include "'${srcdir}'/src/'${machfile}'" | |
3487 #ifndef LIBS_MACHINE | |
3488 #define LIBS_MACHINE | |
3489 #endif | |
3490 #ifndef LIBS_SYSTEM | |
3491 #define LIBS_SYSTEM | |
3492 #endif | |
3493 #ifndef C_SWITCH_SYSTEM | |
3494 #define C_SWITCH_SYSTEM | |
3495 #endif | |
3496 #ifndef C_SWITCH_MACHINE | |
3497 #define C_SWITCH_MACHINE | |
3498 #endif | |
3499 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
3500 configure___ c_switch_system=C_SWITCH_SYSTEM | |
3501 configure___ c_switch_machine=C_SWITCH_MACHINE | |
3502 | |
3503 #ifndef LIB_X11_LIB | |
3504 #define LIB_X11_LIB -lX11 | |
3505 #endif | |
3506 | |
3507 #ifndef LIBX11_MACHINE | |
3508 #define LIBX11_MACHINE | |
3509 #endif | |
3510 | |
3511 #ifndef LIBX11_SYSTEM | |
3512 #define LIBX11_SYSTEM | |
3513 #endif | |
3514 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
3515 | |
3516 #ifdef UNEXEC | |
3517 configure___ unexec=UNEXEC | |
3518 #else | |
3519 configure___ unexec=unexec.o | |
3520 #endif | |
3521 | |
3522 #ifdef SYSTEM_MALLOC | |
3523 configure___ system_malloc=yes | |
3524 #else | |
3525 configure___ system_malloc=no | |
3526 #endif | |
3527 | |
31607 | 3528 #ifdef USE_MMAP_FOR_BUFFERS |
3529 configure___ use_mmap_for_buffers=yes | |
31417 | 3530 #else |
31607 | 3531 configure___ use_mmap_for_buffers=no |
31417 | 3532 #endif |
3533 | |
30311 | 3534 #ifndef C_DEBUG_SWITCH |
3535 #define C_DEBUG_SWITCH -g | |
3536 #endif | |
3537 | |
3538 #ifndef C_OPTIMIZE_SWITCH | |
3539 #ifdef __GNUC__ | |
3540 #define C_OPTIMIZE_SWITCH -O2 | |
3541 #else | |
3542 #define C_OPTIMIZE_SWITCH -O | |
3543 #endif | |
3544 #endif | |
3545 | |
3546 #ifndef LD_SWITCH_MACHINE | |
3547 #define LD_SWITCH_MACHINE | |
3548 #endif | |
3549 | |
3550 #ifndef LD_SWITCH_SYSTEM | |
3551 #define LD_SWITCH_SYSTEM | |
3552 #endif | |
3553 | |
3554 #ifndef LD_SWITCH_X_SITE_AUX | |
3555 #define LD_SWITCH_X_SITE_AUX | |
40056 | 3556 #endif |
30311 | 3557 |
3558 configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
3559 configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
3560 | |
3561 #ifdef THIS_IS_CONFIGURE | |
3562 | |
3563 /* Get the CFLAGS for tests in configure. */ | |
3564 #ifdef __GNUC__ | |
3565 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3566 #else | |
3567 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3568 #endif | |
3569 | |
3570 #else /* not THIS_IS_CONFIGURE */ | |
3571 | |
3572 /* Get the CFLAGS for real compilation. */ | |
3573 #ifdef __GNUC__ | |
3574 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3575 #else | |
3576 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3577 #endif | |
3578 | |
3579 #endif /* not THIS_IS_CONFIGURE */ | |
3580 ' > ${tempcname} | |
3581 | |
3582 # The value of CPP is a quoted variable reference, so we need to do this | |
3583 # to get its actual value... | |
3584 CPP=`eval "echo $CPP"` | |
3585 eval `${CPP} -Isrc ${tempcname} \ | |
3586 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3587 if test "x$SPECIFIED_CFLAGS" = x; then | |
3588 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
3589 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3590 else | |
3591 REAL_CFLAGS="$CFLAGS" | |
3592 fi | |
3593 rm ${tempcname} | |
3594 | |
3595 ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
3596 | |
3597 ### Make sure subsequent tests use flags consistent with the build flags. | |
3598 | |
3599 if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
3600 CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
3601 else | |
3602 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
3603 fi | |
3604 | |
40056 | 3605 # Check whether --enable-largefile or --disable-largefile was given. |
30576 | 3606 if test "${enable_largefile+set}" = set; then |
3607 enableval="$enable_largefile" | |
40056 | 3608 |
3609 fi; | |
3610 if test "$enable_largefile" != no; then | |
3611 | |
46596 | 3612 echo "$as_me:3612: checking for special C compiler options needed for large files" >&5 |
40056 | 3613 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
3614 if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
3615 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30576 | 3616 else |
3617 ac_cv_sys_largefile_CC=no | |
40056 | 3618 if test "$GCC" != yes; then |
3619 ac_save_CC=$CC | |
3620 while :; do | |
3621 # IRIX 6.2 and later do not support large files by default, | |
3622 # so use the C compiler's -n32 option if that helps. | |
3623 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 3624 #line 3624 "configure" |
30576 | 3625 #include "confdefs.h" |
3626 #include <sys/types.h> | |
40056 | 3627 /* Check that off_t can represent 2**63 - 1 correctly. |
3628 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3629 since some C++ compilers masquerading as C compilers | |
3630 incorrectly reject 9223372036854775807. */ | |
3631 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3632 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3633 && LARGE_OFF_T % 2147483647 == 1) | |
3634 ? 1 : -1]; | |
3635 int | |
3636 main () | |
3637 { | |
3638 | |
3639 ; | |
3640 return 0; | |
3641 } | |
3642 _ACEOF | |
3643 rm -f conftest.$ac_objext | |
46596 | 3644 if { (eval echo "$as_me:3644: \"$ac_compile\"") >&5 |
3645 (eval $ac_compile) 2>&5 | |
3646 ac_status=$? | |
3647 echo "$as_me:3647: \$? = $ac_status" >&5 | |
3648 (exit $ac_status); } && | |
3649 { ac_try='test -s conftest.$ac_objext' | |
3650 { (eval echo "$as_me:3650: \"$ac_try\"") >&5 | |
3651 (eval $ac_try) 2>&5 | |
3652 ac_status=$? | |
3653 echo "$as_me:3653: \$? = $ac_status" >&5 | |
3654 (exit $ac_status); }; }; then | |
3655 break | |
3656 else | |
3657 echo "$as_me: failed program was:" >&5 | |
3658 cat conftest.$ac_ext >&5 | |
3659 fi | |
3660 rm -f conftest.$ac_objext | |
3661 CC="$CC -n32" | |
3662 rm -f conftest.$ac_objext | |
45668 | 3663 if { (eval echo "$as_me:3663: \"$ac_compile\"") >&5 |
44493 | 3664 (eval $ac_compile) 2>&5 |
3665 ac_status=$? | |
45668 | 3666 echo "$as_me:3666: \$? = $ac_status" >&5 |
44493 | 3667 (exit $ac_status); } && |
3668 { ac_try='test -s conftest.$ac_objext' | |
45668 | 3669 { (eval echo "$as_me:3669: \"$ac_try\"") >&5 |
3670 (eval $ac_try) 2>&5 | |
3671 ac_status=$? | |
3672 echo "$as_me:3672: \$? = $ac_status" >&5 | |
40056 | 3673 (exit $ac_status); }; }; then |
3674 ac_cv_sys_largefile_CC=' -n32'; break | |
3675 else | |
3676 echo "$as_me: failed program was:" >&5 | |
3677 cat conftest.$ac_ext >&5 | |
3678 fi | |
3679 rm -f conftest.$ac_objext | |
3680 break | |
3681 done | |
3682 CC=$ac_save_CC | |
3683 rm -f conftest.$ac_ext | |
3684 fi | |
3685 fi | |
46596 | 3686 echo "$as_me:3686: result: $ac_cv_sys_largefile_CC" >&5 |
40056 | 3687 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
3688 if test "$ac_cv_sys_largefile_CC" != no; then | |
3689 CC=$CC$ac_cv_sys_largefile_CC | |
3690 fi | |
3691 | |
46596 | 3692 echo "$as_me:3692: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
40056 | 3693 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
3694 if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
3695 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3696 else | |
3697 while :; do | |
30576 | 3698 ac_cv_sys_file_offset_bits=no |
40056 | 3699 cat >conftest.$ac_ext <<_ACEOF |
46596 | 3700 #line 3700 "configure" |
30576 | 3701 #include "confdefs.h" |
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]; | |
44493 | 3711 int |
3712 main () | |
3713 { | |
3714 | |
3715 ; | |
3716 return 0; | |
3717 } | |
3718 _ACEOF | |
3719 rm -f conftest.$ac_objext | |
46596 | 3720 if { (eval echo "$as_me:3720: \"$ac_compile\"") >&5 |
44493 | 3721 (eval $ac_compile) 2>&5 |
3722 ac_status=$? | |
46596 | 3723 echo "$as_me:3723: \$? = $ac_status" >&5 |
44493 | 3724 (exit $ac_status); } && |
3725 { ac_try='test -s conftest.$ac_objext' | |
46596 | 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 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 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 3738 #line 3738 "configure" |
30576 | 3739 #include "confdefs.h" |
3740 #define _FILE_OFFSET_BITS 64 | |
3741 #include <sys/types.h> | |
40056 | 3742 /* Check that off_t can represent 2**63 - 1 correctly. |
3743 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3744 since some C++ compilers masquerading as C compilers | |
3745 incorrectly reject 9223372036854775807. */ | |
3746 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3747 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3748 && LARGE_OFF_T % 2147483647 == 1) | |
3749 ? 1 : -1]; | |
44493 | 3750 int |
3751 main () | |
3752 { | |
3753 | |
3754 ; | |
3755 return 0; | |
3756 } | |
3757 _ACEOF | |
3758 rm -f conftest.$ac_objext | |
46596 | 3759 if { (eval echo "$as_me:3759: \"$ac_compile\"") >&5 |
44493 | 3760 (eval $ac_compile) 2>&5 |
3761 ac_status=$? | |
46596 | 3762 echo "$as_me:3762: \$? = $ac_status" >&5 |
44493 | 3763 (exit $ac_status); } && |
3764 { ac_try='test -s conftest.$ac_objext' | |
46596 | 3765 { (eval echo "$as_me:3765: \"$ac_try\"") >&5 |
3766 (eval $ac_try) 2>&5 | |
3767 ac_status=$? | |
3768 echo "$as_me:3768: \$? = $ac_status" >&5 | |
40056 | 3769 (exit $ac_status); }; }; then |
3770 ac_cv_sys_file_offset_bits=64; break | |
3771 else | |
3772 echo "$as_me: failed program was:" >&5 | |
3773 cat conftest.$ac_ext >&5 | |
3774 fi | |
3775 rm -f conftest.$ac_objext conftest.$ac_ext | |
3776 break | |
3777 done | |
3778 fi | |
46596 | 3779 echo "$as_me:3779: result: $ac_cv_sys_file_offset_bits" >&5 |
40056 | 3780 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
3781 if test "$ac_cv_sys_file_offset_bits" != no; then | |
3782 | |
45226 | 3783 cat >>confdefs.h <<EOF |
40056 | 3784 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
45226 | 3785 EOF |
40056 | 3786 |
30576 | 3787 fi |
3788 rm -f conftest* | |
46596 | 3789 echo "$as_me:3789: checking for _LARGE_FILES value needed for large files" >&5 |
40056 | 3790 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
3791 if test "${ac_cv_sys_large_files+set}" = set; then | |
3792 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3793 else | |
3794 while :; do | |
34431 | 3795 ac_cv_sys_large_files=no |
40056 | 3796 cat >conftest.$ac_ext <<_ACEOF |
46596 | 3797 #line 3797 "configure" |
40056 | 3798 #include "confdefs.h" |
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]; | |
44493 | 3808 int |
3809 main () | |
3810 { | |
3811 | |
3812 ; | |
3813 return 0; | |
3814 } | |
3815 _ACEOF | |
3816 rm -f conftest.$ac_objext | |
46596 | 3817 if { (eval echo "$as_me:3817: \"$ac_compile\"") >&5 |
44493 | 3818 (eval $ac_compile) 2>&5 |
3819 ac_status=$? | |
46596 | 3820 echo "$as_me:3820: \$? = $ac_status" >&5 |
44493 | 3821 (exit $ac_status); } && |
3822 { ac_try='test -s conftest.$ac_objext' | |
46596 | 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 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 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 3835 #line 3835 "configure" |
30576 | 3836 #include "confdefs.h" |
3837 #define _LARGE_FILES 1 | |
40056 | 3838 #include <sys/types.h> |
3839 /* Check that off_t can represent 2**63 - 1 correctly. | |
3840 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3841 since some C++ compilers masquerading as C compilers | |
3842 incorrectly reject 9223372036854775807. */ | |
3843 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3844 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3845 && LARGE_OFF_T % 2147483647 == 1) | |
3846 ? 1 : -1]; | |
44493 | 3847 int |
3848 main () | |
3849 { | |
3850 | |
3851 ; | |
3852 return 0; | |
3853 } | |
3854 _ACEOF | |
3855 rm -f conftest.$ac_objext | |
46596 | 3856 if { (eval echo "$as_me:3856: \"$ac_compile\"") >&5 |
44493 | 3857 (eval $ac_compile) 2>&5 |
3858 ac_status=$? | |
46596 | 3859 echo "$as_me:3859: \$? = $ac_status" >&5 |
44493 | 3860 (exit $ac_status); } && |
3861 { ac_try='test -s conftest.$ac_objext' | |
46596 | 3862 { (eval echo "$as_me:3862: \"$ac_try\"") >&5 |
3863 (eval $ac_try) 2>&5 | |
3864 ac_status=$? | |
3865 echo "$as_me:3865: \$? = $ac_status" >&5 | |
40056 | 3866 (exit $ac_status); }; }; then |
3867 ac_cv_sys_large_files=1; break | |
3868 else | |
3869 echo "$as_me: failed program was:" >&5 | |
3870 cat conftest.$ac_ext >&5 | |
3871 fi | |
3872 rm -f conftest.$ac_objext conftest.$ac_ext | |
3873 break | |
3874 done | |
3875 fi | |
46596 | 3876 echo "$as_me:3876: result: $ac_cv_sys_large_files" >&5 |
40056 | 3877 echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
3878 if test "$ac_cv_sys_large_files" != no; then | |
3879 | |
45226 | 3880 cat >>confdefs.h <<EOF |
40056 | 3881 #define _LARGE_FILES $ac_cv_sys_large_files |
45226 | 3882 EOF |
40056 | 3883 |
30576 | 3884 fi |
3885 rm -f conftest* | |
3886 fi | |
3887 | |
44435 | 3888 if test "${with_sound}" != "no"; then |
3889 # Sound support for GNU/Linux and the free BSDs. | |
45226 | 3890 |
3891 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
3892 do | |
3893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
46596 | 3894 echo "$as_me:3894: checking for $ac_header" >&5 |
45226 | 3895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3896 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3897 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3898 else | |
3899 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 3900 #line 3900 "configure" |
45226 | 3901 #include "confdefs.h" |
3902 #include <$ac_header> | |
3903 _ACEOF | |
46596 | 3904 if { (eval echo "$as_me:3904: \"$ac_cpp conftest.$ac_ext\"") >&5 |
45226 | 3905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3906 ac_status=$? | |
3907 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3908 rm -f conftest.er1 | |
3909 cat conftest.err >&5 | |
46596 | 3910 echo "$as_me:3910: \$? = $ac_status" >&5 |
45226 | 3911 (exit $ac_status); } >/dev/null; then |
3912 if test -s conftest.err; then | |
3913 ac_cpp_err=$ac_c_preproc_warn_flag | |
3914 else | |
3915 ac_cpp_err= | |
3916 fi | |
3917 else | |
3918 ac_cpp_err=yes | |
3919 fi | |
3920 if test -z "$ac_cpp_err"; then | |
3921 eval "$as_ac_Header=yes" | |
3922 else | |
3923 echo "$as_me: failed program was:" >&5 | |
3924 cat conftest.$ac_ext >&5 | |
3925 eval "$as_ac_Header=no" | |
3926 fi | |
3927 rm -f conftest.err conftest.$ac_ext | |
3928 fi | |
46596 | 3929 echo "$as_me:3929: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
45226 | 3930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3931 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3932 cat >>confdefs.h <<EOF | |
3933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3934 EOF | |
3935 | |
3936 fi | |
3937 done | |
3938 | |
3939 # Emulation library used on NetBSD. | |
46596 | 3940 echo "$as_me:3940: checking for _oss_ioctl in -lossaudio" >&5 |
45226 | 3941 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
3942 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | |
3943 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3944 else | |
3945 ac_check_lib_save_LIBS=$LIBS | |
3946 LIBS="-lossaudio $LIBS" | |
3947 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 3948 #line 3948 "configure" |
45226 | 3949 #include "confdefs.h" |
3950 | |
3951 /* Override any gcc2 internal prototype to avoid an error. */ | |
3952 #ifdef __cplusplus | |
3953 extern "C" | |
3954 #endif | |
3955 /* We use char because int might match the return type of a gcc2 | |
3956 builtin and then its argument prototype would still apply. */ | |
3957 char _oss_ioctl (); | |
3958 int | |
3959 main () | |
3960 { | |
3961 _oss_ioctl (); | |
3962 ; | |
3963 return 0; | |
3964 } | |
3965 _ACEOF | |
3966 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 3967 if { (eval echo "$as_me:3967: \"$ac_link\"") >&5 |
3968 (eval $ac_link) 2>&5 | |
3969 ac_status=$? | |
3970 echo "$as_me:3970: \$? = $ac_status" >&5 | |
45226 | 3971 (exit $ac_status); } && |
3972 { ac_try='test -s conftest$ac_exeext' | |
46596 | 3973 { (eval echo "$as_me:3973: \"$ac_try\"") >&5 |
3974 (eval $ac_try) 2>&5 | |
3975 ac_status=$? | |
3976 echo "$as_me:3976: \$? = $ac_status" >&5 | |
45226 | 3977 (exit $ac_status); }; }; then |
3978 ac_cv_lib_ossaudio__oss_ioctl=yes | |
3979 else | |
3980 echo "$as_me: failed program was:" >&5 | |
3981 cat conftest.$ac_ext >&5 | |
3982 ac_cv_lib_ossaudio__oss_ioctl=no | |
3983 fi | |
3984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3985 LIBS=$ac_check_lib_save_LIBS | |
3986 fi | |
46596 | 3987 echo "$as_me:3987: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
45226 | 3988 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
3989 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | |
3990 LIBSOUND=-lossaudio | |
3991 else | |
3992 LIBSOUND= | |
3993 fi | |
3994 | |
3995 fi | |
3996 | |
3997 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | |
3998 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | |
3999 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h | |
4000 do | |
4001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
46596 | 4002 echo "$as_me:4002: checking for $ac_header" >&5 |
45226 | 4003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4004 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4005 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4006 else | |
4007 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 4008 #line 4008 "configure" |
45226 | 4009 #include "confdefs.h" |
4010 #include <$ac_header> | |
4011 _ACEOF | |
46596 | 4012 if { (eval echo "$as_me:4012: \"$ac_cpp conftest.$ac_ext\"") >&5 |
45226 | 4013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4014 ac_status=$? | |
4015 egrep -v '^ *\+' conftest.er1 >conftest.err | |
4016 rm -f conftest.er1 | |
4017 cat conftest.err >&5 | |
46596 | 4018 echo "$as_me:4018: \$? = $ac_status" >&5 |
45226 | 4019 (exit $ac_status); } >/dev/null; then |
4020 if test -s conftest.err; then | |
4021 ac_cpp_err=$ac_c_preproc_warn_flag | |
4022 else | |
4023 ac_cpp_err= | |
4024 fi | |
4025 else | |
4026 ac_cpp_err=yes | |
4027 fi | |
4028 if test -z "$ac_cpp_err"; then | |
4029 eval "$as_ac_Header=yes" | |
4030 else | |
4031 echo "$as_me: failed program was:" >&5 | |
4032 cat conftest.$ac_ext >&5 | |
4033 eval "$as_ac_Header=no" | |
4034 fi | |
4035 rm -f conftest.err conftest.$ac_ext | |
4036 fi | |
46596 | 4037 echo "$as_me:4037: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
45226 | 4038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4039 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4040 cat >>confdefs.h <<EOF | |
4041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4042 EOF | |
4043 | |
4044 fi | |
4045 done | |
4046 | |
46596 | 4047 echo "$as_me:4047: checking for ANSI C header files" >&5 |
44493 | 4048 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4049 if test "${ac_cv_header_stdc+set}" = set; then | |
4050 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4051 else | |
4052 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 4053 #line 4053 "configure" |
44493 | 4054 #include "confdefs.h" |
4055 #include <stdlib.h> | |
4056 #include <stdarg.h> | |
4057 #include <string.h> | |
4058 #include <float.h> | |
4059 | |
4060 _ACEOF | |
46596 | 4061 if { (eval echo "$as_me:4061: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 4062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4063 ac_status=$? | |
4064 egrep -v '^ *\+' conftest.er1 >conftest.err | |
4065 rm -f conftest.er1 | |
4066 cat conftest.err >&5 | |
46596 | 4067 echo "$as_me:4067: \$? = $ac_status" >&5 |
40056 | 4068 (exit $ac_status); } >/dev/null; then |
4069 if test -s conftest.err; then | |
4070 ac_cpp_err=$ac_c_preproc_warn_flag | |
4071 else | |
4072 ac_cpp_err= | |
4073 fi | |
4074 else | |
4075 ac_cpp_err=yes | |
4076 fi | |
4077 if test -z "$ac_cpp_err"; then | |
25897 | 4078 ac_cv_header_stdc=yes |
4079 else | |
40056 | 4080 echo "$as_me: failed program was:" >&5 |
25897 | 4081 cat conftest.$ac_ext >&5 |
4082 ac_cv_header_stdc=no | |
4083 fi | |
40056 | 4084 rm -f conftest.err conftest.$ac_ext |
25897 | 4085 |
4086 if test $ac_cv_header_stdc = yes; then | |
4087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
40056 | 4088 cat >conftest.$ac_ext <<_ACEOF |
46596 | 4089 #line 4089 "configure" |
25897 | 4090 #include "confdefs.h" |
4091 #include <string.h> | |
40056 | 4092 |
4093 _ACEOF | |
25897 | 4094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4095 egrep "memchr" >/dev/null 2>&1; then | |
4096 : | |
4097 else | |
4098 ac_cv_header_stdc=no | |
4099 fi | |
4100 rm -f conftest* | |
4101 | |
4102 fi | |
4103 | |
4104 if test $ac_cv_header_stdc = yes; then | |
4105 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
40056 | 4106 cat >conftest.$ac_ext <<_ACEOF |
46596 | 4107 #line 4107 "configure" |
25897 | 4108 #include "confdefs.h" |
4109 #include <stdlib.h> | |
40056 | 4110 |
4111 _ACEOF | |
25897 | 4112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4113 egrep "free" >/dev/null 2>&1; then | |
4114 : | |
4115 else | |
4116 ac_cv_header_stdc=no | |
4117 fi | |
4118 rm -f conftest* | |
4119 | |
4120 fi | |
4121 | |
4122 if test $ac_cv_header_stdc = yes; then | |
4123 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
40056 | 4124 if test "$cross_compiling" = yes; then |
25897 | 4125 : |
4126 else | |
40056 | 4127 cat >conftest.$ac_ext <<_ACEOF |
46596 | 4128 #line 4128 "configure" |
25897 | 4129 #include "confdefs.h" |
4130 #include <ctype.h> | |
40056 | 4131 #if ((' ' & 0x0FF) == 0x020) |
4132 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4133 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4134 #else | |
4135 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4136 || ('j' <= (c) && (c) <= 'r') \ | |
4137 || ('s' <= (c) && (c) <= 'z')) | |
4138 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4139 #endif | |
4140 | |
25897 | 4141 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
40056 | 4142 int |
4143 main () | |
4144 { | |
4145 int i; | |
4146 for (i = 0; i < 256; i++) | |
4147 if (XOR (islower (i), ISLOWER (i)) | |
4148 || toupper (i) != TOUPPER (i)) | |
4149 exit(2); | |
4150 exit (0); | |
4151 } | |
4152 _ACEOF | |
4153 rm -f conftest$ac_exeext | |
46596 | 4154 if { (eval echo "$as_me:4154: \"$ac_link\"") >&5 |
4155 (eval $ac_link) 2>&5 | |
4156 ac_status=$? | |
4157 echo "$as_me:4157: \$? = $ac_status" >&5 | |
45668 | 4158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
46596 | 4159 { (eval echo "$as_me:4159: \"$ac_try\"") >&5 |
4160 (eval $ac_try) 2>&5 | |
4161 ac_status=$? | |
4162 echo "$as_me:4162: \$? = $ac_status" >&5 | |
40056 | 4163 (exit $ac_status); }; }; then |
25897 | 4164 : |
4165 else | |
40056 | 4166 echo "$as_me: program exited with status $ac_status" >&5 |
4167 echo "$as_me: failed program was:" >&5 | |
4168 cat conftest.$ac_ext >&5 | |
4169 ac_cv_header_stdc=no | |
4170 fi | |
4171 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4172 fi | |
4173 fi | |
4174 fi | |
46596 | 4175 echo "$as_me:4175: result: $ac_cv_header_stdc" >&5 |
40056 | 4176 echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
25897 | 4177 if test $ac_cv_header_stdc = yes; then |
40056 | 4178 |
45226 | 4179 cat >>confdefs.h <<\EOF |
25897 | 4180 #define STDC_HEADERS 1 |
45226 | 4181 EOF |
4182 | |
4183 fi | |
4184 | |
46596 | 4185 echo "$as_me:4185: checking whether time.h and sys/time.h may both be included" >&5 |
40056 | 4186 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
4187 if test "${ac_cv_header_time+set}" = set; then | |
4188 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4189 else | |
4190 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 4191 #line 4191 "configure" |
25897 | 4192 #include "confdefs.h" |
4193 #include <sys/types.h> | |
4194 #include <sys/time.h> | |
4195 #include <time.h> | |
40056 | 4196 |
4197 int | |
4198 main () | |
4199 { | |
4200 if ((struct tm *) 0) | |
4201 return 0; | |
4202 ; | |
4203 return 0; | |
4204 } | |
4205 _ACEOF | |
4206 rm -f conftest.$ac_objext | |
46596 | 4207 if { (eval echo "$as_me:4207: \"$ac_compile\"") >&5 |
44493 | 4208 (eval $ac_compile) 2>&5 |
4209 ac_status=$? | |
46596 | 4210 echo "$as_me:4210: \$? = $ac_status" >&5 |
44493 | 4211 (exit $ac_status); } && |
4212 { ac_try='test -s conftest.$ac_objext' | |
46596 | 4213 { (eval echo "$as_me:4213: \"$ac_try\"") >&5 |
4214 (eval $ac_try) 2>&5 | |
4215 ac_status=$? | |
4216 echo "$as_me:4216: \$? = $ac_status" >&5 | |
40056 | 4217 (exit $ac_status); }; }; then |
25897 | 4218 ac_cv_header_time=yes |
4219 else | |
40056 | 4220 echo "$as_me: failed program was:" >&5 |
4221 cat conftest.$ac_ext >&5 | |
4222 ac_cv_header_time=no | |
4223 fi | |
4224 rm -f conftest.$ac_objext conftest.$ac_ext | |
4225 fi | |
46596 | 4226 echo "$as_me:4226: result: $ac_cv_header_time" >&5 |
40056 | 4227 echo "${ECHO_T}$ac_cv_header_time" >&6 |
25897 | 4228 if test $ac_cv_header_time = yes; then |
40056 | 4229 |
45226 | 4230 cat >>confdefs.h <<\EOF |
25897 | 4231 #define TIME_WITH_SYS_TIME 1 |
45226 | 4232 EOF |
4233 | |
4234 fi | |
4235 | |
46596 | 4236 echo "$as_me:4236: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
40056 | 4237 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6 |
4238 if test "${ac_cv_decl_sys_siglist+set}" = set; then | |
4239 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4240 else | |
4241 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 4242 #line 4242 "configure" |
25897 | 4243 #include "confdefs.h" |
4244 #include <sys/types.h> | |
4245 #include <signal.h> | |
4246 /* NetBSD declares sys_siglist in unistd.h. */ | |
40056 | 4247 #if HAVE_UNISTD_H |
4248 # include <unistd.h> | |
4249 #endif | |
4250 | |
4251 int | |
4252 main () | |
4253 { | |
25897 | 4254 char *msg = *(sys_siglist + 1); |
40056 | 4255 ; |
4256 return 0; | |
4257 } | |
4258 _ACEOF | |
4259 rm -f conftest.$ac_objext | |
46596 | 4260 if { (eval echo "$as_me:4260: \"$ac_compile\"") >&5 |
44493 | 4261 (eval $ac_compile) 2>&5 |
4262 ac_status=$? | |
46596 | 4263 echo "$as_me:4263: \$? = $ac_status" >&5 |
44493 | 4264 (exit $ac_status); } && |
4265 { ac_try='test -s conftest.$ac_objext' | |
46596 | 4266 { (eval echo "$as_me:4266: \"$ac_try\"") >&5 |
4267 (eval $ac_try) 2>&5 | |
4268 ac_status=$? | |
4269 echo "$as_me:4269: \$? = $ac_status" >&5 | |
40056 | 4270 (exit $ac_status); }; }; then |
25897 | 4271 ac_cv_decl_sys_siglist=yes |
4272 else | |
40056 | 4273 echo "$as_me: failed program was:" >&5 |
4274 cat conftest.$ac_ext >&5 | |
4275 ac_cv_decl_sys_siglist=no | |
4276 fi | |
4277 rm -f conftest.$ac_objext conftest.$ac_ext | |
4278 fi | |
46596 | 4279 echo "$as_me:4279: result: $ac_cv_decl_sys_siglist" >&5 |
40056 | 4280 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6 |
25897 | 4281 if test $ac_cv_decl_sys_siglist = yes; then |
40056 | 4282 |
45226 | 4283 cat >>confdefs.h <<\EOF |
25897 | 4284 #define SYS_SIGLIST_DECLARED 1 |
45226 | 4285 EOF |
4286 | |
4287 fi | |
4288 | |
46596 | 4289 echo "$as_me:4289: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
40056 | 4290 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
4291 if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
4292 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4293 else | |
4294 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 4295 #line 4295 "configure" |
30069 | 4296 #include "confdefs.h" |
4297 #include <sys/types.h> | |
4298 #include <sys/wait.h> | |
4299 #ifndef WEXITSTATUS | |
40056 | 4300 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
30069 | 4301 #endif |
4302 #ifndef WIFEXITED | |
40056 | 4303 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
4304 #endif | |
4305 | |
4306 int | |
4307 main () | |
4308 { | |
4309 int s; | |
4310 wait (&s); | |
4311 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4312 ; | |
4313 return 0; | |
4314 } | |
4315 _ACEOF | |
4316 rm -f conftest.$ac_objext | |
46596 | 4317 if { (eval echo "$as_me:4317: \"$ac_compile\"") >&5 |
44493 | 4318 (eval $ac_compile) 2>&5 |
4319 ac_status=$? | |
46596 | 4320 echo "$as_me:4320: \$? = $ac_status" >&5 |
44493 | 4321 (exit $ac_status); } && |
4322 { ac_try='test -s conftest.$ac_objext' | |
46596 | 4323 { (eval echo "$as_me:4323: \"$ac_try\"") >&5 |
4324 (eval $ac_try) 2>&5 | |
4325 ac_status=$? | |
4326 echo "$as_me:4326: \$? = $ac_status" >&5 | |
40056 | 4327 (exit $ac_status); }; }; then |
30069 | 4328 ac_cv_header_sys_wait_h=yes |
4329 else | |
40056 | 4330 echo "$as_me: failed program was:" >&5 |
4331 cat conftest.$ac_ext >&5 | |
4332 ac_cv_header_sys_wait_h=no | |
4333 fi | |
4334 rm -f conftest.$ac_objext conftest.$ac_ext | |
4335 fi | |
46596 | 4336 echo "$as_me:4336: result: $ac_cv_header_sys_wait_h" >&5 |
40056 | 4337 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
30069 | 4338 if test $ac_cv_header_sys_wait_h = yes; then |
40056 | 4339 |
45226 | 4340 cat >>confdefs.h <<\EOF |
30069 | 4341 #define HAVE_SYS_WAIT_H 1 |
45226 | 4342 EOF |
4343 | |
4344 fi | |
4345 | |
46596 | 4346 echo "$as_me:4346: checking for struct utimbuf" >&5 |
40056 | 4347 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 |
4348 if test "${emacs_cv_struct_utimbuf+set}" = set; then | |
4349 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4350 else | |
4351 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 4352 #line 4352 "configure" |
25897 | 4353 #include "confdefs.h" |
4354 #ifdef TIME_WITH_SYS_TIME | |
4355 #include <sys/time.h> | |
4356 #include <time.h> | |
4357 #else | |
4358 #ifdef HAVE_SYS_TIME_H | |
4359 #include <sys/time.h> | |
4360 #else | |
4361 #include <time.h> | |
4362 #endif | |
4363 #endif | |
4364 #ifdef HAVE_UTIME_H | |
4365 #include <utime.h> | |
4366 #endif | |
40056 | 4367 int |
4368 main () | |
4369 { | |
25897 | 4370 static struct utimbuf x; x.actime = x.modtime; |
40056 | 4371 ; |
4372 return 0; | |
4373 } | |
4374 _ACEOF | |
4375 rm -f conftest.$ac_objext | |
46596 | 4376 if { (eval echo "$as_me:4376: \"$ac_compile\"") >&5 |
44493 | 4377 (eval $ac_compile) 2>&5 |
4378 ac_status=$? | |
46596 | 4379 echo "$as_me:4379: \$? = $ac_status" >&5 |
44493 | 4380 (exit $ac_status); } && |
4381 { ac_try='test -s conftest.$ac_objext' | |
46596 | 4382 { (eval echo "$as_me:4382: \"$ac_try\"") >&5 |
4383 (eval $ac_try) 2>&5 | |
4384 ac_status=$? | |
4385 echo "$as_me:4385: \$? = $ac_status" >&5 | |
40056 | 4386 (exit $ac_status); }; }; then |
25897 | 4387 emacs_cv_struct_utimbuf=yes |
4388 else | |
40056 | 4389 echo "$as_me: failed program was:" >&5 |
4390 cat conftest.$ac_ext >&5 | |
4391 emacs_cv_struct_utimbuf=no | |
4392 fi | |
4393 rm -f conftest.$ac_objext conftest.$ac_ext | |
4394 fi | |
46596 | 4395 echo "$as_me:4395: result: $emacs_cv_struct_utimbuf" >&5 |
40056 | 4396 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 |
25897 | 4397 if test $emacs_cv_struct_utimbuf = yes; then |
44569 | 4398 |
45226 | 4399 cat >>confdefs.h <<\EOF |
25897 | 4400 #define HAVE_STRUCT_UTIMBUF 1 |
45226 | 4401 EOF |
4402 | |
4403 fi | |
4404 | |
46596 | 4405 echo "$as_me:4405: checking return type of signal handlers" >&5 |
40056 | 4406 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
4407 if test "${ac_cv_type_signal+set}" = set; then | |
4408 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4409 else | |
4410 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 4411 #line 4411 "configure" |
25897 | 4412 #include "confdefs.h" |
4413 #include <sys/types.h> | |
4414 #include <signal.h> | |
4415 #ifdef signal | |
40056 | 4416 # undef signal |
25897 | 4417 #endif |
4418 #ifdef __cplusplus | |
4419 extern "C" void (*signal (int, void (*)(int)))(int); | |
4420 #else | |
4421 void (*signal ()) (); | |
4422 #endif | |
4423 | |
40056 | 4424 int |
4425 main () | |
4426 { | |
25897 | 4427 int i; |
40056 | 4428 ; |
4429 return 0; | |
4430 } | |
4431 _ACEOF | |
4432 rm -f conftest.$ac_objext | |
46596 | 4433 if { (eval echo "$as_me:4433: \"$ac_compile\"") >&5 |
44493 | 4434 (eval $ac_compile) 2>&5 |
4435 ac_status=$? | |
46596 | 4436 echo "$as_me:4436: \$? = $ac_status" >&5 |
44493 | 4437 (exit $ac_status); } && |
4438 { ac_try='test -s conftest.$ac_objext' | |
46596 | 4439 { (eval echo "$as_me:4439: \"$ac_try\"") >&5 |
4440 (eval $ac_try) 2>&5 | |
4441 ac_status=$? | |
4442 echo "$as_me:4442: \$? = $ac_status" >&5 | |
40056 | 4443 (exit $ac_status); }; }; then |
25897 | 4444 ac_cv_type_signal=void |
4445 else | |
40056 | 4446 echo "$as_me: failed program was:" >&5 |
4447 cat conftest.$ac_ext >&5 | |
4448 ac_cv_type_signal=int | |
4449 fi | |
4450 rm -f conftest.$ac_objext conftest.$ac_ext | |
4451 fi | |
46596 | 4452 echo "$as_me:4452: result: $ac_cv_type_signal" >&5 |
40056 | 4453 echo "${ECHO_T}$ac_cv_type_signal" >&6 |
4454 | |
45226 | 4455 cat >>confdefs.h <<EOF |
25897 | 4456 #define RETSIGTYPE $ac_cv_type_signal |
45226 | 4457 EOF |
4458 | |
46596 | 4459 echo "$as_me:4459: checking for speed_t" >&5 |
40056 | 4460 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 |
4461 if test "${emacs_cv_speed_t+set}" = set; then | |
4462 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4463 else | |
4464 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 4465 #line 4465 "configure" |
29254 | 4466 #include "confdefs.h" |
4467 #include <termios.h> | |
40056 | 4468 int |
4469 main () | |
4470 { | |
29254 | 4471 speed_t x = 1; |
40056 | 4472 ; |
4473 return 0; | |
4474 } | |
4475 _ACEOF | |
4476 rm -f conftest.$ac_objext | |
46596 | 4477 if { (eval echo "$as_me:4477: \"$ac_compile\"") >&5 |
44493 | 4478 (eval $ac_compile) 2>&5 |
4479 ac_status=$? | |
46596 | 4480 echo "$as_me:4480: \$? = $ac_status" >&5 |
44493 | 4481 (exit $ac_status); } && |
4482 { ac_try='test -s conftest.$ac_objext' | |
46596 | 4483 { (eval echo "$as_me:4483: \"$ac_try\"") >&5 |
4484 (eval $ac_try) 2>&5 | |
4485 ac_status=$? | |
4486 echo "$as_me:4486: \$? = $ac_status" >&5 | |
40056 | 4487 (exit $ac_status); }; }; then |
29254 | 4488 emacs_cv_speed_t=yes |
4489 else | |
40056 | 4490 echo "$as_me: failed program was:" >&5 |
4491 cat conftest.$ac_ext >&5 | |
4492 emacs_cv_speed_t=no | |
4493 fi | |
4494 rm -f conftest.$ac_objext conftest.$ac_ext | |
4495 fi | |
46596 | 4496 echo "$as_me:4496: result: $emacs_cv_speed_t" >&5 |
40056 | 4497 echo "${ECHO_T}$emacs_cv_speed_t" >&6 |
29254 | 4498 if test $emacs_cv_speed_t = yes; then |
44569 | 4499 |
45226 | 4500 cat >>confdefs.h <<\EOF |
29254 | 4501 #define HAVE_SPEED_T 1 |
45226 | 4502 EOF |
4503 | |
4504 fi | |
4505 | |
46596 | 4506 echo "$as_me:4506: checking for struct timeval" >&5 |
40056 | 4507 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 |
4508 if test "${emacs_cv_struct_timeval+set}" = set; then | |
4509 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4510 else | |
4511 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 4512 #line 4512 "configure" |
25897 | 4513 #include "confdefs.h" |
4514 #ifdef TIME_WITH_SYS_TIME | |
4515 #include <sys/time.h> | |
4516 #include <time.h> | |
4517 #else | |
4518 #ifdef HAVE_SYS_TIME_H | |
4519 #include <sys/time.h> | |
4520 #else | |
4521 #include <time.h> | |
4522 #endif | |
4523 #endif | |
40056 | 4524 int |
4525 main () | |
4526 { | |
25897 | 4527 static struct timeval x; x.tv_sec = x.tv_usec; |
40056 | 4528 ; |
4529 return 0; | |
4530 } | |
4531 _ACEOF | |
4532 rm -f conftest.$ac_objext | |
46596 | 4533 if { (eval echo "$as_me:4533: \"$ac_compile\"") >&5 |
44493 | 4534 (eval $ac_compile) 2>&5 |
4535 ac_status=$? | |
46596 | 4536 echo "$as_me:4536: \$? = $ac_status" >&5 |
44493 | 4537 (exit $ac_status); } && |
4538 { ac_try='test -s conftest.$ac_objext' | |
46596 | 4539 { (eval echo "$as_me:4539: \"$ac_try\"") >&5 |
4540 (eval $ac_try) 2>&5 | |
4541 ac_status=$? | |
4542 echo "$as_me:4542: \$? = $ac_status" >&5 | |
40056 | 4543 (exit $ac_status); }; }; then |
25897 | 4544 emacs_cv_struct_timeval=yes |
4545 else | |
40056 | 4546 echo "$as_me: failed program was:" >&5 |
4547 cat conftest.$ac_ext >&5 | |
4548 emacs_cv_struct_timeval=no | |
4549 fi | |
4550 rm -f conftest.$ac_objext conftest.$ac_ext | |
4551 fi | |
46596 | 4552 echo "$as_me:4552: result: $emacs_cv_struct_timeval" >&5 |
40056 | 4553 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 |
25897 | 4554 HAVE_TIMEVAL=$emacs_cv_struct_timeval |
4555 if test $emacs_cv_struct_timeval = yes; then | |
44569 | 4556 |
45226 | 4557 cat >>confdefs.h <<\EOF |
25897 | 4558 #define HAVE_TIMEVAL 1 |
45226 | 4559 EOF |
4560 | |
4561 fi | |
4562 | |
46596 | 4563 echo "$as_me:4563: checking for struct exception" >&5 |
40056 | 4564 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 |
4565 if test "${emacs_cv_struct_exception+set}" = set; then | |
4566 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4567 else | |
4568 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 4569 #line 4569 "configure" |
29388 | 4570 #include "confdefs.h" |
4571 #include <math.h> | |
40056 | 4572 int |
4573 main () | |
4574 { | |
29388 | 4575 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
40056 | 4576 ; |
4577 return 0; | |
4578 } | |
4579 _ACEOF | |
4580 rm -f conftest.$ac_objext | |
46596 | 4581 if { (eval echo "$as_me:4581: \"$ac_compile\"") >&5 |
44493 | 4582 (eval $ac_compile) 2>&5 |
4583 ac_status=$? | |
46596 | 4584 echo "$as_me:4584: \$? = $ac_status" >&5 |
44493 | 4585 (exit $ac_status); } && |
4586 { ac_try='test -s conftest.$ac_objext' | |
46596 | 4587 { (eval echo "$as_me:4587: \"$ac_try\"") >&5 |
4588 (eval $ac_try) 2>&5 | |
4589 ac_status=$? | |
4590 echo "$as_me:4590: \$? = $ac_status" >&5 | |
40056 | 4591 (exit $ac_status); }; }; then |
29388 | 4592 emacs_cv_struct_exception=yes |
4593 else | |
40056 | 4594 echo "$as_me: failed program was:" >&5 |
4595 cat conftest.$ac_ext >&5 | |
4596 emacs_cv_struct_exception=no | |
4597 fi | |
4598 rm -f conftest.$ac_objext conftest.$ac_ext | |
4599 fi | |
46596 | 4600 echo "$as_me:4600: result: $emacs_cv_struct_exception" >&5 |
40056 | 4601 echo "${ECHO_T}$emacs_cv_struct_exception" >&6 |
29388 | 4602 HAVE_EXCEPTION=$emacs_cv_struct_exception |
4603 if test $emacs_cv_struct_exception != yes; then | |
44569 | 4604 |
45226 | 4605 cat >>confdefs.h <<\EOF |
29388 | 4606 #define NO_MATHERR 1 |
45226 | 4607 EOF |
4608 | |
4609 fi | |
4610 | |
46596 | 4611 echo "$as_me:4611: checking whether struct tm is in sys/time.h or time.h" >&5 |
40056 | 4612 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
4613 if test "${ac_cv_struct_tm+set}" = set; then | |
4614 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4615 else | |
4616 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 4617 #line 4617 "configure" |
25897 | 4618 #include "confdefs.h" |
4619 #include <sys/types.h> | |
4620 #include <time.h> | |
40056 | 4621 |
4622 int | |
4623 main () | |
4624 { | |
25897 | 4625 struct tm *tp; tp->tm_sec; |
40056 | 4626 ; |
4627 return 0; | |
4628 } | |
4629 _ACEOF | |
4630 rm -f conftest.$ac_objext | |
46596 | 4631 if { (eval echo "$as_me:4631: \"$ac_compile\"") >&5 |
44493 | 4632 (eval $ac_compile) 2>&5 |
4633 ac_status=$? | |
46596 | 4634 echo "$as_me:4634: \$? = $ac_status" >&5 |
44493 | 4635 (exit $ac_status); } && |
4636 { ac_try='test -s conftest.$ac_objext' | |
46596 | 4637 { (eval echo "$as_me:4637: \"$ac_try\"") >&5 |
4638 (eval $ac_try) 2>&5 | |
4639 ac_status=$? | |
4640 echo "$as_me:4640: \$? = $ac_status" >&5 | |
40056 | 4641 (exit $ac_status); }; }; then |
25897 | 4642 ac_cv_struct_tm=time.h |
4643 else | |
40056 | 4644 echo "$as_me: failed program was:" >&5 |
4645 cat conftest.$ac_ext >&5 | |
4646 ac_cv_struct_tm=sys/time.h | |
4647 fi | |
4648 rm -f conftest.$ac_objext conftest.$ac_ext | |
4649 fi | |
46596 | 4650 echo "$as_me:4650: result: $ac_cv_struct_tm" >&5 |
40056 | 4651 echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
25897 | 4652 if test $ac_cv_struct_tm = sys/time.h; then |
40056 | 4653 |
45226 | 4654 cat >>confdefs.h <<\EOF |
25897 | 4655 #define TM_IN_SYS_TIME 1 |
45226 | 4656 EOF |
4657 | |
4658 fi | |
4659 | |
46596 | 4660 echo "$as_me:4660: checking for struct tm.tm_zone" >&5 |
40056 | 4661 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
4662 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
4663 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4664 else | |
4665 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 4666 #line 4666 "configure" |
25897 | 4667 #include "confdefs.h" |
4668 #include <sys/types.h> | |
4669 #include <$ac_cv_struct_tm> | |
40056 | 4670 |
4671 int | |
4672 main () | |
4673 { | |
4674 static struct tm ac_aggr; | |
4675 if (ac_aggr.tm_zone) | |
4676 return 0; | |
4677 ; | |
4678 return 0; | |
4679 } | |
4680 _ACEOF | |
4681 rm -f conftest.$ac_objext | |
46596 | 4682 if { (eval echo "$as_me:4682: \"$ac_compile\"") >&5 |
44493 | 4683 (eval $ac_compile) 2>&5 |
4684 ac_status=$? | |
46596 | 4685 echo "$as_me:4685: \$? = $ac_status" >&5 |
44493 | 4686 (exit $ac_status); } && |
4687 { ac_try='test -s conftest.$ac_objext' | |
46596 | 4688 { (eval echo "$as_me:4688: \"$ac_try\"") >&5 |
4689 (eval $ac_try) 2>&5 | |
4690 ac_status=$? | |
4691 echo "$as_me:4691: \$? = $ac_status" >&5 | |
40056 | 4692 (exit $ac_status); }; }; then |
4693 ac_cv_member_struct_tm_tm_zone=yes | |
4694 else | |
4695 echo "$as_me: failed program was:" >&5 | |
4696 cat conftest.$ac_ext >&5 | |
4697 ac_cv_member_struct_tm_tm_zone=no | |
4698 fi | |
4699 rm -f conftest.$ac_objext conftest.$ac_ext | |
4700 fi | |
46596 | 4701 echo "$as_me:4701: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
40056 | 4702 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
4703 if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
4704 | |
45226 | 4705 cat >>confdefs.h <<EOF |
40056 | 4706 #define HAVE_STRUCT_TM_TM_ZONE 1 |
45226 | 4707 EOF |
40056 | 4708 |
4709 fi | |
4710 | |
4711 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
4712 | |
45226 | 4713 cat >>confdefs.h <<\EOF |
25897 | 4714 #define HAVE_TM_ZONE 1 |
45226 | 4715 EOF |
4716 | |
4717 else | |
46596 | 4718 echo "$as_me:4718: checking for tzname" >&5 |
40056 | 4719 echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
4720 if test "${ac_cv_var_tzname+set}" = set; then | |
4721 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4722 else | |
4723 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 4724 #line 4724 "configure" |
25897 | 4725 #include "confdefs.h" |
4726 #include <time.h> | |
4727 #ifndef tzname /* For SGI. */ | |
4728 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
4729 #endif | |
40056 | 4730 |
4731 int | |
4732 main () | |
4733 { | |
25897 | 4734 atoi(*tzname); |
40056 | 4735 ; |
4736 return 0; | |
4737 } | |
4738 _ACEOF | |
4739 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 4740 if { (eval echo "$as_me:4740: \"$ac_link\"") >&5 |
4741 (eval $ac_link) 2>&5 | |
4742 ac_status=$? | |
4743 echo "$as_me:4743: \$? = $ac_status" >&5 | |
44493 | 4744 (exit $ac_status); } && |
4745 { ac_try='test -s conftest$ac_exeext' | |
46596 | 4746 { (eval echo "$as_me:4746: \"$ac_try\"") >&5 |
4747 (eval $ac_try) 2>&5 | |
4748 ac_status=$? | |
4749 echo "$as_me:4749: \$? = $ac_status" >&5 | |
40056 | 4750 (exit $ac_status); }; }; then |
25897 | 4751 ac_cv_var_tzname=yes |
4752 else | |
40056 | 4753 echo "$as_me: failed program was:" >&5 |
4754 cat conftest.$ac_ext >&5 | |
4755 ac_cv_var_tzname=no | |
4756 fi | |
4757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4758 fi | |
46596 | 4759 echo "$as_me:4759: result: $ac_cv_var_tzname" >&5 |
40056 | 4760 echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
25897 | 4761 if test $ac_cv_var_tzname = yes; then |
40056 | 4762 |
45226 | 4763 cat >>confdefs.h <<\EOF |
25897 | 4764 #define HAVE_TZNAME 1 |
45226 | 4765 EOF |
4766 | |
4767 fi | |
4768 fi | |
4769 | |
46596 | 4770 echo "$as_me:4770: checking for struct tm.tm_gmtoff" >&5 |
44569 | 4771 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6 |
4772 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then | |
40056 | 4773 echo $ECHO_N "(cached) $ECHO_C" >&6 |
4774 else | |
4775 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 4776 #line 4776 "configure" |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4777 #include "confdefs.h" |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4778 #include <time.h> |
44569 | 4779 |
4780 int | |
4781 main () | |
4782 { | |
4783 static struct tm ac_aggr; | |
4784 if (ac_aggr.tm_gmtoff) | |
4785 return 0; | |
4786 ; | |
4787 return 0; | |
4788 } | |
4789 _ACEOF | |
4790 rm -f conftest.$ac_objext | |
46596 | 4791 if { (eval echo "$as_me:4791: \"$ac_compile\"") >&5 |
44569 | 4792 (eval $ac_compile) 2>&5 |
4793 ac_status=$? | |
46596 | 4794 echo "$as_me:4794: \$? = $ac_status" >&5 |
44569 | 4795 (exit $ac_status); } && |
4796 { ac_try='test -s conftest.$ac_objext' | |
46596 | 4797 { (eval echo "$as_me:4797: \"$ac_try\"") >&5 |
4798 (eval $ac_try) 2>&5 | |
4799 ac_status=$? | |
4800 echo "$as_me:4800: \$? = $ac_status" >&5 | |
44569 | 4801 (exit $ac_status); }; }; then |
4802 ac_cv_member_struct_tm_tm_gmtoff=yes | |
4803 else | |
4804 echo "$as_me: failed program was:" >&5 | |
4805 cat conftest.$ac_ext >&5 | |
4806 ac_cv_member_struct_tm_tm_gmtoff=no | |
4807 fi | |
4808 rm -f conftest.$ac_objext conftest.$ac_ext | |
4809 fi | |
46596 | 4810 echo "$as_me:4810: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 |
44569 | 4811 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6 |
4812 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then | |
4813 | |
45226 | 4814 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
|
4815 #define HAVE_TM_GMTOFF 1 |
45226 | 4816 EOF |
4817 | |
4818 fi | |
4819 | |
46596 | 4820 echo "$as_me:4820: checking for $CC option to accept ANSI C" >&5 |
44994 | 4821 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
4822 if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4823 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4824 else | |
4825 ac_cv_prog_cc_stdc=no | |
4826 ac_save_CC=$CC | |
4827 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 4828 #line 4828 "configure" |
44994 | 4829 #include "confdefs.h" |
4830 #include <stdarg.h> | |
4831 #include <stdio.h> | |
4832 #include <sys/types.h> | |
4833 #include <sys/stat.h> | |
4834 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4835 struct buf { int x; }; | |
4836 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4837 static char *e (p, i) | |
4838 char **p; | |
4839 int i; | |
4840 { | |
4841 return p[i]; | |
4842 } | |
4843 static char *f (char * (*g) (char **, int), char **p, ...) | |
4844 { | |
4845 char *s; | |
4846 va_list v; | |
4847 va_start (v,p); | |
4848 s = g (p, va_arg (v,int)); | |
4849 va_end (v); | |
4850 return s; | |
4851 } | |
4852 int test (int i, double x); | |
4853 struct s1 {int (*f) (int a);}; | |
4854 struct s2 {int (*f) (double a);}; | |
4855 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4856 int argc; | |
4857 char **argv; | |
4858 int | |
4859 main () | |
4860 { | |
4861 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4862 ; | |
4863 return 0; | |
4864 } | |
4865 _ACEOF | |
4866 # Don't try gcc -ansi; that turns off useful extensions and | |
4867 # breaks some systems' header files. | |
4868 # AIX -qlanglvl=ansi | |
4869 # Ultrix and OSF/1 -std1 | |
4870 # HP-UX 10.20 and later -Ae | |
4871 # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4872 # SVR4 -Xc -D__EXTENSIONS__ | |
4873 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4874 do | |
4875 CC="$ac_save_CC $ac_arg" | |
4876 rm -f conftest.$ac_objext | |
46596 | 4877 if { (eval echo "$as_me:4877: \"$ac_compile\"") >&5 |
44994 | 4878 (eval $ac_compile) 2>&5 |
4879 ac_status=$? | |
46596 | 4880 echo "$as_me:4880: \$? = $ac_status" >&5 |
44994 | 4881 (exit $ac_status); } && |
4882 { ac_try='test -s conftest.$ac_objext' | |
46596 | 4883 { (eval echo "$as_me:4883: \"$ac_try\"") >&5 |
4884 (eval $ac_try) 2>&5 | |
4885 ac_status=$? | |
4886 echo "$as_me:4886: \$? = $ac_status" >&5 | |
44994 | 4887 (exit $ac_status); }; }; then |
4888 ac_cv_prog_cc_stdc=$ac_arg | |
4889 break | |
4890 else | |
4891 echo "$as_me: failed program was:" >&5 | |
4892 cat conftest.$ac_ext >&5 | |
4893 fi | |
4894 rm -f conftest.$ac_objext | |
4895 done | |
4896 rm -f conftest.$ac_ext conftest.$ac_objext | |
4897 CC=$ac_save_CC | |
4898 | |
4899 fi | |
4900 | |
4901 case "x$ac_cv_prog_cc_stdc" in | |
4902 x|xno) | |
46596 | 4903 echo "$as_me:4903: result: none needed" >&5 |
44994 | 4904 echo "${ECHO_T}none needed" >&6 ;; |
4905 *) | |
46596 | 4906 echo "$as_me:4906: result: $ac_cv_prog_cc_stdc" >&5 |
44994 | 4907 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
4908 CC="$CC $ac_cv_prog_cc_stdc" ;; | |
4909 esac | |
4910 | |
46596 | 4911 echo "$as_me:4911: checking for function prototypes" >&5 |
40056 | 4912 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
28060 | 4913 if test "$ac_cv_prog_cc_stdc" != no; then |
46596 | 4914 echo "$as_me:4914: result: yes" >&5 |
40056 | 4915 echo "${ECHO_T}yes" >&6 |
4916 | |
45226 | 4917 cat >>confdefs.h <<\EOF |
28060 | 4918 #define PROTOTYPES 1 |
45226 | 4919 EOF |
4920 | |
4921 else | |
46596 | 4922 echo "$as_me:4922: result: no" >&5 |
40056 | 4923 echo "${ECHO_T}no" >&6 |
4924 fi | |
4925 | |
46596 | 4926 echo "$as_me:4926: checking for working volatile" >&5 |
40056 | 4927 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
4928 if test "${ac_cv_c_volatile+set}" = set; then | |
4929 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4930 else | |
4931 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 4932 #line 4932 "configure" |
45226 | 4933 #include "confdefs.h" |
4934 | |
40056 | 4935 int |
4936 main () | |
4937 { | |
28060 | 4938 |
4939 volatile int x; | |
4940 int * volatile y; | |
40056 | 4941 ; |
4942 return 0; | |
4943 } | |
4944 _ACEOF | |
4945 rm -f conftest.$ac_objext | |
46596 | 4946 if { (eval echo "$as_me:4946: \"$ac_compile\"") >&5 |
44493 | 4947 (eval $ac_compile) 2>&5 |
4948 ac_status=$? | |
46596 | 4949 echo "$as_me:4949: \$? = $ac_status" >&5 |
44493 | 4950 (exit $ac_status); } && |
4951 { ac_try='test -s conftest.$ac_objext' | |
46596 | 4952 { (eval echo "$as_me:4952: \"$ac_try\"") >&5 |
4953 (eval $ac_try) 2>&5 | |
4954 ac_status=$? | |
4955 echo "$as_me:4955: \$? = $ac_status" >&5 | |
40056 | 4956 (exit $ac_status); }; }; then |
28060 | 4957 ac_cv_c_volatile=yes |
4958 else | |
40056 | 4959 echo "$as_me: failed program was:" >&5 |
4960 cat conftest.$ac_ext >&5 | |
4961 ac_cv_c_volatile=no | |
4962 fi | |
4963 rm -f conftest.$ac_objext conftest.$ac_ext | |
4964 fi | |
46596 | 4965 echo "$as_me:4965: result: $ac_cv_c_volatile" >&5 |
40056 | 4966 echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
28060 | 4967 if test $ac_cv_c_volatile = no; then |
40056 | 4968 |
45226 | 4969 cat >>confdefs.h <<\EOF |
40056 | 4970 #define volatile |
45226 | 4971 EOF |
4972 | |
4973 fi | |
4974 | |
46596 | 4975 echo "$as_me:4975: checking for an ANSI C-conforming const" >&5 |
40056 | 4976 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
4977 if test "${ac_cv_c_const+set}" = set; then | |
4978 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4979 else | |
4980 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 4981 #line 4981 "configure" |
45226 | 4982 #include "confdefs.h" |
4983 | |
40056 | 4984 int |
4985 main () | |
4986 { | |
4987 /* FIXME: Include the comments suggested by Paul. */ | |
4988 #ifndef __cplusplus | |
4989 /* Ultrix mips cc rejects this. */ | |
4990 typedef int charset[2]; | |
4991 const charset x; | |
4992 /* SunOS 4.1.1 cc rejects this. */ | |
4993 char const *const *ccp; | |
4994 char **p; | |
4995 /* NEC SVR4.0.2 mips cc rejects this. */ | |
4996 struct point {int x, y;}; | |
4997 static struct point const zero = {0,0}; | |
4998 /* AIX XL C 1.02.0.0 rejects this. | |
4999 It does not let you subtract one const X* pointer from another in | |
5000 an arm of an if-expression whose if-part is not a constant | |
5001 expression */ | |
5002 const char *g = "string"; | |
5003 ccp = &g + (g ? g-g : 0); | |
5004 /* HPUX 7.0 cc rejects these. */ | |
5005 ++ccp; | |
5006 p = (char**) ccp; | |
5007 ccp = (char const *const *) p; | |
5008 { /* SCO 3.2v4 cc rejects this. */ | |
5009 char *t; | |
5010 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5011 | |
5012 *t++ = 0; | |
5013 } | |
5014 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5015 int x[] = {25, 17}; | |
5016 const int *foo = &x[0]; | |
5017 ++foo; | |
5018 } | |
5019 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5020 typedef const int *iptr; | |
5021 iptr p = 0; | |
5022 ++p; | |
5023 } | |
5024 { /* AIX XL C 1.02.0.0 rejects this saying | |
5025 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5026 struct s { int j; const int *ap[3]; }; | |
5027 struct s *b; b->j = 5; | |
5028 } | |
5029 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5030 const int foo = 10; | |
5031 } | |
5032 #endif | |
5033 | |
5034 ; | |
5035 return 0; | |
5036 } | |
5037 _ACEOF | |
5038 rm -f conftest.$ac_objext | |
46596 | 5039 if { (eval echo "$as_me:5039: \"$ac_compile\"") >&5 |
44493 | 5040 (eval $ac_compile) 2>&5 |
5041 ac_status=$? | |
46596 | 5042 echo "$as_me:5042: \$? = $ac_status" >&5 |
44493 | 5043 (exit $ac_status); } && |
5044 { ac_try='test -s conftest.$ac_objext' | |
46596 | 5045 { (eval echo "$as_me:5045: \"$ac_try\"") >&5 |
5046 (eval $ac_try) 2>&5 | |
5047 ac_status=$? | |
5048 echo "$as_me:5048: \$? = $ac_status" >&5 | |
40056 | 5049 (exit $ac_status); }; }; then |
25897 | 5050 ac_cv_c_const=yes |
5051 else | |
40056 | 5052 echo "$as_me: failed program was:" >&5 |
5053 cat conftest.$ac_ext >&5 | |
5054 ac_cv_c_const=no | |
5055 fi | |
5056 rm -f conftest.$ac_objext conftest.$ac_ext | |
5057 fi | |
46596 | 5058 echo "$as_me:5058: result: $ac_cv_c_const" >&5 |
40056 | 5059 echo "${ECHO_T}$ac_cv_c_const" >&6 |
25897 | 5060 if test $ac_cv_c_const = no; then |
40056 | 5061 |
45226 | 5062 cat >>confdefs.h <<\EOF |
40056 | 5063 #define const |
45226 | 5064 EOF |
5065 | |
5066 fi | |
5067 | |
46596 | 5068 echo "$as_me:5068: checking for void * support" >&5 |
40056 | 5069 echo $ECHO_N "checking for void * support... $ECHO_C" >&6 |
5070 if test "${emacs_cv_void_star+set}" = set; then | |
5071 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5072 else | |
5073 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 5074 #line 5074 "configure" |
45226 | 5075 #include "confdefs.h" |
5076 | |
40056 | 5077 int |
5078 main () | |
5079 { | |
28060 | 5080 void * foo; |
40056 | 5081 ; |
5082 return 0; | |
5083 } | |
5084 _ACEOF | |
5085 rm -f conftest.$ac_objext | |
46596 | 5086 if { (eval echo "$as_me:5086: \"$ac_compile\"") >&5 |
44493 | 5087 (eval $ac_compile) 2>&5 |
5088 ac_status=$? | |
46596 | 5089 echo "$as_me:5089: \$? = $ac_status" >&5 |
44493 | 5090 (exit $ac_status); } && |
5091 { ac_try='test -s conftest.$ac_objext' | |
46596 | 5092 { (eval echo "$as_me:5092: \"$ac_try\"") >&5 |
5093 (eval $ac_try) 2>&5 | |
5094 ac_status=$? | |
5095 echo "$as_me:5095: \$? = $ac_status" >&5 | |
40056 | 5096 (exit $ac_status); }; }; then |
28060 | 5097 emacs_cv_void_star=yes |
5098 else | |
40056 | 5099 echo "$as_me: failed program was:" >&5 |
5100 cat conftest.$ac_ext >&5 | |
5101 emacs_cv_void_star=no | |
5102 fi | |
5103 rm -f conftest.$ac_objext conftest.$ac_ext | |
5104 fi | |
46596 | 5105 echo "$as_me:5105: result: $emacs_cv_void_star" >&5 |
40056 | 5106 echo "${ECHO_T}$emacs_cv_void_star" >&6 |
28060 | 5107 if test $emacs_cv_void_star = yes; then |
45226 | 5108 cat >>confdefs.h <<\EOF |
28060 | 5109 #define POINTER_TYPE void |
45226 | 5110 EOF |
5111 | |
5112 else | |
5113 cat >>confdefs.h <<\EOF | |
28060 | 5114 #define POINTER_TYPE char |
45226 | 5115 EOF |
5116 | |
5117 fi | |
5118 | |
46596 | 5119 echo "$as_me:5119: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
40056 | 5120 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
5121 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
5122 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
5123 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5124 else | |
45226 | 5125 cat >conftest.make <<\EOF |
25897 | 5126 all: |
5127 @echo 'ac_maketemp="${MAKE}"' | |
45226 | 5128 EOF |
25897 | 5129 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
40056 | 5130 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
25897 | 5131 if test -n "$ac_maketemp"; then |
5132 eval ac_cv_prog_make_${ac_make}_set=yes | |
5133 else | |
5134 eval ac_cv_prog_make_${ac_make}_set=no | |
5135 fi | |
40056 | 5136 rm -f conftest.make |
25897 | 5137 fi |
5138 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
46596 | 5139 echo "$as_me:5139: result: yes" >&5 |
40056 | 5140 echo "${ECHO_T}yes" >&6 |
25897 | 5141 SET_MAKE= |
5142 else | |
46596 | 5143 echo "$as_me:5143: result: no" >&5 |
40056 | 5144 echo "${ECHO_T}no" >&6 |
25897 | 5145 SET_MAKE="MAKE=${MAKE-make}" |
5146 fi | |
5147 | |
46596 | 5148 echo "$as_me:5148: checking for long file names" >&5 |
40056 | 5149 echo $ECHO_N "checking for long file names... $ECHO_C" >&6 |
5150 if test "${ac_cv_sys_long_file_names+set}" = set; then | |
5151 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 5152 else |
5153 ac_cv_sys_long_file_names=yes | |
5154 # Test for long file names in all the places we know might matter: | |
5155 # . the current directory, where building will happen | |
5156 # $prefix/lib where we will be installing things | |
5157 # $exec_prefix/lib likewise | |
5158 # eval it to expand exec_prefix. | |
5159 # $TMPDIR if set, where it might want to write temporary files | |
5160 # if $TMPDIR is not set: | |
5161 # /tmp where it might want to write temporary files | |
5162 # /var/tmp likewise | |
5163 # /usr/tmp likewise | |
5164 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
40056 | 5165 ac_tmpdirs=$TMPDIR |
25897 | 5166 else |
5167 ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
5168 fi | |
5169 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
5170 test -d $ac_dir || continue | |
5171 test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
40056 | 5172 ac_xdir=$ac_dir/cf$$ |
5173 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue | |
5174 ac_tf1=$ac_xdir/conftest9012345 | |
5175 ac_tf2=$ac_xdir/conftest9012346 | |
5176 (echo 1 >$ac_tf1) 2>/dev/null | |
5177 (echo 2 >$ac_tf2) 2>/dev/null | |
5178 ac_val=`cat $ac_tf1 2>/dev/null` | |
5179 if test ! -f $ac_tf1 || test "$ac_val" != 1; then | |
25897 | 5180 ac_cv_sys_long_file_names=no |
40056 | 5181 rm -rf $ac_xdir 2>/dev/null |
25897 | 5182 break |
5183 fi | |
40056 | 5184 rm -rf $ac_xdir 2>/dev/null |
25897 | 5185 done |
5186 fi | |
46596 | 5187 echo "$as_me:5187: result: $ac_cv_sys_long_file_names" >&5 |
40056 | 5188 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 |
25897 | 5189 if test $ac_cv_sys_long_file_names = yes; then |
40056 | 5190 |
45226 | 5191 cat >>confdefs.h <<\EOF |
25897 | 5192 #define HAVE_LONG_FILE_NAMES 1 |
45226 | 5193 EOF |
5194 | |
5195 fi | |
44493 | 5196 |
25897 | 5197 #### Choose a window system. |
5198 | |
46596 | 5199 echo "$as_me:5199: checking for X" >&5 |
40056 | 5200 echo $ECHO_N "checking for X... $ECHO_C" >&6 |
25897 | 5201 |
5202 # Check whether --with-x or --without-x was given. | |
5203 if test "${with_x+set}" = set; then | |
5204 withval="$with_x" | |
40056 | 5205 |
5206 fi; | |
25897 | 5207 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
5208 if test "x$with_x" = xno; then | |
5209 # The user explicitly disabled X. | |
5210 have_x=disabled | |
5211 else | |
5212 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
5213 # Both variables are already set. | |
5214 have_x=yes | |
5215 else | |
40056 | 5216 if test "${ac_cv_have_x+set}" = set; then |
5217 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 5218 else |
5219 # One or both of the vars are not set, and there is no cached value. | |
40056 | 5220 ac_x_includes=no ac_x_libraries=no |
5221 rm -fr conftest.dir | |
5222 if mkdir conftest.dir; then | |
5223 cd conftest.dir | |
25897 | 5224 # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
45226 | 5225 cat >Imakefile <<'EOF' |
25897 | 5226 acfindx: |
5227 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
45226 | 5228 EOF |
25897 | 5229 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
5230 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5231 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
5232 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
5233 for ac_extension in a so sl; do | |
5234 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
40056 | 5235 test -f $ac_im_libdir/libX11.$ac_extension; then |
25897 | 5236 ac_im_usrlibdir=$ac_im_libdir; break |
5237 fi | |
5238 done | |
5239 # Screen out bogus values from the imake configuration. They are | |
5240 # bogus both because they are the default anyway, and because | |
5241 # using them would break gcc on systems where it needs fixed includes. | |
40056 | 5242 case $ac_im_incroot in |
25897 | 5243 /usr/include) ;; |
40056 | 5244 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
25897 | 5245 esac |
40056 | 5246 case $ac_im_usrlibdir in |
25897 | 5247 /usr/lib | /lib) ;; |
40056 | 5248 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
25897 | 5249 esac |
5250 fi | |
5251 cd .. | |
40056 | 5252 rm -fr conftest.dir |
5253 fi | |
5254 | |
5255 # Standard set of common directories for X headers. | |
5256 # Check X11 before X11Rn because it is often a symlink to the current release. | |
5257 ac_x_header_dirs=' | |
5258 /usr/X11/include | |
5259 /usr/X11R6/include | |
5260 /usr/X11R5/include | |
5261 /usr/X11R4/include | |
5262 | |
5263 /usr/include/X11 | |
5264 /usr/include/X11R6 | |
5265 /usr/include/X11R5 | |
5266 /usr/include/X11R4 | |
5267 | |
5268 /usr/local/X11/include | |
5269 /usr/local/X11R6/include | |
5270 /usr/local/X11R5/include | |
5271 /usr/local/X11R4/include | |
5272 | |
5273 /usr/local/include/X11 | |
5274 /usr/local/include/X11R6 | |
5275 /usr/local/include/X11R5 | |
5276 /usr/local/include/X11R4 | |
5277 | |
5278 /usr/X386/include | |
5279 /usr/x386/include | |
5280 /usr/XFree86/include/X11 | |
5281 | |
5282 /usr/include | |
5283 /usr/local/include | |
5284 /usr/unsupported/include | |
5285 /usr/athena/include | |
5286 /usr/local/x11r5/include | |
5287 /usr/lpp/Xamples/include | |
5288 | |
5289 /usr/openwin/include | |
5290 /usr/openwin/share/include' | |
5291 | |
5292 if test "$ac_x_includes" = no; then | |
5293 # Guess where to find include files, by looking for Intrinsic.h. | |
25897 | 5294 # First, try using that file with no special directory specified. |
40056 | 5295 cat >conftest.$ac_ext <<_ACEOF |
46596 | 5296 #line 5296 "configure" |
40056 | 5297 #include "confdefs.h" |
5298 #include <X11/Intrinsic.h> | |
5299 _ACEOF | |
46596 | 5300 if { (eval echo "$as_me:5300: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 5301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5302 ac_status=$? | |
5303 egrep -v '^ *\+' conftest.er1 >conftest.err | |
5304 rm -f conftest.er1 | |
5305 cat conftest.err >&5 | |
46596 | 5306 echo "$as_me:5306: \$? = $ac_status" >&5 |
40056 | 5307 (exit $ac_status); } >/dev/null; then |
5308 if test -s conftest.err; then | |
5309 ac_cpp_err=$ac_c_preproc_warn_flag | |
5310 else | |
5311 ac_cpp_err= | |
5312 fi | |
5313 else | |
5314 ac_cpp_err=yes | |
5315 fi | |
5316 if test -z "$ac_cpp_err"; then | |
25897 | 5317 # We can compile using X headers with no special include directory. |
5318 ac_x_includes= | |
5319 else | |
40056 | 5320 echo "$as_me: failed program was:" >&5 |
25897 | 5321 cat conftest.$ac_ext >&5 |
40056 | 5322 for ac_dir in $ac_x_header_dirs; do |
5323 if test -r "$ac_dir/X11/Intrinsic.h"; then | |
5324 ac_x_includes=$ac_dir | |
5325 break | |
5326 fi | |
5327 done | |
5328 fi | |
5329 rm -f conftest.err conftest.$ac_ext | |
5330 fi # $ac_x_includes = no | |
5331 | |
5332 if test "$ac_x_libraries" = no; then | |
25897 | 5333 # Check for the libraries. |
5334 # See if we find them without any special options. | |
5335 # Don't add to $LIBS permanently. | |
40056 | 5336 ac_save_LIBS=$LIBS |
5337 LIBS="-lXt $LIBS" | |
5338 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 5339 #line 5339 "configure" |
40056 | 5340 #include "confdefs.h" |
5341 #include <X11/Intrinsic.h> | |
5342 int | |
5343 main () | |
5344 { | |
5345 XtMalloc (0) | |
5346 ; | |
5347 return 0; | |
5348 } | |
5349 _ACEOF | |
5350 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 5351 if { (eval echo "$as_me:5351: \"$ac_link\"") >&5 |
5352 (eval $ac_link) 2>&5 | |
5353 ac_status=$? | |
5354 echo "$as_me:5354: \$? = $ac_status" >&5 | |
44493 | 5355 (exit $ac_status); } && |
5356 { ac_try='test -s conftest$ac_exeext' | |
46596 | 5357 { (eval echo "$as_me:5357: \"$ac_try\"") >&5 |
5358 (eval $ac_try) 2>&5 | |
5359 ac_status=$? | |
5360 echo "$as_me:5360: \$? = $ac_status" >&5 | |
40056 | 5361 (exit $ac_status); }; }; then |
5362 LIBS=$ac_save_LIBS | |
25897 | 5363 # We can link X programs with no special library path. |
5364 ac_x_libraries= | |
5365 else | |
40056 | 5366 echo "$as_me: failed program was:" >&5 |
5367 cat conftest.$ac_ext >&5 | |
5368 LIBS=$ac_save_LIBS | |
5369 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
25897 | 5370 do |
40056 | 5371 # Don't even attempt the hair of trying to link an X program! |
25897 | 5372 for ac_extension in a so sl; do |
40056 | 5373 if test -r $ac_dir/libXt.$ac_extension; then |
25897 | 5374 ac_x_libraries=$ac_dir |
5375 break 2 | |
5376 fi | |
5377 done | |
5378 done | |
5379 fi | |
40056 | 5380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5381 fi # $ac_x_libraries = no | |
5382 | |
5383 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
25897 | 5384 # Didn't find X anywhere. Cache the known absence of X. |
5385 ac_cv_have_x="have_x=no" | |
5386 else | |
5387 # Record where we found X for the cache. | |
5388 ac_cv_have_x="have_x=yes \ | |
5389 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
5390 fi | |
5391 fi | |
40056 | 5392 |
25897 | 5393 fi |
5394 eval "$ac_cv_have_x" | |
5395 fi # $with_x != no | |
5396 | |
5397 if test "$have_x" != yes; then | |
46596 | 5398 echo "$as_me:5398: result: $have_x" >&5 |
40056 | 5399 echo "${ECHO_T}$have_x" >&6 |
25897 | 5400 no_x=yes |
5401 else | |
5402 # If each of the values was on the command line, it overrides each guess. | |
5403 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
5404 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
5405 # Update the cache value to reflect the command line values. | |
5406 ac_cv_have_x="have_x=yes \ | |
5407 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
46596 | 5408 echo "$as_me:5408: result: libraries $x_libraries, headers $x_includes" >&5 |
40056 | 5409 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
25897 | 5410 fi |
5411 | |
5412 if test "$no_x" = yes; then | |
5413 window_system=none | |
5414 else | |
5415 window_system=x11 | |
5416 fi | |
5417 | |
5418 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
5419 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
5420 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
5421 x_default_search_path="" | |
5422 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
35666 | 5423 x_search_path="\ |
5424 ${x_library}/X11/%L/%T/%N%C%S:\ | |
5425 ${x_library}/X11/%l/%T/%N%C%S:\ | |
5426 ${x_library}/X11/%T/%N%C%S:\ | |
5427 ${x_library}/X11/%L/%T/%N%S:\ | |
5428 ${x_library}/X11/%l/%T/%N%S:\ | |
5429 ${x_library}/X11/%T/%N%S" | |
25897 | 5430 if test x"${x_default_search_path}" = x; then |
5431 x_default_search_path=${x_search_path} | |
5432 else | |
5433 x_default_search_path="${x_search_path}:${x_default_search_path}" | |
5434 fi | |
5435 done | |
5436 fi | |
5437 if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
5438 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
5439 fi | |
5440 | |
5441 if test x"${x_includes}" = x; then | |
5442 bitmapdir=/usr/include/X11/bitmaps | |
5443 else | |
5444 # accumulate include directories that have X11 bitmap subdirectories | |
5445 bmd_acc="dummyval" | |
5446 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
5447 if test -d "${bmd}/X11/bitmaps"; then | |
5448 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
26502 | 5449 fi |
5450 if test -d "${bmd}/bitmaps"; then | |
25897 | 5451 bmd_acc="${bmd_acc}:${bmd}/bitmaps" |
5452 fi | |
5453 done | |
5454 if test ${bmd_acc} != "dummyval"; then | |
5455 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
5456 fi | |
5457 fi | |
5458 | |
5459 case "${window_system}" in | |
5460 x11 ) | |
5461 HAVE_X_WINDOWS=yes | |
5462 HAVE_X11=yes | |
5463 case "${with_x_toolkit}" in | |
5464 athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
5465 motif ) USE_X_TOOLKIT=MOTIF ;; | |
5466 no ) USE_X_TOOLKIT=none ;; | |
5467 * ) USE_X_TOOLKIT=maybe ;; | |
5468 esac | |
5469 ;; | |
5470 none ) | |
5471 HAVE_X_WINDOWS=no | |
5472 HAVE_X11=no | |
5473 USE_X_TOOLKIT=none | |
5474 ;; | |
5475 esac | |
5476 | |
5477 ### If we're using X11, we should use the X menu package. | |
5478 HAVE_MENUS=no | |
5479 case ${HAVE_X11} in | |
5480 yes ) HAVE_MENUS=yes ;; | |
5481 esac | |
40056 | 5482 |
25897 | 5483 if test "${opsys}" = "hpux9"; then |
5484 case "${x_libraries}" in | |
5485 *X11R4* ) | |
5486 opsysfile="s/hpux9-x11r4.h" | |
5487 ;; | |
5488 esac | |
5489 fi | |
5490 | |
5491 if test "${opsys}" = "hpux9shr"; then | |
5492 case "${x_libraries}" in | |
5493 *X11R4* ) | |
5494 opsysfile="s/hpux9shxr4.h" | |
5495 ;; | |
5496 esac | |
5497 fi | |
5498 | |
5499 ### Compute the unexec source name from the object name. | |
5500 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
5501 | |
5502 # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
5503 # Assume not, until told otherwise. | |
5504 GNU_MALLOC=yes | |
5505 doug_lea_malloc=yes | |
46596 | 5506 echo "$as_me:5506: checking for malloc_get_state" >&5 |
40056 | 5507 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 |
5508 if test "${ac_cv_func_malloc_get_state+set}" = set; then | |
5509 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5510 else | |
5511 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 5512 #line 5512 "configure" |
25897 | 5513 #include "confdefs.h" |
5514 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 5515 which can conflict with char malloc_get_state (); below. */ |
25897 | 5516 #include <assert.h> |
5517 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 5518 #ifdef __cplusplus |
5519 extern "C" | |
5520 #endif | |
25897 | 5521 /* We use char because int might match the return type of a gcc2 |
40056 | 5522 builtin and then its argument prototype would still apply. */ |
5523 char malloc_get_state (); | |
5524 char (*f) (); | |
5525 | |
5526 int | |
5527 main () | |
5528 { | |
25897 | 5529 /* The GNU C library defines this for functions which it implements |
5530 to always fail with ENOSYS. Some functions are actually named | |
5531 something starting with __ and the normal name is an alias. */ | |
5532 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
5533 choke me | |
5534 #else | |
40056 | 5535 f = malloc_get_state; |
5536 #endif | |
5537 | |
5538 ; | |
5539 return 0; | |
5540 } | |
5541 _ACEOF | |
5542 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 5543 if { (eval echo "$as_me:5543: \"$ac_link\"") >&5 |
5544 (eval $ac_link) 2>&5 | |
5545 ac_status=$? | |
5546 echo "$as_me:5546: \$? = $ac_status" >&5 | |
44493 | 5547 (exit $ac_status); } && |
5548 { ac_try='test -s conftest$ac_exeext' | |
46596 | 5549 { (eval echo "$as_me:5549: \"$ac_try\"") >&5 |
5550 (eval $ac_try) 2>&5 | |
5551 ac_status=$? | |
5552 echo "$as_me:5552: \$? = $ac_status" >&5 | |
40056 | 5553 (exit $ac_status); }; }; then |
5554 ac_cv_func_malloc_get_state=yes | |
5555 else | |
5556 echo "$as_me: failed program was:" >&5 | |
5557 cat conftest.$ac_ext >&5 | |
5558 ac_cv_func_malloc_get_state=no | |
5559 fi | |
5560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5561 fi | |
46596 | 5562 echo "$as_me:5562: result: $ac_cv_func_malloc_get_state" >&5 |
40056 | 5563 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 |
5564 if test $ac_cv_func_malloc_get_state = yes; then | |
25897 | 5565 : |
5566 else | |
40056 | 5567 doug_lea_malloc=no |
5568 fi | |
5569 | |
46596 | 5570 echo "$as_me:5570: checking for malloc_set_state" >&5 |
40056 | 5571 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 |
5572 if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
5573 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5574 else | |
5575 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 5576 #line 5576 "configure" |
25897 | 5577 #include "confdefs.h" |
5578 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 5579 which can conflict with char malloc_set_state (); below. */ |
25897 | 5580 #include <assert.h> |
5581 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 5582 #ifdef __cplusplus |
5583 extern "C" | |
5584 #endif | |
25897 | 5585 /* We use char because int might match the return type of a gcc2 |
40056 | 5586 builtin and then its argument prototype would still apply. */ |
5587 char malloc_set_state (); | |
5588 char (*f) (); | |
5589 | |
5590 int | |
5591 main () | |
5592 { | |
25897 | 5593 /* The GNU C library defines this for functions which it implements |
5594 to always fail with ENOSYS. Some functions are actually named | |
5595 something starting with __ and the normal name is an alias. */ | |
5596 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
5597 choke me | |
5598 #else | |
40056 | 5599 f = malloc_set_state; |
5600 #endif | |
5601 | |
5602 ; | |
5603 return 0; | |
5604 } | |
5605 _ACEOF | |
5606 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 5607 if { (eval echo "$as_me:5607: \"$ac_link\"") >&5 |
5608 (eval $ac_link) 2>&5 | |
5609 ac_status=$? | |
5610 echo "$as_me:5610: \$? = $ac_status" >&5 | |
44493 | 5611 (exit $ac_status); } && |
5612 { ac_try='test -s conftest$ac_exeext' | |
46596 | 5613 { (eval echo "$as_me:5613: \"$ac_try\"") >&5 |
5614 (eval $ac_try) 2>&5 | |
5615 ac_status=$? | |
5616 echo "$as_me:5616: \$? = $ac_status" >&5 | |
40056 | 5617 (exit $ac_status); }; }; then |
5618 ac_cv_func_malloc_set_state=yes | |
5619 else | |
5620 echo "$as_me: failed program was:" >&5 | |
5621 cat conftest.$ac_ext >&5 | |
5622 ac_cv_func_malloc_set_state=no | |
5623 fi | |
5624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5625 fi | |
46596 | 5626 echo "$as_me:5626: result: $ac_cv_func_malloc_set_state" >&5 |
40056 | 5627 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 |
5628 if test $ac_cv_func_malloc_set_state = yes; then | |
25897 | 5629 : |
5630 else | |
40056 | 5631 doug_lea_malloc=no |
5632 fi | |
5633 | |
46596 | 5634 echo "$as_me:5634: checking whether __after_morecore_hook exists" >&5 |
40056 | 5635 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 |
5636 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
5637 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5638 else | |
5639 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 5640 #line 5640 "configure" |
25897 | 5641 #include "confdefs.h" |
5642 extern void (* __after_morecore_hook)(); | |
40056 | 5643 int |
5644 main () | |
5645 { | |
25897 | 5646 __after_morecore_hook = 0 |
40056 | 5647 ; |
5648 return 0; | |
5649 } | |
5650 _ACEOF | |
5651 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 5652 if { (eval echo "$as_me:5652: \"$ac_link\"") >&5 |
5653 (eval $ac_link) 2>&5 | |
5654 ac_status=$? | |
5655 echo "$as_me:5655: \$? = $ac_status" >&5 | |
44493 | 5656 (exit $ac_status); } && |
5657 { ac_try='test -s conftest$ac_exeext' | |
46596 | 5658 { (eval echo "$as_me:5658: \"$ac_try\"") >&5 |
5659 (eval $ac_try) 2>&5 | |
5660 ac_status=$? | |
5661 echo "$as_me:5661: \$? = $ac_status" >&5 | |
40056 | 5662 (exit $ac_status); }; }; then |
25897 | 5663 emacs_cv_var___after_morecore_hook=yes |
5664 else | |
40056 | 5665 echo "$as_me: failed program was:" >&5 |
5666 cat conftest.$ac_ext >&5 | |
5667 emacs_cv_var___after_morecore_hook=no | |
5668 fi | |
5669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5670 fi | |
46596 | 5671 echo "$as_me:5671: result: $emacs_cv_var___after_morecore_hook" >&5 |
40056 | 5672 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 |
25897 | 5673 if test $emacs_cv_var___after_morecore_hook = no; then |
5674 doug_lea_malloc=no | |
5675 fi | |
5676 if test "${system_malloc}" = "yes"; then | |
5677 GNU_MALLOC=no | |
5678 GNU_MALLOC_reason=" | |
5679 (The GNU allocators don't work with this system configuration.)" | |
5680 fi | |
5681 if test "$doug_lea_malloc" = "yes" ; then | |
5682 if test "$GNU_MALLOC" = yes ; then | |
5683 GNU_MALLOC_reason=" | |
5684 (Using Doug Lea's new malloc from the GNU C Library.)" | |
5685 fi | |
44569 | 5686 |
45226 | 5687 cat >>confdefs.h <<\EOF |
25897 | 5688 #define DOUG_LEA_MALLOC 1 |
45226 | 5689 EOF |
25897 | 5690 |
5691 fi | |
5692 | |
5693 if test x"${REL_ALLOC}" = x; then | |
5694 REL_ALLOC=${GNU_MALLOC} | |
5695 fi | |
5696 | |
45226 | 5697 # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5698 | |
5699 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5700 inttypes.h stdint.h unistd.h | |
40056 | 5701 do |
5702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
46596 | 5703 echo "$as_me:5703: checking for $ac_header" >&5 |
40056 | 5704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5705 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5706 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 5707 else |
5708 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 5709 #line 5709 "configure" |
44493 | 5710 #include "confdefs.h" |
5711 $ac_includes_default | |
5712 #include <$ac_header> | |
5713 _ACEOF | |
5714 rm -f conftest.$ac_objext | |
46596 | 5715 if { (eval echo "$as_me:5715: \"$ac_compile\"") >&5 |
44493 | 5716 (eval $ac_compile) 2>&5 |
5717 ac_status=$? | |
46596 | 5718 echo "$as_me:5718: \$? = $ac_status" >&5 |
44493 | 5719 (exit $ac_status); } && |
5720 { ac_try='test -s conftest.$ac_objext' | |
46596 | 5721 { (eval echo "$as_me:5721: \"$ac_try\"") >&5 |
5722 (eval $ac_try) 2>&5 | |
5723 ac_status=$? | |
5724 echo "$as_me:5724: \$? = $ac_status" >&5 | |
45226 | 5725 (exit $ac_status); }; }; then |
5726 eval "$as_ac_Header=yes" | |
5727 else | |
5728 echo "$as_me: failed program was:" >&5 | |
5729 cat conftest.$ac_ext >&5 | |
5730 eval "$as_ac_Header=no" | |
44493 | 5731 fi |
5732 rm -f conftest.$ac_objext conftest.$ac_ext | |
45226 | 5733 fi |
46596 | 5734 echo "$as_me:5734: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
45226 | 5735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5736 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5737 cat >>confdefs.h <<EOF | |
5738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5739 EOF | |
5740 | |
5741 fi | |
5742 done | |
5743 | |
5744 for ac_header in stdlib.h unistd.h | |
5745 do | |
5746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
46596 | 5747 echo "$as_me:5747: checking for $ac_header" >&5 |
45226 | 5748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5749 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5750 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5751 else | |
5752 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 5753 #line 5753 "configure" |
40056 | 5754 #include "confdefs.h" |
5755 #include <$ac_header> | |
5756 _ACEOF | |
46596 | 5757 if { (eval echo "$as_me:5757: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 5758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5759 ac_status=$? | |
5760 egrep -v '^ *\+' conftest.er1 >conftest.err | |
5761 rm -f conftest.er1 | |
5762 cat conftest.err >&5 | |
46596 | 5763 echo "$as_me:5763: \$? = $ac_status" >&5 |
40056 | 5764 (exit $ac_status); } >/dev/null; then |
5765 if test -s conftest.err; then | |
5766 ac_cpp_err=$ac_c_preproc_warn_flag | |
5767 else | |
5768 ac_cpp_err= | |
5769 fi | |
5770 else | |
5771 ac_cpp_err=yes | |
5772 fi | |
5773 if test -z "$ac_cpp_err"; then | |
45226 | 5774 eval "$as_ac_Header=yes" |
40056 | 5775 else |
5776 echo "$as_me: failed program was:" >&5 | |
31417 | 5777 cat conftest.$ac_ext >&5 |
45226 | 5778 eval "$as_ac_Header=no" |
40056 | 5779 fi |
5780 rm -f conftest.err conftest.$ac_ext | |
45226 | 5781 fi |
46596 | 5782 echo "$as_me:5782: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 5783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5784 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 5785 cat >>confdefs.h <<EOF |
40056 | 5786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 5787 EOF |
5788 | |
5789 fi | |
5790 done | |
31417 | 5791 |
5792 for ac_func in getpagesize | |
5793 do | |
40056 | 5794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
46596 | 5795 echo "$as_me:5795: checking for $ac_func" >&5 |
40056 | 5796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5797 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5798 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5799 else | |
5800 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 5801 #line 5801 "configure" |
31417 | 5802 #include "confdefs.h" |
5803 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 5804 which can conflict with char $ac_func (); below. */ |
31417 | 5805 #include <assert.h> |
5806 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 5807 #ifdef __cplusplus |
5808 extern "C" | |
5809 #endif | |
31417 | 5810 /* We use char because int might match the return type of a gcc2 |
40056 | 5811 builtin and then its argument prototype would still apply. */ |
5812 char $ac_func (); | |
5813 char (*f) (); | |
5814 | |
5815 int | |
5816 main () | |
5817 { | |
31417 | 5818 /* The GNU C library defines this for functions which it implements |
5819 to always fail with ENOSYS. Some functions are actually named | |
5820 something starting with __ and the normal name is an alias. */ | |
5821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5822 choke me | |
5823 #else | |
40056 | 5824 f = $ac_func; |
5825 #endif | |
5826 | |
5827 ; | |
5828 return 0; | |
5829 } | |
5830 _ACEOF | |
5831 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 5832 if { (eval echo "$as_me:5832: \"$ac_link\"") >&5 |
5833 (eval $ac_link) 2>&5 | |
5834 ac_status=$? | |
5835 echo "$as_me:5835: \$? = $ac_status" >&5 | |
44493 | 5836 (exit $ac_status); } && |
5837 { ac_try='test -s conftest$ac_exeext' | |
46596 | 5838 { (eval echo "$as_me:5838: \"$ac_try\"") >&5 |
5839 (eval $ac_try) 2>&5 | |
5840 ac_status=$? | |
5841 echo "$as_me:5841: \$? = $ac_status" >&5 | |
40056 | 5842 (exit $ac_status); }; }; then |
5843 eval "$as_ac_var=yes" | |
5844 else | |
5845 echo "$as_me: failed program was:" >&5 | |
5846 cat conftest.$ac_ext >&5 | |
5847 eval "$as_ac_var=no" | |
5848 fi | |
5849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5850 fi | |
46596 | 5851 echo "$as_me:5851: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 5852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5853 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 5854 cat >>confdefs.h <<EOF |
40056 | 5855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 5856 EOF |
5857 | |
5858 fi | |
5859 done | |
5860 | |
46596 | 5861 echo "$as_me:5861: checking for working mmap" >&5 |
40056 | 5862 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
5863 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
5864 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31417 | 5865 else |
5866 if test "$cross_compiling" = yes; then | |
5867 ac_cv_func_mmap_fixed_mapped=no | |
5868 else | |
40056 | 5869 cat >conftest.$ac_ext <<_ACEOF |
46596 | 5870 #line 5870 "configure" |
40056 | 5871 #include "confdefs.h" |
5872 $ac_includes_default | |
31417 | 5873 /* Thanks to Mike Haertel and Jim Avera for this test. |
5874 Here is a matrix of mmap possibilities: | |
5875 mmap private not fixed | |
5876 mmap private fixed at somewhere currently unmapped | |
5877 mmap private fixed at somewhere already mapped | |
5878 mmap shared not fixed | |
5879 mmap shared fixed at somewhere currently unmapped | |
5880 mmap shared fixed at somewhere already mapped | |
5881 For private mappings, we should verify that changes cannot be read() | |
5882 back from the file, nor mmap's back from the file at a different | |
5883 address. (There have been systems where private was not correctly | |
5884 implemented like the infamous i386 svr4.0, and systems where the | |
31512 | 5885 VM page cache was not coherent with the file system buffer cache |
31417 | 5886 like early versions of FreeBSD and possibly contemporary NetBSD.) |
5887 For shared mappings, we should conversely verify that changes get | |
45226 | 5888 propogated back to all the places they're supposed to be. |
31417 | 5889 |
5890 Grep wants private fixed already mapped. | |
5891 The main things grep needs to know about mmap are: | |
5892 * does it exist and is it safe to write into the mmap'd area | |
5893 * how to use it (BSD variants) */ | |
40056 | 5894 |
31417 | 5895 #include <fcntl.h> |
5896 #include <sys/mman.h> | |
5897 | |
40056 | 5898 #if !STDC_HEADERS && !HAVE_STDLIB_H |
31512 | 5899 char *malloc (); |
5900 #endif | |
5901 | |
31417 | 5902 /* This mess was copied from the GNU getpagesize.h. */ |
31512 | 5903 #if !HAVE_GETPAGESIZE |
31417 | 5904 /* Assume that all systems that can run configure have sys/param.h. */ |
31512 | 5905 # if !HAVE_SYS_PARAM_H |
31417 | 5906 # define HAVE_SYS_PARAM_H 1 |
5907 # endif | |
5908 | |
5909 # ifdef _SC_PAGESIZE | |
5910 # define getpagesize() sysconf(_SC_PAGESIZE) | |
5911 # else /* no _SC_PAGESIZE */ | |
31512 | 5912 # if HAVE_SYS_PARAM_H |
31417 | 5913 # include <sys/param.h> |
5914 # ifdef EXEC_PAGESIZE | |
5915 # define getpagesize() EXEC_PAGESIZE | |
5916 # else /* no EXEC_PAGESIZE */ | |
5917 # ifdef NBPG | |
5918 # define getpagesize() NBPG * CLSIZE | |
5919 # ifndef CLSIZE | |
5920 # define CLSIZE 1 | |
5921 # endif /* no CLSIZE */ | |
5922 # else /* no NBPG */ | |
5923 # ifdef NBPC | |
5924 # define getpagesize() NBPC | |
5925 # else /* no NBPC */ | |
5926 # ifdef PAGESIZE | |
5927 # define getpagesize() PAGESIZE | |
5928 # endif /* PAGESIZE */ | |
5929 # endif /* no NBPC */ | |
5930 # endif /* no NBPG */ | |
5931 # endif /* no EXEC_PAGESIZE */ | |
5932 # else /* no HAVE_SYS_PARAM_H */ | |
5933 # define getpagesize() 8192 /* punt totally */ | |
5934 # endif /* no HAVE_SYS_PARAM_H */ | |
5935 # endif /* no _SC_PAGESIZE */ | |
5936 | |
5937 #endif /* no HAVE_GETPAGESIZE */ | |
5938 | |
5939 int | |
31512 | 5940 main () |
31417 | 5941 { |
31512 | 5942 char *data, *data2, *data3; |
5943 int i, pagesize; | |
5944 int fd; | |
5945 | |
5946 pagesize = getpagesize (); | |
5947 | |
5948 /* First, make a file with some known garbage in it. */ | |
5949 data = (char *) malloc (pagesize); | |
5950 if (!data) | |
5951 exit (1); | |
5952 for (i = 0; i < pagesize; ++i) | |
5953 *(data + i) = rand (); | |
5954 umask (0); | |
40056 | 5955 fd = creat ("conftest.mmap", 0600); |
31512 | 5956 if (fd < 0) |
5957 exit (1); | |
5958 if (write (fd, data, pagesize) != pagesize) | |
5959 exit (1); | |
5960 close (fd); | |
5961 | |
5962 /* Next, try to mmap the file at a fixed address which already has | |
5963 something else allocated at it. If we can, also make sure that | |
5964 we see the same garbage. */ | |
40056 | 5965 fd = open ("conftest.mmap", O_RDWR); |
31512 | 5966 if (fd < 0) |
5967 exit (1); | |
5968 data2 = (char *) malloc (2 * pagesize); | |
5969 if (!data2) | |
5970 exit (1); | |
5971 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
5972 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
5973 MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
5974 exit (1); | |
5975 for (i = 0; i < pagesize; ++i) | |
5976 if (*(data + i) != *(data2 + i)) | |
5977 exit (1); | |
5978 | |
5979 /* Finally, make sure that changes to the mapped area do not | |
5980 percolate back to the file as seen by read(). (This is a bug on | |
5981 some variants of i386 svr4.0.) */ | |
5982 for (i = 0; i < pagesize; ++i) | |
5983 *(data2 + i) = *(data2 + i) + 1; | |
5984 data3 = (char *) malloc (pagesize); | |
5985 if (!data3) | |
5986 exit (1); | |
5987 if (read (fd, data3, pagesize) != pagesize) | |
5988 exit (1); | |
5989 for (i = 0; i < pagesize; ++i) | |
5990 if (*(data + i) != *(data3 + i)) | |
5991 exit (1); | |
5992 close (fd); | |
5993 exit (0); | |
31417 | 5994 } |
40056 | 5995 _ACEOF |
5996 rm -f conftest$ac_exeext | |
46596 | 5997 if { (eval echo "$as_me:5997: \"$ac_link\"") >&5 |
5998 (eval $ac_link) 2>&5 | |
5999 ac_status=$? | |
6000 echo "$as_me:6000: \$? = $ac_status" >&5 | |
45668 | 6001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
46596 | 6002 { (eval echo "$as_me:6002: \"$ac_try\"") >&5 |
6003 (eval $ac_try) 2>&5 | |
6004 ac_status=$? | |
6005 echo "$as_me:6005: \$? = $ac_status" >&5 | |
40056 | 6006 (exit $ac_status); }; }; then |
31417 | 6007 ac_cv_func_mmap_fixed_mapped=yes |
6008 else | |
40056 | 6009 echo "$as_me: program exited with status $ac_status" >&5 |
6010 echo "$as_me: failed program was:" >&5 | |
6011 cat conftest.$ac_ext >&5 | |
6012 ac_cv_func_mmap_fixed_mapped=no | |
6013 fi | |
6014 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6015 fi | |
6016 fi | |
46596 | 6017 echo "$as_me:6017: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
40056 | 6018 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
31417 | 6019 if test $ac_cv_func_mmap_fixed_mapped = yes; then |
40056 | 6020 |
45226 | 6021 cat >>confdefs.h <<\EOF |
31417 | 6022 #define HAVE_MMAP 1 |
45226 | 6023 EOF |
31417 | 6024 |
6025 fi | |
40056 | 6026 rm -f conftest.mmap |
31417 | 6027 |
31607 | 6028 if test $use_mmap_for_buffers = yes; then |
6029 REL_ALLOC=no | |
31417 | 6030 fi |
6031 | |
25897 | 6032 LIBS="$libsrc_libs $LIBS" |
6033 | |
46596 | 6034 echo "$as_me:6034: checking for dnet_ntoa in -ldnet" >&5 |
40056 | 6035 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
6036 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
6037 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6038 else | |
6039 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6040 LIBS="-ldnet $LIBS" |
40056 | 6041 cat >conftest.$ac_ext <<_ACEOF |
46596 | 6042 #line 6042 "configure" |
40056 | 6043 #include "confdefs.h" |
6044 | |
25897 | 6045 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6046 #ifdef __cplusplus |
6047 extern "C" | |
6048 #endif | |
25897 | 6049 /* We use char because int might match the return type of a gcc2 |
40056 | 6050 builtin and then its argument prototype would still apply. */ |
6051 char dnet_ntoa (); | |
6052 int | |
6053 main () | |
6054 { | |
6055 dnet_ntoa (); | |
6056 ; | |
6057 return 0; | |
6058 } | |
6059 _ACEOF | |
6060 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 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 | |
44493 | 6065 (exit $ac_status); } && |
6066 { ac_try='test -s conftest$ac_exeext' | |
46596 | 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_dnet_dnet_ntoa=yes | |
6073 else | |
6074 echo "$as_me: failed program was:" >&5 | |
6075 cat conftest.$ac_ext >&5 | |
6076 ac_cv_lib_dnet_dnet_ntoa=no | |
6077 fi | |
6078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6079 LIBS=$ac_check_lib_save_LIBS | |
6080 fi | |
46596 | 6081 echo "$as_me:6081: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
40056 | 6082 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
6083 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
45226 | 6084 cat >>confdefs.h <<EOF |
40056 | 6085 #define HAVE_LIBDNET 1 |
45226 | 6086 EOF |
25897 | 6087 |
6088 LIBS="-ldnet $LIBS" | |
6089 | |
40056 | 6090 fi |
6091 | |
46596 | 6092 echo "$as_me:6092: checking for main in -lXbsd" >&5 |
40056 | 6093 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 |
6094 if test "${ac_cv_lib_Xbsd_main+set}" = set; then | |
6095 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6096 else | |
6097 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6098 LIBS="-lXbsd $LIBS" |
40056 | 6099 cat >conftest.$ac_ext <<_ACEOF |
46596 | 6100 #line 6100 "configure" |
45226 | 6101 #include "confdefs.h" |
6102 | |
40056 | 6103 int |
6104 main () | |
6105 { | |
6106 main (); | |
6107 ; | |
6108 return 0; | |
6109 } | |
6110 _ACEOF | |
6111 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 6112 if { (eval echo "$as_me:6112: \"$ac_link\"") >&5 |
6113 (eval $ac_link) 2>&5 | |
6114 ac_status=$? | |
6115 echo "$as_me:6115: \$? = $ac_status" >&5 | |
44493 | 6116 (exit $ac_status); } && |
6117 { ac_try='test -s conftest$ac_exeext' | |
46596 | 6118 { (eval echo "$as_me:6118: \"$ac_try\"") >&5 |
6119 (eval $ac_try) 2>&5 | |
6120 ac_status=$? | |
6121 echo "$as_me:6121: \$? = $ac_status" >&5 | |
40056 | 6122 (exit $ac_status); }; }; then |
6123 ac_cv_lib_Xbsd_main=yes | |
6124 else | |
6125 echo "$as_me: failed program was:" >&5 | |
6126 cat conftest.$ac_ext >&5 | |
6127 ac_cv_lib_Xbsd_main=no | |
6128 fi | |
6129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6130 LIBS=$ac_check_lib_save_LIBS | |
6131 fi | |
46596 | 6132 echo "$as_me:6132: result: $ac_cv_lib_Xbsd_main" >&5 |
40056 | 6133 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 |
6134 if test $ac_cv_lib_Xbsd_main = yes; then | |
25897 | 6135 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" |
40056 | 6136 fi |
6137 | |
46596 | 6138 echo "$as_me:6138: checking for cma_open in -lpthreads" >&5 |
40056 | 6139 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 |
6140 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | |
6141 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6142 else | |
6143 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6144 LIBS="-lpthreads $LIBS" |
40056 | 6145 cat >conftest.$ac_ext <<_ACEOF |
46596 | 6146 #line 6146 "configure" |
40056 | 6147 #include "confdefs.h" |
6148 | |
25897 | 6149 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6150 #ifdef __cplusplus |
6151 extern "C" | |
6152 #endif | |
25897 | 6153 /* We use char because int might match the return type of a gcc2 |
40056 | 6154 builtin and then its argument prototype would still apply. */ |
6155 char cma_open (); | |
6156 int | |
6157 main () | |
6158 { | |
6159 cma_open (); | |
6160 ; | |
6161 return 0; | |
6162 } | |
6163 _ACEOF | |
6164 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 6165 if { (eval echo "$as_me:6165: \"$ac_link\"") >&5 |
6166 (eval $ac_link) 2>&5 | |
6167 ac_status=$? | |
6168 echo "$as_me:6168: \$? = $ac_status" >&5 | |
44493 | 6169 (exit $ac_status); } && |
6170 { ac_try='test -s conftest$ac_exeext' | |
46596 | 6171 { (eval echo "$as_me:6171: \"$ac_try\"") >&5 |
6172 (eval $ac_try) 2>&5 | |
6173 ac_status=$? | |
6174 echo "$as_me:6174: \$? = $ac_status" >&5 | |
40056 | 6175 (exit $ac_status); }; }; then |
6176 ac_cv_lib_pthreads_cma_open=yes | |
6177 else | |
6178 echo "$as_me: failed program was:" >&5 | |
6179 cat conftest.$ac_ext >&5 | |
6180 ac_cv_lib_pthreads_cma_open=no | |
6181 fi | |
6182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6183 LIBS=$ac_check_lib_save_LIBS | |
6184 fi | |
46596 | 6185 echo "$as_me:6185: result: $ac_cv_lib_pthreads_cma_open" >&5 |
40056 | 6186 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 |
6187 if test $ac_cv_lib_pthreads_cma_open = yes; then | |
45226 | 6188 cat >>confdefs.h <<EOF |
40056 | 6189 #define HAVE_LIBPTHREADS 1 |
45226 | 6190 EOF |
25897 | 6191 |
6192 LIBS="-lpthreads $LIBS" | |
6193 | |
40056 | 6194 fi |
6195 | |
46596 | 6196 echo "$as_me:6196: checking for XFree86 in /usr/X386" >&5 |
40056 | 6197 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 |
25897 | 6198 if test -d /usr/X386/include; then |
6199 HAVE_XFREE386=yes | |
6200 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
6201 else | |
6202 HAVE_XFREE386=no | |
6203 fi | |
46596 | 6204 echo "$as_me:6204: result: $HAVE_XFREE386" >&5 |
40056 | 6205 echo "${ECHO_T}$HAVE_XFREE386" >&6 |
25897 | 6206 |
6207 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | |
6208 # for the tests that follow. We set it back to REAL_CFLAGS later on. | |
6209 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6210 REAL_CPPFLAGS="$CPPFLAGS" |
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6211 |
25897 | 6212 if test "${HAVE_X11}" = "yes"; then |
6213 DEFS="$C_SWITCH_X_SITE $DEFS" | |
6214 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
6215 LIBS="$LIBX $LIBS" | |
6216 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
|
6217 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" |
25897 | 6218 |
6219 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
6220 # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
6221 # but it's more convenient here to set LD_RUN_PATH | |
6222 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
6223 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
6224 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
6225 export LD_RUN_PATH | |
6226 fi | |
6227 | |
6228 if test "${opsys}" = "gnu-linux"; then | |
46596 | 6229 echo "$as_me:6229: checking whether X on GNU/Linux needs -b to link" >&5 |
40056 | 6230 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 |
6231 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 6232 #line 6232 "configure" |
45226 | 6233 #include "confdefs.h" |
6234 | |
40056 | 6235 int |
6236 main () | |
6237 { | |
25897 | 6238 XOpenDisplay ("foo"); |
40056 | 6239 ; |
6240 return 0; | |
6241 } | |
6242 _ACEOF | |
6243 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 6244 if { (eval echo "$as_me:6244: \"$ac_link\"") >&5 |
6245 (eval $ac_link) 2>&5 | |
6246 ac_status=$? | |
6247 echo "$as_me:6247: \$? = $ac_status" >&5 | |
44493 | 6248 (exit $ac_status); } && |
6249 { ac_try='test -s conftest$ac_exeext' | |
46596 | 6250 { (eval echo "$as_me:6250: \"$ac_try\"") >&5 |
6251 (eval $ac_try) 2>&5 | |
6252 ac_status=$? | |
6253 echo "$as_me:6253: \$? = $ac_status" >&5 | |
40056 | 6254 (exit $ac_status); }; }; then |
25897 | 6255 xlinux_first_failure=no |
6256 else | |
40056 | 6257 echo "$as_me: failed program was:" >&5 |
6258 cat conftest.$ac_ext >&5 | |
6259 xlinux_first_failure=yes | |
6260 fi | |
6261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6262 if test "${xlinux_first_failure}" = "yes"; then |
6263 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
6264 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
6265 OLD_CPPFLAGS="$CPPFLAGS" | |
6266 OLD_LIBS="$LIBS" | |
6267 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
6268 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
6269 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
6270 LIBS="$LIBS -b i486-linuxaout" | |
40056 | 6271 cat >conftest.$ac_ext <<_ACEOF |
46596 | 6272 #line 6272 "configure" |
45226 | 6273 #include "confdefs.h" |
6274 | |
40056 | 6275 int |
6276 main () | |
6277 { | |
25897 | 6278 XOpenDisplay ("foo"); |
40056 | 6279 ; |
6280 return 0; | |
6281 } | |
6282 _ACEOF | |
6283 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 6284 if { (eval echo "$as_me:6284: \"$ac_link\"") >&5 |
6285 (eval $ac_link) 2>&5 | |
6286 ac_status=$? | |
6287 echo "$as_me:6287: \$? = $ac_status" >&5 | |
44493 | 6288 (exit $ac_status); } && |
6289 { ac_try='test -s conftest$ac_exeext' | |
46596 | 6290 { (eval echo "$as_me:6290: \"$ac_try\"") >&5 |
6291 (eval $ac_try) 2>&5 | |
6292 ac_status=$? | |
6293 echo "$as_me:6293: \$? = $ac_status" >&5 | |
40056 | 6294 (exit $ac_status); }; }; then |
25897 | 6295 xlinux_second_failure=no |
6296 else | |
40056 | 6297 echo "$as_me: failed program was:" >&5 |
6298 cat conftest.$ac_ext >&5 | |
6299 xlinux_second_failure=yes | |
6300 fi | |
6301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6302 if test "${xlinux_second_failure}" = "yes"; then |
6303 # If we get the same failure with -b, there is no use adding -b. | |
6304 # So take it out. This plays safe. | |
6305 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
6306 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
6307 CPPFLAGS="$OLD_CPPFLAGS" | |
6308 LIBS="$OLD_LIBS" | |
46596 | 6309 echo "$as_me:6309: result: no" >&5 |
40056 | 6310 echo "${ECHO_T}no" >&6 |
25897 | 6311 else |
46596 | 6312 echo "$as_me:6312: result: yes" >&5 |
40056 | 6313 echo "${ECHO_T}yes" >&6 |
25897 | 6314 fi |
6315 else | |
46596 | 6316 echo "$as_me:6316: result: no" >&5 |
40056 | 6317 echo "${ECHO_T}no" >&6 |
25897 | 6318 fi |
6319 fi | |
6320 | |
35196 | 6321 # Reportedly, some broken Solaris systems have XKBlib.h but are missing |
6322 # header files included from there. | |
46596 | 6323 echo "$as_me:6323: checking for Xkb" >&5 |
40056 | 6324 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 |
6325 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 6326 #line 6326 "configure" |
35196 | 6327 #include "confdefs.h" |
6328 #include <X11/Xlib.h> | |
6329 #include <X11/XKBlib.h> | |
40056 | 6330 int |
6331 main () | |
6332 { | |
35196 | 6333 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); |
40056 | 6334 ; |
6335 return 0; | |
6336 } | |
6337 _ACEOF | |
6338 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 6339 if { (eval echo "$as_me:6339: \"$ac_link\"") >&5 |
6340 (eval $ac_link) 2>&5 | |
6341 ac_status=$? | |
6342 echo "$as_me:6342: \$? = $ac_status" >&5 | |
44493 | 6343 (exit $ac_status); } && |
6344 { ac_try='test -s conftest$ac_exeext' | |
46596 | 6345 { (eval echo "$as_me:6345: \"$ac_try\"") >&5 |
6346 (eval $ac_try) 2>&5 | |
6347 ac_status=$? | |
6348 echo "$as_me:6348: \$? = $ac_status" >&5 | |
40056 | 6349 (exit $ac_status); }; }; then |
35196 | 6350 emacs_xkb=yes |
6351 else | |
40056 | 6352 echo "$as_me: failed program was:" >&5 |
6353 cat conftest.$ac_ext >&5 | |
6354 emacs_xkb=no | |
6355 fi | |
6356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
46596 | 6357 echo "$as_me:6357: result: $emacs_xkb" >&5 |
40056 | 6358 echo "${ECHO_T}$emacs_xkb" >&6 |
35196 | 6359 if test $emacs_xkb = yes; then |
44569 | 6360 |
45226 | 6361 cat >>confdefs.h <<\EOF |
35196 | 6362 #define HAVE_XKBGETKEYBOARD 1 |
45226 | 6363 EOF |
6364 | |
6365 fi | |
35196 | 6366 |
40056 | 6367 for ac_func in XrmSetDatabase XScreenResourceString \ |
25897 | 6368 XScreenNumberOfScreen XSetWMProtocols |
6369 do | |
40056 | 6370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
46596 | 6371 echo "$as_me:6371: checking for $ac_func" >&5 |
40056 | 6372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
6373 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6374 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6375 else | |
6376 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 6377 #line 6377 "configure" |
25897 | 6378 #include "confdefs.h" |
6379 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 6380 which can conflict with char $ac_func (); below. */ |
25897 | 6381 #include <assert.h> |
6382 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 6383 #ifdef __cplusplus |
6384 extern "C" | |
6385 #endif | |
25897 | 6386 /* We use char because int might match the return type of a gcc2 |
40056 | 6387 builtin and then its argument prototype would still apply. */ |
6388 char $ac_func (); | |
6389 char (*f) (); | |
6390 | |
6391 int | |
6392 main () | |
6393 { | |
25897 | 6394 /* The GNU C library defines this for functions which it implements |
6395 to always fail with ENOSYS. Some functions are actually named | |
6396 something starting with __ and the normal name is an alias. */ | |
6397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6398 choke me | |
6399 #else | |
40056 | 6400 f = $ac_func; |
6401 #endif | |
6402 | |
6403 ; | |
6404 return 0; | |
6405 } | |
6406 _ACEOF | |
6407 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 6408 if { (eval echo "$as_me:6408: \"$ac_link\"") >&5 |
6409 (eval $ac_link) 2>&5 | |
6410 ac_status=$? | |
6411 echo "$as_me:6411: \$? = $ac_status" >&5 | |
44493 | 6412 (exit $ac_status); } && |
6413 { ac_try='test -s conftest$ac_exeext' | |
46596 | 6414 { (eval echo "$as_me:6414: \"$ac_try\"") >&5 |
6415 (eval $ac_try) 2>&5 | |
6416 ac_status=$? | |
6417 echo "$as_me:6417: \$? = $ac_status" >&5 | |
40056 | 6418 (exit $ac_status); }; }; then |
6419 eval "$as_ac_var=yes" | |
6420 else | |
6421 echo "$as_me: failed program was:" >&5 | |
6422 cat conftest.$ac_ext >&5 | |
6423 eval "$as_ac_var=no" | |
6424 fi | |
6425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6426 fi | |
46596 | 6427 echo "$as_me:6427: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 6428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
6429 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 6430 cat >>confdefs.h <<EOF |
40056 | 6431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 6432 EOF |
40056 | 6433 |
25897 | 6434 fi |
6435 done | |
6436 | |
6437 fi | |
6438 | |
6439 if test "${window_system}" = "x11"; then | |
46596 | 6440 echo "$as_me:6440: checking X11 version 6" >&5 |
40056 | 6441 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 |
6442 if test "${emacs_cv_x11_version_6+set}" = set; then | |
6443 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6444 else | |
6445 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 6446 #line 6446 "configure" |
25897 | 6447 #include "confdefs.h" |
6448 #include <X11/Xlib.h> | |
40056 | 6449 int |
6450 main () | |
6451 { | |
25897 | 6452 #if XlibSpecificationRelease < 6 |
6453 fail; | |
6454 #endif | |
6455 | |
40056 | 6456 ; |
6457 return 0; | |
6458 } | |
6459 _ACEOF | |
6460 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 6461 if { (eval echo "$as_me:6461: \"$ac_link\"") >&5 |
6462 (eval $ac_link) 2>&5 | |
6463 ac_status=$? | |
6464 echo "$as_me:6464: \$? = $ac_status" >&5 | |
44493 | 6465 (exit $ac_status); } && |
6466 { ac_try='test -s conftest$ac_exeext' | |
46596 | 6467 { (eval echo "$as_me:6467: \"$ac_try\"") >&5 |
6468 (eval $ac_try) 2>&5 | |
6469 ac_status=$? | |
6470 echo "$as_me:6470: \$? = $ac_status" >&5 | |
40056 | 6471 (exit $ac_status); }; }; then |
25897 | 6472 emacs_cv_x11_version_6=yes |
6473 else | |
40056 | 6474 echo "$as_me: failed program was:" >&5 |
6475 cat conftest.$ac_ext >&5 | |
6476 emacs_cv_x11_version_6=no | |
6477 fi | |
6478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6479 fi |
6480 | |
6481 if test $emacs_cv_x11_version_6 = yes; then | |
46596 | 6482 echo "$as_me:6482: result: 6 or newer" >&5 |
40056 | 6483 echo "${ECHO_T}6 or newer" >&6 |
44569 | 6484 |
45226 | 6485 cat >>confdefs.h <<\EOF |
25897 | 6486 #define HAVE_X11R6 1 |
45226 | 6487 EOF |
44493 | 6488 |
6489 else | |
46596 | 6490 echo "$as_me:6490: result: before 6" >&5 |
40056 | 6491 echo "${ECHO_T}before 6" >&6 |
25897 | 6492 fi |
6493 fi | |
6494 | |
6495 if test "${window_system}" = "x11"; then | |
46596 | 6496 echo "$as_me:6496: checking X11 version 5" >&5 |
40056 | 6497 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 |
6498 if test "${emacs_cv_x11_version_5+set}" = set; then | |
6499 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6500 else | |
6501 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 6502 #line 6502 "configure" |
25897 | 6503 #include "confdefs.h" |
6504 #include <X11/Xlib.h> | |
40056 | 6505 int |
6506 main () | |
6507 { | |
25897 | 6508 #if XlibSpecificationRelease < 5 |
6509 fail; | |
6510 #endif | |
6511 | |
40056 | 6512 ; |
6513 return 0; | |
6514 } | |
6515 _ACEOF | |
6516 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 6517 if { (eval echo "$as_me:6517: \"$ac_link\"") >&5 |
6518 (eval $ac_link) 2>&5 | |
6519 ac_status=$? | |
6520 echo "$as_me:6520: \$? = $ac_status" >&5 | |
44493 | 6521 (exit $ac_status); } && |
6522 { ac_try='test -s conftest$ac_exeext' | |
46596 | 6523 { (eval echo "$as_me:6523: \"$ac_try\"") >&5 |
6524 (eval $ac_try) 2>&5 | |
6525 ac_status=$? | |
6526 echo "$as_me:6526: \$? = $ac_status" >&5 | |
40056 | 6527 (exit $ac_status); }; }; then |
25897 | 6528 emacs_cv_x11_version_5=yes |
6529 else | |
40056 | 6530 echo "$as_me: failed program was:" >&5 |
6531 cat conftest.$ac_ext >&5 | |
6532 emacs_cv_x11_version_5=no | |
6533 fi | |
6534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6535 fi |
6536 | |
6537 if test $emacs_cv_x11_version_5 = yes; then | |
46596 | 6538 echo "$as_me:6538: result: 5 or newer" >&5 |
40056 | 6539 echo "${ECHO_T}5 or newer" >&6 |
25897 | 6540 HAVE_X11R5=yes |
44569 | 6541 |
45226 | 6542 cat >>confdefs.h <<\EOF |
25897 | 6543 #define HAVE_X11R5 1 |
45226 | 6544 EOF |
25897 | 6545 |
6546 else | |
6547 HAVE_X11R5=no | |
46596 | 6548 echo "$as_me:6548: result: before 5" >&5 |
40056 | 6549 echo "${ECHO_T}before 5" >&6 |
25897 | 6550 fi |
6551 fi | |
6552 | |
6553 if test x"${USE_X_TOOLKIT}" = xmaybe; then | |
6554 if test x"${HAVE_X11R5}" = xyes; then | |
46596 | 6555 echo "$as_me:6555: checking X11 version 5 with Xaw" >&5 |
40056 | 6556 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 |
6557 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then | |
6558 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6559 else | |
6560 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 6561 #line 6561 "configure" |
25897 | 6562 #include "confdefs.h" |
6563 | |
6564 #include <X11/Intrinsic.h> | |
6565 #include <X11/Xaw/Simple.h> | |
44493 | 6566 int |
6567 main () | |
6568 { | |
6569 | |
6570 ; | |
6571 return 0; | |
6572 } | |
6573 _ACEOF | |
6574 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 6575 if { (eval echo "$as_me:6575: \"$ac_link\"") >&5 |
6576 (eval $ac_link) 2>&5 | |
6577 ac_status=$? | |
6578 echo "$as_me:6578: \$? = $ac_status" >&5 | |
44493 | 6579 (exit $ac_status); } && |
6580 { ac_try='test -s conftest$ac_exeext' | |
46596 | 6581 { (eval echo "$as_me:6581: \"$ac_try\"") >&5 |
6582 (eval $ac_try) 2>&5 | |
6583 ac_status=$? | |
6584 echo "$as_me:6584: \$? = $ac_status" >&5 | |
40056 | 6585 (exit $ac_status); }; }; then |
25897 | 6586 emacs_cv_x11_version_5_with_xaw=yes |
6587 else | |
40056 | 6588 echo "$as_me: failed program was:" >&5 |
6589 cat conftest.$ac_ext >&5 | |
6590 emacs_cv_x11_version_5_with_xaw=no | |
6591 fi | |
6592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6593 fi |
6594 | |
6595 if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
46596 | 6596 echo "$as_me:6596: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
40056 | 6597 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 |
25897 | 6598 USE_X_TOOLKIT=LUCID |
6599 else | |
46596 | 6600 echo "$as_me:6600: result: before 5 or no Xaw; do not use toolkit by default" >&5 |
40056 | 6601 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 |
25897 | 6602 USE_X_TOOLKIT=none |
6603 fi | |
6604 else | |
6605 USE_X_TOOLKIT=none | |
6606 fi | |
6607 fi | |
6608 | |
6609 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
6610 | |
6611 if test "${USE_X_TOOLKIT}" != "none"; then | |
46596 | 6612 echo "$as_me:6612: checking X11 toolkit version" >&5 |
40056 | 6613 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 |
6614 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | |
6615 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6616 else | |
6617 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 6618 #line 6618 "configure" |
25897 | 6619 #include "confdefs.h" |
6620 #include <X11/Intrinsic.h> | |
40056 | 6621 int |
6622 main () | |
6623 { | |
25897 | 6624 #if XtSpecificationRelease < 6 |
6625 fail; | |
6626 #endif | |
6627 | |
40056 | 6628 ; |
6629 return 0; | |
6630 } | |
6631 _ACEOF | |
6632 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 6633 if { (eval echo "$as_me:6633: \"$ac_link\"") >&5 |
6634 (eval $ac_link) 2>&5 | |
6635 ac_status=$? | |
6636 echo "$as_me:6636: \$? = $ac_status" >&5 | |
44493 | 6637 (exit $ac_status); } && |
6638 { ac_try='test -s conftest$ac_exeext' | |
46596 | 6639 { (eval echo "$as_me:6639: \"$ac_try\"") >&5 |
6640 (eval $ac_try) 2>&5 | |
6641 ac_status=$? | |
6642 echo "$as_me:6642: \$? = $ac_status" >&5 | |
40056 | 6643 (exit $ac_status); }; }; then |
25897 | 6644 emacs_cv_x11_toolkit_version_6=yes |
6645 else | |
40056 | 6646 echo "$as_me: failed program was:" >&5 |
6647 cat conftest.$ac_ext >&5 | |
6648 emacs_cv_x11_toolkit_version_6=no | |
6649 fi | |
6650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 6651 fi |
6652 | |
6653 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
6654 if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
46596 | 6655 echo "$as_me:6655: result: 6 or newer" >&5 |
40056 | 6656 echo "${ECHO_T}6 or newer" >&6 |
44569 | 6657 |
45226 | 6658 cat >>confdefs.h <<\EOF |
25897 | 6659 #define HAVE_X11XTR6 1 |
45226 | 6660 EOF |
44493 | 6661 |
6662 else | |
46596 | 6663 echo "$as_me:6663: result: before 6" >&5 |
40056 | 6664 echo "${ECHO_T}before 6" >&6 |
25897 | 6665 fi |
6666 | |
6667 OLDLIBS="$LIBS" | |
6668 if test x$HAVE_X11XTR6 = xyes; then | |
6669 LIBS="-lXt -lSM -lICE $LIBS" | |
6670 else | |
6671 LIBS="-lXt $LIBS" | |
6672 fi | |
40056 | 6673 |
46596 | 6674 echo "$as_me:6674: checking for XmuConvertStandardSelection in -lXmu" >&5 |
40056 | 6675 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 |
6676 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | |
6677 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6678 else | |
6679 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6680 LIBS="-lXmu $LIBS" |
40056 | 6681 cat >conftest.$ac_ext <<_ACEOF |
46596 | 6682 #line 6682 "configure" |
40056 | 6683 #include "confdefs.h" |
6684 | |
25897 | 6685 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6686 #ifdef __cplusplus |
6687 extern "C" | |
6688 #endif | |
25897 | 6689 /* We use char because int might match the return type of a gcc2 |
40056 | 6690 builtin and then its argument prototype would still apply. */ |
6691 char XmuConvertStandardSelection (); | |
6692 int | |
6693 main () | |
6694 { | |
6695 XmuConvertStandardSelection (); | |
6696 ; | |
6697 return 0; | |
6698 } | |
6699 _ACEOF | |
6700 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 6701 if { (eval echo "$as_me:6701: \"$ac_link\"") >&5 |
6702 (eval $ac_link) 2>&5 | |
6703 ac_status=$? | |
6704 echo "$as_me:6704: \$? = $ac_status" >&5 | |
44493 | 6705 (exit $ac_status); } && |
6706 { ac_try='test -s conftest$ac_exeext' | |
46596 | 6707 { (eval echo "$as_me:6707: \"$ac_try\"") >&5 |
6708 (eval $ac_try) 2>&5 | |
6709 ac_status=$? | |
6710 echo "$as_me:6710: \$? = $ac_status" >&5 | |
40056 | 6711 (exit $ac_status); }; }; then |
6712 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | |
6713 else | |
6714 echo "$as_me: failed program was:" >&5 | |
6715 cat conftest.$ac_ext >&5 | |
6716 ac_cv_lib_Xmu_XmuConvertStandardSelection=no | |
6717 fi | |
6718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6719 LIBS=$ac_check_lib_save_LIBS | |
6720 fi | |
46596 | 6721 echo "$as_me:6721: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
40056 | 6722 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 |
6723 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | |
45226 | 6724 cat >>confdefs.h <<EOF |
40056 | 6725 #define HAVE_LIBXMU 1 |
45226 | 6726 EOF |
25897 | 6727 |
6728 LIBS="-lXmu $LIBS" | |
6729 | |
6730 fi | |
6731 | |
35206 | 6732 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" |
6733 fi | |
6734 | |
6735 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
6736 if test "${HAVE_X11}" = "yes"; then | |
6737 if test "${USE_X_TOOLKIT}" != "none"; then | |
40056 | 6738 |
46596 | 6739 echo "$as_me:6739: checking for XShapeQueryExtension in -lXext" >&5 |
40056 | 6740 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
6741 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
6742 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6743 else | |
6744 ac_check_lib_save_LIBS=$LIBS | |
35206 | 6745 LIBS="-lXext $LIBS" |
40056 | 6746 cat >conftest.$ac_ext <<_ACEOF |
46596 | 6747 #line 6747 "configure" |
40056 | 6748 #include "confdefs.h" |
6749 | |
35206 | 6750 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6751 #ifdef __cplusplus |
6752 extern "C" | |
6753 #endif | |
35206 | 6754 /* We use char because int might match the return type of a gcc2 |
40056 | 6755 builtin and then its argument prototype would still apply. */ |
6756 char XShapeQueryExtension (); | |
6757 int | |
6758 main () | |
6759 { | |
6760 XShapeQueryExtension (); | |
6761 ; | |
6762 return 0; | |
6763 } | |
6764 _ACEOF | |
6765 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 6766 if { (eval echo "$as_me:6766: \"$ac_link\"") >&5 |
6767 (eval $ac_link) 2>&5 | |
6768 ac_status=$? | |
6769 echo "$as_me:6769: \$? = $ac_status" >&5 | |
44493 | 6770 (exit $ac_status); } && |
6771 { ac_try='test -s conftest$ac_exeext' | |
46596 | 6772 { (eval echo "$as_me:6772: \"$ac_try\"") >&5 |
6773 (eval $ac_try) 2>&5 | |
6774 ac_status=$? | |
6775 echo "$as_me:6775: \$? = $ac_status" >&5 | |
40056 | 6776 (exit $ac_status); }; }; then |
6777 ac_cv_lib_Xext_XShapeQueryExtension=yes | |
6778 else | |
6779 echo "$as_me: failed program was:" >&5 | |
6780 cat conftest.$ac_ext >&5 | |
6781 ac_cv_lib_Xext_XShapeQueryExtension=no | |
6782 fi | |
6783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6784 LIBS=$ac_check_lib_save_LIBS | |
6785 fi | |
46596 | 6786 echo "$as_me:6786: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
40056 | 6787 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
6788 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
45226 | 6789 cat >>confdefs.h <<EOF |
40056 | 6790 #define HAVE_LIBXEXT 1 |
45226 | 6791 EOF |
35206 | 6792 |
6793 LIBS="-lXext $LIBS" | |
6794 | |
6795 fi | |
6796 | |
6797 fi | |
25897 | 6798 fi |
6799 | |
6800 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
46596 | 6801 echo "$as_me:6801: checking for Motif version 2.1" >&5 |
40056 | 6802 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 |
6803 if test "${emacs_cv_motif_version_2_1+set}" = set; then | |
6804 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6805 else | |
6806 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 6807 #line 6807 "configure" |
25897 | 6808 #include "confdefs.h" |
6809 #include <Xm/Xm.h> | |
40056 | 6810 int |
6811 main () | |
6812 { | |
25897 | 6813 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
6814 int x = 5; | |
6815 #else | |
6816 Motif version prior to 2.1. | |
6817 #endif | |
40056 | 6818 ; |
6819 return 0; | |
6820 } | |
6821 _ACEOF | |
6822 rm -f conftest.$ac_objext | |
46596 | 6823 if { (eval echo "$as_me:6823: \"$ac_compile\"") >&5 |
44493 | 6824 (eval $ac_compile) 2>&5 |
6825 ac_status=$? | |
46596 | 6826 echo "$as_me:6826: \$? = $ac_status" >&5 |
44493 | 6827 (exit $ac_status); } && |
6828 { ac_try='test -s conftest.$ac_objext' | |
46596 | 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 |
25897 | 6834 emacs_cv_motif_version_2_1=yes |
6835 else | |
40056 | 6836 echo "$as_me: failed program was:" >&5 |
6837 cat conftest.$ac_ext >&5 | |
6838 emacs_cv_motif_version_2_1=no | |
6839 fi | |
6840 rm -f conftest.$ac_objext conftest.$ac_ext | |
6841 fi | |
46596 | 6842 echo "$as_me:6842: result: $emacs_cv_motif_version_2_1" >&5 |
40056 | 6843 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 |
25897 | 6844 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 |
6845 if test $emacs_cv_motif_version_2_1 = yes; then | |
34431 | 6846 HAVE_LIBXP=no |
44569 | 6847 |
45226 | 6848 cat >>confdefs.h <<\EOF |
25897 | 6849 #define HAVE_MOTIF_2_1 1 |
45226 | 6850 EOF |
6851 | |
46596 | 6852 echo "$as_me:6852: checking for XpCreateContext in -lXp" >&5 |
40056 | 6853 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 |
6854 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | |
6855 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6856 else | |
6857 ac_check_lib_save_LIBS=$LIBS | |
35206 | 6858 LIBS="-lXp $LIBS" |
40056 | 6859 cat >conftest.$ac_ext <<_ACEOF |
46596 | 6860 #line 6860 "configure" |
40056 | 6861 #include "confdefs.h" |
6862 | |
25897 | 6863 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6864 #ifdef __cplusplus |
6865 extern "C" | |
6866 #endif | |
25897 | 6867 /* We use char because int might match the return type of a gcc2 |
40056 | 6868 builtin and then its argument prototype would still apply. */ |
6869 char XpCreateContext (); | |
6870 int | |
6871 main () | |
6872 { | |
6873 XpCreateContext (); | |
6874 ; | |
6875 return 0; | |
6876 } | |
6877 _ACEOF | |
6878 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 6879 if { (eval echo "$as_me:6879: \"$ac_link\"") >&5 |
6880 (eval $ac_link) 2>&5 | |
6881 ac_status=$? | |
6882 echo "$as_me:6882: \$? = $ac_status" >&5 | |
44493 | 6883 (exit $ac_status); } && |
6884 { ac_try='test -s conftest$ac_exeext' | |
46596 | 6885 { (eval echo "$as_me:6885: \"$ac_try\"") >&5 |
6886 (eval $ac_try) 2>&5 | |
6887 ac_status=$? | |
6888 echo "$as_me:6888: \$? = $ac_status" >&5 | |
40056 | 6889 (exit $ac_status); }; }; then |
6890 ac_cv_lib_Xp_XpCreateContext=yes | |
6891 else | |
6892 echo "$as_me: failed program was:" >&5 | |
6893 cat conftest.$ac_ext >&5 | |
6894 ac_cv_lib_Xp_XpCreateContext=no | |
6895 fi | |
6896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6897 LIBS=$ac_check_lib_save_LIBS | |
6898 fi | |
46596 | 6899 echo "$as_me:6899: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
40056 | 6900 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 |
6901 if test $ac_cv_lib_Xp_XpCreateContext = yes; then | |
29906 | 6902 HAVE_LIBXP=yes |
25897 | 6903 fi |
6904 | |
29906 | 6905 if test ${HAVE_LIBXP} = yes; then |
44569 | 6906 |
45226 | 6907 cat >>confdefs.h <<\EOF |
29906 | 6908 #define HAVE_LIBXP 1 |
45226 | 6909 EOF |
29906 | 6910 |
40056 | 6911 fi |
25897 | 6912 fi |
6913 fi | |
6914 | |
6915 ### Is -lXaw3d available? | |
6916 HAVE_XAW3D=no | |
6917 if test "${HAVE_X11}" = "yes"; then | |
6918 if test "${USE_X_TOOLKIT}" != "none"; then | |
46596 | 6919 echo "$as_me:6919: checking for X11/Xaw3d/Scrollbar.h" >&5 |
40056 | 6920 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 |
6921 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then | |
6922 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 6923 else |
6924 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 6925 #line 6925 "configure" |
25897 | 6926 #include "confdefs.h" |
6927 #include <X11/Xaw3d/Scrollbar.h> | |
40056 | 6928 _ACEOF |
46596 | 6929 if { (eval echo "$as_me:6929: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 6930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6931 ac_status=$? | |
6932 egrep -v '^ *\+' conftest.er1 >conftest.err | |
6933 rm -f conftest.er1 | |
6934 cat conftest.err >&5 | |
46596 | 6935 echo "$as_me:6935: \$? = $ac_status" >&5 |
40056 | 6936 (exit $ac_status); } >/dev/null; then |
6937 if test -s conftest.err; then | |
6938 ac_cpp_err=$ac_c_preproc_warn_flag | |
6939 else | |
6940 ac_cpp_err= | |
6941 fi | |
6942 else | |
6943 ac_cpp_err=yes | |
6944 fi | |
6945 if test -z "$ac_cpp_err"; then | |
45226 | 6946 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes |
40056 | 6947 else |
6948 echo "$as_me: failed program was:" >&5 | |
25897 | 6949 cat conftest.$ac_ext >&5 |
45226 | 6950 ac_cv_header_X11_Xaw3d_Scrollbar_h=no |
40056 | 6951 fi |
6952 rm -f conftest.err conftest.$ac_ext | |
45226 | 6953 fi |
46596 | 6954 echo "$as_me:6954: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 |
40056 | 6955 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 |
6956 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then | |
46596 | 6957 echo "$as_me:6957: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
40056 | 6958 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 |
6959 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then | |
6960 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6961 else | |
6962 ac_check_lib_save_LIBS=$LIBS | |
35206 | 6963 LIBS="-lXaw3d $LIBS" |
40056 | 6964 cat >conftest.$ac_ext <<_ACEOF |
46596 | 6965 #line 6965 "configure" |
40056 | 6966 #include "confdefs.h" |
6967 | |
25897 | 6968 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6969 #ifdef __cplusplus |
6970 extern "C" | |
6971 #endif | |
25897 | 6972 /* We use char because int might match the return type of a gcc2 |
40056 | 6973 builtin and then its argument prototype would still apply. */ |
6974 char XawScrollbarSetThumb (); | |
6975 int | |
6976 main () | |
6977 { | |
6978 XawScrollbarSetThumb (); | |
6979 ; | |
6980 return 0; | |
6981 } | |
6982 _ACEOF | |
6983 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 6984 if { (eval echo "$as_me:6984: \"$ac_link\"") >&5 |
6985 (eval $ac_link) 2>&5 | |
6986 ac_status=$? | |
6987 echo "$as_me:6987: \$? = $ac_status" >&5 | |
44493 | 6988 (exit $ac_status); } && |
6989 { ac_try='test -s conftest$ac_exeext' | |
46596 | 6990 { (eval echo "$as_me:6990: \"$ac_try\"") >&5 |
6991 (eval $ac_try) 2>&5 | |
6992 ac_status=$? | |
6993 echo "$as_me:6993: \$? = $ac_status" >&5 | |
40056 | 6994 (exit $ac_status); }; }; then |
6995 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes | |
6996 else | |
6997 echo "$as_me: failed program was:" >&5 | |
6998 cat conftest.$ac_ext >&5 | |
6999 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no | |
7000 fi | |
7001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7002 LIBS=$ac_check_lib_save_LIBS | |
7003 fi | |
46596 | 7004 echo "$as_me:7004: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
40056 | 7005 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 |
7006 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then | |
25897 | 7007 HAVE_XAW3D=yes |
40056 | 7008 fi |
7009 | |
25897 | 7010 fi |
7011 | |
7012 if test "${HAVE_XAW3D}" = "yes"; then | |
44569 | 7013 |
45226 | 7014 cat >>confdefs.h <<\EOF |
25897 | 7015 #define HAVE_XAW3D 1 |
45226 | 7016 EOF |
25897 | 7017 |
7018 fi | |
7019 fi | |
7020 fi | |
7021 | |
7022 USE_TOOLKIT_SCROLL_BARS=no | |
7023 if test "${with_toolkit_scroll_bars}" != "no"; then | |
7024 if test "${USE_X_TOOLKIT}" != "none"; then | |
7025 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
45226 | 7026 cat >>confdefs.h <<\EOF |
25897 | 7027 #define USE_TOOLKIT_SCROLL_BARS 1 |
45226 | 7028 EOF |
25897 | 7029 |
7030 HAVE_XAW3D=no | |
7031 USE_TOOLKIT_SCROLL_BARS=yes | |
7032 elif test "${HAVE_XAW3D}" = "yes"; then | |
45226 | 7033 cat >>confdefs.h <<\EOF |
25897 | 7034 #define USE_TOOLKIT_SCROLL_BARS 1 |
45226 | 7035 EOF |
25897 | 7036 |
7037 USE_TOOLKIT_SCROLL_BARS=yes | |
7038 fi | |
7039 fi | |
7040 fi | |
7041 | |
29949 | 7042 if test "${with_xim}" != "no"; then |
44569 | 7043 |
45226 | 7044 cat >>confdefs.h <<\EOF |
29949 | 7045 #define USE_XIM 1 |
45226 | 7046 EOF |
29949 | 7047 |
7048 fi | |
7049 | |
25897 | 7050 ### Use -lXpm if available, unless `--with-xpm=no'. |
7051 HAVE_XPM=no | |
7052 if test "${HAVE_X11}" = "yes"; then | |
7053 if test "${with_xpm}" != "no"; then | |
46596 | 7054 echo "$as_me:7054: checking for X11/xpm.h" >&5 |
40056 | 7055 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 |
7056 if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
7057 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 7058 else |
7059 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 7060 #line 7060 "configure" |
25897 | 7061 #include "confdefs.h" |
7062 #include <X11/xpm.h> | |
40056 | 7063 _ACEOF |
46596 | 7064 if { (eval echo "$as_me:7064: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 7065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7066 ac_status=$? | |
7067 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7068 rm -f conftest.er1 | |
7069 cat conftest.err >&5 | |
46596 | 7070 echo "$as_me:7070: \$? = $ac_status" >&5 |
40056 | 7071 (exit $ac_status); } >/dev/null; then |
7072 if test -s conftest.err; then | |
7073 ac_cpp_err=$ac_c_preproc_warn_flag | |
7074 else | |
7075 ac_cpp_err= | |
7076 fi | |
7077 else | |
7078 ac_cpp_err=yes | |
7079 fi | |
7080 if test -z "$ac_cpp_err"; then | |
45226 | 7081 ac_cv_header_X11_xpm_h=yes |
40056 | 7082 else |
7083 echo "$as_me: failed program was:" >&5 | |
25897 | 7084 cat conftest.$ac_ext >&5 |
45226 | 7085 ac_cv_header_X11_xpm_h=no |
40056 | 7086 fi |
7087 rm -f conftest.err conftest.$ac_ext | |
45226 | 7088 fi |
46596 | 7089 echo "$as_me:7089: result: $ac_cv_header_X11_xpm_h" >&5 |
40056 | 7090 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 |
7091 if test $ac_cv_header_X11_xpm_h = yes; then | |
46596 | 7092 echo "$as_me:7092: checking for XpmReadFileToPixmap in -lXpm" >&5 |
40056 | 7093 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 |
7094 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | |
7095 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7096 else | |
7097 ac_check_lib_save_LIBS=$LIBS | |
25897 | 7098 LIBS="-lXpm -lX11 $LIBS" |
40056 | 7099 cat >conftest.$ac_ext <<_ACEOF |
46596 | 7100 #line 7100 "configure" |
40056 | 7101 #include "confdefs.h" |
7102 | |
25897 | 7103 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7104 #ifdef __cplusplus |
7105 extern "C" | |
7106 #endif | |
25897 | 7107 /* We use char because int might match the return type of a gcc2 |
40056 | 7108 builtin and then its argument prototype would still apply. */ |
7109 char XpmReadFileToPixmap (); | |
7110 int | |
7111 main () | |
7112 { | |
7113 XpmReadFileToPixmap (); | |
7114 ; | |
7115 return 0; | |
7116 } | |
7117 _ACEOF | |
7118 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 7119 if { (eval echo "$as_me:7119: \"$ac_link\"") >&5 |
7120 (eval $ac_link) 2>&5 | |
7121 ac_status=$? | |
7122 echo "$as_me:7122: \$? = $ac_status" >&5 | |
44493 | 7123 (exit $ac_status); } && |
7124 { ac_try='test -s conftest$ac_exeext' | |
46596 | 7125 { (eval echo "$as_me:7125: \"$ac_try\"") >&5 |
7126 (eval $ac_try) 2>&5 | |
7127 ac_status=$? | |
7128 echo "$as_me:7128: \$? = $ac_status" >&5 | |
40056 | 7129 (exit $ac_status); }; }; then |
7130 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes | |
7131 else | |
7132 echo "$as_me: failed program was:" >&5 | |
7133 cat conftest.$ac_ext >&5 | |
7134 ac_cv_lib_Xpm_XpmReadFileToPixmap=no | |
7135 fi | |
7136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7137 LIBS=$ac_check_lib_save_LIBS | |
7138 fi | |
46596 | 7139 echo "$as_me:7139: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
40056 | 7140 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 |
7141 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | |
25897 | 7142 HAVE_XPM=yes |
40056 | 7143 fi |
7144 | |
25897 | 7145 fi |
7146 | |
30140 | 7147 if test "${HAVE_XPM}" = "yes"; then |
46596 | 7148 echo "$as_me:7148: checking for XpmReturnAllocPixels preprocessor define" >&5 |
40056 | 7149 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 |
7150 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 7151 #line 7151 "configure" |
30140 | 7152 #include "confdefs.h" |
7153 #include "X11/xpm.h" | |
7154 #ifndef XpmReturnAllocPixels | |
7155 no_return_alloc_pixels | |
7156 #endif | |
40056 | 7157 |
7158 _ACEOF | |
30140 | 7159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7160 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then | |
7161 HAVE_XPM=no | |
7162 else | |
7163 HAVE_XPM=yes | |
7164 fi | |
7165 rm -f conftest* | |
7166 | |
36903 | 7167 if test "${HAVE_XPM}" = "yes"; then |
46596 | 7168 echo "$as_me:7168: result: yes" >&5 |
40056 | 7169 echo "${ECHO_T}yes" >&6 |
36903 | 7170 else |
46596 | 7171 echo "$as_me:7171: result: no" >&5 |
40056 | 7172 echo "${ECHO_T}no" >&6 |
36903 | 7173 fi |
31320 | 7174 fi |
25897 | 7175 fi |
7176 | |
7177 if test "${HAVE_XPM}" = "yes"; then | |
44569 | 7178 |
45226 | 7179 cat >>confdefs.h <<\EOF |
25897 | 7180 #define HAVE_XPM 1 |
45226 | 7181 EOF |
25897 | 7182 |
7183 fi | |
7184 fi | |
40056 | 7185 |
25897 | 7186 ### Use -ljpeg if available, unless `--with-jpeg=no'. |
7187 HAVE_JPEG=no | |
7188 if test "${HAVE_X11}" = "yes"; then | |
7189 if test "${with_jpeg}" != "no"; then | |
46596 | 7190 echo "$as_me:7190: checking for jerror.h" >&5 |
40056 | 7191 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 |
7192 if test "${ac_cv_header_jerror_h+set}" = set; then | |
7193 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 7194 else |
7195 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 7196 #line 7196 "configure" |
27356 | 7197 #include "confdefs.h" |
7198 #include <jerror.h> | |
40056 | 7199 _ACEOF |
46596 | 7200 if { (eval echo "$as_me:7200: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 7201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7202 ac_status=$? | |
7203 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7204 rm -f conftest.er1 | |
7205 cat conftest.err >&5 | |
46596 | 7206 echo "$as_me:7206: \$? = $ac_status" >&5 |
40056 | 7207 (exit $ac_status); } >/dev/null; then |
7208 if test -s conftest.err; then | |
7209 ac_cpp_err=$ac_c_preproc_warn_flag | |
7210 else | |
7211 ac_cpp_err= | |
7212 fi | |
7213 else | |
7214 ac_cpp_err=yes | |
7215 fi | |
7216 if test -z "$ac_cpp_err"; then | |
45226 | 7217 ac_cv_header_jerror_h=yes |
40056 | 7218 else |
7219 echo "$as_me: failed program was:" >&5 | |
27356 | 7220 cat conftest.$ac_ext >&5 |
45226 | 7221 ac_cv_header_jerror_h=no |
40056 | 7222 fi |
7223 rm -f conftest.err conftest.$ac_ext | |
45226 | 7224 fi |
46596 | 7225 echo "$as_me:7225: result: $ac_cv_header_jerror_h" >&5 |
40056 | 7226 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 |
7227 if test $ac_cv_header_jerror_h = yes; then | |
46596 | 7228 echo "$as_me:7228: checking for jpeg_destroy_compress in -ljpeg" >&5 |
40056 | 7229 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 |
7230 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | |
7231 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7232 else | |
7233 ac_check_lib_save_LIBS=$LIBS | |
35206 | 7234 LIBS="-ljpeg $LIBS" |
40056 | 7235 cat >conftest.$ac_ext <<_ACEOF |
46596 | 7236 #line 7236 "configure" |
40056 | 7237 #include "confdefs.h" |
7238 | |
25897 | 7239 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7240 #ifdef __cplusplus |
7241 extern "C" | |
7242 #endif | |
25897 | 7243 /* We use char because int might match the return type of a gcc2 |
40056 | 7244 builtin and then its argument prototype would still apply. */ |
7245 char jpeg_destroy_compress (); | |
7246 int | |
7247 main () | |
7248 { | |
7249 jpeg_destroy_compress (); | |
7250 ; | |
7251 return 0; | |
7252 } | |
7253 _ACEOF | |
7254 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 7255 if { (eval echo "$as_me:7255: \"$ac_link\"") >&5 |
7256 (eval $ac_link) 2>&5 | |
7257 ac_status=$? | |
7258 echo "$as_me:7258: \$? = $ac_status" >&5 | |
44493 | 7259 (exit $ac_status); } && |
7260 { ac_try='test -s conftest$ac_exeext' | |
46596 | 7261 { (eval echo "$as_me:7261: \"$ac_try\"") >&5 |
7262 (eval $ac_try) 2>&5 | |
7263 ac_status=$? | |
7264 echo "$as_me:7264: \$? = $ac_status" >&5 | |
40056 | 7265 (exit $ac_status); }; }; then |
7266 ac_cv_lib_jpeg_jpeg_destroy_compress=yes | |
7267 else | |
7268 echo "$as_me: failed program was:" >&5 | |
7269 cat conftest.$ac_ext >&5 | |
7270 ac_cv_lib_jpeg_jpeg_destroy_compress=no | |
7271 fi | |
7272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7273 LIBS=$ac_check_lib_save_LIBS | |
7274 fi | |
46596 | 7275 echo "$as_me:7275: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
40056 | 7276 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 |
7277 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | |
25897 | 7278 HAVE_JPEG=yes |
40056 | 7279 fi |
7280 | |
27356 | 7281 fi |
7282 | |
45226 | 7283 fi |
44569 | 7284 |
25897 | 7285 if test "${HAVE_JPEG}" = "yes"; then |
45226 | 7286 cat >>confdefs.h <<\EOF |
25897 | 7287 #define HAVE_JPEG 1 |
45226 | 7288 EOF |
25897 | 7289 |
43721 | 7290 cat >conftest.$ac_ext <<_ACEOF |
46596 | 7291 #line 7291 "configure" |
43721 | 7292 #include "confdefs.h" |
7293 #include <jpeglib.h> | |
7294 version=JPEG_LIB_VERSION | |
7295 | |
7296 _ACEOF | |
7297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7298 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then | |
45226 | 7299 cat >>confdefs.h <<\EOF |
43721 | 7300 #define HAVE_JPEG 1 |
45226 | 7301 EOF |
7302 | |
7303 else | |
46596 | 7304 { echo "$as_me:7304: WARNING: libjpeg found, but not version 6b or later" >&5 |
43721 | 7305 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
7306 HAVE_JPEG=no | |
7307 fi | |
7308 rm -f conftest* | |
7309 | |
25897 | 7310 fi |
7311 fi | |
40056 | 7312 |
25897 | 7313 ### Use -lpng if available, unless `--with-png=no'. |
7314 HAVE_PNG=no | |
7315 if test "${HAVE_X11}" = "yes"; then | |
7316 if test "${with_png}" != "no"; then | |
46596 | 7317 echo "$as_me:7317: checking for png.h" >&5 |
40056 | 7318 echo $ECHO_N "checking for png.h... $ECHO_C" >&6 |
7319 if test "${ac_cv_header_png_h+set}" = set; then | |
7320 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 7321 else |
7322 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 7323 #line 7323 "configure" |
25897 | 7324 #include "confdefs.h" |
7325 #include <png.h> | |
40056 | 7326 _ACEOF |
46596 | 7327 if { (eval echo "$as_me:7327: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 7328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7329 ac_status=$? | |
7330 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7331 rm -f conftest.er1 | |
7332 cat conftest.err >&5 | |
46596 | 7333 echo "$as_me:7333: \$? = $ac_status" >&5 |
40056 | 7334 (exit $ac_status); } >/dev/null; then |
7335 if test -s conftest.err; then | |
7336 ac_cpp_err=$ac_c_preproc_warn_flag | |
7337 else | |
7338 ac_cpp_err= | |
7339 fi | |
7340 else | |
7341 ac_cpp_err=yes | |
7342 fi | |
7343 if test -z "$ac_cpp_err"; then | |
45226 | 7344 ac_cv_header_png_h=yes |
40056 | 7345 else |
7346 echo "$as_me: failed program was:" >&5 | |
25897 | 7347 cat conftest.$ac_ext >&5 |
45226 | 7348 ac_cv_header_png_h=no |
40056 | 7349 fi |
7350 rm -f conftest.err conftest.$ac_ext | |
45226 | 7351 fi |
46596 | 7352 echo "$as_me:7352: result: $ac_cv_header_png_h" >&5 |
40056 | 7353 echo "${ECHO_T}$ac_cv_header_png_h" >&6 |
7354 if test $ac_cv_header_png_h = yes; then | |
46596 | 7355 echo "$as_me:7355: checking for png_get_channels in -lpng" >&5 |
40056 | 7356 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 |
7357 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | |
7358 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7359 else | |
7360 ac_check_lib_save_LIBS=$LIBS | |
35206 | 7361 LIBS="-lpng -lz -lm $LIBS" |
40056 | 7362 cat >conftest.$ac_ext <<_ACEOF |
46596 | 7363 #line 7363 "configure" |
40056 | 7364 #include "confdefs.h" |
7365 | |
25897 | 7366 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7367 #ifdef __cplusplus |
7368 extern "C" | |
7369 #endif | |
25897 | 7370 /* We use char because int might match the return type of a gcc2 |
40056 | 7371 builtin and then its argument prototype would still apply. */ |
7372 char png_get_channels (); | |
7373 int | |
7374 main () | |
7375 { | |
7376 png_get_channels (); | |
7377 ; | |
7378 return 0; | |
7379 } | |
7380 _ACEOF | |
7381 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 7382 if { (eval echo "$as_me:7382: \"$ac_link\"") >&5 |
7383 (eval $ac_link) 2>&5 | |
7384 ac_status=$? | |
7385 echo "$as_me:7385: \$? = $ac_status" >&5 | |
44493 | 7386 (exit $ac_status); } && |
7387 { ac_try='test -s conftest$ac_exeext' | |
46596 | 7388 { (eval echo "$as_me:7388: \"$ac_try\"") >&5 |
7389 (eval $ac_try) 2>&5 | |
7390 ac_status=$? | |
7391 echo "$as_me:7391: \$? = $ac_status" >&5 | |
40056 | 7392 (exit $ac_status); }; }; then |
7393 ac_cv_lib_png_png_get_channels=yes | |
7394 else | |
7395 echo "$as_me: failed program was:" >&5 | |
7396 cat conftest.$ac_ext >&5 | |
7397 ac_cv_lib_png_png_get_channels=no | |
7398 fi | |
7399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7400 LIBS=$ac_check_lib_save_LIBS | |
7401 fi | |
46596 | 7402 echo "$as_me:7402: result: $ac_cv_lib_png_png_get_channels" >&5 |
40056 | 7403 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 |
7404 if test $ac_cv_lib_png_png_get_channels = yes; then | |
25897 | 7405 HAVE_PNG=yes |
40056 | 7406 fi |
7407 | |
25897 | 7408 fi |
7409 | |
7410 fi | |
7411 | |
7412 if test "${HAVE_PNG}" = "yes"; then | |
44569 | 7413 |
45226 | 7414 cat >>confdefs.h <<\EOF |
25897 | 7415 #define HAVE_PNG 1 |
45226 | 7416 EOF |
25897 | 7417 |
7418 fi | |
7419 fi | |
40056 | 7420 |
25897 | 7421 ### Use -ltiff if available, unless `--with-tiff=no'. |
7422 HAVE_TIFF=no | |
7423 if test "${HAVE_X11}" = "yes"; then | |
7424 if test "${with_tiff}" != "no"; then | |
46596 | 7425 echo "$as_me:7425: checking for tiffio.h" >&5 |
40056 | 7426 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
7427 if test "${ac_cv_header_tiffio_h+set}" = set; then | |
7428 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 7429 else |
7430 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 7431 #line 7431 "configure" |
25897 | 7432 #include "confdefs.h" |
7433 #include <tiffio.h> | |
40056 | 7434 _ACEOF |
46596 | 7435 if { (eval echo "$as_me:7435: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 7436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7437 ac_status=$? | |
7438 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7439 rm -f conftest.er1 | |
7440 cat conftest.err >&5 | |
46596 | 7441 echo "$as_me:7441: \$? = $ac_status" >&5 |
40056 | 7442 (exit $ac_status); } >/dev/null; then |
7443 if test -s conftest.err; then | |
7444 ac_cpp_err=$ac_c_preproc_warn_flag | |
7445 else | |
7446 ac_cpp_err= | |
7447 fi | |
7448 else | |
7449 ac_cpp_err=yes | |
7450 fi | |
7451 if test -z "$ac_cpp_err"; then | |
45226 | 7452 ac_cv_header_tiffio_h=yes |
40056 | 7453 else |
7454 echo "$as_me: failed program was:" >&5 | |
25897 | 7455 cat conftest.$ac_ext >&5 |
45226 | 7456 ac_cv_header_tiffio_h=no |
40056 | 7457 fi |
7458 rm -f conftest.err conftest.$ac_ext | |
45226 | 7459 fi |
46596 | 7460 echo "$as_me:7460: result: $ac_cv_header_tiffio_h" >&5 |
44493 | 7461 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
7462 if test $ac_cv_header_tiffio_h = yes; then | |
7463 tifflibs="-lz -lm" | |
7464 # At least one tiff package requires the jpeg library. | |
7465 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
46596 | 7466 echo "$as_me:7466: checking for TIFFGetVersion in -ltiff" >&5 |
44493 | 7467 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 |
7468 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | |
40056 | 7469 echo $ECHO_N "(cached) $ECHO_C" >&6 |
7470 else | |
7471 ac_check_lib_save_LIBS=$LIBS | |
44493 | 7472 LIBS="-ltiff $tifflibs $LIBS" |
7473 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 7474 #line 7474 "configure" |
44493 | 7475 #include "confdefs.h" |
7476 | |
7477 /* Override any gcc2 internal prototype to avoid an error. */ | |
7478 #ifdef __cplusplus | |
7479 extern "C" | |
7480 #endif | |
7481 /* We use char because int might match the return type of a gcc2 | |
7482 builtin and then its argument prototype would still apply. */ | |
7483 char TIFFGetVersion (); | |
7484 int | |
7485 main () | |
7486 { | |
7487 TIFFGetVersion (); | |
7488 ; | |
7489 return 0; | |
7490 } | |
7491 _ACEOF | |
7492 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 7493 if { (eval echo "$as_me:7493: \"$ac_link\"") >&5 |
7494 (eval $ac_link) 2>&5 | |
7495 ac_status=$? | |
7496 echo "$as_me:7496: \$? = $ac_status" >&5 | |
44493 | 7497 (exit $ac_status); } && |
7498 { ac_try='test -s conftest$ac_exeext' | |
46596 | 7499 { (eval echo "$as_me:7499: \"$ac_try\"") >&5 |
7500 (eval $ac_try) 2>&5 | |
7501 ac_status=$? | |
7502 echo "$as_me:7502: \$? = $ac_status" >&5 | |
44493 | 7503 (exit $ac_status); }; }; then |
7504 ac_cv_lib_tiff_TIFFGetVersion=yes | |
7505 else | |
7506 echo "$as_me: failed program was:" >&5 | |
7507 cat conftest.$ac_ext >&5 | |
7508 ac_cv_lib_tiff_TIFFGetVersion=no | |
40056 | 7509 fi |
7510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7511 LIBS=$ac_check_lib_save_LIBS | |
7512 fi | |
46596 | 7513 echo "$as_me:7513: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
44493 | 7514 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 |
7515 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | |
7516 HAVE_TIFF=yes | |
7517 fi | |
7518 | |
7519 fi | |
7520 | |
7521 fi | |
7522 | |
7523 if test "${HAVE_TIFF}" = "yes"; then | |
44569 | 7524 |
45226 | 7525 cat >>confdefs.h <<\EOF |
44493 | 7526 #define HAVE_TIFF 1 |
45226 | 7527 EOF |
44493 | 7528 |
7529 fi | |
7530 fi | |
7531 | |
7532 ### Use -lgif if available, unless `--with-gif=no'. | |
7533 HAVE_GIF=no | |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7534 if test "${HAVE_X11}" = "yes"; then |
44493 | 7535 if test "${with_gif}" != "no"; then |
46596 | 7536 echo "$as_me:7536: checking for gif_lib.h" >&5 |
44493 | 7537 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 |
7538 if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
7539 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 7540 else |
7541 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 7542 #line 7542 "configure" |
44493 | 7543 #include "confdefs.h" |
7544 #include <gif_lib.h> | |
7545 _ACEOF | |
46596 | 7546 if { (eval echo "$as_me:7546: \"$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
|
7547 (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
|
7548 ac_status=$? |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7549 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
|
7550 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
|
7551 cat conftest.err >&5 |
46596 | 7552 echo "$as_me:7552: \$? = $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
|
7553 (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
|
7554 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
|
7555 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
|
7556 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7557 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
|
7558 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7559 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7560 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
|
7561 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7562 if test -z "$ac_cpp_err"; then |
45226 | 7563 ac_cv_header_gif_lib_h=yes |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7564 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7565 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
|
7566 cat conftest.$ac_ext >&5 |
45226 | 7567 ac_cv_header_gif_lib_h=no |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7568 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7569 rm -f conftest.err conftest.$ac_ext |
45226 | 7570 fi |
46596 | 7571 echo "$as_me:7571: result: $ac_cv_header_gif_lib_h" >&5 |
44493 | 7572 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 |
7573 if test $ac_cv_header_gif_lib_h = yes; then | |
7574 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | |
7575 # Earlier versions can crash Emacs. | |
46596 | 7576 echo "$as_me:7576: checking for EGifPutExtensionLast in -lungif" >&5 |
44493 | 7577 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6 |
7578 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | |
7579 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7580 else | |
7581 ac_check_lib_save_LIBS=$LIBS | |
7582 LIBS="-lungif $LIBS" | |
7583 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 7584 #line 7584 "configure" |
44493 | 7585 #include "confdefs.h" |
7586 | |
7587 /* Override any gcc2 internal prototype to avoid an error. */ | |
7588 #ifdef __cplusplus | |
7589 extern "C" | |
7590 #endif | |
7591 /* We use char because int might match the return type of a gcc2 | |
7592 builtin and then its argument prototype would still apply. */ | |
7593 char EGifPutExtensionLast (); | |
7594 int | |
7595 main () | |
7596 { | |
7597 EGifPutExtensionLast (); | |
7598 ; | |
7599 return 0; | |
7600 } | |
7601 _ACEOF | |
7602 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 7603 if { (eval echo "$as_me:7603: \"$ac_link\"") >&5 |
7604 (eval $ac_link) 2>&5 | |
7605 ac_status=$? | |
7606 echo "$as_me:7606: \$? = $ac_status" >&5 | |
44493 | 7607 (exit $ac_status); } && |
7608 { ac_try='test -s conftest$ac_exeext' | |
46596 | 7609 { (eval echo "$as_me:7609: \"$ac_try\"") >&5 |
7610 (eval $ac_try) 2>&5 | |
7611 ac_status=$? | |
7612 echo "$as_me:7612: \$? = $ac_status" >&5 | |
44493 | 7613 (exit $ac_status); }; }; then |
7614 ac_cv_lib_ungif_EGifPutExtensionLast=yes | |
7615 else | |
7616 echo "$as_me: failed program was:" >&5 | |
7617 cat conftest.$ac_ext >&5 | |
7618 ac_cv_lib_ungif_EGifPutExtensionLast=no | |
7619 fi | |
7620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7621 LIBS=$ac_check_lib_save_LIBS | |
7622 fi | |
46596 | 7623 echo "$as_me:7623: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
44493 | 7624 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6 |
7625 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | |
7626 HAVE_GIF=yes | |
7627 fi | |
7628 | |
7629 fi | |
7630 | |
7631 fi | |
7632 | |
7633 if test "${HAVE_GIF}" = "yes"; then | |
44569 | 7634 |
45226 | 7635 cat >>confdefs.h <<\EOF |
44493 | 7636 #define HAVE_GIF 1 |
45226 | 7637 EOF |
44493 | 7638 |
7639 fi | |
7640 fi | |
7641 | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7642 ### Use Mac OS X Carbon API to implement GUI. |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7643 HAVE_CARBON=no |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7644 if test "${with_carbon}" != "no"; then |
46596 | 7645 echo "$as_me:7645: checking for Carbon/Carbon.h" >&5 |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7646 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7647 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7648 echo $ECHO_N "(cached) $ECHO_C" >&6 |
45226 | 7649 else |
7650 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 7651 #line 7651 "configure" |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7652 #include "confdefs.h" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7653 #include <Carbon/Carbon.h> |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7654 _ACEOF |
46596 | 7655 if { (eval echo "$as_me:7655: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7657 ac_status=$? |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7658 egrep -v '^ *\+' conftest.er1 >conftest.err |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7659 rm -f conftest.er1 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7660 cat conftest.err >&5 |
46596 | 7661 echo "$as_me:7661: \$? = $ac_status" >&5 |
45226 | 7662 (exit $ac_status); } >/dev/null; then |
7663 if test -s conftest.err; then | |
7664 ac_cpp_err=$ac_c_preproc_warn_flag | |
7665 else | |
7666 ac_cpp_err= | |
7667 fi | |
7668 else | |
7669 ac_cpp_err=yes | |
7670 fi | |
7671 if test -z "$ac_cpp_err"; then | |
7672 ac_cv_header_Carbon_Carbon_h=yes | |
7673 else | |
7674 echo "$as_me: failed program was:" >&5 | |
7675 cat conftest.$ac_ext >&5 | |
7676 ac_cv_header_Carbon_Carbon_h=no | |
7677 fi | |
7678 rm -f conftest.err conftest.$ac_ext | |
7679 fi | |
46596 | 7680 echo "$as_me:7680: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
45226 | 7681 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
7682 if test $ac_cv_header_Carbon_Carbon_h = yes; then | |
7683 HAVE_CARBON=yes | |
7684 fi | |
7685 | |
7686 fi | |
7687 | |
7688 if test "${HAVE_CARBON}" = "yes"; then | |
7689 | |
7690 cat >>confdefs.h <<\EOF | |
7691 #define HAVE_CARBON 1 | |
7692 EOF | |
7693 | |
7694 fi | |
7695 | |
7696 ### Use session management (-lSM -lICE) if available | |
7697 HAVE_X_SM=no | |
7698 if test "${HAVE_X11}" = "yes"; then | |
46596 | 7699 echo "$as_me:7699: checking for X11/SM/SMlib.h" >&5 |
45226 | 7700 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 |
7701 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
7702 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7703 else | |
7704 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 7705 #line 7705 "configure" |
45226 | 7706 #include "confdefs.h" |
7707 #include <X11/SM/SMlib.h> | |
7708 _ACEOF | |
46596 | 7709 if { (eval echo "$as_me:7709: \"$ac_cpp conftest.$ac_ext\"") >&5 |
45226 | 7710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7711 ac_status=$? | |
7712 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7713 rm -f conftest.er1 | |
7714 cat conftest.err >&5 | |
46596 | 7715 echo "$as_me:7715: \$? = $ac_status" >&5 |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7716 (exit $ac_status); } >/dev/null; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7717 if test -s conftest.err; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7718 ac_cpp_err=$ac_c_preproc_warn_flag |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7719 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7720 ac_cpp_err= |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7721 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7722 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7723 ac_cpp_err=yes |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7724 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7725 if test -z "$ac_cpp_err"; then |
45226 | 7726 ac_cv_header_X11_SM_SMlib_h=yes |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7727 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7728 echo "$as_me: failed program was:" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7729 cat conftest.$ac_ext >&5 |
45226 | 7730 ac_cv_header_X11_SM_SMlib_h=no |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7731 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
7732 rm -f conftest.err conftest.$ac_ext |
45226 | 7733 fi |
46596 | 7734 echo "$as_me:7734: 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
|
7735 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
|
7736 if test $ac_cv_header_X11_SM_SMlib_h = yes; then |
46596 | 7737 echo "$as_me:7737: 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
|
7738 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
|
7739 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
|
7740 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
|
7741 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7742 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
|
7743 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
|
7744 cat >conftest.$ac_ext <<_ACEOF |
46596 | 7745 #line 7745 "configure" |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7746 #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
|
7747 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7748 /* 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
|
7749 #ifdef __cplusplus |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7750 extern "C" |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7751 #endif |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7752 /* 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
|
7753 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
|
7754 char SmcOpenConnection (); |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7755 int |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7756 main () |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7757 { |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7758 SmcOpenConnection (); |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7759 ; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7760 return 0; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7761 } |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7762 _ACEOF |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7763 rm -f conftest.$ac_objext conftest$ac_exeext |
46596 | 7764 if { (eval echo "$as_me:7764: \"$ac_link\"") >&5 |
7765 (eval $ac_link) 2>&5 | |
7766 ac_status=$? | |
7767 echo "$as_me:7767: \$? = $ac_status" >&5 | |
44493 | 7768 (exit $ac_status); } && |
7769 { ac_try='test -s conftest$ac_exeext' | |
46596 | 7770 { (eval echo "$as_me:7770: \"$ac_try\"") >&5 |
7771 (eval $ac_try) 2>&5 | |
7772 ac_status=$? | |
7773 echo "$as_me:7773: \$? = $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
|
7774 (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
|
7775 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
|
7776 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7777 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
|
7778 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
|
7779 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
|
7780 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7781 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
|
7782 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
|
7783 fi |
46596 | 7784 echo "$as_me:7784: 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
|
7785 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
|
7786 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
|
7787 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
|
7788 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7789 -lICE |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7790 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7791 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7792 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7793 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7794 if test "${HAVE_X_SM}" = "yes"; then |
44569 | 7795 |
45226 | 7796 cat >>confdefs.h <<\EOF |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7797 #define HAVE_X_SM 1 |
45226 | 7798 EOF |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7799 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7800 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
|
7801 *-lSM*) ;; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7802 *) 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
|
7803 esac |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7804 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7805 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
7806 |
25897 | 7807 # If netdb.h doesn't declare h_errno, we must declare it by hand. |
46596 | 7808 echo "$as_me:7808: checking whether netdb declares h_errno" >&5 |
40056 | 7809 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 |
7810 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | |
7811 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7812 else | |
7813 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 7814 #line 7814 "configure" |
25897 | 7815 #include "confdefs.h" |
7816 #include <netdb.h> | |
40056 | 7817 int |
7818 main () | |
7819 { | |
25897 | 7820 return h_errno; |
40056 | 7821 ; |
7822 return 0; | |
7823 } | |
7824 _ACEOF | |
7825 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 7826 if { (eval echo "$as_me:7826: \"$ac_link\"") >&5 |
7827 (eval $ac_link) 2>&5 | |
7828 ac_status=$? | |
7829 echo "$as_me:7829: \$? = $ac_status" >&5 | |
44493 | 7830 (exit $ac_status); } && |
7831 { ac_try='test -s conftest$ac_exeext' | |
46596 | 7832 { (eval echo "$as_me:7832: \"$ac_try\"") >&5 |
7833 (eval $ac_try) 2>&5 | |
7834 ac_status=$? | |
7835 echo "$as_me:7835: \$? = $ac_status" >&5 | |
40056 | 7836 (exit $ac_status); }; }; then |
25897 | 7837 emacs_cv_netdb_declares_h_errno=yes |
7838 else | |
40056 | 7839 echo "$as_me: failed program was:" >&5 |
7840 cat conftest.$ac_ext >&5 | |
7841 emacs_cv_netdb_declares_h_errno=no | |
7842 fi | |
7843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7844 fi | |
46596 | 7845 echo "$as_me:7845: result: $emacs_cv_netdb_declares_h_errno" >&5 |
40056 | 7846 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 |
25897 | 7847 if test $emacs_cv_netdb_declares_h_errno = yes; then |
44569 | 7848 |
45226 | 7849 cat >>confdefs.h <<\EOF |
25897 | 7850 #define HAVE_H_ERRNO 1 |
45226 | 7851 EOF |
25897 | 7852 |
7853 fi | |
7854 | |
7855 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
7856 # for constant arguments. Useless! | |
46596 | 7857 echo "$as_me:7857: checking for working alloca.h" >&5 |
40056 | 7858 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
7859 if test "${ac_cv_working_alloca_h+set}" = set; then | |
7860 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7861 else | |
7862 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 7863 #line 7863 "configure" |
25897 | 7864 #include "confdefs.h" |
7865 #include <alloca.h> | |
40056 | 7866 int |
7867 main () | |
7868 { | |
7869 char *p = (char *) alloca (2 * sizeof (int)); | |
7870 ; | |
7871 return 0; | |
7872 } | |
7873 _ACEOF | |
7874 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 7875 if { (eval echo "$as_me:7875: \"$ac_link\"") >&5 |
7876 (eval $ac_link) 2>&5 | |
7877 ac_status=$? | |
7878 echo "$as_me:7878: \$? = $ac_status" >&5 | |
44493 | 7879 (exit $ac_status); } && |
7880 { ac_try='test -s conftest$ac_exeext' | |
46596 | 7881 { (eval echo "$as_me:7881: \"$ac_try\"") >&5 |
7882 (eval $ac_try) 2>&5 | |
7883 ac_status=$? | |
7884 echo "$as_me:7884: \$? = $ac_status" >&5 | |
40056 | 7885 (exit $ac_status); }; }; then |
7886 ac_cv_working_alloca_h=yes | |
7887 else | |
7888 echo "$as_me: failed program was:" >&5 | |
7889 cat conftest.$ac_ext >&5 | |
7890 ac_cv_working_alloca_h=no | |
7891 fi | |
7892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7893 fi | |
46596 | 7894 echo "$as_me:7894: result: $ac_cv_working_alloca_h" >&5 |
40056 | 7895 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
7896 if test $ac_cv_working_alloca_h = yes; then | |
7897 | |
45226 | 7898 cat >>confdefs.h <<\EOF |
25897 | 7899 #define HAVE_ALLOCA_H 1 |
45226 | 7900 EOF |
7901 | |
7902 fi | |
7903 | |
46596 | 7904 echo "$as_me:7904: checking for alloca" >&5 |
40056 | 7905 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
7906 if test "${ac_cv_func_alloca_works+set}" = set; then | |
7907 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7908 else | |
7909 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 7910 #line 7910 "configure" |
40056 | 7911 #include "confdefs.h" |
25897 | 7912 #ifdef __GNUC__ |
7913 # define alloca __builtin_alloca | |
7914 #else | |
27205 | 7915 # ifdef _MSC_VER |
7916 # include <malloc.h> | |
7917 # define alloca _alloca | |
25897 | 7918 # else |
27205 | 7919 # if HAVE_ALLOCA_H |
7920 # include <alloca.h> | |
25897 | 7921 # else |
27205 | 7922 # ifdef _AIX |
7923 #pragma alloca | |
7924 # else | |
7925 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
25897 | 7926 char *alloca (); |
27205 | 7927 # endif |
25897 | 7928 # endif |
7929 # endif | |
7930 # endif | |
7931 #endif | |
7932 | |
40056 | 7933 int |
7934 main () | |
7935 { | |
7936 char *p = (char *) alloca (1); | |
7937 ; | |
7938 return 0; | |
7939 } | |
7940 _ACEOF | |
7941 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 7942 if { (eval echo "$as_me:7942: \"$ac_link\"") >&5 |
7943 (eval $ac_link) 2>&5 | |
7944 ac_status=$? | |
7945 echo "$as_me:7945: \$? = $ac_status" >&5 | |
44493 | 7946 (exit $ac_status); } && |
7947 { ac_try='test -s conftest$ac_exeext' | |
46596 | 7948 { (eval echo "$as_me:7948: \"$ac_try\"") >&5 |
7949 (eval $ac_try) 2>&5 | |
7950 ac_status=$? | |
7951 echo "$as_me:7951: \$? = $ac_status" >&5 | |
40056 | 7952 (exit $ac_status); }; }; then |
25897 | 7953 ac_cv_func_alloca_works=yes |
7954 else | |
40056 | 7955 echo "$as_me: failed program was:" >&5 |
7956 cat conftest.$ac_ext >&5 | |
7957 ac_cv_func_alloca_works=no | |
7958 fi | |
7959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7960 fi | |
46596 | 7961 echo "$as_me:7961: result: $ac_cv_func_alloca_works" >&5 |
40056 | 7962 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
7963 | |
25897 | 7964 if test $ac_cv_func_alloca_works = yes; then |
40056 | 7965 |
45226 | 7966 cat >>confdefs.h <<\EOF |
25897 | 7967 #define HAVE_ALLOCA 1 |
45226 | 7968 EOF |
25897 | 7969 |
40056 | 7970 else |
25897 | 7971 # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
40056 | 7972 # that cause trouble. Some versions do not even contain alloca or |
7973 # contain a buggy version. If you still want to use their alloca, | |
7974 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
7975 | |
7976 ALLOCA=alloca.$ac_objext | |
7977 | |
45226 | 7978 cat >>confdefs.h <<\EOF |
25897 | 7979 #define C_ALLOCA 1 |
45226 | 7980 EOF |
7981 | |
46596 | 7982 echo "$as_me:7982: checking whether \`alloca.c' needs Cray hooks" >&5 |
40056 | 7983 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
7984 if test "${ac_cv_os_cray+set}" = set; then | |
7985 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7986 else | |
7987 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 7988 #line 7988 "configure" |
25897 | 7989 #include "confdefs.h" |
7990 #if defined(CRAY) && ! defined(CRAY2) | |
7991 webecray | |
7992 #else | |
7993 wenotbecray | |
7994 #endif | |
7995 | |
40056 | 7996 _ACEOF |
25897 | 7997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7998 egrep "webecray" >/dev/null 2>&1; then | |
7999 ac_cv_os_cray=yes | |
8000 else | |
8001 ac_cv_os_cray=no | |
8002 fi | |
8003 rm -f conftest* | |
8004 | |
8005 fi | |
46596 | 8006 echo "$as_me:8006: result: $ac_cv_os_cray" >&5 |
40056 | 8007 echo "${ECHO_T}$ac_cv_os_cray" >&6 |
25897 | 8008 if test $ac_cv_os_cray = yes; then |
40056 | 8009 for ac_func in _getb67 GETB67 getb67; do |
8010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
46596 | 8011 echo "$as_me:8011: checking for $ac_func" >&5 |
40056 | 8012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8013 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8014 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8015 else | |
8016 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 8017 #line 8017 "configure" |
25897 | 8018 #include "confdefs.h" |
8019 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 8020 which can conflict with char $ac_func (); below. */ |
25897 | 8021 #include <assert.h> |
8022 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 8023 #ifdef __cplusplus |
8024 extern "C" | |
8025 #endif | |
25897 | 8026 /* We use char because int might match the return type of a gcc2 |
40056 | 8027 builtin and then its argument prototype would still apply. */ |
8028 char $ac_func (); | |
8029 char (*f) (); | |
8030 | |
8031 int | |
8032 main () | |
8033 { | |
25897 | 8034 /* The GNU C library defines this for functions which it implements |
8035 to always fail with ENOSYS. Some functions are actually named | |
8036 something starting with __ and the normal name is an alias. */ | |
8037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8038 choke me | |
8039 #else | |
40056 | 8040 f = $ac_func; |
8041 #endif | |
8042 | |
8043 ; | |
8044 return 0; | |
8045 } | |
8046 _ACEOF | |
8047 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 8048 if { (eval echo "$as_me:8048: \"$ac_link\"") >&5 |
8049 (eval $ac_link) 2>&5 | |
8050 ac_status=$? | |
8051 echo "$as_me:8051: \$? = $ac_status" >&5 | |
44493 | 8052 (exit $ac_status); } && |
8053 { ac_try='test -s conftest$ac_exeext' | |
46596 | 8054 { (eval echo "$as_me:8054: \"$ac_try\"") >&5 |
8055 (eval $ac_try) 2>&5 | |
8056 ac_status=$? | |
8057 echo "$as_me:8057: \$? = $ac_status" >&5 | |
40056 | 8058 (exit $ac_status); }; }; then |
8059 eval "$as_ac_var=yes" | |
8060 else | |
8061 echo "$as_me: failed program was:" >&5 | |
8062 cat conftest.$ac_ext >&5 | |
8063 eval "$as_ac_var=no" | |
8064 fi | |
8065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8066 fi | |
46596 | 8067 echo "$as_me:8067: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 8068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8069 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8070 | |
45226 | 8071 cat >>confdefs.h <<EOF |
25897 | 8072 #define CRAY_STACKSEG_END $ac_func |
45226 | 8073 EOF |
25897 | 8074 |
40056 | 8075 break |
8076 fi | |
8077 | |
8078 done | |
8079 fi | |
8080 | |
46596 | 8081 echo "$as_me:8081: checking stack direction for C alloca" >&5 |
40056 | 8082 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
8083 if test "${ac_cv_c_stack_direction+set}" = set; then | |
8084 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 8085 else |
8086 if test "$cross_compiling" = yes; then | |
8087 ac_cv_c_stack_direction=0 | |
8088 else | |
40056 | 8089 cat >conftest.$ac_ext <<_ACEOF |
46596 | 8090 #line 8090 "configure" |
40056 | 8091 #include "confdefs.h" |
8092 int | |
25897 | 8093 find_stack_direction () |
8094 { | |
8095 static char *addr = 0; | |
8096 auto char dummy; | |
8097 if (addr == 0) | |
8098 { | |
8099 addr = &dummy; | |
8100 return find_stack_direction (); | |
8101 } | |
8102 else | |
8103 return (&dummy > addr) ? 1 : -1; | |
8104 } | |
40056 | 8105 |
8106 int | |
8107 main () | |
8108 { | |
8109 exit (find_stack_direction () < 0); | |
8110 } | |
8111 _ACEOF | |
8112 rm -f conftest$ac_exeext | |
46596 | 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 | |
45668 | 8117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
46596 | 8118 { (eval echo "$as_me:8118: \"$ac_try\"") >&5 |
8119 (eval $ac_try) 2>&5 | |
8120 ac_status=$? | |
8121 echo "$as_me:8121: \$? = $ac_status" >&5 | |
40056 | 8122 (exit $ac_status); }; }; then |
25897 | 8123 ac_cv_c_stack_direction=1 |
8124 else | |
40056 | 8125 echo "$as_me: program exited with status $ac_status" >&5 |
8126 echo "$as_me: failed program was:" >&5 | |
8127 cat conftest.$ac_ext >&5 | |
8128 ac_cv_c_stack_direction=-1 | |
8129 fi | |
8130 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8131 fi | |
8132 fi | |
46596 | 8133 echo "$as_me:8133: result: $ac_cv_c_stack_direction" >&5 |
40056 | 8134 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
8135 | |
45226 | 8136 cat >>confdefs.h <<EOF |
25897 | 8137 #define STACK_DIRECTION $ac_cv_c_stack_direction |
45226 | 8138 EOF |
8139 | |
8140 fi | |
25897 | 8141 |
8142 # fmod, logb, and frexp are found in -lm on most systems. | |
8143 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
40056 | 8144 |
46596 | 8145 echo "$as_me:8145: checking for sqrt in -lm" >&5 |
40056 | 8146 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
8147 if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
8148 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8149 else | |
8150 ac_check_lib_save_LIBS=$LIBS | |
25897 | 8151 LIBS="-lm $LIBS" |
40056 | 8152 cat >conftest.$ac_ext <<_ACEOF |
46596 | 8153 #line 8153 "configure" |
40056 | 8154 #include "confdefs.h" |
8155 | |
25897 | 8156 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8157 #ifdef __cplusplus |
8158 extern "C" | |
8159 #endif | |
25897 | 8160 /* We use char because int might match the return type of a gcc2 |
40056 | 8161 builtin and then its argument prototype would still apply. */ |
8162 char sqrt (); | |
8163 int | |
8164 main () | |
8165 { | |
8166 sqrt (); | |
8167 ; | |
8168 return 0; | |
8169 } | |
8170 _ACEOF | |
8171 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 8172 if { (eval echo "$as_me:8172: \"$ac_link\"") >&5 |
8173 (eval $ac_link) 2>&5 | |
8174 ac_status=$? | |
8175 echo "$as_me:8175: \$? = $ac_status" >&5 | |
44493 | 8176 (exit $ac_status); } && |
8177 { ac_try='test -s conftest$ac_exeext' | |
46596 | 8178 { (eval echo "$as_me:8178: \"$ac_try\"") >&5 |
8179 (eval $ac_try) 2>&5 | |
8180 ac_status=$? | |
8181 echo "$as_me:8181: \$? = $ac_status" >&5 | |
40056 | 8182 (exit $ac_status); }; }; then |
8183 ac_cv_lib_m_sqrt=yes | |
8184 else | |
8185 echo "$as_me: failed program was:" >&5 | |
8186 cat conftest.$ac_ext >&5 | |
8187 ac_cv_lib_m_sqrt=no | |
8188 fi | |
8189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8190 LIBS=$ac_check_lib_save_LIBS | |
8191 fi | |
46596 | 8192 echo "$as_me:8192: result: $ac_cv_lib_m_sqrt" >&5 |
40056 | 8193 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
8194 if test $ac_cv_lib_m_sqrt = yes; then | |
45226 | 8195 cat >>confdefs.h <<EOF |
40056 | 8196 #define HAVE_LIBM 1 |
45226 | 8197 EOF |
25897 | 8198 |
8199 LIBS="-lm $LIBS" | |
8200 | |
40056 | 8201 fi |
25897 | 8202 |
8203 # Check for mail-locking functions in a "mail" library | |
40056 | 8204 |
46596 | 8205 echo "$as_me:8205: checking for maillock in -lmail" >&5 |
40056 | 8206 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 |
8207 if test "${ac_cv_lib_mail_maillock+set}" = set; then | |
8208 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8209 else | |
8210 ac_check_lib_save_LIBS=$LIBS | |
25897 | 8211 LIBS="-lmail $LIBS" |
40056 | 8212 cat >conftest.$ac_ext <<_ACEOF |
46596 | 8213 #line 8213 "configure" |
40056 | 8214 #include "confdefs.h" |
8215 | |
25897 | 8216 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8217 #ifdef __cplusplus |
8218 extern "C" | |
8219 #endif | |
25897 | 8220 /* We use char because int might match the return type of a gcc2 |
40056 | 8221 builtin and then its argument prototype would still apply. */ |
8222 char maillock (); | |
8223 int | |
8224 main () | |
8225 { | |
8226 maillock (); | |
8227 ; | |
8228 return 0; | |
8229 } | |
8230 _ACEOF | |
8231 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 8232 if { (eval echo "$as_me:8232: \"$ac_link\"") >&5 |
8233 (eval $ac_link) 2>&5 | |
8234 ac_status=$? | |
8235 echo "$as_me:8235: \$? = $ac_status" >&5 | |
44493 | 8236 (exit $ac_status); } && |
8237 { ac_try='test -s conftest$ac_exeext' | |
46596 | 8238 { (eval echo "$as_me:8238: \"$ac_try\"") >&5 |
8239 (eval $ac_try) 2>&5 | |
8240 ac_status=$? | |
8241 echo "$as_me:8241: \$? = $ac_status" >&5 | |
40056 | 8242 (exit $ac_status); }; }; then |
8243 ac_cv_lib_mail_maillock=yes | |
8244 else | |
8245 echo "$as_me: failed program was:" >&5 | |
8246 cat conftest.$ac_ext >&5 | |
8247 ac_cv_lib_mail_maillock=no | |
8248 fi | |
8249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8250 LIBS=$ac_check_lib_save_LIBS | |
8251 fi | |
46596 | 8252 echo "$as_me:8252: result: $ac_cv_lib_mail_maillock" >&5 |
40056 | 8253 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 |
8254 if test $ac_cv_lib_mail_maillock = yes; then | |
45226 | 8255 cat >>confdefs.h <<EOF |
40056 | 8256 #define HAVE_LIBMAIL 1 |
45226 | 8257 EOF |
25897 | 8258 |
8259 LIBS="-lmail $LIBS" | |
8260 | |
40056 | 8261 fi |
8262 | |
46596 | 8263 echo "$as_me:8263: checking for maillock in -llockfile" >&5 |
40056 | 8264 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 |
8265 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | |
8266 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8267 else | |
8268 ac_check_lib_save_LIBS=$LIBS | |
25897 | 8269 LIBS="-llockfile $LIBS" |
40056 | 8270 cat >conftest.$ac_ext <<_ACEOF |
46596 | 8271 #line 8271 "configure" |
40056 | 8272 #include "confdefs.h" |
8273 | |
25897 | 8274 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8275 #ifdef __cplusplus |
8276 extern "C" | |
8277 #endif | |
25897 | 8278 /* We use char because int might match the return type of a gcc2 |
40056 | 8279 builtin and then its argument prototype would still apply. */ |
8280 char maillock (); | |
8281 int | |
8282 main () | |
8283 { | |
8284 maillock (); | |
8285 ; | |
8286 return 0; | |
8287 } | |
8288 _ACEOF | |
8289 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 8290 if { (eval echo "$as_me:8290: \"$ac_link\"") >&5 |
8291 (eval $ac_link) 2>&5 | |
8292 ac_status=$? | |
8293 echo "$as_me:8293: \$? = $ac_status" >&5 | |
44493 | 8294 (exit $ac_status); } && |
8295 { ac_try='test -s conftest$ac_exeext' | |
46596 | 8296 { (eval echo "$as_me:8296: \"$ac_try\"") >&5 |
8297 (eval $ac_try) 2>&5 | |
8298 ac_status=$? | |
8299 echo "$as_me:8299: \$? = $ac_status" >&5 | |
40056 | 8300 (exit $ac_status); }; }; then |
8301 ac_cv_lib_lockfile_maillock=yes | |
8302 else | |
8303 echo "$as_me: failed program was:" >&5 | |
8304 cat conftest.$ac_ext >&5 | |
8305 ac_cv_lib_lockfile_maillock=no | |
8306 fi | |
8307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8308 LIBS=$ac_check_lib_save_LIBS | |
8309 fi | |
46596 | 8310 echo "$as_me:8310: result: $ac_cv_lib_lockfile_maillock" >&5 |
40056 | 8311 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 |
8312 if test $ac_cv_lib_lockfile_maillock = yes; then | |
45226 | 8313 cat >>confdefs.h <<EOF |
40056 | 8314 #define HAVE_LIBLOCKFILE 1 |
45226 | 8315 EOF |
25897 | 8316 |
8317 LIBS="-llockfile $LIBS" | |
8318 | |
8319 fi | |
8320 | |
8321 # If we have the shared liblockfile, assume we must use it for mail | |
8322 # locking (e.g. Debian). If we couldn't link against liblockfile | |
8323 # (no liblockfile.a installed), ensure that we don't need to. | |
8324 if test "$ac_cv_lib_lockfile_maillock" = no; then | |
8325 # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
8326 set dummy liblockfile.so; ac_word=$2 | |
46596 | 8327 echo "$as_me:8327: checking for $ac_word" >&5 |
40056 | 8328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8329 if test "${ac_cv_prog_liblockfile+set}" = set; then | |
8330 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 8331 else |
8332 if test -n "$liblockfile"; then | |
8333 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
8334 else | |
45226 | 8335 ac_save_IFS=$IFS; IFS=$ac_path_separator |
8336 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | |
8337 for ac_dir in $ac_dummy; do | |
8338 IFS=$ac_save_IFS | |
8339 test -z "$ac_dir" && ac_dir=. | |
8340 $as_executable_p "$ac_dir/$ac_word" || continue | |
8341 ac_cv_prog_liblockfile="yes" | |
46596 | 8342 echo "$as_me:8342: found $ac_dir/$ac_word" >&5 |
45226 | 8343 break |
40056 | 8344 done |
8345 | |
25897 | 8346 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" |
8347 fi | |
8348 fi | |
40056 | 8349 liblockfile=$ac_cv_prog_liblockfile |
25897 | 8350 if test -n "$liblockfile"; then |
46596 | 8351 echo "$as_me:8351: result: $liblockfile" >&5 |
40056 | 8352 echo "${ECHO_T}$liblockfile" >&6 |
8353 else | |
46596 | 8354 echo "$as_me:8354: result: no" >&5 |
40056 | 8355 echo "${ECHO_T}no" >&6 |
25897 | 8356 fi |
8357 | |
8358 if test $ac_cv_prog_liblockfile = yes; then | |
46596 | 8359 { { echo "$as_me:8359: error: Shared liblockfile found but can't link against it. |
25897 | 8360 This probably means that movemail could lose mail. |
40056 | 8361 There may be a \`development' package to install containing liblockfile." >&5 |
8362 echo "$as_me: error: Shared liblockfile found but can't link against it. | |
8363 This probably means that movemail could lose mail. | |
8364 There may be a \`development' package to install containing liblockfile." >&2;} | |
8365 { (exit 1); exit 1; }; } | |
44569 | 8366 else |
45226 | 8367 cat >>confdefs.h <<\EOF |
25897 | 8368 #define LIBMAIL -llockfile |
45226 | 8369 EOF |
25897 | 8370 |
8371 fi | |
8372 else : | |
8373 fi | |
40056 | 8374 |
25897 | 8375 for ac_func in touchlock |
8376 do | |
40056 | 8377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
46596 | 8378 echo "$as_me:8378: checking for $ac_func" >&5 |
40056 | 8379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8380 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8381 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8382 else | |
8383 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 8384 #line 8384 "configure" |
25897 | 8385 #include "confdefs.h" |
8386 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 8387 which can conflict with char $ac_func (); below. */ |
25897 | 8388 #include <assert.h> |
8389 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 8390 #ifdef __cplusplus |
8391 extern "C" | |
8392 #endif | |
25897 | 8393 /* We use char because int might match the return type of a gcc2 |
40056 | 8394 builtin and then its argument prototype would still apply. */ |
8395 char $ac_func (); | |
8396 char (*f) (); | |
8397 | |
8398 int | |
8399 main () | |
8400 { | |
25897 | 8401 /* The GNU C library defines this for functions which it implements |
8402 to always fail with ENOSYS. Some functions are actually named | |
8403 something starting with __ and the normal name is an alias. */ | |
8404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8405 choke me | |
8406 #else | |
40056 | 8407 f = $ac_func; |
8408 #endif | |
8409 | |
8410 ; | |
8411 return 0; | |
8412 } | |
8413 _ACEOF | |
8414 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 8415 if { (eval echo "$as_me:8415: \"$ac_link\"") >&5 |
8416 (eval $ac_link) 2>&5 | |
8417 ac_status=$? | |
8418 echo "$as_me:8418: \$? = $ac_status" >&5 | |
44493 | 8419 (exit $ac_status); } && |
8420 { ac_try='test -s conftest$ac_exeext' | |
46596 | 8421 { (eval echo "$as_me:8421: \"$ac_try\"") >&5 |
8422 (eval $ac_try) 2>&5 | |
8423 ac_status=$? | |
8424 echo "$as_me:8424: \$? = $ac_status" >&5 | |
40056 | 8425 (exit $ac_status); }; }; then |
8426 eval "$as_ac_var=yes" | |
8427 else | |
8428 echo "$as_me: failed program was:" >&5 | |
8429 cat conftest.$ac_ext >&5 | |
8430 eval "$as_ac_var=no" | |
8431 fi | |
8432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8433 fi | |
46596 | 8434 echo "$as_me:8434: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 8435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8436 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 8437 cat >>confdefs.h <<EOF |
40056 | 8438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 8439 EOF |
8440 | |
8441 fi | |
8442 done | |
25897 | 8443 |
44435 | 8444 for ac_header in maillock.h |
25897 | 8445 do |
40056 | 8446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
46596 | 8447 echo "$as_me:8447: checking for $ac_header" >&5 |
40056 | 8448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8449 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8450 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 8451 else |
8452 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 8453 #line 8453 "configure" |
40056 | 8454 #include "confdefs.h" |
8455 #include <$ac_header> | |
8456 _ACEOF | |
46596 | 8457 if { (eval echo "$as_me:8457: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 8458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8459 ac_status=$? | |
8460 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8461 rm -f conftest.er1 | |
8462 cat conftest.err >&5 | |
46596 | 8463 echo "$as_me:8463: \$? = $ac_status" >&5 |
40056 | 8464 (exit $ac_status); } >/dev/null; then |
8465 if test -s conftest.err; then | |
8466 ac_cpp_err=$ac_c_preproc_warn_flag | |
8467 else | |
8468 ac_cpp_err= | |
8469 fi | |
8470 else | |
8471 ac_cpp_err=yes | |
8472 fi | |
8473 if test -z "$ac_cpp_err"; then | |
45226 | 8474 eval "$as_ac_Header=yes" |
40056 | 8475 else |
8476 echo "$as_me: failed program was:" >&5 | |
25897 | 8477 cat conftest.$ac_ext >&5 |
45226 | 8478 eval "$as_ac_Header=no" |
40056 | 8479 fi |
8480 rm -f conftest.err conftest.$ac_ext | |
45226 | 8481 fi |
46596 | 8482 echo "$as_me:8482: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 8483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
8484 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 8485 cat >>confdefs.h <<EOF |
40056 | 8486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 8487 EOF |
8488 | |
8489 fi | |
8490 done | |
25897 | 8491 |
44001
54ecf0606394
Manually edited to add checks for sendto, recvfrom, getsockopt, setsockopt,
Kim F. Storm <storm@cua.dk>
parents:
43924
diff
changeset
|
8492 for ac_func in gethostname getdomainname dup2 \ |
25897 | 8493 rename closedir mkdir rmdir sysinfo \ |
8494 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
8495 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
29733 | 8496 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
42401 | 8497 __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
|
8498 sendto recvfrom getsockopt setsockopt getsockname getpeername \ |
44493 | 8499 gai_strerror mkstemp getline getdelim |
25897 | 8500 do |
40056 | 8501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
46596 | 8502 echo "$as_me:8502: checking for $ac_func" >&5 |
40056 | 8503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8504 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8505 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8506 else | |
8507 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 8508 #line 8508 "configure" |
25897 | 8509 #include "confdefs.h" |
8510 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 8511 which can conflict with char $ac_func (); below. */ |
25897 | 8512 #include <assert.h> |
8513 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 8514 #ifdef __cplusplus |
8515 extern "C" | |
8516 #endif | |
25897 | 8517 /* We use char because int might match the return type of a gcc2 |
40056 | 8518 builtin and then its argument prototype would still apply. */ |
8519 char $ac_func (); | |
8520 char (*f) (); | |
8521 | |
8522 int | |
8523 main () | |
8524 { | |
25897 | 8525 /* The GNU C library defines this for functions which it implements |
8526 to always fail with ENOSYS. Some functions are actually named | |
8527 something starting with __ and the normal name is an alias. */ | |
8528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8529 choke me | |
8530 #else | |
40056 | 8531 f = $ac_func; |
8532 #endif | |
8533 | |
8534 ; | |
8535 return 0; | |
8536 } | |
8537 _ACEOF | |
8538 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 8539 if { (eval echo "$as_me:8539: \"$ac_link\"") >&5 |
8540 (eval $ac_link) 2>&5 | |
8541 ac_status=$? | |
8542 echo "$as_me:8542: \$? = $ac_status" >&5 | |
44493 | 8543 (exit $ac_status); } && |
8544 { ac_try='test -s conftest$ac_exeext' | |
46596 | 8545 { (eval echo "$as_me:8545: \"$ac_try\"") >&5 |
8546 (eval $ac_try) 2>&5 | |
8547 ac_status=$? | |
8548 echo "$as_me:8548: \$? = $ac_status" >&5 | |
40056 | 8549 (exit $ac_status); }; }; then |
8550 eval "$as_ac_var=yes" | |
8551 else | |
8552 echo "$as_me: failed program was:" >&5 | |
8553 cat conftest.$ac_ext >&5 | |
8554 eval "$as_ac_var=no" | |
8555 fi | |
8556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8557 fi | |
46596 | 8558 echo "$as_me:8558: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 8559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8560 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 8561 cat >>confdefs.h <<EOF |
40056 | 8562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 8563 EOF |
8564 | |
8565 fi | |
8566 done | |
25897 | 8567 |
44435 | 8568 for ac_header in sys/un.h |
28607 | 8569 do |
40056 | 8570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
46596 | 8571 echo "$as_me:8571: checking for $ac_header" >&5 |
40056 | 8572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8573 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8574 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 8575 else |
8576 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 8577 #line 8577 "configure" |
40056 | 8578 #include "confdefs.h" |
8579 #include <$ac_header> | |
8580 _ACEOF | |
46596 | 8581 if { (eval echo "$as_me:8581: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 8582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8583 ac_status=$? | |
8584 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8585 rm -f conftest.er1 | |
8586 cat conftest.err >&5 | |
46596 | 8587 echo "$as_me:8587: \$? = $ac_status" >&5 |
40056 | 8588 (exit $ac_status); } >/dev/null; then |
8589 if test -s conftest.err; then | |
8590 ac_cpp_err=$ac_c_preproc_warn_flag | |
8591 else | |
8592 ac_cpp_err= | |
8593 fi | |
8594 else | |
8595 ac_cpp_err=yes | |
8596 fi | |
8597 if test -z "$ac_cpp_err"; then | |
45226 | 8598 eval "$as_ac_Header=yes" |
40056 | 8599 else |
8600 echo "$as_me: failed program was:" >&5 | |
28607 | 8601 cat conftest.$ac_ext >&5 |
45226 | 8602 eval "$as_ac_Header=no" |
40056 | 8603 fi |
8604 rm -f conftest.err conftest.$ac_ext | |
45226 | 8605 fi |
46596 | 8606 echo "$as_me:8606: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
44435 | 8607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
8608 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 8609 cat >>confdefs.h <<EOF |
44435 | 8610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 8611 EOF |
8612 | |
8613 fi | |
8614 done | |
44435 | 8615 |
8616 for ac_header in sys/time.h unistd.h | |
8617 do | |
8618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
46596 | 8619 echo "$as_me:8619: checking for $ac_header" >&5 |
44435 | 8620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8621 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8622 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 8623 else |
8624 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 8625 #line 8625 "configure" |
44435 | 8626 #include "confdefs.h" |
8627 #include <$ac_header> | |
8628 _ACEOF | |
46596 | 8629 if { (eval echo "$as_me:8629: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44435 | 8630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8631 ac_status=$? | |
8632 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8633 rm -f conftest.er1 | |
8634 cat conftest.err >&5 | |
46596 | 8635 echo "$as_me:8635: \$? = $ac_status" >&5 |
44435 | 8636 (exit $ac_status); } >/dev/null; then |
8637 if test -s conftest.err; then | |
8638 ac_cpp_err=$ac_c_preproc_warn_flag | |
8639 else | |
8640 ac_cpp_err= | |
8641 fi | |
8642 else | |
8643 ac_cpp_err=yes | |
8644 fi | |
8645 if test -z "$ac_cpp_err"; then | |
45226 | 8646 eval "$as_ac_Header=yes" |
44435 | 8647 else |
8648 echo "$as_me: failed program was:" >&5 | |
8649 cat conftest.$ac_ext >&5 | |
45226 | 8650 eval "$as_ac_Header=no" |
44435 | 8651 fi |
8652 rm -f conftest.err conftest.$ac_ext | |
45226 | 8653 fi |
46596 | 8654 echo "$as_me:8654: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 8655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
8656 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 8657 cat >>confdefs.h <<EOF |
40056 | 8658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 8659 EOF |
8660 | |
8661 fi | |
8662 done | |
28607 | 8663 |
8664 for ac_func in alarm | |
8665 do | |
40056 | 8666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
46596 | 8667 echo "$as_me:8667: checking for $ac_func" >&5 |
40056 | 8668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
8669 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8670 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8671 else | |
8672 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 8673 #line 8673 "configure" |
28607 | 8674 #include "confdefs.h" |
8675 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 8676 which can conflict with char $ac_func (); below. */ |
28607 | 8677 #include <assert.h> |
8678 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 8679 #ifdef __cplusplus |
8680 extern "C" | |
8681 #endif | |
28607 | 8682 /* We use char because int might match the return type of a gcc2 |
40056 | 8683 builtin and then its argument prototype would still apply. */ |
8684 char $ac_func (); | |
8685 char (*f) (); | |
8686 | |
8687 int | |
8688 main () | |
8689 { | |
28607 | 8690 /* The GNU C library defines this for functions which it implements |
8691 to always fail with ENOSYS. Some functions are actually named | |
8692 something starting with __ and the normal name is an alias. */ | |
8693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8694 choke me | |
8695 #else | |
40056 | 8696 f = $ac_func; |
8697 #endif | |
8698 | |
8699 ; | |
8700 return 0; | |
8701 } | |
8702 _ACEOF | |
8703 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 8704 if { (eval echo "$as_me:8704: \"$ac_link\"") >&5 |
8705 (eval $ac_link) 2>&5 | |
8706 ac_status=$? | |
8707 echo "$as_me:8707: \$? = $ac_status" >&5 | |
44493 | 8708 (exit $ac_status); } && |
8709 { ac_try='test -s conftest$ac_exeext' | |
46596 | 8710 { (eval echo "$as_me:8710: \"$ac_try\"") >&5 |
8711 (eval $ac_try) 2>&5 | |
8712 ac_status=$? | |
8713 echo "$as_me:8713: \$? = $ac_status" >&5 | |
40056 | 8714 (exit $ac_status); }; }; then |
8715 eval "$as_ac_var=yes" | |
8716 else | |
8717 echo "$as_me: failed program was:" >&5 | |
8718 cat conftest.$ac_ext >&5 | |
8719 eval "$as_ac_var=no" | |
8720 fi | |
8721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8722 fi | |
46596 | 8723 echo "$as_me:8723: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 8724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
8725 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 8726 cat >>confdefs.h <<EOF |
40056 | 8727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 8728 EOF |
8729 | |
8730 fi | |
8731 done | |
8732 | |
46596 | 8733 echo "$as_me:8733: checking for working mktime" >&5 |
40056 | 8734 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 |
8735 if test "${ac_cv_func_working_mktime+set}" = set; then | |
8736 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28607 | 8737 else |
8738 if test "$cross_compiling" = yes; then | |
8739 ac_cv_func_working_mktime=no | |
8740 else | |
40056 | 8741 cat >conftest.$ac_ext <<_ACEOF |
46596 | 8742 #line 8742 "configure" |
40056 | 8743 #include "confdefs.h" |
8744 /* Test program from Paul Eggert and Tony Leneis. */ | |
28607 | 8745 #if TIME_WITH_SYS_TIME |
8746 # include <sys/time.h> | |
8747 # include <time.h> | |
8748 #else | |
8749 # if HAVE_SYS_TIME_H | |
8750 # include <sys/time.h> | |
8751 # else | |
8752 # include <time.h> | |
8753 # endif | |
8754 #endif | |
8755 | |
8756 #if HAVE_UNISTD_H | |
8757 # include <unistd.h> | |
8758 #endif | |
8759 | |
8760 #if !HAVE_ALARM | |
8761 # define alarm(X) /* empty */ | |
8762 #endif | |
8763 | |
8764 /* Work around redefinition to rpl_putenv by other config tests. */ | |
8765 #undef putenv | |
8766 | |
8767 static time_t time_t_max; | |
8768 | |
8769 /* Values we'll use to set the TZ environment variable. */ | |
8770 static const char *const tz_strings[] = { | |
8771 (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
8772 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
8773 }; | |
8774 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
8775 | |
8776 /* Fail if mktime fails to convert a date in the spring-forward gap. | |
8777 Based on a problem report from Andreas Jaeger. */ | |
8778 static void | |
8779 spring_forward_gap () | |
8780 { | |
40056 | 8781 /* glibc (up to about 1998-10-07) failed this test. */ |
28607 | 8782 struct tm tm; |
8783 | |
8784 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
8785 instead of "TZ=America/Vancouver" in order to detect the bug even | |
8786 on systems that don't support the Olson extension, or don't have the | |
8787 full zoneinfo tables installed. */ | |
8788 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
8789 | |
8790 tm.tm_year = 98; | |
8791 tm.tm_mon = 3; | |
8792 tm.tm_mday = 5; | |
8793 tm.tm_hour = 2; | |
8794 tm.tm_min = 0; | |
8795 tm.tm_sec = 0; | |
8796 tm.tm_isdst = -1; | |
8797 if (mktime (&tm) == (time_t)-1) | |
8798 exit (1); | |
8799 } | |
8800 | |
8801 static void | |
8802 mktime_test (now) | |
8803 time_t now; | |
8804 { | |
8805 struct tm *lt; | |
8806 if ((lt = localtime (&now)) && mktime (lt) != now) | |
8807 exit (1); | |
8808 now = time_t_max - now; | |
8809 if ((lt = localtime (&now)) && mktime (lt) != now) | |
8810 exit (1); | |
8811 } | |
8812 | |
8813 static void | |
8814 irix_6_4_bug () | |
8815 { | |
8816 /* Based on code from Ariel Faigon. */ | |
8817 struct tm tm; | |
8818 tm.tm_year = 96; | |
8819 tm.tm_mon = 3; | |
8820 tm.tm_mday = 0; | |
8821 tm.tm_hour = 0; | |
8822 tm.tm_min = 0; | |
8823 tm.tm_sec = 0; | |
8824 tm.tm_isdst = -1; | |
8825 mktime (&tm); | |
8826 if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
8827 exit (1); | |
8828 } | |
8829 | |
8830 static void | |
8831 bigtime_test (j) | |
8832 int j; | |
8833 { | |
8834 struct tm tm; | |
8835 time_t now; | |
8836 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
8837 now = mktime (&tm); | |
8838 if (now != (time_t) -1) | |
8839 { | |
8840 struct tm *lt = localtime (&now); | |
8841 if (! (lt | |
8842 && lt->tm_year == tm.tm_year | |
8843 && lt->tm_mon == tm.tm_mon | |
8844 && lt->tm_mday == tm.tm_mday | |
8845 && lt->tm_hour == tm.tm_hour | |
8846 && lt->tm_min == tm.tm_min | |
8847 && lt->tm_sec == tm.tm_sec | |
8848 && lt->tm_yday == tm.tm_yday | |
8849 && lt->tm_wday == tm.tm_wday | |
8850 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
8851 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
8852 exit (1); | |
8853 } | |
8854 } | |
8855 | |
8856 int | |
8857 main () | |
8858 { | |
8859 time_t t, delta; | |
8860 int i, j; | |
8861 | |
8862 /* This test makes some buggy mktime implementations loop. | |
8863 Give up after 60 seconds; a mktime slower than that | |
8864 isn't worth using anyway. */ | |
8865 alarm (60); | |
8866 | |
8867 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
8868 continue; | |
8869 time_t_max--; | |
8870 delta = time_t_max / 997; /* a suitable prime number */ | |
8871 for (i = 0; i < N_STRINGS; i++) | |
8872 { | |
8873 if (tz_strings[i]) | |
8874 putenv (tz_strings[i]); | |
8875 | |
8876 for (t = 0; t <= time_t_max - delta; t += delta) | |
8877 mktime_test (t); | |
8878 mktime_test ((time_t) 60 * 60); | |
8879 mktime_test ((time_t) 60 * 60 * 24); | |
8880 | |
8881 for (j = 1; 0 < j; j *= 2) | |
8882 bigtime_test (j); | |
8883 bigtime_test (j - 1); | |
8884 } | |
8885 irix_6_4_bug (); | |
8886 spring_forward_gap (); | |
8887 exit (0); | |
8888 } | |
40056 | 8889 _ACEOF |
8890 rm -f conftest$ac_exeext | |
46596 | 8891 if { (eval echo "$as_me:8891: \"$ac_link\"") >&5 |
8892 (eval $ac_link) 2>&5 | |
8893 ac_status=$? | |
8894 echo "$as_me:8894: \$? = $ac_status" >&5 | |
45668 | 8895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
46596 | 8896 { (eval echo "$as_me:8896: \"$ac_try\"") >&5 |
8897 (eval $ac_try) 2>&5 | |
8898 ac_status=$? | |
8899 echo "$as_me:8899: \$? = $ac_status" >&5 | |
40056 | 8900 (exit $ac_status); }; }; then |
28607 | 8901 ac_cv_func_working_mktime=yes |
8902 else | |
40056 | 8903 echo "$as_me: program exited with status $ac_status" >&5 |
8904 echo "$as_me: failed program was:" >&5 | |
8905 cat conftest.$ac_ext >&5 | |
8906 ac_cv_func_working_mktime=no | |
8907 fi | |
8908 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8909 fi | |
8910 fi | |
46596 | 8911 echo "$as_me:8911: result: $ac_cv_func_working_mktime" >&5 |
40056 | 8912 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 |
28607 | 8913 if test $ac_cv_func_working_mktime = no; then |
40056 | 8914 LIBOBJS="$LIBOBJS mktime.$ac_objext" |
28607 | 8915 fi |
8916 | |
8917 if test "$ac_cv_func_working_mktime" = no; then | |
44569 | 8918 |
45226 | 8919 cat >>confdefs.h <<\EOF |
28607 | 8920 #define BROKEN_MKTIME 1 |
45226 | 8921 EOF |
28607 | 8922 |
8923 fi | |
8924 | |
29834 | 8925 ac_have_func=no # yes means we've found a way to get the load average. |
8926 | |
40056 | 8927 ac_save_LIBS=$LIBS |
8928 | |
8929 # Check for getloadavg, but be sure not to touch the cache variable. | |
46596 | 8930 (echo "$as_me:8930: checking for getloadavg" >&5 |
40056 | 8931 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 |
8932 if test "${ac_cv_func_getloadavg+set}" = set; then | |
8933 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8934 else | |
8935 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 8936 #line 8936 "configure" |
40056 | 8937 #include "confdefs.h" |
8938 /* System header to define __stub macros and hopefully few prototypes, | |
8939 which can conflict with char getloadavg (); below. */ | |
8940 #include <assert.h> | |
8941 /* Override any gcc2 internal prototype to avoid an error. */ | |
8942 #ifdef __cplusplus | |
8943 extern "C" | |
8944 #endif | |
8945 /* We use char because int might match the return type of a gcc2 | |
8946 builtin and then its argument prototype would still apply. */ | |
8947 char getloadavg (); | |
8948 char (*f) (); | |
8949 | |
8950 int | |
8951 main () | |
8952 { | |
8953 /* The GNU C library defines this for functions which it implements | |
8954 to always fail with ENOSYS. Some functions are actually named | |
8955 something starting with __ and the normal name is an alias. */ | |
8956 #if defined (__stub_getloadavg) || defined (__stub___getloadavg) | |
8957 choke me | |
8958 #else | |
8959 f = getloadavg; | |
8960 #endif | |
8961 | |
8962 ; | |
8963 return 0; | |
8964 } | |
8965 _ACEOF | |
8966 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 8967 if { (eval echo "$as_me:8967: \"$ac_link\"") >&5 |
8968 (eval $ac_link) 2>&5 | |
8969 ac_status=$? | |
8970 echo "$as_me:8970: \$? = $ac_status" >&5 | |
44493 | 8971 (exit $ac_status); } && |
8972 { ac_try='test -s conftest$ac_exeext' | |
46596 | 8973 { (eval echo "$as_me:8973: \"$ac_try\"") >&5 |
8974 (eval $ac_try) 2>&5 | |
8975 ac_status=$? | |
8976 echo "$as_me:8976: \$? = $ac_status" >&5 | |
40056 | 8977 (exit $ac_status); }; }; then |
8978 ac_cv_func_getloadavg=yes | |
8979 else | |
8980 echo "$as_me: failed program was:" >&5 | |
8981 cat conftest.$ac_ext >&5 | |
8982 ac_cv_func_getloadavg=no | |
8983 fi | |
8984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8985 fi | |
46596 | 8986 echo "$as_me:8986: result: $ac_cv_func_getloadavg" >&5 |
40056 | 8987 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 |
8988 if test $ac_cv_func_getloadavg = yes; then | |
8989 exit 0 | |
8990 else | |
8991 exit 1 | |
8992 fi | |
8993 ) && ac_have_func=yes | |
8994 | |
8995 # On HPUX9, an unprivileged user can get load averages through this function. | |
8996 | |
8997 for ac_func in pstat_getdynamic | |
8998 do | |
8999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
46596 | 9000 echo "$as_me:9000: checking for $ac_func" >&5 |
40056 | 9001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9002 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9003 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9004 else | |
9005 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 9006 #line 9006 "configure" |
40056 | 9007 #include "confdefs.h" |
9008 /* System header to define __stub macros and hopefully few prototypes, | |
9009 which can conflict with char $ac_func (); below. */ | |
9010 #include <assert.h> | |
9011 /* Override any gcc2 internal prototype to avoid an error. */ | |
9012 #ifdef __cplusplus | |
9013 extern "C" | |
9014 #endif | |
9015 /* We use char because int might match the return type of a gcc2 | |
9016 builtin and then its argument prototype would still apply. */ | |
9017 char $ac_func (); | |
9018 char (*f) (); | |
9019 | |
9020 int | |
9021 main () | |
9022 { | |
9023 /* The GNU C library defines this for functions which it implements | |
9024 to always fail with ENOSYS. Some functions are actually named | |
9025 something starting with __ and the normal name is an alias. */ | |
9026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9027 choke me | |
9028 #else | |
9029 f = $ac_func; | |
9030 #endif | |
9031 | |
9032 ; | |
9033 return 0; | |
9034 } | |
9035 _ACEOF | |
9036 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 9037 if { (eval echo "$as_me:9037: \"$ac_link\"") >&5 |
9038 (eval $ac_link) 2>&5 | |
9039 ac_status=$? | |
9040 echo "$as_me:9040: \$? = $ac_status" >&5 | |
44493 | 9041 (exit $ac_status); } && |
9042 { ac_try='test -s conftest$ac_exeext' | |
46596 | 9043 { (eval echo "$as_me:9043: \"$ac_try\"") >&5 |
9044 (eval $ac_try) 2>&5 | |
9045 ac_status=$? | |
9046 echo "$as_me:9046: \$? = $ac_status" >&5 | |
40056 | 9047 (exit $ac_status); }; }; then |
9048 eval "$as_ac_var=yes" | |
9049 else | |
9050 echo "$as_me: failed program was:" >&5 | |
9051 cat conftest.$ac_ext >&5 | |
9052 eval "$as_ac_var=no" | |
9053 fi | |
9054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9055 fi | |
46596 | 9056 echo "$as_me:9056: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 9057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9058 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 9059 cat >>confdefs.h <<EOF |
40056 | 9060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 9061 EOF |
9062 | |
9063 fi | |
9064 done | |
40056 | 9065 |
9066 # Solaris has libkstat which does not require root. | |
9067 | |
46596 | 9068 echo "$as_me:9068: checking for kstat_open in -lkstat" >&5 |
40056 | 9069 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 |
9070 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
9071 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9072 else | |
9073 ac_check_lib_save_LIBS=$LIBS | |
9074 LIBS="-lkstat $LIBS" | |
9075 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 9076 #line 9076 "configure" |
40056 | 9077 #include "confdefs.h" |
9078 | |
9079 /* Override any gcc2 internal prototype to avoid an error. */ | |
9080 #ifdef __cplusplus | |
9081 extern "C" | |
9082 #endif | |
9083 /* We use char because int might match the return type of a gcc2 | |
9084 builtin and then its argument prototype would still apply. */ | |
9085 char kstat_open (); | |
9086 int | |
9087 main () | |
9088 { | |
9089 kstat_open (); | |
9090 ; | |
9091 return 0; | |
9092 } | |
9093 _ACEOF | |
9094 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 9095 if { (eval echo "$as_me:9095: \"$ac_link\"") >&5 |
9096 (eval $ac_link) 2>&5 | |
9097 ac_status=$? | |
9098 echo "$as_me:9098: \$? = $ac_status" >&5 | |
44493 | 9099 (exit $ac_status); } && |
9100 { ac_try='test -s conftest$ac_exeext' | |
46596 | 9101 { (eval echo "$as_me:9101: \"$ac_try\"") >&5 |
9102 (eval $ac_try) 2>&5 | |
9103 ac_status=$? | |
9104 echo "$as_me:9104: \$? = $ac_status" >&5 | |
40056 | 9105 (exit $ac_status); }; }; then |
9106 ac_cv_lib_kstat_kstat_open=yes | |
9107 else | |
9108 echo "$as_me: failed program was:" >&5 | |
9109 cat conftest.$ac_ext >&5 | |
9110 ac_cv_lib_kstat_kstat_open=no | |
9111 fi | |
9112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9113 LIBS=$ac_check_lib_save_LIBS | |
9114 fi | |
46596 | 9115 echo "$as_me:9115: result: $ac_cv_lib_kstat_kstat_open" >&5 |
40056 | 9116 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 |
9117 if test $ac_cv_lib_kstat_kstat_open = yes; then | |
45226 | 9118 cat >>confdefs.h <<EOF |
40056 | 9119 #define HAVE_LIBKSTAT 1 |
45226 | 9120 EOF |
40056 | 9121 |
9122 LIBS="-lkstat $LIBS" | |
9123 | |
9124 fi | |
9125 | |
9126 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes | |
9127 | |
29834 | 9128 # Some systems with -lutil have (and need) -lkvm as well, some do not. |
9129 # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
9130 # to get the right answer into the cache. | |
40056 | 9131 # For kstat on solaris, we need libelf to force the definition of SVR4 below. |
9132 if test $ac_have_func = no; then | |
46596 | 9133 echo "$as_me:9133: checking for elf_begin in -lelf" >&5 |
40056 | 9134 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
9135 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
9136 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9137 else | |
9138 ac_check_lib_save_LIBS=$LIBS | |
29834 | 9139 LIBS="-lelf $LIBS" |
40056 | 9140 cat >conftest.$ac_ext <<_ACEOF |
46596 | 9141 #line 9141 "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 elf_begin (); | |
9151 int | |
9152 main () | |
9153 { | |
9154 elf_begin (); | |
9155 ; | |
9156 return 0; | |
9157 } | |
9158 _ACEOF | |
9159 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 9160 if { (eval echo "$as_me:9160: \"$ac_link\"") >&5 |
9161 (eval $ac_link) 2>&5 | |
9162 ac_status=$? | |
9163 echo "$as_me:9163: \$? = $ac_status" >&5 | |
44493 | 9164 (exit $ac_status); } && |
9165 { ac_try='test -s conftest$ac_exeext' | |
46596 | 9166 { (eval echo "$as_me:9166: \"$ac_try\"") >&5 |
9167 (eval $ac_try) 2>&5 | |
9168 ac_status=$? | |
9169 echo "$as_me:9169: \$? = $ac_status" >&5 | |
40056 | 9170 (exit $ac_status); }; }; then |
9171 ac_cv_lib_elf_elf_begin=yes | |
9172 else | |
9173 echo "$as_me: failed program was:" >&5 | |
9174 cat conftest.$ac_ext >&5 | |
9175 ac_cv_lib_elf_elf_begin=no | |
9176 fi | |
9177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9178 LIBS=$ac_check_lib_save_LIBS | |
9179 fi | |
46596 | 9180 echo "$as_me:9180: result: $ac_cv_lib_elf_elf_begin" >&5 |
40056 | 9181 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
9182 if test $ac_cv_lib_elf_elf_begin = yes; then | |
29834 | 9183 LIBS="-lelf $LIBS" |
40056 | 9184 fi |
9185 | |
9186 fi | |
9187 if test $ac_have_func = no; then | |
46596 | 9188 echo "$as_me:9188: checking for kvm_open in -lkvm" >&5 |
40056 | 9189 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 |
9190 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
9191 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9192 else | |
9193 ac_check_lib_save_LIBS=$LIBS | |
29834 | 9194 LIBS="-lkvm $LIBS" |
40056 | 9195 cat >conftest.$ac_ext <<_ACEOF |
46596 | 9196 #line 9196 "configure" |
40056 | 9197 #include "confdefs.h" |
9198 | |
29834 | 9199 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9200 #ifdef __cplusplus |
9201 extern "C" | |
9202 #endif | |
29834 | 9203 /* We use char because int might match the return type of a gcc2 |
40056 | 9204 builtin and then its argument prototype would still apply. */ |
9205 char kvm_open (); | |
9206 int | |
9207 main () | |
9208 { | |
9209 kvm_open (); | |
9210 ; | |
9211 return 0; | |
9212 } | |
9213 _ACEOF | |
9214 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 9215 if { (eval echo "$as_me:9215: \"$ac_link\"") >&5 |
9216 (eval $ac_link) 2>&5 | |
9217 ac_status=$? | |
9218 echo "$as_me:9218: \$? = $ac_status" >&5 | |
44493 | 9219 (exit $ac_status); } && |
9220 { ac_try='test -s conftest$ac_exeext' | |
46596 | 9221 { (eval echo "$as_me:9221: \"$ac_try\"") >&5 |
9222 (eval $ac_try) 2>&5 | |
9223 ac_status=$? | |
9224 echo "$as_me:9224: \$? = $ac_status" >&5 | |
40056 | 9225 (exit $ac_status); }; }; then |
9226 ac_cv_lib_kvm_kvm_open=yes | |
9227 else | |
9228 echo "$as_me: failed program was:" >&5 | |
9229 cat conftest.$ac_ext >&5 | |
9230 ac_cv_lib_kvm_kvm_open=no | |
9231 fi | |
9232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9233 LIBS=$ac_check_lib_save_LIBS | |
9234 fi | |
46596 | 9235 echo "$as_me:9235: result: $ac_cv_lib_kvm_kvm_open" >&5 |
40056 | 9236 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 |
9237 if test $ac_cv_lib_kvm_kvm_open = yes; then | |
29834 | 9238 LIBS="-lkvm $LIBS" |
40056 | 9239 fi |
9240 | |
9241 # Check for the 4.4BSD definition of getloadavg. | |
46596 | 9242 echo "$as_me:9242: checking for getloadavg in -lutil" >&5 |
40056 | 9243 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 |
9244 if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
9245 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9246 else | |
9247 ac_check_lib_save_LIBS=$LIBS | |
29834 | 9248 LIBS="-lutil $LIBS" |
40056 | 9249 cat >conftest.$ac_ext <<_ACEOF |
46596 | 9250 #line 9250 "configure" |
40056 | 9251 #include "confdefs.h" |
9252 | |
29834 | 9253 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9254 #ifdef __cplusplus |
9255 extern "C" | |
9256 #endif | |
29834 | 9257 /* We use char because int might match the return type of a gcc2 |
40056 | 9258 builtin and then its argument prototype would still apply. */ |
9259 char getloadavg (); | |
9260 int | |
9261 main () | |
9262 { | |
9263 getloadavg (); | |
9264 ; | |
9265 return 0; | |
9266 } | |
9267 _ACEOF | |
9268 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 9269 if { (eval echo "$as_me:9269: \"$ac_link\"") >&5 |
9270 (eval $ac_link) 2>&5 | |
9271 ac_status=$? | |
9272 echo "$as_me:9272: \$? = $ac_status" >&5 | |
44493 | 9273 (exit $ac_status); } && |
9274 { ac_try='test -s conftest$ac_exeext' | |
46596 | 9275 { (eval echo "$as_me:9275: \"$ac_try\"") >&5 |
9276 (eval $ac_try) 2>&5 | |
9277 ac_status=$? | |
9278 echo "$as_me:9278: \$? = $ac_status" >&5 | |
40056 | 9279 (exit $ac_status); }; }; then |
9280 ac_cv_lib_util_getloadavg=yes | |
9281 else | |
9282 echo "$as_me: failed program was:" >&5 | |
9283 cat conftest.$ac_ext >&5 | |
9284 ac_cv_lib_util_getloadavg=no | |
9285 fi | |
9286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9287 LIBS=$ac_check_lib_save_LIBS | |
9288 fi | |
46596 | 9289 echo "$as_me:9289: result: $ac_cv_lib_util_getloadavg" >&5 |
40056 | 9290 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 |
9291 if test $ac_cv_lib_util_getloadavg = yes; then | |
29834 | 9292 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes |
40056 | 9293 fi |
9294 | |
9295 fi | |
29834 | 9296 |
9297 if test $ac_have_func = no; then | |
9298 # There is a commonly available library for RS/6000 AIX. | |
9299 # Since it is not a standard part of AIX, it might be installed locally. | |
40056 | 9300 ac_getloadavg_LIBS=$LIBS |
9301 LIBS="-L/usr/local/lib $LIBS" | |
46596 | 9302 echo "$as_me:9302: checking for getloadavg in -lgetloadavg" >&5 |
40056 | 9303 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 |
9304 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
9305 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9306 else | |
9307 ac_check_lib_save_LIBS=$LIBS | |
29834 | 9308 LIBS="-lgetloadavg $LIBS" |
40056 | 9309 cat >conftest.$ac_ext <<_ACEOF |
46596 | 9310 #line 9310 "configure" |
40056 | 9311 #include "confdefs.h" |
9312 | |
29834 | 9313 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9314 #ifdef __cplusplus |
9315 extern "C" | |
9316 #endif | |
29834 | 9317 /* We use char because int might match the return type of a gcc2 |
40056 | 9318 builtin and then its argument prototype would still apply. */ |
9319 char getloadavg (); | |
9320 int | |
9321 main () | |
9322 { | |
9323 getloadavg (); | |
9324 ; | |
9325 return 0; | |
9326 } | |
9327 _ACEOF | |
9328 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 9329 if { (eval echo "$as_me:9329: \"$ac_link\"") >&5 |
9330 (eval $ac_link) 2>&5 | |
9331 ac_status=$? | |
9332 echo "$as_me:9332: \$? = $ac_status" >&5 | |
44493 | 9333 (exit $ac_status); } && |
9334 { ac_try='test -s conftest$ac_exeext' | |
46596 | 9335 { (eval echo "$as_me:9335: \"$ac_try\"") >&5 |
9336 (eval $ac_try) 2>&5 | |
9337 ac_status=$? | |
9338 echo "$as_me:9338: \$? = $ac_status" >&5 | |
40056 | 9339 (exit $ac_status); }; }; then |
9340 ac_cv_lib_getloadavg_getloadavg=yes | |
9341 else | |
9342 echo "$as_me: failed program was:" >&5 | |
9343 cat conftest.$ac_ext >&5 | |
9344 ac_cv_lib_getloadavg_getloadavg=no | |
9345 fi | |
9346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9347 LIBS=$ac_check_lib_save_LIBS | |
9348 fi | |
46596 | 9349 echo "$as_me:9349: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
44493 | 9350 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 |
9351 if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
9352 LIBS="-lgetloadavg $LIBS" | |
9353 else | |
9354 LIBS=$ac_getloadavg_LIBS | |
9355 fi | |
9356 | |
9357 fi | |
9358 | |
9359 # Make sure it is really in the library, if we think we found it, | |
9360 # otherwise set up the replacement function. | |
9361 | |
9362 for ac_func in getloadavg | |
9363 do | |
9364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
46596 | 9365 echo "$as_me:9365: checking for $ac_func" >&5 |
44493 | 9366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9367 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9368 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9369 else | |
9370 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 9371 #line 9371 "configure" |
44493 | 9372 #include "confdefs.h" |
9373 /* System header to define __stub macros and hopefully few prototypes, | |
9374 which can conflict with char $ac_func (); below. */ | |
9375 #include <assert.h> | |
9376 /* Override any gcc2 internal prototype to avoid an error. */ | |
9377 #ifdef __cplusplus | |
9378 extern "C" | |
9379 #endif | |
9380 /* We use char because int might match the return type of a gcc2 | |
9381 builtin and then its argument prototype would still apply. */ | |
9382 char $ac_func (); | |
9383 char (*f) (); | |
9384 | |
9385 int | |
9386 main () | |
9387 { | |
9388 /* The GNU C library defines this for functions which it implements | |
9389 to always fail with ENOSYS. Some functions are actually named | |
9390 something starting with __ and the normal name is an alias. */ | |
9391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9392 choke me | |
9393 #else | |
9394 f = $ac_func; | |
9395 #endif | |
9396 | |
9397 ; | |
9398 return 0; | |
9399 } | |
9400 _ACEOF | |
9401 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 9402 if { (eval echo "$as_me:9402: \"$ac_link\"") >&5 |
9403 (eval $ac_link) 2>&5 | |
9404 ac_status=$? | |
9405 echo "$as_me:9405: \$? = $ac_status" >&5 | |
44493 | 9406 (exit $ac_status); } && |
9407 { ac_try='test -s conftest$ac_exeext' | |
46596 | 9408 { (eval echo "$as_me:9408: \"$ac_try\"") >&5 |
9409 (eval $ac_try) 2>&5 | |
9410 ac_status=$? | |
9411 echo "$as_me:9411: \$? = $ac_status" >&5 | |
44493 | 9412 (exit $ac_status); }; }; then |
9413 eval "$as_ac_var=yes" | |
9414 else | |
9415 echo "$as_me: failed program was:" >&5 | |
9416 cat conftest.$ac_ext >&5 | |
9417 eval "$as_ac_var=no" | |
9418 fi | |
9419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9420 fi | |
46596 | 9421 echo "$as_me:9421: result: `eval echo '${'$as_ac_var'}'`" >&5 |
44493 | 9422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9423 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 9424 cat >>confdefs.h <<EOF |
44493 | 9425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 9426 EOF |
44493 | 9427 |
9428 else | |
9429 LIBOBJS="$LIBOBJS getloadavg.$ac_objext" | |
9430 | |
45226 | 9431 cat >>confdefs.h <<\EOF |
44493 | 9432 #define C_GETLOADAVG 1 |
45226 | 9433 EOF |
44493 | 9434 |
9435 # Figure out what our getloadavg.c needs. | |
9436 ac_have_func=no | |
46596 | 9437 echo "$as_me:9437: checking for sys/dg_sys_info.h" >&5 |
44493 | 9438 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 |
9439 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
9440 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 9441 else |
9442 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 9443 #line 9443 "configure" |
44493 | 9444 #include "confdefs.h" |
9445 #include <sys/dg_sys_info.h> | |
9446 _ACEOF | |
46596 | 9447 if { (eval echo "$as_me:9447: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44493 | 9448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9449 ac_status=$? | |
9450 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9451 rm -f conftest.er1 | |
9452 cat conftest.err >&5 | |
46596 | 9453 echo "$as_me:9453: \$? = $ac_status" >&5 |
44493 | 9454 (exit $ac_status); } >/dev/null; then |
9455 if test -s conftest.err; then | |
9456 ac_cpp_err=$ac_c_preproc_warn_flag | |
9457 else | |
9458 ac_cpp_err= | |
9459 fi | |
9460 else | |
9461 ac_cpp_err=yes | |
9462 fi | |
9463 if test -z "$ac_cpp_err"; then | |
45226 | 9464 ac_cv_header_sys_dg_sys_info_h=yes |
44493 | 9465 else |
9466 echo "$as_me: failed program was:" >&5 | |
9467 cat conftest.$ac_ext >&5 | |
45226 | 9468 ac_cv_header_sys_dg_sys_info_h=no |
44493 | 9469 fi |
9470 rm -f conftest.err conftest.$ac_ext | |
45226 | 9471 fi |
46596 | 9472 echo "$as_me:9472: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
44493 | 9473 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 |
9474 if test $ac_cv_header_sys_dg_sys_info_h = yes; then | |
9475 ac_have_func=yes | |
9476 | |
45226 | 9477 cat >>confdefs.h <<\EOF |
44493 | 9478 #define DGUX 1 |
45226 | 9479 EOF |
9480 | |
46596 | 9481 echo "$as_me:9481: checking for dg_sys_info in -ldgc" >&5 |
44493 | 9482 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 |
9483 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
9484 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9485 else | |
9486 ac_check_lib_save_LIBS=$LIBS | |
9487 LIBS="-ldgc $LIBS" | |
9488 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 9489 #line 9489 "configure" |
44493 | 9490 #include "confdefs.h" |
9491 | |
9492 /* Override any gcc2 internal prototype to avoid an error. */ | |
9493 #ifdef __cplusplus | |
9494 extern "C" | |
9495 #endif | |
9496 /* We use char because int might match the return type of a gcc2 | |
9497 builtin and then its argument prototype would still apply. */ | |
9498 char dg_sys_info (); | |
9499 int | |
9500 main () | |
9501 { | |
9502 dg_sys_info (); | |
9503 ; | |
9504 return 0; | |
9505 } | |
9506 _ACEOF | |
9507 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 9508 if { (eval echo "$as_me:9508: \"$ac_link\"") >&5 |
9509 (eval $ac_link) 2>&5 | |
9510 ac_status=$? | |
9511 echo "$as_me:9511: \$? = $ac_status" >&5 | |
44493 | 9512 (exit $ac_status); } && |
9513 { ac_try='test -s conftest$ac_exeext' | |
46596 | 9514 { (eval echo "$as_me:9514: \"$ac_try\"") >&5 |
9515 (eval $ac_try) 2>&5 | |
9516 ac_status=$? | |
9517 echo "$as_me:9517: \$? = $ac_status" >&5 | |
44493 | 9518 (exit $ac_status); }; }; then |
9519 ac_cv_lib_dgc_dg_sys_info=yes | |
9520 else | |
9521 echo "$as_me: failed program was:" >&5 | |
9522 cat conftest.$ac_ext >&5 | |
9523 ac_cv_lib_dgc_dg_sys_info=no | |
9524 fi | |
9525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9526 LIBS=$ac_check_lib_save_LIBS | |
9527 fi | |
46596 | 9528 echo "$as_me:9528: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
44493 | 9529 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 |
9530 if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
45226 | 9531 cat >>confdefs.h <<EOF |
44493 | 9532 #define HAVE_LIBDGC 1 |
45226 | 9533 EOF |
44493 | 9534 |
9535 LIBS="-ldgc $LIBS" | |
9536 | |
9537 fi | |
9538 | |
9539 fi | |
9540 | |
46596 | 9541 echo "$as_me:9541: checking for locale.h" >&5 |
44493 | 9542 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 |
9543 if test "${ac_cv_header_locale_h+set}" = set; then | |
9544 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 9545 else |
9546 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 9547 #line 9547 "configure" |
44493 | 9548 #include "confdefs.h" |
9549 #include <locale.h> | |
9550 _ACEOF | |
46596 | 9551 if { (eval echo "$as_me:9551: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44493 | 9552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9553 ac_status=$? | |
9554 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9555 rm -f conftest.er1 | |
9556 cat conftest.err >&5 | |
46596 | 9557 echo "$as_me:9557: \$? = $ac_status" >&5 |
44493 | 9558 (exit $ac_status); } >/dev/null; then |
9559 if test -s conftest.err; then | |
9560 ac_cpp_err=$ac_c_preproc_warn_flag | |
9561 else | |
9562 ac_cpp_err= | |
9563 fi | |
9564 else | |
9565 ac_cpp_err=yes | |
9566 fi | |
9567 if test -z "$ac_cpp_err"; then | |
45226 | 9568 ac_cv_header_locale_h=yes |
44493 | 9569 else |
9570 echo "$as_me: failed program was:" >&5 | |
9571 cat conftest.$ac_ext >&5 | |
45226 | 9572 ac_cv_header_locale_h=no |
44493 | 9573 fi |
9574 rm -f conftest.err conftest.$ac_ext | |
45226 | 9575 fi |
46596 | 9576 echo "$as_me:9576: result: $ac_cv_header_locale_h" >&5 |
44493 | 9577 echo "${ECHO_T}$ac_cv_header_locale_h" >&6 |
9578 | |
9579 for ac_func in setlocale | |
9580 do | |
9581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
46596 | 9582 echo "$as_me:9582: checking for $ac_func" >&5 |
44493 | 9583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9584 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9585 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9586 else | |
9587 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 9588 #line 9588 "configure" |
44493 | 9589 #include "confdefs.h" |
9590 /* System header to define __stub macros and hopefully few prototypes, | |
9591 which can conflict with char $ac_func (); below. */ | |
9592 #include <assert.h> | |
9593 /* Override any gcc2 internal prototype to avoid an error. */ | |
9594 #ifdef __cplusplus | |
9595 extern "C" | |
9596 #endif | |
9597 /* We use char because int might match the return type of a gcc2 | |
9598 builtin and then its argument prototype would still apply. */ | |
9599 char $ac_func (); | |
9600 char (*f) (); | |
9601 | |
9602 int | |
9603 main () | |
9604 { | |
9605 /* The GNU C library defines this for functions which it implements | |
9606 to always fail with ENOSYS. Some functions are actually named | |
9607 something starting with __ and the normal name is an alias. */ | |
9608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9609 choke me | |
9610 #else | |
9611 f = $ac_func; | |
9612 #endif | |
9613 | |
9614 ; | |
9615 return 0; | |
9616 } | |
9617 _ACEOF | |
9618 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 9619 if { (eval echo "$as_me:9619: \"$ac_link\"") >&5 |
9620 (eval $ac_link) 2>&5 | |
9621 ac_status=$? | |
9622 echo "$as_me:9622: \$? = $ac_status" >&5 | |
44493 | 9623 (exit $ac_status); } && |
9624 { ac_try='test -s conftest$ac_exeext' | |
46596 | 9625 { (eval echo "$as_me:9625: \"$ac_try\"") >&5 |
9626 (eval $ac_try) 2>&5 | |
9627 ac_status=$? | |
9628 echo "$as_me:9628: \$? = $ac_status" >&5 | |
44493 | 9629 (exit $ac_status); }; }; then |
9630 eval "$as_ac_var=yes" | |
9631 else | |
9632 echo "$as_me: failed program was:" >&5 | |
9633 cat conftest.$ac_ext >&5 | |
9634 eval "$as_ac_var=no" | |
9635 fi | |
9636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9637 fi | |
46596 | 9638 echo "$as_me:9638: result: `eval echo '${'$as_ac_var'}'`" >&5 |
44493 | 9639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9640 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 9641 cat >>confdefs.h <<EOF |
44493 | 9642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 9643 EOF |
9644 | |
9645 fi | |
9646 done | |
44493 | 9647 |
9648 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | |
9649 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
9650 # Irix 4.0.5F has the header but not the library. | |
9651 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
9652 ac_have_func=yes | |
9653 | |
45226 | 9654 cat >>confdefs.h <<\EOF |
44493 | 9655 #define SVR4 1 |
45226 | 9656 EOF |
44493 | 9657 |
9658 fi | |
9659 | |
9660 if test $ac_have_func = no; then | |
46596 | 9661 echo "$as_me:9661: checking for inq_stats/cpustats.h" >&5 |
44493 | 9662 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 |
9663 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
9664 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 9665 else |
9666 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 9667 #line 9667 "configure" |
44493 | 9668 #include "confdefs.h" |
9669 #include <inq_stats/cpustats.h> | |
9670 _ACEOF | |
46596 | 9671 if { (eval echo "$as_me:9671: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44493 | 9672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9673 ac_status=$? | |
9674 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9675 rm -f conftest.er1 | |
9676 cat conftest.err >&5 | |
46596 | 9677 echo "$as_me:9677: \$? = $ac_status" >&5 |
44493 | 9678 (exit $ac_status); } >/dev/null; then |
9679 if test -s conftest.err; then | |
9680 ac_cpp_err=$ac_c_preproc_warn_flag | |
9681 else | |
9682 ac_cpp_err= | |
9683 fi | |
9684 else | |
9685 ac_cpp_err=yes | |
9686 fi | |
9687 if test -z "$ac_cpp_err"; then | |
45226 | 9688 ac_cv_header_inq_stats_cpustats_h=yes |
44493 | 9689 else |
9690 echo "$as_me: failed program was:" >&5 | |
9691 cat conftest.$ac_ext >&5 | |
45226 | 9692 ac_cv_header_inq_stats_cpustats_h=no |
44493 | 9693 fi |
9694 rm -f conftest.err conftest.$ac_ext | |
45226 | 9695 fi |
46596 | 9696 echo "$as_me:9696: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
44493 | 9697 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 |
9698 if test $ac_cv_header_inq_stats_cpustats_h = yes; then | |
9699 ac_have_func=yes | |
9700 | |
45226 | 9701 cat >>confdefs.h <<\EOF |
44493 | 9702 #define UMAX 1 |
45226 | 9703 EOF |
9704 | |
9705 cat >>confdefs.h <<\EOF | |
44493 | 9706 #define UMAX4_3 1 |
45226 | 9707 EOF |
9708 | |
9709 fi | |
44493 | 9710 |
9711 fi | |
9712 | |
9713 if test $ac_have_func = no; then | |
46596 | 9714 echo "$as_me:9714: checking for sys/cpustats.h" >&5 |
44493 | 9715 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 |
9716 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
9717 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 9718 else |
9719 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 9720 #line 9720 "configure" |
44493 | 9721 #include "confdefs.h" |
9722 #include <sys/cpustats.h> | |
9723 _ACEOF | |
46596 | 9724 if { (eval echo "$as_me:9724: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44493 | 9725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9726 ac_status=$? | |
9727 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9728 rm -f conftest.er1 | |
9729 cat conftest.err >&5 | |
46596 | 9730 echo "$as_me:9730: \$? = $ac_status" >&5 |
44493 | 9731 (exit $ac_status); } >/dev/null; then |
9732 if test -s conftest.err; then | |
9733 ac_cpp_err=$ac_c_preproc_warn_flag | |
9734 else | |
9735 ac_cpp_err= | |
9736 fi | |
9737 else | |
9738 ac_cpp_err=yes | |
9739 fi | |
9740 if test -z "$ac_cpp_err"; then | |
45226 | 9741 ac_cv_header_sys_cpustats_h=yes |
44493 | 9742 else |
9743 echo "$as_me: failed program was:" >&5 | |
9744 cat conftest.$ac_ext >&5 | |
45226 | 9745 ac_cv_header_sys_cpustats_h=no |
44493 | 9746 fi |
9747 rm -f conftest.err conftest.$ac_ext | |
45226 | 9748 fi |
46596 | 9749 echo "$as_me:9749: result: $ac_cv_header_sys_cpustats_h" >&5 |
44493 | 9750 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 |
9751 if test $ac_cv_header_sys_cpustats_h = yes; then | |
45226 | 9752 ac_have_func=yes; cat >>confdefs.h <<\EOF |
44493 | 9753 #define UMAX 1 |
45226 | 9754 EOF |
9755 | |
9756 fi | |
44493 | 9757 |
9758 fi | |
9759 | |
9760 if test $ac_have_func = no; then | |
9761 | |
9762 for ac_header in mach/mach.h | |
9763 do | |
9764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
46596 | 9765 echo "$as_me:9765: checking for $ac_header" >&5 |
44493 | 9766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
9767 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9768 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 9769 else |
9770 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 9771 #line 9771 "configure" |
44493 | 9772 #include "confdefs.h" |
9773 #include <$ac_header> | |
9774 _ACEOF | |
46596 | 9775 if { (eval echo "$as_me:9775: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44493 | 9776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9777 ac_status=$? | |
9778 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9779 rm -f conftest.er1 | |
9780 cat conftest.err >&5 | |
46596 | 9781 echo "$as_me:9781: \$? = $ac_status" >&5 |
44493 | 9782 (exit $ac_status); } >/dev/null; then |
9783 if test -s conftest.err; then | |
9784 ac_cpp_err=$ac_c_preproc_warn_flag | |
9785 else | |
9786 ac_cpp_err= | |
9787 fi | |
9788 else | |
9789 ac_cpp_err=yes | |
9790 fi | |
9791 if test -z "$ac_cpp_err"; then | |
45226 | 9792 eval "$as_ac_Header=yes" |
44493 | 9793 else |
9794 echo "$as_me: failed program was:" >&5 | |
9795 cat conftest.$ac_ext >&5 | |
45226 | 9796 eval "$as_ac_Header=no" |
44493 | 9797 fi |
9798 rm -f conftest.err conftest.$ac_ext | |
45226 | 9799 fi |
46596 | 9800 echo "$as_me:9800: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
44493 | 9801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
9802 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 9803 cat >>confdefs.h <<EOF |
44493 | 9804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 9805 EOF |
9806 | |
9807 fi | |
9808 done | |
9809 | |
9810 fi | |
44493 | 9811 |
9812 for ac_header in nlist.h | |
9813 do | |
9814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
46596 | 9815 echo "$as_me:9815: checking for $ac_header" >&5 |
44493 | 9816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
9817 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9818 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 9819 else |
9820 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 9821 #line 9821 "configure" |
44493 | 9822 #include "confdefs.h" |
9823 #include <$ac_header> | |
9824 _ACEOF | |
46596 | 9825 if { (eval echo "$as_me:9825: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44493 | 9826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9827 ac_status=$? | |
9828 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9829 rm -f conftest.er1 | |
9830 cat conftest.err >&5 | |
46596 | 9831 echo "$as_me:9831: \$? = $ac_status" >&5 |
44493 | 9832 (exit $ac_status); } >/dev/null; then |
9833 if test -s conftest.err; then | |
9834 ac_cpp_err=$ac_c_preproc_warn_flag | |
9835 else | |
9836 ac_cpp_err= | |
9837 fi | |
9838 else | |
9839 ac_cpp_err=yes | |
9840 fi | |
9841 if test -z "$ac_cpp_err"; then | |
45226 | 9842 eval "$as_ac_Header=yes" |
44493 | 9843 else |
9844 echo "$as_me: failed program was:" >&5 | |
9845 cat conftest.$ac_ext >&5 | |
45226 | 9846 eval "$as_ac_Header=no" |
44493 | 9847 fi |
9848 rm -f conftest.err conftest.$ac_ext | |
45226 | 9849 fi |
46596 | 9850 echo "$as_me:9850: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
44493 | 9851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
9852 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 9853 cat >>confdefs.h <<EOF |
44493 | 9854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 9855 EOF |
46596 | 9856 echo "$as_me:9856: checking for struct nlist.n_un.n_name" >&5 |
44493 | 9857 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 |
9858 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
9859 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9860 else | |
9861 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 9862 #line 9862 "configure" |
44493 | 9863 #include "confdefs.h" |
9864 #include <nlist.h> | |
9865 | |
9866 int | |
9867 main () | |
9868 { | |
9869 static struct nlist ac_aggr; | |
9870 if (ac_aggr.n_un.n_name) | |
9871 return 0; | |
9872 ; | |
9873 return 0; | |
9874 } | |
9875 _ACEOF | |
9876 rm -f conftest.$ac_objext | |
46596 | 9877 if { (eval echo "$as_me:9877: \"$ac_compile\"") >&5 |
44493 | 9878 (eval $ac_compile) 2>&5 |
9879 ac_status=$? | |
46596 | 9880 echo "$as_me:9880: \$? = $ac_status" >&5 |
44493 | 9881 (exit $ac_status); } && |
9882 { ac_try='test -s conftest.$ac_objext' | |
46596 | 9883 { (eval echo "$as_me:9883: \"$ac_try\"") >&5 |
9884 (eval $ac_try) 2>&5 | |
9885 ac_status=$? | |
9886 echo "$as_me:9886: \$? = $ac_status" >&5 | |
44493 | 9887 (exit $ac_status); }; }; then |
9888 ac_cv_member_struct_nlist_n_un_n_name=yes | |
9889 else | |
9890 echo "$as_me: failed program was:" >&5 | |
9891 cat conftest.$ac_ext >&5 | |
9892 ac_cv_member_struct_nlist_n_un_n_name=no | |
9893 fi | |
9894 rm -f conftest.$ac_objext conftest.$ac_ext | |
9895 fi | |
46596 | 9896 echo "$as_me:9896: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
44493 | 9897 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 |
9898 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
9899 | |
45226 | 9900 cat >>confdefs.h <<EOF |
44493 | 9901 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
45226 | 9902 EOF |
9903 | |
9904 cat >>confdefs.h <<\EOF | |
44493 | 9905 #define NLIST_NAME_UNION 1 |
45226 | 9906 EOF |
9907 | |
9908 fi | |
9909 | |
9910 fi | |
9911 done | |
9912 | |
9913 fi | |
9914 done | |
44493 | 9915 |
9916 # Some definitions of getloadavg require that the program be installed setgid. | |
46596 | 9917 echo "$as_me:9917: checking whether getloadavg requires setgid" >&5 |
44493 | 9918 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 |
9919 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
9920 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9921 else | |
9922 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 9923 #line 9923 "configure" |
44493 | 9924 #include "confdefs.h" |
9925 #include "$srcdir/getloadavg.c" | |
9926 #ifdef LDAV_PRIVILEGED | |
9927 Yowza Am I SETGID yet | |
9928 #endif | |
9929 _ACEOF | |
9930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9931 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then | |
9932 ac_cv_func_getloadavg_setgid=yes | |
9933 else | |
9934 ac_cv_func_getloadavg_setgid=no | |
9935 fi | |
9936 rm -f conftest* | |
9937 | |
9938 fi | |
46596 | 9939 echo "$as_me:9939: result: $ac_cv_func_getloadavg_setgid" >&5 |
44493 | 9940 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 |
9941 if test $ac_cv_func_getloadavg_setgid = yes; then | |
9942 NEED_SETGID=true | |
9943 | |
45226 | 9944 cat >>confdefs.h <<\EOF |
44493 | 9945 #define GETLOADAVG_PRIVILEGED 1 |
45226 | 9946 EOF |
44493 | 9947 |
9948 else | |
9949 NEED_SETGID=false | |
9950 fi | |
9951 | |
9952 if test $ac_cv_func_getloadavg_setgid = yes; then | |
46596 | 9953 echo "$as_me:9953: checking group of /dev/kmem" >&5 |
44493 | 9954 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 |
9955 if test "${ac_cv_group_kmem+set}" = set; then | |
9956 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9957 else | |
9958 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
9959 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
9960 # If we got an error (system does not support symlinks), try without -L. | |
9961 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
9962 ac_cv_group_kmem=`echo $ac_ls_output \ | |
9963 | sed -ne 's/[ ][ ]*/ /g; | |
9964 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
9965 / /s/.* //;p;'` | |
9966 | |
9967 fi | |
46596 | 9968 echo "$as_me:9968: result: $ac_cv_group_kmem" >&5 |
44493 | 9969 echo "${ECHO_T}$ac_cv_group_kmem" >&6 |
9970 KMEM_GROUP=$ac_cv_group_kmem | |
9971 fi | |
9972 if test "x$ac_save_LIBS" = x; then | |
9973 GETLOADAVG_LIBS=$LIBS | |
9974 else | |
9975 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
9976 fi | |
9977 LIBS=$ac_save_LIBS | |
9978 | |
46596 | 9979 echo "$as_me:9979: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
40056 | 9980 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
9981 if test "${ac_cv_sys_largefile_source+set}" = set; then | |
9982 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9983 else | |
9984 while :; do | |
34431 | 9985 ac_cv_sys_largefile_source=no |
40056 | 9986 cat >conftest.$ac_ext <<_ACEOF |
46596 | 9987 #line 9987 "configure" |
34431 | 9988 #include "confdefs.h" |
9989 #include <stdio.h> | |
40056 | 9990 int |
9991 main () | |
9992 { | |
34431 | 9993 return !fseeko; |
40056 | 9994 ; |
9995 return 0; | |
9996 } | |
9997 _ACEOF | |
9998 rm -f conftest.$ac_objext | |
46596 | 9999 if { (eval echo "$as_me:9999: \"$ac_compile\"") >&5 |
44493 | 10000 (eval $ac_compile) 2>&5 |
10001 ac_status=$? | |
46596 | 10002 echo "$as_me:10002: \$? = $ac_status" >&5 |
44493 | 10003 (exit $ac_status); } && |
10004 { ac_try='test -s conftest.$ac_objext' | |
46596 | 10005 { (eval echo "$as_me:10005: \"$ac_try\"") >&5 |
10006 (eval $ac_try) 2>&5 | |
10007 ac_status=$? | |
10008 echo "$as_me:10008: \$? = $ac_status" >&5 | |
40056 | 10009 (exit $ac_status); }; }; then |
10010 break | |
10011 else | |
10012 echo "$as_me: failed program was:" >&5 | |
10013 cat conftest.$ac_ext >&5 | |
10014 fi | |
10015 rm -f conftest.$ac_objext conftest.$ac_ext | |
10016 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 10017 #line 10017 "configure" |
34431 | 10018 #include "confdefs.h" |
10019 #define _LARGEFILE_SOURCE 1 | |
10020 #include <stdio.h> | |
40056 | 10021 int |
10022 main () | |
10023 { | |
34431 | 10024 return !fseeko; |
40056 | 10025 ; |
10026 return 0; | |
10027 } | |
10028 _ACEOF | |
10029 rm -f conftest.$ac_objext | |
46596 | 10030 if { (eval echo "$as_me:10030: \"$ac_compile\"") >&5 |
44493 | 10031 (eval $ac_compile) 2>&5 |
10032 ac_status=$? | |
46596 | 10033 echo "$as_me:10033: \$? = $ac_status" >&5 |
44493 | 10034 (exit $ac_status); } && |
10035 { ac_try='test -s conftest.$ac_objext' | |
46596 | 10036 { (eval echo "$as_me:10036: \"$ac_try\"") >&5 |
10037 (eval $ac_try) 2>&5 | |
10038 ac_status=$? | |
10039 echo "$as_me:10039: \$? = $ac_status" >&5 | |
40056 | 10040 (exit $ac_status); }; }; then |
10041 ac_cv_sys_largefile_source=1; break | |
10042 else | |
10043 echo "$as_me: failed program was:" >&5 | |
10044 cat conftest.$ac_ext >&5 | |
10045 fi | |
10046 rm -f conftest.$ac_objext conftest.$ac_ext | |
10047 break | |
10048 done | |
10049 fi | |
46596 | 10050 echo "$as_me:10050: result: $ac_cv_sys_largefile_source" >&5 |
40056 | 10051 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 |
10052 if test "$ac_cv_sys_largefile_source" != no; then | |
10053 | |
45226 | 10054 cat >>confdefs.h <<EOF |
40056 | 10055 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
45226 | 10056 EOF |
40056 | 10057 |
34431 | 10058 fi |
10059 rm -f conftest* | |
40056 | 10060 |
10061 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
10062 # in glibc 2.1.3, but that breaks too many other things. | |
10063 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
46596 | 10064 echo "$as_me:10064: checking for fseeko" >&5 |
40056 | 10065 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 |
10066 if test "${ac_cv_func_fseeko+set}" = set; then | |
10067 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10068 else | |
10069 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 10070 #line 10070 "configure" |
34431 | 10071 #include "confdefs.h" |
10072 #include <stdio.h> | |
40056 | 10073 int |
10074 main () | |
10075 { | |
34431 | 10076 return fseeko && fseeko (stdin, 0, 0); |
40056 | 10077 ; |
10078 return 0; | |
10079 } | |
10080 _ACEOF | |
10081 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 10082 if { (eval echo "$as_me:10082: \"$ac_link\"") >&5 |
10083 (eval $ac_link) 2>&5 | |
10084 ac_status=$? | |
10085 echo "$as_me:10085: \$? = $ac_status" >&5 | |
44493 | 10086 (exit $ac_status); } && |
10087 { ac_try='test -s conftest$ac_exeext' | |
46596 | 10088 { (eval echo "$as_me:10088: \"$ac_try\"") >&5 |
10089 (eval $ac_try) 2>&5 | |
10090 ac_status=$? | |
10091 echo "$as_me:10091: \$? = $ac_status" >&5 | |
40056 | 10092 (exit $ac_status); }; }; then |
34431 | 10093 ac_cv_func_fseeko=yes |
10094 else | |
40056 | 10095 echo "$as_me: failed program was:" >&5 |
10096 cat conftest.$ac_ext >&5 | |
10097 ac_cv_func_fseeko=no | |
10098 fi | |
10099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10100 fi | |
46596 | 10101 echo "$as_me:10101: result: $ac_cv_func_fseeko" >&5 |
40056 | 10102 echo "${ECHO_T}$ac_cv_func_fseeko" >&6 |
10103 if test $ac_cv_func_fseeko = yes; then | |
10104 | |
45226 | 10105 cat >>confdefs.h <<\EOF |
34431 | 10106 #define HAVE_FSEEKO 1 |
45226 | 10107 EOF |
10108 | |
10109 fi | |
34431 | 10110 |
10111 # UNIX98 PTYs. | |
40056 | 10112 |
34431 | 10113 for ac_func in grantpt |
29036 | 10114 do |
40056 | 10115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
46596 | 10116 echo "$as_me:10116: checking for $ac_func" >&5 |
40056 | 10117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10118 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10119 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10120 else | |
10121 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 10122 #line 10122 "configure" |
29036 | 10123 #include "confdefs.h" |
10124 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 10125 which can conflict with char $ac_func (); below. */ |
29036 | 10126 #include <assert.h> |
10127 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 10128 #ifdef __cplusplus |
10129 extern "C" | |
10130 #endif | |
29036 | 10131 /* We use char because int might match the return type of a gcc2 |
40056 | 10132 builtin and then its argument prototype would still apply. */ |
10133 char $ac_func (); | |
10134 char (*f) (); | |
10135 | |
10136 int | |
10137 main () | |
10138 { | |
29036 | 10139 /* The GNU C library defines this for functions which it implements |
10140 to always fail with ENOSYS. Some functions are actually named | |
10141 something starting with __ and the normal name is an alias. */ | |
10142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10143 choke me | |
10144 #else | |
40056 | 10145 f = $ac_func; |
10146 #endif | |
10147 | |
10148 ; | |
10149 return 0; | |
10150 } | |
10151 _ACEOF | |
10152 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 10153 if { (eval echo "$as_me:10153: \"$ac_link\"") >&5 |
10154 (eval $ac_link) 2>&5 | |
10155 ac_status=$? | |
10156 echo "$as_me:10156: \$? = $ac_status" >&5 | |
44493 | 10157 (exit $ac_status); } && |
10158 { ac_try='test -s conftest$ac_exeext' | |
46596 | 10159 { (eval echo "$as_me:10159: \"$ac_try\"") >&5 |
10160 (eval $ac_try) 2>&5 | |
10161 ac_status=$? | |
10162 echo "$as_me:10162: \$? = $ac_status" >&5 | |
40056 | 10163 (exit $ac_status); }; }; then |
10164 eval "$as_ac_var=yes" | |
10165 else | |
10166 echo "$as_me: failed program was:" >&5 | |
10167 cat conftest.$ac_ext >&5 | |
10168 eval "$as_ac_var=no" | |
10169 fi | |
10170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10171 fi | |
46596 | 10172 echo "$as_me:10172: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 10173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10174 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 10175 cat >>confdefs.h <<EOF |
40056 | 10176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 10177 EOF |
10178 | |
10179 fi | |
10180 done | |
29036 | 10181 |
10182 # PTY-related GNU extensions. | |
40056 | 10183 |
29036 | 10184 for ac_func in getpt |
10185 do | |
40056 | 10186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
46596 | 10187 echo "$as_me:10187: checking for $ac_func" >&5 |
40056 | 10188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10189 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10190 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10191 else | |
10192 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 10193 #line 10193 "configure" |
29036 | 10194 #include "confdefs.h" |
10195 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 10196 which can conflict with char $ac_func (); below. */ |
29036 | 10197 #include <assert.h> |
10198 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 10199 #ifdef __cplusplus |
10200 extern "C" | |
10201 #endif | |
29036 | 10202 /* We use char because int might match the return type of a gcc2 |
40056 | 10203 builtin and then its argument prototype would still apply. */ |
10204 char $ac_func (); | |
10205 char (*f) (); | |
10206 | |
10207 int | |
10208 main () | |
10209 { | |
29036 | 10210 /* The GNU C library defines this for functions which it implements |
10211 to always fail with ENOSYS. Some functions are actually named | |
10212 something starting with __ and the normal name is an alias. */ | |
10213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10214 choke me | |
10215 #else | |
40056 | 10216 f = $ac_func; |
10217 #endif | |
10218 | |
10219 ; | |
10220 return 0; | |
10221 } | |
10222 _ACEOF | |
10223 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 10224 if { (eval echo "$as_me:10224: \"$ac_link\"") >&5 |
10225 (eval $ac_link) 2>&5 | |
10226 ac_status=$? | |
10227 echo "$as_me:10227: \$? = $ac_status" >&5 | |
44493 | 10228 (exit $ac_status); } && |
10229 { ac_try='test -s conftest$ac_exeext' | |
46596 | 10230 { (eval echo "$as_me:10230: \"$ac_try\"") >&5 |
10231 (eval $ac_try) 2>&5 | |
10232 ac_status=$? | |
10233 echo "$as_me:10233: \$? = $ac_status" >&5 | |
40056 | 10234 (exit $ac_status); }; }; then |
10235 eval "$as_ac_var=yes" | |
10236 else | |
10237 echo "$as_me: failed program was:" >&5 | |
10238 cat conftest.$ac_ext >&5 | |
10239 eval "$as_ac_var=no" | |
10240 fi | |
10241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10242 fi | |
46596 | 10243 echo "$as_me:10243: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 10244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10245 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 10246 cat >>confdefs.h <<EOF |
40056 | 10247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 10248 EOF |
10249 | |
10250 fi | |
10251 done | |
29036 | 10252 |
25897 | 10253 # Check this now, so that we will NOT find the above functions in ncurses. |
10254 # That is because we have not set up to link ncurses in lib-src. | |
10255 # It's better to believe a function is not available | |
10256 # than to expect to find it in ncurses. | |
40056 | 10257 |
46596 | 10258 echo "$as_me:10258: checking for tparm in -lncurses" >&5 |
40056 | 10259 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 |
10260 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then | |
10261 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10262 else | |
10263 ac_check_lib_save_LIBS=$LIBS | |
25897 | 10264 LIBS="-lncurses $LIBS" |
40056 | 10265 cat >conftest.$ac_ext <<_ACEOF |
46596 | 10266 #line 10266 "configure" |
40056 | 10267 #include "confdefs.h" |
10268 | |
25897 | 10269 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10270 #ifdef __cplusplus |
10271 extern "C" | |
10272 #endif | |
25897 | 10273 /* We use char because int might match the return type of a gcc2 |
40056 | 10274 builtin and then its argument prototype would still apply. */ |
10275 char tparm (); | |
10276 int | |
10277 main () | |
10278 { | |
10279 tparm (); | |
10280 ; | |
10281 return 0; | |
10282 } | |
10283 _ACEOF | |
10284 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 10285 if { (eval echo "$as_me:10285: \"$ac_link\"") >&5 |
10286 (eval $ac_link) 2>&5 | |
10287 ac_status=$? | |
10288 echo "$as_me:10288: \$? = $ac_status" >&5 | |
44493 | 10289 (exit $ac_status); } && |
10290 { ac_try='test -s conftest$ac_exeext' | |
46596 | 10291 { (eval echo "$as_me:10291: \"$ac_try\"") >&5 |
10292 (eval $ac_try) 2>&5 | |
10293 ac_status=$? | |
10294 echo "$as_me:10294: \$? = $ac_status" >&5 | |
40056 | 10295 (exit $ac_status); }; }; then |
10296 ac_cv_lib_ncurses_tparm=yes | |
10297 else | |
10298 echo "$as_me: failed program was:" >&5 | |
10299 cat conftest.$ac_ext >&5 | |
10300 ac_cv_lib_ncurses_tparm=no | |
10301 fi | |
10302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10303 LIBS=$ac_check_lib_save_LIBS | |
10304 fi | |
46596 | 10305 echo "$as_me:10305: result: $ac_cv_lib_ncurses_tparm" >&5 |
40056 | 10306 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 |
10307 if test $ac_cv_lib_ncurses_tparm = yes; then | |
45226 | 10308 cat >>confdefs.h <<EOF |
40056 | 10309 #define HAVE_LIBNCURSES 1 |
45226 | 10310 EOF |
25897 | 10311 |
10312 LIBS="-lncurses $LIBS" | |
10313 | |
40056 | 10314 fi |
25897 | 10315 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10316 # 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
|
10317 if test "$with_hesiod" = yes ; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10318 # 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
|
10319 resolv=no |
46596 | 10320 echo "$as_me:10320: checking for 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_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
|
10322 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
|
10323 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
|
10324 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10325 cat >conftest.$ac_ext <<_ACEOF |
46596 | 10326 #line 10326 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10327 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10328 /* 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
|
10329 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
|
10330 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10331 /* 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
|
10332 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10333 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10334 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10335 /* 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
|
10336 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
|
10337 char res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10338 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10339 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10340 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10341 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10342 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10343 /* 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
|
10344 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
|
10345 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
|
10346 #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
|
10347 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10348 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10349 f = res_send; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10350 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10351 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10352 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10353 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10354 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10355 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10356 rm -f conftest.$ac_objext conftest$ac_exeext |
46596 | 10357 if { (eval echo "$as_me:10357: \"$ac_link\"") >&5 |
10358 (eval $ac_link) 2>&5 | |
10359 ac_status=$? | |
10360 echo "$as_me:10360: \$? = $ac_status" >&5 | |
44493 | 10361 (exit $ac_status); } && |
10362 { ac_try='test -s conftest$ac_exeext' | |
46596 | 10363 { (eval echo "$as_me:10363: \"$ac_try\"") >&5 |
10364 (eval $ac_try) 2>&5 | |
10365 ac_status=$? | |
10366 echo "$as_me:10366: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10367 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10368 ac_cv_func_res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10369 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10370 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
|
10371 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10372 ac_cv_func_res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10373 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10374 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
|
10375 fi |
46596 | 10376 echo "$as_me:10376: 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
|
10377 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
|
10378 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
|
10379 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10380 else |
46596 | 10381 echo "$as_me:10381: checking for __res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10382 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
|
10383 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
|
10384 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
|
10385 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10386 cat >conftest.$ac_ext <<_ACEOF |
46596 | 10387 #line 10387 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10388 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10389 /* 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
|
10390 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
|
10391 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10392 /* 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
|
10393 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10394 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10395 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10396 /* 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
|
10397 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
|
10398 char __res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10399 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10400 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10401 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10402 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10403 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10404 /* 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
|
10405 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
|
10406 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
|
10407 #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
|
10408 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10409 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10410 f = __res_send; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10411 #endif |
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 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10414 return 0; |
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 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10417 rm -f conftest.$ac_objext conftest$ac_exeext |
46596 | 10418 if { (eval echo "$as_me:10418: \"$ac_link\"") >&5 |
10419 (eval $ac_link) 2>&5 | |
10420 ac_status=$? | |
10421 echo "$as_me:10421: \$? = $ac_status" >&5 | |
44493 | 10422 (exit $ac_status); } && |
10423 { ac_try='test -s conftest$ac_exeext' | |
46596 | 10424 { (eval echo "$as_me:10424: \"$ac_try\"") >&5 |
10425 (eval $ac_try) 2>&5 | |
10426 ac_status=$? | |
10427 echo "$as_me:10427: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10428 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10429 ac_cv_func___res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10430 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10431 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
|
10432 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10433 ac_cv_func___res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10434 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10435 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
|
10436 fi |
46596 | 10437 echo "$as_me:10437: 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
|
10438 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
|
10439 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
|
10440 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10441 else |
46596 | 10442 echo "$as_me:10442: 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
|
10443 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
|
10444 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
|
10445 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
|
10446 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10447 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10448 LIBS="-lresolv $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10449 cat >conftest.$ac_ext <<_ACEOF |
46596 | 10450 #line 10450 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10451 #include "confdefs.h" |
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 /* 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
|
10454 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10455 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10456 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10457 /* 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
|
10458 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
|
10459 char res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10460 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10461 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10462 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10463 res_send (); |
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 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10466 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10467 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10468 rm -f conftest.$ac_objext conftest$ac_exeext |
46596 | 10469 if { (eval echo "$as_me:10469: \"$ac_link\"") >&5 |
10470 (eval $ac_link) 2>&5 | |
10471 ac_status=$? | |
10472 echo "$as_me:10472: \$? = $ac_status" >&5 | |
44493 | 10473 (exit $ac_status); } && |
10474 { ac_try='test -s conftest$ac_exeext' | |
46596 | 10475 { (eval echo "$as_me:10475: \"$ac_try\"") >&5 |
10476 (eval $ac_try) 2>&5 | |
10477 ac_status=$? | |
10478 echo "$as_me:10478: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10479 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10480 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
|
10481 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10482 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
|
10483 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10484 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
|
10485 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10486 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
|
10487 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10488 fi |
46596 | 10489 echo "$as_me:10489: 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
|
10490 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
|
10491 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
|
10492 resolv=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10493 else |
46596 | 10494 echo "$as_me:10494: 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
|
10495 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
|
10496 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
|
10497 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
|
10498 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10499 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10500 LIBS="-lresolv $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10501 cat >conftest.$ac_ext <<_ACEOF |
46596 | 10502 #line 10502 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10503 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10504 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10505 /* 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
|
10506 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10507 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10508 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10509 /* 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
|
10510 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
|
10511 char __res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10512 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10513 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10514 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10515 __res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10516 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10517 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10518 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10519 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10520 rm -f conftest.$ac_objext conftest$ac_exeext |
46596 | 10521 if { (eval echo "$as_me:10521: \"$ac_link\"") >&5 |
10522 (eval $ac_link) 2>&5 | |
10523 ac_status=$? | |
10524 echo "$as_me:10524: \$? = $ac_status" >&5 | |
44493 | 10525 (exit $ac_status); } && |
10526 { ac_try='test -s conftest$ac_exeext' | |
46596 | 10527 { (eval echo "$as_me:10527: \"$ac_try\"") >&5 |
10528 (eval $ac_try) 2>&5 | |
10529 ac_status=$? | |
10530 echo "$as_me:10530: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10531 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10532 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
|
10533 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10534 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
|
10535 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10536 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
|
10537 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10538 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
|
10539 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10540 fi |
46596 | 10541 echo "$as_me:10541: 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
|
10542 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
|
10543 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
|
10544 resolv=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10545 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10546 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10547 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10548 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10549 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10550 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10551 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10552 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10553 if test "$resolv" = yes ; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10554 RESOLVLIB=-lresolv |
44569 | 10555 |
45226 | 10556 cat >>confdefs.h <<\EOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10557 #define HAVE_LIBRESOLV 1 |
45226 | 10558 EOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10559 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10560 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10561 RESOLVLIB= |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10562 fi |
46596 | 10563 echo "$as_me:10563: checking for hes_getmailhost" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10564 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
|
10565 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
|
10566 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
|
10567 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10568 cat >conftest.$ac_ext <<_ACEOF |
46596 | 10569 #line 10569 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10570 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10571 /* 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
|
10572 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
|
10573 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10574 /* 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
|
10575 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10576 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10577 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10578 /* 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
|
10579 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
|
10580 char hes_getmailhost (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10581 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10582 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10583 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10584 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10585 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10586 /* 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
|
10587 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
|
10588 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
|
10589 #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
|
10590 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10591 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10592 f = hes_getmailhost; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10593 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10594 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10595 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10596 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10597 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10598 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10599 rm -f conftest.$ac_objext conftest$ac_exeext |
46596 | 10600 if { (eval echo "$as_me:10600: \"$ac_link\"") >&5 |
10601 (eval $ac_link) 2>&5 | |
10602 ac_status=$? | |
10603 echo "$as_me:10603: \$? = $ac_status" >&5 | |
44493 | 10604 (exit $ac_status); } && |
10605 { ac_try='test -s conftest$ac_exeext' | |
46596 | 10606 { (eval echo "$as_me:10606: \"$ac_try\"") >&5 |
10607 (eval $ac_try) 2>&5 | |
10608 ac_status=$? | |
10609 echo "$as_me:10609: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10610 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10611 ac_cv_func_hes_getmailhost=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10612 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10613 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
|
10614 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10615 ac_cv_func_hes_getmailhost=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10616 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10617 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
|
10618 fi |
46596 | 10619 echo "$as_me:10619: 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
|
10620 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
|
10621 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
|
10622 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10623 else |
46596 | 10624 echo "$as_me:10624: 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
|
10625 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
|
10626 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
|
10627 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
|
10628 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10629 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10630 LIBS="-lhesiod $RESOLVLIB $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10631 cat >conftest.$ac_ext <<_ACEOF |
46596 | 10632 #line 10632 "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10633 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10634 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10635 /* 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
|
10636 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10637 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10638 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10639 /* 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
|
10640 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
|
10641 char hes_getmailhost (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10642 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10643 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10644 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10645 hes_getmailhost (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10646 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10647 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10648 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10649 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10650 rm -f conftest.$ac_objext conftest$ac_exeext |
46596 | 10651 if { (eval echo "$as_me:10651: \"$ac_link\"") >&5 |
10652 (eval $ac_link) 2>&5 | |
10653 ac_status=$? | |
10654 echo "$as_me:10654: \$? = $ac_status" >&5 | |
44493 | 10655 (exit $ac_status); } && |
10656 { ac_try='test -s conftest$ac_exeext' | |
46596 | 10657 { (eval echo "$as_me:10657: \"$ac_try\"") >&5 |
10658 (eval $ac_try) 2>&5 | |
10659 ac_status=$? | |
10660 echo "$as_me:10660: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10661 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10662 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
|
10663 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10664 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
|
10665 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10666 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
|
10667 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10668 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
|
10669 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10670 fi |
46596 | 10671 echo "$as_me:10671: 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
|
10672 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
|
10673 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then |
44569 | 10674 |
45226 | 10675 cat >>confdefs.h <<\EOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10676 #define HAVE_LIBHESIOD 1 |
45226 | 10677 EOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10678 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10679 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10680 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10681 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10682 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10683 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10684 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10685 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10686 |
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 # 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
|
10688 if test "${with_kerberos+set}" = set; then |
40056 | 10689 |
46596 | 10690 echo "$as_me:10690: checking for com_err in -lcom_err" >&5 |
40056 | 10691 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 |
10692 if test "${ac_cv_lib_com_err_com_err+set}" = set; then | |
10693 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10694 else | |
10695 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
|
10696 LIBS="-lcom_err $LIBS" |
40056 | 10697 cat >conftest.$ac_ext <<_ACEOF |
46596 | 10698 #line 10698 "configure" |
40056 | 10699 #include "confdefs.h" |
10700 | |
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
|
10701 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10702 #ifdef __cplusplus |
10703 extern "C" | |
10704 #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
|
10705 /* We use char because int might match the return type of a gcc2 |
40056 | 10706 builtin and then its argument prototype would still apply. */ |
10707 char com_err (); | |
10708 int | |
10709 main () | |
10710 { | |
10711 com_err (); | |
10712 ; | |
10713 return 0; | |
10714 } | |
10715 _ACEOF | |
10716 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 10717 if { (eval echo "$as_me:10717: \"$ac_link\"") >&5 |
10718 (eval $ac_link) 2>&5 | |
10719 ac_status=$? | |
10720 echo "$as_me:10720: \$? = $ac_status" >&5 | |
44493 | 10721 (exit $ac_status); } && |
10722 { ac_try='test -s conftest$ac_exeext' | |
46596 | 10723 { (eval echo "$as_me:10723: \"$ac_try\"") >&5 |
10724 (eval $ac_try) 2>&5 | |
10725 ac_status=$? | |
10726 echo "$as_me:10726: \$? = $ac_status" >&5 | |
40056 | 10727 (exit $ac_status); }; }; then |
10728 ac_cv_lib_com_err_com_err=yes | |
10729 else | |
10730 echo "$as_me: failed program was:" >&5 | |
10731 cat conftest.$ac_ext >&5 | |
10732 ac_cv_lib_com_err_com_err=no | |
10733 fi | |
10734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10735 LIBS=$ac_check_lib_save_LIBS | |
10736 fi | |
46596 | 10737 echo "$as_me:10737: result: $ac_cv_lib_com_err_com_err" >&5 |
40056 | 10738 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 |
10739 if test $ac_cv_lib_com_err_com_err = yes; then | |
45226 | 10740 cat >>confdefs.h <<EOF |
40056 | 10741 #define HAVE_LIBCOM_ERR 1 |
45226 | 10742 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
|
10743 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10744 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
|
10745 |
40056 | 10746 fi |
10747 | |
46596 | 10748 echo "$as_me:10748: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
40056 | 10749 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 |
10750 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | |
10751 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10752 else | |
10753 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
|
10754 LIBS="-lk5crypto $LIBS" |
40056 | 10755 cat >conftest.$ac_ext <<_ACEOF |
46596 | 10756 #line 10756 "configure" |
40056 | 10757 #include "confdefs.h" |
10758 | |
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 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10760 #ifdef __cplusplus |
10761 extern "C" | |
10762 #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
|
10763 /* We use char because int might match the return type of a gcc2 |
40056 | 10764 builtin and then its argument prototype would still apply. */ |
10765 char mit_des_cbc_encrypt (); | |
10766 int | |
10767 main () | |
10768 { | |
10769 mit_des_cbc_encrypt (); | |
10770 ; | |
10771 return 0; | |
10772 } | |
10773 _ACEOF | |
10774 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 10775 if { (eval echo "$as_me:10775: \"$ac_link\"") >&5 |
10776 (eval $ac_link) 2>&5 | |
10777 ac_status=$? | |
10778 echo "$as_me:10778: \$? = $ac_status" >&5 | |
44493 | 10779 (exit $ac_status); } && |
10780 { ac_try='test -s conftest$ac_exeext' | |
46596 | 10781 { (eval echo "$as_me:10781: \"$ac_try\"") >&5 |
10782 (eval $ac_try) 2>&5 | |
10783 ac_status=$? | |
10784 echo "$as_me:10784: \$? = $ac_status" >&5 | |
40056 | 10785 (exit $ac_status); }; }; then |
10786 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | |
10787 else | |
10788 echo "$as_me: failed program was:" >&5 | |
10789 cat conftest.$ac_ext >&5 | |
10790 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no | |
10791 fi | |
10792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10793 LIBS=$ac_check_lib_save_LIBS | |
10794 fi | |
46596 | 10795 echo "$as_me:10795: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
40056 | 10796 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 |
10797 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | |
45226 | 10798 cat >>confdefs.h <<EOF |
40056 | 10799 #define HAVE_LIBK5CRYPTO 1 |
45226 | 10800 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
|
10801 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10802 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
|
10803 |
40056 | 10804 fi |
10805 | |
46596 | 10806 echo "$as_me:10806: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
40056 | 10807 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 |
10808 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | |
10809 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10810 else | |
10811 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
|
10812 LIBS="-lcrypto $LIBS" |
40056 | 10813 cat >conftest.$ac_ext <<_ACEOF |
46596 | 10814 #line 10814 "configure" |
40056 | 10815 #include "confdefs.h" |
10816 | |
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 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10818 #ifdef __cplusplus |
10819 extern "C" | |
10820 #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
|
10821 /* We use char because int might match the return type of a gcc2 |
40056 | 10822 builtin and then its argument prototype would still apply. */ |
10823 char mit_des_cbc_encrypt (); | |
10824 int | |
10825 main () | |
10826 { | |
10827 mit_des_cbc_encrypt (); | |
10828 ; | |
10829 return 0; | |
10830 } | |
10831 _ACEOF | |
10832 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 10833 if { (eval echo "$as_me:10833: \"$ac_link\"") >&5 |
10834 (eval $ac_link) 2>&5 | |
10835 ac_status=$? | |
10836 echo "$as_me:10836: \$? = $ac_status" >&5 | |
44493 | 10837 (exit $ac_status); } && |
10838 { ac_try='test -s conftest$ac_exeext' | |
46596 | 10839 { (eval echo "$as_me:10839: \"$ac_try\"") >&5 |
10840 (eval $ac_try) 2>&5 | |
10841 ac_status=$? | |
10842 echo "$as_me:10842: \$? = $ac_status" >&5 | |
40056 | 10843 (exit $ac_status); }; }; then |
10844 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | |
10845 else | |
10846 echo "$as_me: failed program was:" >&5 | |
10847 cat conftest.$ac_ext >&5 | |
10848 ac_cv_lib_crypto_mit_des_cbc_encrypt=no | |
10849 fi | |
10850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10851 LIBS=$ac_check_lib_save_LIBS | |
10852 fi | |
46596 | 10853 echo "$as_me:10853: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
40056 | 10854 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 |
10855 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | |
45226 | 10856 cat >>confdefs.h <<EOF |
40056 | 10857 #define HAVE_LIBCRYPTO 1 |
45226 | 10858 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
|
10859 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10860 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
|
10861 |
40056 | 10862 fi |
10863 | |
46596 | 10864 echo "$as_me:10864: checking for krb5_init_context in -lkrb5" >&5 |
40056 | 10865 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 |
10866 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | |
10867 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10868 else | |
10869 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
|
10870 LIBS="-lkrb5 $LIBS" |
40056 | 10871 cat >conftest.$ac_ext <<_ACEOF |
46596 | 10872 #line 10872 "configure" |
40056 | 10873 #include "confdefs.h" |
10874 | |
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
|
10875 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10876 #ifdef __cplusplus |
10877 extern "C" | |
10878 #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
|
10879 /* We use char because int might match the return type of a gcc2 |
40056 | 10880 builtin and then its argument prototype would still apply. */ |
10881 char krb5_init_context (); | |
10882 int | |
10883 main () | |
10884 { | |
10885 krb5_init_context (); | |
10886 ; | |
10887 return 0; | |
10888 } | |
10889 _ACEOF | |
10890 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 10891 if { (eval echo "$as_me:10891: \"$ac_link\"") >&5 |
10892 (eval $ac_link) 2>&5 | |
10893 ac_status=$? | |
10894 echo "$as_me:10894: \$? = $ac_status" >&5 | |
44493 | 10895 (exit $ac_status); } && |
10896 { ac_try='test -s conftest$ac_exeext' | |
46596 | 10897 { (eval echo "$as_me:10897: \"$ac_try\"") >&5 |
10898 (eval $ac_try) 2>&5 | |
10899 ac_status=$? | |
10900 echo "$as_me:10900: \$? = $ac_status" >&5 | |
40056 | 10901 (exit $ac_status); }; }; then |
10902 ac_cv_lib_krb5_krb5_init_context=yes | |
10903 else | |
10904 echo "$as_me: failed program was:" >&5 | |
10905 cat conftest.$ac_ext >&5 | |
10906 ac_cv_lib_krb5_krb5_init_context=no | |
10907 fi | |
10908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10909 LIBS=$ac_check_lib_save_LIBS | |
10910 fi | |
46596 | 10911 echo "$as_me:10911: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
40056 | 10912 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 |
10913 if test $ac_cv_lib_krb5_krb5_init_context = yes; then | |
45226 | 10914 cat >>confdefs.h <<EOF |
40056 | 10915 #define HAVE_LIBKRB5 1 |
45226 | 10916 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
|
10917 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10918 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
|
10919 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10920 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
|
10921 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10922 if test "${with_kerberos5+set}" != set; then |
40056 | 10923 |
46596 | 10924 echo "$as_me:10924: checking for des_cbc_encrypt in -ldes425" >&5 |
40056 | 10925 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 |
10926 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | |
10927 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10928 else | |
10929 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
|
10930 LIBS="-ldes425 $LIBS" |
40056 | 10931 cat >conftest.$ac_ext <<_ACEOF |
46596 | 10932 #line 10932 "configure" |
40056 | 10933 #include "confdefs.h" |
10934 | |
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 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10936 #ifdef __cplusplus |
10937 extern "C" | |
10938 #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
|
10939 /* We use char because int might match the return type of a gcc2 |
40056 | 10940 builtin and then its argument prototype would still apply. */ |
10941 char des_cbc_encrypt (); | |
10942 int | |
10943 main () | |
10944 { | |
10945 des_cbc_encrypt (); | |
10946 ; | |
10947 return 0; | |
10948 } | |
10949 _ACEOF | |
10950 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 10951 if { (eval echo "$as_me:10951: \"$ac_link\"") >&5 |
10952 (eval $ac_link) 2>&5 | |
10953 ac_status=$? | |
10954 echo "$as_me:10954: \$? = $ac_status" >&5 | |
44493 | 10955 (exit $ac_status); } && |
10956 { ac_try='test -s conftest$ac_exeext' | |
46596 | 10957 { (eval echo "$as_me:10957: \"$ac_try\"") >&5 |
10958 (eval $ac_try) 2>&5 | |
10959 ac_status=$? | |
10960 echo "$as_me:10960: \$? = $ac_status" >&5 | |
40056 | 10961 (exit $ac_status); }; }; then |
10962 ac_cv_lib_des425_des_cbc_encrypt=yes | |
10963 else | |
10964 echo "$as_me: failed program was:" >&5 | |
10965 cat conftest.$ac_ext >&5 | |
10966 ac_cv_lib_des425_des_cbc_encrypt=no | |
10967 fi | |
10968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10969 LIBS=$ac_check_lib_save_LIBS | |
10970 fi | |
46596 | 10971 echo "$as_me:10971: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
40056 | 10972 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 |
10973 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | |
45226 | 10974 cat >>confdefs.h <<EOF |
40056 | 10975 #define HAVE_LIBDES425 1 |
45226 | 10976 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
|
10977 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10978 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
|
10979 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10980 else |
40056 | 10981 |
46596 | 10982 echo "$as_me:10982: checking for des_cbc_encrypt in -ldes" >&5 |
40056 | 10983 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 |
10984 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | |
10985 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10986 else | |
10987 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
|
10988 LIBS="-ldes $LIBS" |
40056 | 10989 cat >conftest.$ac_ext <<_ACEOF |
46596 | 10990 #line 10990 "configure" |
40056 | 10991 #include "confdefs.h" |
10992 | |
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
|
10993 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10994 #ifdef __cplusplus |
10995 extern "C" | |
10996 #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
|
10997 /* We use char because int might match the return type of a gcc2 |
40056 | 10998 builtin and then its argument prototype would still apply. */ |
10999 char des_cbc_encrypt (); | |
11000 int | |
11001 main () | |
11002 { | |
11003 des_cbc_encrypt (); | |
11004 ; | |
11005 return 0; | |
11006 } | |
11007 _ACEOF | |
11008 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 11009 if { (eval echo "$as_me:11009: \"$ac_link\"") >&5 |
11010 (eval $ac_link) 2>&5 | |
11011 ac_status=$? | |
11012 echo "$as_me:11012: \$? = $ac_status" >&5 | |
44493 | 11013 (exit $ac_status); } && |
11014 { ac_try='test -s conftest$ac_exeext' | |
46596 | 11015 { (eval echo "$as_me:11015: \"$ac_try\"") >&5 |
11016 (eval $ac_try) 2>&5 | |
11017 ac_status=$? | |
11018 echo "$as_me:11018: \$? = $ac_status" >&5 | |
40056 | 11019 (exit $ac_status); }; }; then |
11020 ac_cv_lib_des_des_cbc_encrypt=yes | |
11021 else | |
11022 echo "$as_me: failed program was:" >&5 | |
11023 cat conftest.$ac_ext >&5 | |
11024 ac_cv_lib_des_des_cbc_encrypt=no | |
11025 fi | |
11026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11027 LIBS=$ac_check_lib_save_LIBS | |
11028 fi | |
46596 | 11029 echo "$as_me:11029: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
40056 | 11030 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 |
11031 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | |
45226 | 11032 cat >>confdefs.h <<EOF |
40056 | 11033 #define HAVE_LIBDES 1 |
45226 | 11034 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
|
11035 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11036 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
|
11037 |
40056 | 11038 fi |
11039 | |
11040 fi | |
11041 | |
46596 | 11042 echo "$as_me:11042: checking for krb_get_cred in -lkrb4" >&5 |
40056 | 11043 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 |
11044 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | |
11045 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11046 else | |
11047 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
|
11048 LIBS="-lkrb4 $LIBS" |
40056 | 11049 cat >conftest.$ac_ext <<_ACEOF |
46596 | 11050 #line 11050 "configure" |
40056 | 11051 #include "confdefs.h" |
11052 | |
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
|
11053 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 11054 #ifdef __cplusplus |
11055 extern "C" | |
11056 #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
|
11057 /* We use char because int might match the return type of a gcc2 |
40056 | 11058 builtin and then its argument prototype would still apply. */ |
11059 char krb_get_cred (); | |
11060 int | |
11061 main () | |
11062 { | |
11063 krb_get_cred (); | |
11064 ; | |
11065 return 0; | |
11066 } | |
11067 _ACEOF | |
11068 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 11069 if { (eval echo "$as_me:11069: \"$ac_link\"") >&5 |
11070 (eval $ac_link) 2>&5 | |
11071 ac_status=$? | |
11072 echo "$as_me:11072: \$? = $ac_status" >&5 | |
44493 | 11073 (exit $ac_status); } && |
11074 { ac_try='test -s conftest$ac_exeext' | |
46596 | 11075 { (eval echo "$as_me:11075: \"$ac_try\"") >&5 |
11076 (eval $ac_try) 2>&5 | |
11077 ac_status=$? | |
11078 echo "$as_me:11078: \$? = $ac_status" >&5 | |
40056 | 11079 (exit $ac_status); }; }; then |
11080 ac_cv_lib_krb4_krb_get_cred=yes | |
11081 else | |
11082 echo "$as_me: failed program was:" >&5 | |
11083 cat conftest.$ac_ext >&5 | |
11084 ac_cv_lib_krb4_krb_get_cred=no | |
11085 fi | |
11086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11087 LIBS=$ac_check_lib_save_LIBS | |
11088 fi | |
46596 | 11089 echo "$as_me:11089: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
40056 | 11090 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 |
11091 if test $ac_cv_lib_krb4_krb_get_cred = yes; then | |
45226 | 11092 cat >>confdefs.h <<EOF |
40056 | 11093 #define HAVE_LIBKRB4 1 |
45226 | 11094 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
|
11095 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11096 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
|
11097 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11098 else |
40056 | 11099 |
46596 | 11100 echo "$as_me:11100: checking for krb_get_cred in -lkrb" >&5 |
40056 | 11101 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 |
11102 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | |
11103 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11104 else | |
11105 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
|
11106 LIBS="-lkrb $LIBS" |
40056 | 11107 cat >conftest.$ac_ext <<_ACEOF |
46596 | 11108 #line 11108 "configure" |
40056 | 11109 #include "confdefs.h" |
11110 | |
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
|
11111 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 11112 #ifdef __cplusplus |
11113 extern "C" | |
11114 #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
|
11115 /* We use char because int might match the return type of a gcc2 |
40056 | 11116 builtin and then its argument prototype would still apply. */ |
11117 char krb_get_cred (); | |
11118 int | |
11119 main () | |
11120 { | |
11121 krb_get_cred (); | |
11122 ; | |
11123 return 0; | |
11124 } | |
11125 _ACEOF | |
11126 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 11127 if { (eval echo "$as_me:11127: \"$ac_link\"") >&5 |
11128 (eval $ac_link) 2>&5 | |
11129 ac_status=$? | |
11130 echo "$as_me:11130: \$? = $ac_status" >&5 | |
44493 | 11131 (exit $ac_status); } && |
11132 { ac_try='test -s conftest$ac_exeext' | |
46596 | 11133 { (eval echo "$as_me:11133: \"$ac_try\"") >&5 |
11134 (eval $ac_try) 2>&5 | |
11135 ac_status=$? | |
11136 echo "$as_me:11136: \$? = $ac_status" >&5 | |
40056 | 11137 (exit $ac_status); }; }; then |
11138 ac_cv_lib_krb_krb_get_cred=yes | |
11139 else | |
11140 echo "$as_me: failed program was:" >&5 | |
11141 cat conftest.$ac_ext >&5 | |
11142 ac_cv_lib_krb_krb_get_cred=no | |
11143 fi | |
11144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11145 LIBS=$ac_check_lib_save_LIBS | |
11146 fi | |
46596 | 11147 echo "$as_me:11147: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
40056 | 11148 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 |
11149 if test $ac_cv_lib_krb_krb_get_cred = yes; then | |
45226 | 11150 cat >>confdefs.h <<EOF |
40056 | 11151 #define HAVE_LIBKRB 1 |
45226 | 11152 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
|
11153 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11154 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
|
11155 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11156 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11157 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11158 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
|
11159 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11160 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
|
11161 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11162 if test "${with_kerberos5+set}" = set; then |
40056 | 11163 |
11164 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
|
11165 do |
40056 | 11166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
46596 | 11167 echo "$as_me:11167: checking for $ac_header" >&5 |
40056 | 11168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11169 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11170 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 11171 else |
11172 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 11173 #line 11173 "configure" |
40056 | 11174 #include "confdefs.h" |
11175 #include <$ac_header> | |
11176 _ACEOF | |
46596 | 11177 if { (eval echo "$as_me:11177: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11179 ac_status=$? | |
11180 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11181 rm -f conftest.er1 | |
11182 cat conftest.err >&5 | |
46596 | 11183 echo "$as_me:11183: \$? = $ac_status" >&5 |
40056 | 11184 (exit $ac_status); } >/dev/null; then |
11185 if test -s conftest.err; then | |
11186 ac_cpp_err=$ac_c_preproc_warn_flag | |
11187 else | |
11188 ac_cpp_err= | |
11189 fi | |
11190 else | |
11191 ac_cpp_err=yes | |
11192 fi | |
11193 if test -z "$ac_cpp_err"; then | |
45226 | 11194 eval "$as_ac_Header=yes" |
40056 | 11195 else |
11196 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
|
11197 cat conftest.$ac_ext >&5 |
45226 | 11198 eval "$as_ac_Header=no" |
40056 | 11199 fi |
11200 rm -f conftest.err conftest.$ac_ext | |
45226 | 11201 fi |
46596 | 11202 echo "$as_me:11202: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11204 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 11205 cat >>confdefs.h <<EOF |
40056 | 11206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 11207 EOF |
11208 | |
11209 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
|
11210 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
|
11211 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11212 else |
40056 | 11213 |
11214 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
|
11215 do |
40056 | 11216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
46596 | 11217 echo "$as_me:11217: checking for $ac_header" >&5 |
40056 | 11218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11219 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11220 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 11221 else |
11222 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 11223 #line 11223 "configure" |
40056 | 11224 #include "confdefs.h" |
11225 #include <$ac_header> | |
11226 _ACEOF | |
46596 | 11227 if { (eval echo "$as_me:11227: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11229 ac_status=$? | |
11230 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11231 rm -f conftest.er1 | |
11232 cat conftest.err >&5 | |
46596 | 11233 echo "$as_me:11233: \$? = $ac_status" >&5 |
40056 | 11234 (exit $ac_status); } >/dev/null; then |
11235 if test -s conftest.err; then | |
11236 ac_cpp_err=$ac_c_preproc_warn_flag | |
11237 else | |
11238 ac_cpp_err= | |
11239 fi | |
11240 else | |
11241 ac_cpp_err=yes | |
11242 fi | |
11243 if test -z "$ac_cpp_err"; then | |
45226 | 11244 eval "$as_ac_Header=yes" |
40056 | 11245 else |
11246 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
|
11247 cat conftest.$ac_ext >&5 |
45226 | 11248 eval "$as_ac_Header=no" |
40056 | 11249 fi |
11250 rm -f conftest.err conftest.$ac_ext | |
45226 | 11251 fi |
46596 | 11252 echo "$as_me:11252: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11254 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 11255 cat >>confdefs.h <<EOF |
40056 | 11256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 11257 EOF |
40056 | 11258 |
11259 else | |
11260 | |
11261 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
|
11262 do |
40056 | 11263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
46596 | 11264 echo "$as_me:11264: checking for $ac_header" >&5 |
40056 | 11265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11266 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11267 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 11268 else |
11269 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 11270 #line 11270 "configure" |
40056 | 11271 #include "confdefs.h" |
11272 #include <$ac_header> | |
11273 _ACEOF | |
46596 | 11274 if { (eval echo "$as_me:11274: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11276 ac_status=$? | |
11277 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11278 rm -f conftest.er1 | |
11279 cat conftest.err >&5 | |
46596 | 11280 echo "$as_me:11280: \$? = $ac_status" >&5 |
40056 | 11281 (exit $ac_status); } >/dev/null; then |
11282 if test -s conftest.err; then | |
11283 ac_cpp_err=$ac_c_preproc_warn_flag | |
11284 else | |
11285 ac_cpp_err= | |
11286 fi | |
11287 else | |
11288 ac_cpp_err=yes | |
11289 fi | |
11290 if test -z "$ac_cpp_err"; then | |
45226 | 11291 eval "$as_ac_Header=yes" |
40056 | 11292 else |
11293 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
|
11294 cat conftest.$ac_ext >&5 |
45226 | 11295 eval "$as_ac_Header=no" |
40056 | 11296 fi |
11297 rm -f conftest.err conftest.$ac_ext | |
45226 | 11298 fi |
46596 | 11299 echo "$as_me:11299: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11301 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 11302 cat >>confdefs.h <<EOF |
40056 | 11303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 11304 EOF |
40056 | 11305 |
11306 else | |
11307 | |
11308 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
|
11309 do |
40056 | 11310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
46596 | 11311 echo "$as_me:11311: checking for $ac_header" >&5 |
40056 | 11312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11313 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11314 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 11315 else |
11316 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 11317 #line 11317 "configure" |
40056 | 11318 #include "confdefs.h" |
11319 #include <$ac_header> | |
11320 _ACEOF | |
46596 | 11321 if { (eval echo "$as_me:11321: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11323 ac_status=$? | |
11324 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11325 rm -f conftest.er1 | |
11326 cat conftest.err >&5 | |
46596 | 11327 echo "$as_me:11327: \$? = $ac_status" >&5 |
45226 | 11328 (exit $ac_status); } >/dev/null; then |
11329 if test -s conftest.err; then | |
11330 ac_cpp_err=$ac_c_preproc_warn_flag | |
11331 else | |
11332 ac_cpp_err= | |
11333 fi | |
11334 else | |
11335 ac_cpp_err=yes | |
11336 fi | |
11337 if test -z "$ac_cpp_err"; then | |
11338 eval "$as_ac_Header=yes" | |
11339 else | |
11340 echo "$as_me: failed program was:" >&5 | |
11341 cat conftest.$ac_ext >&5 | |
11342 eval "$as_ac_Header=no" | |
11343 fi | |
11344 rm -f conftest.err conftest.$ac_ext | |
11345 fi | |
46596 | 11346 echo "$as_me:11346: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
45226 | 11347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11348 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11349 cat >>confdefs.h <<EOF | |
11350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11351 EOF | |
11352 | |
11353 fi | |
11354 done | |
11355 | |
11356 fi | |
11357 done | |
11358 | |
11359 fi | |
11360 done | |
11361 | |
11362 for ac_header in krb.h | |
11363 do | |
11364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
46596 | 11365 echo "$as_me:11365: checking for $ac_header" >&5 |
45226 | 11366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11367 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11368 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11369 else | |
11370 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 11371 #line 11371 "configure" |
45226 | 11372 #include "confdefs.h" |
11373 #include <$ac_header> | |
11374 _ACEOF | |
46596 | 11375 if { (eval echo "$as_me:11375: \"$ac_cpp conftest.$ac_ext\"") >&5 |
45226 | 11376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11377 ac_status=$? | |
11378 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11379 rm -f conftest.er1 | |
11380 cat conftest.err >&5 | |
46596 | 11381 echo "$as_me:11381: \$? = $ac_status" >&5 |
40056 | 11382 (exit $ac_status); } >/dev/null; then |
11383 if test -s conftest.err; then | |
11384 ac_cpp_err=$ac_c_preproc_warn_flag | |
11385 else | |
11386 ac_cpp_err= | |
11387 fi | |
11388 else | |
11389 ac_cpp_err=yes | |
11390 fi | |
11391 if test -z "$ac_cpp_err"; then | |
45226 | 11392 eval "$as_ac_Header=yes" |
40056 | 11393 else |
11394 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
|
11395 cat conftest.$ac_ext >&5 |
45226 | 11396 eval "$as_ac_Header=no" |
40056 | 11397 fi |
11398 rm -f conftest.err conftest.$ac_ext | |
45226 | 11399 fi |
46596 | 11400 echo "$as_me:11400: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
45226 | 11401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11402 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11403 cat >>confdefs.h <<EOF | |
11404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11405 EOF | |
11406 | |
11407 else | |
11408 | |
11409 for ac_header in kerberosIV/krb.h | |
11410 do | |
11411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
46596 | 11412 echo "$as_me:11412: checking for $ac_header" >&5 |
44493 | 11413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11414 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11415 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11416 else | |
45226 | 11417 cat >conftest.$ac_ext <<_ACEOF |
46596 | 11418 #line 11418 "configure" |
40056 | 11419 #include "confdefs.h" |
11420 #include <$ac_header> | |
11421 _ACEOF | |
46596 | 11422 if { (eval echo "$as_me:11422: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11424 ac_status=$? | |
11425 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11426 rm -f conftest.er1 | |
11427 cat conftest.err >&5 | |
46596 | 11428 echo "$as_me:11428: \$? = $ac_status" >&5 |
40056 | 11429 (exit $ac_status); } >/dev/null; then |
11430 if test -s conftest.err; then | |
11431 ac_cpp_err=$ac_c_preproc_warn_flag | |
11432 else | |
11433 ac_cpp_err= | |
11434 fi | |
11435 else | |
11436 ac_cpp_err=yes | |
11437 fi | |
11438 if test -z "$ac_cpp_err"; then | |
45226 | 11439 eval "$as_ac_Header=yes" |
40056 | 11440 else |
11441 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
|
11442 cat conftest.$ac_ext >&5 |
45226 | 11443 eval "$as_ac_Header=no" |
40056 | 11444 fi |
11445 rm -f conftest.err conftest.$ac_ext | |
45226 | 11446 fi |
46596 | 11447 echo "$as_me:11447: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11449 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 11450 cat >>confdefs.h <<EOF |
40056 | 11451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 11452 EOF |
11453 | |
11454 else | |
11455 | |
11456 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
|
11457 do |
40056 | 11458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
46596 | 11459 echo "$as_me:11459: checking for $ac_header" >&5 |
40056 | 11460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11461 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11462 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 11463 else |
11464 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 11465 #line 11465 "configure" |
40056 | 11466 #include "confdefs.h" |
11467 #include <$ac_header> | |
11468 _ACEOF | |
46596 | 11469 if { (eval echo "$as_me:11469: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11471 ac_status=$? | |
11472 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11473 rm -f conftest.er1 | |
11474 cat conftest.err >&5 | |
46596 | 11475 echo "$as_me:11475: \$? = $ac_status" >&5 |
40056 | 11476 (exit $ac_status); } >/dev/null; then |
11477 if test -s conftest.err; then | |
11478 ac_cpp_err=$ac_c_preproc_warn_flag | |
11479 else | |
11480 ac_cpp_err= | |
11481 fi | |
11482 else | |
11483 ac_cpp_err=yes | |
11484 fi | |
11485 if test -z "$ac_cpp_err"; then | |
45226 | 11486 eval "$as_ac_Header=yes" |
40056 | 11487 else |
11488 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
|
11489 cat conftest.$ac_ext >&5 |
45226 | 11490 eval "$as_ac_Header=no" |
40056 | 11491 fi |
11492 rm -f conftest.err conftest.$ac_ext | |
45226 | 11493 fi |
46596 | 11494 echo "$as_me:11494: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 11495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11496 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 11497 cat >>confdefs.h <<EOF |
40056 | 11498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 11499 EOF |
11500 | |
11501 fi | |
11502 done | |
11503 | |
11504 fi | |
11505 done | |
11506 | |
11507 fi | |
11508 done | |
11509 | |
11510 fi | |
11511 | |
11512 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
|
11513 do |
40056 | 11514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
46596 | 11515 echo "$as_me:11515: checking for $ac_header" >&5 |
40056 | 11516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11517 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11518 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 11519 else |
11520 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 11521 #line 11521 "configure" |
40056 | 11522 #include "confdefs.h" |
11523 #include <$ac_header> | |
11524 _ACEOF | |
46596 | 11525 if { (eval echo "$as_me:11525: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11527 ac_status=$? | |
11528 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11529 rm -f conftest.er1 | |
11530 cat conftest.err >&5 | |
46596 | 11531 echo "$as_me:11531: \$? = $ac_status" >&5 |
40056 | 11532 (exit $ac_status); } >/dev/null; then |
11533 if test -s conftest.err; then | |
11534 ac_cpp_err=$ac_c_preproc_warn_flag | |
11535 else | |
11536 ac_cpp_err= | |
11537 fi | |
11538 else | |
11539 ac_cpp_err=yes | |
11540 fi | |
11541 if test -z "$ac_cpp_err"; then | |
45226 | 11542 eval "$as_ac_Header=yes" |
40056 | 11543 else |
11544 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
|
11545 cat conftest.$ac_ext >&5 |
45226 | 11546 eval "$as_ac_Header=no" |
40056 | 11547 fi |
11548 rm -f conftest.err conftest.$ac_ext | |
45226 | 11549 fi |
46596 | 11550 echo "$as_me:11550: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
44493 | 11551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11552 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 11553 cat >>confdefs.h <<EOF |
44493 | 11554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 11555 EOF |
11556 | |
11557 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
|
11558 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
|
11559 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11560 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
|
11561 |
25897 | 11562 # Solaris requires -lintl if you want strerror (which calls dgettext) |
11563 # to return localized messages. | |
40056 | 11564 |
46596 | 11565 echo "$as_me:11565: checking for dgettext in -lintl" >&5 |
40056 | 11566 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
11567 if test "${ac_cv_lib_intl_dgettext+set}" = set; then | |
11568 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11569 else | |
11570 ac_check_lib_save_LIBS=$LIBS | |
25897 | 11571 LIBS="-lintl $LIBS" |
40056 | 11572 cat >conftest.$ac_ext <<_ACEOF |
46596 | 11573 #line 11573 "configure" |
40056 | 11574 #include "confdefs.h" |
11575 | |
25897 | 11576 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 11577 #ifdef __cplusplus |
11578 extern "C" | |
11579 #endif | |
25897 | 11580 /* We use char because int might match the return type of a gcc2 |
40056 | 11581 builtin and then its argument prototype would still apply. */ |
11582 char dgettext (); | |
11583 int | |
11584 main () | |
11585 { | |
11586 dgettext (); | |
11587 ; | |
11588 return 0; | |
11589 } | |
11590 _ACEOF | |
11591 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 11592 if { (eval echo "$as_me:11592: \"$ac_link\"") >&5 |
11593 (eval $ac_link) 2>&5 | |
11594 ac_status=$? | |
11595 echo "$as_me:11595: \$? = $ac_status" >&5 | |
44493 | 11596 (exit $ac_status); } && |
11597 { ac_try='test -s conftest$ac_exeext' | |
46596 | 11598 { (eval echo "$as_me:11598: \"$ac_try\"") >&5 |
11599 (eval $ac_try) 2>&5 | |
11600 ac_status=$? | |
11601 echo "$as_me:11601: \$? = $ac_status" >&5 | |
40056 | 11602 (exit $ac_status); }; }; then |
11603 ac_cv_lib_intl_dgettext=yes | |
11604 else | |
11605 echo "$as_me: failed program was:" >&5 | |
11606 cat conftest.$ac_ext >&5 | |
11607 ac_cv_lib_intl_dgettext=no | |
11608 fi | |
11609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11610 LIBS=$ac_check_lib_save_LIBS | |
11611 fi | |
46596 | 11612 echo "$as_me:11612: result: $ac_cv_lib_intl_dgettext" >&5 |
40056 | 11613 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
11614 if test $ac_cv_lib_intl_dgettext = yes; then | |
45226 | 11615 cat >>confdefs.h <<EOF |
40056 | 11616 #define HAVE_LIBINTL 1 |
45226 | 11617 EOF |
25897 | 11618 |
11619 LIBS="-lintl $LIBS" | |
11620 | |
40056 | 11621 fi |
11622 | |
46596 | 11623 echo "$as_me:11623: checking whether localtime caches TZ" >&5 |
40056 | 11624 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 |
11625 if test "${emacs_cv_localtime_cache+set}" = set; then | |
11626 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 11627 else |
11628 if test x$ac_cv_func_tzset = xyes; then | |
11629 if test "$cross_compiling" = yes; then | |
11630 # If we have tzset, assume the worst when cross-compiling. | |
11631 emacs_cv_localtime_cache=yes | |
11632 else | |
40056 | 11633 cat >conftest.$ac_ext <<_ACEOF |
46596 | 11634 #line 11634 "configure" |
25897 | 11635 #include "confdefs.h" |
11636 #include <time.h> | |
11637 extern char **environ; | |
11638 unset_TZ () | |
11639 { | |
11640 char **from, **to; | |
11641 for (to = from = environ; (*to = *from); from++) | |
11642 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
11643 to++; | |
11644 } | |
11645 char TZ_GMT0[] = "TZ=GMT0"; | |
11646 char TZ_PST8[] = "TZ=PST8"; | |
11647 main() | |
11648 { | |
11649 time_t now = time ((time_t *) 0); | |
11650 int hour_GMT0, hour_unset; | |
11651 if (putenv (TZ_GMT0) != 0) | |
11652 exit (1); | |
11653 hour_GMT0 = localtime (&now)->tm_hour; | |
11654 unset_TZ (); | |
11655 hour_unset = localtime (&now)->tm_hour; | |
11656 if (putenv (TZ_PST8) != 0) | |
11657 exit (1); | |
11658 if (localtime (&now)->tm_hour == hour_GMT0) | |
11659 exit (1); | |
11660 unset_TZ (); | |
11661 if (localtime (&now)->tm_hour != hour_unset) | |
11662 exit (1); | |
11663 exit (0); | |
11664 } | |
40056 | 11665 _ACEOF |
11666 rm -f conftest$ac_exeext | |
46596 | 11667 if { (eval echo "$as_me:11667: \"$ac_link\"") >&5 |
11668 (eval $ac_link) 2>&5 | |
11669 ac_status=$? | |
11670 echo "$as_me:11670: \$? = $ac_status" >&5 | |
45668 | 11671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
46596 | 11672 { (eval echo "$as_me:11672: \"$ac_try\"") >&5 |
11673 (eval $ac_try) 2>&5 | |
11674 ac_status=$? | |
11675 echo "$as_me:11675: \$? = $ac_status" >&5 | |
40056 | 11676 (exit $ac_status); }; }; then |
25897 | 11677 emacs_cv_localtime_cache=no |
11678 else | |
40056 | 11679 echo "$as_me: program exited with status $ac_status" >&5 |
11680 echo "$as_me: failed program was:" >&5 | |
11681 cat conftest.$ac_ext >&5 | |
11682 emacs_cv_localtime_cache=yes | |
11683 fi | |
11684 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11685 fi | |
25897 | 11686 else |
11687 # If we lack tzset, report that localtime does not cache TZ, | |
11688 # since we can't invalidate the cache if we don't have tzset. | |
11689 emacs_cv_localtime_cache=no | |
11690 fi | |
11691 fi | |
46596 | 11692 echo "$as_me:11692: result: $emacs_cv_localtime_cache" >&5 |
40056 | 11693 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 |
25897 | 11694 if test $emacs_cv_localtime_cache = yes; then |
44569 | 11695 |
45226 | 11696 cat >>confdefs.h <<\EOF |
25897 | 11697 #define LOCALTIME_CACHE 1 |
45226 | 11698 EOF |
25897 | 11699 |
11700 fi | |
11701 | |
11702 if test "x$HAVE_TIMEVAL" = xyes; then | |
40056 | 11703 |
11704 for ac_func in gettimeofday | |
29906 | 11705 do |
40056 | 11706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
46596 | 11707 echo "$as_me:11707: checking for $ac_func" >&5 |
40056 | 11708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
11709 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11710 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11711 else | |
11712 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 11713 #line 11713 "configure" |
29906 | 11714 #include "confdefs.h" |
11715 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 11716 which can conflict with char $ac_func (); below. */ |
29906 | 11717 #include <assert.h> |
11718 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 11719 #ifdef __cplusplus |
11720 extern "C" | |
11721 #endif | |
29906 | 11722 /* We use char because int might match the return type of a gcc2 |
40056 | 11723 builtin and then its argument prototype would still apply. */ |
11724 char $ac_func (); | |
11725 char (*f) (); | |
11726 | |
11727 int | |
11728 main () | |
11729 { | |
29906 | 11730 /* The GNU C library defines this for functions which it implements |
11731 to always fail with ENOSYS. Some functions are actually named | |
11732 something starting with __ and the normal name is an alias. */ | |
11733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11734 choke me | |
11735 #else | |
40056 | 11736 f = $ac_func; |
11737 #endif | |
11738 | |
11739 ; | |
11740 return 0; | |
11741 } | |
11742 _ACEOF | |
11743 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 11744 if { (eval echo "$as_me:11744: \"$ac_link\"") >&5 |
11745 (eval $ac_link) 2>&5 | |
11746 ac_status=$? | |
11747 echo "$as_me:11747: \$? = $ac_status" >&5 | |
44493 | 11748 (exit $ac_status); } && |
11749 { ac_try='test -s conftest$ac_exeext' | |
46596 | 11750 { (eval echo "$as_me:11750: \"$ac_try\"") >&5 |
11751 (eval $ac_try) 2>&5 | |
11752 ac_status=$? | |
11753 echo "$as_me:11753: \$? = $ac_status" >&5 | |
40056 | 11754 (exit $ac_status); }; }; then |
11755 eval "$as_ac_var=yes" | |
11756 else | |
11757 echo "$as_me: failed program was:" >&5 | |
11758 cat conftest.$ac_ext >&5 | |
11759 eval "$as_ac_var=no" | |
11760 fi | |
11761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11762 fi | |
46596 | 11763 echo "$as_me:11763: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 11764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
11765 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 11766 cat >>confdefs.h <<EOF |
40056 | 11767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 11768 EOF |
44493 | 11769 |
11770 fi | |
11771 done | |
11772 | |
44569 | 11773 if test $ac_cv_func_gettimeofday = yes; then |
46596 | 11774 echo "$as_me:11774: checking whether gettimeofday can accept two arguments" >&5 |
40056 | 11775 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
11776 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
11777 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11778 else | |
11779 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 11780 #line 11780 "configure" |
25897 | 11781 #include "confdefs.h" |
11782 | |
11783 #ifdef TIME_WITH_SYS_TIME | |
11784 #include <sys/time.h> | |
11785 #include <time.h> | |
11786 #else | |
11787 #ifdef HAVE_SYS_TIME_H | |
11788 #include <sys/time.h> | |
11789 #else | |
11790 #include <time.h> | |
11791 #endif | |
11792 #endif | |
40056 | 11793 int |
11794 main () | |
11795 { | |
29733 | 11796 struct timeval time; |
44569 | 11797 gettimeofday (&time, 0); |
40056 | 11798 ; |
11799 return 0; | |
11800 } | |
11801 _ACEOF | |
11802 rm -f conftest.$ac_objext | |
46596 | 11803 if { (eval echo "$as_me:11803: \"$ac_compile\"") >&5 |
44493 | 11804 (eval $ac_compile) 2>&5 |
11805 ac_status=$? | |
46596 | 11806 echo "$as_me:11806: \$? = $ac_status" >&5 |
44493 | 11807 (exit $ac_status); } && |
11808 { ac_try='test -s conftest.$ac_objext' | |
46596 | 11809 { (eval echo "$as_me:11809: \"$ac_try\"") >&5 |
11810 (eval $ac_try) 2>&5 | |
11811 ac_status=$? | |
11812 echo "$as_me:11812: \$? = $ac_status" >&5 | |
40056 | 11813 (exit $ac_status); }; }; then |
25897 | 11814 emacs_cv_gettimeofday_two_arguments=yes |
11815 else | |
40056 | 11816 echo "$as_me: failed program was:" >&5 |
11817 cat conftest.$ac_ext >&5 | |
11818 emacs_cv_gettimeofday_two_arguments=no | |
11819 fi | |
11820 rm -f conftest.$ac_objext conftest.$ac_ext | |
11821 fi | |
46596 | 11822 echo "$as_me:11822: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
40056 | 11823 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
44569 | 11824 if test $emacs_cv_gettimeofday_two_arguments = no; then |
11825 | |
45226 | 11826 cat >>confdefs.h <<\EOF |
25897 | 11827 #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
45226 | 11828 EOF |
25897 | 11829 |
44569 | 11830 fi |
25897 | 11831 fi |
11832 fi | |
11833 | |
29906 | 11834 if test "$ac_cv_func_gettimeofday" = yes; then |
46596 | 11835 echo "$as_me:11835: checking for struct timezone" >&5 |
40056 | 11836 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 |
11837 if test "${emacs_cv_struct_timezone+set}" = set; then | |
11838 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11839 else | |
11840 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 11841 #line 11841 "configure" |
29906 | 11842 #include "confdefs.h" |
11843 #include <sys/time.h> | |
40056 | 11844 int |
11845 main () | |
11846 { | |
29906 | 11847 struct timezone tz; |
40056 | 11848 ; |
11849 return 0; | |
11850 } | |
11851 _ACEOF | |
11852 rm -f conftest.$ac_objext | |
46596 | 11853 if { (eval echo "$as_me:11853: \"$ac_compile\"") >&5 |
44493 | 11854 (eval $ac_compile) 2>&5 |
11855 ac_status=$? | |
46596 | 11856 echo "$as_me:11856: \$? = $ac_status" >&5 |
44493 | 11857 (exit $ac_status); } && |
11858 { ac_try='test -s conftest.$ac_objext' | |
46596 | 11859 { (eval echo "$as_me:11859: \"$ac_try\"") >&5 |
11860 (eval $ac_try) 2>&5 | |
11861 ac_status=$? | |
11862 echo "$as_me:11862: \$? = $ac_status" >&5 | |
40056 | 11863 (exit $ac_status); }; }; then |
29906 | 11864 if test "$cross_compiling" = yes; then |
11865 emacs_cv_struct_timezone=yes | |
11866 else | |
40056 | 11867 cat >conftest.$ac_ext <<_ACEOF |
46596 | 11868 #line 11868 "configure" |
29906 | 11869 #include "confdefs.h" |
11870 | |
11871 #ifdef TIME_WITH_SYS_TIME | |
11872 #include <sys/time.h> | |
11873 #include <time.h> | |
11874 #else | |
11875 #ifdef HAVE_SYS_TIME_H | |
11876 #include <sys/time.h> | |
11877 #else | |
11878 #include <time.h> | |
11879 #endif | |
11880 #endif | |
11881 main () { | |
11882 struct timeval time; | |
11883 struct timezone dummy; | |
11884 exit (gettimeofday (&time, &dummy)); | |
11885 } | |
40056 | 11886 _ACEOF |
11887 rm -f conftest$ac_exeext | |
46596 | 11888 if { (eval echo "$as_me:11888: \"$ac_link\"") >&5 |
11889 (eval $ac_link) 2>&5 | |
11890 ac_status=$? | |
11891 echo "$as_me:11891: \$? = $ac_status" >&5 | |
45668 | 11892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
46596 | 11893 { (eval echo "$as_me:11893: \"$ac_try\"") >&5 |
11894 (eval $ac_try) 2>&5 | |
11895 ac_status=$? | |
11896 echo "$as_me:11896: \$? = $ac_status" >&5 | |
40056 | 11897 (exit $ac_status); }; }; then |
29906 | 11898 emacs_cv_struct_timezone=yes |
11899 else | |
40056 | 11900 echo "$as_me: program exited with status $ac_status" >&5 |
11901 echo "$as_me: failed program was:" >&5 | |
11902 cat conftest.$ac_ext >&5 | |
11903 emacs_cv_struct_timezone=no | |
11904 fi | |
11905 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11906 fi | |
11907 else | |
11908 echo "$as_me: failed program was:" >&5 | |
11909 cat conftest.$ac_ext >&5 | |
11910 emacs_cv_struct_timezone=no | |
11911 fi | |
11912 rm -f conftest.$ac_objext conftest.$ac_ext | |
11913 fi | |
46596 | 11914 echo "$as_me:11914: result: $emacs_cv_struct_timezone" >&5 |
40056 | 11915 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 |
29906 | 11916 fi |
11917 | |
25897 | 11918 ok_so_far=yes |
46596 | 11919 echo "$as_me:11919: checking for socket" >&5 |
40056 | 11920 echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
11921 if test "${ac_cv_func_socket+set}" = set; then | |
11922 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11923 else | |
11924 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 11925 #line 11925 "configure" |
25897 | 11926 #include "confdefs.h" |
11927 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 11928 which can conflict with char socket (); below. */ |
25897 | 11929 #include <assert.h> |
11930 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 11931 #ifdef __cplusplus |
11932 extern "C" | |
11933 #endif | |
25897 | 11934 /* We use char because int might match the return type of a gcc2 |
40056 | 11935 builtin and then its argument prototype would still apply. */ |
11936 char socket (); | |
11937 char (*f) (); | |
11938 | |
11939 int | |
11940 main () | |
11941 { | |
25897 | 11942 /* The GNU C library defines this for functions which it implements |
11943 to always fail with ENOSYS. Some functions are actually named | |
11944 something starting with __ and the normal name is an alias. */ | |
11945 #if defined (__stub_socket) || defined (__stub___socket) | |
11946 choke me | |
11947 #else | |
40056 | 11948 f = socket; |
11949 #endif | |
11950 | |
11951 ; | |
11952 return 0; | |
11953 } | |
11954 _ACEOF | |
11955 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 11956 if { (eval echo "$as_me:11956: \"$ac_link\"") >&5 |
11957 (eval $ac_link) 2>&5 | |
11958 ac_status=$? | |
11959 echo "$as_me:11959: \$? = $ac_status" >&5 | |
44493 | 11960 (exit $ac_status); } && |
11961 { ac_try='test -s conftest$ac_exeext' | |
46596 | 11962 { (eval echo "$as_me:11962: \"$ac_try\"") >&5 |
11963 (eval $ac_try) 2>&5 | |
11964 ac_status=$? | |
11965 echo "$as_me:11965: \$? = $ac_status" >&5 | |
40056 | 11966 (exit $ac_status); }; }; then |
11967 ac_cv_func_socket=yes | |
11968 else | |
11969 echo "$as_me: failed program was:" >&5 | |
11970 cat conftest.$ac_ext >&5 | |
11971 ac_cv_func_socket=no | |
11972 fi | |
11973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11974 fi | |
46596 | 11975 echo "$as_me:11975: result: $ac_cv_func_socket" >&5 |
40056 | 11976 echo "${ECHO_T}$ac_cv_func_socket" >&6 |
11977 if test $ac_cv_func_socket = yes; then | |
25897 | 11978 : |
11979 else | |
40056 | 11980 ok_so_far=no |
25897 | 11981 fi |
11982 | |
11983 if test $ok_so_far = yes; then | |
46596 | 11984 echo "$as_me:11984: checking for netinet/in.h" >&5 |
40056 | 11985 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
11986 if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
11987 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 11988 else |
11989 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 11990 #line 11990 "configure" |
25897 | 11991 #include "confdefs.h" |
11992 #include <netinet/in.h> | |
40056 | 11993 _ACEOF |
46596 | 11994 if { (eval echo "$as_me:11994: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 11995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11996 ac_status=$? | |
11997 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11998 rm -f conftest.er1 | |
11999 cat conftest.err >&5 | |
46596 | 12000 echo "$as_me:12000: \$? = $ac_status" >&5 |
40056 | 12001 (exit $ac_status); } >/dev/null; then |
12002 if test -s conftest.err; then | |
12003 ac_cpp_err=$ac_c_preproc_warn_flag | |
12004 else | |
12005 ac_cpp_err= | |
12006 fi | |
12007 else | |
12008 ac_cpp_err=yes | |
12009 fi | |
12010 if test -z "$ac_cpp_err"; then | |
45226 | 12011 ac_cv_header_netinet_in_h=yes |
40056 | 12012 else |
12013 echo "$as_me: failed program was:" >&5 | |
25897 | 12014 cat conftest.$ac_ext >&5 |
45226 | 12015 ac_cv_header_netinet_in_h=no |
40056 | 12016 fi |
12017 rm -f conftest.err conftest.$ac_ext | |
45226 | 12018 fi |
46596 | 12019 echo "$as_me:12019: result: $ac_cv_header_netinet_in_h" >&5 |
40056 | 12020 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
12021 if test $ac_cv_header_netinet_in_h = yes; then | |
25897 | 12022 : |
12023 else | |
40056 | 12024 ok_so_far=no |
25897 | 12025 fi |
12026 | |
12027 fi | |
12028 if test $ok_so_far = yes; then | |
46596 | 12029 echo "$as_me:12029: checking for arpa/inet.h" >&5 |
40056 | 12030 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
12031 if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
12032 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 12033 else |
12034 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 12035 #line 12035 "configure" |
25897 | 12036 #include "confdefs.h" |
12037 #include <arpa/inet.h> | |
40056 | 12038 _ACEOF |
46596 | 12039 if { (eval echo "$as_me:12039: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 12040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12041 ac_status=$? | |
12042 egrep -v '^ *\+' conftest.er1 >conftest.err | |
12043 rm -f conftest.er1 | |
12044 cat conftest.err >&5 | |
46596 | 12045 echo "$as_me:12045: \$? = $ac_status" >&5 |
40056 | 12046 (exit $ac_status); } >/dev/null; then |
12047 if test -s conftest.err; then | |
12048 ac_cpp_err=$ac_c_preproc_warn_flag | |
12049 else | |
12050 ac_cpp_err= | |
12051 fi | |
12052 else | |
12053 ac_cpp_err=yes | |
12054 fi | |
12055 if test -z "$ac_cpp_err"; then | |
45226 | 12056 ac_cv_header_arpa_inet_h=yes |
40056 | 12057 else |
12058 echo "$as_me: failed program was:" >&5 | |
25897 | 12059 cat conftest.$ac_ext >&5 |
45226 | 12060 ac_cv_header_arpa_inet_h=no |
40056 | 12061 fi |
12062 rm -f conftest.err conftest.$ac_ext | |
45226 | 12063 fi |
46596 | 12064 echo "$as_me:12064: result: $ac_cv_header_arpa_inet_h" >&5 |
40056 | 12065 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
12066 if test $ac_cv_header_arpa_inet_h = yes; then | |
25897 | 12067 : |
12068 else | |
40056 | 12069 ok_so_far=no |
25897 | 12070 fi |
12071 | |
12072 fi | |
12073 if test $ok_so_far = yes; then | |
44569 | 12074 |
45226 | 12075 cat >>confdefs.h <<\EOF |
25897 | 12076 #define HAVE_INET_SOCKETS 1 |
45226 | 12077 EOF |
25897 | 12078 |
12079 fi | |
12080 | |
12081 if test -f /usr/lpp/X11/bin/smt.exp; then | |
44569 | 12082 |
45226 | 12083 cat >>confdefs.h <<\EOF |
25897 | 12084 #define HAVE_AIX_SMT_EXP 1 |
45226 | 12085 EOF |
12086 | |
12087 fi | |
12088 | |
46596 | 12089 echo "$as_me:12089: checking whether system supports dynamic ptys" >&5 |
40056 | 12090 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
|
12091 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
46596 | 12092 echo "$as_me:12092: result: yes" >&5 |
40056 | 12093 echo "${ECHO_T}yes" >&6 |
44569 | 12094 |
45226 | 12095 cat >>confdefs.h <<\EOF |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
12096 #define HAVE_DEV_PTMX 1 |
45226 | 12097 EOF |
12098 | |
12099 else | |
46596 | 12100 echo "$as_me:12100: result: no" >&5 |
40056 | 12101 echo "${ECHO_T}no" >&6 |
12102 fi | |
12103 | |
46596 | 12104 echo "$as_me:12104: checking for pid_t" >&5 |
40056 | 12105 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
12106 if test "${ac_cv_type_pid_t+set}" = set; then | |
12107 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12108 else | |
12109 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 12110 #line 12110 "configure" |
40056 | 12111 #include "confdefs.h" |
12112 $ac_includes_default | |
12113 int | |
12114 main () | |
12115 { | |
12116 if ((pid_t *) 0) | |
12117 return 0; | |
12118 if (sizeof (pid_t)) | |
12119 return 0; | |
12120 ; | |
12121 return 0; | |
12122 } | |
12123 _ACEOF | |
12124 rm -f conftest.$ac_objext | |
46596 | 12125 if { (eval echo "$as_me:12125: \"$ac_compile\"") >&5 |
44493 | 12126 (eval $ac_compile) 2>&5 |
12127 ac_status=$? | |
46596 | 12128 echo "$as_me:12128: \$? = $ac_status" >&5 |
44493 | 12129 (exit $ac_status); } && |
12130 { ac_try='test -s conftest.$ac_objext' | |
46596 | 12131 { (eval echo "$as_me:12131: \"$ac_try\"") >&5 |
12132 (eval $ac_try) 2>&5 | |
12133 ac_status=$? | |
12134 echo "$as_me:12134: \$? = $ac_status" >&5 | |
40056 | 12135 (exit $ac_status); }; }; then |
27675 | 12136 ac_cv_type_pid_t=yes |
12137 else | |
40056 | 12138 echo "$as_me: failed program was:" >&5 |
12139 cat conftest.$ac_ext >&5 | |
12140 ac_cv_type_pid_t=no | |
12141 fi | |
12142 rm -f conftest.$ac_objext conftest.$ac_ext | |
12143 fi | |
46596 | 12144 echo "$as_me:12144: result: $ac_cv_type_pid_t" >&5 |
40056 | 12145 echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
12146 if test $ac_cv_type_pid_t = yes; then | |
12147 : | |
12148 else | |
12149 | |
45226 | 12150 cat >>confdefs.h <<EOF |
27675 | 12151 #define pid_t int |
45226 | 12152 EOF |
12153 | |
12154 fi | |
27675 | 12155 |
40056 | 12156 for ac_header in unistd.h vfork.h |
12157 do | |
12158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
46596 | 12159 echo "$as_me:12159: checking for $ac_header" >&5 |
40056 | 12160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
12161 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12162 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 12163 else |
12164 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 12165 #line 12165 "configure" |
40056 | 12166 #include "confdefs.h" |
12167 #include <$ac_header> | |
12168 _ACEOF | |
46596 | 12169 if { (eval echo "$as_me:12169: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 12170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12171 ac_status=$? | |
12172 egrep -v '^ *\+' conftest.er1 >conftest.err | |
12173 rm -f conftest.er1 | |
12174 cat conftest.err >&5 | |
46596 | 12175 echo "$as_me:12175: \$? = $ac_status" >&5 |
40056 | 12176 (exit $ac_status); } >/dev/null; then |
12177 if test -s conftest.err; then | |
12178 ac_cpp_err=$ac_c_preproc_warn_flag | |
12179 else | |
12180 ac_cpp_err= | |
12181 fi | |
12182 else | |
12183 ac_cpp_err=yes | |
12184 fi | |
12185 if test -z "$ac_cpp_err"; then | |
45226 | 12186 eval "$as_ac_Header=yes" |
40056 | 12187 else |
12188 echo "$as_me: failed program was:" >&5 | |
27675 | 12189 cat conftest.$ac_ext >&5 |
45226 | 12190 eval "$as_ac_Header=no" |
40056 | 12191 fi |
12192 rm -f conftest.err conftest.$ac_ext | |
45226 | 12193 fi |
46596 | 12194 echo "$as_me:12194: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40056 | 12195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
12196 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 12197 cat >>confdefs.h <<EOF |
40056 | 12198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 12199 EOF |
12200 | |
12201 fi | |
12202 done | |
40056 | 12203 |
12204 for ac_func in fork vfork | |
12205 do | |
12206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
46596 | 12207 echo "$as_me:12207: checking for $ac_func" >&5 |
40056 | 12208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12209 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12210 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12211 else | |
12212 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 12213 #line 12213 "configure" |
27675 | 12214 #include "confdefs.h" |
12215 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 12216 which can conflict with char $ac_func (); below. */ |
27675 | 12217 #include <assert.h> |
12218 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 12219 #ifdef __cplusplus |
12220 extern "C" | |
12221 #endif | |
27675 | 12222 /* We use char because int might match the return type of a gcc2 |
40056 | 12223 builtin and then its argument prototype would still apply. */ |
12224 char $ac_func (); | |
12225 char (*f) (); | |
12226 | |
12227 int | |
12228 main () | |
12229 { | |
27675 | 12230 /* The GNU C library defines this for functions which it implements |
12231 to always fail with ENOSYS. Some functions are actually named | |
12232 something starting with __ and the normal name is an alias. */ | |
40056 | 12233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
27675 | 12234 choke me |
12235 #else | |
40056 | 12236 f = $ac_func; |
12237 #endif | |
12238 | |
12239 ; | |
12240 return 0; | |
12241 } | |
12242 _ACEOF | |
12243 rm -f conftest.$ac_objext conftest$ac_exeext | |
46596 | 12244 if { (eval echo "$as_me:12244: \"$ac_link\"") >&5 |
12245 (eval $ac_link) 2>&5 | |
12246 ac_status=$? | |
12247 echo "$as_me:12247: \$? = $ac_status" >&5 | |
44493 | 12248 (exit $ac_status); } && |
12249 { ac_try='test -s conftest$ac_exeext' | |
46596 | 12250 { (eval echo "$as_me:12250: \"$ac_try\"") >&5 |
12251 (eval $ac_try) 2>&5 | |
12252 ac_status=$? | |
12253 echo "$as_me:12253: \$? = $ac_status" >&5 | |
40056 | 12254 (exit $ac_status); }; }; then |
12255 eval "$as_ac_var=yes" | |
12256 else | |
12257 echo "$as_me: failed program was:" >&5 | |
12258 cat conftest.$ac_ext >&5 | |
12259 eval "$as_ac_var=no" | |
12260 fi | |
12261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12262 fi | |
46596 | 12263 echo "$as_me:12263: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 12264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12265 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45226 | 12266 cat >>confdefs.h <<EOF |
40056 | 12267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
45226 | 12268 EOF |
40056 | 12269 |
12270 fi | |
12271 done | |
12272 | |
12273 ac_cv_func_fork_works=$ac_cv_func_fork | |
12274 if test "x$ac_cv_func_fork" = xyes; then | |
46596 | 12275 echo "$as_me:12275: checking for working fork" >&5 |
40056 | 12276 echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
12277 if test "${ac_cv_func_fork_works+set}" = set; then | |
12278 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12279 else | |
12280 if test "$cross_compiling" = yes; then | |
12281 ac_cv_func_fork_works=cross | |
12282 else | |
12283 cat >conftest.$ac_ext <<_ACEOF | |
45226 | 12284 /* By Rüdiger Kuhlmann. */ |
40056 | 12285 #include <sys/types.h> |
12286 #if HAVE_UNISTD_H | |
12287 # include <unistd.h> | |
12288 #endif | |
12289 /* Some systems only have a dummy stub for fork() */ | |
12290 int main () | |
12291 { | |
12292 if (fork() < 0) | |
12293 exit (1); | |
12294 exit (0); | |
12295 } | |
12296 _ACEOF | |
12297 rm -f conftest$ac_exeext | |
46596 | 12298 if { (eval echo "$as_me:12298: \"$ac_link\"") >&5 |
12299 (eval $ac_link) 2>&5 | |
12300 ac_status=$? | |
12301 echo "$as_me:12301: \$? = $ac_status" >&5 | |
45668 | 12302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
46596 | 12303 { (eval echo "$as_me:12303: \"$ac_try\"") >&5 |
12304 (eval $ac_try) 2>&5 | |
12305 ac_status=$? | |
12306 echo "$as_me:12306: \$? = $ac_status" >&5 | |
40056 | 12307 (exit $ac_status); }; }; then |
12308 ac_cv_func_fork_works=yes | |
12309 else | |
12310 echo "$as_me: program exited with status $ac_status" >&5 | |
12311 echo "$as_me: failed program was:" >&5 | |
12312 cat conftest.$ac_ext >&5 | |
12313 ac_cv_func_fork_works=no | |
12314 fi | |
12315 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12316 fi | |
12317 fi | |
46596 | 12318 echo "$as_me:12318: result: $ac_cv_func_fork_works" >&5 |
40056 | 12319 echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
12320 | |
12321 fi | |
12322 if test "x$ac_cv_func_fork_works" = xcross; then | |
12323 case $host in | |
12324 *-*-amigaos* | *-*-msdosdjgpp*) | |
12325 # Override, as these systems have only a dummy fork() stub | |
12326 ac_cv_func_fork_works=no | |
12327 ;; | |
12328 *) | |
12329 ac_cv_func_fork_works=yes | |
12330 ;; | |
12331 esac | |
46596 | 12332 { echo "$as_me:12332: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5 |
45226 | 12333 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;} |
40056 | 12334 fi |
27675 | 12335 ac_cv_func_vfork_works=$ac_cv_func_vfork |
40056 | 12336 if test "x$ac_cv_func_vfork" = xyes; then |
46596 | 12337 echo "$as_me:12337: checking for working vfork" >&5 |
40056 | 12338 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
12339 if test "${ac_cv_func_vfork_works+set}" = set; then | |
12340 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12341 else | |
12342 if test "$cross_compiling" = yes; then | |
12343 ac_cv_func_vfork_works=cross | |
12344 else | |
12345 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 12346 #line 12346 "configure" |
27675 | 12347 #include "confdefs.h" |
12348 /* Thanks to Paul Eggert for this test. */ | |
12349 #include <stdio.h> | |
12350 #include <sys/types.h> | |
12351 #include <sys/stat.h> | |
40056 | 12352 #if HAVE_UNISTD_H |
12353 # include <unistd.h> | |
12354 #endif | |
12355 #if HAVE_VFORK_H | |
12356 # include <vfork.h> | |
27675 | 12357 #endif |
12358 /* On some sparc systems, changes by the child to local and incoming | |
40056 | 12359 argument registers are propagated back to the parent. The compiler |
12360 is told about this with #include <vfork.h>, but some compilers | |
12361 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
12362 static variable whose address is put into a register that is | |
12363 clobbered by the vfork. */ | |
27675 | 12364 static |
12365 #ifdef __cplusplus | |
12366 sparc_address_test (int arg) | |
40056 | 12367 # else |
27675 | 12368 sparc_address_test (arg) int arg; |
12369 #endif | |
12370 { | |
12371 static pid_t child; | |
12372 if (!child) { | |
12373 child = vfork (); | |
12374 if (child < 0) { | |
12375 perror ("vfork"); | |
12376 _exit(2); | |
12377 } | |
12378 if (!child) { | |
12379 arg = getpid(); | |
12380 write(-1, "", 0); | |
12381 _exit (arg); | |
12382 } | |
12383 } | |
12384 } | |
40056 | 12385 |
12386 int | |
12387 main () | |
12388 { | |
27675 | 12389 pid_t parent = getpid (); |
12390 pid_t child; | |
12391 | |
12392 sparc_address_test (); | |
12393 | |
12394 child = vfork (); | |
12395 | |
12396 if (child == 0) { | |
40056 | 12397 /* Here is another test for sparc vfork register problems. This |
12398 test uses lots of local variables, at least as many local | |
12399 variables as main has allocated so far including compiler | |
12400 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
12401 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
12402 reuse the register of parent for one of the local variables, | |
12403 since it will think that parent can't possibly be used any more | |
12404 in this routine. Assigning to the local variable will thus | |
12405 munge parent in the parent process. */ | |
27675 | 12406 pid_t |
12407 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
12408 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
12409 /* Convince the compiler that p..p7 are live; otherwise, it might | |
12410 use the same hardware register for all 8 local variables. */ | |
12411 if (p != p1 || p != p2 || p != p3 || p != p4 | |
12412 || p != p5 || p != p6 || p != p7) | |
12413 _exit(1); | |
12414 | |
40056 | 12415 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
12416 from child file descriptors. If the child closes a descriptor | |
12417 before it execs or exits, this munges the parent's descriptor | |
12418 as well. Test for this by closing stdout in the child. */ | |
27675 | 12419 _exit(close(fileno(stdout)) != 0); |
12420 } else { | |
12421 int status; | |
12422 struct stat st; | |
12423 | |
12424 while (wait(&status) != child) | |
12425 ; | |
12426 exit( | |
12427 /* Was there some problem with vforking? */ | |
12428 child < 0 | |
12429 | |
12430 /* Did the child fail? (This shouldn't happen.) */ | |
12431 || status | |
12432 | |
12433 /* Did the vfork/compiler bug occur? */ | |
12434 || parent != getpid() | |
12435 | |
12436 /* Did the file descriptor bug occur? */ | |
12437 || fstat(fileno(stdout), &st) != 0 | |
12438 ); | |
12439 } | |
12440 } | |
40056 | 12441 _ACEOF |
12442 rm -f conftest$ac_exeext | |
46596 | 12443 if { (eval echo "$as_me:12443: \"$ac_link\"") >&5 |
12444 (eval $ac_link) 2>&5 | |
12445 ac_status=$? | |
12446 echo "$as_me:12446: \$? = $ac_status" >&5 | |
45668 | 12447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
46596 | 12448 { (eval echo "$as_me:12448: \"$ac_try\"") >&5 |
12449 (eval $ac_try) 2>&5 | |
12450 ac_status=$? | |
12451 echo "$as_me:12451: \$? = $ac_status" >&5 | |
40056 | 12452 (exit $ac_status); }; }; then |
27675 | 12453 ac_cv_func_vfork_works=yes |
12454 else | |
40056 | 12455 echo "$as_me: program exited with status $ac_status" >&5 |
12456 echo "$as_me: failed program was:" >&5 | |
12457 cat conftest.$ac_ext >&5 | |
12458 ac_cv_func_vfork_works=no | |
12459 fi | |
12460 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12461 fi | |
12462 fi | |
46596 | 12463 echo "$as_me:12463: result: $ac_cv_func_vfork_works" >&5 |
40056 | 12464 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
12465 | |
12466 fi; | |
12467 if test "x$ac_cv_func_fork_works" = xcross; then | |
12468 ac_cv_func_vfork_works=ac_cv_func_vfork | |
46596 | 12469 { echo "$as_me:12469: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5 |
45226 | 12470 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;} |
40056 | 12471 fi |
12472 | |
12473 if test "x$ac_cv_func_vfork_works" = xyes; then | |
12474 | |
45226 | 12475 cat >>confdefs.h <<\EOF |
40056 | 12476 #define HAVE_WORKING_VFORK 1 |
45226 | 12477 EOF |
12478 | |
12479 else | |
12480 | |
12481 cat >>confdefs.h <<\EOF | |
27675 | 12482 #define vfork fork |
45226 | 12483 EOF |
27675 | 12484 |
12485 fi | |
40056 | 12486 if test "x$ac_cv_func_fork_works" = xyes; then |
12487 | |
45226 | 12488 cat >>confdefs.h <<\EOF |
40056 | 12489 #define HAVE_WORKING_FORK 1 |
45226 | 12490 EOF |
12491 | |
12492 fi | |
27675 | 12493 |
30395 | 12494 # Fixme: This should be replaced when we have autoconf 2.14. |
46596 | 12495 echo "$as_me:12495: checking for size_t" >&5 |
40056 | 12496 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
12497 if test "${ac_cv_type_size_t+set}" = set; then | |
12498 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12499 else | |
12500 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 12501 #line 12501 "configure" |
40056 | 12502 #include "confdefs.h" |
12503 $ac_includes_default | |
12504 int | |
12505 main () | |
12506 { | |
12507 if ((size_t *) 0) | |
12508 return 0; | |
12509 if (sizeof (size_t)) | |
12510 return 0; | |
12511 ; | |
12512 return 0; | |
12513 } | |
12514 _ACEOF | |
12515 rm -f conftest.$ac_objext | |
46596 | 12516 if { (eval echo "$as_me:12516: \"$ac_compile\"") >&5 |
44493 | 12517 (eval $ac_compile) 2>&5 |
12518 ac_status=$? | |
46596 | 12519 echo "$as_me:12519: \$? = $ac_status" >&5 |
44493 | 12520 (exit $ac_status); } && |
12521 { ac_try='test -s conftest.$ac_objext' | |
46596 | 12522 { (eval echo "$as_me:12522: \"$ac_try\"") >&5 |
12523 (eval $ac_try) 2>&5 | |
12524 ac_status=$? | |
12525 echo "$as_me:12525: \$? = $ac_status" >&5 | |
40056 | 12526 (exit $ac_status); }; }; then |
30395 | 12527 ac_cv_type_size_t=yes |
12528 else | |
40056 | 12529 echo "$as_me: failed program was:" >&5 |
12530 cat conftest.$ac_ext >&5 | |
12531 ac_cv_type_size_t=no | |
12532 fi | |
12533 rm -f conftest.$ac_objext conftest.$ac_ext | |
12534 fi | |
46596 | 12535 echo "$as_me:12535: result: $ac_cv_type_size_t" >&5 |
40056 | 12536 echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
12537 if test $ac_cv_type_size_t = yes; then | |
12538 : | |
12539 else | |
12540 | |
45226 | 12541 cat >>confdefs.h <<EOF |
30395 | 12542 #define size_t unsigned |
45226 | 12543 EOF |
12544 | |
12545 fi | |
30395 | 12546 |
25897 | 12547 # Set up the CFLAGS for real compilation, so we can substitute it. |
12548 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
|
12549 CPPFLAGS="$REAL_CPPFLAGS" |
25897 | 12550 |
12551 #### Find out which version of Emacs this is. | |
12552 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
12553 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
12554 if test x"${version}" = x; then | |
46596 | 12555 { { echo "$as_me:12555: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 |
40056 | 12556 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} |
12557 { (exit 1); exit 1; }; } | |
25897 | 12558 fi |
12559 | |
12560 ### Specify what sort of things we'll be editing into Makefile and config.h. | |
12561 ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
12562 | |
45226 | 12563 cat >>confdefs.h <<EOF |
25897 | 12564 #define EMACS_CONFIGURATION "${canonical}" |
45226 | 12565 EOF |
12566 | |
12567 cat >>confdefs.h <<EOF | |
25897 | 12568 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" |
45226 | 12569 EOF |
12570 | |
12571 cat >>confdefs.h <<EOF | |
25897 | 12572 #define config_machfile "${machfile}" |
45226 | 12573 EOF |
12574 | |
12575 cat >>confdefs.h <<EOF | |
25897 | 12576 #define config_opsysfile "${opsysfile}" |
45226 | 12577 EOF |
12578 | |
12579 cat >>confdefs.h <<EOF | |
25897 | 12580 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} |
45226 | 12581 EOF |
12582 | |
12583 cat >>confdefs.h <<EOF | |
25897 | 12584 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} |
45226 | 12585 EOF |
12586 | |
12587 cat >>confdefs.h <<EOF | |
25897 | 12588 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} |
45226 | 12589 EOF |
12590 | |
12591 cat >>confdefs.h <<EOF | |
25897 | 12592 #define UNEXEC_SRC ${UNEXEC_SRC} |
45226 | 12593 EOF |
25897 | 12594 |
12595 if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
44569 | 12596 |
45226 | 12597 cat >>confdefs.h <<\EOF |
25897 | 12598 #define HAVE_X_WINDOWS 1 |
45226 | 12599 EOF |
25897 | 12600 |
12601 fi | |
12602 if test "${USE_X_TOOLKIT}" != "none" ; then | |
44569 | 12603 |
45226 | 12604 cat >>confdefs.h <<\EOF |
25897 | 12605 #define USE_X_TOOLKIT 1 |
45226 | 12606 EOF |
25897 | 12607 |
12608 fi | |
12609 if test "${HAVE_X11}" = "yes" ; then | |
44569 | 12610 |
45226 | 12611 cat >>confdefs.h <<\EOF |
25897 | 12612 #define HAVE_X11 1 |
45226 | 12613 EOF |
25897 | 12614 |
12615 fi | |
12616 if test "${HAVE_XFREE386}" = "yes" ; then | |
44569 | 12617 |
45226 | 12618 cat >>confdefs.h <<\EOF |
25897 | 12619 #define HAVE_XFREE386 1 |
45226 | 12620 EOF |
25897 | 12621 |
12622 fi | |
12623 if test "${HAVE_MENUS}" = "yes" ; then | |
44569 | 12624 |
45226 | 12625 cat >>confdefs.h <<\EOF |
25897 | 12626 #define HAVE_MENUS 1 |
45226 | 12627 EOF |
25897 | 12628 |
12629 fi | |
12630 if test "${GNU_MALLOC}" = "yes" ; then | |
44569 | 12631 |
45226 | 12632 cat >>confdefs.h <<\EOF |
25897 | 12633 #define GNU_MALLOC 1 |
45226 | 12634 EOF |
25897 | 12635 |
12636 fi | |
12637 if test "${REL_ALLOC}" = "yes" ; then | |
44569 | 12638 |
45226 | 12639 cat >>confdefs.h <<\EOF |
25897 | 12640 #define REL_ALLOC 1 |
45226 | 12641 EOF |
12642 | |
12643 fi | |
25897 | 12644 |
40777 | 12645 for ac_header in nlist.h |
12646 do | |
12647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
46596 | 12648 echo "$as_me:12648: checking for $ac_header" >&5 |
40777 | 12649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
12650 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12651 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45226 | 12652 else |
12653 cat >conftest.$ac_ext <<_ACEOF | |
46596 | 12654 #line 12654 "configure" |
40777 | 12655 #include "confdefs.h" |
12656 #include <$ac_header> | |
12657 _ACEOF | |
46596 | 12658 if { (eval echo "$as_me:12658: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40777 | 12659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12660 ac_status=$? | |
12661 egrep -v '^ *\+' conftest.er1 >conftest.err | |
12662 rm -f conftest.er1 | |
12663 cat conftest.err >&5 | |
46596 | 12664 echo "$as_me:12664: \$? = $ac_status" >&5 |
40777 | 12665 (exit $ac_status); } >/dev/null; then |
12666 if test -s conftest.err; then | |
12667 ac_cpp_err=$ac_c_preproc_warn_flag | |
12668 else | |
12669 ac_cpp_err= | |
12670 fi | |
12671 else | |
12672 ac_cpp_err=yes | |
12673 fi | |
12674 if test -z "$ac_cpp_err"; then | |
45226 | 12675 eval "$as_ac_Header=yes" |
40777 | 12676 else |
12677 echo "$as_me: failed program was:" >&5 | |
12678 cat conftest.$ac_ext >&5 | |
45226 | 12679 eval "$as_ac_Header=no" |
40777 | 12680 fi |
12681 rm -f conftest.err conftest.$ac_ext | |
45226 | 12682 fi |
46596 | 12683 echo "$as_me:12683: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
40777 | 12684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
12685 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
45226 | 12686 cat >>confdefs.h <<EOF |
40777 | 12687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
45226 | 12688 EOF |
12689 | |
12690 cat >>confdefs.h <<\EOF | |
40777 | 12691 #define NLIST_STRUCT 1 |
45226 | 12692 EOF |
12693 | |
12694 fi | |
12695 done | |
44569 | 12696 |
25897 | 12697 #### Report on what we decided to do. |
12698 echo " | |
12699 Configured for \`${canonical}'. | |
12700 | |
12701 Where should the build process find the source code? ${srcdir} | |
12702 What operating system and machine description files should Emacs use? | |
12703 \`${opsysfile}' and \`${machfile}' | |
12704 What compiler should emacs be built with? ${CC} ${CFLAGS} | |
12705 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
31417 | 12706 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
31607 | 12707 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
25897 | 12708 What window system should Emacs use? ${window_system} |
44493 | 12709 What toolkit should Emacs use? ${USE_X_TOOLKIT} |
12710 Should Emacs use a shared game state directory? ${gamedir}" | |
25897 | 12711 |
12712 if test -n "${x_includes}"; then | |
12713 echo " Where do we find X Windows header files? ${x_includes}" | |
12714 else | |
12715 echo " Where do we find X Windows header files? Standard dirs" | |
12716 fi | |
12717 if test -n "${x_libraries}"; then | |
12718 echo " Where do we find X Windows libraries? ${x_libraries}" | |
12719 else | |
12720 echo " Where do we find X Windows libraries? Standard dirs" | |
12721 fi | |
12722 | |
12723 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
12724 echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
12725 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
12726 echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
12727 echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
12728 echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
12729 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
12730 echo | |
12731 | |
12732 # Remove any trailing slashes in these variables. | |
12733 test "${prefix}" != NONE && | |
12734 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
12735 test "${exec_prefix}" != NONE && | |
12736 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
12737 | |
36354 | 12738 ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
12739 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
12740 ## from Makefile.c can correctly provide the arg `-traditional' to the | |
12741 ## C preprocessor. | |
12742 | |
40056 | 12743 cat >conftest.$ac_ext <<_ACEOF |
46596 | 12744 #line 12744 "configure" |
36354 | 12745 #include "confdefs.h" |
12746 yes..yes | |
40056 | 12747 _ACEOF |
36354 | 12748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12749 egrep "yes..yes" >/dev/null 2>&1; then | |
12750 CPP_NEED_TRADITIONAL=no | |
12751 else | |
12752 CPP_NEED_TRADITIONAL=yes | |
12753 fi | |
12754 rm -f conftest* | |
12755 | |
44994 | 12756 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" |
12757 ac_config_commands="$ac_config_commands default" | |
40056 | 12758 cat >confcache <<\_ACEOF |
25897 | 12759 # This file is a shell script that caches the results of configure |
12760 # tests run on this system so they can be shared between configure | |
40056 | 12761 # scripts and configure runs, see configure's option --config-cache. |
12762 # It is not useful on other systems. If it contains results you don't | |
12763 # want to keep, you may remove or edit it. | |
12764 # | |
12765 # config.status only pays attention to the cache file if you give it | |
12766 # the --recheck option to rerun configure. | |
25897 | 12767 # |
40056 | 12768 # `ac_cv_env_foo' variables (set or unset) will be overriden when |
12769 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12770 # following values. | |
12771 | |
12772 _ACEOF | |
12773 | |
25897 | 12774 # The following way of writing the cache mishandles newlines in values, |
12775 # but we know of no workaround that is simple, portable, and efficient. | |
12776 # So, don't put newlines in cache variables' values. | |
12777 # Ultrix sh set writes to stderr and can't be redirected directly, | |
12778 # and sets the high bit in the cache file unless we assign to the vars. | |
40056 | 12779 { |
12780 (set) 2>&1 | | |
12781 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
12782 *ac_space=\ *) | |
12783 # `set' does not quote correctly, so add quotes (double-quote | |
12784 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12785 sed -n \ | |
12786 "s/'/'\\\\''/g; | |
12787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12788 ;; | |
12789 *) | |
12790 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12791 sed -n \ | |
12792 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
12793 ;; | |
12794 esac; | |
12795 } | | |
12796 sed ' | |
12797 t clear | |
12798 : clear | |
12799 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12800 t end | |
12801 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12802 : end' >>confcache | |
12803 if cmp -s $cache_file confcache; then :; else | |
25897 | 12804 if test -w $cache_file; then |
40056 | 12805 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
12806 cat confcache >$cache_file | |
25897 | 12807 else |
12808 echo "not updating unwritable cache $cache_file" | |
12809 fi | |
12810 fi | |
12811 rm -f confcache | |
12812 | |
12813 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
12814 # Let make expand exec_prefix. | |
12815 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12816 | |
40056 | 12817 # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12818 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12819 # trailing colons and then remove the whole line if VPATH becomes empty | |
12820 # (actually we leave an empty line to preserve line numbers). | |
25897 | 12821 if test "x$srcdir" = x.; then |
40056 | 12822 ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
12823 s/:*\$(srcdir):*/:/; | |
12824 s/:*\${srcdir}:*/:/; | |
12825 s/:*@srcdir@:*/:/; | |
12826 s/^\([^=]*=[ ]*\):*/\1/; | |
12827 s/:*$//; | |
12828 s/^[^=]*=[ ]*$//; | |
12829 }' | |
12830 fi | |
25897 | 12831 |
12832 DEFS=-DHAVE_CONFIG_H | |
12833 | |
12834 : ${CONFIG_STATUS=./config.status} | |
40056 | 12835 ac_clean_files_save=$ac_clean_files |
12836 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
46596 | 12837 { echo "$as_me:12837: creating $CONFIG_STATUS" >&5 |
40056 | 12838 echo "$as_me: creating $CONFIG_STATUS" >&6;} |
12839 cat >$CONFIG_STATUS <<_ACEOF | |
12840 #! $SHELL | |
45226 | 12841 # Generated automatically by configure. |
25897 | 12842 # Run this file to recreate the current configuration. |
12843 # Compiler output produced by configure, useful for debugging | |
40056 | 12844 # configure, is in config.log if it exists. |
12845 | |
12846 debug=false | |
12847 SHELL=\${CONFIG_SHELL-$SHELL} | |
45226 | 12848 ac_cs_invocation="\$0 \$@" |
12849 | |
40056 | 12850 _ACEOF |
12851 | |
12852 cat >>$CONFIG_STATUS <<\_ACEOF | |
12853 # Be Bourne compatible | |
12854 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
12855 emulate sh | |
12856 NULLCMD=: | |
12857 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
12858 set -o posix | |
12859 fi | |
12860 | |
12861 # Name of the executable. | |
45226 | 12862 as_me=`echo "$0" |sed 's,.*[\\/],,'` |
40056 | 12863 |
12864 if expr a : '\(a\)' >/dev/null 2>&1; then | |
12865 as_expr=expr | |
12866 else | |
12867 as_expr=false | |
12868 fi | |
12869 | |
12870 rm -f conf$$ conf$$.exe conf$$.file | |
12871 echo >conf$$.file | |
12872 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12873 # We could just check for DJGPP; but this test a) works b) is more generic | |
12874 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
12875 if test -f conf$$.exe; then | |
12876 # Don't use ln at all; we don't have any links | |
12877 as_ln_s='cp -p' | |
12878 else | |
12879 as_ln_s='ln -s' | |
12880 fi | |
12881 elif ln conf$$.file conf$$ 2>/dev/null; then | |
12882 as_ln_s=ln | |
12883 else | |
12884 as_ln_s='cp -p' | |
12885 fi | |
12886 rm -f conf$$ conf$$.exe conf$$.file | |
12887 | |
12888 as_executable_p="test -f" | |
12889 | |
45226 | 12890 # Support unset when possible. |
12891 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
12892 as_unset=unset | |
12893 else | |
12894 as_unset=false | |
12895 fi | |
12896 | |
12897 # NLS nuisances. | |
12898 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
12899 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
12900 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
12901 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
12902 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
12903 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
12904 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
12905 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
40056 | 12906 |
12907 # IFS | |
12908 # We need space, tab and new line, in precisely that order. | |
12909 as_nl=' | |
12910 ' | |
12911 IFS=" $as_nl" | |
12912 | |
12913 # CDPATH. | |
45226 | 12914 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
40056 | 12915 |
12916 exec 6>&1 | |
12917 | |
12918 _ACEOF | |
12919 | |
12920 # Files that config.status was made for. | |
12921 if test -n "$ac_config_files"; then | |
12922 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
12923 fi | |
12924 | |
12925 if test -n "$ac_config_headers"; then | |
12926 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
12927 fi | |
12928 | |
12929 if test -n "$ac_config_links"; then | |
12930 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
12931 fi | |
12932 | |
12933 if test -n "$ac_config_commands"; then | |
12934 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
12935 fi | |
12936 | |
45226 | 12937 cat >>$CONFIG_STATUS <<\EOF |
40056 | 12938 |
12939 ac_cs_usage="\ | |
12940 \`$as_me' instantiates files from templates according to the | |
12941 current configuration. | |
12942 | |
12943 Usage: $0 [OPTIONS] [FILE]... | |
12944 | |
12945 -h, --help print this help, then exit | |
12946 -V, --version print version number, then exit | |
12947 -d, --debug don't remove temporary files | |
12948 --recheck update $as_me by reconfiguring in the same conditions | |
12949 --file=FILE[:TEMPLATE] | |
12950 instantiate the configuration file FILE | |
12951 --header=FILE[:TEMPLATE] | |
12952 instantiate the configuration header FILE | |
12953 | |
12954 Configuration files: | |
12955 $config_files | |
12956 | |
12957 Configuration headers: | |
12958 $config_headers | |
12959 | |
12960 Configuration commands: | |
12961 $config_commands | |
12962 | |
12963 Report bugs to <bug-autoconf@gnu.org>." | |
45226 | 12964 EOF |
12965 | |
12966 cat >>$CONFIG_STATUS <<EOF | |
40056 | 12967 ac_cs_version="\\ |
12968 config.status | |
45226 | 12969 configured by $0, generated by GNU Autoconf 2.52, |
40056 | 12970 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
12971 | |
12972 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
12973 Free Software Foundation, Inc. | |
12974 This config.status script is free software; the Free Software Foundation | |
12975 gives unlimited permission to copy, distribute and modify it." | |
12976 srcdir=$srcdir | |
12977 INSTALL="$INSTALL" | |
45226 | 12978 EOF |
12979 | |
12980 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 12981 # If no file are specified by the user, then we need to provide default |
12982 # value. By we need to know if files were specified by the user. | |
12983 ac_need_defaults=: | |
12984 while test $# != 0 | |
25897 | 12985 do |
40056 | 12986 case $1 in |
12987 --*=*) | |
12988 ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
12989 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
12990 shift | |
12991 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
12992 shift | |
12993 ;; | |
12994 -*);; | |
12995 *) # This is not an option, so the user has probably given explicit | |
12996 # arguments. | |
12997 ac_need_defaults=false;; | |
12998 esac | |
12999 | |
13000 case $1 in | |
13001 # Handling of the options. | |
45226 | 13002 EOF |
13003 cat >>$CONFIG_STATUS <<EOF | |
25897 | 13004 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
40056 | 13005 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
13006 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
45226 | 13007 EOF |
13008 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 13009 --version | --vers* | -V ) |
13010 echo "$ac_cs_version"; exit 0 ;; | |
13011 --he | --h) | |
13012 # Conflict between --help and --header | |
46596 | 13013 { { echo "$as_me:13013: error: ambiguous option: $1 |
40056 | 13014 Try \`$0 --help' for more information." >&5 |
13015 echo "$as_me: error: ambiguous option: $1 | |
13016 Try \`$0 --help' for more information." >&2;} | |
13017 { (exit 1); exit 1; }; };; | |
13018 --help | --hel | -h ) | |
13019 echo "$ac_cs_usage"; exit 0 ;; | |
13020 --debug | --d* | -d ) | |
13021 debug=: ;; | |
13022 --file | --fil | --fi | --f ) | |
13023 shift | |
13024 CONFIG_FILES="$CONFIG_FILES $1" | |
13025 ac_need_defaults=false;; | |
13026 --header | --heade | --head | --hea ) | |
13027 shift | |
13028 CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
13029 ac_need_defaults=false;; | |
13030 | |
13031 # This is an error. | |
46596 | 13032 -*) { { echo "$as_me:13032: error: unrecognized option: $1 |
40056 | 13033 Try \`$0 --help' for more information." >&5 |
13034 echo "$as_me: error: unrecognized option: $1 | |
13035 Try \`$0 --help' for more information." >&2;} | |
13036 { (exit 1); exit 1; }; } ;; | |
13037 | |
13038 *) ac_config_targets="$ac_config_targets $1" ;; | |
13039 | |
13040 esac | |
13041 shift | |
13042 done | |
13043 | |
45226 | 13044 exec 5>>config.log |
13045 cat >&5 << _ACEOF | |
13046 | |
13047 ## ----------------------- ## | |
13048 ## Running config.status. ## | |
13049 ## ----------------------- ## | |
13050 | |
13051 This file was extended by $as_me 2.52, executed with | |
13052 CONFIG_FILES = $CONFIG_FILES | |
13053 CONFIG_HEADERS = $CONFIG_HEADERS | |
13054 CONFIG_LINKS = $CONFIG_LINKS | |
13055 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13056 > $ac_cs_invocation | |
13057 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
13058 | |
13059 _ACEOF | |
13060 EOF | |
13061 | |
13062 cat >>$CONFIG_STATUS <<EOF | |
40056 | 13063 # |
13064 # INIT-COMMANDS section. | |
13065 # | |
13066 | |
13067 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" | |
13068 | |
45226 | 13069 EOF |
13070 | |
13071 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 13072 for ac_config_target in $ac_config_targets |
13073 do | |
13074 case "$ac_config_target" in | |
13075 # Handling of arguments. | |
13076 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13077 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
13078 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
13079 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
13080 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | |
13081 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; | |
13082 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | |
40893 | 13083 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;; |
41431 | 13084 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;; |
40056 | 13085 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
13086 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
13087 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
46596 | 13088 *) { { echo "$as_me:13088: error: invalid argument: $ac_config_target" >&5 |
40056 | 13089 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
13090 { (exit 1); exit 1; }; };; | |
25897 | 13091 esac |
13092 done | |
13093 | |
40056 | 13094 # If the user did not use the arguments to specify the items to instantiate, |
13095 # then the envvar interface is used. Set only those that are not. | |
13096 # We use the long form for the default assignment because of an extremely | |
13097 # bizarre bug on SunOS 4.1.3. | |
13098 if $ac_need_defaults; then | |
13099 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13100 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13101 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13102 fi | |
13103 | |
13104 # Create a temporary directory, and hook for its removal unless debugging. | |
13105 $debug || | |
13106 { | |
13107 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
13108 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
13109 } | |
13110 | |
13111 # Create a (secure) tmp directory for tmp files. | |
13112 : ${TMPDIR=/tmp} | |
13113 { | |
13114 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
13115 test -n "$tmp" && test -d "$tmp" | |
13116 } || | |
13117 { | |
13118 tmp=$TMPDIR/cs$$-$RANDOM | |
13119 (umask 077 && mkdir $tmp) | |
13120 } || | |
13121 { | |
13122 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
13123 { (exit 1); exit 1; } | |
13124 } | |
13125 | |
45226 | 13126 EOF |
13127 | |
13128 cat >>$CONFIG_STATUS <<EOF | |
40056 | 13129 |
13130 # | |
13131 # CONFIG_FILES section. | |
13132 # | |
13133 | |
13134 # No need to generate the scripts if there are no CONFIG_FILES. | |
13135 # This happens for instance when ./config.status config.h | |
13136 if test -n "\$CONFIG_FILES"; then | |
13137 # Protect against being on the right side of a sed subst in config.status. | |
13138 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
13139 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
13140 s,@SHELL@,$SHELL,;t t | |
13141 s,@exec_prefix@,$exec_prefix,;t t | |
13142 s,@prefix@,$prefix,;t t | |
13143 s,@program_transform_name@,$program_transform_name,;t t | |
13144 s,@bindir@,$bindir,;t t | |
13145 s,@sbindir@,$sbindir,;t t | |
13146 s,@libexecdir@,$libexecdir,;t t | |
13147 s,@datadir@,$datadir,;t t | |
13148 s,@sysconfdir@,$sysconfdir,;t t | |
13149 s,@sharedstatedir@,$sharedstatedir,;t t | |
13150 s,@localstatedir@,$localstatedir,;t t | |
13151 s,@libdir@,$libdir,;t t | |
13152 s,@includedir@,$includedir,;t t | |
13153 s,@oldincludedir@,$oldincludedir,;t t | |
13154 s,@infodir@,$infodir,;t t | |
13155 s,@mandir@,$mandir,;t t | |
45226 | 13156 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
13157 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
13158 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
13159 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
13160 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
40056 | 13161 s,@build_alias@,$build_alias,;t t |
13162 s,@host_alias@,$host_alias,;t t | |
13163 s,@target_alias@,$target_alias,;t t | |
13164 s,@ECHO_C@,$ECHO_C,;t t | |
13165 s,@ECHO_N@,$ECHO_N,;t t | |
13166 s,@ECHO_T@,$ECHO_T,;t t | |
45226 | 13167 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
13168 s,@DEFS@,$DEFS,;t t | |
40056 | 13169 s,@LIBS@,$LIBS,;t t |
13170 s,@build@,$build,;t t | |
13171 s,@build_cpu@,$build_cpu,;t t | |
13172 s,@build_vendor@,$build_vendor,;t t | |
13173 s,@build_os@,$build_os,;t t | |
13174 s,@host@,$host,;t t | |
13175 s,@host_cpu@,$host_cpu,;t t | |
13176 s,@host_vendor@,$host_vendor,;t t | |
13177 s,@host_os@,$host_os,;t t | |
13178 s,@CC@,$CC,;t t | |
13179 s,@CFLAGS@,$CFLAGS,;t t | |
13180 s,@LDFLAGS@,$LDFLAGS,;t t | |
13181 s,@CPPFLAGS@,$CPPFLAGS,;t t | |
13182 s,@ac_ct_CC@,$ac_ct_CC,;t t | |
13183 s,@EXEEXT@,$EXEEXT,;t t | |
13184 s,@OBJEXT@,$OBJEXT,;t t | |
13185 s,@LN_S@,$LN_S,;t t | |
13186 s,@CPP@,$CPP,;t t | |
13187 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
13188 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
13189 s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
13190 s,@YACC@,$YACC,;t t | |
13191 s,@RANLIB@,$RANLIB,;t t | |
13192 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
13193 s,@LIBSOUND@,$LIBSOUND,;t t | |
13194 s,@SET_MAKE@,$SET_MAKE,;t t | |
13195 s,@ALLOCA@,$ALLOCA,;t t | |
13196 s,@liblockfile@,$liblockfile,;t t | |
13197 s,@LIBOBJS@,$LIBOBJS,;t t | |
13198 s,@NEED_SETGID@,$NEED_SETGID,;t t | |
13199 s,@KMEM_GROUP@,$KMEM_GROUP,;t t | |
13200 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t | |
13201 s,@version@,$version,;t t | |
13202 s,@configuration@,$configuration,;t t | |
13203 s,@canonical@,$canonical,;t t | |
13204 s,@srcdir@,$srcdir,;t t | |
13205 s,@lispdir@,$lispdir,;t t | |
13206 s,@locallisppath@,$locallisppath,;t t | |
13207 s,@lisppath@,$lisppath,;t t | |
13208 s,@x_default_search_path@,$x_default_search_path,;t t | |
13209 s,@etcdir@,$etcdir,;t t | |
13210 s,@archlibdir@,$archlibdir,;t t | |
13211 s,@docdir@,$docdir,;t t | |
13212 s,@bitmapdir@,$bitmapdir,;t t | |
44493 | 13213 s,@gamedir@,$gamedir,;t t |
13214 s,@gameuser@,$gameuser,;t t | |
40056 | 13215 s,@c_switch_system@,$c_switch_system,;t t |
13216 s,@c_switch_machine@,$c_switch_machine,;t t | |
13217 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t | |
13218 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t | |
13219 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t | |
13220 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t | |
13221 s,@machfile@,$machfile,;t t | |
13222 s,@opsysfile@,$opsysfile,;t t | |
25897 | 13223 CEOF |
40056 | 13224 |
45226 | 13225 EOF |
13226 | |
13227 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 13228 # Split the substitutions into bite-sized pieces for seds with |
13229 # small command number limits, like on Digital OSF/1 and HP-UX. | |
13230 ac_max_sed_lines=48 | |
13231 ac_sed_frag=1 # Number of current file. | |
13232 ac_beg=1 # First line for current file. | |
13233 ac_end=$ac_max_sed_lines # Line after last line for current file. | |
13234 ac_more_lines=: | |
13235 ac_sed_cmds= | |
13236 while $ac_more_lines; do | |
13237 if test $ac_beg -gt 1; then | |
13238 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
25897 | 13239 else |
40056 | 13240 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
13241 fi | |
13242 if test ! -s $tmp/subs.frag; then | |
13243 ac_more_lines=false | |
13244 else | |
13245 # The purpose of the label and of the branching condition is to | |
13246 # speed up the sed processing (if there are no `@' at all, there | |
13247 # is no need to browse any of the substitutions). | |
13248 # These are the two extra sed commands mentioned above. | |
13249 (echo ':t | |
13250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
13251 if test -z "$ac_sed_cmds"; then | |
13252 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
13253 else | |
13254 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
13255 fi | |
13256 ac_sed_frag=`expr $ac_sed_frag + 1` | |
13257 ac_beg=$ac_end | |
13258 ac_end=`expr $ac_end + $ac_max_sed_lines` | |
25897 | 13259 fi |
40056 | 13260 done |
13261 if test -z "$ac_sed_cmds"; then | |
13262 ac_sed_cmds=cat | |
13263 fi | |
13264 fi # test -n "$CONFIG_FILES" | |
13265 | |
45226 | 13266 EOF |
13267 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 13268 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
25897 | 13269 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
40056 | 13270 case $ac_file in |
13271 - | *:- | *:-:* ) # input from stdin | |
13272 cat >$tmp/stdin | |
13273 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13274 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13275 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13276 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13277 * ) ac_file_in=$ac_file.in ;; | |
25897 | 13278 esac |
13279 | |
40056 | 13280 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
45226 | 13281 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
40056 | 13282 X"$ac_file" : 'X\(//\)[^/]' \| \ |
13283 X"$ac_file" : 'X\(//\)$' \| \ | |
13284 X"$ac_file" : 'X\(/\)' \| \ | |
13285 . : '\(.\)' 2>/dev/null || | |
13286 echo X"$ac_file" | | |
13287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13288 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13289 /^X\(\/\/\)$/{ s//\1/; q; } | |
13290 /^X\(\/\).*/{ s//\1/; q; } | |
13291 s/.*/./; q'` | |
45226 | 13292 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
13293 { case "$ac_dir" in | |
44994 | 13294 [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
13295 *) as_incr_dir=.;; | |
13296 esac | |
13297 as_dummy="$ac_dir" | |
13298 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
13299 case $as_mkdir_dir in | |
13300 # Skip DOS drivespec | |
13301 ?:) as_incr_dir=$as_mkdir_dir ;; | |
13302 *) | |
13303 as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
45226 | 13304 test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
44994 | 13305 ;; |
13306 esac | |
13307 done; } | |
40056 | 13308 |
45226 | 13309 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" |
13310 # A "../" for each directory in $ac_dir_suffix. | |
13311 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` | |
13312 else | |
13313 ac_dir_suffix= ac_dots= | |
13314 fi | |
13315 | |
13316 case $srcdir in | |
13317 .) ac_srcdir=. | |
13318 if test -z "$ac_dots"; then | |
13319 ac_top_srcdir=. | |
13320 else | |
13321 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | |
13322 fi ;; | |
13323 [\\/]* | ?:[\\/]* ) | |
13324 ac_srcdir=$srcdir$ac_dir_suffix; | |
13325 ac_top_srcdir=$srcdir ;; | |
25897 | 13326 *) # Relative path. |
45226 | 13327 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
13328 ac_top_srcdir=$ac_dots$srcdir ;; | |
13329 esac | |
25897 | 13330 |
40056 | 13331 case $INSTALL in |
13332 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
45226 | 13333 *) ac_INSTALL=$ac_dots$INSTALL ;; |
25897 | 13334 esac |
13335 | |
40056 | 13336 if test x"$ac_file" != x-; then |
46596 | 13337 { echo "$as_me:13337: creating $ac_file" >&5 |
40056 | 13338 echo "$as_me: creating $ac_file" >&6;} |
13339 rm -f "$ac_file" | |
13340 fi | |
13341 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13342 # use $as_me), people would be surprised to read: | |
45226 | 13343 # /* config.h. Generated automatically by config.status. */ |
13344 configure_input="Generated automatically from `echo $ac_file_in | | |
13345 sed 's,.*/,,'` by configure." | |
40056 | 13346 |
13347 # First look for the input files in the build tree, otherwise in the | |
13348 # src tree. | |
13349 ac_file_inputs=`IFS=: | |
13350 for f in $ac_file_in; do | |
13351 case $f in | |
13352 -) echo $tmp/stdin ;; | |
13353 [\\/$]*) | |
13354 # Absolute (can't be DOS-style, as IFS=:) | |
46596 | 13355 test -f "$f" || { { echo "$as_me:13355: error: cannot find input file: $f" >&5 |
40056 | 13356 echo "$as_me: error: cannot find input file: $f" >&2;} |
13357 { (exit 1); exit 1; }; } | |
13358 echo $f;; | |
13359 *) # Relative | |
13360 if test -f "$f"; then | |
13361 # Build tree | |
13362 echo $f | |
13363 elif test -f "$srcdir/$f"; then | |
13364 # Source tree | |
13365 echo $srcdir/$f | |
13366 else | |
13367 # /dev/null tree | |
46596 | 13368 { { echo "$as_me:13368: error: cannot find input file: $f" >&5 |
40056 | 13369 echo "$as_me: error: cannot find input file: $f" >&2;} |
13370 { (exit 1); exit 1; }; } | |
13371 fi;; | |
13372 esac | |
13373 done` || { (exit 1); exit 1; } | |
45226 | 13374 EOF |
13375 cat >>$CONFIG_STATUS <<EOF | |
40056 | 13376 sed "$ac_vpsub |
13377 $extrasub | |
45226 | 13378 EOF |
13379 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 13380 :t |
13381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13382 s,@configure_input@,$configure_input,;t t | |
13383 s,@srcdir@,$ac_srcdir,;t t | |
13384 s,@top_srcdir@,$ac_top_srcdir,;t t | |
13385 s,@INSTALL@,$ac_INSTALL,;t t | |
13386 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
13387 rm -f $tmp/stdin | |
13388 if test x"$ac_file" != x-; then | |
13389 mv $tmp/out $ac_file | |
13390 else | |
13391 cat $tmp/out | |
13392 rm -f $tmp/out | |
13393 fi | |
13394 | |
13395 done | |
45226 | 13396 EOF |
13397 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 13398 |
13399 # | |
13400 # CONFIG_HEADER section. | |
13401 # | |
25897 | 13402 |
13403 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
13404 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
13405 # | |
13406 # ac_d sets the value in "#define NAME VALUE" lines. | |
40056 | 13407 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
13408 ac_dB='[ ].*$,\1#\2' | |
13409 ac_dC=' ' | |
13410 ac_dD=',;t' | |
13411 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
13412 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
13413 ac_uB='$,\1#\2define\3' | |
25897 | 13414 ac_uC=' ' |
40056 | 13415 ac_uD=',;t' |
13416 | |
13417 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
25897 | 13418 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
40056 | 13419 case $ac_file in |
13420 - | *:- | *:-:* ) # input from stdin | |
13421 cat >$tmp/stdin | |
13422 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13423 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13424 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13425 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13426 * ) ac_file_in=$ac_file.in ;; | |
25897 | 13427 esac |
13428 | |
46596 | 13429 test x"$ac_file" != x- && { echo "$as_me:13429: creating $ac_file" >&5 |
40056 | 13430 echo "$as_me: creating $ac_file" >&6;} |
13431 | |
13432 # First look for the input files in the build tree, otherwise in the | |
13433 # src tree. | |
13434 ac_file_inputs=`IFS=: | |
13435 for f in $ac_file_in; do | |
13436 case $f in | |
13437 -) echo $tmp/stdin ;; | |
13438 [\\/$]*) | |
13439 # Absolute (can't be DOS-style, as IFS=:) | |
46596 | 13440 test -f "$f" || { { echo "$as_me:13440: error: cannot find input file: $f" >&5 |
40056 | 13441 echo "$as_me: error: cannot find input file: $f" >&2;} |
13442 { (exit 1); exit 1; }; } | |
13443 echo $f;; | |
13444 *) # Relative | |
13445 if test -f "$f"; then | |
13446 # Build tree | |
13447 echo $f | |
13448 elif test -f "$srcdir/$f"; then | |
13449 # Source tree | |
13450 echo $srcdir/$f | |
13451 else | |
13452 # /dev/null tree | |
46596 | 13453 { { echo "$as_me:13453: error: cannot find input file: $f" >&5 |
40056 | 13454 echo "$as_me: error: cannot find input file: $f" >&2;} |
13455 { (exit 1); exit 1; }; } | |
13456 fi;; | |
13457 esac | |
13458 done` || { (exit 1); exit 1; } | |
13459 # Remove the trailing spaces. | |
13460 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
13461 | |
45226 | 13462 EOF |
40056 | 13463 |
13464 # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
13465 # `conftest.undefs', that substitutes the proper values into | |
13466 # config.h.in to produce config.h. The first handles `#define' | |
13467 # templates, and the second `#undef' templates. | |
13468 # And first: Protect against being on the right side of a sed subst in | |
13469 # config.status. Protect against being in an unquoted here document | |
13470 # in config.status. | |
13471 rm -f conftest.defines conftest.undefs | |
13472 # Using a here document instead of a string reduces the quoting nightmare. | |
13473 # Putting comments in sed scripts is not portable. | |
13474 # | |
13475 # `end' is used to avoid that the second main sed command (meant for | |
13476 # 0-ary CPP macros) applies to n-ary macro definitions. | |
13477 # See the Autoconf documentation for `clear'. | |
45226 | 13478 cat >confdef2sed.sed <<\EOF |
40056 | 13479 s/[\\&,]/\\&/g |
13480 s,[\\$`],\\&,g | |
13481 t clear | |
13482 : clear | |
45226 | 13483 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp |
40056 | 13484 t end |
13485 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
13486 : end | |
45226 | 13487 EOF |
40056 | 13488 # If some macros were called several times there might be several times |
13489 # the same #defines, which is useless. Nevertheless, we may not want to | |
13490 # sort them, since we want the *last* AC-DEFINE to be honored. | |
13491 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
13492 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
13493 rm -f confdef2sed.sed | |
25897 | 13494 |
13495 # This sed command replaces #undef with comments. This is necessary, for | |
13496 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
13497 # on some systems where configure will not decide to define it. | |
45226 | 13498 cat >>conftest.undefs <<\EOF |
40056 | 13499 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
45226 | 13500 EOF |
40056 | 13501 |
13502 # Break up conftest.defines because some shells have a limit on the size | |
13503 # of here documents, and old seds have small limits too (100 cmds). | |
13504 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
13505 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
13506 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
13507 echo ' :' >>$CONFIG_STATUS | |
25897 | 13508 rm -f conftest.tail |
40056 | 13509 while grep . conftest.defines >/dev/null |
25897 | 13510 do |
40056 | 13511 # Write a limited-size here document to $tmp/defines.sed. |
13512 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
13513 # Speed up: don't consider the non `#define' lines. | |
13514 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
13515 # Work around the forget-to-reset-the-flag bug. | |
13516 echo 't clr' >>$CONFIG_STATUS | |
13517 echo ': clr' >>$CONFIG_STATUS | |
13518 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
25897 | 13519 echo 'CEOF |
40056 | 13520 sed -f $tmp/defines.sed $tmp/in >$tmp/out |
13521 rm -f $tmp/in | |
13522 mv $tmp/out $tmp/in | |
13523 ' >>$CONFIG_STATUS | |
13524 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
13525 rm -f conftest.defines | |
13526 mv conftest.tail conftest.defines | |
13527 done | |
13528 rm -f conftest.defines | |
13529 echo ' fi # egrep' >>$CONFIG_STATUS | |
13530 echo >>$CONFIG_STATUS | |
13531 | |
13532 # Break up conftest.undefs because some shells have a limit on the size | |
13533 # of here documents, and old seds have small limits too (100 cmds). | |
13534 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
13535 rm -f conftest.tail | |
13536 while grep . conftest.undefs >/dev/null | |
13537 do | |
13538 # Write a limited-size here document to $tmp/undefs.sed. | |
13539 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
13540 # Speed up: don't consider the non `#undef' | |
13541 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
13542 # Work around the forget-to-reset-the-flag bug. | |
13543 echo 't clr' >>$CONFIG_STATUS | |
13544 echo ': clr' >>$CONFIG_STATUS | |
13545 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
13546 echo 'CEOF | |
13547 sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
13548 rm -f $tmp/in | |
13549 mv $tmp/out $tmp/in | |
13550 ' >>$CONFIG_STATUS | |
13551 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
13552 rm -f conftest.undefs | |
13553 mv conftest.tail conftest.undefs | |
25897 | 13554 done |
40056 | 13555 rm -f conftest.undefs |
13556 | |
45226 | 13557 cat >>$CONFIG_STATUS <<\EOF |
40056 | 13558 # Let's still pretend it is `configure' which instantiates (i.e., don't |
13559 # use $as_me), people would be surprised to read: | |
45226 | 13560 # /* config.h. Generated automatically by config.status. */ |
40056 | 13561 if test x"$ac_file" = x-; then |
45226 | 13562 echo "/* Generated automatically by configure. */" >$tmp/config.h |
44493 | 13563 else |
45226 | 13564 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
40056 | 13565 fi |
13566 cat $tmp/in >>$tmp/config.h | |
13567 rm -f $tmp/in | |
13568 if test x"$ac_file" != x-; then | |
13569 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
46596 | 13570 { echo "$as_me:13570: $ac_file is unchanged" >&5 |
40056 | 13571 echo "$as_me: $ac_file is unchanged" >&6;} |
13572 else | |
45226 | 13573 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
40056 | 13574 X"$ac_file" : 'X\(//\)[^/]' \| \ |
13575 X"$ac_file" : 'X\(//\)$' \| \ | |
13576 X"$ac_file" : 'X\(/\)' \| \ | |
13577 . : '\(.\)' 2>/dev/null || | |
13578 echo X"$ac_file" | | |
13579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13580 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13581 /^X\(\/\/\)$/{ s//\1/; q; } | |
13582 /^X\(\/\).*/{ s//\1/; q; } | |
13583 s/.*/./; q'` | |
45226 | 13584 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
13585 { case "$ac_dir" in | |
44994 | 13586 [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
13587 *) as_incr_dir=.;; | |
13588 esac | |
13589 as_dummy="$ac_dir" | |
13590 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
13591 case $as_mkdir_dir in | |
13592 # Skip DOS drivespec | |
13593 ?:) as_incr_dir=$as_mkdir_dir ;; | |
13594 *) | |
13595 as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
45226 | 13596 test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
44994 | 13597 ;; |
13598 esac | |
13599 done; } | |
40056 | 13600 |
45226 | 13601 fi |
40056 | 13602 rm -f $ac_file |
13603 mv $tmp/config.h $ac_file | |
25897 | 13604 fi |
40056 | 13605 else |
13606 cat $tmp/config.h | |
13607 rm -f $tmp/config.h | |
13608 fi | |
13609 done | |
45226 | 13610 EOF |
13611 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 13612 |
13613 # | |
13614 # CONFIG_COMMANDS section. | |
13615 # | |
13616 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
13617 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
13618 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
45226 | 13619 |
40056 | 13620 case $ac_dest in |
13621 default ) | |
25897 | 13622 |
13623 ### Make the necessary directories, if they don't exist. | |
13624 for dir in etc lisp ; do | |
13625 test -d ${dir} || mkdir ${dir} | |
13626 done | |
13627 | |
13628 # Build src/Makefile from ${srcdir}/src/Makefile.c | |
13629 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
13630 # This must be done after src/config.h is built, since we rely on that file. | |
13631 | |
13632 # Now get this: Some word that is part of the ${srcdir} directory name | |
13633 # or the ${configuration} value might, just might, happen to be an | |
13634 # identifier like `sun4' or `i386' or something, and be predefined by | |
13635 # the C preprocessor to some helpful value like 1, or maybe the empty | |
13636 # string. Needless to say consequent macro substitutions are less | |
13637 # than conducive to the makefile finding the correct directory. | |
13638 undefs="`echo $top_srcdir $configuration $canonical | | |
13639 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
13640 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
13641 `" | |
13642 | |
13643 echo creating src/epaths.h | |
40256 | 13644 ${MAKE-make} epaths-force |
25897 | 13645 |
33652 | 13646 # As of 2000-11-19, newest development versions of GNU cpp preprocess |
13647 # `..' to `. .' unless invoked with -traditional | |
13648 | |
36354 | 13649 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
33652 | 13650 CPPFLAGS="$CPPFLAGS -traditional" |
13651 fi | |
13652 | |
25897 | 13653 echo creating lib-src/Makefile |
13654 ( cd lib-src | |
13655 rm -f junk.c junk1.c junk2.c | |
13656 sed -e '/start of cpp stuff/q' \ | |
13657 < Makefile.c > junk1.c | |
13658 sed -e '1,/start of cpp stuff/d'\ | |
39239 | 13659 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
25897 | 13660 < Makefile.c > junk.c |
40056 | 13661 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
25897 | 13662 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
13663 cat junk1.c junk2.c > Makefile.new | |
13664 rm -f junk.c junk1.c junk2.c | |
13665 chmod 444 Makefile.new | |
13666 mv -f Makefile.new Makefile | |
13667 ) | |
13668 | |
13669 echo creating src/Makefile | |
13670 ( cd src | |
13671 rm -f junk.c junk1.c junk2.c | |
13672 sed -e '/start of cpp stuff/q' \ | |
13673 < Makefile.c > junk1.c | |
13674 sed -e '1,/start of cpp stuff/d'\ | |
39239 | 13675 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
25897 | 13676 < Makefile.c > junk.c |
40056 | 13677 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
25897 | 13678 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
13679 cat junk1.c junk2.c > Makefile.new | |
13680 rm -f junk.c junk1.c junk2.c | |
13681 chmod 444 Makefile.new | |
13682 mv -f Makefile.new Makefile | |
13683 ) | |
13684 | |
40056 | 13685 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
25897 | 13686 echo creating src/.gdbinit |
40056 | 13687 echo source $srcdir/src/.gdbinit > src/.gdbinit |
25897 | 13688 fi |
13689 | |
13690 # This is how we know whether to re-run configure in certain cases. | |
13691 touch src/config.stamp | |
13692 | |
40056 | 13693 ;; |
13694 esac | |
13695 done | |
45226 | 13696 EOF |
13697 | |
13698 cat >>$CONFIG_STATUS <<\EOF | |
40056 | 13699 |
13700 { (exit 0); exit 0; } | |
45226 | 13701 EOF |
25897 | 13702 chmod +x $CONFIG_STATUS |
40056 | 13703 ac_clean_files=$ac_clean_files_save |
13704 | |
13705 # configure is writing to config.log, and then calls config.status. | |
13706 # config.status does its own redirection, appending to config.log. | |
13707 # Unfortunately, on DOS this fails, as config.log is still kept open | |
13708 # by configure, so config.status won't be able to write to it; its | |
13709 # output is simply discarded. So we exec the FD to /dev/null, | |
13710 # effectively closing config.log, so it can be properly (re)opened and | |
13711 # appended to by config.status. When coming back to configure, we | |
13712 # need to make the FD available again. | |
13713 if test "$no_create" != yes; then | |
13714 ac_cs_success=: | |
13715 exec 5>/dev/null | |
13716 $SHELL $CONFIG_STATUS || ac_cs_success=false | |
13717 exec 5>>config.log | |
13718 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13719 # would make configure fail if this is the last instruction. | |
13720 $ac_cs_success || { (exit 1); exit 1; } | |
13721 fi | |
13722 |