Mercurial > emacs
annotate configure @ 26266:ac47277769f8
*** empty log message ***
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 01 Nov 1999 11:43:45 +0000 |
parents | bfa8d94330b6 |
children | 78660eeae4b2 |
rev | line source |
---|---|
25897 | 1 #! /bin/sh |
2 | |
3 # Guess values for system-dependent variables and create Makefiles. | |
4 # Generated automatically using autoconf version 2.13 | |
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 |
19 --with-hesiod support Hesiod to get the POP server host" | |
20 ac_help="$ac_help | |
21 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)" | |
22 ac_help="$ac_help | |
23 --with-xpm use -lXpm for displaying XPM images" | |
24 ac_help="$ac_help | |
25 --with-jpeg use -ljpeg for displaying JPEG images" | |
26 ac_help="$ac_help | |
27 --with-tiff use -ltiff for displaying TIFF images" | |
28 ac_help="$ac_help | |
29 --with-gif use -lungif for displaying GIF images" | |
30 ac_help="$ac_help | |
31 --with-png use -lpng for displaying PNG images" | |
32 ac_help="$ac_help | |
25994 | 33 --without-toolkit-scroll-bars don't use Motif or Xaw3d scroll bars" |
25897 | 34 ac_help="$ac_help |
35 --with-x use the X Window System" | |
36 | |
37 # Initialize some variables set by options. | |
38 # The variables have the same names as the options, with | |
39 # dashes changed to underlines. | |
40 build=NONE | |
41 cache_file=./config.cache | |
42 exec_prefix=NONE | |
43 host=NONE | |
44 no_create= | |
45 nonopt=NONE | |
46 no_recursion= | |
47 prefix=NONE | |
48 program_prefix=NONE | |
49 program_suffix=NONE | |
50 program_transform_name=s,x,x, | |
51 silent= | |
52 site= | |
53 srcdir= | |
54 target=NONE | |
55 verbose= | |
56 x_includes=NONE | |
57 x_libraries=NONE | |
58 bindir='${exec_prefix}/bin' | |
59 sbindir='${exec_prefix}/sbin' | |
60 libexecdir='${exec_prefix}/libexec' | |
61 datadir='${prefix}/share' | |
62 sysconfdir='${prefix}/etc' | |
63 sharedstatedir='${prefix}/com' | |
64 localstatedir='${prefix}/var' | |
65 libdir='${exec_prefix}/lib' | |
66 includedir='${prefix}/include' | |
67 oldincludedir='/usr/include' | |
68 infodir='${prefix}/info' | |
69 mandir='${prefix}/man' | |
70 | |
71 # Initialize some other variables. | |
72 subdirs= | |
73 MFLAGS= MAKEFLAGS= | |
74 SHELL=${CONFIG_SHELL-/bin/sh} | |
75 # Maximum number of lines to put in a shell here document. | |
76 ac_max_here_lines=12 | |
77 | |
78 ac_prev= | |
79 for ac_option | |
80 do | |
81 | |
82 # If the previous option needs an argument, assign it. | |
83 if test -n "$ac_prev"; then | |
84 eval "$ac_prev=\$ac_option" | |
85 ac_prev= | |
86 continue | |
87 fi | |
88 | |
89 case "$ac_option" in | |
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
91 *) ac_optarg= ;; | |
92 esac | |
93 | |
94 # Accept the important Cygnus configure options, so we can diagnose typos. | |
95 | |
96 case "$ac_option" in | |
97 | |
98 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
99 ac_prev=bindir ;; | |
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
101 bindir="$ac_optarg" ;; | |
102 | |
103 -build | --build | --buil | --bui | --bu) | |
104 ac_prev=build ;; | |
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
106 build="$ac_optarg" ;; | |
107 | |
108 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
110 ac_prev=cache_file ;; | |
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
113 cache_file="$ac_optarg" ;; | |
114 | |
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
116 ac_prev=datadir ;; | |
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
118 | --da=*) | |
119 datadir="$ac_optarg" ;; | |
120 | |
121 -disable-* | --disable-*) | |
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
123 # Reject names that are not valid shell variable names. | |
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
126 fi | |
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
128 eval "enable_${ac_feature}=no" ;; | |
129 | |
130 -enable-* | --enable-*) | |
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
132 # Reject names that are not valid shell variable names. | |
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
135 fi | |
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
137 case "$ac_option" in | |
138 *=*) ;; | |
139 *) ac_optarg=yes ;; | |
140 esac | |
141 eval "enable_${ac_feature}='$ac_optarg'" ;; | |
142 | |
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
145 | --exec | --exe | --ex) | |
146 ac_prev=exec_prefix ;; | |
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
149 | --exec=* | --exe=* | --ex=*) | |
150 exec_prefix="$ac_optarg" ;; | |
151 | |
152 -gas | --gas | --ga | --g) | |
153 # Obsolete; use --with-gas. | |
154 with_gas=yes ;; | |
155 | |
156 -help | --help | --hel | --he) | |
157 # Omit some internal or obsolete options to make the list less imposing. | |
158 # This message is too long to be a string in the A/UX 3.1 sh. | |
159 cat << EOF | |
160 Usage: configure [options] [host] | |
161 Options: [defaults in brackets after descriptions] | |
162 Configuration: | |
163 --cache-file=FILE cache test results in FILE | |
164 --help print this message | |
165 --no-create do not create output files | |
166 --quiet, --silent do not print \`checking...' messages | |
167 --version print the version of autoconf that created configure | |
168 Directory and file names: | |
169 --prefix=PREFIX install architecture-independent files in PREFIX | |
170 [$ac_default_prefix] | |
171 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
172 [same as prefix] | |
173 --bindir=DIR user executables in DIR [EPREFIX/bin] | |
174 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
175 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
176 --datadir=DIR read-only architecture-independent data in DIR | |
177 [PREFIX/share] | |
178 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
179 --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
180 [PREFIX/com] | |
181 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
182 --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
183 --includedir=DIR C header files in DIR [PREFIX/include] | |
184 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
185 --infodir=DIR info documentation in DIR [PREFIX/info] | |
186 --mandir=DIR man documentation in DIR [PREFIX/man] | |
187 --srcdir=DIR find the sources in DIR [configure dir or ..] | |
188 --program-prefix=PREFIX prepend PREFIX to installed program names | |
189 --program-suffix=SUFFIX append SUFFIX to installed program names | |
190 --program-transform-name=PROGRAM | |
191 run sed PROGRAM on installed program names | |
192 EOF | |
193 cat << EOF | |
194 Host type: | |
195 --build=BUILD configure for building on BUILD [BUILD=HOST] | |
196 --host=HOST configure for HOST [guessed] | |
197 --target=TARGET configure for TARGET [TARGET=HOST] | |
198 Features and packages: | |
199 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
200 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
201 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
202 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
203 --x-includes=DIR X include files are in DIR | |
204 --x-libraries=DIR X library files are in DIR | |
205 EOF | |
206 if test -n "$ac_help"; then | |
207 echo "--enable and --with options recognized:$ac_help" | |
208 fi | |
209 exit 0 ;; | |
210 | |
211 -host | --host | --hos | --ho) | |
212 ac_prev=host ;; | |
213 -host=* | --host=* | --hos=* | --ho=*) | |
214 host="$ac_optarg" ;; | |
215 | |
216 -includedir | --includedir | --includedi | --included | --include \ | |
217 | --includ | --inclu | --incl | --inc) | |
218 ac_prev=includedir ;; | |
219 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
220 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
221 includedir="$ac_optarg" ;; | |
222 | |
223 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
224 ac_prev=infodir ;; | |
225 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
226 infodir="$ac_optarg" ;; | |
227 | |
228 -libdir | --libdir | --libdi | --libd) | |
229 ac_prev=libdir ;; | |
230 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
231 libdir="$ac_optarg" ;; | |
232 | |
233 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
234 | --libexe | --libex | --libe) | |
235 ac_prev=libexecdir ;; | |
236 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
237 | --libexe=* | --libex=* | --libe=*) | |
238 libexecdir="$ac_optarg" ;; | |
239 | |
240 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
241 | --localstate | --localstat | --localsta | --localst \ | |
242 | --locals | --local | --loca | --loc | --lo) | |
243 ac_prev=localstatedir ;; | |
244 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
245 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
246 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
247 localstatedir="$ac_optarg" ;; | |
248 | |
249 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
250 ac_prev=mandir ;; | |
251 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
252 mandir="$ac_optarg" ;; | |
253 | |
254 -nfp | --nfp | --nf) | |
255 # Obsolete; use --without-fp. | |
256 with_fp=no ;; | |
257 | |
258 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
259 | --no-cr | --no-c) | |
260 no_create=yes ;; | |
261 | |
262 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
263 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
264 no_recursion=yes ;; | |
265 | |
266 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
267 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
268 | --oldin | --oldi | --old | --ol | --o) | |
269 ac_prev=oldincludedir ;; | |
270 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
271 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
272 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
273 oldincludedir="$ac_optarg" ;; | |
274 | |
275 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
276 ac_prev=prefix ;; | |
277 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
278 prefix="$ac_optarg" ;; | |
279 | |
280 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
281 | --program-pre | --program-pr | --program-p) | |
282 ac_prev=program_prefix ;; | |
283 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
284 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
285 program_prefix="$ac_optarg" ;; | |
286 | |
287 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
288 | --program-suf | --program-su | --program-s) | |
289 ac_prev=program_suffix ;; | |
290 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
291 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
292 program_suffix="$ac_optarg" ;; | |
293 | |
294 -program-transform-name | --program-transform-name \ | |
295 | --program-transform-nam | --program-transform-na \ | |
296 | --program-transform-n | --program-transform- \ | |
297 | --program-transform | --program-transfor \ | |
298 | --program-transfo | --program-transf \ | |
299 | --program-trans | --program-tran \ | |
300 | --progr-tra | --program-tr | --program-t) | |
301 ac_prev=program_transform_name ;; | |
302 -program-transform-name=* | --program-transform-name=* \ | |
303 | --program-transform-nam=* | --program-transform-na=* \ | |
304 | --program-transform-n=* | --program-transform-=* \ | |
305 | --program-transform=* | --program-transfor=* \ | |
306 | --program-transfo=* | --program-transf=* \ | |
307 | --program-trans=* | --program-tran=* \ | |
308 | --progr-tra=* | --program-tr=* | --program-t=*) | |
309 program_transform_name="$ac_optarg" ;; | |
310 | |
311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
312 | -silent | --silent | --silen | --sile | --sil) | |
313 silent=yes ;; | |
314 | |
315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
316 ac_prev=sbindir ;; | |
317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
318 | --sbi=* | --sb=*) | |
319 sbindir="$ac_optarg" ;; | |
320 | |
321 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
323 | --sharedst | --shareds | --shared | --share | --shar \ | |
324 | --sha | --sh) | |
325 ac_prev=sharedstatedir ;; | |
326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
329 | --sha=* | --sh=*) | |
330 sharedstatedir="$ac_optarg" ;; | |
331 | |
332 -site | --site | --sit) | |
333 ac_prev=site ;; | |
334 -site=* | --site=* | --sit=*) | |
335 site="$ac_optarg" ;; | |
336 | |
337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
338 ac_prev=srcdir ;; | |
339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
340 srcdir="$ac_optarg" ;; | |
341 | |
342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
343 | --syscon | --sysco | --sysc | --sys | --sy) | |
344 ac_prev=sysconfdir ;; | |
345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
347 sysconfdir="$ac_optarg" ;; | |
348 | |
349 -target | --target | --targe | --targ | --tar | --ta | --t) | |
350 ac_prev=target ;; | |
351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
352 target="$ac_optarg" ;; | |
353 | |
354 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
355 verbose=yes ;; | |
356 | |
357 -version | --version | --versio | --versi | --vers) | |
358 echo "configure generated by autoconf version 2.13" | |
359 exit 0 ;; | |
360 | |
361 -with-* | --with-*) | |
362 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
363 # Reject names that are not valid shell variable names. | |
364 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
366 fi | |
367 ac_package=`echo $ac_package| sed 's/-/_/g'` | |
368 case "$ac_option" in | |
369 *=*) ;; | |
370 *) ac_optarg=yes ;; | |
371 esac | |
372 eval "with_${ac_package}='$ac_optarg'" ;; | |
373 | |
374 -without-* | --without-*) | |
375 ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
376 # Reject names that are not valid shell variable names. | |
377 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
379 fi | |
380 ac_package=`echo $ac_package| sed 's/-/_/g'` | |
381 eval "with_${ac_package}=no" ;; | |
382 | |
383 --x) | |
384 # Obsolete; use --with-x. | |
385 with_x=yes ;; | |
386 | |
387 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
388 | --x-incl | --x-inc | --x-in | --x-i) | |
389 ac_prev=x_includes ;; | |
390 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
391 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
392 x_includes="$ac_optarg" ;; | |
393 | |
394 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
395 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
396 ac_prev=x_libraries ;; | |
397 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
398 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
399 x_libraries="$ac_optarg" ;; | |
400 | |
401 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
402 ;; | |
403 | |
404 *) | |
405 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
406 echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
407 fi | |
408 if test "x$nonopt" != xNONE; then | |
409 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
410 fi | |
411 nonopt="$ac_option" | |
412 ;; | |
413 | |
414 esac | |
415 done | |
416 | |
417 if test -n "$ac_prev"; then | |
418 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
419 fi | |
420 | |
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
422 | |
423 # File descriptor usage: | |
424 # 0 standard input | |
425 # 1 file creation | |
426 # 2 errors and warnings | |
427 # 3 some systems may open it to /dev/tty | |
428 # 4 used on the Kubota Titan | |
429 # 6 checking for... messages and results | |
430 # 5 compiler messages saved in config.log | |
431 if test "$silent" = yes; then | |
432 exec 6>/dev/null | |
433 else | |
434 exec 6>&1 | |
435 fi | |
436 exec 5>./config.log | |
437 | |
438 echo "\ | |
439 This file contains any messages produced by compilers while | |
440 running configure, to aid debugging if configure makes a mistake. | |
441 " 1>&5 | |
442 | |
443 # Strip out --no-create and --no-recursion so they do not pile up. | |
444 # Also quote any args containing shell metacharacters. | |
445 ac_configure_args= | |
446 for ac_arg | |
447 do | |
448 case "$ac_arg" in | |
449 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
450 | --no-cr | --no-c) ;; | |
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
454 ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
455 *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
456 esac | |
457 done | |
458 | |
459 # NLS nuisances. | |
460 # Only set these to C if already set. These must not be set unconditionally | |
461 # because not all systems understand e.g. LANG=C (notably SCO). | |
462 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
463 # Non-C LC_CTYPE values break the ctype check. | |
464 if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
465 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
466 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
467 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
468 | |
469 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
470 rm -rf conftest* confdefs.h | |
471 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
472 echo > confdefs.h | |
473 | |
474 # A filename unique to this package, relative to the directory that | |
475 # configure is in, which we can look for to find out if srcdir is correct. | |
476 ac_unique_file=src/lisp.h | |
477 | |
478 # Find the source files, if location was not specified. | |
479 if test -z "$srcdir"; then | |
480 ac_srcdir_defaulted=yes | |
481 # Try the directory containing this script, then its parent. | |
482 ac_prog=$0 | |
483 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
484 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
485 srcdir=$ac_confdir | |
486 if test ! -r $srcdir/$ac_unique_file; then | |
487 srcdir=.. | |
488 fi | |
489 else | |
490 ac_srcdir_defaulted=no | |
491 fi | |
492 if test ! -r $srcdir/$ac_unique_file; then | |
493 if test "$ac_srcdir_defaulted" = yes; then | |
494 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
495 else | |
496 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
497 fi | |
498 fi | |
499 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
500 | |
501 # Prefer explicitly selected file to automatically selected ones. | |
502 if test -z "$CONFIG_SITE"; then | |
503 if test "x$prefix" != xNONE; then | |
504 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
505 else | |
506 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
507 fi | |
508 fi | |
509 for ac_site_file in $CONFIG_SITE; do | |
510 if test -r "$ac_site_file"; then | |
511 echo "loading site script $ac_site_file" | |
512 . "$ac_site_file" | |
513 fi | |
514 done | |
515 | |
516 if test -r "$cache_file"; then | |
517 echo "loading cache $cache_file" | |
518 . $cache_file | |
519 else | |
520 echo "creating cache $cache_file" | |
521 > $cache_file | |
522 fi | |
523 | |
524 ac_ext=c | |
525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
526 ac_cpp='$CPP $CPPFLAGS' | |
527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
529 cross_compiling=$ac_cv_prog_cc_cross | |
530 | |
531 ac_exeext= | |
532 ac_objext=o | |
533 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
534 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
535 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
536 ac_n= ac_c=' | |
537 ' ac_t=' ' | |
538 else | |
539 ac_n=-n ac_c= ac_t= | |
540 fi | |
541 else | |
542 ac_n= ac_c='\c' ac_t= | |
543 fi | |
544 | |
545 | |
546 | |
547 | |
548 lispdir='${datadir}/emacs/${version}/lisp' | |
549 locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
550 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
551 lisppath='${locallisppath}:${lispdir}' | |
552 etcdir='${datadir}/emacs/${version}/etc' | |
553 archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
554 docdir='${datadir}/emacs/${version}/etc' | |
555 | |
556 # Check whether --with-gcc or --without-gcc was given. | |
557 if test "${with_gcc+set}" = set; then | |
558 withval="$with_gcc" | |
559 : | |
560 fi | |
561 | |
562 # Check whether --with-pop or --without-pop was given. | |
563 if test "${with_pop+set}" = set; then | |
564 withval="$with_pop" | |
25994 | 565 if test "$withval" = yes; then |
566 cat >> confdefs.h <<\EOF | |
25897 | 567 #define MAIL_USE_POP 1 |
568 EOF | |
569 | |
25994 | 570 else : |
571 fi | |
25897 | 572 fi |
573 | |
574 # Check whether --with-hesiod or --without-hesiod was given. | |
575 if test "${with_hesiod+set}" = set; then | |
576 withval="$with_hesiod" | |
577 cat >> confdefs.h <<\EOF | |
578 #define HESIOD 1 | |
579 EOF | |
580 | |
581 fi | |
582 | |
583 # Check whether --with-x-toolkit or --without-x-toolkit was given. | |
584 if test "${with_x_toolkit+set}" = set; then | |
585 withval="$with_x_toolkit" | |
586 case "${withval}" in | |
587 y | ye | yes ) val=athena ;; | |
588 n | no ) val=no ;; | |
589 l | lu | luc | luci | lucid ) val=lucid ;; | |
590 a | at | ath | athe | athen | athena ) val=athena ;; | |
591 m | mo | mot | moti | motif ) val=motif ;; | |
592 * ) | |
593 { echo "configure: error: \`--with-x-toolkit=$withval' is invalid\; | |
594 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | |
595 Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; } | |
596 ;; | |
597 esac | |
598 with_x_toolkit=$val | |
599 | |
600 fi | |
601 | |
602 # Check whether --with-xpm or --without-xpm was given. | |
603 if test "${with_xpm+set}" = set; then | |
604 withval="$with_xpm" | |
605 : | |
606 fi | |
607 | |
608 # Check whether --with-jpeg or --without-jpeg was given. | |
609 if test "${with_jpeg+set}" = set; then | |
610 withval="$with_jpeg" | |
611 : | |
612 fi | |
613 | |
614 # Check whether --with-tiff or --without-tiff was given. | |
615 if test "${with_tiff+set}" = set; then | |
616 withval="$with_tiff" | |
617 : | |
618 fi | |
619 | |
620 # Check whether --with-gif or --without-gif was given. | |
621 if test "${with_gif+set}" = set; then | |
622 withval="$with_gif" | |
623 : | |
624 fi | |
625 | |
626 # Check whether --with-png or --without-png was given. | |
627 if test "${with_png+set}" = set; then | |
628 withval="$with_png" | |
629 : | |
630 fi | |
631 | |
632 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. | |
633 if test "${with_toolkit_scroll_bars+set}" = set; then | |
634 withval="$with_toolkit_scroll_bars" | |
635 : | |
636 fi | |
637 | |
638 | |
639 #### Make srcdir absolute, if it isn't already. It's important to | |
640 #### avoid running the path through pwd unnecessary, since pwd can | |
641 #### give you automounter prefixes, which can go away. We do all this | |
642 #### so Emacs can find its files when run uninstalled. | |
643 case "${srcdir}" in | |
644 /* ) ;; | |
645 . ) | |
646 ## We may be able to use the $PWD environment variable to make this | |
647 ## absolute. But sometimes PWD is inaccurate. | |
648 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). | |
649 unset CDPATH | |
650 if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ; | |
651 then | |
652 srcdir="$PWD" | |
653 else | |
654 srcdir="`(cd ${srcdir}; pwd)`" | |
655 fi | |
656 ;; | |
657 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
658 esac | |
659 | |
660 #### Check if the source directory already has a configured system in it. | |
661 if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
662 && test -f "${srcdir}/src/config.h" ; then | |
663 echo "configure: warning: The directory tree \`${srcdir}' is being used | |
664 as a build directory right now; it has been configured in its own | |
665 right. To configure in another directory as well, you MUST | |
666 use GNU make. If you do not have GNU make, then you must | |
667 now do \`make distclean' in ${srcdir}, | |
668 and then run $0 again." 1>&2 | |
669 | |
670 extrasub='/^VPATH[ ]*=/c\ | |
671 vpath %.c $(srcdir)\ | |
672 vpath %.h $(srcdir)\ | |
673 vpath %.y $(srcdir)\ | |
674 vpath %.l $(srcdir)\ | |
675 vpath %.s $(srcdir)\ | |
676 vpath %.in $(srcdir)\ | |
677 vpath %.texi $(srcdir)' | |
678 fi | |
679 | |
680 #### Given the configuration name, set machfile and opsysfile to the | |
681 #### names of the m/*.h and s/*.h files we should use. | |
682 | |
683 ### Canonicalize the configuration name. | |
684 | |
685 ac_aux_dir= | |
686 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
687 if test -f $ac_dir/install-sh; then | |
688 ac_aux_dir=$ac_dir | |
689 ac_install_sh="$ac_aux_dir/install-sh -c" | |
690 break | |
691 elif test -f $ac_dir/install.sh; then | |
692 ac_aux_dir=$ac_dir | |
693 ac_install_sh="$ac_aux_dir/install.sh -c" | |
694 break | |
695 fi | |
696 done | |
697 if test -z "$ac_aux_dir"; then | |
698 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
699 fi | |
700 ac_config_guess=$ac_aux_dir/config.guess | |
701 ac_config_sub=$ac_aux_dir/config.sub | |
702 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703 | |
704 | |
705 # Make sure we can run config.sub. | |
706 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
707 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
708 fi | |
709 | |
710 echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
25994 | 711 echo "configure:712: checking host system type" >&5 |
25897 | 712 |
713 host_alias=$host | |
714 case "$host_alias" in | |
715 NONE) | |
716 case $nonopt in | |
717 NONE) | |
718 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
719 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
720 fi ;; | |
721 *) host_alias=$nonopt ;; | |
722 esac ;; | |
723 esac | |
724 | |
725 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
726 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
727 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
728 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
729 echo "$ac_t""$host" 1>&6 | |
730 | |
731 canonical=$host | |
732 configuration=$host_alias | |
733 | |
734 | |
735 ### If you add support for a new configuration, add code to this | |
736 ### switch statement to recognize your configuration name and select | |
737 ### the appropriate operating system and machine description files. | |
738 | |
739 ### You would hope that you could choose an m/*.h file pretty much | |
740 ### based on the machine portion of the configuration name, and an s- | |
741 ### file based on the operating system portion. However, it turns out | |
742 ### that each m/*.h file is pretty manufacturer-specific - for | |
743 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
744 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
745 ### machines. So we basically have to have a special case for each | |
746 ### configuration name. | |
747 ### | |
748 ### As far as handling version numbers on operating systems is | |
749 ### concerned, make sure things will fail in a fixable way. If | |
750 ### /etc/MACHINES doesn't say anything about version numbers, be | |
751 ### prepared to handle anything reasonably. If version numbers | |
752 ### matter, be sure /etc/MACHINES says something about it. | |
753 ### | |
754 ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
755 ### "System V Release 4"; he writes, "The old convention encouraged | |
756 ### confusion between `system' and `release' levels'." | |
757 | |
758 machine='' opsys='' unported=no | |
759 case "${canonical}" in | |
760 | |
761 ## NetBSD ports | |
762 *-*-netbsd* ) | |
763 opsys=netbsd | |
764 case "${canonical}" in | |
765 alpha*-*-netbsd*) machine=alpha ;; | |
766 i[3456]86-*-netbsd*) machine=intel386 ;; | |
767 m68k-*-netbsd*) | |
768 # This is somewhat bogus. | |
769 machine=hp9000s300 ;; | |
770 powerpc-apple-netbsd*) machine=macppc ;; | |
771 mips-*-netbsd*) machine=pmax ;; | |
772 ns32k-*-netbsd*) machine=ns32000 ;; | |
773 sparc-*-netbsd*) machine=sparc ;; | |
774 vax-*-netbsd*) machine=vax ;; | |
775 esac | |
776 ;; | |
777 | |
778 ## OpenBSD ports | |
779 *-*-openbsd* ) | |
780 opsys=openbsd | |
781 case "${canonical}" in | |
782 alpha*-*-openbsd*) machine=alpha ;; | |
783 i386-*-openbsd*) machine=intel386 ;; | |
784 m68k-*-openbsd*) machine=hp9000s300 ;; | |
785 mipsel-*-openbsd*) machine=pmax ;; | |
786 ns32k-*-openbsd*) machine=ns32000 ;; | |
787 sparc-*-openbsd*) machine=sparc ;; | |
788 vax-*-openbsd*) machine=vax ;; | |
789 esac | |
790 ;; | |
791 | |
792 ## Acorn RISCiX: | |
793 arm-acorn-riscix1.1* ) | |
794 machine=acorn opsys=riscix1-1 | |
795 ;; | |
796 arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
797 ## This name is riscix12 instead of riscix1.2 | |
798 ## to avoid a file name conflict on MSDOS. | |
799 machine=acorn opsys=riscix12 | |
800 ;; | |
801 | |
802 ## BSDI ports | |
803 *-*-bsdi* ) | |
804 opsys=bsdi | |
805 case "${canonical}" in | |
806 i[345]86-*-bsdi*) machine=intel386 ;; | |
807 sparc-*-bsdi*) machine=sparc ;; | |
808 powerpc-*-bsdi*) machine=powerpc ;; | |
809 esac | |
810 case "${canonical}" in | |
811 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
812 *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
813 *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
814 *-*-bsdi3* ) opsys=bsdos3 ;; | |
815 *-*-bsdi4* ) opsys=bsdos4 ;; | |
816 esac | |
817 ;; | |
818 | |
819 ## Alliant machines | |
820 ## Strictly speaking, we need the version of the alliant operating | |
821 ## system to choose the right machine file, but currently the | |
822 ## configuration name doesn't tell us enough to choose the right | |
823 ## one; we need to give alliants their own operating system name to | |
824 ## do this right. When someone cares, they can help us. | |
825 fx80-alliant-* ) | |
826 machine=alliant4 opsys=bsd4-2 | |
827 ;; | |
828 i860-alliant-* ) | |
829 machine=alliant-2800 opsys=bsd4-3 | |
830 ;; | |
831 | |
832 ## Alpha (DEC) machines. | |
833 alpha*-dec-osf* ) | |
834 machine=alpha opsys=osf1 | |
835 # This is needed to find X11R6.1 libraries for certain tests. | |
836 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
837 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
838 ;; | |
839 | |
840 alpha*-*-linux-gnu* ) | |
841 machine=alpha opsys=gnu-linux | |
842 ;; | |
843 | |
844 ## Altos 3068 | |
845 m68*-altos-sysv* ) | |
846 machine=altos opsys=usg5-2 | |
847 ;; | |
848 | |
849 ## Amdahl UTS | |
850 580-amdahl-sysv* ) | |
851 machine=amdahl opsys=usg5-2-2 | |
852 ;; | |
853 | |
854 ## Apollo, Domain/OS | |
855 m68*-apollo-* ) | |
856 machine=apollo opsys=bsd4-3 | |
857 ;; | |
858 | |
859 ## AT&T 3b2, 3b5, 3b15, 3b20 | |
860 we32k-att-sysv* ) | |
861 machine=att3b opsys=usg5-2-2 | |
862 ;; | |
863 | |
864 ## AT&T 3b1 - The Mighty Unix PC! | |
865 m68*-att-sysv* ) | |
866 machine=7300 opsys=usg5-2-2 | |
867 ;; | |
868 | |
869 ## Bull dpx20 | |
870 rs6000-bull-bosx* ) | |
871 machine=ibmrs6000 opsys=aix3-2 | |
872 ;; | |
873 | |
874 ## Bull dpx2 | |
875 m68*-bull-sysv3* ) | |
876 machine=dpx2 opsys=usg5-3 | |
877 ;; | |
878 | |
879 ## Bull sps7 | |
880 m68*-bull-sysv2* ) | |
881 machine=sps7 opsys=usg5-2 | |
882 ;; | |
883 | |
884 ## CCI 5/32, 6/32 -- see "Tahoe". | |
885 | |
886 ## Celerity | |
887 ## I don't know what configuration name to use for this; config.sub | |
888 ## doesn't seem to know anything about it. Hey, Celerity users, get | |
889 ## in touch with us! | |
890 celerity-celerity-bsd* ) | |
891 machine=celerity opsys=bsd4-2 | |
892 ;; | |
893 | |
894 ## Clipper | |
895 ## What operating systems does this chip run that Emacs has been | |
896 ## tested on? | |
897 clipper-* ) | |
898 machine=clipper | |
899 ## We'll use the catch-all code at the bottom to guess the | |
900 ## operating system. | |
901 ;; | |
902 | |
903 ## Convex | |
904 *-convex-bsd* | *-convex-convexos* ) | |
905 machine=convex opsys=bsd4-3 | |
906 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
907 NON_GNU_CPP="cc -E -P" | |
908 ;; | |
909 | |
910 ## Cubix QBx/386 | |
911 i[3456]86-cubix-sysv* ) | |
912 machine=intel386 opsys=usg5-3 | |
913 ;; | |
914 | |
915 ## Cydra 5 | |
916 cydra*-cydrome-sysv* ) | |
917 machine=cydra5 opsys=usg5-3 | |
918 ;; | |
919 | |
920 ## Data General AViiON Machines | |
921 ## DG changed naming conventions with the release of 5.4.4.10, they | |
922 ## dropped the initial 5.4 but left the intervening R. Because of the | |
923 ## R this shouldn't conflict with older versions of the OS (which I | |
924 ## think were named like dgux4.*). In addition, DG new AViiONs series | |
925 ## uses either Motorola M88k or Intel Pentium CPUs. | |
926 m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
927 machine=aviion opsys=dgux4 | |
928 ;; | |
929 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
930 ## This name is dgux5-4-3 instead of dgux5-4r3 | |
931 ## to avoid a file name conflict on MSDOS. | |
932 machine=aviion opsys=dgux5-4-3 | |
933 ;; | |
934 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
935 machine=aviion opsys=dgux5-4r2 | |
936 ;; | |
937 m88k-dg-dgux* ) | |
938 machine=aviion opsys=dgux | |
939 ;; | |
940 | |
941 ## Data General AViiON Intel (x86) Machines | |
942 ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
943 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
944 i[345]86-dg-dguxR4* ) | |
945 machine=aviion-intel opsys=dgux4 | |
946 ;; | |
947 | |
948 ## DECstations | |
949 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
950 machine=pmax opsys=bsd4-2 | |
951 ;; | |
952 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
953 machine=pmax opsys=bsd4-3 | |
954 ;; | |
955 mips-dec-ultrix* ) | |
956 machine=pmax opsys=ultrix4-3 | |
957 ;; | |
958 mips-dec-osf* ) | |
959 machine=pmax opsys=osf1 | |
960 ;; | |
961 mips-dec-mach_bsd4.3* ) | |
962 machine=pmax opsys=mach-bsd4-3 | |
963 ;; | |
964 | |
965 ## Motorola Delta machines | |
966 m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
967 machine=delta opsys=usg5-3 | |
968 if test -z "`type gnucc | grep 'not found'`" | |
969 then | |
970 if test -s /etc/167config | |
971 then CC="gnucc -m68040" | |
972 else CC="gnucc -m68881" | |
973 fi | |
974 else | |
975 if test -z "`type gcc | grep 'not found'`" | |
976 then CC=gcc | |
977 else CC=cc | |
978 fi | |
979 fi | |
980 ;; | |
981 m88k-motorola-sysv4* ) | |
982 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
983 # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
984 # I hope there are not other 4.0 versions for this machine | |
985 # which really need usg5-4 instead. | |
986 machine=delta88k opsys=usg5-4-2 | |
987 ;; | |
988 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
989 machine=delta88k opsys=usg5-3 | |
990 ;; | |
991 | |
992 ## Dual machines | |
993 m68*-dual-sysv* ) | |
994 machine=dual opsys=usg5-2 | |
995 ;; | |
996 m68*-dual-uniplus* ) | |
997 machine=dual opsys=unipl5-2 | |
998 ;; | |
999 | |
1000 ## Elxsi 6400 | |
1001 elxsi-elxsi-sysv* ) | |
1002 machine=elxsi opsys=usg5-2 | |
1003 ;; | |
1004 | |
1005 ## Encore machines | |
1006 ns16k-encore-bsd* ) | |
1007 machine=ns16000 opsys=umax | |
1008 ;; | |
1009 | |
1010 ## The GEC 93 - apparently, this port isn't really finished yet. | |
1011 | |
1012 ## Gould Power Node and NP1 | |
1013 pn-gould-bsd4.2* ) | |
1014 machine=gould opsys=bsd4-2 | |
1015 ;; | |
1016 pn-gould-bsd4.3* ) | |
1017 machine=gould opsys=bsd4-3 | |
1018 ;; | |
1019 np1-gould-bsd* ) | |
1020 machine=gould-np1 opsys=bsd4-3 | |
1021 ;; | |
1022 | |
1023 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
1024 ## as far as Emacs is concerned). | |
1025 m88k-harris-cxux* ) | |
1026 # Build needs to be different on 7.0 and later releases | |
1027 case "`uname -r`" in | |
1028 [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
1029 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
1030 esac | |
1031 NON_GNU_CPP="/lib/cpp" | |
1032 ;; | |
1033 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
1034 m68k-harris-cxux* ) | |
1035 machine=nh3000 opsys=cxux | |
1036 ;; | |
1037 ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
1038 powerpc-harris-powerunix ) | |
1039 machine=nh6000 opsys=powerunix | |
1040 NON_GNU_CPP="cc -Xo -E -P" | |
1041 ;; | |
1042 ## SR2001/SR2201 running HI-UX/MPP | |
1043 hppa1.1-hitachi-hiuxmpp* ) | |
1044 machine=sr2k opsys=hiuxmpp | |
1045 ;; | |
1046 ## Honeywell XPS100 | |
1047 xps*-honeywell-sysv* ) | |
1048 machine=xps100 opsys=usg5-2 | |
1049 ;; | |
1050 | |
1051 ## HP 9000 series 200 or 300 | |
1052 m68*-hp-bsd* ) | |
1053 machine=hp9000s300 opsys=bsd4-3 | |
1054 ;; | |
1055 ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
1056 m68*-hp-hpux* ) | |
1057 case "`uname -r`" in | |
1058 ## Someone's system reports A.B8.05 for this. | |
1059 ## I wonder what other possibilities there are. | |
1060 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1061 *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1062 *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
1063 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
1064 *) machine=hp9000s300 opsys=hpux ;; | |
1065 esac | |
1066 ;; | |
1067 | |
1068 ## HP 9000 series 700 and 800, running HP/UX | |
1069 hppa*-hp-hpux7* ) | |
1070 machine=hp800 opsys=hpux | |
1071 ;; | |
1072 hppa*-hp-hpux8* ) | |
1073 machine=hp800 opsys=hpux8 | |
1074 ;; | |
1075 hppa*-hp-hpux9shr* ) | |
1076 machine=hp800 opsys=hpux9shr | |
1077 ;; | |
1078 hppa*-hp-hpux9* ) | |
1079 machine=hp800 opsys=hpux9 | |
1080 ;; | |
1081 hppa*-hp-hpux1[0-9]* ) | |
1082 machine=hp800 opsys=hpux10 | |
1083 ;; | |
1084 | |
1085 ## HP 9000 series 700 and 800, running HP/UX | |
1086 hppa*-hp-hpux* ) | |
1087 ## Cross-compilation? Nah! | |
1088 case "`uname -r`" in | |
1089 ## Someone's system reports A.B8.05 for this. | |
1090 ## I wonder what other possibilities there are. | |
1091 *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
1092 *.08.* ) machine=hp800 opsys=hpux8 ;; | |
1093 *.09.* ) machine=hp800 opsys=hpux9 ;; | |
1094 *) machine=hp800 opsys=hpux10 ;; | |
1095 esac | |
1096 ;; | |
1097 hppa*-*-nextstep* ) | |
1098 machine=hp800 opsys=nextstep | |
1099 ;; | |
1100 | |
1101 ## Orion machines | |
1102 orion-orion-bsd* ) | |
1103 machine=orion opsys=bsd4-2 | |
1104 ;; | |
1105 clipper-orion-bsd* ) | |
1106 machine=orion105 opsys=bsd4-2 | |
1107 ;; | |
1108 | |
1109 ## IBM machines | |
1110 i[3456]86-ibm-aix1.1* ) | |
1111 machine=ibmps2-aix opsys=usg5-2-2 | |
1112 ;; | |
1113 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
1114 machine=ibmps2-aix opsys=usg5-3 | |
1115 ;; | |
1116 i370-ibm-aix*) | |
1117 machine=ibm370aix opsys=usg5-3 | |
1118 ;; | |
1119 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) | |
1120 machine=ibmrs6000 opsys=aix3-1 | |
1121 ;; | |
1122 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
1123 machine=ibmrs6000 opsys=aix3-2-5 | |
1124 ;; | |
1125 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
1126 machine=ibmrs6000 opsys=aix4-1 | |
1127 ;; | |
1128 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
1129 machine=ibmrs6000 opsys=aix4-2 | |
1130 ;; | |
1131 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) | |
1132 machine=ibmrs6000 opsys=aix4 | |
1133 ;; | |
1134 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
1135 machine=ibmrs6000 opsys=aix4-1 | |
1136 ;; | |
1137 rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
1138 machine=ibmrs6000 opsys=aix3-2 | |
1139 ;; | |
1140 romp-ibm-bsd4.3* ) | |
1141 machine=ibmrt opsys=bsd4-3 | |
1142 ;; | |
1143 romp-ibm-bsd4.2* ) | |
1144 machine=ibmrt opsys=bsd4-2 | |
1145 ;; | |
1146 romp-ibm-aos4.3* ) | |
1147 machine=ibmrt opsys=bsd4-3 | |
1148 ;; | |
1149 romp-ibm-aos4.2* ) | |
1150 machine=ibmrt opsys=bsd4-2 | |
1151 ;; | |
1152 romp-ibm-aos* ) | |
1153 machine=ibmrt opsys=bsd4-3 | |
1154 ;; | |
1155 romp-ibm-bsd* ) | |
1156 machine=ibmrt opsys=bsd4-3 | |
1157 ;; | |
1158 romp-ibm-aix* ) | |
1159 machine=ibmrt-aix opsys=usg5-2-2 | |
1160 ;; | |
1161 | |
1162 ## Integrated Solutions `Optimum V' | |
1163 m68*-isi-bsd4.2* ) | |
1164 machine=isi-ov opsys=bsd4-2 | |
1165 ;; | |
1166 m68*-isi-bsd4.3* ) | |
1167 machine=isi-ov opsys=bsd4-3 | |
1168 ;; | |
1169 | |
1170 ## Intel 386 machines where we do care about the manufacturer | |
1171 i[3456]86-intsys-sysv* ) | |
1172 machine=is386 opsys=usg5-2-2 | |
1173 ;; | |
1174 | |
1175 ## Prime EXL | |
1176 i[3456]86-prime-sysv* ) | |
1177 machine=i386 opsys=usg5-3 | |
1178 ;; | |
1179 | |
1180 ## Sequent Symmetry running Dynix | |
1181 i[3456]86-sequent-bsd* ) | |
1182 machine=symmetry opsys=bsd4-3 | |
1183 ;; | |
1184 | |
1185 ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
1186 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
1187 machine=sequent-ptx opsys=ptx4 | |
1188 NON_GNU_CPP=/lib/cpp | |
1189 ;; | |
1190 | |
1191 ## Sequent Symmetry running DYNIX/ptx | |
1192 ## Use the old cpp rather than the newer ANSI one. | |
1193 i[3456]86-sequent-ptx* ) | |
1194 machine=sequent-ptx opsys=ptx | |
1195 NON_GNU_CPP="/lib/cpp" | |
1196 ;; | |
1197 | |
1198 ## ncr machine running svr4.3. | |
1199 i[3456]86-ncr-sysv4.3 ) | |
1200 machine=ncr386 opsys=usg5-4-3 | |
1201 ;; | |
1202 | |
1203 ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
1204 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
1205 i[3456]86-ncr-sysv* ) | |
1206 machine=ncr386 opsys=usg5-4-2 | |
1207 ;; | |
1208 | |
1209 ## Intel Paragon OSF/1 | |
1210 i860-intel-osf1* ) | |
1211 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
1212 ;; | |
1213 | |
1214 ## Intel 860 | |
1215 i860-*-sysv4* ) | |
1216 machine=i860 opsys=usg5-4 | |
1217 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
1218 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
1219 ;; | |
1220 | |
1221 ## Masscomp machines | |
1222 m68*-masscomp-rtu* ) | |
1223 machine=masscomp opsys=rtu | |
1224 ;; | |
1225 | |
1226 ## Megatest machines | |
1227 m68*-megatest-bsd* ) | |
1228 machine=mega68 opsys=bsd4-2 | |
1229 ;; | |
1230 | |
1231 ## Workstations sold by MIPS | |
1232 ## This is not necessarily all workstations using the MIPS processor - | |
1233 ## Irises are produced by SGI, and DECstations by DEC. | |
1234 | |
1235 ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
1236 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
1237 ## it gives for choosing between the alternatives seems to be "Use | |
1238 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
1239 ## the BSD world." I'll assume that these are instructions for | |
1240 ## handling two odd situations, and that every other situation | |
1241 ## should use mips.h and usg5-2-2, they being listed first. | |
1242 mips-mips-usg* ) | |
1243 machine=mips4 | |
1244 ## Fall through to the general code at the bottom to decide on the OS. | |
1245 ;; | |
1246 mips-mips-riscos4* ) | |
1247 machine=mips4 opsys=bsd4-3 | |
1248 NON_GNU_CC="cc -systype bsd43" | |
1249 NON_GNU_CPP="cc -systype bsd43 -E" | |
1250 ;; | |
1251 mips-mips-riscos5* ) | |
1252 machine=mips4 opsys=riscos5 | |
1253 NON_GNU_CC="cc -systype bsd43" | |
1254 NON_GNU_CPP="cc -systype bsd43 -E" | |
1255 ;; | |
1256 mips-mips-bsd* ) | |
1257 machine=mips opsys=bsd4-3 | |
1258 ;; | |
1259 mips-mips-* ) | |
1260 machine=mips opsys=usg5-2-2 | |
1261 ;; | |
1262 | |
1263 ## NeXT | |
1264 m68*-next-* | m68k-*-nextstep* ) | |
1265 machine=m68k opsys=nextstep | |
1266 ;; | |
1267 | |
1268 ## The complete machine from National Semiconductor | |
1269 ns32k-ns-genix* ) | |
1270 machine=ns32000 opsys=usg5-2 | |
1271 ;; | |
1272 | |
1273 ## NCR machines | |
1274 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
1275 machine=tower32 opsys=usg5-2-2 | |
1276 ;; | |
1277 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
1278 machine=tower32v3 opsys=usg5-3 | |
1279 ;; | |
1280 | |
1281 ## NEC EWS4800 | |
1282 mips-nec-sysv4*) | |
1283 machine=ews4800 opsys=ux4800 | |
1284 ;; | |
1285 | |
1286 ## Nixdorf Targon 31 | |
1287 m68*-nixdorf-sysv* ) | |
1288 machine=targon31 opsys=usg5-2-2 | |
1289 ;; | |
1290 | |
1291 ## Nu (TI or LMI) | |
1292 m68*-nu-sysv* ) | |
1293 machine=nu opsys=usg5-2 | |
1294 ;; | |
1295 | |
1296 ## Plexus | |
1297 m68*-plexus-sysv* ) | |
1298 machine=plexus opsys=usg5-2 | |
1299 ;; | |
1300 | |
1301 ## PowerPC reference platform | |
1302 powerpcle-*-solaris2* ) | |
1303 machine=prep | |
1304 opsys=sol2-5 | |
1305 ;; | |
1306 | |
1307 ## Pyramid machines | |
1308 ## I don't really have any idea what sort of processor the Pyramid has, | |
1309 ## so I'm assuming it is its own architecture. | |
1310 pyramid-pyramid-bsd* ) | |
1311 machine=pyramid opsys=bsd4-2 | |
1312 ;; | |
1313 | |
1314 ## Sequent Balance | |
1315 ns32k-sequent-bsd4.2* ) | |
1316 machine=sequent opsys=bsd4-2 | |
1317 ;; | |
1318 ns32k-sequent-bsd4.3* ) | |
1319 machine=sequent opsys=bsd4-3 | |
1320 ;; | |
1321 | |
1322 ## Siemens Nixdorf | |
1323 mips-siemens-sysv* | mips-sni-sysv*) | |
1324 machine=mips-siemens opsys=usg5-4 | |
1325 NON_GNU_CC=/usr/ccs/bin/cc | |
1326 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1327 ;; | |
1328 | |
1329 ## Silicon Graphics machines | |
1330 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
1331 m68*-sgi-iris3.5* ) | |
1332 machine=irist opsys=iris3-5 | |
1333 ;; | |
1334 m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
1335 machine=irist opsys=iris3-6 | |
1336 ;; | |
1337 ## Iris 4D | |
1338 mips-sgi-irix3* ) | |
1339 machine=iris4d opsys=irix3-3 | |
1340 ;; | |
1341 mips-sgi-irix4* ) | |
1342 machine=iris4d opsys=irix4-0 | |
1343 ;; | |
1344 mips-sgi-irix6.5 ) | |
1345 machine=iris4d opsys=irix6-5 | |
1346 NON_GNU_CPP=/lib/cpp | |
1347 NON_GCC_TEST_OPTIONS="-n32 -G0" | |
1348 ;; | |
1349 mips-sgi-irix6* ) | |
1350 machine=iris4d opsys=irix6-0 | |
1351 NON_GNU_CPP=/lib/cpp | |
1352 NON_GCC_TEST_OPTIONS=-32 | |
1353 ;; | |
1354 mips-sgi-irix5.[01]* ) | |
1355 machine=iris4d opsys=irix5-0 | |
1356 ;; | |
1357 mips-sgi-irix5* | mips-sgi-irix* ) | |
1358 machine=iris4d opsys=irix5-2 | |
1359 ;; | |
1360 | |
1361 ## SONY machines | |
1362 m68*-sony-bsd4.2* ) | |
1363 machine=news opsys=bsd4-2 | |
1364 ;; | |
1365 m68*-sony-bsd4.3* ) | |
1366 machine=news opsys=bsd4-3 | |
1367 ;; | |
1368 m68*-sony-newsos3* | m68*-sony-news3*) | |
1369 machine=news opsys=bsd4-3 | |
1370 ;; | |
1371 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
1372 machine=news-risc opsys=bsd4-3 | |
1373 ;; | |
1374 mips-sony-newsos6* ) | |
1375 machine=news-r6 opsys=newsos6 | |
1376 ;; | |
1377 mips-sony-news* ) | |
1378 machine=news-risc opsys=newsos5 | |
1379 ;; | |
1380 | |
1381 ## Stride | |
1382 m68*-stride-sysv* ) | |
1383 machine=stride opsys=usg5-2 | |
1384 ;; | |
1385 | |
1386 ## Suns | |
1387 sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
1388 machine=sparc opsys=gnu-linux | |
1389 ;; | |
1390 | |
1391 *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ | |
1392 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ | |
1393 | rs6000-*-solaris2*) | |
1394 case "${canonical}" in | |
1395 m68*-sunos1* ) machine=sun1 ;; | |
1396 m68*-sunos2* ) machine=sun2 ;; | |
1397 m68* ) machine=sun3 ;; | |
1398 i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
1399 i[3456]86-*-* ) machine=intel386 ;; | |
1400 powerpcle* ) machine=powerpcle ;; | |
1401 powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
1402 sparc* ) machine=sparc ;; | |
1403 * ) unported=yes ;; | |
1404 esac | |
1405 case "${canonical}" in | |
1406 ## The Sun386 didn't get past 4.0. | |
1407 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
1408 *-sunos4.0* ) opsys=sunos4-0 ;; | |
1409 *-sunos4.1.[3-9]*noshare ) | |
1410 ## This name is sunos413 instead of sunos4-1-3 | |
1411 ## to avoid a file name conflict on MSDOS. | |
1412 opsys=sunos413 | |
1413 NON_GNU_CPP=/usr/lib/cpp | |
1414 NON_GCC_TEST_OPTIONS=-Bstatic | |
1415 GCC_TEST_OPTIONS=-static | |
1416 ;; | |
1417 *-sunos4.1.[3-9]* | *-sunos4shr*) | |
1418 opsys=sunos4shr | |
1419 NON_GNU_CPP=/usr/lib/cpp | |
1420 ;; | |
1421 *-sunos4* | *-sunos ) | |
1422 opsys=sunos4-1 | |
1423 NON_GCC_TEST_OPTIONS=-Bstatic | |
1424 GCC_TEST_OPTIONS=-static | |
1425 ;; | |
1426 *-sunos5.3* | *-solaris2.3* ) | |
1427 opsys=sol2-3 | |
1428 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1429 ;; | |
1430 *-sunos5.4* | *-solaris2.4* ) | |
1431 opsys=sol2-4 | |
1432 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1433 RANLIB="ar -ts" | |
1434 ;; | |
1435 *-sunos5.5* | *-solaris2.5* ) | |
1436 opsys=sol2-5 | |
1437 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1438 RANLIB="ar -ts" | |
1439 ;; | |
1440 *-sunos5* | *-solaris* ) | |
1441 opsys=sol2-5 | |
1442 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1443 ;; | |
1444 * ) opsys=bsd4-2 ;; | |
1445 esac | |
1446 ## Watch out for a compiler that we know will not work. | |
1447 case "${canonical}" in | |
1448 *-solaris* | *-sunos5* ) | |
1449 if [ "x$CC" = x/usr/ucb/cc ]; then | |
1450 ## /usr/ucb/cc doesn't work; | |
1451 ## we should find some other compiler that does work. | |
1452 unset CC | |
1453 fi | |
1454 ;; | |
1455 *) ;; | |
1456 esac | |
1457 ;; | |
1458 sparc-*-nextstep* ) | |
1459 machine=sparc opsys=nextstep | |
1460 ;; | |
1461 | |
1462 ## Tadpole 68k | |
1463 m68*-tadpole-sysv* ) | |
1464 machine=tad68k opsys=usg5-3 | |
1465 ;; | |
1466 | |
1467 ## Tahoe machines | |
1468 tahoe-tahoe-bsd4.2* ) | |
1469 machine=tahoe opsys=bsd4-2 | |
1470 ;; | |
1471 tahoe-tahoe-bsd4.3* ) | |
1472 machine=tahoe opsys=bsd4-3 | |
1473 ;; | |
1474 | |
1475 ## Tandem Integrity S2 | |
1476 mips-tandem-sysv* ) | |
1477 machine=tandem-s2 opsys=usg5-3 | |
1478 ;; | |
1479 | |
1480 ## Tektronix XD88 | |
1481 m88k-tektronix-sysv3* ) | |
1482 machine=tekxd88 opsys=usg5-3 | |
1483 ;; | |
1484 | |
1485 ## Tektronix 16000 box (6130?) | |
1486 ns16k-tektronix-bsd* ) | |
1487 machine=ns16000 opsys=bsd4-2 | |
1488 ;; | |
1489 ## Tektronix 4300 | |
1490 ## src/m/tek4300.h hints that this is a m68k machine. | |
1491 m68*-tektronix-bsd* ) | |
1492 machine=tek4300 opsys=bsd4-3 | |
1493 ;; | |
1494 | |
1495 ## Titan P2 or P3 | |
1496 ## We seem to have lost the machine-description file titan.h! | |
1497 titan-titan-sysv* ) | |
1498 machine=titan opsys=usg5-3 | |
1499 ;; | |
1500 | |
1501 ## Ustation E30 (SS5E) | |
1502 m68*-unisys-uniplus* ) | |
1503 machine=ustation opsystem=unipl5-2 | |
1504 ;; | |
1505 | |
1506 ## Vaxen. | |
1507 vax-dec-* ) | |
1508 machine=vax | |
1509 case "${canonical}" in | |
1510 *-bsd4.1* ) opsys=bsd4-1 ;; | |
1511 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
1512 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
1513 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
1514 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
1515 *-vms* ) opsys=vms ;; | |
1516 * ) unported=yes | |
1517 esac | |
1518 ;; | |
1519 | |
1520 ## Whitechapel MG1 | |
1521 ns16k-whitechapel-* ) | |
1522 machine=mg1 | |
1523 ## We don't know what sort of OS runs on these; we'll let the | |
1524 ## operating system guessing code below try. | |
1525 ;; | |
1526 | |
1527 ## Wicat | |
1528 m68*-wicat-sysv* ) | |
1529 machine=wicat opsys=usg5-2 | |
1530 ;; | |
1531 | |
1532 ## Intel 386 machines where we don't care about the manufacturer | |
1533 i[3456]86-*-* ) | |
1534 machine=intel386 | |
1535 case "${canonical}" in | |
1536 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; | |
1537 *-isc2.2* ) opsys=isc2-2 ;; | |
1538 *-isc4.0* ) opsys=isc4-0 ;; | |
1539 *-isc4.* ) opsys=isc4-1 | |
1540 GCC_TEST_OPTIONS=-posix | |
1541 NON_GCC_TEST_OPTIONS=-Xp | |
1542 ;; | |
1543 *-isc* ) opsys=isc3-0 ;; | |
1544 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
1545 *-esix* ) opsys=esix ;; | |
1546 *-xenix* ) opsys=xenix ;; | |
1547 *-linux-gnu* ) opsys=gnu-linux ;; | |
1548 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
1549 *-sco3.2v5* ) opsys=sco5 | |
1550 NON_GNU_CPP=/lib/cpp | |
1551 # Prevent -belf from being passed to $CPP. | |
1552 # /lib/cpp does not accept it. | |
1553 OVERRIDE_CPPFLAGS=" " | |
1554 ;; | |
1555 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
1556 *-386bsd* ) opsys=386bsd ;; | |
1557 *-freebsd* ) opsys=freebsd ;; | |
1558 *-nextstep* ) opsys=nextstep ;; | |
1559 ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
1560 esac | |
1561 ;; | |
1562 | |
1563 ## m68k Linux-based GNU system | |
1564 m68k-*-linux-gnu* ) | |
1565 machine=m68k opsys=gnu-linux | |
1566 ;; | |
1567 | |
1568 ## Mips Linux-based GNU system | |
1569 mips-*-linux-gnu* ) | |
1570 machine=mips opsys=gnu-linux | |
1571 ;; | |
1572 | |
1573 ## UXP/DS | |
1574 sparc-fujitsu-sysv4* ) | |
1575 machine=sparc opsys=uxpds | |
1576 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1577 RANLIB="ar -ts" | |
1578 ;; | |
1579 | |
1580 ## UXP/V | |
1581 f301-fujitsu-uxpv4.1) | |
1582 machine=f301 opsys=uxpv | |
1583 ;; | |
1584 | |
1585 * ) | |
1586 unported=yes | |
1587 ;; | |
1588 esac | |
1589 | |
1590 ### If the code above didn't choose an operating system, just choose | |
1591 ### an operating system based on the configuration name. You really | |
1592 ### only want to use this when you have no idea what the right | |
1593 ### operating system is; if you know what operating systems a machine | |
1594 ### runs, it's cleaner to make it explicit in the case statement | |
1595 ### above. | |
1596 if test x"${opsys}" = x; then | |
1597 case "${canonical}" in | |
1598 *-gnu* ) opsys=gnu ;; | |
1599 *-bsd4.[01] ) opsys=bsd4-1 ;; | |
1600 *-bsd4.2 ) opsys=bsd4-2 ;; | |
1601 *-bsd4.3 ) opsys=bsd4-3 ;; | |
1602 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
1603 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
1604 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
1605 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
1606 *-sysv4.2uw* ) opsys=unixware ;; | |
1607 *-sysv4.1* | *-sysvr4.1* ) | |
1608 NON_GNU_CPP=/usr/lib/cpp | |
1609 opsys=usg5-4 ;; | |
1610 *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
1611 if [ x$NON_GNU_CPP = x ]; then | |
1612 if [ -f /usr/ccs/lib/cpp ]; then | |
1613 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1614 else | |
1615 NON_GNU_CPP=/lib/cpp | |
1616 fi | |
1617 fi | |
1618 opsys=usg5-4-2 ;; | |
1619 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
1620 * ) | |
1621 unported=yes | |
1622 ;; | |
1623 esac | |
1624 fi | |
1625 | |
1626 if test "x$RANLIB" = x; then | |
1627 RANLIB=ranlib | |
1628 fi | |
1629 | |
1630 | |
1631 if test $unported = yes; then | |
1632 { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems. | |
1633 Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; } | |
1634 fi | |
1635 | |
1636 machfile="m/${machine}.h" | |
1637 opsysfile="s/${opsys}.h" | |
1638 | |
1639 | |
1640 #### Choose a compiler. | |
1641 test -n "$CC" && cc_specified=yes | |
1642 | |
1643 # Save the value of CFLAGS that the user specified. | |
1644 SPECIFIED_CFLAGS="$CFLAGS" | |
1645 | |
1646 case ${with_gcc} in | |
1647 "yes" ) CC="gcc" GCC=yes ;; | |
1648 "no" ) : ${CC=cc} ;; | |
1649 * ) # Extract the first word of "gcc", so it can be a program name with args. | |
1650 set dummy gcc; ac_word=$2 | |
1651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
25994 | 1652 echo "configure:1653: checking for $ac_word" >&5 |
25897 | 1653 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1654 echo $ac_n "(cached) $ac_c" 1>&6 | |
1655 else | |
1656 if test -n "$CC"; then | |
1657 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1658 else | |
1659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1660 ac_dummy="$PATH" | |
1661 for ac_dir in $ac_dummy; do | |
1662 test -z "$ac_dir" && ac_dir=. | |
1663 if test -f $ac_dir/$ac_word; then | |
1664 ac_cv_prog_CC="gcc" | |
1665 break | |
1666 fi | |
1667 done | |
1668 IFS="$ac_save_ifs" | |
1669 fi | |
1670 fi | |
1671 CC="$ac_cv_prog_CC" | |
1672 if test -n "$CC"; then | |
1673 echo "$ac_t""$CC" 1>&6 | |
1674 else | |
1675 echo "$ac_t""no" 1>&6 | |
1676 fi | |
1677 | |
1678 if test -z "$CC"; then | |
1679 # Extract the first word of "cc", so it can be a program name with args. | |
1680 set dummy cc; ac_word=$2 | |
1681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
25994 | 1682 echo "configure:1683: checking for $ac_word" >&5 |
25897 | 1683 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1684 echo $ac_n "(cached) $ac_c" 1>&6 | |
1685 else | |
1686 if test -n "$CC"; then | |
1687 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1688 else | |
1689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1690 ac_prog_rejected=no | |
1691 ac_dummy="$PATH" | |
1692 for ac_dir in $ac_dummy; do | |
1693 test -z "$ac_dir" && ac_dir=. | |
1694 if test -f $ac_dir/$ac_word; then | |
1695 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1696 ac_prog_rejected=yes | |
1697 continue | |
1698 fi | |
1699 ac_cv_prog_CC="cc" | |
1700 break | |
1701 fi | |
1702 done | |
1703 IFS="$ac_save_ifs" | |
1704 if test $ac_prog_rejected = yes; then | |
1705 # We found a bogon in the path, so make sure we never use it. | |
1706 set dummy $ac_cv_prog_CC | |
1707 shift | |
1708 if test $# -gt 0; then | |
1709 # We chose a different compiler from the bogus one. | |
1710 # However, it has the same basename, so the bogon will be chosen | |
1711 # first if we set CC to just the basename; use the full file name. | |
1712 shift | |
1713 set dummy "$ac_dir/$ac_word" "$@" | |
1714 shift | |
1715 ac_cv_prog_CC="$@" | |
1716 fi | |
1717 fi | |
1718 fi | |
1719 fi | |
1720 CC="$ac_cv_prog_CC" | |
1721 if test -n "$CC"; then | |
1722 echo "$ac_t""$CC" 1>&6 | |
1723 else | |
1724 echo "$ac_t""no" 1>&6 | |
1725 fi | |
1726 | |
1727 if test -z "$CC"; then | |
1728 case "`uname -s`" in | |
1729 *win32* | *WIN32*) | |
1730 # Extract the first word of "cl", so it can be a program name with args. | |
1731 set dummy cl; ac_word=$2 | |
1732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
25994 | 1733 echo "configure:1734: checking for $ac_word" >&5 |
25897 | 1734 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1735 echo $ac_n "(cached) $ac_c" 1>&6 | |
1736 else | |
1737 if test -n "$CC"; then | |
1738 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1739 else | |
1740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1741 ac_dummy="$PATH" | |
1742 for ac_dir in $ac_dummy; do | |
1743 test -z "$ac_dir" && ac_dir=. | |
1744 if test -f $ac_dir/$ac_word; then | |
1745 ac_cv_prog_CC="cl" | |
1746 break | |
1747 fi | |
1748 done | |
1749 IFS="$ac_save_ifs" | |
1750 fi | |
1751 fi | |
1752 CC="$ac_cv_prog_CC" | |
1753 if test -n "$CC"; then | |
1754 echo "$ac_t""$CC" 1>&6 | |
1755 else | |
1756 echo "$ac_t""no" 1>&6 | |
1757 fi | |
1758 ;; | |
1759 esac | |
1760 fi | |
1761 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1762 fi | |
1763 | |
1764 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
25994 | 1765 echo "configure:1766: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
25897 | 1766 |
1767 ac_ext=c | |
1768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1769 ac_cpp='$CPP $CPPFLAGS' | |
1770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1772 cross_compiling=$ac_cv_prog_cc_cross | |
1773 | |
1774 cat > conftest.$ac_ext << EOF | |
1775 | |
25994 | 1776 #line 1777 "configure" |
25897 | 1777 #include "confdefs.h" |
1778 | |
1779 main(){return(0);} | |
1780 EOF | |
25994 | 1781 if { (eval echo configure:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 1782 ac_cv_prog_cc_works=yes |
1783 # If we can't run a trivial program, we are probably using a cross compiler. | |
1784 if (./conftest; exit) 2>/dev/null; then | |
1785 ac_cv_prog_cc_cross=no | |
1786 else | |
1787 ac_cv_prog_cc_cross=yes | |
1788 fi | |
1789 else | |
1790 echo "configure: failed program was:" >&5 | |
1791 cat conftest.$ac_ext >&5 | |
1792 ac_cv_prog_cc_works=no | |
1793 fi | |
1794 rm -fr conftest* | |
1795 ac_ext=c | |
1796 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1797 ac_cpp='$CPP $CPPFLAGS' | |
1798 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1799 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1800 cross_compiling=$ac_cv_prog_cc_cross | |
1801 | |
1802 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1803 if test $ac_cv_prog_cc_works = no; then | |
1804 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1805 fi | |
1806 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
25994 | 1807 echo "configure:1808: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
25897 | 1808 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1809 cross_compiling=$ac_cv_prog_cc_cross | |
1810 | |
1811 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
25994 | 1812 echo "configure:1813: checking whether we are using GNU C" >&5 |
25897 | 1813 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1814 echo $ac_n "(cached) $ac_c" 1>&6 | |
1815 else | |
1816 cat > conftest.c <<EOF | |
1817 #ifdef __GNUC__ | |
1818 yes; | |
1819 #endif | |
1820 EOF | |
25994 | 1821 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
25897 | 1822 ac_cv_prog_gcc=yes |
1823 else | |
1824 ac_cv_prog_gcc=no | |
1825 fi | |
1826 fi | |
1827 | |
1828 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1829 | |
1830 if test $ac_cv_prog_gcc = yes; then | |
1831 GCC=yes | |
1832 else | |
1833 GCC= | |
1834 fi | |
1835 | |
1836 ac_test_CFLAGS="${CFLAGS+set}" | |
1837 ac_save_CFLAGS="$CFLAGS" | |
1838 CFLAGS= | |
1839 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
25994 | 1840 echo "configure:1841: checking whether ${CC-cc} accepts -g" >&5 |
25897 | 1841 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1842 echo $ac_n "(cached) $ac_c" 1>&6 | |
1843 else | |
1844 echo 'void f(){}' > conftest.c | |
1845 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1846 ac_cv_prog_cc_g=yes | |
1847 else | |
1848 ac_cv_prog_cc_g=no | |
1849 fi | |
1850 rm -f conftest* | |
1851 | |
1852 fi | |
1853 | |
1854 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1855 if test "$ac_test_CFLAGS" = set; then | |
1856 CFLAGS="$ac_save_CFLAGS" | |
1857 elif test $ac_cv_prog_cc_g = yes; then | |
1858 if test "$GCC" = yes; then | |
1859 CFLAGS="-g -O2" | |
1860 else | |
1861 CFLAGS="-g" | |
1862 fi | |
1863 else | |
1864 if test "$GCC" = yes; then | |
1865 CFLAGS="-O2" | |
1866 else | |
1867 CFLAGS= | |
1868 fi | |
1869 fi | |
1870 | |
1871 esac | |
1872 | |
1873 # On Suns, sometimes $CPP names a directory. | |
1874 if test -n "$CPP" && test -d "$CPP"; then | |
1875 CPP= | |
1876 fi | |
1877 | |
1878 #### Some systems specify a CPP to use unless we are using GCC. | |
1879 #### Now that we know whether we are using GCC, we can decide whether | |
1880 #### to use that one. | |
1881 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
1882 then | |
1883 CPP="$NON_GNU_CPP" | |
1884 fi | |
1885 | |
1886 #### Some systems specify a CC to use unless we are using GCC. | |
1887 #### Now that we know whether we are using GCC, we can decide whether | |
1888 #### to use that one. | |
1889 if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
1890 test x$cc_specified != xyes | |
1891 then | |
1892 CC="$NON_GNU_CC" | |
1893 fi | |
1894 | |
1895 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
1896 then | |
1897 CC="$CC $GCC_TEST_OPTIONS" | |
1898 fi | |
1899 | |
1900 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
1901 then | |
1902 CC="$CC $NON_GCC_TEST_OPTIONS" | |
1903 fi | |
1904 | |
1905 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x | |
1906 then | |
1907 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
1908 fi | |
1909 | |
1910 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
1911 then | |
1912 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
1913 fi | |
1914 | |
1915 #### Some other nice autoconf tests. If you add a test here which | |
1916 #### should make an entry in src/config.h, don't forget to add an | |
1917 #### #undef clause to src/config.h.in for autoconf to modify. | |
1918 | |
1919 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
25994 | 1920 echo "configure:1921: checking whether ln -s works" >&5 |
25897 | 1921 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1922 echo $ac_n "(cached) $ac_c" 1>&6 | |
1923 else | |
1924 rm -f conftestdata | |
1925 if ln -s X conftestdata 2>/dev/null | |
1926 then | |
1927 rm -f conftestdata | |
1928 ac_cv_prog_LN_S="ln -s" | |
1929 else | |
1930 ac_cv_prog_LN_S=ln | |
1931 fi | |
1932 fi | |
1933 LN_S="$ac_cv_prog_LN_S" | |
1934 if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1935 echo "$ac_t""yes" 1>&6 | |
1936 else | |
1937 echo "$ac_t""no" 1>&6 | |
1938 fi | |
1939 | |
1940 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
25994 | 1941 echo "configure:1942: checking how to run the C preprocessor" >&5 |
25897 | 1942 # On Suns, sometimes $CPP names a directory. |
1943 if test -n "$CPP" && test -d "$CPP"; then | |
1944 CPP= | |
1945 fi | |
1946 if test -z "$CPP"; then | |
1947 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1948 echo $ac_n "(cached) $ac_c" 1>&6 | |
1949 else | |
1950 # This must be in double quotes, not single quotes, because CPP may get | |
1951 # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1952 CPP="${CC-cc} -E" | |
1953 # On the NeXT, cc -E runs the code through the compiler's parser, | |
1954 # not just through cpp. | |
1955 cat > conftest.$ac_ext <<EOF | |
25994 | 1956 #line 1957 "configure" |
25897 | 1957 #include "confdefs.h" |
1958 #include <assert.h> | |
1959 Syntax Error | |
1960 EOF | |
1961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
25994 | 1962 { (eval echo configure:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
25897 | 1963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1964 if test -z "$ac_err"; then | |
1965 : | |
1966 else | |
1967 echo "$ac_err" >&5 | |
1968 echo "configure: failed program was:" >&5 | |
1969 cat conftest.$ac_ext >&5 | |
1970 rm -rf conftest* | |
1971 CPP="${CC-cc} -E -traditional-cpp" | |
1972 cat > conftest.$ac_ext <<EOF | |
25994 | 1973 #line 1974 "configure" |
25897 | 1974 #include "confdefs.h" |
1975 #include <assert.h> | |
1976 Syntax Error | |
1977 EOF | |
1978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
25994 | 1979 { (eval echo configure:1980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
25897 | 1980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1981 if test -z "$ac_err"; then | |
1982 : | |
1983 else | |
1984 echo "$ac_err" >&5 | |
1985 echo "configure: failed program was:" >&5 | |
1986 cat conftest.$ac_ext >&5 | |
1987 rm -rf conftest* | |
1988 CPP="${CC-cc} -nologo -E" | |
1989 cat > conftest.$ac_ext <<EOF | |
25994 | 1990 #line 1991 "configure" |
25897 | 1991 #include "confdefs.h" |
1992 #include <assert.h> | |
1993 Syntax Error | |
1994 EOF | |
1995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
25994 | 1996 { (eval echo configure:1997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
25897 | 1997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1998 if test -z "$ac_err"; then | |
1999 : | |
2000 else | |
2001 echo "$ac_err" >&5 | |
2002 echo "configure: failed program was:" >&5 | |
2003 cat conftest.$ac_ext >&5 | |
2004 rm -rf conftest* | |
2005 CPP=/lib/cpp | |
2006 fi | |
2007 rm -f conftest* | |
2008 fi | |
2009 rm -f conftest* | |
2010 fi | |
2011 rm -f conftest* | |
2012 ac_cv_prog_CPP="$CPP" | |
2013 fi | |
2014 CPP="$ac_cv_prog_CPP" | |
2015 else | |
2016 ac_cv_prog_CPP="$CPP" | |
2017 fi | |
2018 echo "$ac_t""$CPP" 1>&6 | |
2019 | |
2020 # Find a good install program. We prefer a C program (faster), | |
2021 # so one script is as good as another. But avoid the broken or | |
2022 # incompatible versions: | |
2023 # SysV /etc/install, /usr/sbin/install | |
2024 # SunOS /usr/etc/install | |
2025 # IRIX /sbin/install | |
2026 # AIX /bin/install | |
2027 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2028 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2029 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2030 # ./install, which can be erroneously created by make from ./install.sh. | |
2031 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
25994 | 2032 echo "configure:2033: checking for a BSD compatible install" >&5 |
25897 | 2033 if test -z "$INSTALL"; then |
2034 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
2035 echo $ac_n "(cached) $ac_c" 1>&6 | |
2036 else | |
2037 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
2038 for ac_dir in $PATH; do | |
2039 # Account for people who put trailing slashes in PATH elements. | |
2040 case "$ac_dir/" in | |
2041 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
2042 *) | |
2043 # OSF1 and SCO ODT 3.0 have their own names for install. | |
2044 # Don't use installbsd from OSF since it installs stuff as root | |
2045 # by default. | |
2046 for ac_prog in ginstall scoinst install; do | |
2047 if test -f $ac_dir/$ac_prog; then | |
2048 if test $ac_prog = install && | |
2049 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
2050 # AIX install. It has an incompatible calling convention. | |
2051 : | |
2052 else | |
2053 ac_cv_path_install="$ac_dir/$ac_prog -c" | |
2054 break 2 | |
2055 fi | |
2056 fi | |
2057 done | |
2058 ;; | |
2059 esac | |
2060 done | |
2061 IFS="$ac_save_IFS" | |
2062 | |
2063 fi | |
2064 if test "${ac_cv_path_install+set}" = set; then | |
2065 INSTALL="$ac_cv_path_install" | |
2066 else | |
2067 # As a last resort, use the slow shell script. We don't cache a | |
2068 # path for INSTALL within a source directory, because that will | |
2069 # break other packages using the cache if that directory is | |
2070 # removed, or if the path is relative. | |
2071 INSTALL="$ac_install_sh" | |
2072 fi | |
2073 fi | |
2074 echo "$ac_t""$INSTALL" 1>&6 | |
2075 | |
2076 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2077 # It thinks the first close brace ends the variable substitution. | |
2078 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2079 | |
2080 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
2081 | |
2082 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2083 | |
2084 for ac_prog in 'bison -y' byacc | |
2085 do | |
2086 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2087 set dummy $ac_prog; ac_word=$2 | |
2088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
25994 | 2089 echo "configure:2090: checking for $ac_word" >&5 |
25897 | 2090 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
2091 echo $ac_n "(cached) $ac_c" 1>&6 | |
2092 else | |
2093 if test -n "$YACC"; then | |
2094 ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
2095 else | |
2096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2097 ac_dummy="$PATH" | |
2098 for ac_dir in $ac_dummy; do | |
2099 test -z "$ac_dir" && ac_dir=. | |
2100 if test -f $ac_dir/$ac_word; then | |
2101 ac_cv_prog_YACC="$ac_prog" | |
2102 break | |
2103 fi | |
2104 done | |
2105 IFS="$ac_save_ifs" | |
2106 fi | |
2107 fi | |
2108 YACC="$ac_cv_prog_YACC" | |
2109 if test -n "$YACC"; then | |
2110 echo "$ac_t""$YACC" 1>&6 | |
2111 else | |
2112 echo "$ac_t""no" 1>&6 | |
2113 fi | |
2114 | |
2115 test -n "$YACC" && break | |
2116 done | |
2117 test -n "$YACC" || YACC="yacc" | |
2118 | |
2119 | |
2120 echo $ac_n "checking for AIX""... $ac_c" 1>&6 | |
25994 | 2121 echo "configure:2122: checking for AIX" >&5 |
25897 | 2122 cat > conftest.$ac_ext <<EOF |
25994 | 2123 #line 2124 "configure" |
25897 | 2124 #include "confdefs.h" |
2125 #ifdef _AIX | |
2126 yes | |
2127 #endif | |
2128 | |
2129 EOF | |
2130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2131 egrep "yes" >/dev/null 2>&1; then | |
2132 rm -rf conftest* | |
2133 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | |
2134 #define _ALL_SOURCE 1 | |
2135 EOF | |
2136 | |
2137 else | |
2138 rm -rf conftest* | |
2139 echo "$ac_t""no" 1>&6 | |
2140 fi | |
2141 rm -f conftest* | |
2142 | |
2143 | |
2144 | |
2145 # Sound support for GNU/Linux and the free BSDs. | |
2146 for ac_hdr in machine/soundcard.h sys/soundcard.h | |
2147 do | |
2148 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2149 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
25994 | 2150 echo "configure:2151: checking for $ac_hdr" >&5 |
25897 | 2151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2152 echo $ac_n "(cached) $ac_c" 1>&6 | |
2153 else | |
2154 cat > conftest.$ac_ext <<EOF | |
25994 | 2155 #line 2156 "configure" |
25897 | 2156 #include "confdefs.h" |
2157 #include <$ac_hdr> | |
2158 EOF | |
2159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
25994 | 2160 { (eval echo configure:2161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
25897 | 2161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2162 if test -z "$ac_err"; then | |
2163 rm -rf conftest* | |
2164 eval "ac_cv_header_$ac_safe=yes" | |
2165 else | |
2166 echo "$ac_err" >&5 | |
2167 echo "configure: failed program was:" >&5 | |
2168 cat conftest.$ac_ext >&5 | |
2169 rm -rf conftest* | |
2170 eval "ac_cv_header_$ac_safe=no" | |
2171 fi | |
2172 rm -f conftest* | |
2173 fi | |
2174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2175 echo "$ac_t""yes" 1>&6 | |
2176 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2177 cat >> confdefs.h <<EOF | |
2178 #define $ac_tr_hdr 1 | |
2179 EOF | |
2180 | |
2181 else | |
2182 echo "$ac_t""no" 1>&6 | |
2183 fi | |
2184 done | |
2185 | |
2186 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2187 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
|
2188 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2189 termcap.h stdio_ext.h |
25897 | 2190 do |
2191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2193 echo "configure:2194: checking for $ac_hdr" >&5 |
25897 | 2194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2195 echo $ac_n "(cached) $ac_c" 1>&6 | |
2196 else | |
2197 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2198 #line 2199 "configure" |
25897 | 2199 #include "confdefs.h" |
2200 #include <$ac_hdr> | |
2201 EOF | |
2202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2203 { (eval echo configure:2204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
25897 | 2204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2205 if test -z "$ac_err"; then | |
2206 rm -rf conftest* | |
2207 eval "ac_cv_header_$ac_safe=yes" | |
2208 else | |
2209 echo "$ac_err" >&5 | |
2210 echo "configure: failed program was:" >&5 | |
2211 cat conftest.$ac_ext >&5 | |
2212 rm -rf conftest* | |
2213 eval "ac_cv_header_$ac_safe=no" | |
2214 fi | |
2215 rm -f conftest* | |
2216 fi | |
2217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2218 echo "$ac_t""yes" 1>&6 | |
2219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2220 cat >> confdefs.h <<EOF | |
2221 #define $ac_tr_hdr 1 | |
2222 EOF | |
2223 | |
2224 else | |
2225 echo "$ac_t""no" 1>&6 | |
2226 fi | |
2227 done | |
2228 | |
2229 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2230 echo "configure:2231: checking for ANSI C header files" >&5 |
25897 | 2231 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2232 echo $ac_n "(cached) $ac_c" 1>&6 | |
2233 else | |
2234 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2235 #line 2236 "configure" |
25897 | 2236 #include "confdefs.h" |
2237 #include <stdlib.h> | |
2238 #include <stdarg.h> | |
2239 #include <string.h> | |
2240 #include <float.h> | |
2241 EOF | |
2242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2243 { (eval echo configure:2244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
25897 | 2244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2245 if test -z "$ac_err"; then | |
2246 rm -rf conftest* | |
2247 ac_cv_header_stdc=yes | |
2248 else | |
2249 echo "$ac_err" >&5 | |
2250 echo "configure: failed program was:" >&5 | |
2251 cat conftest.$ac_ext >&5 | |
2252 rm -rf conftest* | |
2253 ac_cv_header_stdc=no | |
2254 fi | |
2255 rm -f conftest* | |
2256 | |
2257 if test $ac_cv_header_stdc = yes; then | |
2258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2259 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2260 #line 2261 "configure" |
25897 | 2261 #include "confdefs.h" |
2262 #include <string.h> | |
2263 EOF | |
2264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2265 egrep "memchr" >/dev/null 2>&1; then | |
2266 : | |
2267 else | |
2268 rm -rf conftest* | |
2269 ac_cv_header_stdc=no | |
2270 fi | |
2271 rm -f conftest* | |
2272 | |
2273 fi | |
2274 | |
2275 if test $ac_cv_header_stdc = yes; then | |
2276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2277 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2278 #line 2279 "configure" |
25897 | 2279 #include "confdefs.h" |
2280 #include <stdlib.h> | |
2281 EOF | |
2282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2283 egrep "free" >/dev/null 2>&1; then | |
2284 : | |
2285 else | |
2286 rm -rf conftest* | |
2287 ac_cv_header_stdc=no | |
2288 fi | |
2289 rm -f conftest* | |
2290 | |
2291 fi | |
2292 | |
2293 if test $ac_cv_header_stdc = yes; then | |
2294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2295 if test "$cross_compiling" = yes; then | |
2296 : | |
2297 else | |
2298 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2299 #line 2300 "configure" |
25897 | 2300 #include "confdefs.h" |
2301 #include <ctype.h> | |
2302 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2303 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2304 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2305 int main () { int i; for (i = 0; i < 256; i++) | |
2306 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
2307 exit (0); } | |
2308 | |
2309 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2310 if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
25897 | 2311 then |
2312 : | |
2313 else | |
2314 echo "configure: failed program was:" >&5 | |
2315 cat conftest.$ac_ext >&5 | |
2316 rm -fr conftest* | |
2317 ac_cv_header_stdc=no | |
2318 fi | |
2319 rm -fr conftest* | |
2320 fi | |
2321 | |
2322 fi | |
2323 fi | |
2324 | |
2325 echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
2326 if test $ac_cv_header_stdc = yes; then | |
2327 cat >> confdefs.h <<\EOF | |
2328 #define STDC_HEADERS 1 | |
2329 EOF | |
2330 | |
2331 fi | |
2332 | |
2333 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2334 echo "configure:2335: checking whether time.h and sys/time.h may both be included" >&5 |
25897 | 2335 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
2336 echo $ac_n "(cached) $ac_c" 1>&6 | |
2337 else | |
2338 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2339 #line 2340 "configure" |
25897 | 2340 #include "confdefs.h" |
2341 #include <sys/types.h> | |
2342 #include <sys/time.h> | |
2343 #include <time.h> | |
2344 int main() { | |
2345 struct tm *tp; | |
2346 ; return 0; } | |
2347 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2348 if { (eval echo configure:2349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2349 rm -rf conftest* |
2350 ac_cv_header_time=yes | |
2351 else | |
2352 echo "configure: failed program was:" >&5 | |
2353 cat conftest.$ac_ext >&5 | |
2354 rm -rf conftest* | |
2355 ac_cv_header_time=no | |
2356 fi | |
2357 rm -f conftest* | |
2358 fi | |
2359 | |
2360 echo "$ac_t""$ac_cv_header_time" 1>&6 | |
2361 if test $ac_cv_header_time = yes; then | |
2362 cat >> confdefs.h <<\EOF | |
2363 #define TIME_WITH_SYS_TIME 1 | |
2364 EOF | |
2365 | |
2366 fi | |
2367 | |
2368 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2369 echo "configure:2370: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
25897 | 2370 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
2371 echo $ac_n "(cached) $ac_c" 1>&6 | |
2372 else | |
2373 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2374 #line 2375 "configure" |
25897 | 2375 #include "confdefs.h" |
2376 #include <sys/types.h> | |
2377 #include <signal.h> | |
2378 /* NetBSD declares sys_siglist in unistd.h. */ | |
2379 #ifdef HAVE_UNISTD_H | |
2380 #include <unistd.h> | |
2381 #endif | |
2382 int main() { | |
2383 char *msg = *(sys_siglist + 1); | |
2384 ; return 0; } | |
2385 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2386 if { (eval echo configure:2387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2387 rm -rf conftest* |
2388 ac_cv_decl_sys_siglist=yes | |
2389 else | |
2390 echo "configure: failed program was:" >&5 | |
2391 cat conftest.$ac_ext >&5 | |
2392 rm -rf conftest* | |
2393 ac_cv_decl_sys_siglist=no | |
2394 fi | |
2395 rm -f conftest* | |
2396 fi | |
2397 | |
2398 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 | |
2399 if test $ac_cv_decl_sys_siglist = yes; then | |
2400 cat >> confdefs.h <<\EOF | |
2401 #define SYS_SIGLIST_DECLARED 1 | |
2402 EOF | |
2403 | |
2404 fi | |
2405 | |
2406 | |
2407 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2408 echo "configure:2409: checking for struct utimbuf" >&5 |
25897 | 2409 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then |
2410 echo $ac_n "(cached) $ac_c" 1>&6 | |
2411 else | |
2412 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2413 #line 2414 "configure" |
25897 | 2414 #include "confdefs.h" |
2415 #ifdef TIME_WITH_SYS_TIME | |
2416 #include <sys/time.h> | |
2417 #include <time.h> | |
2418 #else | |
2419 #ifdef HAVE_SYS_TIME_H | |
2420 #include <sys/time.h> | |
2421 #else | |
2422 #include <time.h> | |
2423 #endif | |
2424 #endif | |
2425 #ifdef HAVE_UTIME_H | |
2426 #include <utime.h> | |
2427 #endif | |
2428 int main() { | |
2429 static struct utimbuf x; x.actime = x.modtime; | |
2430 ; return 0; } | |
2431 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2432 if { (eval echo configure:2433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2433 rm -rf conftest* |
2434 emacs_cv_struct_utimbuf=yes | |
2435 else | |
2436 echo "configure: failed program was:" >&5 | |
2437 cat conftest.$ac_ext >&5 | |
2438 rm -rf conftest* | |
2439 emacs_cv_struct_utimbuf=no | |
2440 fi | |
2441 rm -f conftest* | |
2442 fi | |
2443 | |
2444 echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6 | |
2445 if test $emacs_cv_struct_utimbuf = yes; then | |
2446 cat >> confdefs.h <<\EOF | |
2447 #define HAVE_STRUCT_UTIMBUF 1 | |
2448 EOF | |
2449 | |
2450 fi | |
2451 | |
2452 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2453 echo "configure:2454: checking return type of signal handlers" >&5 |
25897 | 2454 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
2455 echo $ac_n "(cached) $ac_c" 1>&6 | |
2456 else | |
2457 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2458 #line 2459 "configure" |
25897 | 2459 #include "confdefs.h" |
2460 #include <sys/types.h> | |
2461 #include <signal.h> | |
2462 #ifdef signal | |
2463 #undef signal | |
2464 #endif | |
2465 #ifdef __cplusplus | |
2466 extern "C" void (*signal (int, void (*)(int)))(int); | |
2467 #else | |
2468 void (*signal ()) (); | |
2469 #endif | |
2470 | |
2471 int main() { | |
2472 int i; | |
2473 ; return 0; } | |
2474 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2475 if { (eval echo configure:2476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2476 rm -rf conftest* |
2477 ac_cv_type_signal=void | |
2478 else | |
2479 echo "configure: failed program was:" >&5 | |
2480 cat conftest.$ac_ext >&5 | |
2481 rm -rf conftest* | |
2482 ac_cv_type_signal=int | |
2483 fi | |
2484 rm -f conftest* | |
2485 fi | |
2486 | |
2487 echo "$ac_t""$ac_cv_type_signal" 1>&6 | |
2488 cat >> confdefs.h <<EOF | |
2489 #define RETSIGTYPE $ac_cv_type_signal | |
2490 EOF | |
2491 | |
2492 | |
2493 | |
2494 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2495 echo "configure:2496: checking for struct timeval" >&5 |
25897 | 2496 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then |
2497 echo $ac_n "(cached) $ac_c" 1>&6 | |
2498 else | |
2499 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2500 #line 2501 "configure" |
25897 | 2501 #include "confdefs.h" |
2502 #ifdef TIME_WITH_SYS_TIME | |
2503 #include <sys/time.h> | |
2504 #include <time.h> | |
2505 #else | |
2506 #ifdef HAVE_SYS_TIME_H | |
2507 #include <sys/time.h> | |
2508 #else | |
2509 #include <time.h> | |
2510 #endif | |
2511 #endif | |
2512 int main() { | |
2513 static struct timeval x; x.tv_sec = x.tv_usec; | |
2514 ; return 0; } | |
2515 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2516 if { (eval echo configure:2517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2517 rm -rf conftest* |
2518 emacs_cv_struct_timeval=yes | |
2519 else | |
2520 echo "configure: failed program was:" >&5 | |
2521 cat conftest.$ac_ext >&5 | |
2522 rm -rf conftest* | |
2523 emacs_cv_struct_timeval=no | |
2524 fi | |
2525 rm -f conftest* | |
2526 fi | |
2527 | |
2528 echo "$ac_t""$emacs_cv_struct_timeval" 1>&6 | |
2529 HAVE_TIMEVAL=$emacs_cv_struct_timeval | |
2530 if test $emacs_cv_struct_timeval = yes; then | |
2531 cat >> confdefs.h <<\EOF | |
2532 #define HAVE_TIMEVAL 1 | |
2533 EOF | |
2534 | |
2535 fi | |
2536 | |
2537 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2538 echo "configure:2539: checking whether struct tm is in sys/time.h or time.h" >&5 |
25897 | 2539 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
2540 echo $ac_n "(cached) $ac_c" 1>&6 | |
2541 else | |
2542 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2543 #line 2544 "configure" |
25897 | 2544 #include "confdefs.h" |
2545 #include <sys/types.h> | |
2546 #include <time.h> | |
2547 int main() { | |
2548 struct tm *tp; tp->tm_sec; | |
2549 ; return 0; } | |
2550 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2551 if { (eval echo configure:2552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2552 rm -rf conftest* |
2553 ac_cv_struct_tm=time.h | |
2554 else | |
2555 echo "configure: failed program was:" >&5 | |
2556 cat conftest.$ac_ext >&5 | |
2557 rm -rf conftest* | |
2558 ac_cv_struct_tm=sys/time.h | |
2559 fi | |
2560 rm -f conftest* | |
2561 fi | |
2562 | |
2563 echo "$ac_t""$ac_cv_struct_tm" 1>&6 | |
2564 if test $ac_cv_struct_tm = sys/time.h; then | |
2565 cat >> confdefs.h <<\EOF | |
2566 #define TM_IN_SYS_TIME 1 | |
2567 EOF | |
2568 | |
2569 fi | |
2570 | |
2571 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2572 echo "configure:2573: checking for tm_zone in struct tm" >&5 |
25897 | 2573 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
2574 echo $ac_n "(cached) $ac_c" 1>&6 | |
2575 else | |
2576 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2577 #line 2578 "configure" |
25897 | 2578 #include "confdefs.h" |
2579 #include <sys/types.h> | |
2580 #include <$ac_cv_struct_tm> | |
2581 int main() { | |
2582 struct tm tm; tm.tm_zone; | |
2583 ; return 0; } | |
2584 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2585 if { (eval echo configure:2586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2586 rm -rf conftest* |
2587 ac_cv_struct_tm_zone=yes | |
2588 else | |
2589 echo "configure: failed program was:" >&5 | |
2590 cat conftest.$ac_ext >&5 | |
2591 rm -rf conftest* | |
2592 ac_cv_struct_tm_zone=no | |
2593 fi | |
2594 rm -f conftest* | |
2595 fi | |
2596 | |
2597 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 | |
2598 if test "$ac_cv_struct_tm_zone" = yes; then | |
2599 cat >> confdefs.h <<\EOF | |
2600 #define HAVE_TM_ZONE 1 | |
2601 EOF | |
2602 | |
2603 else | |
2604 echo $ac_n "checking for tzname""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2605 echo "configure:2606: checking for tzname" >&5 |
25897 | 2606 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
2607 echo $ac_n "(cached) $ac_c" 1>&6 | |
2608 else | |
2609 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2610 #line 2611 "configure" |
25897 | 2611 #include "confdefs.h" |
2612 #include <time.h> | |
2613 #ifndef tzname /* For SGI. */ | |
2614 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
2615 #endif | |
2616 int main() { | |
2617 atoi(*tzname); | |
2618 ; return 0; } | |
2619 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2620 if { (eval echo configure:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 2621 rm -rf conftest* |
2622 ac_cv_var_tzname=yes | |
2623 else | |
2624 echo "configure: failed program was:" >&5 | |
2625 cat conftest.$ac_ext >&5 | |
2626 rm -rf conftest* | |
2627 ac_cv_var_tzname=no | |
2628 fi | |
2629 rm -f conftest* | |
2630 fi | |
2631 | |
2632 echo "$ac_t""$ac_cv_var_tzname" 1>&6 | |
2633 if test $ac_cv_var_tzname = yes; then | |
2634 cat >> confdefs.h <<\EOF | |
2635 #define HAVE_TZNAME 1 | |
2636 EOF | |
2637 | |
2638 fi | |
2639 fi | |
2640 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2641 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2642 echo "configure:2643: checking for tm_gmtoff in struct tm" >&5 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2643 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
|
2644 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
|
2645 else |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2646 cat > conftest.$ac_ext <<EOF |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2647 #line 2648 "configure" |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2648 #include "confdefs.h" |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2649 #include <time.h> |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2650 int main() { |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2651 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
|
2652 ; return 0; } |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2653 EOF |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2654 if { (eval echo configure:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2655 rm -rf conftest* |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2656 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
|
2657 else |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2658 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
|
2659 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
|
2660 rm -rf conftest* |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2661 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
|
2662 fi |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2663 rm -f conftest* |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2664 fi |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2665 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2666 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
|
2667 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
|
2668 cat >> confdefs.h <<\EOF |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2669 #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
|
2670 EOF |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2671 |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2672 fi |
25897 | 2673 |
2674 echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2675 echo "configure:2676: checking for working const" >&5 |
25897 | 2676 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
2677 echo $ac_n "(cached) $ac_c" 1>&6 | |
2678 else | |
2679 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2680 #line 2681 "configure" |
25897 | 2681 #include "confdefs.h" |
2682 | |
2683 int main() { | |
2684 | |
2685 /* Ultrix mips cc rejects this. */ | |
2686 typedef int charset[2]; const charset x; | |
2687 /* SunOS 4.1.1 cc rejects this. */ | |
2688 char const *const *ccp; | |
2689 char **p; | |
2690 /* NEC SVR4.0.2 mips cc rejects this. */ | |
2691 struct point {int x, y;}; | |
2692 static struct point const zero = {0,0}; | |
2693 /* AIX XL C 1.02.0.0 rejects this. | |
2694 It does not let you subtract one const X* pointer from another in an arm | |
2695 of an if-expression whose if-part is not a constant expression */ | |
2696 const char *g = "string"; | |
2697 ccp = &g + (g ? g-g : 0); | |
2698 /* HPUX 7.0 cc rejects these. */ | |
2699 ++ccp; | |
2700 p = (char**) ccp; | |
2701 ccp = (char const *const *) p; | |
2702 { /* SCO 3.2v4 cc rejects this. */ | |
2703 char *t; | |
2704 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
2705 | |
2706 *t++ = 0; | |
2707 } | |
2708 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
2709 int x[] = {25, 17}; | |
2710 const int *foo = &x[0]; | |
2711 ++foo; | |
2712 } | |
2713 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
2714 typedef const int *iptr; | |
2715 iptr p = 0; | |
2716 ++p; | |
2717 } | |
2718 { /* AIX XL C 1.02.0.0 rejects this saying | |
2719 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
2720 struct s { int j; const int *ap[3]; }; | |
2721 struct s *b; b->j = 5; | |
2722 } | |
2723 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
2724 const int foo = 10; | |
2725 } | |
2726 | |
2727 ; return 0; } | |
2728 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2729 if { (eval echo configure:2730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 2730 rm -rf conftest* |
2731 ac_cv_c_const=yes | |
2732 else | |
2733 echo "configure: failed program was:" >&5 | |
2734 cat conftest.$ac_ext >&5 | |
2735 rm -rf conftest* | |
2736 ac_cv_c_const=no | |
2737 fi | |
2738 rm -f conftest* | |
2739 fi | |
2740 | |
2741 echo "$ac_t""$ac_cv_c_const" 1>&6 | |
2742 if test $ac_cv_c_const = no; then | |
2743 cat >> confdefs.h <<\EOF | |
2744 #define const | |
2745 EOF | |
2746 | |
2747 fi | |
2748 | |
2749 | |
2750 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2751 echo "configure:2752: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
25897 | 2752 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
2753 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
2754 echo $ac_n "(cached) $ac_c" 1>&6 | |
2755 else | |
2756 cat > conftestmake <<\EOF | |
2757 all: | |
2758 @echo 'ac_maketemp="${MAKE}"' | |
2759 EOF | |
2760 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2761 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
2762 if test -n "$ac_maketemp"; then | |
2763 eval ac_cv_prog_make_${ac_make}_set=yes | |
2764 else | |
2765 eval ac_cv_prog_make_${ac_make}_set=no | |
2766 fi | |
2767 rm -f conftestmake | |
2768 fi | |
2769 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
2770 echo "$ac_t""yes" 1>&6 | |
2771 SET_MAKE= | |
2772 else | |
2773 echo "$ac_t""no" 1>&6 | |
2774 SET_MAKE="MAKE=${MAKE-make}" | |
2775 fi | |
2776 | |
2777 | |
2778 echo $ac_n "checking for long file names""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2779 echo "configure:2780: checking for long file names" >&5 |
25897 | 2780 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then |
2781 echo $ac_n "(cached) $ac_c" 1>&6 | |
2782 else | |
2783 ac_cv_sys_long_file_names=yes | |
2784 # Test for long file names in all the places we know might matter: | |
2785 # . the current directory, where building will happen | |
2786 # $prefix/lib where we will be installing things | |
2787 # $exec_prefix/lib likewise | |
2788 # eval it to expand exec_prefix. | |
2789 # $TMPDIR if set, where it might want to write temporary files | |
2790 # if $TMPDIR is not set: | |
2791 # /tmp where it might want to write temporary files | |
2792 # /var/tmp likewise | |
2793 # /usr/tmp likewise | |
2794 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
2795 ac_tmpdirs="$TMPDIR" | |
2796 else | |
2797 ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
2798 fi | |
2799 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
2800 test -d $ac_dir || continue | |
2801 test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
2802 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null | |
2803 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null | |
2804 val=`cat $ac_dir/conftest9012345 2>/dev/null` | |
2805 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then | |
2806 ac_cv_sys_long_file_names=no | |
2807 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
2808 break | |
2809 fi | |
2810 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null | |
2811 done | |
2812 fi | |
2813 | |
2814 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6 | |
2815 if test $ac_cv_sys_long_file_names = yes; then | |
2816 cat >> confdefs.h <<\EOF | |
2817 #define HAVE_LONG_FILE_NAMES 1 | |
2818 EOF | |
2819 | |
2820 fi | |
2821 | |
2822 | |
2823 #### Choose a window system. | |
2824 | |
2825 # If we find X, set shell vars x_includes and x_libraries to the | |
2826 # paths, otherwise set no_x=yes. | |
2827 # Uses ac_ vars as temps to allow command line to override cache and checks. | |
2828 # --without-x overrides everything else, but does not touch the cache. | |
2829 echo $ac_n "checking for X""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2830 echo "configure:2831: checking for X" >&5 |
25897 | 2831 |
2832 # Check whether --with-x or --without-x was given. | |
2833 if test "${with_x+set}" = set; then | |
2834 withval="$with_x" | |
2835 : | |
2836 fi | |
2837 | |
2838 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
2839 if test "x$with_x" = xno; then | |
2840 # The user explicitly disabled X. | |
2841 have_x=disabled | |
2842 else | |
2843 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
2844 # Both variables are already set. | |
2845 have_x=yes | |
2846 else | |
2847 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
2848 echo $ac_n "(cached) $ac_c" 1>&6 | |
2849 else | |
2850 # One or both of the vars are not set, and there is no cached value. | |
2851 ac_x_includes=NO ac_x_libraries=NO | |
2852 rm -fr conftestdir | |
2853 if mkdir conftestdir; then | |
2854 cd conftestdir | |
2855 # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
2856 cat > Imakefile <<'EOF' | |
2857 acfindx: | |
2858 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
2859 EOF | |
2860 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
2861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2862 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
2863 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
2864 for ac_extension in a so sl; do | |
2865 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
2866 test -f $ac_im_libdir/libX11.$ac_extension; then | |
2867 ac_im_usrlibdir=$ac_im_libdir; break | |
2868 fi | |
2869 done | |
2870 # Screen out bogus values from the imake configuration. They are | |
2871 # bogus both because they are the default anyway, and because | |
2872 # using them would break gcc on systems where it needs fixed includes. | |
2873 case "$ac_im_incroot" in | |
2874 /usr/include) ;; | |
2875 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
2876 esac | |
2877 case "$ac_im_usrlibdir" in | |
2878 /usr/lib | /lib) ;; | |
2879 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
2880 esac | |
2881 fi | |
2882 cd .. | |
2883 rm -fr conftestdir | |
2884 fi | |
2885 | |
2886 if test "$ac_x_includes" = NO; then | |
2887 # Guess where to find include files, by looking for this one X11 .h file. | |
2888 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
2889 | |
2890 # First, try using that file with no special directory specified. | |
2891 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2892 #line 2893 "configure" |
25897 | 2893 #include "confdefs.h" |
2894 #include <$x_direct_test_include> | |
2895 EOF | |
2896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2897 { (eval echo configure:2898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
25897 | 2898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2899 if test -z "$ac_err"; then | |
2900 rm -rf conftest* | |
2901 # We can compile using X headers with no special include directory. | |
2902 ac_x_includes= | |
2903 else | |
2904 echo "$ac_err" >&5 | |
2905 echo "configure: failed program was:" >&5 | |
2906 cat conftest.$ac_ext >&5 | |
2907 rm -rf conftest* | |
2908 # Look for the header file in a standard set of common directories. | |
2909 # Check X11 before X11Rn because it is often a symlink to the current release. | |
2910 for ac_dir in \ | |
2911 /usr/X11/include \ | |
2912 /usr/X11R6/include \ | |
2913 /usr/X11R5/include \ | |
2914 /usr/X11R4/include \ | |
2915 \ | |
2916 /usr/include/X11 \ | |
2917 /usr/include/X11R6 \ | |
2918 /usr/include/X11R5 \ | |
2919 /usr/include/X11R4 \ | |
2920 \ | |
2921 /usr/local/X11/include \ | |
2922 /usr/local/X11R6/include \ | |
2923 /usr/local/X11R5/include \ | |
2924 /usr/local/X11R4/include \ | |
2925 \ | |
2926 /usr/local/include/X11 \ | |
2927 /usr/local/include/X11R6 \ | |
2928 /usr/local/include/X11R5 \ | |
2929 /usr/local/include/X11R4 \ | |
2930 \ | |
2931 /usr/X386/include \ | |
2932 /usr/x386/include \ | |
2933 /usr/XFree86/include/X11 \ | |
2934 \ | |
2935 /usr/include \ | |
2936 /usr/local/include \ | |
2937 /usr/unsupported/include \ | |
2938 /usr/athena/include \ | |
2939 /usr/local/x11r5/include \ | |
2940 /usr/lpp/Xamples/include \ | |
2941 \ | |
2942 /usr/openwin/include \ | |
2943 /usr/openwin/share/include \ | |
2944 ; \ | |
2945 do | |
2946 if test -r "$ac_dir/$x_direct_test_include"; then | |
2947 ac_x_includes=$ac_dir | |
2948 break | |
2949 fi | |
2950 done | |
2951 fi | |
2952 rm -f conftest* | |
2953 fi # $ac_x_includes = NO | |
2954 | |
2955 if test "$ac_x_libraries" = NO; then | |
2956 # Check for the libraries. | |
2957 | |
2958 test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
2959 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
2960 | |
2961 # See if we find them without any special options. | |
2962 # Don't add to $LIBS permanently. | |
2963 ac_save_LIBS="$LIBS" | |
2964 LIBS="-l$x_direct_test_library $LIBS" | |
2965 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2966 #line 2967 "configure" |
25897 | 2967 #include "confdefs.h" |
2968 | |
2969 int main() { | |
2970 ${x_direct_test_function}() | |
2971 ; return 0; } | |
2972 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
2973 if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 2974 rm -rf conftest* |
2975 LIBS="$ac_save_LIBS" | |
2976 # We can link X programs with no special library path. | |
2977 ac_x_libraries= | |
2978 else | |
2979 echo "configure: failed program was:" >&5 | |
2980 cat conftest.$ac_ext >&5 | |
2981 rm -rf conftest* | |
2982 LIBS="$ac_save_LIBS" | |
2983 # First see if replacing the include by lib works. | |
2984 # Check X11 before X11Rn because it is often a symlink to the current release. | |
2985 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
2986 /usr/X11/lib \ | |
2987 /usr/X11R6/lib \ | |
2988 /usr/X11R5/lib \ | |
2989 /usr/X11R4/lib \ | |
2990 \ | |
2991 /usr/lib/X11 \ | |
2992 /usr/lib/X11R6 \ | |
2993 /usr/lib/X11R5 \ | |
2994 /usr/lib/X11R4 \ | |
2995 \ | |
2996 /usr/local/X11/lib \ | |
2997 /usr/local/X11R6/lib \ | |
2998 /usr/local/X11R5/lib \ | |
2999 /usr/local/X11R4/lib \ | |
3000 \ | |
3001 /usr/local/lib/X11 \ | |
3002 /usr/local/lib/X11R6 \ | |
3003 /usr/local/lib/X11R5 \ | |
3004 /usr/local/lib/X11R4 \ | |
3005 \ | |
3006 /usr/X386/lib \ | |
3007 /usr/x386/lib \ | |
3008 /usr/XFree86/lib/X11 \ | |
3009 \ | |
3010 /usr/lib \ | |
3011 /usr/local/lib \ | |
3012 /usr/unsupported/lib \ | |
3013 /usr/athena/lib \ | |
3014 /usr/local/x11r5/lib \ | |
3015 /usr/lpp/Xamples/lib \ | |
3016 /lib/usr/lib/X11 \ | |
3017 \ | |
3018 /usr/openwin/lib \ | |
3019 /usr/openwin/share/lib \ | |
3020 ; \ | |
3021 do | |
3022 for ac_extension in a so sl; do | |
3023 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
3024 ac_x_libraries=$ac_dir | |
3025 break 2 | |
3026 fi | |
3027 done | |
3028 done | |
3029 fi | |
3030 rm -f conftest* | |
3031 fi # $ac_x_libraries = NO | |
3032 | |
3033 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
3034 # Didn't find X anywhere. Cache the known absence of X. | |
3035 ac_cv_have_x="have_x=no" | |
3036 else | |
3037 # Record where we found X for the cache. | |
3038 ac_cv_have_x="have_x=yes \ | |
3039 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
3040 fi | |
3041 fi | |
3042 fi | |
3043 eval "$ac_cv_have_x" | |
3044 fi # $with_x != no | |
3045 | |
3046 if test "$have_x" != yes; then | |
3047 echo "$ac_t""$have_x" 1>&6 | |
3048 no_x=yes | |
3049 else | |
3050 # If each of the values was on the command line, it overrides each guess. | |
3051 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
3052 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
3053 # Update the cache value to reflect the command line values. | |
3054 ac_cv_have_x="have_x=yes \ | |
3055 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
3056 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
3057 fi | |
3058 | |
3059 if test "$no_x" = yes; then | |
3060 window_system=none | |
3061 else | |
3062 window_system=x11 | |
3063 fi | |
3064 | |
3065 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
3066 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
3067 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
3068 x_default_search_path="" | |
3069 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
3070 x_search_path="${x_library}/X11/%L/%T/%N%C%S:\ | |
3071 ${x_library}/X11/%L/%T/%N%C%S:${x_libary}/X11/%l/%T/%N%C%S:\ | |
3072 ${x_library}/X11/%T/%N%C%S:${x_library}/X11/%L/%T/%N%S:\ | |
3073 ${x_library}/X11/%l/%T/%N%S:${x_library}/X11/%T/%N%S" | |
3074 if test x"${x_default_search_path}" = x; then | |
3075 x_default_search_path=${x_search_path} | |
3076 else | |
3077 x_default_search_path="${x_search_path}:${x_default_search_path}" | |
3078 fi | |
3079 done | |
3080 fi | |
3081 if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
3082 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
3083 fi | |
3084 | |
3085 if test x"${x_includes}" = x; then | |
3086 bitmapdir=/usr/include/X11/bitmaps | |
3087 else | |
3088 # accumulate include directories that have X11 bitmap subdirectories | |
3089 bmd_acc="dummyval" | |
3090 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
3091 if test -d "${bmd}/X11/bitmaps"; then | |
3092 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
3093 elif test -d "${bmd}/bitmaps"; then | |
3094 bmd_acc="${bmd_acc}:${bmd}/bitmaps" | |
3095 fi | |
3096 done | |
3097 if test ${bmd_acc} != "dummyval"; then | |
3098 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
3099 fi | |
3100 fi | |
3101 | |
3102 case "${window_system}" in | |
3103 x11 ) | |
3104 HAVE_X_WINDOWS=yes | |
3105 HAVE_X11=yes | |
3106 case "${with_x_toolkit}" in | |
3107 athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
3108 motif ) USE_X_TOOLKIT=MOTIF ;; | |
3109 no ) USE_X_TOOLKIT=none ;; | |
3110 * ) USE_X_TOOLKIT=maybe ;; | |
3111 esac | |
3112 ;; | |
3113 none ) | |
3114 HAVE_X_WINDOWS=no | |
3115 HAVE_X11=no | |
3116 USE_X_TOOLKIT=none | |
3117 ;; | |
3118 esac | |
3119 | |
3120 ### If we're using X11, we should use the X menu package. | |
3121 HAVE_MENUS=no | |
3122 case ${HAVE_X11} in | |
3123 yes ) HAVE_MENUS=yes ;; | |
3124 esac | |
3125 | |
3126 if test "${opsys}" = "hpux9"; then | |
3127 case "${x_libraries}" in | |
3128 *X11R4* ) | |
3129 opsysfile="s/hpux9-x11r4.h" | |
3130 ;; | |
3131 esac | |
3132 fi | |
3133 | |
3134 if test "${opsys}" = "hpux9shr"; then | |
3135 case "${x_libraries}" in | |
3136 *X11R4* ) | |
3137 opsysfile="s/hpux9shxr4.h" | |
3138 ;; | |
3139 esac | |
3140 fi | |
3141 | |
3142 #### Extract some information from the operating system and machine files. | |
3143 | |
3144 echo "checking the machine- and system-dependent files to find out | |
3145 - which libraries the lib-src programs will want, and | |
3146 - whether the GNU malloc routines are usable" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3147 echo "configure:3148: checking the machine- and system-dependent files to find out |
25897 | 3148 - which libraries the lib-src programs will want, and |
3149 - whether the GNU malloc routines are usable" >&5 | |
3150 | |
3151 ### First figure out CFLAGS (which we use for running the compiler here) | |
3152 ### and REAL_CFLAGS (which we use for real compilation). | |
3153 ### The two are the same except on a few systems, where they are made | |
3154 ### different to work around various lossages. For example, | |
3155 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
3156 ### as implying static linking. | |
3157 | |
3158 ### If the CFLAGS env var is specified, we use that value | |
3159 ### instead of the default. | |
3160 | |
3161 ### It's not important that this name contain the PID; you can't run | |
3162 ### two configures in the same directory and have anything work | |
3163 ### anyway. | |
3164 tempcname="conftest.c" | |
3165 | |
3166 echo ' | |
3167 #include "'${srcdir}'/src/'${opsysfile}'" | |
3168 #include "'${srcdir}'/src/'${machfile}'" | |
3169 #ifndef LIBS_MACHINE | |
3170 #define LIBS_MACHINE | |
3171 #endif | |
3172 #ifndef LIBS_SYSTEM | |
3173 #define LIBS_SYSTEM | |
3174 #endif | |
3175 #ifndef C_SWITCH_SYSTEM | |
3176 #define C_SWITCH_SYSTEM | |
3177 #endif | |
3178 #ifndef C_SWITCH_MACHINE | |
3179 #define C_SWITCH_MACHINE | |
3180 #endif | |
3181 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
3182 configure___ c_switch_system=C_SWITCH_SYSTEM | |
3183 configure___ c_switch_machine=C_SWITCH_MACHINE | |
3184 | |
3185 #ifndef LIB_X11_LIB | |
3186 #define LIB_X11_LIB -lX11 | |
3187 #endif | |
3188 | |
3189 #ifndef LIBX11_MACHINE | |
3190 #define LIBX11_MACHINE | |
3191 #endif | |
3192 | |
3193 #ifndef LIBX11_SYSTEM | |
3194 #define LIBX11_SYSTEM | |
3195 #endif | |
3196 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
3197 | |
3198 #ifdef UNEXEC | |
3199 configure___ unexec=UNEXEC | |
3200 #else | |
3201 configure___ unexec=unexec.o | |
3202 #endif | |
3203 | |
3204 #ifdef SYSTEM_MALLOC | |
3205 configure___ system_malloc=yes | |
3206 #else | |
3207 configure___ system_malloc=no | |
3208 #endif | |
3209 | |
3210 #ifndef C_DEBUG_SWITCH | |
3211 #define C_DEBUG_SWITCH -g | |
3212 #endif | |
3213 | |
3214 #ifndef C_OPTIMIZE_SWITCH | |
3215 #define C_OPTIMIZE_SWITCH -O | |
3216 #endif | |
3217 | |
3218 #ifndef LD_SWITCH_MACHINE | |
3219 #define LD_SWITCH_MACHINE | |
3220 #endif | |
3221 | |
3222 #ifndef LD_SWITCH_SYSTEM | |
3223 #define LD_SWITCH_SYSTEM | |
3224 #endif | |
3225 | |
3226 #ifndef LD_SWITCH_X_SITE_AUX | |
3227 #define LD_SWITCH_X_SITE_AUX | |
3228 #endif | |
3229 | |
3230 configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
3231 configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
3232 | |
3233 #ifdef THIS_IS_CONFIGURE | |
3234 | |
3235 /* Get the CFLAGS for tests in configure. */ | |
3236 #ifdef __GNUC__ | |
3237 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3238 #else | |
3239 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3240 #endif | |
3241 | |
3242 #else /* not THIS_IS_CONFIGURE */ | |
3243 | |
3244 /* Get the CFLAGS for real compilation. */ | |
3245 #ifdef __GNUC__ | |
3246 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3247 #else | |
3248 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3249 #endif | |
3250 | |
3251 #endif /* not THIS_IS_CONFIGURE */ | |
3252 ' > ${tempcname} | |
3253 | |
3254 # The value of CPP is a quoted variable reference, so we need to do this | |
3255 # to get its actual value... | |
3256 CPP=`eval "echo $CPP"` | |
3257 eval `${CPP} -Isrc ${tempcname} \ | |
3258 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3259 if test "x$SPECIFIED_CFLAGS" = x; then | |
3260 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
3261 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3262 else | |
3263 REAL_CFLAGS="$CFLAGS" | |
3264 fi | |
3265 rm ${tempcname} | |
3266 | |
3267 ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
3268 | |
3269 ### Compute the unexec source name from the object name. | |
3270 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
3271 | |
3272 # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
3273 # Assume not, until told otherwise. | |
3274 GNU_MALLOC=yes | |
3275 doug_lea_malloc=yes | |
3276 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3277 echo "configure:3278: checking for malloc_get_state" >&5 |
25897 | 3278 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then |
3279 echo $ac_n "(cached) $ac_c" 1>&6 | |
3280 else | |
3281 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3282 #line 3283 "configure" |
25897 | 3283 #include "confdefs.h" |
3284 /* System header to define __stub macros and hopefully few prototypes, | |
3285 which can conflict with char malloc_get_state(); below. */ | |
3286 #include <assert.h> | |
3287 /* Override any gcc2 internal prototype to avoid an error. */ | |
3288 /* We use char because int might match the return type of a gcc2 | |
3289 builtin and then its argument prototype would still apply. */ | |
3290 char malloc_get_state(); | |
3291 | |
3292 int main() { | |
3293 | |
3294 /* The GNU C library defines this for functions which it implements | |
3295 to always fail with ENOSYS. Some functions are actually named | |
3296 something starting with __ and the normal name is an alias. */ | |
3297 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
3298 choke me | |
3299 #else | |
3300 malloc_get_state(); | |
3301 #endif | |
3302 | |
3303 ; return 0; } | |
3304 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3305 if { (eval echo configure:3306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3306 rm -rf conftest* |
3307 eval "ac_cv_func_malloc_get_state=yes" | |
3308 else | |
3309 echo "configure: failed program was:" >&5 | |
3310 cat conftest.$ac_ext >&5 | |
3311 rm -rf conftest* | |
3312 eval "ac_cv_func_malloc_get_state=no" | |
3313 fi | |
3314 rm -f conftest* | |
3315 fi | |
3316 | |
3317 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then | |
3318 echo "$ac_t""yes" 1>&6 | |
3319 : | |
3320 else | |
3321 echo "$ac_t""no" 1>&6 | |
3322 doug_lea_malloc=no | |
3323 fi | |
3324 | |
3325 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3326 echo "configure:3327: checking for malloc_set_state" >&5 |
25897 | 3327 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then |
3328 echo $ac_n "(cached) $ac_c" 1>&6 | |
3329 else | |
3330 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3331 #line 3332 "configure" |
25897 | 3332 #include "confdefs.h" |
3333 /* System header to define __stub macros and hopefully few prototypes, | |
3334 which can conflict with char malloc_set_state(); below. */ | |
3335 #include <assert.h> | |
3336 /* Override any gcc2 internal prototype to avoid an error. */ | |
3337 /* We use char because int might match the return type of a gcc2 | |
3338 builtin and then its argument prototype would still apply. */ | |
3339 char malloc_set_state(); | |
3340 | |
3341 int main() { | |
3342 | |
3343 /* The GNU C library defines this for functions which it implements | |
3344 to always fail with ENOSYS. Some functions are actually named | |
3345 something starting with __ and the normal name is an alias. */ | |
3346 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
3347 choke me | |
3348 #else | |
3349 malloc_set_state(); | |
3350 #endif | |
3351 | |
3352 ; return 0; } | |
3353 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3354 if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3355 rm -rf conftest* |
3356 eval "ac_cv_func_malloc_set_state=yes" | |
3357 else | |
3358 echo "configure: failed program was:" >&5 | |
3359 cat conftest.$ac_ext >&5 | |
3360 rm -rf conftest* | |
3361 eval "ac_cv_func_malloc_set_state=no" | |
3362 fi | |
3363 rm -f conftest* | |
3364 fi | |
3365 | |
3366 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then | |
3367 echo "$ac_t""yes" 1>&6 | |
3368 : | |
3369 else | |
3370 echo "$ac_t""no" 1>&6 | |
3371 doug_lea_malloc=no | |
3372 fi | |
3373 | |
3374 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3375 echo "configure:3376: checking whether __after_morecore_hook exists" >&5 |
25897 | 3376 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then |
3377 echo $ac_n "(cached) $ac_c" 1>&6 | |
3378 else | |
3379 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3380 #line 3381 "configure" |
25897 | 3381 #include "confdefs.h" |
3382 extern void (* __after_morecore_hook)(); | |
3383 int main() { | |
3384 __after_morecore_hook = 0 | |
3385 ; return 0; } | |
3386 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3387 if { (eval echo configure:3388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3388 rm -rf conftest* |
3389 emacs_cv_var___after_morecore_hook=yes | |
3390 else | |
3391 echo "configure: failed program was:" >&5 | |
3392 cat conftest.$ac_ext >&5 | |
3393 rm -rf conftest* | |
3394 emacs_cv_var___after_morecore_hook=no | |
3395 fi | |
3396 rm -f conftest* | |
3397 fi | |
3398 | |
3399 echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6 | |
3400 if test $emacs_cv_var___after_morecore_hook = no; then | |
3401 doug_lea_malloc=no | |
3402 fi | |
3403 if test "${system_malloc}" = "yes"; then | |
3404 GNU_MALLOC=no | |
3405 GNU_MALLOC_reason=" | |
3406 (The GNU allocators don't work with this system configuration.)" | |
3407 fi | |
3408 if test "$doug_lea_malloc" = "yes" ; then | |
3409 if test "$GNU_MALLOC" = yes ; then | |
3410 GNU_MALLOC_reason=" | |
3411 (Using Doug Lea's new malloc from the GNU C Library.)" | |
3412 fi | |
3413 cat >> confdefs.h <<\EOF | |
3414 #define DOUG_LEA_MALLOC 1 | |
3415 EOF | |
3416 | |
3417 fi | |
3418 | |
3419 if test x"${REL_ALLOC}" = x; then | |
3420 REL_ALLOC=${GNU_MALLOC} | |
3421 fi | |
3422 | |
3423 LISP_FLOAT_TYPE=yes | |
3424 | |
3425 | |
3426 #### Add the libraries to LIBS and check for some functions. | |
3427 | |
3428 if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
3429 CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
3430 else | |
3431 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
3432 fi | |
3433 | |
3434 LIBS="$libsrc_libs $LIBS" | |
3435 | |
3436 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3437 echo "configure:3438: checking for dnet_ntoa in -ldnet" >&5 |
25897 | 3438 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
3439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3440 echo $ac_n "(cached) $ac_c" 1>&6 | |
3441 else | |
3442 ac_save_LIBS="$LIBS" | |
3443 LIBS="-ldnet $LIBS" | |
3444 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3445 #line 3446 "configure" |
25897 | 3446 #include "confdefs.h" |
3447 /* Override any gcc2 internal prototype to avoid an error. */ | |
3448 /* We use char because int might match the return type of a gcc2 | |
3449 builtin and then its argument prototype would still apply. */ | |
3450 char dnet_ntoa(); | |
3451 | |
3452 int main() { | |
3453 dnet_ntoa() | |
3454 ; return 0; } | |
3455 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3456 if { (eval echo configure:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3457 rm -rf conftest* |
3458 eval "ac_cv_lib_$ac_lib_var=yes" | |
3459 else | |
3460 echo "configure: failed program was:" >&5 | |
3461 cat conftest.$ac_ext >&5 | |
3462 rm -rf conftest* | |
3463 eval "ac_cv_lib_$ac_lib_var=no" | |
3464 fi | |
3465 rm -f conftest* | |
3466 LIBS="$ac_save_LIBS" | |
3467 | |
3468 fi | |
3469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3470 echo "$ac_t""yes" 1>&6 | |
3471 ac_tr_lib=HAVE_LIB`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3472 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3473 cat >> confdefs.h <<EOF | |
3474 #define $ac_tr_lib 1 | |
3475 EOF | |
3476 | |
3477 LIBS="-ldnet $LIBS" | |
3478 | |
3479 else | |
3480 echo "$ac_t""no" 1>&6 | |
3481 fi | |
3482 | |
3483 | |
3484 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3485 echo "configure:3486: checking for main in -lXbsd" >&5 |
25897 | 3486 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` |
3487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3488 echo $ac_n "(cached) $ac_c" 1>&6 | |
3489 else | |
3490 ac_save_LIBS="$LIBS" | |
3491 LIBS="-lXbsd $LIBS" | |
3492 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3493 #line 3494 "configure" |
25897 | 3494 #include "confdefs.h" |
3495 | |
3496 int main() { | |
3497 main() | |
3498 ; return 0; } | |
3499 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3500 if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3501 rm -rf conftest* |
3502 eval "ac_cv_lib_$ac_lib_var=yes" | |
3503 else | |
3504 echo "configure: failed program was:" >&5 | |
3505 cat conftest.$ac_ext >&5 | |
3506 rm -rf conftest* | |
3507 eval "ac_cv_lib_$ac_lib_var=no" | |
3508 fi | |
3509 rm -f conftest* | |
3510 LIBS="$ac_save_LIBS" | |
3511 | |
3512 fi | |
3513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3514 echo "$ac_t""yes" 1>&6 | |
3515 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
3516 else | |
3517 echo "$ac_t""no" 1>&6 | |
3518 fi | |
3519 | |
3520 | |
3521 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3522 echo "configure:3523: checking for cma_open in -lpthreads" >&5 |
25897 | 3523 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` |
3524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3525 echo $ac_n "(cached) $ac_c" 1>&6 | |
3526 else | |
3527 ac_save_LIBS="$LIBS" | |
3528 LIBS="-lpthreads $LIBS" | |
3529 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3530 #line 3531 "configure" |
25897 | 3531 #include "confdefs.h" |
3532 /* Override any gcc2 internal prototype to avoid an error. */ | |
3533 /* We use char because int might match the return type of a gcc2 | |
3534 builtin and then its argument prototype would still apply. */ | |
3535 char cma_open(); | |
3536 | |
3537 int main() { | |
3538 cma_open() | |
3539 ; return 0; } | |
3540 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3541 if { (eval echo configure:3542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3542 rm -rf conftest* |
3543 eval "ac_cv_lib_$ac_lib_var=yes" | |
3544 else | |
3545 echo "configure: failed program was:" >&5 | |
3546 cat conftest.$ac_ext >&5 | |
3547 rm -rf conftest* | |
3548 eval "ac_cv_lib_$ac_lib_var=no" | |
3549 fi | |
3550 rm -f conftest* | |
3551 LIBS="$ac_save_LIBS" | |
3552 | |
3553 fi | |
3554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3555 echo "$ac_t""yes" 1>&6 | |
3556 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3557 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3558 cat >> confdefs.h <<EOF | |
3559 #define $ac_tr_lib 1 | |
3560 EOF | |
3561 | |
3562 LIBS="-lpthreads $LIBS" | |
3563 | |
3564 else | |
3565 echo "$ac_t""no" 1>&6 | |
3566 fi | |
3567 | |
3568 | |
3569 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3570 echo "configure:3571: checking for XFree86 in /usr/X386" >&5 |
25897 | 3571 if test -d /usr/X386/include; then |
3572 HAVE_XFREE386=yes | |
3573 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
3574 else | |
3575 HAVE_XFREE386=no | |
3576 fi | |
3577 echo "$ac_t""$HAVE_XFREE386" 1>&6 | |
3578 | |
3579 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | |
3580 # for the tests that follow. We set it back to REAL_CFLAGS later on. | |
3581 | |
3582 if test "${HAVE_X11}" = "yes"; then | |
3583 DEFS="$C_SWITCH_X_SITE $DEFS" | |
3584 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
3585 LIBS="$LIBX $LIBS" | |
3586 CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
3587 | |
3588 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
3589 # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
3590 # but it's more convenient here to set LD_RUN_PATH | |
3591 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
3592 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
3593 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
3594 export LD_RUN_PATH | |
3595 fi | |
3596 | |
3597 if test "${opsys}" = "gnu-linux"; then | |
3598 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3599 echo "configure:3600: checking whether X on GNU/Linux needs -b to link" >&5 |
25897 | 3600 cat > conftest.$ac_ext <<EOF |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3601 #line 3602 "configure" |
25897 | 3602 #include "confdefs.h" |
3603 | |
3604 int main() { | |
3605 XOpenDisplay ("foo"); | |
3606 ; return 0; } | |
3607 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3608 if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3609 rm -rf conftest* |
3610 xlinux_first_failure=no | |
3611 else | |
3612 echo "configure: failed program was:" >&5 | |
3613 cat conftest.$ac_ext >&5 | |
3614 rm -rf conftest* | |
3615 xlinux_first_failure=yes | |
3616 fi | |
3617 rm -f conftest* | |
3618 if test "${xlinux_first_failure}" = "yes"; then | |
3619 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
3620 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
3621 OLD_CPPFLAGS="$CPPFLAGS" | |
3622 OLD_LIBS="$LIBS" | |
3623 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
3624 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
3625 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
3626 LIBS="$LIBS -b i486-linuxaout" | |
3627 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3628 #line 3629 "configure" |
25897 | 3629 #include "confdefs.h" |
3630 | |
3631 int main() { | |
3632 XOpenDisplay ("foo"); | |
3633 ; return 0; } | |
3634 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3635 if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3636 rm -rf conftest* |
3637 xlinux_second_failure=no | |
3638 else | |
3639 echo "configure: failed program was:" >&5 | |
3640 cat conftest.$ac_ext >&5 | |
3641 rm -rf conftest* | |
3642 xlinux_second_failure=yes | |
3643 fi | |
3644 rm -f conftest* | |
3645 if test "${xlinux_second_failure}" = "yes"; then | |
3646 # If we get the same failure with -b, there is no use adding -b. | |
3647 # So take it out. This plays safe. | |
3648 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
3649 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
3650 CPPFLAGS="$OLD_CPPFLAGS" | |
3651 LIBS="$OLD_LIBS" | |
3652 echo "$ac_t""no" 1>&6 | |
3653 else | |
3654 echo "$ac_t""yes" 1>&6 | |
3655 fi | |
3656 else | |
3657 echo "$ac_t""no" 1>&6 | |
3658 fi | |
3659 fi | |
3660 | |
3661 for ac_func in XrmSetDatabase XScreenResourceString \ | |
3662 XScreenNumberOfScreen XSetWMProtocols | |
3663 do | |
3664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3665 echo "configure:3666: checking for $ac_func" >&5 |
25897 | 3666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3667 echo $ac_n "(cached) $ac_c" 1>&6 | |
3668 else | |
3669 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3670 #line 3671 "configure" |
25897 | 3671 #include "confdefs.h" |
3672 /* System header to define __stub macros and hopefully few prototypes, | |
3673 which can conflict with char $ac_func(); below. */ | |
3674 #include <assert.h> | |
3675 /* Override any gcc2 internal prototype to avoid an error. */ | |
3676 /* We use char because int might match the return type of a gcc2 | |
3677 builtin and then its argument prototype would still apply. */ | |
3678 char $ac_func(); | |
3679 | |
3680 int main() { | |
3681 | |
3682 /* The GNU C library defines this for functions which it implements | |
3683 to always fail with ENOSYS. Some functions are actually named | |
3684 something starting with __ and the normal name is an alias. */ | |
3685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3686 choke me | |
3687 #else | |
3688 $ac_func(); | |
3689 #endif | |
3690 | |
3691 ; return 0; } | |
3692 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3694 rm -rf conftest* |
3695 eval "ac_cv_func_$ac_func=yes" | |
3696 else | |
3697 echo "configure: failed program was:" >&5 | |
3698 cat conftest.$ac_ext >&5 | |
3699 rm -rf conftest* | |
3700 eval "ac_cv_func_$ac_func=no" | |
3701 fi | |
3702 rm -f conftest* | |
3703 fi | |
3704 | |
3705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3706 echo "$ac_t""yes" 1>&6 | |
3707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3708 cat >> confdefs.h <<EOF | |
3709 #define $ac_tr_func 1 | |
3710 EOF | |
3711 | |
3712 else | |
3713 echo "$ac_t""no" 1>&6 | |
3714 fi | |
3715 done | |
3716 | |
3717 fi | |
3718 | |
3719 if test "${window_system}" = "x11"; then | |
3720 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3721 echo "configure:3722: checking X11 version 6" >&5 |
25897 | 3722 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then |
3723 echo $ac_n "(cached) $ac_c" 1>&6 | |
3724 else | |
3725 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3726 #line 3727 "configure" |
25897 | 3727 #include "confdefs.h" |
3728 #include <X11/Xlib.h> | |
3729 int main() { | |
3730 #if XlibSpecificationRelease < 6 | |
3731 fail; | |
3732 #endif | |
3733 | |
3734 ; return 0; } | |
3735 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3736 if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3737 rm -rf conftest* |
3738 emacs_cv_x11_version_6=yes | |
3739 else | |
3740 echo "configure: failed program was:" >&5 | |
3741 cat conftest.$ac_ext >&5 | |
3742 rm -rf conftest* | |
3743 emacs_cv_x11_version_6=no | |
3744 fi | |
3745 rm -f conftest* | |
3746 fi | |
3747 | |
3748 if test $emacs_cv_x11_version_6 = yes; then | |
3749 echo "$ac_t""6 or newer" 1>&6 | |
3750 cat >> confdefs.h <<\EOF | |
3751 #define HAVE_X11R6 1 | |
3752 EOF | |
3753 | |
3754 else | |
3755 echo "$ac_t""before 6" 1>&6 | |
3756 fi | |
3757 fi | |
3758 | |
3759 if test "${window_system}" = "x11"; then | |
3760 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3761 echo "configure:3762: checking X11 version 5" >&5 |
25897 | 3762 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then |
3763 echo $ac_n "(cached) $ac_c" 1>&6 | |
3764 else | |
3765 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3766 #line 3767 "configure" |
25897 | 3767 #include "confdefs.h" |
3768 #include <X11/Xlib.h> | |
3769 int main() { | |
3770 #if XlibSpecificationRelease < 5 | |
3771 fail; | |
3772 #endif | |
3773 | |
3774 ; return 0; } | |
3775 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3776 if { (eval echo configure:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3777 rm -rf conftest* |
3778 emacs_cv_x11_version_5=yes | |
3779 else | |
3780 echo "configure: failed program was:" >&5 | |
3781 cat conftest.$ac_ext >&5 | |
3782 rm -rf conftest* | |
3783 emacs_cv_x11_version_5=no | |
3784 fi | |
3785 rm -f conftest* | |
3786 fi | |
3787 | |
3788 if test $emacs_cv_x11_version_5 = yes; then | |
3789 echo "$ac_t""5 or newer" 1>&6 | |
3790 HAVE_X11R5=yes | |
3791 cat >> confdefs.h <<\EOF | |
3792 #define HAVE_X11R5 1 | |
3793 EOF | |
3794 | |
3795 else | |
3796 HAVE_X11R5=no | |
3797 echo "$ac_t""before 5" 1>&6 | |
3798 fi | |
3799 fi | |
3800 | |
3801 if test x"${USE_X_TOOLKIT}" = xmaybe; then | |
3802 if test x"${HAVE_X11R5}" = xyes; then | |
3803 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3804 echo "configure:3805: checking X11 version 5 with Xaw" >&5 |
25897 | 3805 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then |
3806 echo $ac_n "(cached) $ac_c" 1>&6 | |
3807 else | |
3808 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3809 #line 3810 "configure" |
25897 | 3810 #include "confdefs.h" |
3811 | |
3812 #include <X11/Intrinsic.h> | |
3813 #include <X11/Xaw/Simple.h> | |
3814 int main() { | |
3815 | |
3816 ; return 0; } | |
3817 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3818 if { (eval echo configure:3819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3819 rm -rf conftest* |
3820 emacs_cv_x11_version_5_with_xaw=yes | |
3821 else | |
3822 echo "configure: failed program was:" >&5 | |
3823 cat conftest.$ac_ext >&5 | |
3824 rm -rf conftest* | |
3825 emacs_cv_x11_version_5_with_xaw=no | |
3826 fi | |
3827 rm -f conftest* | |
3828 fi | |
3829 | |
3830 if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
3831 echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6 | |
3832 USE_X_TOOLKIT=LUCID | |
3833 else | |
3834 echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6 | |
3835 USE_X_TOOLKIT=none | |
3836 fi | |
3837 else | |
3838 USE_X_TOOLKIT=none | |
3839 fi | |
3840 fi | |
3841 | |
3842 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
3843 | |
3844 if test "${USE_X_TOOLKIT}" != "none"; then | |
3845 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3846 echo "configure:3847: checking X11 toolkit version" >&5 |
25897 | 3847 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then |
3848 echo $ac_n "(cached) $ac_c" 1>&6 | |
3849 else | |
3850 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3851 #line 3852 "configure" |
25897 | 3852 #include "confdefs.h" |
3853 #include <X11/Intrinsic.h> | |
3854 int main() { | |
3855 #if XtSpecificationRelease < 6 | |
3856 fail; | |
3857 #endif | |
3858 | |
3859 ; return 0; } | |
3860 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3861 if { (eval echo configure:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3862 rm -rf conftest* |
3863 emacs_cv_x11_toolkit_version_6=yes | |
3864 else | |
3865 echo "configure: failed program was:" >&5 | |
3866 cat conftest.$ac_ext >&5 | |
3867 rm -rf conftest* | |
3868 emacs_cv_x11_toolkit_version_6=no | |
3869 fi | |
3870 rm -f conftest* | |
3871 fi | |
3872 | |
3873 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
3874 if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
3875 echo "$ac_t""6 or newer" 1>&6 | |
3876 cat >> confdefs.h <<\EOF | |
3877 #define HAVE_X11XTR6 1 | |
3878 EOF | |
3879 | |
3880 else | |
3881 echo "$ac_t""before 6" 1>&6 | |
3882 fi | |
3883 | |
3884 OLDLIBS="$LIBS" | |
3885 if test x$HAVE_X11XTR6 = xyes; then | |
3886 LIBS="-lXt -lSM -lICE $LIBS" | |
3887 else | |
3888 LIBS="-lXt $LIBS" | |
3889 fi | |
3890 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3891 echo "configure:3892: checking for XmuConvertStandardSelection in -lXmu" >&5 |
25897 | 3892 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` |
3893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3894 echo $ac_n "(cached) $ac_c" 1>&6 | |
3895 else | |
3896 ac_save_LIBS="$LIBS" | |
3897 LIBS="-lXmu $LIBS" | |
3898 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3899 #line 3900 "configure" |
25897 | 3900 #include "confdefs.h" |
3901 /* Override any gcc2 internal prototype to avoid an error. */ | |
3902 /* We use char because int might match the return type of a gcc2 | |
3903 builtin and then its argument prototype would still apply. */ | |
3904 char XmuConvertStandardSelection(); | |
3905 | |
3906 int main() { | |
3907 XmuConvertStandardSelection() | |
3908 ; return 0; } | |
3909 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3910 if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3911 rm -rf conftest* |
3912 eval "ac_cv_lib_$ac_lib_var=yes" | |
3913 else | |
3914 echo "configure: failed program was:" >&5 | |
3915 cat conftest.$ac_ext >&5 | |
3916 rm -rf conftest* | |
3917 eval "ac_cv_lib_$ac_lib_var=no" | |
3918 fi | |
3919 rm -f conftest* | |
3920 LIBS="$ac_save_LIBS" | |
3921 | |
3922 fi | |
3923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3924 echo "$ac_t""yes" 1>&6 | |
3925 ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3926 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3927 cat >> confdefs.h <<EOF | |
3928 #define $ac_tr_lib 1 | |
3929 EOF | |
3930 | |
3931 LIBS="-lXmu $LIBS" | |
3932 | |
3933 else | |
3934 echo "$ac_t""no" 1>&6 | |
3935 fi | |
3936 | |
3937 LIBS="$OLDLIBS" | |
3938 fi | |
3939 | |
3940 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
3941 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3942 echo "configure:3943: checking for Motif version 2.1" >&5 |
25897 | 3943 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then |
3944 echo $ac_n "(cached) $ac_c" 1>&6 | |
3945 else | |
3946 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3947 #line 3948 "configure" |
25897 | 3948 #include "confdefs.h" |
3949 #include <Xm/Xm.h> | |
3950 int main() { | |
3951 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
3952 int x = 5; | |
3953 #else | |
3954 Motif version prior to 2.1. | |
3955 #endif | |
3956 ; return 0; } | |
3957 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3958 if { (eval echo configure:3959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
25897 | 3959 rm -rf conftest* |
3960 emacs_cv_motif_version_2_1=yes | |
3961 else | |
3962 echo "configure: failed program was:" >&5 | |
3963 cat conftest.$ac_ext >&5 | |
3964 rm -rf conftest* | |
3965 emacs_cv_motif_version_2_1=no | |
3966 fi | |
3967 rm -f conftest* | |
3968 fi | |
3969 | |
3970 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6 | |
3971 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 | |
3972 if test $emacs_cv_motif_version_2_1 = yes; then | |
3973 cat >> confdefs.h <<\EOF | |
3974 #define HAVE_MOTIF_2_1 1 | |
3975 EOF | |
3976 | |
3977 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3978 echo "configure:3979: checking for XpCreateContext in -lXp" >&5 |
25897 | 3979 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` |
3980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3981 echo $ac_n "(cached) $ac_c" 1>&6 | |
3982 else | |
3983 ac_save_LIBS="$LIBS" | |
3984 LIBS="-lXp $LIBS" | |
3985 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3986 #line 3987 "configure" |
25897 | 3987 #include "confdefs.h" |
3988 /* Override any gcc2 internal prototype to avoid an error. */ | |
3989 /* We use char because int might match the return type of a gcc2 | |
3990 builtin and then its argument prototype would still apply. */ | |
3991 char XpCreateContext(); | |
3992 | |
3993 int main() { | |
3994 XpCreateContext() | |
3995 ; return 0; } | |
3996 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3997 if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 3998 rm -rf conftest* |
3999 eval "ac_cv_lib_$ac_lib_var=yes" | |
4000 else | |
4001 echo "configure: failed program was:" >&5 | |
4002 cat conftest.$ac_ext >&5 | |
4003 rm -rf conftest* | |
4004 eval "ac_cv_lib_$ac_lib_var=no" | |
4005 fi | |
4006 rm -f conftest* | |
4007 LIBS="$ac_save_LIBS" | |
4008 | |
4009 fi | |
4010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4011 echo "$ac_t""yes" 1>&6 | |
4012 ac_tr_lib=HAVE_LIB`echo Xp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
4013 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
4014 cat >> confdefs.h <<EOF | |
4015 #define $ac_tr_lib 1 | |
4016 EOF | |
4017 | |
4018 LIBS="-lXp $LIBS" | |
4019 | |
4020 else | |
4021 echo "$ac_t""no" 1>&6 | |
4022 fi | |
4023 | |
4024 fi | |
4025 fi | |
4026 | |
4027 ### Is -lXaw3d available? | |
4028 HAVE_XAW3D=no | |
4029 if test "${HAVE_X11}" = "yes"; then | |
4030 if test "${USE_X_TOOLKIT}" != "none"; then | |
4031 old_c_flags="${CFLAGS}" | |
4032 CFLAGS="${LD_SWITCH_X_SITE}" | |
4033 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` | |
4034 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4035 echo "configure:4036: checking for X11/Xaw3d/Scrollbar.h" >&5 |
25897 | 4036 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4037 echo $ac_n "(cached) $ac_c" 1>&6 | |
4038 else | |
4039 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4040 #line 4041 "configure" |
25897 | 4041 #include "confdefs.h" |
4042 #include <X11/Xaw3d/Scrollbar.h> | |
4043 EOF | |
4044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4045 { (eval echo configure:4046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
25897 | 4046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4047 if test -z "$ac_err"; then | |
4048 rm -rf conftest* | |
4049 eval "ac_cv_header_$ac_safe=yes" | |
4050 else | |
4051 echo "$ac_err" >&5 | |
4052 echo "configure: failed program was:" >&5 | |
4053 cat conftest.$ac_ext >&5 | |
4054 rm -rf conftest* | |
4055 eval "ac_cv_header_$ac_safe=no" | |
4056 fi | |
4057 rm -f conftest* | |
4058 fi | |
4059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4060 echo "$ac_t""yes" 1>&6 | |
4061 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4062 echo "configure:4063: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
25897 | 4063 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` |
4064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4065 echo $ac_n "(cached) $ac_c" 1>&6 | |
4066 else | |
4067 ac_save_LIBS="$LIBS" | |
4068 LIBS="-lXaw3d -lX11 $LIBS" | |
4069 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4070 #line 4071 "configure" |
25897 | 4071 #include "confdefs.h" |
4072 /* Override any gcc2 internal prototype to avoid an error. */ | |
4073 /* We use char because int might match the return type of a gcc2 | |
4074 builtin and then its argument prototype would still apply. */ | |
4075 char XawScrollbarSetThumb(); | |
4076 | |
4077 int main() { | |
4078 XawScrollbarSetThumb() | |
4079 ; return 0; } | |
4080 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4081 if { (eval echo configure:4082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4082 rm -rf conftest* |
4083 eval "ac_cv_lib_$ac_lib_var=yes" | |
4084 else | |
4085 echo "configure: failed program was:" >&5 | |
4086 cat conftest.$ac_ext >&5 | |
4087 rm -rf conftest* | |
4088 eval "ac_cv_lib_$ac_lib_var=no" | |
4089 fi | |
4090 rm -f conftest* | |
4091 LIBS="$ac_save_LIBS" | |
4092 | |
4093 fi | |
4094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4095 echo "$ac_t""yes" 1>&6 | |
4096 HAVE_XAW3D=yes | |
4097 else | |
4098 echo "$ac_t""no" 1>&6 | |
4099 fi | |
4100 | |
4101 else | |
4102 echo "$ac_t""no" 1>&6 | |
4103 fi | |
4104 | |
4105 CFLAGS="${old_c_flags}" | |
4106 | |
4107 if test "${HAVE_XAW3D}" = "yes"; then | |
4108 cat >> confdefs.h <<\EOF | |
4109 #define HAVE_XAW3D 1 | |
4110 EOF | |
4111 | |
4112 fi | |
4113 fi | |
4114 fi | |
4115 | |
4116 | |
4117 USE_TOOLKIT_SCROLL_BARS=no | |
4118 if test "${with_toolkit_scroll_bars}" != "no"; then | |
4119 if test "${USE_X_TOOLKIT}" != "none"; then | |
4120 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
4121 cat >> confdefs.h <<\EOF | |
4122 #define USE_TOOLKIT_SCROLL_BARS 1 | |
4123 EOF | |
4124 | |
4125 HAVE_XAW3D=no | |
4126 USE_TOOLKIT_SCROLL_BARS=yes | |
4127 elif test "${HAVE_XAW3D}" = "yes"; then | |
4128 cat >> confdefs.h <<\EOF | |
4129 #define USE_TOOLKIT_SCROLL_BARS 1 | |
4130 EOF | |
4131 | |
4132 USE_TOOLKIT_SCROLL_BARS=yes | |
4133 fi | |
4134 fi | |
4135 fi | |
4136 | |
4137 ### Use -lXpm if available, unless `--with-xpm=no'. | |
4138 HAVE_XPM=no | |
4139 if test "${HAVE_X11}" = "yes"; then | |
4140 if test "${with_xpm}" != "no"; then | |
4141 old_c_flags="${CFLAGS}" | |
4142 CFLAGS="${LD_SWITCH_X_SITE}" | |
4143 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` | |
4144 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4145 echo "configure:4146: checking for X11/xpm.h" >&5 |
25897 | 4146 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4147 echo $ac_n "(cached) $ac_c" 1>&6 | |
4148 else | |
4149 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4150 #line 4151 "configure" |
25897 | 4151 #include "confdefs.h" |
4152 #include <X11/xpm.h> | |
4153 EOF | |
4154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4155 { (eval echo configure:4156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
25897 | 4156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4157 if test -z "$ac_err"; then | |
4158 rm -rf conftest* | |
4159 eval "ac_cv_header_$ac_safe=yes" | |
4160 else | |
4161 echo "$ac_err" >&5 | |
4162 echo "configure: failed program was:" >&5 | |
4163 cat conftest.$ac_ext >&5 | |
4164 rm -rf conftest* | |
4165 eval "ac_cv_header_$ac_safe=no" | |
4166 fi | |
4167 rm -f conftest* | |
4168 fi | |
4169 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4170 echo "$ac_t""yes" 1>&6 | |
4171 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4172 echo "configure:4173: checking for XpmReadFileToPixmap in -lXpm" >&5 |
25897 | 4173 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` |
4174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4175 echo $ac_n "(cached) $ac_c" 1>&6 | |
4176 else | |
4177 ac_save_LIBS="$LIBS" | |
4178 LIBS="-lXpm -lX11 $LIBS" | |
4179 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4180 #line 4181 "configure" |
25897 | 4181 #include "confdefs.h" |
4182 /* Override any gcc2 internal prototype to avoid an error. */ | |
4183 /* We use char because int might match the return type of a gcc2 | |
4184 builtin and then its argument prototype would still apply. */ | |
4185 char XpmReadFileToPixmap(); | |
4186 | |
4187 int main() { | |
4188 XpmReadFileToPixmap() | |
4189 ; return 0; } | |
4190 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4191 if { (eval echo configure:4192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4192 rm -rf conftest* |
4193 eval "ac_cv_lib_$ac_lib_var=yes" | |
4194 else | |
4195 echo "configure: failed program was:" >&5 | |
4196 cat conftest.$ac_ext >&5 | |
4197 rm -rf conftest* | |
4198 eval "ac_cv_lib_$ac_lib_var=no" | |
4199 fi | |
4200 rm -f conftest* | |
4201 LIBS="$ac_save_LIBS" | |
4202 | |
4203 fi | |
4204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4205 echo "$ac_t""yes" 1>&6 | |
4206 HAVE_XPM=yes | |
4207 else | |
4208 echo "$ac_t""no" 1>&6 | |
4209 fi | |
4210 | |
4211 else | |
4212 echo "$ac_t""no" 1>&6 | |
4213 fi | |
4214 | |
4215 CFLAGS="${old_c_flags}" | |
4216 fi | |
4217 | |
4218 if test "${HAVE_XPM}" = "yes"; then | |
4219 cat >> confdefs.h <<\EOF | |
4220 #define HAVE_XPM 1 | |
4221 EOF | |
4222 | |
4223 fi | |
4224 fi | |
4225 | |
4226 ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
4227 HAVE_JPEG=no | |
4228 if test "${HAVE_X11}" = "yes"; then | |
4229 if test "${with_jpeg}" != "no"; then | |
4230 old_c_flags="${CFLAGS}" | |
4231 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4232 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4233 echo "configure:4234: checking for jpeg_destroy_compress in -ljpeg" >&5 |
25897 | 4234 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` |
4235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4236 echo $ac_n "(cached) $ac_c" 1>&6 | |
4237 else | |
4238 ac_save_LIBS="$LIBS" | |
4239 LIBS="-ljpeg -lX11 $LIBS" | |
4240 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4241 #line 4242 "configure" |
25897 | 4242 #include "confdefs.h" |
4243 /* Override any gcc2 internal prototype to avoid an error. */ | |
4244 /* We use char because int might match the return type of a gcc2 | |
4245 builtin and then its argument prototype would still apply. */ | |
4246 char jpeg_destroy_compress(); | |
4247 | |
4248 int main() { | |
4249 jpeg_destroy_compress() | |
4250 ; return 0; } | |
4251 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4252 if { (eval echo configure:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4253 rm -rf conftest* |
4254 eval "ac_cv_lib_$ac_lib_var=yes" | |
4255 else | |
4256 echo "configure: failed program was:" >&5 | |
4257 cat conftest.$ac_ext >&5 | |
4258 rm -rf conftest* | |
4259 eval "ac_cv_lib_$ac_lib_var=no" | |
4260 fi | |
4261 rm -f conftest* | |
4262 LIBS="$ac_save_LIBS" | |
4263 | |
4264 fi | |
4265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4266 echo "$ac_t""yes" 1>&6 | |
4267 HAVE_JPEG=yes | |
4268 else | |
4269 echo "$ac_t""no" 1>&6 | |
4270 fi | |
4271 | |
4272 CFLAGS="${old_c_flags}" | |
4273 fi | |
4274 | |
4275 if test "${HAVE_JPEG}" = "yes"; then | |
4276 cat >> confdefs.h <<\EOF | |
4277 #define HAVE_JPEG 1 | |
4278 EOF | |
4279 | |
4280 fi | |
4281 fi | |
4282 | |
4283 ### Use -lpng if available, unless `--with-png=no'. | |
4284 HAVE_PNG=no | |
4285 if test "${HAVE_X11}" = "yes"; then | |
4286 if test "${with_png}" != "no"; then | |
4287 old_c_flags="${CFLAGS}" | |
4288 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4289 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
4290 echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4291 echo "configure:4292: checking for png.h" >&5 |
25897 | 4292 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4293 echo $ac_n "(cached) $ac_c" 1>&6 | |
4294 else | |
4295 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4296 #line 4297 "configure" |
25897 | 4297 #include "confdefs.h" |
4298 #include <png.h> | |
4299 EOF | |
4300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4301 { (eval echo configure:4302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
25897 | 4302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4303 if test -z "$ac_err"; then | |
4304 rm -rf conftest* | |
4305 eval "ac_cv_header_$ac_safe=yes" | |
4306 else | |
4307 echo "$ac_err" >&5 | |
4308 echo "configure: failed program was:" >&5 | |
4309 cat conftest.$ac_ext >&5 | |
4310 rm -rf conftest* | |
4311 eval "ac_cv_header_$ac_safe=no" | |
4312 fi | |
4313 rm -f conftest* | |
4314 fi | |
4315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4316 echo "$ac_t""yes" 1>&6 | |
4317 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4318 echo "configure:4319: checking for png_set_expand in -lpng" >&5 |
25897 | 4319 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` |
4320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4321 echo $ac_n "(cached) $ac_c" 1>&6 | |
4322 else | |
4323 ac_save_LIBS="$LIBS" | |
4324 LIBS="-lpng -lX11 -lz -lm $LIBS" | |
4325 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4326 #line 4327 "configure" |
25897 | 4327 #include "confdefs.h" |
4328 /* Override any gcc2 internal prototype to avoid an error. */ | |
4329 /* We use char because int might match the return type of a gcc2 | |
4330 builtin and then its argument prototype would still apply. */ | |
4331 char png_set_expand(); | |
4332 | |
4333 int main() { | |
4334 png_set_expand() | |
4335 ; return 0; } | |
4336 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4337 if { (eval echo configure:4338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4338 rm -rf conftest* |
4339 eval "ac_cv_lib_$ac_lib_var=yes" | |
4340 else | |
4341 echo "configure: failed program was:" >&5 | |
4342 cat conftest.$ac_ext >&5 | |
4343 rm -rf conftest* | |
4344 eval "ac_cv_lib_$ac_lib_var=no" | |
4345 fi | |
4346 rm -f conftest* | |
4347 LIBS="$ac_save_LIBS" | |
4348 | |
4349 fi | |
4350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4351 echo "$ac_t""yes" 1>&6 | |
4352 HAVE_PNG=yes | |
4353 else | |
4354 echo "$ac_t""no" 1>&6 | |
4355 fi | |
4356 | |
4357 else | |
4358 echo "$ac_t""no" 1>&6 | |
4359 fi | |
4360 | |
4361 CFLAGS="${old_c_flags}" | |
4362 fi | |
4363 | |
4364 if test "${HAVE_PNG}" = "yes"; then | |
4365 cat >> confdefs.h <<\EOF | |
4366 #define HAVE_PNG 1 | |
4367 EOF | |
4368 | |
4369 fi | |
4370 fi | |
4371 | |
4372 ### Use -ltiff if available, unless `--with-tiff=no'. | |
4373 HAVE_TIFF=no | |
4374 if test "${HAVE_X11}" = "yes"; then | |
4375 if test "${with_tiff}" != "no"; then | |
4376 old_c_flags="${CFLAGS}" | |
4377 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4378 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
4379 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4380 echo "configure:4381: checking for tiffio.h" >&5 |
25897 | 4381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4382 echo $ac_n "(cached) $ac_c" 1>&6 | |
4383 else | |
4384 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4385 #line 4386 "configure" |
25897 | 4386 #include "confdefs.h" |
4387 #include <tiffio.h> | |
4388 EOF | |
4389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4390 { (eval echo configure:4391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
25897 | 4391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4392 if test -z "$ac_err"; then | |
4393 rm -rf conftest* | |
4394 eval "ac_cv_header_$ac_safe=yes" | |
4395 else | |
4396 echo "$ac_err" >&5 | |
4397 echo "configure: failed program was:" >&5 | |
4398 cat conftest.$ac_ext >&5 | |
4399 rm -rf conftest* | |
4400 eval "ac_cv_header_$ac_safe=no" | |
4401 fi | |
4402 rm -f conftest* | |
4403 fi | |
4404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4405 echo "$ac_t""yes" 1>&6 | |
4406 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4407 echo "configure:4408: checking for TIFFGetVersion in -ltiff" >&5 |
25897 | 4408 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` |
4409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4410 echo $ac_n "(cached) $ac_c" 1>&6 | |
4411 else | |
4412 ac_save_LIBS="$LIBS" | |
4413 LIBS="-ltiff -lX11 -lm $LIBS" | |
4414 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4415 #line 4416 "configure" |
25897 | 4416 #include "confdefs.h" |
4417 /* Override any gcc2 internal prototype to avoid an error. */ | |
4418 /* We use char because int might match the return type of a gcc2 | |
4419 builtin and then its argument prototype would still apply. */ | |
4420 char TIFFGetVersion(); | |
4421 | |
4422 int main() { | |
4423 TIFFGetVersion() | |
4424 ; return 0; } | |
4425 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4426 if { (eval echo configure:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4427 rm -rf conftest* |
4428 eval "ac_cv_lib_$ac_lib_var=yes" | |
4429 else | |
4430 echo "configure: failed program was:" >&5 | |
4431 cat conftest.$ac_ext >&5 | |
4432 rm -rf conftest* | |
4433 eval "ac_cv_lib_$ac_lib_var=no" | |
4434 fi | |
4435 rm -f conftest* | |
4436 LIBS="$ac_save_LIBS" | |
4437 | |
4438 fi | |
4439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4440 echo "$ac_t""yes" 1>&6 | |
4441 HAVE_TIFF=yes | |
4442 else | |
4443 echo "$ac_t""no" 1>&6 | |
4444 fi | |
4445 | |
4446 else | |
4447 echo "$ac_t""no" 1>&6 | |
4448 fi | |
4449 | |
4450 CFLAGS="${old_c_flags}" | |
4451 fi | |
4452 | |
4453 if test "${HAVE_TIFF}" = "yes"; then | |
4454 cat >> confdefs.h <<\EOF | |
4455 #define HAVE_TIFF 1 | |
4456 EOF | |
4457 | |
4458 fi | |
4459 fi | |
4460 | |
4461 ### Use -lgif if available, unless `--with-gif=no'. | |
4462 HAVE_GIF=no | |
4463 if test "${HAVE_X11}" = "yes"; then | |
4464 if test "${with_gif}" != "no"; then | |
4465 old_c_flags="${CFLAGS}" | |
4466 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
4467 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` | |
4468 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4469 echo "configure:4470: checking for gif_lib.h" >&5 |
25897 | 4470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4471 echo $ac_n "(cached) $ac_c" 1>&6 | |
4472 else | |
4473 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4474 #line 4475 "configure" |
25897 | 4475 #include "confdefs.h" |
4476 #include <gif_lib.h> | |
4477 EOF | |
4478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4479 { (eval echo configure:4480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
25897 | 4480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4481 if test -z "$ac_err"; then | |
4482 rm -rf conftest* | |
4483 eval "ac_cv_header_$ac_safe=yes" | |
4484 else | |
4485 echo "$ac_err" >&5 | |
4486 echo "configure: failed program was:" >&5 | |
4487 cat conftest.$ac_ext >&5 | |
4488 rm -rf conftest* | |
4489 eval "ac_cv_header_$ac_safe=no" | |
4490 fi | |
4491 rm -f conftest* | |
4492 fi | |
4493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4494 echo "$ac_t""yes" 1>&6 | |
4495 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4496 echo "configure:4497: checking for DGifOpenFileName in -lungif" >&5 |
25897 | 4497 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'` |
4498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4499 echo $ac_n "(cached) $ac_c" 1>&6 | |
4500 else | |
4501 ac_save_LIBS="$LIBS" | |
4502 LIBS="-lungif -lX11 $LIBS" | |
4503 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4504 #line 4505 "configure" |
25897 | 4505 #include "confdefs.h" |
4506 /* Override any gcc2 internal prototype to avoid an error. */ | |
4507 /* We use char because int might match the return type of a gcc2 | |
4508 builtin and then its argument prototype would still apply. */ | |
4509 char DGifOpenFileName(); | |
4510 | |
4511 int main() { | |
4512 DGifOpenFileName() | |
4513 ; return 0; } | |
4514 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4515 if { (eval echo configure:4516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4516 rm -rf conftest* |
4517 eval "ac_cv_lib_$ac_lib_var=yes" | |
4518 else | |
4519 echo "configure: failed program was:" >&5 | |
4520 cat conftest.$ac_ext >&5 | |
4521 rm -rf conftest* | |
4522 eval "ac_cv_lib_$ac_lib_var=no" | |
4523 fi | |
4524 rm -f conftest* | |
4525 LIBS="$ac_save_LIBS" | |
4526 | |
4527 fi | |
4528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4529 echo "$ac_t""yes" 1>&6 | |
4530 HAVE_GIF=yes | |
4531 else | |
4532 echo "$ac_t""no" 1>&6 | |
4533 fi | |
4534 | |
4535 else | |
4536 echo "$ac_t""no" 1>&6 | |
4537 fi | |
4538 | |
4539 CFLAGS="${old_c_flags}" | |
4540 fi | |
4541 | |
4542 if test "${HAVE_GIF}" = "yes"; then | |
4543 cat >> confdefs.h <<\EOF | |
4544 #define HAVE_GIF 1 | |
4545 EOF | |
4546 | |
4547 fi | |
4548 fi | |
4549 | |
4550 # If netdb.h doesn't declare h_errno, we must declare it by hand. | |
4551 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4552 echo "configure:4553: checking whether netdb declares h_errno" >&5 |
25897 | 4553 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then |
4554 echo $ac_n "(cached) $ac_c" 1>&6 | |
4555 else | |
4556 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4557 #line 4558 "configure" |
25897 | 4558 #include "confdefs.h" |
4559 #include <netdb.h> | |
4560 int main() { | |
4561 return h_errno; | |
4562 ; return 0; } | |
4563 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4564 if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4565 rm -rf conftest* |
4566 emacs_cv_netdb_declares_h_errno=yes | |
4567 else | |
4568 echo "configure: failed program was:" >&5 | |
4569 cat conftest.$ac_ext >&5 | |
4570 rm -rf conftest* | |
4571 emacs_cv_netdb_declares_h_errno=no | |
4572 fi | |
4573 rm -f conftest* | |
4574 fi | |
4575 | |
4576 echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6 | |
4577 if test $emacs_cv_netdb_declares_h_errno = yes; then | |
4578 cat >> confdefs.h <<\EOF | |
4579 #define HAVE_H_ERRNO 1 | |
4580 EOF | |
4581 | |
4582 fi | |
4583 | |
4584 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
4585 # for constant arguments. Useless! | |
4586 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4587 echo "configure:4588: checking for working alloca.h" >&5 |
25897 | 4588 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
4589 echo $ac_n "(cached) $ac_c" 1>&6 | |
4590 else | |
4591 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4592 #line 4593 "configure" |
25897 | 4593 #include "confdefs.h" |
4594 #include <alloca.h> | |
4595 int main() { | |
4596 char *p = alloca(2 * sizeof(int)); | |
4597 ; return 0; } | |
4598 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4599 if { (eval echo configure:4600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4600 rm -rf conftest* |
4601 ac_cv_header_alloca_h=yes | |
4602 else | |
4603 echo "configure: failed program was:" >&5 | |
4604 cat conftest.$ac_ext >&5 | |
4605 rm -rf conftest* | |
4606 ac_cv_header_alloca_h=no | |
4607 fi | |
4608 rm -f conftest* | |
4609 fi | |
4610 | |
4611 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
4612 if test $ac_cv_header_alloca_h = yes; then | |
4613 cat >> confdefs.h <<\EOF | |
4614 #define HAVE_ALLOCA_H 1 | |
4615 EOF | |
4616 | |
4617 fi | |
4618 | |
4619 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4620 echo "configure:4621: checking for alloca" >&5 |
25897 | 4621 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
4622 echo $ac_n "(cached) $ac_c" 1>&6 | |
4623 else | |
4624 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4625 #line 4626 "configure" |
25897 | 4626 #include "confdefs.h" |
4627 | |
4628 #ifdef __GNUC__ | |
4629 # define alloca __builtin_alloca | |
4630 #else | |
4631 # ifdef _MSC_VER | |
4632 # include <malloc.h> | |
4633 # define alloca _alloca | |
4634 # else | |
4635 # if HAVE_ALLOCA_H | |
4636 # include <alloca.h> | |
4637 # else | |
4638 # ifdef _AIX | |
4639 #pragma alloca | |
4640 # else | |
4641 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
4642 char *alloca (); | |
4643 # endif | |
4644 # endif | |
4645 # endif | |
4646 # endif | |
4647 #endif | |
4648 | |
4649 int main() { | |
4650 char *p = (char *) alloca(1); | |
4651 ; return 0; } | |
4652 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4653 if { (eval echo configure:4654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4654 rm -rf conftest* |
4655 ac_cv_func_alloca_works=yes | |
4656 else | |
4657 echo "configure: failed program was:" >&5 | |
4658 cat conftest.$ac_ext >&5 | |
4659 rm -rf conftest* | |
4660 ac_cv_func_alloca_works=no | |
4661 fi | |
4662 rm -f conftest* | |
4663 fi | |
4664 | |
4665 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
4666 if test $ac_cv_func_alloca_works = yes; then | |
4667 cat >> confdefs.h <<\EOF | |
4668 #define HAVE_ALLOCA 1 | |
4669 EOF | |
4670 | |
4671 fi | |
4672 | |
4673 if test $ac_cv_func_alloca_works = no; then | |
4674 # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
4675 # that cause trouble. Some versions do not even contain alloca or | |
4676 # contain a buggy version. If you still want to use their alloca, | |
4677 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
4678 ALLOCA=alloca.${ac_objext} | |
4679 cat >> confdefs.h <<\EOF | |
4680 #define C_ALLOCA 1 | |
4681 EOF | |
4682 | |
4683 | |
4684 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4685 echo "configure:4686: checking whether alloca needs Cray hooks" >&5 |
25897 | 4686 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
4687 echo $ac_n "(cached) $ac_c" 1>&6 | |
4688 else | |
4689 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4690 #line 4691 "configure" |
25897 | 4691 #include "confdefs.h" |
4692 #if defined(CRAY) && ! defined(CRAY2) | |
4693 webecray | |
4694 #else | |
4695 wenotbecray | |
4696 #endif | |
4697 | |
4698 EOF | |
4699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4700 egrep "webecray" >/dev/null 2>&1; then | |
4701 rm -rf conftest* | |
4702 ac_cv_os_cray=yes | |
4703 else | |
4704 rm -rf conftest* | |
4705 ac_cv_os_cray=no | |
4706 fi | |
4707 rm -f conftest* | |
4708 | |
4709 fi | |
4710 | |
4711 echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
4712 if test $ac_cv_os_cray = yes; then | |
4713 for ac_func in _getb67 GETB67 getb67; do | |
4714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4715 echo "configure:4716: checking for $ac_func" >&5 |
25897 | 4716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4717 echo $ac_n "(cached) $ac_c" 1>&6 | |
4718 else | |
4719 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4720 #line 4721 "configure" |
25897 | 4721 #include "confdefs.h" |
4722 /* System header to define __stub macros and hopefully few prototypes, | |
4723 which can conflict with char $ac_func(); below. */ | |
4724 #include <assert.h> | |
4725 /* Override any gcc2 internal prototype to avoid an error. */ | |
4726 /* We use char because int might match the return type of a gcc2 | |
4727 builtin and then its argument prototype would still apply. */ | |
4728 char $ac_func(); | |
4729 | |
4730 int main() { | |
4731 | |
4732 /* The GNU C library defines this for functions which it implements | |
4733 to always fail with ENOSYS. Some functions are actually named | |
4734 something starting with __ and the normal name is an alias. */ | |
4735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4736 choke me | |
4737 #else | |
4738 $ac_func(); | |
4739 #endif | |
4740 | |
4741 ; return 0; } | |
4742 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4743 if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4744 rm -rf conftest* |
4745 eval "ac_cv_func_$ac_func=yes" | |
4746 else | |
4747 echo "configure: failed program was:" >&5 | |
4748 cat conftest.$ac_ext >&5 | |
4749 rm -rf conftest* | |
4750 eval "ac_cv_func_$ac_func=no" | |
4751 fi | |
4752 rm -f conftest* | |
4753 fi | |
4754 | |
4755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4756 echo "$ac_t""yes" 1>&6 | |
4757 cat >> confdefs.h <<EOF | |
4758 #define CRAY_STACKSEG_END $ac_func | |
4759 EOF | |
4760 | |
4761 break | |
4762 else | |
4763 echo "$ac_t""no" 1>&6 | |
4764 fi | |
4765 | |
4766 done | |
4767 fi | |
4768 | |
4769 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4770 echo "configure:4771: checking stack direction for C alloca" >&5 |
25897 | 4771 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
4772 echo $ac_n "(cached) $ac_c" 1>&6 | |
4773 else | |
4774 if test "$cross_compiling" = yes; then | |
4775 ac_cv_c_stack_direction=0 | |
4776 else | |
4777 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4778 #line 4779 "configure" |
25897 | 4779 #include "confdefs.h" |
4780 find_stack_direction () | |
4781 { | |
4782 static char *addr = 0; | |
4783 auto char dummy; | |
4784 if (addr == 0) | |
4785 { | |
4786 addr = &dummy; | |
4787 return find_stack_direction (); | |
4788 } | |
4789 else | |
4790 return (&dummy > addr) ? 1 : -1; | |
4791 } | |
4792 main () | |
4793 { | |
4794 exit (find_stack_direction() < 0); | |
4795 } | |
4796 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4797 if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
25897 | 4798 then |
4799 ac_cv_c_stack_direction=1 | |
4800 else | |
4801 echo "configure: failed program was:" >&5 | |
4802 cat conftest.$ac_ext >&5 | |
4803 rm -fr conftest* | |
4804 ac_cv_c_stack_direction=-1 | |
4805 fi | |
4806 rm -fr conftest* | |
4807 fi | |
4808 | |
4809 fi | |
4810 | |
4811 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
4812 cat >> confdefs.h <<EOF | |
4813 #define STACK_DIRECTION $ac_cv_c_stack_direction | |
4814 EOF | |
4815 | |
4816 fi | |
4817 | |
4818 | |
4819 # fmod, logb, and frexp are found in -lm on most systems. | |
4820 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
4821 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4822 echo "configure:4823: checking for sqrt in -lm" >&5 |
25897 | 4823 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
4824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4825 echo $ac_n "(cached) $ac_c" 1>&6 | |
4826 else | |
4827 ac_save_LIBS="$LIBS" | |
4828 LIBS="-lm $LIBS" | |
4829 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4830 #line 4831 "configure" |
25897 | 4831 #include "confdefs.h" |
4832 /* Override any gcc2 internal prototype to avoid an error. */ | |
4833 /* We use char because int might match the return type of a gcc2 | |
4834 builtin and then its argument prototype would still apply. */ | |
4835 char sqrt(); | |
4836 | |
4837 int main() { | |
4838 sqrt() | |
4839 ; return 0; } | |
4840 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4841 if { (eval echo configure:4842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4842 rm -rf conftest* |
4843 eval "ac_cv_lib_$ac_lib_var=yes" | |
4844 else | |
4845 echo "configure: failed program was:" >&5 | |
4846 cat conftest.$ac_ext >&5 | |
4847 rm -rf conftest* | |
4848 eval "ac_cv_lib_$ac_lib_var=no" | |
4849 fi | |
4850 rm -f conftest* | |
4851 LIBS="$ac_save_LIBS" | |
4852 | |
4853 fi | |
4854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4855 echo "$ac_t""yes" 1>&6 | |
4856 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
4857 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
4858 cat >> confdefs.h <<EOF | |
4859 #define $ac_tr_lib 1 | |
4860 EOF | |
4861 | |
4862 LIBS="-lm $LIBS" | |
4863 | |
4864 else | |
4865 echo "$ac_t""no" 1>&6 | |
4866 fi | |
4867 | |
4868 | |
4869 # Check for mail-locking functions in a "mail" library | |
4870 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4871 echo "configure:4872: checking for maillock in -lmail" >&5 |
25897 | 4872 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` |
4873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4874 echo $ac_n "(cached) $ac_c" 1>&6 | |
4875 else | |
4876 ac_save_LIBS="$LIBS" | |
4877 LIBS="-lmail $LIBS" | |
4878 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4879 #line 4880 "configure" |
25897 | 4880 #include "confdefs.h" |
4881 /* Override any gcc2 internal prototype to avoid an error. */ | |
4882 /* We use char because int might match the return type of a gcc2 | |
4883 builtin and then its argument prototype would still apply. */ | |
4884 char maillock(); | |
4885 | |
4886 int main() { | |
4887 maillock() | |
4888 ; return 0; } | |
4889 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4890 if { (eval echo configure:4891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4891 rm -rf conftest* |
4892 eval "ac_cv_lib_$ac_lib_var=yes" | |
4893 else | |
4894 echo "configure: failed program was:" >&5 | |
4895 cat conftest.$ac_ext >&5 | |
4896 rm -rf conftest* | |
4897 eval "ac_cv_lib_$ac_lib_var=no" | |
4898 fi | |
4899 rm -f conftest* | |
4900 LIBS="$ac_save_LIBS" | |
4901 | |
4902 fi | |
4903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4904 echo "$ac_t""yes" 1>&6 | |
4905 ac_tr_lib=HAVE_LIB`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
4906 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
4907 cat >> confdefs.h <<EOF | |
4908 #define $ac_tr_lib 1 | |
4909 EOF | |
4910 | |
4911 LIBS="-lmail $LIBS" | |
4912 | |
4913 else | |
4914 echo "$ac_t""no" 1>&6 | |
4915 fi | |
4916 | |
4917 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4918 echo "configure:4919: checking for maillock in -llockfile" >&5 |
25897 | 4919 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` |
4920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4921 echo $ac_n "(cached) $ac_c" 1>&6 | |
4922 else | |
4923 ac_save_LIBS="$LIBS" | |
4924 LIBS="-llockfile $LIBS" | |
4925 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4926 #line 4927 "configure" |
25897 | 4927 #include "confdefs.h" |
4928 /* Override any gcc2 internal prototype to avoid an error. */ | |
4929 /* We use char because int might match the return type of a gcc2 | |
4930 builtin and then its argument prototype would still apply. */ | |
4931 char maillock(); | |
4932 | |
4933 int main() { | |
4934 maillock() | |
4935 ; return 0; } | |
4936 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4937 if { (eval echo configure:4938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 4938 rm -rf conftest* |
4939 eval "ac_cv_lib_$ac_lib_var=yes" | |
4940 else | |
4941 echo "configure: failed program was:" >&5 | |
4942 cat conftest.$ac_ext >&5 | |
4943 rm -rf conftest* | |
4944 eval "ac_cv_lib_$ac_lib_var=no" | |
4945 fi | |
4946 rm -f conftest* | |
4947 LIBS="$ac_save_LIBS" | |
4948 | |
4949 fi | |
4950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4951 echo "$ac_t""yes" 1>&6 | |
4952 ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
4953 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
4954 cat >> confdefs.h <<EOF | |
4955 #define $ac_tr_lib 1 | |
4956 EOF | |
4957 | |
4958 LIBS="-llockfile $LIBS" | |
4959 | |
4960 else | |
4961 echo "$ac_t""no" 1>&6 | |
4962 fi | |
4963 | |
4964 # If we have the shared liblockfile, assume we must use it for mail | |
4965 # locking (e.g. Debian). If we couldn't link against liblockfile | |
4966 # (no liblockfile.a installed), ensure that we don't need to. | |
4967 if test "$ac_cv_lib_lockfile_maillock" = no; then | |
4968 # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
4969 set dummy liblockfile.so; ac_word=$2 | |
4970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4971 echo "configure:4972: checking for $ac_word" >&5 |
25897 | 4972 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then |
4973 echo $ac_n "(cached) $ac_c" 1>&6 | |
4974 else | |
4975 if test -n "$liblockfile"; then | |
4976 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
4977 else | |
4978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4979 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | |
4980 for ac_dir in $ac_dummy; do | |
4981 test -z "$ac_dir" && ac_dir=. | |
4982 if test -f $ac_dir/$ac_word; then | |
4983 ac_cv_prog_liblockfile="yes" | |
4984 break | |
4985 fi | |
4986 done | |
4987 IFS="$ac_save_ifs" | |
4988 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
4989 fi | |
4990 fi | |
4991 liblockfile="$ac_cv_prog_liblockfile" | |
4992 if test -n "$liblockfile"; then | |
4993 echo "$ac_t""$liblockfile" 1>&6 | |
4994 else | |
4995 echo "$ac_t""no" 1>&6 | |
4996 fi | |
4997 | |
4998 if test $ac_cv_prog_liblockfile = yes; then | |
4999 { echo "configure: error: Shared liblockfile found but can't link against it. | |
5000 This probably means that movemail could lose mail. | |
5001 There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; } | |
5002 else cat >> confdefs.h <<\EOF | |
5003 #define LIBMAIL -llockfile | |
5004 EOF | |
5005 | |
5006 fi | |
5007 else : | |
5008 fi | |
5009 for ac_func in touchlock | |
5010 do | |
5011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5012 echo "configure:5013: checking for $ac_func" >&5 |
25897 | 5013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5014 echo $ac_n "(cached) $ac_c" 1>&6 | |
5015 else | |
5016 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5017 #line 5018 "configure" |
25897 | 5018 #include "confdefs.h" |
5019 /* System header to define __stub macros and hopefully few prototypes, | |
5020 which can conflict with char $ac_func(); below. */ | |
5021 #include <assert.h> | |
5022 /* Override any gcc2 internal prototype to avoid an error. */ | |
5023 /* We use char because int might match the return type of a gcc2 | |
5024 builtin and then its argument prototype would still apply. */ | |
5025 char $ac_func(); | |
5026 | |
5027 int main() { | |
5028 | |
5029 /* The GNU C library defines this for functions which it implements | |
5030 to always fail with ENOSYS. Some functions are actually named | |
5031 something starting with __ and the normal name is an alias. */ | |
5032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5033 choke me | |
5034 #else | |
5035 $ac_func(); | |
5036 #endif | |
5037 | |
5038 ; return 0; } | |
5039 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5040 if { (eval echo configure:5041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5041 rm -rf conftest* |
5042 eval "ac_cv_func_$ac_func=yes" | |
5043 else | |
5044 echo "configure: failed program was:" >&5 | |
5045 cat conftest.$ac_ext >&5 | |
5046 rm -rf conftest* | |
5047 eval "ac_cv_func_$ac_func=no" | |
5048 fi | |
5049 rm -f conftest* | |
5050 fi | |
5051 | |
5052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5053 echo "$ac_t""yes" 1>&6 | |
5054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5055 cat >> confdefs.h <<EOF | |
5056 #define $ac_tr_func 1 | |
5057 EOF | |
5058 | |
5059 else | |
5060 echo "$ac_t""no" 1>&6 | |
5061 fi | |
5062 done | |
5063 | |
5064 for ac_hdr in maillock.h | |
5065 do | |
5066 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5068 echo "configure:5069: checking for $ac_hdr" >&5 |
25897 | 5069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5070 echo $ac_n "(cached) $ac_c" 1>&6 | |
5071 else | |
5072 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5073 #line 5074 "configure" |
25897 | 5074 #include "confdefs.h" |
5075 #include <$ac_hdr> | |
5076 EOF | |
5077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5078 { (eval echo configure:5079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
25897 | 5079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5080 if test -z "$ac_err"; then | |
5081 rm -rf conftest* | |
5082 eval "ac_cv_header_$ac_safe=yes" | |
5083 else | |
5084 echo "$ac_err" >&5 | |
5085 echo "configure: failed program was:" >&5 | |
5086 cat conftest.$ac_ext >&5 | |
5087 rm -rf conftest* | |
5088 eval "ac_cv_header_$ac_safe=no" | |
5089 fi | |
5090 rm -f conftest* | |
5091 fi | |
5092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5093 echo "$ac_t""yes" 1>&6 | |
5094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5095 cat >> confdefs.h <<EOF | |
5096 #define $ac_tr_hdr 1 | |
5097 EOF | |
5098 | |
5099 else | |
5100 echo "$ac_t""no" 1>&6 | |
5101 fi | |
5102 done | |
5103 | |
5104 | |
5105 for ac_func in gettimeofday gethostname getdomainname dup2 \ | |
5106 rename closedir mkdir rmdir sysinfo \ | |
5107 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
5108 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5109 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \ |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5110 __fpending ftello getloadavg mblen mbrlen strsignal |
25897 | 5111 do |
5112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5113 echo "configure:5114: checking for $ac_func" >&5 |
25897 | 5114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5115 echo $ac_n "(cached) $ac_c" 1>&6 | |
5116 else | |
5117 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5118 #line 5119 "configure" |
25897 | 5119 #include "confdefs.h" |
5120 /* System header to define __stub macros and hopefully few prototypes, | |
5121 which can conflict with char $ac_func(); below. */ | |
5122 #include <assert.h> | |
5123 /* Override any gcc2 internal prototype to avoid an error. */ | |
5124 /* We use char because int might match the return type of a gcc2 | |
5125 builtin and then its argument prototype would still apply. */ | |
5126 char $ac_func(); | |
5127 | |
5128 int main() { | |
5129 | |
5130 /* The GNU C library defines this for functions which it implements | |
5131 to always fail with ENOSYS. Some functions are actually named | |
5132 something starting with __ and the normal name is an alias. */ | |
5133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5134 choke me | |
5135 #else | |
5136 $ac_func(); | |
5137 #endif | |
5138 | |
5139 ; return 0; } | |
5140 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5141 if { (eval echo configure:5142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5142 rm -rf conftest* |
5143 eval "ac_cv_func_$ac_func=yes" | |
5144 else | |
5145 echo "configure: failed program was:" >&5 | |
5146 cat conftest.$ac_ext >&5 | |
5147 rm -rf conftest* | |
5148 eval "ac_cv_func_$ac_func=no" | |
5149 fi | |
5150 rm -f conftest* | |
5151 fi | |
5152 | |
5153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5154 echo "$ac_t""yes" 1>&6 | |
5155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5156 cat >> confdefs.h <<EOF | |
5157 #define $ac_tr_func 1 | |
5158 EOF | |
5159 | |
5160 else | |
5161 echo "$ac_t""no" 1>&6 | |
5162 fi | |
5163 done | |
5164 | |
5165 | |
5166 # Check this now, so that we will NOT find the above functions in ncurses. | |
5167 # That is because we have not set up to link ncurses in lib-src. | |
5168 # It's better to believe a function is not available | |
5169 # than to expect to find it in ncurses. | |
5170 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5171 echo "configure:5172: checking for tparm in -lncurses" >&5 |
25897 | 5172 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` |
5173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5174 echo $ac_n "(cached) $ac_c" 1>&6 | |
5175 else | |
5176 ac_save_LIBS="$LIBS" | |
5177 LIBS="-lncurses $LIBS" | |
5178 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5179 #line 5180 "configure" |
25897 | 5180 #include "confdefs.h" |
5181 /* Override any gcc2 internal prototype to avoid an error. */ | |
5182 /* We use char because int might match the return type of a gcc2 | |
5183 builtin and then its argument prototype would still apply. */ | |
5184 char tparm(); | |
5185 | |
5186 int main() { | |
5187 tparm() | |
5188 ; return 0; } | |
5189 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5190 if { (eval echo configure:5191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5191 rm -rf conftest* |
5192 eval "ac_cv_lib_$ac_lib_var=yes" | |
5193 else | |
5194 echo "configure: failed program was:" >&5 | |
5195 cat conftest.$ac_ext >&5 | |
5196 rm -rf conftest* | |
5197 eval "ac_cv_lib_$ac_lib_var=no" | |
5198 fi | |
5199 rm -f conftest* | |
5200 LIBS="$ac_save_LIBS" | |
5201 | |
5202 fi | |
5203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5204 echo "$ac_t""yes" 1>&6 | |
5205 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
5206 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5207 cat >> confdefs.h <<EOF | |
5208 #define $ac_tr_lib 1 | |
5209 EOF | |
5210 | |
5211 LIBS="-lncurses $LIBS" | |
5212 | |
5213 else | |
5214 echo "$ac_t""no" 1>&6 | |
5215 fi | |
5216 | |
5217 | |
5218 # Solaris requires -lintl if you want strerror (which calls dgettext) | |
5219 # to return localized messages. | |
5220 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5221 echo "configure:5222: checking for dgettext in -lintl" >&5 |
25897 | 5222 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` |
5223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5224 echo $ac_n "(cached) $ac_c" 1>&6 | |
5225 else | |
5226 ac_save_LIBS="$LIBS" | |
5227 LIBS="-lintl $LIBS" | |
5228 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5229 #line 5230 "configure" |
25897 | 5230 #include "confdefs.h" |
5231 /* Override any gcc2 internal prototype to avoid an error. */ | |
5232 /* We use char because int might match the return type of a gcc2 | |
5233 builtin and then its argument prototype would still apply. */ | |
5234 char dgettext(); | |
5235 | |
5236 int main() { | |
5237 dgettext() | |
5238 ; return 0; } | |
5239 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5240 if { (eval echo configure:5241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5241 rm -rf conftest* |
5242 eval "ac_cv_lib_$ac_lib_var=yes" | |
5243 else | |
5244 echo "configure: failed program was:" >&5 | |
5245 cat conftest.$ac_ext >&5 | |
5246 rm -rf conftest* | |
5247 eval "ac_cv_lib_$ac_lib_var=no" | |
5248 fi | |
5249 rm -f conftest* | |
5250 LIBS="$ac_save_LIBS" | |
5251 | |
5252 fi | |
5253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5254 echo "$ac_t""yes" 1>&6 | |
5255 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
5256 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
5257 cat >> confdefs.h <<EOF | |
5258 #define $ac_tr_lib 1 | |
5259 EOF | |
5260 | |
5261 LIBS="-lintl $LIBS" | |
5262 | |
5263 else | |
5264 echo "$ac_t""no" 1>&6 | |
5265 fi | |
5266 | |
5267 | |
5268 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5269 echo "configure:5270: checking whether localtime caches TZ" >&5 |
25897 | 5270 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then |
5271 echo $ac_n "(cached) $ac_c" 1>&6 | |
5272 else | |
5273 if test x$ac_cv_func_tzset = xyes; then | |
5274 if test "$cross_compiling" = yes; then | |
5275 # If we have tzset, assume the worst when cross-compiling. | |
5276 emacs_cv_localtime_cache=yes | |
5277 else | |
5278 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5279 #line 5280 "configure" |
25897 | 5280 #include "confdefs.h" |
5281 #include <time.h> | |
5282 extern char **environ; | |
5283 unset_TZ () | |
5284 { | |
5285 char **from, **to; | |
5286 for (to = from = environ; (*to = *from); from++) | |
5287 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
5288 to++; | |
5289 } | |
5290 char TZ_GMT0[] = "TZ=GMT0"; | |
5291 char TZ_PST8[] = "TZ=PST8"; | |
5292 main() | |
5293 { | |
5294 time_t now = time ((time_t *) 0); | |
5295 int hour_GMT0, hour_unset; | |
5296 if (putenv (TZ_GMT0) != 0) | |
5297 exit (1); | |
5298 hour_GMT0 = localtime (&now)->tm_hour; | |
5299 unset_TZ (); | |
5300 hour_unset = localtime (&now)->tm_hour; | |
5301 if (putenv (TZ_PST8) != 0) | |
5302 exit (1); | |
5303 if (localtime (&now)->tm_hour == hour_GMT0) | |
5304 exit (1); | |
5305 unset_TZ (); | |
5306 if (localtime (&now)->tm_hour != hour_unset) | |
5307 exit (1); | |
5308 exit (0); | |
5309 } | |
5310 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5311 if { (eval echo configure:5312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
25897 | 5312 then |
5313 emacs_cv_localtime_cache=no | |
5314 else | |
5315 echo "configure: failed program was:" >&5 | |
5316 cat conftest.$ac_ext >&5 | |
5317 rm -fr conftest* | |
5318 emacs_cv_localtime_cache=yes | |
5319 fi | |
5320 rm -fr conftest* | |
5321 fi | |
5322 | |
5323 else | |
5324 # If we lack tzset, report that localtime does not cache TZ, | |
5325 # since we can't invalidate the cache if we don't have tzset. | |
5326 emacs_cv_localtime_cache=no | |
5327 fi | |
5328 fi | |
5329 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6 | |
5330 if test $emacs_cv_localtime_cache = yes; then | |
5331 cat >> confdefs.h <<\EOF | |
5332 #define LOCALTIME_CACHE 1 | |
5333 EOF | |
5334 | |
5335 fi | |
5336 | |
5337 if test "x$HAVE_TIMEVAL" = xyes; then | |
5338 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5339 echo "configure:5340: checking whether gettimeofday can accept two arguments" >&5 |
25897 | 5340 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then |
5341 echo $ac_n "(cached) $ac_c" 1>&6 | |
5342 else | |
5343 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5344 #line 5345 "configure" |
25897 | 5345 #include "confdefs.h" |
5346 | |
5347 #ifdef TIME_WITH_SYS_TIME | |
5348 #include <sys/time.h> | |
5349 #include <time.h> | |
5350 #else | |
5351 #ifdef HAVE_SYS_TIME_H | |
5352 #include <sys/time.h> | |
5353 #else | |
5354 #include <time.h> | |
5355 #endif | |
5356 #endif | |
5357 | |
5358 int main() { | |
5359 | |
5360 struct timeval time; | |
5361 struct timezone dummy; | |
5362 gettimeofday (&time, &dummy); | |
5363 | |
5364 ; return 0; } | |
5365 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5366 if { (eval echo configure:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5367 rm -rf conftest* |
5368 emacs_cv_gettimeofday_two_arguments=yes | |
5369 else | |
5370 echo "configure: failed program was:" >&5 | |
5371 cat conftest.$ac_ext >&5 | |
5372 rm -rf conftest* | |
5373 emacs_cv_gettimeofday_two_arguments=no | |
5374 fi | |
5375 rm -f conftest* | |
5376 fi | |
5377 | |
5378 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6 | |
5379 if test $emacs_cv_gettimeofday_two_arguments = no; then | |
5380 cat >> confdefs.h <<\EOF | |
5381 #define GETTIMEOFDAY_ONE_ARGUMENT 1 | |
5382 EOF | |
5383 | |
5384 fi | |
5385 fi | |
5386 | |
5387 ok_so_far=yes | |
5388 echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5389 echo "configure:5390: checking for socket" >&5 |
25897 | 5390 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
5391 echo $ac_n "(cached) $ac_c" 1>&6 | |
5392 else | |
5393 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5394 #line 5395 "configure" |
25897 | 5395 #include "confdefs.h" |
5396 /* System header to define __stub macros and hopefully few prototypes, | |
5397 which can conflict with char socket(); below. */ | |
5398 #include <assert.h> | |
5399 /* Override any gcc2 internal prototype to avoid an error. */ | |
5400 /* We use char because int might match the return type of a gcc2 | |
5401 builtin and then its argument prototype would still apply. */ | |
5402 char socket(); | |
5403 | |
5404 int main() { | |
5405 | |
5406 /* The GNU C library defines this for functions which it implements | |
5407 to always fail with ENOSYS. Some functions are actually named | |
5408 something starting with __ and the normal name is an alias. */ | |
5409 #if defined (__stub_socket) || defined (__stub___socket) | |
5410 choke me | |
5411 #else | |
5412 socket(); | |
5413 #endif | |
5414 | |
5415 ; return 0; } | |
5416 EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5417 if { (eval echo configure:5418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
25897 | 5418 rm -rf conftest* |
5419 eval "ac_cv_func_socket=yes" | |
5420 else | |
5421 echo "configure: failed program was:" >&5 | |
5422 cat conftest.$ac_ext >&5 | |
5423 rm -rf conftest* | |
5424 eval "ac_cv_func_socket=no" | |
5425 fi | |
5426 rm -f conftest* | |
5427 fi | |
5428 | |
5429 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
5430 echo "$ac_t""yes" 1>&6 | |
5431 : | |
5432 else | |
5433 echo "$ac_t""no" 1>&6 | |
5434 ok_so_far=no | |
5435 fi | |
5436 | |
5437 if test $ok_so_far = yes; then | |
5438 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | |
5439 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5440 echo "configure:5441: checking for netinet/in.h" >&5 |
25897 | 5441 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5442 echo $ac_n "(cached) $ac_c" 1>&6 | |
5443 else | |
5444 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5445 #line 5446 "configure" |
25897 | 5446 #include "confdefs.h" |
5447 #include <netinet/in.h> | |
5448 EOF | |
5449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5450 { (eval echo configure:5451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
25897 | 5451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5452 if test -z "$ac_err"; then | |
5453 rm -rf conftest* | |
5454 eval "ac_cv_header_$ac_safe=yes" | |
5455 else | |
5456 echo "$ac_err" >&5 | |
5457 echo "configure: failed program was:" >&5 | |
5458 cat conftest.$ac_ext >&5 | |
5459 rm -rf conftest* | |
5460 eval "ac_cv_header_$ac_safe=no" | |
5461 fi | |
5462 rm -f conftest* | |
5463 fi | |
5464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5465 echo "$ac_t""yes" 1>&6 | |
5466 : | |
5467 else | |
5468 echo "$ac_t""no" 1>&6 | |
5469 ok_so_far=no | |
5470 fi | |
5471 | |
5472 fi | |
5473 if test $ok_so_far = yes; then | |
5474 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | |
5475 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5476 echo "configure:5477: checking for arpa/inet.h" >&5 |
25897 | 5477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5478 echo $ac_n "(cached) $ac_c" 1>&6 | |
5479 else | |
5480 cat > conftest.$ac_ext <<EOF | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5481 #line 5482 "configure" |
25897 | 5482 #include "confdefs.h" |
5483 #include <arpa/inet.h> | |
5484 EOF | |
5485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5486 { (eval echo configure:5487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
25897 | 5487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5488 if test -z "$ac_err"; then | |
5489 rm -rf conftest* | |
5490 eval "ac_cv_header_$ac_safe=yes" | |
5491 else | |
5492 echo "$ac_err" >&5 | |
5493 echo "configure: failed program was:" >&5 | |
5494 cat conftest.$ac_ext >&5 | |
5495 rm -rf conftest* | |
5496 eval "ac_cv_header_$ac_safe=no" | |
5497 fi | |
5498 rm -f conftest* | |
5499 fi | |
5500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5501 echo "$ac_t""yes" 1>&6 | |
5502 : | |
5503 else | |
5504 echo "$ac_t""no" 1>&6 | |
5505 ok_so_far=no | |
5506 fi | |
5507 | |
5508 fi | |
5509 if test $ok_so_far = yes; then | |
5510 cat >> confdefs.h <<\EOF | |
5511 #define HAVE_INET_SOCKETS 1 | |
5512 EOF | |
5513 | |
5514 fi | |
5515 | |
5516 if test -f /usr/lpp/X11/bin/smt.exp; then | |
5517 cat >> confdefs.h <<\EOF | |
5518 #define HAVE_AIX_SMT_EXP 1 | |
5519 EOF | |
5520 | |
5521 fi | |
5522 | |
5523 # Set up the CFLAGS for real compilation, so we can substitute it. | |
5524 CFLAGS="$REAL_CFLAGS" | |
5525 | |
5526 #### Find out which version of Emacs this is. | |
5527 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
5528 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
5529 if test x"${version}" = x; then | |
5530 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; } | |
5531 fi | |
5532 | |
5533 ### Specify what sort of things we'll be editing into Makefile and config.h. | |
5534 ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
5535 | |
5536 | |
5537 | |
5538 | |
5539 | |
5540 | |
5541 | |
5542 | |
5543 | |
5544 | |
5545 | |
5546 | |
5547 | |
5548 | |
5549 | |
5550 | |
5551 | |
5552 | |
5553 | |
5554 | |
5555 | |
5556 | |
5557 | |
5558 | |
5559 | |
5560 | |
5561 | |
5562 | |
5563 | |
5564 | |
5565 | |
5566 cat >> confdefs.h <<EOF | |
5567 #define EMACS_CONFIGURATION "${canonical}" | |
5568 EOF | |
5569 | |
5570 cat >> confdefs.h <<EOF | |
5571 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
5572 EOF | |
5573 | |
5574 cat >> confdefs.h <<EOF | |
5575 #define config_machfile "${machfile}" | |
5576 EOF | |
5577 | |
5578 cat >> confdefs.h <<EOF | |
5579 #define config_opsysfile "${opsysfile}" | |
5580 EOF | |
5581 | |
5582 cat >> confdefs.h <<EOF | |
5583 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | |
5584 EOF | |
5585 | |
5586 cat >> confdefs.h <<EOF | |
5587 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | |
5588 EOF | |
5589 | |
5590 cat >> confdefs.h <<EOF | |
5591 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | |
5592 EOF | |
5593 | |
5594 cat >> confdefs.h <<EOF | |
5595 #define UNEXEC_SRC ${UNEXEC_SRC} | |
5596 EOF | |
5597 | |
5598 | |
5599 if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
5600 cat >> confdefs.h <<\EOF | |
5601 #define HAVE_X_WINDOWS 1 | |
5602 EOF | |
5603 | |
5604 fi | |
5605 if test "${USE_X_TOOLKIT}" != "none" ; then | |
5606 cat >> confdefs.h <<\EOF | |
5607 #define USE_X_TOOLKIT 1 | |
5608 EOF | |
5609 | |
5610 fi | |
5611 if test "${HAVE_X11}" = "yes" ; then | |
5612 cat >> confdefs.h <<\EOF | |
5613 #define HAVE_X11 1 | |
5614 EOF | |
5615 | |
5616 fi | |
5617 if test "${HAVE_XFREE386}" = "yes" ; then | |
5618 cat >> confdefs.h <<\EOF | |
5619 #define HAVE_XFREE386 1 | |
5620 EOF | |
5621 | |
5622 fi | |
5623 if test "${HAVE_MENUS}" = "yes" ; then | |
5624 cat >> confdefs.h <<\EOF | |
5625 #define HAVE_MENUS 1 | |
5626 EOF | |
5627 | |
5628 fi | |
5629 if test "${GNU_MALLOC}" = "yes" ; then | |
5630 cat >> confdefs.h <<\EOF | |
5631 #define GNU_MALLOC 1 | |
5632 EOF | |
5633 | |
5634 fi | |
5635 if test "${REL_ALLOC}" = "yes" ; then | |
5636 cat >> confdefs.h <<\EOF | |
5637 #define REL_ALLOC 1 | |
5638 EOF | |
5639 | |
5640 fi | |
5641 if test "${LISP_FLOAT_TYPE}" = "yes" ; then | |
5642 cat >> confdefs.h <<\EOF | |
5643 #define LISP_FLOAT_TYPE 1 | |
5644 EOF | |
5645 | |
5646 fi | |
5647 | |
5648 #### Report on what we decided to do. | |
5649 echo " | |
5650 Configured for \`${canonical}'. | |
5651 | |
5652 Where should the build process find the source code? ${srcdir} | |
5653 What operating system and machine description files should Emacs use? | |
5654 \`${opsysfile}' and \`${machfile}' | |
5655 What compiler should emacs be built with? ${CC} ${CFLAGS} | |
5656 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
5657 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC} | |
5658 What window system should Emacs use? ${window_system} | |
5659 What toolkit should Emacs use? ${USE_X_TOOLKIT}" | |
5660 | |
5661 if test -n "${x_includes}"; then | |
5662 echo " Where do we find X Windows header files? ${x_includes}" | |
5663 else | |
5664 echo " Where do we find X Windows header files? Standard dirs" | |
5665 fi | |
5666 if test -n "${x_libraries}"; then | |
5667 echo " Where do we find X Windows libraries? ${x_libraries}" | |
5668 else | |
5669 echo " Where do we find X Windows libraries? Standard dirs" | |
5670 fi | |
5671 | |
5672 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
5673 echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
5674 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
5675 echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
5676 echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
5677 echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
5678 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
5679 echo | |
5680 | |
5681 # Remove any trailing slashes in these variables. | |
5682 test "${prefix}" != NONE && | |
5683 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
5684 test "${exec_prefix}" != NONE && | |
5685 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
5686 | |
5687 trap '' 1 2 15 | |
5688 cat > confcache <<\EOF | |
5689 # This file is a shell script that caches the results of configure | |
5690 # tests run on this system so they can be shared between configure | |
5691 # scripts and configure runs. It is not useful on other systems. | |
5692 # If it contains results you don't want to keep, you may remove or edit it. | |
5693 # | |
5694 # By default, configure uses ./config.cache as the cache file, | |
5695 # creating it if it does not exist already. You can give configure | |
5696 # the --cache-file=FILE option to use a different cache file; that is | |
5697 # what configure does when it calls configure scripts in | |
5698 # subdirectories, so they share the cache. | |
5699 # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
5700 # config.status only pays attention to the cache file if you give it the | |
5701 # --recheck option to rerun configure. | |
5702 # | |
5703 EOF | |
5704 # The following way of writing the cache mishandles newlines in values, | |
5705 # but we know of no workaround that is simple, portable, and efficient. | |
5706 # So, don't put newlines in cache variables' values. | |
5707 # Ultrix sh set writes to stderr and can't be redirected directly, | |
5708 # and sets the high bit in the cache file unless we assign to the vars. | |
5709 (set) 2>&1 | | |
5710 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
5711 *ac_space=\ *) | |
5712 # `set' does not quote correctly, so add quotes (double-quote substitution | |
5713 # turns \\\\ into \\, and sed turns \\ into \). | |
5714 sed -n \ | |
5715 -e "s/'/'\\\\''/g" \ | |
5716 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
5717 ;; | |
5718 *) | |
5719 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5720 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
5721 ;; | |
5722 esac >> confcache | |
5723 if cmp -s $cache_file confcache; then | |
5724 : | |
5725 else | |
5726 if test -w $cache_file; then | |
5727 echo "updating cache $cache_file" | |
5728 cat confcache > $cache_file | |
5729 else | |
5730 echo "not updating unwritable cache $cache_file" | |
5731 fi | |
5732 fi | |
5733 rm -f confcache | |
5734 | |
5735 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
5736 | |
5737 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
5738 # Let make expand exec_prefix. | |
5739 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5740 | |
5741 # Any assignment to VPATH causes Sun make to only execute | |
5742 # the first set of double-colon rules, so remove it if not needed. | |
5743 # If there is a colon in the path, we need to keep it. | |
5744 if test "x$srcdir" = x.; then | |
5745 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
5746 fi | |
5747 | |
5748 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
5749 | |
5750 DEFS=-DHAVE_CONFIG_H | |
5751 | |
5752 # Without the "./", some shells look in PATH for config.status. | |
5753 : ${CONFIG_STATUS=./config.status} | |
5754 | |
5755 echo creating $CONFIG_STATUS | |
5756 rm -f $CONFIG_STATUS | |
5757 cat > $CONFIG_STATUS <<EOF | |
5758 #! /bin/sh | |
5759 # Generated automatically by configure. | |
5760 # Run this file to recreate the current configuration. | |
5761 # This directory was configured as follows, | |
5762 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
5763 # | |
5764 # $0 $ac_configure_args | |
5765 # | |
5766 # Compiler output produced by configure, useful for debugging | |
5767 # configure, is in ./config.log if it exists. | |
5768 | |
5769 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
5770 for ac_option | |
5771 do | |
5772 case "\$ac_option" in | |
5773 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
5774 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
5775 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
5776 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
5777 echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
5778 exit 0 ;; | |
5779 -help | --help | --hel | --he | --h) | |
5780 echo "\$ac_cs_usage"; exit 0 ;; | |
5781 *) echo "\$ac_cs_usage"; exit 1 ;; | |
5782 esac | |
5783 done | |
5784 | |
5785 ac_given_srcdir=$srcdir | |
5786 ac_given_INSTALL="$INSTALL" | |
5787 | |
5788 trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ | |
5789 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ | |
5790 leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
5791 EOF | |
5792 cat >> $CONFIG_STATUS <<EOF | |
5793 | |
5794 # Protect against being on the right side of a sed subst in config.status. | |
5795 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
5796 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
5797 $ac_vpsub | |
5798 $extrasub | |
5799 s%@SHELL@%$SHELL%g | |
5800 s%@CFLAGS@%$CFLAGS%g | |
5801 s%@CPPFLAGS@%$CPPFLAGS%g | |
5802 s%@CXXFLAGS@%$CXXFLAGS%g | |
5803 s%@FFLAGS@%$FFLAGS%g | |
5804 s%@DEFS@%$DEFS%g | |
5805 s%@LDFLAGS@%$LDFLAGS%g | |
5806 s%@LIBS@%$LIBS%g | |
5807 s%@exec_prefix@%$exec_prefix%g | |
5808 s%@prefix@%$prefix%g | |
5809 s%@program_transform_name@%$program_transform_name%g | |
5810 s%@bindir@%$bindir%g | |
5811 s%@sbindir@%$sbindir%g | |
5812 s%@libexecdir@%$libexecdir%g | |
5813 s%@datadir@%$datadir%g | |
5814 s%@sysconfdir@%$sysconfdir%g | |
5815 s%@sharedstatedir@%$sharedstatedir%g | |
5816 s%@localstatedir@%$localstatedir%g | |
5817 s%@libdir@%$libdir%g | |
5818 s%@includedir@%$includedir%g | |
5819 s%@oldincludedir@%$oldincludedir%g | |
5820 s%@infodir@%$infodir%g | |
5821 s%@mandir@%$mandir%g | |
5822 s%@host@%$host%g | |
5823 s%@host_alias@%$host_alias%g | |
5824 s%@host_cpu@%$host_cpu%g | |
5825 s%@host_vendor@%$host_vendor%g | |
5826 s%@host_os@%$host_os%g | |
5827 s%@CC@%$CC%g | |
5828 s%@LN_S@%$LN_S%g | |
5829 s%@CPP@%$CPP%g | |
5830 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
5831 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
5832 s%@INSTALL_DATA@%$INSTALL_DATA%g | |
5833 s%@YACC@%$YACC%g | |
5834 s%@SET_MAKE@%$SET_MAKE%g | |
5835 s%@ALLOCA@%$ALLOCA%g | |
5836 s%@liblockfile@%$liblockfile%g | |
5837 s%@version@%$version%g | |
5838 s%@configuration@%$configuration%g | |
5839 s%@canonical@%$canonical%g | |
5840 s%@srcdir@%$srcdir%g | |
5841 s%@lispdir@%$lispdir%g | |
5842 s%@locallisppath@%$locallisppath%g | |
5843 s%@lisppath@%$lisppath%g | |
5844 s%@x_default_search_path@%$x_default_search_path%g | |
5845 s%@etcdir@%$etcdir%g | |
5846 s%@archlibdir@%$archlibdir%g | |
5847 s%@docdir@%$docdir%g | |
5848 s%@bitmapdir@%$bitmapdir%g | |
5849 s%@c_switch_system@%$c_switch_system%g | |
5850 s%@c_switch_machine@%$c_switch_machine%g | |
5851 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g | |
5852 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g | |
5853 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g | |
5854 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g | |
5855 s%@machfile@%$machfile%g | |
5856 s%@opsysfile@%$opsysfile%g | |
5857 s%@RANLIB@%$RANLIB%g | |
5858 | |
5859 CEOF | |
5860 EOF | |
5861 | |
5862 cat >> $CONFIG_STATUS <<\EOF | |
5863 | |
5864 # Split the substitutions into bite-sized pieces for seds with | |
5865 # small command number limits, like on Digital OSF/1 and HP-UX. | |
5866 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
5867 ac_file=1 # Number of current file. | |
5868 ac_beg=1 # First line for current file. | |
5869 ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
5870 ac_more_lines=: | |
5871 ac_sed_cmds="" | |
5872 while $ac_more_lines; do | |
5873 if test $ac_beg -gt 1; then | |
5874 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
5875 else | |
5876 sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
5877 fi | |
5878 if test ! -s conftest.s$ac_file; then | |
5879 ac_more_lines=false | |
5880 rm -f conftest.s$ac_file | |
5881 else | |
5882 if test -z "$ac_sed_cmds"; then | |
5883 ac_sed_cmds="sed -f conftest.s$ac_file" | |
5884 else | |
5885 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
5886 fi | |
5887 ac_file=`expr $ac_file + 1` | |
5888 ac_beg=$ac_end | |
5889 ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
5890 fi | |
5891 done | |
5892 if test -z "$ac_sed_cmds"; then | |
5893 ac_sed_cmds=cat | |
5894 fi | |
5895 EOF | |
5896 | |
5897 cat >> $CONFIG_STATUS <<EOF | |
5898 | |
5899 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ | |
5900 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ | |
5901 leim/Makefile"} | |
5902 EOF | |
5903 cat >> $CONFIG_STATUS <<\EOF | |
5904 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
5905 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
5906 case "$ac_file" in | |
5907 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
5908 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
5909 *) ac_file_in="${ac_file}.in" ;; | |
5910 esac | |
5911 | |
5912 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
5913 | |
5914 # Remove last slash and all that follows it. Not all systems have dirname. | |
5915 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
5916 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
5917 # The file is in a subdirectory. | |
5918 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
5919 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
5920 # A "../" for each directory in $ac_dir_suffix. | |
5921 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
5922 else | |
5923 ac_dir_suffix= ac_dots= | |
5924 fi | |
5925 | |
5926 case "$ac_given_srcdir" in | |
5927 .) srcdir=. | |
5928 if test -z "$ac_dots"; then top_srcdir=. | |
5929 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
5930 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
5931 *) # Relative path. | |
5932 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
5933 top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
5934 esac | |
5935 | |
5936 case "$ac_given_INSTALL" in | |
5937 [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
5938 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
5939 esac | |
5940 | |
5941 echo creating "$ac_file" | |
5942 rm -f "$ac_file" | |
5943 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
5944 case "$ac_file" in | |
5945 *Makefile*) ac_comsub="1i\\ | |
5946 # $configure_input" ;; | |
5947 *) ac_comsub= ;; | |
5948 esac | |
5949 | |
5950 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
5951 sed -e "$ac_comsub | |
5952 s%@configure_input@%$configure_input%g | |
5953 s%@srcdir@%$srcdir%g | |
5954 s%@top_srcdir@%$top_srcdir%g | |
5955 s%@INSTALL@%$INSTALL%g | |
5956 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
5957 fi; done | |
5958 rm -f conftest.s* | |
5959 | |
5960 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
5961 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
5962 # | |
5963 # ac_d sets the value in "#define NAME VALUE" lines. | |
5964 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
5965 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
5966 ac_dC='\3' | |
5967 ac_dD='%g' | |
5968 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
5969 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
5970 ac_uB='\([ ]\)%\1#\2define\3' | |
5971 ac_uC=' ' | |
5972 ac_uD='\4%g' | |
5973 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
5974 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
5975 ac_eB='$%\1#\2define\3' | |
5976 ac_eC=' ' | |
5977 ac_eD='%g' | |
5978 | |
5979 if test "${CONFIG_HEADERS+set}" != set; then | |
5980 EOF | |
5981 cat >> $CONFIG_STATUS <<EOF | |
5982 CONFIG_HEADERS="src/config.h:src/config.in" | |
5983 EOF | |
5984 cat >> $CONFIG_STATUS <<\EOF | |
5985 fi | |
5986 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
5987 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
5988 case "$ac_file" in | |
5989 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
5990 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
5991 *) ac_file_in="${ac_file}.in" ;; | |
5992 esac | |
5993 | |
5994 echo creating $ac_file | |
5995 | |
5996 rm -f conftest.frag conftest.in conftest.out | |
5997 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
5998 cat $ac_file_inputs > conftest.in | |
5999 | |
6000 EOF | |
6001 | |
6002 # Transform confdefs.h into a sed script conftest.vals that substitutes | |
6003 # the proper values into config.h.in to produce config.h. And first: | |
6004 # Protect against being on the right side of a sed subst in config.status. | |
6005 # Protect against being in an unquoted here document in config.status. | |
6006 rm -f conftest.vals | |
6007 cat > conftest.hdr <<\EOF | |
6008 s/[\\&%]/\\&/g | |
6009 s%[\\$`]%\\&%g | |
6010 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
6011 s%ac_d%ac_u%gp | |
6012 s%ac_u%ac_e%gp | |
6013 EOF | |
6014 sed -n -f conftest.hdr confdefs.h > conftest.vals | |
6015 rm -f conftest.hdr | |
6016 | |
6017 # This sed command replaces #undef with comments. This is necessary, for | |
6018 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
6019 # on some systems where configure will not decide to define it. | |
6020 cat >> conftest.vals <<\EOF | |
6021 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
6022 EOF | |
6023 | |
6024 # Break up conftest.vals because some shells have a limit on | |
6025 # the size of here documents, and old seds have small limits too. | |
6026 | |
6027 rm -f conftest.tail | |
6028 while : | |
6029 do | |
6030 ac_lines=`grep -c . conftest.vals` | |
6031 # grep -c gives empty output for an empty file on some AIX systems. | |
6032 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
6033 # Write a limited-size here document to conftest.frag. | |
6034 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
6035 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
6036 echo 'CEOF | |
6037 sed -f conftest.frag conftest.in > conftest.out | |
6038 rm -f conftest.in | |
6039 mv conftest.out conftest.in | |
6040 ' >> $CONFIG_STATUS | |
6041 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
6042 rm -f conftest.vals | |
6043 mv conftest.tail conftest.vals | |
6044 done | |
6045 rm -f conftest.vals | |
6046 | |
6047 cat >> $CONFIG_STATUS <<\EOF | |
6048 rm -f conftest.frag conftest.h | |
6049 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
6050 cat conftest.in >> conftest.h | |
6051 rm -f conftest.in | |
6052 if cmp -s $ac_file conftest.h 2>/dev/null; then | |
6053 echo "$ac_file is unchanged" | |
6054 rm -f conftest.h | |
6055 else | |
6056 # Remove last slash and all that follows it. Not all systems have dirname. | |
6057 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6058 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6059 # The file is in a subdirectory. | |
6060 test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6061 fi | |
6062 rm -f $ac_file | |
6063 mv conftest.h $ac_file | |
6064 fi | |
6065 fi; done | |
6066 | |
6067 EOF | |
6068 cat >> $CONFIG_STATUS <<EOF | |
6069 CPP="$CPP" CPPFLAGS="$CPPFLAGS" | |
6070 EOF | |
6071 cat >> $CONFIG_STATUS <<\EOF | |
6072 | |
6073 | |
6074 ### Make the necessary directories, if they don't exist. | |
6075 for dir in etc lisp ; do | |
6076 test -d ${dir} || mkdir ${dir} | |
6077 done | |
6078 | |
6079 # Build src/Makefile from ${srcdir}/src/Makefile.c | |
6080 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
6081 # This must be done after src/config.h is built, since we rely on that file. | |
6082 | |
6083 # Now get this: Some word that is part of the ${srcdir} directory name | |
6084 # or the ${configuration} value might, just might, happen to be an | |
6085 # identifier like `sun4' or `i386' or something, and be predefined by | |
6086 # the C preprocessor to some helpful value like 1, or maybe the empty | |
6087 # string. Needless to say consequent macro substitutions are less | |
6088 # than conducive to the makefile finding the correct directory. | |
6089 undefs="`echo $top_srcdir $configuration $canonical | | |
6090 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
6091 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
6092 `" | |
6093 | |
6094 echo creating src/epaths.h | |
6095 make epaths-force | |
6096 | |
6097 echo creating lib-src/Makefile | |
6098 ( cd lib-src | |
6099 rm -f junk.c junk1.c junk2.c | |
6100 sed -e '/start of cpp stuff/q' \ | |
6101 < Makefile.c > junk1.c | |
6102 sed -e '1,/start of cpp stuff/d'\ | |
6103 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | |
6104 < Makefile.c > junk.c | |
6105 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | |
6106 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | |
6107 cat junk1.c junk2.c > Makefile.new | |
6108 rm -f junk.c junk1.c junk2.c | |
6109 chmod 444 Makefile.new | |
6110 mv -f Makefile.new Makefile | |
6111 ) | |
6112 | |
6113 echo creating src/Makefile | |
6114 ( cd src | |
6115 rm -f junk.c junk1.c junk2.c | |
6116 sed -e '/start of cpp stuff/q' \ | |
6117 < Makefile.c > junk1.c | |
6118 sed -e '1,/start of cpp stuff/d'\ | |
6119 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | |
6120 < Makefile.c > junk.c | |
6121 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | |
6122 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | |
6123 cat junk1.c junk2.c > Makefile.new | |
6124 rm -f junk.c junk1.c junk2.c | |
6125 chmod 444 Makefile.new | |
6126 mv -f Makefile.new Makefile | |
6127 ) | |
6128 | |
6129 if test ! -f src/.gdbinit && test -f $top_srcdir/src/.gdbinit; then | |
6130 echo creating src/.gdbinit | |
6131 echo source $top_srcdir/src/.gdbinit > src/.gdbinit | |
6132 fi | |
6133 | |
6134 # This is how we know whether to re-run configure in certain cases. | |
6135 touch src/config.stamp | |
6136 | |
6137 | |
6138 exit 0 | |
6139 EOF | |
6140 chmod +x $CONFIG_STATUS | |
6141 rm -fr confdefs* $ac_clean_files | |
6142 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
6143 |