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