Mercurial > emacs
annotate configure @ 44493:dc864bb90c6c
Regenerate.
author | Colin Walters <walters@gnu.org> |
---|---|
date | Wed, 10 Apr 2002 22:14:09 +0000 |
parents | 343a3a52107d |
children | 01399b2a0c1e |
rev | line source |
---|---|
25897 | 1 #! /bin/sh |
2 # Guess values for system-dependent variables and create Makefiles. | |
44493 | 3 # Generated by GNU Autoconf 2.53. |
25897 | 4 # |
44493 | 5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
40056 | 6 # Free Software Foundation, Inc. |
25897 | 7 # This configure script is free software; the Free Software Foundation |
8 # gives unlimited permission to copy, distribute and modify it. | |
9 | |
44493 | 10 if expr a : '\(a\)' >/dev/null 2>&1; then |
11 as_expr=expr | |
12 else | |
13 as_expr=false | |
14 fi | |
15 | |
16 | |
17 ## --------------------- ## | |
18 ## M4sh Initialization. ## | |
19 ## --------------------- ## | |
40056 | 20 |
21 # Be Bourne compatible | |
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
23 emulate sh | |
24 NULLCMD=: | |
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
26 set -o posix | |
27 fi | |
28 | |
44493 | 29 # NLS nuisances. |
30 # Support unset when possible. | |
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
32 as_unset=unset | |
33 else | |
34 as_unset=false | |
35 fi | |
36 | |
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
38 { $as_unset LANG || test "${LANG+set}" != set; } || | |
39 { LANG=C; export LANG; } | |
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
42 { LC_ALL=C; export LC_ALL; } | |
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
45 { LC_TIME=C; export LC_TIME; } | |
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
48 { LC_CTYPE=C; export LC_CTYPE; } | |
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
51 { LANGUAGE=C; export LANGUAGE; } | |
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
54 { LC_COLLATE=C; export LC_COLLATE; } | |
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
57 { LC_NUMERIC=C; export LC_NUMERIC; } | |
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
60 { LC_MESSAGES=C; export LC_MESSAGES; } | |
61 | |
62 | |
40056 | 63 # Name of the executable. |
44493 | 64 as_me=`(basename "$0") 2>/dev/null || |
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
66 X"$0" : 'X\(//\)$' \| \ | |
67 X"$0" : 'X\(/\)$' \| \ | |
68 . : '\(.\)' 2>/dev/null || | |
69 echo X/"$0" | | |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
71 /^X\/\(\/\/\)$/{ s//\1/; q; } | |
72 /^X\/\(\/\).*/{ s//\1/; q; } | |
73 s/.*/./; q'` | |
74 | |
75 # PATH needs CR, and LINENO needs CR and PATH. | |
76 # Avoid depending upon Character Ranges. | |
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
80 as_cr_digits='0123456789' | |
81 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
82 | |
83 # The user is always right. | |
84 if test "${PATH_SEPARATOR+set}" != set; then | |
85 echo "#! /bin/sh" >conftest.sh | |
86 echo "exit 0" >>conftest.sh | |
87 chmod +x conftest.sh | |
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
89 PATH_SEPARATOR=';' | |
90 else | |
91 PATH_SEPARATOR=: | |
92 fi | |
93 rm -f conftest.sh | |
94 fi | |
95 | |
96 | |
97 as_lineno_1=$LINENO | |
98 as_lineno_2=$LINENO | |
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
100 test "x$as_lineno_1" != "x$as_lineno_2" && | |
101 test "x$as_lineno_3" = "x$as_lineno_2" || { | |
102 # Find who we are. Look in the path if we contain no path at all | |
103 # relative or not. | |
104 case $0 in | |
105 *[\\/]* ) as_myself=$0 ;; | |
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
107 for as_dir in $PATH | |
108 do | |
109 IFS=$as_save_IFS | |
110 test -z "$as_dir" && as_dir=. | |
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
112 done | |
113 | |
114 ;; | |
115 esac | |
116 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
117 # in which case we are not to be found in the path. | |
118 if test "x$as_myself" = x; then | |
119 as_myself=$0 | |
120 fi | |
121 if test ! -f "$as_myself"; then | |
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
123 { (exit 1); exit 1; }; } | |
124 fi | |
125 case $CONFIG_SHELL in | |
126 '') | |
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
129 do | |
130 IFS=$as_save_IFS | |
131 test -z "$as_dir" && as_dir=. | |
132 for as_base in sh bash ksh sh5; do | |
133 case $as_dir in | |
134 /*) | |
135 if ("$as_dir/$as_base" -c ' | |
136 as_lineno_1=$LINENO | |
137 as_lineno_2=$LINENO | |
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
139 test "x$as_lineno_1" != "x$as_lineno_2" && | |
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
141 CONFIG_SHELL=$as_dir/$as_base | |
142 export CONFIG_SHELL | |
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
144 fi;; | |
145 esac | |
146 done | |
147 done | |
148 ;; | |
149 esac | |
150 | |
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
152 # uniformly replaced by the line number. The first 'sed' inserts a | |
153 # line-number line before each line; the second 'sed' does the real | |
154 # work. The second script uses 'N' to pair each line-number line | |
155 # with the numbered line, and appends trailing '-' during | |
156 # substitution so that $LINENO is not a special case at line end. | |
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
159 sed '=' <$as_myself | | |
160 sed ' | |
161 N | |
162 s,$,-, | |
163 : loop | |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
165 t loop | |
166 s,-$,, | |
167 s,^['$as_cr_digits']*\n,, | |
168 ' >$as_me.lineno && | |
169 chmod +x $as_me.lineno || | |
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
171 { (exit 1); exit 1; }; } | |
172 | |
173 # Don't try to exec as it changes $[0], causing all sort of problems | |
174 # (the dirname of $[0] is not the place where we might find the | |
175 # original and so on. Autoconf is especially sensible to this). | |
176 . ./$as_me.lineno | |
177 # Exit status is that of the last command. | |
178 exit | |
179 } | |
180 | |
181 | |
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
183 *c*,-n*) ECHO_N= ECHO_C=' | |
184 ' ECHO_T=' ' ;; | |
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
187 esac | |
40056 | 188 |
189 if expr a : '\(a\)' >/dev/null 2>&1; then | |
190 as_expr=expr | |
191 else | |
192 as_expr=false | |
193 fi | |
194 | |
195 rm -f conf$$ conf$$.exe conf$$.file | |
196 echo >conf$$.file | |
197 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
198 # We could just check for DJGPP; but this test a) works b) is more generic | |
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
200 if test -f conf$$.exe; then | |
201 # Don't use ln at all; we don't have any links | |
202 as_ln_s='cp -p' | |
203 else | |
204 as_ln_s='ln -s' | |
205 fi | |
206 elif ln conf$$.file conf$$ 2>/dev/null; then | |
207 as_ln_s=ln | |
208 else | |
209 as_ln_s='cp -p' | |
210 fi | |
211 rm -f conf$$ conf$$.exe conf$$.file | |
212 | |
213 as_executable_p="test -f" | |
214 | |
44493 | 215 # Sed expression to map a string onto a valid CPP name. |
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
217 | |
218 # Sed expression to map a string onto a valid variable name. | |
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
220 | |
40056 | 221 |
222 # IFS | |
223 # We need space, tab and new line, in precisely that order. | |
224 as_nl=' | |
225 ' | |
226 IFS=" $as_nl" | |
227 | |
228 # CDPATH. | |
44493 | 229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
230 | |
40056 | 231 |
232 # Name of the host. | |
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
234 # so uname gets run too. | |
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
236 | |
237 exec 6>&1 | |
238 | |
239 # | |
240 # Initializations. | |
241 # | |
25897 | 242 ac_default_prefix=/usr/local |
40056 | 243 cross_compiling=no |
244 subdirs= | |
44493 | 245 MFLAGS= |
246 MAKEFLAGS= | |
40056 | 247 SHELL=${CONFIG_SHELL-/bin/sh} |
248 | |
249 # Maximum number of lines to put in a shell here document. | |
250 # This variable seems obsolete. It should probably be removed, and | |
251 # only ac_max_sed_lines should be used. | |
252 : ${ac_max_here_lines=38} | |
253 | |
44493 | 254 # Identity of this package. |
255 PACKAGE_NAME= | |
256 PACKAGE_TARNAME= | |
257 PACKAGE_VERSION= | |
258 PACKAGE_STRING= | |
259 PACKAGE_BUGREPORT= | |
260 | |
40056 | 261 ac_unique_file="src/lisp.h" |
262 # Factoring default headers for most tests. | |
263 ac_includes_default="\ | |
264 #include <stdio.h> | |
265 #if HAVE_SYS_TYPES_H | |
266 # include <sys/types.h> | |
267 #endif | |
268 #if HAVE_SYS_STAT_H | |
269 # include <sys/stat.h> | |
270 #endif | |
271 #if STDC_HEADERS | |
272 # include <stdlib.h> | |
273 # include <stddef.h> | |
274 #else | |
275 # if HAVE_STDLIB_H | |
276 # include <stdlib.h> | |
277 # endif | |
278 #endif | |
279 #if HAVE_STRING_H | |
280 # if !STDC_HEADERS && HAVE_MEMORY_H | |
281 # include <memory.h> | |
282 # endif | |
283 # include <string.h> | |
284 #endif | |
285 #if HAVE_STRINGS_H | |
286 # include <strings.h> | |
287 #endif | |
288 #if HAVE_INTTYPES_H | |
289 # include <inttypes.h> | |
290 #else | |
291 # if HAVE_STDINT_H | |
292 # include <stdint.h> | |
293 # endif | |
294 #endif | |
295 #if HAVE_UNISTD_H | |
296 # include <unistd.h> | |
297 #endif" | |
25897 | 298 |
44493 | 299 |
25897 | 300 # Initialize some variables set by options. |
40056 | 301 ac_init_help= |
302 ac_init_version=false | |
25897 | 303 # The variables have the same names as the options, with |
304 # dashes changed to underlines. | |
40056 | 305 cache_file=/dev/null |
25897 | 306 exec_prefix=NONE |
307 no_create= | |
308 no_recursion= | |
309 prefix=NONE | |
310 program_prefix=NONE | |
311 program_suffix=NONE | |
312 program_transform_name=s,x,x, | |
313 silent= | |
314 site= | |
315 srcdir= | |
316 verbose= | |
317 x_includes=NONE | |
318 x_libraries=NONE | |
40056 | 319 |
320 # Installation directory options. | |
321 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
322 # and all the variables that are supposed to be based on exec_prefix | |
323 # by default will actually change. | |
324 # Use braces instead of parens because sh, perl, etc. also accept them. | |
25897 | 325 bindir='${exec_prefix}/bin' |
326 sbindir='${exec_prefix}/sbin' | |
327 libexecdir='${exec_prefix}/libexec' | |
328 datadir='${prefix}/share' | |
329 sysconfdir='${prefix}/etc' | |
330 sharedstatedir='${prefix}/com' | |
331 localstatedir='${prefix}/var' | |
332 libdir='${exec_prefix}/lib' | |
333 includedir='${prefix}/include' | |
334 oldincludedir='/usr/include' | |
335 infodir='${prefix}/info' | |
336 mandir='${prefix}/man' | |
337 | |
338 ac_prev= | |
339 for ac_option | |
340 do | |
341 # If the previous option needs an argument, assign it. | |
342 if test -n "$ac_prev"; then | |
343 eval "$ac_prev=\$ac_option" | |
344 ac_prev= | |
345 continue | |
346 fi | |
347 | |
40056 | 348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
25897 | 349 |
350 # Accept the important Cygnus configure options, so we can diagnose typos. | |
351 | |
40056 | 352 case $ac_option in |
25897 | 353 |
354 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
355 ac_prev=bindir ;; | |
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
40056 | 357 bindir=$ac_optarg ;; |
25897 | 358 |
359 -build | --build | --buil | --bui | --bu) | |
40056 | 360 ac_prev=build_alias ;; |
25897 | 361 -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
40056 | 362 build_alias=$ac_optarg ;; |
25897 | 363 |
364 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
366 ac_prev=cache_file ;; | |
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
40056 | 369 cache_file=$ac_optarg ;; |
370 | |
371 --config-cache | -C) | |
372 cache_file=config.cache ;; | |
25897 | 373 |
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
375 ac_prev=datadir ;; | |
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
377 | --da=*) | |
40056 | 378 datadir=$ac_optarg ;; |
25897 | 379 |
380 -disable-* | --disable-*) | |
40056 | 381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
25897 | 382 # Reject names that are not valid shell variable names. |
40056 | 383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
385 { (exit 1); exit 1; }; } | |
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
387 eval "enable_$ac_feature=no" ;; | |
25897 | 388 |
389 -enable-* | --enable-*) | |
40056 | 390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
25897 | 391 # Reject names that are not valid shell variable names. |
40056 | 392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
394 { (exit 1); exit 1; }; } | |
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
396 case $ac_option in | |
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
25897 | 398 *) ac_optarg=yes ;; |
399 esac | |
40056 | 400 eval "enable_$ac_feature='$ac_optarg'" ;; |
25897 | 401 |
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
404 | --exec | --exe | --ex) | |
405 ac_prev=exec_prefix ;; | |
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
408 | --exec=* | --exe=* | --ex=*) | |
40056 | 409 exec_prefix=$ac_optarg ;; |
25897 | 410 |
411 -gas | --gas | --ga | --g) | |
412 # Obsolete; use --with-gas. | |
413 with_gas=yes ;; | |
414 | |
40056 | 415 -help | --help | --hel | --he | -h) |
416 ac_init_help=long ;; | |
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
418 ac_init_help=recursive ;; | |
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
420 ac_init_help=short ;; | |
25897 | 421 |
422 -host | --host | --hos | --ho) | |
40056 | 423 ac_prev=host_alias ;; |
25897 | 424 -host=* | --host=* | --hos=* | --ho=*) |
40056 | 425 host_alias=$ac_optarg ;; |
25897 | 426 |
427 -includedir | --includedir | --includedi | --included | --include \ | |
428 | --includ | --inclu | --incl | --inc) | |
429 ac_prev=includedir ;; | |
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
431 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
40056 | 432 includedir=$ac_optarg ;; |
25897 | 433 |
434 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
435 ac_prev=infodir ;; | |
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
40056 | 437 infodir=$ac_optarg ;; |
25897 | 438 |
439 -libdir | --libdir | --libdi | --libd) | |
440 ac_prev=libdir ;; | |
441 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
40056 | 442 libdir=$ac_optarg ;; |
25897 | 443 |
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
445 | --libexe | --libex | --libe) | |
446 ac_prev=libexecdir ;; | |
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
448 | --libexe=* | --libex=* | --libe=*) | |
40056 | 449 libexecdir=$ac_optarg ;; |
25897 | 450 |
451 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
452 | --localstate | --localstat | --localsta | --localst \ | |
453 | --locals | --local | --loca | --loc | --lo) | |
454 ac_prev=localstatedir ;; | |
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
40056 | 458 localstatedir=$ac_optarg ;; |
25897 | 459 |
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
461 ac_prev=mandir ;; | |
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
40056 | 463 mandir=$ac_optarg ;; |
25897 | 464 |
465 -nfp | --nfp | --nf) | |
466 # Obsolete; use --without-fp. | |
467 with_fp=no ;; | |
468 | |
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
44493 | 470 | --no-cr | --no-c | -n) |
25897 | 471 no_create=yes ;; |
472 | |
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
475 no_recursion=yes ;; | |
476 | |
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
479 | --oldin | --oldi | --old | --ol | --o) | |
480 ac_prev=oldincludedir ;; | |
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
40056 | 484 oldincludedir=$ac_optarg ;; |
25897 | 485 |
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
487 ac_prev=prefix ;; | |
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
40056 | 489 prefix=$ac_optarg ;; |
25897 | 490 |
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
492 | --program-pre | --program-pr | --program-p) | |
493 ac_prev=program_prefix ;; | |
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
40056 | 496 program_prefix=$ac_optarg ;; |
25897 | 497 |
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
499 | --program-suf | --program-su | --program-s) | |
500 ac_prev=program_suffix ;; | |
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
40056 | 503 program_suffix=$ac_optarg ;; |
25897 | 504 |
505 -program-transform-name | --program-transform-name \ | |
506 | --program-transform-nam | --program-transform-na \ | |
507 | --program-transform-n | --program-transform- \ | |
508 | --program-transform | --program-transfor \ | |
509 | --program-transfo | --program-transf \ | |
510 | --program-trans | --program-tran \ | |
511 | --progr-tra | --program-tr | --program-t) | |
512 ac_prev=program_transform_name ;; | |
513 -program-transform-name=* | --program-transform-name=* \ | |
514 | --program-transform-nam=* | --program-transform-na=* \ | |
515 | --program-transform-n=* | --program-transform-=* \ | |
516 | --program-transform=* | --program-transfor=* \ | |
517 | --program-transfo=* | --program-transf=* \ | |
518 | --program-trans=* | --program-tran=* \ | |
519 | --progr-tra=* | --program-tr=* | --program-t=*) | |
40056 | 520 program_transform_name=$ac_optarg ;; |
25897 | 521 |
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
523 | -silent | --silent | --silen | --sile | --sil) | |
524 silent=yes ;; | |
525 | |
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
527 ac_prev=sbindir ;; | |
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
529 | --sbi=* | --sb=*) | |
40056 | 530 sbindir=$ac_optarg ;; |
25897 | 531 |
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
534 | --sharedst | --shareds | --shared | --share | --shar \ | |
535 | --sha | --sh) | |
536 ac_prev=sharedstatedir ;; | |
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
540 | --sha=* | --sh=*) | |
40056 | 541 sharedstatedir=$ac_optarg ;; |
25897 | 542 |
543 -site | --site | --sit) | |
544 ac_prev=site ;; | |
545 -site=* | --site=* | --sit=*) | |
40056 | 546 site=$ac_optarg ;; |
25897 | 547 |
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
549 ac_prev=srcdir ;; | |
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
40056 | 551 srcdir=$ac_optarg ;; |
25897 | 552 |
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
554 | --syscon | --sysco | --sysc | --sys | --sy) | |
555 ac_prev=sysconfdir ;; | |
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
40056 | 558 sysconfdir=$ac_optarg ;; |
25897 | 559 |
560 -target | --target | --targe | --targ | --tar | --ta | --t) | |
40056 | 561 ac_prev=target_alias ;; |
25897 | 562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
40056 | 563 target_alias=$ac_optarg ;; |
25897 | 564 |
565 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
566 verbose=yes ;; | |
567 | |
40056 | 568 -version | --version | --versio | --versi | --vers | -V) |
569 ac_init_version=: ;; | |
25897 | 570 |
571 -with-* | --with-*) | |
40056 | 572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
25897 | 573 # Reject names that are not valid shell variable names. |
40056 | 574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
575 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
576 { (exit 1); exit 1; }; } | |
25897 | 577 ac_package=`echo $ac_package| sed 's/-/_/g'` |
40056 | 578 case $ac_option in |
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
25897 | 580 *) ac_optarg=yes ;; |
581 esac | |
40056 | 582 eval "with_$ac_package='$ac_optarg'" ;; |
25897 | 583 |
584 -without-* | --without-*) | |
40056 | 585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
25897 | 586 # Reject names that are not valid shell variable names. |
40056 | 587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
588 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
589 { (exit 1); exit 1; }; } | |
590 ac_package=`echo $ac_package | sed 's/-/_/g'` | |
591 eval "with_$ac_package=no" ;; | |
25897 | 592 |
593 --x) | |
594 # Obsolete; use --with-x. | |
595 with_x=yes ;; | |
596 | |
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
598 | --x-incl | --x-inc | --x-in | --x-i) | |
599 ac_prev=x_includes ;; | |
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
40056 | 602 x_includes=$ac_optarg ;; |
25897 | 603 |
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
606 ac_prev=x_libraries ;; | |
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
40056 | 609 x_libraries=$ac_optarg ;; |
610 | |
611 -*) { echo "$as_me: error: unrecognized option: $ac_option | |
612 Try \`$0 --help' for more information." >&2 | |
613 { (exit 1); exit 1; }; } | |
25897 | 614 ;; |
615 | |
40056 | 616 *=*) |
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
618 # Reject names that are not valid shell variable names. | |
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
621 { (exit 1); exit 1; }; } | |
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
623 eval "$ac_envvar='$ac_optarg'" | |
624 export $ac_envvar ;; | |
625 | |
25897 | 626 *) |
40056 | 627 # FIXME: should be removed in autoconf 3.0. |
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
25897 | 632 ;; |
633 | |
634 esac | |
635 done | |
636 | |
637 if test -n "$ac_prev"; then | |
40056 | 638 ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
639 { echo "$as_me: error: missing argument to $ac_option" >&2 | |
640 { (exit 1); exit 1; }; } | |
641 fi | |
642 | |
643 # Be sure to have absolute paths. | |
644 for ac_var in exec_prefix prefix | |
25897 | 645 do |
40056 | 646 eval ac_val=$`echo $ac_var` |
647 case $ac_val in | |
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
44493 | 649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
40056 | 650 { (exit 1); exit 1; }; };; |
25897 | 651 esac |
652 done | |
653 | |
40056 | 654 # Be sure to have absolute paths. |
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
656 localstatedir libdir includedir oldincludedir infodir mandir | |
657 do | |
658 eval ac_val=$`echo $ac_var` | |
659 case $ac_val in | |
660 [\\/$]* | ?:[\\/]* ) ;; | |
44493 | 661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
40056 | 662 { (exit 1); exit 1; }; };; |
663 esac | |
664 done | |
665 | |
666 # There might be people who depend on the old broken behavior: `$host' | |
667 # used to hold the argument of --host etc. | |
44493 | 668 # FIXME: To remove some day. |
40056 | 669 build=$build_alias |
670 host=$host_alias | |
671 target=$target_alias | |
672 | |
44493 | 673 # FIXME: To remove some day. |
40056 | 674 if test "x$host_alias" != x; then |
675 if test "x$build_alias" = x; then | |
676 cross_compiling=maybe | |
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
678 If a cross compiler is detected then cross compile mode will be used." >&2 | |
679 elif test "x$build_alias" != "x$host_alias"; then | |
680 cross_compiling=yes | |
681 fi | |
682 fi | |
683 | |
684 ac_tool_prefix= | |
685 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
686 | |
687 test "$silent" = yes && exec 6>/dev/null | |
25897 | 688 |
44493 | 689 |
25897 | 690 # Find the source files, if location was not specified. |
691 if test -z "$srcdir"; then | |
692 ac_srcdir_defaulted=yes | |
693 # Try the directory containing this script, then its parent. | |
44493 | 694 ac_confdir=`(dirname "$0") 2>/dev/null || |
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
696 X"$0" : 'X\(//\)[^/]' \| \ | |
697 X"$0" : 'X\(//\)$' \| \ | |
698 X"$0" : 'X\(/\)' \| \ | |
699 . : '\(.\)' 2>/dev/null || | |
700 echo X"$0" | | |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
703 /^X\(\/\/\)$/{ s//\1/; q; } | |
704 /^X\(\/\).*/{ s//\1/; q; } | |
705 s/.*/./; q'` | |
25897 | 706 srcdir=$ac_confdir |
707 if test ! -r $srcdir/$ac_unique_file; then | |
708 srcdir=.. | |
709 fi | |
710 else | |
711 ac_srcdir_defaulted=no | |
712 fi | |
713 if test ! -r $srcdir/$ac_unique_file; then | |
714 if test "$ac_srcdir_defaulted" = yes; then | |
44493 | 715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
40056 | 716 { (exit 1); exit 1; }; } |
25897 | 717 else |
44493 | 718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
40056 | 719 { (exit 1); exit 1; }; } |
720 fi | |
721 fi | |
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
723 ac_env_build_alias_set=${build_alias+set} | |
724 ac_env_build_alias_value=$build_alias | |
725 ac_cv_env_build_alias_set=${build_alias+set} | |
726 ac_cv_env_build_alias_value=$build_alias | |
727 ac_env_host_alias_set=${host_alias+set} | |
728 ac_env_host_alias_value=$host_alias | |
729 ac_cv_env_host_alias_set=${host_alias+set} | |
730 ac_cv_env_host_alias_value=$host_alias | |
731 ac_env_target_alias_set=${target_alias+set} | |
732 ac_env_target_alias_value=$target_alias | |
733 ac_cv_env_target_alias_set=${target_alias+set} | |
734 ac_cv_env_target_alias_value=$target_alias | |
735 ac_env_CC_set=${CC+set} | |
736 ac_env_CC_value=$CC | |
737 ac_cv_env_CC_set=${CC+set} | |
738 ac_cv_env_CC_value=$CC | |
739 ac_env_CFLAGS_set=${CFLAGS+set} | |
740 ac_env_CFLAGS_value=$CFLAGS | |
741 ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
742 ac_cv_env_CFLAGS_value=$CFLAGS | |
743 ac_env_LDFLAGS_set=${LDFLAGS+set} | |
744 ac_env_LDFLAGS_value=$LDFLAGS | |
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
746 ac_cv_env_LDFLAGS_value=$LDFLAGS | |
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
748 ac_env_CPPFLAGS_value=$CPPFLAGS | |
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
751 ac_env_CPP_set=${CPP+set} | |
752 ac_env_CPP_value=$CPP | |
753 ac_cv_env_CPP_set=${CPP+set} | |
754 ac_cv_env_CPP_value=$CPP | |
755 | |
756 # | |
757 # Report the --help message. | |
758 # | |
759 if test "$ac_init_help" = "long"; then | |
760 # Omit some internal or obsolete options to make the list less imposing. | |
761 # This message is too long to be a string in the A/UX 3.1 sh. | |
44493 | 762 cat <<_ACEOF |
40056 | 763 \`configure' configures this package to adapt to many kinds of systems. |
764 | |
765 Usage: $0 [OPTION]... [VAR=VALUE]... | |
766 | |
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
768 VAR=VALUE. See below for descriptions of some of the useful variables. | |
769 | |
770 Defaults for the options are specified in brackets. | |
771 | |
772 Configuration: | |
773 -h, --help display this help and exit | |
774 --help=short display options specific to this package | |
775 --help=recursive display the short help of all the included packages | |
776 -V, --version display version information and exit | |
777 -q, --quiet, --silent do not print \`checking...' messages | |
778 --cache-file=FILE cache test results in FILE [disabled] | |
779 -C, --config-cache alias for \`--cache-file=config.cache' | |
780 -n, --no-create do not create output files | |
781 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
782 | |
44493 | 783 _ACEOF |
784 | |
785 cat <<_ACEOF | |
40056 | 786 Installation directories: |
787 --prefix=PREFIX install architecture-independent files in PREFIX | |
788 [$ac_default_prefix] | |
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
790 [PREFIX] | |
791 | |
792 By default, \`make install' will install all the files in | |
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
795 for instance \`--prefix=\$HOME'. | |
796 | |
797 For better control, use the options below. | |
798 | |
799 Fine tuning of the installation directories: | |
800 --bindir=DIR user executables [EPREFIX/bin] | |
801 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
802 --libexecdir=DIR program executables [EPREFIX/libexec] | |
803 --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
807 --libdir=DIR object code libraries [EPREFIX/lib] | |
808 --includedir=DIR C header files [PREFIX/include] | |
809 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
810 --infodir=DIR info documentation [PREFIX/info] | |
811 --mandir=DIR man documentation [PREFIX/man] | |
44493 | 812 _ACEOF |
813 | |
814 cat <<\_ACEOF | |
40056 | 815 |
41100 | 816 Program names: |
817 --program-prefix=PREFIX prepend PREFIX to installed program names | |
818 --program-suffix=SUFFIX append SUFFIX to installed program names | |
819 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
820 | |
40056 | 821 X features: |
822 --x-includes=DIR X include files are in DIR | |
823 --x-libraries=DIR X library files are in DIR | |
824 | |
825 System types: | |
826 --build=BUILD configure for building on BUILD [guessed] | |
44493 | 827 --host=HOST cross-compile to build programs to run on HOST [BUILD] |
828 _ACEOF | |
40056 | 829 fi |
830 | |
831 if test -n "$ac_init_help"; then | |
832 | |
44493 | 833 cat <<\_ACEOF |
40056 | 834 |
835 Optional Features: | |
836 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
837 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
838 --disable-largefile omit support for large files | |
839 | |
840 Optional Packages: | |
841 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
842 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
44493 | 843 --with-game-dir use a shared game directory if possible |
844 --with-game-user use specified user for game directory | |
40056 | 845 --without-gcc don't use GCC to compile Emacs if GCC is found |
846 --without-pop don't support POP mail retrieval with movemail | |
847 --with-kerberos support Kerberos-authenticated POP | |
848 --with-kerberos5 support Kerberos version 5 authenticated POP | |
849 --with-hesiod support Hesiod to get the POP server host | |
44435 | 850 --without-sound don't compile with sound support |
40056 | 851 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no) |
852 --with-xpm use -lXpm for displaying XPM images | |
853 --with-jpeg use -ljpeg for displaying JPEG images | |
854 --with-tiff use -ltiff for displaying TIFF images | |
855 --with-gif use -lungif for displaying GIF images | |
856 --with-png use -lpng for displaying PNG images | |
857 --without-toolkit-scroll-bars | |
40632 | 858 don't use Motif or Xaw3d scroll bars |
859 --without-xim don't use X11 XIM | |
40056 | 860 --with-x use the X Window System |
861 | |
862 Some influential environment variables: | |
863 CC C compiler command | |
864 CFLAGS C compiler flags | |
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
866 nonstandard directory <lib dir> | |
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
868 headers in a nonstandard directory <include dir> | |
869 CPP C preprocessor | |
870 | |
871 Use these variables to override the choices made by `configure' or to help | |
872 it to find libraries and programs with nonstandard names/locations. | |
873 | |
44493 | 874 _ACEOF |
40056 | 875 fi |
876 | |
877 if test "$ac_init_help" = "recursive"; then | |
878 # If there are subdirs, report their specific --help. | |
879 ac_popdir=`pwd` | |
44493 | 880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
881 test -d $ac_dir || continue | |
882 ac_builddir=. | |
883 | |
884 if test "$ac_dir" != .; then | |
885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
886 # A "../" for each directory in $ac_dir_suffix. | |
887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
888 else | |
889 ac_dir_suffix= ac_top_builddir= | |
890 fi | |
891 | |
892 case $srcdir in | |
893 .) # No --srcdir option. We are building in place. | |
894 ac_srcdir=. | |
895 if test -z "$ac_top_builddir"; then | |
896 ac_top_srcdir=. | |
897 else | |
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
899 fi ;; | |
900 [\\/]* | ?:[\\/]* ) # Absolute path. | |
901 ac_srcdir=$srcdir$ac_dir_suffix; | |
902 ac_top_srcdir=$srcdir ;; | |
903 *) # Relative path. | |
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
905 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
906 esac | |
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
908 # absolute. | |
909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
910 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
913 | |
914 cd $ac_dir | |
40056 | 915 # Check for guested configure; otherwise get Cygnus style configure. |
44493 | 916 if test -f $ac_srcdir/configure.gnu; then |
40056 | 917 echo |
44493 | 918 $SHELL $ac_srcdir/configure.gnu --help=recursive |
919 elif test -f $ac_srcdir/configure; then | |
40056 | 920 echo |
44493 | 921 $SHELL $ac_srcdir/configure --help=recursive |
922 elif test -f $ac_srcdir/configure.ac || | |
923 test -f $ac_srcdir/configure.in; then | |
40056 | 924 echo |
925 $ac_configure --help | |
926 else | |
44493 | 927 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
40056 | 928 fi |
929 cd $ac_popdir | |
930 done | |
931 fi | |
932 | |
933 test -n "$ac_init_help" && exit 0 | |
934 if $ac_init_version; then | |
44493 | 935 cat <<\_ACEOF |
936 | |
937 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
40056 | 938 Free Software Foundation, Inc. |
939 This configure script is free software; the Free Software Foundation | |
940 gives unlimited permission to copy, distribute and modify it. | |
44493 | 941 _ACEOF |
40056 | 942 exit 0 |
943 fi | |
944 exec 5>config.log | |
44493 | 945 cat >&5 <<_ACEOF |
40056 | 946 This file contains any messages produced by compilers while |
947 running configure, to aid debugging if configure makes a mistake. | |
948 | |
949 It was created by $as_me, which was | |
44493 | 950 generated by GNU Autoconf 2.53. Invocation command line was |
40056 | 951 |
952 $ $0 $@ | |
953 | |
44493 | 954 _ACEOF |
40056 | 955 { |
956 cat <<_ASUNAME | |
44493 | 957 ## --------- ## |
958 ## Platform. ## | |
959 ## --------- ## | |
40056 | 960 |
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
962 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
963 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
964 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
965 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
966 | |
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
969 | |
970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
973 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
977 | |
978 _ASUNAME | |
44493 | 979 |
980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
981 for as_dir in $PATH | |
982 do | |
983 IFS=$as_save_IFS | |
984 test -z "$as_dir" && as_dir=. | |
985 echo "PATH: $as_dir" | |
986 done | |
987 | |
40056 | 988 } >&5 |
989 | |
44493 | 990 cat >&5 <<_ACEOF |
991 | |
992 | |
993 ## ----------- ## | |
994 ## Core tests. ## | |
995 ## ----------- ## | |
996 | |
997 _ACEOF | |
998 | |
40056 | 999 |
1000 # Keep a trace of the command line. | |
1001 # Strip out --no-create and --no-recursion so they do not pile up. | |
1002 # Also quote any args containing shell meta-characters. | |
1003 ac_configure_args= | |
1004 ac_sep= | |
1005 for ac_arg | |
1006 do | |
1007 case $ac_arg in | |
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
44493 | 1009 | --no-cr | --no-c | -n ) continue ;; |
40056 | 1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
44493 | 1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1012 continue ;; | |
40056 | 1013 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
44493 | 1014 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1015 esac | |
1016 case " $ac_configure_args " in | |
1017 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1018 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1019 ac_sep=" " ;; | |
40056 | 1020 esac |
1021 # Get rid of the leading space. | |
1022 done | |
1023 | |
1024 # When interrupted or exit'd, cleanup temporary files, and complete | |
1025 # config.log. We remove comments because anyway the quotes in there | |
1026 # would cause problems or look ugly. | |
44493 | 1027 # WARNING: Be sure not to use single quotes in there, as some shells, |
1028 # such as our DU 5.0 friend, will then `close' the trap. | |
40056 | 1029 trap 'exit_status=$? |
1030 # Save into config.log some information that might help in debugging. | |
44493 | 1031 { |
1032 echo | |
1033 cat <<\_ASBOX | |
1034 ## ---------------- ## | |
1035 ## Cache variables. ## | |
1036 ## ---------------- ## | |
1037 _ASBOX | |
1038 echo | |
1039 # The following way of writing the cache mishandles newlines in values, | |
40056 | 1040 { |
1041 (set) 2>&1 | | |
1042 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1043 *ac_space=\ *) | |
1044 sed -n \ | |
1045 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1047 ;; | |
1048 *) | |
1049 sed -n \ | |
1050 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1051 ;; | |
1052 esac; | |
44493 | 1053 } |
1054 echo | |
1055 if test -s confdefs.h; then | |
1056 cat <<\_ASBOX | |
1057 ## ----------- ## | |
1058 ## confdefs.h. ## | |
1059 ## ----------- ## | |
1060 _ASBOX | |
1061 echo | |
1062 sed "/^$/d" confdefs.h | |
1063 echo | |
1064 fi | |
1065 test "$ac_signal" != 0 && | |
1066 echo "$as_me: caught signal $ac_signal" | |
1067 echo "$as_me: exit $exit_status" | |
1068 } >&5 | |
1069 rm -f core core.* *.core && | |
1070 rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
40056 | 1071 exit $exit_status |
1072 ' 0 | |
1073 for ac_signal in 1 2 13 15; do | |
1074 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1075 done | |
1076 ac_signal=0 | |
1077 | |
1078 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1079 rm -rf conftest* confdefs.h | |
1080 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1081 echo >confdefs.h | |
1082 | |
44493 | 1083 # Predefined preprocessor variables. |
1084 | |
1085 cat >>confdefs.h <<_ACEOF | |
1086 #define PACKAGE_NAME "$PACKAGE_NAME" | |
1087 _ACEOF | |
1088 | |
1089 | |
1090 cat >>confdefs.h <<_ACEOF | |
1091 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1092 _ACEOF | |
1093 | |
1094 | |
1095 cat >>confdefs.h <<_ACEOF | |
1096 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1097 _ACEOF | |
1098 | |
1099 | |
1100 cat >>confdefs.h <<_ACEOF | |
1101 #define PACKAGE_STRING "$PACKAGE_STRING" | |
1102 _ACEOF | |
1103 | |
1104 | |
1105 cat >>confdefs.h <<_ACEOF | |
1106 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1107 _ACEOF | |
1108 | |
1109 | |
40056 | 1110 # Let the site file select an alternate cache file if it wants to. |
25897 | 1111 # Prefer explicitly selected file to automatically selected ones. |
1112 if test -z "$CONFIG_SITE"; then | |
1113 if test "x$prefix" != xNONE; then | |
1114 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1115 else | |
1116 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1117 fi | |
1118 fi | |
1119 for ac_site_file in $CONFIG_SITE; do | |
1120 if test -r "$ac_site_file"; then | |
44493 | 1121 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
40056 | 1122 echo "$as_me: loading site script $ac_site_file" >&6;} |
44493 | 1123 sed 's/^/| /' "$ac_site_file" >&5 |
25897 | 1124 . "$ac_site_file" |
1125 fi | |
1126 done | |
1127 | |
1128 if test -r "$cache_file"; then | |
40056 | 1129 # Some versions of bash will fail to source /dev/null (special |
1130 # files actually), so we avoid doing that. | |
1131 if test -f "$cache_file"; then | |
44493 | 1132 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
40056 | 1133 echo "$as_me: loading cache $cache_file" >&6;} |
1134 case $cache_file in | |
1135 [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1136 *) . ./$cache_file;; | |
1137 esac | |
1138 fi | |
1139 else | |
44493 | 1140 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
40056 | 1141 echo "$as_me: creating cache $cache_file" >&6;} |
1142 >$cache_file | |
1143 fi | |
1144 | |
1145 # Check that the precious variables saved in the cache have kept the same | |
1146 # value. | |
1147 ac_cache_corrupted=false | |
1148 for ac_var in `(set) 2>&1 | | |
1149 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1150 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1151 eval ac_new_set=\$ac_env_${ac_var}_set | |
1152 eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1153 eval ac_new_val="\$ac_env_${ac_var}_value" | |
1154 case $ac_old_set,$ac_new_set in | |
1155 set,) | |
44493 | 1156 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
40056 | 1157 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1158 ac_cache_corrupted=: ;; | |
1159 ,set) | |
44493 | 1160 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
40056 | 1161 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1162 ac_cache_corrupted=: ;; | |
1163 ,);; | |
1164 *) | |
1165 if test "x$ac_old_val" != "x$ac_new_val"; then | |
44493 | 1166 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
40056 | 1167 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
44493 | 1168 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
40056 | 1169 echo "$as_me: former value: $ac_old_val" >&2;} |
44493 | 1170 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
40056 | 1171 echo "$as_me: current value: $ac_new_val" >&2;} |
1172 ac_cache_corrupted=: | |
1173 fi;; | |
1174 esac | |
44493 | 1175 # Pass precious variables to config.status. |
40056 | 1176 if test "$ac_new_set" = set; then |
1177 case $ac_new_val in | |
1178 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
44493 | 1179 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1180 *) ac_arg=$ac_var=$ac_new_val ;; | |
1181 esac | |
1182 case " $ac_configure_args " in | |
1183 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1184 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
40056 | 1185 esac |
1186 fi | |
1187 done | |
1188 if $ac_cache_corrupted; then | |
44493 | 1189 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
40056 | 1190 echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
44493 | 1191 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
40056 | 1192 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1193 { (exit 1); exit 1; }; } | |
25897 | 1194 fi |
1195 | |
1196 ac_ext=c | |
1197 ac_cpp='$CPP $CPPFLAGS' | |
40056 | 1198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1200 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1201 | |
44493 | 1202 |
1203 | |
1204 | |
1205 | |
1206 | |
1207 | |
1208 | |
1209 | |
1210 | |
1211 | |
1212 | |
1213 | |
1214 | |
1215 | |
1216 | |
1217 | |
40056 | 1218 |
1219 ac_config_headers="$ac_config_headers src/config.h:src/config.in" | |
25897 | 1220 |
44493 | 1221 |
41100 | 1222 test "$program_prefix" != NONE && |
1223 program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1224 # Use a double $ so make ignores it. | |
1225 test "$program_suffix" != NONE && | |
1226 program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1227 # Double any \ or $. echo might interpret backslashes. | |
1228 # By default was `s,x,x', remove it if useless. | |
1229 cat <<\_ACEOF >conftest.sed | |
1230 s/[\\$]/&&/g;s/;s,x,x,$// | |
1231 _ACEOF | |
1232 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1233 rm conftest.sed | |
1234 | |
44493 | 1235 |
25897 | 1236 lispdir='${datadir}/emacs/${version}/lisp' |
1237 locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
1238 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
1239 lisppath='${locallisppath}:${lispdir}' | |
1240 etcdir='${datadir}/emacs/${version}/etc' | |
1241 archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
1242 docdir='${datadir}/emacs/${version}/etc' | |
44493 | 1243 gamedir=yes |
1244 | |
1245 | |
1246 # Check whether --with-game-dir or --without-game-dir was given. | |
1247 if test "${with_game_dir+set}" = set; then | |
1248 withval="$with_game_dir" | |
1249 if test "$withval" = yes; then | |
1250 gamedir="${localstatedir}/games/emacs" | |
1251 else | |
1252 if test "$withval" = no; then | |
1253 gamedir=no | |
1254 else | |
1255 gamedir="$withval" | |
1256 fi | |
1257 fi | |
1258 | |
1259 fi; | |
1260 | |
1261 gameuser=games | |
1262 | |
1263 # Check whether --with-game-user or --without-game-user was given. | |
1264 if test "${with_game_user+set}" = set; then | |
1265 withval="$with_game_user" | |
1266 gameuser="$withval" | |
1267 fi; | |
1268 | |
25897 | 1269 |
1270 # Check whether --with-gcc or --without-gcc was given. | |
1271 if test "${with_gcc+set}" = set; then | |
1272 withval="$with_gcc" | |
40056 | 1273 |
1274 fi; | |
25897 | 1275 |
1276 # Check whether --with-pop or --without-pop was given. | |
1277 if test "${with_pop+set}" = set; then | |
1278 withval="$with_pop" | |
25994 | 1279 if test "$withval" = yes; then |
44493 | 1280 cat >>confdefs.h <<\_ACEOF |
25897 | 1281 #define MAIL_USE_POP 1 |
44493 | 1282 _ACEOF |
25897 | 1283 |
25994 | 1284 else : |
1285 fi | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1286 else |
44493 | 1287 cat >>confdefs.h <<\_ACEOF |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1288 #define MAIL_USE_POP 1 |
44493 | 1289 _ACEOF |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1290 |
40056 | 1291 fi; |
25897 | 1292 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1293 # Check whether --with-kerberos or --without-kerberos was given. |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1294 if test "${with_kerberos+set}" = set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1295 withval="$with_kerberos" |
44493 | 1296 cat >>confdefs.h <<\_ACEOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1297 #define KERBEROS 1 |
44493 | 1298 _ACEOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1299 |
40056 | 1300 fi; |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1301 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1302 # Check whether --with-kerberos5 or --without-kerberos5 was given. |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1303 if test "${with_kerberos5+set}" = set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1304 withval="$with_kerberos5" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1305 if test "${with_kerberos5+set}" = set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1306 if test "${with_kerberos+set}" != set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1307 with_kerberos=yes |
44493 | 1308 cat >>confdefs.h <<\_ACEOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1309 #define KERBEROS 1 |
44493 | 1310 _ACEOF |
1311 | |
1312 fi | |
1313 fi | |
1314 cat >>confdefs.h <<\_ACEOF | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1315 #define KERBEROS5 1 |
44493 | 1316 _ACEOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1317 |
40056 | 1318 fi; |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1319 |
25897 | 1320 # Check whether --with-hesiod or --without-hesiod was given. |
1321 if test "${with_hesiod+set}" = set; then | |
1322 withval="$with_hesiod" | |
44493 | 1323 cat >>confdefs.h <<\_ACEOF |
25897 | 1324 #define HESIOD 1 |
44493 | 1325 _ACEOF |
25897 | 1326 |
40056 | 1327 fi; |
25897 | 1328 |
44493 | 1329 |
44435 | 1330 # Check whether --with-sound or --without-sound was given. |
1331 if test "${with_sound+set}" = set; then | |
1332 withval="$with_sound" | |
1333 | |
1334 fi; | |
1335 | |
44493 | 1336 |
25897 | 1337 # Check whether --with-x-toolkit or --without-x-toolkit was given. |
1338 if test "${with_x_toolkit+set}" = set; then | |
1339 withval="$with_x_toolkit" | |
1340 case "${withval}" in | |
1341 y | ye | yes ) val=athena ;; | |
1342 n | no ) val=no ;; | |
1343 l | lu | luc | luci | lucid ) val=lucid ;; | |
1344 a | at | ath | athe | athen | athena ) val=athena ;; | |
1345 m | mo | mot | moti | motif ) val=motif ;; | |
1346 * ) | |
44493 | 1347 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\; |
25897 | 1348 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. |
40056 | 1349 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 |
1350 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; | |
1351 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | |
1352 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} | |
1353 { (exit 1); exit 1; }; } | |
25897 | 1354 ;; |
1355 esac | |
1356 with_x_toolkit=$val | |
1357 | |
40056 | 1358 fi; |
25897 | 1359 |
1360 # Check whether --with-xpm or --without-xpm was given. | |
1361 if test "${with_xpm+set}" = set; then | |
1362 withval="$with_xpm" | |
40056 | 1363 |
1364 fi; | |
25897 | 1365 |
1366 # Check whether --with-jpeg or --without-jpeg was given. | |
1367 if test "${with_jpeg+set}" = set; then | |
1368 withval="$with_jpeg" | |
40056 | 1369 |
1370 fi; | |
25897 | 1371 |
1372 # Check whether --with-tiff or --without-tiff was given. | |
1373 if test "${with_tiff+set}" = set; then | |
1374 withval="$with_tiff" | |
40056 | 1375 |
1376 fi; | |
25897 | 1377 |
1378 # Check whether --with-gif or --without-gif was given. | |
1379 if test "${with_gif+set}" = set; then | |
1380 withval="$with_gif" | |
40056 | 1381 |
1382 fi; | |
25897 | 1383 |
1384 # Check whether --with-png or --without-png was given. | |
1385 if test "${with_png+set}" = set; then | |
1386 withval="$with_png" | |
40056 | 1387 |
1388 fi; | |
25897 | 1389 |
1390 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. | |
1391 if test "${with_toolkit_scroll_bars+set}" = set; then | |
1392 withval="$with_toolkit_scroll_bars" | |
40056 | 1393 |
1394 fi; | |
25897 | 1395 |
29949 | 1396 # Check whether --with-xim or --without-xim was given. |
1397 if test "${with_xim+set}" = set; then | |
1398 withval="$with_xim" | |
40056 | 1399 |
1400 fi; | |
25897 | 1401 |
1402 #### Make srcdir absolute, if it isn't already. It's important to | |
31153 | 1403 #### avoid running the path through pwd unnecessarily, since pwd can |
25897 | 1404 #### give you automounter prefixes, which can go away. We do all this |
1405 #### so Emacs can find its files when run uninstalled. | |
31153 | 1406 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
1407 unset CDPATH | |
25897 | 1408 case "${srcdir}" in |
1409 /* ) ;; | |
1410 . ) | |
1411 ## We may be able to use the $PWD environment variable to make this | |
1412 ## absolute. But sometimes PWD is inaccurate. | |
43721 | 1413 ## Note: we used to use ${PWD} at the end instead of `pwd`, |
1414 ## but that tested only for a well-formed and valid PWD, | |
1415 ## it did not object when PWD was well-formed and valid but just wrong. | |
1416 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | |
25897 | 1417 then |
1418 srcdir="$PWD" | |
1419 else | |
1420 srcdir="`(cd ${srcdir}; pwd)`" | |
1421 fi | |
1422 ;; | |
1423 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
1424 esac | |
1425 | |
1426 #### Check if the source directory already has a configured system in it. | |
1427 if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
1428 && test -f "${srcdir}/src/config.h" ; then | |
44493 | 1429 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used |
25897 | 1430 as a build directory right now; it has been configured in its own |
1431 right. To configure in another directory as well, you MUST | |
1432 use GNU make. If you do not have GNU make, then you must | |
1433 now do \`make distclean' in ${srcdir}, | |
40056 | 1434 and then run $0 again." >&5 |
1435 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
1436 as a build directory right now; it has been configured in its own | |
1437 right. To configure in another directory as well, you MUST | |
1438 use GNU make. If you do not have GNU make, then you must | |
1439 now do \`make distclean' in ${srcdir}, | |
1440 and then run $0 again." >&2;} | |
25897 | 1441 |
1442 extrasub='/^VPATH[ ]*=/c\ | |
1443 vpath %.c $(srcdir)\ | |
1444 vpath %.h $(srcdir)\ | |
1445 vpath %.y $(srcdir)\ | |
1446 vpath %.l $(srcdir)\ | |
1447 vpath %.s $(srcdir)\ | |
1448 vpath %.in $(srcdir)\ | |
1449 vpath %.texi $(srcdir)' | |
1450 fi | |
1451 | |
1452 #### Given the configuration name, set machfile and opsysfile to the | |
1453 #### names of the m/*.h and s/*.h files we should use. | |
1454 | |
1455 ### Canonicalize the configuration name. | |
1456 | |
1457 ac_aux_dir= | |
1458 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1459 if test -f $ac_dir/install-sh; then | |
1460 ac_aux_dir=$ac_dir | |
1461 ac_install_sh="$ac_aux_dir/install-sh -c" | |
1462 break | |
1463 elif test -f $ac_dir/install.sh; then | |
1464 ac_aux_dir=$ac_dir | |
1465 ac_install_sh="$ac_aux_dir/install.sh -c" | |
1466 break | |
40056 | 1467 elif test -f $ac_dir/shtool; then |
1468 ac_aux_dir=$ac_dir | |
1469 ac_install_sh="$ac_aux_dir/shtool install -c" | |
1470 break | |
25897 | 1471 fi |
1472 done | |
1473 if test -z "$ac_aux_dir"; then | |
44493 | 1474 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
40056 | 1475 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1476 { (exit 1); exit 1; }; } | |
1477 fi | |
1478 ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1479 ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1480 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
25897 | 1481 |
1482 # Make sure we can run config.sub. | |
40056 | 1483 $ac_config_sub sun4 >/dev/null 2>&1 || |
44493 | 1484 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
40056 | 1485 echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1486 { (exit 1); exit 1; }; } | |
1487 | |
44493 | 1488 echo "$as_me:$LINENO: checking build system type" >&5 |
40056 | 1489 echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1490 if test "${ac_cv_build+set}" = set; then | |
1491 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1492 else | |
1493 ac_cv_build_alias=$build_alias | |
1494 test -z "$ac_cv_build_alias" && | |
1495 ac_cv_build_alias=`$ac_config_guess` | |
1496 test -z "$ac_cv_build_alias" && | |
44493 | 1497 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
40056 | 1498 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1499 { (exit 1); exit 1; }; } | |
1500 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
44493 | 1501 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1502 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
40056 | 1503 { (exit 1); exit 1; }; } |
1504 | |
1505 fi | |
44493 | 1506 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
40056 | 1507 echo "${ECHO_T}$ac_cv_build" >&6 |
1508 build=$ac_cv_build | |
1509 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1510 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1511 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1512 | |
44493 | 1513 |
1514 echo "$as_me:$LINENO: checking host system type" >&5 | |
40056 | 1515 echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1516 if test "${ac_cv_host+set}" = set; then | |
1517 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1518 else | |
1519 ac_cv_host_alias=$host_alias | |
1520 test -z "$ac_cv_host_alias" && | |
1521 ac_cv_host_alias=$ac_cv_build_alias | |
1522 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
44493 | 1523 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
40056 | 1524 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1525 { (exit 1); exit 1; }; } | |
1526 | |
1527 fi | |
44493 | 1528 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
40056 | 1529 echo "${ECHO_T}$ac_cv_host" >&6 |
1530 host=$ac_cv_host | |
1531 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1532 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1533 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
25897 | 1534 |
44435 | 1535 |
25897 | 1536 canonical=$host |
40060 | 1537 configuration=${host_alias-$host} |
25897 | 1538 |
44493 | 1539 |
25897 | 1540 ### If you add support for a new configuration, add code to this |
1541 ### switch statement to recognize your configuration name and select | |
1542 ### the appropriate operating system and machine description files. | |
1543 | |
1544 ### You would hope that you could choose an m/*.h file pretty much | |
1545 ### based on the machine portion of the configuration name, and an s- | |
1546 ### file based on the operating system portion. However, it turns out | |
1547 ### that each m/*.h file is pretty manufacturer-specific - for | |
1548 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
1549 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
1550 ### machines. So we basically have to have a special case for each | |
1551 ### configuration name. | |
1552 ### | |
1553 ### As far as handling version numbers on operating systems is | |
1554 ### concerned, make sure things will fail in a fixable way. If | |
1555 ### /etc/MACHINES doesn't say anything about version numbers, be | |
1556 ### prepared to handle anything reasonably. If version numbers | |
1557 ### matter, be sure /etc/MACHINES says something about it. | |
1558 ### | |
1559 ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
1560 ### "System V Release 4"; he writes, "The old convention encouraged | |
1561 ### confusion between `system' and `release' levels'." | |
1562 | |
1563 machine='' opsys='' unported=no | |
1564 case "${canonical}" in | |
1565 | |
41675 | 1566 ## FreeBSD ports |
1567 *-*-freebsd* ) | |
1568 opsys=freebsd | |
1569 case "${canonical}" in | |
1570 alpha*-*-freebsd*) machine=alpha ;; | |
1571 i[3456]86-*-freebsd*) machine=intel386 ;; | |
1572 esac | |
1573 ;; | |
1574 | |
25897 | 1575 ## NetBSD ports |
1576 *-*-netbsd* ) | |
1577 opsys=netbsd | |
1578 case "${canonical}" in | |
1579 alpha*-*-netbsd*) machine=alpha ;; | |
1580 i[3456]86-*-netbsd*) machine=intel386 ;; | |
1581 m68k-*-netbsd*) | |
1582 # This is somewhat bogus. | |
1583 machine=hp9000s300 ;; | |
1584 powerpc-apple-netbsd*) machine=macppc ;; | |
1585 mips-*-netbsd*) machine=pmax ;; | |
27927 | 1586 mipsel-*-netbsd*) machine=pmax ;; |
25897 | 1587 ns32k-*-netbsd*) machine=ns32000 ;; |
28674 | 1588 powerpc-*-netbsd*) machine=macppc ;; |
32034 | 1589 sparc*-*-netbsd*) machine=sparc ;; |
25897 | 1590 vax-*-netbsd*) machine=vax ;; |
27927 | 1591 arm-*-netbsd*) machine=arm ;; |
25897 | 1592 esac |
1593 ;; | |
1594 | |
1595 ## OpenBSD ports | |
1596 *-*-openbsd* ) | |
1597 opsys=openbsd | |
1598 case "${canonical}" in | |
1599 alpha*-*-openbsd*) machine=alpha ;; | |
1600 i386-*-openbsd*) machine=intel386 ;; | |
1601 m68k-*-openbsd*) machine=hp9000s300 ;; | |
1602 mipsel-*-openbsd*) machine=pmax ;; | |
1603 ns32k-*-openbsd*) machine=ns32000 ;; | |
1604 sparc-*-openbsd*) machine=sparc ;; | |
1605 vax-*-openbsd*) machine=vax ;; | |
1606 esac | |
1607 ;; | |
1608 | |
1609 ## Acorn RISCiX: | |
1610 arm-acorn-riscix1.1* ) | |
1611 machine=acorn opsys=riscix1-1 | |
1612 ;; | |
1613 arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
1614 ## This name is riscix12 instead of riscix1.2 | |
1615 ## to avoid a file name conflict on MSDOS. | |
1616 machine=acorn opsys=riscix12 | |
1617 ;; | |
1618 | |
1619 ## BSDI ports | |
1620 *-*-bsdi* ) | |
1621 opsys=bsdi | |
1622 case "${canonical}" in | |
1623 i[345]86-*-bsdi*) machine=intel386 ;; | |
1624 sparc-*-bsdi*) machine=sparc ;; | |
33740 | 1625 powerpc-*-bsdi*) machine=macppc ;; |
25897 | 1626 esac |
1627 case "${canonical}" in | |
1628 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
1629 *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
1630 *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
1631 *-*-bsdi3* ) opsys=bsdos3 ;; | |
42988 | 1632 *-*-bsdi[45]* ) opsys=bsdos4 ;; |
25897 | 1633 esac |
1634 ;; | |
1635 | |
1636 ## Alliant machines | |
1637 ## Strictly speaking, we need the version of the alliant operating | |
1638 ## system to choose the right machine file, but currently the | |
1639 ## configuration name doesn't tell us enough to choose the right | |
1640 ## one; we need to give alliants their own operating system name to | |
1641 ## do this right. When someone cares, they can help us. | |
1642 fx80-alliant-* ) | |
1643 machine=alliant4 opsys=bsd4-2 | |
1644 ;; | |
1645 i860-alliant-* ) | |
1646 machine=alliant-2800 opsys=bsd4-3 | |
1647 ;; | |
1648 | |
1649 ## Alpha (DEC) machines. | |
1650 alpha*-dec-osf* ) | |
1651 machine=alpha opsys=osf1 | |
1652 # This is needed to find X11R6.1 libraries for certain tests. | |
1653 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
1654 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
34446 | 1655 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
1656 # due to non-traditional preprocessing with the current compiler | |
1657 # defaults. OSF 4 can also have that compiler version, and there | |
1658 # seems always to have been a usable /usr/bin/cpp. | |
1659 NON_GNU_CPP=/usr/bin/cpp | |
27883 | 1660 case "${canonical}" in |
31994 | 1661 alpha*-dec-osf[5-9]*) |
31229 | 1662 opsys=osf5-0 ;; |
27883 | 1663 esac |
25897 | 1664 ;; |
1665 | |
1666 alpha*-*-linux-gnu* ) | |
1667 machine=alpha opsys=gnu-linux | |
1668 ;; | |
1669 | |
27205 | 1670 arm*-*-linux-gnu* ) |
1671 machine=arm opsys=gnu-linux | |
1672 ;; | |
1673 | |
1674 ppc-*-linux | \ | |
1675 powerpc-*-linux* ) | |
33740 | 1676 machine=macppc opsys=gnu-linux |
27205 | 1677 ;; |
1678 | |
25897 | 1679 ## Altos 3068 |
1680 m68*-altos-sysv* ) | |
1681 machine=altos opsys=usg5-2 | |
1682 ;; | |
1683 | |
1684 ## Amdahl UTS | |
1685 580-amdahl-sysv* ) | |
1686 machine=amdahl opsys=usg5-2-2 | |
1687 ;; | |
1688 | |
1689 ## Apollo, Domain/OS | |
1690 m68*-apollo-* ) | |
1691 machine=apollo opsys=bsd4-3 | |
1692 ;; | |
1693 | |
1694 ## AT&T 3b2, 3b5, 3b15, 3b20 | |
1695 we32k-att-sysv* ) | |
1696 machine=att3b opsys=usg5-2-2 | |
1697 ;; | |
1698 | |
1699 ## AT&T 3b1 - The Mighty Unix PC! | |
1700 m68*-att-sysv* ) | |
1701 machine=7300 opsys=usg5-2-2 | |
1702 ;; | |
1703 | |
1704 ## Bull dpx20 | |
1705 rs6000-bull-bosx* ) | |
1706 machine=ibmrs6000 opsys=aix3-2 | |
1707 ;; | |
1708 | |
1709 ## Bull dpx2 | |
1710 m68*-bull-sysv3* ) | |
1711 machine=dpx2 opsys=usg5-3 | |
1712 ;; | |
1713 | |
1714 ## Bull sps7 | |
1715 m68*-bull-sysv2* ) | |
1716 machine=sps7 opsys=usg5-2 | |
1717 ;; | |
1718 | |
1719 ## CCI 5/32, 6/32 -- see "Tahoe". | |
1720 | |
1721 ## Celerity | |
1722 ## I don't know what configuration name to use for this; config.sub | |
1723 ## doesn't seem to know anything about it. Hey, Celerity users, get | |
1724 ## in touch with us! | |
1725 celerity-celerity-bsd* ) | |
1726 machine=celerity opsys=bsd4-2 | |
1727 ;; | |
1728 | |
1729 ## Clipper | |
1730 ## What operating systems does this chip run that Emacs has been | |
1731 ## tested on? | |
1732 clipper-* ) | |
1733 machine=clipper | |
1734 ## We'll use the catch-all code at the bottom to guess the | |
1735 ## operating system. | |
1736 ;; | |
1737 | |
43721 | 1738 ## Compaq Nonstop |
1739 mips-compaq-nonstopux* ) | |
1740 machine=nonstopux opsys=nonstopux | |
1741 ;; | |
1742 | |
25897 | 1743 ## Convex |
1744 *-convex-bsd* | *-convex-convexos* ) | |
1745 machine=convex opsys=bsd4-3 | |
1746 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
1747 NON_GNU_CPP="cc -E -P" | |
1748 ;; | |
1749 | |
1750 ## Cubix QBx/386 | |
1751 i[3456]86-cubix-sysv* ) | |
1752 machine=intel386 opsys=usg5-3 | |
1753 ;; | |
1754 | |
1755 ## Cydra 5 | |
1756 cydra*-cydrome-sysv* ) | |
1757 machine=cydra5 opsys=usg5-3 | |
1758 ;; | |
1759 | |
1760 ## Data General AViiON Machines | |
1761 ## DG changed naming conventions with the release of 5.4.4.10, they | |
1762 ## dropped the initial 5.4 but left the intervening R. Because of the | |
1763 ## R this shouldn't conflict with older versions of the OS (which I | |
1764 ## think were named like dgux4.*). In addition, DG new AViiONs series | |
1765 ## uses either Motorola M88k or Intel Pentium CPUs. | |
1766 m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
1767 machine=aviion opsys=dgux4 | |
1768 ;; | |
1769 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
1770 ## This name is dgux5-4-3 instead of dgux5-4r3 | |
1771 ## to avoid a file name conflict on MSDOS. | |
1772 machine=aviion opsys=dgux5-4-3 | |
1773 ;; | |
1774 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
1775 machine=aviion opsys=dgux5-4r2 | |
1776 ;; | |
1777 m88k-dg-dgux* ) | |
1778 machine=aviion opsys=dgux | |
1779 ;; | |
1780 | |
1781 ## Data General AViiON Intel (x86) Machines | |
1782 ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
1783 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
1784 i[345]86-dg-dguxR4* ) | |
1785 machine=aviion-intel opsys=dgux4 | |
1786 ;; | |
1787 | |
1788 ## DECstations | |
1789 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1790 machine=pmax opsys=bsd4-2 | |
1791 ;; | |
1792 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1793 machine=pmax opsys=bsd4-3 | |
1794 ;; | |
1795 mips-dec-ultrix* ) | |
1796 machine=pmax opsys=ultrix4-3 | |
1797 ;; | |
1798 mips-dec-osf* ) | |
1799 machine=pmax opsys=osf1 | |
1800 ;; | |
1801 mips-dec-mach_bsd4.3* ) | |
1802 machine=pmax opsys=mach-bsd4-3 | |
1803 ;; | |
1804 | |
1805 ## Motorola Delta machines | |
1806 m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1807 machine=delta opsys=usg5-3 | |
1808 if test -z "`type gnucc | grep 'not found'`" | |
1809 then | |
1810 if test -s /etc/167config | |
1811 then CC="gnucc -m68040" | |
1812 else CC="gnucc -m68881" | |
1813 fi | |
1814 else | |
1815 if test -z "`type gcc | grep 'not found'`" | |
1816 then CC=gcc | |
1817 else CC=cc | |
1818 fi | |
1819 fi | |
1820 ;; | |
1821 m88k-motorola-sysv4* ) | |
1822 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1823 # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1824 # I hope there are not other 4.0 versions for this machine | |
1825 # which really need usg5-4 instead. | |
1826 machine=delta88k opsys=usg5-4-2 | |
1827 ;; | |
1828 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1829 machine=delta88k opsys=usg5-3 | |
1830 ;; | |
1831 | |
1832 ## Dual machines | |
1833 m68*-dual-sysv* ) | |
1834 machine=dual opsys=usg5-2 | |
1835 ;; | |
1836 m68*-dual-uniplus* ) | |
1837 machine=dual opsys=unipl5-2 | |
1838 ;; | |
1839 | |
1840 ## Elxsi 6400 | |
1841 elxsi-elxsi-sysv* ) | |
1842 machine=elxsi opsys=usg5-2 | |
1843 ;; | |
1844 | |
1845 ## Encore machines | |
1846 ns16k-encore-bsd* ) | |
1847 machine=ns16000 opsys=umax | |
1848 ;; | |
1849 | |
30069 | 1850 ## The GEC 63 - apparently, this port isn't really finished yet. |
1851 # I'm sure we finished off the last of the machines, though. -- fx | |
25897 | 1852 |
1853 ## Gould Power Node and NP1 | |
1854 pn-gould-bsd4.2* ) | |
1855 machine=gould opsys=bsd4-2 | |
1856 ;; | |
1857 pn-gould-bsd4.3* ) | |
1858 machine=gould opsys=bsd4-3 | |
1859 ;; | |
1860 np1-gould-bsd* ) | |
1861 machine=gould-np1 opsys=bsd4-3 | |
1862 ;; | |
1863 | |
1864 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
1865 ## as far as Emacs is concerned). | |
1866 m88k-harris-cxux* ) | |
1867 # Build needs to be different on 7.0 and later releases | |
1868 case "`uname -r`" in | |
1869 [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
1870 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
1871 esac | |
1872 NON_GNU_CPP="/lib/cpp" | |
1873 ;; | |
1874 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
1875 m68k-harris-cxux* ) | |
1876 machine=nh3000 opsys=cxux | |
1877 ;; | |
1878 ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
1879 powerpc-harris-powerunix ) | |
1880 machine=nh6000 opsys=powerunix | |
1881 NON_GNU_CPP="cc -Xo -E -P" | |
1882 ;; | |
1883 ## SR2001/SR2201 running HI-UX/MPP | |
1884 hppa1.1-hitachi-hiuxmpp* ) | |
1885 machine=sr2k opsys=hiuxmpp | |
1886 ;; | |
38811 | 1887 hppa1.1-hitachi-hiuxwe2* ) |
1888 machine=sr2k opsys=hiuxwe2 | |
1889 ;; | |
25897 | 1890 ## Honeywell XPS100 |
1891 xps*-honeywell-sysv* ) | |
1892 machine=xps100 opsys=usg5-2 | |
1893 ;; | |
1894 | |
1895 ## HP 9000 series 200 or 300 | |
1896 m68*-hp-bsd* ) | |
1897 machine=hp9000s300 opsys=bsd4-3 | |
1898 ;; | |
1899 ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
1900 m68*-hp-hpux* ) | |
1901 case "`uname -r`" in | |
1902 ## Someone's system reports A.B8.05 for this. | |
1903 ## I wonder what other possibilities there are. | |
1904 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1905 *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1906 *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
1907 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
1908 *) machine=hp9000s300 opsys=hpux ;; | |
1909 esac | |
1910 ;; | |
1911 | |
1912 ## HP 9000 series 700 and 800, running HP/UX | |
1913 hppa*-hp-hpux7* ) | |
1914 machine=hp800 opsys=hpux | |
1915 ;; | |
1916 hppa*-hp-hpux8* ) | |
1917 machine=hp800 opsys=hpux8 | |
1918 ;; | |
1919 hppa*-hp-hpux9shr* ) | |
1920 machine=hp800 opsys=hpux9shr | |
1921 ;; | |
1922 hppa*-hp-hpux9* ) | |
1923 machine=hp800 opsys=hpux9 | |
1924 ;; | |
40632 | 1925 hppa*-hp-hpux10* ) |
25897 | 1926 machine=hp800 opsys=hpux10 |
1927 ;; | |
40632 | 1928 hppa*-hp-hpux1[1-9]* ) |
1929 machine=hp800 opsys=hpux11 | |
1930 ;; | |
25897 | 1931 |
41960 | 1932 hppa*-*-linux-gnu* ) |
1933 machine=hp800 opsys=gnu-linux | |
1934 ;; | |
1935 | |
25897 | 1936 ## HP 9000 series 700 and 800, running HP/UX |
1937 hppa*-hp-hpux* ) | |
1938 ## Cross-compilation? Nah! | |
1939 case "`uname -r`" in | |
1940 ## Someone's system reports A.B8.05 for this. | |
1941 ## I wonder what other possibilities there are. | |
1942 *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
1943 *.08.* ) machine=hp800 opsys=hpux8 ;; | |
1944 *.09.* ) machine=hp800 opsys=hpux9 ;; | |
1945 *) machine=hp800 opsys=hpux10 ;; | |
1946 esac | |
1947 ;; | |
1948 hppa*-*-nextstep* ) | |
1949 machine=hp800 opsys=nextstep | |
1950 ;; | |
1951 | |
1952 ## Orion machines | |
1953 orion-orion-bsd* ) | |
1954 machine=orion opsys=bsd4-2 | |
1955 ;; | |
1956 clipper-orion-bsd* ) | |
1957 machine=orion105 opsys=bsd4-2 | |
1958 ;; | |
1959 | |
1960 ## IBM machines | |
1961 i[3456]86-ibm-aix1.1* ) | |
1962 machine=ibmps2-aix opsys=usg5-2-2 | |
1963 ;; | |
1964 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
1965 machine=ibmps2-aix opsys=usg5-3 | |
1966 ;; | |
1967 i370-ibm-aix*) | |
1968 machine=ibm370aix opsys=usg5-3 | |
1969 ;; | |
40426 | 1970 s390-*-linux-gnu) |
1971 machine=ibms390 opsys=gnu-linux | |
1972 ;; | |
25897 | 1973 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
1974 machine=ibmrs6000 opsys=aix3-1 | |
1975 ;; | |
1976 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
1977 machine=ibmrs6000 opsys=aix3-2-5 | |
1978 ;; | |
1979 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
1980 machine=ibmrs6000 opsys=aix4-1 | |
1981 ;; | |
1982 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
1983 machine=ibmrs6000 opsys=aix4-2 | |
1984 ;; | |
43924 | 1985 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* ) |
1986 machine=ibmrs6000 opsys=aix4-2 | |
1987 ;; | |
25897 | 1988 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
1989 machine=ibmrs6000 opsys=aix4 | |
1990 ;; | |
1991 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
1992 machine=ibmrs6000 opsys=aix4-1 | |
1993 ;; | |
1994 rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
1995 machine=ibmrs6000 opsys=aix3-2 | |
1996 ;; | |
1997 romp-ibm-bsd4.3* ) | |
1998 machine=ibmrt opsys=bsd4-3 | |
1999 ;; | |
2000 romp-ibm-bsd4.2* ) | |
2001 machine=ibmrt opsys=bsd4-2 | |
2002 ;; | |
2003 romp-ibm-aos4.3* ) | |
2004 machine=ibmrt opsys=bsd4-3 | |
2005 ;; | |
2006 romp-ibm-aos4.2* ) | |
2007 machine=ibmrt opsys=bsd4-2 | |
2008 ;; | |
2009 romp-ibm-aos* ) | |
2010 machine=ibmrt opsys=bsd4-3 | |
2011 ;; | |
2012 romp-ibm-bsd* ) | |
2013 machine=ibmrt opsys=bsd4-3 | |
2014 ;; | |
2015 romp-ibm-aix* ) | |
2016 machine=ibmrt-aix opsys=usg5-2-2 | |
2017 ;; | |
2018 | |
2019 ## Integrated Solutions `Optimum V' | |
2020 m68*-isi-bsd4.2* ) | |
2021 machine=isi-ov opsys=bsd4-2 | |
2022 ;; | |
2023 m68*-isi-bsd4.3* ) | |
2024 machine=isi-ov opsys=bsd4-3 | |
2025 ;; | |
2026 | |
2027 ## Intel 386 machines where we do care about the manufacturer | |
2028 i[3456]86-intsys-sysv* ) | |
2029 machine=is386 opsys=usg5-2-2 | |
2030 ;; | |
2031 | |
2032 ## Prime EXL | |
2033 i[3456]86-prime-sysv* ) | |
2034 machine=i386 opsys=usg5-3 | |
2035 ;; | |
2036 | |
2037 ## Sequent Symmetry running Dynix | |
2038 i[3456]86-sequent-bsd* ) | |
2039 machine=symmetry opsys=bsd4-3 | |
2040 ;; | |
2041 | |
2042 ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
2043 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
2044 machine=sequent-ptx opsys=ptx4 | |
2045 NON_GNU_CPP=/lib/cpp | |
2046 ;; | |
2047 | |
2048 ## Sequent Symmetry running DYNIX/ptx | |
2049 ## Use the old cpp rather than the newer ANSI one. | |
2050 i[3456]86-sequent-ptx* ) | |
2051 machine=sequent-ptx opsys=ptx | |
2052 NON_GNU_CPP="/lib/cpp" | |
2053 ;; | |
2054 | |
2055 ## ncr machine running svr4.3. | |
2056 i[3456]86-ncr-sysv4.3 ) | |
2057 machine=ncr386 opsys=usg5-4-3 | |
2058 ;; | |
2059 | |
2060 ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
2061 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
2062 i[3456]86-ncr-sysv* ) | |
2063 machine=ncr386 opsys=usg5-4-2 | |
2064 ;; | |
2065 | |
2066 ## Intel Paragon OSF/1 | |
2067 i860-intel-osf1* ) | |
2068 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
2069 ;; | |
2070 | |
2071 ## Intel 860 | |
2072 i860-*-sysv4* ) | |
2073 machine=i860 opsys=usg5-4 | |
2074 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
2075 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
2076 ;; | |
2077 | |
28748 | 2078 ## Macintosh PowerPC |
2079 powerpc*-*-linux-gnu* ) | |
2080 machine=macppc opsys=gnu-linux | |
2081 ;; | |
2082 | |
25897 | 2083 ## Masscomp machines |
2084 m68*-masscomp-rtu* ) | |
2085 machine=masscomp opsys=rtu | |
2086 ;; | |
2087 | |
2088 ## Megatest machines | |
2089 m68*-megatest-bsd* ) | |
2090 machine=mega68 opsys=bsd4-2 | |
2091 ;; | |
2092 | |
2093 ## Workstations sold by MIPS | |
2094 ## This is not necessarily all workstations using the MIPS processor - | |
2095 ## Irises are produced by SGI, and DECstations by DEC. | |
2096 | |
2097 ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
2098 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
2099 ## it gives for choosing between the alternatives seems to be "Use | |
2100 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
2101 ## the BSD world." I'll assume that these are instructions for | |
2102 ## handling two odd situations, and that every other situation | |
2103 ## should use mips.h and usg5-2-2, they being listed first. | |
2104 mips-mips-usg* ) | |
2105 machine=mips4 | |
2106 ## Fall through to the general code at the bottom to decide on the OS. | |
2107 ;; | |
2108 mips-mips-riscos4* ) | |
2109 machine=mips4 opsys=bsd4-3 | |
2110 NON_GNU_CC="cc -systype bsd43" | |
2111 NON_GNU_CPP="cc -systype bsd43 -E" | |
2112 ;; | |
2113 mips-mips-riscos5* ) | |
2114 machine=mips4 opsys=riscos5 | |
2115 NON_GNU_CC="cc -systype bsd43" | |
2116 NON_GNU_CPP="cc -systype bsd43 -E" | |
2117 ;; | |
2118 mips-mips-bsd* ) | |
2119 machine=mips opsys=bsd4-3 | |
2120 ;; | |
2121 mips-mips-* ) | |
2122 machine=mips opsys=usg5-2-2 | |
2123 ;; | |
2124 | |
2125 ## NeXT | |
2126 m68*-next-* | m68k-*-nextstep* ) | |
2127 machine=m68k opsys=nextstep | |
2128 ;; | |
2129 | |
2130 ## The complete machine from National Semiconductor | |
2131 ns32k-ns-genix* ) | |
2132 machine=ns32000 opsys=usg5-2 | |
2133 ;; | |
2134 | |
2135 ## NCR machines | |
2136 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
2137 machine=tower32 opsys=usg5-2-2 | |
2138 ;; | |
2139 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
2140 machine=tower32v3 opsys=usg5-3 | |
2141 ;; | |
2142 | |
2143 ## NEC EWS4800 | |
2144 mips-nec-sysv4*) | |
2145 machine=ews4800 opsys=ux4800 | |
2146 ;; | |
2147 | |
2148 ## Nixdorf Targon 31 | |
2149 m68*-nixdorf-sysv* ) | |
2150 machine=targon31 opsys=usg5-2-2 | |
2151 ;; | |
2152 | |
2153 ## Nu (TI or LMI) | |
2154 m68*-nu-sysv* ) | |
2155 machine=nu opsys=usg5-2 | |
2156 ;; | |
2157 | |
2158 ## Plexus | |
2159 m68*-plexus-sysv* ) | |
2160 machine=plexus opsys=usg5-2 | |
2161 ;; | |
2162 | |
2163 ## PowerPC reference platform | |
2164 powerpcle-*-solaris2* ) | |
2165 machine=prep | |
2166 opsys=sol2-5 | |
2167 ;; | |
2168 | |
2169 ## Pyramid machines | |
2170 ## I don't really have any idea what sort of processor the Pyramid has, | |
2171 ## so I'm assuming it is its own architecture. | |
2172 pyramid-pyramid-bsd* ) | |
2173 machine=pyramid opsys=bsd4-2 | |
2174 ;; | |
2175 | |
2176 ## Sequent Balance | |
2177 ns32k-sequent-bsd4.2* ) | |
2178 machine=sequent opsys=bsd4-2 | |
2179 ;; | |
2180 ns32k-sequent-bsd4.3* ) | |
2181 machine=sequent opsys=bsd4-3 | |
2182 ;; | |
2183 | |
2184 ## Siemens Nixdorf | |
2185 mips-siemens-sysv* | mips-sni-sysv*) | |
2186 machine=mips-siemens opsys=usg5-4 | |
2187 NON_GNU_CC=/usr/ccs/bin/cc | |
2188 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2189 ;; | |
2190 | |
2191 ## Silicon Graphics machines | |
2192 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
2193 m68*-sgi-iris3.5* ) | |
2194 machine=irist opsys=iris3-5 | |
2195 ;; | |
2196 m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
2197 machine=irist opsys=iris3-6 | |
2198 ;; | |
2199 ## Iris 4D | |
2200 mips-sgi-irix3* ) | |
2201 machine=iris4d opsys=irix3-3 | |
2202 ;; | |
2203 mips-sgi-irix4* ) | |
2204 machine=iris4d opsys=irix4-0 | |
2205 ;; | |
2206 mips-sgi-irix6.5 ) | |
2207 machine=iris4d opsys=irix6-5 | |
26502 | 2208 # Without defining _LANGUAGE_C, things get masked out in the headers |
2209 # so that, for instance, grepping for `free' in stdlib.h fails and | |
2210 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
2211 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 2212 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
25897 | 2213 ;; |
2214 mips-sgi-irix6* ) | |
2215 machine=iris4d opsys=irix6-0 | |
27205 | 2216 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
26502 | 2217 # but presumably it does no harm. |
2218 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 2219 # -32 probably isn't necessary in later v.6s -- anyone know which? |
25897 | 2220 NON_GCC_TEST_OPTIONS=-32 |
2221 ;; | |
2222 mips-sgi-irix5.[01]* ) | |
2223 machine=iris4d opsys=irix5-0 | |
2224 ;; | |
2225 mips-sgi-irix5* | mips-sgi-irix* ) | |
2226 machine=iris4d opsys=irix5-2 | |
2227 ;; | |
2228 | |
2229 ## SONY machines | |
2230 m68*-sony-bsd4.2* ) | |
2231 machine=news opsys=bsd4-2 | |
2232 ;; | |
2233 m68*-sony-bsd4.3* ) | |
2234 machine=news opsys=bsd4-3 | |
2235 ;; | |
2236 m68*-sony-newsos3* | m68*-sony-news3*) | |
2237 machine=news opsys=bsd4-3 | |
2238 ;; | |
2239 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
2240 machine=news-risc opsys=bsd4-3 | |
2241 ;; | |
2242 mips-sony-newsos6* ) | |
2243 machine=news-r6 opsys=newsos6 | |
2244 ;; | |
2245 mips-sony-news* ) | |
2246 machine=news-risc opsys=newsos5 | |
2247 ;; | |
2248 | |
2249 ## Stride | |
2250 m68*-stride-sysv* ) | |
2251 machine=stride opsys=usg5-2 | |
2252 ;; | |
2253 | |
2254 ## Suns | |
2255 sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
2256 machine=sparc opsys=gnu-linux | |
2257 ;; | |
2258 | |
27949 | 2259 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
25897 | 2260 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
2261 | rs6000-*-solaris2*) | |
2262 case "${canonical}" in | |
2263 m68*-sunos1* ) machine=sun1 ;; | |
2264 m68*-sunos2* ) machine=sun2 ;; | |
2265 m68* ) machine=sun3 ;; | |
2266 i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
2267 i[3456]86-*-* ) machine=intel386 ;; | |
2268 powerpcle* ) machine=powerpcle ;; | |
2269 powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
2270 sparc* ) machine=sparc ;; | |
2271 * ) unported=yes ;; | |
2272 esac | |
2273 case "${canonical}" in | |
2274 ## The Sun386 didn't get past 4.0. | |
2275 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
2276 *-sunos4.0* ) opsys=sunos4-0 ;; | |
2277 *-sunos4.1.[3-9]*noshare ) | |
2278 ## This name is sunos413 instead of sunos4-1-3 | |
2279 ## to avoid a file name conflict on MSDOS. | |
2280 opsys=sunos413 | |
2281 NON_GNU_CPP=/usr/lib/cpp | |
2282 NON_GCC_TEST_OPTIONS=-Bstatic | |
2283 GCC_TEST_OPTIONS=-static | |
2284 ;; | |
2285 *-sunos4.1.[3-9]* | *-sunos4shr*) | |
2286 opsys=sunos4shr | |
2287 NON_GNU_CPP=/usr/lib/cpp | |
2288 ;; | |
2289 *-sunos4* | *-sunos ) | |
2290 opsys=sunos4-1 | |
2291 NON_GCC_TEST_OPTIONS=-Bstatic | |
2292 GCC_TEST_OPTIONS=-static | |
2293 ;; | |
2294 *-sunos5.3* | *-solaris2.3* ) | |
2295 opsys=sol2-3 | |
2296 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2297 ;; | |
2298 *-sunos5.4* | *-solaris2.4* ) | |
2299 opsys=sol2-4 | |
2300 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2301 RANLIB="ar -ts" | |
2302 ;; | |
2303 *-sunos5.5* | *-solaris2.5* ) | |
2304 opsys=sol2-5 | |
2305 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2306 RANLIB="ar -ts" | |
2307 ;; | |
2308 *-sunos5* | *-solaris* ) | |
2309 opsys=sol2-5 | |
2310 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2311 ;; | |
2312 * ) opsys=bsd4-2 ;; | |
2313 esac | |
2314 ## Watch out for a compiler that we know will not work. | |
2315 case "${canonical}" in | |
2316 *-solaris* | *-sunos5* ) | |
2317 if [ "x$CC" = x/usr/ucb/cc ]; then | |
2318 ## /usr/ucb/cc doesn't work; | |
2319 ## we should find some other compiler that does work. | |
2320 unset CC | |
2321 fi | |
2322 ;; | |
2323 *) ;; | |
2324 esac | |
2325 ;; | |
2326 sparc-*-nextstep* ) | |
2327 machine=sparc opsys=nextstep | |
2328 ;; | |
2329 | |
2330 ## Tadpole 68k | |
2331 m68*-tadpole-sysv* ) | |
2332 machine=tad68k opsys=usg5-3 | |
2333 ;; | |
2334 | |
2335 ## Tahoe machines | |
2336 tahoe-tahoe-bsd4.2* ) | |
2337 machine=tahoe opsys=bsd4-2 | |
2338 ;; | |
2339 tahoe-tahoe-bsd4.3* ) | |
2340 machine=tahoe opsys=bsd4-3 | |
2341 ;; | |
2342 | |
2343 ## Tandem Integrity S2 | |
2344 mips-tandem-sysv* ) | |
2345 machine=tandem-s2 opsys=usg5-3 | |
2346 ;; | |
2347 | |
2348 ## Tektronix XD88 | |
2349 m88k-tektronix-sysv3* ) | |
2350 machine=tekxd88 opsys=usg5-3 | |
2351 ;; | |
2352 | |
2353 ## Tektronix 16000 box (6130?) | |
2354 ns16k-tektronix-bsd* ) | |
2355 machine=ns16000 opsys=bsd4-2 | |
2356 ;; | |
2357 ## Tektronix 4300 | |
2358 ## src/m/tek4300.h hints that this is a m68k machine. | |
2359 m68*-tektronix-bsd* ) | |
2360 machine=tek4300 opsys=bsd4-3 | |
2361 ;; | |
2362 | |
2363 ## Titan P2 or P3 | |
2364 ## We seem to have lost the machine-description file titan.h! | |
2365 titan-titan-sysv* ) | |
2366 machine=titan opsys=usg5-3 | |
2367 ;; | |
2368 | |
2369 ## Ustation E30 (SS5E) | |
2370 m68*-unisys-uniplus* ) | |
2371 machine=ustation opsystem=unipl5-2 | |
2372 ;; | |
2373 | |
2374 ## Vaxen. | |
2375 vax-dec-* ) | |
2376 machine=vax | |
2377 case "${canonical}" in | |
2378 *-bsd4.1* ) opsys=bsd4-1 ;; | |
2379 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
2380 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
2381 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
2382 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
2383 *-vms* ) opsys=vms ;; | |
2384 * ) unported=yes | |
2385 esac | |
2386 ;; | |
2387 | |
2388 ## Whitechapel MG1 | |
2389 ns16k-whitechapel-* ) | |
2390 machine=mg1 | |
2391 ## We don't know what sort of OS runs on these; we'll let the | |
2392 ## operating system guessing code below try. | |
2393 ;; | |
2394 | |
2395 ## Wicat | |
2396 m68*-wicat-sysv* ) | |
2397 machine=wicat opsys=usg5-2 | |
2398 ;; | |
2399 | |
30576 | 2400 ## IA-64 |
2401 ia64*-*-linux* ) | |
2402 machine=ia64 opsys=gnu-linux | |
2403 ;; | |
2404 | |
25897 | 2405 ## Intel 386 machines where we don't care about the manufacturer |
2406 i[3456]86-*-* ) | |
2407 machine=intel386 | |
2408 case "${canonical}" in | |
29654 | 2409 *-lynxos* ) opsys=lynxos ;; |
25897 | 2410 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
2411 *-isc2.2* ) opsys=isc2-2 ;; | |
2412 *-isc4.0* ) opsys=isc4-0 ;; | |
2413 *-isc4.* ) opsys=isc4-1 | |
2414 GCC_TEST_OPTIONS=-posix | |
2415 NON_GCC_TEST_OPTIONS=-Xp | |
2416 ;; | |
2417 *-isc* ) opsys=isc3-0 ;; | |
2418 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
2419 *-esix* ) opsys=esix ;; | |
2420 *-xenix* ) opsys=xenix ;; | |
2421 *-linux-gnu* ) opsys=gnu-linux ;; | |
2422 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
40056 | 2423 *-sco3.2v5* ) opsys=sco5 |
25897 | 2424 NON_GNU_CPP=/lib/cpp |
2425 # Prevent -belf from being passed to $CPP. | |
2426 # /lib/cpp does not accept it. | |
2427 OVERRIDE_CPPFLAGS=" " | |
2428 ;; | |
2429 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
2430 *-386bsd* ) opsys=386bsd ;; | |
2431 *-nextstep* ) opsys=nextstep ;; | |
2432 ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
2433 esac | |
2434 ;; | |
2435 | |
2436 ## m68k Linux-based GNU system | |
2437 m68k-*-linux-gnu* ) | |
2438 machine=m68k opsys=gnu-linux | |
2439 ;; | |
2440 | |
2441 ## Mips Linux-based GNU system | |
2442 mips-*-linux-gnu* ) | |
2443 machine=mips opsys=gnu-linux | |
2444 ;; | |
2445 | |
2446 ## UXP/DS | |
2447 sparc-fujitsu-sysv4* ) | |
2448 machine=sparc opsys=uxpds | |
2449 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2450 RANLIB="ar -ts" | |
2451 ;; | |
2452 | |
2453 ## UXP/V | |
2454 f301-fujitsu-uxpv4.1) | |
2455 machine=f301 opsys=uxpv | |
2456 ;; | |
2457 | |
2458 * ) | |
2459 unported=yes | |
2460 ;; | |
2461 esac | |
2462 | |
2463 ### If the code above didn't choose an operating system, just choose | |
2464 ### an operating system based on the configuration name. You really | |
2465 ### only want to use this when you have no idea what the right | |
2466 ### operating system is; if you know what operating systems a machine | |
2467 ### runs, it's cleaner to make it explicit in the case statement | |
2468 ### above. | |
2469 if test x"${opsys}" = x; then | |
2470 case "${canonical}" in | |
2471 *-gnu* ) opsys=gnu ;; | |
2472 *-bsd4.[01] ) opsys=bsd4-1 ;; | |
2473 *-bsd4.2 ) opsys=bsd4-2 ;; | |
2474 *-bsd4.3 ) opsys=bsd4-3 ;; | |
2475 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
2476 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
2477 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
2478 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
2479 *-sysv4.2uw* ) opsys=unixware ;; | |
2480 *-sysv4.1* | *-sysvr4.1* ) | |
2481 NON_GNU_CPP=/usr/lib/cpp | |
2482 opsys=usg5-4 ;; | |
2483 *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
2484 if [ x$NON_GNU_CPP = x ]; then | |
2485 if [ -f /usr/ccs/lib/cpp ]; then | |
2486 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2487 else | |
2488 NON_GNU_CPP=/lib/cpp | |
2489 fi | |
2490 fi | |
2491 opsys=usg5-4-2 ;; | |
2492 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
2493 * ) | |
2494 unported=yes | |
2495 ;; | |
2496 esac | |
2497 fi | |
2498 | |
44493 | 2499 |
25897 | 2500 if test $unported = yes; then |
44493 | 2501 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. |
40056 | 2502 Check \`etc/MACHINES' for recognized configuration names." >&5 |
2503 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
2504 Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
2505 { (exit 1); exit 1; }; } | |
25897 | 2506 fi |
2507 | |
2508 machfile="m/${machine}.h" | |
2509 opsysfile="s/${opsys}.h" | |
2510 | |
44493 | 2511 |
25897 | 2512 #### Choose a compiler. |
2513 test -n "$CC" && cc_specified=yes | |
2514 | |
2515 # Save the value of CFLAGS that the user specified. | |
2516 SPECIFIED_CFLAGS="$CFLAGS" | |
2517 | |
2518 case ${with_gcc} in | |
2519 "yes" ) CC="gcc" GCC=yes ;; | |
2520 "no" ) : ${CC=cc} ;; | |
40056 | 2521 * ) |
2522 esac | |
2523 ac_ext=c | |
2524 ac_cpp='$CPP $CPPFLAGS' | |
2525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2527 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2528 if test -n "$ac_tool_prefix"; then | |
2529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2530 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
44493 | 2531 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2533 if test "${ac_cv_prog_CC+set}" = set; then | |
2534 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2535 else | |
2536 if test -n "$CC"; then | |
2537 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2538 else | |
44493 | 2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2540 for as_dir in $PATH | |
2541 do | |
2542 IFS=$as_save_IFS | |
2543 test -z "$as_dir" && as_dir=. | |
2544 for ac_exec_ext in '' $ac_executable_extensions; do | |
2545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2546 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2548 break 2 | |
2549 fi | |
2550 done | |
40056 | 2551 done |
2552 | |
2553 fi | |
2554 fi | |
2555 CC=$ac_cv_prog_CC | |
2556 if test -n "$CC"; then | |
44493 | 2557 echo "$as_me:$LINENO: result: $CC" >&5 |
40056 | 2558 echo "${ECHO_T}$CC" >&6 |
2559 else | |
44493 | 2560 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 2561 echo "${ECHO_T}no" >&6 |
2562 fi | |
2563 | |
2564 fi | |
2565 if test -z "$ac_cv_prog_CC"; then | |
2566 ac_ct_CC=$CC | |
2567 # Extract the first word of "gcc", so it can be a program name with args. | |
25897 | 2568 set dummy gcc; ac_word=$2 |
44493 | 2569 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2572 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2573 else | |
2574 if test -n "$ac_ct_CC"; then | |
2575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2576 else | |
44493 | 2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2578 for as_dir in $PATH | |
2579 do | |
2580 IFS=$as_save_IFS | |
2581 test -z "$as_dir" && as_dir=. | |
2582 for ac_exec_ext in '' $ac_executable_extensions; do | |
2583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2584 ac_cv_prog_ac_ct_CC="gcc" | |
2585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2586 break 2 | |
2587 fi | |
2588 done | |
40056 | 2589 done |
2590 | |
2591 fi | |
2592 fi | |
2593 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2594 if test -n "$ac_ct_CC"; then | |
44493 | 2595 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
40056 | 2596 echo "${ECHO_T}$ac_ct_CC" >&6 |
2597 else | |
44493 | 2598 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 2599 echo "${ECHO_T}no" >&6 |
2600 fi | |
2601 | |
2602 CC=$ac_ct_CC | |
2603 else | |
2604 CC="$ac_cv_prog_CC" | |
2605 fi | |
2606 | |
2607 if test -z "$CC"; then | |
2608 if test -n "$ac_tool_prefix"; then | |
2609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2610 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
44493 | 2611 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2613 if test "${ac_cv_prog_CC+set}" = set; then | |
2614 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 2615 else |
2616 if test -n "$CC"; then | |
2617 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2618 else | |
44493 | 2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2620 for as_dir in $PATH | |
2621 do | |
2622 IFS=$as_save_IFS | |
2623 test -z "$as_dir" && as_dir=. | |
2624 for ac_exec_ext in '' $ac_executable_extensions; do | |
2625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2626 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2628 break 2 | |
2629 fi | |
2630 done | |
40056 | 2631 done |
2632 | |
2633 fi | |
2634 fi | |
2635 CC=$ac_cv_prog_CC | |
25897 | 2636 if test -n "$CC"; then |
44493 | 2637 echo "$as_me:$LINENO: result: $CC" >&5 |
40056 | 2638 echo "${ECHO_T}$CC" >&6 |
2639 else | |
44493 | 2640 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 2641 echo "${ECHO_T}no" >&6 |
2642 fi | |
2643 | |
2644 fi | |
2645 if test -z "$ac_cv_prog_CC"; then | |
2646 ac_ct_CC=$CC | |
2647 # Extract the first word of "cc", so it can be a program name with args. | |
2648 set dummy cc; ac_word=$2 | |
44493 | 2649 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2652 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2653 else | |
2654 if test -n "$ac_ct_CC"; then | |
2655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2656 else | |
44493 | 2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2658 for as_dir in $PATH | |
2659 do | |
2660 IFS=$as_save_IFS | |
2661 test -z "$as_dir" && as_dir=. | |
2662 for ac_exec_ext in '' $ac_executable_extensions; do | |
2663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2664 ac_cv_prog_ac_ct_CC="cc" | |
2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2666 break 2 | |
2667 fi | |
2668 done | |
40056 | 2669 done |
2670 | |
2671 fi | |
2672 fi | |
2673 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2674 if test -n "$ac_ct_CC"; then | |
44493 | 2675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
40056 | 2676 echo "${ECHO_T}$ac_ct_CC" >&6 |
2677 else | |
44493 | 2678 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 2679 echo "${ECHO_T}no" >&6 |
2680 fi | |
2681 | |
2682 CC=$ac_ct_CC | |
2683 else | |
2684 CC="$ac_cv_prog_CC" | |
2685 fi | |
2686 | |
2687 fi | |
25897 | 2688 if test -z "$CC"; then |
2689 # Extract the first word of "cc", so it can be a program name with args. | |
2690 set dummy cc; ac_word=$2 | |
44493 | 2691 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2693 if test "${ac_cv_prog_CC+set}" = set; then | |
2694 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 2695 else |
2696 if test -n "$CC"; then | |
2697 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2698 else | |
2699 ac_prog_rejected=no | |
44493 | 2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2701 for as_dir in $PATH | |
2702 do | |
2703 IFS=$as_save_IFS | |
2704 test -z "$as_dir" && as_dir=. | |
2705 for ac_exec_ext in '' $ac_executable_extensions; do | |
2706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2708 ac_prog_rejected=yes | |
2709 continue | |
2710 fi | |
2711 ac_cv_prog_CC="cc" | |
2712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2713 break 2 | |
2714 fi | |
2715 done | |
40056 | 2716 done |
2717 | |
25897 | 2718 if test $ac_prog_rejected = yes; then |
2719 # We found a bogon in the path, so make sure we never use it. | |
2720 set dummy $ac_cv_prog_CC | |
2721 shift | |
40056 | 2722 if test $# != 0; then |
25897 | 2723 # We chose a different compiler from the bogus one. |
2724 # However, it has the same basename, so the bogon will be chosen | |
2725 # first if we set CC to just the basename; use the full file name. | |
2726 shift | |
44493 | 2727 set dummy "$as_dir/$ac_word" ${1+"$@"} |
25897 | 2728 shift |
2729 ac_cv_prog_CC="$@" | |
2730 fi | |
2731 fi | |
2732 fi | |
2733 fi | |
40056 | 2734 CC=$ac_cv_prog_CC |
25897 | 2735 if test -n "$CC"; then |
44493 | 2736 echo "$as_me:$LINENO: result: $CC" >&5 |
40056 | 2737 echo "${ECHO_T}$CC" >&6 |
2738 else | |
44493 | 2739 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 2740 echo "${ECHO_T}no" >&6 |
2741 fi | |
2742 | |
2743 fi | |
2744 if test -z "$CC"; then | |
2745 if test -n "$ac_tool_prefix"; then | |
2746 for ac_prog in cl | |
2747 do | |
2748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
44493 | 2750 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 2751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2752 if test "${ac_cv_prog_CC+set}" = set; then | |
2753 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27205 | 2754 else |
2755 if test -n "$CC"; then | |
2756 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2757 else | |
44493 | 2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2759 for as_dir in $PATH | |
2760 do | |
2761 IFS=$as_save_IFS | |
2762 test -z "$as_dir" && as_dir=. | |
2763 for ac_exec_ext in '' $ac_executable_extensions; do | |
2764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2765 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2767 break 2 | |
2768 fi | |
2769 done | |
40056 | 2770 done |
2771 | |
2772 fi | |
2773 fi | |
2774 CC=$ac_cv_prog_CC | |
27205 | 2775 if test -n "$CC"; then |
44493 | 2776 echo "$as_me:$LINENO: result: $CC" >&5 |
40056 | 2777 echo "${ECHO_T}$CC" >&6 |
2778 else | |
44493 | 2779 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 2780 echo "${ECHO_T}no" >&6 |
2781 fi | |
2782 | |
2783 test -n "$CC" && break | |
2784 done | |
2785 fi | |
2786 if test -z "$CC"; then | |
2787 ac_ct_CC=$CC | |
2788 for ac_prog in cl | |
2789 do | |
2790 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2791 set dummy $ac_prog; ac_word=$2 | |
44493 | 2792 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2794 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2795 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2796 else | |
2797 if test -n "$ac_ct_CC"; then | |
2798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2799 else | |
44493 | 2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2801 for as_dir in $PATH | |
2802 do | |
2803 IFS=$as_save_IFS | |
2804 test -z "$as_dir" && as_dir=. | |
2805 for ac_exec_ext in '' $ac_executable_extensions; do | |
2806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2807 ac_cv_prog_ac_ct_CC="$ac_prog" | |
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2809 break 2 | |
2810 fi | |
2811 done | |
40056 | 2812 done |
2813 | |
2814 fi | |
2815 fi | |
2816 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2817 if test -n "$ac_ct_CC"; then | |
44493 | 2818 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
40056 | 2819 echo "${ECHO_T}$ac_ct_CC" >&6 |
2820 else | |
44493 | 2821 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 2822 echo "${ECHO_T}no" >&6 |
2823 fi | |
2824 | |
2825 test -n "$ac_ct_CC" && break | |
2826 done | |
2827 | |
2828 CC=$ac_ct_CC | |
2829 fi | |
2830 | |
2831 fi | |
2832 | |
44493 | 2833 |
2834 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 | |
2835 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} | |
40056 | 2836 { (exit 1); exit 1; }; } |
2837 | |
2838 # Provide some information about the compiler. | |
44493 | 2839 echo "$as_me:$LINENO:" \ |
40056 | 2840 "checking for C compiler version" >&5 |
2841 ac_compiler=`set X $ac_compile; echo $2` | |
44493 | 2842 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
40056 | 2843 (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2844 ac_status=$? | |
44493 | 2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 2846 (exit $ac_status); } |
44493 | 2847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
40056 | 2848 (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2849 ac_status=$? | |
44493 | 2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 2851 (exit $ac_status); } |
44493 | 2852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
40056 | 2853 (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2854 ac_status=$? | |
44493 | 2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 2856 (exit $ac_status); } |
2857 | |
2858 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 2859 #line $LINENO "configure" |
2860 #include "confdefs.h" | |
2861 | |
2862 #ifdef F77_DUMMY_MAIN | |
2863 # ifdef __cplusplus | |
2864 extern "C" | |
2865 # endif | |
2866 int F77_DUMMY_MAIN() { return 1; } | |
2867 #endif | |
40056 | 2868 int |
2869 main () | |
2870 { | |
2871 | |
2872 ; | |
2873 return 0; | |
2874 } | |
2875 _ACEOF | |
2876 ac_clean_files_save=$ac_clean_files | |
2877 ac_clean_files="$ac_clean_files a.out a.exe" | |
2878 # Try to create an executable without -o first, disregard a.out. | |
2879 # It will help us diagnose broken compilers, and finding out an intuition | |
2880 # of exeext. | |
44493 | 2881 echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
40056 | 2882 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
2883 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
44493 | 2884 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
40056 | 2885 (eval $ac_link_default) 2>&5 |
2886 ac_status=$? | |
44493 | 2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 2888 (exit $ac_status); }; then |
2889 # Find the output, starting from the most likely. This scheme is | |
2890 # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2891 # resort. | |
44493 | 2892 |
2893 # Be careful to initialize this variable, since it used to be cached. | |
2894 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2895 ac_cv_exeext= | |
2896 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; | |
40056 | 2897 ls a.out conftest 2>/dev/null; |
2898 ls a.* conftest.* 2>/dev/null`; do | |
2899 case $ac_file in | |
44493 | 2900 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
40056 | 2901 a.out ) # We found the default executable, but exeext='' is most |
2902 # certainly right. | |
2903 break;; | |
2904 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2905 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
2906 export ac_cv_exeext | |
2907 break;; | |
2908 * ) break;; | |
2909 esac | |
2910 done | |
2911 else | |
2912 echo "$as_me: failed program was:" >&5 | |
2913 cat conftest.$ac_ext >&5 | |
44493 | 2914 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
40056 | 2915 echo "$as_me: error: C compiler cannot create executables" >&2;} |
2916 { (exit 77); exit 77; }; } | |
2917 fi | |
2918 | |
2919 ac_exeext=$ac_cv_exeext | |
44493 | 2920 echo "$as_me:$LINENO: result: $ac_file" >&5 |
40056 | 2921 echo "${ECHO_T}$ac_file" >&6 |
2922 | |
2923 # Check the compiler produces executables we can run. If not, either | |
2924 # the compiler is broken, or we cross compile. | |
44493 | 2925 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
40056 | 2926 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2927 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2928 # If not cross compiling, check that we can run a simple program. | |
2929 if test "$cross_compiling" != yes; then | |
2930 if { ac_try='./$ac_file' | |
44493 | 2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2932 (eval $ac_try) 2>&5 | |
2933 ac_status=$? | |
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 2935 (exit $ac_status); }; }; then |
2936 cross_compiling=no | |
25897 | 2937 else |
40056 | 2938 if test "$cross_compiling" = maybe; then |
2939 cross_compiling=yes | |
2940 else | |
44493 | 2941 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
40056 | 2942 If you meant to cross compile, use \`--host'." >&5 |
2943 echo "$as_me: error: cannot run C compiled programs. | |
2944 If you meant to cross compile, use \`--host'." >&2;} | |
2945 { (exit 1); exit 1; }; } | |
2946 fi | |
2947 fi | |
2948 fi | |
44493 | 2949 echo "$as_me:$LINENO: result: yes" >&5 |
40056 | 2950 echo "${ECHO_T}yes" >&6 |
2951 | |
2952 rm -f a.out a.exe conftest$ac_cv_exeext | |
2953 ac_clean_files=$ac_clean_files_save | |
2954 # Check the compiler produces executables we can run. If not, either | |
2955 # the compiler is broken, or we cross compile. | |
44493 | 2956 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
40056 | 2957 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
44493 | 2958 echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
40056 | 2959 echo "${ECHO_T}$cross_compiling" >&6 |
2960 | |
44493 | 2961 echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2962 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2964 (eval $ac_link) 2>&5 | |
2965 ac_status=$? | |
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 2967 (exit $ac_status); }; then |
2968 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2969 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2970 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2971 # `rm'. | |
2972 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
2973 case $ac_file in | |
2974 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2975 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2976 export ac_cv_exeext | |
2977 break;; | |
2978 * ) break;; | |
2979 esac | |
2980 done | |
2981 else | |
44493 | 2982 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
2983 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} | |
40056 | 2984 { (exit 1); exit 1; }; } |
2985 fi | |
2986 | |
2987 rm -f conftest$ac_cv_exeext | |
44493 | 2988 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
40056 | 2989 echo "${ECHO_T}$ac_cv_exeext" >&6 |
2990 | |
2991 rm -f conftest.$ac_ext | |
2992 EXEEXT=$ac_cv_exeext | |
2993 ac_exeext=$EXEEXT | |
44493 | 2994 echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2995 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
40056 | 2996 if test "${ac_cv_objext+set}" = set; then |
2997 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2998 else | |
2999 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3000 #line $LINENO "configure" |
3001 #include "confdefs.h" | |
3002 | |
3003 #ifdef F77_DUMMY_MAIN | |
3004 # ifdef __cplusplus | |
3005 extern "C" | |
3006 # endif | |
3007 int F77_DUMMY_MAIN() { return 1; } | |
3008 #endif | |
40056 | 3009 int |
3010 main () | |
3011 { | |
3012 | |
3013 ; | |
3014 return 0; | |
3015 } | |
3016 _ACEOF | |
3017 rm -f conftest.o conftest.obj | |
44493 | 3018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3019 (eval $ac_compile) 2>&5 | |
3020 ac_status=$? | |
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 3022 (exit $ac_status); }; then |
3023 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
3024 case $ac_file in | |
3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
3026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3027 break;; | |
3028 esac | |
3029 done | |
3030 else | |
3031 echo "$as_me: failed program was:" >&5 | |
3032 cat conftest.$ac_ext >&5 | |
44493 | 3033 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
3034 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} | |
40056 | 3035 { (exit 1); exit 1; }; } |
3036 fi | |
3037 | |
3038 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3039 fi | |
44493 | 3040 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
40056 | 3041 echo "${ECHO_T}$ac_cv_objext" >&6 |
3042 OBJEXT=$ac_cv_objext | |
3043 ac_objext=$OBJEXT | |
44493 | 3044 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
40056 | 3045 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
3046 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3047 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3048 else | |
3049 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3050 #line $LINENO "configure" |
3051 #include "confdefs.h" | |
3052 | |
3053 #ifdef F77_DUMMY_MAIN | |
3054 # ifdef __cplusplus | |
3055 extern "C" | |
3056 # endif | |
3057 int F77_DUMMY_MAIN() { return 1; } | |
3058 #endif | |
40056 | 3059 int |
3060 main () | |
3061 { | |
3062 #ifndef __GNUC__ | |
3063 choke me | |
3064 #endif | |
3065 | |
3066 ; | |
3067 return 0; | |
3068 } | |
3069 _ACEOF | |
3070 rm -f conftest.$ac_objext | |
44493 | 3071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3072 (eval $ac_compile) 2>&5 | |
3073 ac_status=$? | |
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3075 (exit $ac_status); } && | |
3076 { ac_try='test -s conftest.$ac_objext' | |
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3078 (eval $ac_try) 2>&5 | |
3079 ac_status=$? | |
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 3081 (exit $ac_status); }; }; then |
3082 ac_compiler_gnu=yes | |
3083 else | |
3084 echo "$as_me: failed program was:" >&5 | |
3085 cat conftest.$ac_ext >&5 | |
3086 ac_compiler_gnu=no | |
3087 fi | |
3088 rm -f conftest.$ac_objext conftest.$ac_ext | |
3089 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3090 | |
3091 fi | |
44493 | 3092 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
40056 | 3093 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
3094 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3095 ac_test_CFLAGS=${CFLAGS+set} | |
3096 ac_save_CFLAGS=$CFLAGS | |
3097 CFLAGS="-g" | |
44493 | 3098 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
40056 | 3099 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
3100 if test "${ac_cv_prog_cc_g+set}" = set; then | |
3101 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3102 else | |
3103 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3104 #line $LINENO "configure" |
3105 #include "confdefs.h" | |
3106 | |
3107 #ifdef F77_DUMMY_MAIN | |
3108 # ifdef __cplusplus | |
3109 extern "C" | |
3110 # endif | |
3111 int F77_DUMMY_MAIN() { return 1; } | |
3112 #endif | |
3113 int | |
3114 main () | |
3115 { | |
3116 | |
3117 ; | |
3118 return 0; | |
3119 } | |
3120 _ACEOF | |
3121 rm -f conftest.$ac_objext | |
3122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3123 (eval $ac_compile) 2>&5 | |
3124 ac_status=$? | |
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3126 (exit $ac_status); } && | |
3127 { ac_try='test -s conftest.$ac_objext' | |
3128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3129 (eval $ac_try) 2>&5 | |
3130 ac_status=$? | |
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 3132 (exit $ac_status); }; }; then |
25897 | 3133 ac_cv_prog_cc_g=yes |
3134 else | |
40056 | 3135 echo "$as_me: failed program was:" >&5 |
3136 cat conftest.$ac_ext >&5 | |
3137 ac_cv_prog_cc_g=no | |
3138 fi | |
3139 rm -f conftest.$ac_objext conftest.$ac_ext | |
3140 fi | |
44493 | 3141 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
40056 | 3142 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
27205 | 3143 if test "$ac_test_CFLAGS" = set; then |
40056 | 3144 CFLAGS=$ac_save_CFLAGS |
27205 | 3145 elif test $ac_cv_prog_cc_g = yes; then |
3146 if test "$GCC" = yes; then | |
25897 | 3147 CFLAGS="-g -O2" |
3148 else | |
27205 | 3149 CFLAGS="-g" |
25897 | 3150 fi |
3151 else | |
27205 | 3152 if test "$GCC" = yes; then |
3153 CFLAGS="-O2" | |
3154 else | |
3155 CFLAGS= | |
3156 fi | |
25897 | 3157 fi |
40056 | 3158 # Some people use a C++ compiler to compile C. Since we use `exit', |
3159 # in C++ we need to declare it. In case someone uses the same compiler | |
3160 # for both compiling C and C++ we need to have the C++ compiler decide | |
3161 # the declaration of exit, since it's the most demanding environment. | |
3162 cat >conftest.$ac_ext <<_ACEOF | |
3163 #ifndef __cplusplus | |
3164 choke me | |
3165 #endif | |
3166 _ACEOF | |
3167 rm -f conftest.$ac_objext | |
44493 | 3168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3169 (eval $ac_compile) 2>&5 | |
3170 ac_status=$? | |
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3172 (exit $ac_status); } && | |
3173 { ac_try='test -s conftest.$ac_objext' | |
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3175 (eval $ac_try) 2>&5 | |
3176 ac_status=$? | |
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 3178 (exit $ac_status); }; }; then |
3179 for ac_declaration in \ | |
3180 ''\ | |
3181 '#include <stdlib.h>' \ | |
3182 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3183 'extern "C" void std::exit (int); using std::exit;' \ | |
3184 'extern "C" void exit (int) throw ();' \ | |
3185 'extern "C" void exit (int);' \ | |
3186 'void exit (int);' | |
3187 do | |
3188 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3189 #line $LINENO "configure" |
40056 | 3190 #include "confdefs.h" |
3191 #include <stdlib.h> | |
3192 $ac_declaration | |
44493 | 3193 #ifdef F77_DUMMY_MAIN |
3194 # ifdef __cplusplus | |
3195 extern "C" | |
3196 # endif | |
3197 int F77_DUMMY_MAIN() { return 1; } | |
3198 #endif | |
40056 | 3199 int |
3200 main () | |
3201 { | |
3202 exit (42); | |
3203 ; | |
3204 return 0; | |
3205 } | |
3206 _ACEOF | |
3207 rm -f conftest.$ac_objext | |
44493 | 3208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3209 (eval $ac_compile) 2>&5 | |
3210 ac_status=$? | |
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3212 (exit $ac_status); } && | |
3213 { ac_try='test -s conftest.$ac_objext' | |
3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3215 (eval $ac_try) 2>&5 | |
3216 ac_status=$? | |
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 3218 (exit $ac_status); }; }; then |
3219 : | |
3220 else | |
3221 echo "$as_me: failed program was:" >&5 | |
3222 cat conftest.$ac_ext >&5 | |
3223 continue | |
3224 fi | |
3225 rm -f conftest.$ac_objext conftest.$ac_ext | |
3226 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3227 #line $LINENO "configure" |
40056 | 3228 #include "confdefs.h" |
3229 $ac_declaration | |
44493 | 3230 #ifdef F77_DUMMY_MAIN |
3231 # ifdef __cplusplus | |
3232 extern "C" | |
3233 # endif | |
3234 int F77_DUMMY_MAIN() { return 1; } | |
3235 #endif | |
40056 | 3236 int |
3237 main () | |
3238 { | |
3239 exit (42); | |
3240 ; | |
3241 return 0; | |
3242 } | |
3243 _ACEOF | |
3244 rm -f conftest.$ac_objext | |
44493 | 3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3246 (eval $ac_compile) 2>&5 | |
3247 ac_status=$? | |
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3249 (exit $ac_status); } && | |
3250 { ac_try='test -s conftest.$ac_objext' | |
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3252 (eval $ac_try) 2>&5 | |
3253 ac_status=$? | |
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 3255 (exit $ac_status); }; }; then |
3256 break | |
3257 else | |
3258 echo "$as_me: failed program was:" >&5 | |
3259 cat conftest.$ac_ext >&5 | |
3260 fi | |
3261 rm -f conftest.$ac_objext conftest.$ac_ext | |
3262 done | |
3263 rm -f conftest* | |
3264 if test -n "$ac_declaration"; then | |
3265 echo '#ifdef __cplusplus' >>confdefs.h | |
3266 echo $ac_declaration >>confdefs.h | |
3267 echo '#endif' >>confdefs.h | |
3268 fi | |
3269 | |
3270 else | |
3271 echo "$as_me: failed program was:" >&5 | |
3272 cat conftest.$ac_ext >&5 | |
3273 fi | |
3274 rm -f conftest.$ac_objext conftest.$ac_ext | |
3275 ac_ext=c | |
3276 ac_cpp='$CPP $CPPFLAGS' | |
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25897 | 3280 |
44493 | 3281 |
25897 | 3282 # On Suns, sometimes $CPP names a directory. |
3283 if test -n "$CPP" && test -d "$CPP"; then | |
3284 CPP= | |
3285 fi | |
3286 | |
3287 #### Some systems specify a CPP to use unless we are using GCC. | |
3288 #### Now that we know whether we are using GCC, we can decide whether | |
3289 #### to use that one. | |
3290 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
3291 then | |
3292 CPP="$NON_GNU_CPP" | |
3293 fi | |
3294 | |
3295 #### Some systems specify a CC to use unless we are using GCC. | |
3296 #### Now that we know whether we are using GCC, we can decide whether | |
3297 #### to use that one. | |
3298 if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
3299 test x$cc_specified != xyes | |
3300 then | |
3301 CC="$NON_GNU_CC" | |
3302 fi | |
3303 | |
3304 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
3305 then | |
3306 CC="$CC $GCC_TEST_OPTIONS" | |
3307 fi | |
3308 | |
3309 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
3310 then | |
3311 CC="$CC $NON_GCC_TEST_OPTIONS" | |
3312 fi | |
3313 | |
3314 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x | |
3315 then | |
3316 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
3317 fi | |
3318 | |
3319 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
3320 then | |
3321 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
3322 fi | |
3323 | |
3324 #### Some other nice autoconf tests. If you add a test here which | |
3325 #### should make an entry in src/config.h, don't forget to add an | |
3326 #### #undef clause to src/config.h.in for autoconf to modify. | |
3327 | |
44493 | 3328 echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
40056 | 3329 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3330 LN_S=$as_ln_s | |
3331 if test "$LN_S" = "ln -s"; then | |
44493 | 3332 echo "$as_me:$LINENO: result: yes" >&5 |
40056 | 3333 echo "${ECHO_T}yes" >&6 |
3334 else | |
44493 | 3335 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
40056 | 3336 echo "${ECHO_T}no, using $LN_S" >&6 |
3337 fi | |
3338 | |
3339 ac_ext=c | |
3340 ac_cpp='$CPP $CPPFLAGS' | |
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
44493 | 3344 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
40056 | 3345 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
25897 | 3346 # On Suns, sometimes $CPP names a directory. |
3347 if test -n "$CPP" && test -d "$CPP"; then | |
3348 CPP= | |
3349 fi | |
3350 if test -z "$CPP"; then | |
40056 | 3351 if test "${ac_cv_prog_CPP+set}" = set; then |
3352 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3353 else | |
3354 # Double quotes because CPP needs to be expanded | |
3355 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3356 do | |
3357 ac_preproc_ok=false | |
3358 for ac_c_preproc_warn_flag in '' yes | |
3359 do | |
3360 # Use a header file that comes with gcc, so configuring glibc | |
3361 # with a fresh cross-compiler works. | |
25897 | 3362 # On the NeXT, cc -E runs the code through the compiler's parser, |
40056 | 3363 # not just through cpp. "Syntax error" is here to catch this case. |
3364 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3365 #line $LINENO "configure" |
25897 | 3366 #include "confdefs.h" |
3367 #include <assert.h> | |
40056 | 3368 Syntax error |
3369 _ACEOF | |
44493 | 3370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3372 ac_status=$? | |
3373 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3374 rm -f conftest.er1 | |
3375 cat conftest.err >&5 | |
44493 | 3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 3377 (exit $ac_status); } >/dev/null; then |
3378 if test -s conftest.err; then | |
3379 ac_cpp_err=$ac_c_preproc_warn_flag | |
3380 else | |
3381 ac_cpp_err= | |
3382 fi | |
3383 else | |
3384 ac_cpp_err=yes | |
3385 fi | |
3386 if test -z "$ac_cpp_err"; then | |
27205 | 3387 : |
3388 else | |
40056 | 3389 echo "$as_me: failed program was:" >&5 |
27205 | 3390 cat conftest.$ac_ext >&5 |
40056 | 3391 # Broken: fails on valid input. |
3392 continue | |
3393 fi | |
3394 rm -f conftest.err conftest.$ac_ext | |
3395 | |
3396 # OK, works on sane cases. Now check whether non-existent headers | |
3397 # can be detected and how. | |
3398 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3399 #line $LINENO "configure" |
40056 | 3400 #include "confdefs.h" |
3401 #include <ac_nonexistent.h> | |
3402 _ACEOF | |
44493 | 3403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3405 ac_status=$? | |
3406 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3407 rm -f conftest.er1 | |
3408 cat conftest.err >&5 | |
44493 | 3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 3410 (exit $ac_status); } >/dev/null; then |
3411 if test -s conftest.err; then | |
3412 ac_cpp_err=$ac_c_preproc_warn_flag | |
3413 else | |
3414 ac_cpp_err= | |
3415 fi | |
3416 else | |
3417 ac_cpp_err=yes | |
3418 fi | |
3419 if test -z "$ac_cpp_err"; then | |
3420 # Broken: success on invalid input. | |
3421 continue | |
3422 else | |
3423 echo "$as_me: failed program was:" >&5 | |
3424 cat conftest.$ac_ext >&5 | |
3425 # Passes both tests. | |
3426 ac_preproc_ok=: | |
3427 break | |
3428 fi | |
3429 rm -f conftest.err conftest.$ac_ext | |
3430 | |
3431 done | |
3432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3433 rm -f conftest.err conftest.$ac_ext | |
3434 if $ac_preproc_ok; then | |
3435 break | |
3436 fi | |
3437 | |
3438 done | |
3439 ac_cv_prog_CPP=$CPP | |
3440 | |
3441 fi | |
3442 CPP=$ac_cv_prog_CPP | |
3443 else | |
3444 ac_cv_prog_CPP=$CPP | |
3445 fi | |
44493 | 3446 echo "$as_me:$LINENO: result: $CPP" >&5 |
40056 | 3447 echo "${ECHO_T}$CPP" >&6 |
3448 ac_preproc_ok=false | |
3449 for ac_c_preproc_warn_flag in '' yes | |
3450 do | |
3451 # Use a header file that comes with gcc, so configuring glibc | |
3452 # with a fresh cross-compiler works. | |
3453 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3454 # not just through cpp. "Syntax error" is here to catch this case. | |
3455 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3456 #line $LINENO "configure" |
27205 | 3457 #include "confdefs.h" |
3458 #include <assert.h> | |
40056 | 3459 Syntax error |
3460 _ACEOF | |
44493 | 3461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3463 ac_status=$? | |
3464 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3465 rm -f conftest.er1 | |
3466 cat conftest.err >&5 | |
44493 | 3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 3468 (exit $ac_status); } >/dev/null; then |
3469 if test -s conftest.err; then | |
3470 ac_cpp_err=$ac_c_preproc_warn_flag | |
3471 else | |
3472 ac_cpp_err= | |
3473 fi | |
3474 else | |
3475 ac_cpp_err=yes | |
3476 fi | |
3477 if test -z "$ac_cpp_err"; then | |
25897 | 3478 : |
3479 else | |
40056 | 3480 echo "$as_me: failed program was:" >&5 |
25897 | 3481 cat conftest.$ac_ext >&5 |
40056 | 3482 # Broken: fails on valid input. |
3483 continue | |
3484 fi | |
3485 rm -f conftest.err conftest.$ac_ext | |
3486 | |
3487 # OK, works on sane cases. Now check whether non-existent headers | |
3488 # can be detected and how. | |
3489 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3490 #line $LINENO "configure" |
40056 | 3491 #include "confdefs.h" |
3492 #include <ac_nonexistent.h> | |
3493 _ACEOF | |
44493 | 3494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3496 ac_status=$? | |
3497 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3498 rm -f conftest.er1 | |
3499 cat conftest.err >&5 | |
44493 | 3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 3501 (exit $ac_status); } >/dev/null; then |
3502 if test -s conftest.err; then | |
3503 ac_cpp_err=$ac_c_preproc_warn_flag | |
3504 else | |
3505 ac_cpp_err= | |
3506 fi | |
3507 else | |
3508 ac_cpp_err=yes | |
3509 fi | |
3510 if test -z "$ac_cpp_err"; then | |
3511 # Broken: success on invalid input. | |
3512 continue | |
3513 else | |
3514 echo "$as_me: failed program was:" >&5 | |
3515 cat conftest.$ac_ext >&5 | |
3516 # Passes both tests. | |
3517 ac_preproc_ok=: | |
3518 break | |
3519 fi | |
3520 rm -f conftest.err conftest.$ac_ext | |
3521 | |
3522 done | |
3523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3524 rm -f conftest.err conftest.$ac_ext | |
3525 if $ac_preproc_ok; then | |
3526 : | |
3527 else | |
44493 | 3528 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
40056 | 3529 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
3530 { (exit 1); exit 1; }; } | |
3531 fi | |
3532 | |
3533 ac_ext=c | |
3534 ac_cpp='$CPP $CPPFLAGS' | |
3535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3537 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25897 | 3538 |
3539 # Find a good install program. We prefer a C program (faster), | |
3540 # so one script is as good as another. But avoid the broken or | |
3541 # incompatible versions: | |
3542 # SysV /etc/install, /usr/sbin/install | |
3543 # SunOS /usr/etc/install | |
3544 # IRIX /sbin/install | |
3545 # AIX /bin/install | |
40056 | 3546 # AmigaOS /C/install, which installs bootblocks on floppy discs |
27205 | 3547 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
25897 | 3548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3550 # ./install, which can be erroneously created by make from ./install.sh. | |
44493 | 3551 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3552 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
25897 | 3553 if test -z "$INSTALL"; then |
40056 | 3554 if test "${ac_cv_path_install+set}" = set; then |
3555 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3556 else | |
44493 | 3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3558 for as_dir in $PATH | |
3559 do | |
3560 IFS=$as_save_IFS | |
3561 test -z "$as_dir" && as_dir=. | |
3562 # Account for people who put trailing slashes in PATH elements. | |
3563 case $as_dir/ in | |
3564 ./ | .// | /cC/* | \ | |
3565 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3566 /usr/ucb/* ) ;; | |
3567 *) | |
3568 # OSF1 and SCO ODT 3.0 have their own names for install. | |
3569 # Don't use installbsd from OSF since it installs stuff as root | |
3570 # by default. | |
3571 for ac_prog in ginstall scoinst install; do | |
3572 for ac_exec_ext in '' $ac_executable_extensions; do | |
3573 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3574 if test $ac_prog = install && | |
3575 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3576 # AIX install. It has an incompatible calling convention. | |
3577 : | |
3578 elif test $ac_prog = install && | |
3579 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3580 # program-specific install script used by HP pwplus--don't use. | |
3581 : | |
3582 else | |
3583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3584 break 3 | |
3585 fi | |
3586 fi | |
25897 | 3587 done |
44493 | 3588 done |
3589 ;; | |
3590 esac | |
3591 done | |
3592 | |
25897 | 3593 |
3594 fi | |
3595 if test "${ac_cv_path_install+set}" = set; then | |
40056 | 3596 INSTALL=$ac_cv_path_install |
25897 | 3597 else |
3598 # As a last resort, use the slow shell script. We don't cache a | |
3599 # path for INSTALL within a source directory, because that will | |
3600 # break other packages using the cache if that directory is | |
3601 # removed, or if the path is relative. | |
40056 | 3602 INSTALL=$ac_install_sh |
3603 fi | |
3604 fi | |
44493 | 3605 echo "$as_me:$LINENO: result: $INSTALL" >&5 |
40056 | 3606 echo "${ECHO_T}$INSTALL" >&6 |
25897 | 3607 |
3608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3609 # It thinks the first close brace ends the variable substitution. | |
3610 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3611 | |
40056 | 3612 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
27205 | 3613 |
25897 | 3614 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3615 | |
3616 for ac_prog in 'bison -y' byacc | |
3617 do | |
40056 | 3618 # Extract the first word of "$ac_prog", so it can be a program name with args. |
25897 | 3619 set dummy $ac_prog; ac_word=$2 |
44493 | 3620 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3622 if test "${ac_cv_prog_YACC+set}" = set; then | |
3623 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 3624 else |
3625 if test -n "$YACC"; then | |
3626 ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
3627 else | |
44493 | 3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3629 for as_dir in $PATH | |
3630 do | |
3631 IFS=$as_save_IFS | |
3632 test -z "$as_dir" && as_dir=. | |
3633 for ac_exec_ext in '' $ac_executable_extensions; do | |
3634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3635 ac_cv_prog_YACC="$ac_prog" | |
3636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3637 break 2 | |
3638 fi | |
3639 done | |
40056 | 3640 done |
3641 | |
3642 fi | |
3643 fi | |
3644 YACC=$ac_cv_prog_YACC | |
25897 | 3645 if test -n "$YACC"; then |
44493 | 3646 echo "$as_me:$LINENO: result: $YACC" >&5 |
40056 | 3647 echo "${ECHO_T}$YACC" >&6 |
3648 else | |
44493 | 3649 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 3650 echo "${ECHO_T}no" >&6 |
3651 fi | |
3652 | |
3653 test -n "$YACC" && break | |
25897 | 3654 done |
3655 test -n "$YACC" || YACC="yacc" | |
3656 | |
28060 | 3657 if test "x$RANLIB" = x; then |
40056 | 3658 if test -n "$ac_tool_prefix"; then |
3659 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3660 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
44493 | 3661 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 3662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3663 if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3664 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28060 | 3665 else |
3666 if test -n "$RANLIB"; then | |
3667 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3668 else | |
44493 | 3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3670 for as_dir in $PATH | |
3671 do | |
3672 IFS=$as_save_IFS | |
3673 test -z "$as_dir" && as_dir=. | |
3674 for ac_exec_ext in '' $ac_executable_extensions; do | |
3675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3676 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3678 break 2 | |
3679 fi | |
3680 done | |
40056 | 3681 done |
3682 | |
3683 fi | |
3684 fi | |
3685 RANLIB=$ac_cv_prog_RANLIB | |
28060 | 3686 if test -n "$RANLIB"; then |
44493 | 3687 echo "$as_me:$LINENO: result: $RANLIB" >&5 |
40056 | 3688 echo "${ECHO_T}$RANLIB" >&6 |
3689 else | |
44493 | 3690 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 3691 echo "${ECHO_T}no" >&6 |
3692 fi | |
3693 | |
3694 fi | |
3695 if test -z "$ac_cv_prog_RANLIB"; then | |
3696 ac_ct_RANLIB=$RANLIB | |
3697 # Extract the first word of "ranlib", so it can be a program name with args. | |
3698 set dummy ranlib; ac_word=$2 | |
44493 | 3699 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 3700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3701 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3702 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3703 else | |
3704 if test -n "$ac_ct_RANLIB"; then | |
3705 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3706 else | |
44493 | 3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3708 for as_dir in $PATH | |
3709 do | |
3710 IFS=$as_save_IFS | |
3711 test -z "$as_dir" && as_dir=. | |
3712 for ac_exec_ext in '' $ac_executable_extensions; do | |
3713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3714 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3716 break 2 | |
3717 fi | |
3718 done | |
40056 | 3719 done |
3720 | |
3721 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3722 fi | |
3723 fi | |
3724 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3725 if test -n "$ac_ct_RANLIB"; then | |
44493 | 3726 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
40056 | 3727 echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
3728 else | |
44493 | 3729 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 3730 echo "${ECHO_T}no" >&6 |
3731 fi | |
3732 | |
3733 RANLIB=$ac_ct_RANLIB | |
3734 else | |
3735 RANLIB="$ac_cv_prog_RANLIB" | |
3736 fi | |
3737 | |
3738 fi | |
3739 | |
44493 | 3740 |
3741 | |
3742 | |
3743 echo "$as_me:$LINENO: checking for AIX" >&5 | |
40056 | 3744 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
3745 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3746 #line $LINENO "configure" |
25897 | 3747 #include "confdefs.h" |
3748 #ifdef _AIX | |
3749 yes | |
3750 #endif | |
3751 | |
40056 | 3752 _ACEOF |
25897 | 3753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3754 egrep "yes" >/dev/null 2>&1; then | |
44493 | 3755 echo "$as_me:$LINENO: result: yes" >&5 |
40056 | 3756 echo "${ECHO_T}yes" >&6 |
44493 | 3757 cat >>confdefs.h <<\_ACEOF |
25897 | 3758 #define _ALL_SOURCE 1 |
44493 | 3759 _ACEOF |
3760 | |
3761 else | |
3762 echo "$as_me:$LINENO: result: no" >&5 | |
40056 | 3763 echo "${ECHO_T}no" >&6 |
25897 | 3764 fi |
3765 rm -f conftest* | |
3766 | |
44493 | 3767 |
3768 | |
30311 | 3769 #### Extract some information from the operating system and machine files. |
3770 | |
44493 | 3771 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out |
30311 | 3772 - which libraries the lib-src programs will want, and |
40056 | 3773 - whether the GNU malloc routines are usable..." >&5 |
3774 echo "$as_me: checking the machine- and system-dependent files to find out | |
30311 | 3775 - which libraries the lib-src programs will want, and |
40056 | 3776 - whether the GNU malloc routines are usable..." >&6;} |
30311 | 3777 |
3778 ### First figure out CFLAGS (which we use for running the compiler here) | |
3779 ### and REAL_CFLAGS (which we use for real compilation). | |
3780 ### The two are the same except on a few systems, where they are made | |
3781 ### different to work around various lossages. For example, | |
3782 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
3783 ### as implying static linking. | |
3784 | |
3785 ### If the CFLAGS env var is specified, we use that value | |
3786 ### instead of the default. | |
3787 | |
3788 ### It's not important that this name contain the PID; you can't run | |
3789 ### two configures in the same directory and have anything work | |
3790 ### anyway. | |
3791 tempcname="conftest.c" | |
3792 | |
3793 echo ' | |
3794 #include "'${srcdir}'/src/'${opsysfile}'" | |
3795 #include "'${srcdir}'/src/'${machfile}'" | |
3796 #ifndef LIBS_MACHINE | |
3797 #define LIBS_MACHINE | |
3798 #endif | |
3799 #ifndef LIBS_SYSTEM | |
3800 #define LIBS_SYSTEM | |
3801 #endif | |
3802 #ifndef C_SWITCH_SYSTEM | |
3803 #define C_SWITCH_SYSTEM | |
3804 #endif | |
3805 #ifndef C_SWITCH_MACHINE | |
3806 #define C_SWITCH_MACHINE | |
3807 #endif | |
3808 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
3809 configure___ c_switch_system=C_SWITCH_SYSTEM | |
3810 configure___ c_switch_machine=C_SWITCH_MACHINE | |
3811 | |
3812 #ifndef LIB_X11_LIB | |
3813 #define LIB_X11_LIB -lX11 | |
3814 #endif | |
3815 | |
3816 #ifndef LIBX11_MACHINE | |
3817 #define LIBX11_MACHINE | |
3818 #endif | |
3819 | |
3820 #ifndef LIBX11_SYSTEM | |
3821 #define LIBX11_SYSTEM | |
3822 #endif | |
3823 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
3824 | |
3825 #ifdef UNEXEC | |
3826 configure___ unexec=UNEXEC | |
3827 #else | |
3828 configure___ unexec=unexec.o | |
3829 #endif | |
3830 | |
3831 #ifdef SYSTEM_MALLOC | |
3832 configure___ system_malloc=yes | |
3833 #else | |
3834 configure___ system_malloc=no | |
3835 #endif | |
3836 | |
31607 | 3837 #ifdef USE_MMAP_FOR_BUFFERS |
3838 configure___ use_mmap_for_buffers=yes | |
31417 | 3839 #else |
31607 | 3840 configure___ use_mmap_for_buffers=no |
31417 | 3841 #endif |
3842 | |
30311 | 3843 #ifndef C_DEBUG_SWITCH |
3844 #define C_DEBUG_SWITCH -g | |
3845 #endif | |
3846 | |
3847 #ifndef C_OPTIMIZE_SWITCH | |
3848 #ifdef __GNUC__ | |
3849 #define C_OPTIMIZE_SWITCH -O2 | |
3850 #else | |
3851 #define C_OPTIMIZE_SWITCH -O | |
3852 #endif | |
3853 #endif | |
3854 | |
3855 #ifndef LD_SWITCH_MACHINE | |
3856 #define LD_SWITCH_MACHINE | |
3857 #endif | |
3858 | |
3859 #ifndef LD_SWITCH_SYSTEM | |
3860 #define LD_SWITCH_SYSTEM | |
3861 #endif | |
3862 | |
3863 #ifndef LD_SWITCH_X_SITE_AUX | |
3864 #define LD_SWITCH_X_SITE_AUX | |
40056 | 3865 #endif |
30311 | 3866 |
3867 configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
3868 configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
3869 | |
3870 #ifdef THIS_IS_CONFIGURE | |
3871 | |
3872 /* Get the CFLAGS for tests in configure. */ | |
3873 #ifdef __GNUC__ | |
3874 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3875 #else | |
3876 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3877 #endif | |
3878 | |
3879 #else /* not THIS_IS_CONFIGURE */ | |
3880 | |
3881 /* Get the CFLAGS for real compilation. */ | |
3882 #ifdef __GNUC__ | |
3883 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
3884 #else | |
3885 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
3886 #endif | |
3887 | |
3888 #endif /* not THIS_IS_CONFIGURE */ | |
3889 ' > ${tempcname} | |
3890 | |
3891 # The value of CPP is a quoted variable reference, so we need to do this | |
3892 # to get its actual value... | |
3893 CPP=`eval "echo $CPP"` | |
3894 eval `${CPP} -Isrc ${tempcname} \ | |
3895 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3896 if test "x$SPECIFIED_CFLAGS" = x; then | |
3897 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
3898 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
3899 else | |
3900 REAL_CFLAGS="$CFLAGS" | |
3901 fi | |
3902 rm ${tempcname} | |
3903 | |
3904 ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
3905 | |
3906 ### Make sure subsequent tests use flags consistent with the build flags. | |
3907 | |
3908 if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
3909 CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
3910 else | |
3911 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
3912 fi | |
3913 | |
40056 | 3914 # Check whether --enable-largefile or --disable-largefile was given. |
30576 | 3915 if test "${enable_largefile+set}" = set; then |
3916 enableval="$enable_largefile" | |
40056 | 3917 |
3918 fi; | |
3919 if test "$enable_largefile" != no; then | |
3920 | |
44493 | 3921 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
40056 | 3922 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
3923 if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
3924 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30576 | 3925 else |
3926 ac_cv_sys_largefile_CC=no | |
40056 | 3927 if test "$GCC" != yes; then |
3928 ac_save_CC=$CC | |
3929 while :; do | |
3930 # IRIX 6.2 and later do not support large files by default, | |
3931 # so use the C compiler's -n32 option if that helps. | |
3932 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3933 #line $LINENO "configure" |
30576 | 3934 #include "confdefs.h" |
3935 #include <sys/types.h> | |
40056 | 3936 /* Check that off_t can represent 2**63 - 1 correctly. |
3937 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3938 since some C++ compilers masquerading as C compilers | |
3939 incorrectly reject 9223372036854775807. */ | |
3940 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3941 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3942 && LARGE_OFF_T % 2147483647 == 1) | |
3943 ? 1 : -1]; | |
44493 | 3944 #ifdef F77_DUMMY_MAIN |
3945 # ifdef __cplusplus | |
3946 extern "C" | |
3947 # endif | |
3948 int F77_DUMMY_MAIN() { return 1; } | |
3949 #endif | |
40056 | 3950 int |
3951 main () | |
3952 { | |
3953 | |
3954 ; | |
3955 return 0; | |
3956 } | |
3957 _ACEOF | |
3958 rm -f conftest.$ac_objext | |
44493 | 3959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3960 (eval $ac_compile) 2>&5 | |
3961 ac_status=$? | |
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3963 (exit $ac_status); } && | |
3964 { ac_try='test -s conftest.$ac_objext' | |
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3966 (eval $ac_try) 2>&5 | |
3967 ac_status=$? | |
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 3969 (exit $ac_status); }; }; then |
3970 break | |
3971 else | |
3972 echo "$as_me: failed program was:" >&5 | |
3973 cat conftest.$ac_ext >&5 | |
3974 fi | |
3975 rm -f conftest.$ac_objext | |
3976 CC="$CC -n32" | |
3977 rm -f conftest.$ac_objext | |
44493 | 3978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3979 (eval $ac_compile) 2>&5 | |
3980 ac_status=$? | |
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3982 (exit $ac_status); } && | |
3983 { ac_try='test -s conftest.$ac_objext' | |
3984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3985 (eval $ac_try) 2>&5 | |
3986 ac_status=$? | |
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 3988 (exit $ac_status); }; }; then |
3989 ac_cv_sys_largefile_CC=' -n32'; break | |
3990 else | |
3991 echo "$as_me: failed program was:" >&5 | |
3992 cat conftest.$ac_ext >&5 | |
3993 fi | |
3994 rm -f conftest.$ac_objext | |
3995 break | |
3996 done | |
3997 CC=$ac_save_CC | |
3998 rm -f conftest.$ac_ext | |
3999 fi | |
4000 fi | |
44493 | 4001 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
40056 | 4002 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
4003 if test "$ac_cv_sys_largefile_CC" != no; then | |
4004 CC=$CC$ac_cv_sys_largefile_CC | |
4005 fi | |
4006 | |
44493 | 4007 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
40056 | 4008 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
4009 if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
4010 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4011 else | |
4012 while :; do | |
30576 | 4013 ac_cv_sys_file_offset_bits=no |
40056 | 4014 cat >conftest.$ac_ext <<_ACEOF |
44493 | 4015 #line $LINENO "configure" |
30576 | 4016 #include "confdefs.h" |
4017 #include <sys/types.h> | |
40056 | 4018 /* Check that off_t can represent 2**63 - 1 correctly. |
4019 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4020 since some C++ compilers masquerading as C compilers | |
4021 incorrectly reject 9223372036854775807. */ | |
4022 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4023 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4024 && LARGE_OFF_T % 2147483647 == 1) | |
4025 ? 1 : -1]; | |
44493 | 4026 #ifdef F77_DUMMY_MAIN |
4027 # ifdef __cplusplus | |
4028 extern "C" | |
4029 # endif | |
4030 int F77_DUMMY_MAIN() { return 1; } | |
4031 #endif | |
4032 int | |
4033 main () | |
4034 { | |
4035 | |
4036 ; | |
4037 return 0; | |
4038 } | |
4039 _ACEOF | |
4040 rm -f conftest.$ac_objext | |
4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4042 (eval $ac_compile) 2>&5 | |
4043 ac_status=$? | |
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4045 (exit $ac_status); } && | |
4046 { ac_try='test -s conftest.$ac_objext' | |
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4048 (eval $ac_try) 2>&5 | |
4049 ac_status=$? | |
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 4051 (exit $ac_status); }; }; then |
4052 break | |
4053 else | |
4054 echo "$as_me: failed program was:" >&5 | |
4055 cat conftest.$ac_ext >&5 | |
4056 fi | |
4057 rm -f conftest.$ac_objext conftest.$ac_ext | |
4058 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 4059 #line $LINENO "configure" |
30576 | 4060 #include "confdefs.h" |
4061 #define _FILE_OFFSET_BITS 64 | |
4062 #include <sys/types.h> | |
40056 | 4063 /* Check that off_t can represent 2**63 - 1 correctly. |
4064 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4065 since some C++ compilers masquerading as C compilers | |
4066 incorrectly reject 9223372036854775807. */ | |
4067 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4069 && LARGE_OFF_T % 2147483647 == 1) | |
4070 ? 1 : -1]; | |
44493 | 4071 #ifdef F77_DUMMY_MAIN |
4072 # ifdef __cplusplus | |
4073 extern "C" | |
4074 # endif | |
4075 int F77_DUMMY_MAIN() { return 1; } | |
4076 #endif | |
4077 int | |
4078 main () | |
4079 { | |
4080 | |
4081 ; | |
4082 return 0; | |
4083 } | |
4084 _ACEOF | |
4085 rm -f conftest.$ac_objext | |
4086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4087 (eval $ac_compile) 2>&5 | |
4088 ac_status=$? | |
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4090 (exit $ac_status); } && | |
4091 { ac_try='test -s conftest.$ac_objext' | |
4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4093 (eval $ac_try) 2>&5 | |
4094 ac_status=$? | |
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 4096 (exit $ac_status); }; }; then |
4097 ac_cv_sys_file_offset_bits=64; break | |
4098 else | |
4099 echo "$as_me: failed program was:" >&5 | |
4100 cat conftest.$ac_ext >&5 | |
4101 fi | |
4102 rm -f conftest.$ac_objext conftest.$ac_ext | |
4103 break | |
4104 done | |
4105 fi | |
44493 | 4106 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
40056 | 4107 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
4108 if test "$ac_cv_sys_file_offset_bits" != no; then | |
4109 | |
44493 | 4110 cat >>confdefs.h <<_ACEOF |
40056 | 4111 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
44493 | 4112 _ACEOF |
40056 | 4113 |
30576 | 4114 fi |
4115 rm -f conftest* | |
44493 | 4116 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
40056 | 4117 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
4118 if test "${ac_cv_sys_large_files+set}" = set; then | |
4119 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4120 else | |
4121 while :; do | |
34431 | 4122 ac_cv_sys_large_files=no |
40056 | 4123 cat >conftest.$ac_ext <<_ACEOF |
44493 | 4124 #line $LINENO "configure" |
40056 | 4125 #include "confdefs.h" |
4126 #include <sys/types.h> | |
4127 /* Check that off_t can represent 2**63 - 1 correctly. | |
4128 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4129 since some C++ compilers masquerading as C compilers | |
4130 incorrectly reject 9223372036854775807. */ | |
4131 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4132 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4133 && LARGE_OFF_T % 2147483647 == 1) | |
4134 ? 1 : -1]; | |
44493 | 4135 #ifdef F77_DUMMY_MAIN |
4136 # ifdef __cplusplus | |
4137 extern "C" | |
4138 # endif | |
4139 int F77_DUMMY_MAIN() { return 1; } | |
4140 #endif | |
4141 int | |
4142 main () | |
4143 { | |
4144 | |
4145 ; | |
4146 return 0; | |
4147 } | |
4148 _ACEOF | |
4149 rm -f conftest.$ac_objext | |
4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4151 (eval $ac_compile) 2>&5 | |
4152 ac_status=$? | |
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4154 (exit $ac_status); } && | |
4155 { ac_try='test -s conftest.$ac_objext' | |
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4157 (eval $ac_try) 2>&5 | |
4158 ac_status=$? | |
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 4160 (exit $ac_status); }; }; then |
4161 break | |
4162 else | |
4163 echo "$as_me: failed program was:" >&5 | |
4164 cat conftest.$ac_ext >&5 | |
4165 fi | |
4166 rm -f conftest.$ac_objext conftest.$ac_ext | |
4167 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 4168 #line $LINENO "configure" |
30576 | 4169 #include "confdefs.h" |
4170 #define _LARGE_FILES 1 | |
40056 | 4171 #include <sys/types.h> |
4172 /* Check that off_t can represent 2**63 - 1 correctly. | |
4173 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4174 since some C++ compilers masquerading as C compilers | |
4175 incorrectly reject 9223372036854775807. */ | |
4176 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4177 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4178 && LARGE_OFF_T % 2147483647 == 1) | |
4179 ? 1 : -1]; | |
44493 | 4180 #ifdef F77_DUMMY_MAIN |
4181 # ifdef __cplusplus | |
4182 extern "C" | |
4183 # endif | |
4184 int F77_DUMMY_MAIN() { return 1; } | |
4185 #endif | |
4186 int | |
4187 main () | |
4188 { | |
4189 | |
4190 ; | |
4191 return 0; | |
4192 } | |
4193 _ACEOF | |
4194 rm -f conftest.$ac_objext | |
4195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4196 (eval $ac_compile) 2>&5 | |
4197 ac_status=$? | |
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4199 (exit $ac_status); } && | |
4200 { ac_try='test -s conftest.$ac_objext' | |
4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4202 (eval $ac_try) 2>&5 | |
4203 ac_status=$? | |
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 4205 (exit $ac_status); }; }; then |
4206 ac_cv_sys_large_files=1; break | |
4207 else | |
4208 echo "$as_me: failed program was:" >&5 | |
4209 cat conftest.$ac_ext >&5 | |
4210 fi | |
4211 rm -f conftest.$ac_objext conftest.$ac_ext | |
4212 break | |
4213 done | |
4214 fi | |
44493 | 4215 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
40056 | 4216 echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
4217 if test "$ac_cv_sys_large_files" != no; then | |
4218 | |
44493 | 4219 cat >>confdefs.h <<_ACEOF |
40056 | 4220 #define _LARGE_FILES $ac_cv_sys_large_files |
44493 | 4221 _ACEOF |
40056 | 4222 |
30576 | 4223 fi |
4224 rm -f conftest* | |
4225 fi | |
4226 | |
44493 | 4227 |
44435 | 4228 if test "${with_sound}" != "no"; then |
4229 # Sound support for GNU/Linux and the free BSDs. | |
44493 | 4230 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4231 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4232 if test "${ac_cv_header_stdc+set}" = set; then | |
4233 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4234 else | |
4235 cat >conftest.$ac_ext <<_ACEOF | |
4236 #line $LINENO "configure" | |
4237 #include "confdefs.h" | |
4238 #include <stdlib.h> | |
4239 #include <stdarg.h> | |
4240 #include <string.h> | |
4241 #include <float.h> | |
4242 | |
4243 _ACEOF | |
4244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
40056 | 4245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4246 ac_status=$? | |
4247 egrep -v '^ *\+' conftest.er1 >conftest.err | |
4248 rm -f conftest.er1 | |
4249 cat conftest.err >&5 | |
44493 | 4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 4251 (exit $ac_status); } >/dev/null; then |
4252 if test -s conftest.err; then | |
4253 ac_cpp_err=$ac_c_preproc_warn_flag | |
4254 else | |
4255 ac_cpp_err= | |
4256 fi | |
4257 else | |
4258 ac_cpp_err=yes | |
4259 fi | |
4260 if test -z "$ac_cpp_err"; then | |
25897 | 4261 ac_cv_header_stdc=yes |
4262 else | |
40056 | 4263 echo "$as_me: failed program was:" >&5 |
25897 | 4264 cat conftest.$ac_ext >&5 |
4265 ac_cv_header_stdc=no | |
4266 fi | |
40056 | 4267 rm -f conftest.err conftest.$ac_ext |
25897 | 4268 |
4269 if test $ac_cv_header_stdc = yes; then | |
4270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
40056 | 4271 cat >conftest.$ac_ext <<_ACEOF |
44493 | 4272 #line $LINENO "configure" |
25897 | 4273 #include "confdefs.h" |
4274 #include <string.h> | |
40056 | 4275 |
4276 _ACEOF | |
25897 | 4277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4278 egrep "memchr" >/dev/null 2>&1; then | |
4279 : | |
4280 else | |
4281 ac_cv_header_stdc=no | |
4282 fi | |
4283 rm -f conftest* | |
4284 | |
4285 fi | |
4286 | |
4287 if test $ac_cv_header_stdc = yes; then | |
4288 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
40056 | 4289 cat >conftest.$ac_ext <<_ACEOF |
44493 | 4290 #line $LINENO "configure" |
25897 | 4291 #include "confdefs.h" |
4292 #include <stdlib.h> | |
40056 | 4293 |
4294 _ACEOF | |
25897 | 4295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4296 egrep "free" >/dev/null 2>&1; then | |
4297 : | |
4298 else | |
4299 ac_cv_header_stdc=no | |
4300 fi | |
4301 rm -f conftest* | |
4302 | |
4303 fi | |
4304 | |
4305 if test $ac_cv_header_stdc = yes; then | |
4306 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
40056 | 4307 if test "$cross_compiling" = yes; then |
25897 | 4308 : |
4309 else | |
40056 | 4310 cat >conftest.$ac_ext <<_ACEOF |
44493 | 4311 #line $LINENO "configure" |
25897 | 4312 #include "confdefs.h" |
4313 #include <ctype.h> | |
40056 | 4314 #if ((' ' & 0x0FF) == 0x020) |
4315 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4316 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4317 #else | |
4318 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4319 || ('j' <= (c) && (c) <= 'r') \ | |
4320 || ('s' <= (c) && (c) <= 'z')) | |
4321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4322 #endif | |
4323 | |
25897 | 4324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
40056 | 4325 int |
4326 main () | |
4327 { | |
4328 int i; | |
4329 for (i = 0; i < 256; i++) | |
4330 if (XOR (islower (i), ISLOWER (i)) | |
4331 || toupper (i) != TOUPPER (i)) | |
4332 exit(2); | |
4333 exit (0); | |
4334 } | |
4335 _ACEOF | |
4336 rm -f conftest$ac_exeext | |
44493 | 4337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4338 (eval $ac_link) 2>&5 | |
4339 ac_status=$? | |
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 4341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
44493 | 4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4343 (eval $ac_try) 2>&5 | |
4344 ac_status=$? | |
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 4346 (exit $ac_status); }; }; then |
25897 | 4347 : |
4348 else | |
40056 | 4349 echo "$as_me: program exited with status $ac_status" >&5 |
4350 echo "$as_me: failed program was:" >&5 | |
4351 cat conftest.$ac_ext >&5 | |
44493 | 4352 ( exit $ac_status ) |
40056 | 4353 ac_cv_header_stdc=no |
4354 fi | |
4355 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4356 fi | |
4357 fi | |
4358 fi | |
44493 | 4359 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
40056 | 4360 echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
25897 | 4361 if test $ac_cv_header_stdc = yes; then |
40056 | 4362 |
44493 | 4363 cat >>confdefs.h <<\_ACEOF |
25897 | 4364 #define STDC_HEADERS 1 |
44493 | 4365 _ACEOF |
4366 | |
4367 fi | |
4368 | |
4369 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4370 | |
4371 | |
4372 | |
4373 | |
4374 | |
4375 | |
4376 | |
4377 | |
4378 | |
4379 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4380 inttypes.h stdint.h unistd.h | |
4381 do | |
4382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4383 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4385 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4386 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4387 else | |
4388 cat >conftest.$ac_ext <<_ACEOF | |
4389 #line $LINENO "configure" | |
4390 #include "confdefs.h" | |
4391 $ac_includes_default | |
4392 | |
4393 #include <$ac_header> | |
4394 _ACEOF | |
4395 rm -f conftest.$ac_objext | |
4396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4397 (eval $ac_compile) 2>&5 | |
4398 ac_status=$? | |
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4400 (exit $ac_status); } && | |
4401 { ac_try='test -s conftest.$ac_objext' | |
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4403 (eval $ac_try) 2>&5 | |
4404 ac_status=$? | |
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4406 (exit $ac_status); }; }; then | |
4407 eval "$as_ac_Header=yes" | |
4408 else | |
4409 echo "$as_me: failed program was:" >&5 | |
4410 cat conftest.$ac_ext >&5 | |
4411 eval "$as_ac_Header=no" | |
4412 fi | |
4413 rm -f conftest.$ac_objext conftest.$ac_ext | |
4414 fi | |
4415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4417 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4418 cat >>confdefs.h <<_ACEOF | |
4419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4420 _ACEOF | |
4421 | |
4422 fi | |
4423 | |
4424 done | |
4425 | |
4426 | |
4427 | |
4428 | |
4429 | |
4430 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
4431 do | |
4432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4433 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4434 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4436 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4437 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4438 fi | |
4439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4441 else | |
4442 # Is the header compilable? | |
4443 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4445 cat >conftest.$ac_ext <<_ACEOF | |
4446 #line $LINENO "configure" | |
4447 #include "confdefs.h" | |
4448 $ac_includes_default | |
4449 #include <$ac_header> | |
4450 _ACEOF | |
4451 rm -f conftest.$ac_objext | |
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4453 (eval $ac_compile) 2>&5 | |
4454 ac_status=$? | |
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4456 (exit $ac_status); } && | |
4457 { ac_try='test -s conftest.$ac_objext' | |
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4459 (eval $ac_try) 2>&5 | |
4460 ac_status=$? | |
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4462 (exit $ac_status); }; }; then | |
4463 ac_header_compiler=yes | |
4464 else | |
4465 echo "$as_me: failed program was:" >&5 | |
4466 cat conftest.$ac_ext >&5 | |
4467 ac_header_compiler=no | |
4468 fi | |
4469 rm -f conftest.$ac_objext conftest.$ac_ext | |
4470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4471 echo "${ECHO_T}$ac_header_compiler" >&6 | |
4472 | |
4473 # Is the header present? | |
4474 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4476 cat >conftest.$ac_ext <<_ACEOF | |
4477 #line $LINENO "configure" | |
4478 #include "confdefs.h" | |
4479 #include <$ac_header> | |
4480 _ACEOF | |
4481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4483 ac_status=$? | |
4484 egrep -v '^ *\+' conftest.er1 >conftest.err | |
4485 rm -f conftest.er1 | |
4486 cat conftest.err >&5 | |
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4488 (exit $ac_status); } >/dev/null; then | |
4489 if test -s conftest.err; then | |
4490 ac_cpp_err=$ac_c_preproc_warn_flag | |
4491 else | |
4492 ac_cpp_err= | |
4493 fi | |
4494 else | |
4495 ac_cpp_err=yes | |
4496 fi | |
4497 if test -z "$ac_cpp_err"; then | |
4498 ac_header_preproc=yes | |
4499 else | |
4500 echo "$as_me: failed program was:" >&5 | |
4501 cat conftest.$ac_ext >&5 | |
4502 ac_header_preproc=no | |
4503 fi | |
4504 rm -f conftest.err conftest.$ac_ext | |
4505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4506 echo "${ECHO_T}$ac_header_preproc" >&6 | |
4507 | |
4508 # So? What about this header? | |
4509 case $ac_header_compiler:$ac_header_preproc in | |
4510 yes:no ) | |
4511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4515 no:yes ) | |
4516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4522 esac | |
4523 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4525 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4526 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4527 else | |
4528 eval "$as_ac_Header=$ac_header_preproc" | |
4529 fi | |
4530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4532 | |
4533 fi | |
4534 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4535 cat >>confdefs.h <<_ACEOF | |
4536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4537 _ACEOF | |
4538 | |
4539 fi | |
4540 | |
4541 done | |
4542 | |
4543 # Emulation library used on NetBSD. | |
4544 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 | |
4545 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 | |
4546 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | |
4547 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4548 else | |
4549 ac_check_lib_save_LIBS=$LIBS | |
4550 LIBS="-lossaudio $LIBS" | |
4551 cat >conftest.$ac_ext <<_ACEOF | |
4552 #line $LINENO "configure" | |
4553 #include "confdefs.h" | |
4554 | |
4555 /* Override any gcc2 internal prototype to avoid an error. */ | |
4556 #ifdef __cplusplus | |
4557 extern "C" | |
4558 #endif | |
4559 /* We use char because int might match the return type of a gcc2 | |
4560 builtin and then its argument prototype would still apply. */ | |
4561 char _oss_ioctl (); | |
4562 #ifdef F77_DUMMY_MAIN | |
4563 # ifdef __cplusplus | |
4564 extern "C" | |
4565 # endif | |
4566 int F77_DUMMY_MAIN() { return 1; } | |
4567 #endif | |
4568 int | |
4569 main () | |
4570 { | |
4571 _oss_ioctl (); | |
4572 ; | |
4573 return 0; | |
4574 } | |
4575 _ACEOF | |
4576 rm -f conftest.$ac_objext conftest$ac_exeext | |
4577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4578 (eval $ac_link) 2>&5 | |
4579 ac_status=$? | |
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4581 (exit $ac_status); } && | |
4582 { ac_try='test -s conftest$ac_exeext' | |
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4584 (eval $ac_try) 2>&5 | |
4585 ac_status=$? | |
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4587 (exit $ac_status); }; }; then | |
4588 ac_cv_lib_ossaudio__oss_ioctl=yes | |
4589 else | |
4590 echo "$as_me: failed program was:" >&5 | |
4591 cat conftest.$ac_ext >&5 | |
4592 ac_cv_lib_ossaudio__oss_ioctl=no | |
4593 fi | |
4594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4595 LIBS=$ac_check_lib_save_LIBS | |
4596 fi | |
4597 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 | |
4598 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 | |
4599 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | |
4600 LIBSOUND=-lossaudio | |
4601 else | |
4602 LIBSOUND= | |
4603 fi | |
4604 | |
4605 | |
4606 fi | |
4607 | |
4608 | |
4609 | |
4610 | |
4611 | |
4612 | |
4613 | |
4614 | |
4615 | |
4616 | |
4617 | |
4618 | |
4619 | |
4620 | |
4621 | |
4622 | |
4623 | |
4624 | |
4625 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | |
4626 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | |
4627 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h | |
4628 do | |
4629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4630 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4631 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4633 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4634 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4635 fi | |
4636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4638 else | |
4639 # Is the header compilable? | |
4640 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4642 cat >conftest.$ac_ext <<_ACEOF | |
4643 #line $LINENO "configure" | |
4644 #include "confdefs.h" | |
4645 $ac_includes_default | |
4646 #include <$ac_header> | |
4647 _ACEOF | |
4648 rm -f conftest.$ac_objext | |
4649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4650 (eval $ac_compile) 2>&5 | |
4651 ac_status=$? | |
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4653 (exit $ac_status); } && | |
4654 { ac_try='test -s conftest.$ac_objext' | |
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4656 (eval $ac_try) 2>&5 | |
4657 ac_status=$? | |
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4659 (exit $ac_status); }; }; then | |
4660 ac_header_compiler=yes | |
4661 else | |
4662 echo "$as_me: failed program was:" >&5 | |
4663 cat conftest.$ac_ext >&5 | |
4664 ac_header_compiler=no | |
4665 fi | |
4666 rm -f conftest.$ac_objext conftest.$ac_ext | |
4667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4668 echo "${ECHO_T}$ac_header_compiler" >&6 | |
4669 | |
4670 # Is the header present? | |
4671 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4673 cat >conftest.$ac_ext <<_ACEOF | |
4674 #line $LINENO "configure" | |
4675 #include "confdefs.h" | |
4676 #include <$ac_header> | |
4677 _ACEOF | |
4678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4680 ac_status=$? | |
4681 egrep -v '^ *\+' conftest.er1 >conftest.err | |
4682 rm -f conftest.er1 | |
4683 cat conftest.err >&5 | |
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4685 (exit $ac_status); } >/dev/null; then | |
4686 if test -s conftest.err; then | |
4687 ac_cpp_err=$ac_c_preproc_warn_flag | |
4688 else | |
4689 ac_cpp_err= | |
4690 fi | |
4691 else | |
4692 ac_cpp_err=yes | |
4693 fi | |
4694 if test -z "$ac_cpp_err"; then | |
4695 ac_header_preproc=yes | |
4696 else | |
4697 echo "$as_me: failed program was:" >&5 | |
4698 cat conftest.$ac_ext >&5 | |
4699 ac_header_preproc=no | |
4700 fi | |
4701 rm -f conftest.err conftest.$ac_ext | |
4702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4703 echo "${ECHO_T}$ac_header_preproc" >&6 | |
4704 | |
4705 # So? What about this header? | |
4706 case $ac_header_compiler:$ac_header_preproc in | |
4707 yes:no ) | |
4708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4712 no:yes ) | |
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4719 esac | |
4720 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4722 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4723 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4724 else | |
4725 eval "$as_ac_Header=$ac_header_preproc" | |
4726 fi | |
4727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4729 | |
4730 fi | |
4731 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4732 cat >>confdefs.h <<_ACEOF | |
4733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4734 _ACEOF | |
4735 | |
4736 fi | |
4737 | |
4738 done | |
4739 | |
4740 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4741 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4742 if test "${ac_cv_header_stdc+set}" = set; then | |
4743 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4744 else | |
4745 cat >conftest.$ac_ext <<_ACEOF | |
4746 #line $LINENO "configure" | |
4747 #include "confdefs.h" | |
4748 #include <stdlib.h> | |
4749 #include <stdarg.h> | |
4750 #include <string.h> | |
4751 #include <float.h> | |
4752 | |
4753 _ACEOF | |
4754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4756 ac_status=$? | |
4757 egrep -v '^ *\+' conftest.er1 >conftest.err | |
4758 rm -f conftest.er1 | |
4759 cat conftest.err >&5 | |
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4761 (exit $ac_status); } >/dev/null; then | |
4762 if test -s conftest.err; then | |
4763 ac_cpp_err=$ac_c_preproc_warn_flag | |
4764 else | |
4765 ac_cpp_err= | |
4766 fi | |
4767 else | |
4768 ac_cpp_err=yes | |
4769 fi | |
4770 if test -z "$ac_cpp_err"; then | |
4771 ac_cv_header_stdc=yes | |
4772 else | |
4773 echo "$as_me: failed program was:" >&5 | |
4774 cat conftest.$ac_ext >&5 | |
4775 ac_cv_header_stdc=no | |
4776 fi | |
4777 rm -f conftest.err conftest.$ac_ext | |
4778 | |
4779 if test $ac_cv_header_stdc = yes; then | |
4780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4781 cat >conftest.$ac_ext <<_ACEOF | |
4782 #line $LINENO "configure" | |
4783 #include "confdefs.h" | |
4784 #include <string.h> | |
4785 | |
4786 _ACEOF | |
4787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4788 egrep "memchr" >/dev/null 2>&1; then | |
4789 : | |
4790 else | |
4791 ac_cv_header_stdc=no | |
4792 fi | |
4793 rm -f conftest* | |
4794 | |
4795 fi | |
4796 | |
4797 if test $ac_cv_header_stdc = yes; then | |
4798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4799 cat >conftest.$ac_ext <<_ACEOF | |
4800 #line $LINENO "configure" | |
4801 #include "confdefs.h" | |
4802 #include <stdlib.h> | |
4803 | |
4804 _ACEOF | |
4805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4806 egrep "free" >/dev/null 2>&1; then | |
4807 : | |
4808 else | |
4809 ac_cv_header_stdc=no | |
4810 fi | |
4811 rm -f conftest* | |
4812 | |
4813 fi | |
4814 | |
4815 if test $ac_cv_header_stdc = yes; then | |
4816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4817 if test "$cross_compiling" = yes; then | |
4818 : | |
4819 else | |
4820 cat >conftest.$ac_ext <<_ACEOF | |
4821 #line $LINENO "configure" | |
4822 #include "confdefs.h" | |
4823 #include <ctype.h> | |
4824 #if ((' ' & 0x0FF) == 0x020) | |
4825 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4826 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4827 #else | |
4828 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4829 || ('j' <= (c) && (c) <= 'r') \ | |
4830 || ('s' <= (c) && (c) <= 'z')) | |
4831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4832 #endif | |
4833 | |
4834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4835 int | |
4836 main () | |
4837 { | |
4838 int i; | |
4839 for (i = 0; i < 256; i++) | |
4840 if (XOR (islower (i), ISLOWER (i)) | |
4841 || toupper (i) != TOUPPER (i)) | |
4842 exit(2); | |
4843 exit (0); | |
4844 } | |
4845 _ACEOF | |
4846 rm -f conftest$ac_exeext | |
4847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4848 (eval $ac_link) 2>&5 | |
4849 ac_status=$? | |
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4853 (eval $ac_try) 2>&5 | |
4854 ac_status=$? | |
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4856 (exit $ac_status); }; }; then | |
4857 : | |
4858 else | |
4859 echo "$as_me: program exited with status $ac_status" >&5 | |
4860 echo "$as_me: failed program was:" >&5 | |
4861 cat conftest.$ac_ext >&5 | |
4862 ( exit $ac_status ) | |
4863 ac_cv_header_stdc=no | |
4864 fi | |
4865 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4866 fi | |
4867 fi | |
4868 fi | |
4869 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4870 echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4871 if test $ac_cv_header_stdc = yes; then | |
4872 | |
4873 cat >>confdefs.h <<\_ACEOF | |
4874 #define STDC_HEADERS 1 | |
4875 _ACEOF | |
4876 | |
4877 fi | |
4878 | |
4879 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
40056 | 4880 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
4881 if test "${ac_cv_header_time+set}" = set; then | |
4882 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4883 else | |
4884 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 4885 #line $LINENO "configure" |
25897 | 4886 #include "confdefs.h" |
4887 #include <sys/types.h> | |
4888 #include <sys/time.h> | |
4889 #include <time.h> | |
40056 | 4890 |
44493 | 4891 #ifdef F77_DUMMY_MAIN |
4892 # ifdef __cplusplus | |
4893 extern "C" | |
4894 # endif | |
4895 int F77_DUMMY_MAIN() { return 1; } | |
4896 #endif | |
40056 | 4897 int |
4898 main () | |
4899 { | |
4900 if ((struct tm *) 0) | |
4901 return 0; | |
4902 ; | |
4903 return 0; | |
4904 } | |
4905 _ACEOF | |
4906 rm -f conftest.$ac_objext | |
44493 | 4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4908 (eval $ac_compile) 2>&5 | |
4909 ac_status=$? | |
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4911 (exit $ac_status); } && | |
4912 { ac_try='test -s conftest.$ac_objext' | |
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4914 (eval $ac_try) 2>&5 | |
4915 ac_status=$? | |
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 4917 (exit $ac_status); }; }; then |
25897 | 4918 ac_cv_header_time=yes |
4919 else | |
40056 | 4920 echo "$as_me: failed program was:" >&5 |
4921 cat conftest.$ac_ext >&5 | |
4922 ac_cv_header_time=no | |
4923 fi | |
4924 rm -f conftest.$ac_objext conftest.$ac_ext | |
4925 fi | |
44493 | 4926 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
40056 | 4927 echo "${ECHO_T}$ac_cv_header_time" >&6 |
25897 | 4928 if test $ac_cv_header_time = yes; then |
40056 | 4929 |
44493 | 4930 cat >>confdefs.h <<\_ACEOF |
25897 | 4931 #define TIME_WITH_SYS_TIME 1 |
44493 | 4932 _ACEOF |
4933 | |
4934 fi | |
4935 | |
4936 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5 | |
40056 | 4937 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6 |
4938 if test "${ac_cv_decl_sys_siglist+set}" = set; then | |
4939 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4940 else | |
4941 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 4942 #line $LINENO "configure" |
25897 | 4943 #include "confdefs.h" |
4944 #include <sys/types.h> | |
4945 #include <signal.h> | |
4946 /* NetBSD declares sys_siglist in unistd.h. */ | |
40056 | 4947 #if HAVE_UNISTD_H |
4948 # include <unistd.h> | |
4949 #endif | |
4950 | |
44493 | 4951 #ifdef F77_DUMMY_MAIN |
4952 # ifdef __cplusplus | |
4953 extern "C" | |
4954 # endif | |
4955 int F77_DUMMY_MAIN() { return 1; } | |
4956 #endif | |
40056 | 4957 int |
4958 main () | |
4959 { | |
25897 | 4960 char *msg = *(sys_siglist + 1); |
40056 | 4961 ; |
4962 return 0; | |
4963 } | |
4964 _ACEOF | |
4965 rm -f conftest.$ac_objext | |
44493 | 4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4967 (eval $ac_compile) 2>&5 | |
4968 ac_status=$? | |
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4970 (exit $ac_status); } && | |
4971 { ac_try='test -s conftest.$ac_objext' | |
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4973 (eval $ac_try) 2>&5 | |
4974 ac_status=$? | |
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 4976 (exit $ac_status); }; }; then |
25897 | 4977 ac_cv_decl_sys_siglist=yes |
4978 else | |
40056 | 4979 echo "$as_me: failed program was:" >&5 |
4980 cat conftest.$ac_ext >&5 | |
4981 ac_cv_decl_sys_siglist=no | |
4982 fi | |
4983 rm -f conftest.$ac_objext conftest.$ac_ext | |
4984 fi | |
44493 | 4985 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5 |
40056 | 4986 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6 |
25897 | 4987 if test $ac_cv_decl_sys_siglist = yes; then |
40056 | 4988 |
44493 | 4989 cat >>confdefs.h <<\_ACEOF |
25897 | 4990 #define SYS_SIGLIST_DECLARED 1 |
44493 | 4991 _ACEOF |
4992 | |
4993 fi | |
4994 | |
4995 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
40056 | 4996 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
4997 if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
4998 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4999 else | |
5000 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5001 #line $LINENO "configure" |
30069 | 5002 #include "confdefs.h" |
5003 #include <sys/types.h> | |
5004 #include <sys/wait.h> | |
5005 #ifndef WEXITSTATUS | |
40056 | 5006 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
30069 | 5007 #endif |
5008 #ifndef WIFEXITED | |
40056 | 5009 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
5010 #endif | |
5011 | |
44493 | 5012 #ifdef F77_DUMMY_MAIN |
5013 # ifdef __cplusplus | |
5014 extern "C" | |
5015 # endif | |
5016 int F77_DUMMY_MAIN() { return 1; } | |
5017 #endif | |
40056 | 5018 int |
5019 main () | |
5020 { | |
5021 int s; | |
5022 wait (&s); | |
5023 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
5024 ; | |
5025 return 0; | |
5026 } | |
5027 _ACEOF | |
5028 rm -f conftest.$ac_objext | |
44493 | 5029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5030 (eval $ac_compile) 2>&5 | |
5031 ac_status=$? | |
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5033 (exit $ac_status); } && | |
5034 { ac_try='test -s conftest.$ac_objext' | |
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5036 (eval $ac_try) 2>&5 | |
5037 ac_status=$? | |
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5039 (exit $ac_status); }; }; then |
30069 | 5040 ac_cv_header_sys_wait_h=yes |
5041 else | |
40056 | 5042 echo "$as_me: failed program was:" >&5 |
5043 cat conftest.$ac_ext >&5 | |
5044 ac_cv_header_sys_wait_h=no | |
5045 fi | |
5046 rm -f conftest.$ac_objext conftest.$ac_ext | |
5047 fi | |
44493 | 5048 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
40056 | 5049 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
30069 | 5050 if test $ac_cv_header_sys_wait_h = yes; then |
40056 | 5051 |
44493 | 5052 cat >>confdefs.h <<\_ACEOF |
30069 | 5053 #define HAVE_SYS_WAIT_H 1 |
44493 | 5054 _ACEOF |
5055 | |
5056 fi | |
5057 | |
5058 | |
5059 echo "$as_me:$LINENO: checking for struct utimbuf" >&5 | |
40056 | 5060 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 |
5061 if test "${emacs_cv_struct_utimbuf+set}" = set; then | |
5062 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5063 else | |
5064 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5065 #line $LINENO "configure" |
25897 | 5066 #include "confdefs.h" |
5067 #ifdef TIME_WITH_SYS_TIME | |
5068 #include <sys/time.h> | |
5069 #include <time.h> | |
5070 #else | |
5071 #ifdef HAVE_SYS_TIME_H | |
5072 #include <sys/time.h> | |
5073 #else | |
5074 #include <time.h> | |
5075 #endif | |
5076 #endif | |
5077 #ifdef HAVE_UTIME_H | |
5078 #include <utime.h> | |
5079 #endif | |
44493 | 5080 #ifdef F77_DUMMY_MAIN |
5081 # ifdef __cplusplus | |
5082 extern "C" | |
5083 # endif | |
5084 int F77_DUMMY_MAIN() { return 1; } | |
5085 #endif | |
40056 | 5086 int |
5087 main () | |
5088 { | |
25897 | 5089 static struct utimbuf x; x.actime = x.modtime; |
40056 | 5090 ; |
5091 return 0; | |
5092 } | |
5093 _ACEOF | |
5094 rm -f conftest.$ac_objext | |
44493 | 5095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5096 (eval $ac_compile) 2>&5 | |
5097 ac_status=$? | |
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5099 (exit $ac_status); } && | |
5100 { ac_try='test -s conftest.$ac_objext' | |
5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5102 (eval $ac_try) 2>&5 | |
5103 ac_status=$? | |
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5105 (exit $ac_status); }; }; then |
25897 | 5106 emacs_cv_struct_utimbuf=yes |
5107 else | |
40056 | 5108 echo "$as_me: failed program was:" >&5 |
5109 cat conftest.$ac_ext >&5 | |
5110 emacs_cv_struct_utimbuf=no | |
5111 fi | |
5112 rm -f conftest.$ac_objext conftest.$ac_ext | |
5113 fi | |
44493 | 5114 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 |
40056 | 5115 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 |
25897 | 5116 if test $emacs_cv_struct_utimbuf = yes; then |
44493 | 5117 cat >>confdefs.h <<\_ACEOF |
25897 | 5118 #define HAVE_STRUCT_UTIMBUF 1 |
44493 | 5119 _ACEOF |
5120 | |
5121 fi | |
5122 | |
5123 echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
40056 | 5124 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
5125 if test "${ac_cv_type_signal+set}" = set; then | |
5126 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5127 else | |
5128 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5129 #line $LINENO "configure" |
25897 | 5130 #include "confdefs.h" |
5131 #include <sys/types.h> | |
5132 #include <signal.h> | |
5133 #ifdef signal | |
40056 | 5134 # undef signal |
25897 | 5135 #endif |
5136 #ifdef __cplusplus | |
5137 extern "C" void (*signal (int, void (*)(int)))(int); | |
5138 #else | |
5139 void (*signal ()) (); | |
5140 #endif | |
5141 | |
44493 | 5142 #ifdef F77_DUMMY_MAIN |
5143 # ifdef __cplusplus | |
5144 extern "C" | |
5145 # endif | |
5146 int F77_DUMMY_MAIN() { return 1; } | |
5147 #endif | |
40056 | 5148 int |
5149 main () | |
5150 { | |
25897 | 5151 int i; |
40056 | 5152 ; |
5153 return 0; | |
5154 } | |
5155 _ACEOF | |
5156 rm -f conftest.$ac_objext | |
44493 | 5157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5158 (eval $ac_compile) 2>&5 | |
5159 ac_status=$? | |
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5161 (exit $ac_status); } && | |
5162 { ac_try='test -s conftest.$ac_objext' | |
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5164 (eval $ac_try) 2>&5 | |
5165 ac_status=$? | |
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5167 (exit $ac_status); }; }; then |
25897 | 5168 ac_cv_type_signal=void |
5169 else | |
40056 | 5170 echo "$as_me: failed program was:" >&5 |
5171 cat conftest.$ac_ext >&5 | |
5172 ac_cv_type_signal=int | |
5173 fi | |
5174 rm -f conftest.$ac_objext conftest.$ac_ext | |
5175 fi | |
44493 | 5176 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
40056 | 5177 echo "${ECHO_T}$ac_cv_type_signal" >&6 |
5178 | |
44493 | 5179 cat >>confdefs.h <<_ACEOF |
25897 | 5180 #define RETSIGTYPE $ac_cv_type_signal |
44493 | 5181 _ACEOF |
5182 | |
5183 | |
5184 | |
5185 echo "$as_me:$LINENO: checking for speed_t" >&5 | |
40056 | 5186 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 |
5187 if test "${emacs_cv_speed_t+set}" = set; then | |
5188 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5189 else | |
5190 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5191 #line $LINENO "configure" |
29254 | 5192 #include "confdefs.h" |
5193 #include <termios.h> | |
44493 | 5194 #ifdef F77_DUMMY_MAIN |
5195 # ifdef __cplusplus | |
5196 extern "C" | |
5197 # endif | |
5198 int F77_DUMMY_MAIN() { return 1; } | |
5199 #endif | |
40056 | 5200 int |
5201 main () | |
5202 { | |
29254 | 5203 speed_t x = 1; |
40056 | 5204 ; |
5205 return 0; | |
5206 } | |
5207 _ACEOF | |
5208 rm -f conftest.$ac_objext | |
44493 | 5209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5210 (eval $ac_compile) 2>&5 | |
5211 ac_status=$? | |
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5213 (exit $ac_status); } && | |
5214 { ac_try='test -s conftest.$ac_objext' | |
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5216 (eval $ac_try) 2>&5 | |
5217 ac_status=$? | |
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5219 (exit $ac_status); }; }; then |
29254 | 5220 emacs_cv_speed_t=yes |
5221 else | |
40056 | 5222 echo "$as_me: failed program was:" >&5 |
5223 cat conftest.$ac_ext >&5 | |
5224 emacs_cv_speed_t=no | |
5225 fi | |
5226 rm -f conftest.$ac_objext conftest.$ac_ext | |
5227 fi | |
44493 | 5228 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 |
40056 | 5229 echo "${ECHO_T}$emacs_cv_speed_t" >&6 |
29254 | 5230 if test $emacs_cv_speed_t = yes; then |
44493 | 5231 cat >>confdefs.h <<\_ACEOF |
29254 | 5232 #define HAVE_SPEED_T 1 |
44493 | 5233 _ACEOF |
5234 | |
5235 fi | |
5236 | |
5237 echo "$as_me:$LINENO: checking for struct timeval" >&5 | |
40056 | 5238 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 |
5239 if test "${emacs_cv_struct_timeval+set}" = set; then | |
5240 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5241 else | |
5242 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5243 #line $LINENO "configure" |
25897 | 5244 #include "confdefs.h" |
5245 #ifdef TIME_WITH_SYS_TIME | |
5246 #include <sys/time.h> | |
5247 #include <time.h> | |
5248 #else | |
5249 #ifdef HAVE_SYS_TIME_H | |
5250 #include <sys/time.h> | |
5251 #else | |
5252 #include <time.h> | |
5253 #endif | |
5254 #endif | |
44493 | 5255 #ifdef F77_DUMMY_MAIN |
5256 # ifdef __cplusplus | |
5257 extern "C" | |
5258 # endif | |
5259 int F77_DUMMY_MAIN() { return 1; } | |
5260 #endif | |
40056 | 5261 int |
5262 main () | |
5263 { | |
25897 | 5264 static struct timeval x; x.tv_sec = x.tv_usec; |
40056 | 5265 ; |
5266 return 0; | |
5267 } | |
5268 _ACEOF | |
5269 rm -f conftest.$ac_objext | |
44493 | 5270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5271 (eval $ac_compile) 2>&5 | |
5272 ac_status=$? | |
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5274 (exit $ac_status); } && | |
5275 { ac_try='test -s conftest.$ac_objext' | |
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5277 (eval $ac_try) 2>&5 | |
5278 ac_status=$? | |
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5280 (exit $ac_status); }; }; then |
25897 | 5281 emacs_cv_struct_timeval=yes |
5282 else | |
40056 | 5283 echo "$as_me: failed program was:" >&5 |
5284 cat conftest.$ac_ext >&5 | |
5285 emacs_cv_struct_timeval=no | |
5286 fi | |
5287 rm -f conftest.$ac_objext conftest.$ac_ext | |
5288 fi | |
44493 | 5289 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 |
40056 | 5290 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 |
25897 | 5291 HAVE_TIMEVAL=$emacs_cv_struct_timeval |
5292 if test $emacs_cv_struct_timeval = yes; then | |
44493 | 5293 cat >>confdefs.h <<\_ACEOF |
25897 | 5294 #define HAVE_TIMEVAL 1 |
44493 | 5295 _ACEOF |
5296 | |
5297 fi | |
5298 | |
5299 echo "$as_me:$LINENO: checking for struct exception" >&5 | |
40056 | 5300 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 |
5301 if test "${emacs_cv_struct_exception+set}" = set; then | |
5302 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5303 else | |
5304 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5305 #line $LINENO "configure" |
29388 | 5306 #include "confdefs.h" |
5307 #include <math.h> | |
44493 | 5308 #ifdef F77_DUMMY_MAIN |
5309 # ifdef __cplusplus | |
5310 extern "C" | |
5311 # endif | |
5312 int F77_DUMMY_MAIN() { return 1; } | |
5313 #endif | |
40056 | 5314 int |
5315 main () | |
5316 { | |
29388 | 5317 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
40056 | 5318 ; |
5319 return 0; | |
5320 } | |
5321 _ACEOF | |
5322 rm -f conftest.$ac_objext | |
44493 | 5323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5324 (eval $ac_compile) 2>&5 | |
5325 ac_status=$? | |
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5327 (exit $ac_status); } && | |
5328 { ac_try='test -s conftest.$ac_objext' | |
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5330 (eval $ac_try) 2>&5 | |
5331 ac_status=$? | |
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5333 (exit $ac_status); }; }; then |
29388 | 5334 emacs_cv_struct_exception=yes |
5335 else | |
40056 | 5336 echo "$as_me: failed program was:" >&5 |
5337 cat conftest.$ac_ext >&5 | |
5338 emacs_cv_struct_exception=no | |
5339 fi | |
5340 rm -f conftest.$ac_objext conftest.$ac_ext | |
5341 fi | |
44493 | 5342 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 |
40056 | 5343 echo "${ECHO_T}$emacs_cv_struct_exception" >&6 |
29388 | 5344 HAVE_EXCEPTION=$emacs_cv_struct_exception |
5345 if test $emacs_cv_struct_exception != yes; then | |
44493 | 5346 cat >>confdefs.h <<\_ACEOF |
29388 | 5347 #define NO_MATHERR 1 |
44493 | 5348 _ACEOF |
5349 | |
5350 fi | |
5351 | |
5352 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | |
40056 | 5353 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
5354 if test "${ac_cv_struct_tm+set}" = set; then | |
5355 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5356 else | |
5357 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5358 #line $LINENO "configure" |
25897 | 5359 #include "confdefs.h" |
5360 #include <sys/types.h> | |
5361 #include <time.h> | |
40056 | 5362 |
44493 | 5363 #ifdef F77_DUMMY_MAIN |
5364 # ifdef __cplusplus | |
5365 extern "C" | |
5366 # endif | |
5367 int F77_DUMMY_MAIN() { return 1; } | |
5368 #endif | |
40056 | 5369 int |
5370 main () | |
5371 { | |
25897 | 5372 struct tm *tp; tp->tm_sec; |
40056 | 5373 ; |
5374 return 0; | |
5375 } | |
5376 _ACEOF | |
5377 rm -f conftest.$ac_objext | |
44493 | 5378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5379 (eval $ac_compile) 2>&5 | |
5380 ac_status=$? | |
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5382 (exit $ac_status); } && | |
5383 { ac_try='test -s conftest.$ac_objext' | |
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5385 (eval $ac_try) 2>&5 | |
5386 ac_status=$? | |
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5388 (exit $ac_status); }; }; then |
25897 | 5389 ac_cv_struct_tm=time.h |
5390 else | |
40056 | 5391 echo "$as_me: failed program was:" >&5 |
5392 cat conftest.$ac_ext >&5 | |
5393 ac_cv_struct_tm=sys/time.h | |
5394 fi | |
5395 rm -f conftest.$ac_objext conftest.$ac_ext | |
5396 fi | |
44493 | 5397 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
40056 | 5398 echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
25897 | 5399 if test $ac_cv_struct_tm = sys/time.h; then |
40056 | 5400 |
44493 | 5401 cat >>confdefs.h <<\_ACEOF |
25897 | 5402 #define TM_IN_SYS_TIME 1 |
44493 | 5403 _ACEOF |
5404 | |
5405 fi | |
5406 | |
5407 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 | |
40056 | 5408 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
5409 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
5410 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5411 else | |
5412 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5413 #line $LINENO "configure" |
25897 | 5414 #include "confdefs.h" |
5415 #include <sys/types.h> | |
5416 #include <$ac_cv_struct_tm> | |
40056 | 5417 |
44493 | 5418 |
5419 #ifdef F77_DUMMY_MAIN | |
5420 # ifdef __cplusplus | |
5421 extern "C" | |
5422 # endif | |
5423 int F77_DUMMY_MAIN() { return 1; } | |
5424 #endif | |
40056 | 5425 int |
5426 main () | |
5427 { | |
5428 static struct tm ac_aggr; | |
5429 if (ac_aggr.tm_zone) | |
5430 return 0; | |
5431 ; | |
5432 return 0; | |
5433 } | |
5434 _ACEOF | |
5435 rm -f conftest.$ac_objext | |
44493 | 5436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5437 (eval $ac_compile) 2>&5 | |
5438 ac_status=$? | |
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5440 (exit $ac_status); } && | |
5441 { ac_try='test -s conftest.$ac_objext' | |
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5443 (eval $ac_try) 2>&5 | |
5444 ac_status=$? | |
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5446 (exit $ac_status); }; }; then |
5447 ac_cv_member_struct_tm_tm_zone=yes | |
5448 else | |
5449 echo "$as_me: failed program was:" >&5 | |
5450 cat conftest.$ac_ext >&5 | |
5451 ac_cv_member_struct_tm_tm_zone=no | |
5452 fi | |
5453 rm -f conftest.$ac_objext conftest.$ac_ext | |
5454 fi | |
44493 | 5455 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
40056 | 5456 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
5457 if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
5458 | |
44493 | 5459 cat >>confdefs.h <<_ACEOF |
40056 | 5460 #define HAVE_STRUCT_TM_TM_ZONE 1 |
44493 | 5461 _ACEOF |
5462 | |
40056 | 5463 |
5464 fi | |
5465 | |
5466 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
5467 | |
44493 | 5468 cat >>confdefs.h <<\_ACEOF |
25897 | 5469 #define HAVE_TM_ZONE 1 |
44493 | 5470 _ACEOF |
5471 | |
5472 else | |
5473 echo "$as_me:$LINENO: checking for tzname" >&5 | |
40056 | 5474 echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
5475 if test "${ac_cv_var_tzname+set}" = set; then | |
5476 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5477 else | |
5478 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5479 #line $LINENO "configure" |
25897 | 5480 #include "confdefs.h" |
5481 #include <time.h> | |
5482 #ifndef tzname /* For SGI. */ | |
5483 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
5484 #endif | |
40056 | 5485 |
44493 | 5486 #ifdef F77_DUMMY_MAIN |
5487 # ifdef __cplusplus | |
5488 extern "C" | |
5489 # endif | |
5490 int F77_DUMMY_MAIN() { return 1; } | |
5491 #endif | |
40056 | 5492 int |
5493 main () | |
5494 { | |
25897 | 5495 atoi(*tzname); |
40056 | 5496 ; |
5497 return 0; | |
5498 } | |
5499 _ACEOF | |
5500 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 5501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5502 (eval $ac_link) 2>&5 | |
5503 ac_status=$? | |
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5505 (exit $ac_status); } && | |
5506 { ac_try='test -s conftest$ac_exeext' | |
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5508 (eval $ac_try) 2>&5 | |
5509 ac_status=$? | |
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5511 (exit $ac_status); }; }; then |
25897 | 5512 ac_cv_var_tzname=yes |
5513 else | |
40056 | 5514 echo "$as_me: failed program was:" >&5 |
5515 cat conftest.$ac_ext >&5 | |
5516 ac_cv_var_tzname=no | |
5517 fi | |
5518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5519 fi | |
44493 | 5520 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
40056 | 5521 echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
25897 | 5522 if test $ac_cv_var_tzname = yes; then |
40056 | 5523 |
44493 | 5524 cat >>confdefs.h <<\_ACEOF |
25897 | 5525 #define HAVE_TZNAME 1 |
44493 | 5526 _ACEOF |
5527 | |
5528 fi | |
5529 fi | |
5530 | |
5531 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
40056 | 5532 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 |
5533 if test "${emacs_cv_tm_gmtoff+set}" = set; then | |
5534 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5535 else | |
5536 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5537 #line $LINENO "configure" |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5538 #include "confdefs.h" |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5539 #include <time.h> |
44493 | 5540 #ifdef F77_DUMMY_MAIN |
5541 # ifdef __cplusplus | |
5542 extern "C" | |
5543 # endif | |
5544 int F77_DUMMY_MAIN() { return 1; } | |
5545 #endif | |
40056 | 5546 int |
5547 main () | |
5548 { | |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5549 struct tm t; t.tm_gmtoff = 0 |
40056 | 5550 ; |
5551 return 0; | |
5552 } | |
5553 _ACEOF | |
5554 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 5555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5556 (eval $ac_link) 2>&5 | |
5557 ac_status=$? | |
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5559 (exit $ac_status); } && | |
5560 { ac_try='test -s conftest$ac_exeext' | |
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5562 (eval $ac_try) 2>&5 | |
5563 ac_status=$? | |
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5565 (exit $ac_status); }; }; then |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5566 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
|
5567 else |
40056 | 5568 echo "$as_me: failed program was:" >&5 |
5569 cat conftest.$ac_ext >&5 | |
5570 emacs_cv_tm_gmtoff=no | |
5571 fi | |
5572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5573 fi | |
44493 | 5574 echo "$as_me:$LINENO: result: $emacs_cv_tm_gmtoff" >&5 |
40056 | 5575 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6 |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5576 if test $emacs_cv_tm_gmtoff = yes; then |
44493 | 5577 cat >>confdefs.h <<\_ACEOF |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5578 #define HAVE_TM_GMTOFF 1 |
44493 | 5579 _ACEOF |
5580 | |
5581 fi | |
5582 | |
5583 | |
5584 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
40056 | 5585 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
5586 if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
5587 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28060 | 5588 else |
5589 ac_cv_prog_cc_stdc=no | |
40056 | 5590 ac_save_CC=$CC |
5591 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5592 #line $LINENO "configure" |
28060 | 5593 #include "confdefs.h" |
5594 #include <stdarg.h> | |
5595 #include <stdio.h> | |
5596 #include <sys/types.h> | |
5597 #include <sys/stat.h> | |
5598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
5599 struct buf { int x; }; | |
5600 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5601 static char *e (p, i) | |
5602 char **p; | |
5603 int i; | |
5604 { | |
5605 return p[i]; | |
5606 } | |
5607 static char *f (char * (*g) (char **, int), char **p, ...) | |
5608 { | |
5609 char *s; | |
5610 va_list v; | |
5611 va_start (v,p); | |
5612 s = g (p, va_arg (v,int)); | |
5613 va_end (v); | |
5614 return s; | |
5615 } | |
5616 int test (int i, double x); | |
5617 struct s1 {int (*f) (int a);}; | |
5618 struct s2 {int (*f) (double a);}; | |
5619 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5620 int argc; | |
5621 char **argv; | |
44493 | 5622 #ifdef F77_DUMMY_MAIN |
5623 # ifdef __cplusplus | |
5624 extern "C" | |
5625 # endif | |
5626 int F77_DUMMY_MAIN() { return 1; } | |
5627 #endif | |
40056 | 5628 int |
5629 main () | |
5630 { | |
28060 | 5631 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
40056 | 5632 ; |
5633 return 0; | |
5634 } | |
5635 _ACEOF | |
5636 # Don't try gcc -ansi; that turns off useful extensions and | |
5637 # breaks some systems' header files. | |
5638 # AIX -qlanglvl=ansi | |
5639 # Ultrix and OSF/1 -std1 | |
5640 # HP-UX 10.20 and later -Ae | |
5641 # HP-UX older versions -Aa -D_HPUX_SOURCE | |
5642 # SVR4 -Xc -D__EXTENSIONS__ | |
5643 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5644 do | |
5645 CC="$ac_save_CC $ac_arg" | |
5646 rm -f conftest.$ac_objext | |
44493 | 5647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5648 (eval $ac_compile) 2>&5 | |
5649 ac_status=$? | |
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5651 (exit $ac_status); } && | |
5652 { ac_try='test -s conftest.$ac_objext' | |
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5654 (eval $ac_try) 2>&5 | |
5655 ac_status=$? | |
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5657 (exit $ac_status); }; }; then |
5658 ac_cv_prog_cc_stdc=$ac_arg | |
5659 break | |
5660 else | |
5661 echo "$as_me: failed program was:" >&5 | |
5662 cat conftest.$ac_ext >&5 | |
5663 fi | |
5664 rm -f conftest.$ac_objext | |
28060 | 5665 done |
40056 | 5666 rm -f conftest.$ac_ext conftest.$ac_objext |
5667 CC=$ac_save_CC | |
28060 | 5668 |
5669 fi | |
5670 | |
5671 case "x$ac_cv_prog_cc_stdc" in | |
5672 x|xno) | |
44493 | 5673 echo "$as_me:$LINENO: result: none needed" >&5 |
40056 | 5674 echo "${ECHO_T}none needed" >&6 ;; |
28060 | 5675 *) |
44493 | 5676 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
40056 | 5677 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
28060 | 5678 CC="$CC $ac_cv_prog_cc_stdc" ;; |
5679 esac | |
5680 | |
44493 | 5681 echo "$as_me:$LINENO: checking for function prototypes" >&5 |
40056 | 5682 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
28060 | 5683 if test "$ac_cv_prog_cc_stdc" != no; then |
44493 | 5684 echo "$as_me:$LINENO: result: yes" >&5 |
40056 | 5685 echo "${ECHO_T}yes" >&6 |
5686 | |
44493 | 5687 cat >>confdefs.h <<\_ACEOF |
28060 | 5688 #define PROTOTYPES 1 |
44493 | 5689 _ACEOF |
5690 | |
5691 | |
5692 cat >>confdefs.h <<\_ACEOF | |
5693 #define __PROTOTYPES 1 | |
5694 _ACEOF | |
5695 | |
5696 else | |
5697 echo "$as_me:$LINENO: result: no" >&5 | |
40056 | 5698 echo "${ECHO_T}no" >&6 |
5699 fi | |
5700 | |
44493 | 5701 echo "$as_me:$LINENO: checking for working volatile" >&5 |
40056 | 5702 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
5703 if test "${ac_cv_c_volatile+set}" = set; then | |
5704 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5705 else | |
5706 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5707 #line $LINENO "configure" |
5708 #include "confdefs.h" | |
5709 | |
5710 #ifdef F77_DUMMY_MAIN | |
5711 # ifdef __cplusplus | |
5712 extern "C" | |
5713 # endif | |
5714 int F77_DUMMY_MAIN() { return 1; } | |
5715 #endif | |
40056 | 5716 int |
5717 main () | |
5718 { | |
28060 | 5719 |
5720 volatile int x; | |
5721 int * volatile y; | |
40056 | 5722 ; |
5723 return 0; | |
5724 } | |
5725 _ACEOF | |
5726 rm -f conftest.$ac_objext | |
44493 | 5727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5728 (eval $ac_compile) 2>&5 | |
5729 ac_status=$? | |
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5731 (exit $ac_status); } && | |
5732 { ac_try='test -s conftest.$ac_objext' | |
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5734 (eval $ac_try) 2>&5 | |
5735 ac_status=$? | |
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5737 (exit $ac_status); }; }; then |
28060 | 5738 ac_cv_c_volatile=yes |
5739 else | |
40056 | 5740 echo "$as_me: failed program was:" >&5 |
5741 cat conftest.$ac_ext >&5 | |
5742 ac_cv_c_volatile=no | |
5743 fi | |
5744 rm -f conftest.$ac_objext conftest.$ac_ext | |
5745 fi | |
44493 | 5746 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
40056 | 5747 echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
28060 | 5748 if test $ac_cv_c_volatile = no; then |
40056 | 5749 |
44493 | 5750 cat >>confdefs.h <<\_ACEOF |
40056 | 5751 #define volatile |
44493 | 5752 _ACEOF |
5753 | |
5754 fi | |
5755 | |
5756 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
40056 | 5757 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
5758 if test "${ac_cv_c_const+set}" = set; then | |
5759 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5760 else | |
5761 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5762 #line $LINENO "configure" |
5763 #include "confdefs.h" | |
5764 | |
5765 #ifdef F77_DUMMY_MAIN | |
5766 # ifdef __cplusplus | |
5767 extern "C" | |
5768 # endif | |
5769 int F77_DUMMY_MAIN() { return 1; } | |
5770 #endif | |
40056 | 5771 int |
5772 main () | |
5773 { | |
5774 /* FIXME: Include the comments suggested by Paul. */ | |
5775 #ifndef __cplusplus | |
5776 /* Ultrix mips cc rejects this. */ | |
5777 typedef int charset[2]; | |
5778 const charset x; | |
5779 /* SunOS 4.1.1 cc rejects this. */ | |
5780 char const *const *ccp; | |
5781 char **p; | |
5782 /* NEC SVR4.0.2 mips cc rejects this. */ | |
5783 struct point {int x, y;}; | |
5784 static struct point const zero = {0,0}; | |
5785 /* AIX XL C 1.02.0.0 rejects this. | |
5786 It does not let you subtract one const X* pointer from another in | |
5787 an arm of an if-expression whose if-part is not a constant | |
5788 expression */ | |
5789 const char *g = "string"; | |
5790 ccp = &g + (g ? g-g : 0); | |
5791 /* HPUX 7.0 cc rejects these. */ | |
5792 ++ccp; | |
5793 p = (char**) ccp; | |
5794 ccp = (char const *const *) p; | |
5795 { /* SCO 3.2v4 cc rejects this. */ | |
5796 char *t; | |
5797 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5798 | |
5799 *t++ = 0; | |
5800 } | |
5801 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5802 int x[] = {25, 17}; | |
5803 const int *foo = &x[0]; | |
5804 ++foo; | |
5805 } | |
5806 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5807 typedef const int *iptr; | |
5808 iptr p = 0; | |
5809 ++p; | |
5810 } | |
5811 { /* AIX XL C 1.02.0.0 rejects this saying | |
5812 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5813 struct s { int j; const int *ap[3]; }; | |
5814 struct s *b; b->j = 5; | |
5815 } | |
5816 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5817 const int foo = 10; | |
5818 } | |
5819 #endif | |
5820 | |
5821 ; | |
5822 return 0; | |
5823 } | |
5824 _ACEOF | |
5825 rm -f conftest.$ac_objext | |
44493 | 5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5827 (eval $ac_compile) 2>&5 | |
5828 ac_status=$? | |
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5830 (exit $ac_status); } && | |
5831 { ac_try='test -s conftest.$ac_objext' | |
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5833 (eval $ac_try) 2>&5 | |
5834 ac_status=$? | |
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5836 (exit $ac_status); }; }; then |
25897 | 5837 ac_cv_c_const=yes |
5838 else | |
40056 | 5839 echo "$as_me: failed program was:" >&5 |
5840 cat conftest.$ac_ext >&5 | |
5841 ac_cv_c_const=no | |
5842 fi | |
5843 rm -f conftest.$ac_objext conftest.$ac_ext | |
5844 fi | |
44493 | 5845 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
40056 | 5846 echo "${ECHO_T}$ac_cv_c_const" >&6 |
25897 | 5847 if test $ac_cv_c_const = no; then |
40056 | 5848 |
44493 | 5849 cat >>confdefs.h <<\_ACEOF |
40056 | 5850 #define const |
44493 | 5851 _ACEOF |
5852 | |
5853 fi | |
5854 | |
5855 echo "$as_me:$LINENO: checking for void * support" >&5 | |
40056 | 5856 echo $ECHO_N "checking for void * support... $ECHO_C" >&6 |
5857 if test "${emacs_cv_void_star+set}" = set; then | |
5858 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5859 else | |
5860 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5861 #line $LINENO "configure" |
5862 #include "confdefs.h" | |
5863 | |
5864 #ifdef F77_DUMMY_MAIN | |
5865 # ifdef __cplusplus | |
5866 extern "C" | |
5867 # endif | |
5868 int F77_DUMMY_MAIN() { return 1; } | |
5869 #endif | |
40056 | 5870 int |
5871 main () | |
5872 { | |
28060 | 5873 void * foo; |
40056 | 5874 ; |
5875 return 0; | |
5876 } | |
5877 _ACEOF | |
5878 rm -f conftest.$ac_objext | |
44493 | 5879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5880 (eval $ac_compile) 2>&5 | |
5881 ac_status=$? | |
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5883 (exit $ac_status); } && | |
5884 { ac_try='test -s conftest.$ac_objext' | |
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5886 (eval $ac_try) 2>&5 | |
5887 ac_status=$? | |
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5889 (exit $ac_status); }; }; then |
28060 | 5890 emacs_cv_void_star=yes |
5891 else | |
40056 | 5892 echo "$as_me: failed program was:" >&5 |
5893 cat conftest.$ac_ext >&5 | |
5894 emacs_cv_void_star=no | |
5895 fi | |
5896 rm -f conftest.$ac_objext conftest.$ac_ext | |
5897 fi | |
44493 | 5898 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 |
40056 | 5899 echo "${ECHO_T}$emacs_cv_void_star" >&6 |
28060 | 5900 if test $emacs_cv_void_star = yes; then |
44493 | 5901 cat >>confdefs.h <<\_ACEOF |
28060 | 5902 #define POINTER_TYPE void |
44493 | 5903 _ACEOF |
5904 | |
5905 else | |
5906 cat >>confdefs.h <<\_ACEOF | |
28060 | 5907 #define POINTER_TYPE char |
44493 | 5908 _ACEOF |
5909 | |
5910 fi | |
5911 | |
5912 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
40056 | 5913 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
5914 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
5915 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
5916 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5917 else | |
44493 | 5918 cat >conftest.make <<\_ACEOF |
25897 | 5919 all: |
5920 @echo 'ac_maketemp="${MAKE}"' | |
44493 | 5921 _ACEOF |
25897 | 5922 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
40056 | 5923 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
25897 | 5924 if test -n "$ac_maketemp"; then |
5925 eval ac_cv_prog_make_${ac_make}_set=yes | |
5926 else | |
5927 eval ac_cv_prog_make_${ac_make}_set=no | |
5928 fi | |
40056 | 5929 rm -f conftest.make |
25897 | 5930 fi |
5931 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
44493 | 5932 echo "$as_me:$LINENO: result: yes" >&5 |
40056 | 5933 echo "${ECHO_T}yes" >&6 |
25897 | 5934 SET_MAKE= |
5935 else | |
44493 | 5936 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 5937 echo "${ECHO_T}no" >&6 |
25897 | 5938 SET_MAKE="MAKE=${MAKE-make}" |
5939 fi | |
5940 | |
44493 | 5941 |
5942 echo "$as_me:$LINENO: checking for long file names" >&5 | |
40056 | 5943 echo $ECHO_N "checking for long file names... $ECHO_C" >&6 |
5944 if test "${ac_cv_sys_long_file_names+set}" = set; then | |
5945 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 5946 else |
5947 ac_cv_sys_long_file_names=yes | |
5948 # Test for long file names in all the places we know might matter: | |
5949 # . the current directory, where building will happen | |
5950 # $prefix/lib where we will be installing things | |
5951 # $exec_prefix/lib likewise | |
5952 # eval it to expand exec_prefix. | |
5953 # $TMPDIR if set, where it might want to write temporary files | |
5954 # if $TMPDIR is not set: | |
5955 # /tmp where it might want to write temporary files | |
5956 # /var/tmp likewise | |
5957 # /usr/tmp likewise | |
5958 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
40056 | 5959 ac_tmpdirs=$TMPDIR |
25897 | 5960 else |
5961 ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
5962 fi | |
5963 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
5964 test -d $ac_dir || continue | |
5965 test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
40056 | 5966 ac_xdir=$ac_dir/cf$$ |
5967 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue | |
5968 ac_tf1=$ac_xdir/conftest9012345 | |
5969 ac_tf2=$ac_xdir/conftest9012346 | |
5970 (echo 1 >$ac_tf1) 2>/dev/null | |
5971 (echo 2 >$ac_tf2) 2>/dev/null | |
5972 ac_val=`cat $ac_tf1 2>/dev/null` | |
5973 if test ! -f $ac_tf1 || test "$ac_val" != 1; then | |
25897 | 5974 ac_cv_sys_long_file_names=no |
40056 | 5975 rm -rf $ac_xdir 2>/dev/null |
25897 | 5976 break |
5977 fi | |
40056 | 5978 rm -rf $ac_xdir 2>/dev/null |
25897 | 5979 done |
5980 fi | |
44493 | 5981 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 |
40056 | 5982 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 |
25897 | 5983 if test $ac_cv_sys_long_file_names = yes; then |
40056 | 5984 |
44493 | 5985 cat >>confdefs.h <<\_ACEOF |
25897 | 5986 #define HAVE_LONG_FILE_NAMES 1 |
44493 | 5987 _ACEOF |
5988 | |
5989 fi | |
5990 | |
5991 | |
5992 if test "$gamedir" = no; then : | |
5993 else | |
5994 echo "$as_me:$LINENO: checking for access to game group \"$gameuser\"" >&5 | |
5995 echo $ECHO_N "checking for access to game group \"$gameuser\"... $ECHO_C" >&6 | |
5996 rm -f conf$$chown.file | |
5997 touch conf$$chown.file | |
5998 if chown "$gameuser" conf$$chown.file 1>/dev/null 2>&1; then | |
5999 echo "$as_me:$LINENO: result: yes" >&5 | |
6000 echo "${ECHO_T}yes" >&6 | |
6001 if test "$gamedir" = "yes"; then | |
6002 gamedir="${localstatedir}/games/emacs" | |
6003 fi | |
6004 tgamedir=`eval "echo $gamedir"` | |
6005 cat >>confdefs.h <<_ACEOF | |
6006 #define HAVE_SHARED_GAME_DIR "$tgamedir" | |
6007 _ACEOF | |
6008 | |
6009 else | |
6010 echo "$as_me:$LINENO: result: no" >&5 | |
6011 echo "${ECHO_T}no" >&6 | |
6012 gamedir=no | |
6013 fi | |
6014 fi | |
25897 | 6015 #### Choose a window system. |
6016 | |
44493 | 6017 echo "$as_me:$LINENO: checking for X" >&5 |
40056 | 6018 echo $ECHO_N "checking for X... $ECHO_C" >&6 |
25897 | 6019 |
44493 | 6020 |
25897 | 6021 # Check whether --with-x or --without-x was given. |
6022 if test "${with_x+set}" = set; then | |
6023 withval="$with_x" | |
40056 | 6024 |
6025 fi; | |
25897 | 6026 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
6027 if test "x$with_x" = xno; then | |
6028 # The user explicitly disabled X. | |
6029 have_x=disabled | |
6030 else | |
6031 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
6032 # Both variables are already set. | |
6033 have_x=yes | |
6034 else | |
40056 | 6035 if test "${ac_cv_have_x+set}" = set; then |
6036 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 6037 else |
6038 # One or both of the vars are not set, and there is no cached value. | |
40056 | 6039 ac_x_includes=no ac_x_libraries=no |
6040 rm -fr conftest.dir | |
6041 if mkdir conftest.dir; then | |
6042 cd conftest.dir | |
25897 | 6043 # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
44493 | 6044 cat >Imakefile <<'_ACEOF' |
25897 | 6045 acfindx: |
6046 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
44493 | 6047 _ACEOF |
25897 | 6048 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
6049 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
6050 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
6051 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
6052 for ac_extension in a so sl; do | |
6053 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
40056 | 6054 test -f $ac_im_libdir/libX11.$ac_extension; then |
25897 | 6055 ac_im_usrlibdir=$ac_im_libdir; break |
6056 fi | |
6057 done | |
6058 # Screen out bogus values from the imake configuration. They are | |
6059 # bogus both because they are the default anyway, and because | |
6060 # using them would break gcc on systems where it needs fixed includes. | |
40056 | 6061 case $ac_im_incroot in |
25897 | 6062 /usr/include) ;; |
40056 | 6063 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
25897 | 6064 esac |
40056 | 6065 case $ac_im_usrlibdir in |
25897 | 6066 /usr/lib | /lib) ;; |
40056 | 6067 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
25897 | 6068 esac |
6069 fi | |
6070 cd .. | |
40056 | 6071 rm -fr conftest.dir |
6072 fi | |
6073 | |
6074 # Standard set of common directories for X headers. | |
6075 # Check X11 before X11Rn because it is often a symlink to the current release. | |
6076 ac_x_header_dirs=' | |
6077 /usr/X11/include | |
6078 /usr/X11R6/include | |
6079 /usr/X11R5/include | |
6080 /usr/X11R4/include | |
6081 | |
6082 /usr/include/X11 | |
6083 /usr/include/X11R6 | |
6084 /usr/include/X11R5 | |
6085 /usr/include/X11R4 | |
6086 | |
6087 /usr/local/X11/include | |
6088 /usr/local/X11R6/include | |
6089 /usr/local/X11R5/include | |
6090 /usr/local/X11R4/include | |
6091 | |
6092 /usr/local/include/X11 | |
6093 /usr/local/include/X11R6 | |
6094 /usr/local/include/X11R5 | |
6095 /usr/local/include/X11R4 | |
6096 | |
6097 /usr/X386/include | |
6098 /usr/x386/include | |
6099 /usr/XFree86/include/X11 | |
6100 | |
6101 /usr/include | |
6102 /usr/local/include | |
6103 /usr/unsupported/include | |
6104 /usr/athena/include | |
6105 /usr/local/x11r5/include | |
6106 /usr/lpp/Xamples/include | |
6107 | |
6108 /usr/openwin/include | |
6109 /usr/openwin/share/include' | |
6110 | |
6111 if test "$ac_x_includes" = no; then | |
6112 # Guess where to find include files, by looking for Intrinsic.h. | |
25897 | 6113 # First, try using that file with no special directory specified. |
40056 | 6114 cat >conftest.$ac_ext <<_ACEOF |
44493 | 6115 #line $LINENO "configure" |
40056 | 6116 #include "confdefs.h" |
6117 #include <X11/Intrinsic.h> | |
6118 _ACEOF | |
44493 | 6119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 6120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6121 ac_status=$? | |
6122 egrep -v '^ *\+' conftest.er1 >conftest.err | |
6123 rm -f conftest.er1 | |
6124 cat conftest.err >&5 | |
44493 | 6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 6126 (exit $ac_status); } >/dev/null; then |
6127 if test -s conftest.err; then | |
6128 ac_cpp_err=$ac_c_preproc_warn_flag | |
6129 else | |
6130 ac_cpp_err= | |
6131 fi | |
6132 else | |
6133 ac_cpp_err=yes | |
6134 fi | |
6135 if test -z "$ac_cpp_err"; then | |
25897 | 6136 # We can compile using X headers with no special include directory. |
6137 ac_x_includes= | |
6138 else | |
40056 | 6139 echo "$as_me: failed program was:" >&5 |
25897 | 6140 cat conftest.$ac_ext >&5 |
40056 | 6141 for ac_dir in $ac_x_header_dirs; do |
6142 if test -r "$ac_dir/X11/Intrinsic.h"; then | |
6143 ac_x_includes=$ac_dir | |
6144 break | |
6145 fi | |
6146 done | |
6147 fi | |
6148 rm -f conftest.err conftest.$ac_ext | |
6149 fi # $ac_x_includes = no | |
6150 | |
6151 if test "$ac_x_libraries" = no; then | |
25897 | 6152 # Check for the libraries. |
6153 # See if we find them without any special options. | |
6154 # Don't add to $LIBS permanently. | |
40056 | 6155 ac_save_LIBS=$LIBS |
6156 LIBS="-lXt $LIBS" | |
6157 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 6158 #line $LINENO "configure" |
40056 | 6159 #include "confdefs.h" |
6160 #include <X11/Intrinsic.h> | |
44493 | 6161 #ifdef F77_DUMMY_MAIN |
6162 # ifdef __cplusplus | |
6163 extern "C" | |
6164 # endif | |
6165 int F77_DUMMY_MAIN() { return 1; } | |
6166 #endif | |
40056 | 6167 int |
6168 main () | |
6169 { | |
6170 XtMalloc (0) | |
6171 ; | |
6172 return 0; | |
6173 } | |
6174 _ACEOF | |
6175 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 6176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6177 (eval $ac_link) 2>&5 | |
6178 ac_status=$? | |
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6180 (exit $ac_status); } && | |
6181 { ac_try='test -s conftest$ac_exeext' | |
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6183 (eval $ac_try) 2>&5 | |
6184 ac_status=$? | |
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 6186 (exit $ac_status); }; }; then |
6187 LIBS=$ac_save_LIBS | |
25897 | 6188 # We can link X programs with no special library path. |
6189 ac_x_libraries= | |
6190 else | |
40056 | 6191 echo "$as_me: failed program was:" >&5 |
6192 cat conftest.$ac_ext >&5 | |
6193 LIBS=$ac_save_LIBS | |
6194 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
25897 | 6195 do |
40056 | 6196 # Don't even attempt the hair of trying to link an X program! |
25897 | 6197 for ac_extension in a so sl; do |
40056 | 6198 if test -r $ac_dir/libXt.$ac_extension; then |
25897 | 6199 ac_x_libraries=$ac_dir |
6200 break 2 | |
6201 fi | |
6202 done | |
6203 done | |
6204 fi | |
40056 | 6205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6206 fi # $ac_x_libraries = no | |
6207 | |
6208 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
25897 | 6209 # Didn't find X anywhere. Cache the known absence of X. |
6210 ac_cv_have_x="have_x=no" | |
6211 else | |
6212 # Record where we found X for the cache. | |
6213 ac_cv_have_x="have_x=yes \ | |
6214 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
6215 fi | |
6216 fi | |
40056 | 6217 |
25897 | 6218 fi |
6219 eval "$ac_cv_have_x" | |
6220 fi # $with_x != no | |
6221 | |
6222 if test "$have_x" != yes; then | |
44493 | 6223 echo "$as_me:$LINENO: result: $have_x" >&5 |
40056 | 6224 echo "${ECHO_T}$have_x" >&6 |
25897 | 6225 no_x=yes |
6226 else | |
6227 # If each of the values was on the command line, it overrides each guess. | |
6228 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
6229 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
6230 # Update the cache value to reflect the command line values. | |
6231 ac_cv_have_x="have_x=yes \ | |
6232 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
44493 | 6233 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
40056 | 6234 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
25897 | 6235 fi |
6236 | |
6237 if test "$no_x" = yes; then | |
6238 window_system=none | |
6239 else | |
6240 window_system=x11 | |
6241 fi | |
6242 | |
6243 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
6244 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
6245 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
6246 x_default_search_path="" | |
6247 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
35666 | 6248 x_search_path="\ |
6249 ${x_library}/X11/%L/%T/%N%C%S:\ | |
6250 ${x_library}/X11/%l/%T/%N%C%S:\ | |
6251 ${x_library}/X11/%T/%N%C%S:\ | |
6252 ${x_library}/X11/%L/%T/%N%S:\ | |
6253 ${x_library}/X11/%l/%T/%N%S:\ | |
6254 ${x_library}/X11/%T/%N%S" | |
25897 | 6255 if test x"${x_default_search_path}" = x; then |
6256 x_default_search_path=${x_search_path} | |
6257 else | |
6258 x_default_search_path="${x_search_path}:${x_default_search_path}" | |
6259 fi | |
6260 done | |
6261 fi | |
6262 if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
6263 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
6264 fi | |
6265 | |
6266 if test x"${x_includes}" = x; then | |
6267 bitmapdir=/usr/include/X11/bitmaps | |
6268 else | |
6269 # accumulate include directories that have X11 bitmap subdirectories | |
6270 bmd_acc="dummyval" | |
6271 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
6272 if test -d "${bmd}/X11/bitmaps"; then | |
6273 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
26502 | 6274 fi |
6275 if test -d "${bmd}/bitmaps"; then | |
25897 | 6276 bmd_acc="${bmd_acc}:${bmd}/bitmaps" |
6277 fi | |
6278 done | |
6279 if test ${bmd_acc} != "dummyval"; then | |
6280 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
6281 fi | |
6282 fi | |
6283 | |
6284 case "${window_system}" in | |
6285 x11 ) | |
6286 HAVE_X_WINDOWS=yes | |
6287 HAVE_X11=yes | |
6288 case "${with_x_toolkit}" in | |
6289 athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
6290 motif ) USE_X_TOOLKIT=MOTIF ;; | |
6291 no ) USE_X_TOOLKIT=none ;; | |
6292 * ) USE_X_TOOLKIT=maybe ;; | |
6293 esac | |
6294 ;; | |
6295 none ) | |
6296 HAVE_X_WINDOWS=no | |
6297 HAVE_X11=no | |
6298 USE_X_TOOLKIT=none | |
6299 ;; | |
6300 esac | |
6301 | |
6302 ### If we're using X11, we should use the X menu package. | |
6303 HAVE_MENUS=no | |
6304 case ${HAVE_X11} in | |
6305 yes ) HAVE_MENUS=yes ;; | |
6306 esac | |
40056 | 6307 |
25897 | 6308 if test "${opsys}" = "hpux9"; then |
6309 case "${x_libraries}" in | |
6310 *X11R4* ) | |
6311 opsysfile="s/hpux9-x11r4.h" | |
6312 ;; | |
6313 esac | |
6314 fi | |
6315 | |
6316 if test "${opsys}" = "hpux9shr"; then | |
6317 case "${x_libraries}" in | |
6318 *X11R4* ) | |
6319 opsysfile="s/hpux9shxr4.h" | |
6320 ;; | |
6321 esac | |
6322 fi | |
6323 | |
6324 ### Compute the unexec source name from the object name. | |
6325 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
6326 | |
6327 # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
6328 # Assume not, until told otherwise. | |
6329 GNU_MALLOC=yes | |
6330 doug_lea_malloc=yes | |
44493 | 6331 echo "$as_me:$LINENO: checking for malloc_get_state" >&5 |
40056 | 6332 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 |
6333 if test "${ac_cv_func_malloc_get_state+set}" = set; then | |
6334 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6335 else | |
6336 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 6337 #line $LINENO "configure" |
25897 | 6338 #include "confdefs.h" |
6339 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 6340 which can conflict with char malloc_get_state (); below. */ |
25897 | 6341 #include <assert.h> |
6342 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 6343 #ifdef __cplusplus |
6344 extern "C" | |
6345 #endif | |
25897 | 6346 /* We use char because int might match the return type of a gcc2 |
40056 | 6347 builtin and then its argument prototype would still apply. */ |
6348 char malloc_get_state (); | |
6349 char (*f) (); | |
6350 | |
44493 | 6351 #ifdef F77_DUMMY_MAIN |
6352 # ifdef __cplusplus | |
6353 extern "C" | |
6354 # endif | |
6355 int F77_DUMMY_MAIN() { return 1; } | |
6356 #endif | |
40056 | 6357 int |
6358 main () | |
6359 { | |
25897 | 6360 /* The GNU C library defines this for functions which it implements |
6361 to always fail with ENOSYS. Some functions are actually named | |
6362 something starting with __ and the normal name is an alias. */ | |
6363 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
6364 choke me | |
6365 #else | |
40056 | 6366 f = malloc_get_state; |
6367 #endif | |
6368 | |
6369 ; | |
6370 return 0; | |
6371 } | |
6372 _ACEOF | |
6373 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 6374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6375 (eval $ac_link) 2>&5 | |
6376 ac_status=$? | |
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6378 (exit $ac_status); } && | |
6379 { ac_try='test -s conftest$ac_exeext' | |
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6381 (eval $ac_try) 2>&5 | |
6382 ac_status=$? | |
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 6384 (exit $ac_status); }; }; then |
6385 ac_cv_func_malloc_get_state=yes | |
6386 else | |
6387 echo "$as_me: failed program was:" >&5 | |
6388 cat conftest.$ac_ext >&5 | |
6389 ac_cv_func_malloc_get_state=no | |
6390 fi | |
6391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6392 fi | |
44493 | 6393 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5 |
40056 | 6394 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 |
6395 if test $ac_cv_func_malloc_get_state = yes; then | |
25897 | 6396 : |
6397 else | |
40056 | 6398 doug_lea_malloc=no |
6399 fi | |
6400 | |
44493 | 6401 echo "$as_me:$LINENO: checking for malloc_set_state" >&5 |
40056 | 6402 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 |
6403 if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
6404 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6405 else | |
6406 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 6407 #line $LINENO "configure" |
25897 | 6408 #include "confdefs.h" |
6409 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 6410 which can conflict with char malloc_set_state (); below. */ |
25897 | 6411 #include <assert.h> |
6412 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 6413 #ifdef __cplusplus |
6414 extern "C" | |
6415 #endif | |
25897 | 6416 /* We use char because int might match the return type of a gcc2 |
40056 | 6417 builtin and then its argument prototype would still apply. */ |
6418 char malloc_set_state (); | |
6419 char (*f) (); | |
6420 | |
44493 | 6421 #ifdef F77_DUMMY_MAIN |
6422 # ifdef __cplusplus | |
6423 extern "C" | |
6424 # endif | |
6425 int F77_DUMMY_MAIN() { return 1; } | |
6426 #endif | |
40056 | 6427 int |
6428 main () | |
6429 { | |
25897 | 6430 /* The GNU C library defines this for functions which it implements |
6431 to always fail with ENOSYS. Some functions are actually named | |
6432 something starting with __ and the normal name is an alias. */ | |
6433 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
6434 choke me | |
6435 #else | |
40056 | 6436 f = malloc_set_state; |
6437 #endif | |
6438 | |
6439 ; | |
6440 return 0; | |
6441 } | |
6442 _ACEOF | |
6443 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 6444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6445 (eval $ac_link) 2>&5 | |
6446 ac_status=$? | |
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6448 (exit $ac_status); } && | |
6449 { ac_try='test -s conftest$ac_exeext' | |
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6451 (eval $ac_try) 2>&5 | |
6452 ac_status=$? | |
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 6454 (exit $ac_status); }; }; then |
6455 ac_cv_func_malloc_set_state=yes | |
6456 else | |
6457 echo "$as_me: failed program was:" >&5 | |
6458 cat conftest.$ac_ext >&5 | |
6459 ac_cv_func_malloc_set_state=no | |
6460 fi | |
6461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6462 fi | |
44493 | 6463 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5 |
40056 | 6464 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 |
6465 if test $ac_cv_func_malloc_set_state = yes; then | |
25897 | 6466 : |
6467 else | |
40056 | 6468 doug_lea_malloc=no |
6469 fi | |
6470 | |
44493 | 6471 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5 |
40056 | 6472 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 |
6473 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
6474 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6475 else | |
6476 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 6477 #line $LINENO "configure" |
25897 | 6478 #include "confdefs.h" |
6479 extern void (* __after_morecore_hook)(); | |
44493 | 6480 #ifdef F77_DUMMY_MAIN |
6481 # ifdef __cplusplus | |
6482 extern "C" | |
6483 # endif | |
6484 int F77_DUMMY_MAIN() { return 1; } | |
6485 #endif | |
40056 | 6486 int |
6487 main () | |
6488 { | |
25897 | 6489 __after_morecore_hook = 0 |
40056 | 6490 ; |
6491 return 0; | |
6492 } | |
6493 _ACEOF | |
6494 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 6495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6496 (eval $ac_link) 2>&5 | |
6497 ac_status=$? | |
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6499 (exit $ac_status); } && | |
6500 { ac_try='test -s conftest$ac_exeext' | |
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6502 (eval $ac_try) 2>&5 | |
6503 ac_status=$? | |
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 6505 (exit $ac_status); }; }; then |
25897 | 6506 emacs_cv_var___after_morecore_hook=yes |
6507 else | |
40056 | 6508 echo "$as_me: failed program was:" >&5 |
6509 cat conftest.$ac_ext >&5 | |
6510 emacs_cv_var___after_morecore_hook=no | |
6511 fi | |
6512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6513 fi | |
44493 | 6514 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 |
40056 | 6515 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 |
25897 | 6516 if test $emacs_cv_var___after_morecore_hook = no; then |
6517 doug_lea_malloc=no | |
6518 fi | |
6519 if test "${system_malloc}" = "yes"; then | |
6520 GNU_MALLOC=no | |
6521 GNU_MALLOC_reason=" | |
6522 (The GNU allocators don't work with this system configuration.)" | |
6523 fi | |
6524 if test "$doug_lea_malloc" = "yes" ; then | |
6525 if test "$GNU_MALLOC" = yes ; then | |
6526 GNU_MALLOC_reason=" | |
6527 (Using Doug Lea's new malloc from the GNU C Library.)" | |
6528 fi | |
44493 | 6529 cat >>confdefs.h <<\_ACEOF |
25897 | 6530 #define DOUG_LEA_MALLOC 1 |
44493 | 6531 _ACEOF |
25897 | 6532 |
6533 fi | |
6534 | |
6535 if test x"${REL_ALLOC}" = x; then | |
6536 REL_ALLOC=${GNU_MALLOC} | |
6537 fi | |
6538 | |
44493 | 6539 |
6540 | |
40056 | 6541 |
6542 for ac_header in stdlib.h unistd.h | |
6543 do | |
6544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
44493 | 6545 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6546 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 6547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6548 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6549 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 6550 fi |
6551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6553 else | |
6554 # Is the header compilable? | |
6555 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6557 cat >conftest.$ac_ext <<_ACEOF | |
6558 #line $LINENO "configure" | |
6559 #include "confdefs.h" | |
6560 $ac_includes_default | |
6561 #include <$ac_header> | |
6562 _ACEOF | |
6563 rm -f conftest.$ac_objext | |
6564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6565 (eval $ac_compile) 2>&5 | |
6566 ac_status=$? | |
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6568 (exit $ac_status); } && | |
6569 { ac_try='test -s conftest.$ac_objext' | |
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6571 (eval $ac_try) 2>&5 | |
6572 ac_status=$? | |
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6574 (exit $ac_status); }; }; then | |
6575 ac_header_compiler=yes | |
6576 else | |
6577 echo "$as_me: failed program was:" >&5 | |
6578 cat conftest.$ac_ext >&5 | |
6579 ac_header_compiler=no | |
6580 fi | |
6581 rm -f conftest.$ac_objext conftest.$ac_ext | |
6582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6583 echo "${ECHO_T}$ac_header_compiler" >&6 | |
6584 | |
6585 # Is the header present? | |
6586 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6588 cat >conftest.$ac_ext <<_ACEOF | |
6589 #line $LINENO "configure" | |
40056 | 6590 #include "confdefs.h" |
6591 #include <$ac_header> | |
6592 _ACEOF | |
44493 | 6593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 6594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6595 ac_status=$? | |
6596 egrep -v '^ *\+' conftest.er1 >conftest.err | |
6597 rm -f conftest.er1 | |
6598 cat conftest.err >&5 | |
44493 | 6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 6600 (exit $ac_status); } >/dev/null; then |
6601 if test -s conftest.err; then | |
6602 ac_cpp_err=$ac_c_preproc_warn_flag | |
6603 else | |
6604 ac_cpp_err= | |
6605 fi | |
6606 else | |
6607 ac_cpp_err=yes | |
6608 fi | |
6609 if test -z "$ac_cpp_err"; then | |
44493 | 6610 ac_header_preproc=yes |
40056 | 6611 else |
6612 echo "$as_me: failed program was:" >&5 | |
31417 | 6613 cat conftest.$ac_ext >&5 |
44493 | 6614 ac_header_preproc=no |
40056 | 6615 fi |
6616 rm -f conftest.err conftest.$ac_ext | |
44493 | 6617 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6618 echo "${ECHO_T}$ac_header_preproc" >&6 | |
6619 | |
6620 # So? What about this header? | |
6621 case $ac_header_compiler:$ac_header_preproc in | |
6622 yes:no ) | |
6623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
6627 no:yes ) | |
6628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
6634 esac | |
6635 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6637 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6638 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6639 else | |
6640 eval "$as_ac_Header=$ac_header_preproc" | |
6641 fi | |
6642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 6643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 6644 |
6645 fi | |
40056 | 6646 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 6647 cat >>confdefs.h <<_ACEOF |
40056 | 6648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 6649 _ACEOF |
6650 | |
6651 fi | |
6652 | |
6653 done | |
6654 | |
31417 | 6655 |
6656 for ac_func in getpagesize | |
6657 do | |
40056 | 6658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44493 | 6659 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 6660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
6661 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6662 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6663 else | |
6664 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 6665 #line $LINENO "configure" |
31417 | 6666 #include "confdefs.h" |
6667 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 6668 which can conflict with char $ac_func (); below. */ |
31417 | 6669 #include <assert.h> |
6670 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 6671 #ifdef __cplusplus |
6672 extern "C" | |
6673 #endif | |
31417 | 6674 /* We use char because int might match the return type of a gcc2 |
40056 | 6675 builtin and then its argument prototype would still apply. */ |
6676 char $ac_func (); | |
6677 char (*f) (); | |
6678 | |
44493 | 6679 #ifdef F77_DUMMY_MAIN |
6680 # ifdef __cplusplus | |
6681 extern "C" | |
6682 # endif | |
6683 int F77_DUMMY_MAIN() { return 1; } | |
6684 #endif | |
40056 | 6685 int |
6686 main () | |
6687 { | |
31417 | 6688 /* The GNU C library defines this for functions which it implements |
6689 to always fail with ENOSYS. Some functions are actually named | |
6690 something starting with __ and the normal name is an alias. */ | |
6691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6692 choke me | |
6693 #else | |
40056 | 6694 f = $ac_func; |
6695 #endif | |
6696 | |
6697 ; | |
6698 return 0; | |
6699 } | |
6700 _ACEOF | |
6701 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6703 (eval $ac_link) 2>&5 | |
6704 ac_status=$? | |
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6706 (exit $ac_status); } && | |
6707 { ac_try='test -s conftest$ac_exeext' | |
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6709 (eval $ac_try) 2>&5 | |
6710 ac_status=$? | |
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 6712 (exit $ac_status); }; }; then |
6713 eval "$as_ac_var=yes" | |
6714 else | |
6715 echo "$as_me: failed program was:" >&5 | |
6716 cat conftest.$ac_ext >&5 | |
6717 eval "$as_ac_var=no" | |
6718 fi | |
6719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6720 fi | |
44493 | 6721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 6722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
6723 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 6724 cat >>confdefs.h <<_ACEOF |
40056 | 6725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 6726 _ACEOF |
6727 | |
6728 fi | |
6729 done | |
6730 | |
6731 echo "$as_me:$LINENO: checking for working mmap" >&5 | |
40056 | 6732 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
6733 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6734 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31417 | 6735 else |
6736 if test "$cross_compiling" = yes; then | |
6737 ac_cv_func_mmap_fixed_mapped=no | |
6738 else | |
40056 | 6739 cat >conftest.$ac_ext <<_ACEOF |
44493 | 6740 #line $LINENO "configure" |
40056 | 6741 #include "confdefs.h" |
6742 $ac_includes_default | |
44493 | 6743 /* malloc might have been renamed as rpl_malloc. */ |
6744 #undef malloc | |
6745 | |
31417 | 6746 /* Thanks to Mike Haertel and Jim Avera for this test. |
6747 Here is a matrix of mmap possibilities: | |
6748 mmap private not fixed | |
6749 mmap private fixed at somewhere currently unmapped | |
6750 mmap private fixed at somewhere already mapped | |
6751 mmap shared not fixed | |
6752 mmap shared fixed at somewhere currently unmapped | |
6753 mmap shared fixed at somewhere already mapped | |
6754 For private mappings, we should verify that changes cannot be read() | |
6755 back from the file, nor mmap's back from the file at a different | |
6756 address. (There have been systems where private was not correctly | |
6757 implemented like the infamous i386 svr4.0, and systems where the | |
31512 | 6758 VM page cache was not coherent with the file system buffer cache |
31417 | 6759 like early versions of FreeBSD and possibly contemporary NetBSD.) |
6760 For shared mappings, we should conversely verify that changes get | |
44493 | 6761 propagated back to all the places they're supposed to be. |
31417 | 6762 |
6763 Grep wants private fixed already mapped. | |
6764 The main things grep needs to know about mmap are: | |
6765 * does it exist and is it safe to write into the mmap'd area | |
6766 * how to use it (BSD variants) */ | |
40056 | 6767 |
31417 | 6768 #include <fcntl.h> |
6769 #include <sys/mman.h> | |
6770 | |
40056 | 6771 #if !STDC_HEADERS && !HAVE_STDLIB_H |
31512 | 6772 char *malloc (); |
6773 #endif | |
6774 | |
31417 | 6775 /* This mess was copied from the GNU getpagesize.h. */ |
31512 | 6776 #if !HAVE_GETPAGESIZE |
31417 | 6777 /* Assume that all systems that can run configure have sys/param.h. */ |
31512 | 6778 # if !HAVE_SYS_PARAM_H |
31417 | 6779 # define HAVE_SYS_PARAM_H 1 |
6780 # endif | |
6781 | |
6782 # ifdef _SC_PAGESIZE | |
6783 # define getpagesize() sysconf(_SC_PAGESIZE) | |
6784 # else /* no _SC_PAGESIZE */ | |
31512 | 6785 # if HAVE_SYS_PARAM_H |
31417 | 6786 # include <sys/param.h> |
6787 # ifdef EXEC_PAGESIZE | |
6788 # define getpagesize() EXEC_PAGESIZE | |
6789 # else /* no EXEC_PAGESIZE */ | |
6790 # ifdef NBPG | |
6791 # define getpagesize() NBPG * CLSIZE | |
6792 # ifndef CLSIZE | |
6793 # define CLSIZE 1 | |
6794 # endif /* no CLSIZE */ | |
6795 # else /* no NBPG */ | |
6796 # ifdef NBPC | |
6797 # define getpagesize() NBPC | |
6798 # else /* no NBPC */ | |
6799 # ifdef PAGESIZE | |
6800 # define getpagesize() PAGESIZE | |
6801 # endif /* PAGESIZE */ | |
6802 # endif /* no NBPC */ | |
6803 # endif /* no NBPG */ | |
6804 # endif /* no EXEC_PAGESIZE */ | |
6805 # else /* no HAVE_SYS_PARAM_H */ | |
6806 # define getpagesize() 8192 /* punt totally */ | |
6807 # endif /* no HAVE_SYS_PARAM_H */ | |
6808 # endif /* no _SC_PAGESIZE */ | |
6809 | |
6810 #endif /* no HAVE_GETPAGESIZE */ | |
6811 | |
6812 int | |
31512 | 6813 main () |
31417 | 6814 { |
31512 | 6815 char *data, *data2, *data3; |
6816 int i, pagesize; | |
6817 int fd; | |
6818 | |
6819 pagesize = getpagesize (); | |
6820 | |
6821 /* First, make a file with some known garbage in it. */ | |
6822 data = (char *) malloc (pagesize); | |
6823 if (!data) | |
6824 exit (1); | |
6825 for (i = 0; i < pagesize; ++i) | |
6826 *(data + i) = rand (); | |
6827 umask (0); | |
40056 | 6828 fd = creat ("conftest.mmap", 0600); |
31512 | 6829 if (fd < 0) |
6830 exit (1); | |
6831 if (write (fd, data, pagesize) != pagesize) | |
6832 exit (1); | |
6833 close (fd); | |
6834 | |
6835 /* Next, try to mmap the file at a fixed address which already has | |
6836 something else allocated at it. If we can, also make sure that | |
6837 we see the same garbage. */ | |
40056 | 6838 fd = open ("conftest.mmap", O_RDWR); |
31512 | 6839 if (fd < 0) |
6840 exit (1); | |
6841 data2 = (char *) malloc (2 * pagesize); | |
6842 if (!data2) | |
6843 exit (1); | |
6844 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
6845 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6846 MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6847 exit (1); | |
6848 for (i = 0; i < pagesize; ++i) | |
6849 if (*(data + i) != *(data2 + i)) | |
6850 exit (1); | |
6851 | |
6852 /* Finally, make sure that changes to the mapped area do not | |
6853 percolate back to the file as seen by read(). (This is a bug on | |
6854 some variants of i386 svr4.0.) */ | |
6855 for (i = 0; i < pagesize; ++i) | |
6856 *(data2 + i) = *(data2 + i) + 1; | |
6857 data3 = (char *) malloc (pagesize); | |
6858 if (!data3) | |
6859 exit (1); | |
6860 if (read (fd, data3, pagesize) != pagesize) | |
6861 exit (1); | |
6862 for (i = 0; i < pagesize; ++i) | |
6863 if (*(data + i) != *(data3 + i)) | |
6864 exit (1); | |
6865 close (fd); | |
6866 exit (0); | |
31417 | 6867 } |
40056 | 6868 _ACEOF |
6869 rm -f conftest$ac_exeext | |
44493 | 6870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6871 (eval $ac_link) 2>&5 | |
6872 ac_status=$? | |
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 6874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
44493 | 6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6876 (eval $ac_try) 2>&5 | |
6877 ac_status=$? | |
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 6879 (exit $ac_status); }; }; then |
31417 | 6880 ac_cv_func_mmap_fixed_mapped=yes |
6881 else | |
40056 | 6882 echo "$as_me: program exited with status $ac_status" >&5 |
6883 echo "$as_me: failed program was:" >&5 | |
6884 cat conftest.$ac_ext >&5 | |
44493 | 6885 ( exit $ac_status ) |
40056 | 6886 ac_cv_func_mmap_fixed_mapped=no |
6887 fi | |
6888 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6889 fi | |
6890 fi | |
44493 | 6891 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
40056 | 6892 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
31417 | 6893 if test $ac_cv_func_mmap_fixed_mapped = yes; then |
40056 | 6894 |
44493 | 6895 cat >>confdefs.h <<\_ACEOF |
31417 | 6896 #define HAVE_MMAP 1 |
44493 | 6897 _ACEOF |
31417 | 6898 |
6899 fi | |
40056 | 6900 rm -f conftest.mmap |
31417 | 6901 |
31607 | 6902 if test $use_mmap_for_buffers = yes; then |
6903 REL_ALLOC=no | |
31417 | 6904 fi |
6905 | |
25897 | 6906 LIBS="$libsrc_libs $LIBS" |
6907 | |
44493 | 6908 |
6909 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
40056 | 6910 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
6911 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
6912 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6913 else | |
6914 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6915 LIBS="-ldnet $LIBS" |
40056 | 6916 cat >conftest.$ac_ext <<_ACEOF |
44493 | 6917 #line $LINENO "configure" |
40056 | 6918 #include "confdefs.h" |
6919 | |
25897 | 6920 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6921 #ifdef __cplusplus |
6922 extern "C" | |
6923 #endif | |
25897 | 6924 /* We use char because int might match the return type of a gcc2 |
40056 | 6925 builtin and then its argument prototype would still apply. */ |
6926 char dnet_ntoa (); | |
44493 | 6927 #ifdef F77_DUMMY_MAIN |
6928 # ifdef __cplusplus | |
6929 extern "C" | |
6930 # endif | |
6931 int F77_DUMMY_MAIN() { return 1; } | |
6932 #endif | |
40056 | 6933 int |
6934 main () | |
6935 { | |
6936 dnet_ntoa (); | |
6937 ; | |
6938 return 0; | |
6939 } | |
6940 _ACEOF | |
6941 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 6942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6943 (eval $ac_link) 2>&5 | |
6944 ac_status=$? | |
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6946 (exit $ac_status); } && | |
6947 { ac_try='test -s conftest$ac_exeext' | |
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6949 (eval $ac_try) 2>&5 | |
6950 ac_status=$? | |
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 6952 (exit $ac_status); }; }; then |
6953 ac_cv_lib_dnet_dnet_ntoa=yes | |
6954 else | |
6955 echo "$as_me: failed program was:" >&5 | |
6956 cat conftest.$ac_ext >&5 | |
6957 ac_cv_lib_dnet_dnet_ntoa=no | |
6958 fi | |
6959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6960 LIBS=$ac_check_lib_save_LIBS | |
6961 fi | |
44493 | 6962 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
40056 | 6963 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
6964 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
44493 | 6965 cat >>confdefs.h <<_ACEOF |
40056 | 6966 #define HAVE_LIBDNET 1 |
44493 | 6967 _ACEOF |
25897 | 6968 |
6969 LIBS="-ldnet $LIBS" | |
6970 | |
40056 | 6971 fi |
6972 | |
44493 | 6973 |
6974 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 | |
40056 | 6975 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 |
6976 if test "${ac_cv_lib_Xbsd_main+set}" = set; then | |
6977 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6978 else | |
6979 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6980 LIBS="-lXbsd $LIBS" |
40056 | 6981 cat >conftest.$ac_ext <<_ACEOF |
44493 | 6982 #line $LINENO "configure" |
6983 #include "confdefs.h" | |
6984 | |
6985 | |
6986 #ifdef F77_DUMMY_MAIN | |
6987 # ifdef __cplusplus | |
6988 extern "C" | |
6989 # endif | |
6990 int F77_DUMMY_MAIN() { return 1; } | |
6991 #endif | |
40056 | 6992 int |
6993 main () | |
6994 { | |
6995 main (); | |
6996 ; | |
6997 return 0; | |
6998 } | |
6999 _ACEOF | |
7000 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7002 (eval $ac_link) 2>&5 | |
7003 ac_status=$? | |
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7005 (exit $ac_status); } && | |
7006 { ac_try='test -s conftest$ac_exeext' | |
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7008 (eval $ac_try) 2>&5 | |
7009 ac_status=$? | |
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7011 (exit $ac_status); }; }; then |
7012 ac_cv_lib_Xbsd_main=yes | |
7013 else | |
7014 echo "$as_me: failed program was:" >&5 | |
7015 cat conftest.$ac_ext >&5 | |
7016 ac_cv_lib_Xbsd_main=no | |
7017 fi | |
7018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7019 LIBS=$ac_check_lib_save_LIBS | |
7020 fi | |
44493 | 7021 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 |
40056 | 7022 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 |
7023 if test $ac_cv_lib_Xbsd_main = yes; then | |
25897 | 7024 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" |
40056 | 7025 fi |
7026 | |
44493 | 7027 |
7028 | |
7029 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5 | |
40056 | 7030 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 |
7031 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | |
7032 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7033 else | |
7034 ac_check_lib_save_LIBS=$LIBS | |
25897 | 7035 LIBS="-lpthreads $LIBS" |
40056 | 7036 cat >conftest.$ac_ext <<_ACEOF |
44493 | 7037 #line $LINENO "configure" |
40056 | 7038 #include "confdefs.h" |
7039 | |
25897 | 7040 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7041 #ifdef __cplusplus |
7042 extern "C" | |
7043 #endif | |
25897 | 7044 /* We use char because int might match the return type of a gcc2 |
40056 | 7045 builtin and then its argument prototype would still apply. */ |
7046 char cma_open (); | |
44493 | 7047 #ifdef F77_DUMMY_MAIN |
7048 # ifdef __cplusplus | |
7049 extern "C" | |
7050 # endif | |
7051 int F77_DUMMY_MAIN() { return 1; } | |
7052 #endif | |
40056 | 7053 int |
7054 main () | |
7055 { | |
7056 cma_open (); | |
7057 ; | |
7058 return 0; | |
7059 } | |
7060 _ACEOF | |
7061 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7063 (eval $ac_link) 2>&5 | |
7064 ac_status=$? | |
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7066 (exit $ac_status); } && | |
7067 { ac_try='test -s conftest$ac_exeext' | |
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7069 (eval $ac_try) 2>&5 | |
7070 ac_status=$? | |
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7072 (exit $ac_status); }; }; then |
7073 ac_cv_lib_pthreads_cma_open=yes | |
7074 else | |
7075 echo "$as_me: failed program was:" >&5 | |
7076 cat conftest.$ac_ext >&5 | |
7077 ac_cv_lib_pthreads_cma_open=no | |
7078 fi | |
7079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7080 LIBS=$ac_check_lib_save_LIBS | |
7081 fi | |
44493 | 7082 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 |
40056 | 7083 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 |
7084 if test $ac_cv_lib_pthreads_cma_open = yes; then | |
44493 | 7085 cat >>confdefs.h <<_ACEOF |
40056 | 7086 #define HAVE_LIBPTHREADS 1 |
44493 | 7087 _ACEOF |
25897 | 7088 |
7089 LIBS="-lpthreads $LIBS" | |
7090 | |
40056 | 7091 fi |
7092 | |
44493 | 7093 |
7094 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5 | |
40056 | 7095 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 |
25897 | 7096 if test -d /usr/X386/include; then |
7097 HAVE_XFREE386=yes | |
7098 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
7099 else | |
7100 HAVE_XFREE386=no | |
7101 fi | |
44493 | 7102 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5 |
40056 | 7103 echo "${ECHO_T}$HAVE_XFREE386" >&6 |
25897 | 7104 |
7105 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | |
7106 # for the tests that follow. We set it back to REAL_CFLAGS later on. | |
7107 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7108 REAL_CPPFLAGS="$CPPFLAGS" |
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7109 |
25897 | 7110 if test "${HAVE_X11}" = "yes"; then |
7111 DEFS="$C_SWITCH_X_SITE $DEFS" | |
7112 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
7113 LIBS="$LIBX $LIBS" | |
7114 CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7115 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" |
25897 | 7116 |
7117 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
7118 # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
7119 # but it's more convenient here to set LD_RUN_PATH | |
7120 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
7121 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
7122 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
7123 export LD_RUN_PATH | |
7124 fi | |
7125 | |
7126 if test "${opsys}" = "gnu-linux"; then | |
44493 | 7127 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 |
40056 | 7128 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 |
7129 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 7130 #line $LINENO "configure" |
7131 #include "confdefs.h" | |
7132 | |
7133 #ifdef F77_DUMMY_MAIN | |
7134 # ifdef __cplusplus | |
7135 extern "C" | |
7136 # endif | |
7137 int F77_DUMMY_MAIN() { return 1; } | |
7138 #endif | |
40056 | 7139 int |
7140 main () | |
7141 { | |
25897 | 7142 XOpenDisplay ("foo"); |
40056 | 7143 ; |
7144 return 0; | |
7145 } | |
7146 _ACEOF | |
7147 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7149 (eval $ac_link) 2>&5 | |
7150 ac_status=$? | |
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7152 (exit $ac_status); } && | |
7153 { ac_try='test -s conftest$ac_exeext' | |
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7155 (eval $ac_try) 2>&5 | |
7156 ac_status=$? | |
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7158 (exit $ac_status); }; }; then |
25897 | 7159 xlinux_first_failure=no |
7160 else | |
40056 | 7161 echo "$as_me: failed program was:" >&5 |
7162 cat conftest.$ac_ext >&5 | |
7163 xlinux_first_failure=yes | |
7164 fi | |
7165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 7166 if test "${xlinux_first_failure}" = "yes"; then |
7167 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
7168 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
7169 OLD_CPPFLAGS="$CPPFLAGS" | |
7170 OLD_LIBS="$LIBS" | |
7171 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
7172 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
7173 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
7174 LIBS="$LIBS -b i486-linuxaout" | |
40056 | 7175 cat >conftest.$ac_ext <<_ACEOF |
44493 | 7176 #line $LINENO "configure" |
7177 #include "confdefs.h" | |
7178 | |
7179 #ifdef F77_DUMMY_MAIN | |
7180 # ifdef __cplusplus | |
7181 extern "C" | |
7182 # endif | |
7183 int F77_DUMMY_MAIN() { return 1; } | |
7184 #endif | |
40056 | 7185 int |
7186 main () | |
7187 { | |
25897 | 7188 XOpenDisplay ("foo"); |
40056 | 7189 ; |
7190 return 0; | |
7191 } | |
7192 _ACEOF | |
7193 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7195 (eval $ac_link) 2>&5 | |
7196 ac_status=$? | |
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7198 (exit $ac_status); } && | |
7199 { ac_try='test -s conftest$ac_exeext' | |
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7201 (eval $ac_try) 2>&5 | |
7202 ac_status=$? | |
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7204 (exit $ac_status); }; }; then |
25897 | 7205 xlinux_second_failure=no |
7206 else | |
40056 | 7207 echo "$as_me: failed program was:" >&5 |
7208 cat conftest.$ac_ext >&5 | |
7209 xlinux_second_failure=yes | |
7210 fi | |
7211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 7212 if test "${xlinux_second_failure}" = "yes"; then |
7213 # If we get the same failure with -b, there is no use adding -b. | |
7214 # So take it out. This plays safe. | |
7215 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
7216 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
7217 CPPFLAGS="$OLD_CPPFLAGS" | |
7218 LIBS="$OLD_LIBS" | |
44493 | 7219 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 7220 echo "${ECHO_T}no" >&6 |
25897 | 7221 else |
44493 | 7222 echo "$as_me:$LINENO: result: yes" >&5 |
40056 | 7223 echo "${ECHO_T}yes" >&6 |
25897 | 7224 fi |
7225 else | |
44493 | 7226 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 7227 echo "${ECHO_T}no" >&6 |
25897 | 7228 fi |
7229 fi | |
7230 | |
35196 | 7231 # Reportedly, some broken Solaris systems have XKBlib.h but are missing |
7232 # header files included from there. | |
44493 | 7233 echo "$as_me:$LINENO: checking for Xkb" >&5 |
40056 | 7234 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 |
7235 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 7236 #line $LINENO "configure" |
35196 | 7237 #include "confdefs.h" |
7238 #include <X11/Xlib.h> | |
7239 #include <X11/XKBlib.h> | |
44493 | 7240 #ifdef F77_DUMMY_MAIN |
7241 # ifdef __cplusplus | |
7242 extern "C" | |
7243 # endif | |
7244 int F77_DUMMY_MAIN() { return 1; } | |
7245 #endif | |
40056 | 7246 int |
7247 main () | |
7248 { | |
35196 | 7249 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); |
40056 | 7250 ; |
7251 return 0; | |
7252 } | |
7253 _ACEOF | |
7254 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7256 (eval $ac_link) 2>&5 | |
7257 ac_status=$? | |
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7259 (exit $ac_status); } && | |
7260 { ac_try='test -s conftest$ac_exeext' | |
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7262 (eval $ac_try) 2>&5 | |
7263 ac_status=$? | |
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7265 (exit $ac_status); }; }; then |
35196 | 7266 emacs_xkb=yes |
7267 else | |
40056 | 7268 echo "$as_me: failed program was:" >&5 |
7269 cat conftest.$ac_ext >&5 | |
7270 emacs_xkb=no | |
7271 fi | |
7272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
44493 | 7273 echo "$as_me:$LINENO: result: $emacs_xkb" >&5 |
40056 | 7274 echo "${ECHO_T}$emacs_xkb" >&6 |
35196 | 7275 if test $emacs_xkb = yes; then |
44493 | 7276 cat >>confdefs.h <<\_ACEOF |
35196 | 7277 #define HAVE_XKBGETKEYBOARD 1 |
44493 | 7278 _ACEOF |
7279 | |
7280 fi | |
7281 | |
7282 | |
7283 | |
7284 | |
35196 | 7285 |
40056 | 7286 for ac_func in XrmSetDatabase XScreenResourceString \ |
25897 | 7287 XScreenNumberOfScreen XSetWMProtocols |
7288 do | |
40056 | 7289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44493 | 7290 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 7291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
7292 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7293 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7294 else | |
7295 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 7296 #line $LINENO "configure" |
25897 | 7297 #include "confdefs.h" |
7298 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 7299 which can conflict with char $ac_func (); below. */ |
25897 | 7300 #include <assert.h> |
7301 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 7302 #ifdef __cplusplus |
7303 extern "C" | |
7304 #endif | |
25897 | 7305 /* We use char because int might match the return type of a gcc2 |
40056 | 7306 builtin and then its argument prototype would still apply. */ |
7307 char $ac_func (); | |
7308 char (*f) (); | |
7309 | |
44493 | 7310 #ifdef F77_DUMMY_MAIN |
7311 # ifdef __cplusplus | |
7312 extern "C" | |
7313 # endif | |
7314 int F77_DUMMY_MAIN() { return 1; } | |
7315 #endif | |
40056 | 7316 int |
7317 main () | |
7318 { | |
25897 | 7319 /* The GNU C library defines this for functions which it implements |
7320 to always fail with ENOSYS. Some functions are actually named | |
7321 something starting with __ and the normal name is an alias. */ | |
7322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7323 choke me | |
7324 #else | |
40056 | 7325 f = $ac_func; |
7326 #endif | |
7327 | |
7328 ; | |
7329 return 0; | |
7330 } | |
7331 _ACEOF | |
7332 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7334 (eval $ac_link) 2>&5 | |
7335 ac_status=$? | |
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7337 (exit $ac_status); } && | |
7338 { ac_try='test -s conftest$ac_exeext' | |
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7340 (eval $ac_try) 2>&5 | |
7341 ac_status=$? | |
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7343 (exit $ac_status); }; }; then |
7344 eval "$as_ac_var=yes" | |
7345 else | |
7346 echo "$as_me: failed program was:" >&5 | |
7347 cat conftest.$ac_ext >&5 | |
7348 eval "$as_ac_var=no" | |
7349 fi | |
7350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7351 fi | |
44493 | 7352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 7353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
7354 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 7355 cat >>confdefs.h <<_ACEOF |
40056 | 7356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 7357 _ACEOF |
40056 | 7358 |
25897 | 7359 fi |
7360 done | |
7361 | |
7362 fi | |
7363 | |
7364 if test "${window_system}" = "x11"; then | |
44493 | 7365 echo "$as_me:$LINENO: checking X11 version 6" >&5 |
40056 | 7366 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 |
7367 if test "${emacs_cv_x11_version_6+set}" = set; then | |
7368 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7369 else | |
7370 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 7371 #line $LINENO "configure" |
25897 | 7372 #include "confdefs.h" |
7373 #include <X11/Xlib.h> | |
44493 | 7374 #ifdef F77_DUMMY_MAIN |
7375 # ifdef __cplusplus | |
7376 extern "C" | |
7377 # endif | |
7378 int F77_DUMMY_MAIN() { return 1; } | |
7379 #endif | |
40056 | 7380 int |
7381 main () | |
7382 { | |
25897 | 7383 #if XlibSpecificationRelease < 6 |
7384 fail; | |
7385 #endif | |
7386 | |
40056 | 7387 ; |
7388 return 0; | |
7389 } | |
7390 _ACEOF | |
7391 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7393 (eval $ac_link) 2>&5 | |
7394 ac_status=$? | |
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7396 (exit $ac_status); } && | |
7397 { ac_try='test -s conftest$ac_exeext' | |
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7399 (eval $ac_try) 2>&5 | |
7400 ac_status=$? | |
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7402 (exit $ac_status); }; }; then |
25897 | 7403 emacs_cv_x11_version_6=yes |
7404 else | |
40056 | 7405 echo "$as_me: failed program was:" >&5 |
7406 cat conftest.$ac_ext >&5 | |
7407 emacs_cv_x11_version_6=no | |
7408 fi | |
7409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 7410 fi |
7411 | |
7412 if test $emacs_cv_x11_version_6 = yes; then | |
44493 | 7413 echo "$as_me:$LINENO: result: 6 or newer" >&5 |
40056 | 7414 echo "${ECHO_T}6 or newer" >&6 |
44493 | 7415 cat >>confdefs.h <<\_ACEOF |
25897 | 7416 #define HAVE_X11R6 1 |
44493 | 7417 _ACEOF |
7418 | |
7419 else | |
7420 echo "$as_me:$LINENO: result: before 6" >&5 | |
40056 | 7421 echo "${ECHO_T}before 6" >&6 |
25897 | 7422 fi |
7423 fi | |
7424 | |
7425 if test "${window_system}" = "x11"; then | |
44493 | 7426 echo "$as_me:$LINENO: checking X11 version 5" >&5 |
40056 | 7427 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 |
7428 if test "${emacs_cv_x11_version_5+set}" = set; then | |
7429 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7430 else | |
7431 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 7432 #line $LINENO "configure" |
25897 | 7433 #include "confdefs.h" |
7434 #include <X11/Xlib.h> | |
44493 | 7435 #ifdef F77_DUMMY_MAIN |
7436 # ifdef __cplusplus | |
7437 extern "C" | |
7438 # endif | |
7439 int F77_DUMMY_MAIN() { return 1; } | |
7440 #endif | |
40056 | 7441 int |
7442 main () | |
7443 { | |
25897 | 7444 #if XlibSpecificationRelease < 5 |
7445 fail; | |
7446 #endif | |
7447 | |
40056 | 7448 ; |
7449 return 0; | |
7450 } | |
7451 _ACEOF | |
7452 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7454 (eval $ac_link) 2>&5 | |
7455 ac_status=$? | |
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7457 (exit $ac_status); } && | |
7458 { ac_try='test -s conftest$ac_exeext' | |
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7460 (eval $ac_try) 2>&5 | |
7461 ac_status=$? | |
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7463 (exit $ac_status); }; }; then |
25897 | 7464 emacs_cv_x11_version_5=yes |
7465 else | |
40056 | 7466 echo "$as_me: failed program was:" >&5 |
7467 cat conftest.$ac_ext >&5 | |
7468 emacs_cv_x11_version_5=no | |
7469 fi | |
7470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 7471 fi |
7472 | |
7473 if test $emacs_cv_x11_version_5 = yes; then | |
44493 | 7474 echo "$as_me:$LINENO: result: 5 or newer" >&5 |
40056 | 7475 echo "${ECHO_T}5 or newer" >&6 |
25897 | 7476 HAVE_X11R5=yes |
44493 | 7477 cat >>confdefs.h <<\_ACEOF |
25897 | 7478 #define HAVE_X11R5 1 |
44493 | 7479 _ACEOF |
25897 | 7480 |
7481 else | |
7482 HAVE_X11R5=no | |
44493 | 7483 echo "$as_me:$LINENO: result: before 5" >&5 |
40056 | 7484 echo "${ECHO_T}before 5" >&6 |
25897 | 7485 fi |
7486 fi | |
7487 | |
7488 if test x"${USE_X_TOOLKIT}" = xmaybe; then | |
7489 if test x"${HAVE_X11R5}" = xyes; then | |
44493 | 7490 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5 |
40056 | 7491 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 |
7492 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then | |
7493 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7494 else | |
7495 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 7496 #line $LINENO "configure" |
25897 | 7497 #include "confdefs.h" |
7498 | |
7499 #include <X11/Intrinsic.h> | |
7500 #include <X11/Xaw/Simple.h> | |
44493 | 7501 #ifdef F77_DUMMY_MAIN |
7502 # ifdef __cplusplus | |
7503 extern "C" | |
7504 # endif | |
7505 int F77_DUMMY_MAIN() { return 1; } | |
7506 #endif | |
7507 int | |
7508 main () | |
7509 { | |
7510 | |
7511 ; | |
7512 return 0; | |
7513 } | |
7514 _ACEOF | |
7515 rm -f conftest.$ac_objext conftest$ac_exeext | |
7516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7517 (eval $ac_link) 2>&5 | |
7518 ac_status=$? | |
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7520 (exit $ac_status); } && | |
7521 { ac_try='test -s conftest$ac_exeext' | |
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7523 (eval $ac_try) 2>&5 | |
7524 ac_status=$? | |
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7526 (exit $ac_status); }; }; then |
25897 | 7527 emacs_cv_x11_version_5_with_xaw=yes |
7528 else | |
40056 | 7529 echo "$as_me: failed program was:" >&5 |
7530 cat conftest.$ac_ext >&5 | |
7531 emacs_cv_x11_version_5_with_xaw=no | |
7532 fi | |
7533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 7534 fi |
7535 | |
7536 if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
44493 | 7537 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
40056 | 7538 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 |
25897 | 7539 USE_X_TOOLKIT=LUCID |
7540 else | |
44493 | 7541 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5 |
40056 | 7542 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 |
25897 | 7543 USE_X_TOOLKIT=none |
7544 fi | |
7545 else | |
7546 USE_X_TOOLKIT=none | |
7547 fi | |
7548 fi | |
7549 | |
7550 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
7551 | |
7552 if test "${USE_X_TOOLKIT}" != "none"; then | |
44493 | 7553 echo "$as_me:$LINENO: checking X11 toolkit version" >&5 |
40056 | 7554 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 |
7555 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | |
7556 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7557 else | |
7558 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 7559 #line $LINENO "configure" |
25897 | 7560 #include "confdefs.h" |
7561 #include <X11/Intrinsic.h> | |
44493 | 7562 #ifdef F77_DUMMY_MAIN |
7563 # ifdef __cplusplus | |
7564 extern "C" | |
7565 # endif | |
7566 int F77_DUMMY_MAIN() { return 1; } | |
7567 #endif | |
40056 | 7568 int |
7569 main () | |
7570 { | |
25897 | 7571 #if XtSpecificationRelease < 6 |
7572 fail; | |
7573 #endif | |
7574 | |
40056 | 7575 ; |
7576 return 0; | |
7577 } | |
7578 _ACEOF | |
7579 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7581 (eval $ac_link) 2>&5 | |
7582 ac_status=$? | |
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7584 (exit $ac_status); } && | |
7585 { ac_try='test -s conftest$ac_exeext' | |
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7587 (eval $ac_try) 2>&5 | |
7588 ac_status=$? | |
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7590 (exit $ac_status); }; }; then |
25897 | 7591 emacs_cv_x11_toolkit_version_6=yes |
7592 else | |
40056 | 7593 echo "$as_me: failed program was:" >&5 |
7594 cat conftest.$ac_ext >&5 | |
7595 emacs_cv_x11_toolkit_version_6=no | |
7596 fi | |
7597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 7598 fi |
7599 | |
7600 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
7601 if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
44493 | 7602 echo "$as_me:$LINENO: result: 6 or newer" >&5 |
40056 | 7603 echo "${ECHO_T}6 or newer" >&6 |
44493 | 7604 cat >>confdefs.h <<\_ACEOF |
25897 | 7605 #define HAVE_X11XTR6 1 |
44493 | 7606 _ACEOF |
7607 | |
7608 else | |
7609 echo "$as_me:$LINENO: result: before 6" >&5 | |
40056 | 7610 echo "${ECHO_T}before 6" >&6 |
25897 | 7611 fi |
7612 | |
7613 OLDLIBS="$LIBS" | |
7614 if test x$HAVE_X11XTR6 = xyes; then | |
7615 LIBS="-lXt -lSM -lICE $LIBS" | |
7616 else | |
7617 LIBS="-lXt $LIBS" | |
7618 fi | |
40056 | 7619 |
44493 | 7620 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5 |
40056 | 7621 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 |
7622 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | |
7623 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7624 else | |
7625 ac_check_lib_save_LIBS=$LIBS | |
25897 | 7626 LIBS="-lXmu $LIBS" |
40056 | 7627 cat >conftest.$ac_ext <<_ACEOF |
44493 | 7628 #line $LINENO "configure" |
40056 | 7629 #include "confdefs.h" |
7630 | |
25897 | 7631 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7632 #ifdef __cplusplus |
7633 extern "C" | |
7634 #endif | |
25897 | 7635 /* We use char because int might match the return type of a gcc2 |
40056 | 7636 builtin and then its argument prototype would still apply. */ |
7637 char XmuConvertStandardSelection (); | |
44493 | 7638 #ifdef F77_DUMMY_MAIN |
7639 # ifdef __cplusplus | |
7640 extern "C" | |
7641 # endif | |
7642 int F77_DUMMY_MAIN() { return 1; } | |
7643 #endif | |
40056 | 7644 int |
7645 main () | |
7646 { | |
7647 XmuConvertStandardSelection (); | |
7648 ; | |
7649 return 0; | |
7650 } | |
7651 _ACEOF | |
7652 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7654 (eval $ac_link) 2>&5 | |
7655 ac_status=$? | |
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7657 (exit $ac_status); } && | |
7658 { ac_try='test -s conftest$ac_exeext' | |
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7660 (eval $ac_try) 2>&5 | |
7661 ac_status=$? | |
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7663 (exit $ac_status); }; }; then |
7664 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | |
7665 else | |
7666 echo "$as_me: failed program was:" >&5 | |
7667 cat conftest.$ac_ext >&5 | |
7668 ac_cv_lib_Xmu_XmuConvertStandardSelection=no | |
7669 fi | |
7670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7671 LIBS=$ac_check_lib_save_LIBS | |
7672 fi | |
44493 | 7673 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
40056 | 7674 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 |
7675 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | |
44493 | 7676 cat >>confdefs.h <<_ACEOF |
40056 | 7677 #define HAVE_LIBXMU 1 |
44493 | 7678 _ACEOF |
25897 | 7679 |
7680 LIBS="-lXmu $LIBS" | |
7681 | |
7682 fi | |
7683 | |
35206 | 7684 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" |
7685 fi | |
7686 | |
7687 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
7688 if test "${HAVE_X11}" = "yes"; then | |
7689 if test "${USE_X_TOOLKIT}" != "none"; then | |
40056 | 7690 |
44493 | 7691 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
40056 | 7692 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
7693 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
7694 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7695 else | |
7696 ac_check_lib_save_LIBS=$LIBS | |
35206 | 7697 LIBS="-lXext $LIBS" |
40056 | 7698 cat >conftest.$ac_ext <<_ACEOF |
44493 | 7699 #line $LINENO "configure" |
40056 | 7700 #include "confdefs.h" |
7701 | |
35206 | 7702 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7703 #ifdef __cplusplus |
7704 extern "C" | |
7705 #endif | |
35206 | 7706 /* We use char because int might match the return type of a gcc2 |
40056 | 7707 builtin and then its argument prototype would still apply. */ |
7708 char XShapeQueryExtension (); | |
44493 | 7709 #ifdef F77_DUMMY_MAIN |
7710 # ifdef __cplusplus | |
7711 extern "C" | |
7712 # endif | |
7713 int F77_DUMMY_MAIN() { return 1; } | |
7714 #endif | |
40056 | 7715 int |
7716 main () | |
7717 { | |
7718 XShapeQueryExtension (); | |
7719 ; | |
7720 return 0; | |
7721 } | |
7722 _ACEOF | |
7723 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7725 (eval $ac_link) 2>&5 | |
7726 ac_status=$? | |
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7728 (exit $ac_status); } && | |
7729 { ac_try='test -s conftest$ac_exeext' | |
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7731 (eval $ac_try) 2>&5 | |
7732 ac_status=$? | |
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7734 (exit $ac_status); }; }; then |
7735 ac_cv_lib_Xext_XShapeQueryExtension=yes | |
7736 else | |
7737 echo "$as_me: failed program was:" >&5 | |
7738 cat conftest.$ac_ext >&5 | |
7739 ac_cv_lib_Xext_XShapeQueryExtension=no | |
7740 fi | |
7741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7742 LIBS=$ac_check_lib_save_LIBS | |
7743 fi | |
44493 | 7744 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
40056 | 7745 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
7746 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
44493 | 7747 cat >>confdefs.h <<_ACEOF |
40056 | 7748 #define HAVE_LIBXEXT 1 |
44493 | 7749 _ACEOF |
35206 | 7750 |
7751 LIBS="-lXext $LIBS" | |
7752 | |
7753 fi | |
7754 | |
7755 fi | |
25897 | 7756 fi |
7757 | |
7758 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
44493 | 7759 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 |
40056 | 7760 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 |
7761 if test "${emacs_cv_motif_version_2_1+set}" = set; then | |
7762 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7763 else | |
7764 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 7765 #line $LINENO "configure" |
25897 | 7766 #include "confdefs.h" |
7767 #include <Xm/Xm.h> | |
44493 | 7768 #ifdef F77_DUMMY_MAIN |
7769 # ifdef __cplusplus | |
7770 extern "C" | |
7771 # endif | |
7772 int F77_DUMMY_MAIN() { return 1; } | |
7773 #endif | |
40056 | 7774 int |
7775 main () | |
7776 { | |
25897 | 7777 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
7778 int x = 5; | |
7779 #else | |
7780 Motif version prior to 2.1. | |
7781 #endif | |
40056 | 7782 ; |
7783 return 0; | |
7784 } | |
7785 _ACEOF | |
7786 rm -f conftest.$ac_objext | |
44493 | 7787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7788 (eval $ac_compile) 2>&5 | |
7789 ac_status=$? | |
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7791 (exit $ac_status); } && | |
7792 { ac_try='test -s conftest.$ac_objext' | |
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7794 (eval $ac_try) 2>&5 | |
7795 ac_status=$? | |
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7797 (exit $ac_status); }; }; then |
25897 | 7798 emacs_cv_motif_version_2_1=yes |
7799 else | |
40056 | 7800 echo "$as_me: failed program was:" >&5 |
7801 cat conftest.$ac_ext >&5 | |
7802 emacs_cv_motif_version_2_1=no | |
7803 fi | |
7804 rm -f conftest.$ac_objext conftest.$ac_ext | |
7805 fi | |
44493 | 7806 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 |
40056 | 7807 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 |
25897 | 7808 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 |
7809 if test $emacs_cv_motif_version_2_1 = yes; then | |
34431 | 7810 HAVE_LIBXP=no |
44493 | 7811 cat >>confdefs.h <<\_ACEOF |
25897 | 7812 #define HAVE_MOTIF_2_1 1 |
44493 | 7813 _ACEOF |
7814 | |
7815 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 | |
40056 | 7816 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 |
7817 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | |
7818 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7819 else | |
7820 ac_check_lib_save_LIBS=$LIBS | |
35206 | 7821 LIBS="-lXp $LIBS" |
40056 | 7822 cat >conftest.$ac_ext <<_ACEOF |
44493 | 7823 #line $LINENO "configure" |
40056 | 7824 #include "confdefs.h" |
7825 | |
25897 | 7826 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7827 #ifdef __cplusplus |
7828 extern "C" | |
7829 #endif | |
25897 | 7830 /* We use char because int might match the return type of a gcc2 |
40056 | 7831 builtin and then its argument prototype would still apply. */ |
7832 char XpCreateContext (); | |
44493 | 7833 #ifdef F77_DUMMY_MAIN |
7834 # ifdef __cplusplus | |
7835 extern "C" | |
7836 # endif | |
7837 int F77_DUMMY_MAIN() { return 1; } | |
7838 #endif | |
40056 | 7839 int |
7840 main () | |
7841 { | |
7842 XpCreateContext (); | |
7843 ; | |
7844 return 0; | |
7845 } | |
7846 _ACEOF | |
7847 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7849 (eval $ac_link) 2>&5 | |
7850 ac_status=$? | |
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7852 (exit $ac_status); } && | |
7853 { ac_try='test -s conftest$ac_exeext' | |
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7855 (eval $ac_try) 2>&5 | |
7856 ac_status=$? | |
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7858 (exit $ac_status); }; }; then |
7859 ac_cv_lib_Xp_XpCreateContext=yes | |
7860 else | |
7861 echo "$as_me: failed program was:" >&5 | |
7862 cat conftest.$ac_ext >&5 | |
7863 ac_cv_lib_Xp_XpCreateContext=no | |
7864 fi | |
7865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7866 LIBS=$ac_check_lib_save_LIBS | |
7867 fi | |
44493 | 7868 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
40056 | 7869 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 |
7870 if test $ac_cv_lib_Xp_XpCreateContext = yes; then | |
29906 | 7871 HAVE_LIBXP=yes |
25897 | 7872 fi |
7873 | |
29906 | 7874 if test ${HAVE_LIBXP} = yes; then |
44493 | 7875 cat >>confdefs.h <<\_ACEOF |
29906 | 7876 #define HAVE_LIBXP 1 |
44493 | 7877 _ACEOF |
29906 | 7878 |
40056 | 7879 fi |
25897 | 7880 fi |
7881 fi | |
7882 | |
7883 ### Is -lXaw3d available? | |
7884 HAVE_XAW3D=no | |
7885 if test "${HAVE_X11}" = "yes"; then | |
7886 if test "${USE_X_TOOLKIT}" != "none"; then | |
44493 | 7887 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then |
7888 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5 | |
40056 | 7889 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 |
7890 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then | |
7891 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 7892 fi |
7893 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 | |
7894 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 | |
7895 else | |
7896 # Is the header compilable? | |
7897 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5 | |
7898 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6 | |
7899 cat >conftest.$ac_ext <<_ACEOF | |
7900 #line $LINENO "configure" | |
7901 #include "confdefs.h" | |
7902 $ac_includes_default | |
7903 #include <X11/Xaw3d/Scrollbar.h> | |
7904 _ACEOF | |
7905 rm -f conftest.$ac_objext | |
7906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7907 (eval $ac_compile) 2>&5 | |
7908 ac_status=$? | |
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7910 (exit $ac_status); } && | |
7911 { ac_try='test -s conftest.$ac_objext' | |
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7913 (eval $ac_try) 2>&5 | |
7914 ac_status=$? | |
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7916 (exit $ac_status); }; }; then | |
7917 ac_header_compiler=yes | |
7918 else | |
7919 echo "$as_me: failed program was:" >&5 | |
7920 cat conftest.$ac_ext >&5 | |
7921 ac_header_compiler=no | |
7922 fi | |
7923 rm -f conftest.$ac_objext conftest.$ac_ext | |
7924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7925 echo "${ECHO_T}$ac_header_compiler" >&6 | |
7926 | |
7927 # Is the header present? | |
7928 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5 | |
7929 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6 | |
7930 cat >conftest.$ac_ext <<_ACEOF | |
7931 #line $LINENO "configure" | |
25897 | 7932 #include "confdefs.h" |
7933 #include <X11/Xaw3d/Scrollbar.h> | |
40056 | 7934 _ACEOF |
44493 | 7935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 7936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7937 ac_status=$? | |
7938 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7939 rm -f conftest.er1 | |
7940 cat conftest.err >&5 | |
44493 | 7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 7942 (exit $ac_status); } >/dev/null; then |
7943 if test -s conftest.err; then | |
7944 ac_cpp_err=$ac_c_preproc_warn_flag | |
7945 else | |
7946 ac_cpp_err= | |
7947 fi | |
7948 else | |
7949 ac_cpp_err=yes | |
7950 fi | |
7951 if test -z "$ac_cpp_err"; then | |
44493 | 7952 ac_header_preproc=yes |
40056 | 7953 else |
7954 echo "$as_me: failed program was:" >&5 | |
25897 | 7955 cat conftest.$ac_ext >&5 |
44493 | 7956 ac_header_preproc=no |
40056 | 7957 fi |
7958 rm -f conftest.err conftest.$ac_ext | |
44493 | 7959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7960 echo "${ECHO_T}$ac_header_preproc" >&6 | |
7961 | |
7962 # So? What about this header? | |
7963 case $ac_header_compiler:$ac_header_preproc in | |
7964 yes:no ) | |
7965 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7966 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7967 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5 | |
7968 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};; | |
7969 no:yes ) | |
7970 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5 | |
7971 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;} | |
7972 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5 | |
7973 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;} | |
7974 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5 | |
7975 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};; | |
7976 esac | |
7977 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5 | |
7978 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 | |
7979 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then | |
7980 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7981 else | |
7982 ac_cv_header_X11_Xaw3d_Scrollbar_h=$ac_header_preproc | |
7983 fi | |
7984 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 | |
40056 | 7985 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 |
44493 | 7986 |
7987 fi | |
40056 | 7988 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then |
44493 | 7989 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
40056 | 7990 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 |
7991 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then | |
7992 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7993 else | |
7994 ac_check_lib_save_LIBS=$LIBS | |
35206 | 7995 LIBS="-lXaw3d $LIBS" |
40056 | 7996 cat >conftest.$ac_ext <<_ACEOF |
44493 | 7997 #line $LINENO "configure" |
40056 | 7998 #include "confdefs.h" |
7999 | |
25897 | 8000 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8001 #ifdef __cplusplus |
8002 extern "C" | |
8003 #endif | |
25897 | 8004 /* We use char because int might match the return type of a gcc2 |
40056 | 8005 builtin and then its argument prototype would still apply. */ |
8006 char XawScrollbarSetThumb (); | |
44493 | 8007 #ifdef F77_DUMMY_MAIN |
8008 # ifdef __cplusplus | |
8009 extern "C" | |
8010 # endif | |
8011 int F77_DUMMY_MAIN() { return 1; } | |
8012 #endif | |
40056 | 8013 int |
8014 main () | |
8015 { | |
8016 XawScrollbarSetThumb (); | |
8017 ; | |
8018 return 0; | |
8019 } | |
8020 _ACEOF | |
8021 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 8022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8023 (eval $ac_link) 2>&5 | |
8024 ac_status=$? | |
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8026 (exit $ac_status); } && | |
8027 { ac_try='test -s conftest$ac_exeext' | |
8028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8029 (eval $ac_try) 2>&5 | |
8030 ac_status=$? | |
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 8032 (exit $ac_status); }; }; then |
8033 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes | |
8034 else | |
8035 echo "$as_me: failed program was:" >&5 | |
8036 cat conftest.$ac_ext >&5 | |
8037 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no | |
8038 fi | |
8039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8040 LIBS=$ac_check_lib_save_LIBS | |
8041 fi | |
44493 | 8042 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
40056 | 8043 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 |
8044 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then | |
25897 | 8045 HAVE_XAW3D=yes |
40056 | 8046 fi |
8047 | |
25897 | 8048 fi |
8049 | |
44493 | 8050 |
25897 | 8051 if test "${HAVE_XAW3D}" = "yes"; then |
44493 | 8052 cat >>confdefs.h <<\_ACEOF |
25897 | 8053 #define HAVE_XAW3D 1 |
44493 | 8054 _ACEOF |
25897 | 8055 |
8056 fi | |
8057 fi | |
8058 fi | |
8059 | |
44493 | 8060 |
25897 | 8061 USE_TOOLKIT_SCROLL_BARS=no |
8062 if test "${with_toolkit_scroll_bars}" != "no"; then | |
8063 if test "${USE_X_TOOLKIT}" != "none"; then | |
8064 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
44493 | 8065 cat >>confdefs.h <<\_ACEOF |
25897 | 8066 #define USE_TOOLKIT_SCROLL_BARS 1 |
44493 | 8067 _ACEOF |
25897 | 8068 |
8069 HAVE_XAW3D=no | |
8070 USE_TOOLKIT_SCROLL_BARS=yes | |
8071 elif test "${HAVE_XAW3D}" = "yes"; then | |
44493 | 8072 cat >>confdefs.h <<\_ACEOF |
25897 | 8073 #define USE_TOOLKIT_SCROLL_BARS 1 |
44493 | 8074 _ACEOF |
25897 | 8075 |
8076 USE_TOOLKIT_SCROLL_BARS=yes | |
8077 fi | |
8078 fi | |
8079 fi | |
8080 | |
44493 | 8081 |
29949 | 8082 if test "${with_xim}" != "no"; then |
44493 | 8083 cat >>confdefs.h <<\_ACEOF |
29949 | 8084 #define USE_XIM 1 |
44493 | 8085 _ACEOF |
29949 | 8086 |
8087 fi | |
8088 | |
25897 | 8089 ### Use -lXpm if available, unless `--with-xpm=no'. |
8090 HAVE_XPM=no | |
8091 if test "${HAVE_X11}" = "yes"; then | |
8092 if test "${with_xpm}" != "no"; then | |
44493 | 8093 if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
8094 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
40056 | 8095 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 |
8096 if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
8097 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 8098 fi |
8099 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 | |
8100 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 | |
8101 else | |
8102 # Is the header compilable? | |
8103 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 | |
8104 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6 | |
8105 cat >conftest.$ac_ext <<_ACEOF | |
8106 #line $LINENO "configure" | |
8107 #include "confdefs.h" | |
8108 $ac_includes_default | |
8109 #include <X11/xpm.h> | |
8110 _ACEOF | |
8111 rm -f conftest.$ac_objext | |
8112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8113 (eval $ac_compile) 2>&5 | |
8114 ac_status=$? | |
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8116 (exit $ac_status); } && | |
8117 { ac_try='test -s conftest.$ac_objext' | |
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8119 (eval $ac_try) 2>&5 | |
8120 ac_status=$? | |
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8122 (exit $ac_status); }; }; then | |
8123 ac_header_compiler=yes | |
8124 else | |
8125 echo "$as_me: failed program was:" >&5 | |
8126 cat conftest.$ac_ext >&5 | |
8127 ac_header_compiler=no | |
8128 fi | |
8129 rm -f conftest.$ac_objext conftest.$ac_ext | |
8130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8131 echo "${ECHO_T}$ac_header_compiler" >&6 | |
8132 | |
8133 # Is the header present? | |
8134 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 | |
8135 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6 | |
8136 cat >conftest.$ac_ext <<_ACEOF | |
8137 #line $LINENO "configure" | |
25897 | 8138 #include "confdefs.h" |
8139 #include <X11/xpm.h> | |
40056 | 8140 _ACEOF |
44493 | 8141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 8142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8143 ac_status=$? | |
8144 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8145 rm -f conftest.er1 | |
8146 cat conftest.err >&5 | |
44493 | 8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 8148 (exit $ac_status); } >/dev/null; then |
8149 if test -s conftest.err; then | |
8150 ac_cpp_err=$ac_c_preproc_warn_flag | |
8151 else | |
8152 ac_cpp_err= | |
8153 fi | |
8154 else | |
8155 ac_cpp_err=yes | |
8156 fi | |
8157 if test -z "$ac_cpp_err"; then | |
44493 | 8158 ac_header_preproc=yes |
40056 | 8159 else |
8160 echo "$as_me: failed program was:" >&5 | |
25897 | 8161 cat conftest.$ac_ext >&5 |
44493 | 8162 ac_header_preproc=no |
40056 | 8163 fi |
8164 rm -f conftest.err conftest.$ac_ext | |
44493 | 8165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8166 echo "${ECHO_T}$ac_header_preproc" >&6 | |
8167 | |
8168 # So? What about this header? | |
8169 case $ac_header_compiler:$ac_header_preproc in | |
8170 yes:no ) | |
8171 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8172 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8173 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 | |
8174 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};; | |
8175 no:yes ) | |
8176 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 | |
8177 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} | |
8178 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 | |
8179 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} | |
8180 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 | |
8181 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};; | |
8182 esac | |
8183 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
8184 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
8185 if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
8186 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8187 else | |
8188 ac_cv_header_X11_xpm_h=$ac_header_preproc | |
8189 fi | |
8190 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 | |
40056 | 8191 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 |
44493 | 8192 |
8193 fi | |
40056 | 8194 if test $ac_cv_header_X11_xpm_h = yes; then |
44493 | 8195 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5 |
40056 | 8196 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 |
8197 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | |
8198 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8199 else | |
8200 ac_check_lib_save_LIBS=$LIBS | |
25897 | 8201 LIBS="-lXpm -lX11 $LIBS" |
40056 | 8202 cat >conftest.$ac_ext <<_ACEOF |
44493 | 8203 #line $LINENO "configure" |
40056 | 8204 #include "confdefs.h" |
8205 | |
25897 | 8206 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8207 #ifdef __cplusplus |
8208 extern "C" | |
8209 #endif | |
25897 | 8210 /* We use char because int might match the return type of a gcc2 |
40056 | 8211 builtin and then its argument prototype would still apply. */ |
8212 char XpmReadFileToPixmap (); | |
44493 | 8213 #ifdef F77_DUMMY_MAIN |
8214 # ifdef __cplusplus | |
8215 extern "C" | |
8216 # endif | |
8217 int F77_DUMMY_MAIN() { return 1; } | |
8218 #endif | |
40056 | 8219 int |
8220 main () | |
8221 { | |
8222 XpmReadFileToPixmap (); | |
8223 ; | |
8224 return 0; | |
8225 } | |
8226 _ACEOF | |
8227 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 8228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8229 (eval $ac_link) 2>&5 | |
8230 ac_status=$? | |
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8232 (exit $ac_status); } && | |
8233 { ac_try='test -s conftest$ac_exeext' | |
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8235 (eval $ac_try) 2>&5 | |
8236 ac_status=$? | |
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 8238 (exit $ac_status); }; }; then |
8239 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes | |
8240 else | |
8241 echo "$as_me: failed program was:" >&5 | |
8242 cat conftest.$ac_ext >&5 | |
8243 ac_cv_lib_Xpm_XpmReadFileToPixmap=no | |
8244 fi | |
8245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8246 LIBS=$ac_check_lib_save_LIBS | |
8247 fi | |
44493 | 8248 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
40056 | 8249 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 |
8250 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | |
25897 | 8251 HAVE_XPM=yes |
40056 | 8252 fi |
8253 | |
25897 | 8254 fi |
8255 | |
44493 | 8256 |
30140 | 8257 if test "${HAVE_XPM}" = "yes"; then |
44493 | 8258 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 |
40056 | 8259 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 |
8260 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 8261 #line $LINENO "configure" |
30140 | 8262 #include "confdefs.h" |
8263 #include "X11/xpm.h" | |
8264 #ifndef XpmReturnAllocPixels | |
8265 no_return_alloc_pixels | |
8266 #endif | |
40056 | 8267 |
8268 _ACEOF | |
30140 | 8269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8270 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then | |
8271 HAVE_XPM=no | |
8272 else | |
8273 HAVE_XPM=yes | |
8274 fi | |
8275 rm -f conftest* | |
8276 | |
44493 | 8277 |
36903 | 8278 if test "${HAVE_XPM}" = "yes"; then |
44493 | 8279 echo "$as_me:$LINENO: result: yes" >&5 |
40056 | 8280 echo "${ECHO_T}yes" >&6 |
36903 | 8281 else |
44493 | 8282 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 8283 echo "${ECHO_T}no" >&6 |
36903 | 8284 fi |
31320 | 8285 fi |
25897 | 8286 fi |
8287 | |
8288 if test "${HAVE_XPM}" = "yes"; then | |
44493 | 8289 cat >>confdefs.h <<\_ACEOF |
25897 | 8290 #define HAVE_XPM 1 |
44493 | 8291 _ACEOF |
25897 | 8292 |
8293 fi | |
8294 fi | |
40056 | 8295 |
25897 | 8296 ### Use -ljpeg if available, unless `--with-jpeg=no'. |
8297 HAVE_JPEG=no | |
8298 if test "${HAVE_X11}" = "yes"; then | |
8299 if test "${with_jpeg}" != "no"; then | |
44493 | 8300 if test "${ac_cv_header_jerror_h+set}" = set; then |
8301 echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
40056 | 8302 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 |
8303 if test "${ac_cv_header_jerror_h+set}" = set; then | |
8304 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 8305 fi |
8306 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 | |
8307 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 | |
8308 else | |
8309 # Is the header compilable? | |
8310 echo "$as_me:$LINENO: checking jerror.h usability" >&5 | |
8311 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6 | |
8312 cat >conftest.$ac_ext <<_ACEOF | |
8313 #line $LINENO "configure" | |
8314 #include "confdefs.h" | |
8315 $ac_includes_default | |
8316 #include <jerror.h> | |
8317 _ACEOF | |
8318 rm -f conftest.$ac_objext | |
8319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8320 (eval $ac_compile) 2>&5 | |
8321 ac_status=$? | |
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8323 (exit $ac_status); } && | |
8324 { ac_try='test -s conftest.$ac_objext' | |
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8326 (eval $ac_try) 2>&5 | |
8327 ac_status=$? | |
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8329 (exit $ac_status); }; }; then | |
8330 ac_header_compiler=yes | |
8331 else | |
8332 echo "$as_me: failed program was:" >&5 | |
8333 cat conftest.$ac_ext >&5 | |
8334 ac_header_compiler=no | |
8335 fi | |
8336 rm -f conftest.$ac_objext conftest.$ac_ext | |
8337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8338 echo "${ECHO_T}$ac_header_compiler" >&6 | |
8339 | |
8340 # Is the header present? | |
8341 echo "$as_me:$LINENO: checking jerror.h presence" >&5 | |
8342 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6 | |
8343 cat >conftest.$ac_ext <<_ACEOF | |
8344 #line $LINENO "configure" | |
27356 | 8345 #include "confdefs.h" |
8346 #include <jerror.h> | |
40056 | 8347 _ACEOF |
44493 | 8348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 8349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8350 ac_status=$? | |
8351 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8352 rm -f conftest.er1 | |
8353 cat conftest.err >&5 | |
44493 | 8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 8355 (exit $ac_status); } >/dev/null; then |
8356 if test -s conftest.err; then | |
8357 ac_cpp_err=$ac_c_preproc_warn_flag | |
8358 else | |
8359 ac_cpp_err= | |
8360 fi | |
8361 else | |
8362 ac_cpp_err=yes | |
8363 fi | |
8364 if test -z "$ac_cpp_err"; then | |
44493 | 8365 ac_header_preproc=yes |
40056 | 8366 else |
8367 echo "$as_me: failed program was:" >&5 | |
27356 | 8368 cat conftest.$ac_ext >&5 |
44493 | 8369 ac_header_preproc=no |
40056 | 8370 fi |
8371 rm -f conftest.err conftest.$ac_ext | |
44493 | 8372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8373 echo "${ECHO_T}$ac_header_preproc" >&6 | |
8374 | |
8375 # So? What about this header? | |
8376 case $ac_header_compiler:$ac_header_preproc in | |
8377 yes:no ) | |
8378 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8379 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8380 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 | |
8381 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};; | |
8382 no:yes ) | |
8383 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 | |
8384 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} | |
8385 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 | |
8386 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} | |
8387 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 | |
8388 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};; | |
8389 esac | |
8390 echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
8391 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 | |
8392 if test "${ac_cv_header_jerror_h+set}" = set; then | |
8393 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8394 else | |
8395 ac_cv_header_jerror_h=$ac_header_preproc | |
8396 fi | |
8397 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 | |
40056 | 8398 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 |
44493 | 8399 |
8400 fi | |
40056 | 8401 if test $ac_cv_header_jerror_h = yes; then |
44493 | 8402 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5 |
40056 | 8403 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 |
8404 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | |
8405 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8406 else | |
8407 ac_check_lib_save_LIBS=$LIBS | |
35206 | 8408 LIBS="-ljpeg $LIBS" |
40056 | 8409 cat >conftest.$ac_ext <<_ACEOF |
44493 | 8410 #line $LINENO "configure" |
40056 | 8411 #include "confdefs.h" |
8412 | |
25897 | 8413 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8414 #ifdef __cplusplus |
8415 extern "C" | |
8416 #endif | |
25897 | 8417 /* We use char because int might match the return type of a gcc2 |
40056 | 8418 builtin and then its argument prototype would still apply. */ |
8419 char jpeg_destroy_compress (); | |
44493 | 8420 #ifdef F77_DUMMY_MAIN |
8421 # ifdef __cplusplus | |
8422 extern "C" | |
8423 # endif | |
8424 int F77_DUMMY_MAIN() { return 1; } | |
8425 #endif | |
40056 | 8426 int |
8427 main () | |
8428 { | |
8429 jpeg_destroy_compress (); | |
8430 ; | |
8431 return 0; | |
8432 } | |
8433 _ACEOF | |
8434 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 8435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8436 (eval $ac_link) 2>&5 | |
8437 ac_status=$? | |
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8439 (exit $ac_status); } && | |
8440 { ac_try='test -s conftest$ac_exeext' | |
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8442 (eval $ac_try) 2>&5 | |
8443 ac_status=$? | |
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 8445 (exit $ac_status); }; }; then |
8446 ac_cv_lib_jpeg_jpeg_destroy_compress=yes | |
8447 else | |
8448 echo "$as_me: failed program was:" >&5 | |
8449 cat conftest.$ac_ext >&5 | |
8450 ac_cv_lib_jpeg_jpeg_destroy_compress=no | |
8451 fi | |
8452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8453 LIBS=$ac_check_lib_save_LIBS | |
8454 fi | |
44493 | 8455 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
40056 | 8456 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 |
8457 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | |
25897 | 8458 HAVE_JPEG=yes |
40056 | 8459 fi |
8460 | |
27356 | 8461 fi |
8462 | |
44493 | 8463 |
25897 | 8464 fi |
8465 | |
8466 if test "${HAVE_JPEG}" = "yes"; then | |
44493 | 8467 cat >>confdefs.h <<\_ACEOF |
25897 | 8468 #define HAVE_JPEG 1 |
44493 | 8469 _ACEOF |
25897 | 8470 |
43721 | 8471 cat >conftest.$ac_ext <<_ACEOF |
44493 | 8472 #line $LINENO "configure" |
43721 | 8473 #include "confdefs.h" |
8474 #include <jpeglib.h> | |
8475 version=JPEG_LIB_VERSION | |
8476 | |
8477 _ACEOF | |
8478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8479 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then | |
44493 | 8480 cat >>confdefs.h <<\_ACEOF |
43721 | 8481 #define HAVE_JPEG 1 |
44493 | 8482 _ACEOF |
8483 | |
8484 else | |
8485 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5 | |
43721 | 8486 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
8487 HAVE_JPEG=no | |
8488 fi | |
8489 rm -f conftest* | |
8490 | |
25897 | 8491 fi |
8492 fi | |
40056 | 8493 |
25897 | 8494 ### Use -lpng if available, unless `--with-png=no'. |
8495 HAVE_PNG=no | |
8496 if test "${HAVE_X11}" = "yes"; then | |
8497 if test "${with_png}" != "no"; then | |
44493 | 8498 if test "${ac_cv_header_png_h+set}" = set; then |
8499 echo "$as_me:$LINENO: checking for png.h" >&5 | |
40056 | 8500 echo $ECHO_N "checking for png.h... $ECHO_C" >&6 |
8501 if test "${ac_cv_header_png_h+set}" = set; then | |
8502 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 8503 fi |
8504 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
8505 echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
8506 else | |
8507 # Is the header compilable? | |
8508 echo "$as_me:$LINENO: checking png.h usability" >&5 | |
8509 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
8510 cat >conftest.$ac_ext <<_ACEOF | |
8511 #line $LINENO "configure" | |
8512 #include "confdefs.h" | |
8513 $ac_includes_default | |
8514 #include <png.h> | |
8515 _ACEOF | |
8516 rm -f conftest.$ac_objext | |
8517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8518 (eval $ac_compile) 2>&5 | |
8519 ac_status=$? | |
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8521 (exit $ac_status); } && | |
8522 { ac_try='test -s conftest.$ac_objext' | |
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8524 (eval $ac_try) 2>&5 | |
8525 ac_status=$? | |
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8527 (exit $ac_status); }; }; then | |
8528 ac_header_compiler=yes | |
8529 else | |
8530 echo "$as_me: failed program was:" >&5 | |
8531 cat conftest.$ac_ext >&5 | |
8532 ac_header_compiler=no | |
8533 fi | |
8534 rm -f conftest.$ac_objext conftest.$ac_ext | |
8535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8536 echo "${ECHO_T}$ac_header_compiler" >&6 | |
8537 | |
8538 # Is the header present? | |
8539 echo "$as_me:$LINENO: checking png.h presence" >&5 | |
8540 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
8541 cat >conftest.$ac_ext <<_ACEOF | |
8542 #line $LINENO "configure" | |
25897 | 8543 #include "confdefs.h" |
8544 #include <png.h> | |
40056 | 8545 _ACEOF |
44493 | 8546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 8547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8548 ac_status=$? | |
8549 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8550 rm -f conftest.er1 | |
8551 cat conftest.err >&5 | |
44493 | 8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 8553 (exit $ac_status); } >/dev/null; then |
8554 if test -s conftest.err; then | |
8555 ac_cpp_err=$ac_c_preproc_warn_flag | |
8556 else | |
8557 ac_cpp_err= | |
8558 fi | |
8559 else | |
8560 ac_cpp_err=yes | |
8561 fi | |
8562 if test -z "$ac_cpp_err"; then | |
44493 | 8563 ac_header_preproc=yes |
40056 | 8564 else |
8565 echo "$as_me: failed program was:" >&5 | |
25897 | 8566 cat conftest.$ac_ext >&5 |
44493 | 8567 ac_header_preproc=no |
40056 | 8568 fi |
8569 rm -f conftest.err conftest.$ac_ext | |
44493 | 8570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8571 echo "${ECHO_T}$ac_header_preproc" >&6 | |
8572 | |
8573 # So? What about this header? | |
8574 case $ac_header_compiler:$ac_header_preproc in | |
8575 yes:no ) | |
8576 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8577 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8578 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
8579 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};; | |
8580 no:yes ) | |
8581 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 | |
8582 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
8583 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 | |
8584 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
8585 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
8586 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};; | |
8587 esac | |
8588 echo "$as_me:$LINENO: checking for png.h" >&5 | |
8589 echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
8590 if test "${ac_cv_header_png_h+set}" = set; then | |
8591 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8592 else | |
8593 ac_cv_header_png_h=$ac_header_preproc | |
8594 fi | |
8595 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
40056 | 8596 echo "${ECHO_T}$ac_cv_header_png_h" >&6 |
44493 | 8597 |
8598 fi | |
40056 | 8599 if test $ac_cv_header_png_h = yes; then |
44493 | 8600 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 |
40056 | 8601 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 |
8602 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | |
8603 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8604 else | |
8605 ac_check_lib_save_LIBS=$LIBS | |
35206 | 8606 LIBS="-lpng -lz -lm $LIBS" |
40056 | 8607 cat >conftest.$ac_ext <<_ACEOF |
44493 | 8608 #line $LINENO "configure" |
40056 | 8609 #include "confdefs.h" |
8610 | |
25897 | 8611 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8612 #ifdef __cplusplus |
8613 extern "C" | |
8614 #endif | |
25897 | 8615 /* We use char because int might match the return type of a gcc2 |
40056 | 8616 builtin and then its argument prototype would still apply. */ |
8617 char png_get_channels (); | |
44493 | 8618 #ifdef F77_DUMMY_MAIN |
8619 # ifdef __cplusplus | |
8620 extern "C" | |
8621 # endif | |
8622 int F77_DUMMY_MAIN() { return 1; } | |
8623 #endif | |
40056 | 8624 int |
8625 main () | |
8626 { | |
8627 png_get_channels (); | |
8628 ; | |
8629 return 0; | |
8630 } | |
8631 _ACEOF | |
8632 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 8633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8634 (eval $ac_link) 2>&5 | |
8635 ac_status=$? | |
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8637 (exit $ac_status); } && | |
8638 { ac_try='test -s conftest$ac_exeext' | |
8639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8640 (eval $ac_try) 2>&5 | |
8641 ac_status=$? | |
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 8643 (exit $ac_status); }; }; then |
8644 ac_cv_lib_png_png_get_channels=yes | |
8645 else | |
8646 echo "$as_me: failed program was:" >&5 | |
8647 cat conftest.$ac_ext >&5 | |
8648 ac_cv_lib_png_png_get_channels=no | |
8649 fi | |
8650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8651 LIBS=$ac_check_lib_save_LIBS | |
8652 fi | |
44493 | 8653 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 |
40056 | 8654 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 |
8655 if test $ac_cv_lib_png_png_get_channels = yes; then | |
25897 | 8656 HAVE_PNG=yes |
40056 | 8657 fi |
8658 | |
25897 | 8659 fi |
8660 | |
44493 | 8661 |
25897 | 8662 fi |
8663 | |
8664 if test "${HAVE_PNG}" = "yes"; then | |
44493 | 8665 cat >>confdefs.h <<\_ACEOF |
25897 | 8666 #define HAVE_PNG 1 |
44493 | 8667 _ACEOF |
25897 | 8668 |
8669 fi | |
8670 fi | |
40056 | 8671 |
25897 | 8672 ### Use -ltiff if available, unless `--with-tiff=no'. |
8673 HAVE_TIFF=no | |
8674 if test "${HAVE_X11}" = "yes"; then | |
8675 if test "${with_tiff}" != "no"; then | |
44493 | 8676 if test "${ac_cv_header_tiffio_h+set}" = set; then |
8677 echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
40056 | 8678 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
8679 if test "${ac_cv_header_tiffio_h+set}" = set; then | |
8680 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 8681 fi |
8682 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
8683 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
8684 else | |
8685 # Is the header compilable? | |
8686 echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
8687 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
8688 cat >conftest.$ac_ext <<_ACEOF | |
8689 #line $LINENO "configure" | |
8690 #include "confdefs.h" | |
8691 $ac_includes_default | |
8692 #include <tiffio.h> | |
8693 _ACEOF | |
8694 rm -f conftest.$ac_objext | |
8695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8696 (eval $ac_compile) 2>&5 | |
8697 ac_status=$? | |
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8699 (exit $ac_status); } && | |
8700 { ac_try='test -s conftest.$ac_objext' | |
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8702 (eval $ac_try) 2>&5 | |
8703 ac_status=$? | |
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8705 (exit $ac_status); }; }; then | |
8706 ac_header_compiler=yes | |
8707 else | |
8708 echo "$as_me: failed program was:" >&5 | |
8709 cat conftest.$ac_ext >&5 | |
8710 ac_header_compiler=no | |
8711 fi | |
8712 rm -f conftest.$ac_objext conftest.$ac_ext | |
8713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8714 echo "${ECHO_T}$ac_header_compiler" >&6 | |
8715 | |
8716 # Is the header present? | |
8717 echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
8718 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
8719 cat >conftest.$ac_ext <<_ACEOF | |
8720 #line $LINENO "configure" | |
25897 | 8721 #include "confdefs.h" |
8722 #include <tiffio.h> | |
40056 | 8723 _ACEOF |
44493 | 8724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 8725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8726 ac_status=$? | |
8727 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8728 rm -f conftest.er1 | |
8729 cat conftest.err >&5 | |
44493 | 8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 8731 (exit $ac_status); } >/dev/null; then |
8732 if test -s conftest.err; then | |
8733 ac_cpp_err=$ac_c_preproc_warn_flag | |
8734 else | |
8735 ac_cpp_err= | |
8736 fi | |
8737 else | |
8738 ac_cpp_err=yes | |
8739 fi | |
8740 if test -z "$ac_cpp_err"; then | |
44493 | 8741 ac_header_preproc=yes |
40056 | 8742 else |
8743 echo "$as_me: failed program was:" >&5 | |
25897 | 8744 cat conftest.$ac_ext >&5 |
44493 | 8745 ac_header_preproc=no |
40056 | 8746 fi |
8747 rm -f conftest.err conftest.$ac_ext | |
44493 | 8748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8749 echo "${ECHO_T}$ac_header_preproc" >&6 | |
8750 | |
8751 # So? What about this header? | |
8752 case $ac_header_compiler:$ac_header_preproc in | |
8753 yes:no ) | |
8754 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8755 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8756 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
8757 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};; | |
8758 no:yes ) | |
8759 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 | |
8760 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
8761 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 | |
8762 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
8763 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
8764 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};; | |
8765 esac | |
8766 echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
8767 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
8768 if test "${ac_cv_header_tiffio_h+set}" = set; then | |
8769 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8770 else | |
8771 ac_cv_header_tiffio_h=$ac_header_preproc | |
8772 fi | |
8773 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
8774 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
8775 | |
8776 fi | |
8777 if test $ac_cv_header_tiffio_h = yes; then | |
8778 tifflibs="-lz -lm" | |
8779 # At least one tiff package requires the jpeg library. | |
8780 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
8781 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 | |
8782 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 | |
8783 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | |
40056 | 8784 echo $ECHO_N "(cached) $ECHO_C" >&6 |
8785 else | |
8786 ac_check_lib_save_LIBS=$LIBS | |
44493 | 8787 LIBS="-ltiff $tifflibs $LIBS" |
8788 cat >conftest.$ac_ext <<_ACEOF | |
8789 #line $LINENO "configure" | |
8790 #include "confdefs.h" | |
8791 | |
8792 /* Override any gcc2 internal prototype to avoid an error. */ | |
8793 #ifdef __cplusplus | |
8794 extern "C" | |
8795 #endif | |
8796 /* We use char because int might match the return type of a gcc2 | |
8797 builtin and then its argument prototype would still apply. */ | |
8798 char TIFFGetVersion (); | |
8799 #ifdef F77_DUMMY_MAIN | |
8800 # ifdef __cplusplus | |
8801 extern "C" | |
8802 # endif | |
8803 int F77_DUMMY_MAIN() { return 1; } | |
8804 #endif | |
8805 int | |
8806 main () | |
8807 { | |
8808 TIFFGetVersion (); | |
8809 ; | |
8810 return 0; | |
8811 } | |
8812 _ACEOF | |
8813 rm -f conftest.$ac_objext conftest$ac_exeext | |
8814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8815 (eval $ac_link) 2>&5 | |
8816 ac_status=$? | |
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8818 (exit $ac_status); } && | |
8819 { ac_try='test -s conftest$ac_exeext' | |
8820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8821 (eval $ac_try) 2>&5 | |
8822 ac_status=$? | |
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8824 (exit $ac_status); }; }; then | |
8825 ac_cv_lib_tiff_TIFFGetVersion=yes | |
8826 else | |
8827 echo "$as_me: failed program was:" >&5 | |
8828 cat conftest.$ac_ext >&5 | |
8829 ac_cv_lib_tiff_TIFFGetVersion=no | |
40056 | 8830 fi |
8831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8832 LIBS=$ac_check_lib_save_LIBS | |
8833 fi | |
44493 | 8834 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
8835 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 | |
8836 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | |
8837 HAVE_TIFF=yes | |
8838 fi | |
8839 | |
8840 fi | |
8841 | |
8842 | |
8843 fi | |
8844 | |
8845 if test "${HAVE_TIFF}" = "yes"; then | |
8846 cat >>confdefs.h <<\_ACEOF | |
8847 #define HAVE_TIFF 1 | |
8848 _ACEOF | |
8849 | |
8850 fi | |
8851 fi | |
8852 | |
8853 ### Use -lgif if available, unless `--with-gif=no'. | |
8854 HAVE_GIF=no | |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8855 if test "${HAVE_X11}" = "yes"; then |
44493 | 8856 if test "${with_gif}" != "no"; then |
8857 if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
8858 echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
8859 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 | |
8860 if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
8861 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8862 fi | |
8863 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 | |
8864 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 | |
8865 else | |
8866 # Is the header compilable? | |
8867 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5 | |
8868 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6 | |
8869 cat >conftest.$ac_ext <<_ACEOF | |
8870 #line $LINENO "configure" | |
8871 #include "confdefs.h" | |
8872 $ac_includes_default | |
8873 #include <gif_lib.h> | |
8874 _ACEOF | |
8875 rm -f conftest.$ac_objext | |
8876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8877 (eval $ac_compile) 2>&5 | |
8878 ac_status=$? | |
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8880 (exit $ac_status); } && | |
8881 { ac_try='test -s conftest.$ac_objext' | |
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8883 (eval $ac_try) 2>&5 | |
8884 ac_status=$? | |
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8886 (exit $ac_status); }; }; then | |
8887 ac_header_compiler=yes | |
8888 else | |
8889 echo "$as_me: failed program was:" >&5 | |
8890 cat conftest.$ac_ext >&5 | |
8891 ac_header_compiler=no | |
8892 fi | |
8893 rm -f conftest.$ac_objext conftest.$ac_ext | |
8894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8895 echo "${ECHO_T}$ac_header_compiler" >&6 | |
8896 | |
8897 # Is the header present? | |
8898 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5 | |
8899 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6 | |
8900 cat >conftest.$ac_ext <<_ACEOF | |
8901 #line $LINENO "configure" | |
8902 #include "confdefs.h" | |
8903 #include <gif_lib.h> | |
8904 _ACEOF | |
8905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8907 ac_status=$? |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8908 egrep -v '^ *\+' conftest.er1 >conftest.err |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8909 rm -f conftest.er1 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8910 cat conftest.err >&5 |
44493 | 8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8912 (exit $ac_status); } >/dev/null; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8913 if test -s conftest.err; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8914 ac_cpp_err=$ac_c_preproc_warn_flag |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8915 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8916 ac_cpp_err= |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8917 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8918 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8919 ac_cpp_err=yes |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8920 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8921 if test -z "$ac_cpp_err"; then |
44493 | 8922 ac_header_preproc=yes |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8923 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8924 echo "$as_me: failed program was:" >&5 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8925 cat conftest.$ac_ext >&5 |
44493 | 8926 ac_header_preproc=no |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8927 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8928 rm -f conftest.err conftest.$ac_ext |
44493 | 8929 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8930 echo "${ECHO_T}$ac_header_preproc" >&6 | |
8931 | |
8932 # So? What about this header? | |
8933 case $ac_header_compiler:$ac_header_preproc in | |
8934 yes:no ) | |
8935 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8936 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8937 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 | |
8938 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};; | |
8939 no:yes ) | |
8940 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5 | |
8941 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;} | |
8942 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5 | |
8943 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;} | |
8944 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 | |
8945 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};; | |
8946 esac | |
8947 echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
8948 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 | |
8949 if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
8950 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8951 else | |
8952 ac_cv_header_gif_lib_h=$ac_header_preproc | |
8953 fi | |
8954 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 | |
8955 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 | |
8956 | |
8957 fi | |
8958 if test $ac_cv_header_gif_lib_h = yes; then | |
8959 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | |
8960 # Earlier versions can crash Emacs. | |
8961 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 | |
8962 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6 | |
8963 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | |
8964 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8965 else | |
8966 ac_check_lib_save_LIBS=$LIBS | |
8967 LIBS="-lungif $LIBS" | |
8968 cat >conftest.$ac_ext <<_ACEOF | |
8969 #line $LINENO "configure" | |
8970 #include "confdefs.h" | |
8971 | |
8972 /* Override any gcc2 internal prototype to avoid an error. */ | |
8973 #ifdef __cplusplus | |
8974 extern "C" | |
8975 #endif | |
8976 /* We use char because int might match the return type of a gcc2 | |
8977 builtin and then its argument prototype would still apply. */ | |
8978 char EGifPutExtensionLast (); | |
8979 #ifdef F77_DUMMY_MAIN | |
8980 # ifdef __cplusplus | |
8981 extern "C" | |
8982 # endif | |
8983 int F77_DUMMY_MAIN() { return 1; } | |
8984 #endif | |
8985 int | |
8986 main () | |
8987 { | |
8988 EGifPutExtensionLast (); | |
8989 ; | |
8990 return 0; | |
8991 } | |
8992 _ACEOF | |
8993 rm -f conftest.$ac_objext conftest$ac_exeext | |
8994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8995 (eval $ac_link) 2>&5 | |
8996 ac_status=$? | |
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8998 (exit $ac_status); } && | |
8999 { ac_try='test -s conftest$ac_exeext' | |
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9001 (eval $ac_try) 2>&5 | |
9002 ac_status=$? | |
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9004 (exit $ac_status); }; }; then | |
9005 ac_cv_lib_ungif_EGifPutExtensionLast=yes | |
9006 else | |
9007 echo "$as_me: failed program was:" >&5 | |
9008 cat conftest.$ac_ext >&5 | |
9009 ac_cv_lib_ungif_EGifPutExtensionLast=no | |
9010 fi | |
9011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9012 LIBS=$ac_check_lib_save_LIBS | |
9013 fi | |
9014 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 | |
9015 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6 | |
9016 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | |
9017 HAVE_GIF=yes | |
9018 fi | |
9019 | |
9020 fi | |
9021 | |
9022 | |
9023 fi | |
9024 | |
9025 if test "${HAVE_GIF}" = "yes"; then | |
9026 cat >>confdefs.h <<\_ACEOF | |
9027 #define HAVE_GIF 1 | |
9028 _ACEOF | |
9029 | |
9030 fi | |
9031 fi | |
9032 | |
9033 ### Use session management (-lSM -lICE) if available | |
9034 HAVE_X_SM=no | |
9035 if test "${HAVE_X11}" = "yes"; then | |
9036 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
9037 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
9038 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 | |
9039 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
9040 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9041 fi | |
9042 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 | |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9043 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 |
44493 | 9044 else |
9045 # Is the header compilable? | |
9046 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5 | |
9047 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6 | |
9048 cat >conftest.$ac_ext <<_ACEOF | |
9049 #line $LINENO "configure" | |
9050 #include "confdefs.h" | |
9051 $ac_includes_default | |
9052 #include <X11/SM/SMlib.h> | |
9053 _ACEOF | |
9054 rm -f conftest.$ac_objext | |
9055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9056 (eval $ac_compile) 2>&5 | |
9057 ac_status=$? | |
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9059 (exit $ac_status); } && | |
9060 { ac_try='test -s conftest.$ac_objext' | |
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9062 (eval $ac_try) 2>&5 | |
9063 ac_status=$? | |
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9065 (exit $ac_status); }; }; then | |
9066 ac_header_compiler=yes | |
9067 else | |
9068 echo "$as_me: failed program was:" >&5 | |
9069 cat conftest.$ac_ext >&5 | |
9070 ac_header_compiler=no | |
9071 fi | |
9072 rm -f conftest.$ac_objext conftest.$ac_ext | |
9073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9074 echo "${ECHO_T}$ac_header_compiler" >&6 | |
9075 | |
9076 # Is the header present? | |
9077 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5 | |
9078 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6 | |
9079 cat >conftest.$ac_ext <<_ACEOF | |
9080 #line $LINENO "configure" | |
9081 #include "confdefs.h" | |
9082 #include <X11/SM/SMlib.h> | |
9083 _ACEOF | |
9084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9086 ac_status=$? | |
9087 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9088 rm -f conftest.er1 | |
9089 cat conftest.err >&5 | |
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9091 (exit $ac_status); } >/dev/null; then | |
9092 if test -s conftest.err; then | |
9093 ac_cpp_err=$ac_c_preproc_warn_flag | |
9094 else | |
9095 ac_cpp_err= | |
9096 fi | |
9097 else | |
9098 ac_cpp_err=yes | |
9099 fi | |
9100 if test -z "$ac_cpp_err"; then | |
9101 ac_header_preproc=yes | |
9102 else | |
9103 echo "$as_me: failed program was:" >&5 | |
9104 cat conftest.$ac_ext >&5 | |
9105 ac_header_preproc=no | |
9106 fi | |
9107 rm -f conftest.err conftest.$ac_ext | |
9108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9109 echo "${ECHO_T}$ac_header_preproc" >&6 | |
9110 | |
9111 # So? What about this header? | |
9112 case $ac_header_compiler:$ac_header_preproc in | |
9113 yes:no ) | |
9114 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9115 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9116 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 | |
9117 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};; | |
9118 no:yes ) | |
9119 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5 | |
9120 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;} | |
9121 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5 | |
9122 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;} | |
9123 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 | |
9124 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};; | |
9125 esac | |
9126 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
9127 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 | |
9128 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
9129 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9130 else | |
9131 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc | |
9132 fi | |
9133 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 | |
9134 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 | |
9135 | |
9136 fi | |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9137 if test $ac_cv_header_X11_SM_SMlib_h = yes; then |
44493 | 9138 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5 |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9139 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9140 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9141 echo $ECHO_N "(cached) $ECHO_C" >&6 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9142 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9143 ac_check_lib_save_LIBS=$LIBS |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9144 LIBS="-lSM $LIBS" |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9145 cat >conftest.$ac_ext <<_ACEOF |
44493 | 9146 #line $LINENO "configure" |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9147 #include "confdefs.h" |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9148 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9149 /* Override any gcc2 internal prototype to avoid an error. */ |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9150 #ifdef __cplusplus |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9151 extern "C" |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9152 #endif |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9153 /* We use char because int might match the return type of a gcc2 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9154 builtin and then its argument prototype would still apply. */ |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9155 char SmcOpenConnection (); |
44493 | 9156 #ifdef F77_DUMMY_MAIN |
9157 # ifdef __cplusplus | |
9158 extern "C" | |
9159 # endif | |
9160 int F77_DUMMY_MAIN() { return 1; } | |
9161 #endif | |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9162 int |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9163 main () |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9164 { |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9165 SmcOpenConnection (); |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9166 ; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9167 return 0; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9168 } |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9169 _ACEOF |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9170 rm -f conftest.$ac_objext conftest$ac_exeext |
44493 | 9171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9172 (eval $ac_link) 2>&5 | |
9173 ac_status=$? | |
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9175 (exit $ac_status); } && | |
9176 { ac_try='test -s conftest$ac_exeext' | |
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9178 (eval $ac_try) 2>&5 | |
9179 ac_status=$? | |
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9181 (exit $ac_status); }; }; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9182 ac_cv_lib_SM_SmcOpenConnection=yes |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9183 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9184 echo "$as_me: failed program was:" >&5 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9185 cat conftest.$ac_ext >&5 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9186 ac_cv_lib_SM_SmcOpenConnection=no |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9187 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9189 LIBS=$ac_check_lib_save_LIBS |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9190 fi |
44493 | 9191 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9192 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9193 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9194 HAVE_X_SM=yes |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9195 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9196 -lICE |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9197 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9198 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9199 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9200 |
44493 | 9201 |
9202 | |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9203 if test "${HAVE_X_SM}" = "yes"; then |
44493 | 9204 cat >>confdefs.h <<\_ACEOF |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9205 #define HAVE_X_SM 1 |
44493 | 9206 _ACEOF |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9207 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9208 case "$LIBS" in |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9209 *-lSM*) ;; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9210 *) LIBS="-lSM -lICE $LIBS" ;; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9211 esac |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9212 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9213 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9214 |
25897 | 9215 # If netdb.h doesn't declare h_errno, we must declare it by hand. |
44493 | 9216 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 |
40056 | 9217 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 |
9218 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | |
9219 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9220 else | |
9221 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 9222 #line $LINENO "configure" |
25897 | 9223 #include "confdefs.h" |
9224 #include <netdb.h> | |
44493 | 9225 #ifdef F77_DUMMY_MAIN |
9226 # ifdef __cplusplus | |
9227 extern "C" | |
9228 # endif | |
9229 int F77_DUMMY_MAIN() { return 1; } | |
9230 #endif | |
40056 | 9231 int |
9232 main () | |
9233 { | |
25897 | 9234 return h_errno; |
40056 | 9235 ; |
9236 return 0; | |
9237 } | |
9238 _ACEOF | |
9239 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9241 (eval $ac_link) 2>&5 | |
9242 ac_status=$? | |
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9244 (exit $ac_status); } && | |
9245 { ac_try='test -s conftest$ac_exeext' | |
9246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9247 (eval $ac_try) 2>&5 | |
9248 ac_status=$? | |
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9250 (exit $ac_status); }; }; then |
25897 | 9251 emacs_cv_netdb_declares_h_errno=yes |
9252 else | |
40056 | 9253 echo "$as_me: failed program was:" >&5 |
9254 cat conftest.$ac_ext >&5 | |
9255 emacs_cv_netdb_declares_h_errno=no | |
9256 fi | |
9257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9258 fi | |
44493 | 9259 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 |
40056 | 9260 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 |
25897 | 9261 if test $emacs_cv_netdb_declares_h_errno = yes; then |
44493 | 9262 cat >>confdefs.h <<\_ACEOF |
25897 | 9263 #define HAVE_H_ERRNO 1 |
44493 | 9264 _ACEOF |
25897 | 9265 |
9266 fi | |
9267 | |
9268 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
9269 # for constant arguments. Useless! | |
44493 | 9270 echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
40056 | 9271 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
9272 if test "${ac_cv_working_alloca_h+set}" = set; then | |
9273 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9274 else | |
9275 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 9276 #line $LINENO "configure" |
25897 | 9277 #include "confdefs.h" |
9278 #include <alloca.h> | |
44493 | 9279 #ifdef F77_DUMMY_MAIN |
9280 # ifdef __cplusplus | |
9281 extern "C" | |
9282 # endif | |
9283 int F77_DUMMY_MAIN() { return 1; } | |
9284 #endif | |
40056 | 9285 int |
9286 main () | |
9287 { | |
9288 char *p = (char *) alloca (2 * sizeof (int)); | |
9289 ; | |
9290 return 0; | |
9291 } | |
9292 _ACEOF | |
9293 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 9294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9295 (eval $ac_link) 2>&5 | |
9296 ac_status=$? | |
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9298 (exit $ac_status); } && | |
9299 { ac_try='test -s conftest$ac_exeext' | |
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9301 (eval $ac_try) 2>&5 | |
9302 ac_status=$? | |
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9304 (exit $ac_status); }; }; then |
9305 ac_cv_working_alloca_h=yes | |
9306 else | |
9307 echo "$as_me: failed program was:" >&5 | |
9308 cat conftest.$ac_ext >&5 | |
9309 ac_cv_working_alloca_h=no | |
9310 fi | |
9311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9312 fi | |
44493 | 9313 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
40056 | 9314 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
9315 if test $ac_cv_working_alloca_h = yes; then | |
9316 | |
44493 | 9317 cat >>confdefs.h <<\_ACEOF |
25897 | 9318 #define HAVE_ALLOCA_H 1 |
44493 | 9319 _ACEOF |
9320 | |
9321 fi | |
9322 | |
9323 echo "$as_me:$LINENO: checking for alloca" >&5 | |
40056 | 9324 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
9325 if test "${ac_cv_func_alloca_works+set}" = set; then | |
9326 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9327 else | |
9328 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 9329 #line $LINENO "configure" |
40056 | 9330 #include "confdefs.h" |
25897 | 9331 #ifdef __GNUC__ |
9332 # define alloca __builtin_alloca | |
9333 #else | |
27205 | 9334 # ifdef _MSC_VER |
9335 # include <malloc.h> | |
9336 # define alloca _alloca | |
25897 | 9337 # else |
27205 | 9338 # if HAVE_ALLOCA_H |
9339 # include <alloca.h> | |
25897 | 9340 # else |
27205 | 9341 # ifdef _AIX |
9342 #pragma alloca | |
9343 # else | |
9344 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
25897 | 9345 char *alloca (); |
27205 | 9346 # endif |
25897 | 9347 # endif |
9348 # endif | |
9349 # endif | |
9350 #endif | |
9351 | |
44493 | 9352 #ifdef F77_DUMMY_MAIN |
9353 # ifdef __cplusplus | |
9354 extern "C" | |
9355 # endif | |
9356 int F77_DUMMY_MAIN() { return 1; } | |
9357 #endif | |
40056 | 9358 int |
9359 main () | |
9360 { | |
9361 char *p = (char *) alloca (1); | |
9362 ; | |
9363 return 0; | |
9364 } | |
9365 _ACEOF | |
9366 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 9367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9368 (eval $ac_link) 2>&5 | |
9369 ac_status=$? | |
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9371 (exit $ac_status); } && | |
9372 { ac_try='test -s conftest$ac_exeext' | |
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9374 (eval $ac_try) 2>&5 | |
9375 ac_status=$? | |
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9377 (exit $ac_status); }; }; then |
25897 | 9378 ac_cv_func_alloca_works=yes |
9379 else | |
40056 | 9380 echo "$as_me: failed program was:" >&5 |
9381 cat conftest.$ac_ext >&5 | |
9382 ac_cv_func_alloca_works=no | |
9383 fi | |
9384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9385 fi | |
44493 | 9386 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
40056 | 9387 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
9388 | |
25897 | 9389 if test $ac_cv_func_alloca_works = yes; then |
40056 | 9390 |
44493 | 9391 cat >>confdefs.h <<\_ACEOF |
25897 | 9392 #define HAVE_ALLOCA 1 |
44493 | 9393 _ACEOF |
25897 | 9394 |
40056 | 9395 else |
25897 | 9396 # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
40056 | 9397 # that cause trouble. Some versions do not even contain alloca or |
9398 # contain a buggy version. If you still want to use their alloca, | |
9399 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
9400 | |
9401 ALLOCA=alloca.$ac_objext | |
9402 | |
44493 | 9403 cat >>confdefs.h <<\_ACEOF |
25897 | 9404 #define C_ALLOCA 1 |
44493 | 9405 _ACEOF |
9406 | |
9407 | |
9408 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
40056 | 9409 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
9410 if test "${ac_cv_os_cray+set}" = set; then | |
9411 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9412 else | |
9413 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 9414 #line $LINENO "configure" |
25897 | 9415 #include "confdefs.h" |
9416 #if defined(CRAY) && ! defined(CRAY2) | |
9417 webecray | |
9418 #else | |
9419 wenotbecray | |
9420 #endif | |
9421 | |
40056 | 9422 _ACEOF |
25897 | 9423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9424 egrep "webecray" >/dev/null 2>&1; then | |
9425 ac_cv_os_cray=yes | |
9426 else | |
9427 ac_cv_os_cray=no | |
9428 fi | |
9429 rm -f conftest* | |
9430 | |
9431 fi | |
44493 | 9432 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
40056 | 9433 echo "${ECHO_T}$ac_cv_os_cray" >&6 |
25897 | 9434 if test $ac_cv_os_cray = yes; then |
40056 | 9435 for ac_func in _getb67 GETB67 getb67; do |
9436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44493 | 9437 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 9438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9439 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9440 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9441 else | |
9442 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 9443 #line $LINENO "configure" |
25897 | 9444 #include "confdefs.h" |
9445 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 9446 which can conflict with char $ac_func (); below. */ |
25897 | 9447 #include <assert.h> |
9448 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 9449 #ifdef __cplusplus |
9450 extern "C" | |
9451 #endif | |
25897 | 9452 /* We use char because int might match the return type of a gcc2 |
40056 | 9453 builtin and then its argument prototype would still apply. */ |
9454 char $ac_func (); | |
9455 char (*f) (); | |
9456 | |
44493 | 9457 #ifdef F77_DUMMY_MAIN |
9458 # ifdef __cplusplus | |
9459 extern "C" | |
9460 # endif | |
9461 int F77_DUMMY_MAIN() { return 1; } | |
9462 #endif | |
40056 | 9463 int |
9464 main () | |
9465 { | |
25897 | 9466 /* The GNU C library defines this for functions which it implements |
9467 to always fail with ENOSYS. Some functions are actually named | |
9468 something starting with __ and the normal name is an alias. */ | |
9469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9470 choke me | |
9471 #else | |
40056 | 9472 f = $ac_func; |
9473 #endif | |
9474 | |
9475 ; | |
9476 return 0; | |
9477 } | |
9478 _ACEOF | |
9479 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 9480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9481 (eval $ac_link) 2>&5 | |
9482 ac_status=$? | |
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9484 (exit $ac_status); } && | |
9485 { ac_try='test -s conftest$ac_exeext' | |
9486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9487 (eval $ac_try) 2>&5 | |
9488 ac_status=$? | |
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9490 (exit $ac_status); }; }; then |
9491 eval "$as_ac_var=yes" | |
9492 else | |
9493 echo "$as_me: failed program was:" >&5 | |
9494 cat conftest.$ac_ext >&5 | |
9495 eval "$as_ac_var=no" | |
9496 fi | |
9497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9498 fi | |
44493 | 9499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 9500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9501 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9502 | |
44493 | 9503 cat >>confdefs.h <<_ACEOF |
25897 | 9504 #define CRAY_STACKSEG_END $ac_func |
44493 | 9505 _ACEOF |
25897 | 9506 |
40056 | 9507 break |
9508 fi | |
9509 | |
9510 done | |
9511 fi | |
9512 | |
44493 | 9513 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
40056 | 9514 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
9515 if test "${ac_cv_c_stack_direction+set}" = set; then | |
9516 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 9517 else |
9518 if test "$cross_compiling" = yes; then | |
9519 ac_cv_c_stack_direction=0 | |
9520 else | |
40056 | 9521 cat >conftest.$ac_ext <<_ACEOF |
44493 | 9522 #line $LINENO "configure" |
40056 | 9523 #include "confdefs.h" |
9524 int | |
25897 | 9525 find_stack_direction () |
9526 { | |
9527 static char *addr = 0; | |
9528 auto char dummy; | |
9529 if (addr == 0) | |
9530 { | |
9531 addr = &dummy; | |
9532 return find_stack_direction (); | |
9533 } | |
9534 else | |
9535 return (&dummy > addr) ? 1 : -1; | |
9536 } | |
40056 | 9537 |
9538 int | |
9539 main () | |
9540 { | |
9541 exit (find_stack_direction () < 0); | |
9542 } | |
9543 _ACEOF | |
9544 rm -f conftest$ac_exeext | |
44493 | 9545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9546 (eval $ac_link) 2>&5 | |
9547 ac_status=$? | |
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
44493 | 9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9551 (eval $ac_try) 2>&5 | |
9552 ac_status=$? | |
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9554 (exit $ac_status); }; }; then |
25897 | 9555 ac_cv_c_stack_direction=1 |
9556 else | |
40056 | 9557 echo "$as_me: program exited with status $ac_status" >&5 |
9558 echo "$as_me: failed program was:" >&5 | |
9559 cat conftest.$ac_ext >&5 | |
44493 | 9560 ( exit $ac_status ) |
40056 | 9561 ac_cv_c_stack_direction=-1 |
9562 fi | |
9563 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
9564 fi | |
9565 fi | |
44493 | 9566 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
40056 | 9567 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
9568 | |
44493 | 9569 cat >>confdefs.h <<_ACEOF |
25897 | 9570 #define STACK_DIRECTION $ac_cv_c_stack_direction |
44493 | 9571 _ACEOF |
9572 | |
9573 | |
9574 fi | |
9575 | |
25897 | 9576 |
9577 # fmod, logb, and frexp are found in -lm on most systems. | |
9578 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
40056 | 9579 |
44493 | 9580 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
40056 | 9581 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
9582 if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
9583 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9584 else | |
9585 ac_check_lib_save_LIBS=$LIBS | |
25897 | 9586 LIBS="-lm $LIBS" |
40056 | 9587 cat >conftest.$ac_ext <<_ACEOF |
44493 | 9588 #line $LINENO "configure" |
40056 | 9589 #include "confdefs.h" |
9590 | |
25897 | 9591 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9592 #ifdef __cplusplus |
9593 extern "C" | |
9594 #endif | |
25897 | 9595 /* We use char because int might match the return type of a gcc2 |
40056 | 9596 builtin and then its argument prototype would still apply. */ |
9597 char sqrt (); | |
44493 | 9598 #ifdef F77_DUMMY_MAIN |
9599 # ifdef __cplusplus | |
9600 extern "C" | |
9601 # endif | |
9602 int F77_DUMMY_MAIN() { return 1; } | |
9603 #endif | |
40056 | 9604 int |
9605 main () | |
9606 { | |
9607 sqrt (); | |
9608 ; | |
9609 return 0; | |
9610 } | |
9611 _ACEOF | |
9612 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 9613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9614 (eval $ac_link) 2>&5 | |
9615 ac_status=$? | |
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9617 (exit $ac_status); } && | |
9618 { ac_try='test -s conftest$ac_exeext' | |
9619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9620 (eval $ac_try) 2>&5 | |
9621 ac_status=$? | |
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9623 (exit $ac_status); }; }; then |
9624 ac_cv_lib_m_sqrt=yes | |
9625 else | |
9626 echo "$as_me: failed program was:" >&5 | |
9627 cat conftest.$ac_ext >&5 | |
9628 ac_cv_lib_m_sqrt=no | |
9629 fi | |
9630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9631 LIBS=$ac_check_lib_save_LIBS | |
9632 fi | |
44493 | 9633 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
40056 | 9634 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
9635 if test $ac_cv_lib_m_sqrt = yes; then | |
44493 | 9636 cat >>confdefs.h <<_ACEOF |
40056 | 9637 #define HAVE_LIBM 1 |
44493 | 9638 _ACEOF |
25897 | 9639 |
9640 LIBS="-lm $LIBS" | |
9641 | |
40056 | 9642 fi |
25897 | 9643 |
44493 | 9644 |
25897 | 9645 # Check for mail-locking functions in a "mail" library |
40056 | 9646 |
44493 | 9647 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 |
40056 | 9648 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 |
9649 if test "${ac_cv_lib_mail_maillock+set}" = set; then | |
9650 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9651 else | |
9652 ac_check_lib_save_LIBS=$LIBS | |
25897 | 9653 LIBS="-lmail $LIBS" |
40056 | 9654 cat >conftest.$ac_ext <<_ACEOF |
44493 | 9655 #line $LINENO "configure" |
40056 | 9656 #include "confdefs.h" |
9657 | |
25897 | 9658 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9659 #ifdef __cplusplus |
9660 extern "C" | |
9661 #endif | |
25897 | 9662 /* We use char because int might match the return type of a gcc2 |
40056 | 9663 builtin and then its argument prototype would still apply. */ |
9664 char maillock (); | |
44493 | 9665 #ifdef F77_DUMMY_MAIN |
9666 # ifdef __cplusplus | |
9667 extern "C" | |
9668 # endif | |
9669 int F77_DUMMY_MAIN() { return 1; } | |
9670 #endif | |
40056 | 9671 int |
9672 main () | |
9673 { | |
9674 maillock (); | |
9675 ; | |
9676 return 0; | |
9677 } | |
9678 _ACEOF | |
9679 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 9680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9681 (eval $ac_link) 2>&5 | |
9682 ac_status=$? | |
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9684 (exit $ac_status); } && | |
9685 { ac_try='test -s conftest$ac_exeext' | |
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9687 (eval $ac_try) 2>&5 | |
9688 ac_status=$? | |
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9690 (exit $ac_status); }; }; then |
9691 ac_cv_lib_mail_maillock=yes | |
9692 else | |
9693 echo "$as_me: failed program was:" >&5 | |
9694 cat conftest.$ac_ext >&5 | |
9695 ac_cv_lib_mail_maillock=no | |
9696 fi | |
9697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9698 LIBS=$ac_check_lib_save_LIBS | |
9699 fi | |
44493 | 9700 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 |
40056 | 9701 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 |
9702 if test $ac_cv_lib_mail_maillock = yes; then | |
44493 | 9703 cat >>confdefs.h <<_ACEOF |
40056 | 9704 #define HAVE_LIBMAIL 1 |
44493 | 9705 _ACEOF |
25897 | 9706 |
9707 LIBS="-lmail $LIBS" | |
9708 | |
40056 | 9709 fi |
9710 | |
44493 | 9711 |
9712 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 | |
40056 | 9713 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 |
9714 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | |
9715 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9716 else | |
9717 ac_check_lib_save_LIBS=$LIBS | |
25897 | 9718 LIBS="-llockfile $LIBS" |
40056 | 9719 cat >conftest.$ac_ext <<_ACEOF |
44493 | 9720 #line $LINENO "configure" |
40056 | 9721 #include "confdefs.h" |
9722 | |
25897 | 9723 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9724 #ifdef __cplusplus |
9725 extern "C" | |
9726 #endif | |
25897 | 9727 /* We use char because int might match the return type of a gcc2 |
40056 | 9728 builtin and then its argument prototype would still apply. */ |
9729 char maillock (); | |
44493 | 9730 #ifdef F77_DUMMY_MAIN |
9731 # ifdef __cplusplus | |
9732 extern "C" | |
9733 # endif | |
9734 int F77_DUMMY_MAIN() { return 1; } | |
9735 #endif | |
40056 | 9736 int |
9737 main () | |
9738 { | |
9739 maillock (); | |
9740 ; | |
9741 return 0; | |
9742 } | |
9743 _ACEOF | |
9744 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 9745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9746 (eval $ac_link) 2>&5 | |
9747 ac_status=$? | |
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9749 (exit $ac_status); } && | |
9750 { ac_try='test -s conftest$ac_exeext' | |
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9752 (eval $ac_try) 2>&5 | |
9753 ac_status=$? | |
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9755 (exit $ac_status); }; }; then |
9756 ac_cv_lib_lockfile_maillock=yes | |
9757 else | |
9758 echo "$as_me: failed program was:" >&5 | |
9759 cat conftest.$ac_ext >&5 | |
9760 ac_cv_lib_lockfile_maillock=no | |
9761 fi | |
9762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9763 LIBS=$ac_check_lib_save_LIBS | |
9764 fi | |
44493 | 9765 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 |
40056 | 9766 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 |
9767 if test $ac_cv_lib_lockfile_maillock = yes; then | |
44493 | 9768 cat >>confdefs.h <<_ACEOF |
40056 | 9769 #define HAVE_LIBLOCKFILE 1 |
44493 | 9770 _ACEOF |
25897 | 9771 |
9772 LIBS="-llockfile $LIBS" | |
9773 | |
9774 fi | |
9775 | |
9776 # If we have the shared liblockfile, assume we must use it for mail | |
9777 # locking (e.g. Debian). If we couldn't link against liblockfile | |
9778 # (no liblockfile.a installed), ensure that we don't need to. | |
9779 if test "$ac_cv_lib_lockfile_maillock" = no; then | |
9780 # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
9781 set dummy liblockfile.so; ac_word=$2 | |
44493 | 9782 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 9783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
9784 if test "${ac_cv_prog_liblockfile+set}" = set; then | |
9785 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 9786 else |
9787 if test -n "$liblockfile"; then | |
9788 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
9789 else | |
44493 | 9790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9791 for as_dir in /usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH | |
9792 do | |
9793 IFS=$as_save_IFS | |
9794 test -z "$as_dir" && as_dir=. | |
9795 for ac_exec_ext in '' $ac_executable_extensions; do | |
9796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9797 ac_cv_prog_liblockfile="yes" | |
9798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9799 break 2 | |
9800 fi | |
9801 done | |
40056 | 9802 done |
9803 | |
25897 | 9804 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" |
9805 fi | |
9806 fi | |
40056 | 9807 liblockfile=$ac_cv_prog_liblockfile |
25897 | 9808 if test -n "$liblockfile"; then |
44493 | 9809 echo "$as_me:$LINENO: result: $liblockfile" >&5 |
40056 | 9810 echo "${ECHO_T}$liblockfile" >&6 |
9811 else | |
44493 | 9812 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 9813 echo "${ECHO_T}no" >&6 |
25897 | 9814 fi |
9815 | |
9816 if test $ac_cv_prog_liblockfile = yes; then | |
44493 | 9817 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. |
25897 | 9818 This probably means that movemail could lose mail. |
40056 | 9819 There may be a \`development' package to install containing liblockfile." >&5 |
9820 echo "$as_me: error: Shared liblockfile found but can't link against it. | |
9821 This probably means that movemail could lose mail. | |
9822 There may be a \`development' package to install containing liblockfile." >&2;} | |
9823 { (exit 1); exit 1; }; } | |
44493 | 9824 else cat >>confdefs.h <<\_ACEOF |
25897 | 9825 #define LIBMAIL -llockfile |
44493 | 9826 _ACEOF |
25897 | 9827 |
9828 fi | |
9829 else : | |
9830 fi | |
40056 | 9831 |
25897 | 9832 for ac_func in touchlock |
9833 do | |
40056 | 9834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44493 | 9835 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 9836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9837 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9838 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9839 else | |
9840 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 9841 #line $LINENO "configure" |
25897 | 9842 #include "confdefs.h" |
9843 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 9844 which can conflict with char $ac_func (); below. */ |
25897 | 9845 #include <assert.h> |
9846 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 9847 #ifdef __cplusplus |
9848 extern "C" | |
9849 #endif | |
25897 | 9850 /* We use char because int might match the return type of a gcc2 |
40056 | 9851 builtin and then its argument prototype would still apply. */ |
9852 char $ac_func (); | |
9853 char (*f) (); | |
9854 | |
44493 | 9855 #ifdef F77_DUMMY_MAIN |
9856 # ifdef __cplusplus | |
9857 extern "C" | |
9858 # endif | |
9859 int F77_DUMMY_MAIN() { return 1; } | |
9860 #endif | |
40056 | 9861 int |
9862 main () | |
9863 { | |
25897 | 9864 /* The GNU C library defines this for functions which it implements |
9865 to always fail with ENOSYS. Some functions are actually named | |
9866 something starting with __ and the normal name is an alias. */ | |
9867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9868 choke me | |
9869 #else | |
40056 | 9870 f = $ac_func; |
9871 #endif | |
9872 | |
9873 ; | |
9874 return 0; | |
9875 } | |
9876 _ACEOF | |
9877 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 9878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9879 (eval $ac_link) 2>&5 | |
9880 ac_status=$? | |
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9882 (exit $ac_status); } && | |
9883 { ac_try='test -s conftest$ac_exeext' | |
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9885 (eval $ac_try) 2>&5 | |
9886 ac_status=$? | |
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9888 (exit $ac_status); }; }; then |
9889 eval "$as_ac_var=yes" | |
9890 else | |
9891 echo "$as_me: failed program was:" >&5 | |
9892 cat conftest.$ac_ext >&5 | |
9893 eval "$as_ac_var=no" | |
9894 fi | |
9895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9896 fi | |
44493 | 9897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 9898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9899 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 9900 cat >>confdefs.h <<_ACEOF |
40056 | 9901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 9902 _ACEOF |
9903 | |
9904 fi | |
9905 done | |
9906 | |
25897 | 9907 |
44435 | 9908 for ac_header in maillock.h |
25897 | 9909 do |
40056 | 9910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 9911 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9912 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 9913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
9914 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9915 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 9916 fi |
9917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9919 else | |
9920 # Is the header compilable? | |
9921 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9923 cat >conftest.$ac_ext <<_ACEOF | |
9924 #line $LINENO "configure" | |
9925 #include "confdefs.h" | |
9926 $ac_includes_default | |
9927 #include <$ac_header> | |
9928 _ACEOF | |
9929 rm -f conftest.$ac_objext | |
9930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9931 (eval $ac_compile) 2>&5 | |
9932 ac_status=$? | |
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9934 (exit $ac_status); } && | |
9935 { ac_try='test -s conftest.$ac_objext' | |
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9937 (eval $ac_try) 2>&5 | |
9938 ac_status=$? | |
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9940 (exit $ac_status); }; }; then | |
9941 ac_header_compiler=yes | |
9942 else | |
9943 echo "$as_me: failed program was:" >&5 | |
9944 cat conftest.$ac_ext >&5 | |
9945 ac_header_compiler=no | |
9946 fi | |
9947 rm -f conftest.$ac_objext conftest.$ac_ext | |
9948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9949 echo "${ECHO_T}$ac_header_compiler" >&6 | |
9950 | |
9951 # Is the header present? | |
9952 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9954 cat >conftest.$ac_ext <<_ACEOF | |
9955 #line $LINENO "configure" | |
40056 | 9956 #include "confdefs.h" |
9957 #include <$ac_header> | |
9958 _ACEOF | |
44493 | 9959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 9960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9961 ac_status=$? | |
9962 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9963 rm -f conftest.er1 | |
9964 cat conftest.err >&5 | |
44493 | 9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 9966 (exit $ac_status); } >/dev/null; then |
9967 if test -s conftest.err; then | |
9968 ac_cpp_err=$ac_c_preproc_warn_flag | |
9969 else | |
9970 ac_cpp_err= | |
9971 fi | |
9972 else | |
9973 ac_cpp_err=yes | |
9974 fi | |
9975 if test -z "$ac_cpp_err"; then | |
44493 | 9976 ac_header_preproc=yes |
40056 | 9977 else |
9978 echo "$as_me: failed program was:" >&5 | |
25897 | 9979 cat conftest.$ac_ext >&5 |
44493 | 9980 ac_header_preproc=no |
40056 | 9981 fi |
9982 rm -f conftest.err conftest.$ac_ext | |
44493 | 9983 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9984 echo "${ECHO_T}$ac_header_preproc" >&6 | |
9985 | |
9986 # So? What about this header? | |
9987 case $ac_header_compiler:$ac_header_preproc in | |
9988 yes:no ) | |
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
9993 no:yes ) | |
9994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
10000 esac | |
10001 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10003 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10004 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10005 else | |
10006 eval "$as_ac_Header=$ac_header_preproc" | |
10007 fi | |
10008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 10009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 10010 |
10011 fi | |
40056 | 10012 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 10013 cat >>confdefs.h <<_ACEOF |
40056 | 10014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 10015 _ACEOF |
10016 | |
10017 fi | |
10018 | |
10019 done | |
10020 | |
10021 | |
10022 | |
10023 | |
10024 | |
10025 | |
10026 | |
10027 | |
10028 | |
10029 | |
10030 | |
10031 | |
10032 | |
10033 | |
10034 | |
10035 | |
10036 | |
10037 | |
10038 | |
10039 | |
10040 | |
10041 | |
10042 | |
10043 | |
10044 | |
10045 | |
10046 | |
10047 | |
10048 | |
10049 | |
10050 | |
10051 | |
10052 | |
10053 | |
10054 | |
10055 | |
10056 | |
10057 | |
10058 | |
10059 | |
10060 | |
10061 | |
10062 | |
10063 | |
10064 | |
10065 | |
10066 | |
10067 | |
10068 | |
10069 | |
10070 | |
10071 | |
10072 | |
10073 | |
10074 | |
10075 | |
25897 | 10076 |
44001
54ecf0606394
Manually edited to add checks for sendto, recvfrom, getsockopt, setsockopt,
Kim F. Storm <storm@cua.dk>
parents:
43924
diff
changeset
|
10077 for ac_func in gethostname getdomainname dup2 \ |
25897 | 10078 rename closedir mkdir rmdir sysinfo \ |
10079 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
10080 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
29733 | 10081 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
42401 | 10082 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
44001
54ecf0606394
Manually edited to add checks for sendto, recvfrom, getsockopt, setsockopt,
Kim F. Storm <storm@cua.dk>
parents:
43924
diff
changeset
|
10083 sendto recvfrom getsockopt setsockopt getsockname getpeername \ |
44493 | 10084 gai_strerror mkstemp getline getdelim |
25897 | 10085 do |
40056 | 10086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44493 | 10087 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 10088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10089 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10090 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10091 else | |
10092 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 10093 #line $LINENO "configure" |
25897 | 10094 #include "confdefs.h" |
10095 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 10096 which can conflict with char $ac_func (); below. */ |
25897 | 10097 #include <assert.h> |
10098 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 10099 #ifdef __cplusplus |
10100 extern "C" | |
10101 #endif | |
25897 | 10102 /* We use char because int might match the return type of a gcc2 |
40056 | 10103 builtin and then its argument prototype would still apply. */ |
10104 char $ac_func (); | |
10105 char (*f) (); | |
10106 | |
44493 | 10107 #ifdef F77_DUMMY_MAIN |
10108 # ifdef __cplusplus | |
10109 extern "C" | |
10110 # endif | |
10111 int F77_DUMMY_MAIN() { return 1; } | |
10112 #endif | |
40056 | 10113 int |
10114 main () | |
10115 { | |
25897 | 10116 /* The GNU C library defines this for functions which it implements |
10117 to always fail with ENOSYS. Some functions are actually named | |
10118 something starting with __ and the normal name is an alias. */ | |
10119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10120 choke me | |
10121 #else | |
40056 | 10122 f = $ac_func; |
10123 #endif | |
10124 | |
10125 ; | |
10126 return 0; | |
10127 } | |
10128 _ACEOF | |
10129 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 10130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10131 (eval $ac_link) 2>&5 | |
10132 ac_status=$? | |
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10134 (exit $ac_status); } && | |
10135 { ac_try='test -s conftest$ac_exeext' | |
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10137 (eval $ac_try) 2>&5 | |
10138 ac_status=$? | |
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 10140 (exit $ac_status); }; }; then |
10141 eval "$as_ac_var=yes" | |
10142 else | |
10143 echo "$as_me: failed program was:" >&5 | |
10144 cat conftest.$ac_ext >&5 | |
10145 eval "$as_ac_var=no" | |
10146 fi | |
10147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10148 fi | |
44493 | 10149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 10150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10151 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 10152 cat >>confdefs.h <<_ACEOF |
40056 | 10153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 10154 _ACEOF |
10155 | |
10156 fi | |
10157 done | |
10158 | |
10159 | |
25897 | 10160 |
44435 | 10161 for ac_header in sys/un.h |
28607 | 10162 do |
40056 | 10163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 10164 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10165 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 10166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10167 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10168 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 10169 fi |
10170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10172 else | |
10173 # Is the header compilable? | |
10174 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10176 cat >conftest.$ac_ext <<_ACEOF | |
10177 #line $LINENO "configure" | |
10178 #include "confdefs.h" | |
10179 $ac_includes_default | |
10180 #include <$ac_header> | |
10181 _ACEOF | |
10182 rm -f conftest.$ac_objext | |
10183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10184 (eval $ac_compile) 2>&5 | |
10185 ac_status=$? | |
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10187 (exit $ac_status); } && | |
10188 { ac_try='test -s conftest.$ac_objext' | |
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10190 (eval $ac_try) 2>&5 | |
10191 ac_status=$? | |
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10193 (exit $ac_status); }; }; then | |
10194 ac_header_compiler=yes | |
10195 else | |
10196 echo "$as_me: failed program was:" >&5 | |
10197 cat conftest.$ac_ext >&5 | |
10198 ac_header_compiler=no | |
10199 fi | |
10200 rm -f conftest.$ac_objext conftest.$ac_ext | |
10201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10202 echo "${ECHO_T}$ac_header_compiler" >&6 | |
10203 | |
10204 # Is the header present? | |
10205 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10207 cat >conftest.$ac_ext <<_ACEOF | |
10208 #line $LINENO "configure" | |
40056 | 10209 #include "confdefs.h" |
10210 #include <$ac_header> | |
10211 _ACEOF | |
44493 | 10212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 10213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10214 ac_status=$? | |
10215 egrep -v '^ *\+' conftest.er1 >conftest.err | |
10216 rm -f conftest.er1 | |
10217 cat conftest.err >&5 | |
44493 | 10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 10219 (exit $ac_status); } >/dev/null; then |
10220 if test -s conftest.err; then | |
10221 ac_cpp_err=$ac_c_preproc_warn_flag | |
10222 else | |
10223 ac_cpp_err= | |
10224 fi | |
10225 else | |
10226 ac_cpp_err=yes | |
10227 fi | |
10228 if test -z "$ac_cpp_err"; then | |
44493 | 10229 ac_header_preproc=yes |
40056 | 10230 else |
10231 echo "$as_me: failed program was:" >&5 | |
28607 | 10232 cat conftest.$ac_ext >&5 |
44493 | 10233 ac_header_preproc=no |
40056 | 10234 fi |
10235 rm -f conftest.err conftest.$ac_ext | |
44493 | 10236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10237 echo "${ECHO_T}$ac_header_preproc" >&6 | |
10238 | |
10239 # So? What about this header? | |
10240 case $ac_header_compiler:$ac_header_preproc in | |
10241 yes:no ) | |
10242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
10246 no:yes ) | |
10247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
10253 esac | |
10254 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10256 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10257 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10258 else | |
10259 eval "$as_ac_Header=$ac_header_preproc" | |
10260 fi | |
10261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
44435 | 10262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 10263 |
10264 fi | |
44435 | 10265 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 10266 cat >>confdefs.h <<_ACEOF |
44435 | 10267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 10268 _ACEOF |
10269 | |
10270 fi | |
10271 | |
10272 done | |
10273 | |
10274 | |
10275 | |
44435 | 10276 |
10277 for ac_header in sys/time.h unistd.h | |
10278 do | |
10279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
44493 | 10280 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10281 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
44435 | 10282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10283 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10284 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 10285 fi |
10286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10288 else | |
10289 # Is the header compilable? | |
10290 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10292 cat >conftest.$ac_ext <<_ACEOF | |
10293 #line $LINENO "configure" | |
10294 #include "confdefs.h" | |
10295 $ac_includes_default | |
10296 #include <$ac_header> | |
10297 _ACEOF | |
10298 rm -f conftest.$ac_objext | |
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10300 (eval $ac_compile) 2>&5 | |
10301 ac_status=$? | |
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10303 (exit $ac_status); } && | |
10304 { ac_try='test -s conftest.$ac_objext' | |
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10306 (eval $ac_try) 2>&5 | |
10307 ac_status=$? | |
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10309 (exit $ac_status); }; }; then | |
10310 ac_header_compiler=yes | |
10311 else | |
10312 echo "$as_me: failed program was:" >&5 | |
10313 cat conftest.$ac_ext >&5 | |
10314 ac_header_compiler=no | |
10315 fi | |
10316 rm -f conftest.$ac_objext conftest.$ac_ext | |
10317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10318 echo "${ECHO_T}$ac_header_compiler" >&6 | |
10319 | |
10320 # Is the header present? | |
10321 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10323 cat >conftest.$ac_ext <<_ACEOF | |
10324 #line $LINENO "configure" | |
44435 | 10325 #include "confdefs.h" |
10326 #include <$ac_header> | |
10327 _ACEOF | |
44493 | 10328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44435 | 10329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10330 ac_status=$? | |
10331 egrep -v '^ *\+' conftest.er1 >conftest.err | |
10332 rm -f conftest.er1 | |
10333 cat conftest.err >&5 | |
44493 | 10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44435 | 10335 (exit $ac_status); } >/dev/null; then |
10336 if test -s conftest.err; then | |
10337 ac_cpp_err=$ac_c_preproc_warn_flag | |
10338 else | |
10339 ac_cpp_err= | |
10340 fi | |
10341 else | |
10342 ac_cpp_err=yes | |
10343 fi | |
10344 if test -z "$ac_cpp_err"; then | |
44493 | 10345 ac_header_preproc=yes |
44435 | 10346 else |
10347 echo "$as_me: failed program was:" >&5 | |
10348 cat conftest.$ac_ext >&5 | |
44493 | 10349 ac_header_preproc=no |
44435 | 10350 fi |
10351 rm -f conftest.err conftest.$ac_ext | |
44493 | 10352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10353 echo "${ECHO_T}$ac_header_preproc" >&6 | |
10354 | |
10355 # So? What about this header? | |
10356 case $ac_header_compiler:$ac_header_preproc in | |
10357 yes:no ) | |
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
10362 no:yes ) | |
10363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
10369 esac | |
10370 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10372 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10373 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10374 else | |
10375 eval "$as_ac_Header=$ac_header_preproc" | |
10376 fi | |
10377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 10378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 10379 |
10380 fi | |
40056 | 10381 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 10382 cat >>confdefs.h <<_ACEOF |
40056 | 10383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 10384 _ACEOF |
10385 | |
10386 fi | |
10387 | |
10388 done | |
10389 | |
28607 | 10390 |
10391 for ac_func in alarm | |
10392 do | |
40056 | 10393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44493 | 10394 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 10395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10396 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10397 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10398 else | |
10399 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 10400 #line $LINENO "configure" |
28607 | 10401 #include "confdefs.h" |
10402 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 10403 which can conflict with char $ac_func (); below. */ |
28607 | 10404 #include <assert.h> |
10405 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 10406 #ifdef __cplusplus |
10407 extern "C" | |
10408 #endif | |
28607 | 10409 /* We use char because int might match the return type of a gcc2 |
40056 | 10410 builtin and then its argument prototype would still apply. */ |
10411 char $ac_func (); | |
10412 char (*f) (); | |
10413 | |
44493 | 10414 #ifdef F77_DUMMY_MAIN |
10415 # ifdef __cplusplus | |
10416 extern "C" | |
10417 # endif | |
10418 int F77_DUMMY_MAIN() { return 1; } | |
10419 #endif | |
40056 | 10420 int |
10421 main () | |
10422 { | |
28607 | 10423 /* The GNU C library defines this for functions which it implements |
10424 to always fail with ENOSYS. Some functions are actually named | |
10425 something starting with __ and the normal name is an alias. */ | |
10426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10427 choke me | |
10428 #else | |
40056 | 10429 f = $ac_func; |
10430 #endif | |
10431 | |
10432 ; | |
10433 return 0; | |
10434 } | |
10435 _ACEOF | |
10436 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 10437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10438 (eval $ac_link) 2>&5 | |
10439 ac_status=$? | |
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10441 (exit $ac_status); } && | |
10442 { ac_try='test -s conftest$ac_exeext' | |
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10444 (eval $ac_try) 2>&5 | |
10445 ac_status=$? | |
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 10447 (exit $ac_status); }; }; then |
10448 eval "$as_ac_var=yes" | |
10449 else | |
10450 echo "$as_me: failed program was:" >&5 | |
10451 cat conftest.$ac_ext >&5 | |
10452 eval "$as_ac_var=no" | |
10453 fi | |
10454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10455 fi | |
44493 | 10456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 10457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10458 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 10459 cat >>confdefs.h <<_ACEOF |
40056 | 10460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 10461 _ACEOF |
10462 | |
10463 fi | |
10464 done | |
10465 | |
10466 echo "$as_me:$LINENO: checking for working mktime" >&5 | |
40056 | 10467 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 |
10468 if test "${ac_cv_func_working_mktime+set}" = set; then | |
10469 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28607 | 10470 else |
10471 if test "$cross_compiling" = yes; then | |
10472 ac_cv_func_working_mktime=no | |
10473 else | |
40056 | 10474 cat >conftest.$ac_ext <<_ACEOF |
44493 | 10475 #line $LINENO "configure" |
40056 | 10476 #include "confdefs.h" |
10477 /* Test program from Paul Eggert and Tony Leneis. */ | |
28607 | 10478 #if TIME_WITH_SYS_TIME |
10479 # include <sys/time.h> | |
10480 # include <time.h> | |
10481 #else | |
10482 # if HAVE_SYS_TIME_H | |
10483 # include <sys/time.h> | |
10484 # else | |
10485 # include <time.h> | |
10486 # endif | |
10487 #endif | |
10488 | |
10489 #if HAVE_UNISTD_H | |
10490 # include <unistd.h> | |
10491 #endif | |
10492 | |
10493 #if !HAVE_ALARM | |
10494 # define alarm(X) /* empty */ | |
10495 #endif | |
10496 | |
10497 /* Work around redefinition to rpl_putenv by other config tests. */ | |
10498 #undef putenv | |
10499 | |
10500 static time_t time_t_max; | |
10501 | |
10502 /* Values we'll use to set the TZ environment variable. */ | |
10503 static const char *const tz_strings[] = { | |
10504 (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
10505 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
10506 }; | |
10507 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
10508 | |
10509 /* Fail if mktime fails to convert a date in the spring-forward gap. | |
10510 Based on a problem report from Andreas Jaeger. */ | |
10511 static void | |
10512 spring_forward_gap () | |
10513 { | |
40056 | 10514 /* glibc (up to about 1998-10-07) failed this test. */ |
28607 | 10515 struct tm tm; |
10516 | |
10517 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
10518 instead of "TZ=America/Vancouver" in order to detect the bug even | |
10519 on systems that don't support the Olson extension, or don't have the | |
10520 full zoneinfo tables installed. */ | |
10521 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
10522 | |
10523 tm.tm_year = 98; | |
10524 tm.tm_mon = 3; | |
10525 tm.tm_mday = 5; | |
10526 tm.tm_hour = 2; | |
10527 tm.tm_min = 0; | |
10528 tm.tm_sec = 0; | |
10529 tm.tm_isdst = -1; | |
10530 if (mktime (&tm) == (time_t)-1) | |
10531 exit (1); | |
10532 } | |
10533 | |
10534 static void | |
10535 mktime_test (now) | |
10536 time_t now; | |
10537 { | |
10538 struct tm *lt; | |
10539 if ((lt = localtime (&now)) && mktime (lt) != now) | |
10540 exit (1); | |
10541 now = time_t_max - now; | |
10542 if ((lt = localtime (&now)) && mktime (lt) != now) | |
10543 exit (1); | |
10544 } | |
10545 | |
10546 static void | |
10547 irix_6_4_bug () | |
10548 { | |
10549 /* Based on code from Ariel Faigon. */ | |
10550 struct tm tm; | |
10551 tm.tm_year = 96; | |
10552 tm.tm_mon = 3; | |
10553 tm.tm_mday = 0; | |
10554 tm.tm_hour = 0; | |
10555 tm.tm_min = 0; | |
10556 tm.tm_sec = 0; | |
10557 tm.tm_isdst = -1; | |
10558 mktime (&tm); | |
10559 if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
10560 exit (1); | |
10561 } | |
10562 | |
10563 static void | |
10564 bigtime_test (j) | |
10565 int j; | |
10566 { | |
10567 struct tm tm; | |
10568 time_t now; | |
10569 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
10570 now = mktime (&tm); | |
10571 if (now != (time_t) -1) | |
10572 { | |
10573 struct tm *lt = localtime (&now); | |
10574 if (! (lt | |
10575 && lt->tm_year == tm.tm_year | |
10576 && lt->tm_mon == tm.tm_mon | |
10577 && lt->tm_mday == tm.tm_mday | |
10578 && lt->tm_hour == tm.tm_hour | |
10579 && lt->tm_min == tm.tm_min | |
10580 && lt->tm_sec == tm.tm_sec | |
10581 && lt->tm_yday == tm.tm_yday | |
10582 && lt->tm_wday == tm.tm_wday | |
10583 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
10584 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
10585 exit (1); | |
10586 } | |
10587 } | |
10588 | |
10589 int | |
10590 main () | |
10591 { | |
10592 time_t t, delta; | |
10593 int i, j; | |
10594 | |
10595 /* This test makes some buggy mktime implementations loop. | |
10596 Give up after 60 seconds; a mktime slower than that | |
10597 isn't worth using anyway. */ | |
10598 alarm (60); | |
10599 | |
10600 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
10601 continue; | |
10602 time_t_max--; | |
10603 delta = time_t_max / 997; /* a suitable prime number */ | |
10604 for (i = 0; i < N_STRINGS; i++) | |
10605 { | |
10606 if (tz_strings[i]) | |
10607 putenv (tz_strings[i]); | |
10608 | |
10609 for (t = 0; t <= time_t_max - delta; t += delta) | |
10610 mktime_test (t); | |
10611 mktime_test ((time_t) 60 * 60); | |
10612 mktime_test ((time_t) 60 * 60 * 24); | |
10613 | |
10614 for (j = 1; 0 < j; j *= 2) | |
10615 bigtime_test (j); | |
10616 bigtime_test (j - 1); | |
10617 } | |
10618 irix_6_4_bug (); | |
10619 spring_forward_gap (); | |
10620 exit (0); | |
10621 } | |
40056 | 10622 _ACEOF |
10623 rm -f conftest$ac_exeext | |
44493 | 10624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10625 (eval $ac_link) 2>&5 | |
10626 ac_status=$? | |
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 10628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
44493 | 10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10630 (eval $ac_try) 2>&5 | |
10631 ac_status=$? | |
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 10633 (exit $ac_status); }; }; then |
28607 | 10634 ac_cv_func_working_mktime=yes |
10635 else | |
40056 | 10636 echo "$as_me: program exited with status $ac_status" >&5 |
10637 echo "$as_me: failed program was:" >&5 | |
10638 cat conftest.$ac_ext >&5 | |
44493 | 10639 ( exit $ac_status ) |
40056 | 10640 ac_cv_func_working_mktime=no |
10641 fi | |
10642 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10643 fi | |
10644 fi | |
44493 | 10645 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
40056 | 10646 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 |
28607 | 10647 if test $ac_cv_func_working_mktime = no; then |
40056 | 10648 LIBOBJS="$LIBOBJS mktime.$ac_objext" |
28607 | 10649 fi |
10650 | |
10651 if test "$ac_cv_func_working_mktime" = no; then | |
44493 | 10652 cat >>confdefs.h <<\_ACEOF |
28607 | 10653 #define BROKEN_MKTIME 1 |
44493 | 10654 _ACEOF |
28607 | 10655 |
10656 fi | |
10657 | |
29834 | 10658 ac_have_func=no # yes means we've found a way to get the load average. |
10659 | |
40056 | 10660 ac_save_LIBS=$LIBS |
10661 | |
10662 # Check for getloadavg, but be sure not to touch the cache variable. | |
44493 | 10663 (echo "$as_me:$LINENO: checking for getloadavg" >&5 |
40056 | 10664 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 |
10665 if test "${ac_cv_func_getloadavg+set}" = set; then | |
10666 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10667 else | |
10668 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 10669 #line $LINENO "configure" |
40056 | 10670 #include "confdefs.h" |
10671 /* System header to define __stub macros and hopefully few prototypes, | |
10672 which can conflict with char getloadavg (); below. */ | |
10673 #include <assert.h> | |
10674 /* Override any gcc2 internal prototype to avoid an error. */ | |
10675 #ifdef __cplusplus | |
10676 extern "C" | |
10677 #endif | |
10678 /* We use char because int might match the return type of a gcc2 | |
10679 builtin and then its argument prototype would still apply. */ | |
10680 char getloadavg (); | |
10681 char (*f) (); | |
10682 | |
44493 | 10683 #ifdef F77_DUMMY_MAIN |
10684 # ifdef __cplusplus | |
10685 extern "C" | |
10686 # endif | |
10687 int F77_DUMMY_MAIN() { return 1; } | |
10688 #endif | |
40056 | 10689 int |
10690 main () | |
10691 { | |
10692 /* The GNU C library defines this for functions which it implements | |
10693 to always fail with ENOSYS. Some functions are actually named | |
10694 something starting with __ and the normal name is an alias. */ | |
10695 #if defined (__stub_getloadavg) || defined (__stub___getloadavg) | |
10696 choke me | |
10697 #else | |
10698 f = getloadavg; | |
10699 #endif | |
10700 | |
10701 ; | |
10702 return 0; | |
10703 } | |
10704 _ACEOF | |
10705 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 10706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10707 (eval $ac_link) 2>&5 | |
10708 ac_status=$? | |
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10710 (exit $ac_status); } && | |
10711 { ac_try='test -s conftest$ac_exeext' | |
10712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10713 (eval $ac_try) 2>&5 | |
10714 ac_status=$? | |
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 10716 (exit $ac_status); }; }; then |
10717 ac_cv_func_getloadavg=yes | |
10718 else | |
10719 echo "$as_me: failed program was:" >&5 | |
10720 cat conftest.$ac_ext >&5 | |
10721 ac_cv_func_getloadavg=no | |
10722 fi | |
10723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10724 fi | |
44493 | 10725 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 |
40056 | 10726 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 |
10727 if test $ac_cv_func_getloadavg = yes; then | |
10728 exit 0 | |
10729 else | |
10730 exit 1 | |
10731 fi | |
10732 ) && ac_have_func=yes | |
10733 | |
10734 # On HPUX9, an unprivileged user can get load averages through this function. | |
10735 | |
10736 for ac_func in pstat_getdynamic | |
10737 do | |
10738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44493 | 10739 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 10740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10741 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10742 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10743 else | |
10744 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 10745 #line $LINENO "configure" |
40056 | 10746 #include "confdefs.h" |
10747 /* System header to define __stub macros and hopefully few prototypes, | |
10748 which can conflict with char $ac_func (); below. */ | |
10749 #include <assert.h> | |
10750 /* Override any gcc2 internal prototype to avoid an error. */ | |
10751 #ifdef __cplusplus | |
10752 extern "C" | |
10753 #endif | |
10754 /* We use char because int might match the return type of a gcc2 | |
10755 builtin and then its argument prototype would still apply. */ | |
10756 char $ac_func (); | |
10757 char (*f) (); | |
10758 | |
44493 | 10759 #ifdef F77_DUMMY_MAIN |
10760 # ifdef __cplusplus | |
10761 extern "C" | |
10762 # endif | |
10763 int F77_DUMMY_MAIN() { return 1; } | |
10764 #endif | |
40056 | 10765 int |
10766 main () | |
10767 { | |
10768 /* The GNU C library defines this for functions which it implements | |
10769 to always fail with ENOSYS. Some functions are actually named | |
10770 something starting with __ and the normal name is an alias. */ | |
10771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10772 choke me | |
10773 #else | |
10774 f = $ac_func; | |
10775 #endif | |
10776 | |
10777 ; | |
10778 return 0; | |
10779 } | |
10780 _ACEOF | |
10781 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 10782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10783 (eval $ac_link) 2>&5 | |
10784 ac_status=$? | |
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10786 (exit $ac_status); } && | |
10787 { ac_try='test -s conftest$ac_exeext' | |
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10789 (eval $ac_try) 2>&5 | |
10790 ac_status=$? | |
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 10792 (exit $ac_status); }; }; then |
10793 eval "$as_ac_var=yes" | |
10794 else | |
10795 echo "$as_me: failed program was:" >&5 | |
10796 cat conftest.$ac_ext >&5 | |
10797 eval "$as_ac_var=no" | |
10798 fi | |
10799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10800 fi | |
44493 | 10801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 10802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10803 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 10804 cat >>confdefs.h <<_ACEOF |
40056 | 10805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 10806 _ACEOF |
10807 | |
10808 fi | |
10809 done | |
10810 | |
40056 | 10811 |
10812 # Solaris has libkstat which does not require root. | |
10813 | |
44493 | 10814 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 |
40056 | 10815 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 |
10816 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
10817 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10818 else | |
10819 ac_check_lib_save_LIBS=$LIBS | |
10820 LIBS="-lkstat $LIBS" | |
10821 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 10822 #line $LINENO "configure" |
40056 | 10823 #include "confdefs.h" |
10824 | |
10825 /* Override any gcc2 internal prototype to avoid an error. */ | |
10826 #ifdef __cplusplus | |
10827 extern "C" | |
10828 #endif | |
10829 /* We use char because int might match the return type of a gcc2 | |
10830 builtin and then its argument prototype would still apply. */ | |
10831 char kstat_open (); | |
44493 | 10832 #ifdef F77_DUMMY_MAIN |
10833 # ifdef __cplusplus | |
10834 extern "C" | |
10835 # endif | |
10836 int F77_DUMMY_MAIN() { return 1; } | |
10837 #endif | |
40056 | 10838 int |
10839 main () | |
10840 { | |
10841 kstat_open (); | |
10842 ; | |
10843 return 0; | |
10844 } | |
10845 _ACEOF | |
10846 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 10847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10848 (eval $ac_link) 2>&5 | |
10849 ac_status=$? | |
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10851 (exit $ac_status); } && | |
10852 { ac_try='test -s conftest$ac_exeext' | |
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10854 (eval $ac_try) 2>&5 | |
10855 ac_status=$? | |
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 10857 (exit $ac_status); }; }; then |
10858 ac_cv_lib_kstat_kstat_open=yes | |
10859 else | |
10860 echo "$as_me: failed program was:" >&5 | |
10861 cat conftest.$ac_ext >&5 | |
10862 ac_cv_lib_kstat_kstat_open=no | |
10863 fi | |
10864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10865 LIBS=$ac_check_lib_save_LIBS | |
10866 fi | |
44493 | 10867 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 |
40056 | 10868 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 |
10869 if test $ac_cv_lib_kstat_kstat_open = yes; then | |
44493 | 10870 cat >>confdefs.h <<_ACEOF |
40056 | 10871 #define HAVE_LIBKSTAT 1 |
44493 | 10872 _ACEOF |
40056 | 10873 |
10874 LIBS="-lkstat $LIBS" | |
10875 | |
10876 fi | |
10877 | |
10878 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes | |
10879 | |
29834 | 10880 # Some systems with -lutil have (and need) -lkvm as well, some do not. |
10881 # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
10882 # to get the right answer into the cache. | |
40056 | 10883 # For kstat on solaris, we need libelf to force the definition of SVR4 below. |
10884 if test $ac_have_func = no; then | |
44493 | 10885 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
40056 | 10886 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
10887 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
10888 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10889 else | |
10890 ac_check_lib_save_LIBS=$LIBS | |
29834 | 10891 LIBS="-lelf $LIBS" |
40056 | 10892 cat >conftest.$ac_ext <<_ACEOF |
44493 | 10893 #line $LINENO "configure" |
40056 | 10894 #include "confdefs.h" |
10895 | |
29834 | 10896 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10897 #ifdef __cplusplus |
10898 extern "C" | |
10899 #endif | |
29834 | 10900 /* We use char because int might match the return type of a gcc2 |
40056 | 10901 builtin and then its argument prototype would still apply. */ |
10902 char elf_begin (); | |
44493 | 10903 #ifdef F77_DUMMY_MAIN |
10904 # ifdef __cplusplus | |
10905 extern "C" | |
10906 # endif | |
10907 int F77_DUMMY_MAIN() { return 1; } | |
10908 #endif | |
40056 | 10909 int |
10910 main () | |
10911 { | |
10912 elf_begin (); | |
10913 ; | |
10914 return 0; | |
10915 } | |
10916 _ACEOF | |
10917 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 10918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10919 (eval $ac_link) 2>&5 | |
10920 ac_status=$? | |
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10922 (exit $ac_status); } && | |
10923 { ac_try='test -s conftest$ac_exeext' | |
10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10925 (eval $ac_try) 2>&5 | |
10926 ac_status=$? | |
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 10928 (exit $ac_status); }; }; then |
10929 ac_cv_lib_elf_elf_begin=yes | |
10930 else | |
10931 echo "$as_me: failed program was:" >&5 | |
10932 cat conftest.$ac_ext >&5 | |
10933 ac_cv_lib_elf_elf_begin=no | |
10934 fi | |
10935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10936 LIBS=$ac_check_lib_save_LIBS | |
10937 fi | |
44493 | 10938 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
40056 | 10939 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
10940 if test $ac_cv_lib_elf_elf_begin = yes; then | |
29834 | 10941 LIBS="-lelf $LIBS" |
40056 | 10942 fi |
10943 | |
10944 fi | |
10945 if test $ac_have_func = no; then | |
44493 | 10946 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 |
40056 | 10947 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 |
10948 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
10949 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10950 else | |
10951 ac_check_lib_save_LIBS=$LIBS | |
29834 | 10952 LIBS="-lkvm $LIBS" |
40056 | 10953 cat >conftest.$ac_ext <<_ACEOF |
44493 | 10954 #line $LINENO "configure" |
40056 | 10955 #include "confdefs.h" |
10956 | |
29834 | 10957 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 10958 #ifdef __cplusplus |
10959 extern "C" | |
10960 #endif | |
29834 | 10961 /* We use char because int might match the return type of a gcc2 |
40056 | 10962 builtin and then its argument prototype would still apply. */ |
10963 char kvm_open (); | |
44493 | 10964 #ifdef F77_DUMMY_MAIN |
10965 # ifdef __cplusplus | |
10966 extern "C" | |
10967 # endif | |
10968 int F77_DUMMY_MAIN() { return 1; } | |
10969 #endif | |
40056 | 10970 int |
10971 main () | |
10972 { | |
10973 kvm_open (); | |
10974 ; | |
10975 return 0; | |
10976 } | |
10977 _ACEOF | |
10978 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 10979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10980 (eval $ac_link) 2>&5 | |
10981 ac_status=$? | |
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10983 (exit $ac_status); } && | |
10984 { ac_try='test -s conftest$ac_exeext' | |
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10986 (eval $ac_try) 2>&5 | |
10987 ac_status=$? | |
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 10989 (exit $ac_status); }; }; then |
10990 ac_cv_lib_kvm_kvm_open=yes | |
10991 else | |
10992 echo "$as_me: failed program was:" >&5 | |
10993 cat conftest.$ac_ext >&5 | |
10994 ac_cv_lib_kvm_kvm_open=no | |
10995 fi | |
10996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10997 LIBS=$ac_check_lib_save_LIBS | |
10998 fi | |
44493 | 10999 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 |
40056 | 11000 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 |
11001 if test $ac_cv_lib_kvm_kvm_open = yes; then | |
29834 | 11002 LIBS="-lkvm $LIBS" |
40056 | 11003 fi |
11004 | |
11005 # Check for the 4.4BSD definition of getloadavg. | |
44493 | 11006 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 |
40056 | 11007 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 |
11008 if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
11009 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11010 else | |
11011 ac_check_lib_save_LIBS=$LIBS | |
29834 | 11012 LIBS="-lutil $LIBS" |
40056 | 11013 cat >conftest.$ac_ext <<_ACEOF |
44493 | 11014 #line $LINENO "configure" |
40056 | 11015 #include "confdefs.h" |
11016 | |
29834 | 11017 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 11018 #ifdef __cplusplus |
11019 extern "C" | |
11020 #endif | |
29834 | 11021 /* We use char because int might match the return type of a gcc2 |
40056 | 11022 builtin and then its argument prototype would still apply. */ |
11023 char getloadavg (); | |
44493 | 11024 #ifdef F77_DUMMY_MAIN |
11025 # ifdef __cplusplus | |
11026 extern "C" | |
11027 # endif | |
11028 int F77_DUMMY_MAIN() { return 1; } | |
11029 #endif | |
40056 | 11030 int |
11031 main () | |
11032 { | |
11033 getloadavg (); | |
11034 ; | |
11035 return 0; | |
11036 } | |
11037 _ACEOF | |
11038 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 11039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11040 (eval $ac_link) 2>&5 | |
11041 ac_status=$? | |
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11043 (exit $ac_status); } && | |
11044 { ac_try='test -s conftest$ac_exeext' | |
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11046 (eval $ac_try) 2>&5 | |
11047 ac_status=$? | |
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 11049 (exit $ac_status); }; }; then |
11050 ac_cv_lib_util_getloadavg=yes | |
11051 else | |
11052 echo "$as_me: failed program was:" >&5 | |
11053 cat conftest.$ac_ext >&5 | |
11054 ac_cv_lib_util_getloadavg=no | |
11055 fi | |
11056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11057 LIBS=$ac_check_lib_save_LIBS | |
11058 fi | |
44493 | 11059 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 |
40056 | 11060 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 |
11061 if test $ac_cv_lib_util_getloadavg = yes; then | |
29834 | 11062 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes |
40056 | 11063 fi |
11064 | |
11065 fi | |
29834 | 11066 |
11067 if test $ac_have_func = no; then | |
11068 # There is a commonly available library for RS/6000 AIX. | |
11069 # Since it is not a standard part of AIX, it might be installed locally. | |
40056 | 11070 ac_getloadavg_LIBS=$LIBS |
11071 LIBS="-L/usr/local/lib $LIBS" | |
44493 | 11072 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 |
40056 | 11073 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 |
11074 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
11075 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11076 else | |
11077 ac_check_lib_save_LIBS=$LIBS | |
29834 | 11078 LIBS="-lgetloadavg $LIBS" |
40056 | 11079 cat >conftest.$ac_ext <<_ACEOF |
44493 | 11080 #line $LINENO "configure" |
40056 | 11081 #include "confdefs.h" |
11082 | |
29834 | 11083 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 11084 #ifdef __cplusplus |
11085 extern "C" | |
11086 #endif | |
29834 | 11087 /* We use char because int might match the return type of a gcc2 |
40056 | 11088 builtin and then its argument prototype would still apply. */ |
11089 char getloadavg (); | |
44493 | 11090 #ifdef F77_DUMMY_MAIN |
11091 # ifdef __cplusplus | |
11092 extern "C" | |
11093 # endif | |
11094 int F77_DUMMY_MAIN() { return 1; } | |
11095 #endif | |
40056 | 11096 int |
11097 main () | |
11098 { | |
11099 getloadavg (); | |
11100 ; | |
11101 return 0; | |
11102 } | |
11103 _ACEOF | |
11104 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 11105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11106 (eval $ac_link) 2>&5 | |
11107 ac_status=$? | |
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11109 (exit $ac_status); } && | |
11110 { ac_try='test -s conftest$ac_exeext' | |
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11112 (eval $ac_try) 2>&5 | |
11113 ac_status=$? | |
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 11115 (exit $ac_status); }; }; then |
11116 ac_cv_lib_getloadavg_getloadavg=yes | |
11117 else | |
11118 echo "$as_me: failed program was:" >&5 | |
11119 cat conftest.$ac_ext >&5 | |
11120 ac_cv_lib_getloadavg_getloadavg=no | |
11121 fi | |
11122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11123 LIBS=$ac_check_lib_save_LIBS | |
11124 fi | |
44493 | 11125 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
11126 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 | |
11127 if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
11128 LIBS="-lgetloadavg $LIBS" | |
11129 else | |
11130 LIBS=$ac_getloadavg_LIBS | |
11131 fi | |
11132 | |
11133 fi | |
11134 | |
11135 # Make sure it is really in the library, if we think we found it, | |
11136 # otherwise set up the replacement function. | |
11137 | |
11138 for ac_func in getloadavg | |
11139 do | |
11140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11141 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11143 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11144 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11145 else | |
11146 cat >conftest.$ac_ext <<_ACEOF | |
11147 #line $LINENO "configure" | |
11148 #include "confdefs.h" | |
11149 /* System header to define __stub macros and hopefully few prototypes, | |
11150 which can conflict with char $ac_func (); below. */ | |
11151 #include <assert.h> | |
11152 /* Override any gcc2 internal prototype to avoid an error. */ | |
11153 #ifdef __cplusplus | |
11154 extern "C" | |
11155 #endif | |
11156 /* We use char because int might match the return type of a gcc2 | |
11157 builtin and then its argument prototype would still apply. */ | |
11158 char $ac_func (); | |
11159 char (*f) (); | |
11160 | |
11161 #ifdef F77_DUMMY_MAIN | |
11162 # ifdef __cplusplus | |
11163 extern "C" | |
11164 # endif | |
11165 int F77_DUMMY_MAIN() { return 1; } | |
11166 #endif | |
11167 int | |
11168 main () | |
11169 { | |
11170 /* The GNU C library defines this for functions which it implements | |
11171 to always fail with ENOSYS. Some functions are actually named | |
11172 something starting with __ and the normal name is an alias. */ | |
11173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11174 choke me | |
11175 #else | |
11176 f = $ac_func; | |
11177 #endif | |
11178 | |
11179 ; | |
11180 return 0; | |
11181 } | |
11182 _ACEOF | |
11183 rm -f conftest.$ac_objext conftest$ac_exeext | |
11184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11185 (eval $ac_link) 2>&5 | |
11186 ac_status=$? | |
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11188 (exit $ac_status); } && | |
11189 { ac_try='test -s conftest$ac_exeext' | |
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11191 (eval $ac_try) 2>&5 | |
11192 ac_status=$? | |
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11194 (exit $ac_status); }; }; then | |
11195 eval "$as_ac_var=yes" | |
11196 else | |
11197 echo "$as_me: failed program was:" >&5 | |
11198 cat conftest.$ac_ext >&5 | |
11199 eval "$as_ac_var=no" | |
11200 fi | |
11201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11202 fi | |
11203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
11204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
11205 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11206 cat >>confdefs.h <<_ACEOF | |
11207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11208 _ACEOF | |
11209 | |
11210 else | |
11211 LIBOBJS="$LIBOBJS getloadavg.$ac_objext" | |
11212 | |
11213 cat >>confdefs.h <<\_ACEOF | |
11214 #define C_GETLOADAVG 1 | |
11215 _ACEOF | |
11216 | |
11217 # Figure out what our getloadavg.c needs. | |
11218 ac_have_func=no | |
11219 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
11220 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
11221 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 | |
11222 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
11223 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11224 fi | |
11225 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
11226 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 | |
11227 else | |
11228 # Is the header compilable? | |
11229 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 | |
11230 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6 | |
11231 cat >conftest.$ac_ext <<_ACEOF | |
11232 #line $LINENO "configure" | |
11233 #include "confdefs.h" | |
11234 $ac_includes_default | |
11235 #include <sys/dg_sys_info.h> | |
11236 _ACEOF | |
11237 rm -f conftest.$ac_objext | |
11238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11239 (eval $ac_compile) 2>&5 | |
11240 ac_status=$? | |
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11242 (exit $ac_status); } && | |
11243 { ac_try='test -s conftest.$ac_objext' | |
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11245 (eval $ac_try) 2>&5 | |
11246 ac_status=$? | |
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11248 (exit $ac_status); }; }; then | |
11249 ac_header_compiler=yes | |
11250 else | |
11251 echo "$as_me: failed program was:" >&5 | |
11252 cat conftest.$ac_ext >&5 | |
11253 ac_header_compiler=no | |
11254 fi | |
11255 rm -f conftest.$ac_objext conftest.$ac_ext | |
11256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11257 echo "${ECHO_T}$ac_header_compiler" >&6 | |
11258 | |
11259 # Is the header present? | |
11260 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 | |
11261 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6 | |
11262 cat >conftest.$ac_ext <<_ACEOF | |
11263 #line $LINENO "configure" | |
11264 #include "confdefs.h" | |
11265 #include <sys/dg_sys_info.h> | |
11266 _ACEOF | |
11267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11269 ac_status=$? | |
11270 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11271 rm -f conftest.er1 | |
11272 cat conftest.err >&5 | |
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11274 (exit $ac_status); } >/dev/null; then | |
11275 if test -s conftest.err; then | |
11276 ac_cpp_err=$ac_c_preproc_warn_flag | |
11277 else | |
11278 ac_cpp_err= | |
11279 fi | |
11280 else | |
11281 ac_cpp_err=yes | |
11282 fi | |
11283 if test -z "$ac_cpp_err"; then | |
11284 ac_header_preproc=yes | |
11285 else | |
11286 echo "$as_me: failed program was:" >&5 | |
11287 cat conftest.$ac_ext >&5 | |
11288 ac_header_preproc=no | |
11289 fi | |
11290 rm -f conftest.err conftest.$ac_ext | |
11291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11292 echo "${ECHO_T}$ac_header_preproc" >&6 | |
11293 | |
11294 # So? What about this header? | |
11295 case $ac_header_compiler:$ac_header_preproc in | |
11296 yes:no ) | |
11297 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11298 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11299 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 | |
11300 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};; | |
11301 no:yes ) | |
11302 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 | |
11303 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
11304 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 | |
11305 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
11306 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 | |
11307 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};; | |
11308 esac | |
11309 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
11310 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 | |
11311 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
11312 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11313 else | |
11314 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
11315 fi | |
11316 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
11317 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 | |
11318 | |
11319 fi | |
11320 if test $ac_cv_header_sys_dg_sys_info_h = yes; then | |
11321 ac_have_func=yes | |
11322 | |
11323 cat >>confdefs.h <<\_ACEOF | |
11324 #define DGUX 1 | |
11325 _ACEOF | |
11326 | |
11327 | |
11328 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 | |
11329 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 | |
11330 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
11331 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11332 else | |
11333 ac_check_lib_save_LIBS=$LIBS | |
11334 LIBS="-ldgc $LIBS" | |
11335 cat >conftest.$ac_ext <<_ACEOF | |
11336 #line $LINENO "configure" | |
11337 #include "confdefs.h" | |
11338 | |
11339 /* Override any gcc2 internal prototype to avoid an error. */ | |
11340 #ifdef __cplusplus | |
11341 extern "C" | |
11342 #endif | |
11343 /* We use char because int might match the return type of a gcc2 | |
11344 builtin and then its argument prototype would still apply. */ | |
11345 char dg_sys_info (); | |
11346 #ifdef F77_DUMMY_MAIN | |
11347 # ifdef __cplusplus | |
11348 extern "C" | |
11349 # endif | |
11350 int F77_DUMMY_MAIN() { return 1; } | |
11351 #endif | |
11352 int | |
11353 main () | |
11354 { | |
11355 dg_sys_info (); | |
11356 ; | |
11357 return 0; | |
11358 } | |
11359 _ACEOF | |
11360 rm -f conftest.$ac_objext conftest$ac_exeext | |
11361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11362 (eval $ac_link) 2>&5 | |
11363 ac_status=$? | |
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11365 (exit $ac_status); } && | |
11366 { ac_try='test -s conftest$ac_exeext' | |
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11368 (eval $ac_try) 2>&5 | |
11369 ac_status=$? | |
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11371 (exit $ac_status); }; }; then | |
11372 ac_cv_lib_dgc_dg_sys_info=yes | |
11373 else | |
11374 echo "$as_me: failed program was:" >&5 | |
11375 cat conftest.$ac_ext >&5 | |
11376 ac_cv_lib_dgc_dg_sys_info=no | |
11377 fi | |
11378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11379 LIBS=$ac_check_lib_save_LIBS | |
11380 fi | |
11381 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 | |
11382 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 | |
11383 if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
11384 cat >>confdefs.h <<_ACEOF | |
11385 #define HAVE_LIBDGC 1 | |
11386 _ACEOF | |
11387 | |
11388 LIBS="-ldgc $LIBS" | |
11389 | |
11390 fi | |
11391 | |
11392 fi | |
11393 | |
11394 | |
11395 | |
11396 if test "${ac_cv_header_locale_h+set}" = set; then | |
11397 echo "$as_me:$LINENO: checking for locale.h" >&5 | |
11398 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 | |
11399 if test "${ac_cv_header_locale_h+set}" = set; then | |
11400 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11401 fi | |
11402 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
11403 echo "${ECHO_T}$ac_cv_header_locale_h" >&6 | |
11404 else | |
11405 # Is the header compilable? | |
11406 echo "$as_me:$LINENO: checking locale.h usability" >&5 | |
11407 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6 | |
11408 cat >conftest.$ac_ext <<_ACEOF | |
11409 #line $LINENO "configure" | |
11410 #include "confdefs.h" | |
11411 $ac_includes_default | |
11412 #include <locale.h> | |
11413 _ACEOF | |
11414 rm -f conftest.$ac_objext | |
11415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11416 (eval $ac_compile) 2>&5 | |
11417 ac_status=$? | |
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11419 (exit $ac_status); } && | |
11420 { ac_try='test -s conftest.$ac_objext' | |
11421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11422 (eval $ac_try) 2>&5 | |
11423 ac_status=$? | |
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11425 (exit $ac_status); }; }; then | |
11426 ac_header_compiler=yes | |
11427 else | |
11428 echo "$as_me: failed program was:" >&5 | |
11429 cat conftest.$ac_ext >&5 | |
11430 ac_header_compiler=no | |
11431 fi | |
11432 rm -f conftest.$ac_objext conftest.$ac_ext | |
11433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11434 echo "${ECHO_T}$ac_header_compiler" >&6 | |
11435 | |
11436 # Is the header present? | |
11437 echo "$as_me:$LINENO: checking locale.h presence" >&5 | |
11438 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6 | |
11439 cat >conftest.$ac_ext <<_ACEOF | |
11440 #line $LINENO "configure" | |
11441 #include "confdefs.h" | |
11442 #include <locale.h> | |
11443 _ACEOF | |
11444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11446 ac_status=$? | |
11447 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11448 rm -f conftest.er1 | |
11449 cat conftest.err >&5 | |
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11451 (exit $ac_status); } >/dev/null; then | |
11452 if test -s conftest.err; then | |
11453 ac_cpp_err=$ac_c_preproc_warn_flag | |
11454 else | |
11455 ac_cpp_err= | |
11456 fi | |
11457 else | |
11458 ac_cpp_err=yes | |
11459 fi | |
11460 if test -z "$ac_cpp_err"; then | |
11461 ac_header_preproc=yes | |
11462 else | |
11463 echo "$as_me: failed program was:" >&5 | |
11464 cat conftest.$ac_ext >&5 | |
11465 ac_header_preproc=no | |
11466 fi | |
11467 rm -f conftest.err conftest.$ac_ext | |
11468 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11469 echo "${ECHO_T}$ac_header_preproc" >&6 | |
11470 | |
11471 # So? What about this header? | |
11472 case $ac_header_compiler:$ac_header_preproc in | |
11473 yes:no ) | |
11474 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11475 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11476 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 | |
11477 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};; | |
11478 no:yes ) | |
11479 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 | |
11480 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} | |
11481 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 | |
11482 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} | |
11483 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 | |
11484 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};; | |
11485 esac | |
11486 echo "$as_me:$LINENO: checking for locale.h" >&5 | |
11487 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 | |
11488 if test "${ac_cv_header_locale_h+set}" = set; then | |
11489 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11490 else | |
11491 ac_cv_header_locale_h=$ac_header_preproc | |
11492 fi | |
11493 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
11494 echo "${ECHO_T}$ac_cv_header_locale_h" >&6 | |
11495 | |
11496 fi | |
11497 | |
11498 | |
11499 | |
11500 for ac_func in setlocale | |
11501 do | |
11502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11503 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11505 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11506 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11507 else | |
11508 cat >conftest.$ac_ext <<_ACEOF | |
11509 #line $LINENO "configure" | |
11510 #include "confdefs.h" | |
11511 /* System header to define __stub macros and hopefully few prototypes, | |
11512 which can conflict with char $ac_func (); below. */ | |
11513 #include <assert.h> | |
11514 /* Override any gcc2 internal prototype to avoid an error. */ | |
11515 #ifdef __cplusplus | |
11516 extern "C" | |
11517 #endif | |
11518 /* We use char because int might match the return type of a gcc2 | |
11519 builtin and then its argument prototype would still apply. */ | |
11520 char $ac_func (); | |
11521 char (*f) (); | |
11522 | |
11523 #ifdef F77_DUMMY_MAIN | |
11524 # ifdef __cplusplus | |
11525 extern "C" | |
11526 # endif | |
11527 int F77_DUMMY_MAIN() { return 1; } | |
11528 #endif | |
11529 int | |
11530 main () | |
11531 { | |
11532 /* The GNU C library defines this for functions which it implements | |
11533 to always fail with ENOSYS. Some functions are actually named | |
11534 something starting with __ and the normal name is an alias. */ | |
11535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11536 choke me | |
11537 #else | |
11538 f = $ac_func; | |
11539 #endif | |
11540 | |
11541 ; | |
11542 return 0; | |
11543 } | |
11544 _ACEOF | |
11545 rm -f conftest.$ac_objext conftest$ac_exeext | |
11546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11547 (eval $ac_link) 2>&5 | |
11548 ac_status=$? | |
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11550 (exit $ac_status); } && | |
11551 { ac_try='test -s conftest$ac_exeext' | |
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11553 (eval $ac_try) 2>&5 | |
11554 ac_status=$? | |
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11556 (exit $ac_status); }; }; then | |
11557 eval "$as_ac_var=yes" | |
11558 else | |
11559 echo "$as_me: failed program was:" >&5 | |
11560 cat conftest.$ac_ext >&5 | |
11561 eval "$as_ac_var=no" | |
11562 fi | |
11563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11564 fi | |
11565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
11566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
11567 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11568 cat >>confdefs.h <<_ACEOF | |
11569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11570 _ACEOF | |
11571 | |
11572 fi | |
11573 done | |
11574 | |
11575 | |
11576 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | |
11577 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
11578 # Irix 4.0.5F has the header but not the library. | |
11579 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
11580 ac_have_func=yes | |
11581 | |
11582 cat >>confdefs.h <<\_ACEOF | |
11583 #define SVR4 1 | |
11584 _ACEOF | |
11585 | |
11586 fi | |
11587 | |
11588 if test $ac_have_func = no; then | |
11589 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
11590 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
11591 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 | |
11592 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
11593 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11594 fi | |
11595 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
11596 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 | |
11597 else | |
11598 # Is the header compilable? | |
11599 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 | |
11600 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6 | |
11601 cat >conftest.$ac_ext <<_ACEOF | |
11602 #line $LINENO "configure" | |
11603 #include "confdefs.h" | |
11604 $ac_includes_default | |
11605 #include <inq_stats/cpustats.h> | |
11606 _ACEOF | |
11607 rm -f conftest.$ac_objext | |
11608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11609 (eval $ac_compile) 2>&5 | |
11610 ac_status=$? | |
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11612 (exit $ac_status); } && | |
11613 { ac_try='test -s conftest.$ac_objext' | |
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11615 (eval $ac_try) 2>&5 | |
11616 ac_status=$? | |
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11618 (exit $ac_status); }; }; then | |
11619 ac_header_compiler=yes | |
11620 else | |
11621 echo "$as_me: failed program was:" >&5 | |
11622 cat conftest.$ac_ext >&5 | |
11623 ac_header_compiler=no | |
11624 fi | |
11625 rm -f conftest.$ac_objext conftest.$ac_ext | |
11626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11627 echo "${ECHO_T}$ac_header_compiler" >&6 | |
11628 | |
11629 # Is the header present? | |
11630 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 | |
11631 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6 | |
11632 cat >conftest.$ac_ext <<_ACEOF | |
11633 #line $LINENO "configure" | |
11634 #include "confdefs.h" | |
11635 #include <inq_stats/cpustats.h> | |
11636 _ACEOF | |
11637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11639 ac_status=$? | |
11640 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11641 rm -f conftest.er1 | |
11642 cat conftest.err >&5 | |
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11644 (exit $ac_status); } >/dev/null; then | |
11645 if test -s conftest.err; then | |
11646 ac_cpp_err=$ac_c_preproc_warn_flag | |
11647 else | |
11648 ac_cpp_err= | |
11649 fi | |
11650 else | |
11651 ac_cpp_err=yes | |
11652 fi | |
11653 if test -z "$ac_cpp_err"; then | |
11654 ac_header_preproc=yes | |
11655 else | |
11656 echo "$as_me: failed program was:" >&5 | |
11657 cat conftest.$ac_ext >&5 | |
11658 ac_header_preproc=no | |
11659 fi | |
11660 rm -f conftest.err conftest.$ac_ext | |
11661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11662 echo "${ECHO_T}$ac_header_preproc" >&6 | |
11663 | |
11664 # So? What about this header? | |
11665 case $ac_header_compiler:$ac_header_preproc in | |
11666 yes:no ) | |
11667 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11668 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11669 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 | |
11670 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};; | |
11671 no:yes ) | |
11672 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 | |
11673 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} | |
11674 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 | |
11675 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} | |
11676 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 | |
11677 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};; | |
11678 esac | |
11679 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
11680 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 | |
11681 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
11682 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11683 else | |
11684 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc | |
11685 fi | |
11686 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
11687 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 | |
11688 | |
11689 fi | |
11690 if test $ac_cv_header_inq_stats_cpustats_h = yes; then | |
11691 ac_have_func=yes | |
11692 | |
11693 cat >>confdefs.h <<\_ACEOF | |
11694 #define UMAX 1 | |
11695 _ACEOF | |
11696 | |
11697 | |
11698 cat >>confdefs.h <<\_ACEOF | |
11699 #define UMAX4_3 1 | |
11700 _ACEOF | |
11701 | |
11702 fi | |
11703 | |
11704 | |
11705 fi | |
11706 | |
11707 if test $ac_have_func = no; then | |
11708 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
11709 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
11710 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 | |
11711 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
11712 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11713 fi | |
11714 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
11715 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 | |
11716 else | |
11717 # Is the header compilable? | |
11718 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 | |
11719 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6 | |
11720 cat >conftest.$ac_ext <<_ACEOF | |
11721 #line $LINENO "configure" | |
11722 #include "confdefs.h" | |
11723 $ac_includes_default | |
11724 #include <sys/cpustats.h> | |
11725 _ACEOF | |
11726 rm -f conftest.$ac_objext | |
11727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11728 (eval $ac_compile) 2>&5 | |
11729 ac_status=$? | |
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11731 (exit $ac_status); } && | |
11732 { ac_try='test -s conftest.$ac_objext' | |
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11734 (eval $ac_try) 2>&5 | |
11735 ac_status=$? | |
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11737 (exit $ac_status); }; }; then | |
11738 ac_header_compiler=yes | |
11739 else | |
11740 echo "$as_me: failed program was:" >&5 | |
11741 cat conftest.$ac_ext >&5 | |
11742 ac_header_compiler=no | |
11743 fi | |
11744 rm -f conftest.$ac_objext conftest.$ac_ext | |
11745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11746 echo "${ECHO_T}$ac_header_compiler" >&6 | |
11747 | |
11748 # Is the header present? | |
11749 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 | |
11750 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6 | |
11751 cat >conftest.$ac_ext <<_ACEOF | |
11752 #line $LINENO "configure" | |
11753 #include "confdefs.h" | |
11754 #include <sys/cpustats.h> | |
11755 _ACEOF | |
11756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11758 ac_status=$? | |
11759 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11760 rm -f conftest.er1 | |
11761 cat conftest.err >&5 | |
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11763 (exit $ac_status); } >/dev/null; then | |
11764 if test -s conftest.err; then | |
11765 ac_cpp_err=$ac_c_preproc_warn_flag | |
11766 else | |
11767 ac_cpp_err= | |
11768 fi | |
11769 else | |
11770 ac_cpp_err=yes | |
11771 fi | |
11772 if test -z "$ac_cpp_err"; then | |
11773 ac_header_preproc=yes | |
11774 else | |
11775 echo "$as_me: failed program was:" >&5 | |
11776 cat conftest.$ac_ext >&5 | |
11777 ac_header_preproc=no | |
11778 fi | |
11779 rm -f conftest.err conftest.$ac_ext | |
11780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11781 echo "${ECHO_T}$ac_header_preproc" >&6 | |
11782 | |
11783 # So? What about this header? | |
11784 case $ac_header_compiler:$ac_header_preproc in | |
11785 yes:no ) | |
11786 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11787 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11788 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 | |
11789 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};; | |
11790 no:yes ) | |
11791 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 | |
11792 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} | |
11793 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 | |
11794 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} | |
11795 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 | |
11796 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};; | |
11797 esac | |
11798 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
11799 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 | |
11800 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
11801 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11802 else | |
11803 ac_cv_header_sys_cpustats_h=$ac_header_preproc | |
11804 fi | |
11805 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
11806 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 | |
11807 | |
11808 fi | |
11809 if test $ac_cv_header_sys_cpustats_h = yes; then | |
11810 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF | |
11811 #define UMAX 1 | |
11812 _ACEOF | |
11813 | |
11814 fi | |
11815 | |
11816 | |
11817 fi | |
11818 | |
11819 if test $ac_have_func = no; then | |
11820 | |
11821 for ac_header in mach/mach.h | |
11822 do | |
11823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11824 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11825 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11827 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11828 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11829 fi | |
11830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11832 else | |
11833 # Is the header compilable? | |
11834 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11836 cat >conftest.$ac_ext <<_ACEOF | |
11837 #line $LINENO "configure" | |
11838 #include "confdefs.h" | |
11839 $ac_includes_default | |
11840 #include <$ac_header> | |
11841 _ACEOF | |
11842 rm -f conftest.$ac_objext | |
11843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11844 (eval $ac_compile) 2>&5 | |
11845 ac_status=$? | |
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11847 (exit $ac_status); } && | |
11848 { ac_try='test -s conftest.$ac_objext' | |
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11850 (eval $ac_try) 2>&5 | |
11851 ac_status=$? | |
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11853 (exit $ac_status); }; }; then | |
11854 ac_header_compiler=yes | |
11855 else | |
11856 echo "$as_me: failed program was:" >&5 | |
11857 cat conftest.$ac_ext >&5 | |
11858 ac_header_compiler=no | |
11859 fi | |
11860 rm -f conftest.$ac_objext conftest.$ac_ext | |
11861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11862 echo "${ECHO_T}$ac_header_compiler" >&6 | |
11863 | |
11864 # Is the header present? | |
11865 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11867 cat >conftest.$ac_ext <<_ACEOF | |
11868 #line $LINENO "configure" | |
11869 #include "confdefs.h" | |
11870 #include <$ac_header> | |
11871 _ACEOF | |
11872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11874 ac_status=$? | |
11875 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11876 rm -f conftest.er1 | |
11877 cat conftest.err >&5 | |
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11879 (exit $ac_status); } >/dev/null; then | |
11880 if test -s conftest.err; then | |
11881 ac_cpp_err=$ac_c_preproc_warn_flag | |
11882 else | |
11883 ac_cpp_err= | |
11884 fi | |
11885 else | |
11886 ac_cpp_err=yes | |
11887 fi | |
11888 if test -z "$ac_cpp_err"; then | |
11889 ac_header_preproc=yes | |
11890 else | |
11891 echo "$as_me: failed program was:" >&5 | |
11892 cat conftest.$ac_ext >&5 | |
11893 ac_header_preproc=no | |
11894 fi | |
11895 rm -f conftest.err conftest.$ac_ext | |
11896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11897 echo "${ECHO_T}$ac_header_preproc" >&6 | |
11898 | |
11899 # So? What about this header? | |
11900 case $ac_header_compiler:$ac_header_preproc in | |
11901 yes:no ) | |
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
11906 no:yes ) | |
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
11913 esac | |
11914 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11916 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11917 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11918 else | |
11919 eval "$as_ac_Header=$ac_header_preproc" | |
11920 fi | |
11921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11923 | |
11924 fi | |
11925 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11926 cat >>confdefs.h <<_ACEOF | |
11927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11928 _ACEOF | |
11929 | |
11930 fi | |
11931 | |
11932 done | |
11933 | |
11934 fi | |
11935 | |
11936 | |
11937 for ac_header in nlist.h | |
11938 do | |
11939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11940 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11941 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11943 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11944 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11945 fi | |
11946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11948 else | |
11949 # Is the header compilable? | |
11950 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11952 cat >conftest.$ac_ext <<_ACEOF | |
11953 #line $LINENO "configure" | |
11954 #include "confdefs.h" | |
11955 $ac_includes_default | |
11956 #include <$ac_header> | |
11957 _ACEOF | |
11958 rm -f conftest.$ac_objext | |
11959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11960 (eval $ac_compile) 2>&5 | |
11961 ac_status=$? | |
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11963 (exit $ac_status); } && | |
11964 { ac_try='test -s conftest.$ac_objext' | |
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11966 (eval $ac_try) 2>&5 | |
11967 ac_status=$? | |
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11969 (exit $ac_status); }; }; then | |
11970 ac_header_compiler=yes | |
11971 else | |
11972 echo "$as_me: failed program was:" >&5 | |
11973 cat conftest.$ac_ext >&5 | |
11974 ac_header_compiler=no | |
11975 fi | |
11976 rm -f conftest.$ac_objext conftest.$ac_ext | |
11977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11978 echo "${ECHO_T}$ac_header_compiler" >&6 | |
11979 | |
11980 # Is the header present? | |
11981 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11983 cat >conftest.$ac_ext <<_ACEOF | |
11984 #line $LINENO "configure" | |
11985 #include "confdefs.h" | |
11986 #include <$ac_header> | |
11987 _ACEOF | |
11988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11990 ac_status=$? | |
11991 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11992 rm -f conftest.er1 | |
11993 cat conftest.err >&5 | |
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11995 (exit $ac_status); } >/dev/null; then | |
11996 if test -s conftest.err; then | |
11997 ac_cpp_err=$ac_c_preproc_warn_flag | |
11998 else | |
11999 ac_cpp_err= | |
12000 fi | |
12001 else | |
12002 ac_cpp_err=yes | |
12003 fi | |
12004 if test -z "$ac_cpp_err"; then | |
12005 ac_header_preproc=yes | |
12006 else | |
12007 echo "$as_me: failed program was:" >&5 | |
12008 cat conftest.$ac_ext >&5 | |
12009 ac_header_preproc=no | |
12010 fi | |
12011 rm -f conftest.err conftest.$ac_ext | |
12012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12013 echo "${ECHO_T}$ac_header_preproc" >&6 | |
12014 | |
12015 # So? What about this header? | |
12016 case $ac_header_compiler:$ac_header_preproc in | |
12017 yes:no ) | |
12018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
12022 no:yes ) | |
12023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
12029 esac | |
12030 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12032 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12033 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12034 else | |
12035 eval "$as_ac_Header=$ac_header_preproc" | |
12036 fi | |
12037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12039 | |
12040 fi | |
12041 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12042 cat >>confdefs.h <<_ACEOF | |
12043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12044 _ACEOF | |
12045 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 | |
12046 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 | |
12047 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
12048 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12049 else | |
12050 cat >conftest.$ac_ext <<_ACEOF | |
12051 #line $LINENO "configure" | |
12052 #include "confdefs.h" | |
12053 #include <nlist.h> | |
12054 | |
12055 #ifdef F77_DUMMY_MAIN | |
12056 # ifdef __cplusplus | |
12057 extern "C" | |
12058 # endif | |
12059 int F77_DUMMY_MAIN() { return 1; } | |
12060 #endif | |
12061 int | |
12062 main () | |
12063 { | |
12064 static struct nlist ac_aggr; | |
12065 if (ac_aggr.n_un.n_name) | |
12066 return 0; | |
12067 ; | |
12068 return 0; | |
12069 } | |
12070 _ACEOF | |
12071 rm -f conftest.$ac_objext | |
12072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12073 (eval $ac_compile) 2>&5 | |
12074 ac_status=$? | |
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12076 (exit $ac_status); } && | |
12077 { ac_try='test -s conftest.$ac_objext' | |
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12079 (eval $ac_try) 2>&5 | |
12080 ac_status=$? | |
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12082 (exit $ac_status); }; }; then | |
12083 ac_cv_member_struct_nlist_n_un_n_name=yes | |
12084 else | |
12085 echo "$as_me: failed program was:" >&5 | |
12086 cat conftest.$ac_ext >&5 | |
12087 ac_cv_member_struct_nlist_n_un_n_name=no | |
12088 fi | |
12089 rm -f conftest.$ac_objext conftest.$ac_ext | |
12090 fi | |
12091 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 | |
12092 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 | |
12093 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
12094 | |
12095 cat >>confdefs.h <<_ACEOF | |
12096 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 | |
12097 _ACEOF | |
12098 | |
12099 | |
12100 cat >>confdefs.h <<\_ACEOF | |
12101 #define NLIST_NAME_UNION 1 | |
12102 _ACEOF | |
12103 | |
12104 fi | |
12105 | |
12106 | |
12107 fi | |
12108 | |
12109 done | |
12110 | |
12111 fi | |
12112 done | |
12113 | |
12114 | |
12115 # Some definitions of getloadavg require that the program be installed setgid. | |
12116 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 | |
12117 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 | |
12118 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
12119 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12120 else | |
12121 cat >conftest.$ac_ext <<_ACEOF | |
12122 #line $LINENO "configure" | |
12123 #include "confdefs.h" | |
12124 #include "$srcdir/getloadavg.c" | |
12125 #ifdef LDAV_PRIVILEGED | |
12126 Yowza Am I SETGID yet | |
12127 #endif | |
12128 _ACEOF | |
12129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12130 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then | |
12131 ac_cv_func_getloadavg_setgid=yes | |
12132 else | |
12133 ac_cv_func_getloadavg_setgid=no | |
12134 fi | |
12135 rm -f conftest* | |
12136 | |
12137 fi | |
12138 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 | |
12139 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 | |
12140 if test $ac_cv_func_getloadavg_setgid = yes; then | |
12141 NEED_SETGID=true | |
12142 | |
12143 cat >>confdefs.h <<\_ACEOF | |
12144 #define GETLOADAVG_PRIVILEGED 1 | |
12145 _ACEOF | |
12146 | |
12147 else | |
12148 NEED_SETGID=false | |
12149 fi | |
12150 | |
12151 if test $ac_cv_func_getloadavg_setgid = yes; then | |
12152 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 | |
12153 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 | |
12154 if test "${ac_cv_group_kmem+set}" = set; then | |
12155 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12156 else | |
12157 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
12158 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
12159 # If we got an error (system does not support symlinks), try without -L. | |
12160 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
12161 ac_cv_group_kmem=`echo $ac_ls_output \ | |
12162 | sed -ne 's/[ ][ ]*/ /g; | |
12163 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
12164 / /s/.* //;p;'` | |
12165 | |
12166 fi | |
12167 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 | |
12168 echo "${ECHO_T}$ac_cv_group_kmem" >&6 | |
12169 KMEM_GROUP=$ac_cv_group_kmem | |
12170 fi | |
12171 if test "x$ac_save_LIBS" = x; then | |
12172 GETLOADAVG_LIBS=$LIBS | |
12173 else | |
12174 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
12175 fi | |
12176 LIBS=$ac_save_LIBS | |
12177 | |
12178 | |
12179 | |
12180 ac_have_func=no # yes means we've found a way to get the load average. | |
12181 | |
12182 ac_save_LIBS=$LIBS | |
12183 | |
12184 # Check for getloadavg, but be sure not to touch the cache variable. | |
12185 (echo "$as_me:$LINENO: checking for getloadavg" >&5 | |
12186 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 | |
12187 if test "${ac_cv_func_getloadavg+set}" = set; then | |
12188 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12189 else | |
12190 cat >conftest.$ac_ext <<_ACEOF | |
12191 #line $LINENO "configure" | |
12192 #include "confdefs.h" | |
12193 /* System header to define __stub macros and hopefully few prototypes, | |
12194 which can conflict with char getloadavg (); below. */ | |
12195 #include <assert.h> | |
12196 /* Override any gcc2 internal prototype to avoid an error. */ | |
12197 #ifdef __cplusplus | |
12198 extern "C" | |
12199 #endif | |
12200 /* We use char because int might match the return type of a gcc2 | |
12201 builtin and then its argument prototype would still apply. */ | |
12202 char getloadavg (); | |
12203 char (*f) (); | |
12204 | |
12205 #ifdef F77_DUMMY_MAIN | |
12206 # ifdef __cplusplus | |
12207 extern "C" | |
12208 # endif | |
12209 int F77_DUMMY_MAIN() { return 1; } | |
12210 #endif | |
12211 int | |
12212 main () | |
12213 { | |
12214 /* The GNU C library defines this for functions which it implements | |
12215 to always fail with ENOSYS. Some functions are actually named | |
12216 something starting with __ and the normal name is an alias. */ | |
12217 #if defined (__stub_getloadavg) || defined (__stub___getloadavg) | |
12218 choke me | |
12219 #else | |
12220 f = getloadavg; | |
12221 #endif | |
12222 | |
12223 ; | |
12224 return 0; | |
12225 } | |
12226 _ACEOF | |
12227 rm -f conftest.$ac_objext conftest$ac_exeext | |
12228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12229 (eval $ac_link) 2>&5 | |
12230 ac_status=$? | |
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12232 (exit $ac_status); } && | |
12233 { ac_try='test -s conftest$ac_exeext' | |
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12235 (eval $ac_try) 2>&5 | |
12236 ac_status=$? | |
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12238 (exit $ac_status); }; }; then | |
12239 ac_cv_func_getloadavg=yes | |
12240 else | |
12241 echo "$as_me: failed program was:" >&5 | |
12242 cat conftest.$ac_ext >&5 | |
12243 ac_cv_func_getloadavg=no | |
12244 fi | |
12245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12246 fi | |
12247 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 | |
12248 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 | |
12249 if test $ac_cv_func_getloadavg = yes; then | |
12250 exit 0 | |
12251 else | |
12252 exit 1 | |
12253 fi | |
12254 ) && ac_have_func=yes | |
12255 | |
12256 # On HPUX9, an unprivileged user can get load averages through this function. | |
12257 | |
12258 for ac_func in pstat_getdynamic | |
12259 do | |
12260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12261 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12263 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12264 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12265 else | |
12266 cat >conftest.$ac_ext <<_ACEOF | |
12267 #line $LINENO "configure" | |
12268 #include "confdefs.h" | |
12269 /* System header to define __stub macros and hopefully few prototypes, | |
12270 which can conflict with char $ac_func (); below. */ | |
12271 #include <assert.h> | |
12272 /* Override any gcc2 internal prototype to avoid an error. */ | |
12273 #ifdef __cplusplus | |
12274 extern "C" | |
12275 #endif | |
12276 /* We use char because int might match the return type of a gcc2 | |
12277 builtin and then its argument prototype would still apply. */ | |
12278 char $ac_func (); | |
12279 char (*f) (); | |
12280 | |
12281 #ifdef F77_DUMMY_MAIN | |
12282 # ifdef __cplusplus | |
12283 extern "C" | |
12284 # endif | |
12285 int F77_DUMMY_MAIN() { return 1; } | |
12286 #endif | |
12287 int | |
12288 main () | |
12289 { | |
12290 /* The GNU C library defines this for functions which it implements | |
12291 to always fail with ENOSYS. Some functions are actually named | |
12292 something starting with __ and the normal name is an alias. */ | |
12293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12294 choke me | |
12295 #else | |
12296 f = $ac_func; | |
12297 #endif | |
12298 | |
12299 ; | |
12300 return 0; | |
12301 } | |
12302 _ACEOF | |
12303 rm -f conftest.$ac_objext conftest$ac_exeext | |
12304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12305 (eval $ac_link) 2>&5 | |
12306 ac_status=$? | |
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12308 (exit $ac_status); } && | |
12309 { ac_try='test -s conftest$ac_exeext' | |
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12311 (eval $ac_try) 2>&5 | |
12312 ac_status=$? | |
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12314 (exit $ac_status); }; }; then | |
12315 eval "$as_ac_var=yes" | |
12316 else | |
12317 echo "$as_me: failed program was:" >&5 | |
12318 cat conftest.$ac_ext >&5 | |
12319 eval "$as_ac_var=no" | |
12320 fi | |
12321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12322 fi | |
12323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
12324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
12325 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
12326 cat >>confdefs.h <<_ACEOF | |
12327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12328 _ACEOF | |
12329 | |
12330 fi | |
12331 done | |
12332 | |
12333 | |
12334 # Solaris has libkstat which does not require root. | |
12335 | |
12336 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 | |
12337 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 | |
12338 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
12339 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12340 else | |
12341 ac_check_lib_save_LIBS=$LIBS | |
12342 LIBS="-lkstat $LIBS" | |
12343 cat >conftest.$ac_ext <<_ACEOF | |
12344 #line $LINENO "configure" | |
12345 #include "confdefs.h" | |
12346 | |
12347 /* Override any gcc2 internal prototype to avoid an error. */ | |
12348 #ifdef __cplusplus | |
12349 extern "C" | |
12350 #endif | |
12351 /* We use char because int might match the return type of a gcc2 | |
12352 builtin and then its argument prototype would still apply. */ | |
12353 char kstat_open (); | |
12354 #ifdef F77_DUMMY_MAIN | |
12355 # ifdef __cplusplus | |
12356 extern "C" | |
12357 # endif | |
12358 int F77_DUMMY_MAIN() { return 1; } | |
12359 #endif | |
12360 int | |
12361 main () | |
12362 { | |
12363 kstat_open (); | |
12364 ; | |
12365 return 0; | |
12366 } | |
12367 _ACEOF | |
12368 rm -f conftest.$ac_objext conftest$ac_exeext | |
12369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12370 (eval $ac_link) 2>&5 | |
12371 ac_status=$? | |
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12373 (exit $ac_status); } && | |
12374 { ac_try='test -s conftest$ac_exeext' | |
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12376 (eval $ac_try) 2>&5 | |
12377 ac_status=$? | |
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12379 (exit $ac_status); }; }; then | |
12380 ac_cv_lib_kstat_kstat_open=yes | |
12381 else | |
12382 echo "$as_me: failed program was:" >&5 | |
12383 cat conftest.$ac_ext >&5 | |
12384 ac_cv_lib_kstat_kstat_open=no | |
12385 fi | |
12386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12387 LIBS=$ac_check_lib_save_LIBS | |
12388 fi | |
12389 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 | |
12390 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 | |
12391 if test $ac_cv_lib_kstat_kstat_open = yes; then | |
12392 cat >>confdefs.h <<_ACEOF | |
12393 #define HAVE_LIBKSTAT 1 | |
12394 _ACEOF | |
12395 | |
12396 LIBS="-lkstat $LIBS" | |
12397 | |
12398 fi | |
12399 | |
12400 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes | |
12401 | |
12402 # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
12403 # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
12404 # to get the right answer into the cache. | |
12405 # For kstat on solaris, we need libelf to force the definition of SVR4 below. | |
12406 if test $ac_have_func = no; then | |
12407 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 | |
12408 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 | |
12409 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
12410 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12411 else | |
12412 ac_check_lib_save_LIBS=$LIBS | |
12413 LIBS="-lelf $LIBS" | |
12414 cat >conftest.$ac_ext <<_ACEOF | |
12415 #line $LINENO "configure" | |
12416 #include "confdefs.h" | |
12417 | |
12418 /* Override any gcc2 internal prototype to avoid an error. */ | |
12419 #ifdef __cplusplus | |
12420 extern "C" | |
12421 #endif | |
12422 /* We use char because int might match the return type of a gcc2 | |
12423 builtin and then its argument prototype would still apply. */ | |
12424 char elf_begin (); | |
12425 #ifdef F77_DUMMY_MAIN | |
12426 # ifdef __cplusplus | |
12427 extern "C" | |
12428 # endif | |
12429 int F77_DUMMY_MAIN() { return 1; } | |
12430 #endif | |
12431 int | |
12432 main () | |
12433 { | |
12434 elf_begin (); | |
12435 ; | |
12436 return 0; | |
12437 } | |
12438 _ACEOF | |
12439 rm -f conftest.$ac_objext conftest$ac_exeext | |
12440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12441 (eval $ac_link) 2>&5 | |
12442 ac_status=$? | |
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12444 (exit $ac_status); } && | |
12445 { ac_try='test -s conftest$ac_exeext' | |
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12447 (eval $ac_try) 2>&5 | |
12448 ac_status=$? | |
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12450 (exit $ac_status); }; }; then | |
12451 ac_cv_lib_elf_elf_begin=yes | |
12452 else | |
12453 echo "$as_me: failed program was:" >&5 | |
12454 cat conftest.$ac_ext >&5 | |
12455 ac_cv_lib_elf_elf_begin=no | |
12456 fi | |
12457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12458 LIBS=$ac_check_lib_save_LIBS | |
12459 fi | |
12460 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 | |
12461 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 | |
12462 if test $ac_cv_lib_elf_elf_begin = yes; then | |
12463 LIBS="-lelf $LIBS" | |
12464 fi | |
12465 | |
12466 fi | |
12467 if test $ac_have_func = no; then | |
12468 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 | |
12469 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 | |
12470 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
12471 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12472 else | |
12473 ac_check_lib_save_LIBS=$LIBS | |
12474 LIBS="-lkvm $LIBS" | |
12475 cat >conftest.$ac_ext <<_ACEOF | |
12476 #line $LINENO "configure" | |
12477 #include "confdefs.h" | |
12478 | |
12479 /* Override any gcc2 internal prototype to avoid an error. */ | |
12480 #ifdef __cplusplus | |
12481 extern "C" | |
12482 #endif | |
12483 /* We use char because int might match the return type of a gcc2 | |
12484 builtin and then its argument prototype would still apply. */ | |
12485 char kvm_open (); | |
12486 #ifdef F77_DUMMY_MAIN | |
12487 # ifdef __cplusplus | |
12488 extern "C" | |
12489 # endif | |
12490 int F77_DUMMY_MAIN() { return 1; } | |
12491 #endif | |
12492 int | |
12493 main () | |
12494 { | |
12495 kvm_open (); | |
12496 ; | |
12497 return 0; | |
12498 } | |
12499 _ACEOF | |
12500 rm -f conftest.$ac_objext conftest$ac_exeext | |
12501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12502 (eval $ac_link) 2>&5 | |
12503 ac_status=$? | |
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12505 (exit $ac_status); } && | |
12506 { ac_try='test -s conftest$ac_exeext' | |
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12508 (eval $ac_try) 2>&5 | |
12509 ac_status=$? | |
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12511 (exit $ac_status); }; }; then | |
12512 ac_cv_lib_kvm_kvm_open=yes | |
12513 else | |
12514 echo "$as_me: failed program was:" >&5 | |
12515 cat conftest.$ac_ext >&5 | |
12516 ac_cv_lib_kvm_kvm_open=no | |
12517 fi | |
12518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12519 LIBS=$ac_check_lib_save_LIBS | |
12520 fi | |
12521 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 | |
12522 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 | |
12523 if test $ac_cv_lib_kvm_kvm_open = yes; then | |
12524 LIBS="-lkvm $LIBS" | |
12525 fi | |
12526 | |
12527 # Check for the 4.4BSD definition of getloadavg. | |
12528 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 | |
12529 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 | |
12530 if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
12531 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12532 else | |
12533 ac_check_lib_save_LIBS=$LIBS | |
12534 LIBS="-lutil $LIBS" | |
12535 cat >conftest.$ac_ext <<_ACEOF | |
12536 #line $LINENO "configure" | |
12537 #include "confdefs.h" | |
12538 | |
12539 /* Override any gcc2 internal prototype to avoid an error. */ | |
12540 #ifdef __cplusplus | |
12541 extern "C" | |
12542 #endif | |
12543 /* We use char because int might match the return type of a gcc2 | |
12544 builtin and then its argument prototype would still apply. */ | |
12545 char getloadavg (); | |
12546 #ifdef F77_DUMMY_MAIN | |
12547 # ifdef __cplusplus | |
12548 extern "C" | |
12549 # endif | |
12550 int F77_DUMMY_MAIN() { return 1; } | |
12551 #endif | |
12552 int | |
12553 main () | |
12554 { | |
12555 getloadavg (); | |
12556 ; | |
12557 return 0; | |
12558 } | |
12559 _ACEOF | |
12560 rm -f conftest.$ac_objext conftest$ac_exeext | |
12561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12562 (eval $ac_link) 2>&5 | |
12563 ac_status=$? | |
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12565 (exit $ac_status); } && | |
12566 { ac_try='test -s conftest$ac_exeext' | |
12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12568 (eval $ac_try) 2>&5 | |
12569 ac_status=$? | |
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12571 (exit $ac_status); }; }; then | |
12572 ac_cv_lib_util_getloadavg=yes | |
12573 else | |
12574 echo "$as_me: failed program was:" >&5 | |
12575 cat conftest.$ac_ext >&5 | |
12576 ac_cv_lib_util_getloadavg=no | |
12577 fi | |
12578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12579 LIBS=$ac_check_lib_save_LIBS | |
12580 fi | |
12581 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 | |
12582 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 | |
12583 if test $ac_cv_lib_util_getloadavg = yes; then | |
12584 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
12585 fi | |
12586 | |
12587 fi | |
12588 | |
12589 if test $ac_have_func = no; then | |
12590 # There is a commonly available library for RS/6000 AIX. | |
12591 # Since it is not a standard part of AIX, it might be installed locally. | |
12592 ac_getloadavg_LIBS=$LIBS | |
12593 LIBS="-L/usr/local/lib $LIBS" | |
12594 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 | |
12595 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 | |
12596 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
12597 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12598 else | |
12599 ac_check_lib_save_LIBS=$LIBS | |
12600 LIBS="-lgetloadavg $LIBS" | |
12601 cat >conftest.$ac_ext <<_ACEOF | |
12602 #line $LINENO "configure" | |
12603 #include "confdefs.h" | |
12604 | |
12605 /* Override any gcc2 internal prototype to avoid an error. */ | |
12606 #ifdef __cplusplus | |
12607 extern "C" | |
12608 #endif | |
12609 /* We use char because int might match the return type of a gcc2 | |
12610 builtin and then its argument prototype would still apply. */ | |
12611 char getloadavg (); | |
12612 #ifdef F77_DUMMY_MAIN | |
12613 # ifdef __cplusplus | |
12614 extern "C" | |
12615 # endif | |
12616 int F77_DUMMY_MAIN() { return 1; } | |
12617 #endif | |
12618 int | |
12619 main () | |
12620 { | |
12621 getloadavg (); | |
12622 ; | |
12623 return 0; | |
12624 } | |
12625 _ACEOF | |
12626 rm -f conftest.$ac_objext conftest$ac_exeext | |
12627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12628 (eval $ac_link) 2>&5 | |
12629 ac_status=$? | |
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12631 (exit $ac_status); } && | |
12632 { ac_try='test -s conftest$ac_exeext' | |
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12634 (eval $ac_try) 2>&5 | |
12635 ac_status=$? | |
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12637 (exit $ac_status); }; }; then | |
12638 ac_cv_lib_getloadavg_getloadavg=yes | |
12639 else | |
12640 echo "$as_me: failed program was:" >&5 | |
12641 cat conftest.$ac_ext >&5 | |
12642 ac_cv_lib_getloadavg_getloadavg=no | |
12643 fi | |
12644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12645 LIBS=$ac_check_lib_save_LIBS | |
12646 fi | |
12647 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 | |
40056 | 12648 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 |
12649 if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
29834 | 12650 LIBS="-lgetloadavg $LIBS" |
12651 else | |
40056 | 12652 LIBS=$ac_getloadavg_LIBS |
12653 fi | |
12654 | |
12655 fi | |
12656 | |
12657 # Make sure it is really in the library, if we think we found it, | |
12658 # otherwise set up the replacement function. | |
12659 | |
29834 | 12660 for ac_func in getloadavg |
12661 do | |
40056 | 12662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44493 | 12663 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 12664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12665 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12666 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12667 else | |
12668 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 12669 #line $LINENO "configure" |
29834 | 12670 #include "confdefs.h" |
12671 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 12672 which can conflict with char $ac_func (); below. */ |
29834 | 12673 #include <assert.h> |
12674 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 12675 #ifdef __cplusplus |
12676 extern "C" | |
12677 #endif | |
29834 | 12678 /* We use char because int might match the return type of a gcc2 |
40056 | 12679 builtin and then its argument prototype would still apply. */ |
12680 char $ac_func (); | |
12681 char (*f) (); | |
12682 | |
44493 | 12683 #ifdef F77_DUMMY_MAIN |
12684 # ifdef __cplusplus | |
12685 extern "C" | |
12686 # endif | |
12687 int F77_DUMMY_MAIN() { return 1; } | |
12688 #endif | |
40056 | 12689 int |
12690 main () | |
12691 { | |
29834 | 12692 /* The GNU C library defines this for functions which it implements |
12693 to always fail with ENOSYS. Some functions are actually named | |
12694 something starting with __ and the normal name is an alias. */ | |
12695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12696 choke me | |
12697 #else | |
40056 | 12698 f = $ac_func; |
12699 #endif | |
12700 | |
12701 ; | |
12702 return 0; | |
12703 } | |
12704 _ACEOF | |
12705 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 12706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12707 (eval $ac_link) 2>&5 | |
12708 ac_status=$? | |
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12710 (exit $ac_status); } && | |
12711 { ac_try='test -s conftest$ac_exeext' | |
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12713 (eval $ac_try) 2>&5 | |
12714 ac_status=$? | |
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 12716 (exit $ac_status); }; }; then |
12717 eval "$as_ac_var=yes" | |
12718 else | |
12719 echo "$as_me: failed program was:" >&5 | |
12720 cat conftest.$ac_ext >&5 | |
12721 eval "$as_ac_var=no" | |
12722 fi | |
12723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12724 fi | |
44493 | 12725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 12726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12727 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 12728 cat >>confdefs.h <<_ACEOF |
40056 | 12729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 12730 _ACEOF |
40056 | 12731 |
12732 else | |
12733 LIBOBJS="$LIBOBJS getloadavg.$ac_objext" | |
12734 | |
44493 | 12735 cat >>confdefs.h <<\_ACEOF |
40056 | 12736 #define C_GETLOADAVG 1 |
44493 | 12737 _ACEOF |
40056 | 12738 |
12739 # Figure out what our getloadavg.c needs. | |
12740 ac_have_func=no | |
44493 | 12741 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
12742 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
40056 | 12743 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 |
12744 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
12745 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 12746 fi |
12747 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
12748 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 | |
12749 else | |
12750 # Is the header compilable? | |
12751 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 | |
12752 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6 | |
12753 cat >conftest.$ac_ext <<_ACEOF | |
12754 #line $LINENO "configure" | |
12755 #include "confdefs.h" | |
12756 $ac_includes_default | |
12757 #include <sys/dg_sys_info.h> | |
12758 _ACEOF | |
12759 rm -f conftest.$ac_objext | |
12760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12761 (eval $ac_compile) 2>&5 | |
12762 ac_status=$? | |
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12764 (exit $ac_status); } && | |
12765 { ac_try='test -s conftest.$ac_objext' | |
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12767 (eval $ac_try) 2>&5 | |
12768 ac_status=$? | |
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12770 (exit $ac_status); }; }; then | |
12771 ac_header_compiler=yes | |
12772 else | |
12773 echo "$as_me: failed program was:" >&5 | |
12774 cat conftest.$ac_ext >&5 | |
12775 ac_header_compiler=no | |
12776 fi | |
12777 rm -f conftest.$ac_objext conftest.$ac_ext | |
12778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12779 echo "${ECHO_T}$ac_header_compiler" >&6 | |
12780 | |
12781 # Is the header present? | |
12782 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 | |
12783 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6 | |
12784 cat >conftest.$ac_ext <<_ACEOF | |
12785 #line $LINENO "configure" | |
29834 | 12786 #include "confdefs.h" |
12787 #include <sys/dg_sys_info.h> | |
40056 | 12788 _ACEOF |
44493 | 12789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 12790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12791 ac_status=$? | |
12792 egrep -v '^ *\+' conftest.er1 >conftest.err | |
12793 rm -f conftest.er1 | |
12794 cat conftest.err >&5 | |
44493 | 12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 12796 (exit $ac_status); } >/dev/null; then |
12797 if test -s conftest.err; then | |
12798 ac_cpp_err=$ac_c_preproc_warn_flag | |
12799 else | |
12800 ac_cpp_err= | |
12801 fi | |
12802 else | |
12803 ac_cpp_err=yes | |
12804 fi | |
12805 if test -z "$ac_cpp_err"; then | |
44493 | 12806 ac_header_preproc=yes |
40056 | 12807 else |
12808 echo "$as_me: failed program was:" >&5 | |
29834 | 12809 cat conftest.$ac_ext >&5 |
44493 | 12810 ac_header_preproc=no |
40056 | 12811 fi |
12812 rm -f conftest.err conftest.$ac_ext | |
44493 | 12813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12814 echo "${ECHO_T}$ac_header_preproc" >&6 | |
12815 | |
12816 # So? What about this header? | |
12817 case $ac_header_compiler:$ac_header_preproc in | |
12818 yes:no ) | |
12819 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12820 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12821 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 | |
12822 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};; | |
12823 no:yes ) | |
12824 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 | |
12825 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
12826 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 | |
12827 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
12828 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 | |
12829 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};; | |
12830 esac | |
12831 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
12832 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 | |
12833 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
12834 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12835 else | |
12836 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
12837 fi | |
12838 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
40056 | 12839 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 |
44493 | 12840 |
12841 fi | |
40056 | 12842 if test $ac_cv_header_sys_dg_sys_info_h = yes; then |
12843 ac_have_func=yes | |
12844 | |
44493 | 12845 cat >>confdefs.h <<\_ACEOF |
29834 | 12846 #define DGUX 1 |
44493 | 12847 _ACEOF |
12848 | |
12849 | |
12850 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 | |
40056 | 12851 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 |
12852 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
12853 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12854 else | |
12855 ac_check_lib_save_LIBS=$LIBS | |
29834 | 12856 LIBS="-ldgc $LIBS" |
40056 | 12857 cat >conftest.$ac_ext <<_ACEOF |
44493 | 12858 #line $LINENO "configure" |
40056 | 12859 #include "confdefs.h" |
12860 | |
29834 | 12861 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 12862 #ifdef __cplusplus |
12863 extern "C" | |
12864 #endif | |
29834 | 12865 /* We use char because int might match the return type of a gcc2 |
40056 | 12866 builtin and then its argument prototype would still apply. */ |
12867 char dg_sys_info (); | |
44493 | 12868 #ifdef F77_DUMMY_MAIN |
12869 # ifdef __cplusplus | |
12870 extern "C" | |
12871 # endif | |
12872 int F77_DUMMY_MAIN() { return 1; } | |
12873 #endif | |
40056 | 12874 int |
12875 main () | |
12876 { | |
12877 dg_sys_info (); | |
12878 ; | |
12879 return 0; | |
12880 } | |
12881 _ACEOF | |
12882 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12884 (eval $ac_link) 2>&5 | |
12885 ac_status=$? | |
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12887 (exit $ac_status); } && | |
12888 { ac_try='test -s conftest$ac_exeext' | |
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12890 (eval $ac_try) 2>&5 | |
12891 ac_status=$? | |
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 12893 (exit $ac_status); }; }; then |
12894 ac_cv_lib_dgc_dg_sys_info=yes | |
12895 else | |
12896 echo "$as_me: failed program was:" >&5 | |
12897 cat conftest.$ac_ext >&5 | |
12898 ac_cv_lib_dgc_dg_sys_info=no | |
12899 fi | |
12900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12901 LIBS=$ac_check_lib_save_LIBS | |
12902 fi | |
44493 | 12903 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
40056 | 12904 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 |
12905 if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
44493 | 12906 cat >>confdefs.h <<_ACEOF |
40056 | 12907 #define HAVE_LIBDGC 1 |
44493 | 12908 _ACEOF |
29834 | 12909 |
12910 LIBS="-ldgc $LIBS" | |
12911 | |
40056 | 12912 fi |
12913 | |
12914 fi | |
12915 | |
44493 | 12916 |
12917 | |
12918 if test "${ac_cv_header_locale_h+set}" = set; then | |
12919 echo "$as_me:$LINENO: checking for locale.h" >&5 | |
40056 | 12920 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 |
12921 if test "${ac_cv_header_locale_h+set}" = set; then | |
12922 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 12923 fi |
12924 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
12925 echo "${ECHO_T}$ac_cv_header_locale_h" >&6 | |
12926 else | |
12927 # Is the header compilable? | |
12928 echo "$as_me:$LINENO: checking locale.h usability" >&5 | |
12929 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6 | |
12930 cat >conftest.$ac_ext <<_ACEOF | |
12931 #line $LINENO "configure" | |
12932 #include "confdefs.h" | |
12933 $ac_includes_default | |
12934 #include <locale.h> | |
12935 _ACEOF | |
12936 rm -f conftest.$ac_objext | |
12937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12938 (eval $ac_compile) 2>&5 | |
12939 ac_status=$? | |
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12941 (exit $ac_status); } && | |
12942 { ac_try='test -s conftest.$ac_objext' | |
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12944 (eval $ac_try) 2>&5 | |
12945 ac_status=$? | |
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12947 (exit $ac_status); }; }; then | |
12948 ac_header_compiler=yes | |
12949 else | |
12950 echo "$as_me: failed program was:" >&5 | |
12951 cat conftest.$ac_ext >&5 | |
12952 ac_header_compiler=no | |
12953 fi | |
12954 rm -f conftest.$ac_objext conftest.$ac_ext | |
12955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12956 echo "${ECHO_T}$ac_header_compiler" >&6 | |
12957 | |
12958 # Is the header present? | |
12959 echo "$as_me:$LINENO: checking locale.h presence" >&5 | |
12960 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6 | |
12961 cat >conftest.$ac_ext <<_ACEOF | |
12962 #line $LINENO "configure" | |
40056 | 12963 #include "confdefs.h" |
12964 #include <locale.h> | |
12965 _ACEOF | |
44493 | 12966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 12967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
12968 ac_status=$? | |
12969 egrep -v '^ *\+' conftest.er1 >conftest.err | |
12970 rm -f conftest.er1 | |
12971 cat conftest.err >&5 | |
44493 | 12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 12973 (exit $ac_status); } >/dev/null; then |
12974 if test -s conftest.err; then | |
12975 ac_cpp_err=$ac_c_preproc_warn_flag | |
12976 else | |
12977 ac_cpp_err= | |
12978 fi | |
12979 else | |
12980 ac_cpp_err=yes | |
12981 fi | |
12982 if test -z "$ac_cpp_err"; then | |
44493 | 12983 ac_header_preproc=yes |
40056 | 12984 else |
12985 echo "$as_me: failed program was:" >&5 | |
12986 cat conftest.$ac_ext >&5 | |
44493 | 12987 ac_header_preproc=no |
40056 | 12988 fi |
12989 rm -f conftest.err conftest.$ac_ext | |
44493 | 12990 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12991 echo "${ECHO_T}$ac_header_preproc" >&6 | |
12992 | |
12993 # So? What about this header? | |
12994 case $ac_header_compiler:$ac_header_preproc in | |
12995 yes:no ) | |
12996 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12997 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12998 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 | |
12999 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};; | |
13000 no:yes ) | |
13001 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 | |
13002 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} | |
13003 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 | |
13004 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} | |
13005 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 | |
13006 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};; | |
13007 esac | |
13008 echo "$as_me:$LINENO: checking for locale.h" >&5 | |
13009 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 | |
13010 if test "${ac_cv_header_locale_h+set}" = set; then | |
13011 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13012 else | |
13013 ac_cv_header_locale_h=$ac_header_preproc | |
13014 fi | |
13015 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
40056 | 13016 echo "${ECHO_T}$ac_cv_header_locale_h" >&6 |
13017 | |
44493 | 13018 fi |
13019 | |
13020 | |
13021 | |
40056 | 13022 for ac_func in setlocale |
13023 do | |
13024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44493 | 13025 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 13026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
13027 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13028 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13029 else | |
13030 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 13031 #line $LINENO "configure" |
40056 | 13032 #include "confdefs.h" |
13033 /* System header to define __stub macros and hopefully few prototypes, | |
13034 which can conflict with char $ac_func (); below. */ | |
13035 #include <assert.h> | |
13036 /* Override any gcc2 internal prototype to avoid an error. */ | |
13037 #ifdef __cplusplus | |
13038 extern "C" | |
13039 #endif | |
13040 /* We use char because int might match the return type of a gcc2 | |
13041 builtin and then its argument prototype would still apply. */ | |
13042 char $ac_func (); | |
13043 char (*f) (); | |
13044 | |
44493 | 13045 #ifdef F77_DUMMY_MAIN |
13046 # ifdef __cplusplus | |
13047 extern "C" | |
13048 # endif | |
13049 int F77_DUMMY_MAIN() { return 1; } | |
13050 #endif | |
40056 | 13051 int |
13052 main () | |
13053 { | |
13054 /* The GNU C library defines this for functions which it implements | |
13055 to always fail with ENOSYS. Some functions are actually named | |
13056 something starting with __ and the normal name is an alias. */ | |
13057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13058 choke me | |
13059 #else | |
13060 f = $ac_func; | |
13061 #endif | |
13062 | |
13063 ; | |
13064 return 0; | |
13065 } | |
13066 _ACEOF | |
13067 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 13068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13069 (eval $ac_link) 2>&5 | |
13070 ac_status=$? | |
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13072 (exit $ac_status); } && | |
13073 { ac_try='test -s conftest$ac_exeext' | |
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13075 (eval $ac_try) 2>&5 | |
13076 ac_status=$? | |
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 13078 (exit $ac_status); }; }; then |
13079 eval "$as_ac_var=yes" | |
13080 else | |
13081 echo "$as_me: failed program was:" >&5 | |
13082 cat conftest.$ac_ext >&5 | |
13083 eval "$as_ac_var=no" | |
13084 fi | |
13085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13086 fi | |
44493 | 13087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 13088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
13089 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 13090 cat >>confdefs.h <<_ACEOF |
40056 | 13091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 13092 _ACEOF |
13093 | |
13094 fi | |
13095 done | |
13096 | |
40056 | 13097 |
13098 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | |
13099 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
13100 # Irix 4.0.5F has the header but not the library. | |
13101 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
13102 ac_have_func=yes | |
13103 | |
44493 | 13104 cat >>confdefs.h <<\_ACEOF |
29834 | 13105 #define SVR4 1 |
44493 | 13106 _ACEOF |
29834 | 13107 |
40056 | 13108 fi |
13109 | |
13110 if test $ac_have_func = no; then | |
44493 | 13111 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
13112 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
40056 | 13113 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 |
13114 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
13115 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 13116 fi |
13117 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
13118 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 | |
13119 else | |
13120 # Is the header compilable? | |
13121 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 | |
13122 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6 | |
13123 cat >conftest.$ac_ext <<_ACEOF | |
13124 #line $LINENO "configure" | |
13125 #include "confdefs.h" | |
13126 $ac_includes_default | |
13127 #include <inq_stats/cpustats.h> | |
13128 _ACEOF | |
13129 rm -f conftest.$ac_objext | |
13130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13131 (eval $ac_compile) 2>&5 | |
13132 ac_status=$? | |
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13134 (exit $ac_status); } && | |
13135 { ac_try='test -s conftest.$ac_objext' | |
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13137 (eval $ac_try) 2>&5 | |
13138 ac_status=$? | |
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13140 (exit $ac_status); }; }; then | |
13141 ac_header_compiler=yes | |
13142 else | |
13143 echo "$as_me: failed program was:" >&5 | |
13144 cat conftest.$ac_ext >&5 | |
13145 ac_header_compiler=no | |
13146 fi | |
13147 rm -f conftest.$ac_objext conftest.$ac_ext | |
13148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13149 echo "${ECHO_T}$ac_header_compiler" >&6 | |
13150 | |
13151 # Is the header present? | |
13152 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 | |
13153 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6 | |
13154 cat >conftest.$ac_ext <<_ACEOF | |
13155 #line $LINENO "configure" | |
29834 | 13156 #include "confdefs.h" |
13157 #include <inq_stats/cpustats.h> | |
40056 | 13158 _ACEOF |
44493 | 13159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 13160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13161 ac_status=$? | |
13162 egrep -v '^ *\+' conftest.er1 >conftest.err | |
13163 rm -f conftest.er1 | |
13164 cat conftest.err >&5 | |
44493 | 13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 13166 (exit $ac_status); } >/dev/null; then |
13167 if test -s conftest.err; then | |
13168 ac_cpp_err=$ac_c_preproc_warn_flag | |
13169 else | |
13170 ac_cpp_err= | |
13171 fi | |
13172 else | |
13173 ac_cpp_err=yes | |
13174 fi | |
13175 if test -z "$ac_cpp_err"; then | |
44493 | 13176 ac_header_preproc=yes |
40056 | 13177 else |
13178 echo "$as_me: failed program was:" >&5 | |
29834 | 13179 cat conftest.$ac_ext >&5 |
44493 | 13180 ac_header_preproc=no |
40056 | 13181 fi |
13182 rm -f conftest.err conftest.$ac_ext | |
44493 | 13183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13184 echo "${ECHO_T}$ac_header_preproc" >&6 | |
13185 | |
13186 # So? What about this header? | |
13187 case $ac_header_compiler:$ac_header_preproc in | |
13188 yes:no ) | |
13189 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13190 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13191 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 | |
13192 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};; | |
13193 no:yes ) | |
13194 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 | |
13195 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} | |
13196 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 | |
13197 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} | |
13198 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 | |
13199 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};; | |
13200 esac | |
13201 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
13202 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 | |
13203 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
13204 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13205 else | |
13206 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc | |
13207 fi | |
13208 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
40056 | 13209 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 |
44493 | 13210 |
13211 fi | |
40056 | 13212 if test $ac_cv_header_inq_stats_cpustats_h = yes; then |
13213 ac_have_func=yes | |
13214 | |
44493 | 13215 cat >>confdefs.h <<\_ACEOF |
29834 | 13216 #define UMAX 1 |
44493 | 13217 _ACEOF |
13218 | |
13219 | |
13220 cat >>confdefs.h <<\_ACEOF | |
29834 | 13221 #define UMAX4_3 1 |
44493 | 13222 _ACEOF |
13223 | |
13224 fi | |
13225 | |
40056 | 13226 |
13227 fi | |
13228 | |
13229 if test $ac_have_func = no; then | |
44493 | 13230 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
13231 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
40056 | 13232 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 |
13233 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
13234 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 13235 fi |
13236 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
13237 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 | |
13238 else | |
13239 # Is the header compilable? | |
13240 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 | |
13241 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6 | |
13242 cat >conftest.$ac_ext <<_ACEOF | |
13243 #line $LINENO "configure" | |
13244 #include "confdefs.h" | |
13245 $ac_includes_default | |
13246 #include <sys/cpustats.h> | |
13247 _ACEOF | |
13248 rm -f conftest.$ac_objext | |
13249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13250 (eval $ac_compile) 2>&5 | |
13251 ac_status=$? | |
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13253 (exit $ac_status); } && | |
13254 { ac_try='test -s conftest.$ac_objext' | |
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13256 (eval $ac_try) 2>&5 | |
13257 ac_status=$? | |
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13259 (exit $ac_status); }; }; then | |
13260 ac_header_compiler=yes | |
13261 else | |
13262 echo "$as_me: failed program was:" >&5 | |
13263 cat conftest.$ac_ext >&5 | |
13264 ac_header_compiler=no | |
13265 fi | |
13266 rm -f conftest.$ac_objext conftest.$ac_ext | |
13267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13268 echo "${ECHO_T}$ac_header_compiler" >&6 | |
13269 | |
13270 # Is the header present? | |
13271 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 | |
13272 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6 | |
13273 cat >conftest.$ac_ext <<_ACEOF | |
13274 #line $LINENO "configure" | |
29834 | 13275 #include "confdefs.h" |
13276 #include <sys/cpustats.h> | |
40056 | 13277 _ACEOF |
44493 | 13278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 13279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13280 ac_status=$? | |
13281 egrep -v '^ *\+' conftest.er1 >conftest.err | |
13282 rm -f conftest.er1 | |
13283 cat conftest.err >&5 | |
44493 | 13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 13285 (exit $ac_status); } >/dev/null; then |
13286 if test -s conftest.err; then | |
13287 ac_cpp_err=$ac_c_preproc_warn_flag | |
13288 else | |
13289 ac_cpp_err= | |
13290 fi | |
13291 else | |
13292 ac_cpp_err=yes | |
13293 fi | |
13294 if test -z "$ac_cpp_err"; then | |
44493 | 13295 ac_header_preproc=yes |
40056 | 13296 else |
13297 echo "$as_me: failed program was:" >&5 | |
29834 | 13298 cat conftest.$ac_ext >&5 |
44493 | 13299 ac_header_preproc=no |
40056 | 13300 fi |
13301 rm -f conftest.err conftest.$ac_ext | |
44493 | 13302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13303 echo "${ECHO_T}$ac_header_preproc" >&6 | |
13304 | |
13305 # So? What about this header? | |
13306 case $ac_header_compiler:$ac_header_preproc in | |
13307 yes:no ) | |
13308 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13309 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13310 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 | |
13311 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};; | |
13312 no:yes ) | |
13313 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 | |
13314 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} | |
13315 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 | |
13316 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} | |
13317 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 | |
13318 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};; | |
13319 esac | |
13320 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
13321 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 | |
13322 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
13323 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13324 else | |
13325 ac_cv_header_sys_cpustats_h=$ac_header_preproc | |
13326 fi | |
13327 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
40056 | 13328 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 |
44493 | 13329 |
13330 fi | |
40056 | 13331 if test $ac_cv_header_sys_cpustats_h = yes; then |
44493 | 13332 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF |
29834 | 13333 #define UMAX 1 |
44493 | 13334 _ACEOF |
13335 | |
13336 fi | |
13337 | |
40056 | 13338 |
13339 fi | |
13340 | |
13341 if test $ac_have_func = no; then | |
13342 | |
13343 for ac_header in mach/mach.h | |
29834 | 13344 do |
40056 | 13345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 13346 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13347 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 13348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13349 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13350 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 13351 fi |
13352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13354 else | |
13355 # Is the header compilable? | |
13356 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13358 cat >conftest.$ac_ext <<_ACEOF | |
13359 #line $LINENO "configure" | |
13360 #include "confdefs.h" | |
13361 $ac_includes_default | |
13362 #include <$ac_header> | |
13363 _ACEOF | |
13364 rm -f conftest.$ac_objext | |
13365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13366 (eval $ac_compile) 2>&5 | |
13367 ac_status=$? | |
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13369 (exit $ac_status); } && | |
13370 { ac_try='test -s conftest.$ac_objext' | |
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13372 (eval $ac_try) 2>&5 | |
13373 ac_status=$? | |
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13375 (exit $ac_status); }; }; then | |
13376 ac_header_compiler=yes | |
13377 else | |
13378 echo "$as_me: failed program was:" >&5 | |
13379 cat conftest.$ac_ext >&5 | |
13380 ac_header_compiler=no | |
13381 fi | |
13382 rm -f conftest.$ac_objext conftest.$ac_ext | |
13383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13384 echo "${ECHO_T}$ac_header_compiler" >&6 | |
13385 | |
13386 # Is the header present? | |
13387 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13389 cat >conftest.$ac_ext <<_ACEOF | |
13390 #line $LINENO "configure" | |
40056 | 13391 #include "confdefs.h" |
13392 #include <$ac_header> | |
13393 _ACEOF | |
44493 | 13394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 13395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13396 ac_status=$? | |
13397 egrep -v '^ *\+' conftest.er1 >conftest.err | |
13398 rm -f conftest.er1 | |
13399 cat conftest.err >&5 | |
44493 | 13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 13401 (exit $ac_status); } >/dev/null; then |
13402 if test -s conftest.err; then | |
13403 ac_cpp_err=$ac_c_preproc_warn_flag | |
13404 else | |
13405 ac_cpp_err= | |
13406 fi | |
13407 else | |
13408 ac_cpp_err=yes | |
13409 fi | |
13410 if test -z "$ac_cpp_err"; then | |
44493 | 13411 ac_header_preproc=yes |
40056 | 13412 else |
13413 echo "$as_me: failed program was:" >&5 | |
29834 | 13414 cat conftest.$ac_ext >&5 |
44493 | 13415 ac_header_preproc=no |
40056 | 13416 fi |
13417 rm -f conftest.err conftest.$ac_ext | |
44493 | 13418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13419 echo "${ECHO_T}$ac_header_preproc" >&6 | |
13420 | |
13421 # So? What about this header? | |
13422 case $ac_header_compiler:$ac_header_preproc in | |
13423 yes:no ) | |
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
13428 no:yes ) | |
13429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
13435 esac | |
13436 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13438 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13439 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13440 else | |
13441 eval "$as_ac_Header=$ac_header_preproc" | |
13442 fi | |
13443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 13444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 13445 |
13446 fi | |
40056 | 13447 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 13448 cat >>confdefs.h <<_ACEOF |
40056 | 13449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 13450 _ACEOF |
13451 | |
13452 fi | |
13453 | |
13454 done | |
13455 | |
13456 fi | |
13457 | |
40056 | 13458 |
13459 for ac_header in nlist.h | |
13460 do | |
13461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
44493 | 13462 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13463 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 13464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13465 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13466 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 13467 fi |
13468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13470 else | |
13471 # Is the header compilable? | |
13472 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13474 cat >conftest.$ac_ext <<_ACEOF | |
13475 #line $LINENO "configure" | |
13476 #include "confdefs.h" | |
13477 $ac_includes_default | |
13478 #include <$ac_header> | |
13479 _ACEOF | |
13480 rm -f conftest.$ac_objext | |
13481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13482 (eval $ac_compile) 2>&5 | |
13483 ac_status=$? | |
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13485 (exit $ac_status); } && | |
13486 { ac_try='test -s conftest.$ac_objext' | |
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13488 (eval $ac_try) 2>&5 | |
13489 ac_status=$? | |
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13491 (exit $ac_status); }; }; then | |
13492 ac_header_compiler=yes | |
13493 else | |
13494 echo "$as_me: failed program was:" >&5 | |
13495 cat conftest.$ac_ext >&5 | |
13496 ac_header_compiler=no | |
13497 fi | |
13498 rm -f conftest.$ac_objext conftest.$ac_ext | |
13499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13500 echo "${ECHO_T}$ac_header_compiler" >&6 | |
13501 | |
13502 # Is the header present? | |
13503 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13505 cat >conftest.$ac_ext <<_ACEOF | |
13506 #line $LINENO "configure" | |
40056 | 13507 #include "confdefs.h" |
13508 #include <$ac_header> | |
13509 _ACEOF | |
44493 | 13510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 13511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13512 ac_status=$? | |
13513 egrep -v '^ *\+' conftest.er1 >conftest.err | |
13514 rm -f conftest.er1 | |
13515 cat conftest.err >&5 | |
44493 | 13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 13517 (exit $ac_status); } >/dev/null; then |
13518 if test -s conftest.err; then | |
13519 ac_cpp_err=$ac_c_preproc_warn_flag | |
13520 else | |
13521 ac_cpp_err= | |
13522 fi | |
13523 else | |
13524 ac_cpp_err=yes | |
13525 fi | |
13526 if test -z "$ac_cpp_err"; then | |
44493 | 13527 ac_header_preproc=yes |
40056 | 13528 else |
13529 echo "$as_me: failed program was:" >&5 | |
13530 cat conftest.$ac_ext >&5 | |
44493 | 13531 ac_header_preproc=no |
40056 | 13532 fi |
13533 rm -f conftest.err conftest.$ac_ext | |
44493 | 13534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13535 echo "${ECHO_T}$ac_header_preproc" >&6 | |
13536 | |
13537 # So? What about this header? | |
13538 case $ac_header_compiler:$ac_header_preproc in | |
13539 yes:no ) | |
13540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
13544 no:yes ) | |
13545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
13551 esac | |
13552 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13554 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13555 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13556 else | |
13557 eval "$as_ac_Header=$ac_header_preproc" | |
13558 fi | |
13559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 13560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 13561 |
13562 fi | |
40056 | 13563 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 13564 cat >>confdefs.h <<_ACEOF |
40056 | 13565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 13566 _ACEOF |
13567 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 | |
40056 | 13568 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 |
13569 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
13570 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13571 else | |
13572 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 13573 #line $LINENO "configure" |
29834 | 13574 #include "confdefs.h" |
13575 #include <nlist.h> | |
40056 | 13576 |
44493 | 13577 #ifdef F77_DUMMY_MAIN |
13578 # ifdef __cplusplus | |
13579 extern "C" | |
13580 # endif | |
13581 int F77_DUMMY_MAIN() { return 1; } | |
13582 #endif | |
40056 | 13583 int |
13584 main () | |
13585 { | |
13586 static struct nlist ac_aggr; | |
13587 if (ac_aggr.n_un.n_name) | |
13588 return 0; | |
13589 ; | |
13590 return 0; | |
13591 } | |
13592 _ACEOF | |
13593 rm -f conftest.$ac_objext | |
44493 | 13594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13595 (eval $ac_compile) 2>&5 | |
13596 ac_status=$? | |
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13598 (exit $ac_status); } && | |
13599 { ac_try='test -s conftest.$ac_objext' | |
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13601 (eval $ac_try) 2>&5 | |
13602 ac_status=$? | |
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 13604 (exit $ac_status); }; }; then |
13605 ac_cv_member_struct_nlist_n_un_n_name=yes | |
13606 else | |
13607 echo "$as_me: failed program was:" >&5 | |
13608 cat conftest.$ac_ext >&5 | |
13609 ac_cv_member_struct_nlist_n_un_n_name=no | |
13610 fi | |
13611 rm -f conftest.$ac_objext conftest.$ac_ext | |
13612 fi | |
44493 | 13613 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
40056 | 13614 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 |
13615 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
13616 | |
44493 | 13617 cat >>confdefs.h <<_ACEOF |
40056 | 13618 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
44493 | 13619 _ACEOF |
13620 | |
13621 | |
13622 cat >>confdefs.h <<\_ACEOF | |
29834 | 13623 #define NLIST_NAME_UNION 1 |
44493 | 13624 _ACEOF |
13625 | |
13626 fi | |
13627 | |
13628 | |
13629 fi | |
13630 | |
13631 done | |
13632 | |
13633 fi | |
13634 done | |
13635 | |
29834 | 13636 |
13637 # Some definitions of getloadavg require that the program be installed setgid. | |
44493 | 13638 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 |
40056 | 13639 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 |
13640 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
13641 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13642 else | |
13643 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 13644 #line $LINENO "configure" |
29834 | 13645 #include "confdefs.h" |
13646 #include "$srcdir/getloadavg.c" | |
13647 #ifdef LDAV_PRIVILEGED | |
13648 Yowza Am I SETGID yet | |
13649 #endif | |
40056 | 13650 _ACEOF |
29834 | 13651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13652 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then | |
13653 ac_cv_func_getloadavg_setgid=yes | |
13654 else | |
13655 ac_cv_func_getloadavg_setgid=no | |
13656 fi | |
13657 rm -f conftest* | |
13658 | |
13659 fi | |
44493 | 13660 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 |
40056 | 13661 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 |
29834 | 13662 if test $ac_cv_func_getloadavg_setgid = yes; then |
40056 | 13663 NEED_SETGID=true |
13664 | |
44493 | 13665 cat >>confdefs.h <<\_ACEOF |
29834 | 13666 #define GETLOADAVG_PRIVILEGED 1 |
44493 | 13667 _ACEOF |
29834 | 13668 |
13669 else | |
13670 NEED_SETGID=false | |
13671 fi | |
13672 | |
13673 if test $ac_cv_func_getloadavg_setgid = yes; then | |
44493 | 13674 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 |
40056 | 13675 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 |
13676 if test "${ac_cv_group_kmem+set}" = set; then | |
13677 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13678 else | |
13679 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
29834 | 13680 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` |
13681 # If we got an error (system does not support symlinks), try without -L. | |
13682 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
13683 ac_cv_group_kmem=`echo $ac_ls_output \ | |
13684 | sed -ne 's/[ ][ ]*/ /g; | |
13685 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
13686 / /s/.* //;p;'` | |
13687 | |
13688 fi | |
44493 | 13689 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 |
40056 | 13690 echo "${ECHO_T}$ac_cv_group_kmem" >&6 |
29834 | 13691 KMEM_GROUP=$ac_cv_group_kmem |
13692 fi | |
40056 | 13693 if test "x$ac_save_LIBS" = x; then |
13694 GETLOADAVG_LIBS=$LIBS | |
13695 else | |
13696 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
13697 fi | |
13698 LIBS=$ac_save_LIBS | |
13699 | |
44493 | 13700 |
13701 | |
13702 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
40056 | 13703 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
13704 if test "${ac_cv_sys_largefile_source+set}" = set; then | |
13705 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13706 else | |
13707 while :; do | |
34431 | 13708 ac_cv_sys_largefile_source=no |
40056 | 13709 cat >conftest.$ac_ext <<_ACEOF |
44493 | 13710 #line $LINENO "configure" |
34431 | 13711 #include "confdefs.h" |
13712 #include <stdio.h> | |
44493 | 13713 #ifdef F77_DUMMY_MAIN |
13714 # ifdef __cplusplus | |
13715 extern "C" | |
13716 # endif | |
13717 int F77_DUMMY_MAIN() { return 1; } | |
13718 #endif | |
40056 | 13719 int |
13720 main () | |
13721 { | |
34431 | 13722 return !fseeko; |
40056 | 13723 ; |
13724 return 0; | |
13725 } | |
13726 _ACEOF | |
13727 rm -f conftest.$ac_objext | |
44493 | 13728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13729 (eval $ac_compile) 2>&5 | |
13730 ac_status=$? | |
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13732 (exit $ac_status); } && | |
13733 { ac_try='test -s conftest.$ac_objext' | |
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13735 (eval $ac_try) 2>&5 | |
13736 ac_status=$? | |
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 13738 (exit $ac_status); }; }; then |
13739 break | |
13740 else | |
13741 echo "$as_me: failed program was:" >&5 | |
13742 cat conftest.$ac_ext >&5 | |
13743 fi | |
13744 rm -f conftest.$ac_objext conftest.$ac_ext | |
13745 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 13746 #line $LINENO "configure" |
34431 | 13747 #include "confdefs.h" |
13748 #define _LARGEFILE_SOURCE 1 | |
13749 #include <stdio.h> | |
44493 | 13750 #ifdef F77_DUMMY_MAIN |
13751 # ifdef __cplusplus | |
13752 extern "C" | |
13753 # endif | |
13754 int F77_DUMMY_MAIN() { return 1; } | |
13755 #endif | |
40056 | 13756 int |
13757 main () | |
13758 { | |
34431 | 13759 return !fseeko; |
40056 | 13760 ; |
13761 return 0; | |
13762 } | |
13763 _ACEOF | |
13764 rm -f conftest.$ac_objext | |
44493 | 13765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13766 (eval $ac_compile) 2>&5 | |
13767 ac_status=$? | |
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13769 (exit $ac_status); } && | |
13770 { ac_try='test -s conftest.$ac_objext' | |
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13772 (eval $ac_try) 2>&5 | |
13773 ac_status=$? | |
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 13775 (exit $ac_status); }; }; then |
13776 ac_cv_sys_largefile_source=1; break | |
13777 else | |
13778 echo "$as_me: failed program was:" >&5 | |
13779 cat conftest.$ac_ext >&5 | |
13780 fi | |
13781 rm -f conftest.$ac_objext conftest.$ac_ext | |
13782 break | |
13783 done | |
13784 fi | |
44493 | 13785 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
40056 | 13786 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 |
13787 if test "$ac_cv_sys_largefile_source" != no; then | |
13788 | |
44493 | 13789 cat >>confdefs.h <<_ACEOF |
40056 | 13790 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
44493 | 13791 _ACEOF |
40056 | 13792 |
34431 | 13793 fi |
13794 rm -f conftest* | |
40056 | 13795 |
13796 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
13797 # in glibc 2.1.3, but that breaks too many other things. | |
13798 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
44493 | 13799 echo "$as_me:$LINENO: checking for fseeko" >&5 |
40056 | 13800 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 |
13801 if test "${ac_cv_func_fseeko+set}" = set; then | |
13802 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13803 else | |
13804 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 13805 #line $LINENO "configure" |
34431 | 13806 #include "confdefs.h" |
13807 #include <stdio.h> | |
44493 | 13808 #ifdef F77_DUMMY_MAIN |
13809 # ifdef __cplusplus | |
13810 extern "C" | |
13811 # endif | |
13812 int F77_DUMMY_MAIN() { return 1; } | |
13813 #endif | |
40056 | 13814 int |
13815 main () | |
13816 { | |
34431 | 13817 return fseeko && fseeko (stdin, 0, 0); |
40056 | 13818 ; |
13819 return 0; | |
13820 } | |
13821 _ACEOF | |
13822 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 13823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13824 (eval $ac_link) 2>&5 | |
13825 ac_status=$? | |
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13827 (exit $ac_status); } && | |
13828 { ac_try='test -s conftest$ac_exeext' | |
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13830 (eval $ac_try) 2>&5 | |
13831 ac_status=$? | |
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 13833 (exit $ac_status); }; }; then |
34431 | 13834 ac_cv_func_fseeko=yes |
13835 else | |
40056 | 13836 echo "$as_me: failed program was:" >&5 |
13837 cat conftest.$ac_ext >&5 | |
13838 ac_cv_func_fseeko=no | |
13839 fi | |
13840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13841 fi | |
44493 | 13842 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 |
40056 | 13843 echo "${ECHO_T}$ac_cv_func_fseeko" >&6 |
13844 if test $ac_cv_func_fseeko = yes; then | |
13845 | |
44493 | 13846 cat >>confdefs.h <<\_ACEOF |
34431 | 13847 #define HAVE_FSEEKO 1 |
44493 | 13848 _ACEOF |
13849 | |
13850 fi | |
13851 | |
34431 | 13852 |
13853 # UNIX98 PTYs. | |
40056 | 13854 |
34431 | 13855 for ac_func in grantpt |
29036 | 13856 do |
40056 | 13857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44493 | 13858 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 13859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
13860 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13861 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13862 else | |
13863 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 13864 #line $LINENO "configure" |
29036 | 13865 #include "confdefs.h" |
13866 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 13867 which can conflict with char $ac_func (); below. */ |
29036 | 13868 #include <assert.h> |
13869 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 13870 #ifdef __cplusplus |
13871 extern "C" | |
13872 #endif | |
29036 | 13873 /* We use char because int might match the return type of a gcc2 |
40056 | 13874 builtin and then its argument prototype would still apply. */ |
13875 char $ac_func (); | |
13876 char (*f) (); | |
13877 | |
44493 | 13878 #ifdef F77_DUMMY_MAIN |
13879 # ifdef __cplusplus | |
13880 extern "C" | |
13881 # endif | |
13882 int F77_DUMMY_MAIN() { return 1; } | |
13883 #endif | |
40056 | 13884 int |
13885 main () | |
13886 { | |
29036 | 13887 /* The GNU C library defines this for functions which it implements |
13888 to always fail with ENOSYS. Some functions are actually named | |
13889 something starting with __ and the normal name is an alias. */ | |
13890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13891 choke me | |
13892 #else | |
40056 | 13893 f = $ac_func; |
13894 #endif | |
13895 | |
13896 ; | |
13897 return 0; | |
13898 } | |
13899 _ACEOF | |
13900 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 13901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13902 (eval $ac_link) 2>&5 | |
13903 ac_status=$? | |
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13905 (exit $ac_status); } && | |
13906 { ac_try='test -s conftest$ac_exeext' | |
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13908 (eval $ac_try) 2>&5 | |
13909 ac_status=$? | |
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 13911 (exit $ac_status); }; }; then |
13912 eval "$as_ac_var=yes" | |
13913 else | |
13914 echo "$as_me: failed program was:" >&5 | |
13915 cat conftest.$ac_ext >&5 | |
13916 eval "$as_ac_var=no" | |
13917 fi | |
13918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13919 fi | |
44493 | 13920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 13921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
13922 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 13923 cat >>confdefs.h <<_ACEOF |
40056 | 13924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 13925 _ACEOF |
13926 | |
13927 fi | |
13928 done | |
13929 | |
29036 | 13930 |
13931 # PTY-related GNU extensions. | |
40056 | 13932 |
29036 | 13933 for ac_func in getpt |
13934 do | |
40056 | 13935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44493 | 13936 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 13937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
13938 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13939 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13940 else | |
13941 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 13942 #line $LINENO "configure" |
29036 | 13943 #include "confdefs.h" |
13944 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 13945 which can conflict with char $ac_func (); below. */ |
29036 | 13946 #include <assert.h> |
13947 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 13948 #ifdef __cplusplus |
13949 extern "C" | |
13950 #endif | |
29036 | 13951 /* We use char because int might match the return type of a gcc2 |
40056 | 13952 builtin and then its argument prototype would still apply. */ |
13953 char $ac_func (); | |
13954 char (*f) (); | |
13955 | |
44493 | 13956 #ifdef F77_DUMMY_MAIN |
13957 # ifdef __cplusplus | |
13958 extern "C" | |
13959 # endif | |
13960 int F77_DUMMY_MAIN() { return 1; } | |
13961 #endif | |
40056 | 13962 int |
13963 main () | |
13964 { | |
29036 | 13965 /* The GNU C library defines this for functions which it implements |
13966 to always fail with ENOSYS. Some functions are actually named | |
13967 something starting with __ and the normal name is an alias. */ | |
13968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13969 choke me | |
13970 #else | |
40056 | 13971 f = $ac_func; |
13972 #endif | |
13973 | |
13974 ; | |
13975 return 0; | |
13976 } | |
13977 _ACEOF | |
13978 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 13979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13980 (eval $ac_link) 2>&5 | |
13981 ac_status=$? | |
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13983 (exit $ac_status); } && | |
13984 { ac_try='test -s conftest$ac_exeext' | |
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13986 (eval $ac_try) 2>&5 | |
13987 ac_status=$? | |
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 13989 (exit $ac_status); }; }; then |
13990 eval "$as_ac_var=yes" | |
13991 else | |
13992 echo "$as_me: failed program was:" >&5 | |
13993 cat conftest.$ac_ext >&5 | |
13994 eval "$as_ac_var=no" | |
13995 fi | |
13996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13997 fi | |
44493 | 13998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 13999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
14000 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 14001 cat >>confdefs.h <<_ACEOF |
40056 | 14002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 14003 _ACEOF |
14004 | |
14005 fi | |
14006 done | |
14007 | |
29036 | 14008 |
25897 | 14009 # Check this now, so that we will NOT find the above functions in ncurses. |
14010 # That is because we have not set up to link ncurses in lib-src. | |
14011 # It's better to believe a function is not available | |
14012 # than to expect to find it in ncurses. | |
40056 | 14013 |
44493 | 14014 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5 |
40056 | 14015 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 |
14016 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then | |
14017 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14018 else | |
14019 ac_check_lib_save_LIBS=$LIBS | |
25897 | 14020 LIBS="-lncurses $LIBS" |
40056 | 14021 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14022 #line $LINENO "configure" |
40056 | 14023 #include "confdefs.h" |
14024 | |
25897 | 14025 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 14026 #ifdef __cplusplus |
14027 extern "C" | |
14028 #endif | |
25897 | 14029 /* We use char because int might match the return type of a gcc2 |
40056 | 14030 builtin and then its argument prototype would still apply. */ |
14031 char tparm (); | |
44493 | 14032 #ifdef F77_DUMMY_MAIN |
14033 # ifdef __cplusplus | |
14034 extern "C" | |
14035 # endif | |
14036 int F77_DUMMY_MAIN() { return 1; } | |
14037 #endif | |
40056 | 14038 int |
14039 main () | |
14040 { | |
14041 tparm (); | |
14042 ; | |
14043 return 0; | |
14044 } | |
14045 _ACEOF | |
14046 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 14047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14048 (eval $ac_link) 2>&5 | |
14049 ac_status=$? | |
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14051 (exit $ac_status); } && | |
14052 { ac_try='test -s conftest$ac_exeext' | |
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14054 (eval $ac_try) 2>&5 | |
14055 ac_status=$? | |
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 14057 (exit $ac_status); }; }; then |
14058 ac_cv_lib_ncurses_tparm=yes | |
14059 else | |
14060 echo "$as_me: failed program was:" >&5 | |
14061 cat conftest.$ac_ext >&5 | |
14062 ac_cv_lib_ncurses_tparm=no | |
14063 fi | |
14064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14065 LIBS=$ac_check_lib_save_LIBS | |
14066 fi | |
44493 | 14067 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5 |
40056 | 14068 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 |
14069 if test $ac_cv_lib_ncurses_tparm = yes; then | |
44493 | 14070 cat >>confdefs.h <<_ACEOF |
40056 | 14071 #define HAVE_LIBNCURSES 1 |
44493 | 14072 _ACEOF |
25897 | 14073 |
14074 LIBS="-lncurses $LIBS" | |
14075 | |
40056 | 14076 fi |
25897 | 14077 |
44493 | 14078 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14079 # Do we need the Hesiod library to provide the support routines? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14080 if test "$with_hesiod" = yes ; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14081 # Don't set $LIBS here -- see comments above. |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14082 resolv=no |
44493 | 14083 echo "$as_me:$LINENO: checking for res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14084 echo $ECHO_N "checking for res_send... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14085 if test "${ac_cv_func_res_send+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14086 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14087 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14088 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14089 #line $LINENO "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14090 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14091 /* System header to define __stub macros and hopefully few prototypes, |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14092 which can conflict with char res_send (); below. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14093 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14094 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14095 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14096 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14097 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14098 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14099 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14100 char res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14101 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14102 |
44493 | 14103 #ifdef F77_DUMMY_MAIN |
14104 # ifdef __cplusplus | |
14105 extern "C" | |
14106 # endif | |
14107 int F77_DUMMY_MAIN() { return 1; } | |
14108 #endif | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14109 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14110 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14111 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14112 /* The GNU C library defines this for functions which it implements |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14113 to always fail with ENOSYS. Some functions are actually named |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14114 something starting with __ and the normal name is an alias. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14115 #if defined (__stub_res_send) || defined (__stub___res_send) |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14116 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14117 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14118 f = res_send; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14119 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14120 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14121 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14122 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14123 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14124 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14125 rm -f conftest.$ac_objext conftest$ac_exeext |
44493 | 14126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14127 (eval $ac_link) 2>&5 | |
14128 ac_status=$? | |
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14130 (exit $ac_status); } && | |
14131 { ac_try='test -s conftest$ac_exeext' | |
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14133 (eval $ac_try) 2>&5 | |
14134 ac_status=$? | |
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14136 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14137 ac_cv_func_res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14138 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14139 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14140 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14141 ac_cv_func_res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14142 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14144 fi |
44493 | 14145 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14146 echo "${ECHO_T}$ac_cv_func_res_send" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14147 if test $ac_cv_func_res_send = yes; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14148 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14149 else |
44493 | 14150 echo "$as_me:$LINENO: checking for __res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14151 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14152 if test "${ac_cv_func___res_send+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14153 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14154 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14155 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14156 #line $LINENO "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14157 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14158 /* System header to define __stub macros and hopefully few prototypes, |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14159 which can conflict with char __res_send (); below. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14160 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14161 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14162 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14163 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14164 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14165 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14166 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14167 char __res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14168 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14169 |
44493 | 14170 #ifdef F77_DUMMY_MAIN |
14171 # ifdef __cplusplus | |
14172 extern "C" | |
14173 # endif | |
14174 int F77_DUMMY_MAIN() { return 1; } | |
14175 #endif | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14176 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14177 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14178 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14179 /* The GNU C library defines this for functions which it implements |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14180 to always fail with ENOSYS. Some functions are actually named |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14181 something starting with __ and the normal name is an alias. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14182 #if defined (__stub___res_send) || defined (__stub_____res_send) |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14183 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14184 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14185 f = __res_send; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14186 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14187 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14188 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14189 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14190 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14191 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14192 rm -f conftest.$ac_objext conftest$ac_exeext |
44493 | 14193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14194 (eval $ac_link) 2>&5 | |
14195 ac_status=$? | |
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14197 (exit $ac_status); } && | |
14198 { ac_try='test -s conftest$ac_exeext' | |
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14200 (eval $ac_try) 2>&5 | |
14201 ac_status=$? | |
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14203 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14204 ac_cv_func___res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14205 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14206 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14207 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14208 ac_cv_func___res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14209 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14211 fi |
44493 | 14212 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14213 echo "${ECHO_T}$ac_cv_func___res_send" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14214 if test $ac_cv_func___res_send = yes; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14215 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14216 else |
44493 | 14217 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14218 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14219 if test "${ac_cv_lib_resolv_res_send+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14220 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14221 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14222 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14223 LIBS="-lresolv $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14224 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14225 #line $LINENO "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14226 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14227 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14228 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14229 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14230 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14231 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14232 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14233 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14234 char res_send (); |
44493 | 14235 #ifdef F77_DUMMY_MAIN |
14236 # ifdef __cplusplus | |
14237 extern "C" | |
14238 # endif | |
14239 int F77_DUMMY_MAIN() { return 1; } | |
14240 #endif | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14241 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14242 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14243 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14244 res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14245 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14246 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14247 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14248 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14249 rm -f conftest.$ac_objext conftest$ac_exeext |
44493 | 14250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14251 (eval $ac_link) 2>&5 | |
14252 ac_status=$? | |
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14254 (exit $ac_status); } && | |
14255 { ac_try='test -s conftest$ac_exeext' | |
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14257 (eval $ac_try) 2>&5 | |
14258 ac_status=$? | |
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14260 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14261 ac_cv_lib_resolv_res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14262 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14263 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14264 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14265 ac_cv_lib_resolv_res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14266 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14268 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14269 fi |
44493 | 14270 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14271 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14272 if test $ac_cv_lib_resolv_res_send = yes; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14273 resolv=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14274 else |
44493 | 14275 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14276 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14277 if test "${ac_cv_lib_resolv___res_send+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14278 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14279 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14280 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14281 LIBS="-lresolv $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14282 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14283 #line $LINENO "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14284 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14285 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14286 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14287 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14288 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14289 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14290 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14291 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14292 char __res_send (); |
44493 | 14293 #ifdef F77_DUMMY_MAIN |
14294 # ifdef __cplusplus | |
14295 extern "C" | |
14296 # endif | |
14297 int F77_DUMMY_MAIN() { return 1; } | |
14298 #endif | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14299 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14300 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14301 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14302 __res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14303 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14304 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14305 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14306 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14307 rm -f conftest.$ac_objext conftest$ac_exeext |
44493 | 14308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14309 (eval $ac_link) 2>&5 | |
14310 ac_status=$? | |
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14312 (exit $ac_status); } && | |
14313 { ac_try='test -s conftest$ac_exeext' | |
14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14315 (eval $ac_try) 2>&5 | |
14316 ac_status=$? | |
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14318 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14319 ac_cv_lib_resolv___res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14320 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14321 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14322 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14323 ac_cv_lib_resolv___res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14324 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14326 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14327 fi |
44493 | 14328 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14329 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14330 if test $ac_cv_lib_resolv___res_send = yes; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14331 resolv=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14332 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14333 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14334 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14335 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14336 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14337 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14338 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14339 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14340 if test "$resolv" = yes ; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14341 RESOLVLIB=-lresolv |
44493 | 14342 cat >>confdefs.h <<\_ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14343 #define HAVE_LIBRESOLV 1 |
44493 | 14344 _ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14345 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14346 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14347 RESOLVLIB= |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14348 fi |
44493 | 14349 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14350 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14351 if test "${ac_cv_func_hes_getmailhost+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14352 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14353 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14354 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14355 #line $LINENO "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14356 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14357 /* System header to define __stub macros and hopefully few prototypes, |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14358 which can conflict with char hes_getmailhost (); below. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14359 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14360 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14361 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14362 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14363 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14364 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14365 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14366 char hes_getmailhost (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14367 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14368 |
44493 | 14369 #ifdef F77_DUMMY_MAIN |
14370 # ifdef __cplusplus | |
14371 extern "C" | |
14372 # endif | |
14373 int F77_DUMMY_MAIN() { return 1; } | |
14374 #endif | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14375 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14376 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14377 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14378 /* The GNU C library defines this for functions which it implements |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14379 to always fail with ENOSYS. Some functions are actually named |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14380 something starting with __ and the normal name is an alias. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14381 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost) |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14382 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14383 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14384 f = hes_getmailhost; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14385 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14386 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14387 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14388 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14389 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14390 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14391 rm -f conftest.$ac_objext conftest$ac_exeext |
44493 | 14392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14393 (eval $ac_link) 2>&5 | |
14394 ac_status=$? | |
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14396 (exit $ac_status); } && | |
14397 { ac_try='test -s conftest$ac_exeext' | |
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14399 (eval $ac_try) 2>&5 | |
14400 ac_status=$? | |
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14402 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14403 ac_cv_func_hes_getmailhost=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14404 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14405 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14406 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14407 ac_cv_func_hes_getmailhost=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14408 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14410 fi |
44493 | 14411 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14412 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14413 if test $ac_cv_func_hes_getmailhost = yes; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14414 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14415 else |
44493 | 14416 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14417 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14418 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14419 echo $ECHO_N "(cached) $ECHO_C" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14420 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14421 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14422 LIBS="-lhesiod $RESOLVLIB $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14423 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14424 #line $LINENO "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14425 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14426 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14427 /* Override any gcc2 internal prototype to avoid an error. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14428 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14429 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14430 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14431 /* We use char because int might match the return type of a gcc2 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14432 builtin and then its argument prototype would still apply. */ |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14433 char hes_getmailhost (); |
44493 | 14434 #ifdef F77_DUMMY_MAIN |
14435 # ifdef __cplusplus | |
14436 extern "C" | |
14437 # endif | |
14438 int F77_DUMMY_MAIN() { return 1; } | |
14439 #endif | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14440 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14441 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14442 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14443 hes_getmailhost (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14444 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14445 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14446 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14447 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14448 rm -f conftest.$ac_objext conftest$ac_exeext |
44493 | 14449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14450 (eval $ac_link) 2>&5 | |
14451 ac_status=$? | |
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14453 (exit $ac_status); } && | |
14454 { ac_try='test -s conftest$ac_exeext' | |
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14456 (eval $ac_try) 2>&5 | |
14457 ac_status=$? | |
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14459 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14460 ac_cv_lib_hesiod_hes_getmailhost=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14461 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14462 echo "$as_me: failed program was:" >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14463 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14464 ac_cv_lib_hesiod_hes_getmailhost=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14465 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14467 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14468 fi |
44493 | 14469 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14470 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14471 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then |
44493 | 14472 cat >>confdefs.h <<\_ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14473 #define HAVE_LIBHESIOD 1 |
44493 | 14474 _ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14475 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14476 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14477 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14478 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14479 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14480 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14481 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14482 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
14483 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14484 # These tell us which Kerberos-related libraries to use. |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14485 if test "${with_kerberos+set}" = set; then |
40056 | 14486 |
44493 | 14487 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 |
40056 | 14488 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 |
14489 if test "${ac_cv_lib_com_err_com_err+set}" = set; then | |
14490 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14491 else | |
14492 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14493 LIBS="-lcom_err $LIBS" |
40056 | 14494 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14495 #line $LINENO "configure" |
40056 | 14496 #include "confdefs.h" |
14497 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14498 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 14499 #ifdef __cplusplus |
14500 extern "C" | |
14501 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14502 /* We use char because int might match the return type of a gcc2 |
40056 | 14503 builtin and then its argument prototype would still apply. */ |
14504 char com_err (); | |
44493 | 14505 #ifdef F77_DUMMY_MAIN |
14506 # ifdef __cplusplus | |
14507 extern "C" | |
14508 # endif | |
14509 int F77_DUMMY_MAIN() { return 1; } | |
14510 #endif | |
40056 | 14511 int |
14512 main () | |
14513 { | |
14514 com_err (); | |
14515 ; | |
14516 return 0; | |
14517 } | |
14518 _ACEOF | |
14519 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 14520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14521 (eval $ac_link) 2>&5 | |
14522 ac_status=$? | |
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14524 (exit $ac_status); } && | |
14525 { ac_try='test -s conftest$ac_exeext' | |
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14527 (eval $ac_try) 2>&5 | |
14528 ac_status=$? | |
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 14530 (exit $ac_status); }; }; then |
14531 ac_cv_lib_com_err_com_err=yes | |
14532 else | |
14533 echo "$as_me: failed program was:" >&5 | |
14534 cat conftest.$ac_ext >&5 | |
14535 ac_cv_lib_com_err_com_err=no | |
14536 fi | |
14537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14538 LIBS=$ac_check_lib_save_LIBS | |
14539 fi | |
44493 | 14540 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 |
40056 | 14541 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 |
14542 if test $ac_cv_lib_com_err_com_err = yes; then | |
44493 | 14543 cat >>confdefs.h <<_ACEOF |
40056 | 14544 #define HAVE_LIBCOM_ERR 1 |
44493 | 14545 _ACEOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14546 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14547 LIBS="-lcom_err $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14548 |
40056 | 14549 fi |
14550 | |
44493 | 14551 |
14552 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | |
40056 | 14553 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 |
14554 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | |
14555 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14556 else | |
14557 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14558 LIBS="-lk5crypto $LIBS" |
40056 | 14559 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14560 #line $LINENO "configure" |
40056 | 14561 #include "confdefs.h" |
14562 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14563 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 14564 #ifdef __cplusplus |
14565 extern "C" | |
14566 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14567 /* We use char because int might match the return type of a gcc2 |
40056 | 14568 builtin and then its argument prototype would still apply. */ |
14569 char mit_des_cbc_encrypt (); | |
44493 | 14570 #ifdef F77_DUMMY_MAIN |
14571 # ifdef __cplusplus | |
14572 extern "C" | |
14573 # endif | |
14574 int F77_DUMMY_MAIN() { return 1; } | |
14575 #endif | |
40056 | 14576 int |
14577 main () | |
14578 { | |
14579 mit_des_cbc_encrypt (); | |
14580 ; | |
14581 return 0; | |
14582 } | |
14583 _ACEOF | |
14584 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 14585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14586 (eval $ac_link) 2>&5 | |
14587 ac_status=$? | |
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14589 (exit $ac_status); } && | |
14590 { ac_try='test -s conftest$ac_exeext' | |
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14592 (eval $ac_try) 2>&5 | |
14593 ac_status=$? | |
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 14595 (exit $ac_status); }; }; then |
14596 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | |
14597 else | |
14598 echo "$as_me: failed program was:" >&5 | |
14599 cat conftest.$ac_ext >&5 | |
14600 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no | |
14601 fi | |
14602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14603 LIBS=$ac_check_lib_save_LIBS | |
14604 fi | |
44493 | 14605 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
40056 | 14606 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 |
14607 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | |
44493 | 14608 cat >>confdefs.h <<_ACEOF |
40056 | 14609 #define HAVE_LIBK5CRYPTO 1 |
44493 | 14610 _ACEOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14611 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14612 LIBS="-lk5crypto $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14613 |
40056 | 14614 fi |
14615 | |
44493 | 14616 |
14617 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | |
40056 | 14618 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 |
14619 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | |
14620 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14621 else | |
14622 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14623 LIBS="-lcrypto $LIBS" |
40056 | 14624 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14625 #line $LINENO "configure" |
40056 | 14626 #include "confdefs.h" |
14627 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14628 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 14629 #ifdef __cplusplus |
14630 extern "C" | |
14631 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14632 /* We use char because int might match the return type of a gcc2 |
40056 | 14633 builtin and then its argument prototype would still apply. */ |
14634 char mit_des_cbc_encrypt (); | |
44493 | 14635 #ifdef F77_DUMMY_MAIN |
14636 # ifdef __cplusplus | |
14637 extern "C" | |
14638 # endif | |
14639 int F77_DUMMY_MAIN() { return 1; } | |
14640 #endif | |
40056 | 14641 int |
14642 main () | |
14643 { | |
14644 mit_des_cbc_encrypt (); | |
14645 ; | |
14646 return 0; | |
14647 } | |
14648 _ACEOF | |
14649 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 14650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14651 (eval $ac_link) 2>&5 | |
14652 ac_status=$? | |
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14654 (exit $ac_status); } && | |
14655 { ac_try='test -s conftest$ac_exeext' | |
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14657 (eval $ac_try) 2>&5 | |
14658 ac_status=$? | |
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 14660 (exit $ac_status); }; }; then |
14661 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | |
14662 else | |
14663 echo "$as_me: failed program was:" >&5 | |
14664 cat conftest.$ac_ext >&5 | |
14665 ac_cv_lib_crypto_mit_des_cbc_encrypt=no | |
14666 fi | |
14667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14668 LIBS=$ac_check_lib_save_LIBS | |
14669 fi | |
44493 | 14670 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
40056 | 14671 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 |
14672 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | |
44493 | 14673 cat >>confdefs.h <<_ACEOF |
40056 | 14674 #define HAVE_LIBCRYPTO 1 |
44493 | 14675 _ACEOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14676 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14677 LIBS="-lcrypto $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14678 |
40056 | 14679 fi |
14680 | |
44493 | 14681 |
14682 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 | |
40056 | 14683 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 |
14684 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | |
14685 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14686 else | |
14687 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14688 LIBS="-lkrb5 $LIBS" |
40056 | 14689 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14690 #line $LINENO "configure" |
40056 | 14691 #include "confdefs.h" |
14692 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14693 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 14694 #ifdef __cplusplus |
14695 extern "C" | |
14696 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14697 /* We use char because int might match the return type of a gcc2 |
40056 | 14698 builtin and then its argument prototype would still apply. */ |
14699 char krb5_init_context (); | |
44493 | 14700 #ifdef F77_DUMMY_MAIN |
14701 # ifdef __cplusplus | |
14702 extern "C" | |
14703 # endif | |
14704 int F77_DUMMY_MAIN() { return 1; } | |
14705 #endif | |
40056 | 14706 int |
14707 main () | |
14708 { | |
14709 krb5_init_context (); | |
14710 ; | |
14711 return 0; | |
14712 } | |
14713 _ACEOF | |
14714 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 14715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14716 (eval $ac_link) 2>&5 | |
14717 ac_status=$? | |
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14719 (exit $ac_status); } && | |
14720 { ac_try='test -s conftest$ac_exeext' | |
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14722 (eval $ac_try) 2>&5 | |
14723 ac_status=$? | |
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 14725 (exit $ac_status); }; }; then |
14726 ac_cv_lib_krb5_krb5_init_context=yes | |
14727 else | |
14728 echo "$as_me: failed program was:" >&5 | |
14729 cat conftest.$ac_ext >&5 | |
14730 ac_cv_lib_krb5_krb5_init_context=no | |
14731 fi | |
14732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14733 LIBS=$ac_check_lib_save_LIBS | |
14734 fi | |
44493 | 14735 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
40056 | 14736 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 |
14737 if test $ac_cv_lib_krb5_krb5_init_context = yes; then | |
44493 | 14738 cat >>confdefs.h <<_ACEOF |
40056 | 14739 #define HAVE_LIBKRB5 1 |
44493 | 14740 _ACEOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14741 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14742 LIBS="-lkrb5 $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14743 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14744 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14745 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14746 if test "${with_kerberos5+set}" != set; then |
40056 | 14747 |
44493 | 14748 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 |
40056 | 14749 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 |
14750 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | |
14751 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14752 else | |
14753 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14754 LIBS="-ldes425 $LIBS" |
40056 | 14755 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14756 #line $LINENO "configure" |
40056 | 14757 #include "confdefs.h" |
14758 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14759 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 14760 #ifdef __cplusplus |
14761 extern "C" | |
14762 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14763 /* We use char because int might match the return type of a gcc2 |
40056 | 14764 builtin and then its argument prototype would still apply. */ |
14765 char des_cbc_encrypt (); | |
44493 | 14766 #ifdef F77_DUMMY_MAIN |
14767 # ifdef __cplusplus | |
14768 extern "C" | |
14769 # endif | |
14770 int F77_DUMMY_MAIN() { return 1; } | |
14771 #endif | |
40056 | 14772 int |
14773 main () | |
14774 { | |
14775 des_cbc_encrypt (); | |
14776 ; | |
14777 return 0; | |
14778 } | |
14779 _ACEOF | |
14780 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 14781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14782 (eval $ac_link) 2>&5 | |
14783 ac_status=$? | |
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14785 (exit $ac_status); } && | |
14786 { ac_try='test -s conftest$ac_exeext' | |
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14788 (eval $ac_try) 2>&5 | |
14789 ac_status=$? | |
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 14791 (exit $ac_status); }; }; then |
14792 ac_cv_lib_des425_des_cbc_encrypt=yes | |
14793 else | |
14794 echo "$as_me: failed program was:" >&5 | |
14795 cat conftest.$ac_ext >&5 | |
14796 ac_cv_lib_des425_des_cbc_encrypt=no | |
14797 fi | |
14798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14799 LIBS=$ac_check_lib_save_LIBS | |
14800 fi | |
44493 | 14801 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
40056 | 14802 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 |
14803 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | |
44493 | 14804 cat >>confdefs.h <<_ACEOF |
40056 | 14805 #define HAVE_LIBDES425 1 |
44493 | 14806 _ACEOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14807 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14808 LIBS="-ldes425 $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14809 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14810 else |
40056 | 14811 |
44493 | 14812 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 |
40056 | 14813 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 |
14814 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | |
14815 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14816 else | |
14817 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14818 LIBS="-ldes $LIBS" |
40056 | 14819 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14820 #line $LINENO "configure" |
40056 | 14821 #include "confdefs.h" |
14822 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14823 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 14824 #ifdef __cplusplus |
14825 extern "C" | |
14826 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14827 /* We use char because int might match the return type of a gcc2 |
40056 | 14828 builtin and then its argument prototype would still apply. */ |
14829 char des_cbc_encrypt (); | |
44493 | 14830 #ifdef F77_DUMMY_MAIN |
14831 # ifdef __cplusplus | |
14832 extern "C" | |
14833 # endif | |
14834 int F77_DUMMY_MAIN() { return 1; } | |
14835 #endif | |
40056 | 14836 int |
14837 main () | |
14838 { | |
14839 des_cbc_encrypt (); | |
14840 ; | |
14841 return 0; | |
14842 } | |
14843 _ACEOF | |
14844 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 14845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14846 (eval $ac_link) 2>&5 | |
14847 ac_status=$? | |
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14849 (exit $ac_status); } && | |
14850 { ac_try='test -s conftest$ac_exeext' | |
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14852 (eval $ac_try) 2>&5 | |
14853 ac_status=$? | |
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 14855 (exit $ac_status); }; }; then |
14856 ac_cv_lib_des_des_cbc_encrypt=yes | |
14857 else | |
14858 echo "$as_me: failed program was:" >&5 | |
14859 cat conftest.$ac_ext >&5 | |
14860 ac_cv_lib_des_des_cbc_encrypt=no | |
14861 fi | |
14862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14863 LIBS=$ac_check_lib_save_LIBS | |
14864 fi | |
44493 | 14865 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
40056 | 14866 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 |
14867 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | |
44493 | 14868 cat >>confdefs.h <<_ACEOF |
40056 | 14869 #define HAVE_LIBDES 1 |
44493 | 14870 _ACEOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14871 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14872 LIBS="-ldes $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14873 |
40056 | 14874 fi |
14875 | |
14876 fi | |
14877 | |
44493 | 14878 |
14879 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 | |
40056 | 14880 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 |
14881 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | |
14882 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14883 else | |
14884 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14885 LIBS="-lkrb4 $LIBS" |
40056 | 14886 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14887 #line $LINENO "configure" |
40056 | 14888 #include "confdefs.h" |
14889 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14890 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 14891 #ifdef __cplusplus |
14892 extern "C" | |
14893 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14894 /* We use char because int might match the return type of a gcc2 |
40056 | 14895 builtin and then its argument prototype would still apply. */ |
14896 char krb_get_cred (); | |
44493 | 14897 #ifdef F77_DUMMY_MAIN |
14898 # ifdef __cplusplus | |
14899 extern "C" | |
14900 # endif | |
14901 int F77_DUMMY_MAIN() { return 1; } | |
14902 #endif | |
40056 | 14903 int |
14904 main () | |
14905 { | |
14906 krb_get_cred (); | |
14907 ; | |
14908 return 0; | |
14909 } | |
14910 _ACEOF | |
14911 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 14912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14913 (eval $ac_link) 2>&5 | |
14914 ac_status=$? | |
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14916 (exit $ac_status); } && | |
14917 { ac_try='test -s conftest$ac_exeext' | |
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14919 (eval $ac_try) 2>&5 | |
14920 ac_status=$? | |
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 14922 (exit $ac_status); }; }; then |
14923 ac_cv_lib_krb4_krb_get_cred=yes | |
14924 else | |
14925 echo "$as_me: failed program was:" >&5 | |
14926 cat conftest.$ac_ext >&5 | |
14927 ac_cv_lib_krb4_krb_get_cred=no | |
14928 fi | |
14929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14930 LIBS=$ac_check_lib_save_LIBS | |
14931 fi | |
44493 | 14932 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
40056 | 14933 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 |
14934 if test $ac_cv_lib_krb4_krb_get_cred = yes; then | |
44493 | 14935 cat >>confdefs.h <<_ACEOF |
40056 | 14936 #define HAVE_LIBKRB4 1 |
44493 | 14937 _ACEOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14938 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14939 LIBS="-lkrb4 $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14940 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14941 else |
40056 | 14942 |
44493 | 14943 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 |
40056 | 14944 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 |
14945 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | |
14946 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14947 else | |
14948 ac_check_lib_save_LIBS=$LIBS | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14949 LIBS="-lkrb $LIBS" |
40056 | 14950 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14951 #line $LINENO "configure" |
40056 | 14952 #include "confdefs.h" |
14953 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14954 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 14955 #ifdef __cplusplus |
14956 extern "C" | |
14957 #endif | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14958 /* We use char because int might match the return type of a gcc2 |
40056 | 14959 builtin and then its argument prototype would still apply. */ |
14960 char krb_get_cred (); | |
44493 | 14961 #ifdef F77_DUMMY_MAIN |
14962 # ifdef __cplusplus | |
14963 extern "C" | |
14964 # endif | |
14965 int F77_DUMMY_MAIN() { return 1; } | |
14966 #endif | |
40056 | 14967 int |
14968 main () | |
14969 { | |
14970 krb_get_cred (); | |
14971 ; | |
14972 return 0; | |
14973 } | |
14974 _ACEOF | |
14975 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 14976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14977 (eval $ac_link) 2>&5 | |
14978 ac_status=$? | |
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14980 (exit $ac_status); } && | |
14981 { ac_try='test -s conftest$ac_exeext' | |
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14983 (eval $ac_try) 2>&5 | |
14984 ac_status=$? | |
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 14986 (exit $ac_status); }; }; then |
14987 ac_cv_lib_krb_krb_get_cred=yes | |
14988 else | |
14989 echo "$as_me: failed program was:" >&5 | |
14990 cat conftest.$ac_ext >&5 | |
14991 ac_cv_lib_krb_krb_get_cred=no | |
14992 fi | |
14993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14994 LIBS=$ac_check_lib_save_LIBS | |
14995 fi | |
44493 | 14996 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
40056 | 14997 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 |
14998 if test $ac_cv_lib_krb_krb_get_cred = yes; then | |
44493 | 14999 cat >>confdefs.h <<_ACEOF |
40056 | 15000 #define HAVE_LIBKRB 1 |
44493 | 15001 _ACEOF |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15002 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15003 LIBS="-lkrb $LIBS" |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15004 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15005 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15006 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15007 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15008 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15009 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15010 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15011 if test "${with_kerberos5+set}" = set; then |
40056 | 15012 |
15013 for ac_header in krb5.h | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15014 do |
40056 | 15015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 15016 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15017 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 15018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15019 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15020 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 15021 fi |
15022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15024 else | |
15025 # Is the header compilable? | |
15026 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15028 cat >conftest.$ac_ext <<_ACEOF | |
15029 #line $LINENO "configure" | |
15030 #include "confdefs.h" | |
15031 $ac_includes_default | |
15032 #include <$ac_header> | |
15033 _ACEOF | |
15034 rm -f conftest.$ac_objext | |
15035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15036 (eval $ac_compile) 2>&5 | |
15037 ac_status=$? | |
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15039 (exit $ac_status); } && | |
15040 { ac_try='test -s conftest.$ac_objext' | |
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15042 (eval $ac_try) 2>&5 | |
15043 ac_status=$? | |
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15045 (exit $ac_status); }; }; then | |
15046 ac_header_compiler=yes | |
15047 else | |
15048 echo "$as_me: failed program was:" >&5 | |
15049 cat conftest.$ac_ext >&5 | |
15050 ac_header_compiler=no | |
15051 fi | |
15052 rm -f conftest.$ac_objext conftest.$ac_ext | |
15053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15054 echo "${ECHO_T}$ac_header_compiler" >&6 | |
15055 | |
15056 # Is the header present? | |
15057 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15059 cat >conftest.$ac_ext <<_ACEOF | |
15060 #line $LINENO "configure" | |
40056 | 15061 #include "confdefs.h" |
15062 #include <$ac_header> | |
15063 _ACEOF | |
44493 | 15064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 15065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15066 ac_status=$? | |
15067 egrep -v '^ *\+' conftest.er1 >conftest.err | |
15068 rm -f conftest.er1 | |
15069 cat conftest.err >&5 | |
44493 | 15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 15071 (exit $ac_status); } >/dev/null; then |
15072 if test -s conftest.err; then | |
15073 ac_cpp_err=$ac_c_preproc_warn_flag | |
15074 else | |
15075 ac_cpp_err= | |
15076 fi | |
15077 else | |
15078 ac_cpp_err=yes | |
15079 fi | |
15080 if test -z "$ac_cpp_err"; then | |
44493 | 15081 ac_header_preproc=yes |
40056 | 15082 else |
15083 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15084 cat conftest.$ac_ext >&5 |
44493 | 15085 ac_header_preproc=no |
40056 | 15086 fi |
15087 rm -f conftest.err conftest.$ac_ext | |
44493 | 15088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15089 echo "${ECHO_T}$ac_header_preproc" >&6 | |
15090 | |
15091 # So? What about this header? | |
15092 case $ac_header_compiler:$ac_header_preproc in | |
15093 yes:no ) | |
15094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15098 no:yes ) | |
15099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15105 esac | |
15106 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15108 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15109 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15110 else | |
15111 eval "$as_ac_Header=$ac_header_preproc" | |
15112 fi | |
15113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 15114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 15115 |
15116 fi | |
40056 | 15117 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 15118 cat >>confdefs.h <<_ACEOF |
40056 | 15119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 15120 _ACEOF |
15121 | |
15122 fi | |
15123 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15124 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15125 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15126 else |
40056 | 15127 |
15128 for ac_header in des.h | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15129 do |
40056 | 15130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 15131 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15132 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 15133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15134 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15135 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 15136 fi |
15137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15139 else | |
15140 # Is the header compilable? | |
15141 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15143 cat >conftest.$ac_ext <<_ACEOF | |
15144 #line $LINENO "configure" | |
15145 #include "confdefs.h" | |
15146 $ac_includes_default | |
15147 #include <$ac_header> | |
15148 _ACEOF | |
15149 rm -f conftest.$ac_objext | |
15150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15151 (eval $ac_compile) 2>&5 | |
15152 ac_status=$? | |
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15154 (exit $ac_status); } && | |
15155 { ac_try='test -s conftest.$ac_objext' | |
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15157 (eval $ac_try) 2>&5 | |
15158 ac_status=$? | |
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15160 (exit $ac_status); }; }; then | |
15161 ac_header_compiler=yes | |
15162 else | |
15163 echo "$as_me: failed program was:" >&5 | |
15164 cat conftest.$ac_ext >&5 | |
15165 ac_header_compiler=no | |
15166 fi | |
15167 rm -f conftest.$ac_objext conftest.$ac_ext | |
15168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15169 echo "${ECHO_T}$ac_header_compiler" >&6 | |
15170 | |
15171 # Is the header present? | |
15172 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15174 cat >conftest.$ac_ext <<_ACEOF | |
15175 #line $LINENO "configure" | |
40056 | 15176 #include "confdefs.h" |
15177 #include <$ac_header> | |
15178 _ACEOF | |
44493 | 15179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 15180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15181 ac_status=$? | |
15182 egrep -v '^ *\+' conftest.er1 >conftest.err | |
15183 rm -f conftest.er1 | |
15184 cat conftest.err >&5 | |
44493 | 15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 15186 (exit $ac_status); } >/dev/null; then |
15187 if test -s conftest.err; then | |
15188 ac_cpp_err=$ac_c_preproc_warn_flag | |
15189 else | |
15190 ac_cpp_err= | |
15191 fi | |
15192 else | |
15193 ac_cpp_err=yes | |
15194 fi | |
15195 if test -z "$ac_cpp_err"; then | |
44493 | 15196 ac_header_preproc=yes |
40056 | 15197 else |
15198 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15199 cat conftest.$ac_ext >&5 |
44493 | 15200 ac_header_preproc=no |
40056 | 15201 fi |
15202 rm -f conftest.err conftest.$ac_ext | |
44493 | 15203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15204 echo "${ECHO_T}$ac_header_preproc" >&6 | |
15205 | |
15206 # So? What about this header? | |
15207 case $ac_header_compiler:$ac_header_preproc in | |
15208 yes:no ) | |
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15213 no:yes ) | |
15214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15220 esac | |
15221 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15223 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15224 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15225 else | |
15226 eval "$as_ac_Header=$ac_header_preproc" | |
15227 fi | |
15228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 15229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 15230 |
15231 fi | |
40056 | 15232 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 15233 cat >>confdefs.h <<_ACEOF |
40056 | 15234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 15235 _ACEOF |
40056 | 15236 |
15237 else | |
15238 | |
15239 for ac_header in kerberosIV/des.h | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15240 do |
40056 | 15241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 15242 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15243 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 15244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15245 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15246 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 15247 fi |
15248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15250 else | |
15251 # Is the header compilable? | |
15252 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15254 cat >conftest.$ac_ext <<_ACEOF | |
15255 #line $LINENO "configure" | |
15256 #include "confdefs.h" | |
15257 $ac_includes_default | |
15258 #include <$ac_header> | |
15259 _ACEOF | |
15260 rm -f conftest.$ac_objext | |
15261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15262 (eval $ac_compile) 2>&5 | |
15263 ac_status=$? | |
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15265 (exit $ac_status); } && | |
15266 { ac_try='test -s conftest.$ac_objext' | |
15267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15268 (eval $ac_try) 2>&5 | |
15269 ac_status=$? | |
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15271 (exit $ac_status); }; }; then | |
15272 ac_header_compiler=yes | |
15273 else | |
15274 echo "$as_me: failed program was:" >&5 | |
15275 cat conftest.$ac_ext >&5 | |
15276 ac_header_compiler=no | |
15277 fi | |
15278 rm -f conftest.$ac_objext conftest.$ac_ext | |
15279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15280 echo "${ECHO_T}$ac_header_compiler" >&6 | |
15281 | |
15282 # Is the header present? | |
15283 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15285 cat >conftest.$ac_ext <<_ACEOF | |
15286 #line $LINENO "configure" | |
40056 | 15287 #include "confdefs.h" |
15288 #include <$ac_header> | |
15289 _ACEOF | |
44493 | 15290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 15291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15292 ac_status=$? | |
15293 egrep -v '^ *\+' conftest.er1 >conftest.err | |
15294 rm -f conftest.er1 | |
15295 cat conftest.err >&5 | |
44493 | 15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 15297 (exit $ac_status); } >/dev/null; then |
15298 if test -s conftest.err; then | |
15299 ac_cpp_err=$ac_c_preproc_warn_flag | |
15300 else | |
15301 ac_cpp_err= | |
15302 fi | |
15303 else | |
15304 ac_cpp_err=yes | |
15305 fi | |
15306 if test -z "$ac_cpp_err"; then | |
44493 | 15307 ac_header_preproc=yes |
40056 | 15308 else |
15309 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15310 cat conftest.$ac_ext >&5 |
44493 | 15311 ac_header_preproc=no |
40056 | 15312 fi |
15313 rm -f conftest.err conftest.$ac_ext | |
44493 | 15314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15315 echo "${ECHO_T}$ac_header_preproc" >&6 | |
15316 | |
15317 # So? What about this header? | |
15318 case $ac_header_compiler:$ac_header_preproc in | |
15319 yes:no ) | |
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15324 no:yes ) | |
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15331 esac | |
15332 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15334 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15335 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15336 else | |
15337 eval "$as_ac_Header=$ac_header_preproc" | |
15338 fi | |
15339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 15340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 15341 |
15342 fi | |
40056 | 15343 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 15344 cat >>confdefs.h <<_ACEOF |
40056 | 15345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 15346 _ACEOF |
40056 | 15347 |
15348 else | |
15349 | |
15350 for ac_header in kerberos/des.h | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15351 do |
40056 | 15352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 15353 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15354 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 15355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15356 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15357 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 15358 fi |
15359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15361 else | |
15362 # Is the header compilable? | |
15363 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15365 cat >conftest.$ac_ext <<_ACEOF | |
15366 #line $LINENO "configure" | |
15367 #include "confdefs.h" | |
15368 $ac_includes_default | |
15369 #include <$ac_header> | |
15370 _ACEOF | |
15371 rm -f conftest.$ac_objext | |
15372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15373 (eval $ac_compile) 2>&5 | |
15374 ac_status=$? | |
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15376 (exit $ac_status); } && | |
15377 { ac_try='test -s conftest.$ac_objext' | |
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15379 (eval $ac_try) 2>&5 | |
15380 ac_status=$? | |
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15382 (exit $ac_status); }; }; then | |
15383 ac_header_compiler=yes | |
15384 else | |
15385 echo "$as_me: failed program was:" >&5 | |
15386 cat conftest.$ac_ext >&5 | |
15387 ac_header_compiler=no | |
15388 fi | |
15389 rm -f conftest.$ac_objext conftest.$ac_ext | |
15390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15391 echo "${ECHO_T}$ac_header_compiler" >&6 | |
15392 | |
15393 # Is the header present? | |
15394 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15396 cat >conftest.$ac_ext <<_ACEOF | |
15397 #line $LINENO "configure" | |
40056 | 15398 #include "confdefs.h" |
15399 #include <$ac_header> | |
15400 _ACEOF | |
44493 | 15401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 15402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15403 ac_status=$? | |
15404 egrep -v '^ *\+' conftest.er1 >conftest.err | |
15405 rm -f conftest.er1 | |
15406 cat conftest.err >&5 | |
44493 | 15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 15408 (exit $ac_status); } >/dev/null; then |
15409 if test -s conftest.err; then | |
15410 ac_cpp_err=$ac_c_preproc_warn_flag | |
15411 else | |
15412 ac_cpp_err= | |
15413 fi | |
15414 else | |
15415 ac_cpp_err=yes | |
15416 fi | |
15417 if test -z "$ac_cpp_err"; then | |
44493 | 15418 ac_header_preproc=yes |
40056 | 15419 else |
15420 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15421 cat conftest.$ac_ext >&5 |
44493 | 15422 ac_header_preproc=no |
40056 | 15423 fi |
15424 rm -f conftest.err conftest.$ac_ext | |
44493 | 15425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15426 echo "${ECHO_T}$ac_header_preproc" >&6 | |
15427 | |
15428 # So? What about this header? | |
15429 case $ac_header_compiler:$ac_header_preproc in | |
15430 yes:no ) | |
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15435 no:yes ) | |
15436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15442 esac | |
15443 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15445 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15446 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15447 else | |
15448 eval "$as_ac_Header=$ac_header_preproc" | |
15449 fi | |
15450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 15451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 15452 |
15453 fi | |
40056 | 15454 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 15455 cat >>confdefs.h <<_ACEOF |
40056 | 15456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 15457 _ACEOF |
15458 | |
15459 fi | |
15460 | |
15461 done | |
15462 | |
15463 fi | |
15464 | |
15465 done | |
15466 | |
15467 fi | |
15468 | |
15469 done | |
15470 | |
15471 | |
15472 for ac_header in krb.h | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15473 do |
40056 | 15474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 15475 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15476 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 15477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15478 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15479 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 15480 fi |
15481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15483 else | |
15484 # Is the header compilable? | |
15485 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15487 cat >conftest.$ac_ext <<_ACEOF | |
15488 #line $LINENO "configure" | |
15489 #include "confdefs.h" | |
15490 $ac_includes_default | |
15491 #include <$ac_header> | |
15492 _ACEOF | |
15493 rm -f conftest.$ac_objext | |
15494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15495 (eval $ac_compile) 2>&5 | |
15496 ac_status=$? | |
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15498 (exit $ac_status); } && | |
15499 { ac_try='test -s conftest.$ac_objext' | |
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15501 (eval $ac_try) 2>&5 | |
15502 ac_status=$? | |
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15504 (exit $ac_status); }; }; then | |
15505 ac_header_compiler=yes | |
15506 else | |
15507 echo "$as_me: failed program was:" >&5 | |
15508 cat conftest.$ac_ext >&5 | |
15509 ac_header_compiler=no | |
15510 fi | |
15511 rm -f conftest.$ac_objext conftest.$ac_ext | |
15512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15513 echo "${ECHO_T}$ac_header_compiler" >&6 | |
15514 | |
15515 # Is the header present? | |
15516 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15518 cat >conftest.$ac_ext <<_ACEOF | |
15519 #line $LINENO "configure" | |
40056 | 15520 #include "confdefs.h" |
15521 #include <$ac_header> | |
15522 _ACEOF | |
44493 | 15523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 15524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15525 ac_status=$? | |
15526 egrep -v '^ *\+' conftest.er1 >conftest.err | |
15527 rm -f conftest.er1 | |
15528 cat conftest.err >&5 | |
44493 | 15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 15530 (exit $ac_status); } >/dev/null; then |
15531 if test -s conftest.err; then | |
15532 ac_cpp_err=$ac_c_preproc_warn_flag | |
15533 else | |
15534 ac_cpp_err= | |
15535 fi | |
15536 else | |
15537 ac_cpp_err=yes | |
15538 fi | |
15539 if test -z "$ac_cpp_err"; then | |
44493 | 15540 ac_header_preproc=yes |
40056 | 15541 else |
15542 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15543 cat conftest.$ac_ext >&5 |
44493 | 15544 ac_header_preproc=no |
40056 | 15545 fi |
15546 rm -f conftest.err conftest.$ac_ext | |
44493 | 15547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15548 echo "${ECHO_T}$ac_header_preproc" >&6 | |
15549 | |
15550 # So? What about this header? | |
15551 case $ac_header_compiler:$ac_header_preproc in | |
15552 yes:no ) | |
15553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15557 no:yes ) | |
15558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15564 esac | |
15565 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15567 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15568 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15569 else | |
15570 eval "$as_ac_Header=$ac_header_preproc" | |
15571 fi | |
15572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 15573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 15574 |
15575 fi | |
40056 | 15576 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 15577 cat >>confdefs.h <<_ACEOF |
40056 | 15578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 15579 _ACEOF |
15580 | |
15581 else | |
15582 | |
15583 for ac_header in kerberosIV/krb.h | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15584 do |
40056 | 15585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 15586 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15587 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 15588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15589 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15590 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 15591 fi |
15592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15594 else | |
15595 # Is the header compilable? | |
15596 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15598 cat >conftest.$ac_ext <<_ACEOF | |
15599 #line $LINENO "configure" | |
15600 #include "confdefs.h" | |
15601 $ac_includes_default | |
15602 #include <$ac_header> | |
15603 _ACEOF | |
15604 rm -f conftest.$ac_objext | |
15605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15606 (eval $ac_compile) 2>&5 | |
15607 ac_status=$? | |
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15609 (exit $ac_status); } && | |
15610 { ac_try='test -s conftest.$ac_objext' | |
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15612 (eval $ac_try) 2>&5 | |
15613 ac_status=$? | |
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15615 (exit $ac_status); }; }; then | |
15616 ac_header_compiler=yes | |
15617 else | |
15618 echo "$as_me: failed program was:" >&5 | |
15619 cat conftest.$ac_ext >&5 | |
15620 ac_header_compiler=no | |
15621 fi | |
15622 rm -f conftest.$ac_objext conftest.$ac_ext | |
15623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15624 echo "${ECHO_T}$ac_header_compiler" >&6 | |
15625 | |
15626 # Is the header present? | |
15627 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15629 cat >conftest.$ac_ext <<_ACEOF | |
15630 #line $LINENO "configure" | |
40056 | 15631 #include "confdefs.h" |
15632 #include <$ac_header> | |
15633 _ACEOF | |
44493 | 15634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 15635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15636 ac_status=$? | |
15637 egrep -v '^ *\+' conftest.er1 >conftest.err | |
15638 rm -f conftest.er1 | |
15639 cat conftest.err >&5 | |
44493 | 15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 15641 (exit $ac_status); } >/dev/null; then |
15642 if test -s conftest.err; then | |
15643 ac_cpp_err=$ac_c_preproc_warn_flag | |
15644 else | |
15645 ac_cpp_err= | |
15646 fi | |
15647 else | |
15648 ac_cpp_err=yes | |
15649 fi | |
15650 if test -z "$ac_cpp_err"; then | |
44493 | 15651 ac_header_preproc=yes |
40056 | 15652 else |
15653 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15654 cat conftest.$ac_ext >&5 |
44493 | 15655 ac_header_preproc=no |
40056 | 15656 fi |
15657 rm -f conftest.err conftest.$ac_ext | |
44493 | 15658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15659 echo "${ECHO_T}$ac_header_preproc" >&6 | |
15660 | |
15661 # So? What about this header? | |
15662 case $ac_header_compiler:$ac_header_preproc in | |
15663 yes:no ) | |
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15668 no:yes ) | |
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15675 esac | |
15676 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15678 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15679 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15680 else | |
15681 eval "$as_ac_Header=$ac_header_preproc" | |
15682 fi | |
15683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 15684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 15685 |
15686 fi | |
40056 | 15687 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 15688 cat >>confdefs.h <<_ACEOF |
40056 | 15689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 15690 _ACEOF |
15691 | |
15692 else | |
15693 | |
15694 for ac_header in kerberos/krb.h | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15695 do |
40056 | 15696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 15697 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15698 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 15699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15700 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15701 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 15702 fi |
15703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15705 else | |
15706 # Is the header compilable? | |
15707 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15709 cat >conftest.$ac_ext <<_ACEOF | |
15710 #line $LINENO "configure" | |
15711 #include "confdefs.h" | |
15712 $ac_includes_default | |
15713 #include <$ac_header> | |
15714 _ACEOF | |
15715 rm -f conftest.$ac_objext | |
15716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15717 (eval $ac_compile) 2>&5 | |
15718 ac_status=$? | |
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15720 (exit $ac_status); } && | |
15721 { ac_try='test -s conftest.$ac_objext' | |
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15723 (eval $ac_try) 2>&5 | |
15724 ac_status=$? | |
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15726 (exit $ac_status); }; }; then | |
15727 ac_header_compiler=yes | |
15728 else | |
15729 echo "$as_me: failed program was:" >&5 | |
15730 cat conftest.$ac_ext >&5 | |
15731 ac_header_compiler=no | |
15732 fi | |
15733 rm -f conftest.$ac_objext conftest.$ac_ext | |
15734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15735 echo "${ECHO_T}$ac_header_compiler" >&6 | |
15736 | |
15737 # Is the header present? | |
15738 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15740 cat >conftest.$ac_ext <<_ACEOF | |
15741 #line $LINENO "configure" | |
40056 | 15742 #include "confdefs.h" |
15743 #include <$ac_header> | |
15744 _ACEOF | |
44493 | 15745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 15746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15747 ac_status=$? | |
15748 egrep -v '^ *\+' conftest.er1 >conftest.err | |
15749 rm -f conftest.er1 | |
15750 cat conftest.err >&5 | |
44493 | 15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 15752 (exit $ac_status); } >/dev/null; then |
15753 if test -s conftest.err; then | |
15754 ac_cpp_err=$ac_c_preproc_warn_flag | |
15755 else | |
15756 ac_cpp_err= | |
15757 fi | |
15758 else | |
15759 ac_cpp_err=yes | |
15760 fi | |
15761 if test -z "$ac_cpp_err"; then | |
44493 | 15762 ac_header_preproc=yes |
40056 | 15763 else |
15764 echo "$as_me: failed program was:" >&5 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15765 cat conftest.$ac_ext >&5 |
44493 | 15766 ac_header_preproc=no |
40056 | 15767 fi |
15768 rm -f conftest.err conftest.$ac_ext | |
44493 | 15769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15770 echo "${ECHO_T}$ac_header_preproc" >&6 | |
15771 | |
15772 # So? What about this header? | |
15773 case $ac_header_compiler:$ac_header_preproc in | |
15774 yes:no ) | |
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15779 no:yes ) | |
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15783 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15786 esac | |
15787 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15789 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15790 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15791 else | |
15792 eval "$as_ac_Header=$ac_header_preproc" | |
15793 fi | |
15794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 15795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 15796 |
15797 fi | |
40056 | 15798 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 15799 cat >>confdefs.h <<_ACEOF |
40056 | 15800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 15801 _ACEOF |
15802 | |
15803 fi | |
15804 | |
15805 done | |
15806 | |
15807 fi | |
15808 | |
15809 done | |
15810 | |
15811 fi | |
15812 | |
15813 done | |
15814 | |
15815 fi | |
15816 | |
15817 for ac_header in com_err.h | |
15818 do | |
15819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15820 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15821 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15823 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15824 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15825 fi | |
15826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15828 else | |
15829 # Is the header compilable? | |
15830 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15832 cat >conftest.$ac_ext <<_ACEOF | |
15833 #line $LINENO "configure" | |
15834 #include "confdefs.h" | |
15835 $ac_includes_default | |
15836 #include <$ac_header> | |
15837 _ACEOF | |
15838 rm -f conftest.$ac_objext | |
15839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15840 (eval $ac_compile) 2>&5 | |
15841 ac_status=$? | |
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15843 (exit $ac_status); } && | |
15844 { ac_try='test -s conftest.$ac_objext' | |
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15846 (eval $ac_try) 2>&5 | |
15847 ac_status=$? | |
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15849 (exit $ac_status); }; }; then | |
15850 ac_header_compiler=yes | |
15851 else | |
15852 echo "$as_me: failed program was:" >&5 | |
15853 cat conftest.$ac_ext >&5 | |
15854 ac_header_compiler=no | |
15855 fi | |
15856 rm -f conftest.$ac_objext conftest.$ac_ext | |
15857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15858 echo "${ECHO_T}$ac_header_compiler" >&6 | |
15859 | |
15860 # Is the header present? | |
15861 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15863 cat >conftest.$ac_ext <<_ACEOF | |
15864 #line $LINENO "configure" | |
15865 #include "confdefs.h" | |
15866 #include <$ac_header> | |
15867 _ACEOF | |
15868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15870 ac_status=$? | |
15871 egrep -v '^ *\+' conftest.er1 >conftest.err | |
15872 rm -f conftest.er1 | |
15873 cat conftest.err >&5 | |
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15875 (exit $ac_status); } >/dev/null; then | |
15876 if test -s conftest.err; then | |
15877 ac_cpp_err=$ac_c_preproc_warn_flag | |
15878 else | |
15879 ac_cpp_err= | |
15880 fi | |
15881 else | |
15882 ac_cpp_err=yes | |
15883 fi | |
15884 if test -z "$ac_cpp_err"; then | |
15885 ac_header_preproc=yes | |
15886 else | |
15887 echo "$as_me: failed program was:" >&5 | |
15888 cat conftest.$ac_ext >&5 | |
15889 ac_header_preproc=no | |
15890 fi | |
15891 rm -f conftest.err conftest.$ac_ext | |
15892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15893 echo "${ECHO_T}$ac_header_preproc" >&6 | |
15894 | |
15895 # So? What about this header? | |
15896 case $ac_header_compiler:$ac_header_preproc in | |
15897 yes:no ) | |
15898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15902 no:yes ) | |
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15909 esac | |
15910 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15912 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15913 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15914 else | |
15915 eval "$as_ac_Header=$ac_header_preproc" | |
15916 fi | |
15917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15919 | |
15920 fi | |
15921 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15922 cat >>confdefs.h <<_ACEOF | |
15923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15924 _ACEOF | |
15925 | |
15926 fi | |
15927 | |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15928 done |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15929 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15930 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
15931 |
25897 | 15932 # Solaris requires -lintl if you want strerror (which calls dgettext) |
15933 # to return localized messages. | |
40056 | 15934 |
44493 | 15935 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 |
40056 | 15936 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
15937 if test "${ac_cv_lib_intl_dgettext+set}" = set; then | |
15938 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15939 else | |
15940 ac_check_lib_save_LIBS=$LIBS | |
25897 | 15941 LIBS="-lintl $LIBS" |
40056 | 15942 cat >conftest.$ac_ext <<_ACEOF |
44493 | 15943 #line $LINENO "configure" |
40056 | 15944 #include "confdefs.h" |
15945 | |
25897 | 15946 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 15947 #ifdef __cplusplus |
15948 extern "C" | |
15949 #endif | |
25897 | 15950 /* We use char because int might match the return type of a gcc2 |
40056 | 15951 builtin and then its argument prototype would still apply. */ |
15952 char dgettext (); | |
44493 | 15953 #ifdef F77_DUMMY_MAIN |
15954 # ifdef __cplusplus | |
15955 extern "C" | |
15956 # endif | |
15957 int F77_DUMMY_MAIN() { return 1; } | |
15958 #endif | |
40056 | 15959 int |
15960 main () | |
15961 { | |
15962 dgettext (); | |
15963 ; | |
15964 return 0; | |
15965 } | |
15966 _ACEOF | |
15967 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 15968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15969 (eval $ac_link) 2>&5 | |
15970 ac_status=$? | |
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15972 (exit $ac_status); } && | |
15973 { ac_try='test -s conftest$ac_exeext' | |
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15975 (eval $ac_try) 2>&5 | |
15976 ac_status=$? | |
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 15978 (exit $ac_status); }; }; then |
15979 ac_cv_lib_intl_dgettext=yes | |
15980 else | |
15981 echo "$as_me: failed program was:" >&5 | |
15982 cat conftest.$ac_ext >&5 | |
15983 ac_cv_lib_intl_dgettext=no | |
15984 fi | |
15985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15986 LIBS=$ac_check_lib_save_LIBS | |
15987 fi | |
44493 | 15988 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 |
40056 | 15989 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
15990 if test $ac_cv_lib_intl_dgettext = yes; then | |
44493 | 15991 cat >>confdefs.h <<_ACEOF |
40056 | 15992 #define HAVE_LIBINTL 1 |
44493 | 15993 _ACEOF |
25897 | 15994 |
15995 LIBS="-lintl $LIBS" | |
15996 | |
40056 | 15997 fi |
15998 | |
44493 | 15999 |
16000 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 | |
40056 | 16001 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 |
16002 if test "${emacs_cv_localtime_cache+set}" = set; then | |
16003 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 16004 else |
16005 if test x$ac_cv_func_tzset = xyes; then | |
16006 if test "$cross_compiling" = yes; then | |
16007 # If we have tzset, assume the worst when cross-compiling. | |
16008 emacs_cv_localtime_cache=yes | |
16009 else | |
40056 | 16010 cat >conftest.$ac_ext <<_ACEOF |
44493 | 16011 #line $LINENO "configure" |
25897 | 16012 #include "confdefs.h" |
16013 #include <time.h> | |
16014 extern char **environ; | |
16015 unset_TZ () | |
16016 { | |
16017 char **from, **to; | |
16018 for (to = from = environ; (*to = *from); from++) | |
16019 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
16020 to++; | |
16021 } | |
16022 char TZ_GMT0[] = "TZ=GMT0"; | |
16023 char TZ_PST8[] = "TZ=PST8"; | |
16024 main() | |
16025 { | |
16026 time_t now = time ((time_t *) 0); | |
16027 int hour_GMT0, hour_unset; | |
16028 if (putenv (TZ_GMT0) != 0) | |
16029 exit (1); | |
16030 hour_GMT0 = localtime (&now)->tm_hour; | |
16031 unset_TZ (); | |
16032 hour_unset = localtime (&now)->tm_hour; | |
16033 if (putenv (TZ_PST8) != 0) | |
16034 exit (1); | |
16035 if (localtime (&now)->tm_hour == hour_GMT0) | |
16036 exit (1); | |
16037 unset_TZ (); | |
16038 if (localtime (&now)->tm_hour != hour_unset) | |
16039 exit (1); | |
16040 exit (0); | |
16041 } | |
40056 | 16042 _ACEOF |
16043 rm -f conftest$ac_exeext | |
44493 | 16044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16045 (eval $ac_link) 2>&5 | |
16046 ac_status=$? | |
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 16048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
44493 | 16049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16050 (eval $ac_try) 2>&5 | |
16051 ac_status=$? | |
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 16053 (exit $ac_status); }; }; then |
25897 | 16054 emacs_cv_localtime_cache=no |
16055 else | |
40056 | 16056 echo "$as_me: program exited with status $ac_status" >&5 |
16057 echo "$as_me: failed program was:" >&5 | |
16058 cat conftest.$ac_ext >&5 | |
44493 | 16059 ( exit $ac_status ) |
40056 | 16060 emacs_cv_localtime_cache=yes |
16061 fi | |
16062 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16063 fi | |
25897 | 16064 else |
16065 # If we lack tzset, report that localtime does not cache TZ, | |
16066 # since we can't invalidate the cache if we don't have tzset. | |
16067 emacs_cv_localtime_cache=no | |
16068 fi | |
16069 fi | |
44493 | 16070 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 |
40056 | 16071 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 |
25897 | 16072 if test $emacs_cv_localtime_cache = yes; then |
44493 | 16073 cat >>confdefs.h <<\_ACEOF |
25897 | 16074 #define LOCALTIME_CACHE 1 |
44493 | 16075 _ACEOF |
25897 | 16076 |
16077 fi | |
16078 | |
16079 if test "x$HAVE_TIMEVAL" = xyes; then | |
40056 | 16080 |
16081 for ac_func in gettimeofday | |
29906 | 16082 do |
40056 | 16083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44493 | 16084 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 16085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16086 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16087 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16088 else | |
16089 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 16090 #line $LINENO "configure" |
29906 | 16091 #include "confdefs.h" |
16092 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 16093 which can conflict with char $ac_func (); below. */ |
29906 | 16094 #include <assert.h> |
16095 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 16096 #ifdef __cplusplus |
16097 extern "C" | |
16098 #endif | |
29906 | 16099 /* We use char because int might match the return type of a gcc2 |
40056 | 16100 builtin and then its argument prototype would still apply. */ |
16101 char $ac_func (); | |
16102 char (*f) (); | |
16103 | |
44493 | 16104 #ifdef F77_DUMMY_MAIN |
16105 # ifdef __cplusplus | |
16106 extern "C" | |
16107 # endif | |
16108 int F77_DUMMY_MAIN() { return 1; } | |
16109 #endif | |
40056 | 16110 int |
16111 main () | |
16112 { | |
29906 | 16113 /* The GNU C library defines this for functions which it implements |
16114 to always fail with ENOSYS. Some functions are actually named | |
16115 something starting with __ and the normal name is an alias. */ | |
16116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16117 choke me | |
16118 #else | |
40056 | 16119 f = $ac_func; |
16120 #endif | |
16121 | |
16122 ; | |
16123 return 0; | |
16124 } | |
16125 _ACEOF | |
16126 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 16127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16128 (eval $ac_link) 2>&5 | |
16129 ac_status=$? | |
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16131 (exit $ac_status); } && | |
16132 { ac_try='test -s conftest$ac_exeext' | |
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16134 (eval $ac_try) 2>&5 | |
16135 ac_status=$? | |
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 16137 (exit $ac_status); }; }; then |
16138 eval "$as_ac_var=yes" | |
16139 else | |
16140 echo "$as_me: failed program was:" >&5 | |
16141 cat conftest.$ac_ext >&5 | |
16142 eval "$as_ac_var=no" | |
16143 fi | |
16144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16145 fi | |
44493 | 16146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 16147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
16148 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 16149 cat >>confdefs.h <<_ACEOF |
40056 | 16150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 16151 _ACEOF |
16152 | |
16153 fi | |
16154 done | |
16155 | |
16156 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 | |
40056 | 16157 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
16158 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
16159 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16160 else | |
16161 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 16162 #line $LINENO "configure" |
25897 | 16163 #include "confdefs.h" |
16164 | |
16165 #ifdef TIME_WITH_SYS_TIME | |
16166 #include <sys/time.h> | |
16167 #include <time.h> | |
16168 #else | |
16169 #ifdef HAVE_SYS_TIME_H | |
16170 #include <sys/time.h> | |
16171 #else | |
16172 #include <time.h> | |
16173 #endif | |
16174 #endif | |
44493 | 16175 #ifdef F77_DUMMY_MAIN |
16176 # ifdef __cplusplus | |
16177 extern "C" | |
16178 # endif | |
16179 int F77_DUMMY_MAIN() { return 1; } | |
16180 #endif | |
40056 | 16181 int |
16182 main () | |
16183 { | |
29733 | 16184 struct timeval time; |
29906 | 16185 gettimeofday (&time, 0); |
40056 | 16186 ; |
16187 return 0; | |
16188 } | |
16189 _ACEOF | |
16190 rm -f conftest.$ac_objext | |
44493 | 16191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16192 (eval $ac_compile) 2>&5 | |
16193 ac_status=$? | |
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16195 (exit $ac_status); } && | |
16196 { ac_try='test -s conftest.$ac_objext' | |
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16198 (eval $ac_try) 2>&5 | |
16199 ac_status=$? | |
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 16201 (exit $ac_status); }; }; then |
25897 | 16202 emacs_cv_gettimeofday_two_arguments=yes |
16203 else | |
40056 | 16204 echo "$as_me: failed program was:" >&5 |
16205 cat conftest.$ac_ext >&5 | |
16206 emacs_cv_gettimeofday_two_arguments=no | |
16207 fi | |
16208 rm -f conftest.$ac_objext conftest.$ac_ext | |
16209 fi | |
44493 | 16210 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
40056 | 16211 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
25897 | 16212 if test $emacs_cv_gettimeofday_two_arguments = no; then |
44493 | 16213 cat >>confdefs.h <<\_ACEOF |
25897 | 16214 #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
44493 | 16215 _ACEOF |
25897 | 16216 |
16217 fi | |
16218 fi | |
16219 | |
29906 | 16220 if test "$ac_cv_func_gettimeofday" = yes; then |
44493 | 16221 echo "$as_me:$LINENO: checking for struct timezone" >&5 |
40056 | 16222 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 |
16223 if test "${emacs_cv_struct_timezone+set}" = set; then | |
16224 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16225 else | |
16226 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 16227 #line $LINENO "configure" |
29906 | 16228 #include "confdefs.h" |
16229 #include <sys/time.h> | |
44493 | 16230 #ifdef F77_DUMMY_MAIN |
16231 # ifdef __cplusplus | |
16232 extern "C" | |
16233 # endif | |
16234 int F77_DUMMY_MAIN() { return 1; } | |
16235 #endif | |
40056 | 16236 int |
16237 main () | |
16238 { | |
29906 | 16239 struct timezone tz; |
40056 | 16240 ; |
16241 return 0; | |
16242 } | |
16243 _ACEOF | |
16244 rm -f conftest.$ac_objext | |
44493 | 16245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16246 (eval $ac_compile) 2>&5 | |
16247 ac_status=$? | |
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16249 (exit $ac_status); } && | |
16250 { ac_try='test -s conftest.$ac_objext' | |
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16252 (eval $ac_try) 2>&5 | |
16253 ac_status=$? | |
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 16255 (exit $ac_status); }; }; then |
29906 | 16256 if test "$cross_compiling" = yes; then |
16257 emacs_cv_struct_timezone=yes | |
16258 else | |
40056 | 16259 cat >conftest.$ac_ext <<_ACEOF |
44493 | 16260 #line $LINENO "configure" |
29906 | 16261 #include "confdefs.h" |
16262 | |
16263 #ifdef TIME_WITH_SYS_TIME | |
16264 #include <sys/time.h> | |
16265 #include <time.h> | |
16266 #else | |
16267 #ifdef HAVE_SYS_TIME_H | |
16268 #include <sys/time.h> | |
16269 #else | |
16270 #include <time.h> | |
16271 #endif | |
16272 #endif | |
16273 main () { | |
16274 struct timeval time; | |
16275 struct timezone dummy; | |
16276 exit (gettimeofday (&time, &dummy)); | |
16277 } | |
40056 | 16278 _ACEOF |
16279 rm -f conftest$ac_exeext | |
44493 | 16280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16281 (eval $ac_link) 2>&5 | |
16282 ac_status=$? | |
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 16284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
44493 | 16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16286 (eval $ac_try) 2>&5 | |
16287 ac_status=$? | |
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 16289 (exit $ac_status); }; }; then |
29906 | 16290 emacs_cv_struct_timezone=yes |
16291 else | |
40056 | 16292 echo "$as_me: program exited with status $ac_status" >&5 |
16293 echo "$as_me: failed program was:" >&5 | |
16294 cat conftest.$ac_ext >&5 | |
44493 | 16295 ( exit $ac_status ) |
40056 | 16296 emacs_cv_struct_timezone=no |
16297 fi | |
16298 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16299 fi | |
16300 else | |
16301 echo "$as_me: failed program was:" >&5 | |
16302 cat conftest.$ac_ext >&5 | |
16303 emacs_cv_struct_timezone=no | |
16304 fi | |
16305 rm -f conftest.$ac_objext conftest.$ac_ext | |
16306 fi | |
44493 | 16307 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5 |
40056 | 16308 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 |
29906 | 16309 fi |
16310 | |
25897 | 16311 ok_so_far=yes |
44493 | 16312 echo "$as_me:$LINENO: checking for socket" >&5 |
40056 | 16313 echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
16314 if test "${ac_cv_func_socket+set}" = set; then | |
16315 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16316 else | |
16317 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 16318 #line $LINENO "configure" |
25897 | 16319 #include "confdefs.h" |
16320 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 16321 which can conflict with char socket (); below. */ |
25897 | 16322 #include <assert.h> |
16323 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 16324 #ifdef __cplusplus |
16325 extern "C" | |
16326 #endif | |
25897 | 16327 /* We use char because int might match the return type of a gcc2 |
40056 | 16328 builtin and then its argument prototype would still apply. */ |
16329 char socket (); | |
16330 char (*f) (); | |
16331 | |
44493 | 16332 #ifdef F77_DUMMY_MAIN |
16333 # ifdef __cplusplus | |
16334 extern "C" | |
16335 # endif | |
16336 int F77_DUMMY_MAIN() { return 1; } | |
16337 #endif | |
40056 | 16338 int |
16339 main () | |
16340 { | |
25897 | 16341 /* The GNU C library defines this for functions which it implements |
16342 to always fail with ENOSYS. Some functions are actually named | |
16343 something starting with __ and the normal name is an alias. */ | |
16344 #if defined (__stub_socket) || defined (__stub___socket) | |
16345 choke me | |
16346 #else | |
40056 | 16347 f = socket; |
16348 #endif | |
16349 | |
16350 ; | |
16351 return 0; | |
16352 } | |
16353 _ACEOF | |
16354 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 16355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16356 (eval $ac_link) 2>&5 | |
16357 ac_status=$? | |
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16359 (exit $ac_status); } && | |
16360 { ac_try='test -s conftest$ac_exeext' | |
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16362 (eval $ac_try) 2>&5 | |
16363 ac_status=$? | |
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 16365 (exit $ac_status); }; }; then |
16366 ac_cv_func_socket=yes | |
16367 else | |
16368 echo "$as_me: failed program was:" >&5 | |
16369 cat conftest.$ac_ext >&5 | |
16370 ac_cv_func_socket=no | |
16371 fi | |
16372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16373 fi | |
44493 | 16374 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
40056 | 16375 echo "${ECHO_T}$ac_cv_func_socket" >&6 |
16376 if test $ac_cv_func_socket = yes; then | |
25897 | 16377 : |
16378 else | |
40056 | 16379 ok_so_far=no |
25897 | 16380 fi |
16381 | |
16382 if test $ok_so_far = yes; then | |
44493 | 16383 if test "${ac_cv_header_netinet_in_h+set}" = set; then |
16384 echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
40056 | 16385 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
16386 if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
16387 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 16388 fi |
16389 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 | |
16390 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 | |
16391 else | |
16392 # Is the header compilable? | |
16393 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 | |
16394 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6 | |
16395 cat >conftest.$ac_ext <<_ACEOF | |
16396 #line $LINENO "configure" | |
16397 #include "confdefs.h" | |
16398 $ac_includes_default | |
16399 #include <netinet/in.h> | |
16400 _ACEOF | |
16401 rm -f conftest.$ac_objext | |
16402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16403 (eval $ac_compile) 2>&5 | |
16404 ac_status=$? | |
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16406 (exit $ac_status); } && | |
16407 { ac_try='test -s conftest.$ac_objext' | |
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16409 (eval $ac_try) 2>&5 | |
16410 ac_status=$? | |
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16412 (exit $ac_status); }; }; then | |
16413 ac_header_compiler=yes | |
16414 else | |
16415 echo "$as_me: failed program was:" >&5 | |
16416 cat conftest.$ac_ext >&5 | |
16417 ac_header_compiler=no | |
16418 fi | |
16419 rm -f conftest.$ac_objext conftest.$ac_ext | |
16420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16421 echo "${ECHO_T}$ac_header_compiler" >&6 | |
16422 | |
16423 # Is the header present? | |
16424 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 | |
16425 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6 | |
16426 cat >conftest.$ac_ext <<_ACEOF | |
16427 #line $LINENO "configure" | |
25897 | 16428 #include "confdefs.h" |
16429 #include <netinet/in.h> | |
40056 | 16430 _ACEOF |
44493 | 16431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 16432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
16433 ac_status=$? | |
16434 egrep -v '^ *\+' conftest.er1 >conftest.err | |
16435 rm -f conftest.er1 | |
16436 cat conftest.err >&5 | |
44493 | 16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 16438 (exit $ac_status); } >/dev/null; then |
16439 if test -s conftest.err; then | |
16440 ac_cpp_err=$ac_c_preproc_warn_flag | |
16441 else | |
16442 ac_cpp_err= | |
16443 fi | |
16444 else | |
16445 ac_cpp_err=yes | |
16446 fi | |
16447 if test -z "$ac_cpp_err"; then | |
44493 | 16448 ac_header_preproc=yes |
40056 | 16449 else |
16450 echo "$as_me: failed program was:" >&5 | |
25897 | 16451 cat conftest.$ac_ext >&5 |
44493 | 16452 ac_header_preproc=no |
40056 | 16453 fi |
16454 rm -f conftest.err conftest.$ac_ext | |
44493 | 16455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16456 echo "${ECHO_T}$ac_header_preproc" >&6 | |
16457 | |
16458 # So? What about this header? | |
16459 case $ac_header_compiler:$ac_header_preproc in | |
16460 yes:no ) | |
16461 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16462 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16463 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 | |
16464 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};; | |
16465 no:yes ) | |
16466 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 | |
16467 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} | |
16468 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 | |
16469 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} | |
16470 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 | |
16471 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};; | |
16472 esac | |
16473 echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
16474 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 | |
16475 if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
16476 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16477 else | |
16478 ac_cv_header_netinet_in_h=$ac_header_preproc | |
16479 fi | |
16480 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 | |
40056 | 16481 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
44493 | 16482 |
16483 fi | |
40056 | 16484 if test $ac_cv_header_netinet_in_h = yes; then |
25897 | 16485 : |
16486 else | |
40056 | 16487 ok_so_far=no |
25897 | 16488 fi |
16489 | |
44493 | 16490 |
25897 | 16491 fi |
16492 if test $ok_so_far = yes; then | |
44493 | 16493 if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
16494 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
40056 | 16495 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
16496 if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
16497 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 16498 fi |
16499 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 | |
16500 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 | |
16501 else | |
16502 # Is the header compilable? | |
16503 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 | |
16504 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 | |
16505 cat >conftest.$ac_ext <<_ACEOF | |
16506 #line $LINENO "configure" | |
16507 #include "confdefs.h" | |
16508 $ac_includes_default | |
16509 #include <arpa/inet.h> | |
16510 _ACEOF | |
16511 rm -f conftest.$ac_objext | |
16512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16513 (eval $ac_compile) 2>&5 | |
16514 ac_status=$? | |
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16516 (exit $ac_status); } && | |
16517 { ac_try='test -s conftest.$ac_objext' | |
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16519 (eval $ac_try) 2>&5 | |
16520 ac_status=$? | |
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16522 (exit $ac_status); }; }; then | |
16523 ac_header_compiler=yes | |
16524 else | |
16525 echo "$as_me: failed program was:" >&5 | |
16526 cat conftest.$ac_ext >&5 | |
16527 ac_header_compiler=no | |
16528 fi | |
16529 rm -f conftest.$ac_objext conftest.$ac_ext | |
16530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16531 echo "${ECHO_T}$ac_header_compiler" >&6 | |
16532 | |
16533 # Is the header present? | |
16534 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 | |
16535 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 | |
16536 cat >conftest.$ac_ext <<_ACEOF | |
16537 #line $LINENO "configure" | |
25897 | 16538 #include "confdefs.h" |
16539 #include <arpa/inet.h> | |
40056 | 16540 _ACEOF |
44493 | 16541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 16542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
16543 ac_status=$? | |
16544 egrep -v '^ *\+' conftest.er1 >conftest.err | |
16545 rm -f conftest.er1 | |
16546 cat conftest.err >&5 | |
44493 | 16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 16548 (exit $ac_status); } >/dev/null; then |
16549 if test -s conftest.err; then | |
16550 ac_cpp_err=$ac_c_preproc_warn_flag | |
16551 else | |
16552 ac_cpp_err= | |
16553 fi | |
16554 else | |
16555 ac_cpp_err=yes | |
16556 fi | |
16557 if test -z "$ac_cpp_err"; then | |
44493 | 16558 ac_header_preproc=yes |
40056 | 16559 else |
16560 echo "$as_me: failed program was:" >&5 | |
25897 | 16561 cat conftest.$ac_ext >&5 |
44493 | 16562 ac_header_preproc=no |
40056 | 16563 fi |
16564 rm -f conftest.err conftest.$ac_ext | |
44493 | 16565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16566 echo "${ECHO_T}$ac_header_preproc" >&6 | |
16567 | |
16568 # So? What about this header? | |
16569 case $ac_header_compiler:$ac_header_preproc in | |
16570 yes:no ) | |
16571 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16572 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16573 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 | |
16574 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};; | |
16575 no:yes ) | |
16576 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 | |
16577 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} | |
16578 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 | |
16579 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} | |
16580 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 | |
16581 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};; | |
16582 esac | |
16583 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
16584 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 | |
16585 if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
16586 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16587 else | |
16588 ac_cv_header_arpa_inet_h=$ac_header_preproc | |
16589 fi | |
16590 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 | |
40056 | 16591 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
44493 | 16592 |
16593 fi | |
40056 | 16594 if test $ac_cv_header_arpa_inet_h = yes; then |
25897 | 16595 : |
16596 else | |
40056 | 16597 ok_so_far=no |
25897 | 16598 fi |
16599 | |
44493 | 16600 |
25897 | 16601 fi |
16602 if test $ok_so_far = yes; then | |
44493 | 16603 cat >>confdefs.h <<\_ACEOF |
25897 | 16604 #define HAVE_INET_SOCKETS 1 |
44493 | 16605 _ACEOF |
25897 | 16606 |
16607 fi | |
16608 | |
16609 if test -f /usr/lpp/X11/bin/smt.exp; then | |
44493 | 16610 cat >>confdefs.h <<\_ACEOF |
25897 | 16611 #define HAVE_AIX_SMT_EXP 1 |
44493 | 16612 _ACEOF |
16613 | |
16614 fi | |
16615 | |
16616 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 | |
40056 | 16617 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6 |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
16618 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
44493 | 16619 echo "$as_me:$LINENO: result: yes" >&5 |
40056 | 16620 echo "${ECHO_T}yes" >&6 |
44493 | 16621 cat >>confdefs.h <<\_ACEOF |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
16622 #define HAVE_DEV_PTMX 1 |
44493 | 16623 _ACEOF |
16624 | |
16625 else | |
16626 echo "$as_me:$LINENO: result: no" >&5 | |
40056 | 16627 echo "${ECHO_T}no" >&6 |
16628 fi | |
16629 | |
44493 | 16630 echo "$as_me:$LINENO: checking for pid_t" >&5 |
40056 | 16631 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
16632 if test "${ac_cv_type_pid_t+set}" = set; then | |
16633 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16634 else | |
16635 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 16636 #line $LINENO "configure" |
40056 | 16637 #include "confdefs.h" |
16638 $ac_includes_default | |
44493 | 16639 #ifdef F77_DUMMY_MAIN |
16640 # ifdef __cplusplus | |
16641 extern "C" | |
16642 # endif | |
16643 int F77_DUMMY_MAIN() { return 1; } | |
16644 #endif | |
40056 | 16645 int |
16646 main () | |
16647 { | |
16648 if ((pid_t *) 0) | |
16649 return 0; | |
16650 if (sizeof (pid_t)) | |
16651 return 0; | |
16652 ; | |
16653 return 0; | |
16654 } | |
16655 _ACEOF | |
16656 rm -f conftest.$ac_objext | |
44493 | 16657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16658 (eval $ac_compile) 2>&5 | |
16659 ac_status=$? | |
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16661 (exit $ac_status); } && | |
16662 { ac_try='test -s conftest.$ac_objext' | |
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16664 (eval $ac_try) 2>&5 | |
16665 ac_status=$? | |
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 16667 (exit $ac_status); }; }; then |
27675 | 16668 ac_cv_type_pid_t=yes |
16669 else | |
40056 | 16670 echo "$as_me: failed program was:" >&5 |
16671 cat conftest.$ac_ext >&5 | |
16672 ac_cv_type_pid_t=no | |
16673 fi | |
16674 rm -f conftest.$ac_objext conftest.$ac_ext | |
16675 fi | |
44493 | 16676 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
40056 | 16677 echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
16678 if test $ac_cv_type_pid_t = yes; then | |
16679 : | |
16680 else | |
16681 | |
44493 | 16682 cat >>confdefs.h <<_ACEOF |
27675 | 16683 #define pid_t int |
44493 | 16684 _ACEOF |
16685 | |
16686 fi | |
16687 | |
16688 | |
27675 | 16689 |
40056 | 16690 for ac_header in unistd.h vfork.h |
16691 do | |
16692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
44493 | 16693 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
16694 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 16695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
16696 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16697 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 16698 fi |
16699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16701 else | |
16702 # Is the header compilable? | |
16703 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16705 cat >conftest.$ac_ext <<_ACEOF | |
16706 #line $LINENO "configure" | |
16707 #include "confdefs.h" | |
16708 $ac_includes_default | |
16709 #include <$ac_header> | |
16710 _ACEOF | |
16711 rm -f conftest.$ac_objext | |
16712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16713 (eval $ac_compile) 2>&5 | |
16714 ac_status=$? | |
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16716 (exit $ac_status); } && | |
16717 { ac_try='test -s conftest.$ac_objext' | |
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16719 (eval $ac_try) 2>&5 | |
16720 ac_status=$? | |
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16722 (exit $ac_status); }; }; then | |
16723 ac_header_compiler=yes | |
16724 else | |
16725 echo "$as_me: failed program was:" >&5 | |
16726 cat conftest.$ac_ext >&5 | |
16727 ac_header_compiler=no | |
16728 fi | |
16729 rm -f conftest.$ac_objext conftest.$ac_ext | |
16730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16731 echo "${ECHO_T}$ac_header_compiler" >&6 | |
16732 | |
16733 # Is the header present? | |
16734 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16736 cat >conftest.$ac_ext <<_ACEOF | |
16737 #line $LINENO "configure" | |
40056 | 16738 #include "confdefs.h" |
16739 #include <$ac_header> | |
16740 _ACEOF | |
44493 | 16741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 16742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
16743 ac_status=$? | |
16744 egrep -v '^ *\+' conftest.er1 >conftest.err | |
16745 rm -f conftest.er1 | |
16746 cat conftest.err >&5 | |
44493 | 16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 16748 (exit $ac_status); } >/dev/null; then |
16749 if test -s conftest.err; then | |
16750 ac_cpp_err=$ac_c_preproc_warn_flag | |
16751 else | |
16752 ac_cpp_err= | |
16753 fi | |
16754 else | |
16755 ac_cpp_err=yes | |
16756 fi | |
16757 if test -z "$ac_cpp_err"; then | |
44493 | 16758 ac_header_preproc=yes |
40056 | 16759 else |
16760 echo "$as_me: failed program was:" >&5 | |
27675 | 16761 cat conftest.$ac_ext >&5 |
44493 | 16762 ac_header_preproc=no |
40056 | 16763 fi |
16764 rm -f conftest.err conftest.$ac_ext | |
44493 | 16765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16766 echo "${ECHO_T}$ac_header_preproc" >&6 | |
16767 | |
16768 # So? What about this header? | |
16769 case $ac_header_compiler:$ac_header_preproc in | |
16770 yes:no ) | |
16771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
16775 no:yes ) | |
16776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
16782 esac | |
16783 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16785 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16786 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16787 else | |
16788 eval "$as_ac_Header=$ac_header_preproc" | |
16789 fi | |
16790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 16791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 16792 |
16793 fi | |
40056 | 16794 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 16795 cat >>confdefs.h <<_ACEOF |
40056 | 16796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 16797 _ACEOF |
16798 | |
16799 fi | |
16800 | |
16801 done | |
16802 | |
16803 | |
40056 | 16804 |
16805 for ac_func in fork vfork | |
16806 do | |
16807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44493 | 16808 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 16809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16810 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16811 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16812 else | |
16813 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 16814 #line $LINENO "configure" |
27675 | 16815 #include "confdefs.h" |
16816 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 16817 which can conflict with char $ac_func (); below. */ |
27675 | 16818 #include <assert.h> |
16819 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 16820 #ifdef __cplusplus |
16821 extern "C" | |
16822 #endif | |
27675 | 16823 /* We use char because int might match the return type of a gcc2 |
40056 | 16824 builtin and then its argument prototype would still apply. */ |
16825 char $ac_func (); | |
16826 char (*f) (); | |
16827 | |
44493 | 16828 #ifdef F77_DUMMY_MAIN |
16829 # ifdef __cplusplus | |
16830 extern "C" | |
16831 # endif | |
16832 int F77_DUMMY_MAIN() { return 1; } | |
16833 #endif | |
40056 | 16834 int |
16835 main () | |
16836 { | |
27675 | 16837 /* The GNU C library defines this for functions which it implements |
16838 to always fail with ENOSYS. Some functions are actually named | |
16839 something starting with __ and the normal name is an alias. */ | |
40056 | 16840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
27675 | 16841 choke me |
16842 #else | |
40056 | 16843 f = $ac_func; |
16844 #endif | |
16845 | |
16846 ; | |
16847 return 0; | |
16848 } | |
16849 _ACEOF | |
16850 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 16851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16852 (eval $ac_link) 2>&5 | |
16853 ac_status=$? | |
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16855 (exit $ac_status); } && | |
16856 { ac_try='test -s conftest$ac_exeext' | |
16857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16858 (eval $ac_try) 2>&5 | |
16859 ac_status=$? | |
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 16861 (exit $ac_status); }; }; then |
16862 eval "$as_ac_var=yes" | |
16863 else | |
16864 echo "$as_me: failed program was:" >&5 | |
16865 cat conftest.$ac_ext >&5 | |
16866 eval "$as_ac_var=no" | |
16867 fi | |
16868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16869 fi | |
44493 | 16870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 16871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
16872 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 16873 cat >>confdefs.h <<_ACEOF |
40056 | 16874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 16875 _ACEOF |
40056 | 16876 |
16877 fi | |
16878 done | |
16879 | |
16880 ac_cv_func_fork_works=$ac_cv_func_fork | |
16881 if test "x$ac_cv_func_fork" = xyes; then | |
44493 | 16882 echo "$as_me:$LINENO: checking for working fork" >&5 |
40056 | 16883 echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
16884 if test "${ac_cv_func_fork_works+set}" = set; then | |
16885 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16886 else | |
16887 if test "$cross_compiling" = yes; then | |
16888 ac_cv_func_fork_works=cross | |
16889 else | |
16890 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 16891 /* By Ruediger Kuhlmann. */ |
40056 | 16892 #include <sys/types.h> |
16893 #if HAVE_UNISTD_H | |
16894 # include <unistd.h> | |
16895 #endif | |
16896 /* Some systems only have a dummy stub for fork() */ | |
16897 int main () | |
16898 { | |
16899 if (fork() < 0) | |
16900 exit (1); | |
16901 exit (0); | |
16902 } | |
16903 _ACEOF | |
16904 rm -f conftest$ac_exeext | |
44493 | 16905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16906 (eval $ac_link) 2>&5 | |
16907 ac_status=$? | |
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 16909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
44493 | 16910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16911 (eval $ac_try) 2>&5 | |
16912 ac_status=$? | |
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 16914 (exit $ac_status); }; }; then |
16915 ac_cv_func_fork_works=yes | |
16916 else | |
16917 echo "$as_me: program exited with status $ac_status" >&5 | |
16918 echo "$as_me: failed program was:" >&5 | |
16919 cat conftest.$ac_ext >&5 | |
44493 | 16920 ( exit $ac_status ) |
40056 | 16921 ac_cv_func_fork_works=no |
16922 fi | |
16923 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16924 fi | |
16925 fi | |
44493 | 16926 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
40056 | 16927 echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
16928 | |
16929 fi | |
16930 if test "x$ac_cv_func_fork_works" = xcross; then | |
16931 case $host in | |
16932 *-*-amigaos* | *-*-msdosdjgpp*) | |
16933 # Override, as these systems have only a dummy fork() stub | |
16934 ac_cv_func_fork_works=no | |
16935 ;; | |
16936 *) | |
16937 ac_cv_func_fork_works=yes | |
16938 ;; | |
16939 esac | |
44493 | 16940 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
16941 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
40056 | 16942 fi |
27675 | 16943 ac_cv_func_vfork_works=$ac_cv_func_vfork |
40056 | 16944 if test "x$ac_cv_func_vfork" = xyes; then |
44493 | 16945 echo "$as_me:$LINENO: checking for working vfork" >&5 |
40056 | 16946 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
16947 if test "${ac_cv_func_vfork_works+set}" = set; then | |
16948 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16949 else | |
16950 if test "$cross_compiling" = yes; then | |
16951 ac_cv_func_vfork_works=cross | |
16952 else | |
16953 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 16954 #line $LINENO "configure" |
27675 | 16955 #include "confdefs.h" |
16956 /* Thanks to Paul Eggert for this test. */ | |
16957 #include <stdio.h> | |
16958 #include <sys/types.h> | |
16959 #include <sys/stat.h> | |
40056 | 16960 #if HAVE_UNISTD_H |
16961 # include <unistd.h> | |
16962 #endif | |
16963 #if HAVE_VFORK_H | |
16964 # include <vfork.h> | |
27675 | 16965 #endif |
16966 /* On some sparc systems, changes by the child to local and incoming | |
40056 | 16967 argument registers are propagated back to the parent. The compiler |
16968 is told about this with #include <vfork.h>, but some compilers | |
16969 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
16970 static variable whose address is put into a register that is | |
16971 clobbered by the vfork. */ | |
27675 | 16972 static |
16973 #ifdef __cplusplus | |
16974 sparc_address_test (int arg) | |
40056 | 16975 # else |
27675 | 16976 sparc_address_test (arg) int arg; |
16977 #endif | |
16978 { | |
16979 static pid_t child; | |
16980 if (!child) { | |
16981 child = vfork (); | |
16982 if (child < 0) { | |
16983 perror ("vfork"); | |
16984 _exit(2); | |
16985 } | |
16986 if (!child) { | |
16987 arg = getpid(); | |
16988 write(-1, "", 0); | |
16989 _exit (arg); | |
16990 } | |
16991 } | |
16992 } | |
40056 | 16993 |
16994 int | |
16995 main () | |
16996 { | |
27675 | 16997 pid_t parent = getpid (); |
16998 pid_t child; | |
16999 | |
17000 sparc_address_test (); | |
17001 | |
17002 child = vfork (); | |
17003 | |
17004 if (child == 0) { | |
40056 | 17005 /* Here is another test for sparc vfork register problems. This |
17006 test uses lots of local variables, at least as many local | |
17007 variables as main has allocated so far including compiler | |
17008 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
17009 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
17010 reuse the register of parent for one of the local variables, | |
17011 since it will think that parent can't possibly be used any more | |
17012 in this routine. Assigning to the local variable will thus | |
17013 munge parent in the parent process. */ | |
27675 | 17014 pid_t |
17015 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
17016 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
17017 /* Convince the compiler that p..p7 are live; otherwise, it might | |
17018 use the same hardware register for all 8 local variables. */ | |
17019 if (p != p1 || p != p2 || p != p3 || p != p4 | |
17020 || p != p5 || p != p6 || p != p7) | |
17021 _exit(1); | |
17022 | |
40056 | 17023 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
17024 from child file descriptors. If the child closes a descriptor | |
17025 before it execs or exits, this munges the parent's descriptor | |
17026 as well. Test for this by closing stdout in the child. */ | |
27675 | 17027 _exit(close(fileno(stdout)) != 0); |
17028 } else { | |
17029 int status; | |
17030 struct stat st; | |
17031 | |
17032 while (wait(&status) != child) | |
17033 ; | |
17034 exit( | |
17035 /* Was there some problem with vforking? */ | |
17036 child < 0 | |
17037 | |
17038 /* Did the child fail? (This shouldn't happen.) */ | |
17039 || status | |
17040 | |
17041 /* Did the vfork/compiler bug occur? */ | |
17042 || parent != getpid() | |
17043 | |
17044 /* Did the file descriptor bug occur? */ | |
17045 || fstat(fileno(stdout), &st) != 0 | |
17046 ); | |
17047 } | |
17048 } | |
40056 | 17049 _ACEOF |
17050 rm -f conftest$ac_exeext | |
44493 | 17051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
17052 (eval $ac_link) 2>&5 | |
17053 ac_status=$? | |
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 17055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
44493 | 17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17057 (eval $ac_try) 2>&5 | |
17058 ac_status=$? | |
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 17060 (exit $ac_status); }; }; then |
27675 | 17061 ac_cv_func_vfork_works=yes |
17062 else | |
40056 | 17063 echo "$as_me: program exited with status $ac_status" >&5 |
17064 echo "$as_me: failed program was:" >&5 | |
17065 cat conftest.$ac_ext >&5 | |
44493 | 17066 ( exit $ac_status ) |
40056 | 17067 ac_cv_func_vfork_works=no |
17068 fi | |
17069 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
17070 fi | |
17071 fi | |
44493 | 17072 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
40056 | 17073 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
17074 | |
17075 fi; | |
17076 if test "x$ac_cv_func_fork_works" = xcross; then | |
17077 ac_cv_func_vfork_works=ac_cv_func_vfork | |
44493 | 17078 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
17079 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
40056 | 17080 fi |
17081 | |
17082 if test "x$ac_cv_func_vfork_works" = xyes; then | |
17083 | |
44493 | 17084 cat >>confdefs.h <<\_ACEOF |
40056 | 17085 #define HAVE_WORKING_VFORK 1 |
44493 | 17086 _ACEOF |
17087 | |
17088 else | |
17089 | |
17090 cat >>confdefs.h <<\_ACEOF | |
27675 | 17091 #define vfork fork |
44493 | 17092 _ACEOF |
27675 | 17093 |
17094 fi | |
40056 | 17095 if test "x$ac_cv_func_fork_works" = xyes; then |
17096 | |
44493 | 17097 cat >>confdefs.h <<\_ACEOF |
40056 | 17098 #define HAVE_WORKING_FORK 1 |
44493 | 17099 _ACEOF |
17100 | |
17101 fi | |
17102 | |
27675 | 17103 |
30395 | 17104 # Fixme: This should be replaced when we have autoconf 2.14. |
44493 | 17105 echo "$as_me:$LINENO: checking for size_t" >&5 |
40056 | 17106 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
17107 if test "${ac_cv_type_size_t+set}" = set; then | |
17108 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17109 else | |
17110 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 17111 #line $LINENO "configure" |
40056 | 17112 #include "confdefs.h" |
17113 $ac_includes_default | |
44493 | 17114 #ifdef F77_DUMMY_MAIN |
17115 # ifdef __cplusplus | |
17116 extern "C" | |
17117 # endif | |
17118 int F77_DUMMY_MAIN() { return 1; } | |
17119 #endif | |
40056 | 17120 int |
17121 main () | |
17122 { | |
17123 if ((size_t *) 0) | |
17124 return 0; | |
17125 if (sizeof (size_t)) | |
17126 return 0; | |
17127 ; | |
17128 return 0; | |
17129 } | |
17130 _ACEOF | |
17131 rm -f conftest.$ac_objext | |
44493 | 17132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17133 (eval $ac_compile) 2>&5 | |
17134 ac_status=$? | |
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17136 (exit $ac_status); } && | |
17137 { ac_try='test -s conftest.$ac_objext' | |
17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17139 (eval $ac_try) 2>&5 | |
17140 ac_status=$? | |
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 17142 (exit $ac_status); }; }; then |
30395 | 17143 ac_cv_type_size_t=yes |
17144 else | |
40056 | 17145 echo "$as_me: failed program was:" >&5 |
17146 cat conftest.$ac_ext >&5 | |
17147 ac_cv_type_size_t=no | |
17148 fi | |
17149 rm -f conftest.$ac_objext conftest.$ac_ext | |
17150 fi | |
44493 | 17151 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
40056 | 17152 echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
17153 if test $ac_cv_type_size_t = yes; then | |
17154 : | |
17155 else | |
17156 | |
44493 | 17157 cat >>confdefs.h <<_ACEOF |
30395 | 17158 #define size_t unsigned |
44493 | 17159 _ACEOF |
17160 | |
17161 fi | |
17162 | |
30395 | 17163 |
25897 | 17164 # Set up the CFLAGS for real compilation, so we can substitute it. |
17165 CFLAGS="$REAL_CFLAGS" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
17166 CPPFLAGS="$REAL_CPPFLAGS" |
25897 | 17167 |
17168 #### Find out which version of Emacs this is. | |
17169 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
17170 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
17171 if test x"${version}" = x; then | |
44493 | 17172 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 |
40056 | 17173 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} |
17174 { (exit 1); exit 1; }; } | |
25897 | 17175 fi |
17176 | |
17177 ### Specify what sort of things we'll be editing into Makefile and config.h. | |
17178 ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
17179 | |
44493 | 17180 |
17181 | |
17182 | |
17183 | |
17184 | |
17185 | |
17186 | |
17187 | |
17188 | |
17189 | |
17190 | |
17191 | |
17192 | |
17193 | |
17194 | |
17195 | |
17196 | |
17197 | |
17198 | |
17199 | |
17200 | |
17201 | |
17202 | |
17203 | |
17204 | |
17205 | |
17206 | |
17207 | |
17208 | |
17209 | |
17210 | |
17211 | |
17212 cat >>confdefs.h <<_ACEOF | |
25897 | 17213 #define EMACS_CONFIGURATION "${canonical}" |
44493 | 17214 _ACEOF |
17215 | |
17216 cat >>confdefs.h <<_ACEOF | |
25897 | 17217 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" |
44493 | 17218 _ACEOF |
17219 | |
17220 cat >>confdefs.h <<_ACEOF | |
25897 | 17221 #define config_machfile "${machfile}" |
44493 | 17222 _ACEOF |
17223 | |
17224 cat >>confdefs.h <<_ACEOF | |
25897 | 17225 #define config_opsysfile "${opsysfile}" |
44493 | 17226 _ACEOF |
17227 | |
17228 cat >>confdefs.h <<_ACEOF | |
25897 | 17229 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} |
44493 | 17230 _ACEOF |
17231 | |
17232 cat >>confdefs.h <<_ACEOF | |
25897 | 17233 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} |
44493 | 17234 _ACEOF |
17235 | |
17236 cat >>confdefs.h <<_ACEOF | |
25897 | 17237 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} |
44493 | 17238 _ACEOF |
17239 | |
17240 cat >>confdefs.h <<_ACEOF | |
25897 | 17241 #define UNEXEC_SRC ${UNEXEC_SRC} |
44493 | 17242 _ACEOF |
17243 | |
25897 | 17244 |
17245 if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
44493 | 17246 cat >>confdefs.h <<\_ACEOF |
25897 | 17247 #define HAVE_X_WINDOWS 1 |
44493 | 17248 _ACEOF |
25897 | 17249 |
17250 fi | |
17251 if test "${USE_X_TOOLKIT}" != "none" ; then | |
44493 | 17252 cat >>confdefs.h <<\_ACEOF |
25897 | 17253 #define USE_X_TOOLKIT 1 |
44493 | 17254 _ACEOF |
25897 | 17255 |
17256 fi | |
17257 if test "${HAVE_X11}" = "yes" ; then | |
44493 | 17258 cat >>confdefs.h <<\_ACEOF |
25897 | 17259 #define HAVE_X11 1 |
44493 | 17260 _ACEOF |
25897 | 17261 |
17262 fi | |
17263 if test "${HAVE_XFREE386}" = "yes" ; then | |
44493 | 17264 cat >>confdefs.h <<\_ACEOF |
25897 | 17265 #define HAVE_XFREE386 1 |
44493 | 17266 _ACEOF |
25897 | 17267 |
17268 fi | |
17269 if test "${HAVE_MENUS}" = "yes" ; then | |
44493 | 17270 cat >>confdefs.h <<\_ACEOF |
25897 | 17271 #define HAVE_MENUS 1 |
44493 | 17272 _ACEOF |
25897 | 17273 |
17274 fi | |
17275 if test "${GNU_MALLOC}" = "yes" ; then | |
44493 | 17276 cat >>confdefs.h <<\_ACEOF |
25897 | 17277 #define GNU_MALLOC 1 |
44493 | 17278 _ACEOF |
25897 | 17279 |
17280 fi | |
17281 if test "${REL_ALLOC}" = "yes" ; then | |
44493 | 17282 cat >>confdefs.h <<\_ACEOF |
25897 | 17283 #define REL_ALLOC 1 |
44493 | 17284 _ACEOF |
17285 | |
17286 fi | |
17287 | |
25897 | 17288 |
40777 | 17289 for ac_header in nlist.h |
17290 do | |
17291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
44493 | 17292 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
17293 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40777 | 17294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
17295 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17296 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 17297 fi |
17298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17300 else | |
17301 # Is the header compilable? | |
17302 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17304 cat >conftest.$ac_ext <<_ACEOF | |
17305 #line $LINENO "configure" | |
17306 #include "confdefs.h" | |
17307 $ac_includes_default | |
17308 #include <$ac_header> | |
17309 _ACEOF | |
17310 rm -f conftest.$ac_objext | |
17311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17312 (eval $ac_compile) 2>&5 | |
17313 ac_status=$? | |
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17315 (exit $ac_status); } && | |
17316 { ac_try='test -s conftest.$ac_objext' | |
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17318 (eval $ac_try) 2>&5 | |
17319 ac_status=$? | |
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17321 (exit $ac_status); }; }; then | |
17322 ac_header_compiler=yes | |
17323 else | |
17324 echo "$as_me: failed program was:" >&5 | |
17325 cat conftest.$ac_ext >&5 | |
17326 ac_header_compiler=no | |
17327 fi | |
17328 rm -f conftest.$ac_objext conftest.$ac_ext | |
17329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17330 echo "${ECHO_T}$ac_header_compiler" >&6 | |
17331 | |
17332 # Is the header present? | |
17333 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17335 cat >conftest.$ac_ext <<_ACEOF | |
17336 #line $LINENO "configure" | |
40777 | 17337 #include "confdefs.h" |
17338 #include <$ac_header> | |
17339 _ACEOF | |
44493 | 17340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40777 | 17341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
17342 ac_status=$? | |
17343 egrep -v '^ *\+' conftest.er1 >conftest.err | |
17344 rm -f conftest.er1 | |
17345 cat conftest.err >&5 | |
44493 | 17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40777 | 17347 (exit $ac_status); } >/dev/null; then |
17348 if test -s conftest.err; then | |
17349 ac_cpp_err=$ac_c_preproc_warn_flag | |
17350 else | |
17351 ac_cpp_err= | |
17352 fi | |
17353 else | |
17354 ac_cpp_err=yes | |
17355 fi | |
17356 if test -z "$ac_cpp_err"; then | |
44493 | 17357 ac_header_preproc=yes |
40777 | 17358 else |
17359 echo "$as_me: failed program was:" >&5 | |
17360 cat conftest.$ac_ext >&5 | |
44493 | 17361 ac_header_preproc=no |
40777 | 17362 fi |
17363 rm -f conftest.err conftest.$ac_ext | |
44493 | 17364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17365 echo "${ECHO_T}$ac_header_preproc" >&6 | |
17366 | |
17367 # So? What about this header? | |
17368 case $ac_header_compiler:$ac_header_preproc in | |
17369 yes:no ) | |
17370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
17374 no:yes ) | |
17375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
17381 esac | |
17382 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17384 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17385 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17386 else | |
17387 eval "$as_ac_Header=$ac_header_preproc" | |
17388 fi | |
17389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40777 | 17390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 17391 |
17392 fi | |
40777 | 17393 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 17394 cat >>confdefs.h <<_ACEOF |
40777 | 17395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 17396 _ACEOF |
17397 | |
17398 cat >>confdefs.h <<\_ACEOF | |
40777 | 17399 #define NLIST_STRUCT 1 |
44493 | 17400 _ACEOF |
17401 | |
17402 fi | |
17403 | |
17404 done | |
17405 | |
40777 | 17406 |
25897 | 17407 #### Report on what we decided to do. |
17408 echo " | |
17409 Configured for \`${canonical}'. | |
17410 | |
17411 Where should the build process find the source code? ${srcdir} | |
17412 What operating system and machine description files should Emacs use? | |
17413 \`${opsysfile}' and \`${machfile}' | |
17414 What compiler should emacs be built with? ${CC} ${CFLAGS} | |
17415 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
31417 | 17416 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
31607 | 17417 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
25897 | 17418 What window system should Emacs use? ${window_system} |
44493 | 17419 What toolkit should Emacs use? ${USE_X_TOOLKIT} |
17420 Should Emacs use a shared game state directory? ${gamedir}" | |
25897 | 17421 |
17422 if test -n "${x_includes}"; then | |
17423 echo " Where do we find X Windows header files? ${x_includes}" | |
17424 else | |
17425 echo " Where do we find X Windows header files? Standard dirs" | |
17426 fi | |
17427 if test -n "${x_libraries}"; then | |
17428 echo " Where do we find X Windows libraries? ${x_libraries}" | |
17429 else | |
17430 echo " Where do we find X Windows libraries? Standard dirs" | |
17431 fi | |
17432 | |
17433 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
17434 echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
17435 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
17436 echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
17437 echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
17438 echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
17439 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
17440 echo | |
17441 | |
17442 # Remove any trailing slashes in these variables. | |
17443 test "${prefix}" != NONE && | |
17444 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
17445 test "${exec_prefix}" != NONE && | |
17446 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
17447 | |
36354 | 17448 ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
17449 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
17450 ## from Makefile.c can correctly provide the arg `-traditional' to the | |
17451 ## C preprocessor. | |
17452 | |
40056 | 17453 cat >conftest.$ac_ext <<_ACEOF |
44493 | 17454 #line $LINENO "configure" |
36354 | 17455 #include "confdefs.h" |
17456 yes..yes | |
40056 | 17457 _ACEOF |
36354 | 17458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
17459 egrep "yes..yes" >/dev/null 2>&1; then | |
17460 CPP_NEED_TRADITIONAL=no | |
17461 else | |
17462 CPP_NEED_TRADITIONAL=yes | |
17463 fi | |
17464 rm -f conftest* | |
17465 | |
44493 | 17466 |
41431 | 17467 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile" |
40056 | 17468 ac_config_commands="$ac_config_commands default" |
17469 cat >confcache <<\_ACEOF | |
25897 | 17470 # This file is a shell script that caches the results of configure |
17471 # tests run on this system so they can be shared between configure | |
40056 | 17472 # scripts and configure runs, see configure's option --config-cache. |
17473 # It is not useful on other systems. If it contains results you don't | |
17474 # want to keep, you may remove or edit it. | |
17475 # | |
17476 # config.status only pays attention to the cache file if you give it | |
17477 # the --recheck option to rerun configure. | |
25897 | 17478 # |
40056 | 17479 # `ac_cv_env_foo' variables (set or unset) will be overriden when |
17480 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17481 # following values. | |
17482 | |
17483 _ACEOF | |
17484 | |
25897 | 17485 # The following way of writing the cache mishandles newlines in values, |
17486 # but we know of no workaround that is simple, portable, and efficient. | |
17487 # So, don't put newlines in cache variables' values. | |
17488 # Ultrix sh set writes to stderr and can't be redirected directly, | |
17489 # and sets the high bit in the cache file unless we assign to the vars. | |
40056 | 17490 { |
17491 (set) 2>&1 | | |
17492 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17493 *ac_space=\ *) | |
17494 # `set' does not quote correctly, so add quotes (double-quote | |
17495 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
17496 sed -n \ | |
17497 "s/'/'\\\\''/g; | |
17498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17499 ;; | |
17500 *) | |
17501 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17502 sed -n \ | |
17503 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
17504 ;; | |
17505 esac; | |
17506 } | | |
17507 sed ' | |
17508 t clear | |
17509 : clear | |
17510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17511 t end | |
17512 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17513 : end' >>confcache | |
17514 if cmp -s $cache_file confcache; then :; else | |
25897 | 17515 if test -w $cache_file; then |
40056 | 17516 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
17517 cat confcache >$cache_file | |
25897 | 17518 else |
17519 echo "not updating unwritable cache $cache_file" | |
17520 fi | |
17521 fi | |
17522 rm -f confcache | |
17523 | |
17524 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17525 # Let make expand exec_prefix. | |
17526 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17527 | |
40056 | 17528 # VPATH may cause trouble with some makes, so we remove $(srcdir), |
17529 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
17530 # trailing colons and then remove the whole line if VPATH becomes empty | |
17531 # (actually we leave an empty line to preserve line numbers). | |
25897 | 17532 if test "x$srcdir" = x.; then |
40056 | 17533 ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
17534 s/:*\$(srcdir):*/:/; | |
17535 s/:*\${srcdir}:*/:/; | |
17536 s/:*@srcdir@:*/:/; | |
17537 s/^\([^=]*=[ ]*\):*/\1/; | |
17538 s/:*$//; | |
17539 s/^[^=]*=[ ]*$//; | |
17540 }' | |
17541 fi | |
25897 | 17542 |
17543 DEFS=-DHAVE_CONFIG_H | |
17544 | |
44493 | 17545 |
25897 | 17546 : ${CONFIG_STATUS=./config.status} |
40056 | 17547 ac_clean_files_save=$ac_clean_files |
17548 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
44493 | 17549 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
40056 | 17550 echo "$as_me: creating $CONFIG_STATUS" >&6;} |
17551 cat >$CONFIG_STATUS <<_ACEOF | |
17552 #! $SHELL | |
44493 | 17553 # Generated by $as_me. |
25897 | 17554 # Run this file to recreate the current configuration. |
17555 # Compiler output produced by configure, useful for debugging | |
40056 | 17556 # configure, is in config.log if it exists. |
17557 | |
17558 debug=false | |
17559 SHELL=\${CONFIG_SHELL-$SHELL} | |
17560 _ACEOF | |
17561 | |
17562 cat >>$CONFIG_STATUS <<\_ACEOF | |
44493 | 17563 |
17564 ## --------------------- ## | |
17565 ## M4sh Initialization. ## | |
17566 ## --------------------- ## | |
17567 | |
40056 | 17568 # Be Bourne compatible |
17569 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17570 emulate sh | |
17571 NULLCMD=: | |
17572 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
17573 set -o posix | |
17574 fi | |
17575 | |
44493 | 17576 # NLS nuisances. |
17577 # Support unset when possible. | |
17578 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
17579 as_unset=unset | |
17580 else | |
17581 as_unset=false | |
17582 fi | |
17583 | |
17584 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
17585 { $as_unset LANG || test "${LANG+set}" != set; } || | |
17586 { LANG=C; export LANG; } | |
17587 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
17588 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
17589 { LC_ALL=C; export LC_ALL; } | |
17590 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
17591 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
17592 { LC_TIME=C; export LC_TIME; } | |
17593 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
17594 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
17595 { LC_CTYPE=C; export LC_CTYPE; } | |
17596 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
17597 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
17598 { LANGUAGE=C; export LANGUAGE; } | |
17599 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
17600 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
17601 { LC_COLLATE=C; export LC_COLLATE; } | |
17602 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
17603 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
17604 { LC_NUMERIC=C; export LC_NUMERIC; } | |
17605 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
17606 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
17607 { LC_MESSAGES=C; export LC_MESSAGES; } | |
17608 | |
17609 | |
40056 | 17610 # Name of the executable. |
44493 | 17611 as_me=`(basename "$0") 2>/dev/null || |
17612 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
17613 X"$0" : 'X\(//\)$' \| \ | |
17614 X"$0" : 'X\(/\)$' \| \ | |
17615 . : '\(.\)' 2>/dev/null || | |
17616 echo X/"$0" | | |
17617 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
17618 /^X\/\(\/\/\)$/{ s//\1/; q; } | |
17619 /^X\/\(\/\).*/{ s//\1/; q; } | |
17620 s/.*/./; q'` | |
17621 | |
17622 # PATH needs CR, and LINENO needs CR and PATH. | |
17623 # Avoid depending upon Character Ranges. | |
17624 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
17625 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
17626 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
17627 as_cr_digits='0123456789' | |
17628 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
17629 | |
17630 # The user is always right. | |
17631 if test "${PATH_SEPARATOR+set}" != set; then | |
17632 echo "#! /bin/sh" >conftest.sh | |
17633 echo "exit 0" >>conftest.sh | |
17634 chmod +x conftest.sh | |
17635 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
17636 PATH_SEPARATOR=';' | |
17637 else | |
17638 PATH_SEPARATOR=: | |
17639 fi | |
17640 rm -f conftest.sh | |
17641 fi | |
17642 | |
17643 | |
17644 as_lineno_1=$LINENO | |
17645 as_lineno_2=$LINENO | |
17646 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
17647 test "x$as_lineno_1" != "x$as_lineno_2" && | |
17648 test "x$as_lineno_3" = "x$as_lineno_2" || { | |
17649 # Find who we are. Look in the path if we contain no path at all | |
17650 # relative or not. | |
17651 case $0 in | |
17652 *[\\/]* ) as_myself=$0 ;; | |
17653 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17654 for as_dir in $PATH | |
17655 do | |
17656 IFS=$as_save_IFS | |
17657 test -z "$as_dir" && as_dir=. | |
17658 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
17659 done | |
17660 | |
17661 ;; | |
17662 esac | |
17663 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17664 # in which case we are not to be found in the path. | |
17665 if test "x$as_myself" = x; then | |
17666 as_myself=$0 | |
17667 fi | |
17668 if test ! -f "$as_myself"; then | |
17669 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
17670 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
17671 { (exit 1); exit 1; }; } | |
17672 fi | |
17673 case $CONFIG_SHELL in | |
17674 '') | |
17675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17676 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
17677 do | |
17678 IFS=$as_save_IFS | |
17679 test -z "$as_dir" && as_dir=. | |
17680 for as_base in sh bash ksh sh5; do | |
17681 case $as_dir in | |
17682 /*) | |
17683 if ("$as_dir/$as_base" -c ' | |
17684 as_lineno_1=$LINENO | |
17685 as_lineno_2=$LINENO | |
17686 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
17687 test "x$as_lineno_1" != "x$as_lineno_2" && | |
17688 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
17689 CONFIG_SHELL=$as_dir/$as_base | |
17690 export CONFIG_SHELL | |
17691 exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
17692 fi;; | |
17693 esac | |
17694 done | |
17695 done | |
17696 ;; | |
17697 esac | |
17698 | |
17699 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
17700 # uniformly replaced by the line number. The first 'sed' inserts a | |
17701 # line-number line before each line; the second 'sed' does the real | |
17702 # work. The second script uses 'N' to pair each line-number line | |
17703 # with the numbered line, and appends trailing '-' during | |
17704 # substitution so that $LINENO is not a special case at line end. | |
17705 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
17706 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
17707 sed '=' <$as_myself | | |
17708 sed ' | |
17709 N | |
17710 s,$,-, | |
17711 : loop | |
17712 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
17713 t loop | |
17714 s,-$,, | |
17715 s,^['$as_cr_digits']*\n,, | |
17716 ' >$as_me.lineno && | |
17717 chmod +x $as_me.lineno || | |
17718 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
17719 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
17720 { (exit 1); exit 1; }; } | |
17721 | |
17722 # Don't try to exec as it changes $[0], causing all sort of problems | |
17723 # (the dirname of $[0] is not the place where we might find the | |
17724 # original and so on. Autoconf is especially sensible to this). | |
17725 . ./$as_me.lineno | |
17726 # Exit status is that of the last command. | |
17727 exit | |
17728 } | |
17729 | |
17730 | |
17731 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
17732 *c*,-n*) ECHO_N= ECHO_C=' | |
17733 ' ECHO_T=' ' ;; | |
17734 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
17735 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
17736 esac | |
40056 | 17737 |
17738 if expr a : '\(a\)' >/dev/null 2>&1; then | |
17739 as_expr=expr | |
17740 else | |
17741 as_expr=false | |
17742 fi | |
17743 | |
17744 rm -f conf$$ conf$$.exe conf$$.file | |
17745 echo >conf$$.file | |
17746 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
17747 # We could just check for DJGPP; but this test a) works b) is more generic | |
17748 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
17749 if test -f conf$$.exe; then | |
17750 # Don't use ln at all; we don't have any links | |
17751 as_ln_s='cp -p' | |
17752 else | |
17753 as_ln_s='ln -s' | |
17754 fi | |
17755 elif ln conf$$.file conf$$ 2>/dev/null; then | |
17756 as_ln_s=ln | |
17757 else | |
17758 as_ln_s='cp -p' | |
17759 fi | |
17760 rm -f conf$$ conf$$.exe conf$$.file | |
17761 | |
17762 as_executable_p="test -f" | |
17763 | |
44493 | 17764 # Sed expression to map a string onto a valid CPP name. |
17765 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
17766 | |
17767 # Sed expression to map a string onto a valid variable name. | |
17768 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
17769 | |
40056 | 17770 |
17771 # IFS | |
17772 # We need space, tab and new line, in precisely that order. | |
17773 as_nl=' | |
17774 ' | |
17775 IFS=" $as_nl" | |
17776 | |
17777 # CDPATH. | |
44493 | 17778 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
40056 | 17779 |
17780 exec 6>&1 | |
17781 | |
44493 | 17782 # Open the log real soon, to keep \$[0] and so on meaningful, and to |
17783 # report actual input values of CONFIG_FILES etc. instead of their | |
17784 # values after options handling. Logging --version etc. is OK. | |
17785 exec 5>>config.log | |
17786 { | |
17787 echo | |
17788 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17789 ## Running $as_me. ## | |
17790 _ASBOX | |
17791 } >&5 | |
17792 cat >&5 <<_CSEOF | |
17793 | |
17794 This file was extended by $as_me, which was | |
17795 generated by GNU Autoconf 2.53. Invocation command line was | |
17796 | |
17797 CONFIG_FILES = $CONFIG_FILES | |
17798 CONFIG_HEADERS = $CONFIG_HEADERS | |
17799 CONFIG_LINKS = $CONFIG_LINKS | |
17800 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17801 $ $0 $@ | |
17802 | |
17803 _CSEOF | |
17804 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
17805 echo >&5 | |
40056 | 17806 _ACEOF |
17807 | |
17808 # Files that config.status was made for. | |
17809 if test -n "$ac_config_files"; then | |
17810 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
17811 fi | |
17812 | |
17813 if test -n "$ac_config_headers"; then | |
17814 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
17815 fi | |
17816 | |
17817 if test -n "$ac_config_links"; then | |
17818 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
17819 fi | |
17820 | |
17821 if test -n "$ac_config_commands"; then | |
17822 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
17823 fi | |
17824 | |
44493 | 17825 cat >>$CONFIG_STATUS <<\_ACEOF |
40056 | 17826 |
17827 ac_cs_usage="\ | |
17828 \`$as_me' instantiates files from templates according to the | |
17829 current configuration. | |
17830 | |
17831 Usage: $0 [OPTIONS] [FILE]... | |
17832 | |
17833 -h, --help print this help, then exit | |
17834 -V, --version print version number, then exit | |
17835 -d, --debug don't remove temporary files | |
17836 --recheck update $as_me by reconfiguring in the same conditions | |
17837 --file=FILE[:TEMPLATE] | |
17838 instantiate the configuration file FILE | |
17839 --header=FILE[:TEMPLATE] | |
17840 instantiate the configuration header FILE | |
17841 | |
17842 Configuration files: | |
17843 $config_files | |
17844 | |
17845 Configuration headers: | |
17846 $config_headers | |
17847 | |
17848 Configuration commands: | |
17849 $config_commands | |
17850 | |
17851 Report bugs to <bug-autoconf@gnu.org>." | |
44493 | 17852 _ACEOF |
17853 | |
17854 cat >>$CONFIG_STATUS <<_ACEOF | |
40056 | 17855 ac_cs_version="\\ |
17856 config.status | |
44493 | 17857 configured by $0, generated by GNU Autoconf 2.53, |
40056 | 17858 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
17859 | |
17860 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
17861 Free Software Foundation, Inc. | |
17862 This config.status script is free software; the Free Software Foundation | |
17863 gives unlimited permission to copy, distribute and modify it." | |
17864 srcdir=$srcdir | |
17865 INSTALL="$INSTALL" | |
44493 | 17866 _ACEOF |
17867 | |
17868 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 17869 # If no file are specified by the user, then we need to provide default |
17870 # value. By we need to know if files were specified by the user. | |
17871 ac_need_defaults=: | |
17872 while test $# != 0 | |
25897 | 17873 do |
40056 | 17874 case $1 in |
17875 --*=*) | |
17876 ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
17877 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
17878 shift | |
17879 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
17880 shift | |
17881 ;; | |
17882 -*);; | |
17883 *) # This is not an option, so the user has probably given explicit | |
17884 # arguments. | |
17885 ac_need_defaults=false;; | |
17886 esac | |
17887 | |
17888 case $1 in | |
17889 # Handling of the options. | |
44493 | 17890 _ACEOF |
17891 cat >>$CONFIG_STATUS <<_ACEOF | |
25897 | 17892 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
40056 | 17893 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
17894 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
44493 | 17895 _ACEOF |
17896 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 17897 --version | --vers* | -V ) |
17898 echo "$ac_cs_version"; exit 0 ;; | |
17899 --he | --h) | |
17900 # Conflict between --help and --header | |
44493 | 17901 { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
40056 | 17902 Try \`$0 --help' for more information." >&5 |
17903 echo "$as_me: error: ambiguous option: $1 | |
17904 Try \`$0 --help' for more information." >&2;} | |
17905 { (exit 1); exit 1; }; };; | |
17906 --help | --hel | -h ) | |
17907 echo "$ac_cs_usage"; exit 0 ;; | |
17908 --debug | --d* | -d ) | |
17909 debug=: ;; | |
17910 --file | --fil | --fi | --f ) | |
17911 shift | |
17912 CONFIG_FILES="$CONFIG_FILES $1" | |
17913 ac_need_defaults=false;; | |
17914 --header | --heade | --head | --hea ) | |
17915 shift | |
17916 CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
17917 ac_need_defaults=false;; | |
17918 | |
17919 # This is an error. | |
44493 | 17920 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
40056 | 17921 Try \`$0 --help' for more information." >&5 |
17922 echo "$as_me: error: unrecognized option: $1 | |
17923 Try \`$0 --help' for more information." >&2;} | |
17924 { (exit 1); exit 1; }; } ;; | |
17925 | |
17926 *) ac_config_targets="$ac_config_targets $1" ;; | |
17927 | |
17928 esac | |
17929 shift | |
17930 done | |
17931 | |
44493 | 17932 _ACEOF |
17933 | |
17934 cat >>$CONFIG_STATUS <<_ACEOF | |
40056 | 17935 # |
17936 # INIT-COMMANDS section. | |
17937 # | |
17938 | |
17939 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" | |
17940 | |
44493 | 17941 _ACEOF |
17942 | |
17943 | |
17944 | |
17945 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 17946 for ac_config_target in $ac_config_targets |
17947 do | |
17948 case "$ac_config_target" in | |
17949 # Handling of arguments. | |
17950 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
17951 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
17952 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
17953 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
17954 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | |
17955 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; | |
17956 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | |
40893 | 17957 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;; |
41431 | 17958 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;; |
40056 | 17959 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
17960 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
17961 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
44493 | 17962 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
40056 | 17963 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
17964 { (exit 1); exit 1; }; };; | |
25897 | 17965 esac |
17966 done | |
17967 | |
40056 | 17968 # If the user did not use the arguments to specify the items to instantiate, |
17969 # then the envvar interface is used. Set only those that are not. | |
17970 # We use the long form for the default assignment because of an extremely | |
17971 # bizarre bug on SunOS 4.1.3. | |
17972 if $ac_need_defaults; then | |
17973 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
17974 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
17975 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
17976 fi | |
17977 | |
17978 # Create a temporary directory, and hook for its removal unless debugging. | |
17979 $debug || | |
17980 { | |
17981 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
17982 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
17983 } | |
17984 | |
17985 # Create a (secure) tmp directory for tmp files. | |
17986 : ${TMPDIR=/tmp} | |
17987 { | |
17988 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
17989 test -n "$tmp" && test -d "$tmp" | |
17990 } || | |
17991 { | |
17992 tmp=$TMPDIR/cs$$-$RANDOM | |
17993 (umask 077 && mkdir $tmp) | |
17994 } || | |
17995 { | |
17996 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
17997 { (exit 1); exit 1; } | |
17998 } | |
17999 | |
44493 | 18000 _ACEOF |
18001 | |
18002 cat >>$CONFIG_STATUS <<_ACEOF | |
40056 | 18003 |
18004 # | |
18005 # CONFIG_FILES section. | |
18006 # | |
18007 | |
18008 # No need to generate the scripts if there are no CONFIG_FILES. | |
18009 # This happens for instance when ./config.status config.h | |
18010 if test -n "\$CONFIG_FILES"; then | |
18011 # Protect against being on the right side of a sed subst in config.status. | |
18012 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
18013 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
18014 s,@SHELL@,$SHELL,;t t | |
44493 | 18015 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
18016 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
18017 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
18018 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
18019 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
18020 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
40056 | 18021 s,@exec_prefix@,$exec_prefix,;t t |
18022 s,@prefix@,$prefix,;t t | |
18023 s,@program_transform_name@,$program_transform_name,;t t | |
18024 s,@bindir@,$bindir,;t t | |
18025 s,@sbindir@,$sbindir,;t t | |
18026 s,@libexecdir@,$libexecdir,;t t | |
18027 s,@datadir@,$datadir,;t t | |
18028 s,@sysconfdir@,$sysconfdir,;t t | |
18029 s,@sharedstatedir@,$sharedstatedir,;t t | |
18030 s,@localstatedir@,$localstatedir,;t t | |
18031 s,@libdir@,$libdir,;t t | |
18032 s,@includedir@,$includedir,;t t | |
18033 s,@oldincludedir@,$oldincludedir,;t t | |
18034 s,@infodir@,$infodir,;t t | |
18035 s,@mandir@,$mandir,;t t | |
18036 s,@build_alias@,$build_alias,;t t | |
18037 s,@host_alias@,$host_alias,;t t | |
18038 s,@target_alias@,$target_alias,;t t | |
44493 | 18039 s,@DEFS@,$DEFS,;t t |
40056 | 18040 s,@ECHO_C@,$ECHO_C,;t t |
18041 s,@ECHO_N@,$ECHO_N,;t t | |
18042 s,@ECHO_T@,$ECHO_T,;t t | |
18043 s,@LIBS@,$LIBS,;t t | |
18044 s,@build@,$build,;t t | |
18045 s,@build_cpu@,$build_cpu,;t t | |
18046 s,@build_vendor@,$build_vendor,;t t | |
18047 s,@build_os@,$build_os,;t t | |
18048 s,@host@,$host,;t t | |
18049 s,@host_cpu@,$host_cpu,;t t | |
18050 s,@host_vendor@,$host_vendor,;t t | |
18051 s,@host_os@,$host_os,;t t | |
18052 s,@CC@,$CC,;t t | |
18053 s,@CFLAGS@,$CFLAGS,;t t | |
18054 s,@LDFLAGS@,$LDFLAGS,;t t | |
18055 s,@CPPFLAGS@,$CPPFLAGS,;t t | |
18056 s,@ac_ct_CC@,$ac_ct_CC,;t t | |
18057 s,@EXEEXT@,$EXEEXT,;t t | |
18058 s,@OBJEXT@,$OBJEXT,;t t | |
18059 s,@LN_S@,$LN_S,;t t | |
18060 s,@CPP@,$CPP,;t t | |
18061 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
18062 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
18063 s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
18064 s,@YACC@,$YACC,;t t | |
18065 s,@RANLIB@,$RANLIB,;t t | |
18066 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
18067 s,@LIBSOUND@,$LIBSOUND,;t t | |
18068 s,@SET_MAKE@,$SET_MAKE,;t t | |
18069 s,@ALLOCA@,$ALLOCA,;t t | |
18070 s,@liblockfile@,$liblockfile,;t t | |
18071 s,@LIBOBJS@,$LIBOBJS,;t t | |
18072 s,@NEED_SETGID@,$NEED_SETGID,;t t | |
18073 s,@KMEM_GROUP@,$KMEM_GROUP,;t t | |
18074 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t | |
18075 s,@version@,$version,;t t | |
18076 s,@configuration@,$configuration,;t t | |
18077 s,@canonical@,$canonical,;t t | |
18078 s,@srcdir@,$srcdir,;t t | |
18079 s,@lispdir@,$lispdir,;t t | |
18080 s,@locallisppath@,$locallisppath,;t t | |
18081 s,@lisppath@,$lisppath,;t t | |
18082 s,@x_default_search_path@,$x_default_search_path,;t t | |
18083 s,@etcdir@,$etcdir,;t t | |
18084 s,@archlibdir@,$archlibdir,;t t | |
18085 s,@docdir@,$docdir,;t t | |
18086 s,@bitmapdir@,$bitmapdir,;t t | |
44493 | 18087 s,@gamedir@,$gamedir,;t t |
18088 s,@gameuser@,$gameuser,;t t | |
40056 | 18089 s,@c_switch_system@,$c_switch_system,;t t |
18090 s,@c_switch_machine@,$c_switch_machine,;t t | |
18091 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t | |
18092 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t | |
18093 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t | |
18094 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t | |
18095 s,@machfile@,$machfile,;t t | |
18096 s,@opsysfile@,$opsysfile,;t t | |
25897 | 18097 CEOF |
40056 | 18098 |
44493 | 18099 _ACEOF |
18100 | |
18101 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 18102 # Split the substitutions into bite-sized pieces for seds with |
18103 # small command number limits, like on Digital OSF/1 and HP-UX. | |
18104 ac_max_sed_lines=48 | |
18105 ac_sed_frag=1 # Number of current file. | |
18106 ac_beg=1 # First line for current file. | |
18107 ac_end=$ac_max_sed_lines # Line after last line for current file. | |
18108 ac_more_lines=: | |
18109 ac_sed_cmds= | |
18110 while $ac_more_lines; do | |
18111 if test $ac_beg -gt 1; then | |
18112 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
25897 | 18113 else |
40056 | 18114 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
18115 fi | |
18116 if test ! -s $tmp/subs.frag; then | |
18117 ac_more_lines=false | |
18118 else | |
18119 # The purpose of the label and of the branching condition is to | |
18120 # speed up the sed processing (if there are no `@' at all, there | |
18121 # is no need to browse any of the substitutions). | |
18122 # These are the two extra sed commands mentioned above. | |
18123 (echo ':t | |
18124 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
18125 if test -z "$ac_sed_cmds"; then | |
18126 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
18127 else | |
18128 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
18129 fi | |
18130 ac_sed_frag=`expr $ac_sed_frag + 1` | |
18131 ac_beg=$ac_end | |
18132 ac_end=`expr $ac_end + $ac_max_sed_lines` | |
25897 | 18133 fi |
40056 | 18134 done |
18135 if test -z "$ac_sed_cmds"; then | |
18136 ac_sed_cmds=cat | |
18137 fi | |
18138 fi # test -n "$CONFIG_FILES" | |
18139 | |
44493 | 18140 _ACEOF |
18141 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 18142 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
25897 | 18143 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
40056 | 18144 case $ac_file in |
18145 - | *:- | *:-:* ) # input from stdin | |
18146 cat >$tmp/stdin | |
18147 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
18148 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
18149 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
18150 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
18151 * ) ac_file_in=$ac_file.in ;; | |
25897 | 18152 esac |
18153 | |
40056 | 18154 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
44493 | 18155 ac_dir=`(dirname "$ac_file") 2>/dev/null || |
18156 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
40056 | 18157 X"$ac_file" : 'X\(//\)[^/]' \| \ |
18158 X"$ac_file" : 'X\(//\)$' \| \ | |
18159 X"$ac_file" : 'X\(/\)' \| \ | |
18160 . : '\(.\)' 2>/dev/null || | |
18161 echo X"$ac_file" | | |
18162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18163 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18164 /^X\(\/\/\)$/{ s//\1/; q; } | |
18165 /^X\(\/\).*/{ s//\1/; q; } | |
18166 s/.*/./; q'` | |
44493 | 18167 { case "$ac_dir" in |
40056 | 18168 [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
18169 *) as_incr_dir=.;; | |
18170 esac | |
18171 as_dummy="$ac_dir" | |
18172 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
18173 case $as_mkdir_dir in | |
18174 # Skip DOS drivespec | |
18175 ?:) as_incr_dir=$as_mkdir_dir ;; | |
18176 *) | |
18177 as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
44493 | 18178 test -d "$as_incr_dir" || |
18179 mkdir "$as_incr_dir" || | |
18180 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
18181 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
18182 { (exit 1); exit 1; }; } | |
40056 | 18183 ;; |
18184 esac | |
18185 done; } | |
18186 | |
44493 | 18187 ac_builddir=. |
18188 | |
18189 if test "$ac_dir" != .; then | |
18190 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
18191 # A "../" for each directory in $ac_dir_suffix. | |
18192 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
18193 else | |
18194 ac_dir_suffix= ac_top_builddir= | |
18195 fi | |
18196 | |
18197 case $srcdir in | |
18198 .) # No --srcdir option. We are building in place. | |
18199 ac_srcdir=. | |
18200 if test -z "$ac_top_builddir"; then | |
18201 ac_top_srcdir=. | |
18202 else | |
18203 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
18204 fi ;; | |
18205 [\\/]* | ?:[\\/]* ) # Absolute path. | |
18206 ac_srcdir=$srcdir$ac_dir_suffix; | |
18207 ac_top_srcdir=$srcdir ;; | |
25897 | 18208 *) # Relative path. |
44493 | 18209 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
18210 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
18211 esac | |
18212 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
18213 # absolute. | |
18214 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
18215 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
18216 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
18217 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
18218 | |
25897 | 18219 |
40056 | 18220 case $INSTALL in |
18221 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
44493 | 18222 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
25897 | 18223 esac |
18224 | |
40056 | 18225 if test x"$ac_file" != x-; then |
44493 | 18226 { echo "$as_me:$LINENO: creating $ac_file" >&5 |
40056 | 18227 echo "$as_me: creating $ac_file" >&6;} |
18228 rm -f "$ac_file" | |
18229 fi | |
18230 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
18231 # use $as_me), people would be surprised to read: | |
44493 | 18232 # /* config.h. Generated by config.status. */ |
18233 if test x"$ac_file" = x-; then | |
18234 configure_input= | |
18235 else | |
18236 configure_input="$ac_file. " | |
18237 fi | |
18238 configure_input=$configure_input"Generated from `echo $ac_file_in | | |
18239 sed 's,.*/,,'` by configure." | |
40056 | 18240 |
18241 # First look for the input files in the build tree, otherwise in the | |
18242 # src tree. | |
18243 ac_file_inputs=`IFS=: | |
18244 for f in $ac_file_in; do | |
18245 case $f in | |
18246 -) echo $tmp/stdin ;; | |
18247 [\\/$]*) | |
18248 # Absolute (can't be DOS-style, as IFS=:) | |
44493 | 18249 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
40056 | 18250 echo "$as_me: error: cannot find input file: $f" >&2;} |
18251 { (exit 1); exit 1; }; } | |
18252 echo $f;; | |
18253 *) # Relative | |
18254 if test -f "$f"; then | |
18255 # Build tree | |
18256 echo $f | |
18257 elif test -f "$srcdir/$f"; then | |
18258 # Source tree | |
18259 echo $srcdir/$f | |
18260 else | |
18261 # /dev/null tree | |
44493 | 18262 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
40056 | 18263 echo "$as_me: error: cannot find input file: $f" >&2;} |
18264 { (exit 1); exit 1; }; } | |
18265 fi;; | |
18266 esac | |
18267 done` || { (exit 1); exit 1; } | |
44493 | 18268 _ACEOF |
18269 cat >>$CONFIG_STATUS <<_ACEOF | |
40056 | 18270 sed "$ac_vpsub |
18271 $extrasub | |
44493 | 18272 _ACEOF |
18273 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 18274 :t |
18275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
18276 s,@configure_input@,$configure_input,;t t | |
18277 s,@srcdir@,$ac_srcdir,;t t | |
44493 | 18278 s,@abs_srcdir@,$ac_abs_srcdir,;t t |
40056 | 18279 s,@top_srcdir@,$ac_top_srcdir,;t t |
44493 | 18280 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
18281 s,@builddir@,$ac_builddir,;t t | |
18282 s,@abs_builddir@,$ac_abs_builddir,;t t | |
18283 s,@top_builddir@,$ac_top_builddir,;t t | |
18284 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
40056 | 18285 s,@INSTALL@,$ac_INSTALL,;t t |
18286 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
18287 rm -f $tmp/stdin | |
18288 if test x"$ac_file" != x-; then | |
18289 mv $tmp/out $ac_file | |
18290 else | |
18291 cat $tmp/out | |
18292 rm -f $tmp/out | |
18293 fi | |
18294 | |
18295 done | |
44493 | 18296 _ACEOF |
18297 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 18298 |
18299 # | |
18300 # CONFIG_HEADER section. | |
18301 # | |
25897 | 18302 |
18303 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
18304 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
18305 # | |
18306 # ac_d sets the value in "#define NAME VALUE" lines. | |
40056 | 18307 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
18308 ac_dB='[ ].*$,\1#\2' | |
18309 ac_dC=' ' | |
18310 ac_dD=',;t' | |
18311 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
18312 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18313 ac_uB='$,\1#\2define\3' | |
25897 | 18314 ac_uC=' ' |
40056 | 18315 ac_uD=',;t' |
18316 | |
18317 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
25897 | 18318 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
40056 | 18319 case $ac_file in |
18320 - | *:- | *:-:* ) # input from stdin | |
18321 cat >$tmp/stdin | |
18322 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
18323 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
18324 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
18325 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
18326 * ) ac_file_in=$ac_file.in ;; | |
25897 | 18327 esac |
18328 | |
44493 | 18329 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
40056 | 18330 echo "$as_me: creating $ac_file" >&6;} |
18331 | |
18332 # First look for the input files in the build tree, otherwise in the | |
18333 # src tree. | |
18334 ac_file_inputs=`IFS=: | |
18335 for f in $ac_file_in; do | |
18336 case $f in | |
18337 -) echo $tmp/stdin ;; | |
18338 [\\/$]*) | |
18339 # Absolute (can't be DOS-style, as IFS=:) | |
44493 | 18340 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
40056 | 18341 echo "$as_me: error: cannot find input file: $f" >&2;} |
18342 { (exit 1); exit 1; }; } | |
18343 echo $f;; | |
18344 *) # Relative | |
18345 if test -f "$f"; then | |
18346 # Build tree | |
18347 echo $f | |
18348 elif test -f "$srcdir/$f"; then | |
18349 # Source tree | |
18350 echo $srcdir/$f | |
18351 else | |
18352 # /dev/null tree | |
44493 | 18353 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
40056 | 18354 echo "$as_me: error: cannot find input file: $f" >&2;} |
18355 { (exit 1); exit 1; }; } | |
18356 fi;; | |
18357 esac | |
18358 done` || { (exit 1); exit 1; } | |
18359 # Remove the trailing spaces. | |
18360 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
18361 | |
44493 | 18362 _ACEOF |
40056 | 18363 |
18364 # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
18365 # `conftest.undefs', that substitutes the proper values into | |
18366 # config.h.in to produce config.h. The first handles `#define' | |
18367 # templates, and the second `#undef' templates. | |
18368 # And first: Protect against being on the right side of a sed subst in | |
18369 # config.status. Protect against being in an unquoted here document | |
18370 # in config.status. | |
18371 rm -f conftest.defines conftest.undefs | |
18372 # Using a here document instead of a string reduces the quoting nightmare. | |
18373 # Putting comments in sed scripts is not portable. | |
18374 # | |
18375 # `end' is used to avoid that the second main sed command (meant for | |
18376 # 0-ary CPP macros) applies to n-ary macro definitions. | |
18377 # See the Autoconf documentation for `clear'. | |
44493 | 18378 cat >confdef2sed.sed <<\_ACEOF |
40056 | 18379 s/[\\&,]/\\&/g |
18380 s,[\\$`],\\&,g | |
18381 t clear | |
18382 : clear | |
44493 | 18383 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
40056 | 18384 t end |
18385 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
18386 : end | |
44493 | 18387 _ACEOF |
40056 | 18388 # If some macros were called several times there might be several times |
18389 # the same #defines, which is useless. Nevertheless, we may not want to | |
18390 # sort them, since we want the *last* AC-DEFINE to be honored. | |
18391 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
18392 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
18393 rm -f confdef2sed.sed | |
25897 | 18394 |
18395 # This sed command replaces #undef with comments. This is necessary, for | |
18396 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
18397 # on some systems where configure will not decide to define it. | |
44493 | 18398 cat >>conftest.undefs <<\_ACEOF |
40056 | 18399 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
44493 | 18400 _ACEOF |
40056 | 18401 |
18402 # Break up conftest.defines because some shells have a limit on the size | |
18403 # of here documents, and old seds have small limits too (100 cmds). | |
18404 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
18405 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
18406 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
18407 echo ' :' >>$CONFIG_STATUS | |
25897 | 18408 rm -f conftest.tail |
40056 | 18409 while grep . conftest.defines >/dev/null |
25897 | 18410 do |
40056 | 18411 # Write a limited-size here document to $tmp/defines.sed. |
18412 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
18413 # Speed up: don't consider the non `#define' lines. | |
18414 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
18415 # Work around the forget-to-reset-the-flag bug. | |
18416 echo 't clr' >>$CONFIG_STATUS | |
18417 echo ': clr' >>$CONFIG_STATUS | |
18418 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
25897 | 18419 echo 'CEOF |
40056 | 18420 sed -f $tmp/defines.sed $tmp/in >$tmp/out |
18421 rm -f $tmp/in | |
18422 mv $tmp/out $tmp/in | |
18423 ' >>$CONFIG_STATUS | |
18424 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
18425 rm -f conftest.defines | |
18426 mv conftest.tail conftest.defines | |
18427 done | |
18428 rm -f conftest.defines | |
18429 echo ' fi # egrep' >>$CONFIG_STATUS | |
18430 echo >>$CONFIG_STATUS | |
18431 | |
18432 # Break up conftest.undefs because some shells have a limit on the size | |
18433 # of here documents, and old seds have small limits too (100 cmds). | |
18434 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
18435 rm -f conftest.tail | |
18436 while grep . conftest.undefs >/dev/null | |
18437 do | |
18438 # Write a limited-size here document to $tmp/undefs.sed. | |
18439 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
18440 # Speed up: don't consider the non `#undef' | |
18441 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
18442 # Work around the forget-to-reset-the-flag bug. | |
18443 echo 't clr' >>$CONFIG_STATUS | |
18444 echo ': clr' >>$CONFIG_STATUS | |
18445 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
18446 echo 'CEOF | |
18447 sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
18448 rm -f $tmp/in | |
18449 mv $tmp/out $tmp/in | |
18450 ' >>$CONFIG_STATUS | |
18451 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
18452 rm -f conftest.undefs | |
18453 mv conftest.tail conftest.undefs | |
25897 | 18454 done |
40056 | 18455 rm -f conftest.undefs |
18456 | |
44493 | 18457 cat >>$CONFIG_STATUS <<\_ACEOF |
40056 | 18458 # Let's still pretend it is `configure' which instantiates (i.e., don't |
18459 # use $as_me), people would be surprised to read: | |
44493 | 18460 # /* config.h. Generated by config.status. */ |
40056 | 18461 if test x"$ac_file" = x-; then |
44493 | 18462 echo "/* Generated by configure. */" >$tmp/config.h |
18463 else | |
18464 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
40056 | 18465 fi |
18466 cat $tmp/in >>$tmp/config.h | |
18467 rm -f $tmp/in | |
18468 if test x"$ac_file" != x-; then | |
18469 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
44493 | 18470 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
40056 | 18471 echo "$as_me: $ac_file is unchanged" >&6;} |
18472 else | |
44493 | 18473 ac_dir=`(dirname "$ac_file") 2>/dev/null || |
18474 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
40056 | 18475 X"$ac_file" : 'X\(//\)[^/]' \| \ |
18476 X"$ac_file" : 'X\(//\)$' \| \ | |
18477 X"$ac_file" : 'X\(/\)' \| \ | |
18478 . : '\(.\)' 2>/dev/null || | |
18479 echo X"$ac_file" | | |
18480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18481 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18482 /^X\(\/\/\)$/{ s//\1/; q; } | |
18483 /^X\(\/\).*/{ s//\1/; q; } | |
18484 s/.*/./; q'` | |
44493 | 18485 { case "$ac_dir" in |
40056 | 18486 [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
18487 *) as_incr_dir=.;; | |
18488 esac | |
18489 as_dummy="$ac_dir" | |
18490 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
18491 case $as_mkdir_dir in | |
18492 # Skip DOS drivespec | |
18493 ?:) as_incr_dir=$as_mkdir_dir ;; | |
18494 *) | |
18495 as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
44493 | 18496 test -d "$as_incr_dir" || |
18497 mkdir "$as_incr_dir" || | |
18498 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
18499 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
18500 { (exit 1); exit 1; }; } | |
40056 | 18501 ;; |
18502 esac | |
18503 done; } | |
18504 | |
18505 rm -f $ac_file | |
18506 mv $tmp/config.h $ac_file | |
25897 | 18507 fi |
40056 | 18508 else |
18509 cat $tmp/config.h | |
18510 rm -f $tmp/config.h | |
18511 fi | |
18512 done | |
44493 | 18513 _ACEOF |
18514 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 18515 |
18516 # | |
18517 # CONFIG_COMMANDS section. | |
18518 # | |
18519 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
18520 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
18521 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
44493 | 18522 ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
18523 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18524 X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
18525 X"$ac_dest" : 'X\(//\)$' \| \ | |
18526 X"$ac_dest" : 'X\(/\)' \| \ | |
18527 . : '\(.\)' 2>/dev/null || | |
18528 echo X"$ac_dest" | | |
18529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18530 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18531 /^X\(\/\/\)$/{ s//\1/; q; } | |
18532 /^X\(\/\).*/{ s//\1/; q; } | |
18533 s/.*/./; q'` | |
18534 ac_builddir=. | |
18535 | |
18536 if test "$ac_dir" != .; then | |
18537 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
18538 # A "../" for each directory in $ac_dir_suffix. | |
18539 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
18540 else | |
18541 ac_dir_suffix= ac_top_builddir= | |
18542 fi | |
18543 | |
18544 case $srcdir in | |
18545 .) # No --srcdir option. We are building in place. | |
18546 ac_srcdir=. | |
18547 if test -z "$ac_top_builddir"; then | |
18548 ac_top_srcdir=. | |
18549 else | |
18550 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
18551 fi ;; | |
18552 [\\/]* | ?:[\\/]* ) # Absolute path. | |
18553 ac_srcdir=$srcdir$ac_dir_suffix; | |
18554 ac_top_srcdir=$srcdir ;; | |
18555 *) # Relative path. | |
18556 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
18557 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
18558 esac | |
18559 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
18560 # absolute. | |
18561 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
18562 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
18563 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
18564 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
18565 | |
18566 | |
18567 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
18568 echo "$as_me: executing $ac_dest commands" >&6;} | |
40056 | 18569 case $ac_dest in |
18570 default ) | |
25897 | 18571 |
18572 ### Make the necessary directories, if they don't exist. | |
18573 for dir in etc lisp ; do | |
18574 test -d ${dir} || mkdir ${dir} | |
18575 done | |
18576 | |
18577 # Build src/Makefile from ${srcdir}/src/Makefile.c | |
18578 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
18579 # This must be done after src/config.h is built, since we rely on that file. | |
18580 | |
18581 # Now get this: Some word that is part of the ${srcdir} directory name | |
18582 # or the ${configuration} value might, just might, happen to be an | |
18583 # identifier like `sun4' or `i386' or something, and be predefined by | |
18584 # the C preprocessor to some helpful value like 1, or maybe the empty | |
18585 # string. Needless to say consequent macro substitutions are less | |
18586 # than conducive to the makefile finding the correct directory. | |
18587 undefs="`echo $top_srcdir $configuration $canonical | | |
18588 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
18589 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
18590 `" | |
18591 | |
18592 echo creating src/epaths.h | |
40256 | 18593 ${MAKE-make} epaths-force |
25897 | 18594 |
33652 | 18595 # As of 2000-11-19, newest development versions of GNU cpp preprocess |
18596 # `..' to `. .' unless invoked with -traditional | |
18597 | |
36354 | 18598 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
33652 | 18599 CPPFLAGS="$CPPFLAGS -traditional" |
18600 fi | |
18601 | |
25897 | 18602 echo creating lib-src/Makefile |
18603 ( cd lib-src | |
18604 rm -f junk.c junk1.c junk2.c | |
18605 sed -e '/start of cpp stuff/q' \ | |
18606 < Makefile.c > junk1.c | |
18607 sed -e '1,/start of cpp stuff/d'\ | |
39239 | 18608 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
25897 | 18609 < Makefile.c > junk.c |
40056 | 18610 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
25897 | 18611 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
18612 cat junk1.c junk2.c > Makefile.new | |
18613 rm -f junk.c junk1.c junk2.c | |
18614 chmod 444 Makefile.new | |
18615 mv -f Makefile.new Makefile | |
18616 ) | |
18617 | |
18618 echo creating src/Makefile | |
18619 ( cd src | |
18620 rm -f junk.c junk1.c junk2.c | |
18621 sed -e '/start of cpp stuff/q' \ | |
18622 < Makefile.c > junk1.c | |
18623 sed -e '1,/start of cpp stuff/d'\ | |
39239 | 18624 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
25897 | 18625 < Makefile.c > junk.c |
40056 | 18626 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
25897 | 18627 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
18628 cat junk1.c junk2.c > Makefile.new | |
18629 rm -f junk.c junk1.c junk2.c | |
18630 chmod 444 Makefile.new | |
18631 mv -f Makefile.new Makefile | |
18632 ) | |
18633 | |
40056 | 18634 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
25897 | 18635 echo creating src/.gdbinit |
40056 | 18636 echo source $srcdir/src/.gdbinit > src/.gdbinit |
25897 | 18637 fi |
18638 | |
18639 # This is how we know whether to re-run configure in certain cases. | |
18640 touch src/config.stamp | |
18641 | |
40056 | 18642 ;; |
18643 esac | |
18644 done | |
44493 | 18645 _ACEOF |
18646 | |
18647 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 18648 |
18649 { (exit 0); exit 0; } | |
44493 | 18650 _ACEOF |
25897 | 18651 chmod +x $CONFIG_STATUS |
40056 | 18652 ac_clean_files=$ac_clean_files_save |
18653 | |
44493 | 18654 |
40056 | 18655 # configure is writing to config.log, and then calls config.status. |
18656 # config.status does its own redirection, appending to config.log. | |
18657 # Unfortunately, on DOS this fails, as config.log is still kept open | |
18658 # by configure, so config.status won't be able to write to it; its | |
18659 # output is simply discarded. So we exec the FD to /dev/null, | |
18660 # effectively closing config.log, so it can be properly (re)opened and | |
18661 # appended to by config.status. When coming back to configure, we | |
18662 # need to make the FD available again. | |
18663 if test "$no_create" != yes; then | |
18664 ac_cs_success=: | |
18665 exec 5>/dev/null | |
18666 $SHELL $CONFIG_STATUS || ac_cs_success=false | |
18667 exec 5>>config.log | |
18668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
18669 # would make configure fail if this is the last instruction. | |
18670 $ac_cs_success || { (exit 1); exit 1; } | |
18671 fi | |
18672 | |
44493 | 18673 |