Mercurial > emacs
annotate configure @ 30053:baccf5e9ab70
* w32menu.c (w32_menu_display_help):
* xmenu.c (menu_help_callback): Use show_help_echo.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 05 Jul 2000 14:08:03 +0000 |
parents | 98af0f021739 |
children | 7c51ac7c415f |
rev | line source |
---|---|
25897 | 1 #! /bin/sh |
2 | |
3 # Guess values for system-dependent variables and create Makefiles. | |
27205 | 4 # Generated automatically using autoconf version 2.13 |
25897 | 5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
6 # | |
7 # This configure script is free software; the Free Software Foundation | |
8 # gives unlimited permission to copy, distribute and modify it. | |
9 | |
10 # Defaults: | |
11 ac_help= | |
12 ac_default_prefix=/usr/local | |
13 # Any additions from configure.in: | |
14 ac_help="$ac_help | |
25994 | 15 --without-gcc don't use GCC to compile Emacs if GCC is found" |
25897 | 16 ac_help="$ac_help |
25994 | 17 --without-pop don't support POP mail retrieval with movemail" |
25897 | 18 ac_help="$ac_help |
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
|
19 --with-kerberos support Kerberos-authenticated POP" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
20 ac_help="$ac_help |
28418
5b7b3b5d54df
* configure.in: Line up "--help" output a little better.
Ken Raeburn <raeburn@raeburn.org>
parents:
28060
diff
changeset
|
21 --with-kerberos5 support Kerberos version 5 authenticated POP" |
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
|
22 ac_help="$ac_help |
25897 | 23 --with-hesiod support Hesiod to get the POP server host" |
24 ac_help="$ac_help | |
25 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)" | |
26 ac_help="$ac_help | |
27 --with-xpm use -lXpm for displaying XPM images" | |
28 ac_help="$ac_help | |
29 --with-jpeg use -ljpeg for displaying JPEG images" | |
30 ac_help="$ac_help | |
31 --with-tiff use -ltiff for displaying TIFF images" | |
32 ac_help="$ac_help | |
33 --with-gif use -lungif for displaying GIF images" | |
34 ac_help="$ac_help | |
35 --with-png use -lpng for displaying PNG images" | |
36 ac_help="$ac_help | |
28418
5b7b3b5d54df
* configure.in: Line up "--help" output a little better.
Ken Raeburn <raeburn@raeburn.org>
parents:
28060
diff
changeset
|
37 --without-toolkit-scroll-bars |
29949 | 38 don't use Motif or Xaw3d scroll bars" |
39 ac_help="$ac_help | |
40 --without-xim don't use X11 XIM" | |
25897 | 41 ac_help="$ac_help |
42 --with-x use the X Window System" | |
29388 | 43 ac_help="$ac_help |
44 --disable-largefile omit support for large files" | |
25897 | 45 |
46 # Initialize some variables set by options. | |
47 # The variables have the same names as the options, with | |
48 # dashes changed to underlines. | |
49 build=NONE | |
50 cache_file=./config.cache | |
51 exec_prefix=NONE | |
52 host=NONE | |
53 no_create= | |
54 nonopt=NONE | |
55 no_recursion= | |
56 prefix=NONE | |
57 program_prefix=NONE | |
58 program_suffix=NONE | |
59 program_transform_name=s,x,x, | |
60 silent= | |
61 site= | |
62 srcdir= | |
63 target=NONE | |
64 verbose= | |
65 x_includes=NONE | |
66 x_libraries=NONE | |
67 bindir='${exec_prefix}/bin' | |
68 sbindir='${exec_prefix}/sbin' | |
69 libexecdir='${exec_prefix}/libexec' | |
70 datadir='${prefix}/share' | |
71 sysconfdir='${prefix}/etc' | |
72 sharedstatedir='${prefix}/com' | |
73 localstatedir='${prefix}/var' | |
74 libdir='${exec_prefix}/lib' | |
75 includedir='${prefix}/include' | |
76 oldincludedir='/usr/include' | |
77 infodir='${prefix}/info' | |
78 mandir='${prefix}/man' | |
79 | |
80 # Initialize some other variables. | |
81 subdirs= | |
82 MFLAGS= MAKEFLAGS= | |
27205 | 83 SHELL=${CONFIG_SHELL-/bin/sh} |
25897 | 84 # Maximum number of lines to put in a shell here document. |
85 ac_max_here_lines=12 | |
86 | |
87 ac_prev= | |
88 for ac_option | |
89 do | |
90 | |
91 # If the previous option needs an argument, assign it. | |
92 if test -n "$ac_prev"; then | |
93 eval "$ac_prev=\$ac_option" | |
94 ac_prev= | |
95 continue | |
96 fi | |
97 | |
98 case "$ac_option" in | |
99 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
100 *) ac_optarg= ;; | |
101 esac | |
102 | |
103 # Accept the important Cygnus configure options, so we can diagnose typos. | |
104 | |
105 case "$ac_option" in | |
106 | |
107 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
108 ac_prev=bindir ;; | |
109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
110 bindir="$ac_optarg" ;; | |
111 | |
112 -build | --build | --buil | --bui | --bu) | |
113 ac_prev=build ;; | |
114 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
115 build="$ac_optarg" ;; | |
116 | |
117 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
119 ac_prev=cache_file ;; | |
120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
122 cache_file="$ac_optarg" ;; | |
123 | |
124 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
125 ac_prev=datadir ;; | |
126 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
127 | --da=*) | |
128 datadir="$ac_optarg" ;; | |
129 | |
130 -disable-* | --disable-*) | |
131 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
132 # Reject names that are not valid shell variable names. | |
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
135 fi | |
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
137 eval "enable_${ac_feature}=no" ;; | |
138 | |
139 -enable-* | --enable-*) | |
140 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
141 # Reject names that are not valid shell variable names. | |
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
144 fi | |
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
146 case "$ac_option" in | |
147 *=*) ;; | |
148 *) ac_optarg=yes ;; | |
149 esac | |
150 eval "enable_${ac_feature}='$ac_optarg'" ;; | |
151 | |
152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
154 | --exec | --exe | --ex) | |
155 ac_prev=exec_prefix ;; | |
156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
158 | --exec=* | --exe=* | --ex=*) | |
159 exec_prefix="$ac_optarg" ;; | |
160 | |
161 -gas | --gas | --ga | --g) | |
162 # Obsolete; use --with-gas. | |
163 with_gas=yes ;; | |
164 | |
165 -help | --help | --hel | --he) | |
166 # Omit some internal or obsolete options to make the list less imposing. | |
167 # This message is too long to be a string in the A/UX 3.1 sh. | |
168 cat << EOF | |
169 Usage: configure [options] [host] | |
170 Options: [defaults in brackets after descriptions] | |
171 Configuration: | |
172 --cache-file=FILE cache test results in FILE | |
173 --help print this message | |
174 --no-create do not create output files | |
175 --quiet, --silent do not print \`checking...' messages | |
176 --version print the version of autoconf that created configure | |
177 Directory and file names: | |
178 --prefix=PREFIX install architecture-independent files in PREFIX | |
179 [$ac_default_prefix] | |
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
181 [same as prefix] | |
182 --bindir=DIR user executables in DIR [EPREFIX/bin] | |
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
185 --datadir=DIR read-only architecture-independent data in DIR | |
186 [PREFIX/share] | |
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
189 [PREFIX/com] | |
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
192 --includedir=DIR C header files in DIR [PREFIX/include] | |
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
194 --infodir=DIR info documentation in DIR [PREFIX/info] | |
195 --mandir=DIR man documentation in DIR [PREFIX/man] | |
196 --srcdir=DIR find the sources in DIR [configure dir or ..] | |
197 --program-prefix=PREFIX prepend PREFIX to installed program names | |
198 --program-suffix=SUFFIX append SUFFIX to installed program names | |
199 --program-transform-name=PROGRAM | |
200 run sed PROGRAM on installed program names | |
201 EOF | |
202 cat << EOF | |
203 Host type: | |
204 --build=BUILD configure for building on BUILD [BUILD=HOST] | |
205 --host=HOST configure for HOST [guessed] | |
206 --target=TARGET configure for TARGET [TARGET=HOST] | |
207 Features and packages: | |
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
212 --x-includes=DIR X include files are in DIR | |
213 --x-libraries=DIR X library files are in DIR | |
214 EOF | |
215 if test -n "$ac_help"; then | |
216 echo "--enable and --with options recognized:$ac_help" | |
217 fi | |
218 exit 0 ;; | |
219 | |
220 -host | --host | --hos | --ho) | |
221 ac_prev=host ;; | |
222 -host=* | --host=* | --hos=* | --ho=*) | |
223 host="$ac_optarg" ;; | |
224 | |
225 -includedir | --includedir | --includedi | --included | --include \ | |
226 | --includ | --inclu | --incl | --inc) | |
227 ac_prev=includedir ;; | |
228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
229 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
230 includedir="$ac_optarg" ;; | |
231 | |
232 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
233 ac_prev=infodir ;; | |
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
235 infodir="$ac_optarg" ;; | |
236 | |
237 -libdir | --libdir | --libdi | --libd) | |
238 ac_prev=libdir ;; | |
239 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
240 libdir="$ac_optarg" ;; | |
241 | |
242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
243 | --libexe | --libex | --libe) | |
244 ac_prev=libexecdir ;; | |
245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
246 | --libexe=* | --libex=* | --libe=*) | |
247 libexecdir="$ac_optarg" ;; | |
248 | |
249 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
250 | --localstate | --localstat | --localsta | --localst \ | |
251 | --locals | --local | --loca | --loc | --lo) | |
252 ac_prev=localstatedir ;; | |
253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
256 localstatedir="$ac_optarg" ;; | |
257 | |
258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
259 ac_prev=mandir ;; | |
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
261 mandir="$ac_optarg" ;; | |
262 | |
263 -nfp | --nfp | --nf) | |
264 # Obsolete; use --without-fp. | |
265 with_fp=no ;; | |
266 | |
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
268 | --no-cr | --no-c) | |
269 no_create=yes ;; | |
270 | |
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
273 no_recursion=yes ;; | |
274 | |
275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
277 | --oldin | --oldi | --old | --ol | --o) | |
278 ac_prev=oldincludedir ;; | |
279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
282 oldincludedir="$ac_optarg" ;; | |
283 | |
284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
285 ac_prev=prefix ;; | |
286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
287 prefix="$ac_optarg" ;; | |
288 | |
289 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
290 | --program-pre | --program-pr | --program-p) | |
291 ac_prev=program_prefix ;; | |
292 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
294 program_prefix="$ac_optarg" ;; | |
295 | |
296 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
297 | --program-suf | --program-su | --program-s) | |
298 ac_prev=program_suffix ;; | |
299 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
301 program_suffix="$ac_optarg" ;; | |
302 | |
303 -program-transform-name | --program-transform-name \ | |
304 | --program-transform-nam | --program-transform-na \ | |
305 | --program-transform-n | --program-transform- \ | |
306 | --program-transform | --program-transfor \ | |
307 | --program-transfo | --program-transf \ | |
308 | --program-trans | --program-tran \ | |
309 | --progr-tra | --program-tr | --program-t) | |
310 ac_prev=program_transform_name ;; | |
311 -program-transform-name=* | --program-transform-name=* \ | |
312 | --program-transform-nam=* | --program-transform-na=* \ | |
313 | --program-transform-n=* | --program-transform-=* \ | |
314 | --program-transform=* | --program-transfor=* \ | |
315 | --program-transfo=* | --program-transf=* \ | |
316 | --program-trans=* | --program-tran=* \ | |
317 | --progr-tra=* | --program-tr=* | --program-t=*) | |
318 program_transform_name="$ac_optarg" ;; | |
319 | |
320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
321 | -silent | --silent | --silen | --sile | --sil) | |
322 silent=yes ;; | |
323 | |
324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
325 ac_prev=sbindir ;; | |
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
327 | --sbi=* | --sb=*) | |
328 sbindir="$ac_optarg" ;; | |
329 | |
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
332 | --sharedst | --shareds | --shared | --share | --shar \ | |
333 | --sha | --sh) | |
334 ac_prev=sharedstatedir ;; | |
335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
338 | --sha=* | --sh=*) | |
339 sharedstatedir="$ac_optarg" ;; | |
340 | |
341 -site | --site | --sit) | |
342 ac_prev=site ;; | |
343 -site=* | --site=* | --sit=*) | |
344 site="$ac_optarg" ;; | |
345 | |
346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
347 ac_prev=srcdir ;; | |
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
349 srcdir="$ac_optarg" ;; | |
350 | |
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
352 | --syscon | --sysco | --sysc | --sys | --sy) | |
353 ac_prev=sysconfdir ;; | |
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
356 sysconfdir="$ac_optarg" ;; | |
357 | |
358 -target | --target | --targe | --targ | --tar | --ta | --t) | |
359 ac_prev=target ;; | |
360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
361 target="$ac_optarg" ;; | |
362 | |
363 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
364 verbose=yes ;; | |
365 | |
366 -version | --version | --versio | --versi | --vers) | |
27205 | 367 echo "configure generated by autoconf version 2.13" |
25897 | 368 exit 0 ;; |
369 | |
370 -with-* | --with-*) | |
371 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
372 # Reject names that are not valid shell variable names. | |
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
375 fi | |
376 ac_package=`echo $ac_package| sed 's/-/_/g'` | |
377 case "$ac_option" in | |
378 *=*) ;; | |
379 *) ac_optarg=yes ;; | |
380 esac | |
381 eval "with_${ac_package}='$ac_optarg'" ;; | |
382 | |
383 -without-* | --without-*) | |
384 ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
385 # Reject names that are not valid shell variable names. | |
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
388 fi | |
389 ac_package=`echo $ac_package| sed 's/-/_/g'` | |
390 eval "with_${ac_package}=no" ;; | |
391 | |
392 --x) | |
393 # Obsolete; use --with-x. | |
394 with_x=yes ;; | |
395 | |
396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
397 | --x-incl | --x-inc | --x-in | --x-i) | |
398 ac_prev=x_includes ;; | |
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
401 x_includes="$ac_optarg" ;; | |
402 | |
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
405 ac_prev=x_libraries ;; | |
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
408 x_libraries="$ac_optarg" ;; | |
409 | |
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
411 ;; | |
412 | |
413 *) | |
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
415 echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
416 fi | |
417 if test "x$nonopt" != xNONE; then | |
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
419 fi | |
420 nonopt="$ac_option" | |
421 ;; | |
422 | |
423 esac | |
424 done | |
425 | |
426 if test -n "$ac_prev"; then | |
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
428 fi | |
429 | |
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
431 | |
432 # File descriptor usage: | |
433 # 0 standard input | |
434 # 1 file creation | |
435 # 2 errors and warnings | |
436 # 3 some systems may open it to /dev/tty | |
437 # 4 used on the Kubota Titan | |
438 # 6 checking for... messages and results | |
439 # 5 compiler messages saved in config.log | |
440 if test "$silent" = yes; then | |
441 exec 6>/dev/null | |
442 else | |
443 exec 6>&1 | |
444 fi | |
445 exec 5>./config.log | |
446 | |
447 echo "\ | |
448 This file contains any messages produced by compilers while | |
449 running configure, to aid debugging if configure makes a mistake. | |
450 " 1>&5 | |
451 | |
452 # Strip out --no-create and --no-recursion so they do not pile up. | |
453 # Also quote any args containing shell metacharacters. | |
454 ac_configure_args= | |
455 for ac_arg | |
456 do | |
457 case "$ac_arg" in | |
458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
459 | --no-cr | --no-c) ;; | |
460 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
461 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
463 ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
464 *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
465 esac | |
466 done | |
467 | |
468 # NLS nuisances. | |
469 # Only set these to C if already set. These must not be set unconditionally | |
470 # because not all systems understand e.g. LANG=C (notably SCO). | |
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
472 # Non-C LC_CTYPE values break the ctype check. | |
473 if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
474 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
477 | |
478 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
479 rm -rf conftest* confdefs.h | |
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
481 echo > confdefs.h | |
482 | |
483 # A filename unique to this package, relative to the directory that | |
484 # configure is in, which we can look for to find out if srcdir is correct. | |
485 ac_unique_file=src/lisp.h | |
486 | |
487 # Find the source files, if location was not specified. | |
488 if test -z "$srcdir"; then | |
489 ac_srcdir_defaulted=yes | |
490 # Try the directory containing this script, then its parent. | |
491 ac_prog=$0 | |
492 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
494 srcdir=$ac_confdir | |
495 if test ! -r $srcdir/$ac_unique_file; then | |
496 srcdir=.. | |
497 fi | |
498 else | |
499 ac_srcdir_defaulted=no | |
500 fi | |
501 if test ! -r $srcdir/$ac_unique_file; then | |
502 if test "$ac_srcdir_defaulted" = yes; then | |
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
504 else | |
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
506 fi | |
507 fi | |
508 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
509 | |
510 # Prefer explicitly selected file to automatically selected ones. | |
511 if test -z "$CONFIG_SITE"; then | |
512 if test "x$prefix" != xNONE; then | |
513 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
514 else | |
515 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
516 fi | |
517 fi | |
518 for ac_site_file in $CONFIG_SITE; do | |
519 if test -r "$ac_site_file"; then | |
520 echo "loading site script $ac_site_file" | |
521 . "$ac_site_file" | |
522 fi | |
523 done | |
524 | |
525 if test -r "$cache_file"; then | |
526 echo "loading cache $cache_file" | |
527 . $cache_file | |
528 else | |
529 echo "creating cache $cache_file" | |
530 > $cache_file | |
531 fi | |
532 | |
533 ac_ext=c | |
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
535 ac_cpp='$CPP $CPPFLAGS' | |
536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
27205 | 537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
25897 | 538 cross_compiling=$ac_cv_prog_cc_cross |
539 | |
27205 | 540 ac_exeext= |
541 ac_objext=o | |
25897 | 542 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
544 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
545 ac_n= ac_c=' | |
546 ' ac_t=' ' | |
547 else | |
548 ac_n=-n ac_c= ac_t= | |
549 fi | |
550 else | |
551 ac_n= ac_c='\c' ac_t= | |
552 fi | |
553 | |
554 | |
555 | |
556 | |
557 lispdir='${datadir}/emacs/${version}/lisp' | |
558 locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
559 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
560 lisppath='${locallisppath}:${lispdir}' | |
561 etcdir='${datadir}/emacs/${version}/etc' | |
562 archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
563 docdir='${datadir}/emacs/${version}/etc' | |
564 | |
565 # Check whether --with-gcc or --without-gcc was given. | |
566 if test "${with_gcc+set}" = set; then | |
567 withval="$with_gcc" | |
568 : | |
569 fi | |
570 | |
571 # Check whether --with-pop or --without-pop was given. | |
572 if test "${with_pop+set}" = set; then | |
573 withval="$with_pop" | |
25994 | 574 if test "$withval" = yes; then |
575 cat >> confdefs.h <<\EOF | |
25897 | 576 #define MAIL_USE_POP 1 |
577 EOF | |
578 | |
25994 | 579 else : |
580 fi | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
581 else |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
582 cat >> confdefs.h <<\EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
583 #define MAIL_USE_POP 1 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
584 EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
585 |
25897 | 586 fi |
587 | |
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
|
588 # 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
|
589 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
|
590 withval="$with_kerberos" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
591 cat >> confdefs.h <<\EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
592 #define KERBEROS 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
593 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
594 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
595 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
|
596 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
597 # 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
|
598 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
|
599 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
|
600 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
|
601 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
|
602 with_kerberos=yes |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
603 cat >> confdefs.h <<\EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
604 #define KERBEROS 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
605 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
606 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
607 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
|
608 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
|
609 cat >> confdefs.h <<\EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
610 #define KERBEROS5 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
611 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
612 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
613 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
|
614 |
25897 | 615 # Check whether --with-hesiod or --without-hesiod was given. |
616 if test "${with_hesiod+set}" = set; then | |
617 withval="$with_hesiod" | |
618 cat >> confdefs.h <<\EOF | |
619 #define HESIOD 1 | |
620 EOF | |
621 | |
622 fi | |
623 | |
624 # Check whether --with-x-toolkit or --without-x-toolkit was given. | |
625 if test "${with_x_toolkit+set}" = set; then | |
626 withval="$with_x_toolkit" | |
627 case "${withval}" in | |
628 y | ye | yes ) val=athena ;; | |
629 n | no ) val=no ;; | |
630 l | lu | luc | luci | lucid ) val=lucid ;; | |
631 a | at | ath | athe | athen | athena ) val=athena ;; | |
632 m | mo | mot | moti | motif ) val=motif ;; | |
633 * ) | |
634 { echo "configure: error: \`--with-x-toolkit=$withval' is invalid\; | |
635 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | |
636 Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; } | |
637 ;; | |
638 esac | |
639 with_x_toolkit=$val | |
640 | |
641 fi | |
642 | |
643 # Check whether --with-xpm or --without-xpm was given. | |
644 if test "${with_xpm+set}" = set; then | |
645 withval="$with_xpm" | |
646 : | |
647 fi | |
648 | |
649 # Check whether --with-jpeg or --without-jpeg was given. | |
650 if test "${with_jpeg+set}" = set; then | |
651 withval="$with_jpeg" | |
652 : | |
653 fi | |
654 | |
655 # Check whether --with-tiff or --without-tiff was given. | |
656 if test "${with_tiff+set}" = set; then | |
657 withval="$with_tiff" | |
658 : | |
659 fi | |
660 | |
661 # Check whether --with-gif or --without-gif was given. | |
662 if test "${with_gif+set}" = set; then | |
663 withval="$with_gif" | |
664 : | |
665 fi | |
666 | |
667 # Check whether --with-png or --without-png was given. | |
668 if test "${with_png+set}" = set; then | |
669 withval="$with_png" | |
670 : | |
671 fi | |
672 | |
673 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. | |
674 if test "${with_toolkit_scroll_bars+set}" = set; then | |
675 withval="$with_toolkit_scroll_bars" | |
676 : | |
677 fi | |
678 | |
29949 | 679 # Check whether --with-xim or --without-xim was given. |
680 if test "${with_xim+set}" = set; then | |
681 withval="$with_xim" | |
682 : | |
683 fi | |
684 | |
25897 | 685 |
686 #### Make srcdir absolute, if it isn't already. It's important to | |
687 #### avoid running the path through pwd unnecessary, since pwd can | |
688 #### give you automounter prefixes, which can go away. We do all this | |
689 #### so Emacs can find its files when run uninstalled. | |
690 case "${srcdir}" in | |
691 /* ) ;; | |
692 . ) | |
693 ## We may be able to use the $PWD environment variable to make this | |
694 ## absolute. But sometimes PWD is inaccurate. | |
695 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). | |
696 unset CDPATH | |
697 if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ; | |
698 then | |
699 srcdir="$PWD" | |
700 else | |
701 srcdir="`(cd ${srcdir}; pwd)`" | |
702 fi | |
703 ;; | |
704 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
705 esac | |
706 | |
707 #### Check if the source directory already has a configured system in it. | |
708 if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
709 && test -f "${srcdir}/src/config.h" ; then | |
710 echo "configure: warning: The directory tree \`${srcdir}' is being used | |
711 as a build directory right now; it has been configured in its own | |
712 right. To configure in another directory as well, you MUST | |
713 use GNU make. If you do not have GNU make, then you must | |
714 now do \`make distclean' in ${srcdir}, | |
715 and then run $0 again." 1>&2 | |
716 | |
717 extrasub='/^VPATH[ ]*=/c\ | |
718 vpath %.c $(srcdir)\ | |
719 vpath %.h $(srcdir)\ | |
720 vpath %.y $(srcdir)\ | |
721 vpath %.l $(srcdir)\ | |
722 vpath %.s $(srcdir)\ | |
723 vpath %.in $(srcdir)\ | |
724 vpath %.texi $(srcdir)' | |
725 fi | |
726 | |
727 #### Given the configuration name, set machfile and opsysfile to the | |
728 #### names of the m/*.h and s/*.h files we should use. | |
729 | |
730 ### Canonicalize the configuration name. | |
731 | |
732 ac_aux_dir= | |
733 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
734 if test -f $ac_dir/install-sh; then | |
735 ac_aux_dir=$ac_dir | |
736 ac_install_sh="$ac_aux_dir/install-sh -c" | |
737 break | |
738 elif test -f $ac_dir/install.sh; then | |
739 ac_aux_dir=$ac_dir | |
740 ac_install_sh="$ac_aux_dir/install.sh -c" | |
741 break | |
742 fi | |
743 done | |
744 if test -z "$ac_aux_dir"; then | |
745 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
746 fi | |
747 ac_config_guess=$ac_aux_dir/config.guess | |
748 ac_config_sub=$ac_aux_dir/config.sub | |
749 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
750 | |
751 | |
752 # Make sure we can run config.sub. | |
27205 | 753 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
25897 | 754 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
755 fi | |
756 | |
757 echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
29949 | 758 echo "configure:759: checking host system type" >&5 |
25897 | 759 |
760 host_alias=$host | |
761 case "$host_alias" in | |
762 NONE) | |
763 case $nonopt in | |
764 NONE) | |
27205 | 765 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
25897 | 766 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
767 fi ;; | |
768 *) host_alias=$nonopt ;; | |
769 esac ;; | |
770 esac | |
771 | |
27205 | 772 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
25897 | 773 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
774 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
775 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
776 echo "$ac_t""$host" 1>&6 | |
777 | |
778 canonical=$host | |
779 configuration=$host_alias | |
780 | |
781 | |
782 ### If you add support for a new configuration, add code to this | |
783 ### switch statement to recognize your configuration name and select | |
784 ### the appropriate operating system and machine description files. | |
785 | |
786 ### You would hope that you could choose an m/*.h file pretty much | |
787 ### based on the machine portion of the configuration name, and an s- | |
788 ### file based on the operating system portion. However, it turns out | |
789 ### that each m/*.h file is pretty manufacturer-specific - for | |
790 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
791 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
792 ### machines. So we basically have to have a special case for each | |
793 ### configuration name. | |
794 ### | |
795 ### As far as handling version numbers on operating systems is | |
796 ### concerned, make sure things will fail in a fixable way. If | |
797 ### /etc/MACHINES doesn't say anything about version numbers, be | |
798 ### prepared to handle anything reasonably. If version numbers | |
799 ### matter, be sure /etc/MACHINES says something about it. | |
800 ### | |
801 ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
802 ### "System V Release 4"; he writes, "The old convention encouraged | |
803 ### confusion between `system' and `release' levels'." | |
804 | |
805 machine='' opsys='' unported=no | |
806 case "${canonical}" in | |
807 | |
808 ## NetBSD ports | |
809 *-*-netbsd* ) | |
810 opsys=netbsd | |
811 case "${canonical}" in | |
812 alpha*-*-netbsd*) machine=alpha ;; | |
813 i[3456]86-*-netbsd*) machine=intel386 ;; | |
814 m68k-*-netbsd*) | |
815 # This is somewhat bogus. | |
816 machine=hp9000s300 ;; | |
817 powerpc-apple-netbsd*) machine=macppc ;; | |
818 mips-*-netbsd*) machine=pmax ;; | |
27927 | 819 mipsel-*-netbsd*) machine=pmax ;; |
25897 | 820 ns32k-*-netbsd*) machine=ns32000 ;; |
28674 | 821 powerpc-*-netbsd*) machine=macppc ;; |
25897 | 822 sparc-*-netbsd*) machine=sparc ;; |
823 vax-*-netbsd*) machine=vax ;; | |
27927 | 824 arm-*-netbsd*) machine=arm ;; |
25897 | 825 esac |
826 ;; | |
827 | |
828 ## OpenBSD ports | |
829 *-*-openbsd* ) | |
830 opsys=openbsd | |
831 case "${canonical}" in | |
832 alpha*-*-openbsd*) machine=alpha ;; | |
833 i386-*-openbsd*) machine=intel386 ;; | |
834 m68k-*-openbsd*) machine=hp9000s300 ;; | |
835 mipsel-*-openbsd*) machine=pmax ;; | |
836 ns32k-*-openbsd*) machine=ns32000 ;; | |
837 sparc-*-openbsd*) machine=sparc ;; | |
838 vax-*-openbsd*) machine=vax ;; | |
839 esac | |
840 ;; | |
841 | |
842 ## Acorn RISCiX: | |
843 arm-acorn-riscix1.1* ) | |
844 machine=acorn opsys=riscix1-1 | |
845 ;; | |
846 arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
847 ## This name is riscix12 instead of riscix1.2 | |
848 ## to avoid a file name conflict on MSDOS. | |
849 machine=acorn opsys=riscix12 | |
850 ;; | |
851 | |
852 ## BSDI ports | |
853 *-*-bsdi* ) | |
854 opsys=bsdi | |
855 case "${canonical}" in | |
856 i[345]86-*-bsdi*) machine=intel386 ;; | |
857 sparc-*-bsdi*) machine=sparc ;; | |
858 powerpc-*-bsdi*) machine=powerpc ;; | |
859 esac | |
860 case "${canonical}" in | |
861 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
862 *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
863 *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
864 *-*-bsdi3* ) opsys=bsdos3 ;; | |
865 *-*-bsdi4* ) opsys=bsdos4 ;; | |
866 esac | |
867 ;; | |
868 | |
869 ## Alliant machines | |
870 ## Strictly speaking, we need the version of the alliant operating | |
871 ## system to choose the right machine file, but currently the | |
872 ## configuration name doesn't tell us enough to choose the right | |
873 ## one; we need to give alliants their own operating system name to | |
874 ## do this right. When someone cares, they can help us. | |
875 fx80-alliant-* ) | |
876 machine=alliant4 opsys=bsd4-2 | |
877 ;; | |
878 i860-alliant-* ) | |
879 machine=alliant-2800 opsys=bsd4-3 | |
880 ;; | |
881 | |
882 ## Alpha (DEC) machines. | |
883 alpha*-dec-osf* ) | |
884 machine=alpha opsys=osf1 | |
885 # This is needed to find X11R6.1 libraries for certain tests. | |
886 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
887 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
27883 | 888 case "${canonical}" in |
889 # This is necessary on 5.0 to avoid mangling src/Makefile. | |
890 # Separated out in case it causes problems on earlier versions. | |
891 alpha*-dec-osf[5-9]*) | |
29834 | 892 opsys=osf5-0 |
29654 | 893 NON_GNU_CPP='cpp' ;; |
27883 | 894 esac |
25897 | 895 ;; |
896 | |
897 alpha*-*-linux-gnu* ) | |
898 machine=alpha opsys=gnu-linux | |
899 ;; | |
900 | |
27205 | 901 arm*-*-linux-gnu* ) |
902 machine=arm opsys=gnu-linux | |
903 ;; | |
904 | |
905 ppc-*-linux | \ | |
906 powerpc-*-linux* ) | |
907 machine=powerpc opsys=gnu-linux | |
908 ;; | |
909 | |
25897 | 910 ## Altos 3068 |
911 m68*-altos-sysv* ) | |
912 machine=altos opsys=usg5-2 | |
913 ;; | |
914 | |
915 ## Amdahl UTS | |
916 580-amdahl-sysv* ) | |
917 machine=amdahl opsys=usg5-2-2 | |
918 ;; | |
919 | |
920 ## Apollo, Domain/OS | |
921 m68*-apollo-* ) | |
922 machine=apollo opsys=bsd4-3 | |
923 ;; | |
924 | |
925 ## AT&T 3b2, 3b5, 3b15, 3b20 | |
926 we32k-att-sysv* ) | |
927 machine=att3b opsys=usg5-2-2 | |
928 ;; | |
929 | |
930 ## AT&T 3b1 - The Mighty Unix PC! | |
931 m68*-att-sysv* ) | |
932 machine=7300 opsys=usg5-2-2 | |
933 ;; | |
934 | |
935 ## Bull dpx20 | |
936 rs6000-bull-bosx* ) | |
937 machine=ibmrs6000 opsys=aix3-2 | |
938 ;; | |
939 | |
940 ## Bull dpx2 | |
941 m68*-bull-sysv3* ) | |
942 machine=dpx2 opsys=usg5-3 | |
943 ;; | |
944 | |
945 ## Bull sps7 | |
946 m68*-bull-sysv2* ) | |
947 machine=sps7 opsys=usg5-2 | |
948 ;; | |
949 | |
950 ## CCI 5/32, 6/32 -- see "Tahoe". | |
951 | |
952 ## Celerity | |
953 ## I don't know what configuration name to use for this; config.sub | |
954 ## doesn't seem to know anything about it. Hey, Celerity users, get | |
955 ## in touch with us! | |
956 celerity-celerity-bsd* ) | |
957 machine=celerity opsys=bsd4-2 | |
958 ;; | |
959 | |
960 ## Clipper | |
961 ## What operating systems does this chip run that Emacs has been | |
962 ## tested on? | |
963 clipper-* ) | |
964 machine=clipper | |
965 ## We'll use the catch-all code at the bottom to guess the | |
966 ## operating system. | |
967 ;; | |
968 | |
969 ## Convex | |
970 *-convex-bsd* | *-convex-convexos* ) | |
971 machine=convex opsys=bsd4-3 | |
972 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
973 NON_GNU_CPP="cc -E -P" | |
974 ;; | |
975 | |
976 ## Cubix QBx/386 | |
977 i[3456]86-cubix-sysv* ) | |
978 machine=intel386 opsys=usg5-3 | |
979 ;; | |
980 | |
981 ## Cydra 5 | |
982 cydra*-cydrome-sysv* ) | |
983 machine=cydra5 opsys=usg5-3 | |
984 ;; | |
985 | |
986 ## Data General AViiON Machines | |
987 ## DG changed naming conventions with the release of 5.4.4.10, they | |
988 ## dropped the initial 5.4 but left the intervening R. Because of the | |
989 ## R this shouldn't conflict with older versions of the OS (which I | |
990 ## think were named like dgux4.*). In addition, DG new AViiONs series | |
991 ## uses either Motorola M88k or Intel Pentium CPUs. | |
992 m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
993 machine=aviion opsys=dgux4 | |
994 ;; | |
995 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
996 ## This name is dgux5-4-3 instead of dgux5-4r3 | |
997 ## to avoid a file name conflict on MSDOS. | |
998 machine=aviion opsys=dgux5-4-3 | |
999 ;; | |
1000 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
1001 machine=aviion opsys=dgux5-4r2 | |
1002 ;; | |
1003 m88k-dg-dgux* ) | |
1004 machine=aviion opsys=dgux | |
1005 ;; | |
1006 | |
1007 ## Data General AViiON Intel (x86) Machines | |
1008 ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
1009 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
1010 i[345]86-dg-dguxR4* ) | |
1011 machine=aviion-intel opsys=dgux4 | |
1012 ;; | |
1013 | |
1014 ## DECstations | |
1015 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1016 machine=pmax opsys=bsd4-2 | |
1017 ;; | |
1018 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1019 machine=pmax opsys=bsd4-3 | |
1020 ;; | |
1021 mips-dec-ultrix* ) | |
1022 machine=pmax opsys=ultrix4-3 | |
1023 ;; | |
1024 mips-dec-osf* ) | |
1025 machine=pmax opsys=osf1 | |
1026 ;; | |
1027 mips-dec-mach_bsd4.3* ) | |
1028 machine=pmax opsys=mach-bsd4-3 | |
1029 ;; | |
1030 | |
1031 ## Motorola Delta machines | |
1032 m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1033 machine=delta opsys=usg5-3 | |
1034 if test -z "`type gnucc | grep 'not found'`" | |
1035 then | |
1036 if test -s /etc/167config | |
1037 then CC="gnucc -m68040" | |
1038 else CC="gnucc -m68881" | |
1039 fi | |
1040 else | |
1041 if test -z "`type gcc | grep 'not found'`" | |
1042 then CC=gcc | |
1043 else CC=cc | |
1044 fi | |
1045 fi | |
1046 ;; | |
1047 m88k-motorola-sysv4* ) | |
1048 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1049 # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1050 # I hope there are not other 4.0 versions for this machine | |
1051 # which really need usg5-4 instead. | |
1052 machine=delta88k opsys=usg5-4-2 | |
1053 ;; | |
1054 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1055 machine=delta88k opsys=usg5-3 | |
1056 ;; | |
1057 | |
1058 ## Dual machines | |
1059 m68*-dual-sysv* ) | |
1060 machine=dual opsys=usg5-2 | |
1061 ;; | |
1062 m68*-dual-uniplus* ) | |
1063 machine=dual opsys=unipl5-2 | |
1064 ;; | |
1065 | |
1066 ## Elxsi 6400 | |
1067 elxsi-elxsi-sysv* ) | |
1068 machine=elxsi opsys=usg5-2 | |
1069 ;; | |
1070 | |
1071 ## Encore machines | |
1072 ns16k-encore-bsd* ) | |
1073 machine=ns16000 opsys=umax | |
1074 ;; | |
1075 | |
1076 ## The GEC 93 - apparently, this port isn't really finished yet. | |
1077 | |
1078 ## Gould Power Node and NP1 | |
1079 pn-gould-bsd4.2* ) | |
1080 machine=gould opsys=bsd4-2 | |
1081 ;; | |
1082 pn-gould-bsd4.3* ) | |
1083 machine=gould opsys=bsd4-3 | |
1084 ;; | |
1085 np1-gould-bsd* ) | |
1086 machine=gould-np1 opsys=bsd4-3 | |
1087 ;; | |
1088 | |
1089 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
1090 ## as far as Emacs is concerned). | |
1091 m88k-harris-cxux* ) | |
1092 # Build needs to be different on 7.0 and later releases | |
1093 case "`uname -r`" in | |
1094 [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
1095 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
1096 esac | |
1097 NON_GNU_CPP="/lib/cpp" | |
1098 ;; | |
1099 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
1100 m68k-harris-cxux* ) | |
1101 machine=nh3000 opsys=cxux | |
1102 ;; | |
1103 ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
1104 powerpc-harris-powerunix ) | |
1105 machine=nh6000 opsys=powerunix | |
1106 NON_GNU_CPP="cc -Xo -E -P" | |
1107 ;; | |
1108 ## SR2001/SR2201 running HI-UX/MPP | |
1109 hppa1.1-hitachi-hiuxmpp* ) | |
1110 machine=sr2k opsys=hiuxmpp | |
1111 ;; | |
1112 ## Honeywell XPS100 | |
1113 xps*-honeywell-sysv* ) | |
1114 machine=xps100 opsys=usg5-2 | |
1115 ;; | |
1116 | |
1117 ## HP 9000 series 200 or 300 | |
1118 m68*-hp-bsd* ) | |
1119 machine=hp9000s300 opsys=bsd4-3 | |
1120 ;; | |
1121 ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
1122 m68*-hp-hpux* ) | |
1123 case "`uname -r`" in | |
1124 ## Someone's system reports A.B8.05 for this. | |
1125 ## I wonder what other possibilities there are. | |
1126 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1127 *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1128 *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
1129 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
1130 *) machine=hp9000s300 opsys=hpux ;; | |
1131 esac | |
1132 ;; | |
1133 | |
1134 ## HP 9000 series 700 and 800, running HP/UX | |
1135 hppa*-hp-hpux7* ) | |
1136 machine=hp800 opsys=hpux | |
1137 ;; | |
1138 hppa*-hp-hpux8* ) | |
1139 machine=hp800 opsys=hpux8 | |
1140 ;; | |
1141 hppa*-hp-hpux9shr* ) | |
1142 machine=hp800 opsys=hpux9shr | |
1143 ;; | |
1144 hppa*-hp-hpux9* ) | |
1145 machine=hp800 opsys=hpux9 | |
1146 ;; | |
1147 hppa*-hp-hpux1[0-9]* ) | |
1148 machine=hp800 opsys=hpux10 | |
1149 ;; | |
1150 | |
1151 ## HP 9000 series 700 and 800, running HP/UX | |
1152 hppa*-hp-hpux* ) | |
1153 ## Cross-compilation? Nah! | |
1154 case "`uname -r`" in | |
1155 ## Someone's system reports A.B8.05 for this. | |
1156 ## I wonder what other possibilities there are. | |
1157 *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
1158 *.08.* ) machine=hp800 opsys=hpux8 ;; | |
1159 *.09.* ) machine=hp800 opsys=hpux9 ;; | |
1160 *) machine=hp800 opsys=hpux10 ;; | |
1161 esac | |
1162 ;; | |
1163 hppa*-*-nextstep* ) | |
1164 machine=hp800 opsys=nextstep | |
1165 ;; | |
1166 | |
1167 ## Orion machines | |
1168 orion-orion-bsd* ) | |
1169 machine=orion opsys=bsd4-2 | |
1170 ;; | |
1171 clipper-orion-bsd* ) | |
1172 machine=orion105 opsys=bsd4-2 | |
1173 ;; | |
1174 | |
1175 ## IBM machines | |
1176 i[3456]86-ibm-aix1.1* ) | |
1177 machine=ibmps2-aix opsys=usg5-2-2 | |
1178 ;; | |
1179 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
1180 machine=ibmps2-aix opsys=usg5-3 | |
1181 ;; | |
1182 i370-ibm-aix*) | |
1183 machine=ibm370aix opsys=usg5-3 | |
1184 ;; | |
1185 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) | |
1186 machine=ibmrs6000 opsys=aix3-1 | |
1187 ;; | |
1188 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
1189 machine=ibmrs6000 opsys=aix3-2-5 | |
1190 ;; | |
1191 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
1192 machine=ibmrs6000 opsys=aix4-1 | |
1193 ;; | |
1194 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
1195 machine=ibmrs6000 opsys=aix4-2 | |
1196 ;; | |
1197 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) | |
1198 machine=ibmrs6000 opsys=aix4 | |
1199 ;; | |
1200 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
1201 machine=ibmrs6000 opsys=aix4-1 | |
1202 ;; | |
1203 rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
1204 machine=ibmrs6000 opsys=aix3-2 | |
1205 ;; | |
1206 romp-ibm-bsd4.3* ) | |
1207 machine=ibmrt opsys=bsd4-3 | |
1208 ;; | |
1209 romp-ibm-bsd4.2* ) | |
1210 machine=ibmrt opsys=bsd4-2 | |
1211 ;; | |
1212 romp-ibm-aos4.3* ) | |
1213 machine=ibmrt opsys=bsd4-3 | |
1214 ;; | |
1215 romp-ibm-aos4.2* ) | |
1216 machine=ibmrt opsys=bsd4-2 | |
1217 ;; | |
1218 romp-ibm-aos* ) | |
1219 machine=ibmrt opsys=bsd4-3 | |
1220 ;; | |
1221 romp-ibm-bsd* ) | |
1222 machine=ibmrt opsys=bsd4-3 | |
1223 ;; | |
1224 romp-ibm-aix* ) | |
1225 machine=ibmrt-aix opsys=usg5-2-2 | |
1226 ;; | |
1227 | |
1228 ## Integrated Solutions `Optimum V' | |
1229 m68*-isi-bsd4.2* ) | |
1230 machine=isi-ov opsys=bsd4-2 | |
1231 ;; | |
1232 m68*-isi-bsd4.3* ) | |
1233 machine=isi-ov opsys=bsd4-3 | |
1234 ;; | |
1235 | |
1236 ## Intel 386 machines where we do care about the manufacturer | |
1237 i[3456]86-intsys-sysv* ) | |
1238 machine=is386 opsys=usg5-2-2 | |
1239 ;; | |
1240 | |
1241 ## Prime EXL | |
1242 i[3456]86-prime-sysv* ) | |
1243 machine=i386 opsys=usg5-3 | |
1244 ;; | |
1245 | |
1246 ## Sequent Symmetry running Dynix | |
1247 i[3456]86-sequent-bsd* ) | |
1248 machine=symmetry opsys=bsd4-3 | |
1249 ;; | |
1250 | |
1251 ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
1252 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
1253 machine=sequent-ptx opsys=ptx4 | |
1254 NON_GNU_CPP=/lib/cpp | |
1255 ;; | |
1256 | |
1257 ## Sequent Symmetry running DYNIX/ptx | |
1258 ## Use the old cpp rather than the newer ANSI one. | |
1259 i[3456]86-sequent-ptx* ) | |
1260 machine=sequent-ptx opsys=ptx | |
1261 NON_GNU_CPP="/lib/cpp" | |
1262 ;; | |
1263 | |
1264 ## ncr machine running svr4.3. | |
1265 i[3456]86-ncr-sysv4.3 ) | |
1266 machine=ncr386 opsys=usg5-4-3 | |
1267 ;; | |
1268 | |
1269 ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
1270 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
1271 i[3456]86-ncr-sysv* ) | |
1272 machine=ncr386 opsys=usg5-4-2 | |
1273 ;; | |
1274 | |
1275 ## Intel Paragon OSF/1 | |
1276 i860-intel-osf1* ) | |
1277 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
1278 ;; | |
1279 | |
1280 ## Intel 860 | |
1281 i860-*-sysv4* ) | |
1282 machine=i860 opsys=usg5-4 | |
1283 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
1284 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
1285 ;; | |
1286 | |
28748 | 1287 ## Macintosh PowerPC |
1288 powerpc*-*-linux-gnu* ) | |
1289 machine=macppc opsys=gnu-linux | |
1290 ;; | |
1291 | |
25897 | 1292 ## Masscomp machines |
1293 m68*-masscomp-rtu* ) | |
1294 machine=masscomp opsys=rtu | |
1295 ;; | |
1296 | |
1297 ## Megatest machines | |
1298 m68*-megatest-bsd* ) | |
1299 machine=mega68 opsys=bsd4-2 | |
1300 ;; | |
1301 | |
1302 ## Workstations sold by MIPS | |
1303 ## This is not necessarily all workstations using the MIPS processor - | |
1304 ## Irises are produced by SGI, and DECstations by DEC. | |
1305 | |
1306 ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
1307 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
1308 ## it gives for choosing between the alternatives seems to be "Use | |
1309 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
1310 ## the BSD world." I'll assume that these are instructions for | |
1311 ## handling two odd situations, and that every other situation | |
1312 ## should use mips.h and usg5-2-2, they being listed first. | |
1313 mips-mips-usg* ) | |
1314 machine=mips4 | |
1315 ## Fall through to the general code at the bottom to decide on the OS. | |
1316 ;; | |
1317 mips-mips-riscos4* ) | |
1318 machine=mips4 opsys=bsd4-3 | |
1319 NON_GNU_CC="cc -systype bsd43" | |
1320 NON_GNU_CPP="cc -systype bsd43 -E" | |
1321 ;; | |
1322 mips-mips-riscos5* ) | |
1323 machine=mips4 opsys=riscos5 | |
1324 NON_GNU_CC="cc -systype bsd43" | |
1325 NON_GNU_CPP="cc -systype bsd43 -E" | |
1326 ;; | |
1327 mips-mips-bsd* ) | |
1328 machine=mips opsys=bsd4-3 | |
1329 ;; | |
1330 mips-mips-* ) | |
1331 machine=mips opsys=usg5-2-2 | |
1332 ;; | |
1333 | |
1334 ## NeXT | |
1335 m68*-next-* | m68k-*-nextstep* ) | |
1336 machine=m68k opsys=nextstep | |
1337 ;; | |
1338 | |
1339 ## The complete machine from National Semiconductor | |
1340 ns32k-ns-genix* ) | |
1341 machine=ns32000 opsys=usg5-2 | |
1342 ;; | |
1343 | |
1344 ## NCR machines | |
1345 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
1346 machine=tower32 opsys=usg5-2-2 | |
1347 ;; | |
1348 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
1349 machine=tower32v3 opsys=usg5-3 | |
1350 ;; | |
1351 | |
1352 ## NEC EWS4800 | |
1353 mips-nec-sysv4*) | |
1354 machine=ews4800 opsys=ux4800 | |
1355 ;; | |
1356 | |
1357 ## Nixdorf Targon 31 | |
1358 m68*-nixdorf-sysv* ) | |
1359 machine=targon31 opsys=usg5-2-2 | |
1360 ;; | |
1361 | |
1362 ## Nu (TI or LMI) | |
1363 m68*-nu-sysv* ) | |
1364 machine=nu opsys=usg5-2 | |
1365 ;; | |
1366 | |
1367 ## Plexus | |
1368 m68*-plexus-sysv* ) | |
1369 machine=plexus opsys=usg5-2 | |
1370 ;; | |
1371 | |
1372 ## PowerPC reference platform | |
1373 powerpcle-*-solaris2* ) | |
1374 machine=prep | |
1375 opsys=sol2-5 | |
1376 ;; | |
1377 | |
1378 ## Pyramid machines | |
1379 ## I don't really have any idea what sort of processor the Pyramid has, | |
1380 ## so I'm assuming it is its own architecture. | |
1381 pyramid-pyramid-bsd* ) | |
1382 machine=pyramid opsys=bsd4-2 | |
1383 ;; | |
1384 | |
1385 ## Sequent Balance | |
1386 ns32k-sequent-bsd4.2* ) | |
1387 machine=sequent opsys=bsd4-2 | |
1388 ;; | |
1389 ns32k-sequent-bsd4.3* ) | |
1390 machine=sequent opsys=bsd4-3 | |
1391 ;; | |
1392 | |
1393 ## Siemens Nixdorf | |
1394 mips-siemens-sysv* | mips-sni-sysv*) | |
1395 machine=mips-siemens opsys=usg5-4 | |
1396 NON_GNU_CC=/usr/ccs/bin/cc | |
1397 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1398 ;; | |
1399 | |
1400 ## Silicon Graphics machines | |
1401 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
1402 m68*-sgi-iris3.5* ) | |
1403 machine=irist opsys=iris3-5 | |
1404 ;; | |
1405 m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
1406 machine=irist opsys=iris3-6 | |
1407 ;; | |
1408 ## Iris 4D | |
1409 mips-sgi-irix3* ) | |
1410 machine=iris4d opsys=irix3-3 | |
1411 ;; | |
1412 mips-sgi-irix4* ) | |
1413 machine=iris4d opsys=irix4-0 | |
1414 ;; | |
1415 mips-sgi-irix6.5 ) | |
1416 machine=iris4d opsys=irix6-5 | |
26502 | 1417 # Without defining _LANGUAGE_C, things get masked out in the headers |
1418 # so that, for instance, grepping for `free' in stdlib.h fails and | |
1419 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
1420 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 1421 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
25897 | 1422 ;; |
1423 mips-sgi-irix6* ) | |
1424 machine=iris4d opsys=irix6-0 | |
27205 | 1425 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
26502 | 1426 # but presumably it does no harm. |
1427 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 1428 # -32 probably isn't necessary in later v.6s -- anyone know which? |
25897 | 1429 NON_GCC_TEST_OPTIONS=-32 |
1430 ;; | |
1431 mips-sgi-irix5.[01]* ) | |
1432 machine=iris4d opsys=irix5-0 | |
1433 ;; | |
1434 mips-sgi-irix5* | mips-sgi-irix* ) | |
1435 machine=iris4d opsys=irix5-2 | |
1436 ;; | |
1437 | |
1438 ## SONY machines | |
1439 m68*-sony-bsd4.2* ) | |
1440 machine=news opsys=bsd4-2 | |
1441 ;; | |
1442 m68*-sony-bsd4.3* ) | |
1443 machine=news opsys=bsd4-3 | |
1444 ;; | |
1445 m68*-sony-newsos3* | m68*-sony-news3*) | |
1446 machine=news opsys=bsd4-3 | |
1447 ;; | |
1448 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
1449 machine=news-risc opsys=bsd4-3 | |
1450 ;; | |
1451 mips-sony-newsos6* ) | |
1452 machine=news-r6 opsys=newsos6 | |
1453 ;; | |
1454 mips-sony-news* ) | |
1455 machine=news-risc opsys=newsos5 | |
1456 ;; | |
1457 | |
1458 ## Stride | |
1459 m68*-stride-sysv* ) | |
1460 machine=stride opsys=usg5-2 | |
1461 ;; | |
1462 | |
1463 ## Suns | |
1464 sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
1465 machine=sparc opsys=gnu-linux | |
1466 ;; | |
1467 | |
27949 | 1468 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
25897 | 1469 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
1470 | rs6000-*-solaris2*) | |
1471 case "${canonical}" in | |
1472 m68*-sunos1* ) machine=sun1 ;; | |
1473 m68*-sunos2* ) machine=sun2 ;; | |
1474 m68* ) machine=sun3 ;; | |
1475 i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
1476 i[3456]86-*-* ) machine=intel386 ;; | |
1477 powerpcle* ) machine=powerpcle ;; | |
1478 powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
1479 sparc* ) machine=sparc ;; | |
1480 * ) unported=yes ;; | |
1481 esac | |
1482 case "${canonical}" in | |
1483 ## The Sun386 didn't get past 4.0. | |
1484 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
1485 *-sunos4.0* ) opsys=sunos4-0 ;; | |
1486 *-sunos4.1.[3-9]*noshare ) | |
1487 ## This name is sunos413 instead of sunos4-1-3 | |
1488 ## to avoid a file name conflict on MSDOS. | |
1489 opsys=sunos413 | |
1490 NON_GNU_CPP=/usr/lib/cpp | |
1491 NON_GCC_TEST_OPTIONS=-Bstatic | |
1492 GCC_TEST_OPTIONS=-static | |
1493 ;; | |
1494 *-sunos4.1.[3-9]* | *-sunos4shr*) | |
1495 opsys=sunos4shr | |
1496 NON_GNU_CPP=/usr/lib/cpp | |
1497 ;; | |
1498 *-sunos4* | *-sunos ) | |
1499 opsys=sunos4-1 | |
1500 NON_GCC_TEST_OPTIONS=-Bstatic | |
1501 GCC_TEST_OPTIONS=-static | |
1502 ;; | |
1503 *-sunos5.3* | *-solaris2.3* ) | |
1504 opsys=sol2-3 | |
1505 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1506 ;; | |
1507 *-sunos5.4* | *-solaris2.4* ) | |
1508 opsys=sol2-4 | |
1509 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1510 RANLIB="ar -ts" | |
1511 ;; | |
1512 *-sunos5.5* | *-solaris2.5* ) | |
1513 opsys=sol2-5 | |
1514 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1515 RANLIB="ar -ts" | |
1516 ;; | |
1517 *-sunos5* | *-solaris* ) | |
1518 opsys=sol2-5 | |
1519 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1520 ;; | |
1521 * ) opsys=bsd4-2 ;; | |
1522 esac | |
1523 ## Watch out for a compiler that we know will not work. | |
1524 case "${canonical}" in | |
1525 *-solaris* | *-sunos5* ) | |
1526 if [ "x$CC" = x/usr/ucb/cc ]; then | |
1527 ## /usr/ucb/cc doesn't work; | |
1528 ## we should find some other compiler that does work. | |
1529 unset CC | |
1530 fi | |
1531 ;; | |
1532 *) ;; | |
1533 esac | |
1534 ;; | |
1535 sparc-*-nextstep* ) | |
1536 machine=sparc opsys=nextstep | |
1537 ;; | |
1538 | |
1539 ## Tadpole 68k | |
1540 m68*-tadpole-sysv* ) | |
1541 machine=tad68k opsys=usg5-3 | |
1542 ;; | |
1543 | |
1544 ## Tahoe machines | |
1545 tahoe-tahoe-bsd4.2* ) | |
1546 machine=tahoe opsys=bsd4-2 | |
1547 ;; | |
1548 tahoe-tahoe-bsd4.3* ) | |
1549 machine=tahoe opsys=bsd4-3 | |
1550 ;; | |
1551 | |
1552 ## Tandem Integrity S2 | |
1553 mips-tandem-sysv* ) | |
1554 machine=tandem-s2 opsys=usg5-3 | |
1555 ;; | |
1556 | |
1557 ## Tektronix XD88 | |
1558 m88k-tektronix-sysv3* ) | |
1559 machine=tekxd88 opsys=usg5-3 | |
1560 ;; | |
1561 | |
1562 ## Tektronix 16000 box (6130?) | |
1563 ns16k-tektronix-bsd* ) | |
1564 machine=ns16000 opsys=bsd4-2 | |
1565 ;; | |
1566 ## Tektronix 4300 | |
1567 ## src/m/tek4300.h hints that this is a m68k machine. | |
1568 m68*-tektronix-bsd* ) | |
1569 machine=tek4300 opsys=bsd4-3 | |
1570 ;; | |
1571 | |
1572 ## Titan P2 or P3 | |
1573 ## We seem to have lost the machine-description file titan.h! | |
1574 titan-titan-sysv* ) | |
1575 machine=titan opsys=usg5-3 | |
1576 ;; | |
1577 | |
1578 ## Ustation E30 (SS5E) | |
1579 m68*-unisys-uniplus* ) | |
1580 machine=ustation opsystem=unipl5-2 | |
1581 ;; | |
1582 | |
1583 ## Vaxen. | |
1584 vax-dec-* ) | |
1585 machine=vax | |
1586 case "${canonical}" in | |
1587 *-bsd4.1* ) opsys=bsd4-1 ;; | |
1588 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
1589 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
1590 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
1591 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
1592 *-vms* ) opsys=vms ;; | |
1593 * ) unported=yes | |
1594 esac | |
1595 ;; | |
1596 | |
1597 ## Whitechapel MG1 | |
1598 ns16k-whitechapel-* ) | |
1599 machine=mg1 | |
1600 ## We don't know what sort of OS runs on these; we'll let the | |
1601 ## operating system guessing code below try. | |
1602 ;; | |
1603 | |
1604 ## Wicat | |
1605 m68*-wicat-sysv* ) | |
1606 machine=wicat opsys=usg5-2 | |
1607 ;; | |
1608 | |
1609 ## Intel 386 machines where we don't care about the manufacturer | |
1610 i[3456]86-*-* ) | |
1611 machine=intel386 | |
1612 case "${canonical}" in | |
29654 | 1613 *-lynxos* ) opsys=lynxos ;; |
25897 | 1614 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
1615 *-isc2.2* ) opsys=isc2-2 ;; | |
1616 *-isc4.0* ) opsys=isc4-0 ;; | |
1617 *-isc4.* ) opsys=isc4-1 | |
1618 GCC_TEST_OPTIONS=-posix | |
1619 NON_GCC_TEST_OPTIONS=-Xp | |
1620 ;; | |
1621 *-isc* ) opsys=isc3-0 ;; | |
1622 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
1623 *-esix* ) opsys=esix ;; | |
1624 *-xenix* ) opsys=xenix ;; | |
1625 *-linux-gnu* ) opsys=gnu-linux ;; | |
1626 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
1627 *-sco3.2v5* ) opsys=sco5 | |
1628 NON_GNU_CPP=/lib/cpp | |
1629 # Prevent -belf from being passed to $CPP. | |
1630 # /lib/cpp does not accept it. | |
1631 OVERRIDE_CPPFLAGS=" " | |
1632 ;; | |
1633 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
1634 *-386bsd* ) opsys=386bsd ;; | |
1635 *-freebsd* ) opsys=freebsd ;; | |
1636 *-nextstep* ) opsys=nextstep ;; | |
1637 ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
1638 esac | |
1639 ;; | |
1640 | |
1641 ## m68k Linux-based GNU system | |
1642 m68k-*-linux-gnu* ) | |
1643 machine=m68k opsys=gnu-linux | |
1644 ;; | |
1645 | |
1646 ## Mips Linux-based GNU system | |
1647 mips-*-linux-gnu* ) | |
1648 machine=mips opsys=gnu-linux | |
1649 ;; | |
1650 | |
1651 ## UXP/DS | |
1652 sparc-fujitsu-sysv4* ) | |
1653 machine=sparc opsys=uxpds | |
1654 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1655 RANLIB="ar -ts" | |
1656 ;; | |
1657 | |
1658 ## UXP/V | |
1659 f301-fujitsu-uxpv4.1) | |
1660 machine=f301 opsys=uxpv | |
1661 ;; | |
1662 | |
1663 * ) | |
1664 unported=yes | |
1665 ;; | |
1666 esac | |
1667 | |
1668 ### If the code above didn't choose an operating system, just choose | |
1669 ### an operating system based on the configuration name. You really | |
1670 ### only want to use this when you have no idea what the right | |
1671 ### operating system is; if you know what operating systems a machine | |
1672 ### runs, it's cleaner to make it explicit in the case statement | |
1673 ### above. | |
1674 if test x"${opsys}" = x; then | |
1675 case "${canonical}" in | |
1676 *-gnu* ) opsys=gnu ;; | |
1677 *-bsd4.[01] ) opsys=bsd4-1 ;; | |
1678 *-bsd4.2 ) opsys=bsd4-2 ;; | |
1679 *-bsd4.3 ) opsys=bsd4-3 ;; | |
1680 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
1681 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
1682 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
1683 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
1684 *-sysv4.2uw* ) opsys=unixware ;; | |
1685 *-sysv4.1* | *-sysvr4.1* ) | |
1686 NON_GNU_CPP=/usr/lib/cpp | |
1687 opsys=usg5-4 ;; | |
1688 *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
1689 if [ x$NON_GNU_CPP = x ]; then | |
1690 if [ -f /usr/ccs/lib/cpp ]; then | |
1691 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1692 else | |
1693 NON_GNU_CPP=/lib/cpp | |
1694 fi | |
1695 fi | |
1696 opsys=usg5-4-2 ;; | |
1697 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
1698 * ) | |
1699 unported=yes | |
1700 ;; | |
1701 esac | |
1702 fi | |
1703 | |
1704 | |
1705 if test $unported = yes; then | |
1706 { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems. | |
1707 Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; } | |
1708 fi | |
1709 | |
1710 machfile="m/${machine}.h" | |
1711 opsysfile="s/${opsys}.h" | |
1712 | |
1713 | |
1714 #### Choose a compiler. | |
1715 test -n "$CC" && cc_specified=yes | |
1716 | |
1717 # Save the value of CFLAGS that the user specified. | |
1718 SPECIFIED_CFLAGS="$CFLAGS" | |
1719 | |
1720 case ${with_gcc} in | |
1721 "yes" ) CC="gcc" GCC=yes ;; | |
1722 "no" ) : ${CC=cc} ;; | |
1723 * ) # Extract the first word of "gcc", so it can be a program name with args. | |
1724 set dummy gcc; ac_word=$2 | |
1725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
29949 | 1726 echo "configure:1727: checking for $ac_word" >&5 |
25897 | 1727 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1728 echo $ac_n "(cached) $ac_c" 1>&6 | |
1729 else | |
1730 if test -n "$CC"; then | |
1731 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1732 else | |
27205 | 1733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1734 ac_dummy="$PATH" | |
1735 for ac_dir in $ac_dummy; do | |
25897 | 1736 test -z "$ac_dir" && ac_dir=. |
1737 if test -f $ac_dir/$ac_word; then | |
1738 ac_cv_prog_CC="gcc" | |
1739 break | |
1740 fi | |
1741 done | |
1742 IFS="$ac_save_ifs" | |
1743 fi | |
1744 fi | |
1745 CC="$ac_cv_prog_CC" | |
1746 if test -n "$CC"; then | |
1747 echo "$ac_t""$CC" 1>&6 | |
1748 else | |
1749 echo "$ac_t""no" 1>&6 | |
1750 fi | |
1751 | |
1752 if test -z "$CC"; then | |
1753 # Extract the first word of "cc", so it can be a program name with args. | |
1754 set dummy cc; ac_word=$2 | |
1755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
29949 | 1756 echo "configure:1757: checking for $ac_word" >&5 |
25897 | 1757 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1758 echo $ac_n "(cached) $ac_c" 1>&6 | |
1759 else | |
1760 if test -n "$CC"; then | |
1761 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1762 else | |
27205 | 1763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
25897 | 1764 ac_prog_rejected=no |
27205 | 1765 ac_dummy="$PATH" |
1766 for ac_dir in $ac_dummy; do | |
25897 | 1767 test -z "$ac_dir" && ac_dir=. |
1768 if test -f $ac_dir/$ac_word; then | |
1769 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1770 ac_prog_rejected=yes | |
1771 continue | |
1772 fi | |
1773 ac_cv_prog_CC="cc" | |
1774 break | |
1775 fi | |
1776 done | |
1777 IFS="$ac_save_ifs" | |
1778 if test $ac_prog_rejected = yes; then | |
1779 # We found a bogon in the path, so make sure we never use it. | |
1780 set dummy $ac_cv_prog_CC | |
1781 shift | |
1782 if test $# -gt 0; then | |
1783 # We chose a different compiler from the bogus one. | |
1784 # However, it has the same basename, so the bogon will be chosen | |
1785 # first if we set CC to just the basename; use the full file name. | |
1786 shift | |
1787 set dummy "$ac_dir/$ac_word" "$@" | |
1788 shift | |
1789 ac_cv_prog_CC="$@" | |
1790 fi | |
1791 fi | |
1792 fi | |
1793 fi | |
1794 CC="$ac_cv_prog_CC" | |
1795 if test -n "$CC"; then | |
1796 echo "$ac_t""$CC" 1>&6 | |
1797 else | |
1798 echo "$ac_t""no" 1>&6 | |
1799 fi | |
1800 | |
27205 | 1801 if test -z "$CC"; then |
1802 case "`uname -s`" in | |
1803 *win32* | *WIN32*) | |
1804 # Extract the first word of "cl", so it can be a program name with args. | |
1805 set dummy cl; ac_word=$2 | |
1806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
29949 | 1807 echo "configure:1808: checking for $ac_word" >&5 |
27205 | 1808 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1809 echo $ac_n "(cached) $ac_c" 1>&6 | |
1810 else | |
1811 if test -n "$CC"; then | |
1812 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1813 else | |
1814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1815 ac_dummy="$PATH" | |
1816 for ac_dir in $ac_dummy; do | |
1817 test -z "$ac_dir" && ac_dir=. | |
1818 if test -f $ac_dir/$ac_word; then | |
1819 ac_cv_prog_CC="cl" | |
1820 break | |
1821 fi | |
1822 done | |
1823 IFS="$ac_save_ifs" | |
1824 fi | |
1825 fi | |
1826 CC="$ac_cv_prog_CC" | |
1827 if test -n "$CC"; then | |
1828 echo "$ac_t""$CC" 1>&6 | |
1829 else | |
1830 echo "$ac_t""no" 1>&6 | |
1831 fi | |
1832 ;; | |
1833 esac | |
1834 fi | |
25897 | 1835 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1836 fi | |
1837 | |
1838 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
29949 | 1839 echo "configure:1840: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
25897 | 1840 |
1841 ac_ext=c | |
1842 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1843 ac_cpp='$CPP $CPPFLAGS' | |
1844 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
27205 | 1845 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
25897 | 1846 cross_compiling=$ac_cv_prog_cc_cross |
1847 | |
27205 | 1848 cat > conftest.$ac_ext << EOF |
1849 | |
29949 | 1850 #line 1851 "configure" |
25897 | 1851 #include "confdefs.h" |
27205 | 1852 |
25897 | 1853 main(){return(0);} |
1854 EOF | |
29949 | 1855 if { (eval echo configure:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 1856 ac_cv_prog_cc_works=yes |
1857 # If we can't run a trivial program, we are probably using a cross compiler. | |
1858 if (./conftest; exit) 2>/dev/null; then | |
1859 ac_cv_prog_cc_cross=no | |
1860 else | |
1861 ac_cv_prog_cc_cross=yes | |
1862 fi | |
1863 else | |
1864 echo "configure: failed program was:" >&5 | |
1865 cat conftest.$ac_ext >&5 | |
1866 ac_cv_prog_cc_works=no | |
1867 fi | |
1868 rm -fr conftest* | |
27205 | 1869 ac_ext=c |
1870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1871 ac_cpp='$CPP $CPPFLAGS' | |
1872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1874 cross_compiling=$ac_cv_prog_cc_cross | |
25897 | 1875 |
1876 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1877 if test $ac_cv_prog_cc_works = no; then | |
1878 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1879 fi | |
1880 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
29949 | 1881 echo "configure:1882: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
25897 | 1882 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1883 cross_compiling=$ac_cv_prog_cc_cross | |
1884 | |
1885 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
29949 | 1886 echo "configure:1887: checking whether we are using GNU C" >&5 |
25897 | 1887 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1888 echo $ac_n "(cached) $ac_c" 1>&6 | |
1889 else | |
1890 cat > conftest.c <<EOF | |
1891 #ifdef __GNUC__ | |
1892 yes; | |
1893 #endif | |
1894 EOF | |
29949 | 1895 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
25897 | 1896 ac_cv_prog_gcc=yes |
1897 else | |
1898 ac_cv_prog_gcc=no | |
1899 fi | |
1900 fi | |
1901 | |
1902 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1903 | |
1904 if test $ac_cv_prog_gcc = yes; then | |
1905 GCC=yes | |
27205 | 1906 else |
1907 GCC= | |
1908 fi | |
1909 | |
1910 ac_test_CFLAGS="${CFLAGS+set}" | |
1911 ac_save_CFLAGS="$CFLAGS" | |
1912 CFLAGS= | |
1913 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
29949 | 1914 echo "configure:1915: checking whether ${CC-cc} accepts -g" >&5 |
25897 | 1915 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1916 echo $ac_n "(cached) $ac_c" 1>&6 | |
1917 else | |
1918 echo 'void f(){}' > conftest.c | |
1919 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1920 ac_cv_prog_cc_g=yes | |
1921 else | |
1922 ac_cv_prog_cc_g=no | |
1923 fi | |
1924 rm -f conftest* | |
1925 | |
1926 fi | |
1927 | |
1928 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
27205 | 1929 if test "$ac_test_CFLAGS" = set; then |
1930 CFLAGS="$ac_save_CFLAGS" | |
1931 elif test $ac_cv_prog_cc_g = yes; then | |
1932 if test "$GCC" = yes; then | |
25897 | 1933 CFLAGS="-g -O2" |
1934 else | |
27205 | 1935 CFLAGS="-g" |
25897 | 1936 fi |
1937 else | |
27205 | 1938 if test "$GCC" = yes; then |
1939 CFLAGS="-O2" | |
1940 else | |
1941 CFLAGS= | |
1942 fi | |
25897 | 1943 fi |
1944 | |
1945 esac | |
1946 | |
1947 # On Suns, sometimes $CPP names a directory. | |
1948 if test -n "$CPP" && test -d "$CPP"; then | |
1949 CPP= | |
1950 fi | |
1951 | |
1952 #### Some systems specify a CPP to use unless we are using GCC. | |
1953 #### Now that we know whether we are using GCC, we can decide whether | |
1954 #### to use that one. | |
1955 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
1956 then | |
1957 CPP="$NON_GNU_CPP" | |
1958 fi | |
1959 | |
1960 #### Some systems specify a CC to use unless we are using GCC. | |
1961 #### Now that we know whether we are using GCC, we can decide whether | |
1962 #### to use that one. | |
1963 if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
1964 test x$cc_specified != xyes | |
1965 then | |
1966 CC="$NON_GNU_CC" | |
1967 fi | |
1968 | |
1969 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
1970 then | |
1971 CC="$CC $GCC_TEST_OPTIONS" | |
1972 fi | |
1973 | |
1974 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
1975 then | |
1976 CC="$CC $NON_GCC_TEST_OPTIONS" | |
1977 fi | |
1978 | |
1979 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x | |
1980 then | |
1981 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
1982 fi | |
1983 | |
1984 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
1985 then | |
1986 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
1987 fi | |
1988 | |
1989 #### Some other nice autoconf tests. If you add a test here which | |
1990 #### should make an entry in src/config.h, don't forget to add an | |
1991 #### #undef clause to src/config.h.in for autoconf to modify. | |
1992 | |
1993 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
29949 | 1994 echo "configure:1995: checking whether ln -s works" >&5 |
25897 | 1995 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1996 echo $ac_n "(cached) $ac_c" 1>&6 | |
1997 else | |
1998 rm -f conftestdata | |
1999 if ln -s X conftestdata 2>/dev/null | |
2000 then | |
2001 rm -f conftestdata | |
2002 ac_cv_prog_LN_S="ln -s" | |
2003 else | |
2004 ac_cv_prog_LN_S=ln | |
2005 fi | |
2006 fi | |
2007 LN_S="$ac_cv_prog_LN_S" | |
2008 if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
2009 echo "$ac_t""yes" 1>&6 | |
2010 else | |
2011 echo "$ac_t""no" 1>&6 | |
2012 fi | |
2013 | |
2014 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
29949 | 2015 echo "configure:2016: checking how to run the C preprocessor" >&5 |
25897 | 2016 # On Suns, sometimes $CPP names a directory. |
2017 if test -n "$CPP" && test -d "$CPP"; then | |
2018 CPP= | |
2019 fi | |
2020 if test -z "$CPP"; then | |
2021 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
2022 echo $ac_n "(cached) $ac_c" 1>&6 | |
2023 else | |
2024 # This must be in double quotes, not single quotes, because CPP may get | |
2025 # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2026 CPP="${CC-cc} -E" | |
2027 # On the NeXT, cc -E runs the code through the compiler's parser, | |
2028 # not just through cpp. | |
2029 cat > conftest.$ac_ext <<EOF | |
29949 | 2030 #line 2031 "configure" |
25897 | 2031 #include "confdefs.h" |
2032 #include <assert.h> | |
2033 Syntax Error | |
2034 EOF | |
2035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29949 | 2036 { (eval echo configure:2037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 2038 if test -z "$ac_err"; then |
2039 : | |
2040 else | |
2041 echo "$ac_err" >&5 | |
2042 echo "configure: failed program was:" >&5 | |
2043 cat conftest.$ac_ext >&5 | |
2044 rm -rf conftest* | |
2045 CPP="${CC-cc} -E -traditional-cpp" | |
2046 cat > conftest.$ac_ext <<EOF | |
29949 | 2047 #line 2048 "configure" |
25897 | 2048 #include "confdefs.h" |
2049 #include <assert.h> | |
2050 Syntax Error | |
2051 EOF | |
2052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29949 | 2053 { (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2055 if test -z "$ac_err"; then | |
2056 : | |
2057 else | |
2058 echo "$ac_err" >&5 | |
2059 echo "configure: failed program was:" >&5 | |
2060 cat conftest.$ac_ext >&5 | |
2061 rm -rf conftest* | |
2062 CPP="${CC-cc} -nologo -E" | |
2063 cat > conftest.$ac_ext <<EOF | |
29949 | 2064 #line 2065 "configure" |
27205 | 2065 #include "confdefs.h" |
2066 #include <assert.h> | |
2067 Syntax Error | |
2068 EOF | |
2069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29949 | 2070 { (eval echo configure:2071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 2072 if test -z "$ac_err"; then |
2073 : | |
2074 else | |
2075 echo "$ac_err" >&5 | |
2076 echo "configure: failed program was:" >&5 | |
2077 cat conftest.$ac_ext >&5 | |
2078 rm -rf conftest* | |
2079 CPP=/lib/cpp | |
2080 fi | |
2081 rm -f conftest* | |
2082 fi | |
2083 rm -f conftest* | |
27205 | 2084 fi |
2085 rm -f conftest* | |
25897 | 2086 ac_cv_prog_CPP="$CPP" |
2087 fi | |
2088 CPP="$ac_cv_prog_CPP" | |
2089 else | |
2090 ac_cv_prog_CPP="$CPP" | |
2091 fi | |
2092 echo "$ac_t""$CPP" 1>&6 | |
2093 | |
2094 # Find a good install program. We prefer a C program (faster), | |
2095 # so one script is as good as another. But avoid the broken or | |
2096 # incompatible versions: | |
2097 # SysV /etc/install, /usr/sbin/install | |
2098 # SunOS /usr/etc/install | |
2099 # IRIX /sbin/install | |
2100 # AIX /bin/install | |
27205 | 2101 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
25897 | 2102 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2103 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2104 # ./install, which can be erroneously created by make from ./install.sh. | |
2105 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
29949 | 2106 echo "configure:2107: checking for a BSD compatible install" >&5 |
25897 | 2107 if test -z "$INSTALL"; then |
2108 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
2109 echo $ac_n "(cached) $ac_c" 1>&6 | |
2110 else | |
27205 | 2111 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
25897 | 2112 for ac_dir in $PATH; do |
2113 # Account for people who put trailing slashes in PATH elements. | |
2114 case "$ac_dir/" in | |
2115 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
2116 *) | |
2117 # OSF1 and SCO ODT 3.0 have their own names for install. | |
27205 | 2118 # Don't use installbsd from OSF since it installs stuff as root |
2119 # by default. | |
2120 for ac_prog in ginstall scoinst install; do | |
25897 | 2121 if test -f $ac_dir/$ac_prog; then |
2122 if test $ac_prog = install && | |
2123 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
2124 # AIX install. It has an incompatible calling convention. | |
2125 : | |
2126 else | |
2127 ac_cv_path_install="$ac_dir/$ac_prog -c" | |
2128 break 2 | |
2129 fi | |
2130 fi | |
2131 done | |
2132 ;; | |
2133 esac | |
2134 done | |
2135 IFS="$ac_save_IFS" | |
2136 | |
2137 fi | |
2138 if test "${ac_cv_path_install+set}" = set; then | |
2139 INSTALL="$ac_cv_path_install" | |
2140 else | |
2141 # As a last resort, use the slow shell script. We don't cache a | |
2142 # path for INSTALL within a source directory, because that will | |
2143 # break other packages using the cache if that directory is | |
2144 # removed, or if the path is relative. | |
2145 INSTALL="$ac_install_sh" | |
2146 fi | |
2147 fi | |
2148 echo "$ac_t""$INSTALL" 1>&6 | |
2149 | |
2150 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2151 # It thinks the first close brace ends the variable substitution. | |
2152 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2153 | |
27205 | 2154 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
2155 | |
25897 | 2156 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2157 | |
2158 for ac_prog in 'bison -y' byacc | |
2159 do | |
2160 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2161 set dummy $ac_prog; ac_word=$2 | |
2162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
29949 | 2163 echo "configure:2164: checking for $ac_word" >&5 |
25897 | 2164 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
2165 echo $ac_n "(cached) $ac_c" 1>&6 | |
2166 else | |
2167 if test -n "$YACC"; then | |
2168 ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
2169 else | |
27205 | 2170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2171 ac_dummy="$PATH" | |
2172 for ac_dir in $ac_dummy; do | |
25897 | 2173 test -z "$ac_dir" && ac_dir=. |
2174 if test -f $ac_dir/$ac_word; then | |
2175 ac_cv_prog_YACC="$ac_prog" | |
2176 break | |
2177 fi | |
2178 done | |
2179 IFS="$ac_save_ifs" | |
2180 fi | |
2181 fi | |
2182 YACC="$ac_cv_prog_YACC" | |
2183 if test -n "$YACC"; then | |
2184 echo "$ac_t""$YACC" 1>&6 | |
2185 else | |
2186 echo "$ac_t""no" 1>&6 | |
2187 fi | |
2188 | |
2189 test -n "$YACC" && break | |
2190 done | |
2191 test -n "$YACC" || YACC="yacc" | |
2192 | |
28060 | 2193 if test "x$RANLIB" = x; then |
2194 # Extract the first word of "ranlib", so it can be a program name with args. | |
2195 set dummy ranlib; ac_word=$2 | |
2196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
29949 | 2197 echo "configure:2198: checking for $ac_word" >&5 |
28060 | 2198 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2199 echo $ac_n "(cached) $ac_c" 1>&6 | |
2200 else | |
2201 if test -n "$RANLIB"; then | |
2202 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2203 else | |
2204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2205 ac_dummy="$PATH" | |
2206 for ac_dir in $ac_dummy; do | |
2207 test -z "$ac_dir" && ac_dir=. | |
2208 if test -f $ac_dir/$ac_word; then | |
2209 ac_cv_prog_RANLIB="ranlib" | |
2210 break | |
2211 fi | |
2212 done | |
2213 IFS="$ac_save_ifs" | |
2214 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
2215 fi | |
2216 fi | |
2217 RANLIB="$ac_cv_prog_RANLIB" | |
2218 if test -n "$RANLIB"; then | |
2219 echo "$ac_t""$RANLIB" 1>&6 | |
2220 else | |
2221 echo "$ac_t""no" 1>&6 | |
2222 fi | |
2223 | |
2224 fi | |
25897 | 2225 |
2226 echo $ac_n "checking for AIX""... $ac_c" 1>&6 | |
29949 | 2227 echo "configure:2228: checking for AIX" >&5 |
25897 | 2228 cat > conftest.$ac_ext <<EOF |
29949 | 2229 #line 2230 "configure" |
25897 | 2230 #include "confdefs.h" |
2231 #ifdef _AIX | |
2232 yes | |
2233 #endif | |
2234 | |
2235 EOF | |
2236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2237 egrep "yes" >/dev/null 2>&1; then | |
2238 rm -rf conftest* | |
2239 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | |
2240 #define _ALL_SOURCE 1 | |
2241 EOF | |
2242 | |
2243 else | |
2244 rm -rf conftest* | |
2245 echo "$ac_t""no" 1>&6 | |
2246 fi | |
2247 rm -f conftest* | |
2248 | |
2249 | |
2250 | |
2251 # Sound support for GNU/Linux and the free BSDs. | |
2252 for ac_hdr in machine/soundcard.h sys/soundcard.h | |
2253 do | |
2254 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2255 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29949 | 2256 echo "configure:2257: checking for $ac_hdr" >&5 |
25897 | 2257 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2258 echo $ac_n "(cached) $ac_c" 1>&6 | |
2259 else | |
2260 cat > conftest.$ac_ext <<EOF | |
29949 | 2261 #line 2262 "configure" |
25897 | 2262 #include "confdefs.h" |
2263 #include <$ac_hdr> | |
2264 EOF | |
2265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29949 | 2266 { (eval echo configure:2267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 2268 if test -z "$ac_err"; then |
2269 rm -rf conftest* | |
2270 eval "ac_cv_header_$ac_safe=yes" | |
2271 else | |
2272 echo "$ac_err" >&5 | |
2273 echo "configure: failed program was:" >&5 | |
2274 cat conftest.$ac_ext >&5 | |
2275 rm -rf conftest* | |
2276 eval "ac_cv_header_$ac_safe=no" | |
2277 fi | |
2278 rm -f conftest* | |
2279 fi | |
2280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2281 echo "$ac_t""yes" 1>&6 | |
2282 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2283 cat >> confdefs.h <<EOF | |
2284 #define $ac_tr_hdr 1 | |
2285 EOF | |
2286 | |
2287 else | |
2288 echo "$ac_t""no" 1>&6 | |
2289 fi | |
2290 done | |
2291 | |
2292 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2293 for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2294 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
29906 | 2295 termcap.h stdio_ext.h fcntl.h term.h |
25897 | 2296 do |
2297 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2298 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29949 | 2299 echo "configure:2300: checking for $ac_hdr" >&5 |
25897 | 2300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2301 echo $ac_n "(cached) $ac_c" 1>&6 | |
2302 else | |
2303 cat > conftest.$ac_ext <<EOF | |
29949 | 2304 #line 2305 "configure" |
25897 | 2305 #include "confdefs.h" |
2306 #include <$ac_hdr> | |
2307 EOF | |
2308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29949 | 2309 { (eval echo configure:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 2311 if test -z "$ac_err"; then |
2312 rm -rf conftest* | |
2313 eval "ac_cv_header_$ac_safe=yes" | |
2314 else | |
2315 echo "$ac_err" >&5 | |
2316 echo "configure: failed program was:" >&5 | |
2317 cat conftest.$ac_ext >&5 | |
2318 rm -rf conftest* | |
2319 eval "ac_cv_header_$ac_safe=no" | |
2320 fi | |
2321 rm -f conftest* | |
2322 fi | |
2323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2324 echo "$ac_t""yes" 1>&6 | |
2325 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2326 cat >> confdefs.h <<EOF | |
2327 #define $ac_tr_hdr 1 | |
2328 EOF | |
2329 | |
2330 else | |
2331 echo "$ac_t""no" 1>&6 | |
2332 fi | |
2333 done | |
2334 | |
2335 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
29949 | 2336 echo "configure:2337: checking for ANSI C header files" >&5 |
25897 | 2337 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2338 echo $ac_n "(cached) $ac_c" 1>&6 | |
2339 else | |
2340 cat > conftest.$ac_ext <<EOF | |
29949 | 2341 #line 2342 "configure" |
25897 | 2342 #include "confdefs.h" |
2343 #include <stdlib.h> | |
2344 #include <stdarg.h> | |
2345 #include <string.h> | |
2346 #include <float.h> | |
2347 EOF | |
2348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29949 | 2349 { (eval echo configure:2350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 2351 if test -z "$ac_err"; then |
2352 rm -rf conftest* | |
2353 ac_cv_header_stdc=yes | |
2354 else | |
2355 echo "$ac_err" >&5 | |
2356 echo "configure: failed program was:" >&5 | |
2357 cat conftest.$ac_ext >&5 | |
2358 rm -rf conftest* | |
2359 ac_cv_header_stdc=no | |
2360 fi | |
2361 rm -f conftest* | |
2362 | |
2363 if test $ac_cv_header_stdc = yes; then | |
2364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2365 cat > conftest.$ac_ext <<EOF | |
29949 | 2366 #line 2367 "configure" |
25897 | 2367 #include "confdefs.h" |
2368 #include <string.h> | |
2369 EOF | |
2370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2371 egrep "memchr" >/dev/null 2>&1; then | |
2372 : | |
2373 else | |
2374 rm -rf conftest* | |
2375 ac_cv_header_stdc=no | |
2376 fi | |
2377 rm -f conftest* | |
2378 | |
2379 fi | |
2380 | |
2381 if test $ac_cv_header_stdc = yes; then | |
2382 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2383 cat > conftest.$ac_ext <<EOF | |
29949 | 2384 #line 2385 "configure" |
25897 | 2385 #include "confdefs.h" |
2386 #include <stdlib.h> | |
2387 EOF | |
2388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2389 egrep "free" >/dev/null 2>&1; then | |
2390 : | |
2391 else | |
2392 rm -rf conftest* | |
2393 ac_cv_header_stdc=no | |
2394 fi | |
2395 rm -f conftest* | |
2396 | |
2397 fi | |
2398 | |
2399 if test $ac_cv_header_stdc = yes; then | |
2400 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2401 if test "$cross_compiling" = yes; then | |
2402 : | |
2403 else | |
2404 cat > conftest.$ac_ext <<EOF | |
29949 | 2405 #line 2406 "configure" |
25897 | 2406 #include "confdefs.h" |
2407 #include <ctype.h> | |
2408 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2409 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2410 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2411 int main () { int i; for (i = 0; i < 256; i++) | |
2412 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
2413 exit (0); } | |
2414 | |
2415 EOF | |
29949 | 2416 if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
25897 | 2417 then |
2418 : | |
2419 else | |
2420 echo "configure: failed program was:" >&5 | |
2421 cat conftest.$ac_ext >&5 | |
2422 rm -fr conftest* | |
2423 ac_cv_header_stdc=no | |
2424 fi | |
2425 rm -fr conftest* | |
2426 fi | |
2427 | |
2428 fi | |
2429 fi | |
2430 | |
2431 echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
2432 if test $ac_cv_header_stdc = yes; then | |
2433 cat >> confdefs.h <<\EOF | |
2434 #define STDC_HEADERS 1 | |
2435 EOF | |
2436 | |
2437 fi | |
2438 | |
2439 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
29949 | 2440 echo "configure:2441: checking whether time.h and sys/time.h may both be included" >&5 |
25897 | 2441 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
2442 echo $ac_n "(cached) $ac_c" 1>&6 | |
2443 else | |
2444 cat > conftest.$ac_ext <<EOF | |
29949 | 2445 #line 2446 "configure" |
25897 | 2446 #include "confdefs.h" |
2447 #include <sys/types.h> | |
2448 #include <sys/time.h> | |
2449 #include <time.h> | |
2450 int main() { | |
2451 struct tm *tp; | |
2452 ; return 0; } | |
2453 EOF | |
29949 | 2454 if { (eval echo configure:2455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2455 rm -rf conftest* |
2456 ac_cv_header_time=yes | |
2457 else | |
2458 echo "configure: failed program was:" >&5 | |
2459 cat conftest.$ac_ext >&5 | |
2460 rm -rf conftest* | |
2461 ac_cv_header_time=no | |
2462 fi | |
2463 rm -f conftest* | |
2464 fi | |
2465 | |
2466 echo "$ac_t""$ac_cv_header_time" 1>&6 | |
2467 if test $ac_cv_header_time = yes; then | |
2468 cat >> confdefs.h <<\EOF | |
2469 #define TIME_WITH_SYS_TIME 1 | |
2470 EOF | |
2471 | |
2472 fi | |
2473 | |
2474 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | |
29949 | 2475 echo "configure:2476: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
25897 | 2476 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
2477 echo $ac_n "(cached) $ac_c" 1>&6 | |
2478 else | |
2479 cat > conftest.$ac_ext <<EOF | |
29949 | 2480 #line 2481 "configure" |
25897 | 2481 #include "confdefs.h" |
2482 #include <sys/types.h> | |
2483 #include <signal.h> | |
2484 /* NetBSD declares sys_siglist in unistd.h. */ | |
2485 #ifdef HAVE_UNISTD_H | |
2486 #include <unistd.h> | |
2487 #endif | |
2488 int main() { | |
2489 char *msg = *(sys_siglist + 1); | |
2490 ; return 0; } | |
2491 EOF | |
29949 | 2492 if { (eval echo configure:2493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2493 rm -rf conftest* |
2494 ac_cv_decl_sys_siglist=yes | |
2495 else | |
2496 echo "configure: failed program was:" >&5 | |
2497 cat conftest.$ac_ext >&5 | |
2498 rm -rf conftest* | |
2499 ac_cv_decl_sys_siglist=no | |
2500 fi | |
2501 rm -f conftest* | |
2502 fi | |
2503 | |
2504 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 | |
2505 if test $ac_cv_decl_sys_siglist = yes; then | |
2506 cat >> confdefs.h <<\EOF | |
2507 #define SYS_SIGLIST_DECLARED 1 | |
2508 EOF | |
2509 | |
2510 fi | |
2511 | |
2512 | |
2513 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 | |
29949 | 2514 echo "configure:2515: checking for struct utimbuf" >&5 |
25897 | 2515 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then |
2516 echo $ac_n "(cached) $ac_c" 1>&6 | |
2517 else | |
2518 cat > conftest.$ac_ext <<EOF | |
29949 | 2519 #line 2520 "configure" |
25897 | 2520 #include "confdefs.h" |
2521 #ifdef TIME_WITH_SYS_TIME | |
2522 #include <sys/time.h> | |
2523 #include <time.h> | |
2524 #else | |
2525 #ifdef HAVE_SYS_TIME_H | |
2526 #include <sys/time.h> | |
2527 #else | |
2528 #include <time.h> | |
2529 #endif | |
2530 #endif | |
2531 #ifdef HAVE_UTIME_H | |
2532 #include <utime.h> | |
2533 #endif | |
2534 int main() { | |
2535 static struct utimbuf x; x.actime = x.modtime; | |
2536 ; return 0; } | |
2537 EOF | |
29949 | 2538 if { (eval echo configure:2539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2539 rm -rf conftest* |
2540 emacs_cv_struct_utimbuf=yes | |
2541 else | |
2542 echo "configure: failed program was:" >&5 | |
2543 cat conftest.$ac_ext >&5 | |
2544 rm -rf conftest* | |
2545 emacs_cv_struct_utimbuf=no | |
2546 fi | |
2547 rm -f conftest* | |
2548 fi | |
2549 | |
2550 echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6 | |
2551 if test $emacs_cv_struct_utimbuf = yes; then | |
2552 cat >> confdefs.h <<\EOF | |
2553 #define HAVE_STRUCT_UTIMBUF 1 | |
2554 EOF | |
2555 | |
2556 fi | |
2557 | |
2558 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | |
29949 | 2559 echo "configure:2560: checking return type of signal handlers" >&5 |
25897 | 2560 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
2561 echo $ac_n "(cached) $ac_c" 1>&6 | |
2562 else | |
2563 cat > conftest.$ac_ext <<EOF | |
29949 | 2564 #line 2565 "configure" |
25897 | 2565 #include "confdefs.h" |
2566 #include <sys/types.h> | |
2567 #include <signal.h> | |
2568 #ifdef signal | |
2569 #undef signal | |
2570 #endif | |
2571 #ifdef __cplusplus | |
2572 extern "C" void (*signal (int, void (*)(int)))(int); | |
2573 #else | |
2574 void (*signal ()) (); | |
2575 #endif | |
2576 | |
2577 int main() { | |
2578 int i; | |
2579 ; return 0; } | |
2580 EOF | |
29949 | 2581 if { (eval echo configure:2582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2582 rm -rf conftest* |
2583 ac_cv_type_signal=void | |
2584 else | |
2585 echo "configure: failed program was:" >&5 | |
2586 cat conftest.$ac_ext >&5 | |
2587 rm -rf conftest* | |
2588 ac_cv_type_signal=int | |
2589 fi | |
2590 rm -f conftest* | |
2591 fi | |
2592 | |
2593 echo "$ac_t""$ac_cv_type_signal" 1>&6 | |
2594 cat >> confdefs.h <<EOF | |
2595 #define RETSIGTYPE $ac_cv_type_signal | |
2596 EOF | |
2597 | |
2598 | |
2599 | |
29254 | 2600 echo $ac_n "checking for speed_t""... $ac_c" 1>&6 |
29949 | 2601 echo "configure:2602: checking for speed_t" >&5 |
29254 | 2602 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then |
2603 echo $ac_n "(cached) $ac_c" 1>&6 | |
2604 else | |
2605 cat > conftest.$ac_ext <<EOF | |
29949 | 2606 #line 2607 "configure" |
29254 | 2607 #include "confdefs.h" |
2608 #include <termios.h> | |
2609 int main() { | |
2610 speed_t x = 1; | |
2611 ; return 0; } | |
2612 EOF | |
29949 | 2613 if { (eval echo configure:2614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29254 | 2614 rm -rf conftest* |
2615 emacs_cv_speed_t=yes | |
2616 else | |
2617 echo "configure: failed program was:" >&5 | |
2618 cat conftest.$ac_ext >&5 | |
2619 fi | |
2620 rm -f conftest* | |
2621 fi | |
2622 | |
2623 echo "$ac_t""$emacs_cv_speed_t" 1>&6 | |
2624 if test $emacs_cv_speed_t = yes; then | |
2625 cat >> confdefs.h <<\EOF | |
2626 #define HAVE_SPEED_T 1 | |
2627 EOF | |
2628 | |
2629 fi | |
2630 | |
25897 | 2631 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 |
29949 | 2632 echo "configure:2633: checking for struct timeval" >&5 |
25897 | 2633 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then |
2634 echo $ac_n "(cached) $ac_c" 1>&6 | |
2635 else | |
2636 cat > conftest.$ac_ext <<EOF | |
29949 | 2637 #line 2638 "configure" |
25897 | 2638 #include "confdefs.h" |
2639 #ifdef TIME_WITH_SYS_TIME | |
2640 #include <sys/time.h> | |
2641 #include <time.h> | |
2642 #else | |
2643 #ifdef HAVE_SYS_TIME_H | |
2644 #include <sys/time.h> | |
2645 #else | |
2646 #include <time.h> | |
2647 #endif | |
2648 #endif | |
2649 int main() { | |
2650 static struct timeval x; x.tv_sec = x.tv_usec; | |
2651 ; return 0; } | |
2652 EOF | |
29949 | 2653 if { (eval echo configure:2654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2654 rm -rf conftest* |
2655 emacs_cv_struct_timeval=yes | |
2656 else | |
2657 echo "configure: failed program was:" >&5 | |
2658 cat conftest.$ac_ext >&5 | |
2659 rm -rf conftest* | |
2660 emacs_cv_struct_timeval=no | |
2661 fi | |
2662 rm -f conftest* | |
2663 fi | |
2664 | |
2665 echo "$ac_t""$emacs_cv_struct_timeval" 1>&6 | |
2666 HAVE_TIMEVAL=$emacs_cv_struct_timeval | |
2667 if test $emacs_cv_struct_timeval = yes; then | |
2668 cat >> confdefs.h <<\EOF | |
2669 #define HAVE_TIMEVAL 1 | |
2670 EOF | |
2671 | |
2672 fi | |
2673 | |
29388 | 2674 echo $ac_n "checking for struct exception""... $ac_c" 1>&6 |
29949 | 2675 echo "configure:2676: checking for struct exception" >&5 |
29388 | 2676 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then |
2677 echo $ac_n "(cached) $ac_c" 1>&6 | |
2678 else | |
2679 cat > conftest.$ac_ext <<EOF | |
29949 | 2680 #line 2681 "configure" |
29388 | 2681 #include "confdefs.h" |
2682 #include <math.h> | |
2683 int main() { | |
2684 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; | |
2685 ; return 0; } | |
2686 EOF | |
29949 | 2687 if { (eval echo configure:2688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 2688 rm -rf conftest* |
2689 emacs_cv_struct_exception=yes | |
2690 else | |
2691 echo "configure: failed program was:" >&5 | |
2692 cat conftest.$ac_ext >&5 | |
2693 rm -rf conftest* | |
2694 emacs_cv_struct_exception=no | |
2695 fi | |
2696 rm -f conftest* | |
2697 fi | |
2698 | |
2699 echo "$ac_t""$emacs_cv_struct_exception" 1>&6 | |
2700 HAVE_EXCEPTION=$emacs_cv_struct_exception | |
2701 if test $emacs_cv_struct_exception != yes; then | |
2702 cat >> confdefs.h <<\EOF | |
2703 #define NO_MATHERR 1 | |
2704 EOF | |
2705 | |
2706 fi | |
2707 | |
25897 | 2708 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
29949 | 2709 echo "configure:2710: checking whether struct tm is in sys/time.h or time.h" >&5 |
25897 | 2710 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
2711 echo $ac_n "(cached) $ac_c" 1>&6 | |
2712 else | |
2713 cat > conftest.$ac_ext <<EOF | |
29949 | 2714 #line 2715 "configure" |
25897 | 2715 #include "confdefs.h" |
2716 #include <sys/types.h> | |
2717 #include <time.h> | |
2718 int main() { | |
2719 struct tm *tp; tp->tm_sec; | |
2720 ; return 0; } | |
2721 EOF | |
29949 | 2722 if { (eval echo configure:2723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2723 rm -rf conftest* |
2724 ac_cv_struct_tm=time.h | |
2725 else | |
2726 echo "configure: failed program was:" >&5 | |
2727 cat conftest.$ac_ext >&5 | |
2728 rm -rf conftest* | |
2729 ac_cv_struct_tm=sys/time.h | |
2730 fi | |
2731 rm -f conftest* | |
2732 fi | |
2733 | |
2734 echo "$ac_t""$ac_cv_struct_tm" 1>&6 | |
2735 if test $ac_cv_struct_tm = sys/time.h; then | |
2736 cat >> confdefs.h <<\EOF | |
2737 #define TM_IN_SYS_TIME 1 | |
2738 EOF | |
2739 | |
2740 fi | |
2741 | |
2742 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | |
29949 | 2743 echo "configure:2744: checking for tm_zone in struct tm" >&5 |
25897 | 2744 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
2745 echo $ac_n "(cached) $ac_c" 1>&6 | |
2746 else | |
2747 cat > conftest.$ac_ext <<EOF | |
29949 | 2748 #line 2749 "configure" |
25897 | 2749 #include "confdefs.h" |
2750 #include <sys/types.h> | |
2751 #include <$ac_cv_struct_tm> | |
2752 int main() { | |
2753 struct tm tm; tm.tm_zone; | |
2754 ; return 0; } | |
2755 EOF | |
29949 | 2756 if { (eval echo configure:2757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2757 rm -rf conftest* |
2758 ac_cv_struct_tm_zone=yes | |
2759 else | |
2760 echo "configure: failed program was:" >&5 | |
2761 cat conftest.$ac_ext >&5 | |
2762 rm -rf conftest* | |
2763 ac_cv_struct_tm_zone=no | |
2764 fi | |
2765 rm -f conftest* | |
2766 fi | |
2767 | |
2768 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 | |
2769 if test "$ac_cv_struct_tm_zone" = yes; then | |
2770 cat >> confdefs.h <<\EOF | |
2771 #define HAVE_TM_ZONE 1 | |
2772 EOF | |
2773 | |
2774 else | |
2775 echo $ac_n "checking for tzname""... $ac_c" 1>&6 | |
29949 | 2776 echo "configure:2777: checking for tzname" >&5 |
25897 | 2777 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
2778 echo $ac_n "(cached) $ac_c" 1>&6 | |
2779 else | |
2780 cat > conftest.$ac_ext <<EOF | |
29949 | 2781 #line 2782 "configure" |
25897 | 2782 #include "confdefs.h" |
2783 #include <time.h> | |
2784 #ifndef tzname /* For SGI. */ | |
2785 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
2786 #endif | |
2787 int main() { | |
2788 atoi(*tzname); | |
2789 ; return 0; } | |
2790 EOF | |
29949 | 2791 if { (eval echo configure:2792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 2792 rm -rf conftest* |
2793 ac_cv_var_tzname=yes | |
2794 else | |
2795 echo "configure: failed program was:" >&5 | |
2796 cat conftest.$ac_ext >&5 | |
2797 rm -rf conftest* | |
2798 ac_cv_var_tzname=no | |
2799 fi | |
2800 rm -f conftest* | |
2801 fi | |
2802 | |
2803 echo "$ac_t""$ac_cv_var_tzname" 1>&6 | |
2804 if test $ac_cv_var_tzname = yes; then | |
2805 cat >> confdefs.h <<\EOF | |
2806 #define HAVE_TZNAME 1 | |
2807 EOF | |
2808 | |
2809 fi | |
2810 fi | |
2811 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2812 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
29949 | 2813 echo "configure:2814: checking for tm_gmtoff in struct tm" >&5 |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2814 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2815 echo $ac_n "(cached) $ac_c" 1>&6 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2816 else |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2817 cat > conftest.$ac_ext <<EOF |
29949 | 2818 #line 2819 "configure" |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2819 #include "confdefs.h" |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2820 #include <time.h> |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2821 int main() { |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2822 struct tm t; t.tm_gmtoff = 0 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2823 ; return 0; } |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2824 EOF |
29949 | 2825 if { (eval echo configure:2826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2826 rm -rf conftest* |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2827 emacs_cv_tm_gmtoff=yes |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2828 else |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2829 echo "configure: failed program was:" >&5 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2830 cat conftest.$ac_ext >&5 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2831 rm -rf conftest* |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2832 emacs_cv_tm_gmtoff=no |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2833 fi |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2834 rm -f conftest* |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2835 fi |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2836 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2837 echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2838 if test $emacs_cv_tm_gmtoff = yes; then |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2839 cat >> confdefs.h <<\EOF |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2840 #define HAVE_TM_GMTOFF 1 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2841 EOF |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2842 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2843 fi |
25897 | 2844 |
28060 | 2845 |
2846 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 | |
29949 | 2847 echo "configure:2848: checking for ${CC-cc} option to accept ANSI C" >&5 |
28060 | 2848 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then |
2849 echo $ac_n "(cached) $ac_c" 1>&6 | |
2850 else | |
2851 ac_cv_prog_cc_stdc=no | |
2852 ac_save_CC="$CC" | |
2853 # Don't try gcc -ansi; that turns off useful extensions and | |
2854 # breaks some systems' header files. | |
2855 # AIX -qlanglvl=ansi | |
2856 # Ultrix and OSF/1 -std1 | |
2857 # HP-UX 10.20 and later -Ae | |
2858 # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2859 # SVR4 -Xc -D__EXTENSIONS__ | |
2860 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2861 do | |
2862 CC="$ac_save_CC $ac_arg" | |
2863 cat > conftest.$ac_ext <<EOF | |
29949 | 2864 #line 2865 "configure" |
28060 | 2865 #include "confdefs.h" |
2866 #include <stdarg.h> | |
2867 #include <stdio.h> | |
2868 #include <sys/types.h> | |
2869 #include <sys/stat.h> | |
2870 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2871 struct buf { int x; }; | |
2872 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2873 static char *e (p, i) | |
2874 char **p; | |
2875 int i; | |
2876 { | |
2877 return p[i]; | |
2878 } | |
2879 static char *f (char * (*g) (char **, int), char **p, ...) | |
2880 { | |
2881 char *s; | |
2882 va_list v; | |
2883 va_start (v,p); | |
2884 s = g (p, va_arg (v,int)); | |
2885 va_end (v); | |
2886 return s; | |
2887 } | |
2888 int test (int i, double x); | |
2889 struct s1 {int (*f) (int a);}; | |
2890 struct s2 {int (*f) (double a);}; | |
2891 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2892 int argc; | |
2893 char **argv; | |
2894 int main() { | |
2895 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2896 ; return 0; } | |
2897 EOF | |
29949 | 2898 if { (eval echo configure:2899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
28060 | 2899 rm -rf conftest* |
2900 ac_cv_prog_cc_stdc="$ac_arg"; break | |
2901 else | |
2902 echo "configure: failed program was:" >&5 | |
2903 cat conftest.$ac_ext >&5 | |
2904 fi | |
2905 rm -f conftest* | |
2906 done | |
2907 CC="$ac_save_CC" | |
2908 | |
2909 fi | |
2910 | |
2911 case "x$ac_cv_prog_cc_stdc" in | |
2912 x|xno) | |
2913 echo "$ac_t""none needed" 1>&6 ;; | |
2914 *) | |
2915 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 | |
2916 CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2917 esac | |
2918 | |
2919 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 | |
29949 | 2920 echo "configure:2921: checking for function prototypes" >&5 |
28060 | 2921 if test "$ac_cv_prog_cc_stdc" != no; then |
2922 echo "$ac_t""yes" 1>&6 | |
2923 cat >> confdefs.h <<\EOF | |
2924 #define PROTOTYPES 1 | |
2925 EOF | |
2926 | |
2927 else | |
2928 echo "$ac_t""no" 1>&6 | |
2929 fi | |
2930 | |
2931 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 | |
29949 | 2932 echo "configure:2933: checking for working volatile" >&5 |
28060 | 2933 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then |
2934 echo $ac_n "(cached) $ac_c" 1>&6 | |
2935 else | |
2936 cat > conftest.$ac_ext <<EOF | |
29949 | 2937 #line 2938 "configure" |
28060 | 2938 #include "confdefs.h" |
2939 | |
2940 int main() { | |
2941 | |
2942 volatile int x; | |
2943 int * volatile y; | |
2944 ; return 0; } | |
2945 EOF | |
29949 | 2946 if { (eval echo configure:2947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
28060 | 2947 rm -rf conftest* |
2948 ac_cv_c_volatile=yes | |
2949 else | |
2950 echo "configure: failed program was:" >&5 | |
2951 cat conftest.$ac_ext >&5 | |
2952 rm -rf conftest* | |
2953 ac_cv_c_volatile=no | |
2954 fi | |
2955 rm -f conftest* | |
2956 fi | |
2957 | |
2958 echo "$ac_t""$ac_cv_c_volatile" 1>&6 | |
2959 if test $ac_cv_c_volatile = no; then | |
2960 cat >> confdefs.h <<\EOF | |
2961 #define volatile | |
2962 EOF | |
2963 | |
2964 fi | |
2965 | |
25897 | 2966 echo $ac_n "checking for working const""... $ac_c" 1>&6 |
29949 | 2967 echo "configure:2968: checking for working const" >&5 |
25897 | 2968 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
2969 echo $ac_n "(cached) $ac_c" 1>&6 | |
2970 else | |
2971 cat > conftest.$ac_ext <<EOF | |
29949 | 2972 #line 2973 "configure" |
25897 | 2973 #include "confdefs.h" |
2974 | |
2975 int main() { | |
2976 | |
2977 /* Ultrix mips cc rejects this. */ | |
29949 | 2978 typedef int charset[2]; const charset x; |
25897 | 2979 /* SunOS 4.1.1 cc rejects this. */ |
2980 char const *const *ccp; | |
2981 char **p; | |
2982 /* NEC SVR4.0.2 mips cc rejects this. */ | |
2983 struct point {int x, y;}; | |
2984 static struct point const zero = {0,0}; | |
2985 /* AIX XL C 1.02.0.0 rejects this. | |
2986 It does not let you subtract one const X* pointer from another in an arm | |
2987 of an if-expression whose if-part is not a constant expression */ | |
2988 const char *g = "string"; | |
2989 ccp = &g + (g ? g-g : 0); | |
2990 /* HPUX 7.0 cc rejects these. */ | |
2991 ++ccp; | |
2992 p = (char**) ccp; | |
2993 ccp = (char const *const *) p; | |
2994 { /* SCO 3.2v4 cc rejects this. */ | |
2995 char *t; | |
2996 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
2997 | |
2998 *t++ = 0; | |
2999 } | |
3000 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3001 int x[] = {25, 17}; | |
3002 const int *foo = &x[0]; | |
3003 ++foo; | |
3004 } | |
3005 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3006 typedef const int *iptr; | |
3007 iptr p = 0; | |
3008 ++p; | |
3009 } | |
3010 { /* AIX XL C 1.02.0.0 rejects this saying | |
3011 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3012 struct s { int j; const int *ap[3]; }; | |
3013 struct s *b; b->j = 5; | |
3014 } | |
3015 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3016 const int foo = 10; | |
3017 } | |
3018 | |
3019 ; return 0; } | |
3020 EOF | |
29949 | 3021 if { (eval echo configure:3022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 3022 rm -rf conftest* |
3023 ac_cv_c_const=yes | |
3024 else | |
3025 echo "configure: failed program was:" >&5 | |
3026 cat conftest.$ac_ext >&5 | |
3027 rm -rf conftest* | |
3028 ac_cv_c_const=no | |
3029 fi | |
3030 rm -f conftest* | |
3031 fi | |
3032 | |
3033 echo "$ac_t""$ac_cv_c_const" 1>&6 | |
3034 if test $ac_cv_c_const = no; then | |
3035 cat >> confdefs.h <<\EOF | |
3036 #define const | |
3037 EOF | |
3038 | |
3039 fi | |
3040 | |
28060 | 3041 echo $ac_n "checking for void * support""... $ac_c" 1>&6 |
29949 | 3042 echo "configure:3043: checking for void * support" >&5 |
28060 | 3043 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then |
3044 echo $ac_n "(cached) $ac_c" 1>&6 | |
3045 else | |
3046 cat > conftest.$ac_ext <<EOF | |
29949 | 3047 #line 3048 "configure" |
28060 | 3048 #include "confdefs.h" |
3049 | |
3050 int main() { | |
3051 void * foo; | |
3052 ; return 0; } | |
3053 EOF | |
29949 | 3054 if { (eval echo configure:3055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
28060 | 3055 rm -rf conftest* |
3056 emacs_cv_void_star=yes | |
3057 else | |
3058 echo "configure: failed program was:" >&5 | |
3059 cat conftest.$ac_ext >&5 | |
3060 rm -rf conftest* | |
3061 emacs_cv_void_star=no | |
3062 fi | |
3063 rm -f conftest* | |
3064 fi | |
3065 | |
3066 echo "$ac_t""$emacs_cv_void_star" 1>&6 | |
3067 if test $emacs_cv_void_star = yes; then | |
3068 cat >> confdefs.h <<\EOF | |
3069 #define POINTER_TYPE void | |
3070 EOF | |
3071 | |
3072 else | |
3073 cat >> confdefs.h <<\EOF | |
3074 #define POINTER_TYPE char | |
3075 EOF | |
3076 | |
3077 fi | |
25897 | 3078 |
3079 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
29949 | 3080 echo "configure:3081: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
25897 | 3081 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
3082 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
3083 echo $ac_n "(cached) $ac_c" 1>&6 | |
3084 else | |
3085 cat > conftestmake <<\EOF | |
3086 all: | |
3087 @echo 'ac_maketemp="${MAKE}"' | |
3088 EOF | |
3089 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3090 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
3091 if test -n "$ac_maketemp"; then | |
3092 eval ac_cv_prog_make_${ac_make}_set=yes | |
3093 else | |
3094 eval ac_cv_prog_make_${ac_make}_set=no | |
3095 fi | |
3096 rm -f conftestmake | |
3097 fi | |
3098 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3099 echo "$ac_t""yes" 1>&6 | |
3100 SET_MAKE= | |
3101 else | |
3102 echo "$ac_t""no" 1>&6 | |
3103 SET_MAKE="MAKE=${MAKE-make}" | |
3104 fi | |
3105 | |
3106 | |
3107 echo $ac_n "checking for long file names""... $ac_c" 1>&6 | |
29949 | 3108 echo "configure:3109: checking for long file names" >&5 |
25897 | 3109 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then |
3110 echo $ac_n "(cached) $ac_c" 1>&6 | |
3111 else | |
3112 ac_cv_sys_long_file_names=yes | |
3113 # Test for long file names in all the places we know might matter: | |
3114 # . the current directory, where building will happen | |
3115 # $prefix/lib where we will be installing things | |
3116 # $exec_prefix/lib likewise | |
3117 # eval it to expand exec_prefix. | |
3118 # $TMPDIR if set, where it might want to write temporary files | |
3119 # if $TMPDIR is not set: | |
3120 # /tmp where it might want to write temporary files | |
3121 # /var/tmp likewise | |
3122 # /usr/tmp likewise | |
3123 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
3124 ac_tmpdirs="$TMPDIR" | |
3125 else | |
3126 ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
3127 fi | |
3128 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
3129 test -d $ac_dir || continue | |
3130 test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
3131 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null | |
3132 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null | |
3133 val=`cat $ac_dir/conftest9012345 2>/dev/null` | |
3134 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then | |
3135 ac_cv_sys_long_file_names=no | |
3136 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
3137 break | |
3138 fi | |
3139 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
3140 done | |
3141 fi | |
3142 | |
3143 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6 | |
3144 if test $ac_cv_sys_long_file_names = yes; then | |
3145 cat >> confdefs.h <<\EOF | |
3146 #define HAVE_LONG_FILE_NAMES 1 | |
3147 EOF | |
3148 | |
3149 fi | |
3150 | |
3151 | |
3152 #### Choose a window system. | |
3153 | |
3154 # If we find X, set shell vars x_includes and x_libraries to the | |
3155 # paths, otherwise set no_x=yes. | |
3156 # Uses ac_ vars as temps to allow command line to override cache and checks. | |
3157 # --without-x overrides everything else, but does not touch the cache. | |
3158 echo $ac_n "checking for X""... $ac_c" 1>&6 | |
29949 | 3159 echo "configure:3160: checking for X" >&5 |
25897 | 3160 |
3161 # Check whether --with-x or --without-x was given. | |
3162 if test "${with_x+set}" = set; then | |
3163 withval="$with_x" | |
3164 : | |
3165 fi | |
3166 | |
3167 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
3168 if test "x$with_x" = xno; then | |
3169 # The user explicitly disabled X. | |
3170 have_x=disabled | |
3171 else | |
3172 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
3173 # Both variables are already set. | |
3174 have_x=yes | |
3175 else | |
3176 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
3177 echo $ac_n "(cached) $ac_c" 1>&6 | |
3178 else | |
3179 # One or both of the vars are not set, and there is no cached value. | |
3180 ac_x_includes=NO ac_x_libraries=NO | |
3181 rm -fr conftestdir | |
3182 if mkdir conftestdir; then | |
3183 cd conftestdir | |
3184 # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
3185 cat > Imakefile <<'EOF' | |
3186 acfindx: | |
3187 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
3188 EOF | |
3189 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
3190 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3191 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
3192 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
3193 for ac_extension in a so sl; do | |
3194 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
3195 test -f $ac_im_libdir/libX11.$ac_extension; then | |
3196 ac_im_usrlibdir=$ac_im_libdir; break | |
3197 fi | |
3198 done | |
3199 # Screen out bogus values from the imake configuration. They are | |
3200 # bogus both because they are the default anyway, and because | |
3201 # using them would break gcc on systems where it needs fixed includes. | |
3202 case "$ac_im_incroot" in | |
3203 /usr/include) ;; | |
3204 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
3205 esac | |
3206 case "$ac_im_usrlibdir" in | |
3207 /usr/lib | /lib) ;; | |
3208 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
3209 esac | |
3210 fi | |
3211 cd .. | |
3212 rm -fr conftestdir | |
3213 fi | |
3214 | |
3215 if test "$ac_x_includes" = NO; then | |
3216 # Guess where to find include files, by looking for this one X11 .h file. | |
3217 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
3218 | |
3219 # First, try using that file with no special directory specified. | |
3220 cat > conftest.$ac_ext <<EOF | |
29949 | 3221 #line 3222 "configure" |
25897 | 3222 #include "confdefs.h" |
3223 #include <$x_direct_test_include> | |
3224 EOF | |
3225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29949 | 3226 { (eval echo configure:3227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 3227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 3228 if test -z "$ac_err"; then |
3229 rm -rf conftest* | |
3230 # We can compile using X headers with no special include directory. | |
3231 ac_x_includes= | |
3232 else | |
3233 echo "$ac_err" >&5 | |
3234 echo "configure: failed program was:" >&5 | |
3235 cat conftest.$ac_ext >&5 | |
3236 rm -rf conftest* | |
3237 # Look for the header file in a standard set of common directories. | |
3238 # Check X11 before X11Rn because it is often a symlink to the current release. | |
3239 for ac_dir in \ | |
3240 /usr/X11/include \ | |
3241 /usr/X11R6/include \ | |
3242 /usr/X11R5/include \ | |
3243 /usr/X11R4/include \ | |
3244 \ | |
3245 /usr/include/X11 \ | |
3246 /usr/include/X11R6 \ | |
3247 /usr/include/X11R5 \ | |
3248 /usr/include/X11R4 \ | |
3249 \ | |
3250 /usr/local/X11/include \ | |
3251 /usr/local/X11R6/include \ | |
3252 /usr/local/X11R5/include \ | |
3253 /usr/local/X11R4/include \ | |
3254 \ | |
3255 /usr/local/include/X11 \ | |
3256 /usr/local/include/X11R6 \ | |
3257 /usr/local/include/X11R5 \ | |
3258 /usr/local/include/X11R4 \ | |
3259 \ | |
3260 /usr/X386/include \ | |
3261 /usr/x386/include \ | |
3262 /usr/XFree86/include/X11 \ | |
3263 \ | |
3264 /usr/include \ | |
3265 /usr/local/include \ | |
3266 /usr/unsupported/include \ | |
3267 /usr/athena/include \ | |
3268 /usr/local/x11r5/include \ | |
3269 /usr/lpp/Xamples/include \ | |
3270 \ | |
3271 /usr/openwin/include \ | |
3272 /usr/openwin/share/include \ | |
3273 ; \ | |
3274 do | |
3275 if test -r "$ac_dir/$x_direct_test_include"; then | |
3276 ac_x_includes=$ac_dir | |
3277 break | |
3278 fi | |
3279 done | |
3280 fi | |
3281 rm -f conftest* | |
3282 fi # $ac_x_includes = NO | |
3283 | |
3284 if test "$ac_x_libraries" = NO; then | |
3285 # Check for the libraries. | |
3286 | |
3287 test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
3288 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
3289 | |
3290 # See if we find them without any special options. | |
3291 # Don't add to $LIBS permanently. | |
3292 ac_save_LIBS="$LIBS" | |
3293 LIBS="-l$x_direct_test_library $LIBS" | |
3294 cat > conftest.$ac_ext <<EOF | |
29949 | 3295 #line 3296 "configure" |
25897 | 3296 #include "confdefs.h" |
3297 | |
3298 int main() { | |
3299 ${x_direct_test_function}() | |
3300 ; return 0; } | |
3301 EOF | |
29949 | 3302 if { (eval echo configure:3303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3303 rm -rf conftest* |
3304 LIBS="$ac_save_LIBS" | |
3305 # We can link X programs with no special library path. | |
3306 ac_x_libraries= | |
3307 else | |
3308 echo "configure: failed program was:" >&5 | |
3309 cat conftest.$ac_ext >&5 | |
3310 rm -rf conftest* | |
3311 LIBS="$ac_save_LIBS" | |
3312 # First see if replacing the include by lib works. | |
3313 # Check X11 before X11Rn because it is often a symlink to the current release. | |
3314 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
3315 /usr/X11/lib \ | |
3316 /usr/X11R6/lib \ | |
3317 /usr/X11R5/lib \ | |
3318 /usr/X11R4/lib \ | |
3319 \ | |
3320 /usr/lib/X11 \ | |
3321 /usr/lib/X11R6 \ | |
3322 /usr/lib/X11R5 \ | |
3323 /usr/lib/X11R4 \ | |
3324 \ | |
3325 /usr/local/X11/lib \ | |
3326 /usr/local/X11R6/lib \ | |
3327 /usr/local/X11R5/lib \ | |
3328 /usr/local/X11R4/lib \ | |
3329 \ | |
3330 /usr/local/lib/X11 \ | |
3331 /usr/local/lib/X11R6 \ | |
3332 /usr/local/lib/X11R5 \ | |
3333 /usr/local/lib/X11R4 \ | |
3334 \ | |
3335 /usr/X386/lib \ | |
3336 /usr/x386/lib \ | |
3337 /usr/XFree86/lib/X11 \ | |
3338 \ | |
3339 /usr/lib \ | |
3340 /usr/local/lib \ | |
3341 /usr/unsupported/lib \ | |
3342 /usr/athena/lib \ | |
3343 /usr/local/x11r5/lib \ | |
3344 /usr/lpp/Xamples/lib \ | |
3345 /lib/usr/lib/X11 \ | |
3346 \ | |
3347 /usr/openwin/lib \ | |
3348 /usr/openwin/share/lib \ | |
3349 ; \ | |
3350 do | |
3351 for ac_extension in a so sl; do | |
3352 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
3353 ac_x_libraries=$ac_dir | |
3354 break 2 | |
3355 fi | |
3356 done | |
3357 done | |
3358 fi | |
3359 rm -f conftest* | |
3360 fi # $ac_x_libraries = NO | |
3361 | |
3362 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
3363 # Didn't find X anywhere. Cache the known absence of X. | |
3364 ac_cv_have_x="have_x=no" | |
3365 else | |
3366 # Record where we found X for the cache. | |
3367 ac_cv_have_x="have_x=yes \ | |
3368 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
3369 fi | |
3370 fi | |
3371 fi | |
3372 eval "$ac_cv_have_x" | |
3373 fi # $with_x != no | |
3374 | |
3375 if test "$have_x" != yes; then | |
3376 echo "$ac_t""$have_x" 1>&6 | |
3377 no_x=yes | |
3378 else | |
3379 # If each of the values was on the command line, it overrides each guess. | |
3380 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
3381 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
3382 # Update the cache value to reflect the command line values. | |
3383 ac_cv_have_x="have_x=yes \ | |
3384 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
3385 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
3386 fi | |
3387 | |
3388 if test "$no_x" = yes; then | |
3389 window_system=none | |
3390 else | |
3391 window_system=x11 | |
3392 fi | |
3393 | |
3394 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
3395 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
3396 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
3397 x_default_search_path="" | |
3398 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
3399 x_search_path="${x_library}/X11/%L/%T/%N%C%S:\ | |
3400 ${x_library}/X11/%L/%T/%N%C%S:${x_libary}/X11/%l/%T/%N%C%S:\ | |
3401 ${x_library}/X11/%T/%N%C%S:${x_library}/X11/%L/%T/%N%S:\ | |
3402 ${x_library}/X11/%l/%T/%N%S:${x_library}/X11/%T/%N%S" | |
3403 if test x"${x_default_search_path}" = x; then | |
3404 x_default_search_path=${x_search_path} | |
3405 else | |
3406 x_default_search_path="${x_search_path}:${x_default_search_path}" | |
3407 fi | |
3408 done | |
3409 fi | |
3410 if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
3411 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
3412 fi | |
3413 | |
3414 if test x"${x_includes}" = x; then | |
3415 bitmapdir=/usr/include/X11/bitmaps | |
3416 else | |
3417 # accumulate include directories that have X11 bitmap subdirectories | |
3418 bmd_acc="dummyval" | |
3419 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
3420 if test -d "${bmd}/X11/bitmaps"; then | |
3421 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
26502 | 3422 fi |
3423 if test -d "${bmd}/bitmaps"; then | |
25897 | 3424 bmd_acc="${bmd_acc}:${bmd}/bitmaps" |
3425 fi | |
3426 done | |
3427 if test ${bmd_acc} != "dummyval"; then | |
3428 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
3429 fi | |
3430 fi | |
3431 | |
3432 case "${window_system}" in | |
3433 x11 ) | |
3434 HAVE_X_WINDOWS=yes | |
3435 HAVE_X11=yes | |
3436 case "${with_x_toolkit}" in | |
3437 athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
3438 motif ) USE_X_TOOLKIT=MOTIF ;; | |
3439 no ) USE_X_TOOLKIT=none ;; | |
3440 * ) USE_X_TOOLKIT=maybe ;; | |
3441 esac | |
3442 ;; | |
3443 none ) | |
3444 HAVE_X_WINDOWS=no | |
3445 HAVE_X11=no | |
3446 USE_X_TOOLKIT=none | |
3447 ;; | |
3448 esac | |
3449 | |
3450 ### If we're using X11, we should use the X menu package. | |
3451 HAVE_MENUS=no | |
3452 case ${HAVE_X11} in | |
3453 yes ) HAVE_MENUS=yes ;; | |
3454 esac | |
3455 | |
3456 if test "${opsys}" = "hpux9"; then | |
3457 case "${x_libraries}" in | |
3458 *X11R4* ) | |
3459 opsysfile="s/hpux9-x11r4.h" | |
3460 ;; | |
3461 esac | |
3462 fi | |
3463 | |
3464 if test "${opsys}" = "hpux9shr"; then | |
3465 case "${x_libraries}" in | |
3466 *X11R4* ) | |
3467 opsysfile="s/hpux9shxr4.h" | |
3468 ;; | |
3469 esac | |
3470 fi | |
3471 | |
3472 #### Extract some information from the operating system and machine files. | |
3473 | |
3474 echo "checking the machine- and system-dependent files to find out | |
3475 - which libraries the lib-src programs will want, and | |
3476 - whether the GNU malloc routines are usable" 1>&6 | |
29949 | 3477 echo "configure:3478: checking the machine- and system-dependent files to find out |
25897 | 3478 - which libraries the lib-src programs will want, and |
3479 - whether the GNU malloc routines are usable" >&5 | |
3480 | |
3481 ### First figure out CFLAGS (which we use for running the compiler here) | |
3482 ### and REAL_CFLAGS (which we use for real compilation). | |
3483 ### The two are the same except on a few systems, where they are made | |
3484 ### different to work around various lossages. For example, | |
3485 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
3486 ### as implying static linking. | |
3487 | |
3488 ### If the CFLAGS env var is specified, we use that value | |
3489 ### instead of the default. | |
3490 | |
3491 ### It's not important that this name contain the PID; you can't run | |
3492 ### two configures in the same directory and have anything work | |
3493 ### anyway. | |
3494 tempcname="conftest.c" | |
3495 | |
3496 echo ' | |
3497 #include "'${srcdir}'/src/'${opsysfile}'" | |
3498 #include "'${srcdir}'/src/'${machfile}'" | |
3499 #ifndef LIBS_MACHINE | |
3500 #define LIBS_MACHINE | |
3501 #endif | |
3502 #ifndef LIBS_SYSTEM | |
3503 #define LIBS_SYSTEM | |
3504 #endif | |
3505 #ifndef C_SWITCH_SYSTEM | |
3506 #define C_SWITCH_SYSTEM | |
3507 #endif | |
3508 #ifndef C_SWITCH_MACHINE | |
3509 #define C_SWITCH_MACHINE | |
3510 #endif | |
3511 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
3512 configure___ c_switch_system=C_SWITCH_SYSTEM | |
3513 configure___ c_switch_machine=C_SWITCH_MACHINE | |
3514 | |
3515 #ifndef LIB_X11_LIB | |
3516 #define LIB_X11_LIB -lX11 | |
3517 #endif | |
3518 | |
3519 #ifndef LIBX11_MACHINE | |
3520 #define LIBX11_MACHINE | |
3521 #endif | |
3522 | |
3523 #ifndef LIBX11_SYSTEM | |
3524 #define LIBX11_SYSTEM | |
3525 #endif | |
3526 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
3527 | |
3528 #ifdef UNEXEC | |
3529 configure___ unexec=UNEXEC | |
3530 #else | |
3531 configure___ unexec=unexec.o | |
3532 #endif | |
3533 | |
3534 #ifdef SYSTEM_MALLOC | |
3535 configure___ system_malloc=yes | |
3536 #else | |
3537 configure___ system_malloc=no | |
3538 #endif | |
3539 | |
3540 #ifndef C_DEBUG_SWITCH | |
3541 #define C_DEBUG_SWITCH -g | |
3542 #endif | |
3543 | |
3544 #ifndef C_OPTIMIZE_SWITCH | |
27910 | 3545 #ifdef __GNUC__ |
3546 #define C_OPTIMIZE_SWITCH -O2 | |
3547 #else | |
25897 | 3548 #define C_OPTIMIZE_SWITCH -O |
3549 #endif | |
27910 | 3550 #endif |
25897 | 3551 |
3552 #ifndef LD_SWITCH_MACHINE | |
3553 #define LD_SWITCH_MACHINE | |
3554 #endif | |
3555 | |
3556 #ifndef LD_SWITCH_SYSTEM | |
3557 #define LD_SWITCH_SYSTEM | |
3558 #endif | |
3559 | |
3560 #ifndef LD_SWITCH_X_SITE_AUX | |
3561 #define LD_SWITCH_X_SITE_AUX | |
3562 #endif | |
3563 | |
3564 configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
3565 configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
3566 | |
3567 #ifdef THIS_IS_CONFIGURE | |
3568 | |
3569 /* Get the CFLAGS for tests in configure. */ | |
3570 #ifdef __GNUC__ | |
3571 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3572 #else | |
3573 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3574 #endif | |
3575 | |
3576 #else /* not THIS_IS_CONFIGURE */ | |
3577 | |
3578 /* Get the CFLAGS for real compilation. */ | |
3579 #ifdef __GNUC__ | |
3580 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3581 #else | |
3582 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3583 #endif | |
3584 | |
3585 #endif /* not THIS_IS_CONFIGURE */ | |
3586 ' > ${tempcname} | |
3587 | |
3588 # The value of CPP is a quoted variable reference, so we need to do this | |
3589 # to get its actual value... | |
3590 CPP=`eval "echo $CPP"` | |
3591 eval `${CPP} -Isrc ${tempcname} \ | |
3592 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3593 if test "x$SPECIFIED_CFLAGS" = x; then | |
3594 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
3595 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3596 else | |
3597 REAL_CFLAGS="$CFLAGS" | |
3598 fi | |
3599 rm ${tempcname} | |
3600 | |
3601 ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
3602 | |
3603 ### Compute the unexec source name from the object name. | |
3604 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
3605 | |
3606 # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
3607 # Assume not, until told otherwise. | |
3608 GNU_MALLOC=yes | |
3609 doug_lea_malloc=yes | |
3610 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 | |
29949 | 3611 echo "configure:3612: checking for malloc_get_state" >&5 |
25897 | 3612 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then |
3613 echo $ac_n "(cached) $ac_c" 1>&6 | |
3614 else | |
3615 cat > conftest.$ac_ext <<EOF | |
29949 | 3616 #line 3617 "configure" |
25897 | 3617 #include "confdefs.h" |
3618 /* System header to define __stub macros and hopefully few prototypes, | |
3619 which can conflict with char malloc_get_state(); below. */ | |
3620 #include <assert.h> | |
3621 /* Override any gcc2 internal prototype to avoid an error. */ | |
3622 /* We use char because int might match the return type of a gcc2 | |
3623 builtin and then its argument prototype would still apply. */ | |
3624 char malloc_get_state(); | |
3625 | |
3626 int main() { | |
3627 | |
3628 /* The GNU C library defines this for functions which it implements | |
3629 to always fail with ENOSYS. Some functions are actually named | |
3630 something starting with __ and the normal name is an alias. */ | |
3631 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
3632 choke me | |
3633 #else | |
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
|
3634 malloc_get_state(); |
25897 | 3635 #endif |
3636 | |
3637 ; return 0; } | |
3638 EOF | |
29949 | 3639 if { (eval echo configure:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3640 rm -rf conftest* |
3641 eval "ac_cv_func_malloc_get_state=yes" | |
3642 else | |
3643 echo "configure: failed program was:" >&5 | |
3644 cat conftest.$ac_ext >&5 | |
3645 rm -rf conftest* | |
3646 eval "ac_cv_func_malloc_get_state=no" | |
3647 fi | |
3648 rm -f conftest* | |
3649 fi | |
3650 | |
3651 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then | |
3652 echo "$ac_t""yes" 1>&6 | |
3653 : | |
3654 else | |
3655 echo "$ac_t""no" 1>&6 | |
3656 doug_lea_malloc=no | |
3657 fi | |
3658 | |
3659 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 | |
29949 | 3660 echo "configure:3661: checking for malloc_set_state" >&5 |
25897 | 3661 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then |
3662 echo $ac_n "(cached) $ac_c" 1>&6 | |
3663 else | |
3664 cat > conftest.$ac_ext <<EOF | |
29949 | 3665 #line 3666 "configure" |
25897 | 3666 #include "confdefs.h" |
3667 /* System header to define __stub macros and hopefully few prototypes, | |
3668 which can conflict with char malloc_set_state(); below. */ | |
3669 #include <assert.h> | |
3670 /* Override any gcc2 internal prototype to avoid an error. */ | |
3671 /* We use char because int might match the return type of a gcc2 | |
3672 builtin and then its argument prototype would still apply. */ | |
3673 char malloc_set_state(); | |
3674 | |
3675 int main() { | |
3676 | |
3677 /* The GNU C library defines this for functions which it implements | |
3678 to always fail with ENOSYS. Some functions are actually named | |
3679 something starting with __ and the normal name is an alias. */ | |
3680 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
3681 choke me | |
3682 #else | |
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
|
3683 malloc_set_state(); |
25897 | 3684 #endif |
3685 | |
3686 ; return 0; } | |
3687 EOF | |
29949 | 3688 if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3689 rm -rf conftest* |
3690 eval "ac_cv_func_malloc_set_state=yes" | |
3691 else | |
3692 echo "configure: failed program was:" >&5 | |
3693 cat conftest.$ac_ext >&5 | |
3694 rm -rf conftest* | |
3695 eval "ac_cv_func_malloc_set_state=no" | |
3696 fi | |
3697 rm -f conftest* | |
3698 fi | |
3699 | |
3700 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then | |
3701 echo "$ac_t""yes" 1>&6 | |
3702 : | |
3703 else | |
3704 echo "$ac_t""no" 1>&6 | |
3705 doug_lea_malloc=no | |
3706 fi | |
3707 | |
3708 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 | |
29949 | 3709 echo "configure:3710: checking whether __after_morecore_hook exists" >&5 |
25897 | 3710 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then |
3711 echo $ac_n "(cached) $ac_c" 1>&6 | |
3712 else | |
3713 cat > conftest.$ac_ext <<EOF | |
29949 | 3714 #line 3715 "configure" |
25897 | 3715 #include "confdefs.h" |
3716 extern void (* __after_morecore_hook)(); | |
3717 int main() { | |
3718 __after_morecore_hook = 0 | |
3719 ; return 0; } | |
3720 EOF | |
29949 | 3721 if { (eval echo configure:3722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3722 rm -rf conftest* |
3723 emacs_cv_var___after_morecore_hook=yes | |
3724 else | |
3725 echo "configure: failed program was:" >&5 | |
3726 cat conftest.$ac_ext >&5 | |
3727 rm -rf conftest* | |
3728 emacs_cv_var___after_morecore_hook=no | |
3729 fi | |
3730 rm -f conftest* | |
3731 fi | |
3732 | |
3733 echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6 | |
3734 if test $emacs_cv_var___after_morecore_hook = no; then | |
3735 doug_lea_malloc=no | |
3736 fi | |
3737 if test "${system_malloc}" = "yes"; then | |
3738 GNU_MALLOC=no | |
3739 GNU_MALLOC_reason=" | |
3740 (The GNU allocators don't work with this system configuration.)" | |
3741 fi | |
3742 if test "$doug_lea_malloc" = "yes" ; then | |
3743 if test "$GNU_MALLOC" = yes ; then | |
3744 GNU_MALLOC_reason=" | |
3745 (Using Doug Lea's new malloc from the GNU C Library.)" | |
3746 fi | |
3747 cat >> confdefs.h <<\EOF | |
3748 #define DOUG_LEA_MALLOC 1 | |
3749 EOF | |
3750 | |
3751 fi | |
3752 | |
3753 if test x"${REL_ALLOC}" = x; then | |
3754 REL_ALLOC=${GNU_MALLOC} | |
3755 fi | |
3756 | |
3757 #### Add the libraries to LIBS and check for some functions. | |
3758 | |
3759 if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
3760 CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
3761 else | |
3762 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
3763 fi | |
3764 | |
3765 LIBS="$libsrc_libs $LIBS" | |
3766 | |
3767 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
29949 | 3768 echo "configure:3769: checking for dnet_ntoa in -ldnet" >&5 |
25897 | 3769 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
3770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3771 echo $ac_n "(cached) $ac_c" 1>&6 | |
3772 else | |
3773 ac_save_LIBS="$LIBS" | |
3774 LIBS="-ldnet $LIBS" | |
3775 cat > conftest.$ac_ext <<EOF | |
29949 | 3776 #line 3777 "configure" |
25897 | 3777 #include "confdefs.h" |
3778 /* Override any gcc2 internal prototype to avoid an error. */ | |
3779 /* We use char because int might match the return type of a gcc2 | |
3780 builtin and then its argument prototype would still apply. */ | |
3781 char dnet_ntoa(); | |
3782 | |
3783 int main() { | |
3784 dnet_ntoa() | |
3785 ; return 0; } | |
3786 EOF | |
29949 | 3787 if { (eval echo configure:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3788 rm -rf conftest* |
3789 eval "ac_cv_lib_$ac_lib_var=yes" | |
3790 else | |
3791 echo "configure: failed program was:" >&5 | |
3792 cat conftest.$ac_ext >&5 | |
3793 rm -rf conftest* | |
3794 eval "ac_cv_lib_$ac_lib_var=no" | |
3795 fi | |
3796 rm -f conftest* | |
3797 LIBS="$ac_save_LIBS" | |
3798 | |
3799 fi | |
3800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3801 echo "$ac_t""yes" 1>&6 | |
3802 ac_tr_lib=HAVE_LIB`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3803 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3804 cat >> confdefs.h <<EOF | |
3805 #define $ac_tr_lib 1 | |
3806 EOF | |
3807 | |
3808 LIBS="-ldnet $LIBS" | |
3809 | |
3810 else | |
3811 echo "$ac_t""no" 1>&6 | |
3812 fi | |
3813 | |
3814 | |
3815 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 | |
29949 | 3816 echo "configure:3817: checking for main in -lXbsd" >&5 |
25897 | 3817 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` |
3818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3819 echo $ac_n "(cached) $ac_c" 1>&6 | |
3820 else | |
3821 ac_save_LIBS="$LIBS" | |
3822 LIBS="-lXbsd $LIBS" | |
3823 cat > conftest.$ac_ext <<EOF | |
29949 | 3824 #line 3825 "configure" |
25897 | 3825 #include "confdefs.h" |
3826 | |
3827 int main() { | |
3828 main() | |
3829 ; return 0; } | |
3830 EOF | |
29949 | 3831 if { (eval echo configure:3832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3832 rm -rf conftest* |
3833 eval "ac_cv_lib_$ac_lib_var=yes" | |
3834 else | |
3835 echo "configure: failed program was:" >&5 | |
3836 cat conftest.$ac_ext >&5 | |
3837 rm -rf conftest* | |
3838 eval "ac_cv_lib_$ac_lib_var=no" | |
3839 fi | |
3840 rm -f conftest* | |
3841 LIBS="$ac_save_LIBS" | |
3842 | |
3843 fi | |
3844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3845 echo "$ac_t""yes" 1>&6 | |
3846 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
3847 else | |
3848 echo "$ac_t""no" 1>&6 | |
3849 fi | |
3850 | |
3851 | |
3852 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 | |
29949 | 3853 echo "configure:3854: checking for cma_open in -lpthreads" >&5 |
25897 | 3854 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` |
3855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3856 echo $ac_n "(cached) $ac_c" 1>&6 | |
3857 else | |
3858 ac_save_LIBS="$LIBS" | |
3859 LIBS="-lpthreads $LIBS" | |
3860 cat > conftest.$ac_ext <<EOF | |
29949 | 3861 #line 3862 "configure" |
25897 | 3862 #include "confdefs.h" |
3863 /* Override any gcc2 internal prototype to avoid an error. */ | |
3864 /* We use char because int might match the return type of a gcc2 | |
3865 builtin and then its argument prototype would still apply. */ | |
3866 char cma_open(); | |
3867 | |
3868 int main() { | |
3869 cma_open() | |
3870 ; return 0; } | |
3871 EOF | |
29949 | 3872 if { (eval echo configure:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3873 rm -rf conftest* |
3874 eval "ac_cv_lib_$ac_lib_var=yes" | |
3875 else | |
3876 echo "configure: failed program was:" >&5 | |
3877 cat conftest.$ac_ext >&5 | |
3878 rm -rf conftest* | |
3879 eval "ac_cv_lib_$ac_lib_var=no" | |
3880 fi | |
3881 rm -f conftest* | |
3882 LIBS="$ac_save_LIBS" | |
3883 | |
3884 fi | |
3885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3886 echo "$ac_t""yes" 1>&6 | |
3887 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3888 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3889 cat >> confdefs.h <<EOF | |
3890 #define $ac_tr_lib 1 | |
3891 EOF | |
3892 | |
3893 LIBS="-lpthreads $LIBS" | |
3894 | |
3895 else | |
3896 echo "$ac_t""no" 1>&6 | |
3897 fi | |
3898 | |
3899 | |
3900 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 | |
29949 | 3901 echo "configure:3902: checking for XFree86 in /usr/X386" >&5 |
25897 | 3902 if test -d /usr/X386/include; then |
3903 HAVE_XFREE386=yes | |
3904 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
3905 else | |
3906 HAVE_XFREE386=no | |
3907 fi | |
3908 echo "$ac_t""$HAVE_XFREE386" 1>&6 | |
3909 | |
3910 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | |
3911 # for the tests that follow. We set it back to REAL_CFLAGS later on. | |
3912 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
3913 REAL_CPPFLAGS="$CPPFLAGS" |
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
3914 |
25897 | 3915 if test "${HAVE_X11}" = "yes"; then |
3916 DEFS="$C_SWITCH_X_SITE $DEFS" | |
3917 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
3918 LIBS="$LIBX $LIBS" | |
3919 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
|
3920 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" |
25897 | 3921 |
3922 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
3923 # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
3924 # but it's more convenient here to set LD_RUN_PATH | |
3925 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
3926 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
3927 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
3928 export LD_RUN_PATH | |
3929 fi | |
3930 | |
3931 if test "${opsys}" = "gnu-linux"; then | |
3932 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
3933 echo "configure:3934: checking whether X on GNU/Linux needs -b to link" >&5 |
25897 | 3934 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
3935 #line 3936 "configure" |
25897 | 3936 #include "confdefs.h" |
3937 | |
3938 int main() { | |
3939 XOpenDisplay ("foo"); | |
3940 ; return 0; } | |
3941 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
3942 if { (eval echo configure:3943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3943 rm -rf conftest* |
3944 xlinux_first_failure=no | |
3945 else | |
3946 echo "configure: failed program was:" >&5 | |
3947 cat conftest.$ac_ext >&5 | |
3948 rm -rf conftest* | |
3949 xlinux_first_failure=yes | |
3950 fi | |
3951 rm -f conftest* | |
3952 if test "${xlinux_first_failure}" = "yes"; then | |
3953 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
3954 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
3955 OLD_CPPFLAGS="$CPPFLAGS" | |
3956 OLD_LIBS="$LIBS" | |
3957 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
3958 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
3959 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
3960 LIBS="$LIBS -b i486-linuxaout" | |
3961 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
3962 #line 3963 "configure" |
25897 | 3963 #include "confdefs.h" |
3964 | |
3965 int main() { | |
3966 XOpenDisplay ("foo"); | |
3967 ; return 0; } | |
3968 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
3969 if { (eval echo configure:3970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3970 rm -rf conftest* |
3971 xlinux_second_failure=no | |
3972 else | |
3973 echo "configure: failed program was:" >&5 | |
3974 cat conftest.$ac_ext >&5 | |
3975 rm -rf conftest* | |
3976 xlinux_second_failure=yes | |
3977 fi | |
3978 rm -f conftest* | |
3979 if test "${xlinux_second_failure}" = "yes"; then | |
3980 # If we get the same failure with -b, there is no use adding -b. | |
3981 # So take it out. This plays safe. | |
3982 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
3983 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
3984 CPPFLAGS="$OLD_CPPFLAGS" | |
3985 LIBS="$OLD_LIBS" | |
3986 echo "$ac_t""no" 1>&6 | |
3987 else | |
3988 echo "$ac_t""yes" 1>&6 | |
3989 fi | |
3990 else | |
3991 echo "$ac_t""no" 1>&6 | |
3992 fi | |
3993 fi | |
3994 | |
3995 for ac_func in XrmSetDatabase XScreenResourceString \ | |
3996 XScreenNumberOfScreen XSetWMProtocols | |
3997 do | |
3998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
3999 echo "configure:4000: checking for $ac_func" >&5 |
25897 | 4000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4001 echo $ac_n "(cached) $ac_c" 1>&6 | |
4002 else | |
4003 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4004 #line 4005 "configure" |
25897 | 4005 #include "confdefs.h" |
4006 /* System header to define __stub macros and hopefully few prototypes, | |
4007 which can conflict with char $ac_func(); below. */ | |
4008 #include <assert.h> | |
4009 /* Override any gcc2 internal prototype to avoid an error. */ | |
4010 /* We use char because int might match the return type of a gcc2 | |
4011 builtin and then its argument prototype would still apply. */ | |
4012 char $ac_func(); | |
4013 | |
4014 int main() { | |
4015 | |
4016 /* The GNU C library defines this for functions which it implements | |
4017 to always fail with ENOSYS. Some functions are actually named | |
4018 something starting with __ and the normal name is an alias. */ | |
4019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4020 choke me | |
4021 #else | |
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
|
4022 $ac_func(); |
25897 | 4023 #endif |
4024 | |
4025 ; return 0; } | |
4026 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4027 if { (eval echo configure:4028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4028 rm -rf conftest* |
4029 eval "ac_cv_func_$ac_func=yes" | |
4030 else | |
4031 echo "configure: failed program was:" >&5 | |
4032 cat conftest.$ac_ext >&5 | |
4033 rm -rf conftest* | |
4034 eval "ac_cv_func_$ac_func=no" | |
4035 fi | |
4036 rm -f conftest* | |
4037 fi | |
4038 | |
4039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4040 echo "$ac_t""yes" 1>&6 | |
4041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4042 cat >> confdefs.h <<EOF | |
4043 #define $ac_tr_func 1 | |
4044 EOF | |
4045 | |
4046 else | |
4047 echo "$ac_t""no" 1>&6 | |
4048 fi | |
4049 done | |
4050 | |
4051 fi | |
4052 | |
4053 if test "${window_system}" = "x11"; then | |
4054 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4055 echo "configure:4056: checking X11 version 6" >&5 |
25897 | 4056 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then |
4057 echo $ac_n "(cached) $ac_c" 1>&6 | |
4058 else | |
4059 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4060 #line 4061 "configure" |
25897 | 4061 #include "confdefs.h" |
4062 #include <X11/Xlib.h> | |
4063 int main() { | |
4064 #if XlibSpecificationRelease < 6 | |
4065 fail; | |
4066 #endif | |
4067 | |
4068 ; return 0; } | |
4069 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4070 if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4071 rm -rf conftest* |
4072 emacs_cv_x11_version_6=yes | |
4073 else | |
4074 echo "configure: failed program was:" >&5 | |
4075 cat conftest.$ac_ext >&5 | |
4076 rm -rf conftest* | |
4077 emacs_cv_x11_version_6=no | |
4078 fi | |
4079 rm -f conftest* | |
4080 fi | |
4081 | |
4082 if test $emacs_cv_x11_version_6 = yes; then | |
4083 echo "$ac_t""6 or newer" 1>&6 | |
4084 cat >> confdefs.h <<\EOF | |
4085 #define HAVE_X11R6 1 | |
4086 EOF | |
4087 | |
4088 else | |
4089 echo "$ac_t""before 6" 1>&6 | |
4090 fi | |
4091 fi | |
4092 | |
4093 if test "${window_system}" = "x11"; then | |
4094 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4095 echo "configure:4096: checking X11 version 5" >&5 |
25897 | 4096 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then |
4097 echo $ac_n "(cached) $ac_c" 1>&6 | |
4098 else | |
4099 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4100 #line 4101 "configure" |
25897 | 4101 #include "confdefs.h" |
4102 #include <X11/Xlib.h> | |
4103 int main() { | |
4104 #if XlibSpecificationRelease < 5 | |
4105 fail; | |
4106 #endif | |
4107 | |
4108 ; return 0; } | |
4109 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4110 if { (eval echo configure:4111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4111 rm -rf conftest* |
4112 emacs_cv_x11_version_5=yes | |
4113 else | |
4114 echo "configure: failed program was:" >&5 | |
4115 cat conftest.$ac_ext >&5 | |
4116 rm -rf conftest* | |
4117 emacs_cv_x11_version_5=no | |
4118 fi | |
4119 rm -f conftest* | |
4120 fi | |
4121 | |
4122 if test $emacs_cv_x11_version_5 = yes; then | |
4123 echo "$ac_t""5 or newer" 1>&6 | |
4124 HAVE_X11R5=yes | |
4125 cat >> confdefs.h <<\EOF | |
4126 #define HAVE_X11R5 1 | |
4127 EOF | |
4128 | |
4129 else | |
4130 HAVE_X11R5=no | |
4131 echo "$ac_t""before 5" 1>&6 | |
4132 fi | |
4133 fi | |
4134 | |
4135 if test x"${USE_X_TOOLKIT}" = xmaybe; then | |
4136 if test x"${HAVE_X11R5}" = xyes; then | |
4137 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4138 echo "configure:4139: checking X11 version 5 with Xaw" >&5 |
25897 | 4139 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then |
4140 echo $ac_n "(cached) $ac_c" 1>&6 | |
4141 else | |
4142 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4143 #line 4144 "configure" |
25897 | 4144 #include "confdefs.h" |
4145 | |
4146 #include <X11/Intrinsic.h> | |
4147 #include <X11/Xaw/Simple.h> | |
4148 int main() { | |
4149 | |
4150 ; return 0; } | |
4151 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4152 if { (eval echo configure:4153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4153 rm -rf conftest* |
4154 emacs_cv_x11_version_5_with_xaw=yes | |
4155 else | |
4156 echo "configure: failed program was:" >&5 | |
4157 cat conftest.$ac_ext >&5 | |
4158 rm -rf conftest* | |
4159 emacs_cv_x11_version_5_with_xaw=no | |
4160 fi | |
4161 rm -f conftest* | |
4162 fi | |
4163 | |
4164 if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
4165 echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6 | |
4166 USE_X_TOOLKIT=LUCID | |
4167 else | |
4168 echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6 | |
4169 USE_X_TOOLKIT=none | |
4170 fi | |
4171 else | |
4172 USE_X_TOOLKIT=none | |
4173 fi | |
4174 fi | |
4175 | |
4176 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
4177 | |
4178 if test "${USE_X_TOOLKIT}" != "none"; then | |
4179 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4180 echo "configure:4181: checking X11 toolkit version" >&5 |
25897 | 4181 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then |
4182 echo $ac_n "(cached) $ac_c" 1>&6 | |
4183 else | |
4184 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4185 #line 4186 "configure" |
25897 | 4186 #include "confdefs.h" |
4187 #include <X11/Intrinsic.h> | |
4188 int main() { | |
4189 #if XtSpecificationRelease < 6 | |
4190 fail; | |
4191 #endif | |
4192 | |
4193 ; return 0; } | |
4194 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4195 if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4196 rm -rf conftest* |
4197 emacs_cv_x11_toolkit_version_6=yes | |
4198 else | |
4199 echo "configure: failed program was:" >&5 | |
4200 cat conftest.$ac_ext >&5 | |
4201 rm -rf conftest* | |
4202 emacs_cv_x11_toolkit_version_6=no | |
4203 fi | |
4204 rm -f conftest* | |
4205 fi | |
4206 | |
4207 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
4208 if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
4209 echo "$ac_t""6 or newer" 1>&6 | |
4210 cat >> confdefs.h <<\EOF | |
4211 #define HAVE_X11XTR6 1 | |
4212 EOF | |
4213 | |
4214 else | |
4215 echo "$ac_t""before 6" 1>&6 | |
4216 fi | |
4217 | |
4218 OLDLIBS="$LIBS" | |
4219 if test x$HAVE_X11XTR6 = xyes; then | |
4220 LIBS="-lXt -lSM -lICE $LIBS" | |
4221 else | |
4222 LIBS="-lXt $LIBS" | |
4223 fi | |
4224 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4225 echo "configure:4226: checking for XmuConvertStandardSelection in -lXmu" >&5 |
25897 | 4226 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` |
4227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4228 echo $ac_n "(cached) $ac_c" 1>&6 | |
4229 else | |
4230 ac_save_LIBS="$LIBS" | |
4231 LIBS="-lXmu $LIBS" | |
4232 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4233 #line 4234 "configure" |
25897 | 4234 #include "confdefs.h" |
4235 /* Override any gcc2 internal prototype to avoid an error. */ | |
4236 /* We use char because int might match the return type of a gcc2 | |
4237 builtin and then its argument prototype would still apply. */ | |
4238 char XmuConvertStandardSelection(); | |
4239 | |
4240 int main() { | |
4241 XmuConvertStandardSelection() | |
4242 ; return 0; } | |
4243 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4244 if { (eval echo configure:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4245 rm -rf conftest* |
4246 eval "ac_cv_lib_$ac_lib_var=yes" | |
4247 else | |
4248 echo "configure: failed program was:" >&5 | |
4249 cat conftest.$ac_ext >&5 | |
4250 rm -rf conftest* | |
4251 eval "ac_cv_lib_$ac_lib_var=no" | |
4252 fi | |
4253 rm -f conftest* | |
4254 LIBS="$ac_save_LIBS" | |
4255 | |
4256 fi | |
4257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4258 echo "$ac_t""yes" 1>&6 | |
4259 ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
4260 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
4261 cat >> confdefs.h <<EOF | |
4262 #define $ac_tr_lib 1 | |
4263 EOF | |
4264 | |
4265 LIBS="-lXmu $LIBS" | |
4266 | |
4267 else | |
4268 echo "$ac_t""no" 1>&6 | |
4269 fi | |
4270 | |
4271 LIBS="$OLDLIBS" | |
4272 fi | |
4273 | |
4274 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
4275 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4276 echo "configure:4277: checking for Motif version 2.1" >&5 |
25897 | 4277 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then |
4278 echo $ac_n "(cached) $ac_c" 1>&6 | |
4279 else | |
4280 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4281 #line 4282 "configure" |
25897 | 4282 #include "confdefs.h" |
4283 #include <Xm/Xm.h> | |
4284 int main() { | |
4285 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
4286 int x = 5; | |
4287 #else | |
4288 Motif version prior to 2.1. | |
4289 #endif | |
4290 ; return 0; } | |
4291 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4292 if { (eval echo configure:4293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 4293 rm -rf conftest* |
4294 emacs_cv_motif_version_2_1=yes | |
4295 else | |
4296 echo "configure: failed program was:" >&5 | |
4297 cat conftest.$ac_ext >&5 | |
4298 rm -rf conftest* | |
4299 emacs_cv_motif_version_2_1=no | |
4300 fi | |
4301 rm -f conftest* | |
4302 fi | |
4303 | |
4304 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6 | |
4305 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 | |
4306 if test $emacs_cv_motif_version_2_1 = yes; then | |
4307 cat >> confdefs.h <<\EOF | |
4308 #define HAVE_MOTIF_2_1 1 | |
4309 EOF | |
4310 | |
4311 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4312 echo "configure:4313: checking for XpCreateContext in -lXp" >&5 |
25897 | 4313 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` |
4314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4315 echo $ac_n "(cached) $ac_c" 1>&6 | |
4316 else | |
4317 ac_save_LIBS="$LIBS" | |
29906 | 4318 LIBS="-lXp -lXext $LIBS" |
25897 | 4319 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4320 #line 4321 "configure" |
25897 | 4321 #include "confdefs.h" |
4322 /* Override any gcc2 internal prototype to avoid an error. */ | |
4323 /* We use char because int might match the return type of a gcc2 | |
4324 builtin and then its argument prototype would still apply. */ | |
4325 char XpCreateContext(); | |
4326 | |
4327 int main() { | |
4328 XpCreateContext() | |
4329 ; return 0; } | |
4330 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4331 if { (eval echo configure:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4332 rm -rf conftest* |
4333 eval "ac_cv_lib_$ac_lib_var=yes" | |
4334 else | |
4335 echo "configure: failed program was:" >&5 | |
4336 cat conftest.$ac_ext >&5 | |
4337 rm -rf conftest* | |
4338 eval "ac_cv_lib_$ac_lib_var=no" | |
4339 fi | |
4340 rm -f conftest* | |
4341 LIBS="$ac_save_LIBS" | |
4342 | |
4343 fi | |
4344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4345 echo "$ac_t""yes" 1>&6 | |
29906 | 4346 HAVE_LIBXP=yes |
25897 | 4347 else |
4348 echo "$ac_t""no" 1>&6 | |
4349 fi | |
4350 | |
29906 | 4351 if test ${HAVE_LIBXP} = yes; then |
4352 cat >> confdefs.h <<\EOF | |
4353 #define HAVE_LIBXP 1 | |
4354 EOF | |
4355 | |
4356 fi | |
25897 | 4357 fi |
4358 fi | |
4359 | |
4360 ### Is -lXaw3d available? | |
4361 HAVE_XAW3D=no | |
4362 if test "${HAVE_X11}" = "yes"; then | |
4363 if test "${USE_X_TOOLKIT}" != "none"; then | |
4364 old_c_flags="${CFLAGS}" | |
4365 CFLAGS="${LD_SWITCH_X_SITE}" | |
4366 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` | |
4367 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4368 echo "configure:4369: checking for X11/Xaw3d/Scrollbar.h" >&5 |
25897 | 4369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4370 echo $ac_n "(cached) $ac_c" 1>&6 | |
4371 else | |
4372 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4373 #line 4374 "configure" |
25897 | 4374 #include "confdefs.h" |
4375 #include <X11/Xaw3d/Scrollbar.h> | |
4376 EOF | |
4377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4378 { (eval echo configure:4379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4380 if test -z "$ac_err"; then |
4381 rm -rf conftest* | |
4382 eval "ac_cv_header_$ac_safe=yes" | |
4383 else | |
4384 echo "$ac_err" >&5 | |
4385 echo "configure: failed program was:" >&5 | |
4386 cat conftest.$ac_ext >&5 | |
4387 rm -rf conftest* | |
4388 eval "ac_cv_header_$ac_safe=no" | |
4389 fi | |
4390 rm -f conftest* | |
4391 fi | |
4392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4393 echo "$ac_t""yes" 1>&6 | |
4394 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4395 echo "configure:4396: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
25897 | 4396 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` |
4397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4398 echo $ac_n "(cached) $ac_c" 1>&6 | |
4399 else | |
4400 ac_save_LIBS="$LIBS" | |
4401 LIBS="-lXaw3d -lX11 $LIBS" | |
4402 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4403 #line 4404 "configure" |
25897 | 4404 #include "confdefs.h" |
4405 /* Override any gcc2 internal prototype to avoid an error. */ | |
4406 /* We use char because int might match the return type of a gcc2 | |
4407 builtin and then its argument prototype would still apply. */ | |
4408 char XawScrollbarSetThumb(); | |
4409 | |
4410 int main() { | |
4411 XawScrollbarSetThumb() | |
4412 ; return 0; } | |
4413 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4414 if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4415 rm -rf conftest* |
4416 eval "ac_cv_lib_$ac_lib_var=yes" | |
4417 else | |
4418 echo "configure: failed program was:" >&5 | |
4419 cat conftest.$ac_ext >&5 | |
4420 rm -rf conftest* | |
4421 eval "ac_cv_lib_$ac_lib_var=no" | |
4422 fi | |
4423 rm -f conftest* | |
4424 LIBS="$ac_save_LIBS" | |
4425 | |
4426 fi | |
4427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4428 echo "$ac_t""yes" 1>&6 | |
4429 HAVE_XAW3D=yes | |
4430 else | |
4431 echo "$ac_t""no" 1>&6 | |
4432 fi | |
4433 | |
4434 else | |
4435 echo "$ac_t""no" 1>&6 | |
4436 fi | |
4437 | |
4438 CFLAGS="${old_c_flags}" | |
4439 | |
4440 if test "${HAVE_XAW3D}" = "yes"; then | |
4441 cat >> confdefs.h <<\EOF | |
4442 #define HAVE_XAW3D 1 | |
4443 EOF | |
4444 | |
4445 fi | |
4446 fi | |
4447 fi | |
4448 | |
4449 | |
4450 USE_TOOLKIT_SCROLL_BARS=no | |
4451 if test "${with_toolkit_scroll_bars}" != "no"; then | |
4452 if test "${USE_X_TOOLKIT}" != "none"; then | |
4453 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
4454 cat >> confdefs.h <<\EOF | |
4455 #define USE_TOOLKIT_SCROLL_BARS 1 | |
4456 EOF | |
4457 | |
4458 HAVE_XAW3D=no | |
4459 USE_TOOLKIT_SCROLL_BARS=yes | |
4460 elif test "${HAVE_XAW3D}" = "yes"; then | |
4461 cat >> confdefs.h <<\EOF | |
4462 #define USE_TOOLKIT_SCROLL_BARS 1 | |
4463 EOF | |
4464 | |
4465 USE_TOOLKIT_SCROLL_BARS=yes | |
4466 fi | |
4467 fi | |
4468 fi | |
4469 | |
29949 | 4470 |
4471 if test "${with_xim}" != "no"; then | |
4472 cat >> confdefs.h <<\EOF | |
4473 #define USE_XIM 1 | |
4474 EOF | |
4475 | |
4476 fi | |
4477 | |
25897 | 4478 ### Use -lXpm if available, unless `--with-xpm=no'. |
4479 HAVE_XPM=no | |
4480 if test "${HAVE_X11}" = "yes"; then | |
4481 if test "${with_xpm}" != "no"; then | |
4482 old_c_flags="${CFLAGS}" | |
4483 CFLAGS="${LD_SWITCH_X_SITE}" | |
4484 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` | |
4485 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4486 echo "configure:4487: checking for X11/xpm.h" >&5 |
25897 | 4487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4488 echo $ac_n "(cached) $ac_c" 1>&6 | |
4489 else | |
4490 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4491 #line 4492 "configure" |
25897 | 4492 #include "confdefs.h" |
4493 #include <X11/xpm.h> | |
4494 EOF | |
4495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4496 { (eval echo configure:4497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4498 if test -z "$ac_err"; then |
4499 rm -rf conftest* | |
4500 eval "ac_cv_header_$ac_safe=yes" | |
4501 else | |
4502 echo "$ac_err" >&5 | |
4503 echo "configure: failed program was:" >&5 | |
4504 cat conftest.$ac_ext >&5 | |
4505 rm -rf conftest* | |
4506 eval "ac_cv_header_$ac_safe=no" | |
4507 fi | |
4508 rm -f conftest* | |
4509 fi | |
4510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4511 echo "$ac_t""yes" 1>&6 | |
4512 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4513 echo "configure:4514: checking for XpmReadFileToPixmap in -lXpm" >&5 |
25897 | 4514 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` |
4515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4516 echo $ac_n "(cached) $ac_c" 1>&6 | |
4517 else | |
4518 ac_save_LIBS="$LIBS" | |
4519 LIBS="-lXpm -lX11 $LIBS" | |
4520 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4521 #line 4522 "configure" |
25897 | 4522 #include "confdefs.h" |
4523 /* Override any gcc2 internal prototype to avoid an error. */ | |
4524 /* We use char because int might match the return type of a gcc2 | |
4525 builtin and then its argument prototype would still apply. */ | |
4526 char XpmReadFileToPixmap(); | |
4527 | |
4528 int main() { | |
4529 XpmReadFileToPixmap() | |
4530 ; return 0; } | |
4531 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4532 if { (eval echo configure:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4533 rm -rf conftest* |
4534 eval "ac_cv_lib_$ac_lib_var=yes" | |
4535 else | |
4536 echo "configure: failed program was:" >&5 | |
4537 cat conftest.$ac_ext >&5 | |
4538 rm -rf conftest* | |
4539 eval "ac_cv_lib_$ac_lib_var=no" | |
4540 fi | |
4541 rm -f conftest* | |
4542 LIBS="$ac_save_LIBS" | |
4543 | |
4544 fi | |
4545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4546 echo "$ac_t""yes" 1>&6 | |
4547 HAVE_XPM=yes | |
4548 else | |
4549 echo "$ac_t""no" 1>&6 | |
4550 fi | |
4551 | |
4552 else | |
4553 echo "$ac_t""no" 1>&6 | |
4554 fi | |
4555 | |
4556 CFLAGS="${old_c_flags}" | |
4557 fi | |
4558 | |
4559 if test "${HAVE_XPM}" = "yes"; then | |
4560 cat >> confdefs.h <<\EOF | |
4561 #define HAVE_XPM 1 | |
4562 EOF | |
4563 | |
4564 fi | |
4565 fi | |
4566 | |
4567 ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
4568 HAVE_JPEG=no | |
4569 if test "${HAVE_X11}" = "yes"; then | |
4570 if test "${with_jpeg}" != "no"; then | |
4571 old_c_flags="${CFLAGS}" | |
4572 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
27356 | 4573 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` |
4574 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4575 echo "configure:4576: checking for jerror.h" >&5 |
27356 | 4576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4577 echo $ac_n "(cached) $ac_c" 1>&6 | |
4578 else | |
4579 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4580 #line 4581 "configure" |
27356 | 4581 #include "confdefs.h" |
4582 #include <jerror.h> | |
4583 EOF | |
4584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4585 { (eval echo configure:4586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27356 | 4586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4587 if test -z "$ac_err"; then | |
4588 rm -rf conftest* | |
4589 eval "ac_cv_header_$ac_safe=yes" | |
4590 else | |
4591 echo "$ac_err" >&5 | |
4592 echo "configure: failed program was:" >&5 | |
4593 cat conftest.$ac_ext >&5 | |
4594 rm -rf conftest* | |
4595 eval "ac_cv_header_$ac_safe=no" | |
4596 fi | |
4597 rm -f conftest* | |
4598 fi | |
4599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4600 echo "$ac_t""yes" 1>&6 | |
4601 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4602 echo "configure:4603: checking for jpeg_destroy_compress in -ljpeg" >&5 |
25897 | 4603 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` |
4604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4605 echo $ac_n "(cached) $ac_c" 1>&6 | |
4606 else | |
4607 ac_save_LIBS="$LIBS" | |
4608 LIBS="-ljpeg -lX11 $LIBS" | |
4609 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4610 #line 4611 "configure" |
25897 | 4611 #include "confdefs.h" |
4612 /* Override any gcc2 internal prototype to avoid an error. */ | |
4613 /* We use char because int might match the return type of a gcc2 | |
4614 builtin and then its argument prototype would still apply. */ | |
4615 char jpeg_destroy_compress(); | |
4616 | |
4617 int main() { | |
4618 jpeg_destroy_compress() | |
4619 ; return 0; } | |
4620 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4621 if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4622 rm -rf conftest* |
4623 eval "ac_cv_lib_$ac_lib_var=yes" | |
4624 else | |
4625 echo "configure: failed program was:" >&5 | |
4626 cat conftest.$ac_ext >&5 | |
4627 rm -rf conftest* | |
4628 eval "ac_cv_lib_$ac_lib_var=no" | |
4629 fi | |
4630 rm -f conftest* | |
4631 LIBS="$ac_save_LIBS" | |
4632 | |
4633 fi | |
4634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4635 echo "$ac_t""yes" 1>&6 | |
4636 HAVE_JPEG=yes | |
4637 else | |
4638 echo "$ac_t""no" 1>&6 | |
4639 fi | |
4640 | |
27356 | 4641 else |
4642 echo "$ac_t""no" 1>&6 | |
4643 fi | |
4644 | |
25897 | 4645 CFLAGS="${old_c_flags}" |
4646 fi | |
4647 | |
4648 if test "${HAVE_JPEG}" = "yes"; then | |
4649 cat >> confdefs.h <<\EOF | |
4650 #define HAVE_JPEG 1 | |
4651 EOF | |
4652 | |
4653 fi | |
4654 fi | |
4655 | |
4656 ### Use -lpng if available, unless `--with-png=no'. | |
4657 HAVE_PNG=no | |
4658 if test "${HAVE_X11}" = "yes"; then | |
4659 if test "${with_png}" != "no"; then | |
4660 old_c_flags="${CFLAGS}" | |
4661 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4662 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
4663 echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4664 echo "configure:4665: checking for png.h" >&5 |
25897 | 4665 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4666 echo $ac_n "(cached) $ac_c" 1>&6 | |
4667 else | |
4668 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4669 #line 4670 "configure" |
25897 | 4670 #include "confdefs.h" |
4671 #include <png.h> | |
4672 EOF | |
4673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4674 { (eval echo configure:4675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4676 if test -z "$ac_err"; then |
4677 rm -rf conftest* | |
4678 eval "ac_cv_header_$ac_safe=yes" | |
4679 else | |
4680 echo "$ac_err" >&5 | |
4681 echo "configure: failed program was:" >&5 | |
4682 cat conftest.$ac_ext >&5 | |
4683 rm -rf conftest* | |
4684 eval "ac_cv_header_$ac_safe=no" | |
4685 fi | |
4686 rm -f conftest* | |
4687 fi | |
4688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4689 echo "$ac_t""yes" 1>&6 | |
4690 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4691 echo "configure:4692: checking for png_set_expand in -lpng" >&5 |
25897 | 4692 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` |
4693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4694 echo $ac_n "(cached) $ac_c" 1>&6 | |
4695 else | |
4696 ac_save_LIBS="$LIBS" | |
4697 LIBS="-lpng -lX11 -lz -lm $LIBS" | |
4698 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4699 #line 4700 "configure" |
25897 | 4700 #include "confdefs.h" |
4701 /* Override any gcc2 internal prototype to avoid an error. */ | |
4702 /* We use char because int might match the return type of a gcc2 | |
4703 builtin and then its argument prototype would still apply. */ | |
4704 char png_set_expand(); | |
4705 | |
4706 int main() { | |
4707 png_set_expand() | |
4708 ; return 0; } | |
4709 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4710 if { (eval echo configure:4711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4711 rm -rf conftest* |
4712 eval "ac_cv_lib_$ac_lib_var=yes" | |
4713 else | |
4714 echo "configure: failed program was:" >&5 | |
4715 cat conftest.$ac_ext >&5 | |
4716 rm -rf conftest* | |
4717 eval "ac_cv_lib_$ac_lib_var=no" | |
4718 fi | |
4719 rm -f conftest* | |
4720 LIBS="$ac_save_LIBS" | |
4721 | |
4722 fi | |
4723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4724 echo "$ac_t""yes" 1>&6 | |
4725 HAVE_PNG=yes | |
4726 else | |
4727 echo "$ac_t""no" 1>&6 | |
4728 fi | |
4729 | |
4730 else | |
4731 echo "$ac_t""no" 1>&6 | |
4732 fi | |
4733 | |
4734 CFLAGS="${old_c_flags}" | |
4735 fi | |
4736 | |
4737 if test "${HAVE_PNG}" = "yes"; then | |
4738 cat >> confdefs.h <<\EOF | |
4739 #define HAVE_PNG 1 | |
4740 EOF | |
4741 | |
4742 fi | |
4743 fi | |
4744 | |
4745 ### Use -ltiff if available, unless `--with-tiff=no'. | |
4746 HAVE_TIFF=no | |
4747 if test "${HAVE_X11}" = "yes"; then | |
4748 if test "${with_tiff}" != "no"; then | |
4749 old_c_flags="${CFLAGS}" | |
4750 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4751 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
4752 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4753 echo "configure:4754: checking for tiffio.h" >&5 |
25897 | 4754 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4755 echo $ac_n "(cached) $ac_c" 1>&6 | |
4756 else | |
4757 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4758 #line 4759 "configure" |
25897 | 4759 #include "confdefs.h" |
4760 #include <tiffio.h> | |
4761 EOF | |
4762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4763 { (eval echo configure:4764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4765 if test -z "$ac_err"; then |
4766 rm -rf conftest* | |
4767 eval "ac_cv_header_$ac_safe=yes" | |
4768 else | |
4769 echo "$ac_err" >&5 | |
4770 echo "configure: failed program was:" >&5 | |
4771 cat conftest.$ac_ext >&5 | |
4772 rm -rf conftest* | |
4773 eval "ac_cv_header_$ac_safe=no" | |
4774 fi | |
4775 rm -f conftest* | |
4776 fi | |
4777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4778 echo "$ac_t""yes" 1>&6 | |
27752
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
4779 tifflibs="-lX11 -lz -lm" |
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
4780 # At least one tiff package requires the jpeg library. |
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
4781 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
4782 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4783 echo "configure:4784: checking for TIFFGetVersion in -ltiff" >&5 |
25897 | 4784 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` |
4785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4786 echo $ac_n "(cached) $ac_c" 1>&6 | |
4787 else | |
4788 ac_save_LIBS="$LIBS" | |
27752
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
4789 LIBS="-ltiff $tifflibs $LIBS" |
25897 | 4790 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4791 #line 4792 "configure" |
25897 | 4792 #include "confdefs.h" |
4793 /* Override any gcc2 internal prototype to avoid an error. */ | |
4794 /* We use char because int might match the return type of a gcc2 | |
4795 builtin and then its argument prototype would still apply. */ | |
4796 char TIFFGetVersion(); | |
4797 | |
4798 int main() { | |
4799 TIFFGetVersion() | |
4800 ; return 0; } | |
4801 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4802 if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4803 rm -rf conftest* |
4804 eval "ac_cv_lib_$ac_lib_var=yes" | |
4805 else | |
4806 echo "configure: failed program was:" >&5 | |
4807 cat conftest.$ac_ext >&5 | |
4808 rm -rf conftest* | |
4809 eval "ac_cv_lib_$ac_lib_var=no" | |
4810 fi | |
4811 rm -f conftest* | |
4812 LIBS="$ac_save_LIBS" | |
4813 | |
4814 fi | |
4815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4816 echo "$ac_t""yes" 1>&6 | |
4817 HAVE_TIFF=yes | |
4818 else | |
4819 echo "$ac_t""no" 1>&6 | |
4820 fi | |
4821 | |
4822 else | |
4823 echo "$ac_t""no" 1>&6 | |
4824 fi | |
4825 | |
4826 CFLAGS="${old_c_flags}" | |
4827 fi | |
4828 | |
4829 if test "${HAVE_TIFF}" = "yes"; then | |
4830 cat >> confdefs.h <<\EOF | |
4831 #define HAVE_TIFF 1 | |
4832 EOF | |
4833 | |
4834 fi | |
4835 fi | |
4836 | |
4837 ### Use -lgif if available, unless `--with-gif=no'. | |
4838 HAVE_GIF=no | |
4839 if test "${HAVE_X11}" = "yes"; then | |
4840 if test "${with_gif}" != "no"; then | |
4841 old_c_flags="${CFLAGS}" | |
4842 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4843 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` | |
4844 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4845 echo "configure:4846: checking for gif_lib.h" >&5 |
25897 | 4846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4847 echo $ac_n "(cached) $ac_c" 1>&6 | |
4848 else | |
4849 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4850 #line 4851 "configure" |
25897 | 4851 #include "confdefs.h" |
4852 #include <gif_lib.h> | |
4853 EOF | |
4854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4855 { (eval echo configure:4856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4857 if test -z "$ac_err"; then |
4858 rm -rf conftest* | |
4859 eval "ac_cv_header_$ac_safe=yes" | |
4860 else | |
4861 echo "$ac_err" >&5 | |
4862 echo "configure: failed program was:" >&5 | |
4863 cat conftest.$ac_ext >&5 | |
4864 rm -rf conftest* | |
4865 eval "ac_cv_header_$ac_safe=no" | |
4866 fi | |
4867 rm -f conftest* | |
4868 fi | |
4869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4870 echo "$ac_t""yes" 1>&6 | |
27356 | 4871 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4872 echo "configure:4873: checking for DGifOpen in -lungif" >&5 |
27356 | 4873 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` |
25897 | 4874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4875 echo $ac_n "(cached) $ac_c" 1>&6 | |
4876 else | |
4877 ac_save_LIBS="$LIBS" | |
4878 LIBS="-lungif -lX11 $LIBS" | |
4879 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4880 #line 4881 "configure" |
25897 | 4881 #include "confdefs.h" |
4882 /* Override any gcc2 internal prototype to avoid an error. */ | |
4883 /* We use char because int might match the return type of a gcc2 | |
4884 builtin and then its argument prototype would still apply. */ | |
27356 | 4885 char DGifOpen(); |
25897 | 4886 |
4887 int main() { | |
27356 | 4888 DGifOpen() |
25897 | 4889 ; return 0; } |
4890 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4891 if { (eval echo configure:4892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4892 rm -rf conftest* |
4893 eval "ac_cv_lib_$ac_lib_var=yes" | |
4894 else | |
4895 echo "configure: failed program was:" >&5 | |
4896 cat conftest.$ac_ext >&5 | |
4897 rm -rf conftest* | |
4898 eval "ac_cv_lib_$ac_lib_var=no" | |
4899 fi | |
4900 rm -f conftest* | |
4901 LIBS="$ac_save_LIBS" | |
4902 | |
4903 fi | |
4904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4905 echo "$ac_t""yes" 1>&6 | |
4906 HAVE_GIF=yes | |
4907 else | |
4908 echo "$ac_t""no" 1>&6 | |
4909 fi | |
4910 | |
4911 else | |
4912 echo "$ac_t""no" 1>&6 | |
4913 fi | |
4914 | |
4915 CFLAGS="${old_c_flags}" | |
4916 fi | |
4917 | |
4918 if test "${HAVE_GIF}" = "yes"; then | |
4919 cat >> confdefs.h <<\EOF | |
4920 #define HAVE_GIF 1 | |
4921 EOF | |
4922 | |
4923 fi | |
4924 fi | |
4925 | |
4926 # If netdb.h doesn't declare h_errno, we must declare it by hand. | |
4927 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4928 echo "configure:4929: checking whether netdb declares h_errno" >&5 |
25897 | 4929 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then |
4930 echo $ac_n "(cached) $ac_c" 1>&6 | |
4931 else | |
4932 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4933 #line 4934 "configure" |
25897 | 4934 #include "confdefs.h" |
4935 #include <netdb.h> | |
4936 int main() { | |
4937 return h_errno; | |
4938 ; return 0; } | |
4939 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4940 if { (eval echo configure:4941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4941 rm -rf conftest* |
4942 emacs_cv_netdb_declares_h_errno=yes | |
4943 else | |
4944 echo "configure: failed program was:" >&5 | |
4945 cat conftest.$ac_ext >&5 | |
4946 rm -rf conftest* | |
4947 emacs_cv_netdb_declares_h_errno=no | |
4948 fi | |
4949 rm -f conftest* | |
4950 fi | |
4951 | |
4952 echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6 | |
4953 if test $emacs_cv_netdb_declares_h_errno = yes; then | |
4954 cat >> confdefs.h <<\EOF | |
4955 #define HAVE_H_ERRNO 1 | |
4956 EOF | |
4957 | |
4958 fi | |
4959 | |
4960 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
4961 # for constant arguments. Useless! | |
4962 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4963 echo "configure:4964: checking for working alloca.h" >&5 |
25897 | 4964 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
4965 echo $ac_n "(cached) $ac_c" 1>&6 | |
4966 else | |
4967 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4968 #line 4969 "configure" |
25897 | 4969 #include "confdefs.h" |
4970 #include <alloca.h> | |
4971 int main() { | |
29949 | 4972 char *p = alloca(2 * sizeof(int)); |
25897 | 4973 ; return 0; } |
4974 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4975 if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4976 rm -rf conftest* |
4977 ac_cv_header_alloca_h=yes | |
4978 else | |
4979 echo "configure: failed program was:" >&5 | |
4980 cat conftest.$ac_ext >&5 | |
4981 rm -rf conftest* | |
4982 ac_cv_header_alloca_h=no | |
4983 fi | |
4984 rm -f conftest* | |
4985 fi | |
4986 | |
4987 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
4988 if test $ac_cv_header_alloca_h = yes; then | |
4989 cat >> confdefs.h <<\EOF | |
4990 #define HAVE_ALLOCA_H 1 | |
4991 EOF | |
4992 | |
4993 fi | |
4994 | |
4995 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
4996 echo "configure:4997: checking for alloca" >&5 |
25897 | 4997 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
4998 echo $ac_n "(cached) $ac_c" 1>&6 | |
4999 else | |
5000 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5001 #line 5002 "configure" |
25897 | 5002 #include "confdefs.h" |
5003 | |
5004 #ifdef __GNUC__ | |
5005 # define alloca __builtin_alloca | |
5006 #else | |
27205 | 5007 # ifdef _MSC_VER |
5008 # include <malloc.h> | |
5009 # define alloca _alloca | |
25897 | 5010 # else |
27205 | 5011 # if HAVE_ALLOCA_H |
5012 # include <alloca.h> | |
25897 | 5013 # else |
27205 | 5014 # ifdef _AIX |
5015 #pragma alloca | |
5016 # else | |
5017 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
25897 | 5018 char *alloca (); |
27205 | 5019 # endif |
25897 | 5020 # endif |
5021 # endif | |
5022 # endif | |
5023 #endif | |
5024 | |
5025 int main() { | |
5026 char *p = (char *) alloca(1); | |
5027 ; return 0; } | |
5028 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5029 if { (eval echo configure:5030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5030 rm -rf conftest* |
5031 ac_cv_func_alloca_works=yes | |
5032 else | |
5033 echo "configure: failed program was:" >&5 | |
5034 cat conftest.$ac_ext >&5 | |
5035 rm -rf conftest* | |
5036 ac_cv_func_alloca_works=no | |
5037 fi | |
5038 rm -f conftest* | |
5039 fi | |
5040 | |
5041 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
5042 if test $ac_cv_func_alloca_works = yes; then | |
5043 cat >> confdefs.h <<\EOF | |
5044 #define HAVE_ALLOCA 1 | |
5045 EOF | |
5046 | |
5047 fi | |
5048 | |
5049 if test $ac_cv_func_alloca_works = no; then | |
5050 # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
5051 # that cause trouble. Some versions do not even contain alloca or | |
5052 # contain a buggy version. If you still want to use their alloca, | |
5053 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
27205 | 5054 ALLOCA=alloca.${ac_objext} |
25897 | 5055 cat >> confdefs.h <<\EOF |
5056 #define C_ALLOCA 1 | |
5057 EOF | |
5058 | |
5059 | |
5060 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5061 echo "configure:5062: checking whether alloca needs Cray hooks" >&5 |
25897 | 5062 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
5063 echo $ac_n "(cached) $ac_c" 1>&6 | |
5064 else | |
5065 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5066 #line 5067 "configure" |
25897 | 5067 #include "confdefs.h" |
5068 #if defined(CRAY) && ! defined(CRAY2) | |
5069 webecray | |
5070 #else | |
5071 wenotbecray | |
5072 #endif | |
5073 | |
5074 EOF | |
5075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5076 egrep "webecray" >/dev/null 2>&1; then | |
5077 rm -rf conftest* | |
5078 ac_cv_os_cray=yes | |
5079 else | |
5080 rm -rf conftest* | |
5081 ac_cv_os_cray=no | |
5082 fi | |
5083 rm -f conftest* | |
5084 | |
5085 fi | |
5086 | |
5087 echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
5088 if test $ac_cv_os_cray = yes; then | |
5089 for ac_func in _getb67 GETB67 getb67; do | |
5090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5091 echo "configure:5092: checking for $ac_func" >&5 |
25897 | 5092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5093 echo $ac_n "(cached) $ac_c" 1>&6 | |
5094 else | |
5095 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5096 #line 5097 "configure" |
25897 | 5097 #include "confdefs.h" |
5098 /* System header to define __stub macros and hopefully few prototypes, | |
5099 which can conflict with char $ac_func(); below. */ | |
5100 #include <assert.h> | |
5101 /* Override any gcc2 internal prototype to avoid an error. */ | |
5102 /* We use char because int might match the return type of a gcc2 | |
5103 builtin and then its argument prototype would still apply. */ | |
5104 char $ac_func(); | |
5105 | |
5106 int main() { | |
5107 | |
5108 /* The GNU C library defines this for functions which it implements | |
5109 to always fail with ENOSYS. Some functions are actually named | |
5110 something starting with __ and the normal name is an alias. */ | |
5111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5112 choke me | |
5113 #else | |
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
|
5114 $ac_func(); |
25897 | 5115 #endif |
5116 | |
5117 ; return 0; } | |
5118 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5119 if { (eval echo configure:5120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5120 rm -rf conftest* |
5121 eval "ac_cv_func_$ac_func=yes" | |
5122 else | |
5123 echo "configure: failed program was:" >&5 | |
5124 cat conftest.$ac_ext >&5 | |
5125 rm -rf conftest* | |
5126 eval "ac_cv_func_$ac_func=no" | |
5127 fi | |
5128 rm -f conftest* | |
5129 fi | |
5130 | |
5131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5132 echo "$ac_t""yes" 1>&6 | |
5133 cat >> confdefs.h <<EOF | |
5134 #define CRAY_STACKSEG_END $ac_func | |
5135 EOF | |
5136 | |
5137 break | |
5138 else | |
5139 echo "$ac_t""no" 1>&6 | |
5140 fi | |
5141 | |
5142 done | |
5143 fi | |
5144 | |
5145 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5146 echo "configure:5147: checking stack direction for C alloca" >&5 |
25897 | 5147 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
5148 echo $ac_n "(cached) $ac_c" 1>&6 | |
5149 else | |
5150 if test "$cross_compiling" = yes; then | |
5151 ac_cv_c_stack_direction=0 | |
5152 else | |
5153 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5154 #line 5155 "configure" |
25897 | 5155 #include "confdefs.h" |
5156 find_stack_direction () | |
5157 { | |
5158 static char *addr = 0; | |
5159 auto char dummy; | |
5160 if (addr == 0) | |
5161 { | |
5162 addr = &dummy; | |
5163 return find_stack_direction (); | |
5164 } | |
5165 else | |
5166 return (&dummy > addr) ? 1 : -1; | |
5167 } | |
5168 main () | |
5169 { | |
5170 exit (find_stack_direction() < 0); | |
5171 } | |
5172 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5173 if { (eval echo configure:5174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
25897 | 5174 then |
5175 ac_cv_c_stack_direction=1 | |
5176 else | |
5177 echo "configure: failed program was:" >&5 | |
5178 cat conftest.$ac_ext >&5 | |
5179 rm -fr conftest* | |
5180 ac_cv_c_stack_direction=-1 | |
5181 fi | |
5182 rm -fr conftest* | |
5183 fi | |
5184 | |
5185 fi | |
5186 | |
5187 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
5188 cat >> confdefs.h <<EOF | |
5189 #define STACK_DIRECTION $ac_cv_c_stack_direction | |
5190 EOF | |
5191 | |
5192 fi | |
5193 | |
5194 | |
5195 # fmod, logb, and frexp are found in -lm on most systems. | |
5196 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
5197 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5198 echo "configure:5199: checking for sqrt in -lm" >&5 |
25897 | 5199 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
5200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5201 echo $ac_n "(cached) $ac_c" 1>&6 | |
5202 else | |
5203 ac_save_LIBS="$LIBS" | |
5204 LIBS="-lm $LIBS" | |
5205 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5206 #line 5207 "configure" |
25897 | 5207 #include "confdefs.h" |
5208 /* Override any gcc2 internal prototype to avoid an error. */ | |
5209 /* We use char because int might match the return type of a gcc2 | |
5210 builtin and then its argument prototype would still apply. */ | |
5211 char sqrt(); | |
5212 | |
5213 int main() { | |
5214 sqrt() | |
5215 ; return 0; } | |
5216 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5217 if { (eval echo configure:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5218 rm -rf conftest* |
5219 eval "ac_cv_lib_$ac_lib_var=yes" | |
5220 else | |
5221 echo "configure: failed program was:" >&5 | |
5222 cat conftest.$ac_ext >&5 | |
5223 rm -rf conftest* | |
5224 eval "ac_cv_lib_$ac_lib_var=no" | |
5225 fi | |
5226 rm -f conftest* | |
5227 LIBS="$ac_save_LIBS" | |
5228 | |
5229 fi | |
5230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5231 echo "$ac_t""yes" 1>&6 | |
5232 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
5233 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5234 cat >> confdefs.h <<EOF | |
5235 #define $ac_tr_lib 1 | |
5236 EOF | |
5237 | |
5238 LIBS="-lm $LIBS" | |
5239 | |
5240 else | |
5241 echo "$ac_t""no" 1>&6 | |
5242 fi | |
5243 | |
5244 | |
5245 # Check for mail-locking functions in a "mail" library | |
5246 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5247 echo "configure:5248: checking for maillock in -lmail" >&5 |
25897 | 5248 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` |
5249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5250 echo $ac_n "(cached) $ac_c" 1>&6 | |
5251 else | |
5252 ac_save_LIBS="$LIBS" | |
5253 LIBS="-lmail $LIBS" | |
5254 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5255 #line 5256 "configure" |
25897 | 5256 #include "confdefs.h" |
5257 /* Override any gcc2 internal prototype to avoid an error. */ | |
5258 /* We use char because int might match the return type of a gcc2 | |
5259 builtin and then its argument prototype would still apply. */ | |
5260 char maillock(); | |
5261 | |
5262 int main() { | |
5263 maillock() | |
5264 ; return 0; } | |
5265 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5266 if { (eval echo configure:5267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5267 rm -rf conftest* |
5268 eval "ac_cv_lib_$ac_lib_var=yes" | |
5269 else | |
5270 echo "configure: failed program was:" >&5 | |
5271 cat conftest.$ac_ext >&5 | |
5272 rm -rf conftest* | |
5273 eval "ac_cv_lib_$ac_lib_var=no" | |
5274 fi | |
5275 rm -f conftest* | |
5276 LIBS="$ac_save_LIBS" | |
5277 | |
5278 fi | |
5279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5280 echo "$ac_t""yes" 1>&6 | |
5281 ac_tr_lib=HAVE_LIB`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
5282 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5283 cat >> confdefs.h <<EOF | |
5284 #define $ac_tr_lib 1 | |
5285 EOF | |
5286 | |
5287 LIBS="-lmail $LIBS" | |
5288 | |
5289 else | |
5290 echo "$ac_t""no" 1>&6 | |
5291 fi | |
5292 | |
5293 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5294 echo "configure:5295: checking for maillock in -llockfile" >&5 |
25897 | 5295 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` |
5296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5297 echo $ac_n "(cached) $ac_c" 1>&6 | |
5298 else | |
5299 ac_save_LIBS="$LIBS" | |
5300 LIBS="-llockfile $LIBS" | |
5301 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5302 #line 5303 "configure" |
25897 | 5303 #include "confdefs.h" |
5304 /* Override any gcc2 internal prototype to avoid an error. */ | |
5305 /* We use char because int might match the return type of a gcc2 | |
5306 builtin and then its argument prototype would still apply. */ | |
5307 char maillock(); | |
5308 | |
5309 int main() { | |
5310 maillock() | |
5311 ; return 0; } | |
5312 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5313 if { (eval echo configure:5314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5314 rm -rf conftest* |
5315 eval "ac_cv_lib_$ac_lib_var=yes" | |
5316 else | |
5317 echo "configure: failed program was:" >&5 | |
5318 cat conftest.$ac_ext >&5 | |
5319 rm -rf conftest* | |
5320 eval "ac_cv_lib_$ac_lib_var=no" | |
5321 fi | |
5322 rm -f conftest* | |
5323 LIBS="$ac_save_LIBS" | |
5324 | |
5325 fi | |
5326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5327 echo "$ac_t""yes" 1>&6 | |
5328 ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
5329 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5330 cat >> confdefs.h <<EOF | |
5331 #define $ac_tr_lib 1 | |
5332 EOF | |
5333 | |
5334 LIBS="-llockfile $LIBS" | |
5335 | |
5336 else | |
5337 echo "$ac_t""no" 1>&6 | |
5338 fi | |
5339 | |
5340 # If we have the shared liblockfile, assume we must use it for mail | |
5341 # locking (e.g. Debian). If we couldn't link against liblockfile | |
5342 # (no liblockfile.a installed), ensure that we don't need to. | |
5343 if test "$ac_cv_lib_lockfile_maillock" = no; then | |
5344 # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
5345 set dummy liblockfile.so; ac_word=$2 | |
5346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5347 echo "configure:5348: checking for $ac_word" >&5 |
25897 | 5348 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then |
5349 echo $ac_n "(cached) $ac_c" 1>&6 | |
5350 else | |
5351 if test -n "$liblockfile"; then | |
5352 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
5353 else | |
27205 | 5354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5355 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | |
5356 for ac_dir in $ac_dummy; do | |
25897 | 5357 test -z "$ac_dir" && ac_dir=. |
5358 if test -f $ac_dir/$ac_word; then | |
5359 ac_cv_prog_liblockfile="yes" | |
5360 break | |
5361 fi | |
5362 done | |
5363 IFS="$ac_save_ifs" | |
5364 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
5365 fi | |
5366 fi | |
5367 liblockfile="$ac_cv_prog_liblockfile" | |
5368 if test -n "$liblockfile"; then | |
5369 echo "$ac_t""$liblockfile" 1>&6 | |
5370 else | |
5371 echo "$ac_t""no" 1>&6 | |
5372 fi | |
5373 | |
5374 if test $ac_cv_prog_liblockfile = yes; then | |
5375 { echo "configure: error: Shared liblockfile found but can't link against it. | |
5376 This probably means that movemail could lose mail. | |
5377 There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; } | |
5378 else cat >> confdefs.h <<\EOF | |
5379 #define LIBMAIL -llockfile | |
5380 EOF | |
5381 | |
5382 fi | |
5383 else : | |
5384 fi | |
5385 for ac_func in touchlock | |
5386 do | |
5387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5388 echo "configure:5389: checking for $ac_func" >&5 |
25897 | 5389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5390 echo $ac_n "(cached) $ac_c" 1>&6 | |
5391 else | |
5392 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5393 #line 5394 "configure" |
25897 | 5394 #include "confdefs.h" |
5395 /* System header to define __stub macros and hopefully few prototypes, | |
5396 which can conflict with char $ac_func(); below. */ | |
5397 #include <assert.h> | |
5398 /* Override any gcc2 internal prototype to avoid an error. */ | |
5399 /* We use char because int might match the return type of a gcc2 | |
5400 builtin and then its argument prototype would still apply. */ | |
5401 char $ac_func(); | |
5402 | |
5403 int main() { | |
5404 | |
5405 /* The GNU C library defines this for functions which it implements | |
5406 to always fail with ENOSYS. Some functions are actually named | |
5407 something starting with __ and the normal name is an alias. */ | |
5408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5409 choke me | |
5410 #else | |
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
|
5411 $ac_func(); |
25897 | 5412 #endif |
5413 | |
5414 ; return 0; } | |
5415 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5416 if { (eval echo configure:5417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5417 rm -rf conftest* |
5418 eval "ac_cv_func_$ac_func=yes" | |
5419 else | |
5420 echo "configure: failed program was:" >&5 | |
5421 cat conftest.$ac_ext >&5 | |
5422 rm -rf conftest* | |
5423 eval "ac_cv_func_$ac_func=no" | |
5424 fi | |
5425 rm -f conftest* | |
5426 fi | |
5427 | |
5428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5429 echo "$ac_t""yes" 1>&6 | |
5430 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5431 cat >> confdefs.h <<EOF | |
5432 #define $ac_tr_func 1 | |
5433 EOF | |
5434 | |
5435 else | |
5436 echo "$ac_t""no" 1>&6 | |
5437 fi | |
5438 done | |
5439 | |
5440 for ac_hdr in maillock.h | |
5441 do | |
5442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5444 echo "configure:5445: checking for $ac_hdr" >&5 |
25897 | 5445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5446 echo $ac_n "(cached) $ac_c" 1>&6 | |
5447 else | |
5448 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5449 #line 5450 "configure" |
25897 | 5450 #include "confdefs.h" |
5451 #include <$ac_hdr> | |
5452 EOF | |
5453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5454 { (eval echo configure:5455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 5455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 5456 if test -z "$ac_err"; then |
5457 rm -rf conftest* | |
5458 eval "ac_cv_header_$ac_safe=yes" | |
5459 else | |
5460 echo "$ac_err" >&5 | |
5461 echo "configure: failed program was:" >&5 | |
5462 cat conftest.$ac_ext >&5 | |
5463 rm -rf conftest* | |
5464 eval "ac_cv_header_$ac_safe=no" | |
5465 fi | |
5466 rm -f conftest* | |
5467 fi | |
5468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5469 echo "$ac_t""yes" 1>&6 | |
5470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5471 cat >> confdefs.h <<EOF | |
5472 #define $ac_tr_hdr 1 | |
5473 EOF | |
5474 | |
5475 else | |
5476 echo "$ac_t""no" 1>&6 | |
5477 fi | |
5478 done | |
5479 | |
5480 | |
29906 | 5481 for ac_func in gethostname getdomainname dup2 \ |
25897 | 5482 rename closedir mkdir rmdir sysinfo \ |
5483 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
5484 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
29733 | 5485 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
29834 | 5486 __fpending mblen mbrlen strsignal setitimer ualarm |
25897 | 5487 do |
5488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5489 echo "configure:5490: checking for $ac_func" >&5 |
25897 | 5490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5491 echo $ac_n "(cached) $ac_c" 1>&6 | |
5492 else | |
5493 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5494 #line 5495 "configure" |
25897 | 5495 #include "confdefs.h" |
5496 /* System header to define __stub macros and hopefully few prototypes, | |
5497 which can conflict with char $ac_func(); below. */ | |
5498 #include <assert.h> | |
5499 /* Override any gcc2 internal prototype to avoid an error. */ | |
5500 /* We use char because int might match the return type of a gcc2 | |
5501 builtin and then its argument prototype would still apply. */ | |
5502 char $ac_func(); | |
5503 | |
5504 int main() { | |
5505 | |
5506 /* The GNU C library defines this for functions which it implements | |
5507 to always fail with ENOSYS. Some functions are actually named | |
5508 something starting with __ and the normal name is an alias. */ | |
5509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5510 choke me | |
5511 #else | |
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
|
5512 $ac_func(); |
25897 | 5513 #endif |
5514 | |
5515 ; return 0; } | |
5516 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5517 if { (eval echo configure:5518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5518 rm -rf conftest* |
5519 eval "ac_cv_func_$ac_func=yes" | |
5520 else | |
5521 echo "configure: failed program was:" >&5 | |
5522 cat conftest.$ac_ext >&5 | |
5523 rm -rf conftest* | |
5524 eval "ac_cv_func_$ac_func=no" | |
5525 fi | |
5526 rm -f conftest* | |
5527 fi | |
5528 | |
5529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5530 echo "$ac_t""yes" 1>&6 | |
5531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5532 cat >> confdefs.h <<EOF | |
5533 #define $ac_tr_func 1 | |
5534 EOF | |
5535 | |
5536 else | |
5537 echo "$ac_t""no" 1>&6 | |
5538 fi | |
5539 done | |
5540 | |
5541 | |
28607 | 5542 for ac_hdr in sys/time.h unistd.h |
5543 do | |
5544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5546 echo "configure:5547: checking for $ac_hdr" >&5 |
28607 | 5547 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5548 echo $ac_n "(cached) $ac_c" 1>&6 | |
5549 else | |
5550 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5551 #line 5552 "configure" |
28607 | 5552 #include "confdefs.h" |
5553 #include <$ac_hdr> | |
5554 EOF | |
5555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5556 { (eval echo configure:5557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
28607 | 5557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5558 if test -z "$ac_err"; then | |
5559 rm -rf conftest* | |
5560 eval "ac_cv_header_$ac_safe=yes" | |
5561 else | |
5562 echo "$ac_err" >&5 | |
5563 echo "configure: failed program was:" >&5 | |
5564 cat conftest.$ac_ext >&5 | |
5565 rm -rf conftest* | |
5566 eval "ac_cv_header_$ac_safe=no" | |
5567 fi | |
5568 rm -f conftest* | |
5569 fi | |
5570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5571 echo "$ac_t""yes" 1>&6 | |
5572 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5573 cat >> confdefs.h <<EOF | |
5574 #define $ac_tr_hdr 1 | |
5575 EOF | |
5576 | |
5577 else | |
5578 echo "$ac_t""no" 1>&6 | |
5579 fi | |
5580 done | |
5581 | |
5582 for ac_func in alarm | |
5583 do | |
5584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5585 echo "configure:5586: checking for $ac_func" >&5 |
28607 | 5586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5587 echo $ac_n "(cached) $ac_c" 1>&6 | |
5588 else | |
5589 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5590 #line 5591 "configure" |
28607 | 5591 #include "confdefs.h" |
5592 /* System header to define __stub macros and hopefully few prototypes, | |
5593 which can conflict with char $ac_func(); below. */ | |
5594 #include <assert.h> | |
5595 /* Override any gcc2 internal prototype to avoid an error. */ | |
5596 /* We use char because int might match the return type of a gcc2 | |
5597 builtin and then its argument prototype would still apply. */ | |
5598 char $ac_func(); | |
5599 | |
5600 int main() { | |
5601 | |
5602 /* The GNU C library defines this for functions which it implements | |
5603 to always fail with ENOSYS. Some functions are actually named | |
5604 something starting with __ and the normal name is an alias. */ | |
5605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5606 choke me | |
5607 #else | |
5608 $ac_func(); | |
5609 #endif | |
5610 | |
5611 ; return 0; } | |
5612 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5613 if { (eval echo configure:5614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
28607 | 5614 rm -rf conftest* |
5615 eval "ac_cv_func_$ac_func=yes" | |
5616 else | |
5617 echo "configure: failed program was:" >&5 | |
5618 cat conftest.$ac_ext >&5 | |
5619 rm -rf conftest* | |
5620 eval "ac_cv_func_$ac_func=no" | |
5621 fi | |
5622 rm -f conftest* | |
5623 fi | |
5624 | |
5625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5626 echo "$ac_t""yes" 1>&6 | |
5627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5628 cat >> confdefs.h <<EOF | |
5629 #define $ac_tr_func 1 | |
5630 EOF | |
5631 | |
5632 else | |
5633 echo "$ac_t""no" 1>&6 | |
5634 fi | |
5635 done | |
5636 | |
5637 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5638 echo "configure:5639: checking for working mktime" >&5 |
28607 | 5639 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then |
5640 echo $ac_n "(cached) $ac_c" 1>&6 | |
5641 else | |
5642 if test "$cross_compiling" = yes; then | |
5643 ac_cv_func_working_mktime=no | |
5644 else | |
5645 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5646 #line 5647 "configure" |
28607 | 5647 #include "confdefs.h" |
5648 /* Test program from Paul Eggert (eggert@twinsun.com) | |
5649 and Tony Leneis (tony@plaza.ds.adp.com). */ | |
5650 #if TIME_WITH_SYS_TIME | |
5651 # include <sys/time.h> | |
5652 # include <time.h> | |
5653 #else | |
5654 # if HAVE_SYS_TIME_H | |
5655 # include <sys/time.h> | |
5656 # else | |
5657 # include <time.h> | |
5658 # endif | |
5659 #endif | |
5660 | |
5661 #if HAVE_UNISTD_H | |
5662 # include <unistd.h> | |
5663 #endif | |
5664 | |
5665 #if !HAVE_ALARM | |
5666 # define alarm(X) /* empty */ | |
5667 #endif | |
5668 | |
5669 /* Work around redefinition to rpl_putenv by other config tests. */ | |
5670 #undef putenv | |
5671 | |
5672 static time_t time_t_max; | |
5673 | |
5674 /* Values we'll use to set the TZ environment variable. */ | |
5675 static const char *const tz_strings[] = { | |
5676 (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
5677 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
5678 }; | |
5679 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
5680 | |
5681 /* Fail if mktime fails to convert a date in the spring-forward gap. | |
5682 Based on a problem report from Andreas Jaeger. */ | |
5683 static void | |
5684 spring_forward_gap () | |
5685 { | |
5686 /* glibc (up to about 1998-10-07) failed this test) */ | |
5687 struct tm tm; | |
5688 | |
5689 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
5690 instead of "TZ=America/Vancouver" in order to detect the bug even | |
5691 on systems that don't support the Olson extension, or don't have the | |
5692 full zoneinfo tables installed. */ | |
5693 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
5694 | |
5695 tm.tm_year = 98; | |
5696 tm.tm_mon = 3; | |
5697 tm.tm_mday = 5; | |
5698 tm.tm_hour = 2; | |
5699 tm.tm_min = 0; | |
5700 tm.tm_sec = 0; | |
5701 tm.tm_isdst = -1; | |
5702 if (mktime (&tm) == (time_t)-1) | |
5703 exit (1); | |
5704 } | |
5705 | |
5706 static void | |
5707 mktime_test (now) | |
5708 time_t now; | |
5709 { | |
5710 struct tm *lt; | |
5711 if ((lt = localtime (&now)) && mktime (lt) != now) | |
5712 exit (1); | |
5713 now = time_t_max - now; | |
5714 if ((lt = localtime (&now)) && mktime (lt) != now) | |
5715 exit (1); | |
5716 } | |
5717 | |
5718 static void | |
5719 irix_6_4_bug () | |
5720 { | |
5721 /* Based on code from Ariel Faigon. */ | |
5722 struct tm tm; | |
5723 tm.tm_year = 96; | |
5724 tm.tm_mon = 3; | |
5725 tm.tm_mday = 0; | |
5726 tm.tm_hour = 0; | |
5727 tm.tm_min = 0; | |
5728 tm.tm_sec = 0; | |
5729 tm.tm_isdst = -1; | |
5730 mktime (&tm); | |
5731 if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
5732 exit (1); | |
5733 } | |
5734 | |
5735 static void | |
5736 bigtime_test (j) | |
5737 int j; | |
5738 { | |
5739 struct tm tm; | |
5740 time_t now; | |
5741 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
5742 now = mktime (&tm); | |
5743 if (now != (time_t) -1) | |
5744 { | |
5745 struct tm *lt = localtime (&now); | |
5746 if (! (lt | |
5747 && lt->tm_year == tm.tm_year | |
5748 && lt->tm_mon == tm.tm_mon | |
5749 && lt->tm_mday == tm.tm_mday | |
5750 && lt->tm_hour == tm.tm_hour | |
5751 && lt->tm_min == tm.tm_min | |
5752 && lt->tm_sec == tm.tm_sec | |
5753 && lt->tm_yday == tm.tm_yday | |
5754 && lt->tm_wday == tm.tm_wday | |
5755 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
5756 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
5757 exit (1); | |
5758 } | |
5759 } | |
5760 | |
5761 int | |
5762 main () | |
5763 { | |
5764 time_t t, delta; | |
5765 int i, j; | |
5766 | |
5767 /* This test makes some buggy mktime implementations loop. | |
5768 Give up after 60 seconds; a mktime slower than that | |
5769 isn't worth using anyway. */ | |
5770 alarm (60); | |
5771 | |
5772 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
5773 continue; | |
5774 time_t_max--; | |
5775 delta = time_t_max / 997; /* a suitable prime number */ | |
5776 for (i = 0; i < N_STRINGS; i++) | |
5777 { | |
5778 if (tz_strings[i]) | |
5779 putenv (tz_strings[i]); | |
5780 | |
5781 for (t = 0; t <= time_t_max - delta; t += delta) | |
5782 mktime_test (t); | |
5783 mktime_test ((time_t) 60 * 60); | |
5784 mktime_test ((time_t) 60 * 60 * 24); | |
5785 | |
5786 for (j = 1; 0 < j; j *= 2) | |
5787 bigtime_test (j); | |
5788 bigtime_test (j - 1); | |
5789 } | |
5790 irix_6_4_bug (); | |
5791 spring_forward_gap (); | |
5792 exit (0); | |
5793 } | |
5794 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5795 if { (eval echo configure:5796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
28607 | 5796 then |
5797 ac_cv_func_working_mktime=yes | |
5798 else | |
5799 echo "configure: failed program was:" >&5 | |
5800 cat conftest.$ac_ext >&5 | |
5801 rm -fr conftest* | |
5802 ac_cv_func_working_mktime=no | |
5803 fi | |
5804 rm -fr conftest* | |
5805 fi | |
5806 | |
5807 fi | |
5808 | |
5809 echo "$ac_t""$ac_cv_func_working_mktime" 1>&6 | |
5810 if test $ac_cv_func_working_mktime = no; then | |
5811 LIBOBJS="$LIBOBJS mktime.${ac_objext}" | |
5812 fi | |
5813 | |
5814 if test "$ac_cv_func_working_mktime" = no; then | |
5815 cat >> confdefs.h <<\EOF | |
5816 #define BROKEN_MKTIME 1 | |
5817 EOF | |
5818 | |
5819 fi | |
5820 | |
29834 | 5821 ac_have_func=no # yes means we've found a way to get the load average. |
5822 | |
5823 # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
5824 # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
5825 # to get the right answer into the cache. | |
5826 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5827 echo "configure:5828: checking for elf_begin in -lelf" >&5 |
29834 | 5828 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` |
5829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5830 echo $ac_n "(cached) $ac_c" 1>&6 | |
5831 else | |
5832 ac_save_LIBS="$LIBS" | |
5833 LIBS="-lelf $LIBS" | |
5834 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5835 #line 5836 "configure" |
29834 | 5836 #include "confdefs.h" |
5837 /* Override any gcc2 internal prototype to avoid an error. */ | |
5838 /* We use char because int might match the return type of a gcc2 | |
5839 builtin and then its argument prototype would still apply. */ | |
5840 char elf_begin(); | |
5841 | |
5842 int main() { | |
5843 elf_begin() | |
5844 ; return 0; } | |
5845 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5846 if { (eval echo configure:5847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29834 | 5847 rm -rf conftest* |
5848 eval "ac_cv_lib_$ac_lib_var=yes" | |
5849 else | |
5850 echo "configure: failed program was:" >&5 | |
5851 cat conftest.$ac_ext >&5 | |
5852 rm -rf conftest* | |
5853 eval "ac_cv_lib_$ac_lib_var=no" | |
5854 fi | |
5855 rm -f conftest* | |
5856 LIBS="$ac_save_LIBS" | |
5857 | |
5858 fi | |
5859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5860 echo "$ac_t""yes" 1>&6 | |
5861 LIBS="-lelf $LIBS" | |
5862 else | |
5863 echo "$ac_t""no" 1>&6 | |
5864 fi | |
5865 | |
5866 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5867 echo "configure:5868: checking for kvm_open in -lkvm" >&5 |
29834 | 5868 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` |
5869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5870 echo $ac_n "(cached) $ac_c" 1>&6 | |
5871 else | |
5872 ac_save_LIBS="$LIBS" | |
5873 LIBS="-lkvm $LIBS" | |
5874 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5875 #line 5876 "configure" |
29834 | 5876 #include "confdefs.h" |
5877 /* Override any gcc2 internal prototype to avoid an error. */ | |
5878 /* We use char because int might match the return type of a gcc2 | |
5879 builtin and then its argument prototype would still apply. */ | |
5880 char kvm_open(); | |
5881 | |
5882 int main() { | |
5883 kvm_open() | |
5884 ; return 0; } | |
5885 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5886 if { (eval echo configure:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29834 | 5887 rm -rf conftest* |
5888 eval "ac_cv_lib_$ac_lib_var=yes" | |
5889 else | |
5890 echo "configure: failed program was:" >&5 | |
5891 cat conftest.$ac_ext >&5 | |
5892 rm -rf conftest* | |
5893 eval "ac_cv_lib_$ac_lib_var=no" | |
5894 fi | |
5895 rm -f conftest* | |
5896 LIBS="$ac_save_LIBS" | |
5897 | |
5898 fi | |
5899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5900 echo "$ac_t""yes" 1>&6 | |
5901 LIBS="-lkvm $LIBS" | |
5902 else | |
5903 echo "$ac_t""no" 1>&6 | |
5904 fi | |
5905 | |
5906 # Check for the 4.4BSD definition of getloadavg. | |
5907 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5908 echo "configure:5909: checking for getloadavg in -lutil" >&5 |
29834 | 5909 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` |
5910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5911 echo $ac_n "(cached) $ac_c" 1>&6 | |
5912 else | |
5913 ac_save_LIBS="$LIBS" | |
5914 LIBS="-lutil $LIBS" | |
5915 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5916 #line 5917 "configure" |
29834 | 5917 #include "confdefs.h" |
5918 /* Override any gcc2 internal prototype to avoid an error. */ | |
5919 /* We use char because int might match the return type of a gcc2 | |
5920 builtin and then its argument prototype would still apply. */ | |
5921 char getloadavg(); | |
5922 | |
5923 int main() { | |
5924 getloadavg() | |
5925 ; return 0; } | |
5926 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5927 if { (eval echo configure:5928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29834 | 5928 rm -rf conftest* |
5929 eval "ac_cv_lib_$ac_lib_var=yes" | |
5930 else | |
5931 echo "configure: failed program was:" >&5 | |
5932 cat conftest.$ac_ext >&5 | |
5933 rm -rf conftest* | |
5934 eval "ac_cv_lib_$ac_lib_var=no" | |
5935 fi | |
5936 rm -f conftest* | |
5937 LIBS="$ac_save_LIBS" | |
5938 | |
5939 fi | |
5940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5941 echo "$ac_t""yes" 1>&6 | |
5942 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
5943 else | |
5944 echo "$ac_t""no" 1>&6 | |
5945 fi | |
5946 | |
5947 | |
5948 if test $ac_have_func = no; then | |
5949 # There is a commonly available library for RS/6000 AIX. | |
5950 # Since it is not a standard part of AIX, it might be installed locally. | |
5951 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" | |
5952 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5953 echo "configure:5954: checking for getloadavg in -lgetloadavg" >&5 |
29834 | 5954 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` |
5955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5956 echo $ac_n "(cached) $ac_c" 1>&6 | |
5957 else | |
5958 ac_save_LIBS="$LIBS" | |
5959 LIBS="-lgetloadavg $LIBS" | |
5960 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5961 #line 5962 "configure" |
29834 | 5962 #include "confdefs.h" |
5963 /* Override any gcc2 internal prototype to avoid an error. */ | |
5964 /* We use char because int might match the return type of a gcc2 | |
5965 builtin and then its argument prototype would still apply. */ | |
5966 char getloadavg(); | |
5967 | |
5968 int main() { | |
5969 getloadavg() | |
5970 ; return 0; } | |
5971 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5972 if { (eval echo configure:5973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29834 | 5973 rm -rf conftest* |
5974 eval "ac_cv_lib_$ac_lib_var=yes" | |
5975 else | |
5976 echo "configure: failed program was:" >&5 | |
5977 cat conftest.$ac_ext >&5 | |
5978 rm -rf conftest* | |
5979 eval "ac_cv_lib_$ac_lib_var=no" | |
5980 fi | |
5981 rm -f conftest* | |
5982 LIBS="$ac_save_LIBS" | |
5983 | |
5984 fi | |
5985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5986 echo "$ac_t""yes" 1>&6 | |
5987 LIBS="-lgetloadavg $LIBS" | |
5988 else | |
5989 echo "$ac_t""no" 1>&6 | |
5990 LIBS="$ac_getloadavg_LIBS" | |
5991 fi | |
5992 | |
5993 fi | |
5994 | |
5995 # Make sure it is really in the library, if we think we found it. | |
5996 for ac_func in getloadavg | |
5997 do | |
5998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
5999 echo "configure:6000: checking for $ac_func" >&5 |
29834 | 6000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6001 echo $ac_n "(cached) $ac_c" 1>&6 | |
6002 else | |
6003 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6004 #line 6005 "configure" |
29834 | 6005 #include "confdefs.h" |
6006 /* System header to define __stub macros and hopefully few prototypes, | |
6007 which can conflict with char $ac_func(); below. */ | |
6008 #include <assert.h> | |
6009 /* Override any gcc2 internal prototype to avoid an error. */ | |
6010 /* We use char because int might match the return type of a gcc2 | |
6011 builtin and then its argument prototype would still apply. */ | |
6012 char $ac_func(); | |
6013 | |
6014 int main() { | |
6015 | |
6016 /* The GNU C library defines this for functions which it implements | |
6017 to always fail with ENOSYS. Some functions are actually named | |
6018 something starting with __ and the normal name is an alias. */ | |
6019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6020 choke me | |
6021 #else | |
6022 $ac_func(); | |
6023 #endif | |
6024 | |
6025 ; return 0; } | |
6026 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6027 if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29834 | 6028 rm -rf conftest* |
6029 eval "ac_cv_func_$ac_func=yes" | |
6030 else | |
6031 echo "configure: failed program was:" >&5 | |
6032 cat conftest.$ac_ext >&5 | |
6033 rm -rf conftest* | |
6034 eval "ac_cv_func_$ac_func=no" | |
6035 fi | |
6036 rm -f conftest* | |
6037 fi | |
6038 | |
6039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6040 echo "$ac_t""yes" 1>&6 | |
6041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6042 cat >> confdefs.h <<EOF | |
6043 #define $ac_tr_func 1 | |
6044 EOF | |
6045 | |
6046 else | |
6047 echo "$ac_t""no" 1>&6 | |
6048 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" | |
6049 fi | |
6050 done | |
6051 | |
6052 | |
6053 | |
6054 if test $ac_cv_func_getloadavg = yes; then | |
6055 cat >> confdefs.h <<\EOF | |
6056 #define HAVE_GETLOADAVG 1 | |
6057 EOF | |
6058 | |
6059 ac_have_func=yes | |
6060 else | |
6061 # Figure out what our getloadavg.c needs. | |
6062 ac_have_func=no | |
6063 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` | |
6064 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6065 echo "configure:6066: checking for sys/dg_sys_info.h" >&5 |
29834 | 6066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6067 echo $ac_n "(cached) $ac_c" 1>&6 | |
6068 else | |
6069 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6070 #line 6071 "configure" |
29834 | 6071 #include "confdefs.h" |
6072 #include <sys/dg_sys_info.h> | |
6073 EOF | |
6074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6075 { (eval echo configure:6076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29834 | 6076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6077 if test -z "$ac_err"; then | |
6078 rm -rf conftest* | |
6079 eval "ac_cv_header_$ac_safe=yes" | |
6080 else | |
6081 echo "$ac_err" >&5 | |
6082 echo "configure: failed program was:" >&5 | |
6083 cat conftest.$ac_ext >&5 | |
6084 rm -rf conftest* | |
6085 eval "ac_cv_header_$ac_safe=no" | |
6086 fi | |
6087 rm -f conftest* | |
6088 fi | |
6089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6090 echo "$ac_t""yes" 1>&6 | |
6091 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6092 #define DGUX 1 | |
6093 EOF | |
6094 | |
6095 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6096 echo "configure:6097: checking for dg_sys_info in -ldgc" >&5 |
29834 | 6097 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` |
6098 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6099 echo $ac_n "(cached) $ac_c" 1>&6 | |
6100 else | |
6101 ac_save_LIBS="$LIBS" | |
6102 LIBS="-ldgc $LIBS" | |
6103 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6104 #line 6105 "configure" |
29834 | 6105 #include "confdefs.h" |
6106 /* Override any gcc2 internal prototype to avoid an error. */ | |
6107 /* We use char because int might match the return type of a gcc2 | |
6108 builtin and then its argument prototype would still apply. */ | |
6109 char dg_sys_info(); | |
6110 | |
6111 int main() { | |
6112 dg_sys_info() | |
6113 ; return 0; } | |
6114 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6115 if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29834 | 6116 rm -rf conftest* |
6117 eval "ac_cv_lib_$ac_lib_var=yes" | |
6118 else | |
6119 echo "configure: failed program was:" >&5 | |
6120 cat conftest.$ac_ext >&5 | |
6121 rm -rf conftest* | |
6122 eval "ac_cv_lib_$ac_lib_var=no" | |
6123 fi | |
6124 rm -f conftest* | |
6125 LIBS="$ac_save_LIBS" | |
6126 | |
6127 fi | |
6128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6129 echo "$ac_t""yes" 1>&6 | |
6130 ac_tr_lib=HAVE_LIB`echo dgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
6131 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
6132 cat >> confdefs.h <<EOF | |
6133 #define $ac_tr_lib 1 | |
6134 EOF | |
6135 | |
6136 LIBS="-ldgc $LIBS" | |
6137 | |
6138 else | |
6139 echo "$ac_t""no" 1>&6 | |
6140 fi | |
6141 | |
6142 else | |
6143 echo "$ac_t""no" 1>&6 | |
6144 fi | |
6145 | |
6146 | |
6147 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | |
6148 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
6149 # Irix 4.0.5F has the header but not the library. | |
6150 if test $ac_have_func = no && test $ac_cv_lib_elf_elf_begin = yes; then | |
6151 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6152 #define SVR4 1 | |
6153 EOF | |
6154 | |
6155 fi | |
6156 | |
6157 if test $ac_have_func = no; then | |
6158 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` | |
6159 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6160 echo "configure:6161: checking for inq_stats/cpustats.h" >&5 |
29834 | 6161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6162 echo $ac_n "(cached) $ac_c" 1>&6 | |
6163 else | |
6164 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6165 #line 6166 "configure" |
29834 | 6166 #include "confdefs.h" |
6167 #include <inq_stats/cpustats.h> | |
6168 EOF | |
6169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6170 { (eval echo configure:6171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29834 | 6171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6172 if test -z "$ac_err"; then | |
6173 rm -rf conftest* | |
6174 eval "ac_cv_header_$ac_safe=yes" | |
6175 else | |
6176 echo "$ac_err" >&5 | |
6177 echo "configure: failed program was:" >&5 | |
6178 cat conftest.$ac_ext >&5 | |
6179 rm -rf conftest* | |
6180 eval "ac_cv_header_$ac_safe=no" | |
6181 fi | |
6182 rm -f conftest* | |
6183 fi | |
6184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6185 echo "$ac_t""yes" 1>&6 | |
6186 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6187 #define UMAX 1 | |
6188 EOF | |
6189 | |
6190 cat >> confdefs.h <<\EOF | |
6191 #define UMAX4_3 1 | |
6192 EOF | |
6193 | |
6194 else | |
6195 echo "$ac_t""no" 1>&6 | |
6196 fi | |
6197 | |
6198 fi | |
6199 | |
6200 if test $ac_have_func = no; then | |
6201 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` | |
6202 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6203 echo "configure:6204: checking for sys/cpustats.h" >&5 |
29834 | 6204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6205 echo $ac_n "(cached) $ac_c" 1>&6 | |
6206 else | |
6207 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6208 #line 6209 "configure" |
29834 | 6209 #include "confdefs.h" |
6210 #include <sys/cpustats.h> | |
6211 EOF | |
6212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6213 { (eval echo configure:6214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29834 | 6214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6215 if test -z "$ac_err"; then | |
6216 rm -rf conftest* | |
6217 eval "ac_cv_header_$ac_safe=yes" | |
6218 else | |
6219 echo "$ac_err" >&5 | |
6220 echo "configure: failed program was:" >&5 | |
6221 cat conftest.$ac_ext >&5 | |
6222 rm -rf conftest* | |
6223 eval "ac_cv_header_$ac_safe=no" | |
6224 fi | |
6225 rm -f conftest* | |
6226 fi | |
6227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6228 echo "$ac_t""yes" 1>&6 | |
6229 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6230 #define UMAX 1 | |
6231 EOF | |
6232 | |
6233 else | |
6234 echo "$ac_t""no" 1>&6 | |
6235 fi | |
6236 | |
6237 fi | |
6238 | |
6239 if test $ac_have_func = no; then | |
6240 for ac_hdr in mach/mach.h | |
6241 do | |
6242 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
6243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6244 echo "configure:6245: checking for $ac_hdr" >&5 |
29834 | 6245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6246 echo $ac_n "(cached) $ac_c" 1>&6 | |
6247 else | |
6248 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6249 #line 6250 "configure" |
29834 | 6250 #include "confdefs.h" |
6251 #include <$ac_hdr> | |
6252 EOF | |
6253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6254 { (eval echo configure:6255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29834 | 6255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6256 if test -z "$ac_err"; then | |
6257 rm -rf conftest* | |
6258 eval "ac_cv_header_$ac_safe=yes" | |
6259 else | |
6260 echo "$ac_err" >&5 | |
6261 echo "configure: failed program was:" >&5 | |
6262 cat conftest.$ac_ext >&5 | |
6263 rm -rf conftest* | |
6264 eval "ac_cv_header_$ac_safe=no" | |
6265 fi | |
6266 rm -f conftest* | |
6267 fi | |
6268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6269 echo "$ac_t""yes" 1>&6 | |
6270 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
6271 cat >> confdefs.h <<EOF | |
6272 #define $ac_tr_hdr 1 | |
6273 EOF | |
6274 | |
6275 else | |
6276 echo "$ac_t""no" 1>&6 | |
6277 fi | |
6278 done | |
6279 | |
6280 fi | |
6281 | |
6282 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | |
6283 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6284 echo "configure:6285: checking for nlist.h" >&5 |
29834 | 6285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6286 echo $ac_n "(cached) $ac_c" 1>&6 | |
6287 else | |
6288 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6289 #line 6290 "configure" |
29834 | 6290 #include "confdefs.h" |
6291 #include <nlist.h> | |
6292 EOF | |
6293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6294 { (eval echo configure:6295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29834 | 6295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6296 if test -z "$ac_err"; then | |
6297 rm -rf conftest* | |
6298 eval "ac_cv_header_$ac_safe=yes" | |
6299 else | |
6300 echo "$ac_err" >&5 | |
6301 echo "configure: failed program was:" >&5 | |
6302 cat conftest.$ac_ext >&5 | |
6303 rm -rf conftest* | |
6304 eval "ac_cv_header_$ac_safe=no" | |
6305 fi | |
6306 rm -f conftest* | |
6307 fi | |
6308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6309 echo "$ac_t""yes" 1>&6 | |
6310 cat >> confdefs.h <<\EOF | |
6311 #define NLIST_STRUCT 1 | |
6312 EOF | |
6313 | |
6314 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6315 echo "configure:6316: checking for n_un in struct nlist" >&5 |
29834 | 6316 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then |
6317 echo $ac_n "(cached) $ac_c" 1>&6 | |
6318 else | |
6319 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6320 #line 6321 "configure" |
29834 | 6321 #include "confdefs.h" |
6322 #include <nlist.h> | |
6323 int main() { | |
6324 struct nlist n; n.n_un.n_name = 0; | |
6325 ; return 0; } | |
6326 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6327 if { (eval echo configure:6328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29834 | 6328 rm -rf conftest* |
6329 ac_cv_struct_nlist_n_un=yes | |
6330 else | |
6331 echo "configure: failed program was:" >&5 | |
6332 cat conftest.$ac_ext >&5 | |
6333 rm -rf conftest* | |
6334 ac_cv_struct_nlist_n_un=no | |
6335 fi | |
6336 rm -f conftest* | |
6337 fi | |
6338 | |
6339 echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6 | |
6340 if test $ac_cv_struct_nlist_n_un = yes; then | |
6341 cat >> confdefs.h <<\EOF | |
6342 #define NLIST_NAME_UNION 1 | |
6343 EOF | |
6344 | |
6345 fi | |
6346 | |
6347 else | |
6348 echo "$ac_t""no" 1>&6 | |
6349 fi | |
6350 fi # Do not have getloadavg in system libraries. | |
6351 | |
6352 # Some definitions of getloadavg require that the program be installed setgid. | |
6353 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6354 echo "configure:6355: checking whether getloadavg requires setgid" >&5 |
29834 | 6355 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then |
6356 echo $ac_n "(cached) $ac_c" 1>&6 | |
6357 else | |
6358 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6359 #line 6360 "configure" |
29834 | 6360 #include "confdefs.h" |
6361 #include "$srcdir/getloadavg.c" | |
6362 #ifdef LDAV_PRIVILEGED | |
6363 Yowza Am I SETGID yet | |
6364 #endif | |
6365 EOF | |
6366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6367 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then | |
6368 rm -rf conftest* | |
6369 ac_cv_func_getloadavg_setgid=yes | |
6370 else | |
6371 rm -rf conftest* | |
6372 ac_cv_func_getloadavg_setgid=no | |
6373 fi | |
6374 rm -f conftest* | |
6375 | |
6376 fi | |
6377 | |
6378 echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6 | |
6379 if test $ac_cv_func_getloadavg_setgid = yes; then | |
6380 NEED_SETGID=true; cat >> confdefs.h <<\EOF | |
6381 #define GETLOADAVG_PRIVILEGED 1 | |
6382 EOF | |
6383 | |
6384 else | |
6385 NEED_SETGID=false | |
6386 fi | |
6387 | |
6388 if test $ac_cv_func_getloadavg_setgid = yes; then | |
6389 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6390 echo "configure:6391: checking group of /dev/kmem" >&5 |
29834 | 6391 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then |
6392 echo $ac_n "(cached) $ac_c" 1>&6 | |
6393 else | |
6394 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
6395 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
6396 # If we got an error (system does not support symlinks), try without -L. | |
6397 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
6398 ac_cv_group_kmem=`echo $ac_ls_output \ | |
6399 | sed -ne 's/[ ][ ]*/ /g; | |
6400 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
6401 / /s/.* //;p;'` | |
6402 | |
6403 fi | |
6404 | |
6405 echo "$ac_t""$ac_cv_group_kmem" 1>&6 | |
6406 KMEM_GROUP=$ac_cv_group_kmem | |
6407 fi | |
6408 | |
6409 | |
29388 | 6410 # Check whether --enable-largefile or --disable-largefile was given. |
6411 if test "${enable_largefile+set}" = set; then | |
6412 enableval="$enable_largefile" | |
6413 : | |
6414 fi | |
6415 | |
6416 if test "$enable_largefile" != no; then | |
6417 | |
6418 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6419 echo "configure:6420: checking for special C compiler options needed for large files" >&5 |
29388 | 6420 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then |
6421 echo $ac_n "(cached) $ac_c" 1>&6 | |
6422 else | |
6423 ac_cv_sys_largefile_CC=no | |
6424 if test "$GCC" != yes; then | |
6425 # IRIX 6.2 and later do not support large files by default, | |
6426 # so use the C compiler's -n32 option if that helps. | |
6427 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6428 #line 6429 "configure" |
29388 | 6429 #include "confdefs.h" |
6430 #include <sys/types.h> | |
6431 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6432 | |
6433 int main() { | |
6434 | |
6435 ; return 0; } | |
6436 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6437 if { (eval echo configure:6438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6438 : |
6439 else | |
6440 echo "configure: failed program was:" >&5 | |
6441 cat conftest.$ac_ext >&5 | |
6442 rm -rf conftest* | |
6443 ac_save_CC="$CC" | |
6444 CC="$CC -n32" | |
6445 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6446 #line 6447 "configure" |
29388 | 6447 #include "confdefs.h" |
6448 #include <sys/types.h> | |
6449 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6450 | |
6451 int main() { | |
6452 | |
6453 ; return 0; } | |
6454 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6455 if { (eval echo configure:6456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6456 rm -rf conftest* |
6457 ac_cv_sys_largefile_CC=' -n32' | |
6458 else | |
6459 echo "configure: failed program was:" >&5 | |
6460 cat conftest.$ac_ext >&5 | |
6461 fi | |
6462 rm -f conftest* | |
6463 CC="$ac_save_CC" | |
6464 fi | |
6465 rm -f conftest* | |
6466 fi | |
6467 fi | |
6468 | |
6469 echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6 | |
6470 if test "$ac_cv_sys_largefile_CC" != no; then | |
6471 CC="$CC$ac_cv_sys_largefile_CC" | |
6472 fi | |
6473 | |
6474 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6475 echo "configure:6476: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
29388 | 6476 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
6477 echo $ac_n "(cached) $ac_c" 1>&6 | |
6478 else | |
6479 ac_cv_sys_file_offset_bits=no | |
6480 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6481 #line 6482 "configure" |
29388 | 6482 #include "confdefs.h" |
6483 #include <sys/types.h> | |
6484 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6485 | |
6486 | |
6487 | |
6488 int main() { | |
6489 | |
6490 ; return 0; } | |
6491 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6492 if { (eval echo configure:6493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6493 : |
6494 else | |
6495 echo "configure: failed program was:" >&5 | |
6496 cat conftest.$ac_ext >&5 | |
6497 rm -rf conftest* | |
6498 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6499 #line 6500 "configure" |
29388 | 6500 #include "confdefs.h" |
6501 #define _FILE_OFFSET_BITS 64 | |
6502 #include <sys/types.h> | |
6503 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6504 | |
6505 | |
6506 | |
6507 int main() { | |
6508 | |
6509 ; return 0; } | |
6510 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6511 if { (eval echo configure:6512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6512 rm -rf conftest* |
6513 ac_cv_sys_file_offset_bits=64 | |
6514 else | |
6515 echo "configure: failed program was:" >&5 | |
6516 cat conftest.$ac_ext >&5 | |
6517 fi | |
6518 rm -f conftest* | |
6519 fi | |
6520 rm -f conftest* | |
6521 fi | |
6522 | |
6523 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
6524 if test "$ac_cv_sys_file_offset_bits" != no; then | |
6525 cat >> confdefs.h <<EOF | |
6526 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
6527 EOF | |
6528 | |
6529 fi | |
6530 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6531 echo "configure:6532: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
29388 | 6532 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then |
6533 echo $ac_n "(cached) $ac_c" 1>&6 | |
6534 else | |
6535 ac_cv_sys_largefile_source=no | |
6536 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6537 #line 6538 "configure" |
29388 | 6538 #include "confdefs.h" |
6539 #include <sys/types.h> | |
6540 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6541 | |
6542 #include <stdio.h> | |
6543 | |
6544 int main() { | |
6545 return !ftello; | |
6546 ; return 0; } | |
6547 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6548 if { (eval echo configure:6549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6549 : |
6550 else | |
6551 echo "configure: failed program was:" >&5 | |
6552 cat conftest.$ac_ext >&5 | |
6553 rm -rf conftest* | |
6554 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6555 #line 6556 "configure" |
29388 | 6556 #include "confdefs.h" |
6557 #define _LARGEFILE_SOURCE 1 | |
6558 #include <sys/types.h> | |
6559 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6560 | |
6561 #include <stdio.h> | |
6562 | |
6563 int main() { | |
6564 return !ftello; | |
6565 ; return 0; } | |
6566 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6567 if { (eval echo configure:6568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6568 rm -rf conftest* |
6569 ac_cv_sys_largefile_source=1 | |
6570 else | |
6571 echo "configure: failed program was:" >&5 | |
6572 cat conftest.$ac_ext >&5 | |
6573 fi | |
6574 rm -f conftest* | |
6575 fi | |
6576 rm -f conftest* | |
6577 fi | |
6578 | |
6579 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6 | |
6580 if test "$ac_cv_sys_largefile_source" != no; then | |
6581 cat >> confdefs.h <<EOF | |
6582 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
6583 EOF | |
6584 | |
6585 fi | |
6586 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6587 echo "configure:6588: checking for _LARGE_FILES value needed for large files" >&5 |
29388 | 6588 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
6589 echo $ac_n "(cached) $ac_c" 1>&6 | |
6590 else | |
6591 ac_cv_sys_large_files=no | |
6592 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6593 #line 6594 "configure" |
29388 | 6594 #include "confdefs.h" |
6595 #include <sys/types.h> | |
6596 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6597 | |
6598 | |
6599 | |
6600 int main() { | |
6601 | |
6602 ; return 0; } | |
6603 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6604 if { (eval echo configure:6605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6605 : |
6606 else | |
6607 echo "configure: failed program was:" >&5 | |
6608 cat conftest.$ac_ext >&5 | |
6609 rm -rf conftest* | |
6610 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6611 #line 6612 "configure" |
29388 | 6612 #include "confdefs.h" |
6613 #define _LARGE_FILES 1 | |
6614 #include <sys/types.h> | |
6615 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6616 | |
6617 | |
6618 | |
6619 int main() { | |
6620 | |
6621 ; return 0; } | |
6622 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6623 if { (eval echo configure:6624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6624 rm -rf conftest* |
6625 ac_cv_sys_large_files=1 | |
6626 else | |
6627 echo "configure: failed program was:" >&5 | |
6628 cat conftest.$ac_ext >&5 | |
6629 fi | |
6630 rm -f conftest* | |
6631 fi | |
6632 rm -f conftest* | |
6633 fi | |
6634 | |
6635 echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
6636 if test "$ac_cv_sys_large_files" != no; then | |
6637 cat >> confdefs.h <<EOF | |
6638 #define _LARGE_FILES $ac_cv_sys_large_files | |
6639 EOF | |
6640 | |
6641 fi | |
6642 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6643 echo "configure:6644: checking for _XOPEN_SOURCE value needed for large files" >&5 |
29388 | 6644 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then |
6645 echo $ac_n "(cached) $ac_c" 1>&6 | |
6646 else | |
6647 ac_cv_sys_xopen_source=no | |
6648 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6649 #line 6650 "configure" |
29388 | 6650 #include "confdefs.h" |
6651 #include <sys/types.h> | |
6652 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6653 | |
6654 #include <stdio.h> | |
6655 | |
6656 int main() { | |
6657 return !ftello; | |
6658 ; return 0; } | |
6659 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6660 if { (eval echo configure:6661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6661 : |
6662 else | |
6663 echo "configure: failed program was:" >&5 | |
6664 cat conftest.$ac_ext >&5 | |
6665 rm -rf conftest* | |
6666 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6667 #line 6668 "configure" |
29388 | 6668 #include "confdefs.h" |
6669 #define _XOPEN_SOURCE 500 | |
6670 #include <sys/types.h> | |
6671 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6672 | |
6673 #include <stdio.h> | |
6674 | |
6675 int main() { | |
6676 return !ftello; | |
6677 ; return 0; } | |
6678 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6679 if { (eval echo configure:6680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6680 rm -rf conftest* |
6681 ac_cv_sys_xopen_source=500 | |
6682 else | |
6683 echo "configure: failed program was:" >&5 | |
6684 cat conftest.$ac_ext >&5 | |
6685 fi | |
6686 rm -f conftest* | |
6687 fi | |
6688 rm -f conftest* | |
6689 fi | |
6690 | |
6691 echo "$ac_t""$ac_cv_sys_xopen_source" 1>&6 | |
6692 if test "$ac_cv_sys_xopen_source" != no; then | |
6693 cat >> confdefs.h <<EOF | |
6694 #define _XOPEN_SOURCE $ac_cv_sys_xopen_source | |
6695 EOF | |
6696 | |
6697 fi | |
6698 fi | |
6699 | |
6700 for ac_func in ftello | |
29036 | 6701 do |
6702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6703 echo "configure:6704: checking for $ac_func" >&5 |
29036 | 6704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6705 echo $ac_n "(cached) $ac_c" 1>&6 | |
6706 else | |
6707 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6708 #line 6709 "configure" |
29036 | 6709 #include "confdefs.h" |
6710 /* System header to define __stub macros and hopefully few prototypes, | |
6711 which can conflict with char $ac_func(); below. */ | |
6712 #include <assert.h> | |
6713 /* Override any gcc2 internal prototype to avoid an error. */ | |
6714 /* We use char because int might match the return type of a gcc2 | |
6715 builtin and then its argument prototype would still apply. */ | |
6716 char $ac_func(); | |
6717 | |
6718 int main() { | |
6719 | |
6720 /* The GNU C library defines this for functions which it implements | |
6721 to always fail with ENOSYS. Some functions are actually named | |
6722 something starting with __ and the normal name is an alias. */ | |
6723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6724 choke me | |
6725 #else | |
6726 $ac_func(); | |
6727 #endif | |
6728 | |
6729 ; return 0; } | |
6730 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6731 if { (eval echo configure:6732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29388 | 6732 rm -rf conftest* |
6733 eval "ac_cv_func_$ac_func=yes" | |
6734 else | |
6735 echo "configure: failed program was:" >&5 | |
6736 cat conftest.$ac_ext >&5 | |
6737 rm -rf conftest* | |
6738 eval "ac_cv_func_$ac_func=no" | |
6739 fi | |
6740 rm -f conftest* | |
6741 fi | |
6742 | |
6743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6744 echo "$ac_t""yes" 1>&6 | |
6745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6746 cat >> confdefs.h <<EOF | |
6747 #define $ac_tr_func 1 | |
6748 EOF | |
6749 | |
6750 else | |
6751 echo "$ac_t""no" 1>&6 | |
6752 fi | |
6753 done | |
6754 | |
6755 | |
6756 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE | |
6757 # if we need it. | |
6758 for ac_func in grantpt | |
6759 do | |
6760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6761 echo "configure:6762: checking for $ac_func" >&5 |
29388 | 6762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6763 echo $ac_n "(cached) $ac_c" 1>&6 | |
6764 else | |
6765 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6766 #line 6767 "configure" |
29388 | 6767 #include "confdefs.h" |
6768 /* System header to define __stub macros and hopefully few prototypes, | |
6769 which can conflict with char $ac_func(); below. */ | |
6770 #include <assert.h> | |
6771 /* Override any gcc2 internal prototype to avoid an error. */ | |
6772 /* We use char because int might match the return type of a gcc2 | |
6773 builtin and then its argument prototype would still apply. */ | |
6774 char $ac_func(); | |
6775 | |
6776 int main() { | |
6777 | |
6778 /* The GNU C library defines this for functions which it implements | |
6779 to always fail with ENOSYS. Some functions are actually named | |
6780 something starting with __ and the normal name is an alias. */ | |
6781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6782 choke me | |
6783 #else | |
6784 $ac_func(); | |
6785 #endif | |
6786 | |
6787 ; return 0; } | |
6788 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6789 if { (eval echo configure:6790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29036 | 6790 rm -rf conftest* |
6791 eval "ac_cv_func_$ac_func=yes" | |
6792 else | |
6793 echo "configure: failed program was:" >&5 | |
6794 cat conftest.$ac_ext >&5 | |
6795 rm -rf conftest* | |
6796 eval "ac_cv_func_$ac_func=no" | |
6797 fi | |
6798 rm -f conftest* | |
6799 fi | |
6800 | |
6801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6802 echo "$ac_t""yes" 1>&6 | |
6803 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6804 cat >> confdefs.h <<EOF | |
6805 #define $ac_tr_func 1 | |
6806 EOF | |
6807 | |
6808 else | |
6809 echo "$ac_t""no" 1>&6 | |
6810 fi | |
6811 done | |
6812 | |
6813 | |
6814 # PTY-related GNU extensions. | |
6815 for ac_func in getpt | |
6816 do | |
6817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6818 echo "configure:6819: checking for $ac_func" >&5 |
29036 | 6819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6820 echo $ac_n "(cached) $ac_c" 1>&6 | |
6821 else | |
6822 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6823 #line 6824 "configure" |
29036 | 6824 #include "confdefs.h" |
6825 /* System header to define __stub macros and hopefully few prototypes, | |
6826 which can conflict with char $ac_func(); below. */ | |
6827 #include <assert.h> | |
6828 /* Override any gcc2 internal prototype to avoid an error. */ | |
6829 /* We use char because int might match the return type of a gcc2 | |
6830 builtin and then its argument prototype would still apply. */ | |
6831 char $ac_func(); | |
6832 | |
6833 int main() { | |
6834 | |
6835 /* The GNU C library defines this for functions which it implements | |
6836 to always fail with ENOSYS. Some functions are actually named | |
6837 something starting with __ and the normal name is an alias. */ | |
6838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6839 choke me | |
6840 #else | |
6841 $ac_func(); | |
6842 #endif | |
6843 | |
6844 ; return 0; } | |
6845 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6846 if { (eval echo configure:6847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29036 | 6847 rm -rf conftest* |
6848 eval "ac_cv_func_$ac_func=yes" | |
6849 else | |
6850 echo "configure: failed program was:" >&5 | |
6851 cat conftest.$ac_ext >&5 | |
6852 rm -rf conftest* | |
6853 eval "ac_cv_func_$ac_func=no" | |
6854 fi | |
6855 rm -f conftest* | |
6856 fi | |
6857 | |
6858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6859 echo "$ac_t""yes" 1>&6 | |
6860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6861 cat >> confdefs.h <<EOF | |
6862 #define $ac_tr_func 1 | |
6863 EOF | |
6864 | |
6865 else | |
6866 echo "$ac_t""no" 1>&6 | |
6867 fi | |
6868 done | |
6869 | |
6870 | |
25897 | 6871 # Check this now, so that we will NOT find the above functions in ncurses. |
6872 # That is because we have not set up to link ncurses in lib-src. | |
6873 # It's better to believe a function is not available | |
6874 # than to expect to find it in ncurses. | |
6875 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6876 echo "configure:6877: checking for tparm in -lncurses" >&5 |
25897 | 6877 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` |
6878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6879 echo $ac_n "(cached) $ac_c" 1>&6 | |
6880 else | |
6881 ac_save_LIBS="$LIBS" | |
6882 LIBS="-lncurses $LIBS" | |
6883 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6884 #line 6885 "configure" |
25897 | 6885 #include "confdefs.h" |
6886 /* Override any gcc2 internal prototype to avoid an error. */ | |
6887 /* We use char because int might match the return type of a gcc2 | |
6888 builtin and then its argument prototype would still apply. */ | |
6889 char tparm(); | |
6890 | |
6891 int main() { | |
6892 tparm() | |
6893 ; return 0; } | |
6894 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6895 if { (eval echo configure:6896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 6896 rm -rf conftest* |
6897 eval "ac_cv_lib_$ac_lib_var=yes" | |
6898 else | |
6899 echo "configure: failed program was:" >&5 | |
6900 cat conftest.$ac_ext >&5 | |
6901 rm -rf conftest* | |
6902 eval "ac_cv_lib_$ac_lib_var=no" | |
6903 fi | |
6904 rm -f conftest* | |
6905 LIBS="$ac_save_LIBS" | |
6906 | |
6907 fi | |
6908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6909 echo "$ac_t""yes" 1>&6 | |
6910 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
6911 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
6912 cat >> confdefs.h <<EOF | |
6913 #define $ac_tr_lib 1 | |
6914 EOF | |
6915 | |
6916 LIBS="-lncurses $LIBS" | |
6917 | |
6918 else | |
6919 echo "$ac_t""no" 1>&6 | |
6920 fi | |
6921 | |
6922 | |
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
|
6923 # 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
|
6924 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
|
6925 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6926 echo "configure:6927: checking for com_err in -lcom_err" >&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
|
6927 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6928 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+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
|
6929 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6930 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6931 ac_save_LIBS="$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
|
6932 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
|
6933 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6934 #line 6935 "configure" |
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
|
6935 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6936 /* Override any gcc2 internal prototype to avoid an error. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6937 /* We use char because int might match the return type of a gcc2 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6938 builtin and then its argument prototype would still apply. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6939 char com_err(); |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6940 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6941 int main() { |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6942 com_err() |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6943 ; return 0; } |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6944 EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6945 if { (eval echo configure:6946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
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
|
6946 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6947 eval "ac_cv_lib_$ac_lib_var=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6948 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6949 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6950 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6951 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6952 eval "ac_cv_lib_$ac_lib_var=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6953 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
|
6954 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6955 LIBS="$ac_save_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
|
6956 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6957 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
|
6958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; 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
|
6959 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6960 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6961 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6962 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6963 #define $ac_tr_lib 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6964 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6965 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6966 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
|
6967 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6968 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6969 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6970 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
|
6971 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6972 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6973 echo "configure:6974: checking for mit_des_cbc_encrypt in -lk5crypto" >&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
|
6974 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+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
|
6976 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6977 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6978 ac_save_LIBS="$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
|
6979 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
|
6980 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6981 #line 6982 "configure" |
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
|
6982 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6983 /* Override any gcc2 internal prototype to avoid an error. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6984 /* We use char because int might match the return type of a gcc2 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6985 builtin and then its argument prototype would still apply. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6986 char mit_des_cbc_encrypt(); |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6987 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6988 int main() { |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6989 mit_des_cbc_encrypt() |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6990 ; return 0; } |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6991 EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6992 if { (eval echo configure:6993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
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
|
6993 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6994 eval "ac_cv_lib_$ac_lib_var=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6995 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6996 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6997 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6998 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
6999 eval "ac_cv_lib_$ac_lib_var=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7000 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
|
7001 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7002 LIBS="$ac_save_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
|
7003 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7004 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
|
7005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; 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
|
7006 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7007 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7008 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7009 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7010 #define $ac_tr_lib 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7011 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7012 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7013 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
|
7014 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7015 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7016 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7017 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
|
7018 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7019 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7020 echo "configure:7021: checking for mit_des_cbc_encrypt in -lcrypto" >&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
|
7021 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+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
|
7023 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7024 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7025 ac_save_LIBS="$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
|
7026 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
|
7027 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7028 #line 7029 "configure" |
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
|
7029 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7030 /* Override any gcc2 internal prototype to avoid an error. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7031 /* We use char because int might match the return type of a gcc2 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7032 builtin and then its argument prototype would still apply. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7033 char mit_des_cbc_encrypt(); |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7034 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7035 int main() { |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7036 mit_des_cbc_encrypt() |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7037 ; return 0; } |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7038 EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7039 if { (eval echo configure:7040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
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
|
7040 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7041 eval "ac_cv_lib_$ac_lib_var=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7042 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7043 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7044 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7045 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7046 eval "ac_cv_lib_$ac_lib_var=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7047 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
|
7048 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7049 LIBS="$ac_save_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
|
7050 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7051 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
|
7052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; 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
|
7053 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7054 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7055 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7056 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7057 #define $ac_tr_lib 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7058 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7059 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7060 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
|
7061 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7062 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7063 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7064 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
|
7065 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7066 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7067 echo "configure:7068: checking for krb5_init_context in -lkrb5" >&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
|
7068 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+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
|
7070 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7071 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7072 ac_save_LIBS="$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
|
7073 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
|
7074 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7075 #line 7076 "configure" |
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
|
7076 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7077 /* Override any gcc2 internal prototype to avoid an error. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7078 /* We use char because int might match the return type of a gcc2 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7079 builtin and then its argument prototype would still apply. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7080 char krb5_init_context(); |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7081 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7082 int main() { |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7083 krb5_init_context() |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7084 ; return 0; } |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7085 EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7086 if { (eval echo configure:7087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
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
|
7087 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7088 eval "ac_cv_lib_$ac_lib_var=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7089 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7090 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7091 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7092 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7093 eval "ac_cv_lib_$ac_lib_var=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7094 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
|
7095 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7096 LIBS="$ac_save_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
|
7097 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7098 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
|
7099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; 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
|
7100 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7101 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7102 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7103 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7104 #define $ac_tr_lib 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7105 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7106 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7107 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
|
7108 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7109 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7110 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7111 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
|
7112 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7113 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
|
7114 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7115 echo "configure:7116: checking for des_cbc_encrypt in -ldes425" >&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
|
7116 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+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
|
7118 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7119 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7120 ac_save_LIBS="$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
|
7121 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
|
7122 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7123 #line 7124 "configure" |
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
|
7124 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7125 /* Override any gcc2 internal prototype to avoid an error. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7126 /* We use char because int might match the return type of a gcc2 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7127 builtin and then its argument prototype would still apply. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7128 char des_cbc_encrypt(); |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7129 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7130 int main() { |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7131 des_cbc_encrypt() |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7132 ; return 0; } |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7133 EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7134 if { (eval echo configure:7135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
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
|
7135 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7136 eval "ac_cv_lib_$ac_lib_var=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7137 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7138 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7139 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7140 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7141 eval "ac_cv_lib_$ac_lib_var=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7142 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
|
7143 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7144 LIBS="$ac_save_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
|
7145 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7146 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
|
7147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; 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
|
7148 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7149 ac_tr_lib=HAVE_LIB`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7150 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7151 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7152 #define $ac_tr_lib 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7153 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7154 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7155 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
|
7156 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7157 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7158 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7159 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7160 echo "configure:7161: checking for des_cbc_encrypt in -ldes" >&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
|
7161 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+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
|
7163 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7164 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7165 ac_save_LIBS="$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
|
7166 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
|
7167 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7168 #line 7169 "configure" |
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
|
7169 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7170 /* Override any gcc2 internal prototype to avoid an error. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7171 /* We use char because int might match the return type of a gcc2 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7172 builtin and then its argument prototype would still apply. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7173 char des_cbc_encrypt(); |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7174 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7175 int main() { |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7176 des_cbc_encrypt() |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7177 ; return 0; } |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7178 EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7179 if { (eval echo configure:7180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
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
|
7180 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7181 eval "ac_cv_lib_$ac_lib_var=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7182 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7183 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7184 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7185 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7186 eval "ac_cv_lib_$ac_lib_var=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7187 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
|
7188 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7189 LIBS="$ac_save_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
|
7190 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7191 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
|
7192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; 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
|
7193 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7194 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/^a-zA-Z0-9_/_/g' \ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7195 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7196 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7197 #define $ac_tr_lib 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7198 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7199 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7200 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
|
7201 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7202 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7203 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7204 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
|
7205 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7206 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
|
7207 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7208 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7209 echo "configure:7210: checking for krb_get_cred in -lkrb4" >&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
|
7210 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+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
|
7212 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7213 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7214 ac_save_LIBS="$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
|
7215 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
|
7216 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7217 #line 7218 "configure" |
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
|
7218 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7219 /* Override any gcc2 internal prototype to avoid an error. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7220 /* We use char because int might match the return type of a gcc2 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7221 builtin and then its argument prototype would still apply. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7222 char krb_get_cred(); |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7223 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7224 int main() { |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7225 krb_get_cred() |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7226 ; return 0; } |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7227 EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7228 if { (eval echo configure:7229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
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
|
7229 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7230 eval "ac_cv_lib_$ac_lib_var=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7231 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7232 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7233 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7234 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7235 eval "ac_cv_lib_$ac_lib_var=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7236 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
|
7237 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7238 LIBS="$ac_save_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
|
7239 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7240 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
|
7241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; 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
|
7242 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7243 ac_tr_lib=HAVE_LIB`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7244 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7245 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7246 #define $ac_tr_lib 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7247 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7248 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7249 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
|
7250 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7251 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7252 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7253 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7254 echo "configure:7255: checking for krb_get_cred in -lkrb" >&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
|
7255 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+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
|
7257 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7258 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7259 ac_save_LIBS="$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
|
7260 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
|
7261 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7262 #line 7263 "configure" |
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
|
7263 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7264 /* Override any gcc2 internal prototype to avoid an error. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7265 /* We use char because int might match the return type of a gcc2 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7266 builtin and then its argument prototype would still apply. */ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7267 char krb_get_cred(); |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7268 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7269 int main() { |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7270 krb_get_cred() |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7271 ; return 0; } |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7272 EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7273 if { (eval echo configure:7274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
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
|
7274 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7275 eval "ac_cv_lib_$ac_lib_var=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7276 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7277 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7278 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7279 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7280 eval "ac_cv_lib_$ac_lib_var=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7281 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
|
7282 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7283 LIBS="$ac_save_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
|
7284 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7285 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
|
7286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; 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
|
7287 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7288 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \ |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7289 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7290 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7291 #define $ac_tr_lib 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7292 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7293 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7294 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
|
7295 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7296 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7297 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7298 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
|
7299 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7300 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
|
7301 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7302 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
|
7303 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7304 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
|
7305 for ac_hdr in krb5.h |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7306 do |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7307 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7308 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7309 echo "configure:7310: checking for $ac_hdr" >&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
|
7310 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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
|
7311 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7312 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7313 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7314 #line 7315 "configure" |
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
|
7315 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7316 #include <$ac_hdr> |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7317 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7319 { (eval echo configure:7320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
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
|
7321 if test -z "$ac_err"; 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
|
7322 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7323 eval "ac_cv_header_$ac_safe=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7324 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7325 echo "$ac_err" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7326 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7327 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7328 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7329 eval "ac_cv_header_$ac_safe=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7330 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
|
7331 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7332 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
|
7333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; 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
|
7334 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7335 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7336 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7337 #define $ac_tr_hdr 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7338 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7339 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7340 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7341 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7342 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
|
7343 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
|
7344 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7345 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7346 for ac_hdr in des.h |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7347 do |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7348 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7350 echo "configure:7351: checking for $ac_hdr" >&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
|
7351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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
|
7352 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7353 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7354 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7355 #line 7356 "configure" |
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
|
7356 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7357 #include <$ac_hdr> |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7358 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7360 { (eval echo configure:7361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
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
|
7362 if test -z "$ac_err"; 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
|
7363 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7364 eval "ac_cv_header_$ac_safe=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7365 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7366 echo "$ac_err" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7367 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7368 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7369 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7370 eval "ac_cv_header_$ac_safe=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7371 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
|
7372 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7373 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
|
7374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; 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
|
7375 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7376 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7377 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7378 #define $ac_tr_hdr 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7379 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7380 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7381 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7382 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7383 for ac_hdr in kerberosIV/des.h |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7384 do |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7385 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7386 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7387 echo "configure:7388: checking for $ac_hdr" >&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
|
7388 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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
|
7389 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7390 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7391 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7392 #line 7393 "configure" |
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
|
7393 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7394 #include <$ac_hdr> |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7395 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7397 { (eval echo configure:7398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
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
|
7399 if test -z "$ac_err"; 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
|
7400 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7401 eval "ac_cv_header_$ac_safe=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7402 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7403 echo "$ac_err" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7404 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7405 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7406 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7407 eval "ac_cv_header_$ac_safe=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7408 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
|
7409 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7410 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
|
7411 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; 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
|
7412 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7413 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7414 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7415 #define $ac_tr_hdr 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7416 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7417 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7418 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7419 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7420 for ac_hdr in kerberos/des.h |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7421 do |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7424 echo "configure:7425: checking for $ac_hdr" >&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
|
7425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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
|
7426 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7427 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7428 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7429 #line 7430 "configure" |
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
|
7430 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7431 #include <$ac_hdr> |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7432 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7434 { (eval echo configure:7435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
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
|
7436 if test -z "$ac_err"; 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
|
7437 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7438 eval "ac_cv_header_$ac_safe=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7439 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7440 echo "$ac_err" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7441 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7442 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7443 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7444 eval "ac_cv_header_$ac_safe=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7445 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
|
7446 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7447 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
|
7448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; 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
|
7449 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7451 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7452 #define $ac_tr_hdr 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7453 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7454 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7455 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7456 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7457 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
|
7458 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
|
7459 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7460 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
|
7461 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
|
7462 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7463 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
|
7464 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
|
7465 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7466 for ac_hdr in krb.h |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7467 do |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7468 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7469 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7470 echo "configure:7471: checking for $ac_hdr" >&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
|
7471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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
|
7472 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7473 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7474 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7475 #line 7476 "configure" |
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
|
7476 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7477 #include <$ac_hdr> |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7478 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7480 { (eval echo configure:7481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
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
|
7482 if test -z "$ac_err"; 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
|
7483 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7484 eval "ac_cv_header_$ac_safe=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7485 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7486 echo "$ac_err" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7487 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7488 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7489 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7490 eval "ac_cv_header_$ac_safe=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7491 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
|
7492 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7493 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
|
7494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; 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
|
7495 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7496 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7497 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7498 #define $ac_tr_hdr 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7499 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7500 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7501 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7502 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7503 for ac_hdr in kerberosIV/krb.h |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7504 do |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7505 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7507 echo "configure:7508: checking for $ac_hdr" >&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
|
7508 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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
|
7509 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7510 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7511 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7512 #line 7513 "configure" |
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
|
7513 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7514 #include <$ac_hdr> |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7515 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7517 { (eval echo configure:7518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
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
|
7519 if test -z "$ac_err"; 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
|
7520 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7521 eval "ac_cv_header_$ac_safe=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7522 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7523 echo "$ac_err" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7524 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7525 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7526 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7527 eval "ac_cv_header_$ac_safe=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7528 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
|
7529 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7530 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
|
7531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; 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
|
7532 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7533 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7534 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7535 #define $ac_tr_hdr 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7536 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7537 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7538 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7539 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7540 for ac_hdr in kerberos/krb.h |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7541 do |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7544 echo "configure:7545: checking for $ac_hdr" >&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
|
7545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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
|
7546 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7547 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7548 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7549 #line 7550 "configure" |
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
|
7550 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7551 #include <$ac_hdr> |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7552 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7554 { (eval echo configure:7555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
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
|
7556 if test -z "$ac_err"; 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
|
7557 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7558 eval "ac_cv_header_$ac_safe=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7559 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7560 echo "$ac_err" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7561 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7562 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7563 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7564 eval "ac_cv_header_$ac_safe=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7565 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
|
7566 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7567 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
|
7568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; 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
|
7569 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7570 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7571 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7572 #define $ac_tr_hdr 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7573 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7574 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7575 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7576 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7577 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
|
7578 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
|
7579 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7580 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
|
7581 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
|
7582 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7583 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
|
7584 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
|
7585 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7586 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
|
7587 for ac_hdr in com_err.h |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7588 do |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7591 echo "configure:7592: checking for $ac_hdr" >&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
|
7592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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
|
7593 echo $ac_n "(cached) $ac_c" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7594 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7595 cat > conftest.$ac_ext <<EOF |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7596 #line 7597 "configure" |
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
|
7597 #include "confdefs.h" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7598 #include <$ac_hdr> |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7599 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7601 { (eval echo configure:7602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
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
|
7603 if test -z "$ac_err"; 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
|
7604 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7605 eval "ac_cv_header_$ac_safe=yes" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7606 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7607 echo "$ac_err" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7608 echo "configure: failed program was:" >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7609 cat conftest.$ac_ext >&5 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7610 rm -rf conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7611 eval "ac_cv_header_$ac_safe=no" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7612 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
|
7613 rm -f conftest* |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7614 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
|
7615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; 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
|
7616 echo "$ac_t""yes" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7618 cat >> confdefs.h <<EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7619 #define $ac_tr_hdr 1 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7620 EOF |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7621 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7622 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7623 echo "$ac_t""no" 1>&6 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7624 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
|
7625 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
|
7626 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
7627 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
|
7628 |
25897 | 7629 # Solaris requires -lintl if you want strerror (which calls dgettext) |
7630 # to return localized messages. | |
7631 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7632 echo "configure:7633: checking for dgettext in -lintl" >&5 |
25897 | 7633 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` |
7634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7635 echo $ac_n "(cached) $ac_c" 1>&6 | |
7636 else | |
7637 ac_save_LIBS="$LIBS" | |
7638 LIBS="-lintl $LIBS" | |
7639 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7640 #line 7641 "configure" |
25897 | 7641 #include "confdefs.h" |
7642 /* Override any gcc2 internal prototype to avoid an error. */ | |
7643 /* We use char because int might match the return type of a gcc2 | |
7644 builtin and then its argument prototype would still apply. */ | |
7645 char dgettext(); | |
7646 | |
7647 int main() { | |
7648 dgettext() | |
7649 ; return 0; } | |
7650 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7651 if { (eval echo configure:7652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 7652 rm -rf conftest* |
7653 eval "ac_cv_lib_$ac_lib_var=yes" | |
7654 else | |
7655 echo "configure: failed program was:" >&5 | |
7656 cat conftest.$ac_ext >&5 | |
7657 rm -rf conftest* | |
7658 eval "ac_cv_lib_$ac_lib_var=no" | |
7659 fi | |
7660 rm -f conftest* | |
7661 LIBS="$ac_save_LIBS" | |
7662 | |
7663 fi | |
7664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7665 echo "$ac_t""yes" 1>&6 | |
7666 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
7667 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
7668 cat >> confdefs.h <<EOF | |
7669 #define $ac_tr_lib 1 | |
7670 EOF | |
7671 | |
7672 LIBS="-lintl $LIBS" | |
7673 | |
7674 else | |
7675 echo "$ac_t""no" 1>&6 | |
7676 fi | |
7677 | |
7678 | |
7679 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7680 echo "configure:7681: checking whether localtime caches TZ" >&5 |
25897 | 7681 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then |
7682 echo $ac_n "(cached) $ac_c" 1>&6 | |
7683 else | |
7684 if test x$ac_cv_func_tzset = xyes; then | |
7685 if test "$cross_compiling" = yes; then | |
7686 # If we have tzset, assume the worst when cross-compiling. | |
7687 emacs_cv_localtime_cache=yes | |
7688 else | |
7689 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7690 #line 7691 "configure" |
25897 | 7691 #include "confdefs.h" |
7692 #include <time.h> | |
7693 extern char **environ; | |
7694 unset_TZ () | |
7695 { | |
7696 char **from, **to; | |
7697 for (to = from = environ; (*to = *from); from++) | |
7698 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
7699 to++; | |
7700 } | |
7701 char TZ_GMT0[] = "TZ=GMT0"; | |
7702 char TZ_PST8[] = "TZ=PST8"; | |
7703 main() | |
7704 { | |
7705 time_t now = time ((time_t *) 0); | |
7706 int hour_GMT0, hour_unset; | |
7707 if (putenv (TZ_GMT0) != 0) | |
7708 exit (1); | |
7709 hour_GMT0 = localtime (&now)->tm_hour; | |
7710 unset_TZ (); | |
7711 hour_unset = localtime (&now)->tm_hour; | |
7712 if (putenv (TZ_PST8) != 0) | |
7713 exit (1); | |
7714 if (localtime (&now)->tm_hour == hour_GMT0) | |
7715 exit (1); | |
7716 unset_TZ (); | |
7717 if (localtime (&now)->tm_hour != hour_unset) | |
7718 exit (1); | |
7719 exit (0); | |
7720 } | |
7721 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7722 if { (eval echo configure:7723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
25897 | 7723 then |
7724 emacs_cv_localtime_cache=no | |
7725 else | |
7726 echo "configure: failed program was:" >&5 | |
7727 cat conftest.$ac_ext >&5 | |
7728 rm -fr conftest* | |
7729 emacs_cv_localtime_cache=yes | |
7730 fi | |
7731 rm -fr conftest* | |
7732 fi | |
7733 | |
7734 else | |
7735 # If we lack tzset, report that localtime does not cache TZ, | |
7736 # since we can't invalidate the cache if we don't have tzset. | |
7737 emacs_cv_localtime_cache=no | |
7738 fi | |
7739 fi | |
7740 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6 | |
7741 if test $emacs_cv_localtime_cache = yes; then | |
7742 cat >> confdefs.h <<\EOF | |
7743 #define LOCALTIME_CACHE 1 | |
7744 EOF | |
7745 | |
7746 fi | |
7747 | |
7748 if test "x$HAVE_TIMEVAL" = xyes; then | |
29906 | 7749 for ac_func in gettimeofday |
7750 do | |
7751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7752 echo "configure:7753: checking for $ac_func" >&5 |
29906 | 7753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7754 echo $ac_n "(cached) $ac_c" 1>&6 | |
7755 else | |
7756 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7757 #line 7758 "configure" |
29906 | 7758 #include "confdefs.h" |
7759 /* System header to define __stub macros and hopefully few prototypes, | |
7760 which can conflict with char $ac_func(); below. */ | |
7761 #include <assert.h> | |
7762 /* Override any gcc2 internal prototype to avoid an error. */ | |
7763 /* We use char because int might match the return type of a gcc2 | |
7764 builtin and then its argument prototype would still apply. */ | |
7765 char $ac_func(); | |
7766 | |
7767 int main() { | |
7768 | |
7769 /* The GNU C library defines this for functions which it implements | |
7770 to always fail with ENOSYS. Some functions are actually named | |
7771 something starting with __ and the normal name is an alias. */ | |
7772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7773 choke me | |
7774 #else | |
7775 $ac_func(); | |
7776 #endif | |
7777 | |
7778 ; return 0; } | |
7779 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7780 if { (eval echo configure:7781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29906 | 7781 rm -rf conftest* |
7782 eval "ac_cv_func_$ac_func=yes" | |
7783 else | |
7784 echo "configure: failed program was:" >&5 | |
7785 cat conftest.$ac_ext >&5 | |
7786 rm -rf conftest* | |
7787 eval "ac_cv_func_$ac_func=no" | |
7788 fi | |
7789 rm -f conftest* | |
7790 fi | |
7791 | |
7792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
7793 echo "$ac_t""yes" 1>&6 | |
7794 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
7795 cat >> confdefs.h <<EOF | |
7796 #define $ac_tr_func 1 | |
7797 EOF | |
7798 | |
7799 else | |
7800 echo "$ac_t""no" 1>&6 | |
7801 fi | |
7802 done | |
7803 | |
7804 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7805 echo "configure:7806: checking whether gettimeofday can accept two arguments" >&5 |
25897 | 7806 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then |
7807 echo $ac_n "(cached) $ac_c" 1>&6 | |
7808 else | |
7809 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7810 #line 7811 "configure" |
25897 | 7811 #include "confdefs.h" |
7812 | |
7813 #ifdef TIME_WITH_SYS_TIME | |
7814 #include <sys/time.h> | |
7815 #include <time.h> | |
7816 #else | |
7817 #ifdef HAVE_SYS_TIME_H | |
7818 #include <sys/time.h> | |
7819 #else | |
7820 #include <time.h> | |
7821 #endif | |
7822 #endif | |
7823 int main() { | |
29733 | 7824 struct timeval time; |
29906 | 7825 gettimeofday (&time, 0); |
25897 | 7826 ; return 0; } |
7827 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7828 if { (eval echo configure:7829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 7829 rm -rf conftest* |
7830 emacs_cv_gettimeofday_two_arguments=yes | |
7831 else | |
7832 echo "configure: failed program was:" >&5 | |
7833 cat conftest.$ac_ext >&5 | |
7834 rm -rf conftest* | |
7835 emacs_cv_gettimeofday_two_arguments=no | |
7836 fi | |
7837 rm -f conftest* | |
7838 fi | |
7839 | |
7840 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6 | |
7841 if test $emacs_cv_gettimeofday_two_arguments = no; then | |
7842 cat >> confdefs.h <<\EOF | |
7843 #define GETTIMEOFDAY_ONE_ARGUMENT 1 | |
7844 EOF | |
7845 | |
7846 fi | |
7847 fi | |
7848 | |
29906 | 7849 if test "$ac_cv_func_gettimeofday" = yes; then |
7850 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7851 echo "configure:7852: checking for struct timezone" >&5 |
29906 | 7852 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then |
7853 echo $ac_n "(cached) $ac_c" 1>&6 | |
7854 else | |
7855 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7856 #line 7857 "configure" |
29906 | 7857 #include "confdefs.h" |
7858 #include <sys/time.h> | |
7859 int main() { | |
7860 struct timezone tz; | |
7861 ; return 0; } | |
7862 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7863 if { (eval echo configure:7864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29906 | 7864 rm -rf conftest* |
7865 if test "$cross_compiling" = yes; then | |
7866 emacs_cv_struct_timezone=yes | |
7867 else | |
7868 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7869 #line 7870 "configure" |
29906 | 7870 #include "confdefs.h" |
7871 | |
7872 #ifdef TIME_WITH_SYS_TIME | |
7873 #include <sys/time.h> | |
7874 #include <time.h> | |
7875 #else | |
7876 #ifdef HAVE_SYS_TIME_H | |
7877 #include <sys/time.h> | |
7878 #else | |
7879 #include <time.h> | |
7880 #endif | |
7881 #endif | |
7882 main () { | |
7883 struct timeval time; | |
7884 struct timezone dummy; | |
7885 exit (gettimeofday (&time, &dummy)); | |
7886 } | |
7887 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7888 if { (eval echo configure:7889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
29906 | 7889 then |
7890 emacs_cv_struct_timezone=yes | |
7891 else | |
7892 echo "configure: failed program was:" >&5 | |
7893 cat conftest.$ac_ext >&5 | |
7894 rm -fr conftest* | |
7895 emacs_cv_struct_timezone=no | |
7896 fi | |
7897 rm -fr conftest* | |
7898 fi | |
7899 | |
7900 else | |
7901 echo "configure: failed program was:" >&5 | |
7902 cat conftest.$ac_ext >&5 | |
7903 rm -rf conftest* | |
7904 emacs_cv_struct_timezone=no | |
7905 fi | |
7906 rm -f conftest* | |
7907 fi | |
7908 | |
7909 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 | |
7910 fi | |
7911 | |
25897 | 7912 ok_so_far=yes |
7913 echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7914 echo "configure:7915: checking for socket" >&5 |
25897 | 7915 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
7916 echo $ac_n "(cached) $ac_c" 1>&6 | |
7917 else | |
7918 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7919 #line 7920 "configure" |
25897 | 7920 #include "confdefs.h" |
7921 /* System header to define __stub macros and hopefully few prototypes, | |
7922 which can conflict with char socket(); below. */ | |
7923 #include <assert.h> | |
7924 /* Override any gcc2 internal prototype to avoid an error. */ | |
7925 /* We use char because int might match the return type of a gcc2 | |
7926 builtin and then its argument prototype would still apply. */ | |
7927 char socket(); | |
7928 | |
7929 int main() { | |
7930 | |
7931 /* The GNU C library defines this for functions which it implements | |
7932 to always fail with ENOSYS. Some functions are actually named | |
7933 something starting with __ and the normal name is an alias. */ | |
7934 #if defined (__stub_socket) || defined (__stub___socket) | |
7935 choke me | |
7936 #else | |
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
|
7937 socket(); |
25897 | 7938 #endif |
7939 | |
7940 ; return 0; } | |
7941 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7942 if { (eval echo configure:7943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 7943 rm -rf conftest* |
7944 eval "ac_cv_func_socket=yes" | |
7945 else | |
7946 echo "configure: failed program was:" >&5 | |
7947 cat conftest.$ac_ext >&5 | |
7948 rm -rf conftest* | |
7949 eval "ac_cv_func_socket=no" | |
7950 fi | |
7951 rm -f conftest* | |
7952 fi | |
7953 | |
7954 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
7955 echo "$ac_t""yes" 1>&6 | |
7956 : | |
7957 else | |
7958 echo "$ac_t""no" 1>&6 | |
7959 ok_so_far=no | |
7960 fi | |
7961 | |
7962 if test $ok_so_far = yes; then | |
7963 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | |
7964 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7965 echo "configure:7966: checking for netinet/in.h" >&5 |
25897 | 7966 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7967 echo $ac_n "(cached) $ac_c" 1>&6 | |
7968 else | |
7969 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7970 #line 7971 "configure" |
25897 | 7971 #include "confdefs.h" |
7972 #include <netinet/in.h> | |
7973 EOF | |
7974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7975 { (eval echo configure:7976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 7977 if test -z "$ac_err"; then |
7978 rm -rf conftest* | |
7979 eval "ac_cv_header_$ac_safe=yes" | |
7980 else | |
7981 echo "$ac_err" >&5 | |
7982 echo "configure: failed program was:" >&5 | |
7983 cat conftest.$ac_ext >&5 | |
7984 rm -rf conftest* | |
7985 eval "ac_cv_header_$ac_safe=no" | |
7986 fi | |
7987 rm -f conftest* | |
7988 fi | |
7989 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7990 echo "$ac_t""yes" 1>&6 | |
7991 : | |
7992 else | |
7993 echo "$ac_t""no" 1>&6 | |
7994 ok_so_far=no | |
7995 fi | |
7996 | |
7997 fi | |
7998 if test $ok_so_far = yes; then | |
7999 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | |
8000 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
8001 echo "configure:8002: checking for arpa/inet.h" >&5 |
25897 | 8002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8003 echo $ac_n "(cached) $ac_c" 1>&6 | |
8004 else | |
8005 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
8006 #line 8007 "configure" |
25897 | 8007 #include "confdefs.h" |
8008 #include <arpa/inet.h> | |
8009 EOF | |
8010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
8011 { (eval echo configure:8012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 8012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 8013 if test -z "$ac_err"; then |
8014 rm -rf conftest* | |
8015 eval "ac_cv_header_$ac_safe=yes" | |
8016 else | |
8017 echo "$ac_err" >&5 | |
8018 echo "configure: failed program was:" >&5 | |
8019 cat conftest.$ac_ext >&5 | |
8020 rm -rf conftest* | |
8021 eval "ac_cv_header_$ac_safe=no" | |
8022 fi | |
8023 rm -f conftest* | |
8024 fi | |
8025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8026 echo "$ac_t""yes" 1>&6 | |
8027 : | |
8028 else | |
8029 echo "$ac_t""no" 1>&6 | |
8030 ok_so_far=no | |
8031 fi | |
8032 | |
8033 fi | |
8034 if test $ok_so_far = yes; then | |
8035 cat >> confdefs.h <<\EOF | |
8036 #define HAVE_INET_SOCKETS 1 | |
8037 EOF | |
8038 | |
8039 fi | |
8040 | |
8041 if test -f /usr/lpp/X11/bin/smt.exp; then | |
8042 cat >> confdefs.h <<\EOF | |
8043 #define HAVE_AIX_SMT_EXP 1 | |
8044 EOF | |
8045 | |
8046 fi | |
8047 | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8048 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
8049 echo "configure:8050: checking whether system supports dynamic ptys" >&5 |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8050 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8051 echo "$ac_t""yes" 1>&6 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8052 cat >> confdefs.h <<\EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8053 #define HAVE_DEV_PTMX 1 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8054 EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8055 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8056 else |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8057 echo "$ac_t""no" 1>&6 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8058 fi |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
8059 |
27675 | 8060 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
8061 echo "configure:8062: checking for pid_t" >&5 |
27675 | 8062 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
8063 echo $ac_n "(cached) $ac_c" 1>&6 | |
8064 else | |
8065 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
8066 #line 8067 "configure" |
27675 | 8067 #include "confdefs.h" |
8068 #include <sys/types.h> | |
8069 #if STDC_HEADERS | |
8070 #include <stdlib.h> | |
8071 #include <stddef.h> | |
8072 #endif | |
8073 EOF | |
8074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8075 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8076 rm -rf conftest* | |
8077 ac_cv_type_pid_t=yes | |
8078 else | |
8079 rm -rf conftest* | |
8080 ac_cv_type_pid_t=no | |
8081 fi | |
8082 rm -f conftest* | |
8083 | |
8084 fi | |
8085 echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
8086 if test $ac_cv_type_pid_t = no; then | |
8087 cat >> confdefs.h <<\EOF | |
8088 #define pid_t int | |
8089 EOF | |
8090 | |
8091 fi | |
8092 | |
8093 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | |
8094 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
8095 echo "configure:8096: checking for vfork.h" >&5 |
27675 | 8096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8097 echo $ac_n "(cached) $ac_c" 1>&6 | |
8098 else | |
8099 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
8100 #line 8101 "configure" |
27675 | 8101 #include "confdefs.h" |
8102 #include <vfork.h> | |
8103 EOF | |
8104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
8105 { (eval echo configure:8106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27675 | 8106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8107 if test -z "$ac_err"; then | |
8108 rm -rf conftest* | |
8109 eval "ac_cv_header_$ac_safe=yes" | |
8110 else | |
8111 echo "$ac_err" >&5 | |
8112 echo "configure: failed program was:" >&5 | |
8113 cat conftest.$ac_ext >&5 | |
8114 rm -rf conftest* | |
8115 eval "ac_cv_header_$ac_safe=no" | |
8116 fi | |
8117 rm -f conftest* | |
8118 fi | |
8119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8120 echo "$ac_t""yes" 1>&6 | |
8121 cat >> confdefs.h <<\EOF | |
8122 #define HAVE_VFORK_H 1 | |
8123 EOF | |
8124 | |
8125 else | |
8126 echo "$ac_t""no" 1>&6 | |
8127 fi | |
8128 | |
8129 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
8130 echo "configure:8131: checking for working vfork" >&5 |
27675 | 8131 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
8132 echo $ac_n "(cached) $ac_c" 1>&6 | |
8133 else | |
8134 if test "$cross_compiling" = yes; then | |
8135 echo $ac_n "checking for vfork""... $ac_c" 1>&6 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
8136 echo "configure:8137: checking for vfork" >&5 |
27675 | 8137 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
8138 echo $ac_n "(cached) $ac_c" 1>&6 | |
8139 else | |
8140 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
8141 #line 8142 "configure" |
27675 | 8142 #include "confdefs.h" |
8143 /* System header to define __stub macros and hopefully few prototypes, | |
8144 which can conflict with char vfork(); below. */ | |
8145 #include <assert.h> | |
8146 /* Override any gcc2 internal prototype to avoid an error. */ | |
8147 /* We use char because int might match the return type of a gcc2 | |
8148 builtin and then its argument prototype would still apply. */ | |
8149 char vfork(); | |
8150 | |
8151 int main() { | |
8152 | |
8153 /* The GNU C library defines this for functions which it implements | |
8154 to always fail with ENOSYS. Some functions are actually named | |
8155 something starting with __ and the normal name is an alias. */ | |
8156 #if defined (__stub_vfork) || defined (__stub___vfork) | |
8157 choke me | |
8158 #else | |
8159 vfork(); | |
8160 #endif | |
8161 | |
8162 ; return 0; } | |
8163 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
8164 if { (eval echo configure:8165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
27675 | 8165 rm -rf conftest* |
8166 eval "ac_cv_func_vfork=yes" | |
8167 else | |
8168 echo "configure: failed program was:" >&5 | |
8169 cat conftest.$ac_ext >&5 | |
8170 rm -rf conftest* | |
8171 eval "ac_cv_func_vfork=no" | |
8172 fi | |
8173 rm -f conftest* | |
8174 fi | |
8175 | |
8176 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then | |
8177 echo "$ac_t""yes" 1>&6 | |
8178 : | |
8179 else | |
8180 echo "$ac_t""no" 1>&6 | |
8181 fi | |
8182 | |
8183 ac_cv_func_vfork_works=$ac_cv_func_vfork | |
8184 else | |
8185 cat > conftest.$ac_ext <<EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
8186 #line 8187 "configure" |
27675 | 8187 #include "confdefs.h" |
8188 /* Thanks to Paul Eggert for this test. */ | |
8189 #include <stdio.h> | |
8190 #include <sys/types.h> | |
8191 #include <sys/stat.h> | |
8192 #ifdef HAVE_UNISTD_H | |
8193 #include <unistd.h> | |
8194 #endif | |
8195 #ifdef HAVE_VFORK_H | |
8196 #include <vfork.h> | |
8197 #endif | |
8198 /* On some sparc systems, changes by the child to local and incoming | |
8199 argument registers are propagated back to the parent. | |
8200 The compiler is told about this with #include <vfork.h>, | |
8201 but some compilers (e.g. gcc -O) don't grok <vfork.h>. | |
8202 Test for this by using a static variable whose address | |
8203 is put into a register that is clobbered by the vfork. */ | |
8204 static | |
8205 #ifdef __cplusplus | |
8206 sparc_address_test (int arg) | |
8207 #else | |
8208 sparc_address_test (arg) int arg; | |
8209 #endif | |
8210 { | |
8211 static pid_t child; | |
8212 if (!child) { | |
8213 child = vfork (); | |
8214 if (child < 0) { | |
8215 perror ("vfork"); | |
8216 _exit(2); | |
8217 } | |
8218 if (!child) { | |
8219 arg = getpid(); | |
8220 write(-1, "", 0); | |
8221 _exit (arg); | |
8222 } | |
8223 } | |
8224 } | |
8225 main() { | |
8226 pid_t parent = getpid (); | |
8227 pid_t child; | |
8228 | |
8229 sparc_address_test (); | |
8230 | |
8231 child = vfork (); | |
8232 | |
8233 if (child == 0) { | |
8234 /* Here is another test for sparc vfork register problems. | |
8235 This test uses lots of local variables, at least | |
8236 as many local variables as main has allocated so far | |
8237 including compiler temporaries. 4 locals are enough for | |
8238 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. | |
8239 A buggy compiler should reuse the register of parent | |
8240 for one of the local variables, since it will think that | |
8241 parent can't possibly be used any more in this routine. | |
8242 Assigning to the local variable will thus munge parent | |
8243 in the parent process. */ | |
8244 pid_t | |
8245 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
8246 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
8247 /* Convince the compiler that p..p7 are live; otherwise, it might | |
8248 use the same hardware register for all 8 local variables. */ | |
8249 if (p != p1 || p != p2 || p != p3 || p != p4 | |
8250 || p != p5 || p != p6 || p != p7) | |
8251 _exit(1); | |
8252 | |
8253 /* On some systems (e.g. IRIX 3.3), | |
8254 vfork doesn't separate parent from child file descriptors. | |
8255 If the child closes a descriptor before it execs or exits, | |
8256 this munges the parent's descriptor as well. | |
8257 Test for this by closing stdout in the child. */ | |
8258 _exit(close(fileno(stdout)) != 0); | |
8259 } else { | |
8260 int status; | |
8261 struct stat st; | |
8262 | |
8263 while (wait(&status) != child) | |
8264 ; | |
8265 exit( | |
8266 /* Was there some problem with vforking? */ | |
8267 child < 0 | |
8268 | |
8269 /* Did the child fail? (This shouldn't happen.) */ | |
8270 || status | |
8271 | |
8272 /* Did the vfork/compiler bug occur? */ | |
8273 || parent != getpid() | |
8274 | |
8275 /* Did the file descriptor bug occur? */ | |
8276 || fstat(fileno(stdout), &st) != 0 | |
8277 ); | |
8278 } | |
8279 } | |
8280 EOF | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
8281 if { (eval echo configure:8282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
27675 | 8282 then |
8283 ac_cv_func_vfork_works=yes | |
8284 else | |
8285 echo "configure: failed program was:" >&5 | |
8286 cat conftest.$ac_ext >&5 | |
8287 rm -fr conftest* | |
8288 ac_cv_func_vfork_works=no | |
8289 fi | |
8290 rm -fr conftest* | |
8291 fi | |
8292 | |
8293 fi | |
8294 | |
8295 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 | |
8296 if test $ac_cv_func_vfork_works = no; then | |
8297 cat >> confdefs.h <<\EOF | |
8298 #define vfork fork | |
8299 EOF | |
8300 | |
8301 fi | |
8302 | |
8303 | |
25897 | 8304 # Set up the CFLAGS for real compilation, so we can substitute it. |
8305 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
|
8306 CPPFLAGS="$REAL_CPPFLAGS" |
25897 | 8307 |
8308 #### Find out which version of Emacs this is. | |
8309 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
8310 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
8311 if test x"${version}" = x; then | |
8312 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; } | |
8313 fi | |
8314 | |
8315 ### Specify what sort of things we'll be editing into Makefile and config.h. | |
8316 ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
8317 | |
8318 | |
8319 | |
8320 | |
8321 | |
8322 | |
8323 | |
8324 | |
8325 | |
8326 | |
8327 | |
8328 | |
8329 | |
8330 | |
8331 | |
8332 | |
8333 | |
8334 | |
8335 | |
8336 | |
8337 | |
8338 | |
8339 | |
8340 | |
8341 | |
8342 | |
8343 | |
8344 | |
8345 | |
8346 | |
29834 | 8347 |
25897 | 8348 cat >> confdefs.h <<EOF |
8349 #define EMACS_CONFIGURATION "${canonical}" | |
8350 EOF | |
8351 | |
8352 cat >> confdefs.h <<EOF | |
8353 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
8354 EOF | |
8355 | |
8356 cat >> confdefs.h <<EOF | |
8357 #define config_machfile "${machfile}" | |
8358 EOF | |
8359 | |
8360 cat >> confdefs.h <<EOF | |
8361 #define config_opsysfile "${opsysfile}" | |
8362 EOF | |
8363 | |
8364 cat >> confdefs.h <<EOF | |
8365 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | |
8366 EOF | |
8367 | |
8368 cat >> confdefs.h <<EOF | |
8369 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | |
8370 EOF | |
8371 | |
8372 cat >> confdefs.h <<EOF | |
8373 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | |
8374 EOF | |
8375 | |
8376 cat >> confdefs.h <<EOF | |
8377 #define UNEXEC_SRC ${UNEXEC_SRC} | |
8378 EOF | |
8379 | |
8380 | |
8381 if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
8382 cat >> confdefs.h <<\EOF | |
8383 #define HAVE_X_WINDOWS 1 | |
8384 EOF | |
8385 | |
8386 fi | |
8387 if test "${USE_X_TOOLKIT}" != "none" ; then | |
8388 cat >> confdefs.h <<\EOF | |
8389 #define USE_X_TOOLKIT 1 | |
8390 EOF | |
8391 | |
8392 fi | |
8393 if test "${HAVE_X11}" = "yes" ; then | |
8394 cat >> confdefs.h <<\EOF | |
8395 #define HAVE_X11 1 | |
8396 EOF | |
8397 | |
8398 fi | |
8399 if test "${HAVE_XFREE386}" = "yes" ; then | |
8400 cat >> confdefs.h <<\EOF | |
8401 #define HAVE_XFREE386 1 | |
8402 EOF | |
8403 | |
8404 fi | |
8405 if test "${HAVE_MENUS}" = "yes" ; then | |
8406 cat >> confdefs.h <<\EOF | |
8407 #define HAVE_MENUS 1 | |
8408 EOF | |
8409 | |
8410 fi | |
8411 if test "${GNU_MALLOC}" = "yes" ; then | |
8412 cat >> confdefs.h <<\EOF | |
8413 #define GNU_MALLOC 1 | |
8414 EOF | |
8415 | |
8416 fi | |
8417 if test "${REL_ALLOC}" = "yes" ; then | |
8418 cat >> confdefs.h <<\EOF | |
8419 #define REL_ALLOC 1 | |
8420 EOF | |
8421 | |
8422 fi | |
8423 | |
8424 #### Report on what we decided to do. | |
8425 echo " | |
8426 Configured for \`${canonical}'. | |
8427 | |
8428 Where should the build process find the source code? ${srcdir} | |
8429 What operating system and machine description files should Emacs use? | |
8430 \`${opsysfile}' and \`${machfile}' | |
8431 What compiler should emacs be built with? ${CC} ${CFLAGS} | |
8432 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
8433 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC} | |
8434 What window system should Emacs use? ${window_system} | |
8435 What toolkit should Emacs use? ${USE_X_TOOLKIT}" | |
8436 | |
8437 if test -n "${x_includes}"; then | |
8438 echo " Where do we find X Windows header files? ${x_includes}" | |
8439 else | |
8440 echo " Where do we find X Windows header files? Standard dirs" | |
8441 fi | |
8442 if test -n "${x_libraries}"; then | |
8443 echo " Where do we find X Windows libraries? ${x_libraries}" | |
8444 else | |
8445 echo " Where do we find X Windows libraries? Standard dirs" | |
8446 fi | |
8447 | |
8448 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
8449 echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
8450 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
8451 echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
8452 echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
8453 echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
8454 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
8455 echo | |
8456 | |
8457 # Remove any trailing slashes in these variables. | |
8458 test "${prefix}" != NONE && | |
8459 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
8460 test "${exec_prefix}" != NONE && | |
8461 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
8462 | |
8463 trap '' 1 2 15 | |
8464 cat > confcache <<\EOF | |
8465 # This file is a shell script that caches the results of configure | |
8466 # tests run on this system so they can be shared between configure | |
8467 # scripts and configure runs. It is not useful on other systems. | |
8468 # If it contains results you don't want to keep, you may remove or edit it. | |
8469 # | |
8470 # By default, configure uses ./config.cache as the cache file, | |
8471 # creating it if it does not exist already. You can give configure | |
8472 # the --cache-file=FILE option to use a different cache file; that is | |
8473 # what configure does when it calls configure scripts in | |
8474 # subdirectories, so they share the cache. | |
8475 # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8476 # config.status only pays attention to the cache file if you give it the | |
8477 # --recheck option to rerun configure. | |
8478 # | |
8479 EOF | |
8480 # The following way of writing the cache mishandles newlines in values, | |
8481 # but we know of no workaround that is simple, portable, and efficient. | |
8482 # So, don't put newlines in cache variables' values. | |
8483 # Ultrix sh set writes to stderr and can't be redirected directly, | |
8484 # and sets the high bit in the cache file unless we assign to the vars. | |
8485 (set) 2>&1 | | |
8486 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8487 *ac_space=\ *) | |
8488 # `set' does not quote correctly, so add quotes (double-quote substitution | |
8489 # turns \\\\ into \\, and sed turns \\ into \). | |
8490 sed -n \ | |
8491 -e "s/'/'\\\\''/g" \ | |
8492 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8493 ;; | |
8494 *) | |
8495 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8496 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8497 ;; | |
8498 esac >> confcache | |
8499 if cmp -s $cache_file confcache; then | |
8500 : | |
8501 else | |
8502 if test -w $cache_file; then | |
8503 echo "updating cache $cache_file" | |
8504 cat confcache > $cache_file | |
8505 else | |
8506 echo "not updating unwritable cache $cache_file" | |
8507 fi | |
8508 fi | |
8509 rm -f confcache | |
8510 | |
8511 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
8512 | |
8513 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8514 # Let make expand exec_prefix. | |
8515 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8516 | |
8517 # Any assignment to VPATH causes Sun make to only execute | |
8518 # the first set of double-colon rules, so remove it if not needed. | |
8519 # If there is a colon in the path, we need to keep it. | |
8520 if test "x$srcdir" = x.; then | |
8521 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
8522 fi | |
8523 | |
8524 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
8525 | |
8526 DEFS=-DHAVE_CONFIG_H | |
8527 | |
8528 # Without the "./", some shells look in PATH for config.status. | |
8529 : ${CONFIG_STATUS=./config.status} | |
8530 | |
8531 echo creating $CONFIG_STATUS | |
8532 rm -f $CONFIG_STATUS | |
8533 cat > $CONFIG_STATUS <<EOF | |
8534 #! /bin/sh | |
8535 # Generated automatically by configure. | |
8536 # Run this file to recreate the current configuration. | |
8537 # This directory was configured as follows, | |
8538 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
8539 # | |
8540 # $0 $ac_configure_args | |
8541 # | |
8542 # Compiler output produced by configure, useful for debugging | |
8543 # configure, is in ./config.log if it exists. | |
8544 | |
8545 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
8546 for ac_option | |
8547 do | |
8548 case "\$ac_option" in | |
8549 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8550 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
8551 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
8552 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
27205 | 8553 echo "$CONFIG_STATUS generated by autoconf version 2.13" |
25897 | 8554 exit 0 ;; |
8555 -help | --help | --hel | --he | --h) | |
8556 echo "\$ac_cs_usage"; exit 0 ;; | |
8557 *) echo "\$ac_cs_usage"; exit 1 ;; | |
8558 esac | |
8559 done | |
8560 | |
8561 ac_given_srcdir=$srcdir | |
8562 ac_given_INSTALL="$INSTALL" | |
8563 | |
8564 trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ | |
8565 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ | |
29657 | 8566 lisp/Makefile leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
25897 | 8567 EOF |
8568 cat >> $CONFIG_STATUS <<EOF | |
8569 | |
8570 # Protect against being on the right side of a sed subst in config.status. | |
8571 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
8572 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
8573 $ac_vpsub | |
8574 $extrasub | |
27205 | 8575 s%@SHELL@%$SHELL%g |
25897 | 8576 s%@CFLAGS@%$CFLAGS%g |
8577 s%@CPPFLAGS@%$CPPFLAGS%g | |
8578 s%@CXXFLAGS@%$CXXFLAGS%g | |
27205 | 8579 s%@FFLAGS@%$FFLAGS%g |
25897 | 8580 s%@DEFS@%$DEFS%g |
8581 s%@LDFLAGS@%$LDFLAGS%g | |
8582 s%@LIBS@%$LIBS%g | |
8583 s%@exec_prefix@%$exec_prefix%g | |
8584 s%@prefix@%$prefix%g | |
8585 s%@program_transform_name@%$program_transform_name%g | |
8586 s%@bindir@%$bindir%g | |
8587 s%@sbindir@%$sbindir%g | |
8588 s%@libexecdir@%$libexecdir%g | |
8589 s%@datadir@%$datadir%g | |
8590 s%@sysconfdir@%$sysconfdir%g | |
8591 s%@sharedstatedir@%$sharedstatedir%g | |
8592 s%@localstatedir@%$localstatedir%g | |
8593 s%@libdir@%$libdir%g | |
8594 s%@includedir@%$includedir%g | |
8595 s%@oldincludedir@%$oldincludedir%g | |
8596 s%@infodir@%$infodir%g | |
8597 s%@mandir@%$mandir%g | |
8598 s%@host@%$host%g | |
8599 s%@host_alias@%$host_alias%g | |
8600 s%@host_cpu@%$host_cpu%g | |
8601 s%@host_vendor@%$host_vendor%g | |
8602 s%@host_os@%$host_os%g | |
8603 s%@CC@%$CC%g | |
8604 s%@LN_S@%$LN_S%g | |
8605 s%@CPP@%$CPP%g | |
8606 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
27205 | 8607 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
25897 | 8608 s%@INSTALL_DATA@%$INSTALL_DATA%g |
8609 s%@YACC@%$YACC%g | |
28060 | 8610 s%@RANLIB@%$RANLIB%g |
25897 | 8611 s%@SET_MAKE@%$SET_MAKE%g |
8612 s%@ALLOCA@%$ALLOCA%g | |
8613 s%@liblockfile@%$liblockfile%g | |
28607 | 8614 s%@LIBOBJS@%$LIBOBJS%g |
29834 | 8615 s%@NEED_SETGID@%$NEED_SETGID%g |
8616 s%@KMEM_GROUP@%$KMEM_GROUP%g | |
25897 | 8617 s%@version@%$version%g |
8618 s%@configuration@%$configuration%g | |
8619 s%@canonical@%$canonical%g | |
8620 s%@srcdir@%$srcdir%g | |
8621 s%@lispdir@%$lispdir%g | |
8622 s%@locallisppath@%$locallisppath%g | |
8623 s%@lisppath@%$lisppath%g | |
8624 s%@x_default_search_path@%$x_default_search_path%g | |
8625 s%@etcdir@%$etcdir%g | |
8626 s%@archlibdir@%$archlibdir%g | |
8627 s%@docdir@%$docdir%g | |
8628 s%@bitmapdir@%$bitmapdir%g | |
8629 s%@c_switch_system@%$c_switch_system%g | |
8630 s%@c_switch_machine@%$c_switch_machine%g | |
8631 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g | |
8632 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g | |
8633 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g | |
8634 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g | |
8635 s%@machfile@%$machfile%g | |
8636 s%@opsysfile@%$opsysfile%g | |
29834 | 8637 s%@GETLOADAVG_LIBS@%$GETLOADAVG_LIBS%g |
25897 | 8638 |
8639 CEOF | |
8640 EOF | |
8641 | |
8642 cat >> $CONFIG_STATUS <<\EOF | |
8643 | |
8644 # Split the substitutions into bite-sized pieces for seds with | |
8645 # small command number limits, like on Digital OSF/1 and HP-UX. | |
8646 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
8647 ac_file=1 # Number of current file. | |
8648 ac_beg=1 # First line for current file. | |
8649 ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
8650 ac_more_lines=: | |
8651 ac_sed_cmds="" | |
8652 while $ac_more_lines; do | |
8653 if test $ac_beg -gt 1; then | |
8654 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
8655 else | |
8656 sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
8657 fi | |
8658 if test ! -s conftest.s$ac_file; then | |
8659 ac_more_lines=false | |
8660 rm -f conftest.s$ac_file | |
8661 else | |
8662 if test -z "$ac_sed_cmds"; then | |
8663 ac_sed_cmds="sed -f conftest.s$ac_file" | |
8664 else | |
8665 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
8666 fi | |
8667 ac_file=`expr $ac_file + 1` | |
8668 ac_beg=$ac_end | |
8669 ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
8670 fi | |
8671 done | |
8672 if test -z "$ac_sed_cmds"; then | |
8673 ac_sed_cmds=cat | |
8674 fi | |
8675 EOF | |
8676 | |
8677 cat >> $CONFIG_STATUS <<EOF | |
8678 | |
8679 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ | |
8680 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ | |
29657 | 8681 lisp/Makefile leim/Makefile"} |
25897 | 8682 EOF |
8683 cat >> $CONFIG_STATUS <<\EOF | |
8684 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
8685 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8686 case "$ac_file" in | |
8687 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
8688 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8689 *) ac_file_in="${ac_file}.in" ;; | |
8690 esac | |
8691 | |
8692 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
8693 | |
8694 # Remove last slash and all that follows it. Not all systems have dirname. | |
8695 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
8696 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
8697 # The file is in a subdirectory. | |
8698 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
8699 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
8700 # A "../" for each directory in $ac_dir_suffix. | |
8701 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
8702 else | |
8703 ac_dir_suffix= ac_dots= | |
8704 fi | |
8705 | |
8706 case "$ac_given_srcdir" in | |
8707 .) srcdir=. | |
8708 if test -z "$ac_dots"; then top_srcdir=. | |
8709 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
8710 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
8711 *) # Relative path. | |
8712 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
8713 top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8714 esac | |
8715 | |
8716 case "$ac_given_INSTALL" in | |
8717 [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
8718 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
8719 esac | |
8720 | |
8721 echo creating "$ac_file" | |
8722 rm -f "$ac_file" | |
8723 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
8724 case "$ac_file" in | |
8725 *Makefile*) ac_comsub="1i\\ | |
8726 # $configure_input" ;; | |
8727 *) ac_comsub= ;; | |
8728 esac | |
8729 | |
8730 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
8731 sed -e "$ac_comsub | |
8732 s%@configure_input@%$configure_input%g | |
8733 s%@srcdir@%$srcdir%g | |
8734 s%@top_srcdir@%$top_srcdir%g | |
8735 s%@INSTALL@%$INSTALL%g | |
8736 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
8737 fi; done | |
8738 rm -f conftest.s* | |
8739 | |
8740 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
8741 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
8742 # | |
8743 # ac_d sets the value in "#define NAME VALUE" lines. | |
8744 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
8745 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
8746 ac_dC='\3' | |
8747 ac_dD='%g' | |
8748 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
8749 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8750 ac_uB='\([ ]\)%\1#\2define\3' | |
8751 ac_uC=' ' | |
8752 ac_uD='\4%g' | |
8753 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
8754 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8755 ac_eB='$%\1#\2define\3' | |
8756 ac_eC=' ' | |
8757 ac_eD='%g' | |
8758 | |
8759 if test "${CONFIG_HEADERS+set}" != set; then | |
8760 EOF | |
8761 cat >> $CONFIG_STATUS <<EOF | |
8762 CONFIG_HEADERS="src/config.h:src/config.in" | |
8763 EOF | |
8764 cat >> $CONFIG_STATUS <<\EOF | |
8765 fi | |
8766 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
8767 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8768 case "$ac_file" in | |
8769 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
8770 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8771 *) ac_file_in="${ac_file}.in" ;; | |
8772 esac | |
8773 | |
8774 echo creating $ac_file | |
8775 | |
8776 rm -f conftest.frag conftest.in conftest.out | |
8777 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
8778 cat $ac_file_inputs > conftest.in | |
8779 | |
8780 EOF | |
8781 | |
8782 # Transform confdefs.h into a sed script conftest.vals that substitutes | |
8783 # the proper values into config.h.in to produce config.h. And first: | |
8784 # Protect against being on the right side of a sed subst in config.status. | |
8785 # Protect against being in an unquoted here document in config.status. | |
8786 rm -f conftest.vals | |
8787 cat > conftest.hdr <<\EOF | |
8788 s/[\\&%]/\\&/g | |
8789 s%[\\$`]%\\&%g | |
8790 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
8791 s%ac_d%ac_u%gp | |
8792 s%ac_u%ac_e%gp | |
8793 EOF | |
8794 sed -n -f conftest.hdr confdefs.h > conftest.vals | |
8795 rm -f conftest.hdr | |
8796 | |
8797 # This sed command replaces #undef with comments. This is necessary, for | |
8798 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
8799 # on some systems where configure will not decide to define it. | |
8800 cat >> conftest.vals <<\EOF | |
8801 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
8802 EOF | |
8803 | |
8804 # Break up conftest.vals because some shells have a limit on | |
8805 # the size of here documents, and old seds have small limits too. | |
8806 | |
8807 rm -f conftest.tail | |
8808 while : | |
8809 do | |
8810 ac_lines=`grep -c . conftest.vals` | |
8811 # grep -c gives empty output for an empty file on some AIX systems. | |
8812 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
8813 # Write a limited-size here document to conftest.frag. | |
8814 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
8815 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
8816 echo 'CEOF | |
8817 sed -f conftest.frag conftest.in > conftest.out | |
8818 rm -f conftest.in | |
8819 mv conftest.out conftest.in | |
8820 ' >> $CONFIG_STATUS | |
8821 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
8822 rm -f conftest.vals | |
8823 mv conftest.tail conftest.vals | |
8824 done | |
8825 rm -f conftest.vals | |
8826 | |
8827 cat >> $CONFIG_STATUS <<\EOF | |
8828 rm -f conftest.frag conftest.h | |
8829 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
8830 cat conftest.in >> conftest.h | |
8831 rm -f conftest.in | |
8832 if cmp -s $ac_file conftest.h 2>/dev/null; then | |
8833 echo "$ac_file is unchanged" | |
8834 rm -f conftest.h | |
8835 else | |
8836 # Remove last slash and all that follows it. Not all systems have dirname. | |
8837 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
8838 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
8839 # The file is in a subdirectory. | |
8840 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
8841 fi | |
8842 rm -f $ac_file | |
8843 mv conftest.h $ac_file | |
8844 fi | |
8845 fi; done | |
8846 | |
8847 EOF | |
8848 cat >> $CONFIG_STATUS <<EOF | |
8849 CPP="$CPP" CPPFLAGS="$CPPFLAGS" | |
8850 EOF | |
8851 cat >> $CONFIG_STATUS <<\EOF | |
8852 | |
8853 | |
8854 ### Make the necessary directories, if they don't exist. | |
8855 for dir in etc lisp ; do | |
8856 test -d ${dir} || mkdir ${dir} | |
8857 done | |
8858 | |
8859 # Build src/Makefile from ${srcdir}/src/Makefile.c | |
8860 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
8861 # This must be done after src/config.h is built, since we rely on that file. | |
8862 | |
8863 # Now get this: Some word that is part of the ${srcdir} directory name | |
8864 # or the ${configuration} value might, just might, happen to be an | |
8865 # identifier like `sun4' or `i386' or something, and be predefined by | |
8866 # the C preprocessor to some helpful value like 1, or maybe the empty | |
8867 # string. Needless to say consequent macro substitutions are less | |
8868 # than conducive to the makefile finding the correct directory. | |
8869 undefs="`echo $top_srcdir $configuration $canonical | | |
8870 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
8871 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
8872 `" | |
8873 | |
8874 echo creating src/epaths.h | |
8875 make epaths-force | |
8876 | |
8877 echo creating lib-src/Makefile | |
8878 ( cd lib-src | |
8879 rm -f junk.c junk1.c junk2.c | |
8880 sed -e '/start of cpp stuff/q' \ | |
8881 < Makefile.c > junk1.c | |
8882 sed -e '1,/start of cpp stuff/d'\ | |
8883 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | |
8884 < Makefile.c > junk.c | |
8885 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | |
8886 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | |
8887 cat junk1.c junk2.c > Makefile.new | |
8888 rm -f junk.c junk1.c junk2.c | |
8889 chmod 444 Makefile.new | |
8890 mv -f Makefile.new Makefile | |
8891 ) | |
8892 | |
8893 echo creating src/Makefile | |
8894 ( cd src | |
8895 rm -f junk.c junk1.c junk2.c | |
8896 sed -e '/start of cpp stuff/q' \ | |
8897 < Makefile.c > junk1.c | |
8898 sed -e '1,/start of cpp stuff/d'\ | |
8899 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | |
8900 < Makefile.c > junk.c | |
8901 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | |
8902 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | |
8903 cat junk1.c junk2.c > Makefile.new | |
8904 rm -f junk.c junk1.c junk2.c | |
8905 chmod 444 Makefile.new | |
8906 mv -f Makefile.new Makefile | |
8907 ) | |
8908 | |
8909 if test ! -f src/.gdbinit && test -f $top_srcdir/src/.gdbinit; then | |
8910 echo creating src/.gdbinit | |
8911 echo source $top_srcdir/src/.gdbinit > src/.gdbinit | |
8912 fi | |
8913 | |
8914 # This is how we know whether to re-run configure in certain cases. | |
8915 touch src/config.stamp | |
8916 | |
8917 | |
8918 exit 0 | |
8919 EOF | |
8920 chmod +x $CONFIG_STATUS | |
8921 rm -fr confdefs* $ac_clean_files | |
8922 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
8923 |