Mercurial > emacs
annotate configure @ 29867:1c42f2313b4f
(Xt_app_con): External declaration.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 22 Jun 2000 22:06:09 +0000 |
parents | fb20d35ffa9a |
children | b37a06f2fbf2 |
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 |
5b7b3b5d54df
* configure.in: Line up "--help" output a little better.
Ken Raeburn <raeburn@raeburn.org>
parents:
28060
diff
changeset
|
38 don't use Motif or Xaw3d scroll bars" |
25897 | 39 ac_help="$ac_help |
40 --with-x use the X Window System" | |
29388 | 41 ac_help="$ac_help |
42 --disable-largefile omit support for large files" | |
25897 | 43 |
44 # Initialize some variables set by options. | |
45 # The variables have the same names as the options, with | |
46 # dashes changed to underlines. | |
47 build=NONE | |
48 cache_file=./config.cache | |
49 exec_prefix=NONE | |
50 host=NONE | |
51 no_create= | |
52 nonopt=NONE | |
53 no_recursion= | |
54 prefix=NONE | |
55 program_prefix=NONE | |
56 program_suffix=NONE | |
57 program_transform_name=s,x,x, | |
58 silent= | |
59 site= | |
60 srcdir= | |
61 target=NONE | |
62 verbose= | |
63 x_includes=NONE | |
64 x_libraries=NONE | |
65 bindir='${exec_prefix}/bin' | |
66 sbindir='${exec_prefix}/sbin' | |
67 libexecdir='${exec_prefix}/libexec' | |
68 datadir='${prefix}/share' | |
69 sysconfdir='${prefix}/etc' | |
70 sharedstatedir='${prefix}/com' | |
71 localstatedir='${prefix}/var' | |
72 libdir='${exec_prefix}/lib' | |
73 includedir='${prefix}/include' | |
74 oldincludedir='/usr/include' | |
75 infodir='${prefix}/info' | |
76 mandir='${prefix}/man' | |
77 | |
78 # Initialize some other variables. | |
79 subdirs= | |
80 MFLAGS= MAKEFLAGS= | |
27205 | 81 SHELL=${CONFIG_SHELL-/bin/sh} |
25897 | 82 # Maximum number of lines to put in a shell here document. |
83 ac_max_here_lines=12 | |
84 | |
85 ac_prev= | |
86 for ac_option | |
87 do | |
88 | |
89 # If the previous option needs an argument, assign it. | |
90 if test -n "$ac_prev"; then | |
91 eval "$ac_prev=\$ac_option" | |
92 ac_prev= | |
93 continue | |
94 fi | |
95 | |
96 case "$ac_option" in | |
97 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
98 *) ac_optarg= ;; | |
99 esac | |
100 | |
101 # Accept the important Cygnus configure options, so we can diagnose typos. | |
102 | |
103 case "$ac_option" in | |
104 | |
105 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
106 ac_prev=bindir ;; | |
107 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
108 bindir="$ac_optarg" ;; | |
109 | |
110 -build | --build | --buil | --bui | --bu) | |
111 ac_prev=build ;; | |
112 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
113 build="$ac_optarg" ;; | |
114 | |
115 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
116 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
117 ac_prev=cache_file ;; | |
118 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
119 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
120 cache_file="$ac_optarg" ;; | |
121 | |
122 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
123 ac_prev=datadir ;; | |
124 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
125 | --da=*) | |
126 datadir="$ac_optarg" ;; | |
127 | |
128 -disable-* | --disable-*) | |
129 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
130 # Reject names that are not valid shell variable names. | |
131 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
133 fi | |
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
135 eval "enable_${ac_feature}=no" ;; | |
136 | |
137 -enable-* | --enable-*) | |
138 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
139 # Reject names that are not valid shell variable names. | |
140 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
142 fi | |
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
144 case "$ac_option" in | |
145 *=*) ;; | |
146 *) ac_optarg=yes ;; | |
147 esac | |
148 eval "enable_${ac_feature}='$ac_optarg'" ;; | |
149 | |
150 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
151 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
152 | --exec | --exe | --ex) | |
153 ac_prev=exec_prefix ;; | |
154 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
155 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
156 | --exec=* | --exe=* | --ex=*) | |
157 exec_prefix="$ac_optarg" ;; | |
158 | |
159 -gas | --gas | --ga | --g) | |
160 # Obsolete; use --with-gas. | |
161 with_gas=yes ;; | |
162 | |
163 -help | --help | --hel | --he) | |
164 # Omit some internal or obsolete options to make the list less imposing. | |
165 # This message is too long to be a string in the A/UX 3.1 sh. | |
166 cat << EOF | |
167 Usage: configure [options] [host] | |
168 Options: [defaults in brackets after descriptions] | |
169 Configuration: | |
170 --cache-file=FILE cache test results in FILE | |
171 --help print this message | |
172 --no-create do not create output files | |
173 --quiet, --silent do not print \`checking...' messages | |
174 --version print the version of autoconf that created configure | |
175 Directory and file names: | |
176 --prefix=PREFIX install architecture-independent files in PREFIX | |
177 [$ac_default_prefix] | |
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
179 [same as prefix] | |
180 --bindir=DIR user executables in DIR [EPREFIX/bin] | |
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
183 --datadir=DIR read-only architecture-independent data in DIR | |
184 [PREFIX/share] | |
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
187 [PREFIX/com] | |
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
190 --includedir=DIR C header files in DIR [PREFIX/include] | |
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
192 --infodir=DIR info documentation in DIR [PREFIX/info] | |
193 --mandir=DIR man documentation in DIR [PREFIX/man] | |
194 --srcdir=DIR find the sources in DIR [configure dir or ..] | |
195 --program-prefix=PREFIX prepend PREFIX to installed program names | |
196 --program-suffix=SUFFIX append SUFFIX to installed program names | |
197 --program-transform-name=PROGRAM | |
198 run sed PROGRAM on installed program names | |
199 EOF | |
200 cat << EOF | |
201 Host type: | |
202 --build=BUILD configure for building on BUILD [BUILD=HOST] | |
203 --host=HOST configure for HOST [guessed] | |
204 --target=TARGET configure for TARGET [TARGET=HOST] | |
205 Features and packages: | |
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
210 --x-includes=DIR X include files are in DIR | |
211 --x-libraries=DIR X library files are in DIR | |
212 EOF | |
213 if test -n "$ac_help"; then | |
214 echo "--enable and --with options recognized:$ac_help" | |
215 fi | |
216 exit 0 ;; | |
217 | |
218 -host | --host | --hos | --ho) | |
219 ac_prev=host ;; | |
220 -host=* | --host=* | --hos=* | --ho=*) | |
221 host="$ac_optarg" ;; | |
222 | |
223 -includedir | --includedir | --includedi | --included | --include \ | |
224 | --includ | --inclu | --incl | --inc) | |
225 ac_prev=includedir ;; | |
226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
227 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
228 includedir="$ac_optarg" ;; | |
229 | |
230 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
231 ac_prev=infodir ;; | |
232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
233 infodir="$ac_optarg" ;; | |
234 | |
235 -libdir | --libdir | --libdi | --libd) | |
236 ac_prev=libdir ;; | |
237 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
238 libdir="$ac_optarg" ;; | |
239 | |
240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
241 | --libexe | --libex | --libe) | |
242 ac_prev=libexecdir ;; | |
243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
244 | --libexe=* | --libex=* | --libe=*) | |
245 libexecdir="$ac_optarg" ;; | |
246 | |
247 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
248 | --localstate | --localstat | --localsta | --localst \ | |
249 | --locals | --local | --loca | --loc | --lo) | |
250 ac_prev=localstatedir ;; | |
251 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
252 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
253 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
254 localstatedir="$ac_optarg" ;; | |
255 | |
256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
257 ac_prev=mandir ;; | |
258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
259 mandir="$ac_optarg" ;; | |
260 | |
261 -nfp | --nfp | --nf) | |
262 # Obsolete; use --without-fp. | |
263 with_fp=no ;; | |
264 | |
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
266 | --no-cr | --no-c) | |
267 no_create=yes ;; | |
268 | |
269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
271 no_recursion=yes ;; | |
272 | |
273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
275 | --oldin | --oldi | --old | --ol | --o) | |
276 ac_prev=oldincludedir ;; | |
277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
280 oldincludedir="$ac_optarg" ;; | |
281 | |
282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
283 ac_prev=prefix ;; | |
284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
285 prefix="$ac_optarg" ;; | |
286 | |
287 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
288 | --program-pre | --program-pr | --program-p) | |
289 ac_prev=program_prefix ;; | |
290 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
292 program_prefix="$ac_optarg" ;; | |
293 | |
294 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
295 | --program-suf | --program-su | --program-s) | |
296 ac_prev=program_suffix ;; | |
297 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
299 program_suffix="$ac_optarg" ;; | |
300 | |
301 -program-transform-name | --program-transform-name \ | |
302 | --program-transform-nam | --program-transform-na \ | |
303 | --program-transform-n | --program-transform- \ | |
304 | --program-transform | --program-transfor \ | |
305 | --program-transfo | --program-transf \ | |
306 | --program-trans | --program-tran \ | |
307 | --progr-tra | --program-tr | --program-t) | |
308 ac_prev=program_transform_name ;; | |
309 -program-transform-name=* | --program-transform-name=* \ | |
310 | --program-transform-nam=* | --program-transform-na=* \ | |
311 | --program-transform-n=* | --program-transform-=* \ | |
312 | --program-transform=* | --program-transfor=* \ | |
313 | --program-transfo=* | --program-transf=* \ | |
314 | --program-trans=* | --program-tran=* \ | |
315 | --progr-tra=* | --program-tr=* | --program-t=*) | |
316 program_transform_name="$ac_optarg" ;; | |
317 | |
318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
319 | -silent | --silent | --silen | --sile | --sil) | |
320 silent=yes ;; | |
321 | |
322 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
323 ac_prev=sbindir ;; | |
324 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
325 | --sbi=* | --sb=*) | |
326 sbindir="$ac_optarg" ;; | |
327 | |
328 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
329 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
330 | --sharedst | --shareds | --shared | --share | --shar \ | |
331 | --sha | --sh) | |
332 ac_prev=sharedstatedir ;; | |
333 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
334 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
335 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
336 | --sha=* | --sh=*) | |
337 sharedstatedir="$ac_optarg" ;; | |
338 | |
339 -site | --site | --sit) | |
340 ac_prev=site ;; | |
341 -site=* | --site=* | --sit=*) | |
342 site="$ac_optarg" ;; | |
343 | |
344 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
345 ac_prev=srcdir ;; | |
346 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
347 srcdir="$ac_optarg" ;; | |
348 | |
349 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
350 | --syscon | --sysco | --sysc | --sys | --sy) | |
351 ac_prev=sysconfdir ;; | |
352 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
353 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
354 sysconfdir="$ac_optarg" ;; | |
355 | |
356 -target | --target | --targe | --targ | --tar | --ta | --t) | |
357 ac_prev=target ;; | |
358 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
359 target="$ac_optarg" ;; | |
360 | |
361 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
362 verbose=yes ;; | |
363 | |
364 -version | --version | --versio | --versi | --vers) | |
27205 | 365 echo "configure generated by autoconf version 2.13" |
25897 | 366 exit 0 ;; |
367 | |
368 -with-* | --with-*) | |
369 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
370 # Reject names that are not valid shell variable names. | |
371 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
373 fi | |
374 ac_package=`echo $ac_package| sed 's/-/_/g'` | |
375 case "$ac_option" in | |
376 *=*) ;; | |
377 *) ac_optarg=yes ;; | |
378 esac | |
379 eval "with_${ac_package}='$ac_optarg'" ;; | |
380 | |
381 -without-* | --without-*) | |
382 ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
383 # Reject names that are not valid shell variable names. | |
384 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
386 fi | |
387 ac_package=`echo $ac_package| sed 's/-/_/g'` | |
388 eval "with_${ac_package}=no" ;; | |
389 | |
390 --x) | |
391 # Obsolete; use --with-x. | |
392 with_x=yes ;; | |
393 | |
394 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
395 | --x-incl | --x-inc | --x-in | --x-i) | |
396 ac_prev=x_includes ;; | |
397 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
398 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
399 x_includes="$ac_optarg" ;; | |
400 | |
401 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
402 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
403 ac_prev=x_libraries ;; | |
404 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
405 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
406 x_libraries="$ac_optarg" ;; | |
407 | |
408 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
409 ;; | |
410 | |
411 *) | |
412 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
413 echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
414 fi | |
415 if test "x$nonopt" != xNONE; then | |
416 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
417 fi | |
418 nonopt="$ac_option" | |
419 ;; | |
420 | |
421 esac | |
422 done | |
423 | |
424 if test -n "$ac_prev"; then | |
425 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
426 fi | |
427 | |
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
429 | |
430 # File descriptor usage: | |
431 # 0 standard input | |
432 # 1 file creation | |
433 # 2 errors and warnings | |
434 # 3 some systems may open it to /dev/tty | |
435 # 4 used on the Kubota Titan | |
436 # 6 checking for... messages and results | |
437 # 5 compiler messages saved in config.log | |
438 if test "$silent" = yes; then | |
439 exec 6>/dev/null | |
440 else | |
441 exec 6>&1 | |
442 fi | |
443 exec 5>./config.log | |
444 | |
445 echo "\ | |
446 This file contains any messages produced by compilers while | |
447 running configure, to aid debugging if configure makes a mistake. | |
448 " 1>&5 | |
449 | |
450 # Strip out --no-create and --no-recursion so they do not pile up. | |
451 # Also quote any args containing shell metacharacters. | |
452 ac_configure_args= | |
453 for ac_arg | |
454 do | |
455 case "$ac_arg" in | |
456 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
457 | --no-cr | --no-c) ;; | |
458 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
459 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
461 ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
462 *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
463 esac | |
464 done | |
465 | |
466 # NLS nuisances. | |
467 # Only set these to C if already set. These must not be set unconditionally | |
468 # because not all systems understand e.g. LANG=C (notably SCO). | |
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
470 # Non-C LC_CTYPE values break the ctype check. | |
471 if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
472 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
474 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
475 | |
476 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
477 rm -rf conftest* confdefs.h | |
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
479 echo > confdefs.h | |
480 | |
481 # A filename unique to this package, relative to the directory that | |
482 # configure is in, which we can look for to find out if srcdir is correct. | |
483 ac_unique_file=src/lisp.h | |
484 | |
485 # Find the source files, if location was not specified. | |
486 if test -z "$srcdir"; then | |
487 ac_srcdir_defaulted=yes | |
488 # Try the directory containing this script, then its parent. | |
489 ac_prog=$0 | |
490 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
492 srcdir=$ac_confdir | |
493 if test ! -r $srcdir/$ac_unique_file; then | |
494 srcdir=.. | |
495 fi | |
496 else | |
497 ac_srcdir_defaulted=no | |
498 fi | |
499 if test ! -r $srcdir/$ac_unique_file; then | |
500 if test "$ac_srcdir_defaulted" = yes; then | |
501 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
502 else | |
503 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
504 fi | |
505 fi | |
506 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
507 | |
508 # Prefer explicitly selected file to automatically selected ones. | |
509 if test -z "$CONFIG_SITE"; then | |
510 if test "x$prefix" != xNONE; then | |
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
512 else | |
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
514 fi | |
515 fi | |
516 for ac_site_file in $CONFIG_SITE; do | |
517 if test -r "$ac_site_file"; then | |
518 echo "loading site script $ac_site_file" | |
519 . "$ac_site_file" | |
520 fi | |
521 done | |
522 | |
523 if test -r "$cache_file"; then | |
524 echo "loading cache $cache_file" | |
525 . $cache_file | |
526 else | |
527 echo "creating cache $cache_file" | |
528 > $cache_file | |
529 fi | |
530 | |
531 ac_ext=c | |
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
533 ac_cpp='$CPP $CPPFLAGS' | |
534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
27205 | 535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
25897 | 536 cross_compiling=$ac_cv_prog_cc_cross |
537 | |
27205 | 538 ac_exeext= |
539 ac_objext=o | |
25897 | 540 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
541 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
542 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
543 ac_n= ac_c=' | |
544 ' ac_t=' ' | |
545 else | |
546 ac_n=-n ac_c= ac_t= | |
547 fi | |
548 else | |
549 ac_n= ac_c='\c' ac_t= | |
550 fi | |
551 | |
552 | |
553 | |
554 | |
555 lispdir='${datadir}/emacs/${version}/lisp' | |
556 locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
557 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
558 lisppath='${locallisppath}:${lispdir}' | |
559 etcdir='${datadir}/emacs/${version}/etc' | |
560 archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
561 docdir='${datadir}/emacs/${version}/etc' | |
562 | |
563 # Check whether --with-gcc or --without-gcc was given. | |
564 if test "${with_gcc+set}" = set; then | |
565 withval="$with_gcc" | |
566 : | |
567 fi | |
568 | |
569 # Check whether --with-pop or --without-pop was given. | |
570 if test "${with_pop+set}" = set; then | |
571 withval="$with_pop" | |
25994 | 572 if test "$withval" = yes; then |
573 cat >> confdefs.h <<\EOF | |
25897 | 574 #define MAIL_USE_POP 1 |
575 EOF | |
576 | |
25994 | 577 else : |
578 fi | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
579 else |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
580 cat >> confdefs.h <<\EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
581 #define MAIL_USE_POP 1 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
582 EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
583 |
25897 | 584 fi |
585 | |
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
|
586 # 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
|
587 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
|
588 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
|
589 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
|
590 #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
|
591 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 |
b32d82817493
* 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 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
|
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 # 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
|
596 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
|
597 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
|
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 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
|
600 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
|
601 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
|
602 #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
|
603 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 |
b32d82817493
* 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 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
|
606 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
|
607 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
|
608 #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
|
609 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 |
b32d82817493
* 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 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
|
612 |
25897 | 613 # Check whether --with-hesiod or --without-hesiod was given. |
614 if test "${with_hesiod+set}" = set; then | |
615 withval="$with_hesiod" | |
616 cat >> confdefs.h <<\EOF | |
617 #define HESIOD 1 | |
618 EOF | |
619 | |
620 fi | |
621 | |
622 # Check whether --with-x-toolkit or --without-x-toolkit was given. | |
623 if test "${with_x_toolkit+set}" = set; then | |
624 withval="$with_x_toolkit" | |
625 case "${withval}" in | |
626 y | ye | yes ) val=athena ;; | |
627 n | no ) val=no ;; | |
628 l | lu | luc | luci | lucid ) val=lucid ;; | |
629 a | at | ath | athe | athen | athena ) val=athena ;; | |
630 m | mo | mot | moti | motif ) val=motif ;; | |
631 * ) | |
632 { echo "configure: error: \`--with-x-toolkit=$withval' is invalid\; | |
633 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | |
634 Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; } | |
635 ;; | |
636 esac | |
637 with_x_toolkit=$val | |
638 | |
639 fi | |
640 | |
641 # Check whether --with-xpm or --without-xpm was given. | |
642 if test "${with_xpm+set}" = set; then | |
643 withval="$with_xpm" | |
644 : | |
645 fi | |
646 | |
647 # Check whether --with-jpeg or --without-jpeg was given. | |
648 if test "${with_jpeg+set}" = set; then | |
649 withval="$with_jpeg" | |
650 : | |
651 fi | |
652 | |
653 # Check whether --with-tiff or --without-tiff was given. | |
654 if test "${with_tiff+set}" = set; then | |
655 withval="$with_tiff" | |
656 : | |
657 fi | |
658 | |
659 # Check whether --with-gif or --without-gif was given. | |
660 if test "${with_gif+set}" = set; then | |
661 withval="$with_gif" | |
662 : | |
663 fi | |
664 | |
665 # Check whether --with-png or --without-png was given. | |
666 if test "${with_png+set}" = set; then | |
667 withval="$with_png" | |
668 : | |
669 fi | |
670 | |
671 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. | |
672 if test "${with_toolkit_scroll_bars+set}" = set; then | |
673 withval="$with_toolkit_scroll_bars" | |
674 : | |
675 fi | |
676 | |
677 | |
678 #### Make srcdir absolute, if it isn't already. It's important to | |
679 #### avoid running the path through pwd unnecessary, since pwd can | |
680 #### give you automounter prefixes, which can go away. We do all this | |
681 #### so Emacs can find its files when run uninstalled. | |
682 case "${srcdir}" in | |
683 /* ) ;; | |
684 . ) | |
685 ## We may be able to use the $PWD environment variable to make this | |
686 ## absolute. But sometimes PWD is inaccurate. | |
687 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). | |
688 unset CDPATH | |
689 if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ; | |
690 then | |
691 srcdir="$PWD" | |
692 else | |
693 srcdir="`(cd ${srcdir}; pwd)`" | |
694 fi | |
695 ;; | |
696 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
697 esac | |
698 | |
699 #### Check if the source directory already has a configured system in it. | |
700 if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
701 && test -f "${srcdir}/src/config.h" ; then | |
702 echo "configure: warning: The directory tree \`${srcdir}' is being used | |
703 as a build directory right now; it has been configured in its own | |
704 right. To configure in another directory as well, you MUST | |
705 use GNU make. If you do not have GNU make, then you must | |
706 now do \`make distclean' in ${srcdir}, | |
707 and then run $0 again." 1>&2 | |
708 | |
709 extrasub='/^VPATH[ ]*=/c\ | |
710 vpath %.c $(srcdir)\ | |
711 vpath %.h $(srcdir)\ | |
712 vpath %.y $(srcdir)\ | |
713 vpath %.l $(srcdir)\ | |
714 vpath %.s $(srcdir)\ | |
715 vpath %.in $(srcdir)\ | |
716 vpath %.texi $(srcdir)' | |
717 fi | |
718 | |
719 #### Given the configuration name, set machfile and opsysfile to the | |
720 #### names of the m/*.h and s/*.h files we should use. | |
721 | |
722 ### Canonicalize the configuration name. | |
723 | |
724 ac_aux_dir= | |
725 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
726 if test -f $ac_dir/install-sh; then | |
727 ac_aux_dir=$ac_dir | |
728 ac_install_sh="$ac_aux_dir/install-sh -c" | |
729 break | |
730 elif test -f $ac_dir/install.sh; then | |
731 ac_aux_dir=$ac_dir | |
732 ac_install_sh="$ac_aux_dir/install.sh -c" | |
733 break | |
734 fi | |
735 done | |
736 if test -z "$ac_aux_dir"; then | |
737 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
738 fi | |
739 ac_config_guess=$ac_aux_dir/config.guess | |
740 ac_config_sub=$ac_aux_dir/config.sub | |
741 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
742 | |
743 | |
744 # Make sure we can run config.sub. | |
27205 | 745 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
25897 | 746 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
747 fi | |
748 | |
749 echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
29388 | 750 echo "configure:751: checking host system type" >&5 |
25897 | 751 |
752 host_alias=$host | |
753 case "$host_alias" in | |
754 NONE) | |
755 case $nonopt in | |
756 NONE) | |
27205 | 757 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
25897 | 758 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
759 fi ;; | |
760 *) host_alias=$nonopt ;; | |
761 esac ;; | |
762 esac | |
763 | |
27205 | 764 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
25897 | 765 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
766 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
767 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
768 echo "$ac_t""$host" 1>&6 | |
769 | |
770 canonical=$host | |
771 configuration=$host_alias | |
772 | |
773 | |
774 ### If you add support for a new configuration, add code to this | |
775 ### switch statement to recognize your configuration name and select | |
776 ### the appropriate operating system and machine description files. | |
777 | |
778 ### You would hope that you could choose an m/*.h file pretty much | |
779 ### based on the machine portion of the configuration name, and an s- | |
780 ### file based on the operating system portion. However, it turns out | |
781 ### that each m/*.h file is pretty manufacturer-specific - for | |
782 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
783 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
784 ### machines. So we basically have to have a special case for each | |
785 ### configuration name. | |
786 ### | |
787 ### As far as handling version numbers on operating systems is | |
788 ### concerned, make sure things will fail in a fixable way. If | |
789 ### /etc/MACHINES doesn't say anything about version numbers, be | |
790 ### prepared to handle anything reasonably. If version numbers | |
791 ### matter, be sure /etc/MACHINES says something about it. | |
792 ### | |
793 ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
794 ### "System V Release 4"; he writes, "The old convention encouraged | |
795 ### confusion between `system' and `release' levels'." | |
796 | |
797 machine='' opsys='' unported=no | |
798 case "${canonical}" in | |
799 | |
800 ## NetBSD ports | |
801 *-*-netbsd* ) | |
802 opsys=netbsd | |
803 case "${canonical}" in | |
804 alpha*-*-netbsd*) machine=alpha ;; | |
805 i[3456]86-*-netbsd*) machine=intel386 ;; | |
806 m68k-*-netbsd*) | |
807 # This is somewhat bogus. | |
808 machine=hp9000s300 ;; | |
809 powerpc-apple-netbsd*) machine=macppc ;; | |
810 mips-*-netbsd*) machine=pmax ;; | |
27927 | 811 mipsel-*-netbsd*) machine=pmax ;; |
25897 | 812 ns32k-*-netbsd*) machine=ns32000 ;; |
28674 | 813 powerpc-*-netbsd*) machine=macppc ;; |
25897 | 814 sparc-*-netbsd*) machine=sparc ;; |
815 vax-*-netbsd*) machine=vax ;; | |
27927 | 816 arm-*-netbsd*) machine=arm ;; |
25897 | 817 esac |
818 ;; | |
819 | |
820 ## OpenBSD ports | |
821 *-*-openbsd* ) | |
822 opsys=openbsd | |
823 case "${canonical}" in | |
824 alpha*-*-openbsd*) machine=alpha ;; | |
825 i386-*-openbsd*) machine=intel386 ;; | |
826 m68k-*-openbsd*) machine=hp9000s300 ;; | |
827 mipsel-*-openbsd*) machine=pmax ;; | |
828 ns32k-*-openbsd*) machine=ns32000 ;; | |
829 sparc-*-openbsd*) machine=sparc ;; | |
830 vax-*-openbsd*) machine=vax ;; | |
831 esac | |
832 ;; | |
833 | |
834 ## Acorn RISCiX: | |
835 arm-acorn-riscix1.1* ) | |
836 machine=acorn opsys=riscix1-1 | |
837 ;; | |
838 arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
839 ## This name is riscix12 instead of riscix1.2 | |
840 ## to avoid a file name conflict on MSDOS. | |
841 machine=acorn opsys=riscix12 | |
842 ;; | |
843 | |
844 ## BSDI ports | |
845 *-*-bsdi* ) | |
846 opsys=bsdi | |
847 case "${canonical}" in | |
848 i[345]86-*-bsdi*) machine=intel386 ;; | |
849 sparc-*-bsdi*) machine=sparc ;; | |
850 powerpc-*-bsdi*) machine=powerpc ;; | |
851 esac | |
852 case "${canonical}" in | |
853 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
854 *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
855 *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
856 *-*-bsdi3* ) opsys=bsdos3 ;; | |
857 *-*-bsdi4* ) opsys=bsdos4 ;; | |
858 esac | |
859 ;; | |
860 | |
861 ## Alliant machines | |
862 ## Strictly speaking, we need the version of the alliant operating | |
863 ## system to choose the right machine file, but currently the | |
864 ## configuration name doesn't tell us enough to choose the right | |
865 ## one; we need to give alliants their own operating system name to | |
866 ## do this right. When someone cares, they can help us. | |
867 fx80-alliant-* ) | |
868 machine=alliant4 opsys=bsd4-2 | |
869 ;; | |
870 i860-alliant-* ) | |
871 machine=alliant-2800 opsys=bsd4-3 | |
872 ;; | |
873 | |
874 ## Alpha (DEC) machines. | |
875 alpha*-dec-osf* ) | |
876 machine=alpha opsys=osf1 | |
877 # This is needed to find X11R6.1 libraries for certain tests. | |
878 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
879 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
27883 | 880 case "${canonical}" in |
881 # This is necessary on 5.0 to avoid mangling src/Makefile. | |
882 # Separated out in case it causes problems on earlier versions. | |
883 alpha*-dec-osf[5-9]*) | |
29834 | 884 opsys=osf5-0 |
29654 | 885 NON_GNU_CPP='cpp' ;; |
27883 | 886 esac |
25897 | 887 ;; |
888 | |
889 alpha*-*-linux-gnu* ) | |
890 machine=alpha opsys=gnu-linux | |
891 ;; | |
892 | |
27205 | 893 arm*-*-linux-gnu* ) |
894 machine=arm opsys=gnu-linux | |
895 ;; | |
896 | |
897 ppc-*-linux | \ | |
898 powerpc-*-linux* ) | |
899 machine=powerpc opsys=gnu-linux | |
900 ;; | |
901 | |
25897 | 902 ## Altos 3068 |
903 m68*-altos-sysv* ) | |
904 machine=altos opsys=usg5-2 | |
905 ;; | |
906 | |
907 ## Amdahl UTS | |
908 580-amdahl-sysv* ) | |
909 machine=amdahl opsys=usg5-2-2 | |
910 ;; | |
911 | |
912 ## Apollo, Domain/OS | |
913 m68*-apollo-* ) | |
914 machine=apollo opsys=bsd4-3 | |
915 ;; | |
916 | |
917 ## AT&T 3b2, 3b5, 3b15, 3b20 | |
918 we32k-att-sysv* ) | |
919 machine=att3b opsys=usg5-2-2 | |
920 ;; | |
921 | |
922 ## AT&T 3b1 - The Mighty Unix PC! | |
923 m68*-att-sysv* ) | |
924 machine=7300 opsys=usg5-2-2 | |
925 ;; | |
926 | |
927 ## Bull dpx20 | |
928 rs6000-bull-bosx* ) | |
929 machine=ibmrs6000 opsys=aix3-2 | |
930 ;; | |
931 | |
932 ## Bull dpx2 | |
933 m68*-bull-sysv3* ) | |
934 machine=dpx2 opsys=usg5-3 | |
935 ;; | |
936 | |
937 ## Bull sps7 | |
938 m68*-bull-sysv2* ) | |
939 machine=sps7 opsys=usg5-2 | |
940 ;; | |
941 | |
942 ## CCI 5/32, 6/32 -- see "Tahoe". | |
943 | |
944 ## Celerity | |
945 ## I don't know what configuration name to use for this; config.sub | |
946 ## doesn't seem to know anything about it. Hey, Celerity users, get | |
947 ## in touch with us! | |
948 celerity-celerity-bsd* ) | |
949 machine=celerity opsys=bsd4-2 | |
950 ;; | |
951 | |
952 ## Clipper | |
953 ## What operating systems does this chip run that Emacs has been | |
954 ## tested on? | |
955 clipper-* ) | |
956 machine=clipper | |
957 ## We'll use the catch-all code at the bottom to guess the | |
958 ## operating system. | |
959 ;; | |
960 | |
961 ## Convex | |
962 *-convex-bsd* | *-convex-convexos* ) | |
963 machine=convex opsys=bsd4-3 | |
964 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
965 NON_GNU_CPP="cc -E -P" | |
966 ;; | |
967 | |
968 ## Cubix QBx/386 | |
969 i[3456]86-cubix-sysv* ) | |
970 machine=intel386 opsys=usg5-3 | |
971 ;; | |
972 | |
973 ## Cydra 5 | |
974 cydra*-cydrome-sysv* ) | |
975 machine=cydra5 opsys=usg5-3 | |
976 ;; | |
977 | |
978 ## Data General AViiON Machines | |
979 ## DG changed naming conventions with the release of 5.4.4.10, they | |
980 ## dropped the initial 5.4 but left the intervening R. Because of the | |
981 ## R this shouldn't conflict with older versions of the OS (which I | |
982 ## think were named like dgux4.*). In addition, DG new AViiONs series | |
983 ## uses either Motorola M88k or Intel Pentium CPUs. | |
984 m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
985 machine=aviion opsys=dgux4 | |
986 ;; | |
987 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
988 ## This name is dgux5-4-3 instead of dgux5-4r3 | |
989 ## to avoid a file name conflict on MSDOS. | |
990 machine=aviion opsys=dgux5-4-3 | |
991 ;; | |
992 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
993 machine=aviion opsys=dgux5-4r2 | |
994 ;; | |
995 m88k-dg-dgux* ) | |
996 machine=aviion opsys=dgux | |
997 ;; | |
998 | |
999 ## Data General AViiON Intel (x86) Machines | |
1000 ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
1001 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
1002 i[345]86-dg-dguxR4* ) | |
1003 machine=aviion-intel opsys=dgux4 | |
1004 ;; | |
1005 | |
1006 ## DECstations | |
1007 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1008 machine=pmax opsys=bsd4-2 | |
1009 ;; | |
1010 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1011 machine=pmax opsys=bsd4-3 | |
1012 ;; | |
1013 mips-dec-ultrix* ) | |
1014 machine=pmax opsys=ultrix4-3 | |
1015 ;; | |
1016 mips-dec-osf* ) | |
1017 machine=pmax opsys=osf1 | |
1018 ;; | |
1019 mips-dec-mach_bsd4.3* ) | |
1020 machine=pmax opsys=mach-bsd4-3 | |
1021 ;; | |
1022 | |
1023 ## Motorola Delta machines | |
1024 m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1025 machine=delta opsys=usg5-3 | |
1026 if test -z "`type gnucc | grep 'not found'`" | |
1027 then | |
1028 if test -s /etc/167config | |
1029 then CC="gnucc -m68040" | |
1030 else CC="gnucc -m68881" | |
1031 fi | |
1032 else | |
1033 if test -z "`type gcc | grep 'not found'`" | |
1034 then CC=gcc | |
1035 else CC=cc | |
1036 fi | |
1037 fi | |
1038 ;; | |
1039 m88k-motorola-sysv4* ) | |
1040 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1041 # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1042 # I hope there are not other 4.0 versions for this machine | |
1043 # which really need usg5-4 instead. | |
1044 machine=delta88k opsys=usg5-4-2 | |
1045 ;; | |
1046 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1047 machine=delta88k opsys=usg5-3 | |
1048 ;; | |
1049 | |
1050 ## Dual machines | |
1051 m68*-dual-sysv* ) | |
1052 machine=dual opsys=usg5-2 | |
1053 ;; | |
1054 m68*-dual-uniplus* ) | |
1055 machine=dual opsys=unipl5-2 | |
1056 ;; | |
1057 | |
1058 ## Elxsi 6400 | |
1059 elxsi-elxsi-sysv* ) | |
1060 machine=elxsi opsys=usg5-2 | |
1061 ;; | |
1062 | |
1063 ## Encore machines | |
1064 ns16k-encore-bsd* ) | |
1065 machine=ns16000 opsys=umax | |
1066 ;; | |
1067 | |
1068 ## The GEC 93 - apparently, this port isn't really finished yet. | |
1069 | |
1070 ## Gould Power Node and NP1 | |
1071 pn-gould-bsd4.2* ) | |
1072 machine=gould opsys=bsd4-2 | |
1073 ;; | |
1074 pn-gould-bsd4.3* ) | |
1075 machine=gould opsys=bsd4-3 | |
1076 ;; | |
1077 np1-gould-bsd* ) | |
1078 machine=gould-np1 opsys=bsd4-3 | |
1079 ;; | |
1080 | |
1081 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
1082 ## as far as Emacs is concerned). | |
1083 m88k-harris-cxux* ) | |
1084 # Build needs to be different on 7.0 and later releases | |
1085 case "`uname -r`" in | |
1086 [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
1087 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
1088 esac | |
1089 NON_GNU_CPP="/lib/cpp" | |
1090 ;; | |
1091 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
1092 m68k-harris-cxux* ) | |
1093 machine=nh3000 opsys=cxux | |
1094 ;; | |
1095 ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
1096 powerpc-harris-powerunix ) | |
1097 machine=nh6000 opsys=powerunix | |
1098 NON_GNU_CPP="cc -Xo -E -P" | |
1099 ;; | |
1100 ## SR2001/SR2201 running HI-UX/MPP | |
1101 hppa1.1-hitachi-hiuxmpp* ) | |
1102 machine=sr2k opsys=hiuxmpp | |
1103 ;; | |
1104 ## Honeywell XPS100 | |
1105 xps*-honeywell-sysv* ) | |
1106 machine=xps100 opsys=usg5-2 | |
1107 ;; | |
1108 | |
1109 ## HP 9000 series 200 or 300 | |
1110 m68*-hp-bsd* ) | |
1111 machine=hp9000s300 opsys=bsd4-3 | |
1112 ;; | |
1113 ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
1114 m68*-hp-hpux* ) | |
1115 case "`uname -r`" in | |
1116 ## Someone's system reports A.B8.05 for this. | |
1117 ## I wonder what other possibilities there are. | |
1118 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1119 *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1120 *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
1121 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
1122 *) machine=hp9000s300 opsys=hpux ;; | |
1123 esac | |
1124 ;; | |
1125 | |
1126 ## HP 9000 series 700 and 800, running HP/UX | |
1127 hppa*-hp-hpux7* ) | |
1128 machine=hp800 opsys=hpux | |
1129 ;; | |
1130 hppa*-hp-hpux8* ) | |
1131 machine=hp800 opsys=hpux8 | |
1132 ;; | |
1133 hppa*-hp-hpux9shr* ) | |
1134 machine=hp800 opsys=hpux9shr | |
1135 ;; | |
1136 hppa*-hp-hpux9* ) | |
1137 machine=hp800 opsys=hpux9 | |
1138 ;; | |
1139 hppa*-hp-hpux1[0-9]* ) | |
1140 machine=hp800 opsys=hpux10 | |
1141 ;; | |
1142 | |
1143 ## HP 9000 series 700 and 800, running HP/UX | |
1144 hppa*-hp-hpux* ) | |
1145 ## Cross-compilation? Nah! | |
1146 case "`uname -r`" in | |
1147 ## Someone's system reports A.B8.05 for this. | |
1148 ## I wonder what other possibilities there are. | |
1149 *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
1150 *.08.* ) machine=hp800 opsys=hpux8 ;; | |
1151 *.09.* ) machine=hp800 opsys=hpux9 ;; | |
1152 *) machine=hp800 opsys=hpux10 ;; | |
1153 esac | |
1154 ;; | |
1155 hppa*-*-nextstep* ) | |
1156 machine=hp800 opsys=nextstep | |
1157 ;; | |
1158 | |
1159 ## Orion machines | |
1160 orion-orion-bsd* ) | |
1161 machine=orion opsys=bsd4-2 | |
1162 ;; | |
1163 clipper-orion-bsd* ) | |
1164 machine=orion105 opsys=bsd4-2 | |
1165 ;; | |
1166 | |
1167 ## IBM machines | |
1168 i[3456]86-ibm-aix1.1* ) | |
1169 machine=ibmps2-aix opsys=usg5-2-2 | |
1170 ;; | |
1171 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
1172 machine=ibmps2-aix opsys=usg5-3 | |
1173 ;; | |
1174 i370-ibm-aix*) | |
1175 machine=ibm370aix opsys=usg5-3 | |
1176 ;; | |
1177 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) | |
1178 machine=ibmrs6000 opsys=aix3-1 | |
1179 ;; | |
1180 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
1181 machine=ibmrs6000 opsys=aix3-2-5 | |
1182 ;; | |
1183 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
1184 machine=ibmrs6000 opsys=aix4-1 | |
1185 ;; | |
1186 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
1187 machine=ibmrs6000 opsys=aix4-2 | |
1188 ;; | |
1189 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) | |
1190 machine=ibmrs6000 opsys=aix4 | |
1191 ;; | |
1192 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
1193 machine=ibmrs6000 opsys=aix4-1 | |
1194 ;; | |
1195 rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
1196 machine=ibmrs6000 opsys=aix3-2 | |
1197 ;; | |
1198 romp-ibm-bsd4.3* ) | |
1199 machine=ibmrt opsys=bsd4-3 | |
1200 ;; | |
1201 romp-ibm-bsd4.2* ) | |
1202 machine=ibmrt opsys=bsd4-2 | |
1203 ;; | |
1204 romp-ibm-aos4.3* ) | |
1205 machine=ibmrt opsys=bsd4-3 | |
1206 ;; | |
1207 romp-ibm-aos4.2* ) | |
1208 machine=ibmrt opsys=bsd4-2 | |
1209 ;; | |
1210 romp-ibm-aos* ) | |
1211 machine=ibmrt opsys=bsd4-3 | |
1212 ;; | |
1213 romp-ibm-bsd* ) | |
1214 machine=ibmrt opsys=bsd4-3 | |
1215 ;; | |
1216 romp-ibm-aix* ) | |
1217 machine=ibmrt-aix opsys=usg5-2-2 | |
1218 ;; | |
1219 | |
1220 ## Integrated Solutions `Optimum V' | |
1221 m68*-isi-bsd4.2* ) | |
1222 machine=isi-ov opsys=bsd4-2 | |
1223 ;; | |
1224 m68*-isi-bsd4.3* ) | |
1225 machine=isi-ov opsys=bsd4-3 | |
1226 ;; | |
1227 | |
1228 ## Intel 386 machines where we do care about the manufacturer | |
1229 i[3456]86-intsys-sysv* ) | |
1230 machine=is386 opsys=usg5-2-2 | |
1231 ;; | |
1232 | |
1233 ## Prime EXL | |
1234 i[3456]86-prime-sysv* ) | |
1235 machine=i386 opsys=usg5-3 | |
1236 ;; | |
1237 | |
1238 ## Sequent Symmetry running Dynix | |
1239 i[3456]86-sequent-bsd* ) | |
1240 machine=symmetry opsys=bsd4-3 | |
1241 ;; | |
1242 | |
1243 ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
1244 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
1245 machine=sequent-ptx opsys=ptx4 | |
1246 NON_GNU_CPP=/lib/cpp | |
1247 ;; | |
1248 | |
1249 ## Sequent Symmetry running DYNIX/ptx | |
1250 ## Use the old cpp rather than the newer ANSI one. | |
1251 i[3456]86-sequent-ptx* ) | |
1252 machine=sequent-ptx opsys=ptx | |
1253 NON_GNU_CPP="/lib/cpp" | |
1254 ;; | |
1255 | |
1256 ## ncr machine running svr4.3. | |
1257 i[3456]86-ncr-sysv4.3 ) | |
1258 machine=ncr386 opsys=usg5-4-3 | |
1259 ;; | |
1260 | |
1261 ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
1262 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
1263 i[3456]86-ncr-sysv* ) | |
1264 machine=ncr386 opsys=usg5-4-2 | |
1265 ;; | |
1266 | |
1267 ## Intel Paragon OSF/1 | |
1268 i860-intel-osf1* ) | |
1269 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
1270 ;; | |
1271 | |
1272 ## Intel 860 | |
1273 i860-*-sysv4* ) | |
1274 machine=i860 opsys=usg5-4 | |
1275 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
1276 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
1277 ;; | |
1278 | |
28748 | 1279 ## Macintosh PowerPC |
1280 powerpc*-*-linux-gnu* ) | |
1281 machine=macppc opsys=gnu-linux | |
1282 ;; | |
1283 | |
25897 | 1284 ## Masscomp machines |
1285 m68*-masscomp-rtu* ) | |
1286 machine=masscomp opsys=rtu | |
1287 ;; | |
1288 | |
1289 ## Megatest machines | |
1290 m68*-megatest-bsd* ) | |
1291 machine=mega68 opsys=bsd4-2 | |
1292 ;; | |
1293 | |
1294 ## Workstations sold by MIPS | |
1295 ## This is not necessarily all workstations using the MIPS processor - | |
1296 ## Irises are produced by SGI, and DECstations by DEC. | |
1297 | |
1298 ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
1299 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
1300 ## it gives for choosing between the alternatives seems to be "Use | |
1301 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
1302 ## the BSD world." I'll assume that these are instructions for | |
1303 ## handling two odd situations, and that every other situation | |
1304 ## should use mips.h and usg5-2-2, they being listed first. | |
1305 mips-mips-usg* ) | |
1306 machine=mips4 | |
1307 ## Fall through to the general code at the bottom to decide on the OS. | |
1308 ;; | |
1309 mips-mips-riscos4* ) | |
1310 machine=mips4 opsys=bsd4-3 | |
1311 NON_GNU_CC="cc -systype bsd43" | |
1312 NON_GNU_CPP="cc -systype bsd43 -E" | |
1313 ;; | |
1314 mips-mips-riscos5* ) | |
1315 machine=mips4 opsys=riscos5 | |
1316 NON_GNU_CC="cc -systype bsd43" | |
1317 NON_GNU_CPP="cc -systype bsd43 -E" | |
1318 ;; | |
1319 mips-mips-bsd* ) | |
1320 machine=mips opsys=bsd4-3 | |
1321 ;; | |
1322 mips-mips-* ) | |
1323 machine=mips opsys=usg5-2-2 | |
1324 ;; | |
1325 | |
1326 ## NeXT | |
1327 m68*-next-* | m68k-*-nextstep* ) | |
1328 machine=m68k opsys=nextstep | |
1329 ;; | |
1330 | |
1331 ## The complete machine from National Semiconductor | |
1332 ns32k-ns-genix* ) | |
1333 machine=ns32000 opsys=usg5-2 | |
1334 ;; | |
1335 | |
1336 ## NCR machines | |
1337 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
1338 machine=tower32 opsys=usg5-2-2 | |
1339 ;; | |
1340 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
1341 machine=tower32v3 opsys=usg5-3 | |
1342 ;; | |
1343 | |
1344 ## NEC EWS4800 | |
1345 mips-nec-sysv4*) | |
1346 machine=ews4800 opsys=ux4800 | |
1347 ;; | |
1348 | |
1349 ## Nixdorf Targon 31 | |
1350 m68*-nixdorf-sysv* ) | |
1351 machine=targon31 opsys=usg5-2-2 | |
1352 ;; | |
1353 | |
1354 ## Nu (TI or LMI) | |
1355 m68*-nu-sysv* ) | |
1356 machine=nu opsys=usg5-2 | |
1357 ;; | |
1358 | |
1359 ## Plexus | |
1360 m68*-plexus-sysv* ) | |
1361 machine=plexus opsys=usg5-2 | |
1362 ;; | |
1363 | |
1364 ## PowerPC reference platform | |
1365 powerpcle-*-solaris2* ) | |
1366 machine=prep | |
1367 opsys=sol2-5 | |
1368 ;; | |
1369 | |
1370 ## Pyramid machines | |
1371 ## I don't really have any idea what sort of processor the Pyramid has, | |
1372 ## so I'm assuming it is its own architecture. | |
1373 pyramid-pyramid-bsd* ) | |
1374 machine=pyramid opsys=bsd4-2 | |
1375 ;; | |
1376 | |
1377 ## Sequent Balance | |
1378 ns32k-sequent-bsd4.2* ) | |
1379 machine=sequent opsys=bsd4-2 | |
1380 ;; | |
1381 ns32k-sequent-bsd4.3* ) | |
1382 machine=sequent opsys=bsd4-3 | |
1383 ;; | |
1384 | |
1385 ## Siemens Nixdorf | |
1386 mips-siemens-sysv* | mips-sni-sysv*) | |
1387 machine=mips-siemens opsys=usg5-4 | |
1388 NON_GNU_CC=/usr/ccs/bin/cc | |
1389 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1390 ;; | |
1391 | |
1392 ## Silicon Graphics machines | |
1393 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
1394 m68*-sgi-iris3.5* ) | |
1395 machine=irist opsys=iris3-5 | |
1396 ;; | |
1397 m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
1398 machine=irist opsys=iris3-6 | |
1399 ;; | |
1400 ## Iris 4D | |
1401 mips-sgi-irix3* ) | |
1402 machine=iris4d opsys=irix3-3 | |
1403 ;; | |
1404 mips-sgi-irix4* ) | |
1405 machine=iris4d opsys=irix4-0 | |
1406 ;; | |
1407 mips-sgi-irix6.5 ) | |
1408 machine=iris4d opsys=irix6-5 | |
26502 | 1409 # Without defining _LANGUAGE_C, things get masked out in the headers |
1410 # so that, for instance, grepping for `free' in stdlib.h fails and | |
1411 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
1412 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 1413 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
25897 | 1414 ;; |
1415 mips-sgi-irix6* ) | |
1416 machine=iris4d opsys=irix6-0 | |
27205 | 1417 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
26502 | 1418 # but presumably it does no harm. |
1419 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 1420 # -32 probably isn't necessary in later v.6s -- anyone know which? |
25897 | 1421 NON_GCC_TEST_OPTIONS=-32 |
1422 ;; | |
1423 mips-sgi-irix5.[01]* ) | |
1424 machine=iris4d opsys=irix5-0 | |
1425 ;; | |
1426 mips-sgi-irix5* | mips-sgi-irix* ) | |
1427 machine=iris4d opsys=irix5-2 | |
1428 ;; | |
1429 | |
1430 ## SONY machines | |
1431 m68*-sony-bsd4.2* ) | |
1432 machine=news opsys=bsd4-2 | |
1433 ;; | |
1434 m68*-sony-bsd4.3* ) | |
1435 machine=news opsys=bsd4-3 | |
1436 ;; | |
1437 m68*-sony-newsos3* | m68*-sony-news3*) | |
1438 machine=news opsys=bsd4-3 | |
1439 ;; | |
1440 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
1441 machine=news-risc opsys=bsd4-3 | |
1442 ;; | |
1443 mips-sony-newsos6* ) | |
1444 machine=news-r6 opsys=newsos6 | |
1445 ;; | |
1446 mips-sony-news* ) | |
1447 machine=news-risc opsys=newsos5 | |
1448 ;; | |
1449 | |
1450 ## Stride | |
1451 m68*-stride-sysv* ) | |
1452 machine=stride opsys=usg5-2 | |
1453 ;; | |
1454 | |
1455 ## Suns | |
1456 sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
1457 machine=sparc opsys=gnu-linux | |
1458 ;; | |
1459 | |
27949 | 1460 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
25897 | 1461 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
1462 | rs6000-*-solaris2*) | |
1463 case "${canonical}" in | |
1464 m68*-sunos1* ) machine=sun1 ;; | |
1465 m68*-sunos2* ) machine=sun2 ;; | |
1466 m68* ) machine=sun3 ;; | |
1467 i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
1468 i[3456]86-*-* ) machine=intel386 ;; | |
1469 powerpcle* ) machine=powerpcle ;; | |
1470 powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
1471 sparc* ) machine=sparc ;; | |
1472 * ) unported=yes ;; | |
1473 esac | |
1474 case "${canonical}" in | |
1475 ## The Sun386 didn't get past 4.0. | |
1476 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
1477 *-sunos4.0* ) opsys=sunos4-0 ;; | |
1478 *-sunos4.1.[3-9]*noshare ) | |
1479 ## This name is sunos413 instead of sunos4-1-3 | |
1480 ## to avoid a file name conflict on MSDOS. | |
1481 opsys=sunos413 | |
1482 NON_GNU_CPP=/usr/lib/cpp | |
1483 NON_GCC_TEST_OPTIONS=-Bstatic | |
1484 GCC_TEST_OPTIONS=-static | |
1485 ;; | |
1486 *-sunos4.1.[3-9]* | *-sunos4shr*) | |
1487 opsys=sunos4shr | |
1488 NON_GNU_CPP=/usr/lib/cpp | |
1489 ;; | |
1490 *-sunos4* | *-sunos ) | |
1491 opsys=sunos4-1 | |
1492 NON_GCC_TEST_OPTIONS=-Bstatic | |
1493 GCC_TEST_OPTIONS=-static | |
1494 ;; | |
1495 *-sunos5.3* | *-solaris2.3* ) | |
1496 opsys=sol2-3 | |
1497 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1498 ;; | |
1499 *-sunos5.4* | *-solaris2.4* ) | |
1500 opsys=sol2-4 | |
1501 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1502 RANLIB="ar -ts" | |
1503 ;; | |
1504 *-sunos5.5* | *-solaris2.5* ) | |
1505 opsys=sol2-5 | |
1506 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1507 RANLIB="ar -ts" | |
1508 ;; | |
1509 *-sunos5* | *-solaris* ) | |
1510 opsys=sol2-5 | |
1511 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1512 ;; | |
1513 * ) opsys=bsd4-2 ;; | |
1514 esac | |
1515 ## Watch out for a compiler that we know will not work. | |
1516 case "${canonical}" in | |
1517 *-solaris* | *-sunos5* ) | |
1518 if [ "x$CC" = x/usr/ucb/cc ]; then | |
1519 ## /usr/ucb/cc doesn't work; | |
1520 ## we should find some other compiler that does work. | |
1521 unset CC | |
1522 fi | |
1523 ;; | |
1524 *) ;; | |
1525 esac | |
1526 ;; | |
1527 sparc-*-nextstep* ) | |
1528 machine=sparc opsys=nextstep | |
1529 ;; | |
1530 | |
1531 ## Tadpole 68k | |
1532 m68*-tadpole-sysv* ) | |
1533 machine=tad68k opsys=usg5-3 | |
1534 ;; | |
1535 | |
1536 ## Tahoe machines | |
1537 tahoe-tahoe-bsd4.2* ) | |
1538 machine=tahoe opsys=bsd4-2 | |
1539 ;; | |
1540 tahoe-tahoe-bsd4.3* ) | |
1541 machine=tahoe opsys=bsd4-3 | |
1542 ;; | |
1543 | |
1544 ## Tandem Integrity S2 | |
1545 mips-tandem-sysv* ) | |
1546 machine=tandem-s2 opsys=usg5-3 | |
1547 ;; | |
1548 | |
1549 ## Tektronix XD88 | |
1550 m88k-tektronix-sysv3* ) | |
1551 machine=tekxd88 opsys=usg5-3 | |
1552 ;; | |
1553 | |
1554 ## Tektronix 16000 box (6130?) | |
1555 ns16k-tektronix-bsd* ) | |
1556 machine=ns16000 opsys=bsd4-2 | |
1557 ;; | |
1558 ## Tektronix 4300 | |
1559 ## src/m/tek4300.h hints that this is a m68k machine. | |
1560 m68*-tektronix-bsd* ) | |
1561 machine=tek4300 opsys=bsd4-3 | |
1562 ;; | |
1563 | |
1564 ## Titan P2 or P3 | |
1565 ## We seem to have lost the machine-description file titan.h! | |
1566 titan-titan-sysv* ) | |
1567 machine=titan opsys=usg5-3 | |
1568 ;; | |
1569 | |
1570 ## Ustation E30 (SS5E) | |
1571 m68*-unisys-uniplus* ) | |
1572 machine=ustation opsystem=unipl5-2 | |
1573 ;; | |
1574 | |
1575 ## Vaxen. | |
1576 vax-dec-* ) | |
1577 machine=vax | |
1578 case "${canonical}" in | |
1579 *-bsd4.1* ) opsys=bsd4-1 ;; | |
1580 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
1581 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
1582 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
1583 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
1584 *-vms* ) opsys=vms ;; | |
1585 * ) unported=yes | |
1586 esac | |
1587 ;; | |
1588 | |
1589 ## Whitechapel MG1 | |
1590 ns16k-whitechapel-* ) | |
1591 machine=mg1 | |
1592 ## We don't know what sort of OS runs on these; we'll let the | |
1593 ## operating system guessing code below try. | |
1594 ;; | |
1595 | |
1596 ## Wicat | |
1597 m68*-wicat-sysv* ) | |
1598 machine=wicat opsys=usg5-2 | |
1599 ;; | |
1600 | |
1601 ## Intel 386 machines where we don't care about the manufacturer | |
1602 i[3456]86-*-* ) | |
1603 machine=intel386 | |
1604 case "${canonical}" in | |
29654 | 1605 *-lynxos* ) opsys=lynxos ;; |
25897 | 1606 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
1607 *-isc2.2* ) opsys=isc2-2 ;; | |
1608 *-isc4.0* ) opsys=isc4-0 ;; | |
1609 *-isc4.* ) opsys=isc4-1 | |
1610 GCC_TEST_OPTIONS=-posix | |
1611 NON_GCC_TEST_OPTIONS=-Xp | |
1612 ;; | |
1613 *-isc* ) opsys=isc3-0 ;; | |
1614 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
1615 *-esix* ) opsys=esix ;; | |
1616 *-xenix* ) opsys=xenix ;; | |
1617 *-linux-gnu* ) opsys=gnu-linux ;; | |
1618 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
1619 *-sco3.2v5* ) opsys=sco5 | |
1620 NON_GNU_CPP=/lib/cpp | |
1621 # Prevent -belf from being passed to $CPP. | |
1622 # /lib/cpp does not accept it. | |
1623 OVERRIDE_CPPFLAGS=" " | |
1624 ;; | |
1625 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
1626 *-386bsd* ) opsys=386bsd ;; | |
1627 *-freebsd* ) opsys=freebsd ;; | |
1628 *-nextstep* ) opsys=nextstep ;; | |
1629 ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
1630 esac | |
1631 ;; | |
1632 | |
1633 ## m68k Linux-based GNU system | |
1634 m68k-*-linux-gnu* ) | |
1635 machine=m68k opsys=gnu-linux | |
1636 ;; | |
1637 | |
1638 ## Mips Linux-based GNU system | |
1639 mips-*-linux-gnu* ) | |
1640 machine=mips opsys=gnu-linux | |
1641 ;; | |
1642 | |
1643 ## UXP/DS | |
1644 sparc-fujitsu-sysv4* ) | |
1645 machine=sparc opsys=uxpds | |
1646 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1647 RANLIB="ar -ts" | |
1648 ;; | |
1649 | |
1650 ## UXP/V | |
1651 f301-fujitsu-uxpv4.1) | |
1652 machine=f301 opsys=uxpv | |
1653 ;; | |
1654 | |
1655 * ) | |
1656 unported=yes | |
1657 ;; | |
1658 esac | |
1659 | |
1660 ### If the code above didn't choose an operating system, just choose | |
1661 ### an operating system based on the configuration name. You really | |
1662 ### only want to use this when you have no idea what the right | |
1663 ### operating system is; if you know what operating systems a machine | |
1664 ### runs, it's cleaner to make it explicit in the case statement | |
1665 ### above. | |
1666 if test x"${opsys}" = x; then | |
1667 case "${canonical}" in | |
1668 *-gnu* ) opsys=gnu ;; | |
1669 *-bsd4.[01] ) opsys=bsd4-1 ;; | |
1670 *-bsd4.2 ) opsys=bsd4-2 ;; | |
1671 *-bsd4.3 ) opsys=bsd4-3 ;; | |
1672 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
1673 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
1674 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
1675 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
1676 *-sysv4.2uw* ) opsys=unixware ;; | |
1677 *-sysv4.1* | *-sysvr4.1* ) | |
1678 NON_GNU_CPP=/usr/lib/cpp | |
1679 opsys=usg5-4 ;; | |
1680 *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
1681 if [ x$NON_GNU_CPP = x ]; then | |
1682 if [ -f /usr/ccs/lib/cpp ]; then | |
1683 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1684 else | |
1685 NON_GNU_CPP=/lib/cpp | |
1686 fi | |
1687 fi | |
1688 opsys=usg5-4-2 ;; | |
1689 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
1690 * ) | |
1691 unported=yes | |
1692 ;; | |
1693 esac | |
1694 fi | |
1695 | |
1696 | |
1697 if test $unported = yes; then | |
1698 { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems. | |
1699 Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; } | |
1700 fi | |
1701 | |
1702 machfile="m/${machine}.h" | |
1703 opsysfile="s/${opsys}.h" | |
1704 | |
1705 | |
1706 #### Choose a compiler. | |
1707 test -n "$CC" && cc_specified=yes | |
1708 | |
1709 # Save the value of CFLAGS that the user specified. | |
1710 SPECIFIED_CFLAGS="$CFLAGS" | |
1711 | |
1712 case ${with_gcc} in | |
1713 "yes" ) CC="gcc" GCC=yes ;; | |
1714 "no" ) : ${CC=cc} ;; | |
1715 * ) # Extract the first word of "gcc", so it can be a program name with args. | |
1716 set dummy gcc; ac_word=$2 | |
1717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
29834 | 1718 echo "configure:1719: checking for $ac_word" >&5 |
25897 | 1719 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1720 echo $ac_n "(cached) $ac_c" 1>&6 | |
1721 else | |
1722 if test -n "$CC"; then | |
1723 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1724 else | |
27205 | 1725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1726 ac_dummy="$PATH" | |
1727 for ac_dir in $ac_dummy; do | |
25897 | 1728 test -z "$ac_dir" && ac_dir=. |
1729 if test -f $ac_dir/$ac_word; then | |
1730 ac_cv_prog_CC="gcc" | |
1731 break | |
1732 fi | |
1733 done | |
1734 IFS="$ac_save_ifs" | |
1735 fi | |
1736 fi | |
1737 CC="$ac_cv_prog_CC" | |
1738 if test -n "$CC"; then | |
1739 echo "$ac_t""$CC" 1>&6 | |
1740 else | |
1741 echo "$ac_t""no" 1>&6 | |
1742 fi | |
1743 | |
1744 if test -z "$CC"; then | |
1745 # Extract the first word of "cc", so it can be a program name with args. | |
1746 set dummy cc; ac_word=$2 | |
1747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
29834 | 1748 echo "configure:1749: checking for $ac_word" >&5 |
25897 | 1749 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1750 echo $ac_n "(cached) $ac_c" 1>&6 | |
1751 else | |
1752 if test -n "$CC"; then | |
1753 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1754 else | |
27205 | 1755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
25897 | 1756 ac_prog_rejected=no |
27205 | 1757 ac_dummy="$PATH" |
1758 for ac_dir in $ac_dummy; do | |
25897 | 1759 test -z "$ac_dir" && ac_dir=. |
1760 if test -f $ac_dir/$ac_word; then | |
1761 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1762 ac_prog_rejected=yes | |
1763 continue | |
1764 fi | |
1765 ac_cv_prog_CC="cc" | |
1766 break | |
1767 fi | |
1768 done | |
1769 IFS="$ac_save_ifs" | |
1770 if test $ac_prog_rejected = yes; then | |
1771 # We found a bogon in the path, so make sure we never use it. | |
1772 set dummy $ac_cv_prog_CC | |
1773 shift | |
1774 if test $# -gt 0; then | |
1775 # We chose a different compiler from the bogus one. | |
1776 # However, it has the same basename, so the bogon will be chosen | |
1777 # first if we set CC to just the basename; use the full file name. | |
1778 shift | |
1779 set dummy "$ac_dir/$ac_word" "$@" | |
1780 shift | |
1781 ac_cv_prog_CC="$@" | |
1782 fi | |
1783 fi | |
1784 fi | |
1785 fi | |
1786 CC="$ac_cv_prog_CC" | |
1787 if test -n "$CC"; then | |
1788 echo "$ac_t""$CC" 1>&6 | |
1789 else | |
1790 echo "$ac_t""no" 1>&6 | |
1791 fi | |
1792 | |
27205 | 1793 if test -z "$CC"; then |
1794 case "`uname -s`" in | |
1795 *win32* | *WIN32*) | |
1796 # Extract the first word of "cl", so it can be a program name with args. | |
1797 set dummy cl; ac_word=$2 | |
1798 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
29834 | 1799 echo "configure:1800: checking for $ac_word" >&5 |
27205 | 1800 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1801 echo $ac_n "(cached) $ac_c" 1>&6 | |
1802 else | |
1803 if test -n "$CC"; then | |
1804 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1805 else | |
1806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1807 ac_dummy="$PATH" | |
1808 for ac_dir in $ac_dummy; do | |
1809 test -z "$ac_dir" && ac_dir=. | |
1810 if test -f $ac_dir/$ac_word; then | |
1811 ac_cv_prog_CC="cl" | |
1812 break | |
1813 fi | |
1814 done | |
1815 IFS="$ac_save_ifs" | |
1816 fi | |
1817 fi | |
1818 CC="$ac_cv_prog_CC" | |
1819 if test -n "$CC"; then | |
1820 echo "$ac_t""$CC" 1>&6 | |
1821 else | |
1822 echo "$ac_t""no" 1>&6 | |
1823 fi | |
1824 ;; | |
1825 esac | |
1826 fi | |
25897 | 1827 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1828 fi | |
1829 | |
1830 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
29834 | 1831 echo "configure:1832: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
25897 | 1832 |
1833 ac_ext=c | |
1834 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1835 ac_cpp='$CPP $CPPFLAGS' | |
1836 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
27205 | 1837 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
25897 | 1838 cross_compiling=$ac_cv_prog_cc_cross |
1839 | |
27205 | 1840 cat > conftest.$ac_ext << EOF |
1841 | |
29834 | 1842 #line 1843 "configure" |
25897 | 1843 #include "confdefs.h" |
27205 | 1844 |
25897 | 1845 main(){return(0);} |
1846 EOF | |
29834 | 1847 if { (eval echo configure:1848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 1848 ac_cv_prog_cc_works=yes |
1849 # If we can't run a trivial program, we are probably using a cross compiler. | |
1850 if (./conftest; exit) 2>/dev/null; then | |
1851 ac_cv_prog_cc_cross=no | |
1852 else | |
1853 ac_cv_prog_cc_cross=yes | |
1854 fi | |
1855 else | |
1856 echo "configure: failed program was:" >&5 | |
1857 cat conftest.$ac_ext >&5 | |
1858 ac_cv_prog_cc_works=no | |
1859 fi | |
1860 rm -fr conftest* | |
27205 | 1861 ac_ext=c |
1862 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1863 ac_cpp='$CPP $CPPFLAGS' | |
1864 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1865 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1866 cross_compiling=$ac_cv_prog_cc_cross | |
25897 | 1867 |
1868 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1869 if test $ac_cv_prog_cc_works = no; then | |
1870 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1871 fi | |
1872 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
29834 | 1873 echo "configure:1874: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
25897 | 1874 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1875 cross_compiling=$ac_cv_prog_cc_cross | |
1876 | |
1877 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
29834 | 1878 echo "configure:1879: checking whether we are using GNU C" >&5 |
25897 | 1879 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1880 echo $ac_n "(cached) $ac_c" 1>&6 | |
1881 else | |
1882 cat > conftest.c <<EOF | |
1883 #ifdef __GNUC__ | |
1884 yes; | |
1885 #endif | |
1886 EOF | |
29834 | 1887 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
25897 | 1888 ac_cv_prog_gcc=yes |
1889 else | |
1890 ac_cv_prog_gcc=no | |
1891 fi | |
1892 fi | |
1893 | |
1894 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1895 | |
1896 if test $ac_cv_prog_gcc = yes; then | |
1897 GCC=yes | |
27205 | 1898 else |
1899 GCC= | |
1900 fi | |
1901 | |
1902 ac_test_CFLAGS="${CFLAGS+set}" | |
1903 ac_save_CFLAGS="$CFLAGS" | |
1904 CFLAGS= | |
1905 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
29834 | 1906 echo "configure:1907: checking whether ${CC-cc} accepts -g" >&5 |
25897 | 1907 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1908 echo $ac_n "(cached) $ac_c" 1>&6 | |
1909 else | |
1910 echo 'void f(){}' > conftest.c | |
1911 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1912 ac_cv_prog_cc_g=yes | |
1913 else | |
1914 ac_cv_prog_cc_g=no | |
1915 fi | |
1916 rm -f conftest* | |
1917 | |
1918 fi | |
1919 | |
1920 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
27205 | 1921 if test "$ac_test_CFLAGS" = set; then |
1922 CFLAGS="$ac_save_CFLAGS" | |
1923 elif test $ac_cv_prog_cc_g = yes; then | |
1924 if test "$GCC" = yes; then | |
25897 | 1925 CFLAGS="-g -O2" |
1926 else | |
27205 | 1927 CFLAGS="-g" |
25897 | 1928 fi |
1929 else | |
27205 | 1930 if test "$GCC" = yes; then |
1931 CFLAGS="-O2" | |
1932 else | |
1933 CFLAGS= | |
1934 fi | |
25897 | 1935 fi |
1936 | |
1937 esac | |
1938 | |
1939 # On Suns, sometimes $CPP names a directory. | |
1940 if test -n "$CPP" && test -d "$CPP"; then | |
1941 CPP= | |
1942 fi | |
1943 | |
1944 #### Some systems specify a CPP to use unless we are using GCC. | |
1945 #### Now that we know whether we are using GCC, we can decide whether | |
1946 #### to use that one. | |
1947 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
1948 then | |
1949 CPP="$NON_GNU_CPP" | |
1950 fi | |
1951 | |
1952 #### Some systems specify a CC 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_CC" != x && test x$GCC != xyes && | |
1956 test x$cc_specified != xyes | |
1957 then | |
1958 CC="$NON_GNU_CC" | |
1959 fi | |
1960 | |
1961 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
1962 then | |
1963 CC="$CC $GCC_TEST_OPTIONS" | |
1964 fi | |
1965 | |
1966 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
1967 then | |
1968 CC="$CC $NON_GCC_TEST_OPTIONS" | |
1969 fi | |
1970 | |
1971 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x | |
1972 then | |
1973 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
1974 fi | |
1975 | |
1976 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
1977 then | |
1978 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
1979 fi | |
1980 | |
1981 #### Some other nice autoconf tests. If you add a test here which | |
1982 #### should make an entry in src/config.h, don't forget to add an | |
1983 #### #undef clause to src/config.h.in for autoconf to modify. | |
1984 | |
1985 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
29834 | 1986 echo "configure:1987: checking whether ln -s works" >&5 |
25897 | 1987 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1988 echo $ac_n "(cached) $ac_c" 1>&6 | |
1989 else | |
1990 rm -f conftestdata | |
1991 if ln -s X conftestdata 2>/dev/null | |
1992 then | |
1993 rm -f conftestdata | |
1994 ac_cv_prog_LN_S="ln -s" | |
1995 else | |
1996 ac_cv_prog_LN_S=ln | |
1997 fi | |
1998 fi | |
1999 LN_S="$ac_cv_prog_LN_S" | |
2000 if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
2001 echo "$ac_t""yes" 1>&6 | |
2002 else | |
2003 echo "$ac_t""no" 1>&6 | |
2004 fi | |
2005 | |
2006 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
29834 | 2007 echo "configure:2008: checking how to run the C preprocessor" >&5 |
25897 | 2008 # On Suns, sometimes $CPP names a directory. |
2009 if test -n "$CPP" && test -d "$CPP"; then | |
2010 CPP= | |
2011 fi | |
2012 if test -z "$CPP"; then | |
2013 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
2014 echo $ac_n "(cached) $ac_c" 1>&6 | |
2015 else | |
2016 # This must be in double quotes, not single quotes, because CPP may get | |
2017 # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2018 CPP="${CC-cc} -E" | |
2019 # On the NeXT, cc -E runs the code through the compiler's parser, | |
2020 # not just through cpp. | |
2021 cat > conftest.$ac_ext <<EOF | |
29834 | 2022 #line 2023 "configure" |
25897 | 2023 #include "confdefs.h" |
2024 #include <assert.h> | |
2025 Syntax Error | |
2026 EOF | |
2027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 2028 { (eval echo configure:2029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 2030 if test -z "$ac_err"; then |
2031 : | |
2032 else | |
2033 echo "$ac_err" >&5 | |
2034 echo "configure: failed program was:" >&5 | |
2035 cat conftest.$ac_ext >&5 | |
2036 rm -rf conftest* | |
2037 CPP="${CC-cc} -E -traditional-cpp" | |
2038 cat > conftest.$ac_ext <<EOF | |
29834 | 2039 #line 2040 "configure" |
25897 | 2040 #include "confdefs.h" |
2041 #include <assert.h> | |
2042 Syntax Error | |
2043 EOF | |
2044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 2045 { (eval echo configure:2046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2047 if test -z "$ac_err"; then | |
2048 : | |
2049 else | |
2050 echo "$ac_err" >&5 | |
2051 echo "configure: failed program was:" >&5 | |
2052 cat conftest.$ac_ext >&5 | |
2053 rm -rf conftest* | |
2054 CPP="${CC-cc} -nologo -E" | |
2055 cat > conftest.$ac_ext <<EOF | |
29834 | 2056 #line 2057 "configure" |
27205 | 2057 #include "confdefs.h" |
2058 #include <assert.h> | |
2059 Syntax Error | |
2060 EOF | |
2061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 2062 { (eval echo configure:2063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 2064 if test -z "$ac_err"; then |
2065 : | |
2066 else | |
2067 echo "$ac_err" >&5 | |
2068 echo "configure: failed program was:" >&5 | |
2069 cat conftest.$ac_ext >&5 | |
2070 rm -rf conftest* | |
2071 CPP=/lib/cpp | |
2072 fi | |
2073 rm -f conftest* | |
2074 fi | |
2075 rm -f conftest* | |
27205 | 2076 fi |
2077 rm -f conftest* | |
25897 | 2078 ac_cv_prog_CPP="$CPP" |
2079 fi | |
2080 CPP="$ac_cv_prog_CPP" | |
2081 else | |
2082 ac_cv_prog_CPP="$CPP" | |
2083 fi | |
2084 echo "$ac_t""$CPP" 1>&6 | |
2085 | |
2086 # Find a good install program. We prefer a C program (faster), | |
2087 # so one script is as good as another. But avoid the broken or | |
2088 # incompatible versions: | |
2089 # SysV /etc/install, /usr/sbin/install | |
2090 # SunOS /usr/etc/install | |
2091 # IRIX /sbin/install | |
2092 # AIX /bin/install | |
27205 | 2093 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
25897 | 2094 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2095 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2096 # ./install, which can be erroneously created by make from ./install.sh. | |
2097 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
29834 | 2098 echo "configure:2099: checking for a BSD compatible install" >&5 |
25897 | 2099 if test -z "$INSTALL"; then |
2100 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
2101 echo $ac_n "(cached) $ac_c" 1>&6 | |
2102 else | |
27205 | 2103 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
25897 | 2104 for ac_dir in $PATH; do |
2105 # Account for people who put trailing slashes in PATH elements. | |
2106 case "$ac_dir/" in | |
2107 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
2108 *) | |
2109 # OSF1 and SCO ODT 3.0 have their own names for install. | |
27205 | 2110 # Don't use installbsd from OSF since it installs stuff as root |
2111 # by default. | |
2112 for ac_prog in ginstall scoinst install; do | |
25897 | 2113 if test -f $ac_dir/$ac_prog; then |
2114 if test $ac_prog = install && | |
2115 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
2116 # AIX install. It has an incompatible calling convention. | |
2117 : | |
2118 else | |
2119 ac_cv_path_install="$ac_dir/$ac_prog -c" | |
2120 break 2 | |
2121 fi | |
2122 fi | |
2123 done | |
2124 ;; | |
2125 esac | |
2126 done | |
2127 IFS="$ac_save_IFS" | |
2128 | |
2129 fi | |
2130 if test "${ac_cv_path_install+set}" = set; then | |
2131 INSTALL="$ac_cv_path_install" | |
2132 else | |
2133 # As a last resort, use the slow shell script. We don't cache a | |
2134 # path for INSTALL within a source directory, because that will | |
2135 # break other packages using the cache if that directory is | |
2136 # removed, or if the path is relative. | |
2137 INSTALL="$ac_install_sh" | |
2138 fi | |
2139 fi | |
2140 echo "$ac_t""$INSTALL" 1>&6 | |
2141 | |
2142 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2143 # It thinks the first close brace ends the variable substitution. | |
2144 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2145 | |
27205 | 2146 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
2147 | |
25897 | 2148 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2149 | |
2150 for ac_prog in 'bison -y' byacc | |
2151 do | |
2152 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2153 set dummy $ac_prog; ac_word=$2 | |
2154 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
29834 | 2155 echo "configure:2156: checking for $ac_word" >&5 |
25897 | 2156 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
2157 echo $ac_n "(cached) $ac_c" 1>&6 | |
2158 else | |
2159 if test -n "$YACC"; then | |
2160 ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
2161 else | |
27205 | 2162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2163 ac_dummy="$PATH" | |
2164 for ac_dir in $ac_dummy; do | |
25897 | 2165 test -z "$ac_dir" && ac_dir=. |
2166 if test -f $ac_dir/$ac_word; then | |
2167 ac_cv_prog_YACC="$ac_prog" | |
2168 break | |
2169 fi | |
2170 done | |
2171 IFS="$ac_save_ifs" | |
2172 fi | |
2173 fi | |
2174 YACC="$ac_cv_prog_YACC" | |
2175 if test -n "$YACC"; then | |
2176 echo "$ac_t""$YACC" 1>&6 | |
2177 else | |
2178 echo "$ac_t""no" 1>&6 | |
2179 fi | |
2180 | |
2181 test -n "$YACC" && break | |
2182 done | |
2183 test -n "$YACC" || YACC="yacc" | |
2184 | |
28060 | 2185 if test "x$RANLIB" = x; then |
2186 # Extract the first word of "ranlib", so it can be a program name with args. | |
2187 set dummy ranlib; ac_word=$2 | |
2188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
29834 | 2189 echo "configure:2190: checking for $ac_word" >&5 |
28060 | 2190 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2191 echo $ac_n "(cached) $ac_c" 1>&6 | |
2192 else | |
2193 if test -n "$RANLIB"; then | |
2194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2195 else | |
2196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2197 ac_dummy="$PATH" | |
2198 for ac_dir in $ac_dummy; do | |
2199 test -z "$ac_dir" && ac_dir=. | |
2200 if test -f $ac_dir/$ac_word; then | |
2201 ac_cv_prog_RANLIB="ranlib" | |
2202 break | |
2203 fi | |
2204 done | |
2205 IFS="$ac_save_ifs" | |
2206 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
2207 fi | |
2208 fi | |
2209 RANLIB="$ac_cv_prog_RANLIB" | |
2210 if test -n "$RANLIB"; then | |
2211 echo "$ac_t""$RANLIB" 1>&6 | |
2212 else | |
2213 echo "$ac_t""no" 1>&6 | |
2214 fi | |
2215 | |
2216 fi | |
25897 | 2217 |
2218 echo $ac_n "checking for AIX""... $ac_c" 1>&6 | |
29834 | 2219 echo "configure:2220: checking for AIX" >&5 |
25897 | 2220 cat > conftest.$ac_ext <<EOF |
29834 | 2221 #line 2222 "configure" |
25897 | 2222 #include "confdefs.h" |
2223 #ifdef _AIX | |
2224 yes | |
2225 #endif | |
2226 | |
2227 EOF | |
2228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2229 egrep "yes" >/dev/null 2>&1; then | |
2230 rm -rf conftest* | |
2231 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | |
2232 #define _ALL_SOURCE 1 | |
2233 EOF | |
2234 | |
2235 else | |
2236 rm -rf conftest* | |
2237 echo "$ac_t""no" 1>&6 | |
2238 fi | |
2239 rm -f conftest* | |
2240 | |
2241 | |
2242 | |
2243 # Sound support for GNU/Linux and the free BSDs. | |
2244 for ac_hdr in machine/soundcard.h sys/soundcard.h | |
2245 do | |
2246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29834 | 2248 echo "configure:2249: checking for $ac_hdr" >&5 |
25897 | 2249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2250 echo $ac_n "(cached) $ac_c" 1>&6 | |
2251 else | |
2252 cat > conftest.$ac_ext <<EOF | |
29834 | 2253 #line 2254 "configure" |
25897 | 2254 #include "confdefs.h" |
2255 #include <$ac_hdr> | |
2256 EOF | |
2257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 2258 { (eval echo configure:2259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 2260 if test -z "$ac_err"; then |
2261 rm -rf conftest* | |
2262 eval "ac_cv_header_$ac_safe=yes" | |
2263 else | |
2264 echo "$ac_err" >&5 | |
2265 echo "configure: failed program was:" >&5 | |
2266 cat conftest.$ac_ext >&5 | |
2267 rm -rf conftest* | |
2268 eval "ac_cv_header_$ac_safe=no" | |
2269 fi | |
2270 rm -f conftest* | |
2271 fi | |
2272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2273 echo "$ac_t""yes" 1>&6 | |
2274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2275 cat >> confdefs.h <<EOF | |
2276 #define $ac_tr_hdr 1 | |
2277 EOF | |
2278 | |
2279 else | |
2280 echo "$ac_t""no" 1>&6 | |
2281 fi | |
2282 done | |
2283 | |
2284 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2285 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
|
2286 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
29834 | 2287 termcap.h stdio_ext.h fcntl.h sys/fcntl.h |
25897 | 2288 do |
2289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29834 | 2291 echo "configure:2292: checking for $ac_hdr" >&5 |
25897 | 2292 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2293 echo $ac_n "(cached) $ac_c" 1>&6 | |
2294 else | |
2295 cat > conftest.$ac_ext <<EOF | |
29834 | 2296 #line 2297 "configure" |
25897 | 2297 #include "confdefs.h" |
2298 #include <$ac_hdr> | |
2299 EOF | |
2300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 2301 { (eval echo configure:2302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 2303 if test -z "$ac_err"; then |
2304 rm -rf conftest* | |
2305 eval "ac_cv_header_$ac_safe=yes" | |
2306 else | |
2307 echo "$ac_err" >&5 | |
2308 echo "configure: failed program was:" >&5 | |
2309 cat conftest.$ac_ext >&5 | |
2310 rm -rf conftest* | |
2311 eval "ac_cv_header_$ac_safe=no" | |
2312 fi | |
2313 rm -f conftest* | |
2314 fi | |
2315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2316 echo "$ac_t""yes" 1>&6 | |
2317 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2318 cat >> confdefs.h <<EOF | |
2319 #define $ac_tr_hdr 1 | |
2320 EOF | |
2321 | |
2322 else | |
2323 echo "$ac_t""no" 1>&6 | |
2324 fi | |
2325 done | |
2326 | |
2327 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
29834 | 2328 echo "configure:2329: checking for ANSI C header files" >&5 |
25897 | 2329 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2330 echo $ac_n "(cached) $ac_c" 1>&6 | |
2331 else | |
2332 cat > conftest.$ac_ext <<EOF | |
29834 | 2333 #line 2334 "configure" |
25897 | 2334 #include "confdefs.h" |
2335 #include <stdlib.h> | |
2336 #include <stdarg.h> | |
2337 #include <string.h> | |
2338 #include <float.h> | |
2339 EOF | |
2340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 2341 { (eval echo configure:2342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 2342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 2343 if test -z "$ac_err"; then |
2344 rm -rf conftest* | |
2345 ac_cv_header_stdc=yes | |
2346 else | |
2347 echo "$ac_err" >&5 | |
2348 echo "configure: failed program was:" >&5 | |
2349 cat conftest.$ac_ext >&5 | |
2350 rm -rf conftest* | |
2351 ac_cv_header_stdc=no | |
2352 fi | |
2353 rm -f conftest* | |
2354 | |
2355 if test $ac_cv_header_stdc = yes; then | |
2356 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2357 cat > conftest.$ac_ext <<EOF | |
29834 | 2358 #line 2359 "configure" |
25897 | 2359 #include "confdefs.h" |
2360 #include <string.h> | |
2361 EOF | |
2362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2363 egrep "memchr" >/dev/null 2>&1; then | |
2364 : | |
2365 else | |
2366 rm -rf conftest* | |
2367 ac_cv_header_stdc=no | |
2368 fi | |
2369 rm -f conftest* | |
2370 | |
2371 fi | |
2372 | |
2373 if test $ac_cv_header_stdc = yes; then | |
2374 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2375 cat > conftest.$ac_ext <<EOF | |
29834 | 2376 #line 2377 "configure" |
25897 | 2377 #include "confdefs.h" |
2378 #include <stdlib.h> | |
2379 EOF | |
2380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2381 egrep "free" >/dev/null 2>&1; then | |
2382 : | |
2383 else | |
2384 rm -rf conftest* | |
2385 ac_cv_header_stdc=no | |
2386 fi | |
2387 rm -f conftest* | |
2388 | |
2389 fi | |
2390 | |
2391 if test $ac_cv_header_stdc = yes; then | |
2392 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2393 if test "$cross_compiling" = yes; then | |
2394 : | |
2395 else | |
2396 cat > conftest.$ac_ext <<EOF | |
29834 | 2397 #line 2398 "configure" |
25897 | 2398 #include "confdefs.h" |
2399 #include <ctype.h> | |
2400 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2401 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2403 int main () { int i; for (i = 0; i < 256; i++) | |
2404 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
2405 exit (0); } | |
2406 | |
2407 EOF | |
29834 | 2408 if { (eval echo configure:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
25897 | 2409 then |
2410 : | |
2411 else | |
2412 echo "configure: failed program was:" >&5 | |
2413 cat conftest.$ac_ext >&5 | |
2414 rm -fr conftest* | |
2415 ac_cv_header_stdc=no | |
2416 fi | |
2417 rm -fr conftest* | |
2418 fi | |
2419 | |
2420 fi | |
2421 fi | |
2422 | |
2423 echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
2424 if test $ac_cv_header_stdc = yes; then | |
2425 cat >> confdefs.h <<\EOF | |
2426 #define STDC_HEADERS 1 | |
2427 EOF | |
2428 | |
2429 fi | |
2430 | |
2431 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
29834 | 2432 echo "configure:2433: checking whether time.h and sys/time.h may both be included" >&5 |
25897 | 2433 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
2434 echo $ac_n "(cached) $ac_c" 1>&6 | |
2435 else | |
2436 cat > conftest.$ac_ext <<EOF | |
29834 | 2437 #line 2438 "configure" |
25897 | 2438 #include "confdefs.h" |
2439 #include <sys/types.h> | |
2440 #include <sys/time.h> | |
2441 #include <time.h> | |
2442 int main() { | |
2443 struct tm *tp; | |
2444 ; return 0; } | |
2445 EOF | |
29834 | 2446 if { (eval echo configure:2447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2447 rm -rf conftest* |
2448 ac_cv_header_time=yes | |
2449 else | |
2450 echo "configure: failed program was:" >&5 | |
2451 cat conftest.$ac_ext >&5 | |
2452 rm -rf conftest* | |
2453 ac_cv_header_time=no | |
2454 fi | |
2455 rm -f conftest* | |
2456 fi | |
2457 | |
2458 echo "$ac_t""$ac_cv_header_time" 1>&6 | |
2459 if test $ac_cv_header_time = yes; then | |
2460 cat >> confdefs.h <<\EOF | |
2461 #define TIME_WITH_SYS_TIME 1 | |
2462 EOF | |
2463 | |
2464 fi | |
2465 | |
2466 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | |
29834 | 2467 echo "configure:2468: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
25897 | 2468 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
2469 echo $ac_n "(cached) $ac_c" 1>&6 | |
2470 else | |
2471 cat > conftest.$ac_ext <<EOF | |
29834 | 2472 #line 2473 "configure" |
25897 | 2473 #include "confdefs.h" |
2474 #include <sys/types.h> | |
2475 #include <signal.h> | |
2476 /* NetBSD declares sys_siglist in unistd.h. */ | |
2477 #ifdef HAVE_UNISTD_H | |
2478 #include <unistd.h> | |
2479 #endif | |
2480 int main() { | |
2481 char *msg = *(sys_siglist + 1); | |
2482 ; return 0; } | |
2483 EOF | |
29834 | 2484 if { (eval echo configure:2485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2485 rm -rf conftest* |
2486 ac_cv_decl_sys_siglist=yes | |
2487 else | |
2488 echo "configure: failed program was:" >&5 | |
2489 cat conftest.$ac_ext >&5 | |
2490 rm -rf conftest* | |
2491 ac_cv_decl_sys_siglist=no | |
2492 fi | |
2493 rm -f conftest* | |
2494 fi | |
2495 | |
2496 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 | |
2497 if test $ac_cv_decl_sys_siglist = yes; then | |
2498 cat >> confdefs.h <<\EOF | |
2499 #define SYS_SIGLIST_DECLARED 1 | |
2500 EOF | |
2501 | |
2502 fi | |
2503 | |
2504 | |
2505 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 | |
29834 | 2506 echo "configure:2507: checking for struct utimbuf" >&5 |
25897 | 2507 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then |
2508 echo $ac_n "(cached) $ac_c" 1>&6 | |
2509 else | |
2510 cat > conftest.$ac_ext <<EOF | |
29834 | 2511 #line 2512 "configure" |
25897 | 2512 #include "confdefs.h" |
2513 #ifdef TIME_WITH_SYS_TIME | |
2514 #include <sys/time.h> | |
2515 #include <time.h> | |
2516 #else | |
2517 #ifdef HAVE_SYS_TIME_H | |
2518 #include <sys/time.h> | |
2519 #else | |
2520 #include <time.h> | |
2521 #endif | |
2522 #endif | |
2523 #ifdef HAVE_UTIME_H | |
2524 #include <utime.h> | |
2525 #endif | |
2526 int main() { | |
2527 static struct utimbuf x; x.actime = x.modtime; | |
2528 ; return 0; } | |
2529 EOF | |
29834 | 2530 if { (eval echo configure:2531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2531 rm -rf conftest* |
2532 emacs_cv_struct_utimbuf=yes | |
2533 else | |
2534 echo "configure: failed program was:" >&5 | |
2535 cat conftest.$ac_ext >&5 | |
2536 rm -rf conftest* | |
2537 emacs_cv_struct_utimbuf=no | |
2538 fi | |
2539 rm -f conftest* | |
2540 fi | |
2541 | |
2542 echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6 | |
2543 if test $emacs_cv_struct_utimbuf = yes; then | |
2544 cat >> confdefs.h <<\EOF | |
2545 #define HAVE_STRUCT_UTIMBUF 1 | |
2546 EOF | |
2547 | |
2548 fi | |
2549 | |
2550 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | |
29834 | 2551 echo "configure:2552: checking return type of signal handlers" >&5 |
25897 | 2552 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
2553 echo $ac_n "(cached) $ac_c" 1>&6 | |
2554 else | |
2555 cat > conftest.$ac_ext <<EOF | |
29834 | 2556 #line 2557 "configure" |
25897 | 2557 #include "confdefs.h" |
2558 #include <sys/types.h> | |
2559 #include <signal.h> | |
2560 #ifdef signal | |
2561 #undef signal | |
2562 #endif | |
2563 #ifdef __cplusplus | |
2564 extern "C" void (*signal (int, void (*)(int)))(int); | |
2565 #else | |
2566 void (*signal ()) (); | |
2567 #endif | |
2568 | |
2569 int main() { | |
2570 int i; | |
2571 ; return 0; } | |
2572 EOF | |
29834 | 2573 if { (eval echo configure:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2574 rm -rf conftest* |
2575 ac_cv_type_signal=void | |
2576 else | |
2577 echo "configure: failed program was:" >&5 | |
2578 cat conftest.$ac_ext >&5 | |
2579 rm -rf conftest* | |
2580 ac_cv_type_signal=int | |
2581 fi | |
2582 rm -f conftest* | |
2583 fi | |
2584 | |
2585 echo "$ac_t""$ac_cv_type_signal" 1>&6 | |
2586 cat >> confdefs.h <<EOF | |
2587 #define RETSIGTYPE $ac_cv_type_signal | |
2588 EOF | |
2589 | |
2590 | |
2591 | |
29254 | 2592 echo $ac_n "checking for speed_t""... $ac_c" 1>&6 |
29834 | 2593 echo "configure:2594: checking for speed_t" >&5 |
29254 | 2594 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then |
2595 echo $ac_n "(cached) $ac_c" 1>&6 | |
2596 else | |
2597 cat > conftest.$ac_ext <<EOF | |
29834 | 2598 #line 2599 "configure" |
29254 | 2599 #include "confdefs.h" |
2600 #include <termios.h> | |
2601 int main() { | |
2602 speed_t x = 1; | |
2603 ; return 0; } | |
2604 EOF | |
29834 | 2605 if { (eval echo configure:2606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29254 | 2606 rm -rf conftest* |
2607 emacs_cv_speed_t=yes | |
2608 else | |
2609 echo "configure: failed program was:" >&5 | |
2610 cat conftest.$ac_ext >&5 | |
2611 fi | |
2612 rm -f conftest* | |
2613 fi | |
2614 | |
2615 echo "$ac_t""$emacs_cv_speed_t" 1>&6 | |
2616 if test $emacs_cv_speed_t = yes; then | |
2617 cat >> confdefs.h <<\EOF | |
2618 #define HAVE_SPEED_T 1 | |
2619 EOF | |
2620 | |
2621 fi | |
2622 | |
25897 | 2623 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 |
29834 | 2624 echo "configure:2625: checking for struct timeval" >&5 |
25897 | 2625 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then |
2626 echo $ac_n "(cached) $ac_c" 1>&6 | |
2627 else | |
2628 cat > conftest.$ac_ext <<EOF | |
29834 | 2629 #line 2630 "configure" |
25897 | 2630 #include "confdefs.h" |
2631 #ifdef TIME_WITH_SYS_TIME | |
2632 #include <sys/time.h> | |
2633 #include <time.h> | |
2634 #else | |
2635 #ifdef HAVE_SYS_TIME_H | |
2636 #include <sys/time.h> | |
2637 #else | |
2638 #include <time.h> | |
2639 #endif | |
2640 #endif | |
2641 int main() { | |
2642 static struct timeval x; x.tv_sec = x.tv_usec; | |
2643 ; return 0; } | |
2644 EOF | |
29834 | 2645 if { (eval echo configure:2646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2646 rm -rf conftest* |
2647 emacs_cv_struct_timeval=yes | |
2648 else | |
2649 echo "configure: failed program was:" >&5 | |
2650 cat conftest.$ac_ext >&5 | |
2651 rm -rf conftest* | |
2652 emacs_cv_struct_timeval=no | |
2653 fi | |
2654 rm -f conftest* | |
2655 fi | |
2656 | |
2657 echo "$ac_t""$emacs_cv_struct_timeval" 1>&6 | |
2658 HAVE_TIMEVAL=$emacs_cv_struct_timeval | |
2659 if test $emacs_cv_struct_timeval = yes; then | |
2660 cat >> confdefs.h <<\EOF | |
2661 #define HAVE_TIMEVAL 1 | |
2662 EOF | |
2663 | |
2664 fi | |
2665 | |
29388 | 2666 echo $ac_n "checking for struct exception""... $ac_c" 1>&6 |
29834 | 2667 echo "configure:2668: checking for struct exception" >&5 |
29388 | 2668 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then |
2669 echo $ac_n "(cached) $ac_c" 1>&6 | |
2670 else | |
2671 cat > conftest.$ac_ext <<EOF | |
29834 | 2672 #line 2673 "configure" |
29388 | 2673 #include "confdefs.h" |
2674 #include <math.h> | |
2675 int main() { | |
2676 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; | |
2677 ; return 0; } | |
2678 EOF | |
29834 | 2679 if { (eval echo configure:2680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 2680 rm -rf conftest* |
2681 emacs_cv_struct_exception=yes | |
2682 else | |
2683 echo "configure: failed program was:" >&5 | |
2684 cat conftest.$ac_ext >&5 | |
2685 rm -rf conftest* | |
2686 emacs_cv_struct_exception=no | |
2687 fi | |
2688 rm -f conftest* | |
2689 fi | |
2690 | |
2691 echo "$ac_t""$emacs_cv_struct_exception" 1>&6 | |
2692 HAVE_EXCEPTION=$emacs_cv_struct_exception | |
2693 if test $emacs_cv_struct_exception != yes; then | |
2694 cat >> confdefs.h <<\EOF | |
2695 #define NO_MATHERR 1 | |
2696 EOF | |
2697 | |
2698 fi | |
2699 | |
25897 | 2700 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
29834 | 2701 echo "configure:2702: checking whether struct tm is in sys/time.h or time.h" >&5 |
25897 | 2702 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
2703 echo $ac_n "(cached) $ac_c" 1>&6 | |
2704 else | |
2705 cat > conftest.$ac_ext <<EOF | |
29834 | 2706 #line 2707 "configure" |
25897 | 2707 #include "confdefs.h" |
2708 #include <sys/types.h> | |
2709 #include <time.h> | |
2710 int main() { | |
2711 struct tm *tp; tp->tm_sec; | |
2712 ; return 0; } | |
2713 EOF | |
29834 | 2714 if { (eval echo configure:2715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2715 rm -rf conftest* |
2716 ac_cv_struct_tm=time.h | |
2717 else | |
2718 echo "configure: failed program was:" >&5 | |
2719 cat conftest.$ac_ext >&5 | |
2720 rm -rf conftest* | |
2721 ac_cv_struct_tm=sys/time.h | |
2722 fi | |
2723 rm -f conftest* | |
2724 fi | |
2725 | |
2726 echo "$ac_t""$ac_cv_struct_tm" 1>&6 | |
2727 if test $ac_cv_struct_tm = sys/time.h; then | |
2728 cat >> confdefs.h <<\EOF | |
2729 #define TM_IN_SYS_TIME 1 | |
2730 EOF | |
2731 | |
2732 fi | |
2733 | |
2734 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | |
29834 | 2735 echo "configure:2736: checking for tm_zone in struct tm" >&5 |
25897 | 2736 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
2737 echo $ac_n "(cached) $ac_c" 1>&6 | |
2738 else | |
2739 cat > conftest.$ac_ext <<EOF | |
29834 | 2740 #line 2741 "configure" |
25897 | 2741 #include "confdefs.h" |
2742 #include <sys/types.h> | |
2743 #include <$ac_cv_struct_tm> | |
2744 int main() { | |
2745 struct tm tm; tm.tm_zone; | |
2746 ; return 0; } | |
2747 EOF | |
29834 | 2748 if { (eval echo configure:2749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2749 rm -rf conftest* |
2750 ac_cv_struct_tm_zone=yes | |
2751 else | |
2752 echo "configure: failed program was:" >&5 | |
2753 cat conftest.$ac_ext >&5 | |
2754 rm -rf conftest* | |
2755 ac_cv_struct_tm_zone=no | |
2756 fi | |
2757 rm -f conftest* | |
2758 fi | |
2759 | |
2760 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 | |
2761 if test "$ac_cv_struct_tm_zone" = yes; then | |
2762 cat >> confdefs.h <<\EOF | |
2763 #define HAVE_TM_ZONE 1 | |
2764 EOF | |
2765 | |
2766 else | |
2767 echo $ac_n "checking for tzname""... $ac_c" 1>&6 | |
29834 | 2768 echo "configure:2769: checking for tzname" >&5 |
25897 | 2769 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
2770 echo $ac_n "(cached) $ac_c" 1>&6 | |
2771 else | |
2772 cat > conftest.$ac_ext <<EOF | |
29834 | 2773 #line 2774 "configure" |
25897 | 2774 #include "confdefs.h" |
2775 #include <time.h> | |
2776 #ifndef tzname /* For SGI. */ | |
2777 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
2778 #endif | |
2779 int main() { | |
2780 atoi(*tzname); | |
2781 ; return 0; } | |
2782 EOF | |
29834 | 2783 if { (eval echo configure:2784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 2784 rm -rf conftest* |
2785 ac_cv_var_tzname=yes | |
2786 else | |
2787 echo "configure: failed program was:" >&5 | |
2788 cat conftest.$ac_ext >&5 | |
2789 rm -rf conftest* | |
2790 ac_cv_var_tzname=no | |
2791 fi | |
2792 rm -f conftest* | |
2793 fi | |
2794 | |
2795 echo "$ac_t""$ac_cv_var_tzname" 1>&6 | |
2796 if test $ac_cv_var_tzname = yes; then | |
2797 cat >> confdefs.h <<\EOF | |
2798 #define HAVE_TZNAME 1 | |
2799 EOF | |
2800 | |
2801 fi | |
2802 fi | |
2803 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2804 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
29834 | 2805 echo "configure:2806: 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
|
2806 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
|
2807 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
|
2808 else |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2809 cat > conftest.$ac_ext <<EOF |
29834 | 2810 #line 2811 "configure" |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2811 #include "confdefs.h" |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2812 #include <time.h> |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2813 int main() { |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2814 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
|
2815 ; return 0; } |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2816 EOF |
29834 | 2817 if { (eval echo configure:2818: \"$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
|
2818 rm -rf conftest* |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2819 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
|
2820 else |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2821 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
|
2822 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
|
2823 rm -rf conftest* |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2824 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
|
2825 fi |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2826 rm -f conftest* |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2827 fi |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2828 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2829 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
|
2830 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
|
2831 cat >> confdefs.h <<\EOF |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2832 #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
|
2833 EOF |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2834 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2835 fi |
25897 | 2836 |
28060 | 2837 |
2838 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 | |
29834 | 2839 echo "configure:2840: checking for ${CC-cc} option to accept ANSI C" >&5 |
28060 | 2840 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then |
2841 echo $ac_n "(cached) $ac_c" 1>&6 | |
2842 else | |
2843 ac_cv_prog_cc_stdc=no | |
2844 ac_save_CC="$CC" | |
2845 # Don't try gcc -ansi; that turns off useful extensions and | |
2846 # breaks some systems' header files. | |
2847 # AIX -qlanglvl=ansi | |
2848 # Ultrix and OSF/1 -std1 | |
2849 # HP-UX 10.20 and later -Ae | |
2850 # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2851 # SVR4 -Xc -D__EXTENSIONS__ | |
2852 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2853 do | |
2854 CC="$ac_save_CC $ac_arg" | |
2855 cat > conftest.$ac_ext <<EOF | |
29834 | 2856 #line 2857 "configure" |
28060 | 2857 #include "confdefs.h" |
2858 #include <stdarg.h> | |
2859 #include <stdio.h> | |
2860 #include <sys/types.h> | |
2861 #include <sys/stat.h> | |
2862 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2863 struct buf { int x; }; | |
2864 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2865 static char *e (p, i) | |
2866 char **p; | |
2867 int i; | |
2868 { | |
2869 return p[i]; | |
2870 } | |
2871 static char *f (char * (*g) (char **, int), char **p, ...) | |
2872 { | |
2873 char *s; | |
2874 va_list v; | |
2875 va_start (v,p); | |
2876 s = g (p, va_arg (v,int)); | |
2877 va_end (v); | |
2878 return s; | |
2879 } | |
2880 int test (int i, double x); | |
2881 struct s1 {int (*f) (int a);}; | |
2882 struct s2 {int (*f) (double a);}; | |
2883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2884 int argc; | |
2885 char **argv; | |
2886 int main() { | |
2887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2888 ; return 0; } | |
2889 EOF | |
29834 | 2890 if { (eval echo configure:2891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
28060 | 2891 rm -rf conftest* |
2892 ac_cv_prog_cc_stdc="$ac_arg"; break | |
2893 else | |
2894 echo "configure: failed program was:" >&5 | |
2895 cat conftest.$ac_ext >&5 | |
2896 fi | |
2897 rm -f conftest* | |
2898 done | |
2899 CC="$ac_save_CC" | |
2900 | |
2901 fi | |
2902 | |
2903 case "x$ac_cv_prog_cc_stdc" in | |
2904 x|xno) | |
2905 echo "$ac_t""none needed" 1>&6 ;; | |
2906 *) | |
2907 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 | |
2908 CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2909 esac | |
2910 | |
2911 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 | |
29834 | 2912 echo "configure:2913: checking for function prototypes" >&5 |
28060 | 2913 if test "$ac_cv_prog_cc_stdc" != no; then |
2914 echo "$ac_t""yes" 1>&6 | |
2915 cat >> confdefs.h <<\EOF | |
2916 #define PROTOTYPES 1 | |
2917 EOF | |
2918 | |
2919 else | |
2920 echo "$ac_t""no" 1>&6 | |
2921 fi | |
2922 | |
2923 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 | |
29834 | 2924 echo "configure:2925: checking for working volatile" >&5 |
28060 | 2925 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then |
2926 echo $ac_n "(cached) $ac_c" 1>&6 | |
2927 else | |
2928 cat > conftest.$ac_ext <<EOF | |
29834 | 2929 #line 2930 "configure" |
28060 | 2930 #include "confdefs.h" |
2931 | |
2932 int main() { | |
2933 | |
2934 volatile int x; | |
2935 int * volatile y; | |
2936 ; return 0; } | |
2937 EOF | |
29834 | 2938 if { (eval echo configure:2939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
28060 | 2939 rm -rf conftest* |
2940 ac_cv_c_volatile=yes | |
2941 else | |
2942 echo "configure: failed program was:" >&5 | |
2943 cat conftest.$ac_ext >&5 | |
2944 rm -rf conftest* | |
2945 ac_cv_c_volatile=no | |
2946 fi | |
2947 rm -f conftest* | |
2948 fi | |
2949 | |
2950 echo "$ac_t""$ac_cv_c_volatile" 1>&6 | |
2951 if test $ac_cv_c_volatile = no; then | |
2952 cat >> confdefs.h <<\EOF | |
2953 #define volatile | |
2954 EOF | |
2955 | |
2956 fi | |
2957 | |
25897 | 2958 echo $ac_n "checking for working const""... $ac_c" 1>&6 |
29834 | 2959 echo "configure:2960: checking for working const" >&5 |
25897 | 2960 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
2961 echo $ac_n "(cached) $ac_c" 1>&6 | |
2962 else | |
2963 cat > conftest.$ac_ext <<EOF | |
29834 | 2964 #line 2965 "configure" |
25897 | 2965 #include "confdefs.h" |
2966 | |
2967 int main() { | |
2968 | |
2969 /* Ultrix mips cc rejects this. */ | |
29733 | 2970 typedef int charset[2]; const charset x = {0,0}; |
25897 | 2971 /* SunOS 4.1.1 cc rejects this. */ |
2972 char const *const *ccp; | |
2973 char **p; | |
2974 /* NEC SVR4.0.2 mips cc rejects this. */ | |
2975 struct point {int x, y;}; | |
2976 static struct point const zero = {0,0}; | |
2977 /* AIX XL C 1.02.0.0 rejects this. | |
2978 It does not let you subtract one const X* pointer from another in an arm | |
2979 of an if-expression whose if-part is not a constant expression */ | |
2980 const char *g = "string"; | |
2981 ccp = &g + (g ? g-g : 0); | |
2982 /* HPUX 7.0 cc rejects these. */ | |
2983 ++ccp; | |
2984 p = (char**) ccp; | |
2985 ccp = (char const *const *) p; | |
2986 { /* SCO 3.2v4 cc rejects this. */ | |
2987 char *t; | |
2988 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
2989 | |
2990 *t++ = 0; | |
2991 } | |
2992 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
2993 int x[] = {25, 17}; | |
2994 const int *foo = &x[0]; | |
2995 ++foo; | |
2996 } | |
2997 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
2998 typedef const int *iptr; | |
2999 iptr p = 0; | |
3000 ++p; | |
3001 } | |
3002 { /* AIX XL C 1.02.0.0 rejects this saying | |
3003 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3004 struct s { int j; const int *ap[3]; }; | |
3005 struct s *b; b->j = 5; | |
3006 } | |
3007 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3008 const int foo = 10; | |
3009 } | |
3010 | |
3011 ; return 0; } | |
3012 EOF | |
29834 | 3013 if { (eval echo configure:3014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 3014 rm -rf conftest* |
3015 ac_cv_c_const=yes | |
3016 else | |
3017 echo "configure: failed program was:" >&5 | |
3018 cat conftest.$ac_ext >&5 | |
3019 rm -rf conftest* | |
3020 ac_cv_c_const=no | |
3021 fi | |
3022 rm -f conftest* | |
3023 fi | |
3024 | |
3025 echo "$ac_t""$ac_cv_c_const" 1>&6 | |
3026 if test $ac_cv_c_const = no; then | |
3027 cat >> confdefs.h <<\EOF | |
3028 #define const | |
3029 EOF | |
3030 | |
3031 fi | |
3032 | |
28060 | 3033 echo $ac_n "checking for void * support""... $ac_c" 1>&6 |
29834 | 3034 echo "configure:3035: checking for void * support" >&5 |
28060 | 3035 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then |
3036 echo $ac_n "(cached) $ac_c" 1>&6 | |
3037 else | |
3038 cat > conftest.$ac_ext <<EOF | |
29834 | 3039 #line 3040 "configure" |
28060 | 3040 #include "confdefs.h" |
3041 | |
3042 int main() { | |
3043 void * foo; | |
3044 ; return 0; } | |
3045 EOF | |
29834 | 3046 if { (eval echo configure:3047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
28060 | 3047 rm -rf conftest* |
3048 emacs_cv_void_star=yes | |
3049 else | |
3050 echo "configure: failed program was:" >&5 | |
3051 cat conftest.$ac_ext >&5 | |
3052 rm -rf conftest* | |
3053 emacs_cv_void_star=no | |
3054 fi | |
3055 rm -f conftest* | |
3056 fi | |
3057 | |
3058 echo "$ac_t""$emacs_cv_void_star" 1>&6 | |
3059 if test $emacs_cv_void_star = yes; then | |
3060 cat >> confdefs.h <<\EOF | |
3061 #define POINTER_TYPE void | |
3062 EOF | |
3063 | |
3064 else | |
3065 cat >> confdefs.h <<\EOF | |
3066 #define POINTER_TYPE char | |
3067 EOF | |
3068 | |
3069 fi | |
25897 | 3070 |
3071 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
29834 | 3072 echo "configure:3073: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
25897 | 3073 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
3074 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
3075 echo $ac_n "(cached) $ac_c" 1>&6 | |
3076 else | |
3077 cat > conftestmake <<\EOF | |
3078 all: | |
3079 @echo 'ac_maketemp="${MAKE}"' | |
3080 EOF | |
3081 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3082 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
3083 if test -n "$ac_maketemp"; then | |
3084 eval ac_cv_prog_make_${ac_make}_set=yes | |
3085 else | |
3086 eval ac_cv_prog_make_${ac_make}_set=no | |
3087 fi | |
3088 rm -f conftestmake | |
3089 fi | |
3090 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3091 echo "$ac_t""yes" 1>&6 | |
3092 SET_MAKE= | |
3093 else | |
3094 echo "$ac_t""no" 1>&6 | |
3095 SET_MAKE="MAKE=${MAKE-make}" | |
3096 fi | |
3097 | |
3098 | |
3099 echo $ac_n "checking for long file names""... $ac_c" 1>&6 | |
29834 | 3100 echo "configure:3101: checking for long file names" >&5 |
25897 | 3101 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then |
3102 echo $ac_n "(cached) $ac_c" 1>&6 | |
3103 else | |
3104 ac_cv_sys_long_file_names=yes | |
3105 # Test for long file names in all the places we know might matter: | |
3106 # . the current directory, where building will happen | |
3107 # $prefix/lib where we will be installing things | |
3108 # $exec_prefix/lib likewise | |
3109 # eval it to expand exec_prefix. | |
3110 # $TMPDIR if set, where it might want to write temporary files | |
3111 # if $TMPDIR is not set: | |
3112 # /tmp where it might want to write temporary files | |
3113 # /var/tmp likewise | |
3114 # /usr/tmp likewise | |
3115 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
3116 ac_tmpdirs="$TMPDIR" | |
3117 else | |
3118 ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
3119 fi | |
3120 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
3121 test -d $ac_dir || continue | |
3122 test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
3123 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null | |
3124 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null | |
3125 val=`cat $ac_dir/conftest9012345 2>/dev/null` | |
3126 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then | |
3127 ac_cv_sys_long_file_names=no | |
3128 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
3129 break | |
3130 fi | |
3131 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
3132 done | |
3133 fi | |
3134 | |
3135 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6 | |
3136 if test $ac_cv_sys_long_file_names = yes; then | |
3137 cat >> confdefs.h <<\EOF | |
3138 #define HAVE_LONG_FILE_NAMES 1 | |
3139 EOF | |
3140 | |
3141 fi | |
3142 | |
3143 | |
3144 #### Choose a window system. | |
3145 | |
3146 # If we find X, set shell vars x_includes and x_libraries to the | |
3147 # paths, otherwise set no_x=yes. | |
3148 # Uses ac_ vars as temps to allow command line to override cache and checks. | |
3149 # --without-x overrides everything else, but does not touch the cache. | |
3150 echo $ac_n "checking for X""... $ac_c" 1>&6 | |
29834 | 3151 echo "configure:3152: checking for X" >&5 |
25897 | 3152 |
3153 # Check whether --with-x or --without-x was given. | |
3154 if test "${with_x+set}" = set; then | |
3155 withval="$with_x" | |
3156 : | |
3157 fi | |
3158 | |
3159 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
3160 if test "x$with_x" = xno; then | |
3161 # The user explicitly disabled X. | |
3162 have_x=disabled | |
3163 else | |
3164 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
3165 # Both variables are already set. | |
3166 have_x=yes | |
3167 else | |
3168 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
3169 echo $ac_n "(cached) $ac_c" 1>&6 | |
3170 else | |
3171 # One or both of the vars are not set, and there is no cached value. | |
3172 ac_x_includes=NO ac_x_libraries=NO | |
3173 rm -fr conftestdir | |
3174 if mkdir conftestdir; then | |
3175 cd conftestdir | |
3176 # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
3177 cat > Imakefile <<'EOF' | |
3178 acfindx: | |
3179 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
3180 EOF | |
3181 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
3182 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3183 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
3184 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
3185 for ac_extension in a so sl; do | |
3186 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
3187 test -f $ac_im_libdir/libX11.$ac_extension; then | |
3188 ac_im_usrlibdir=$ac_im_libdir; break | |
3189 fi | |
3190 done | |
3191 # Screen out bogus values from the imake configuration. They are | |
3192 # bogus both because they are the default anyway, and because | |
3193 # using them would break gcc on systems where it needs fixed includes. | |
3194 case "$ac_im_incroot" in | |
3195 /usr/include) ;; | |
3196 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
3197 esac | |
3198 case "$ac_im_usrlibdir" in | |
3199 /usr/lib | /lib) ;; | |
3200 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
3201 esac | |
3202 fi | |
3203 cd .. | |
3204 rm -fr conftestdir | |
3205 fi | |
3206 | |
3207 if test "$ac_x_includes" = NO; then | |
3208 # Guess where to find include files, by looking for this one X11 .h file. | |
3209 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
3210 | |
3211 # First, try using that file with no special directory specified. | |
3212 cat > conftest.$ac_ext <<EOF | |
29834 | 3213 #line 3214 "configure" |
25897 | 3214 #include "confdefs.h" |
3215 #include <$x_direct_test_include> | |
3216 EOF | |
3217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 3218 { (eval echo configure:3219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 3219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 3220 if test -z "$ac_err"; then |
3221 rm -rf conftest* | |
3222 # We can compile using X headers with no special include directory. | |
3223 ac_x_includes= | |
3224 else | |
3225 echo "$ac_err" >&5 | |
3226 echo "configure: failed program was:" >&5 | |
3227 cat conftest.$ac_ext >&5 | |
3228 rm -rf conftest* | |
3229 # Look for the header file in a standard set of common directories. | |
3230 # Check X11 before X11Rn because it is often a symlink to the current release. | |
3231 for ac_dir in \ | |
3232 /usr/X11/include \ | |
3233 /usr/X11R6/include \ | |
3234 /usr/X11R5/include \ | |
3235 /usr/X11R4/include \ | |
3236 \ | |
3237 /usr/include/X11 \ | |
3238 /usr/include/X11R6 \ | |
3239 /usr/include/X11R5 \ | |
3240 /usr/include/X11R4 \ | |
3241 \ | |
3242 /usr/local/X11/include \ | |
3243 /usr/local/X11R6/include \ | |
3244 /usr/local/X11R5/include \ | |
3245 /usr/local/X11R4/include \ | |
3246 \ | |
3247 /usr/local/include/X11 \ | |
3248 /usr/local/include/X11R6 \ | |
3249 /usr/local/include/X11R5 \ | |
3250 /usr/local/include/X11R4 \ | |
3251 \ | |
3252 /usr/X386/include \ | |
3253 /usr/x386/include \ | |
3254 /usr/XFree86/include/X11 \ | |
3255 \ | |
3256 /usr/include \ | |
3257 /usr/local/include \ | |
3258 /usr/unsupported/include \ | |
3259 /usr/athena/include \ | |
3260 /usr/local/x11r5/include \ | |
3261 /usr/lpp/Xamples/include \ | |
3262 \ | |
3263 /usr/openwin/include \ | |
3264 /usr/openwin/share/include \ | |
3265 ; \ | |
3266 do | |
3267 if test -r "$ac_dir/$x_direct_test_include"; then | |
3268 ac_x_includes=$ac_dir | |
3269 break | |
3270 fi | |
3271 done | |
3272 fi | |
3273 rm -f conftest* | |
3274 fi # $ac_x_includes = NO | |
3275 | |
3276 if test "$ac_x_libraries" = NO; then | |
3277 # Check for the libraries. | |
3278 | |
3279 test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
3280 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
3281 | |
3282 # See if we find them without any special options. | |
3283 # Don't add to $LIBS permanently. | |
3284 ac_save_LIBS="$LIBS" | |
3285 LIBS="-l$x_direct_test_library $LIBS" | |
3286 cat > conftest.$ac_ext <<EOF | |
29834 | 3287 #line 3288 "configure" |
25897 | 3288 #include "confdefs.h" |
3289 | |
3290 int main() { | |
3291 ${x_direct_test_function}() | |
3292 ; return 0; } | |
3293 EOF | |
29834 | 3294 if { (eval echo configure:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3295 rm -rf conftest* |
3296 LIBS="$ac_save_LIBS" | |
3297 # We can link X programs with no special library path. | |
3298 ac_x_libraries= | |
3299 else | |
3300 echo "configure: failed program was:" >&5 | |
3301 cat conftest.$ac_ext >&5 | |
3302 rm -rf conftest* | |
3303 LIBS="$ac_save_LIBS" | |
3304 # First see if replacing the include by lib works. | |
3305 # Check X11 before X11Rn because it is often a symlink to the current release. | |
3306 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
3307 /usr/X11/lib \ | |
3308 /usr/X11R6/lib \ | |
3309 /usr/X11R5/lib \ | |
3310 /usr/X11R4/lib \ | |
3311 \ | |
3312 /usr/lib/X11 \ | |
3313 /usr/lib/X11R6 \ | |
3314 /usr/lib/X11R5 \ | |
3315 /usr/lib/X11R4 \ | |
3316 \ | |
3317 /usr/local/X11/lib \ | |
3318 /usr/local/X11R6/lib \ | |
3319 /usr/local/X11R5/lib \ | |
3320 /usr/local/X11R4/lib \ | |
3321 \ | |
3322 /usr/local/lib/X11 \ | |
3323 /usr/local/lib/X11R6 \ | |
3324 /usr/local/lib/X11R5 \ | |
3325 /usr/local/lib/X11R4 \ | |
3326 \ | |
3327 /usr/X386/lib \ | |
3328 /usr/x386/lib \ | |
3329 /usr/XFree86/lib/X11 \ | |
3330 \ | |
3331 /usr/lib \ | |
3332 /usr/local/lib \ | |
3333 /usr/unsupported/lib \ | |
3334 /usr/athena/lib \ | |
3335 /usr/local/x11r5/lib \ | |
3336 /usr/lpp/Xamples/lib \ | |
3337 /lib/usr/lib/X11 \ | |
3338 \ | |
3339 /usr/openwin/lib \ | |
3340 /usr/openwin/share/lib \ | |
3341 ; \ | |
3342 do | |
3343 for ac_extension in a so sl; do | |
3344 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
3345 ac_x_libraries=$ac_dir | |
3346 break 2 | |
3347 fi | |
3348 done | |
3349 done | |
3350 fi | |
3351 rm -f conftest* | |
3352 fi # $ac_x_libraries = NO | |
3353 | |
3354 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
3355 # Didn't find X anywhere. Cache the known absence of X. | |
3356 ac_cv_have_x="have_x=no" | |
3357 else | |
3358 # Record where we found X for the cache. | |
3359 ac_cv_have_x="have_x=yes \ | |
3360 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
3361 fi | |
3362 fi | |
3363 fi | |
3364 eval "$ac_cv_have_x" | |
3365 fi # $with_x != no | |
3366 | |
3367 if test "$have_x" != yes; then | |
3368 echo "$ac_t""$have_x" 1>&6 | |
3369 no_x=yes | |
3370 else | |
3371 # If each of the values was on the command line, it overrides each guess. | |
3372 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
3373 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
3374 # Update the cache value to reflect the command line values. | |
3375 ac_cv_have_x="have_x=yes \ | |
3376 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
3377 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
3378 fi | |
3379 | |
3380 if test "$no_x" = yes; then | |
3381 window_system=none | |
3382 else | |
3383 window_system=x11 | |
3384 fi | |
3385 | |
3386 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
3387 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
3388 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
3389 x_default_search_path="" | |
3390 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
3391 x_search_path="${x_library}/X11/%L/%T/%N%C%S:\ | |
3392 ${x_library}/X11/%L/%T/%N%C%S:${x_libary}/X11/%l/%T/%N%C%S:\ | |
3393 ${x_library}/X11/%T/%N%C%S:${x_library}/X11/%L/%T/%N%S:\ | |
3394 ${x_library}/X11/%l/%T/%N%S:${x_library}/X11/%T/%N%S" | |
3395 if test x"${x_default_search_path}" = x; then | |
3396 x_default_search_path=${x_search_path} | |
3397 else | |
3398 x_default_search_path="${x_search_path}:${x_default_search_path}" | |
3399 fi | |
3400 done | |
3401 fi | |
3402 if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
3403 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
3404 fi | |
3405 | |
3406 if test x"${x_includes}" = x; then | |
3407 bitmapdir=/usr/include/X11/bitmaps | |
3408 else | |
3409 # accumulate include directories that have X11 bitmap subdirectories | |
3410 bmd_acc="dummyval" | |
3411 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
3412 if test -d "${bmd}/X11/bitmaps"; then | |
3413 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
26502 | 3414 fi |
3415 if test -d "${bmd}/bitmaps"; then | |
25897 | 3416 bmd_acc="${bmd_acc}:${bmd}/bitmaps" |
3417 fi | |
3418 done | |
3419 if test ${bmd_acc} != "dummyval"; then | |
3420 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
3421 fi | |
3422 fi | |
3423 | |
3424 case "${window_system}" in | |
3425 x11 ) | |
3426 HAVE_X_WINDOWS=yes | |
3427 HAVE_X11=yes | |
3428 case "${with_x_toolkit}" in | |
3429 athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
3430 motif ) USE_X_TOOLKIT=MOTIF ;; | |
3431 no ) USE_X_TOOLKIT=none ;; | |
3432 * ) USE_X_TOOLKIT=maybe ;; | |
3433 esac | |
3434 ;; | |
3435 none ) | |
3436 HAVE_X_WINDOWS=no | |
3437 HAVE_X11=no | |
3438 USE_X_TOOLKIT=none | |
3439 ;; | |
3440 esac | |
3441 | |
3442 ### If we're using X11, we should use the X menu package. | |
3443 HAVE_MENUS=no | |
3444 case ${HAVE_X11} in | |
3445 yes ) HAVE_MENUS=yes ;; | |
3446 esac | |
3447 | |
3448 if test "${opsys}" = "hpux9"; then | |
3449 case "${x_libraries}" in | |
3450 *X11R4* ) | |
3451 opsysfile="s/hpux9-x11r4.h" | |
3452 ;; | |
3453 esac | |
3454 fi | |
3455 | |
3456 if test "${opsys}" = "hpux9shr"; then | |
3457 case "${x_libraries}" in | |
3458 *X11R4* ) | |
3459 opsysfile="s/hpux9shxr4.h" | |
3460 ;; | |
3461 esac | |
3462 fi | |
3463 | |
3464 #### Extract some information from the operating system and machine files. | |
3465 | |
3466 echo "checking the machine- and system-dependent files to find out | |
3467 - which libraries the lib-src programs will want, and | |
3468 - whether the GNU malloc routines are usable" 1>&6 | |
29834 | 3469 echo "configure:3470: checking the machine- and system-dependent files to find out |
25897 | 3470 - which libraries the lib-src programs will want, and |
3471 - whether the GNU malloc routines are usable" >&5 | |
3472 | |
3473 ### First figure out CFLAGS (which we use for running the compiler here) | |
3474 ### and REAL_CFLAGS (which we use for real compilation). | |
3475 ### The two are the same except on a few systems, where they are made | |
3476 ### different to work around various lossages. For example, | |
3477 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
3478 ### as implying static linking. | |
3479 | |
3480 ### If the CFLAGS env var is specified, we use that value | |
3481 ### instead of the default. | |
3482 | |
3483 ### It's not important that this name contain the PID; you can't run | |
3484 ### two configures in the same directory and have anything work | |
3485 ### anyway. | |
3486 tempcname="conftest.c" | |
3487 | |
3488 echo ' | |
3489 #include "'${srcdir}'/src/'${opsysfile}'" | |
3490 #include "'${srcdir}'/src/'${machfile}'" | |
3491 #ifndef LIBS_MACHINE | |
3492 #define LIBS_MACHINE | |
3493 #endif | |
3494 #ifndef LIBS_SYSTEM | |
3495 #define LIBS_SYSTEM | |
3496 #endif | |
3497 #ifndef C_SWITCH_SYSTEM | |
3498 #define C_SWITCH_SYSTEM | |
3499 #endif | |
3500 #ifndef C_SWITCH_MACHINE | |
3501 #define C_SWITCH_MACHINE | |
3502 #endif | |
3503 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
3504 configure___ c_switch_system=C_SWITCH_SYSTEM | |
3505 configure___ c_switch_machine=C_SWITCH_MACHINE | |
3506 | |
3507 #ifndef LIB_X11_LIB | |
3508 #define LIB_X11_LIB -lX11 | |
3509 #endif | |
3510 | |
3511 #ifndef LIBX11_MACHINE | |
3512 #define LIBX11_MACHINE | |
3513 #endif | |
3514 | |
3515 #ifndef LIBX11_SYSTEM | |
3516 #define LIBX11_SYSTEM | |
3517 #endif | |
3518 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
3519 | |
3520 #ifdef UNEXEC | |
3521 configure___ unexec=UNEXEC | |
3522 #else | |
3523 configure___ unexec=unexec.o | |
3524 #endif | |
3525 | |
3526 #ifdef SYSTEM_MALLOC | |
3527 configure___ system_malloc=yes | |
3528 #else | |
3529 configure___ system_malloc=no | |
3530 #endif | |
3531 | |
3532 #ifndef C_DEBUG_SWITCH | |
3533 #define C_DEBUG_SWITCH -g | |
3534 #endif | |
3535 | |
3536 #ifndef C_OPTIMIZE_SWITCH | |
27910 | 3537 #ifdef __GNUC__ |
3538 #define C_OPTIMIZE_SWITCH -O2 | |
3539 #else | |
25897 | 3540 #define C_OPTIMIZE_SWITCH -O |
3541 #endif | |
27910 | 3542 #endif |
25897 | 3543 |
3544 #ifndef LD_SWITCH_MACHINE | |
3545 #define LD_SWITCH_MACHINE | |
3546 #endif | |
3547 | |
3548 #ifndef LD_SWITCH_SYSTEM | |
3549 #define LD_SWITCH_SYSTEM | |
3550 #endif | |
3551 | |
3552 #ifndef LD_SWITCH_X_SITE_AUX | |
3553 #define LD_SWITCH_X_SITE_AUX | |
3554 #endif | |
3555 | |
3556 configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
3557 configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
3558 | |
3559 #ifdef THIS_IS_CONFIGURE | |
3560 | |
3561 /* Get the CFLAGS for tests in configure. */ | |
3562 #ifdef __GNUC__ | |
3563 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3564 #else | |
3565 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3566 #endif | |
3567 | |
3568 #else /* not THIS_IS_CONFIGURE */ | |
3569 | |
3570 /* Get the CFLAGS for real compilation. */ | |
3571 #ifdef __GNUC__ | |
3572 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3573 #else | |
3574 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3575 #endif | |
3576 | |
3577 #endif /* not THIS_IS_CONFIGURE */ | |
3578 ' > ${tempcname} | |
3579 | |
3580 # The value of CPP is a quoted variable reference, so we need to do this | |
3581 # to get its actual value... | |
3582 CPP=`eval "echo $CPP"` | |
3583 eval `${CPP} -Isrc ${tempcname} \ | |
3584 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3585 if test "x$SPECIFIED_CFLAGS" = x; then | |
3586 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
3587 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3588 else | |
3589 REAL_CFLAGS="$CFLAGS" | |
3590 fi | |
3591 rm ${tempcname} | |
3592 | |
3593 ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
3594 | |
3595 ### Compute the unexec source name from the object name. | |
3596 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
3597 | |
3598 # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
3599 # Assume not, until told otherwise. | |
3600 GNU_MALLOC=yes | |
3601 doug_lea_malloc=yes | |
3602 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 | |
29834 | 3603 echo "configure:3604: checking for malloc_get_state" >&5 |
25897 | 3604 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then |
3605 echo $ac_n "(cached) $ac_c" 1>&6 | |
3606 else | |
3607 cat > conftest.$ac_ext <<EOF | |
29834 | 3608 #line 3609 "configure" |
25897 | 3609 #include "confdefs.h" |
3610 /* System header to define __stub macros and hopefully few prototypes, | |
3611 which can conflict with char malloc_get_state(); below. */ | |
3612 #include <assert.h> | |
3613 /* Override any gcc2 internal prototype to avoid an error. */ | |
3614 /* We use char because int might match the return type of a gcc2 | |
3615 builtin and then its argument prototype would still apply. */ | |
3616 char malloc_get_state(); | |
3617 | |
3618 int main() { | |
3619 | |
3620 /* The GNU C library defines this for functions which it implements | |
3621 to always fail with ENOSYS. Some functions are actually named | |
3622 something starting with __ and the normal name is an alias. */ | |
3623 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
3624 choke me | |
3625 #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
|
3626 malloc_get_state(); |
25897 | 3627 #endif |
3628 | |
3629 ; return 0; } | |
3630 EOF | |
29834 | 3631 if { (eval echo configure:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3632 rm -rf conftest* |
3633 eval "ac_cv_func_malloc_get_state=yes" | |
3634 else | |
3635 echo "configure: failed program was:" >&5 | |
3636 cat conftest.$ac_ext >&5 | |
3637 rm -rf conftest* | |
3638 eval "ac_cv_func_malloc_get_state=no" | |
3639 fi | |
3640 rm -f conftest* | |
3641 fi | |
3642 | |
3643 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then | |
3644 echo "$ac_t""yes" 1>&6 | |
3645 : | |
3646 else | |
3647 echo "$ac_t""no" 1>&6 | |
3648 doug_lea_malloc=no | |
3649 fi | |
3650 | |
3651 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 | |
29834 | 3652 echo "configure:3653: checking for malloc_set_state" >&5 |
25897 | 3653 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then |
3654 echo $ac_n "(cached) $ac_c" 1>&6 | |
3655 else | |
3656 cat > conftest.$ac_ext <<EOF | |
29834 | 3657 #line 3658 "configure" |
25897 | 3658 #include "confdefs.h" |
3659 /* System header to define __stub macros and hopefully few prototypes, | |
3660 which can conflict with char malloc_set_state(); below. */ | |
3661 #include <assert.h> | |
3662 /* Override any gcc2 internal prototype to avoid an error. */ | |
3663 /* We use char because int might match the return type of a gcc2 | |
3664 builtin and then its argument prototype would still apply. */ | |
3665 char malloc_set_state(); | |
3666 | |
3667 int main() { | |
3668 | |
3669 /* The GNU C library defines this for functions which it implements | |
3670 to always fail with ENOSYS. Some functions are actually named | |
3671 something starting with __ and the normal name is an alias. */ | |
3672 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
3673 choke me | |
3674 #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
|
3675 malloc_set_state(); |
25897 | 3676 #endif |
3677 | |
3678 ; return 0; } | |
3679 EOF | |
29834 | 3680 if { (eval echo configure:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3681 rm -rf conftest* |
3682 eval "ac_cv_func_malloc_set_state=yes" | |
3683 else | |
3684 echo "configure: failed program was:" >&5 | |
3685 cat conftest.$ac_ext >&5 | |
3686 rm -rf conftest* | |
3687 eval "ac_cv_func_malloc_set_state=no" | |
3688 fi | |
3689 rm -f conftest* | |
3690 fi | |
3691 | |
3692 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then | |
3693 echo "$ac_t""yes" 1>&6 | |
3694 : | |
3695 else | |
3696 echo "$ac_t""no" 1>&6 | |
3697 doug_lea_malloc=no | |
3698 fi | |
3699 | |
3700 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 | |
29834 | 3701 echo "configure:3702: checking whether __after_morecore_hook exists" >&5 |
25897 | 3702 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then |
3703 echo $ac_n "(cached) $ac_c" 1>&6 | |
3704 else | |
3705 cat > conftest.$ac_ext <<EOF | |
29834 | 3706 #line 3707 "configure" |
25897 | 3707 #include "confdefs.h" |
3708 extern void (* __after_morecore_hook)(); | |
3709 int main() { | |
3710 __after_morecore_hook = 0 | |
3711 ; return 0; } | |
3712 EOF | |
29834 | 3713 if { (eval echo configure:3714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3714 rm -rf conftest* |
3715 emacs_cv_var___after_morecore_hook=yes | |
3716 else | |
3717 echo "configure: failed program was:" >&5 | |
3718 cat conftest.$ac_ext >&5 | |
3719 rm -rf conftest* | |
3720 emacs_cv_var___after_morecore_hook=no | |
3721 fi | |
3722 rm -f conftest* | |
3723 fi | |
3724 | |
3725 echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6 | |
3726 if test $emacs_cv_var___after_morecore_hook = no; then | |
3727 doug_lea_malloc=no | |
3728 fi | |
3729 if test "${system_malloc}" = "yes"; then | |
3730 GNU_MALLOC=no | |
3731 GNU_MALLOC_reason=" | |
3732 (The GNU allocators don't work with this system configuration.)" | |
3733 fi | |
3734 if test "$doug_lea_malloc" = "yes" ; then | |
3735 if test "$GNU_MALLOC" = yes ; then | |
3736 GNU_MALLOC_reason=" | |
3737 (Using Doug Lea's new malloc from the GNU C Library.)" | |
3738 fi | |
3739 cat >> confdefs.h <<\EOF | |
3740 #define DOUG_LEA_MALLOC 1 | |
3741 EOF | |
3742 | |
3743 fi | |
3744 | |
3745 if test x"${REL_ALLOC}" = x; then | |
3746 REL_ALLOC=${GNU_MALLOC} | |
3747 fi | |
3748 | |
3749 #### Add the libraries to LIBS and check for some functions. | |
3750 | |
3751 if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
3752 CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
3753 else | |
3754 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
3755 fi | |
3756 | |
3757 LIBS="$libsrc_libs $LIBS" | |
3758 | |
3759 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
29834 | 3760 echo "configure:3761: checking for dnet_ntoa in -ldnet" >&5 |
25897 | 3761 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
3762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3763 echo $ac_n "(cached) $ac_c" 1>&6 | |
3764 else | |
3765 ac_save_LIBS="$LIBS" | |
3766 LIBS="-ldnet $LIBS" | |
3767 cat > conftest.$ac_ext <<EOF | |
29834 | 3768 #line 3769 "configure" |
25897 | 3769 #include "confdefs.h" |
3770 /* Override any gcc2 internal prototype to avoid an error. */ | |
3771 /* We use char because int might match the return type of a gcc2 | |
3772 builtin and then its argument prototype would still apply. */ | |
3773 char dnet_ntoa(); | |
3774 | |
3775 int main() { | |
3776 dnet_ntoa() | |
3777 ; return 0; } | |
3778 EOF | |
29834 | 3779 if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3780 rm -rf conftest* |
3781 eval "ac_cv_lib_$ac_lib_var=yes" | |
3782 else | |
3783 echo "configure: failed program was:" >&5 | |
3784 cat conftest.$ac_ext >&5 | |
3785 rm -rf conftest* | |
3786 eval "ac_cv_lib_$ac_lib_var=no" | |
3787 fi | |
3788 rm -f conftest* | |
3789 LIBS="$ac_save_LIBS" | |
3790 | |
3791 fi | |
3792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3793 echo "$ac_t""yes" 1>&6 | |
3794 ac_tr_lib=HAVE_LIB`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3795 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3796 cat >> confdefs.h <<EOF | |
3797 #define $ac_tr_lib 1 | |
3798 EOF | |
3799 | |
3800 LIBS="-ldnet $LIBS" | |
3801 | |
3802 else | |
3803 echo "$ac_t""no" 1>&6 | |
3804 fi | |
3805 | |
3806 | |
3807 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 | |
29834 | 3808 echo "configure:3809: checking for main in -lXbsd" >&5 |
25897 | 3809 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` |
3810 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3811 echo $ac_n "(cached) $ac_c" 1>&6 | |
3812 else | |
3813 ac_save_LIBS="$LIBS" | |
3814 LIBS="-lXbsd $LIBS" | |
3815 cat > conftest.$ac_ext <<EOF | |
29834 | 3816 #line 3817 "configure" |
25897 | 3817 #include "confdefs.h" |
3818 | |
3819 int main() { | |
3820 main() | |
3821 ; return 0; } | |
3822 EOF | |
29834 | 3823 if { (eval echo configure:3824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3824 rm -rf conftest* |
3825 eval "ac_cv_lib_$ac_lib_var=yes" | |
3826 else | |
3827 echo "configure: failed program was:" >&5 | |
3828 cat conftest.$ac_ext >&5 | |
3829 rm -rf conftest* | |
3830 eval "ac_cv_lib_$ac_lib_var=no" | |
3831 fi | |
3832 rm -f conftest* | |
3833 LIBS="$ac_save_LIBS" | |
3834 | |
3835 fi | |
3836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3837 echo "$ac_t""yes" 1>&6 | |
3838 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
3839 else | |
3840 echo "$ac_t""no" 1>&6 | |
3841 fi | |
3842 | |
3843 | |
3844 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 | |
29834 | 3845 echo "configure:3846: checking for cma_open in -lpthreads" >&5 |
25897 | 3846 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` |
3847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3848 echo $ac_n "(cached) $ac_c" 1>&6 | |
3849 else | |
3850 ac_save_LIBS="$LIBS" | |
3851 LIBS="-lpthreads $LIBS" | |
3852 cat > conftest.$ac_ext <<EOF | |
29834 | 3853 #line 3854 "configure" |
25897 | 3854 #include "confdefs.h" |
3855 /* Override any gcc2 internal prototype to avoid an error. */ | |
3856 /* We use char because int might match the return type of a gcc2 | |
3857 builtin and then its argument prototype would still apply. */ | |
3858 char cma_open(); | |
3859 | |
3860 int main() { | |
3861 cma_open() | |
3862 ; return 0; } | |
3863 EOF | |
29834 | 3864 if { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3865 rm -rf conftest* |
3866 eval "ac_cv_lib_$ac_lib_var=yes" | |
3867 else | |
3868 echo "configure: failed program was:" >&5 | |
3869 cat conftest.$ac_ext >&5 | |
3870 rm -rf conftest* | |
3871 eval "ac_cv_lib_$ac_lib_var=no" | |
3872 fi | |
3873 rm -f conftest* | |
3874 LIBS="$ac_save_LIBS" | |
3875 | |
3876 fi | |
3877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3878 echo "$ac_t""yes" 1>&6 | |
3879 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3880 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3881 cat >> confdefs.h <<EOF | |
3882 #define $ac_tr_lib 1 | |
3883 EOF | |
3884 | |
3885 LIBS="-lpthreads $LIBS" | |
3886 | |
3887 else | |
3888 echo "$ac_t""no" 1>&6 | |
3889 fi | |
3890 | |
3891 | |
3892 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 | |
29834 | 3893 echo "configure:3894: checking for XFree86 in /usr/X386" >&5 |
25897 | 3894 if test -d /usr/X386/include; then |
3895 HAVE_XFREE386=yes | |
3896 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
3897 else | |
3898 HAVE_XFREE386=no | |
3899 fi | |
3900 echo "$ac_t""$HAVE_XFREE386" 1>&6 | |
3901 | |
3902 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | |
3903 # for the tests that follow. We set it back to REAL_CFLAGS later on. | |
3904 | |
3905 if test "${HAVE_X11}" = "yes"; then | |
3906 DEFS="$C_SWITCH_X_SITE $DEFS" | |
3907 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
3908 LIBS="$LIBX $LIBS" | |
3909 CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
3910 | |
3911 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
3912 # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
3913 # but it's more convenient here to set LD_RUN_PATH | |
3914 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
3915 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
3916 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
3917 export LD_RUN_PATH | |
3918 fi | |
3919 | |
3920 if test "${opsys}" = "gnu-linux"; then | |
3921 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 | |
29834 | 3922 echo "configure:3923: checking whether X on GNU/Linux needs -b to link" >&5 |
25897 | 3923 cat > conftest.$ac_ext <<EOF |
29834 | 3924 #line 3925 "configure" |
25897 | 3925 #include "confdefs.h" |
3926 | |
3927 int main() { | |
3928 XOpenDisplay ("foo"); | |
3929 ; return 0; } | |
3930 EOF | |
29834 | 3931 if { (eval echo configure:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3932 rm -rf conftest* |
3933 xlinux_first_failure=no | |
3934 else | |
3935 echo "configure: failed program was:" >&5 | |
3936 cat conftest.$ac_ext >&5 | |
3937 rm -rf conftest* | |
3938 xlinux_first_failure=yes | |
3939 fi | |
3940 rm -f conftest* | |
3941 if test "${xlinux_first_failure}" = "yes"; then | |
3942 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
3943 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
3944 OLD_CPPFLAGS="$CPPFLAGS" | |
3945 OLD_LIBS="$LIBS" | |
3946 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
3947 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
3948 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
3949 LIBS="$LIBS -b i486-linuxaout" | |
3950 cat > conftest.$ac_ext <<EOF | |
29834 | 3951 #line 3952 "configure" |
25897 | 3952 #include "confdefs.h" |
3953 | |
3954 int main() { | |
3955 XOpenDisplay ("foo"); | |
3956 ; return 0; } | |
3957 EOF | |
29834 | 3958 if { (eval echo configure:3959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3959 rm -rf conftest* |
3960 xlinux_second_failure=no | |
3961 else | |
3962 echo "configure: failed program was:" >&5 | |
3963 cat conftest.$ac_ext >&5 | |
3964 rm -rf conftest* | |
3965 xlinux_second_failure=yes | |
3966 fi | |
3967 rm -f conftest* | |
3968 if test "${xlinux_second_failure}" = "yes"; then | |
3969 # If we get the same failure with -b, there is no use adding -b. | |
3970 # So take it out. This plays safe. | |
3971 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
3972 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
3973 CPPFLAGS="$OLD_CPPFLAGS" | |
3974 LIBS="$OLD_LIBS" | |
3975 echo "$ac_t""no" 1>&6 | |
3976 else | |
3977 echo "$ac_t""yes" 1>&6 | |
3978 fi | |
3979 else | |
3980 echo "$ac_t""no" 1>&6 | |
3981 fi | |
3982 fi | |
3983 | |
3984 for ac_func in XrmSetDatabase XScreenResourceString \ | |
3985 XScreenNumberOfScreen XSetWMProtocols | |
3986 do | |
3987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29834 | 3988 echo "configure:3989: checking for $ac_func" >&5 |
25897 | 3989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3990 echo $ac_n "(cached) $ac_c" 1>&6 | |
3991 else | |
3992 cat > conftest.$ac_ext <<EOF | |
29834 | 3993 #line 3994 "configure" |
25897 | 3994 #include "confdefs.h" |
3995 /* System header to define __stub macros and hopefully few prototypes, | |
3996 which can conflict with char $ac_func(); below. */ | |
3997 #include <assert.h> | |
3998 /* Override any gcc2 internal prototype to avoid an error. */ | |
3999 /* We use char because int might match the return type of a gcc2 | |
4000 builtin and then its argument prototype would still apply. */ | |
4001 char $ac_func(); | |
4002 | |
4003 int main() { | |
4004 | |
4005 /* The GNU C library defines this for functions which it implements | |
4006 to always fail with ENOSYS. Some functions are actually named | |
4007 something starting with __ and the normal name is an alias. */ | |
4008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4009 choke me | |
4010 #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
|
4011 $ac_func(); |
25897 | 4012 #endif |
4013 | |
4014 ; return 0; } | |
4015 EOF | |
29834 | 4016 if { (eval echo configure:4017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4017 rm -rf conftest* |
4018 eval "ac_cv_func_$ac_func=yes" | |
4019 else | |
4020 echo "configure: failed program was:" >&5 | |
4021 cat conftest.$ac_ext >&5 | |
4022 rm -rf conftest* | |
4023 eval "ac_cv_func_$ac_func=no" | |
4024 fi | |
4025 rm -f conftest* | |
4026 fi | |
4027 | |
4028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4029 echo "$ac_t""yes" 1>&6 | |
4030 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4031 cat >> confdefs.h <<EOF | |
4032 #define $ac_tr_func 1 | |
4033 EOF | |
4034 | |
4035 else | |
4036 echo "$ac_t""no" 1>&6 | |
4037 fi | |
4038 done | |
4039 | |
4040 fi | |
4041 | |
4042 if test "${window_system}" = "x11"; then | |
4043 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 | |
29834 | 4044 echo "configure:4045: checking X11 version 6" >&5 |
25897 | 4045 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then |
4046 echo $ac_n "(cached) $ac_c" 1>&6 | |
4047 else | |
4048 cat > conftest.$ac_ext <<EOF | |
29834 | 4049 #line 4050 "configure" |
25897 | 4050 #include "confdefs.h" |
4051 #include <X11/Xlib.h> | |
4052 int main() { | |
4053 #if XlibSpecificationRelease < 6 | |
4054 fail; | |
4055 #endif | |
4056 | |
4057 ; return 0; } | |
4058 EOF | |
29834 | 4059 if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4060 rm -rf conftest* |
4061 emacs_cv_x11_version_6=yes | |
4062 else | |
4063 echo "configure: failed program was:" >&5 | |
4064 cat conftest.$ac_ext >&5 | |
4065 rm -rf conftest* | |
4066 emacs_cv_x11_version_6=no | |
4067 fi | |
4068 rm -f conftest* | |
4069 fi | |
4070 | |
4071 if test $emacs_cv_x11_version_6 = yes; then | |
4072 echo "$ac_t""6 or newer" 1>&6 | |
4073 cat >> confdefs.h <<\EOF | |
4074 #define HAVE_X11R6 1 | |
4075 EOF | |
4076 | |
4077 else | |
4078 echo "$ac_t""before 6" 1>&6 | |
4079 fi | |
4080 fi | |
4081 | |
4082 if test "${window_system}" = "x11"; then | |
4083 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 | |
29834 | 4084 echo "configure:4085: checking X11 version 5" >&5 |
25897 | 4085 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then |
4086 echo $ac_n "(cached) $ac_c" 1>&6 | |
4087 else | |
4088 cat > conftest.$ac_ext <<EOF | |
29834 | 4089 #line 4090 "configure" |
25897 | 4090 #include "confdefs.h" |
4091 #include <X11/Xlib.h> | |
4092 int main() { | |
4093 #if XlibSpecificationRelease < 5 | |
4094 fail; | |
4095 #endif | |
4096 | |
4097 ; return 0; } | |
4098 EOF | |
29834 | 4099 if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4100 rm -rf conftest* |
4101 emacs_cv_x11_version_5=yes | |
4102 else | |
4103 echo "configure: failed program was:" >&5 | |
4104 cat conftest.$ac_ext >&5 | |
4105 rm -rf conftest* | |
4106 emacs_cv_x11_version_5=no | |
4107 fi | |
4108 rm -f conftest* | |
4109 fi | |
4110 | |
4111 if test $emacs_cv_x11_version_5 = yes; then | |
4112 echo "$ac_t""5 or newer" 1>&6 | |
4113 HAVE_X11R5=yes | |
4114 cat >> confdefs.h <<\EOF | |
4115 #define HAVE_X11R5 1 | |
4116 EOF | |
4117 | |
4118 else | |
4119 HAVE_X11R5=no | |
4120 echo "$ac_t""before 5" 1>&6 | |
4121 fi | |
4122 fi | |
4123 | |
4124 if test x"${USE_X_TOOLKIT}" = xmaybe; then | |
4125 if test x"${HAVE_X11R5}" = xyes; then | |
4126 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 | |
29834 | 4127 echo "configure:4128: checking X11 version 5 with Xaw" >&5 |
25897 | 4128 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then |
4129 echo $ac_n "(cached) $ac_c" 1>&6 | |
4130 else | |
4131 cat > conftest.$ac_ext <<EOF | |
29834 | 4132 #line 4133 "configure" |
25897 | 4133 #include "confdefs.h" |
4134 | |
4135 #include <X11/Intrinsic.h> | |
4136 #include <X11/Xaw/Simple.h> | |
4137 int main() { | |
4138 | |
4139 ; return 0; } | |
4140 EOF | |
29834 | 4141 if { (eval echo configure:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4142 rm -rf conftest* |
4143 emacs_cv_x11_version_5_with_xaw=yes | |
4144 else | |
4145 echo "configure: failed program was:" >&5 | |
4146 cat conftest.$ac_ext >&5 | |
4147 rm -rf conftest* | |
4148 emacs_cv_x11_version_5_with_xaw=no | |
4149 fi | |
4150 rm -f conftest* | |
4151 fi | |
4152 | |
4153 if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
4154 echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6 | |
4155 USE_X_TOOLKIT=LUCID | |
4156 else | |
4157 echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6 | |
4158 USE_X_TOOLKIT=none | |
4159 fi | |
4160 else | |
4161 USE_X_TOOLKIT=none | |
4162 fi | |
4163 fi | |
4164 | |
4165 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
4166 | |
4167 if test "${USE_X_TOOLKIT}" != "none"; then | |
4168 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 | |
29834 | 4169 echo "configure:4170: checking X11 toolkit version" >&5 |
25897 | 4170 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then |
4171 echo $ac_n "(cached) $ac_c" 1>&6 | |
4172 else | |
4173 cat > conftest.$ac_ext <<EOF | |
29834 | 4174 #line 4175 "configure" |
25897 | 4175 #include "confdefs.h" |
4176 #include <X11/Intrinsic.h> | |
4177 int main() { | |
4178 #if XtSpecificationRelease < 6 | |
4179 fail; | |
4180 #endif | |
4181 | |
4182 ; return 0; } | |
4183 EOF | |
29834 | 4184 if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4185 rm -rf conftest* |
4186 emacs_cv_x11_toolkit_version_6=yes | |
4187 else | |
4188 echo "configure: failed program was:" >&5 | |
4189 cat conftest.$ac_ext >&5 | |
4190 rm -rf conftest* | |
4191 emacs_cv_x11_toolkit_version_6=no | |
4192 fi | |
4193 rm -f conftest* | |
4194 fi | |
4195 | |
4196 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
4197 if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
4198 echo "$ac_t""6 or newer" 1>&6 | |
4199 cat >> confdefs.h <<\EOF | |
4200 #define HAVE_X11XTR6 1 | |
4201 EOF | |
4202 | |
4203 else | |
4204 echo "$ac_t""before 6" 1>&6 | |
4205 fi | |
4206 | |
4207 OLDLIBS="$LIBS" | |
4208 if test x$HAVE_X11XTR6 = xyes; then | |
4209 LIBS="-lXt -lSM -lICE $LIBS" | |
4210 else | |
4211 LIBS="-lXt $LIBS" | |
4212 fi | |
4213 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 | |
29834 | 4214 echo "configure:4215: checking for XmuConvertStandardSelection in -lXmu" >&5 |
25897 | 4215 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` |
4216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4217 echo $ac_n "(cached) $ac_c" 1>&6 | |
4218 else | |
4219 ac_save_LIBS="$LIBS" | |
4220 LIBS="-lXmu $LIBS" | |
4221 cat > conftest.$ac_ext <<EOF | |
29834 | 4222 #line 4223 "configure" |
25897 | 4223 #include "confdefs.h" |
4224 /* Override any gcc2 internal prototype to avoid an error. */ | |
4225 /* We use char because int might match the return type of a gcc2 | |
4226 builtin and then its argument prototype would still apply. */ | |
4227 char XmuConvertStandardSelection(); | |
4228 | |
4229 int main() { | |
4230 XmuConvertStandardSelection() | |
4231 ; return 0; } | |
4232 EOF | |
29834 | 4233 if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4234 rm -rf conftest* |
4235 eval "ac_cv_lib_$ac_lib_var=yes" | |
4236 else | |
4237 echo "configure: failed program was:" >&5 | |
4238 cat conftest.$ac_ext >&5 | |
4239 rm -rf conftest* | |
4240 eval "ac_cv_lib_$ac_lib_var=no" | |
4241 fi | |
4242 rm -f conftest* | |
4243 LIBS="$ac_save_LIBS" | |
4244 | |
4245 fi | |
4246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4247 echo "$ac_t""yes" 1>&6 | |
4248 ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
4249 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
4250 cat >> confdefs.h <<EOF | |
4251 #define $ac_tr_lib 1 | |
4252 EOF | |
4253 | |
4254 LIBS="-lXmu $LIBS" | |
4255 | |
4256 else | |
4257 echo "$ac_t""no" 1>&6 | |
4258 fi | |
4259 | |
4260 LIBS="$OLDLIBS" | |
4261 fi | |
4262 | |
4263 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
4264 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 | |
29834 | 4265 echo "configure:4266: checking for Motif version 2.1" >&5 |
25897 | 4266 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then |
4267 echo $ac_n "(cached) $ac_c" 1>&6 | |
4268 else | |
4269 cat > conftest.$ac_ext <<EOF | |
29834 | 4270 #line 4271 "configure" |
25897 | 4271 #include "confdefs.h" |
4272 #include <Xm/Xm.h> | |
4273 int main() { | |
4274 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
4275 int x = 5; | |
4276 #else | |
4277 Motif version prior to 2.1. | |
4278 #endif | |
4279 ; return 0; } | |
4280 EOF | |
29834 | 4281 if { (eval echo configure:4282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 4282 rm -rf conftest* |
4283 emacs_cv_motif_version_2_1=yes | |
4284 else | |
4285 echo "configure: failed program was:" >&5 | |
4286 cat conftest.$ac_ext >&5 | |
4287 rm -rf conftest* | |
4288 emacs_cv_motif_version_2_1=no | |
4289 fi | |
4290 rm -f conftest* | |
4291 fi | |
4292 | |
4293 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6 | |
4294 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 | |
4295 if test $emacs_cv_motif_version_2_1 = yes; then | |
4296 cat >> confdefs.h <<\EOF | |
4297 #define HAVE_MOTIF_2_1 1 | |
4298 EOF | |
4299 | |
4300 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 | |
29834 | 4301 echo "configure:4302: checking for XpCreateContext in -lXp" >&5 |
25897 | 4302 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` |
4303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4304 echo $ac_n "(cached) $ac_c" 1>&6 | |
4305 else | |
4306 ac_save_LIBS="$LIBS" | |
4307 LIBS="-lXp $LIBS" | |
4308 cat > conftest.$ac_ext <<EOF | |
29834 | 4309 #line 4310 "configure" |
25897 | 4310 #include "confdefs.h" |
4311 /* Override any gcc2 internal prototype to avoid an error. */ | |
4312 /* We use char because int might match the return type of a gcc2 | |
4313 builtin and then its argument prototype would still apply. */ | |
4314 char XpCreateContext(); | |
4315 | |
4316 int main() { | |
4317 XpCreateContext() | |
4318 ; return 0; } | |
4319 EOF | |
29834 | 4320 if { (eval echo configure:4321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4321 rm -rf conftest* |
4322 eval "ac_cv_lib_$ac_lib_var=yes" | |
4323 else | |
4324 echo "configure: failed program was:" >&5 | |
4325 cat conftest.$ac_ext >&5 | |
4326 rm -rf conftest* | |
4327 eval "ac_cv_lib_$ac_lib_var=no" | |
4328 fi | |
4329 rm -f conftest* | |
4330 LIBS="$ac_save_LIBS" | |
4331 | |
4332 fi | |
4333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4334 echo "$ac_t""yes" 1>&6 | |
4335 ac_tr_lib=HAVE_LIB`echo Xp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
4336 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
4337 cat >> confdefs.h <<EOF | |
4338 #define $ac_tr_lib 1 | |
4339 EOF | |
4340 | |
4341 LIBS="-lXp $LIBS" | |
4342 | |
4343 else | |
4344 echo "$ac_t""no" 1>&6 | |
4345 fi | |
4346 | |
4347 fi | |
4348 fi | |
4349 | |
4350 ### Is -lXaw3d available? | |
4351 HAVE_XAW3D=no | |
4352 if test "${HAVE_X11}" = "yes"; then | |
4353 if test "${USE_X_TOOLKIT}" != "none"; then | |
4354 old_c_flags="${CFLAGS}" | |
4355 CFLAGS="${LD_SWITCH_X_SITE}" | |
4356 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` | |
4357 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 | |
29834 | 4358 echo "configure:4359: checking for X11/Xaw3d/Scrollbar.h" >&5 |
25897 | 4359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4360 echo $ac_n "(cached) $ac_c" 1>&6 | |
4361 else | |
4362 cat > conftest.$ac_ext <<EOF | |
29834 | 4363 #line 4364 "configure" |
25897 | 4364 #include "confdefs.h" |
4365 #include <X11/Xaw3d/Scrollbar.h> | |
4366 EOF | |
4367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 4368 { (eval echo configure:4369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4370 if test -z "$ac_err"; then |
4371 rm -rf conftest* | |
4372 eval "ac_cv_header_$ac_safe=yes" | |
4373 else | |
4374 echo "$ac_err" >&5 | |
4375 echo "configure: failed program was:" >&5 | |
4376 cat conftest.$ac_ext >&5 | |
4377 rm -rf conftest* | |
4378 eval "ac_cv_header_$ac_safe=no" | |
4379 fi | |
4380 rm -f conftest* | |
4381 fi | |
4382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4383 echo "$ac_t""yes" 1>&6 | |
4384 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 | |
29834 | 4385 echo "configure:4386: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
25897 | 4386 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` |
4387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4388 echo $ac_n "(cached) $ac_c" 1>&6 | |
4389 else | |
4390 ac_save_LIBS="$LIBS" | |
4391 LIBS="-lXaw3d -lX11 $LIBS" | |
4392 cat > conftest.$ac_ext <<EOF | |
29834 | 4393 #line 4394 "configure" |
25897 | 4394 #include "confdefs.h" |
4395 /* Override any gcc2 internal prototype to avoid an error. */ | |
4396 /* We use char because int might match the return type of a gcc2 | |
4397 builtin and then its argument prototype would still apply. */ | |
4398 char XawScrollbarSetThumb(); | |
4399 | |
4400 int main() { | |
4401 XawScrollbarSetThumb() | |
4402 ; return 0; } | |
4403 EOF | |
29834 | 4404 if { (eval echo configure:4405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4405 rm -rf conftest* |
4406 eval "ac_cv_lib_$ac_lib_var=yes" | |
4407 else | |
4408 echo "configure: failed program was:" >&5 | |
4409 cat conftest.$ac_ext >&5 | |
4410 rm -rf conftest* | |
4411 eval "ac_cv_lib_$ac_lib_var=no" | |
4412 fi | |
4413 rm -f conftest* | |
4414 LIBS="$ac_save_LIBS" | |
4415 | |
4416 fi | |
4417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4418 echo "$ac_t""yes" 1>&6 | |
4419 HAVE_XAW3D=yes | |
4420 else | |
4421 echo "$ac_t""no" 1>&6 | |
4422 fi | |
4423 | |
4424 else | |
4425 echo "$ac_t""no" 1>&6 | |
4426 fi | |
4427 | |
4428 CFLAGS="${old_c_flags}" | |
4429 | |
4430 if test "${HAVE_XAW3D}" = "yes"; then | |
4431 cat >> confdefs.h <<\EOF | |
4432 #define HAVE_XAW3D 1 | |
4433 EOF | |
4434 | |
4435 fi | |
4436 fi | |
4437 fi | |
4438 | |
4439 | |
4440 USE_TOOLKIT_SCROLL_BARS=no | |
4441 if test "${with_toolkit_scroll_bars}" != "no"; then | |
4442 if test "${USE_X_TOOLKIT}" != "none"; then | |
4443 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
4444 cat >> confdefs.h <<\EOF | |
4445 #define USE_TOOLKIT_SCROLL_BARS 1 | |
4446 EOF | |
4447 | |
4448 HAVE_XAW3D=no | |
4449 USE_TOOLKIT_SCROLL_BARS=yes | |
4450 elif test "${HAVE_XAW3D}" = "yes"; then | |
4451 cat >> confdefs.h <<\EOF | |
4452 #define USE_TOOLKIT_SCROLL_BARS 1 | |
4453 EOF | |
4454 | |
4455 USE_TOOLKIT_SCROLL_BARS=yes | |
4456 fi | |
4457 fi | |
4458 fi | |
4459 | |
4460 ### Use -lXpm if available, unless `--with-xpm=no'. | |
4461 HAVE_XPM=no | |
4462 if test "${HAVE_X11}" = "yes"; then | |
4463 if test "${with_xpm}" != "no"; then | |
4464 old_c_flags="${CFLAGS}" | |
4465 CFLAGS="${LD_SWITCH_X_SITE}" | |
4466 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` | |
4467 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 | |
29834 | 4468 echo "configure:4469: checking for X11/xpm.h" >&5 |
25897 | 4469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4470 echo $ac_n "(cached) $ac_c" 1>&6 | |
4471 else | |
4472 cat > conftest.$ac_ext <<EOF | |
29834 | 4473 #line 4474 "configure" |
25897 | 4474 #include "confdefs.h" |
4475 #include <X11/xpm.h> | |
4476 EOF | |
4477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 4478 { (eval echo configure:4479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4480 if test -z "$ac_err"; then |
4481 rm -rf conftest* | |
4482 eval "ac_cv_header_$ac_safe=yes" | |
4483 else | |
4484 echo "$ac_err" >&5 | |
4485 echo "configure: failed program was:" >&5 | |
4486 cat conftest.$ac_ext >&5 | |
4487 rm -rf conftest* | |
4488 eval "ac_cv_header_$ac_safe=no" | |
4489 fi | |
4490 rm -f conftest* | |
4491 fi | |
4492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4493 echo "$ac_t""yes" 1>&6 | |
4494 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 | |
29834 | 4495 echo "configure:4496: checking for XpmReadFileToPixmap in -lXpm" >&5 |
25897 | 4496 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` |
4497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4498 echo $ac_n "(cached) $ac_c" 1>&6 | |
4499 else | |
4500 ac_save_LIBS="$LIBS" | |
4501 LIBS="-lXpm -lX11 $LIBS" | |
4502 cat > conftest.$ac_ext <<EOF | |
29834 | 4503 #line 4504 "configure" |
25897 | 4504 #include "confdefs.h" |
4505 /* Override any gcc2 internal prototype to avoid an error. */ | |
4506 /* We use char because int might match the return type of a gcc2 | |
4507 builtin and then its argument prototype would still apply. */ | |
4508 char XpmReadFileToPixmap(); | |
4509 | |
4510 int main() { | |
4511 XpmReadFileToPixmap() | |
4512 ; return 0; } | |
4513 EOF | |
29834 | 4514 if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4515 rm -rf conftest* |
4516 eval "ac_cv_lib_$ac_lib_var=yes" | |
4517 else | |
4518 echo "configure: failed program was:" >&5 | |
4519 cat conftest.$ac_ext >&5 | |
4520 rm -rf conftest* | |
4521 eval "ac_cv_lib_$ac_lib_var=no" | |
4522 fi | |
4523 rm -f conftest* | |
4524 LIBS="$ac_save_LIBS" | |
4525 | |
4526 fi | |
4527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4528 echo "$ac_t""yes" 1>&6 | |
4529 HAVE_XPM=yes | |
4530 else | |
4531 echo "$ac_t""no" 1>&6 | |
4532 fi | |
4533 | |
4534 else | |
4535 echo "$ac_t""no" 1>&6 | |
4536 fi | |
4537 | |
4538 CFLAGS="${old_c_flags}" | |
4539 fi | |
4540 | |
4541 if test "${HAVE_XPM}" = "yes"; then | |
4542 cat >> confdefs.h <<\EOF | |
4543 #define HAVE_XPM 1 | |
4544 EOF | |
4545 | |
4546 fi | |
4547 fi | |
4548 | |
4549 ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
4550 HAVE_JPEG=no | |
4551 if test "${HAVE_X11}" = "yes"; then | |
4552 if test "${with_jpeg}" != "no"; then | |
4553 old_c_flags="${CFLAGS}" | |
4554 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
27356 | 4555 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` |
4556 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 | |
29834 | 4557 echo "configure:4558: checking for jerror.h" >&5 |
27356 | 4558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4559 echo $ac_n "(cached) $ac_c" 1>&6 | |
4560 else | |
4561 cat > conftest.$ac_ext <<EOF | |
29834 | 4562 #line 4563 "configure" |
27356 | 4563 #include "confdefs.h" |
4564 #include <jerror.h> | |
4565 EOF | |
4566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 4567 { (eval echo configure:4568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27356 | 4568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4569 if test -z "$ac_err"; then | |
4570 rm -rf conftest* | |
4571 eval "ac_cv_header_$ac_safe=yes" | |
4572 else | |
4573 echo "$ac_err" >&5 | |
4574 echo "configure: failed program was:" >&5 | |
4575 cat conftest.$ac_ext >&5 | |
4576 rm -rf conftest* | |
4577 eval "ac_cv_header_$ac_safe=no" | |
4578 fi | |
4579 rm -f conftest* | |
4580 fi | |
4581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4582 echo "$ac_t""yes" 1>&6 | |
4583 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 | |
29834 | 4584 echo "configure:4585: checking for jpeg_destroy_compress in -ljpeg" >&5 |
25897 | 4585 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` |
4586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4587 echo $ac_n "(cached) $ac_c" 1>&6 | |
4588 else | |
4589 ac_save_LIBS="$LIBS" | |
4590 LIBS="-ljpeg -lX11 $LIBS" | |
4591 cat > conftest.$ac_ext <<EOF | |
29834 | 4592 #line 4593 "configure" |
25897 | 4593 #include "confdefs.h" |
4594 /* Override any gcc2 internal prototype to avoid an error. */ | |
4595 /* We use char because int might match the return type of a gcc2 | |
4596 builtin and then its argument prototype would still apply. */ | |
4597 char jpeg_destroy_compress(); | |
4598 | |
4599 int main() { | |
4600 jpeg_destroy_compress() | |
4601 ; return 0; } | |
4602 EOF | |
29834 | 4603 if { (eval echo configure:4604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4604 rm -rf conftest* |
4605 eval "ac_cv_lib_$ac_lib_var=yes" | |
4606 else | |
4607 echo "configure: failed program was:" >&5 | |
4608 cat conftest.$ac_ext >&5 | |
4609 rm -rf conftest* | |
4610 eval "ac_cv_lib_$ac_lib_var=no" | |
4611 fi | |
4612 rm -f conftest* | |
4613 LIBS="$ac_save_LIBS" | |
4614 | |
4615 fi | |
4616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4617 echo "$ac_t""yes" 1>&6 | |
4618 HAVE_JPEG=yes | |
4619 else | |
4620 echo "$ac_t""no" 1>&6 | |
4621 fi | |
4622 | |
27356 | 4623 else |
4624 echo "$ac_t""no" 1>&6 | |
4625 fi | |
4626 | |
25897 | 4627 CFLAGS="${old_c_flags}" |
4628 fi | |
4629 | |
4630 if test "${HAVE_JPEG}" = "yes"; then | |
4631 cat >> confdefs.h <<\EOF | |
4632 #define HAVE_JPEG 1 | |
4633 EOF | |
4634 | |
4635 fi | |
4636 fi | |
4637 | |
4638 ### Use -lpng if available, unless `--with-png=no'. | |
4639 HAVE_PNG=no | |
4640 if test "${HAVE_X11}" = "yes"; then | |
4641 if test "${with_png}" != "no"; then | |
4642 old_c_flags="${CFLAGS}" | |
4643 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4644 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
4645 echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
29834 | 4646 echo "configure:4647: checking for png.h" >&5 |
25897 | 4647 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4648 echo $ac_n "(cached) $ac_c" 1>&6 | |
4649 else | |
4650 cat > conftest.$ac_ext <<EOF | |
29834 | 4651 #line 4652 "configure" |
25897 | 4652 #include "confdefs.h" |
4653 #include <png.h> | |
4654 EOF | |
4655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 4656 { (eval echo configure:4657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4658 if test -z "$ac_err"; then |
4659 rm -rf conftest* | |
4660 eval "ac_cv_header_$ac_safe=yes" | |
4661 else | |
4662 echo "$ac_err" >&5 | |
4663 echo "configure: failed program was:" >&5 | |
4664 cat conftest.$ac_ext >&5 | |
4665 rm -rf conftest* | |
4666 eval "ac_cv_header_$ac_safe=no" | |
4667 fi | |
4668 rm -f conftest* | |
4669 fi | |
4670 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4671 echo "$ac_t""yes" 1>&6 | |
4672 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 | |
29834 | 4673 echo "configure:4674: checking for png_set_expand in -lpng" >&5 |
25897 | 4674 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` |
4675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4676 echo $ac_n "(cached) $ac_c" 1>&6 | |
4677 else | |
4678 ac_save_LIBS="$LIBS" | |
4679 LIBS="-lpng -lX11 -lz -lm $LIBS" | |
4680 cat > conftest.$ac_ext <<EOF | |
29834 | 4681 #line 4682 "configure" |
25897 | 4682 #include "confdefs.h" |
4683 /* Override any gcc2 internal prototype to avoid an error. */ | |
4684 /* We use char because int might match the return type of a gcc2 | |
4685 builtin and then its argument prototype would still apply. */ | |
4686 char png_set_expand(); | |
4687 | |
4688 int main() { | |
4689 png_set_expand() | |
4690 ; return 0; } | |
4691 EOF | |
29834 | 4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4693 rm -rf conftest* |
4694 eval "ac_cv_lib_$ac_lib_var=yes" | |
4695 else | |
4696 echo "configure: failed program was:" >&5 | |
4697 cat conftest.$ac_ext >&5 | |
4698 rm -rf conftest* | |
4699 eval "ac_cv_lib_$ac_lib_var=no" | |
4700 fi | |
4701 rm -f conftest* | |
4702 LIBS="$ac_save_LIBS" | |
4703 | |
4704 fi | |
4705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4706 echo "$ac_t""yes" 1>&6 | |
4707 HAVE_PNG=yes | |
4708 else | |
4709 echo "$ac_t""no" 1>&6 | |
4710 fi | |
4711 | |
4712 else | |
4713 echo "$ac_t""no" 1>&6 | |
4714 fi | |
4715 | |
4716 CFLAGS="${old_c_flags}" | |
4717 fi | |
4718 | |
4719 if test "${HAVE_PNG}" = "yes"; then | |
4720 cat >> confdefs.h <<\EOF | |
4721 #define HAVE_PNG 1 | |
4722 EOF | |
4723 | |
4724 fi | |
4725 fi | |
4726 | |
4727 ### Use -ltiff if available, unless `--with-tiff=no'. | |
4728 HAVE_TIFF=no | |
4729 if test "${HAVE_X11}" = "yes"; then | |
4730 if test "${with_tiff}" != "no"; then | |
4731 old_c_flags="${CFLAGS}" | |
4732 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4733 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
4734 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
29834 | 4735 echo "configure:4736: checking for tiffio.h" >&5 |
25897 | 4736 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4737 echo $ac_n "(cached) $ac_c" 1>&6 | |
4738 else | |
4739 cat > conftest.$ac_ext <<EOF | |
29834 | 4740 #line 4741 "configure" |
25897 | 4741 #include "confdefs.h" |
4742 #include <tiffio.h> | |
4743 EOF | |
4744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 4745 { (eval echo configure:4746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4747 if test -z "$ac_err"; then |
4748 rm -rf conftest* | |
4749 eval "ac_cv_header_$ac_safe=yes" | |
4750 else | |
4751 echo "$ac_err" >&5 | |
4752 echo "configure: failed program was:" >&5 | |
4753 cat conftest.$ac_ext >&5 | |
4754 rm -rf conftest* | |
4755 eval "ac_cv_header_$ac_safe=no" | |
4756 fi | |
4757 rm -f conftest* | |
4758 fi | |
4759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4760 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
|
4761 tifflibs="-lX11 -lz -lm" |
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
4762 # 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
|
4763 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
|
4764 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 |
29834 | 4765 echo "configure:4766: checking for TIFFGetVersion in -ltiff" >&5 |
25897 | 4766 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` |
4767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4768 echo $ac_n "(cached) $ac_c" 1>&6 | |
4769 else | |
4770 ac_save_LIBS="$LIBS" | |
27752
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
4771 LIBS="-ltiff $tifflibs $LIBS" |
25897 | 4772 cat > conftest.$ac_ext <<EOF |
29834 | 4773 #line 4774 "configure" |
25897 | 4774 #include "confdefs.h" |
4775 /* Override any gcc2 internal prototype to avoid an error. */ | |
4776 /* We use char because int might match the return type of a gcc2 | |
4777 builtin and then its argument prototype would still apply. */ | |
4778 char TIFFGetVersion(); | |
4779 | |
4780 int main() { | |
4781 TIFFGetVersion() | |
4782 ; return 0; } | |
4783 EOF | |
29834 | 4784 if { (eval echo configure:4785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4785 rm -rf conftest* |
4786 eval "ac_cv_lib_$ac_lib_var=yes" | |
4787 else | |
4788 echo "configure: failed program was:" >&5 | |
4789 cat conftest.$ac_ext >&5 | |
4790 rm -rf conftest* | |
4791 eval "ac_cv_lib_$ac_lib_var=no" | |
4792 fi | |
4793 rm -f conftest* | |
4794 LIBS="$ac_save_LIBS" | |
4795 | |
4796 fi | |
4797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4798 echo "$ac_t""yes" 1>&6 | |
4799 HAVE_TIFF=yes | |
4800 else | |
4801 echo "$ac_t""no" 1>&6 | |
4802 fi | |
4803 | |
4804 else | |
4805 echo "$ac_t""no" 1>&6 | |
4806 fi | |
4807 | |
4808 CFLAGS="${old_c_flags}" | |
4809 fi | |
4810 | |
4811 if test "${HAVE_TIFF}" = "yes"; then | |
4812 cat >> confdefs.h <<\EOF | |
4813 #define HAVE_TIFF 1 | |
4814 EOF | |
4815 | |
4816 fi | |
4817 fi | |
4818 | |
4819 ### Use -lgif if available, unless `--with-gif=no'. | |
4820 HAVE_GIF=no | |
4821 if test "${HAVE_X11}" = "yes"; then | |
4822 if test "${with_gif}" != "no"; then | |
4823 old_c_flags="${CFLAGS}" | |
4824 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4825 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` | |
4826 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 | |
29834 | 4827 echo "configure:4828: checking for gif_lib.h" >&5 |
25897 | 4828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4829 echo $ac_n "(cached) $ac_c" 1>&6 | |
4830 else | |
4831 cat > conftest.$ac_ext <<EOF | |
29834 | 4832 #line 4833 "configure" |
25897 | 4833 #include "confdefs.h" |
4834 #include <gif_lib.h> | |
4835 EOF | |
4836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 4837 { (eval echo configure:4838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 4838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 4839 if test -z "$ac_err"; then |
4840 rm -rf conftest* | |
4841 eval "ac_cv_header_$ac_safe=yes" | |
4842 else | |
4843 echo "$ac_err" >&5 | |
4844 echo "configure: failed program was:" >&5 | |
4845 cat conftest.$ac_ext >&5 | |
4846 rm -rf conftest* | |
4847 eval "ac_cv_header_$ac_safe=no" | |
4848 fi | |
4849 rm -f conftest* | |
4850 fi | |
4851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4852 echo "$ac_t""yes" 1>&6 | |
27356 | 4853 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 |
29834 | 4854 echo "configure:4855: checking for DGifOpen in -lungif" >&5 |
27356 | 4855 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` |
25897 | 4856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4857 echo $ac_n "(cached) $ac_c" 1>&6 | |
4858 else | |
4859 ac_save_LIBS="$LIBS" | |
4860 LIBS="-lungif -lX11 $LIBS" | |
4861 cat > conftest.$ac_ext <<EOF | |
29834 | 4862 #line 4863 "configure" |
25897 | 4863 #include "confdefs.h" |
4864 /* Override any gcc2 internal prototype to avoid an error. */ | |
4865 /* We use char because int might match the return type of a gcc2 | |
4866 builtin and then its argument prototype would still apply. */ | |
27356 | 4867 char DGifOpen(); |
25897 | 4868 |
4869 int main() { | |
27356 | 4870 DGifOpen() |
25897 | 4871 ; return 0; } |
4872 EOF | |
29834 | 4873 if { (eval echo configure:4874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4874 rm -rf conftest* |
4875 eval "ac_cv_lib_$ac_lib_var=yes" | |
4876 else | |
4877 echo "configure: failed program was:" >&5 | |
4878 cat conftest.$ac_ext >&5 | |
4879 rm -rf conftest* | |
4880 eval "ac_cv_lib_$ac_lib_var=no" | |
4881 fi | |
4882 rm -f conftest* | |
4883 LIBS="$ac_save_LIBS" | |
4884 | |
4885 fi | |
4886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4887 echo "$ac_t""yes" 1>&6 | |
4888 HAVE_GIF=yes | |
4889 else | |
4890 echo "$ac_t""no" 1>&6 | |
4891 fi | |
4892 | |
4893 else | |
4894 echo "$ac_t""no" 1>&6 | |
4895 fi | |
4896 | |
4897 CFLAGS="${old_c_flags}" | |
4898 fi | |
4899 | |
4900 if test "${HAVE_GIF}" = "yes"; then | |
4901 cat >> confdefs.h <<\EOF | |
4902 #define HAVE_GIF 1 | |
4903 EOF | |
4904 | |
4905 fi | |
4906 fi | |
4907 | |
4908 # If netdb.h doesn't declare h_errno, we must declare it by hand. | |
4909 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | |
29834 | 4910 echo "configure:4911: checking whether netdb declares h_errno" >&5 |
25897 | 4911 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then |
4912 echo $ac_n "(cached) $ac_c" 1>&6 | |
4913 else | |
4914 cat > conftest.$ac_ext <<EOF | |
29834 | 4915 #line 4916 "configure" |
25897 | 4916 #include "confdefs.h" |
4917 #include <netdb.h> | |
4918 int main() { | |
4919 return h_errno; | |
4920 ; return 0; } | |
4921 EOF | |
29834 | 4922 if { (eval echo configure:4923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4923 rm -rf conftest* |
4924 emacs_cv_netdb_declares_h_errno=yes | |
4925 else | |
4926 echo "configure: failed program was:" >&5 | |
4927 cat conftest.$ac_ext >&5 | |
4928 rm -rf conftest* | |
4929 emacs_cv_netdb_declares_h_errno=no | |
4930 fi | |
4931 rm -f conftest* | |
4932 fi | |
4933 | |
4934 echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6 | |
4935 if test $emacs_cv_netdb_declares_h_errno = yes; then | |
4936 cat >> confdefs.h <<\EOF | |
4937 #define HAVE_H_ERRNO 1 | |
4938 EOF | |
4939 | |
4940 fi | |
4941 | |
4942 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
4943 # for constant arguments. Useless! | |
4944 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
29834 | 4945 echo "configure:4946: checking for working alloca.h" >&5 |
25897 | 4946 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
4947 echo $ac_n "(cached) $ac_c" 1>&6 | |
4948 else | |
4949 cat > conftest.$ac_ext <<EOF | |
29834 | 4950 #line 4951 "configure" |
25897 | 4951 #include "confdefs.h" |
4952 #include <alloca.h> | |
4953 int main() { | |
29733 | 4954 void *p = alloca(2 * sizeof(int)); |
25897 | 4955 ; return 0; } |
4956 EOF | |
29834 | 4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4958 rm -rf conftest* |
4959 ac_cv_header_alloca_h=yes | |
4960 else | |
4961 echo "configure: failed program was:" >&5 | |
4962 cat conftest.$ac_ext >&5 | |
4963 rm -rf conftest* | |
4964 ac_cv_header_alloca_h=no | |
4965 fi | |
4966 rm -f conftest* | |
4967 fi | |
4968 | |
4969 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
4970 if test $ac_cv_header_alloca_h = yes; then | |
4971 cat >> confdefs.h <<\EOF | |
4972 #define HAVE_ALLOCA_H 1 | |
4973 EOF | |
4974 | |
4975 fi | |
4976 | |
4977 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
29834 | 4978 echo "configure:4979: checking for alloca" >&5 |
25897 | 4979 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
4980 echo $ac_n "(cached) $ac_c" 1>&6 | |
4981 else | |
4982 cat > conftest.$ac_ext <<EOF | |
29834 | 4983 #line 4984 "configure" |
25897 | 4984 #include "confdefs.h" |
4985 | |
4986 #ifdef __GNUC__ | |
4987 # define alloca __builtin_alloca | |
4988 #else | |
27205 | 4989 # ifdef _MSC_VER |
4990 # include <malloc.h> | |
4991 # define alloca _alloca | |
25897 | 4992 # else |
27205 | 4993 # if HAVE_ALLOCA_H |
4994 # include <alloca.h> | |
25897 | 4995 # else |
27205 | 4996 # ifdef _AIX |
4997 #pragma alloca | |
4998 # else | |
4999 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
25897 | 5000 char *alloca (); |
27205 | 5001 # endif |
25897 | 5002 # endif |
5003 # endif | |
5004 # endif | |
5005 #endif | |
5006 | |
5007 int main() { | |
5008 char *p = (char *) alloca(1); | |
5009 ; return 0; } | |
5010 EOF | |
29834 | 5011 if { (eval echo configure:5012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5012 rm -rf conftest* |
5013 ac_cv_func_alloca_works=yes | |
5014 else | |
5015 echo "configure: failed program was:" >&5 | |
5016 cat conftest.$ac_ext >&5 | |
5017 rm -rf conftest* | |
5018 ac_cv_func_alloca_works=no | |
5019 fi | |
5020 rm -f conftest* | |
5021 fi | |
5022 | |
5023 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
5024 if test $ac_cv_func_alloca_works = yes; then | |
5025 cat >> confdefs.h <<\EOF | |
5026 #define HAVE_ALLOCA 1 | |
5027 EOF | |
5028 | |
5029 fi | |
5030 | |
5031 if test $ac_cv_func_alloca_works = no; then | |
5032 # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
5033 # that cause trouble. Some versions do not even contain alloca or | |
5034 # contain a buggy version. If you still want to use their alloca, | |
5035 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
27205 | 5036 ALLOCA=alloca.${ac_objext} |
25897 | 5037 cat >> confdefs.h <<\EOF |
5038 #define C_ALLOCA 1 | |
5039 EOF | |
5040 | |
5041 | |
5042 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
29834 | 5043 echo "configure:5044: checking whether alloca needs Cray hooks" >&5 |
25897 | 5044 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
5045 echo $ac_n "(cached) $ac_c" 1>&6 | |
5046 else | |
5047 cat > conftest.$ac_ext <<EOF | |
29834 | 5048 #line 5049 "configure" |
25897 | 5049 #include "confdefs.h" |
5050 #if defined(CRAY) && ! defined(CRAY2) | |
5051 webecray | |
5052 #else | |
5053 wenotbecray | |
5054 #endif | |
5055 | |
5056 EOF | |
5057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5058 egrep "webecray" >/dev/null 2>&1; then | |
5059 rm -rf conftest* | |
5060 ac_cv_os_cray=yes | |
5061 else | |
5062 rm -rf conftest* | |
5063 ac_cv_os_cray=no | |
5064 fi | |
5065 rm -f conftest* | |
5066 | |
5067 fi | |
5068 | |
5069 echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
5070 if test $ac_cv_os_cray = yes; then | |
5071 for ac_func in _getb67 GETB67 getb67; do | |
5072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29834 | 5073 echo "configure:5074: checking for $ac_func" >&5 |
25897 | 5074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5075 echo $ac_n "(cached) $ac_c" 1>&6 | |
5076 else | |
5077 cat > conftest.$ac_ext <<EOF | |
29834 | 5078 #line 5079 "configure" |
25897 | 5079 #include "confdefs.h" |
5080 /* System header to define __stub macros and hopefully few prototypes, | |
5081 which can conflict with char $ac_func(); below. */ | |
5082 #include <assert.h> | |
5083 /* Override any gcc2 internal prototype to avoid an error. */ | |
5084 /* We use char because int might match the return type of a gcc2 | |
5085 builtin and then its argument prototype would still apply. */ | |
5086 char $ac_func(); | |
5087 | |
5088 int main() { | |
5089 | |
5090 /* The GNU C library defines this for functions which it implements | |
5091 to always fail with ENOSYS. Some functions are actually named | |
5092 something starting with __ and the normal name is an alias. */ | |
5093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5094 choke me | |
5095 #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
|
5096 $ac_func(); |
25897 | 5097 #endif |
5098 | |
5099 ; return 0; } | |
5100 EOF | |
29834 | 5101 if { (eval echo configure:5102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5102 rm -rf conftest* |
5103 eval "ac_cv_func_$ac_func=yes" | |
5104 else | |
5105 echo "configure: failed program was:" >&5 | |
5106 cat conftest.$ac_ext >&5 | |
5107 rm -rf conftest* | |
5108 eval "ac_cv_func_$ac_func=no" | |
5109 fi | |
5110 rm -f conftest* | |
5111 fi | |
5112 | |
5113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5114 echo "$ac_t""yes" 1>&6 | |
5115 cat >> confdefs.h <<EOF | |
5116 #define CRAY_STACKSEG_END $ac_func | |
5117 EOF | |
5118 | |
5119 break | |
5120 else | |
5121 echo "$ac_t""no" 1>&6 | |
5122 fi | |
5123 | |
5124 done | |
5125 fi | |
5126 | |
5127 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
29834 | 5128 echo "configure:5129: checking stack direction for C alloca" >&5 |
25897 | 5129 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
5130 echo $ac_n "(cached) $ac_c" 1>&6 | |
5131 else | |
5132 if test "$cross_compiling" = yes; then | |
5133 ac_cv_c_stack_direction=0 | |
5134 else | |
5135 cat > conftest.$ac_ext <<EOF | |
29834 | 5136 #line 5137 "configure" |
25897 | 5137 #include "confdefs.h" |
5138 find_stack_direction () | |
5139 { | |
5140 static char *addr = 0; | |
5141 auto char dummy; | |
5142 if (addr == 0) | |
5143 { | |
5144 addr = &dummy; | |
5145 return find_stack_direction (); | |
5146 } | |
5147 else | |
5148 return (&dummy > addr) ? 1 : -1; | |
5149 } | |
5150 main () | |
5151 { | |
5152 exit (find_stack_direction() < 0); | |
5153 } | |
5154 EOF | |
29834 | 5155 if { (eval echo configure:5156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
25897 | 5156 then |
5157 ac_cv_c_stack_direction=1 | |
5158 else | |
5159 echo "configure: failed program was:" >&5 | |
5160 cat conftest.$ac_ext >&5 | |
5161 rm -fr conftest* | |
5162 ac_cv_c_stack_direction=-1 | |
5163 fi | |
5164 rm -fr conftest* | |
5165 fi | |
5166 | |
5167 fi | |
5168 | |
5169 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
5170 cat >> confdefs.h <<EOF | |
5171 #define STACK_DIRECTION $ac_cv_c_stack_direction | |
5172 EOF | |
5173 | |
5174 fi | |
5175 | |
5176 | |
5177 # fmod, logb, and frexp are found in -lm on most systems. | |
5178 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
5179 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 | |
29834 | 5180 echo "configure:5181: checking for sqrt in -lm" >&5 |
25897 | 5181 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
5182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5183 echo $ac_n "(cached) $ac_c" 1>&6 | |
5184 else | |
5185 ac_save_LIBS="$LIBS" | |
5186 LIBS="-lm $LIBS" | |
5187 cat > conftest.$ac_ext <<EOF | |
29834 | 5188 #line 5189 "configure" |
25897 | 5189 #include "confdefs.h" |
5190 /* Override any gcc2 internal prototype to avoid an error. */ | |
5191 /* We use char because int might match the return type of a gcc2 | |
5192 builtin and then its argument prototype would still apply. */ | |
5193 char sqrt(); | |
5194 | |
5195 int main() { | |
5196 sqrt() | |
5197 ; return 0; } | |
5198 EOF | |
29834 | 5199 if { (eval echo configure:5200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5200 rm -rf conftest* |
5201 eval "ac_cv_lib_$ac_lib_var=yes" | |
5202 else | |
5203 echo "configure: failed program was:" >&5 | |
5204 cat conftest.$ac_ext >&5 | |
5205 rm -rf conftest* | |
5206 eval "ac_cv_lib_$ac_lib_var=no" | |
5207 fi | |
5208 rm -f conftest* | |
5209 LIBS="$ac_save_LIBS" | |
5210 | |
5211 fi | |
5212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5213 echo "$ac_t""yes" 1>&6 | |
5214 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
5215 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5216 cat >> confdefs.h <<EOF | |
5217 #define $ac_tr_lib 1 | |
5218 EOF | |
5219 | |
5220 LIBS="-lm $LIBS" | |
5221 | |
5222 else | |
5223 echo "$ac_t""no" 1>&6 | |
5224 fi | |
5225 | |
5226 | |
5227 # Check for mail-locking functions in a "mail" library | |
5228 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 | |
29834 | 5229 echo "configure:5230: checking for maillock in -lmail" >&5 |
25897 | 5230 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` |
5231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5232 echo $ac_n "(cached) $ac_c" 1>&6 | |
5233 else | |
5234 ac_save_LIBS="$LIBS" | |
5235 LIBS="-lmail $LIBS" | |
5236 cat > conftest.$ac_ext <<EOF | |
29834 | 5237 #line 5238 "configure" |
25897 | 5238 #include "confdefs.h" |
5239 /* Override any gcc2 internal prototype to avoid an error. */ | |
5240 /* We use char because int might match the return type of a gcc2 | |
5241 builtin and then its argument prototype would still apply. */ | |
5242 char maillock(); | |
5243 | |
5244 int main() { | |
5245 maillock() | |
5246 ; return 0; } | |
5247 EOF | |
29834 | 5248 if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5249 rm -rf conftest* |
5250 eval "ac_cv_lib_$ac_lib_var=yes" | |
5251 else | |
5252 echo "configure: failed program was:" >&5 | |
5253 cat conftest.$ac_ext >&5 | |
5254 rm -rf conftest* | |
5255 eval "ac_cv_lib_$ac_lib_var=no" | |
5256 fi | |
5257 rm -f conftest* | |
5258 LIBS="$ac_save_LIBS" | |
5259 | |
5260 fi | |
5261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5262 echo "$ac_t""yes" 1>&6 | |
5263 ac_tr_lib=HAVE_LIB`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
5264 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5265 cat >> confdefs.h <<EOF | |
5266 #define $ac_tr_lib 1 | |
5267 EOF | |
5268 | |
5269 LIBS="-lmail $LIBS" | |
5270 | |
5271 else | |
5272 echo "$ac_t""no" 1>&6 | |
5273 fi | |
5274 | |
5275 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 | |
29834 | 5276 echo "configure:5277: checking for maillock in -llockfile" >&5 |
25897 | 5277 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` |
5278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5279 echo $ac_n "(cached) $ac_c" 1>&6 | |
5280 else | |
5281 ac_save_LIBS="$LIBS" | |
5282 LIBS="-llockfile $LIBS" | |
5283 cat > conftest.$ac_ext <<EOF | |
29834 | 5284 #line 5285 "configure" |
25897 | 5285 #include "confdefs.h" |
5286 /* Override any gcc2 internal prototype to avoid an error. */ | |
5287 /* We use char because int might match the return type of a gcc2 | |
5288 builtin and then its argument prototype would still apply. */ | |
5289 char maillock(); | |
5290 | |
5291 int main() { | |
5292 maillock() | |
5293 ; return 0; } | |
5294 EOF | |
29834 | 5295 if { (eval echo configure:5296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5296 rm -rf conftest* |
5297 eval "ac_cv_lib_$ac_lib_var=yes" | |
5298 else | |
5299 echo "configure: failed program was:" >&5 | |
5300 cat conftest.$ac_ext >&5 | |
5301 rm -rf conftest* | |
5302 eval "ac_cv_lib_$ac_lib_var=no" | |
5303 fi | |
5304 rm -f conftest* | |
5305 LIBS="$ac_save_LIBS" | |
5306 | |
5307 fi | |
5308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5309 echo "$ac_t""yes" 1>&6 | |
5310 ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
5311 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5312 cat >> confdefs.h <<EOF | |
5313 #define $ac_tr_lib 1 | |
5314 EOF | |
5315 | |
5316 LIBS="-llockfile $LIBS" | |
5317 | |
5318 else | |
5319 echo "$ac_t""no" 1>&6 | |
5320 fi | |
5321 | |
5322 # If we have the shared liblockfile, assume we must use it for mail | |
5323 # locking (e.g. Debian). If we couldn't link against liblockfile | |
5324 # (no liblockfile.a installed), ensure that we don't need to. | |
5325 if test "$ac_cv_lib_lockfile_maillock" = no; then | |
5326 # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
5327 set dummy liblockfile.so; ac_word=$2 | |
5328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
29834 | 5329 echo "configure:5330: checking for $ac_word" >&5 |
25897 | 5330 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then |
5331 echo $ac_n "(cached) $ac_c" 1>&6 | |
5332 else | |
5333 if test -n "$liblockfile"; then | |
5334 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
5335 else | |
27205 | 5336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5337 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | |
5338 for ac_dir in $ac_dummy; do | |
25897 | 5339 test -z "$ac_dir" && ac_dir=. |
5340 if test -f $ac_dir/$ac_word; then | |
5341 ac_cv_prog_liblockfile="yes" | |
5342 break | |
5343 fi | |
5344 done | |
5345 IFS="$ac_save_ifs" | |
5346 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
5347 fi | |
5348 fi | |
5349 liblockfile="$ac_cv_prog_liblockfile" | |
5350 if test -n "$liblockfile"; then | |
5351 echo "$ac_t""$liblockfile" 1>&6 | |
5352 else | |
5353 echo "$ac_t""no" 1>&6 | |
5354 fi | |
5355 | |
5356 if test $ac_cv_prog_liblockfile = yes; then | |
5357 { echo "configure: error: Shared liblockfile found but can't link against it. | |
5358 This probably means that movemail could lose mail. | |
5359 There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; } | |
5360 else cat >> confdefs.h <<\EOF | |
5361 #define LIBMAIL -llockfile | |
5362 EOF | |
5363 | |
5364 fi | |
5365 else : | |
5366 fi | |
5367 for ac_func in touchlock | |
5368 do | |
5369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29834 | 5370 echo "configure:5371: checking for $ac_func" >&5 |
25897 | 5371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5372 echo $ac_n "(cached) $ac_c" 1>&6 | |
5373 else | |
5374 cat > conftest.$ac_ext <<EOF | |
29834 | 5375 #line 5376 "configure" |
25897 | 5376 #include "confdefs.h" |
5377 /* System header to define __stub macros and hopefully few prototypes, | |
5378 which can conflict with char $ac_func(); below. */ | |
5379 #include <assert.h> | |
5380 /* Override any gcc2 internal prototype to avoid an error. */ | |
5381 /* We use char because int might match the return type of a gcc2 | |
5382 builtin and then its argument prototype would still apply. */ | |
5383 char $ac_func(); | |
5384 | |
5385 int main() { | |
5386 | |
5387 /* The GNU C library defines this for functions which it implements | |
5388 to always fail with ENOSYS. Some functions are actually named | |
5389 something starting with __ and the normal name is an alias. */ | |
5390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5391 choke me | |
5392 #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
|
5393 $ac_func(); |
25897 | 5394 #endif |
5395 | |
5396 ; return 0; } | |
5397 EOF | |
29834 | 5398 if { (eval echo configure:5399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5399 rm -rf conftest* |
5400 eval "ac_cv_func_$ac_func=yes" | |
5401 else | |
5402 echo "configure: failed program was:" >&5 | |
5403 cat conftest.$ac_ext >&5 | |
5404 rm -rf conftest* | |
5405 eval "ac_cv_func_$ac_func=no" | |
5406 fi | |
5407 rm -f conftest* | |
5408 fi | |
5409 | |
5410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5411 echo "$ac_t""yes" 1>&6 | |
5412 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5413 cat >> confdefs.h <<EOF | |
5414 #define $ac_tr_func 1 | |
5415 EOF | |
5416 | |
5417 else | |
5418 echo "$ac_t""no" 1>&6 | |
5419 fi | |
5420 done | |
5421 | |
5422 for ac_hdr in maillock.h | |
5423 do | |
5424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29834 | 5426 echo "configure:5427: checking for $ac_hdr" >&5 |
25897 | 5427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5428 echo $ac_n "(cached) $ac_c" 1>&6 | |
5429 else | |
5430 cat > conftest.$ac_ext <<EOF | |
29834 | 5431 #line 5432 "configure" |
25897 | 5432 #include "confdefs.h" |
5433 #include <$ac_hdr> | |
5434 EOF | |
5435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 5436 { (eval echo configure:5437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 5437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 5438 if test -z "$ac_err"; then |
5439 rm -rf conftest* | |
5440 eval "ac_cv_header_$ac_safe=yes" | |
5441 else | |
5442 echo "$ac_err" >&5 | |
5443 echo "configure: failed program was:" >&5 | |
5444 cat conftest.$ac_ext >&5 | |
5445 rm -rf conftest* | |
5446 eval "ac_cv_header_$ac_safe=no" | |
5447 fi | |
5448 rm -f conftest* | |
5449 fi | |
5450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5451 echo "$ac_t""yes" 1>&6 | |
5452 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5453 cat >> confdefs.h <<EOF | |
5454 #define $ac_tr_hdr 1 | |
5455 EOF | |
5456 | |
5457 else | |
5458 echo "$ac_t""no" 1>&6 | |
5459 fi | |
5460 done | |
5461 | |
5462 | |
5463 for ac_func in gettimeofday gethostname getdomainname dup2 \ | |
5464 rename closedir mkdir rmdir sysinfo \ | |
5465 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
5466 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
29733 | 5467 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
29834 | 5468 __fpending mblen mbrlen strsignal setitimer ualarm |
25897 | 5469 do |
5470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29834 | 5471 echo "configure:5472: checking for $ac_func" >&5 |
25897 | 5472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5473 echo $ac_n "(cached) $ac_c" 1>&6 | |
5474 else | |
5475 cat > conftest.$ac_ext <<EOF | |
29834 | 5476 #line 5477 "configure" |
25897 | 5477 #include "confdefs.h" |
5478 /* System header to define __stub macros and hopefully few prototypes, | |
5479 which can conflict with char $ac_func(); below. */ | |
5480 #include <assert.h> | |
5481 /* Override any gcc2 internal prototype to avoid an error. */ | |
5482 /* We use char because int might match the return type of a gcc2 | |
5483 builtin and then its argument prototype would still apply. */ | |
5484 char $ac_func(); | |
5485 | |
5486 int main() { | |
5487 | |
5488 /* The GNU C library defines this for functions which it implements | |
5489 to always fail with ENOSYS. Some functions are actually named | |
5490 something starting with __ and the normal name is an alias. */ | |
5491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5492 choke me | |
5493 #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
|
5494 $ac_func(); |
25897 | 5495 #endif |
5496 | |
5497 ; return 0; } | |
5498 EOF | |
29834 | 5499 if { (eval echo configure:5500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5500 rm -rf conftest* |
5501 eval "ac_cv_func_$ac_func=yes" | |
5502 else | |
5503 echo "configure: failed program was:" >&5 | |
5504 cat conftest.$ac_ext >&5 | |
5505 rm -rf conftest* | |
5506 eval "ac_cv_func_$ac_func=no" | |
5507 fi | |
5508 rm -f conftest* | |
5509 fi | |
5510 | |
5511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5512 echo "$ac_t""yes" 1>&6 | |
5513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5514 cat >> confdefs.h <<EOF | |
5515 #define $ac_tr_func 1 | |
5516 EOF | |
5517 | |
5518 else | |
5519 echo "$ac_t""no" 1>&6 | |
5520 fi | |
5521 done | |
5522 | |
5523 | |
28607 | 5524 for ac_hdr in sys/time.h unistd.h |
5525 do | |
5526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
29834 | 5528 echo "configure:5529: checking for $ac_hdr" >&5 |
28607 | 5529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5530 echo $ac_n "(cached) $ac_c" 1>&6 | |
5531 else | |
5532 cat > conftest.$ac_ext <<EOF | |
29834 | 5533 #line 5534 "configure" |
28607 | 5534 #include "confdefs.h" |
5535 #include <$ac_hdr> | |
5536 EOF | |
5537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 5538 { (eval echo configure:5539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
28607 | 5539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5540 if test -z "$ac_err"; then | |
5541 rm -rf conftest* | |
5542 eval "ac_cv_header_$ac_safe=yes" | |
5543 else | |
5544 echo "$ac_err" >&5 | |
5545 echo "configure: failed program was:" >&5 | |
5546 cat conftest.$ac_ext >&5 | |
5547 rm -rf conftest* | |
5548 eval "ac_cv_header_$ac_safe=no" | |
5549 fi | |
5550 rm -f conftest* | |
5551 fi | |
5552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5553 echo "$ac_t""yes" 1>&6 | |
5554 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5555 cat >> confdefs.h <<EOF | |
5556 #define $ac_tr_hdr 1 | |
5557 EOF | |
5558 | |
5559 else | |
5560 echo "$ac_t""no" 1>&6 | |
5561 fi | |
5562 done | |
5563 | |
5564 for ac_func in alarm | |
5565 do | |
5566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29834 | 5567 echo "configure:5568: checking for $ac_func" >&5 |
28607 | 5568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5569 echo $ac_n "(cached) $ac_c" 1>&6 | |
5570 else | |
5571 cat > conftest.$ac_ext <<EOF | |
29834 | 5572 #line 5573 "configure" |
28607 | 5573 #include "confdefs.h" |
5574 /* System header to define __stub macros and hopefully few prototypes, | |
5575 which can conflict with char $ac_func(); below. */ | |
5576 #include <assert.h> | |
5577 /* Override any gcc2 internal prototype to avoid an error. */ | |
5578 /* We use char because int might match the return type of a gcc2 | |
5579 builtin and then its argument prototype would still apply. */ | |
5580 char $ac_func(); | |
5581 | |
5582 int main() { | |
5583 | |
5584 /* The GNU C library defines this for functions which it implements | |
5585 to always fail with ENOSYS. Some functions are actually named | |
5586 something starting with __ and the normal name is an alias. */ | |
5587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5588 choke me | |
5589 #else | |
5590 $ac_func(); | |
5591 #endif | |
5592 | |
5593 ; return 0; } | |
5594 EOF | |
29834 | 5595 if { (eval echo configure:5596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
28607 | 5596 rm -rf conftest* |
5597 eval "ac_cv_func_$ac_func=yes" | |
5598 else | |
5599 echo "configure: failed program was:" >&5 | |
5600 cat conftest.$ac_ext >&5 | |
5601 rm -rf conftest* | |
5602 eval "ac_cv_func_$ac_func=no" | |
5603 fi | |
5604 rm -f conftest* | |
5605 fi | |
5606 | |
5607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5608 echo "$ac_t""yes" 1>&6 | |
5609 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5610 cat >> confdefs.h <<EOF | |
5611 #define $ac_tr_func 1 | |
5612 EOF | |
5613 | |
5614 else | |
5615 echo "$ac_t""no" 1>&6 | |
5616 fi | |
5617 done | |
5618 | |
5619 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 | |
29834 | 5620 echo "configure:5621: checking for working mktime" >&5 |
28607 | 5621 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then |
5622 echo $ac_n "(cached) $ac_c" 1>&6 | |
5623 else | |
5624 if test "$cross_compiling" = yes; then | |
5625 ac_cv_func_working_mktime=no | |
5626 else | |
5627 cat > conftest.$ac_ext <<EOF | |
29834 | 5628 #line 5629 "configure" |
28607 | 5629 #include "confdefs.h" |
5630 /* Test program from Paul Eggert (eggert@twinsun.com) | |
5631 and Tony Leneis (tony@plaza.ds.adp.com). */ | |
5632 #if TIME_WITH_SYS_TIME | |
5633 # include <sys/time.h> | |
5634 # include <time.h> | |
5635 #else | |
5636 # if HAVE_SYS_TIME_H | |
5637 # include <sys/time.h> | |
5638 # else | |
5639 # include <time.h> | |
5640 # endif | |
5641 #endif | |
5642 | |
5643 #if HAVE_UNISTD_H | |
5644 # include <unistd.h> | |
5645 #endif | |
5646 | |
5647 #if !HAVE_ALARM | |
5648 # define alarm(X) /* empty */ | |
5649 #endif | |
5650 | |
5651 /* Work around redefinition to rpl_putenv by other config tests. */ | |
5652 #undef putenv | |
5653 | |
5654 static time_t time_t_max; | |
5655 | |
5656 /* Values we'll use to set the TZ environment variable. */ | |
5657 static const char *const tz_strings[] = { | |
5658 (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
5659 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
5660 }; | |
5661 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
5662 | |
5663 /* Fail if mktime fails to convert a date in the spring-forward gap. | |
5664 Based on a problem report from Andreas Jaeger. */ | |
5665 static void | |
5666 spring_forward_gap () | |
5667 { | |
5668 /* glibc (up to about 1998-10-07) failed this test) */ | |
5669 struct tm tm; | |
5670 | |
5671 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
5672 instead of "TZ=America/Vancouver" in order to detect the bug even | |
5673 on systems that don't support the Olson extension, or don't have the | |
5674 full zoneinfo tables installed. */ | |
5675 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
5676 | |
5677 tm.tm_year = 98; | |
5678 tm.tm_mon = 3; | |
5679 tm.tm_mday = 5; | |
5680 tm.tm_hour = 2; | |
5681 tm.tm_min = 0; | |
5682 tm.tm_sec = 0; | |
5683 tm.tm_isdst = -1; | |
5684 if (mktime (&tm) == (time_t)-1) | |
5685 exit (1); | |
5686 } | |
5687 | |
5688 static void | |
5689 mktime_test (now) | |
5690 time_t now; | |
5691 { | |
5692 struct tm *lt; | |
5693 if ((lt = localtime (&now)) && mktime (lt) != now) | |
5694 exit (1); | |
5695 now = time_t_max - now; | |
5696 if ((lt = localtime (&now)) && mktime (lt) != now) | |
5697 exit (1); | |
5698 } | |
5699 | |
5700 static void | |
5701 irix_6_4_bug () | |
5702 { | |
5703 /* Based on code from Ariel Faigon. */ | |
5704 struct tm tm; | |
5705 tm.tm_year = 96; | |
5706 tm.tm_mon = 3; | |
5707 tm.tm_mday = 0; | |
5708 tm.tm_hour = 0; | |
5709 tm.tm_min = 0; | |
5710 tm.tm_sec = 0; | |
5711 tm.tm_isdst = -1; | |
5712 mktime (&tm); | |
5713 if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
5714 exit (1); | |
5715 } | |
5716 | |
5717 static void | |
5718 bigtime_test (j) | |
5719 int j; | |
5720 { | |
5721 struct tm tm; | |
5722 time_t now; | |
5723 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
5724 now = mktime (&tm); | |
5725 if (now != (time_t) -1) | |
5726 { | |
5727 struct tm *lt = localtime (&now); | |
5728 if (! (lt | |
5729 && lt->tm_year == tm.tm_year | |
5730 && lt->tm_mon == tm.tm_mon | |
5731 && lt->tm_mday == tm.tm_mday | |
5732 && lt->tm_hour == tm.tm_hour | |
5733 && lt->tm_min == tm.tm_min | |
5734 && lt->tm_sec == tm.tm_sec | |
5735 && lt->tm_yday == tm.tm_yday | |
5736 && lt->tm_wday == tm.tm_wday | |
5737 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
5738 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
5739 exit (1); | |
5740 } | |
5741 } | |
5742 | |
5743 int | |
5744 main () | |
5745 { | |
5746 time_t t, delta; | |
5747 int i, j; | |
5748 | |
5749 /* This test makes some buggy mktime implementations loop. | |
5750 Give up after 60 seconds; a mktime slower than that | |
5751 isn't worth using anyway. */ | |
5752 alarm (60); | |
5753 | |
5754 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
5755 continue; | |
5756 time_t_max--; | |
5757 delta = time_t_max / 997; /* a suitable prime number */ | |
5758 for (i = 0; i < N_STRINGS; i++) | |
5759 { | |
5760 if (tz_strings[i]) | |
5761 putenv (tz_strings[i]); | |
5762 | |
5763 for (t = 0; t <= time_t_max - delta; t += delta) | |
5764 mktime_test (t); | |
5765 mktime_test ((time_t) 60 * 60); | |
5766 mktime_test ((time_t) 60 * 60 * 24); | |
5767 | |
5768 for (j = 1; 0 < j; j *= 2) | |
5769 bigtime_test (j); | |
5770 bigtime_test (j - 1); | |
5771 } | |
5772 irix_6_4_bug (); | |
5773 spring_forward_gap (); | |
5774 exit (0); | |
5775 } | |
5776 EOF | |
29834 | 5777 if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
28607 | 5778 then |
5779 ac_cv_func_working_mktime=yes | |
5780 else | |
5781 echo "configure: failed program was:" >&5 | |
5782 cat conftest.$ac_ext >&5 | |
5783 rm -fr conftest* | |
5784 ac_cv_func_working_mktime=no | |
5785 fi | |
5786 rm -fr conftest* | |
5787 fi | |
5788 | |
5789 fi | |
5790 | |
5791 echo "$ac_t""$ac_cv_func_working_mktime" 1>&6 | |
5792 if test $ac_cv_func_working_mktime = no; then | |
5793 LIBOBJS="$LIBOBJS mktime.${ac_objext}" | |
5794 fi | |
5795 | |
5796 if test "$ac_cv_func_working_mktime" = no; then | |
5797 cat >> confdefs.h <<\EOF | |
5798 #define BROKEN_MKTIME 1 | |
5799 EOF | |
5800 | |
5801 fi | |
5802 | |
29834 | 5803 ac_have_func=no # yes means we've found a way to get the load average. |
5804 | |
5805 # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
5806 # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
5807 # to get the right answer into the cache. | |
5808 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 | |
5809 echo "configure:5810: checking for elf_begin in -lelf" >&5 | |
5810 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` | |
5811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5812 echo $ac_n "(cached) $ac_c" 1>&6 | |
5813 else | |
5814 ac_save_LIBS="$LIBS" | |
5815 LIBS="-lelf $LIBS" | |
5816 cat > conftest.$ac_ext <<EOF | |
5817 #line 5818 "configure" | |
5818 #include "confdefs.h" | |
5819 /* Override any gcc2 internal prototype to avoid an error. */ | |
5820 /* We use char because int might match the return type of a gcc2 | |
5821 builtin and then its argument prototype would still apply. */ | |
5822 char elf_begin(); | |
5823 | |
5824 int main() { | |
5825 elf_begin() | |
5826 ; return 0; } | |
5827 EOF | |
5828 if { (eval echo configure:5829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5829 rm -rf conftest* | |
5830 eval "ac_cv_lib_$ac_lib_var=yes" | |
5831 else | |
5832 echo "configure: failed program was:" >&5 | |
5833 cat conftest.$ac_ext >&5 | |
5834 rm -rf conftest* | |
5835 eval "ac_cv_lib_$ac_lib_var=no" | |
5836 fi | |
5837 rm -f conftest* | |
5838 LIBS="$ac_save_LIBS" | |
5839 | |
5840 fi | |
5841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5842 echo "$ac_t""yes" 1>&6 | |
5843 LIBS="-lelf $LIBS" | |
5844 else | |
5845 echo "$ac_t""no" 1>&6 | |
5846 fi | |
5847 | |
5848 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 | |
5849 echo "configure:5850: checking for kvm_open in -lkvm" >&5 | |
5850 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` | |
5851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5852 echo $ac_n "(cached) $ac_c" 1>&6 | |
5853 else | |
5854 ac_save_LIBS="$LIBS" | |
5855 LIBS="-lkvm $LIBS" | |
5856 cat > conftest.$ac_ext <<EOF | |
5857 #line 5858 "configure" | |
5858 #include "confdefs.h" | |
5859 /* Override any gcc2 internal prototype to avoid an error. */ | |
5860 /* We use char because int might match the return type of a gcc2 | |
5861 builtin and then its argument prototype would still apply. */ | |
5862 char kvm_open(); | |
5863 | |
5864 int main() { | |
5865 kvm_open() | |
5866 ; return 0; } | |
5867 EOF | |
5868 if { (eval echo configure:5869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5869 rm -rf conftest* | |
5870 eval "ac_cv_lib_$ac_lib_var=yes" | |
5871 else | |
5872 echo "configure: failed program was:" >&5 | |
5873 cat conftest.$ac_ext >&5 | |
5874 rm -rf conftest* | |
5875 eval "ac_cv_lib_$ac_lib_var=no" | |
5876 fi | |
5877 rm -f conftest* | |
5878 LIBS="$ac_save_LIBS" | |
5879 | |
5880 fi | |
5881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5882 echo "$ac_t""yes" 1>&6 | |
5883 LIBS="-lkvm $LIBS" | |
5884 else | |
5885 echo "$ac_t""no" 1>&6 | |
5886 fi | |
5887 | |
5888 # Check for the 4.4BSD definition of getloadavg. | |
5889 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 | |
5890 echo "configure:5891: checking for getloadavg in -lutil" >&5 | |
5891 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` | |
5892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5893 echo $ac_n "(cached) $ac_c" 1>&6 | |
5894 else | |
5895 ac_save_LIBS="$LIBS" | |
5896 LIBS="-lutil $LIBS" | |
5897 cat > conftest.$ac_ext <<EOF | |
5898 #line 5899 "configure" | |
5899 #include "confdefs.h" | |
5900 /* Override any gcc2 internal prototype to avoid an error. */ | |
5901 /* We use char because int might match the return type of a gcc2 | |
5902 builtin and then its argument prototype would still apply. */ | |
5903 char getloadavg(); | |
5904 | |
5905 int main() { | |
5906 getloadavg() | |
5907 ; return 0; } | |
5908 EOF | |
5909 if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5910 rm -rf conftest* | |
5911 eval "ac_cv_lib_$ac_lib_var=yes" | |
5912 else | |
5913 echo "configure: failed program was:" >&5 | |
5914 cat conftest.$ac_ext >&5 | |
5915 rm -rf conftest* | |
5916 eval "ac_cv_lib_$ac_lib_var=no" | |
5917 fi | |
5918 rm -f conftest* | |
5919 LIBS="$ac_save_LIBS" | |
5920 | |
5921 fi | |
5922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5923 echo "$ac_t""yes" 1>&6 | |
5924 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
5925 else | |
5926 echo "$ac_t""no" 1>&6 | |
5927 fi | |
5928 | |
5929 | |
5930 if test $ac_have_func = no; then | |
5931 # There is a commonly available library for RS/6000 AIX. | |
5932 # Since it is not a standard part of AIX, it might be installed locally. | |
5933 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" | |
5934 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 | |
5935 echo "configure:5936: checking for getloadavg in -lgetloadavg" >&5 | |
5936 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` | |
5937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5938 echo $ac_n "(cached) $ac_c" 1>&6 | |
5939 else | |
5940 ac_save_LIBS="$LIBS" | |
5941 LIBS="-lgetloadavg $LIBS" | |
5942 cat > conftest.$ac_ext <<EOF | |
5943 #line 5944 "configure" | |
5944 #include "confdefs.h" | |
5945 /* Override any gcc2 internal prototype to avoid an error. */ | |
5946 /* We use char because int might match the return type of a gcc2 | |
5947 builtin and then its argument prototype would still apply. */ | |
5948 char getloadavg(); | |
5949 | |
5950 int main() { | |
5951 getloadavg() | |
5952 ; return 0; } | |
5953 EOF | |
5954 if { (eval echo configure:5955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5955 rm -rf conftest* | |
5956 eval "ac_cv_lib_$ac_lib_var=yes" | |
5957 else | |
5958 echo "configure: failed program was:" >&5 | |
5959 cat conftest.$ac_ext >&5 | |
5960 rm -rf conftest* | |
5961 eval "ac_cv_lib_$ac_lib_var=no" | |
5962 fi | |
5963 rm -f conftest* | |
5964 LIBS="$ac_save_LIBS" | |
5965 | |
5966 fi | |
5967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5968 echo "$ac_t""yes" 1>&6 | |
5969 LIBS="-lgetloadavg $LIBS" | |
5970 else | |
5971 echo "$ac_t""no" 1>&6 | |
5972 LIBS="$ac_getloadavg_LIBS" | |
5973 fi | |
5974 | |
5975 fi | |
5976 | |
5977 # Make sure it is really in the library, if we think we found it. | |
5978 for ac_func in getloadavg | |
5979 do | |
5980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5981 echo "configure:5982: checking for $ac_func" >&5 | |
5982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
5983 echo $ac_n "(cached) $ac_c" 1>&6 | |
5984 else | |
5985 cat > conftest.$ac_ext <<EOF | |
5986 #line 5987 "configure" | |
5987 #include "confdefs.h" | |
5988 /* System header to define __stub macros and hopefully few prototypes, | |
5989 which can conflict with char $ac_func(); below. */ | |
5990 #include <assert.h> | |
5991 /* Override any gcc2 internal prototype to avoid an error. */ | |
5992 /* We use char because int might match the return type of a gcc2 | |
5993 builtin and then its argument prototype would still apply. */ | |
5994 char $ac_func(); | |
5995 | |
5996 int main() { | |
5997 | |
5998 /* The GNU C library defines this for functions which it implements | |
5999 to always fail with ENOSYS. Some functions are actually named | |
6000 something starting with __ and the normal name is an alias. */ | |
6001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6002 choke me | |
6003 #else | |
6004 $ac_func(); | |
6005 #endif | |
6006 | |
6007 ; return 0; } | |
6008 EOF | |
6009 if { (eval echo configure:6010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6010 rm -rf conftest* | |
6011 eval "ac_cv_func_$ac_func=yes" | |
6012 else | |
6013 echo "configure: failed program was:" >&5 | |
6014 cat conftest.$ac_ext >&5 | |
6015 rm -rf conftest* | |
6016 eval "ac_cv_func_$ac_func=no" | |
6017 fi | |
6018 rm -f conftest* | |
6019 fi | |
6020 | |
6021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6022 echo "$ac_t""yes" 1>&6 | |
6023 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6024 cat >> confdefs.h <<EOF | |
6025 #define $ac_tr_func 1 | |
6026 EOF | |
6027 | |
6028 else | |
6029 echo "$ac_t""no" 1>&6 | |
6030 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" | |
6031 fi | |
6032 done | |
6033 | |
6034 | |
6035 | |
6036 if test $ac_cv_func_getloadavg = yes; then | |
6037 cat >> confdefs.h <<\EOF | |
6038 #define HAVE_GETLOADAVG 1 | |
6039 EOF | |
6040 | |
6041 ac_have_func=yes | |
6042 else | |
6043 # Figure out what our getloadavg.c needs. | |
6044 ac_have_func=no | |
6045 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` | |
6046 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 | |
6047 echo "configure:6048: checking for sys/dg_sys_info.h" >&5 | |
6048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
6049 echo $ac_n "(cached) $ac_c" 1>&6 | |
6050 else | |
6051 cat > conftest.$ac_ext <<EOF | |
6052 #line 6053 "configure" | |
6053 #include "confdefs.h" | |
6054 #include <sys/dg_sys_info.h> | |
6055 EOF | |
6056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6057 { (eval echo configure:6058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6059 if test -z "$ac_err"; then | |
6060 rm -rf conftest* | |
6061 eval "ac_cv_header_$ac_safe=yes" | |
6062 else | |
6063 echo "$ac_err" >&5 | |
6064 echo "configure: failed program was:" >&5 | |
6065 cat conftest.$ac_ext >&5 | |
6066 rm -rf conftest* | |
6067 eval "ac_cv_header_$ac_safe=no" | |
6068 fi | |
6069 rm -f conftest* | |
6070 fi | |
6071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6072 echo "$ac_t""yes" 1>&6 | |
6073 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6074 #define DGUX 1 | |
6075 EOF | |
6076 | |
6077 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 | |
6078 echo "configure:6079: checking for dg_sys_info in -ldgc" >&5 | |
6079 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` | |
6080 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6081 echo $ac_n "(cached) $ac_c" 1>&6 | |
6082 else | |
6083 ac_save_LIBS="$LIBS" | |
6084 LIBS="-ldgc $LIBS" | |
6085 cat > conftest.$ac_ext <<EOF | |
6086 #line 6087 "configure" | |
6087 #include "confdefs.h" | |
6088 /* Override any gcc2 internal prototype to avoid an error. */ | |
6089 /* We use char because int might match the return type of a gcc2 | |
6090 builtin and then its argument prototype would still apply. */ | |
6091 char dg_sys_info(); | |
6092 | |
6093 int main() { | |
6094 dg_sys_info() | |
6095 ; return 0; } | |
6096 EOF | |
6097 if { (eval echo configure:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6098 rm -rf conftest* | |
6099 eval "ac_cv_lib_$ac_lib_var=yes" | |
6100 else | |
6101 echo "configure: failed program was:" >&5 | |
6102 cat conftest.$ac_ext >&5 | |
6103 rm -rf conftest* | |
6104 eval "ac_cv_lib_$ac_lib_var=no" | |
6105 fi | |
6106 rm -f conftest* | |
6107 LIBS="$ac_save_LIBS" | |
6108 | |
6109 fi | |
6110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6111 echo "$ac_t""yes" 1>&6 | |
6112 ac_tr_lib=HAVE_LIB`echo dgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
6113 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
6114 cat >> confdefs.h <<EOF | |
6115 #define $ac_tr_lib 1 | |
6116 EOF | |
6117 | |
6118 LIBS="-ldgc $LIBS" | |
6119 | |
6120 else | |
6121 echo "$ac_t""no" 1>&6 | |
6122 fi | |
6123 | |
6124 else | |
6125 echo "$ac_t""no" 1>&6 | |
6126 fi | |
6127 | |
6128 | |
6129 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | |
6130 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
6131 # Irix 4.0.5F has the header but not the library. | |
6132 if test $ac_have_func = no && test $ac_cv_lib_elf_elf_begin = yes; then | |
6133 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6134 #define SVR4 1 | |
6135 EOF | |
6136 | |
6137 fi | |
6138 | |
6139 if test $ac_have_func = no; then | |
6140 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` | |
6141 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 | |
6142 echo "configure:6143: checking for inq_stats/cpustats.h" >&5 | |
6143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
6144 echo $ac_n "(cached) $ac_c" 1>&6 | |
6145 else | |
6146 cat > conftest.$ac_ext <<EOF | |
6147 #line 6148 "configure" | |
6148 #include "confdefs.h" | |
6149 #include <inq_stats/cpustats.h> | |
6150 EOF | |
6151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6152 { (eval echo configure:6153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6154 if test -z "$ac_err"; then | |
6155 rm -rf conftest* | |
6156 eval "ac_cv_header_$ac_safe=yes" | |
6157 else | |
6158 echo "$ac_err" >&5 | |
6159 echo "configure: failed program was:" >&5 | |
6160 cat conftest.$ac_ext >&5 | |
6161 rm -rf conftest* | |
6162 eval "ac_cv_header_$ac_safe=no" | |
6163 fi | |
6164 rm -f conftest* | |
6165 fi | |
6166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6167 echo "$ac_t""yes" 1>&6 | |
6168 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6169 #define UMAX 1 | |
6170 EOF | |
6171 | |
6172 cat >> confdefs.h <<\EOF | |
6173 #define UMAX4_3 1 | |
6174 EOF | |
6175 | |
6176 else | |
6177 echo "$ac_t""no" 1>&6 | |
6178 fi | |
6179 | |
6180 fi | |
6181 | |
6182 if test $ac_have_func = no; then | |
6183 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` | |
6184 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 | |
6185 echo "configure:6186: checking for sys/cpustats.h" >&5 | |
6186 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
6187 echo $ac_n "(cached) $ac_c" 1>&6 | |
6188 else | |
6189 cat > conftest.$ac_ext <<EOF | |
6190 #line 6191 "configure" | |
6191 #include "confdefs.h" | |
6192 #include <sys/cpustats.h> | |
6193 EOF | |
6194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6195 { (eval echo configure:6196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6197 if test -z "$ac_err"; then | |
6198 rm -rf conftest* | |
6199 eval "ac_cv_header_$ac_safe=yes" | |
6200 else | |
6201 echo "$ac_err" >&5 | |
6202 echo "configure: failed program was:" >&5 | |
6203 cat conftest.$ac_ext >&5 | |
6204 rm -rf conftest* | |
6205 eval "ac_cv_header_$ac_safe=no" | |
6206 fi | |
6207 rm -f conftest* | |
6208 fi | |
6209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6210 echo "$ac_t""yes" 1>&6 | |
6211 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6212 #define UMAX 1 | |
6213 EOF | |
6214 | |
6215 else | |
6216 echo "$ac_t""no" 1>&6 | |
6217 fi | |
6218 | |
6219 fi | |
6220 | |
6221 if test $ac_have_func = no; then | |
6222 for ac_hdr in mach/mach.h | |
6223 do | |
6224 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
6225 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6226 echo "configure:6227: checking for $ac_hdr" >&5 | |
6227 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
6228 echo $ac_n "(cached) $ac_c" 1>&6 | |
6229 else | |
6230 cat > conftest.$ac_ext <<EOF | |
6231 #line 6232 "configure" | |
6232 #include "confdefs.h" | |
6233 #include <$ac_hdr> | |
6234 EOF | |
6235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6236 { (eval echo configure:6237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6238 if test -z "$ac_err"; then | |
6239 rm -rf conftest* | |
6240 eval "ac_cv_header_$ac_safe=yes" | |
6241 else | |
6242 echo "$ac_err" >&5 | |
6243 echo "configure: failed program was:" >&5 | |
6244 cat conftest.$ac_ext >&5 | |
6245 rm -rf conftest* | |
6246 eval "ac_cv_header_$ac_safe=no" | |
6247 fi | |
6248 rm -f conftest* | |
6249 fi | |
6250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6251 echo "$ac_t""yes" 1>&6 | |
6252 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
6253 cat >> confdefs.h <<EOF | |
6254 #define $ac_tr_hdr 1 | |
6255 EOF | |
6256 | |
6257 else | |
6258 echo "$ac_t""no" 1>&6 | |
6259 fi | |
6260 done | |
6261 | |
6262 fi | |
6263 | |
6264 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | |
6265 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | |
6266 echo "configure:6267: checking for nlist.h" >&5 | |
6267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
6268 echo $ac_n "(cached) $ac_c" 1>&6 | |
6269 else | |
6270 cat > conftest.$ac_ext <<EOF | |
6271 #line 6272 "configure" | |
6272 #include "confdefs.h" | |
6273 #include <nlist.h> | |
6274 EOF | |
6275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6276 { (eval echo configure:6277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6278 if test -z "$ac_err"; then | |
6279 rm -rf conftest* | |
6280 eval "ac_cv_header_$ac_safe=yes" | |
6281 else | |
6282 echo "$ac_err" >&5 | |
6283 echo "configure: failed program was:" >&5 | |
6284 cat conftest.$ac_ext >&5 | |
6285 rm -rf conftest* | |
6286 eval "ac_cv_header_$ac_safe=no" | |
6287 fi | |
6288 rm -f conftest* | |
6289 fi | |
6290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6291 echo "$ac_t""yes" 1>&6 | |
6292 cat >> confdefs.h <<\EOF | |
6293 #define NLIST_STRUCT 1 | |
6294 EOF | |
6295 | |
6296 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 | |
6297 echo "configure:6298: checking for n_un in struct nlist" >&5 | |
6298 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then | |
6299 echo $ac_n "(cached) $ac_c" 1>&6 | |
6300 else | |
6301 cat > conftest.$ac_ext <<EOF | |
6302 #line 6303 "configure" | |
6303 #include "confdefs.h" | |
6304 #include <nlist.h> | |
6305 int main() { | |
6306 struct nlist n; n.n_un.n_name = 0; | |
6307 ; return 0; } | |
6308 EOF | |
6309 if { (eval echo configure:6310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
6310 rm -rf conftest* | |
6311 ac_cv_struct_nlist_n_un=yes | |
6312 else | |
6313 echo "configure: failed program was:" >&5 | |
6314 cat conftest.$ac_ext >&5 | |
6315 rm -rf conftest* | |
6316 ac_cv_struct_nlist_n_un=no | |
6317 fi | |
6318 rm -f conftest* | |
6319 fi | |
6320 | |
6321 echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6 | |
6322 if test $ac_cv_struct_nlist_n_un = yes; then | |
6323 cat >> confdefs.h <<\EOF | |
6324 #define NLIST_NAME_UNION 1 | |
6325 EOF | |
6326 | |
6327 fi | |
6328 | |
6329 else | |
6330 echo "$ac_t""no" 1>&6 | |
6331 fi | |
6332 fi # Do not have getloadavg in system libraries. | |
6333 | |
6334 # Some definitions of getloadavg require that the program be installed setgid. | |
6335 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 | |
6336 echo "configure:6337: checking whether getloadavg requires setgid" >&5 | |
6337 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then | |
6338 echo $ac_n "(cached) $ac_c" 1>&6 | |
6339 else | |
6340 cat > conftest.$ac_ext <<EOF | |
6341 #line 6342 "configure" | |
6342 #include "confdefs.h" | |
6343 #include "$srcdir/getloadavg.c" | |
6344 #ifdef LDAV_PRIVILEGED | |
6345 Yowza Am I SETGID yet | |
6346 #endif | |
6347 EOF | |
6348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6349 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then | |
6350 rm -rf conftest* | |
6351 ac_cv_func_getloadavg_setgid=yes | |
6352 else | |
6353 rm -rf conftest* | |
6354 ac_cv_func_getloadavg_setgid=no | |
6355 fi | |
6356 rm -f conftest* | |
6357 | |
6358 fi | |
6359 | |
6360 echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6 | |
6361 if test $ac_cv_func_getloadavg_setgid = yes; then | |
6362 NEED_SETGID=true; cat >> confdefs.h <<\EOF | |
6363 #define GETLOADAVG_PRIVILEGED 1 | |
6364 EOF | |
6365 | |
6366 else | |
6367 NEED_SETGID=false | |
6368 fi | |
6369 | |
6370 if test $ac_cv_func_getloadavg_setgid = yes; then | |
6371 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 | |
6372 echo "configure:6373: checking group of /dev/kmem" >&5 | |
6373 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then | |
6374 echo $ac_n "(cached) $ac_c" 1>&6 | |
6375 else | |
6376 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
6377 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
6378 # If we got an error (system does not support symlinks), try without -L. | |
6379 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
6380 ac_cv_group_kmem=`echo $ac_ls_output \ | |
6381 | sed -ne 's/[ ][ ]*/ /g; | |
6382 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
6383 / /s/.* //;p;'` | |
6384 | |
6385 fi | |
6386 | |
6387 echo "$ac_t""$ac_cv_group_kmem" 1>&6 | |
6388 KMEM_GROUP=$ac_cv_group_kmem | |
6389 fi | |
6390 | |
6391 | |
29388 | 6392 # Check whether --enable-largefile or --disable-largefile was given. |
6393 if test "${enable_largefile+set}" = set; then | |
6394 enableval="$enable_largefile" | |
6395 : | |
6396 fi | |
6397 | |
6398 if test "$enable_largefile" != no; then | |
6399 | |
6400 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 | |
29834 | 6401 echo "configure:6402: checking for special C compiler options needed for large files" >&5 |
29388 | 6402 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then |
6403 echo $ac_n "(cached) $ac_c" 1>&6 | |
6404 else | |
6405 ac_cv_sys_largefile_CC=no | |
6406 if test "$GCC" != yes; then | |
6407 # IRIX 6.2 and later do not support large files by default, | |
6408 # so use the C compiler's -n32 option if that helps. | |
6409 cat > conftest.$ac_ext <<EOF | |
29834 | 6410 #line 6411 "configure" |
29388 | 6411 #include "confdefs.h" |
6412 #include <sys/types.h> | |
6413 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6414 | |
6415 int main() { | |
6416 | |
6417 ; return 0; } | |
6418 EOF | |
29834 | 6419 if { (eval echo configure:6420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6420 : |
6421 else | |
6422 echo "configure: failed program was:" >&5 | |
6423 cat conftest.$ac_ext >&5 | |
6424 rm -rf conftest* | |
6425 ac_save_CC="$CC" | |
6426 CC="$CC -n32" | |
6427 cat > conftest.$ac_ext <<EOF | |
29834 | 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 | |
29834 | 6437 if { (eval echo configure:6438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6438 rm -rf conftest* |
6439 ac_cv_sys_largefile_CC=' -n32' | |
6440 else | |
6441 echo "configure: failed program was:" >&5 | |
6442 cat conftest.$ac_ext >&5 | |
6443 fi | |
6444 rm -f conftest* | |
6445 CC="$ac_save_CC" | |
6446 fi | |
6447 rm -f conftest* | |
6448 fi | |
6449 fi | |
6450 | |
6451 echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6 | |
6452 if test "$ac_cv_sys_largefile_CC" != no; then | |
6453 CC="$CC$ac_cv_sys_largefile_CC" | |
6454 fi | |
6455 | |
6456 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
29834 | 6457 echo "configure:6458: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
29388 | 6458 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
6459 echo $ac_n "(cached) $ac_c" 1>&6 | |
6460 else | |
6461 ac_cv_sys_file_offset_bits=no | |
6462 cat > conftest.$ac_ext <<EOF | |
29834 | 6463 #line 6464 "configure" |
29388 | 6464 #include "confdefs.h" |
6465 #include <sys/types.h> | |
6466 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6467 | |
6468 | |
6469 | |
6470 int main() { | |
6471 | |
6472 ; return 0; } | |
6473 EOF | |
29834 | 6474 if { (eval echo configure:6475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6475 : |
6476 else | |
6477 echo "configure: failed program was:" >&5 | |
6478 cat conftest.$ac_ext >&5 | |
6479 rm -rf conftest* | |
6480 cat > conftest.$ac_ext <<EOF | |
29834 | 6481 #line 6482 "configure" |
29388 | 6482 #include "confdefs.h" |
6483 #define _FILE_OFFSET_BITS 64 | |
6484 #include <sys/types.h> | |
6485 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6486 | |
6487 | |
6488 | |
6489 int main() { | |
6490 | |
6491 ; return 0; } | |
6492 EOF | |
29834 | 6493 if { (eval echo configure:6494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6494 rm -rf conftest* |
6495 ac_cv_sys_file_offset_bits=64 | |
6496 else | |
6497 echo "configure: failed program was:" >&5 | |
6498 cat conftest.$ac_ext >&5 | |
6499 fi | |
6500 rm -f conftest* | |
6501 fi | |
6502 rm -f conftest* | |
6503 fi | |
6504 | |
6505 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
6506 if test "$ac_cv_sys_file_offset_bits" != no; then | |
6507 cat >> confdefs.h <<EOF | |
6508 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
6509 EOF | |
6510 | |
6511 fi | |
6512 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 | |
29834 | 6513 echo "configure:6514: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
29388 | 6514 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then |
6515 echo $ac_n "(cached) $ac_c" 1>&6 | |
6516 else | |
6517 ac_cv_sys_largefile_source=no | |
6518 cat > conftest.$ac_ext <<EOF | |
29834 | 6519 #line 6520 "configure" |
29388 | 6520 #include "confdefs.h" |
6521 #include <sys/types.h> | |
6522 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6523 | |
6524 #include <stdio.h> | |
6525 | |
6526 int main() { | |
6527 return !ftello; | |
6528 ; return 0; } | |
6529 EOF | |
29834 | 6530 if { (eval echo configure:6531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6531 : |
6532 else | |
6533 echo "configure: failed program was:" >&5 | |
6534 cat conftest.$ac_ext >&5 | |
6535 rm -rf conftest* | |
6536 cat > conftest.$ac_ext <<EOF | |
29834 | 6537 #line 6538 "configure" |
29388 | 6538 #include "confdefs.h" |
6539 #define _LARGEFILE_SOURCE 1 | |
6540 #include <sys/types.h> | |
6541 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6542 | |
6543 #include <stdio.h> | |
6544 | |
6545 int main() { | |
6546 return !ftello; | |
6547 ; return 0; } | |
6548 EOF | |
29834 | 6549 if { (eval echo configure:6550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6550 rm -rf conftest* |
6551 ac_cv_sys_largefile_source=1 | |
6552 else | |
6553 echo "configure: failed program was:" >&5 | |
6554 cat conftest.$ac_ext >&5 | |
6555 fi | |
6556 rm -f conftest* | |
6557 fi | |
6558 rm -f conftest* | |
6559 fi | |
6560 | |
6561 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6 | |
6562 if test "$ac_cv_sys_largefile_source" != no; then | |
6563 cat >> confdefs.h <<EOF | |
6564 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
6565 EOF | |
6566 | |
6567 fi | |
6568 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
29834 | 6569 echo "configure:6570: checking for _LARGE_FILES value needed for large files" >&5 |
29388 | 6570 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
6571 echo $ac_n "(cached) $ac_c" 1>&6 | |
6572 else | |
6573 ac_cv_sys_large_files=no | |
6574 cat > conftest.$ac_ext <<EOF | |
29834 | 6575 #line 6576 "configure" |
29388 | 6576 #include "confdefs.h" |
6577 #include <sys/types.h> | |
6578 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6579 | |
6580 | |
6581 | |
6582 int main() { | |
6583 | |
6584 ; return 0; } | |
6585 EOF | |
29834 | 6586 if { (eval echo configure:6587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6587 : |
6588 else | |
6589 echo "configure: failed program was:" >&5 | |
6590 cat conftest.$ac_ext >&5 | |
6591 rm -rf conftest* | |
6592 cat > conftest.$ac_ext <<EOF | |
29834 | 6593 #line 6594 "configure" |
29388 | 6594 #include "confdefs.h" |
6595 #define _LARGE_FILES 1 | |
6596 #include <sys/types.h> | |
6597 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6598 | |
6599 | |
6600 | |
6601 int main() { | |
6602 | |
6603 ; return 0; } | |
6604 EOF | |
29834 | 6605 if { (eval echo configure:6606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6606 rm -rf conftest* |
6607 ac_cv_sys_large_files=1 | |
6608 else | |
6609 echo "configure: failed program was:" >&5 | |
6610 cat conftest.$ac_ext >&5 | |
6611 fi | |
6612 rm -f conftest* | |
6613 fi | |
6614 rm -f conftest* | |
6615 fi | |
6616 | |
6617 echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
6618 if test "$ac_cv_sys_large_files" != no; then | |
6619 cat >> confdefs.h <<EOF | |
6620 #define _LARGE_FILES $ac_cv_sys_large_files | |
6621 EOF | |
6622 | |
6623 fi | |
6624 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6 | |
29834 | 6625 echo "configure:6626: checking for _XOPEN_SOURCE value needed for large files" >&5 |
29388 | 6626 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then |
6627 echo $ac_n "(cached) $ac_c" 1>&6 | |
6628 else | |
6629 ac_cv_sys_xopen_source=no | |
6630 cat > conftest.$ac_ext <<EOF | |
29834 | 6631 #line 6632 "configure" |
29388 | 6632 #include "confdefs.h" |
6633 #include <sys/types.h> | |
6634 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6635 | |
6636 #include <stdio.h> | |
6637 | |
6638 int main() { | |
6639 return !ftello; | |
6640 ; return 0; } | |
6641 EOF | |
29834 | 6642 if { (eval echo configure:6643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6643 : |
6644 else | |
6645 echo "configure: failed program was:" >&5 | |
6646 cat conftest.$ac_ext >&5 | |
6647 rm -rf conftest* | |
6648 cat > conftest.$ac_ext <<EOF | |
29834 | 6649 #line 6650 "configure" |
29388 | 6650 #include "confdefs.h" |
6651 #define _XOPEN_SOURCE 500 | |
6652 #include <sys/types.h> | |
6653 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6654 | |
6655 #include <stdio.h> | |
6656 | |
6657 int main() { | |
6658 return !ftello; | |
6659 ; return 0; } | |
6660 EOF | |
29834 | 6661 if { (eval echo configure:6662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
29388 | 6662 rm -rf conftest* |
6663 ac_cv_sys_xopen_source=500 | |
6664 else | |
6665 echo "configure: failed program was:" >&5 | |
6666 cat conftest.$ac_ext >&5 | |
6667 fi | |
6668 rm -f conftest* | |
6669 fi | |
6670 rm -f conftest* | |
6671 fi | |
6672 | |
6673 echo "$ac_t""$ac_cv_sys_xopen_source" 1>&6 | |
6674 if test "$ac_cv_sys_xopen_source" != no; then | |
6675 cat >> confdefs.h <<EOF | |
6676 #define _XOPEN_SOURCE $ac_cv_sys_xopen_source | |
6677 EOF | |
6678 | |
6679 fi | |
6680 fi | |
6681 | |
6682 for ac_func in ftello | |
29036 | 6683 do |
6684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29834 | 6685 echo "configure:6686: checking for $ac_func" >&5 |
29036 | 6686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6687 echo $ac_n "(cached) $ac_c" 1>&6 | |
6688 else | |
6689 cat > conftest.$ac_ext <<EOF | |
29834 | 6690 #line 6691 "configure" |
29036 | 6691 #include "confdefs.h" |
6692 /* System header to define __stub macros and hopefully few prototypes, | |
6693 which can conflict with char $ac_func(); below. */ | |
6694 #include <assert.h> | |
6695 /* Override any gcc2 internal prototype to avoid an error. */ | |
6696 /* We use char because int might match the return type of a gcc2 | |
6697 builtin and then its argument prototype would still apply. */ | |
6698 char $ac_func(); | |
6699 | |
6700 int main() { | |
6701 | |
6702 /* The GNU C library defines this for functions which it implements | |
6703 to always fail with ENOSYS. Some functions are actually named | |
6704 something starting with __ and the normal name is an alias. */ | |
6705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6706 choke me | |
6707 #else | |
6708 $ac_func(); | |
6709 #endif | |
6710 | |
6711 ; return 0; } | |
6712 EOF | |
29834 | 6713 if { (eval echo configure:6714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29388 | 6714 rm -rf conftest* |
6715 eval "ac_cv_func_$ac_func=yes" | |
6716 else | |
6717 echo "configure: failed program was:" >&5 | |
6718 cat conftest.$ac_ext >&5 | |
6719 rm -rf conftest* | |
6720 eval "ac_cv_func_$ac_func=no" | |
6721 fi | |
6722 rm -f conftest* | |
6723 fi | |
6724 | |
6725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6726 echo "$ac_t""yes" 1>&6 | |
6727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6728 cat >> confdefs.h <<EOF | |
6729 #define $ac_tr_func 1 | |
6730 EOF | |
6731 | |
6732 else | |
6733 echo "$ac_t""no" 1>&6 | |
6734 fi | |
6735 done | |
6736 | |
6737 | |
6738 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE | |
6739 # if we need it. | |
6740 for ac_func in grantpt | |
6741 do | |
6742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29834 | 6743 echo "configure:6744: checking for $ac_func" >&5 |
29388 | 6744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6745 echo $ac_n "(cached) $ac_c" 1>&6 | |
6746 else | |
6747 cat > conftest.$ac_ext <<EOF | |
29834 | 6748 #line 6749 "configure" |
29388 | 6749 #include "confdefs.h" |
6750 /* System header to define __stub macros and hopefully few prototypes, | |
6751 which can conflict with char $ac_func(); below. */ | |
6752 #include <assert.h> | |
6753 /* Override any gcc2 internal prototype to avoid an error. */ | |
6754 /* We use char because int might match the return type of a gcc2 | |
6755 builtin and then its argument prototype would still apply. */ | |
6756 char $ac_func(); | |
6757 | |
6758 int main() { | |
6759 | |
6760 /* The GNU C library defines this for functions which it implements | |
6761 to always fail with ENOSYS. Some functions are actually named | |
6762 something starting with __ and the normal name is an alias. */ | |
6763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6764 choke me | |
6765 #else | |
6766 $ac_func(); | |
6767 #endif | |
6768 | |
6769 ; return 0; } | |
6770 EOF | |
29834 | 6771 if { (eval echo configure:6772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29036 | 6772 rm -rf conftest* |
6773 eval "ac_cv_func_$ac_func=yes" | |
6774 else | |
6775 echo "configure: failed program was:" >&5 | |
6776 cat conftest.$ac_ext >&5 | |
6777 rm -rf conftest* | |
6778 eval "ac_cv_func_$ac_func=no" | |
6779 fi | |
6780 rm -f conftest* | |
6781 fi | |
6782 | |
6783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6784 echo "$ac_t""yes" 1>&6 | |
6785 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6786 cat >> confdefs.h <<EOF | |
6787 #define $ac_tr_func 1 | |
6788 EOF | |
6789 | |
6790 else | |
6791 echo "$ac_t""no" 1>&6 | |
6792 fi | |
6793 done | |
6794 | |
6795 | |
6796 # PTY-related GNU extensions. | |
6797 for ac_func in getpt | |
6798 do | |
6799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
29834 | 6800 echo "configure:6801: checking for $ac_func" >&5 |
29036 | 6801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6802 echo $ac_n "(cached) $ac_c" 1>&6 | |
6803 else | |
6804 cat > conftest.$ac_ext <<EOF | |
29834 | 6805 #line 6806 "configure" |
29036 | 6806 #include "confdefs.h" |
6807 /* System header to define __stub macros and hopefully few prototypes, | |
6808 which can conflict with char $ac_func(); below. */ | |
6809 #include <assert.h> | |
6810 /* Override any gcc2 internal prototype to avoid an error. */ | |
6811 /* We use char because int might match the return type of a gcc2 | |
6812 builtin and then its argument prototype would still apply. */ | |
6813 char $ac_func(); | |
6814 | |
6815 int main() { | |
6816 | |
6817 /* The GNU C library defines this for functions which it implements | |
6818 to always fail with ENOSYS. Some functions are actually named | |
6819 something starting with __ and the normal name is an alias. */ | |
6820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6821 choke me | |
6822 #else | |
6823 $ac_func(); | |
6824 #endif | |
6825 | |
6826 ; return 0; } | |
6827 EOF | |
29834 | 6828 if { (eval echo configure:6829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29036 | 6829 rm -rf conftest* |
6830 eval "ac_cv_func_$ac_func=yes" | |
6831 else | |
6832 echo "configure: failed program was:" >&5 | |
6833 cat conftest.$ac_ext >&5 | |
6834 rm -rf conftest* | |
6835 eval "ac_cv_func_$ac_func=no" | |
6836 fi | |
6837 rm -f conftest* | |
6838 fi | |
6839 | |
6840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6841 echo "$ac_t""yes" 1>&6 | |
6842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6843 cat >> confdefs.h <<EOF | |
6844 #define $ac_tr_func 1 | |
6845 EOF | |
6846 | |
6847 else | |
6848 echo "$ac_t""no" 1>&6 | |
6849 fi | |
6850 done | |
6851 | |
6852 | |
25897 | 6853 # Check this now, so that we will NOT find the above functions in ncurses. |
6854 # That is because we have not set up to link ncurses in lib-src. | |
6855 # It's better to believe a function is not available | |
6856 # than to expect to find it in ncurses. | |
6857 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | |
29834 | 6858 echo "configure:6859: checking for tparm in -lncurses" >&5 |
25897 | 6859 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` |
6860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6861 echo $ac_n "(cached) $ac_c" 1>&6 | |
6862 else | |
6863 ac_save_LIBS="$LIBS" | |
6864 LIBS="-lncurses $LIBS" | |
6865 cat > conftest.$ac_ext <<EOF | |
29834 | 6866 #line 6867 "configure" |
25897 | 6867 #include "confdefs.h" |
6868 /* Override any gcc2 internal prototype to avoid an error. */ | |
6869 /* We use char because int might match the return type of a gcc2 | |
6870 builtin and then its argument prototype would still apply. */ | |
6871 char tparm(); | |
6872 | |
6873 int main() { | |
6874 tparm() | |
6875 ; return 0; } | |
6876 EOF | |
29834 | 6877 if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 6878 rm -rf conftest* |
6879 eval "ac_cv_lib_$ac_lib_var=yes" | |
6880 else | |
6881 echo "configure: failed program was:" >&5 | |
6882 cat conftest.$ac_ext >&5 | |
6883 rm -rf conftest* | |
6884 eval "ac_cv_lib_$ac_lib_var=no" | |
6885 fi | |
6886 rm -f conftest* | |
6887 LIBS="$ac_save_LIBS" | |
6888 | |
6889 fi | |
6890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6891 echo "$ac_t""yes" 1>&6 | |
6892 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
6893 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
6894 cat >> confdefs.h <<EOF | |
6895 #define $ac_tr_lib 1 | |
6896 EOF | |
6897 | |
6898 LIBS="-lncurses $LIBS" | |
6899 | |
6900 else | |
6901 echo "$ac_t""no" 1>&6 | |
6902 fi | |
6903 | |
6904 | |
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
|
6905 # 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
|
6906 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
|
6907 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 |
29834 | 6908 echo "configure:6909: 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
|
6909 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
|
6910 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
|
6911 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
|
6912 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
|
6913 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
|
6914 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
|
6915 cat > conftest.$ac_ext <<EOF |
29834 | 6916 #line 6917 "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
|
6917 #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
|
6918 /* 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
|
6919 /* 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
|
6920 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
|
6921 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
|
6922 |
b32d82817493
* 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 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
|
6924 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
|
6925 ; 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
|
6926 EOF |
29834 | 6927 if { (eval echo configure:6928: \"$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
|
6928 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
|
6929 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
|
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 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
|
6932 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
|
6933 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
|
6934 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
|
6935 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
|
6936 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
|
6937 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
|
6938 |
b32d82817493
* 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 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
|
6940 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
|
6941 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
|
6942 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
|
6943 -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
|
6944 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
|
6945 #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
|
6946 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
|
6947 |
b32d82817493
* 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 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
|
6949 |
b32d82817493
* 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 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
|
6951 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
|
6952 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
|
6953 |
b32d82817493
* 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 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 |
29834 | 6955 echo "configure:6956: 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
|
6956 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
|
6957 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
|
6958 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
|
6959 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
|
6960 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
|
6961 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
|
6962 cat > conftest.$ac_ext <<EOF |
29834 | 6963 #line 6964 "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
|
6964 #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
|
6965 /* 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
|
6966 /* 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
|
6967 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
|
6968 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
|
6969 |
b32d82817493
* 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 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
|
6971 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
|
6972 ; 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
|
6973 EOF |
29834 | 6974 if { (eval echo configure:6975: \"$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
|
6975 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
|
6976 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
|
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 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
|
6979 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
|
6980 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
|
6981 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
|
6982 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
|
6983 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
|
6984 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
|
6985 |
b32d82817493
* 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 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
|
6987 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
|
6988 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
|
6989 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
|
6990 -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
|
6991 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
|
6992 #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
|
6993 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
|
6994 |
b32d82817493
* 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 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
|
6996 |
b32d82817493
* 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 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
|
6998 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
|
6999 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
|
7000 |
b32d82817493
* 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 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 |
29834 | 7002 echo "configure:7003: 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
|
7003 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
|
7004 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
|
7005 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
|
7006 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
|
7007 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
|
7008 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
|
7009 cat > conftest.$ac_ext <<EOF |
29834 | 7010 #line 7011 "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
|
7011 #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
|
7012 /* 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
|
7013 /* 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
|
7014 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
|
7015 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
|
7016 |
b32d82817493
* 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 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
|
7018 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
|
7019 ; 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
|
7020 EOF |
29834 | 7021 if { (eval echo configure:7022: \"$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
|
7022 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
|
7023 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
|
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 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
|
7026 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
|
7027 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
|
7028 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
|
7029 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
|
7030 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
|
7031 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
|
7032 |
b32d82817493
* 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 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
|
7034 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
|
7035 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
|
7036 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
|
7037 -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
|
7038 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
|
7039 #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
|
7040 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
|
7041 |
b32d82817493
* 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 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
|
7043 |
b32d82817493
* 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 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
|
7045 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
|
7046 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
|
7047 |
b32d82817493
* 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 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 |
29834 | 7049 echo "configure:7050: 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
|
7050 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
|
7051 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
|
7052 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
|
7053 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
|
7054 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
|
7055 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
|
7056 cat > conftest.$ac_ext <<EOF |
29834 | 7057 #line 7058 "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
|
7058 #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
|
7059 /* 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
|
7060 /* 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
|
7061 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
|
7062 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
|
7063 |
b32d82817493
* 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 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
|
7065 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
|
7066 ; 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
|
7067 EOF |
29834 | 7068 if { (eval echo configure:7069: \"$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
|
7069 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
|
7070 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
|
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 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
|
7073 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
|
7074 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
|
7075 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
|
7076 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
|
7077 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
|
7078 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
|
7079 |
b32d82817493
* 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 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
|
7081 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
|
7082 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
|
7083 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
|
7084 -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
|
7085 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
|
7086 #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
|
7087 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
|
7088 |
b32d82817493
* 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 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
|
7090 |
b32d82817493
* 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 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
|
7092 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
|
7093 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
|
7094 |
b32d82817493
* 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 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
|
7096 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 |
29834 | 7097 echo "configure:7098: 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
|
7098 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
|
7099 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
|
7100 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
|
7101 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
|
7102 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
|
7103 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
|
7104 cat > conftest.$ac_ext <<EOF |
29834 | 7105 #line 7106 "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
|
7106 #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
|
7107 /* 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
|
7108 /* 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
|
7109 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
|
7110 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
|
7111 |
b32d82817493
* 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 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
|
7113 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
|
7114 ; 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
|
7115 EOF |
29834 | 7116 if { (eval echo configure:7117: \"$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
|
7117 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
|
7118 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
|
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 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
|
7121 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
|
7122 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
|
7123 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
|
7124 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
|
7125 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
|
7126 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
|
7127 |
b32d82817493
* 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 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
|
7129 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
|
7130 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
|
7131 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
|
7132 -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
|
7133 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
|
7134 #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
|
7135 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
|
7136 |
b32d82817493
* 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 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
|
7138 |
b32d82817493
* 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 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
|
7140 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
|
7141 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 |
29834 | 7142 echo "configure:7143: 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
|
7143 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
|
7144 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
|
7145 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
|
7146 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
|
7147 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
|
7148 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
|
7149 cat > conftest.$ac_ext <<EOF |
29834 | 7150 #line 7151 "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
|
7151 #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
|
7152 /* 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
|
7153 /* 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
|
7154 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
|
7155 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
|
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 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
|
7158 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
|
7159 ; 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
|
7160 EOF |
29834 | 7161 if { (eval echo configure:7162: \"$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
|
7162 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
|
7163 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
|
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 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
|
7166 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
|
7167 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
|
7168 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
|
7169 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
|
7170 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
|
7171 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
|
7172 |
b32d82817493
* 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 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
|
7174 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
|
7175 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
|
7176 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
|
7177 -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
|
7178 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
|
7179 #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
|
7180 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
|
7181 |
b32d82817493
* 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 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
|
7183 |
b32d82817493
* 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 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
|
7185 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
|
7186 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
|
7187 |
b32d82817493
* 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 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
|
7189 |
b32d82817493
* 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 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 |
29834 | 7191 echo "configure:7192: 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
|
7192 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
|
7193 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
|
7194 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
|
7195 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
|
7196 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
|
7197 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
|
7198 cat > conftest.$ac_ext <<EOF |
29834 | 7199 #line 7200 "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
|
7200 #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
|
7201 /* 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
|
7202 /* 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
|
7203 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
|
7204 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
|
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 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
|
7207 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
|
7208 ; 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
|
7209 EOF |
29834 | 7210 if { (eval echo configure:7211: \"$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
|
7211 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
|
7212 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
|
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 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
|
7215 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
|
7216 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
|
7217 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
|
7218 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
|
7219 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
|
7220 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
|
7221 |
b32d82817493
* 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 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
|
7223 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
|
7224 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
|
7225 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
|
7226 -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
|
7227 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
|
7228 #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
|
7229 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
|
7230 |
b32d82817493
* 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 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
|
7232 |
b32d82817493
* 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 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
|
7234 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
|
7235 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 |
29834 | 7236 echo "configure:7237: 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
|
7237 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
|
7238 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
|
7239 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
|
7240 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
|
7241 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
|
7242 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
|
7243 cat > conftest.$ac_ext <<EOF |
29834 | 7244 #line 7245 "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
|
7245 #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
|
7246 /* 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
|
7247 /* 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
|
7248 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
|
7249 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
|
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 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
|
7252 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
|
7253 ; 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
|
7254 EOF |
29834 | 7255 if { (eval echo configure:7256: \"$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
|
7256 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
|
7257 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
|
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 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
|
7260 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
|
7261 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
|
7262 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
|
7263 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
|
7264 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
|
7265 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
|
7266 |
b32d82817493
* 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 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
|
7268 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
|
7269 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
|
7270 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
|
7271 -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
|
7272 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
|
7273 #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
|
7274 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
|
7275 |
b32d82817493
* 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 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
|
7277 |
b32d82817493
* 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 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
|
7279 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
|
7280 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
|
7281 |
b32d82817493
* 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 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
|
7283 |
b32d82817493
* 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 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
|
7285 |
b32d82817493
* 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 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
|
7287 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
|
7288 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
|
7289 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
|
7290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
29834 | 7291 echo "configure:7292: 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
|
7292 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
|
7293 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
|
7294 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
|
7295 cat > conftest.$ac_ext <<EOF |
29834 | 7296 #line 7297 "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
|
7297 #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
|
7298 #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
|
7299 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
|
7300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
29834 | 7301 { (eval echo configure:7302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7302 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
|
7303 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
|
7304 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
|
7305 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
|
7306 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
|
7307 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
|
7308 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
|
7309 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
|
7310 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
|
7311 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
|
7312 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
|
7313 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
|
7314 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
|
7315 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
|
7316 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
|
7317 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
|
7318 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
|
7319 #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
|
7320 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
|
7321 |
b32d82817493
* 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 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
|
7323 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
|
7324 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
|
7325 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
|
7326 |
b32d82817493
* 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 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
|
7328 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
|
7329 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
|
7330 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
|
7331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
29834 | 7332 echo "configure:7333: 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
|
7333 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
|
7334 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
|
7335 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
|
7336 cat > conftest.$ac_ext <<EOF |
29834 | 7337 #line 7338 "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
|
7338 #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
|
7339 #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
|
7340 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
|
7341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
29834 | 7342 { (eval echo configure:7343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7343 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
|
7344 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
|
7345 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
|
7346 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
|
7347 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
|
7348 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
|
7349 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
|
7350 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
|
7351 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
|
7352 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
|
7353 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
|
7354 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
|
7355 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
|
7356 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
|
7357 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
|
7358 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
|
7359 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
|
7360 #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
|
7361 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
|
7362 |
b32d82817493
* 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 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
|
7364 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
|
7365 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
|
7366 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
|
7367 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
|
7368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
29834 | 7369 echo "configure:7370: 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
|
7370 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
|
7371 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
|
7372 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
|
7373 cat > conftest.$ac_ext <<EOF |
29834 | 7374 #line 7375 "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
|
7375 #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
|
7376 #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
|
7377 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
29834 | 7379 { (eval echo configure:7380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7380 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
|
7381 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
|
7382 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
|
7383 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
|
7384 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
|
7385 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
|
7386 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
|
7387 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
|
7388 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
|
7389 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
|
7390 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
|
7391 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
|
7392 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
|
7393 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
|
7394 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
|
7395 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
|
7396 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
|
7397 #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
|
7398 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
|
7399 |
b32d82817493
* 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 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
|
7401 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
|
7402 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
|
7403 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
|
7404 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
|
7405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
29834 | 7406 echo "configure:7407: 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
|
7407 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
|
7408 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
|
7409 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
|
7410 cat > conftest.$ac_ext <<EOF |
29834 | 7411 #line 7412 "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
|
7412 #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
|
7413 #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
|
7414 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
29834 | 7416 { (eval echo configure:7417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7417 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
|
7418 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
|
7419 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
|
7420 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
|
7421 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
|
7422 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
|
7423 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
|
7424 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
|
7425 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
|
7426 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
|
7427 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
|
7428 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
|
7429 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
|
7430 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
|
7431 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
|
7432 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
|
7433 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
|
7434 #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
|
7435 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
|
7436 |
b32d82817493
* 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 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
|
7438 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
|
7439 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
|
7440 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
|
7441 |
b32d82817493
* 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 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
|
7443 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
|
7444 |
b32d82817493
* 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 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
|
7447 |
b32d82817493
* 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 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
|
7449 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
|
7450 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
|
7451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
29834 | 7452 echo "configure:7453: 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
|
7453 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
|
7454 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
|
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 cat > conftest.$ac_ext <<EOF |
29834 | 7457 #line 7458 "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
|
7458 #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
|
7459 #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
|
7460 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
|
7461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
29834 | 7462 { (eval echo configure:7463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7463 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
|
7464 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
|
7465 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
|
7466 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
|
7467 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
|
7468 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
|
7469 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
|
7470 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
|
7471 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
|
7472 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
|
7473 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
|
7474 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
|
7475 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
|
7476 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
|
7477 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
|
7478 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
|
7479 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
|
7480 #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
|
7481 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
|
7482 |
b32d82817493
* 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 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
|
7484 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
|
7485 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
|
7486 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
|
7487 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
|
7488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
29834 | 7489 echo "configure:7490: 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
|
7490 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
|
7491 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
|
7492 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
|
7493 cat > conftest.$ac_ext <<EOF |
29834 | 7494 #line 7495 "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
|
7495 #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
|
7496 #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
|
7497 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
29834 | 7499 { (eval echo configure:7500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7500 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
|
7501 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
|
7502 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
|
7503 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
|
7504 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
|
7505 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
|
7506 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
|
7507 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
|
7508 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
|
7509 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
|
7510 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
|
7511 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
|
7512 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
|
7513 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
|
7514 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
|
7515 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
|
7516 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
|
7517 #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
|
7518 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
|
7519 |
b32d82817493
* 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 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
|
7521 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
|
7522 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
|
7523 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
|
7524 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
|
7525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
29834 | 7526 echo "configure:7527: 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
|
7527 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
|
7528 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
|
7529 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
|
7530 cat > conftest.$ac_ext <<EOF |
29834 | 7531 #line 7532 "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
|
7532 #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
|
7533 #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
|
7534 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
29834 | 7536 { (eval echo configure:7537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7537 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
|
7538 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
|
7539 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
|
7540 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
|
7541 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
|
7542 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
|
7543 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
|
7544 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
|
7545 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
|
7546 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
|
7547 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
|
7548 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
|
7549 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
|
7550 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
|
7551 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
|
7552 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
|
7553 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
|
7554 #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
|
7555 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
|
7556 |
b32d82817493
* 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 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
|
7558 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
|
7559 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
|
7560 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
|
7561 |
b32d82817493
* 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 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
|
7563 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
|
7564 |
b32d82817493
* 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 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
|
7567 |
b32d82817493
* 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 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
|
7569 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
|
7570 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
|
7571 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
|
7572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
29834 | 7573 echo "configure:7574: 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
|
7574 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
|
7575 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
|
7576 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
|
7577 cat > conftest.$ac_ext <<EOF |
29834 | 7578 #line 7579 "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
|
7579 #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
|
7580 #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
|
7581 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
|
7582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
29834 | 7583 { (eval echo configure:7584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7584 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
|
7585 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
|
7586 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
|
7587 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
|
7588 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
|
7589 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
|
7590 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
|
7591 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
|
7592 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
|
7593 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
|
7594 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
|
7595 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
|
7596 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
|
7597 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
|
7598 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
|
7599 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
|
7600 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
|
7601 #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
|
7602 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
|
7603 |
b32d82817493
* 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 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
|
7605 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
|
7606 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
|
7607 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
|
7608 |
b32d82817493
* 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 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
|
7610 |
25897 | 7611 # Solaris requires -lintl if you want strerror (which calls dgettext) |
7612 # to return localized messages. | |
7613 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 | |
29834 | 7614 echo "configure:7615: checking for dgettext in -lintl" >&5 |
25897 | 7615 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` |
7616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7617 echo $ac_n "(cached) $ac_c" 1>&6 | |
7618 else | |
7619 ac_save_LIBS="$LIBS" | |
7620 LIBS="-lintl $LIBS" | |
7621 cat > conftest.$ac_ext <<EOF | |
29834 | 7622 #line 7623 "configure" |
25897 | 7623 #include "confdefs.h" |
7624 /* Override any gcc2 internal prototype to avoid an error. */ | |
7625 /* We use char because int might match the return type of a gcc2 | |
7626 builtin and then its argument prototype would still apply. */ | |
7627 char dgettext(); | |
7628 | |
7629 int main() { | |
7630 dgettext() | |
7631 ; return 0; } | |
7632 EOF | |
29834 | 7633 if { (eval echo configure:7634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 7634 rm -rf conftest* |
7635 eval "ac_cv_lib_$ac_lib_var=yes" | |
7636 else | |
7637 echo "configure: failed program was:" >&5 | |
7638 cat conftest.$ac_ext >&5 | |
7639 rm -rf conftest* | |
7640 eval "ac_cv_lib_$ac_lib_var=no" | |
7641 fi | |
7642 rm -f conftest* | |
7643 LIBS="$ac_save_LIBS" | |
7644 | |
7645 fi | |
7646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7647 echo "$ac_t""yes" 1>&6 | |
7648 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
7649 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
7650 cat >> confdefs.h <<EOF | |
7651 #define $ac_tr_lib 1 | |
7652 EOF | |
7653 | |
7654 LIBS="-lintl $LIBS" | |
7655 | |
7656 else | |
7657 echo "$ac_t""no" 1>&6 | |
7658 fi | |
7659 | |
7660 | |
7661 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | |
29834 | 7662 echo "configure:7663: checking whether localtime caches TZ" >&5 |
25897 | 7663 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then |
7664 echo $ac_n "(cached) $ac_c" 1>&6 | |
7665 else | |
7666 if test x$ac_cv_func_tzset = xyes; then | |
7667 if test "$cross_compiling" = yes; then | |
7668 # If we have tzset, assume the worst when cross-compiling. | |
7669 emacs_cv_localtime_cache=yes | |
7670 else | |
7671 cat > conftest.$ac_ext <<EOF | |
29834 | 7672 #line 7673 "configure" |
25897 | 7673 #include "confdefs.h" |
7674 #include <time.h> | |
7675 extern char **environ; | |
7676 unset_TZ () | |
7677 { | |
7678 char **from, **to; | |
7679 for (to = from = environ; (*to = *from); from++) | |
7680 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
7681 to++; | |
7682 } | |
7683 char TZ_GMT0[] = "TZ=GMT0"; | |
7684 char TZ_PST8[] = "TZ=PST8"; | |
7685 main() | |
7686 { | |
7687 time_t now = time ((time_t *) 0); | |
7688 int hour_GMT0, hour_unset; | |
7689 if (putenv (TZ_GMT0) != 0) | |
7690 exit (1); | |
7691 hour_GMT0 = localtime (&now)->tm_hour; | |
7692 unset_TZ (); | |
7693 hour_unset = localtime (&now)->tm_hour; | |
7694 if (putenv (TZ_PST8) != 0) | |
7695 exit (1); | |
7696 if (localtime (&now)->tm_hour == hour_GMT0) | |
7697 exit (1); | |
7698 unset_TZ (); | |
7699 if (localtime (&now)->tm_hour != hour_unset) | |
7700 exit (1); | |
7701 exit (0); | |
7702 } | |
7703 EOF | |
29834 | 7704 if { (eval echo configure:7705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
25897 | 7705 then |
7706 emacs_cv_localtime_cache=no | |
7707 else | |
7708 echo "configure: failed program was:" >&5 | |
7709 cat conftest.$ac_ext >&5 | |
7710 rm -fr conftest* | |
7711 emacs_cv_localtime_cache=yes | |
7712 fi | |
7713 rm -fr conftest* | |
7714 fi | |
7715 | |
7716 else | |
7717 # If we lack tzset, report that localtime does not cache TZ, | |
7718 # since we can't invalidate the cache if we don't have tzset. | |
7719 emacs_cv_localtime_cache=no | |
7720 fi | |
7721 fi | |
7722 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6 | |
7723 if test $emacs_cv_localtime_cache = yes; then | |
7724 cat >> confdefs.h <<\EOF | |
7725 #define LOCALTIME_CACHE 1 | |
7726 EOF | |
7727 | |
7728 fi | |
7729 | |
7730 if test "x$HAVE_TIMEVAL" = xyes; then | |
7731 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 | |
29834 | 7732 echo "configure:7733: checking whether gettimeofday can accept two arguments" >&5 |
25897 | 7733 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then |
7734 echo $ac_n "(cached) $ac_c" 1>&6 | |
7735 else | |
7736 cat > conftest.$ac_ext <<EOF | |
29834 | 7737 #line 7738 "configure" |
25897 | 7738 #include "confdefs.h" |
7739 | |
7740 #ifdef TIME_WITH_SYS_TIME | |
7741 #include <sys/time.h> | |
7742 #include <time.h> | |
7743 #else | |
7744 #ifdef HAVE_SYS_TIME_H | |
7745 #include <sys/time.h> | |
7746 #else | |
7747 #include <time.h> | |
7748 #endif | |
7749 #endif | |
7750 int main() { | |
29733 | 7751 struct timeval time; |
29834 | 7752 gettimeofday (&time, 0); |
25897 | 7753 ; return 0; } |
7754 EOF | |
29834 | 7755 if { (eval echo configure:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 7756 rm -rf conftest* |
7757 emacs_cv_gettimeofday_two_arguments=yes | |
7758 else | |
7759 echo "configure: failed program was:" >&5 | |
7760 cat conftest.$ac_ext >&5 | |
7761 rm -rf conftest* | |
7762 emacs_cv_gettimeofday_two_arguments=no | |
7763 fi | |
7764 rm -f conftest* | |
7765 fi | |
7766 | |
7767 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6 | |
7768 if test $emacs_cv_gettimeofday_two_arguments = no; then | |
7769 cat >> confdefs.h <<\EOF | |
7770 #define GETTIMEOFDAY_ONE_ARGUMENT 1 | |
7771 EOF | |
7772 | |
7773 fi | |
7774 fi | |
7775 | |
7776 ok_so_far=yes | |
7777 echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
29834 | 7778 echo "configure:7779: checking for socket" >&5 |
25897 | 7779 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
7780 echo $ac_n "(cached) $ac_c" 1>&6 | |
7781 else | |
7782 cat > conftest.$ac_ext <<EOF | |
29834 | 7783 #line 7784 "configure" |
25897 | 7784 #include "confdefs.h" |
7785 /* System header to define __stub macros and hopefully few prototypes, | |
7786 which can conflict with char socket(); below. */ | |
7787 #include <assert.h> | |
7788 /* Override any gcc2 internal prototype to avoid an error. */ | |
7789 /* We use char because int might match the return type of a gcc2 | |
7790 builtin and then its argument prototype would still apply. */ | |
7791 char socket(); | |
7792 | |
7793 int main() { | |
7794 | |
7795 /* The GNU C library defines this for functions which it implements | |
7796 to always fail with ENOSYS. Some functions are actually named | |
7797 something starting with __ and the normal name is an alias. */ | |
7798 #if defined (__stub_socket) || defined (__stub___socket) | |
7799 choke me | |
7800 #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
|
7801 socket(); |
25897 | 7802 #endif |
7803 | |
7804 ; return 0; } | |
7805 EOF | |
29834 | 7806 if { (eval echo configure:7807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 7807 rm -rf conftest* |
7808 eval "ac_cv_func_socket=yes" | |
7809 else | |
7810 echo "configure: failed program was:" >&5 | |
7811 cat conftest.$ac_ext >&5 | |
7812 rm -rf conftest* | |
7813 eval "ac_cv_func_socket=no" | |
7814 fi | |
7815 rm -f conftest* | |
7816 fi | |
7817 | |
7818 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
7819 echo "$ac_t""yes" 1>&6 | |
7820 : | |
7821 else | |
7822 echo "$ac_t""no" 1>&6 | |
7823 ok_so_far=no | |
7824 fi | |
7825 | |
7826 if test $ok_so_far = yes; then | |
7827 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | |
7828 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | |
29834 | 7829 echo "configure:7830: checking for netinet/in.h" >&5 |
25897 | 7830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7831 echo $ac_n "(cached) $ac_c" 1>&6 | |
7832 else | |
7833 cat > conftest.$ac_ext <<EOF | |
29834 | 7834 #line 7835 "configure" |
25897 | 7835 #include "confdefs.h" |
7836 #include <netinet/in.h> | |
7837 EOF | |
7838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 7839 { (eval echo configure:7840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 7841 if test -z "$ac_err"; then |
7842 rm -rf conftest* | |
7843 eval "ac_cv_header_$ac_safe=yes" | |
7844 else | |
7845 echo "$ac_err" >&5 | |
7846 echo "configure: failed program was:" >&5 | |
7847 cat conftest.$ac_ext >&5 | |
7848 rm -rf conftest* | |
7849 eval "ac_cv_header_$ac_safe=no" | |
7850 fi | |
7851 rm -f conftest* | |
7852 fi | |
7853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7854 echo "$ac_t""yes" 1>&6 | |
7855 : | |
7856 else | |
7857 echo "$ac_t""no" 1>&6 | |
7858 ok_so_far=no | |
7859 fi | |
7860 | |
7861 fi | |
7862 if test $ok_so_far = yes; then | |
7863 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | |
7864 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | |
29834 | 7865 echo "configure:7866: checking for arpa/inet.h" >&5 |
25897 | 7866 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7867 echo $ac_n "(cached) $ac_c" 1>&6 | |
7868 else | |
7869 cat > conftest.$ac_ext <<EOF | |
29834 | 7870 #line 7871 "configure" |
25897 | 7871 #include "confdefs.h" |
7872 #include <arpa/inet.h> | |
7873 EOF | |
7874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 7875 { (eval echo configure:7876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27205 | 7876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
25897 | 7877 if test -z "$ac_err"; then |
7878 rm -rf conftest* | |
7879 eval "ac_cv_header_$ac_safe=yes" | |
7880 else | |
7881 echo "$ac_err" >&5 | |
7882 echo "configure: failed program was:" >&5 | |
7883 cat conftest.$ac_ext >&5 | |
7884 rm -rf conftest* | |
7885 eval "ac_cv_header_$ac_safe=no" | |
7886 fi | |
7887 rm -f conftest* | |
7888 fi | |
7889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7890 echo "$ac_t""yes" 1>&6 | |
7891 : | |
7892 else | |
7893 echo "$ac_t""no" 1>&6 | |
7894 ok_so_far=no | |
7895 fi | |
7896 | |
7897 fi | |
7898 if test $ok_so_far = yes; then | |
7899 cat >> confdefs.h <<\EOF | |
7900 #define HAVE_INET_SOCKETS 1 | |
7901 EOF | |
7902 | |
7903 fi | |
7904 | |
7905 if test -f /usr/lpp/X11/bin/smt.exp; then | |
7906 cat >> confdefs.h <<\EOF | |
7907 #define HAVE_AIX_SMT_EXP 1 | |
7908 EOF | |
7909 | |
7910 fi | |
7911 | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
7912 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 |
29834 | 7913 echo "configure:7914: checking whether system supports dynamic ptys" >&5 |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
7914 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
|
7915 echo "$ac_t""yes" 1>&6 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
7916 cat >> confdefs.h <<\EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
7917 #define HAVE_DEV_PTMX 1 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
7918 EOF |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
7919 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
7920 else |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
7921 echo "$ac_t""no" 1>&6 |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
7922 fi |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
7923 |
27675 | 7924 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
29834 | 7925 echo "configure:7926: checking for pid_t" >&5 |
27675 | 7926 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
7927 echo $ac_n "(cached) $ac_c" 1>&6 | |
7928 else | |
7929 cat > conftest.$ac_ext <<EOF | |
29834 | 7930 #line 7931 "configure" |
27675 | 7931 #include "confdefs.h" |
7932 #include <sys/types.h> | |
7933 #if STDC_HEADERS | |
7934 #include <stdlib.h> | |
7935 #include <stddef.h> | |
7936 #endif | |
7937 EOF | |
7938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7939 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
7940 rm -rf conftest* | |
7941 ac_cv_type_pid_t=yes | |
7942 else | |
7943 rm -rf conftest* | |
7944 ac_cv_type_pid_t=no | |
7945 fi | |
7946 rm -f conftest* | |
7947 | |
7948 fi | |
7949 echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
7950 if test $ac_cv_type_pid_t = no; then | |
7951 cat >> confdefs.h <<\EOF | |
7952 #define pid_t int | |
7953 EOF | |
7954 | |
7955 fi | |
7956 | |
7957 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | |
7958 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | |
29834 | 7959 echo "configure:7960: checking for vfork.h" >&5 |
27675 | 7960 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7961 echo $ac_n "(cached) $ac_c" 1>&6 | |
7962 else | |
7963 cat > conftest.$ac_ext <<EOF | |
29834 | 7964 #line 7965 "configure" |
27675 | 7965 #include "confdefs.h" |
7966 #include <vfork.h> | |
7967 EOF | |
7968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
29834 | 7969 { (eval echo configure:7970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
27675 | 7970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7971 if test -z "$ac_err"; then | |
7972 rm -rf conftest* | |
7973 eval "ac_cv_header_$ac_safe=yes" | |
7974 else | |
7975 echo "$ac_err" >&5 | |
7976 echo "configure: failed program was:" >&5 | |
7977 cat conftest.$ac_ext >&5 | |
7978 rm -rf conftest* | |
7979 eval "ac_cv_header_$ac_safe=no" | |
7980 fi | |
7981 rm -f conftest* | |
7982 fi | |
7983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7984 echo "$ac_t""yes" 1>&6 | |
7985 cat >> confdefs.h <<\EOF | |
7986 #define HAVE_VFORK_H 1 | |
7987 EOF | |
7988 | |
7989 else | |
7990 echo "$ac_t""no" 1>&6 | |
7991 fi | |
7992 | |
7993 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | |
29834 | 7994 echo "configure:7995: checking for working vfork" >&5 |
27675 | 7995 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
7996 echo $ac_n "(cached) $ac_c" 1>&6 | |
7997 else | |
7998 if test "$cross_compiling" = yes; then | |
7999 echo $ac_n "checking for vfork""... $ac_c" 1>&6 | |
29834 | 8000 echo "configure:8001: checking for vfork" >&5 |
27675 | 8001 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
8002 echo $ac_n "(cached) $ac_c" 1>&6 | |
8003 else | |
8004 cat > conftest.$ac_ext <<EOF | |
29834 | 8005 #line 8006 "configure" |
27675 | 8006 #include "confdefs.h" |
8007 /* System header to define __stub macros and hopefully few prototypes, | |
8008 which can conflict with char vfork(); below. */ | |
8009 #include <assert.h> | |
8010 /* Override any gcc2 internal prototype to avoid an error. */ | |
8011 /* We use char because int might match the return type of a gcc2 | |
8012 builtin and then its argument prototype would still apply. */ | |
8013 char vfork(); | |
8014 | |
8015 int main() { | |
8016 | |
8017 /* The GNU C library defines this for functions which it implements | |
8018 to always fail with ENOSYS. Some functions are actually named | |
8019 something starting with __ and the normal name is an alias. */ | |
8020 #if defined (__stub_vfork) || defined (__stub___vfork) | |
8021 choke me | |
8022 #else | |
8023 vfork(); | |
8024 #endif | |
8025 | |
8026 ; return 0; } | |
8027 EOF | |
29834 | 8028 if { (eval echo configure:8029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
27675 | 8029 rm -rf conftest* |
8030 eval "ac_cv_func_vfork=yes" | |
8031 else | |
8032 echo "configure: failed program was:" >&5 | |
8033 cat conftest.$ac_ext >&5 | |
8034 rm -rf conftest* | |
8035 eval "ac_cv_func_vfork=no" | |
8036 fi | |
8037 rm -f conftest* | |
8038 fi | |
8039 | |
8040 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then | |
8041 echo "$ac_t""yes" 1>&6 | |
8042 : | |
8043 else | |
8044 echo "$ac_t""no" 1>&6 | |
8045 fi | |
8046 | |
8047 ac_cv_func_vfork_works=$ac_cv_func_vfork | |
8048 else | |
8049 cat > conftest.$ac_ext <<EOF | |
29834 | 8050 #line 8051 "configure" |
27675 | 8051 #include "confdefs.h" |
8052 /* Thanks to Paul Eggert for this test. */ | |
8053 #include <stdio.h> | |
8054 #include <sys/types.h> | |
8055 #include <sys/stat.h> | |
8056 #ifdef HAVE_UNISTD_H | |
8057 #include <unistd.h> | |
8058 #endif | |
8059 #ifdef HAVE_VFORK_H | |
8060 #include <vfork.h> | |
8061 #endif | |
8062 /* On some sparc systems, changes by the child to local and incoming | |
8063 argument registers are propagated back to the parent. | |
8064 The compiler is told about this with #include <vfork.h>, | |
8065 but some compilers (e.g. gcc -O) don't grok <vfork.h>. | |
8066 Test for this by using a static variable whose address | |
8067 is put into a register that is clobbered by the vfork. */ | |
8068 static | |
8069 #ifdef __cplusplus | |
8070 sparc_address_test (int arg) | |
8071 #else | |
8072 sparc_address_test (arg) int arg; | |
8073 #endif | |
8074 { | |
8075 static pid_t child; | |
8076 if (!child) { | |
8077 child = vfork (); | |
8078 if (child < 0) { | |
8079 perror ("vfork"); | |
8080 _exit(2); | |
8081 } | |
8082 if (!child) { | |
8083 arg = getpid(); | |
8084 write(-1, "", 0); | |
8085 _exit (arg); | |
8086 } | |
8087 } | |
8088 } | |
8089 main() { | |
8090 pid_t parent = getpid (); | |
8091 pid_t child; | |
8092 | |
8093 sparc_address_test (); | |
8094 | |
8095 child = vfork (); | |
8096 | |
8097 if (child == 0) { | |
8098 /* Here is another test for sparc vfork register problems. | |
8099 This test uses lots of local variables, at least | |
8100 as many local variables as main has allocated so far | |
8101 including compiler temporaries. 4 locals are enough for | |
8102 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. | |
8103 A buggy compiler should reuse the register of parent | |
8104 for one of the local variables, since it will think that | |
8105 parent can't possibly be used any more in this routine. | |
8106 Assigning to the local variable will thus munge parent | |
8107 in the parent process. */ | |
8108 pid_t | |
8109 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
8110 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
8111 /* Convince the compiler that p..p7 are live; otherwise, it might | |
8112 use the same hardware register for all 8 local variables. */ | |
8113 if (p != p1 || p != p2 || p != p3 || p != p4 | |
8114 || p != p5 || p != p6 || p != p7) | |
8115 _exit(1); | |
8116 | |
8117 /* On some systems (e.g. IRIX 3.3), | |
8118 vfork doesn't separate parent from child file descriptors. | |
8119 If the child closes a descriptor before it execs or exits, | |
8120 this munges the parent's descriptor as well. | |
8121 Test for this by closing stdout in the child. */ | |
8122 _exit(close(fileno(stdout)) != 0); | |
8123 } else { | |
8124 int status; | |
8125 struct stat st; | |
8126 | |
8127 while (wait(&status) != child) | |
8128 ; | |
8129 exit( | |
8130 /* Was there some problem with vforking? */ | |
8131 child < 0 | |
8132 | |
8133 /* Did the child fail? (This shouldn't happen.) */ | |
8134 || status | |
8135 | |
8136 /* Did the vfork/compiler bug occur? */ | |
8137 || parent != getpid() | |
8138 | |
8139 /* Did the file descriptor bug occur? */ | |
8140 || fstat(fileno(stdout), &st) != 0 | |
8141 ); | |
8142 } | |
8143 } | |
8144 EOF | |
29834 | 8145 if { (eval echo configure:8146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
27675 | 8146 then |
8147 ac_cv_func_vfork_works=yes | |
8148 else | |
8149 echo "configure: failed program was:" >&5 | |
8150 cat conftest.$ac_ext >&5 | |
8151 rm -fr conftest* | |
8152 ac_cv_func_vfork_works=no | |
8153 fi | |
8154 rm -fr conftest* | |
8155 fi | |
8156 | |
8157 fi | |
8158 | |
8159 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 | |
8160 if test $ac_cv_func_vfork_works = no; then | |
8161 cat >> confdefs.h <<\EOF | |
8162 #define vfork fork | |
8163 EOF | |
8164 | |
8165 fi | |
8166 | |
8167 | |
25897 | 8168 # Set up the CFLAGS for real compilation, so we can substitute it. |
8169 CFLAGS="$REAL_CFLAGS" | |
8170 | |
8171 #### Find out which version of Emacs this is. | |
8172 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
8173 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
8174 if test x"${version}" = x; then | |
8175 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; } | |
8176 fi | |
8177 | |
8178 ### Specify what sort of things we'll be editing into Makefile and config.h. | |
8179 ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
8180 | |
8181 | |
8182 | |
8183 | |
8184 | |
8185 | |
8186 | |
8187 | |
8188 | |
8189 | |
8190 | |
8191 | |
8192 | |
8193 | |
8194 | |
8195 | |
8196 | |
8197 | |
8198 | |
8199 | |
8200 | |
8201 | |
8202 | |
8203 | |
8204 | |
8205 | |
8206 | |
8207 | |
8208 | |
8209 | |
29834 | 8210 |
25897 | 8211 cat >> confdefs.h <<EOF |
8212 #define EMACS_CONFIGURATION "${canonical}" | |
8213 EOF | |
8214 | |
8215 cat >> confdefs.h <<EOF | |
8216 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
8217 EOF | |
8218 | |
8219 cat >> confdefs.h <<EOF | |
8220 #define config_machfile "${machfile}" | |
8221 EOF | |
8222 | |
8223 cat >> confdefs.h <<EOF | |
8224 #define config_opsysfile "${opsysfile}" | |
8225 EOF | |
8226 | |
8227 cat >> confdefs.h <<EOF | |
8228 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | |
8229 EOF | |
8230 | |
8231 cat >> confdefs.h <<EOF | |
8232 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | |
8233 EOF | |
8234 | |
8235 cat >> confdefs.h <<EOF | |
8236 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | |
8237 EOF | |
8238 | |
8239 cat >> confdefs.h <<EOF | |
8240 #define UNEXEC_SRC ${UNEXEC_SRC} | |
8241 EOF | |
8242 | |
8243 | |
8244 if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
8245 cat >> confdefs.h <<\EOF | |
8246 #define HAVE_X_WINDOWS 1 | |
8247 EOF | |
8248 | |
8249 fi | |
8250 if test "${USE_X_TOOLKIT}" != "none" ; then | |
8251 cat >> confdefs.h <<\EOF | |
8252 #define USE_X_TOOLKIT 1 | |
8253 EOF | |
8254 | |
8255 fi | |
8256 if test "${HAVE_X11}" = "yes" ; then | |
8257 cat >> confdefs.h <<\EOF | |
8258 #define HAVE_X11 1 | |
8259 EOF | |
8260 | |
8261 fi | |
8262 if test "${HAVE_XFREE386}" = "yes" ; then | |
8263 cat >> confdefs.h <<\EOF | |
8264 #define HAVE_XFREE386 1 | |
8265 EOF | |
8266 | |
8267 fi | |
8268 if test "${HAVE_MENUS}" = "yes" ; then | |
8269 cat >> confdefs.h <<\EOF | |
8270 #define HAVE_MENUS 1 | |
8271 EOF | |
8272 | |
8273 fi | |
8274 if test "${GNU_MALLOC}" = "yes" ; then | |
8275 cat >> confdefs.h <<\EOF | |
8276 #define GNU_MALLOC 1 | |
8277 EOF | |
8278 | |
8279 fi | |
8280 if test "${REL_ALLOC}" = "yes" ; then | |
8281 cat >> confdefs.h <<\EOF | |
8282 #define REL_ALLOC 1 | |
8283 EOF | |
8284 | |
8285 fi | |
8286 | |
8287 #### Report on what we decided to do. | |
8288 echo " | |
8289 Configured for \`${canonical}'. | |
8290 | |
8291 Where should the build process find the source code? ${srcdir} | |
8292 What operating system and machine description files should Emacs use? | |
8293 \`${opsysfile}' and \`${machfile}' | |
8294 What compiler should emacs be built with? ${CC} ${CFLAGS} | |
8295 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
8296 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC} | |
8297 What window system should Emacs use? ${window_system} | |
8298 What toolkit should Emacs use? ${USE_X_TOOLKIT}" | |
8299 | |
8300 if test -n "${x_includes}"; then | |
8301 echo " Where do we find X Windows header files? ${x_includes}" | |
8302 else | |
8303 echo " Where do we find X Windows header files? Standard dirs" | |
8304 fi | |
8305 if test -n "${x_libraries}"; then | |
8306 echo " Where do we find X Windows libraries? ${x_libraries}" | |
8307 else | |
8308 echo " Where do we find X Windows libraries? Standard dirs" | |
8309 fi | |
8310 | |
8311 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
8312 echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
8313 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
8314 echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
8315 echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
8316 echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
8317 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
8318 echo | |
8319 | |
8320 # Remove any trailing slashes in these variables. | |
8321 test "${prefix}" != NONE && | |
8322 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
8323 test "${exec_prefix}" != NONE && | |
8324 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
8325 | |
8326 trap '' 1 2 15 | |
8327 cat > confcache <<\EOF | |
8328 # This file is a shell script that caches the results of configure | |
8329 # tests run on this system so they can be shared between configure | |
8330 # scripts and configure runs. It is not useful on other systems. | |
8331 # If it contains results you don't want to keep, you may remove or edit it. | |
8332 # | |
8333 # By default, configure uses ./config.cache as the cache file, | |
8334 # creating it if it does not exist already. You can give configure | |
8335 # the --cache-file=FILE option to use a different cache file; that is | |
8336 # what configure does when it calls configure scripts in | |
8337 # subdirectories, so they share the cache. | |
8338 # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8339 # config.status only pays attention to the cache file if you give it the | |
8340 # --recheck option to rerun configure. | |
8341 # | |
8342 EOF | |
8343 # The following way of writing the cache mishandles newlines in values, | |
8344 # but we know of no workaround that is simple, portable, and efficient. | |
8345 # So, don't put newlines in cache variables' values. | |
8346 # Ultrix sh set writes to stderr and can't be redirected directly, | |
8347 # and sets the high bit in the cache file unless we assign to the vars. | |
8348 (set) 2>&1 | | |
8349 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8350 *ac_space=\ *) | |
8351 # `set' does not quote correctly, so add quotes (double-quote substitution | |
8352 # turns \\\\ into \\, and sed turns \\ into \). | |
8353 sed -n \ | |
8354 -e "s/'/'\\\\''/g" \ | |
8355 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8356 ;; | |
8357 *) | |
8358 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8359 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8360 ;; | |
8361 esac >> confcache | |
8362 if cmp -s $cache_file confcache; then | |
8363 : | |
8364 else | |
8365 if test -w $cache_file; then | |
8366 echo "updating cache $cache_file" | |
8367 cat confcache > $cache_file | |
8368 else | |
8369 echo "not updating unwritable cache $cache_file" | |
8370 fi | |
8371 fi | |
8372 rm -f confcache | |
8373 | |
8374 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
8375 | |
8376 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8377 # Let make expand exec_prefix. | |
8378 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8379 | |
8380 # Any assignment to VPATH causes Sun make to only execute | |
8381 # the first set of double-colon rules, so remove it if not needed. | |
8382 # If there is a colon in the path, we need to keep it. | |
8383 if test "x$srcdir" = x.; then | |
8384 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
8385 fi | |
8386 | |
8387 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
8388 | |
8389 DEFS=-DHAVE_CONFIG_H | |
8390 | |
8391 # Without the "./", some shells look in PATH for config.status. | |
8392 : ${CONFIG_STATUS=./config.status} | |
8393 | |
8394 echo creating $CONFIG_STATUS | |
8395 rm -f $CONFIG_STATUS | |
8396 cat > $CONFIG_STATUS <<EOF | |
8397 #! /bin/sh | |
8398 # Generated automatically by configure. | |
8399 # Run this file to recreate the current configuration. | |
8400 # This directory was configured as follows, | |
8401 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
8402 # | |
8403 # $0 $ac_configure_args | |
8404 # | |
8405 # Compiler output produced by configure, useful for debugging | |
8406 # configure, is in ./config.log if it exists. | |
8407 | |
8408 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
8409 for ac_option | |
8410 do | |
8411 case "\$ac_option" in | |
8412 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8413 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
8414 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
8415 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
27205 | 8416 echo "$CONFIG_STATUS generated by autoconf version 2.13" |
25897 | 8417 exit 0 ;; |
8418 -help | --help | --hel | --he | --h) | |
8419 echo "\$ac_cs_usage"; exit 0 ;; | |
8420 *) echo "\$ac_cs_usage"; exit 1 ;; | |
8421 esac | |
8422 done | |
8423 | |
8424 ac_given_srcdir=$srcdir | |
8425 ac_given_INSTALL="$INSTALL" | |
8426 | |
8427 trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ | |
8428 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ | |
29657 | 8429 lisp/Makefile leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
25897 | 8430 EOF |
8431 cat >> $CONFIG_STATUS <<EOF | |
8432 | |
8433 # Protect against being on the right side of a sed subst in config.status. | |
8434 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
8435 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
8436 $ac_vpsub | |
8437 $extrasub | |
27205 | 8438 s%@SHELL@%$SHELL%g |
25897 | 8439 s%@CFLAGS@%$CFLAGS%g |
8440 s%@CPPFLAGS@%$CPPFLAGS%g | |
8441 s%@CXXFLAGS@%$CXXFLAGS%g | |
27205 | 8442 s%@FFLAGS@%$FFLAGS%g |
25897 | 8443 s%@DEFS@%$DEFS%g |
8444 s%@LDFLAGS@%$LDFLAGS%g | |
8445 s%@LIBS@%$LIBS%g | |
8446 s%@exec_prefix@%$exec_prefix%g | |
8447 s%@prefix@%$prefix%g | |
8448 s%@program_transform_name@%$program_transform_name%g | |
8449 s%@bindir@%$bindir%g | |
8450 s%@sbindir@%$sbindir%g | |
8451 s%@libexecdir@%$libexecdir%g | |
8452 s%@datadir@%$datadir%g | |
8453 s%@sysconfdir@%$sysconfdir%g | |
8454 s%@sharedstatedir@%$sharedstatedir%g | |
8455 s%@localstatedir@%$localstatedir%g | |
8456 s%@libdir@%$libdir%g | |
8457 s%@includedir@%$includedir%g | |
8458 s%@oldincludedir@%$oldincludedir%g | |
8459 s%@infodir@%$infodir%g | |
8460 s%@mandir@%$mandir%g | |
8461 s%@host@%$host%g | |
8462 s%@host_alias@%$host_alias%g | |
8463 s%@host_cpu@%$host_cpu%g | |
8464 s%@host_vendor@%$host_vendor%g | |
8465 s%@host_os@%$host_os%g | |
8466 s%@CC@%$CC%g | |
8467 s%@LN_S@%$LN_S%g | |
8468 s%@CPP@%$CPP%g | |
8469 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
27205 | 8470 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
25897 | 8471 s%@INSTALL_DATA@%$INSTALL_DATA%g |
8472 s%@YACC@%$YACC%g | |
28060 | 8473 s%@RANLIB@%$RANLIB%g |
25897 | 8474 s%@SET_MAKE@%$SET_MAKE%g |
8475 s%@ALLOCA@%$ALLOCA%g | |
8476 s%@liblockfile@%$liblockfile%g | |
28607 | 8477 s%@LIBOBJS@%$LIBOBJS%g |
29834 | 8478 s%@NEED_SETGID@%$NEED_SETGID%g |
8479 s%@KMEM_GROUP@%$KMEM_GROUP%g | |
25897 | 8480 s%@version@%$version%g |
8481 s%@configuration@%$configuration%g | |
8482 s%@canonical@%$canonical%g | |
8483 s%@srcdir@%$srcdir%g | |
8484 s%@lispdir@%$lispdir%g | |
8485 s%@locallisppath@%$locallisppath%g | |
8486 s%@lisppath@%$lisppath%g | |
8487 s%@x_default_search_path@%$x_default_search_path%g | |
8488 s%@etcdir@%$etcdir%g | |
8489 s%@archlibdir@%$archlibdir%g | |
8490 s%@docdir@%$docdir%g | |
8491 s%@bitmapdir@%$bitmapdir%g | |
8492 s%@c_switch_system@%$c_switch_system%g | |
8493 s%@c_switch_machine@%$c_switch_machine%g | |
8494 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g | |
8495 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g | |
8496 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g | |
8497 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g | |
8498 s%@machfile@%$machfile%g | |
8499 s%@opsysfile@%$opsysfile%g | |
29834 | 8500 s%@GETLOADAVG_LIBS@%$GETLOADAVG_LIBS%g |
25897 | 8501 |
8502 CEOF | |
8503 EOF | |
8504 | |
8505 cat >> $CONFIG_STATUS <<\EOF | |
8506 | |
8507 # Split the substitutions into bite-sized pieces for seds with | |
8508 # small command number limits, like on Digital OSF/1 and HP-UX. | |
8509 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
8510 ac_file=1 # Number of current file. | |
8511 ac_beg=1 # First line for current file. | |
8512 ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
8513 ac_more_lines=: | |
8514 ac_sed_cmds="" | |
8515 while $ac_more_lines; do | |
8516 if test $ac_beg -gt 1; then | |
8517 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
8518 else | |
8519 sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
8520 fi | |
8521 if test ! -s conftest.s$ac_file; then | |
8522 ac_more_lines=false | |
8523 rm -f conftest.s$ac_file | |
8524 else | |
8525 if test -z "$ac_sed_cmds"; then | |
8526 ac_sed_cmds="sed -f conftest.s$ac_file" | |
8527 else | |
8528 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
8529 fi | |
8530 ac_file=`expr $ac_file + 1` | |
8531 ac_beg=$ac_end | |
8532 ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
8533 fi | |
8534 done | |
8535 if test -z "$ac_sed_cmds"; then | |
8536 ac_sed_cmds=cat | |
8537 fi | |
8538 EOF | |
8539 | |
8540 cat >> $CONFIG_STATUS <<EOF | |
8541 | |
8542 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ | |
8543 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ | |
29657 | 8544 lisp/Makefile leim/Makefile"} |
25897 | 8545 EOF |
8546 cat >> $CONFIG_STATUS <<\EOF | |
8547 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
8548 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8549 case "$ac_file" in | |
8550 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
8551 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8552 *) ac_file_in="${ac_file}.in" ;; | |
8553 esac | |
8554 | |
8555 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
8556 | |
8557 # Remove last slash and all that follows it. Not all systems have dirname. | |
8558 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
8559 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
8560 # The file is in a subdirectory. | |
8561 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
8562 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
8563 # A "../" for each directory in $ac_dir_suffix. | |
8564 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
8565 else | |
8566 ac_dir_suffix= ac_dots= | |
8567 fi | |
8568 | |
8569 case "$ac_given_srcdir" in | |
8570 .) srcdir=. | |
8571 if test -z "$ac_dots"; then top_srcdir=. | |
8572 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
8573 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
8574 *) # Relative path. | |
8575 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
8576 top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8577 esac | |
8578 | |
8579 case "$ac_given_INSTALL" in | |
8580 [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
8581 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
8582 esac | |
8583 | |
8584 echo creating "$ac_file" | |
8585 rm -f "$ac_file" | |
8586 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
8587 case "$ac_file" in | |
8588 *Makefile*) ac_comsub="1i\\ | |
8589 # $configure_input" ;; | |
8590 *) ac_comsub= ;; | |
8591 esac | |
8592 | |
8593 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
8594 sed -e "$ac_comsub | |
8595 s%@configure_input@%$configure_input%g | |
8596 s%@srcdir@%$srcdir%g | |
8597 s%@top_srcdir@%$top_srcdir%g | |
8598 s%@INSTALL@%$INSTALL%g | |
8599 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
8600 fi; done | |
8601 rm -f conftest.s* | |
8602 | |
8603 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
8604 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
8605 # | |
8606 # ac_d sets the value in "#define NAME VALUE" lines. | |
8607 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
8608 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
8609 ac_dC='\3' | |
8610 ac_dD='%g' | |
8611 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
8612 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8613 ac_uB='\([ ]\)%\1#\2define\3' | |
8614 ac_uC=' ' | |
8615 ac_uD='\4%g' | |
8616 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
8617 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8618 ac_eB='$%\1#\2define\3' | |
8619 ac_eC=' ' | |
8620 ac_eD='%g' | |
8621 | |
8622 if test "${CONFIG_HEADERS+set}" != set; then | |
8623 EOF | |
8624 cat >> $CONFIG_STATUS <<EOF | |
8625 CONFIG_HEADERS="src/config.h:src/config.in" | |
8626 EOF | |
8627 cat >> $CONFIG_STATUS <<\EOF | |
8628 fi | |
8629 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
8630 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8631 case "$ac_file" in | |
8632 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
8633 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
8634 *) ac_file_in="${ac_file}.in" ;; | |
8635 esac | |
8636 | |
8637 echo creating $ac_file | |
8638 | |
8639 rm -f conftest.frag conftest.in conftest.out | |
8640 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
8641 cat $ac_file_inputs > conftest.in | |
8642 | |
8643 EOF | |
8644 | |
8645 # Transform confdefs.h into a sed script conftest.vals that substitutes | |
8646 # the proper values into config.h.in to produce config.h. And first: | |
8647 # Protect against being on the right side of a sed subst in config.status. | |
8648 # Protect against being in an unquoted here document in config.status. | |
8649 rm -f conftest.vals | |
8650 cat > conftest.hdr <<\EOF | |
8651 s/[\\&%]/\\&/g | |
8652 s%[\\$`]%\\&%g | |
8653 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
8654 s%ac_d%ac_u%gp | |
8655 s%ac_u%ac_e%gp | |
8656 EOF | |
8657 sed -n -f conftest.hdr confdefs.h > conftest.vals | |
8658 rm -f conftest.hdr | |
8659 | |
8660 # This sed command replaces #undef with comments. This is necessary, for | |
8661 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
8662 # on some systems where configure will not decide to define it. | |
8663 cat >> conftest.vals <<\EOF | |
8664 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
8665 EOF | |
8666 | |
8667 # Break up conftest.vals because some shells have a limit on | |
8668 # the size of here documents, and old seds have small limits too. | |
8669 | |
8670 rm -f conftest.tail | |
8671 while : | |
8672 do | |
8673 ac_lines=`grep -c . conftest.vals` | |
8674 # grep -c gives empty output for an empty file on some AIX systems. | |
8675 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
8676 # Write a limited-size here document to conftest.frag. | |
8677 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
8678 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
8679 echo 'CEOF | |
8680 sed -f conftest.frag conftest.in > conftest.out | |
8681 rm -f conftest.in | |
8682 mv conftest.out conftest.in | |
8683 ' >> $CONFIG_STATUS | |
8684 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
8685 rm -f conftest.vals | |
8686 mv conftest.tail conftest.vals | |
8687 done | |
8688 rm -f conftest.vals | |
8689 | |
8690 cat >> $CONFIG_STATUS <<\EOF | |
8691 rm -f conftest.frag conftest.h | |
8692 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
8693 cat conftest.in >> conftest.h | |
8694 rm -f conftest.in | |
8695 if cmp -s $ac_file conftest.h 2>/dev/null; then | |
8696 echo "$ac_file is unchanged" | |
8697 rm -f conftest.h | |
8698 else | |
8699 # Remove last slash and all that follows it. Not all systems have dirname. | |
8700 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
8701 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
8702 # The file is in a subdirectory. | |
8703 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
8704 fi | |
8705 rm -f $ac_file | |
8706 mv conftest.h $ac_file | |
8707 fi | |
8708 fi; done | |
8709 | |
8710 EOF | |
8711 cat >> $CONFIG_STATUS <<EOF | |
8712 CPP="$CPP" CPPFLAGS="$CPPFLAGS" | |
8713 EOF | |
8714 cat >> $CONFIG_STATUS <<\EOF | |
8715 | |
8716 | |
8717 ### Make the necessary directories, if they don't exist. | |
8718 for dir in etc lisp ; do | |
8719 test -d ${dir} || mkdir ${dir} | |
8720 done | |
8721 | |
8722 # Build src/Makefile from ${srcdir}/src/Makefile.c | |
8723 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
8724 # This must be done after src/config.h is built, since we rely on that file. | |
8725 | |
8726 # Now get this: Some word that is part of the ${srcdir} directory name | |
8727 # or the ${configuration} value might, just might, happen to be an | |
8728 # identifier like `sun4' or `i386' or something, and be predefined by | |
8729 # the C preprocessor to some helpful value like 1, or maybe the empty | |
8730 # string. Needless to say consequent macro substitutions are less | |
8731 # than conducive to the makefile finding the correct directory. | |
8732 undefs="`echo $top_srcdir $configuration $canonical | | |
8733 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
8734 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
8735 `" | |
8736 | |
8737 echo creating src/epaths.h | |
8738 make epaths-force | |
8739 | |
8740 echo creating lib-src/Makefile | |
8741 ( cd lib-src | |
8742 rm -f junk.c junk1.c junk2.c | |
8743 sed -e '/start of cpp stuff/q' \ | |
8744 < Makefile.c > junk1.c | |
8745 sed -e '1,/start of cpp stuff/d'\ | |
8746 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | |
8747 < Makefile.c > junk.c | |
8748 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | |
8749 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | |
8750 cat junk1.c junk2.c > Makefile.new | |
8751 rm -f junk.c junk1.c junk2.c | |
8752 chmod 444 Makefile.new | |
8753 mv -f Makefile.new Makefile | |
8754 ) | |
8755 | |
8756 echo creating src/Makefile | |
8757 ( cd src | |
8758 rm -f junk.c junk1.c junk2.c | |
8759 sed -e '/start of cpp stuff/q' \ | |
8760 < Makefile.c > junk1.c | |
8761 sed -e '1,/start of cpp stuff/d'\ | |
8762 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | |
8763 < Makefile.c > junk.c | |
8764 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | |
8765 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | |
8766 cat junk1.c junk2.c > Makefile.new | |
8767 rm -f junk.c junk1.c junk2.c | |
8768 chmod 444 Makefile.new | |
8769 mv -f Makefile.new Makefile | |
8770 ) | |
8771 | |
8772 if test ! -f src/.gdbinit && test -f $top_srcdir/src/.gdbinit; then | |
8773 echo creating src/.gdbinit | |
8774 echo source $top_srcdir/src/.gdbinit > src/.gdbinit | |
8775 fi | |
8776 | |
8777 # This is how we know whether to re-run configure in certain cases. | |
8778 touch src/config.stamp | |
8779 | |
8780 | |
8781 exit 0 | |
8782 EOF | |
8783 chmod +x $CONFIG_STATUS | |
8784 rm -fr confdefs* $ac_clean_files | |
8785 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
8786 |