Mercurial > emacs
annotate configure @ 44919:fcecfcb56e16
Remove OpenLook file dependencies.
(xrdb-cpp.o): Remove target.
Remove unused defines.
author | Pavel Janík <Pavel@Janik.cz> |
---|---|
date | Sun, 28 Apr 2002 13:33:40 +0000 |
parents | 01b93e5e53a7 |
children | 27ae12d5d8e5 |
rev | line source |
---|---|
25897 | 1 #! /bin/sh |
2 # Guess values for system-dependent variables and create Makefiles. | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3 # Generated by GNU Autoconf 2.53a. |
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. | |
44493 | 9 ## --------------------- ## |
10 ## M4sh Initialization. ## | |
11 ## --------------------- ## | |
40056 | 12 |
13 # Be Bourne compatible | |
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
15 emulate sh | |
16 NULLCMD=: | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
18 # is contrary to our usage. Disable this feature. |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
19 alias -g '${1+"$@"}'='"$@"' |
40056 | 20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
21 set -o posix | |
22 fi | |
23 | |
44493 | 24 # NLS nuisances. |
25 # Support unset when possible. | |
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
27 as_unset=unset | |
28 else | |
29 as_unset=false | |
30 fi | |
31 | |
32 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
33 { $as_unset LANG || test "${LANG+set}" != set; } || | |
34 { LANG=C; export LANG; } | |
35 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
36 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
37 { LC_ALL=C; export LC_ALL; } | |
38 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
39 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
40 { LC_TIME=C; export LC_TIME; } | |
41 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
42 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
43 { LC_CTYPE=C; export LC_CTYPE; } | |
44 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
45 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
46 { LANGUAGE=C; export LANGUAGE; } | |
47 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
48 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
49 { LC_COLLATE=C; export LC_COLLATE; } | |
50 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
51 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
52 { LC_NUMERIC=C; export LC_NUMERIC; } | |
53 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
54 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
55 { LC_MESSAGES=C; export LC_MESSAGES; } | |
56 | |
57 | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
58 # Required to use basename. |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
59 if expr a : '\(a\)' >/dev/null 2>&1; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
60 as_expr=expr |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
61 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
62 as_expr=false |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
63 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
64 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
65 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
66 as_basename=basename |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
67 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
68 as_basename=false |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
69 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
70 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
71 |
40056 | 72 # Name of the executable. |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
73 as_me=`$as_basename "$0" || |
44493 | 74 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
75 X"$0" : 'X\(//\)$' \| \ | |
76 X"$0" : 'X\(/\)$' \| \ | |
77 . : '\(.\)' 2>/dev/null || | |
78 echo X/"$0" | | |
79 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
80 /^X\/\(\/\/\)$/{ s//\1/; q; } | |
81 /^X\/\(\/\).*/{ s//\1/; q; } | |
82 s/.*/./; q'` | |
83 | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
84 |
44493 | 85 # PATH needs CR, and LINENO needs CR and PATH. |
86 # Avoid depending upon Character Ranges. | |
87 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
88 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
89 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
90 as_cr_digits='0123456789' | |
91 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
92 | |
93 # The user is always right. | |
94 if test "${PATH_SEPARATOR+set}" != set; then | |
95 echo "#! /bin/sh" >conftest.sh | |
96 echo "exit 0" >>conftest.sh | |
97 chmod +x conftest.sh | |
98 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
99 PATH_SEPARATOR=';' | |
100 else | |
101 PATH_SEPARATOR=: | |
102 fi | |
103 rm -f conftest.sh | |
104 fi | |
105 | |
106 | |
107 as_lineno_1=$LINENO | |
108 as_lineno_2=$LINENO | |
109 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
110 test "x$as_lineno_1" != "x$as_lineno_2" && | |
111 test "x$as_lineno_3" = "x$as_lineno_2" || { | |
112 # Find who we are. Look in the path if we contain no path at all | |
113 # relative or not. | |
114 case $0 in | |
115 *[\\/]* ) as_myself=$0 ;; | |
116 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
117 for as_dir in $PATH | |
118 do | |
119 IFS=$as_save_IFS | |
120 test -z "$as_dir" && as_dir=. | |
121 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
122 done | |
123 | |
124 ;; | |
125 esac | |
126 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
127 # in which case we are not to be found in the path. | |
128 if test "x$as_myself" = x; then | |
129 as_myself=$0 | |
130 fi | |
131 if test ! -f "$as_myself"; then | |
132 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
133 { (exit 1); exit 1; }; } | |
134 fi | |
135 case $CONFIG_SHELL in | |
136 '') | |
137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
138 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
139 do | |
140 IFS=$as_save_IFS | |
141 test -z "$as_dir" && as_dir=. | |
142 for as_base in sh bash ksh sh5; do | |
143 case $as_dir in | |
144 /*) | |
145 if ("$as_dir/$as_base" -c ' | |
146 as_lineno_1=$LINENO | |
147 as_lineno_2=$LINENO | |
148 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
149 test "x$as_lineno_1" != "x$as_lineno_2" && | |
150 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
151 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
152 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
44493 | 153 CONFIG_SHELL=$as_dir/$as_base |
154 export CONFIG_SHELL | |
155 exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
156 fi;; | |
157 esac | |
158 done | |
159 done | |
160 ;; | |
161 esac | |
162 | |
163 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
164 # uniformly replaced by the line number. The first 'sed' inserts a | |
165 # line-number line before each line; the second 'sed' does the real | |
166 # work. The second script uses 'N' to pair each line-number line | |
167 # with the numbered line, and appends trailing '-' during | |
168 # substitution so that $LINENO is not a special case at line end. | |
169 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
170 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
171 sed '=' <$as_myself | | |
172 sed ' | |
173 N | |
174 s,$,-, | |
175 : loop | |
176 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
177 t loop | |
178 s,-$,, | |
179 s,^['$as_cr_digits']*\n,, | |
180 ' >$as_me.lineno && | |
181 chmod +x $as_me.lineno || | |
182 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
183 { (exit 1); exit 1; }; } | |
184 | |
185 # Don't try to exec as it changes $[0], causing all sort of problems | |
186 # (the dirname of $[0] is not the place where we might find the | |
187 # original and so on. Autoconf is especially sensible to this). | |
188 . ./$as_me.lineno | |
189 # Exit status is that of the last command. | |
190 exit | |
191 } | |
192 | |
193 | |
194 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
195 *c*,-n*) ECHO_N= ECHO_C=' | |
196 ' ECHO_T=' ' ;; | |
197 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
198 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
199 esac | |
40056 | 200 |
201 if expr a : '\(a\)' >/dev/null 2>&1; then | |
202 as_expr=expr | |
203 else | |
204 as_expr=false | |
205 fi | |
206 | |
207 rm -f conf$$ conf$$.exe conf$$.file | |
208 echo >conf$$.file | |
209 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
210 # We could just check for DJGPP; but this test a) works b) is more generic | |
211 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
212 if test -f conf$$.exe; then | |
213 # Don't use ln at all; we don't have any links | |
214 as_ln_s='cp -p' | |
215 else | |
216 as_ln_s='ln -s' | |
217 fi | |
218 elif ln conf$$.file conf$$ 2>/dev/null; then | |
219 as_ln_s=ln | |
220 else | |
221 as_ln_s='cp -p' | |
222 fi | |
223 rm -f conf$$ conf$$.exe conf$$.file | |
224 | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
225 if mkdir -p . 2>/dev/null; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
226 as_mkdir_p=: |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
227 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
228 as_mkdir_p=false |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
229 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
230 |
40056 | 231 as_executable_p="test -f" |
232 | |
44493 | 233 # Sed expression to map a string onto a valid CPP name. |
234 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
235 | |
236 # Sed expression to map a string onto a valid variable name. | |
237 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
238 | |
40056 | 239 |
240 # IFS | |
241 # We need space, tab and new line, in precisely that order. | |
242 as_nl=' | |
243 ' | |
244 IFS=" $as_nl" | |
245 | |
246 # CDPATH. | |
44493 | 247 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
248 | |
40056 | 249 |
250 # Name of the host. | |
251 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
252 # so uname gets run too. | |
253 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
254 | |
255 exec 6>&1 | |
256 | |
257 # | |
258 # Initializations. | |
259 # | |
25897 | 260 ac_default_prefix=/usr/local |
40056 | 261 cross_compiling=no |
262 subdirs= | |
44493 | 263 MFLAGS= |
264 MAKEFLAGS= | |
40056 | 265 SHELL=${CONFIG_SHELL-/bin/sh} |
266 | |
267 # Maximum number of lines to put in a shell here document. | |
268 # This variable seems obsolete. It should probably be removed, and | |
269 # only ac_max_sed_lines should be used. | |
270 : ${ac_max_here_lines=38} | |
271 | |
44493 | 272 # Identity of this package. |
273 PACKAGE_NAME= | |
274 PACKAGE_TARNAME= | |
275 PACKAGE_VERSION= | |
276 PACKAGE_STRING= | |
277 PACKAGE_BUGREPORT= | |
278 | |
40056 | 279 ac_unique_file="src/lisp.h" |
280 # Factoring default headers for most tests. | |
281 ac_includes_default="\ | |
282 #include <stdio.h> | |
283 #if HAVE_SYS_TYPES_H | |
284 # include <sys/types.h> | |
285 #endif | |
286 #if HAVE_SYS_STAT_H | |
287 # include <sys/stat.h> | |
288 #endif | |
289 #if STDC_HEADERS | |
290 # include <stdlib.h> | |
291 # include <stddef.h> | |
292 #else | |
293 # if HAVE_STDLIB_H | |
294 # include <stdlib.h> | |
295 # endif | |
296 #endif | |
297 #if HAVE_STRING_H | |
298 # if !STDC_HEADERS && HAVE_MEMORY_H | |
299 # include <memory.h> | |
300 # endif | |
301 # include <string.h> | |
302 #endif | |
303 #if HAVE_STRINGS_H | |
304 # include <strings.h> | |
305 #endif | |
306 #if HAVE_INTTYPES_H | |
307 # include <inttypes.h> | |
308 #else | |
309 # if HAVE_STDINT_H | |
310 # include <stdint.h> | |
311 # endif | |
312 #endif | |
313 #if HAVE_UNISTD_H | |
314 # include <unistd.h> | |
315 #endif" | |
25897 | 316 |
44493 | 317 |
25897 | 318 # Initialize some variables set by options. |
40056 | 319 ac_init_help= |
320 ac_init_version=false | |
25897 | 321 # The variables have the same names as the options, with |
322 # dashes changed to underlines. | |
40056 | 323 cache_file=/dev/null |
25897 | 324 exec_prefix=NONE |
325 no_create= | |
326 no_recursion= | |
327 prefix=NONE | |
328 program_prefix=NONE | |
329 program_suffix=NONE | |
330 program_transform_name=s,x,x, | |
331 silent= | |
332 site= | |
333 srcdir= | |
334 verbose= | |
335 x_includes=NONE | |
336 x_libraries=NONE | |
40056 | 337 |
338 # Installation directory options. | |
339 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
340 # and all the variables that are supposed to be based on exec_prefix | |
341 # by default will actually change. | |
342 # Use braces instead of parens because sh, perl, etc. also accept them. | |
25897 | 343 bindir='${exec_prefix}/bin' |
344 sbindir='${exec_prefix}/sbin' | |
345 libexecdir='${exec_prefix}/libexec' | |
346 datadir='${prefix}/share' | |
347 sysconfdir='${prefix}/etc' | |
348 sharedstatedir='${prefix}/com' | |
349 localstatedir='${prefix}/var' | |
350 libdir='${exec_prefix}/lib' | |
351 includedir='${prefix}/include' | |
352 oldincludedir='/usr/include' | |
353 infodir='${prefix}/info' | |
354 mandir='${prefix}/man' | |
355 | |
356 ac_prev= | |
357 for ac_option | |
358 do | |
359 # If the previous option needs an argument, assign it. | |
360 if test -n "$ac_prev"; then | |
361 eval "$ac_prev=\$ac_option" | |
362 ac_prev= | |
363 continue | |
364 fi | |
365 | |
40056 | 366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
25897 | 367 |
368 # Accept the important Cygnus configure options, so we can diagnose typos. | |
369 | |
40056 | 370 case $ac_option in |
25897 | 371 |
372 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
373 ac_prev=bindir ;; | |
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
40056 | 375 bindir=$ac_optarg ;; |
25897 | 376 |
377 -build | --build | --buil | --bui | --bu) | |
40056 | 378 ac_prev=build_alias ;; |
25897 | 379 -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
40056 | 380 build_alias=$ac_optarg ;; |
25897 | 381 |
382 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
384 ac_prev=cache_file ;; | |
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
40056 | 387 cache_file=$ac_optarg ;; |
388 | |
389 --config-cache | -C) | |
390 cache_file=config.cache ;; | |
25897 | 391 |
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
393 ac_prev=datadir ;; | |
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
395 | --da=*) | |
40056 | 396 datadir=$ac_optarg ;; |
25897 | 397 |
398 -disable-* | --disable-*) | |
40056 | 399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
25897 | 400 # Reject names that are not valid shell variable names. |
40056 | 401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
403 { (exit 1); exit 1; }; } | |
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
405 eval "enable_$ac_feature=no" ;; | |
25897 | 406 |
407 -enable-* | --enable-*) | |
40056 | 408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
25897 | 409 # Reject names that are not valid shell variable names. |
40056 | 410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
412 { (exit 1); exit 1; }; } | |
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
414 case $ac_option in | |
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
25897 | 416 *) ac_optarg=yes ;; |
417 esac | |
40056 | 418 eval "enable_$ac_feature='$ac_optarg'" ;; |
25897 | 419 |
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
422 | --exec | --exe | --ex) | |
423 ac_prev=exec_prefix ;; | |
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
426 | --exec=* | --exe=* | --ex=*) | |
40056 | 427 exec_prefix=$ac_optarg ;; |
25897 | 428 |
429 -gas | --gas | --ga | --g) | |
430 # Obsolete; use --with-gas. | |
431 with_gas=yes ;; | |
432 | |
40056 | 433 -help | --help | --hel | --he | -h) |
434 ac_init_help=long ;; | |
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
436 ac_init_help=recursive ;; | |
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
438 ac_init_help=short ;; | |
25897 | 439 |
440 -host | --host | --hos | --ho) | |
40056 | 441 ac_prev=host_alias ;; |
25897 | 442 -host=* | --host=* | --hos=* | --ho=*) |
40056 | 443 host_alias=$ac_optarg ;; |
25897 | 444 |
445 -includedir | --includedir | --includedi | --included | --include \ | |
446 | --includ | --inclu | --incl | --inc) | |
447 ac_prev=includedir ;; | |
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
449 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
40056 | 450 includedir=$ac_optarg ;; |
25897 | 451 |
452 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
453 ac_prev=infodir ;; | |
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
40056 | 455 infodir=$ac_optarg ;; |
25897 | 456 |
457 -libdir | --libdir | --libdi | --libd) | |
458 ac_prev=libdir ;; | |
459 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
40056 | 460 libdir=$ac_optarg ;; |
25897 | 461 |
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
463 | --libexe | --libex | --libe) | |
464 ac_prev=libexecdir ;; | |
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
466 | --libexe=* | --libex=* | --libe=*) | |
40056 | 467 libexecdir=$ac_optarg ;; |
25897 | 468 |
469 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
470 | --localstate | --localstat | --localsta | --localst \ | |
471 | --locals | --local | --loca | --loc | --lo) | |
472 ac_prev=localstatedir ;; | |
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
40056 | 476 localstatedir=$ac_optarg ;; |
25897 | 477 |
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
479 ac_prev=mandir ;; | |
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
40056 | 481 mandir=$ac_optarg ;; |
25897 | 482 |
483 -nfp | --nfp | --nf) | |
484 # Obsolete; use --without-fp. | |
485 with_fp=no ;; | |
486 | |
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
44493 | 488 | --no-cr | --no-c | -n) |
25897 | 489 no_create=yes ;; |
490 | |
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
493 no_recursion=yes ;; | |
494 | |
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
497 | --oldin | --oldi | --old | --ol | --o) | |
498 ac_prev=oldincludedir ;; | |
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
40056 | 502 oldincludedir=$ac_optarg ;; |
25897 | 503 |
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
505 ac_prev=prefix ;; | |
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
40056 | 507 prefix=$ac_optarg ;; |
25897 | 508 |
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
510 | --program-pre | --program-pr | --program-p) | |
511 ac_prev=program_prefix ;; | |
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
40056 | 514 program_prefix=$ac_optarg ;; |
25897 | 515 |
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
517 | --program-suf | --program-su | --program-s) | |
518 ac_prev=program_suffix ;; | |
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
40056 | 521 program_suffix=$ac_optarg ;; |
25897 | 522 |
523 -program-transform-name | --program-transform-name \ | |
524 | --program-transform-nam | --program-transform-na \ | |
525 | --program-transform-n | --program-transform- \ | |
526 | --program-transform | --program-transfor \ | |
527 | --program-transfo | --program-transf \ | |
528 | --program-trans | --program-tran \ | |
529 | --progr-tra | --program-tr | --program-t) | |
530 ac_prev=program_transform_name ;; | |
531 -program-transform-name=* | --program-transform-name=* \ | |
532 | --program-transform-nam=* | --program-transform-na=* \ | |
533 | --program-transform-n=* | --program-transform-=* \ | |
534 | --program-transform=* | --program-transfor=* \ | |
535 | --program-transfo=* | --program-transf=* \ | |
536 | --program-trans=* | --program-tran=* \ | |
537 | --progr-tra=* | --program-tr=* | --program-t=*) | |
40056 | 538 program_transform_name=$ac_optarg ;; |
25897 | 539 |
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
541 | -silent | --silent | --silen | --sile | --sil) | |
542 silent=yes ;; | |
543 | |
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
545 ac_prev=sbindir ;; | |
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
547 | --sbi=* | --sb=*) | |
40056 | 548 sbindir=$ac_optarg ;; |
25897 | 549 |
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
552 | --sharedst | --shareds | --shared | --share | --shar \ | |
553 | --sha | --sh) | |
554 ac_prev=sharedstatedir ;; | |
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
558 | --sha=* | --sh=*) | |
40056 | 559 sharedstatedir=$ac_optarg ;; |
25897 | 560 |
561 -site | --site | --sit) | |
562 ac_prev=site ;; | |
563 -site=* | --site=* | --sit=*) | |
40056 | 564 site=$ac_optarg ;; |
25897 | 565 |
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
567 ac_prev=srcdir ;; | |
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
40056 | 569 srcdir=$ac_optarg ;; |
25897 | 570 |
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
572 | --syscon | --sysco | --sysc | --sys | --sy) | |
573 ac_prev=sysconfdir ;; | |
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
40056 | 576 sysconfdir=$ac_optarg ;; |
25897 | 577 |
578 -target | --target | --targe | --targ | --tar | --ta | --t) | |
40056 | 579 ac_prev=target_alias ;; |
25897 | 580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
40056 | 581 target_alias=$ac_optarg ;; |
25897 | 582 |
583 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
584 verbose=yes ;; | |
585 | |
40056 | 586 -version | --version | --versio | --versi | --vers | -V) |
587 ac_init_version=: ;; | |
25897 | 588 |
589 -with-* | --with-*) | |
40056 | 590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
25897 | 591 # Reject names that are not valid shell variable names. |
40056 | 592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
593 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
594 { (exit 1); exit 1; }; } | |
25897 | 595 ac_package=`echo $ac_package| sed 's/-/_/g'` |
40056 | 596 case $ac_option in |
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
25897 | 598 *) ac_optarg=yes ;; |
599 esac | |
40056 | 600 eval "with_$ac_package='$ac_optarg'" ;; |
25897 | 601 |
602 -without-* | --without-*) | |
40056 | 603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
25897 | 604 # Reject names that are not valid shell variable names. |
40056 | 605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
606 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
607 { (exit 1); exit 1; }; } | |
608 ac_package=`echo $ac_package | sed 's/-/_/g'` | |
609 eval "with_$ac_package=no" ;; | |
25897 | 610 |
611 --x) | |
612 # Obsolete; use --with-x. | |
613 with_x=yes ;; | |
614 | |
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
616 | --x-incl | --x-inc | --x-in | --x-i) | |
617 ac_prev=x_includes ;; | |
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
40056 | 620 x_includes=$ac_optarg ;; |
25897 | 621 |
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
624 ac_prev=x_libraries ;; | |
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
40056 | 627 x_libraries=$ac_optarg ;; |
628 | |
629 -*) { echo "$as_me: error: unrecognized option: $ac_option | |
630 Try \`$0 --help' for more information." >&2 | |
631 { (exit 1); exit 1; }; } | |
25897 | 632 ;; |
633 | |
40056 | 634 *=*) |
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
636 # Reject names that are not valid shell variable names. | |
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
639 { (exit 1); exit 1; }; } | |
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
641 eval "$ac_envvar='$ac_optarg'" | |
642 export $ac_envvar ;; | |
643 | |
25897 | 644 *) |
40056 | 645 # FIXME: should be removed in autoconf 3.0. |
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
25897 | 650 ;; |
651 | |
652 esac | |
653 done | |
654 | |
655 if test -n "$ac_prev"; then | |
40056 | 656 ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
657 { echo "$as_me: error: missing argument to $ac_option" >&2 | |
658 { (exit 1); exit 1; }; } | |
659 fi | |
660 | |
661 # Be sure to have absolute paths. | |
662 for ac_var in exec_prefix prefix | |
25897 | 663 do |
40056 | 664 eval ac_val=$`echo $ac_var` |
665 case $ac_val in | |
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
44493 | 667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
40056 | 668 { (exit 1); exit 1; }; };; |
25897 | 669 esac |
670 done | |
671 | |
40056 | 672 # Be sure to have absolute paths. |
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
674 localstatedir libdir includedir oldincludedir infodir mandir | |
675 do | |
676 eval ac_val=$`echo $ac_var` | |
677 case $ac_val in | |
678 [\\/$]* | ?:[\\/]* ) ;; | |
44493 | 679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
40056 | 680 { (exit 1); exit 1; }; };; |
681 esac | |
682 done | |
683 | |
684 # There might be people who depend on the old broken behavior: `$host' | |
685 # used to hold the argument of --host etc. | |
44493 | 686 # FIXME: To remove some day. |
40056 | 687 build=$build_alias |
688 host=$host_alias | |
689 target=$target_alias | |
690 | |
44493 | 691 # FIXME: To remove some day. |
40056 | 692 if test "x$host_alias" != x; then |
693 if test "x$build_alias" = x; then | |
694 cross_compiling=maybe | |
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
696 If a cross compiler is detected then cross compile mode will be used." >&2 | |
697 elif test "x$build_alias" != "x$host_alias"; then | |
698 cross_compiling=yes | |
699 fi | |
700 fi | |
701 | |
702 ac_tool_prefix= | |
703 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
704 | |
705 test "$silent" = yes && exec 6>/dev/null | |
25897 | 706 |
44493 | 707 |
25897 | 708 # Find the source files, if location was not specified. |
709 if test -z "$srcdir"; then | |
710 ac_srcdir_defaulted=yes | |
711 # Try the directory containing this script, then its parent. | |
44493 | 712 ac_confdir=`(dirname "$0") 2>/dev/null || |
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
714 X"$0" : 'X\(//\)[^/]' \| \ | |
715 X"$0" : 'X\(//\)$' \| \ | |
716 X"$0" : 'X\(/\)' \| \ | |
717 . : '\(.\)' 2>/dev/null || | |
718 echo X"$0" | | |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
721 /^X\(\/\/\)$/{ s//\1/; q; } | |
722 /^X\(\/\).*/{ s//\1/; q; } | |
723 s/.*/./; q'` | |
25897 | 724 srcdir=$ac_confdir |
725 if test ! -r $srcdir/$ac_unique_file; then | |
726 srcdir=.. | |
727 fi | |
728 else | |
729 ac_srcdir_defaulted=no | |
730 fi | |
731 if test ! -r $srcdir/$ac_unique_file; then | |
732 if test "$ac_srcdir_defaulted" = yes; then | |
44493 | 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
40056 | 734 { (exit 1); exit 1; }; } |
25897 | 735 else |
44493 | 736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
40056 | 737 { (exit 1); exit 1; }; } |
738 fi | |
739 fi | |
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
741 ac_env_build_alias_set=${build_alias+set} | |
742 ac_env_build_alias_value=$build_alias | |
743 ac_cv_env_build_alias_set=${build_alias+set} | |
744 ac_cv_env_build_alias_value=$build_alias | |
745 ac_env_host_alias_set=${host_alias+set} | |
746 ac_env_host_alias_value=$host_alias | |
747 ac_cv_env_host_alias_set=${host_alias+set} | |
748 ac_cv_env_host_alias_value=$host_alias | |
749 ac_env_target_alias_set=${target_alias+set} | |
750 ac_env_target_alias_value=$target_alias | |
751 ac_cv_env_target_alias_set=${target_alias+set} | |
752 ac_cv_env_target_alias_value=$target_alias | |
753 ac_env_CC_set=${CC+set} | |
754 ac_env_CC_value=$CC | |
755 ac_cv_env_CC_set=${CC+set} | |
756 ac_cv_env_CC_value=$CC | |
757 ac_env_CFLAGS_set=${CFLAGS+set} | |
758 ac_env_CFLAGS_value=$CFLAGS | |
759 ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 ac_cv_env_CFLAGS_value=$CFLAGS | |
761 ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 ac_env_LDFLAGS_value=$LDFLAGS | |
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 ac_env_CPP_set=${CPP+set} | |
770 ac_env_CPP_value=$CPP | |
771 ac_cv_env_CPP_set=${CPP+set} | |
772 ac_cv_env_CPP_value=$CPP | |
773 | |
774 # | |
775 # Report the --help message. | |
776 # | |
777 if test "$ac_init_help" = "long"; then | |
778 # Omit some internal or obsolete options to make the list less imposing. | |
779 # This message is too long to be a string in the A/UX 3.1 sh. | |
44493 | 780 cat <<_ACEOF |
40056 | 781 \`configure' configures this package to adapt to many kinds of systems. |
782 | |
783 Usage: $0 [OPTION]... [VAR=VALUE]... | |
784 | |
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
786 VAR=VALUE. See below for descriptions of some of the useful variables. | |
787 | |
788 Defaults for the options are specified in brackets. | |
789 | |
790 Configuration: | |
791 -h, --help display this help and exit | |
792 --help=short display options specific to this package | |
793 --help=recursive display the short help of all the included packages | |
794 -V, --version display version information and exit | |
795 -q, --quiet, --silent do not print \`checking...' messages | |
796 --cache-file=FILE cache test results in FILE [disabled] | |
797 -C, --config-cache alias for \`--cache-file=config.cache' | |
798 -n, --no-create do not create output files | |
799 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
800 | |
44493 | 801 _ACEOF |
802 | |
803 cat <<_ACEOF | |
40056 | 804 Installation directories: |
805 --prefix=PREFIX install architecture-independent files in PREFIX | |
806 [$ac_default_prefix] | |
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
808 [PREFIX] | |
809 | |
810 By default, \`make install' will install all the files in | |
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
813 for instance \`--prefix=\$HOME'. | |
814 | |
815 For better control, use the options below. | |
816 | |
817 Fine tuning of the installation directories: | |
818 --bindir=DIR user executables [EPREFIX/bin] | |
819 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
820 --libexecdir=DIR program executables [EPREFIX/libexec] | |
821 --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
825 --libdir=DIR object code libraries [EPREFIX/lib] | |
826 --includedir=DIR C header files [PREFIX/include] | |
827 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
828 --infodir=DIR info documentation [PREFIX/info] | |
829 --mandir=DIR man documentation [PREFIX/man] | |
44493 | 830 _ACEOF |
831 | |
832 cat <<\_ACEOF | |
40056 | 833 |
41100 | 834 Program names: |
835 --program-prefix=PREFIX prepend PREFIX to installed program names | |
836 --program-suffix=SUFFIX append SUFFIX to installed program names | |
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
838 | |
40056 | 839 X features: |
840 --x-includes=DIR X include files are in DIR | |
841 --x-libraries=DIR X library files are in DIR | |
842 | |
843 System types: | |
844 --build=BUILD configure for building on BUILD [guessed] | |
44493 | 845 --host=HOST cross-compile to build programs to run on HOST [BUILD] |
846 _ACEOF | |
40056 | 847 fi |
848 | |
849 if test -n "$ac_init_help"; then | |
850 | |
44493 | 851 cat <<\_ACEOF |
40056 | 852 |
853 Optional Features: | |
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
856 --disable-largefile omit support for large files | |
857 | |
858 Optional Packages: | |
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
44493 | 861 --with-game-dir use a shared game directory if possible |
44809 | 862 --with-game-user use specified user for game directory |
40056 | 863 --without-gcc don't use GCC to compile Emacs if GCC is found |
864 --without-pop don't support POP mail retrieval with movemail | |
865 --with-kerberos support Kerberos-authenticated POP | |
866 --with-kerberos5 support Kerberos version 5 authenticated POP | |
867 --with-hesiod support Hesiod to get the POP server host | |
44435 | 868 --without-sound don't compile with sound support |
40056 | 869 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no) |
870 --with-xpm use -lXpm for displaying XPM images | |
871 --with-jpeg use -ljpeg for displaying JPEG images | |
872 --with-tiff use -ltiff for displaying TIFF images | |
873 --with-gif use -lungif for displaying GIF images | |
874 --with-png use -lpng for displaying PNG images | |
875 --without-toolkit-scroll-bars | |
40632 | 876 don't use Motif or Xaw3d scroll bars |
877 --without-xim don't use X11 XIM | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
878 --without-carbon don't use Carbon GUI on Mac OS X |
40056 | 879 --with-x use the X Window System |
880 | |
881 Some influential environment variables: | |
882 CC C compiler command | |
883 CFLAGS C compiler flags | |
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
885 nonstandard directory <lib dir> | |
886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
887 headers in a nonstandard directory <include dir> | |
888 CPP C preprocessor | |
889 | |
890 Use these variables to override the choices made by `configure' or to help | |
891 it to find libraries and programs with nonstandard names/locations. | |
892 | |
44493 | 893 _ACEOF |
40056 | 894 fi |
895 | |
896 if test "$ac_init_help" = "recursive"; then | |
897 # If there are subdirs, report their specific --help. | |
898 ac_popdir=`pwd` | |
44493 | 899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
900 test -d $ac_dir || continue | |
901 ac_builddir=. | |
902 | |
903 if test "$ac_dir" != .; then | |
904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
905 # A "../" for each directory in $ac_dir_suffix. | |
906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
907 else | |
908 ac_dir_suffix= ac_top_builddir= | |
909 fi | |
910 | |
911 case $srcdir in | |
912 .) # No --srcdir option. We are building in place. | |
913 ac_srcdir=. | |
914 if test -z "$ac_top_builddir"; then | |
915 ac_top_srcdir=. | |
916 else | |
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
918 fi ;; | |
919 [\\/]* | ?:[\\/]* ) # Absolute path. | |
920 ac_srcdir=$srcdir$ac_dir_suffix; | |
921 ac_top_srcdir=$srcdir ;; | |
922 *) # Relative path. | |
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
924 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
925 esac | |
926 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
927 # absolute. | |
928 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
44569 | 929 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
44493 | 930 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
931 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
932 | |
933 cd $ac_dir | |
40056 | 934 # Check for guested configure; otherwise get Cygnus style configure. |
44493 | 935 if test -f $ac_srcdir/configure.gnu; then |
40056 | 936 echo |
44493 | 937 $SHELL $ac_srcdir/configure.gnu --help=recursive |
938 elif test -f $ac_srcdir/configure; then | |
40056 | 939 echo |
44493 | 940 $SHELL $ac_srcdir/configure --help=recursive |
941 elif test -f $ac_srcdir/configure.ac || | |
942 test -f $ac_srcdir/configure.in; then | |
40056 | 943 echo |
944 $ac_configure --help | |
945 else | |
44493 | 946 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
40056 | 947 fi |
948 cd $ac_popdir | |
949 done | |
950 fi | |
951 | |
952 test -n "$ac_init_help" && exit 0 | |
953 if $ac_init_version; then | |
44493 | 954 cat <<\_ACEOF |
955 | |
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
40056 | 957 Free Software Foundation, Inc. |
958 This configure script is free software; the Free Software Foundation | |
959 gives unlimited permission to copy, distribute and modify it. | |
44493 | 960 _ACEOF |
40056 | 961 exit 0 |
962 fi | |
963 exec 5>config.log | |
44493 | 964 cat >&5 <<_ACEOF |
40056 | 965 This file contains any messages produced by compilers while |
966 running configure, to aid debugging if configure makes a mistake. | |
967 | |
968 It was created by $as_me, which was | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
969 generated by GNU Autoconf 2.53a. Invocation command line was |
40056 | 970 |
971 $ $0 $@ | |
972 | |
44493 | 973 _ACEOF |
40056 | 974 { |
975 cat <<_ASUNAME | |
44493 | 976 ## --------- ## |
977 ## Platform. ## | |
978 ## --------- ## | |
40056 | 979 |
980 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
981 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
982 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
983 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
984 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
985 | |
986 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
987 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
988 | |
989 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
990 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
991 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
992 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
993 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
994 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
995 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
996 | |
997 _ASUNAME | |
44493 | 998 |
999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1000 for as_dir in $PATH | |
1001 do | |
1002 IFS=$as_save_IFS | |
1003 test -z "$as_dir" && as_dir=. | |
1004 echo "PATH: $as_dir" | |
1005 done | |
1006 | |
40056 | 1007 } >&5 |
1008 | |
44493 | 1009 cat >&5 <<_ACEOF |
1010 | |
1011 | |
1012 ## ----------- ## | |
1013 ## Core tests. ## | |
1014 ## ----------- ## | |
1015 | |
1016 _ACEOF | |
1017 | |
40056 | 1018 |
1019 # Keep a trace of the command line. | |
1020 # Strip out --no-create and --no-recursion so they do not pile up. | |
1021 # Also quote any args containing shell meta-characters. | |
1022 ac_configure_args= | |
1023 ac_sep= | |
1024 for ac_arg | |
1025 do | |
1026 case $ac_arg in | |
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
44493 | 1028 | --no-cr | --no-c | -n ) continue ;; |
40056 | 1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
44493 | 1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1031 continue ;; | |
40056 | 1032 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
44493 | 1033 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1034 esac | |
1035 case " $ac_configure_args " in | |
1036 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1037 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1038 ac_sep=" " ;; | |
40056 | 1039 esac |
1040 # Get rid of the leading space. | |
1041 done | |
1042 | |
1043 # When interrupted or exit'd, cleanup temporary files, and complete | |
1044 # config.log. We remove comments because anyway the quotes in there | |
1045 # would cause problems or look ugly. | |
44493 | 1046 # WARNING: Be sure not to use single quotes in there, as some shells, |
1047 # such as our DU 5.0 friend, will then `close' the trap. | |
40056 | 1048 trap 'exit_status=$? |
1049 # Save into config.log some information that might help in debugging. | |
44493 | 1050 { |
1051 echo | |
1052 cat <<\_ASBOX | |
1053 ## ---------------- ## | |
1054 ## Cache variables. ## | |
1055 ## ---------------- ## | |
1056 _ASBOX | |
1057 echo | |
1058 # The following way of writing the cache mishandles newlines in values, | |
40056 | 1059 { |
1060 (set) 2>&1 | | |
1061 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1062 *ac_space=\ *) | |
1063 sed -n \ | |
1064 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1066 ;; | |
1067 *) | |
1068 sed -n \ | |
1069 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1070 ;; | |
1071 esac; | |
44493 | 1072 } |
1073 echo | |
1074 if test -s confdefs.h; then | |
1075 cat <<\_ASBOX | |
1076 ## ----------- ## | |
1077 ## confdefs.h. ## | |
1078 ## ----------- ## | |
1079 _ASBOX | |
1080 echo | |
1081 sed "/^$/d" confdefs.h | |
1082 echo | |
1083 fi | |
1084 test "$ac_signal" != 0 && | |
1085 echo "$as_me: caught signal $ac_signal" | |
1086 echo "$as_me: exit $exit_status" | |
1087 } >&5 | |
1088 rm -f core core.* *.core && | |
1089 rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
40056 | 1090 exit $exit_status |
1091 ' 0 | |
1092 for ac_signal in 1 2 13 15; do | |
1093 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1094 done | |
1095 ac_signal=0 | |
1096 | |
1097 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1098 rm -rf conftest* confdefs.h | |
1099 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1100 echo >confdefs.h | |
1101 | |
44493 | 1102 # Predefined preprocessor variables. |
1103 | |
1104 cat >>confdefs.h <<_ACEOF | |
1105 #define PACKAGE_NAME "$PACKAGE_NAME" | |
1106 _ACEOF | |
1107 | |
1108 | |
1109 cat >>confdefs.h <<_ACEOF | |
1110 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1111 _ACEOF | |
1112 | |
1113 | |
1114 cat >>confdefs.h <<_ACEOF | |
1115 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1116 _ACEOF | |
1117 | |
1118 | |
1119 cat >>confdefs.h <<_ACEOF | |
1120 #define PACKAGE_STRING "$PACKAGE_STRING" | |
1121 _ACEOF | |
1122 | |
1123 | |
1124 cat >>confdefs.h <<_ACEOF | |
1125 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1126 _ACEOF | |
1127 | |
1128 | |
40056 | 1129 # Let the site file select an alternate cache file if it wants to. |
25897 | 1130 # Prefer explicitly selected file to automatically selected ones. |
1131 if test -z "$CONFIG_SITE"; then | |
1132 if test "x$prefix" != xNONE; then | |
1133 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1134 else | |
1135 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1136 fi | |
1137 fi | |
1138 for ac_site_file in $CONFIG_SITE; do | |
1139 if test -r "$ac_site_file"; then | |
44493 | 1140 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
40056 | 1141 echo "$as_me: loading site script $ac_site_file" >&6;} |
44493 | 1142 sed 's/^/| /' "$ac_site_file" >&5 |
25897 | 1143 . "$ac_site_file" |
1144 fi | |
1145 done | |
1146 | |
1147 if test -r "$cache_file"; then | |
40056 | 1148 # Some versions of bash will fail to source /dev/null (special |
1149 # files actually), so we avoid doing that. | |
1150 if test -f "$cache_file"; then | |
44493 | 1151 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
40056 | 1152 echo "$as_me: loading cache $cache_file" >&6;} |
1153 case $cache_file in | |
1154 [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1155 *) . ./$cache_file;; | |
1156 esac | |
1157 fi | |
1158 else | |
44493 | 1159 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
40056 | 1160 echo "$as_me: creating cache $cache_file" >&6;} |
1161 >$cache_file | |
1162 fi | |
1163 | |
1164 # Check that the precious variables saved in the cache have kept the same | |
1165 # value. | |
1166 ac_cache_corrupted=false | |
1167 for ac_var in `(set) 2>&1 | | |
1168 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1169 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1170 eval ac_new_set=\$ac_env_${ac_var}_set | |
1171 eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1172 eval ac_new_val="\$ac_env_${ac_var}_value" | |
1173 case $ac_old_set,$ac_new_set in | |
1174 set,) | |
44493 | 1175 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
40056 | 1176 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1177 ac_cache_corrupted=: ;; | |
1178 ,set) | |
44493 | 1179 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
40056 | 1180 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1181 ac_cache_corrupted=: ;; | |
1182 ,);; | |
1183 *) | |
1184 if test "x$ac_old_val" != "x$ac_new_val"; then | |
44493 | 1185 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
40056 | 1186 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
44493 | 1187 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
40056 | 1188 echo "$as_me: former value: $ac_old_val" >&2;} |
44493 | 1189 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
40056 | 1190 echo "$as_me: current value: $ac_new_val" >&2;} |
1191 ac_cache_corrupted=: | |
1192 fi;; | |
1193 esac | |
44493 | 1194 # Pass precious variables to config.status. |
40056 | 1195 if test "$ac_new_set" = set; then |
1196 case $ac_new_val in | |
1197 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
44493 | 1198 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1199 *) ac_arg=$ac_var=$ac_new_val ;; | |
1200 esac | |
1201 case " $ac_configure_args " in | |
1202 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1203 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
40056 | 1204 esac |
1205 fi | |
1206 done | |
1207 if $ac_cache_corrupted; then | |
44493 | 1208 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
40056 | 1209 echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
44493 | 1210 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
40056 | 1211 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1212 { (exit 1); exit 1; }; } | |
25897 | 1213 fi |
1214 | |
1215 ac_ext=c | |
1216 ac_cpp='$CPP $CPPFLAGS' | |
40056 | 1217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1219 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1220 | |
44493 | 1221 |
1222 | |
1223 | |
1224 | |
1225 | |
1226 | |
1227 | |
1228 | |
1229 | |
1230 | |
1231 | |
1232 | |
1233 | |
1234 | |
1235 | |
1236 | |
40056 | 1237 |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1238 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1239 ac_config_headers="$ac_config_headers src/config.h:src/config.in" |
25897 | 1240 |
44493 | 1241 |
41100 | 1242 test "$program_prefix" != NONE && |
1243 program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1244 # Use a double $ so make ignores it. | |
1245 test "$program_suffix" != NONE && | |
1246 program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1247 # Double any \ or $. echo might interpret backslashes. | |
1248 # By default was `s,x,x', remove it if useless. | |
1249 cat <<\_ACEOF >conftest.sed | |
1250 s/[\\$]/&&/g;s/;s,x,x,$// | |
1251 _ACEOF | |
1252 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1253 rm conftest.sed | |
1254 | |
44493 | 1255 |
25897 | 1256 lispdir='${datadir}/emacs/${version}/lisp' |
1257 locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
1258 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
1259 lisppath='${locallisppath}:${lispdir}' | |
1260 etcdir='${datadir}/emacs/${version}/etc' | |
1261 archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
1262 docdir='${datadir}/emacs/${version}/etc' | |
44493 | 1263 gamedir=yes |
1264 | |
1265 | |
1266 # Check whether --with-game-dir or --without-game-dir was given. | |
1267 if test "${with_game_dir+set}" = set; then | |
1268 withval="$with_game_dir" | |
1269 if test "$withval" = yes; then | |
1270 gamedir="${localstatedir}/games/emacs" | |
1271 else | |
1272 if test "$withval" = no; then | |
1273 gamedir=no | |
1274 else | |
1275 gamedir="$withval" | |
1276 fi | |
1277 fi | |
1278 | |
1279 fi; | |
1280 | |
1281 gameuser=games | |
1282 | |
1283 # Check whether --with-game-user or --without-game-user was given. | |
1284 if test "${with_game_user+set}" = set; then | |
1285 withval="$with_game_user" | |
1286 gameuser="$withval" | |
1287 fi; | |
1288 | |
25897 | 1289 |
1290 # Check whether --with-gcc or --without-gcc was given. | |
1291 if test "${with_gcc+set}" = set; then | |
1292 withval="$with_gcc" | |
40056 | 1293 |
1294 fi; | |
25897 | 1295 |
1296 # Check whether --with-pop or --without-pop was given. | |
1297 if test "${with_pop+set}" = set; then | |
1298 withval="$with_pop" | |
25994 | 1299 if test "$withval" = yes; then |
44493 | 1300 cat >>confdefs.h <<\_ACEOF |
25897 | 1301 #define MAIL_USE_POP 1 |
44493 | 1302 _ACEOF |
25897 | 1303 |
25994 | 1304 else : |
1305 fi | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1306 else |
44493 | 1307 cat >>confdefs.h <<\_ACEOF |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1308 #define MAIL_USE_POP 1 |
44493 | 1309 _ACEOF |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1310 |
40056 | 1311 fi; |
25897 | 1312 |
44569 | 1313 |
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
|
1314 # 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
|
1315 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
|
1316 withval="$with_kerberos" |
44493 | 1317 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
|
1318 #define KERBEROS 1 |
44493 | 1319 _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
|
1320 |
40056 | 1321 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
|
1322 |
44569 | 1323 |
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
|
1324 # 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
|
1325 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
|
1326 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
|
1327 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
|
1328 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
|
1329 with_kerberos=yes |
44493 | 1330 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
|
1331 #define KERBEROS 1 |
44493 | 1332 _ACEOF |
1333 | |
1334 fi | |
1335 fi | |
44569 | 1336 |
44493 | 1337 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
|
1338 #define KERBEROS5 1 |
44493 | 1339 _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
|
1340 |
40056 | 1341 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
|
1342 |
25897 | 1343 # Check whether --with-hesiod or --without-hesiod was given. |
1344 if test "${with_hesiod+set}" = set; then | |
1345 withval="$with_hesiod" | |
44569 | 1346 |
1347 cat >>confdefs.h <<\_ACEOF | |
25897 | 1348 #define HESIOD 1 |
44493 | 1349 _ACEOF |
25897 | 1350 |
40056 | 1351 fi; |
25897 | 1352 |
44493 | 1353 |
44435 | 1354 # Check whether --with-sound or --without-sound was given. |
1355 if test "${with_sound+set}" = set; then | |
1356 withval="$with_sound" | |
1357 | |
1358 fi; | |
1359 | |
44493 | 1360 |
25897 | 1361 # Check whether --with-x-toolkit or --without-x-toolkit was given. |
1362 if test "${with_x_toolkit+set}" = set; then | |
1363 withval="$with_x_toolkit" | |
1364 case "${withval}" in | |
1365 y | ye | yes ) val=athena ;; | |
1366 n | no ) val=no ;; | |
1367 l | lu | luc | luci | lucid ) val=lucid ;; | |
1368 a | at | ath | athe | athen | athena ) val=athena ;; | |
1369 m | mo | mot | moti | motif ) val=motif ;; | |
1370 * ) | |
44493 | 1371 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\; |
25897 | 1372 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. |
40056 | 1373 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 |
1374 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; | |
1375 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | |
1376 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} | |
1377 { (exit 1); exit 1; }; } | |
25897 | 1378 ;; |
1379 esac | |
1380 with_x_toolkit=$val | |
1381 | |
40056 | 1382 fi; |
25897 | 1383 |
1384 # Check whether --with-xpm or --without-xpm was given. | |
1385 if test "${with_xpm+set}" = set; then | |
1386 withval="$with_xpm" | |
40056 | 1387 |
1388 fi; | |
25897 | 1389 |
1390 # Check whether --with-jpeg or --without-jpeg was given. | |
1391 if test "${with_jpeg+set}" = set; then | |
1392 withval="$with_jpeg" | |
40056 | 1393 |
1394 fi; | |
25897 | 1395 |
1396 # Check whether --with-tiff or --without-tiff was given. | |
1397 if test "${with_tiff+set}" = set; then | |
1398 withval="$with_tiff" | |
40056 | 1399 |
1400 fi; | |
25897 | 1401 |
1402 # Check whether --with-gif or --without-gif was given. | |
1403 if test "${with_gif+set}" = set; then | |
1404 withval="$with_gif" | |
40056 | 1405 |
1406 fi; | |
25897 | 1407 |
1408 # Check whether --with-png or --without-png was given. | |
1409 if test "${with_png+set}" = set; then | |
1410 withval="$with_png" | |
40056 | 1411 |
1412 fi; | |
25897 | 1413 |
1414 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. | |
1415 if test "${with_toolkit_scroll_bars+set}" = set; then | |
1416 withval="$with_toolkit_scroll_bars" | |
40056 | 1417 |
1418 fi; | |
25897 | 1419 |
29949 | 1420 # Check whether --with-xim or --without-xim was given. |
1421 if test "${with_xim+set}" = set; then | |
1422 withval="$with_xim" | |
40056 | 1423 |
1424 fi; | |
25897 | 1425 |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1426 # Check whether --with-carbon or --without-carbon was given. |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1427 if test "${with_carbon+set}" = set; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1428 withval="$with_carbon" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1429 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1430 fi; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1431 |
25897 | 1432 #### Make srcdir absolute, if it isn't already. It's important to |
31153 | 1433 #### avoid running the path through pwd unnecessarily, since pwd can |
25897 | 1434 #### give you automounter prefixes, which can go away. We do all this |
1435 #### so Emacs can find its files when run uninstalled. | |
31153 | 1436 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
1437 unset CDPATH | |
25897 | 1438 case "${srcdir}" in |
1439 /* ) ;; | |
1440 . ) | |
1441 ## We may be able to use the $PWD environment variable to make this | |
1442 ## absolute. But sometimes PWD is inaccurate. | |
43721 | 1443 ## Note: we used to use ${PWD} at the end instead of `pwd`, |
1444 ## but that tested only for a well-formed and valid PWD, | |
1445 ## it did not object when PWD was well-formed and valid but just wrong. | |
1446 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | |
25897 | 1447 then |
1448 srcdir="$PWD" | |
1449 else | |
1450 srcdir="`(cd ${srcdir}; pwd)`" | |
1451 fi | |
1452 ;; | |
1453 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
1454 esac | |
1455 | |
1456 #### Check if the source directory already has a configured system in it. | |
1457 if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
1458 && test -f "${srcdir}/src/config.h" ; then | |
44493 | 1459 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used |
25897 | 1460 as a build directory right now; it has been configured in its own |
1461 right. To configure in another directory as well, you MUST | |
1462 use GNU make. If you do not have GNU make, then you must | |
1463 now do \`make distclean' in ${srcdir}, | |
40056 | 1464 and then run $0 again." >&5 |
1465 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
1466 as a build directory right now; it has been configured in its own | |
1467 right. To configure in another directory as well, you MUST | |
1468 use GNU make. If you do not have GNU make, then you must | |
1469 now do \`make distclean' in ${srcdir}, | |
1470 and then run $0 again." >&2;} | |
25897 | 1471 |
1472 extrasub='/^VPATH[ ]*=/c\ | |
1473 vpath %.c $(srcdir)\ | |
1474 vpath %.h $(srcdir)\ | |
1475 vpath %.y $(srcdir)\ | |
1476 vpath %.l $(srcdir)\ | |
1477 vpath %.s $(srcdir)\ | |
1478 vpath %.in $(srcdir)\ | |
1479 vpath %.texi $(srcdir)' | |
1480 fi | |
1481 | |
1482 #### Given the configuration name, set machfile and opsysfile to the | |
1483 #### names of the m/*.h and s/*.h files we should use. | |
1484 | |
1485 ### Canonicalize the configuration name. | |
1486 | |
1487 ac_aux_dir= | |
1488 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1489 if test -f $ac_dir/install-sh; then | |
1490 ac_aux_dir=$ac_dir | |
1491 ac_install_sh="$ac_aux_dir/install-sh -c" | |
1492 break | |
1493 elif test -f $ac_dir/install.sh; then | |
1494 ac_aux_dir=$ac_dir | |
1495 ac_install_sh="$ac_aux_dir/install.sh -c" | |
1496 break | |
40056 | 1497 elif test -f $ac_dir/shtool; then |
1498 ac_aux_dir=$ac_dir | |
1499 ac_install_sh="$ac_aux_dir/shtool install -c" | |
1500 break | |
25897 | 1501 fi |
1502 done | |
1503 if test -z "$ac_aux_dir"; then | |
44493 | 1504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
40056 | 1505 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1506 { (exit 1); exit 1; }; } | |
1507 fi | |
1508 ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1509 ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1510 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
25897 | 1511 |
1512 # Make sure we can run config.sub. | |
40056 | 1513 $ac_config_sub sun4 >/dev/null 2>&1 || |
44493 | 1514 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
40056 | 1515 echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1516 { (exit 1); exit 1; }; } | |
1517 | |
44493 | 1518 echo "$as_me:$LINENO: checking build system type" >&5 |
40056 | 1519 echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1520 if test "${ac_cv_build+set}" = set; then | |
1521 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1522 else | |
1523 ac_cv_build_alias=$build_alias | |
1524 test -z "$ac_cv_build_alias" && | |
1525 ac_cv_build_alias=`$ac_config_guess` | |
1526 test -z "$ac_cv_build_alias" && | |
44493 | 1527 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
40056 | 1528 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1529 { (exit 1); exit 1; }; } | |
1530 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
44493 | 1531 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1532 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
40056 | 1533 { (exit 1); exit 1; }; } |
1534 | |
1535 fi | |
44493 | 1536 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
40056 | 1537 echo "${ECHO_T}$ac_cv_build" >&6 |
1538 build=$ac_cv_build | |
1539 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1540 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1541 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1542 | |
44493 | 1543 |
1544 echo "$as_me:$LINENO: checking host system type" >&5 | |
40056 | 1545 echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1546 if test "${ac_cv_host+set}" = set; then | |
1547 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1548 else | |
1549 ac_cv_host_alias=$host_alias | |
1550 test -z "$ac_cv_host_alias" && | |
1551 ac_cv_host_alias=$ac_cv_build_alias | |
1552 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
44493 | 1553 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
40056 | 1554 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1555 { (exit 1); exit 1; }; } | |
1556 | |
1557 fi | |
44493 | 1558 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
40056 | 1559 echo "${ECHO_T}$ac_cv_host" >&6 |
1560 host=$ac_cv_host | |
1561 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1562 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1563 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
25897 | 1564 |
44435 | 1565 |
25897 | 1566 canonical=$host |
40060 | 1567 configuration=${host_alias-$host} |
25897 | 1568 |
44493 | 1569 |
25897 | 1570 ### If you add support for a new configuration, add code to this |
1571 ### switch statement to recognize your configuration name and select | |
1572 ### the appropriate operating system and machine description files. | |
1573 | |
1574 ### You would hope that you could choose an m/*.h file pretty much | |
1575 ### based on the machine portion of the configuration name, and an s- | |
1576 ### file based on the operating system portion. However, it turns out | |
1577 ### that each m/*.h file is pretty manufacturer-specific - for | |
1578 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
1579 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
1580 ### machines. So we basically have to have a special case for each | |
1581 ### configuration name. | |
1582 ### | |
1583 ### As far as handling version numbers on operating systems is | |
1584 ### concerned, make sure things will fail in a fixable way. If | |
1585 ### /etc/MACHINES doesn't say anything about version numbers, be | |
1586 ### prepared to handle anything reasonably. If version numbers | |
1587 ### matter, be sure /etc/MACHINES says something about it. | |
1588 ### | |
1589 ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
1590 ### "System V Release 4"; he writes, "The old convention encouraged | |
1591 ### confusion between `system' and `release' levels'." | |
1592 | |
1593 machine='' opsys='' unported=no | |
1594 case "${canonical}" in | |
1595 | |
41675 | 1596 ## FreeBSD ports |
1597 *-*-freebsd* ) | |
1598 opsys=freebsd | |
1599 case "${canonical}" in | |
1600 alpha*-*-freebsd*) machine=alpha ;; | |
1601 i[3456]86-*-freebsd*) machine=intel386 ;; | |
1602 esac | |
1603 ;; | |
1604 | |
25897 | 1605 ## NetBSD ports |
1606 *-*-netbsd* ) | |
1607 opsys=netbsd | |
1608 case "${canonical}" in | |
1609 alpha*-*-netbsd*) machine=alpha ;; | |
1610 i[3456]86-*-netbsd*) machine=intel386 ;; | |
1611 m68k-*-netbsd*) | |
1612 # This is somewhat bogus. | |
1613 machine=hp9000s300 ;; | |
1614 powerpc-apple-netbsd*) machine=macppc ;; | |
1615 mips-*-netbsd*) machine=pmax ;; | |
27927 | 1616 mipsel-*-netbsd*) machine=pmax ;; |
25897 | 1617 ns32k-*-netbsd*) machine=ns32000 ;; |
28674 | 1618 powerpc-*-netbsd*) machine=macppc ;; |
32034 | 1619 sparc*-*-netbsd*) machine=sparc ;; |
25897 | 1620 vax-*-netbsd*) machine=vax ;; |
27927 | 1621 arm-*-netbsd*) machine=arm ;; |
25897 | 1622 esac |
1623 ;; | |
1624 | |
1625 ## OpenBSD ports | |
1626 *-*-openbsd* ) | |
1627 opsys=openbsd | |
1628 case "${canonical}" in | |
1629 alpha*-*-openbsd*) machine=alpha ;; | |
1630 i386-*-openbsd*) machine=intel386 ;; | |
1631 m68k-*-openbsd*) machine=hp9000s300 ;; | |
1632 mipsel-*-openbsd*) machine=pmax ;; | |
1633 ns32k-*-openbsd*) machine=ns32000 ;; | |
1634 sparc-*-openbsd*) machine=sparc ;; | |
1635 vax-*-openbsd*) machine=vax ;; | |
1636 esac | |
1637 ;; | |
1638 | |
1639 ## Acorn RISCiX: | |
1640 arm-acorn-riscix1.1* ) | |
1641 machine=acorn opsys=riscix1-1 | |
1642 ;; | |
1643 arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
1644 ## This name is riscix12 instead of riscix1.2 | |
1645 ## to avoid a file name conflict on MSDOS. | |
1646 machine=acorn opsys=riscix12 | |
1647 ;; | |
1648 | |
1649 ## BSDI ports | |
1650 *-*-bsdi* ) | |
1651 opsys=bsdi | |
1652 case "${canonical}" in | |
1653 i[345]86-*-bsdi*) machine=intel386 ;; | |
1654 sparc-*-bsdi*) machine=sparc ;; | |
33740 | 1655 powerpc-*-bsdi*) machine=macppc ;; |
25897 | 1656 esac |
1657 case "${canonical}" in | |
1658 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
1659 *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
1660 *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
1661 *-*-bsdi3* ) opsys=bsdos3 ;; | |
42988 | 1662 *-*-bsdi[45]* ) opsys=bsdos4 ;; |
25897 | 1663 esac |
1664 ;; | |
1665 | |
1666 ## Alliant machines | |
1667 ## Strictly speaking, we need the version of the alliant operating | |
1668 ## system to choose the right machine file, but currently the | |
1669 ## configuration name doesn't tell us enough to choose the right | |
1670 ## one; we need to give alliants their own operating system name to | |
1671 ## do this right. When someone cares, they can help us. | |
1672 fx80-alliant-* ) | |
1673 machine=alliant4 opsys=bsd4-2 | |
1674 ;; | |
1675 i860-alliant-* ) | |
1676 machine=alliant-2800 opsys=bsd4-3 | |
1677 ;; | |
1678 | |
1679 ## Alpha (DEC) machines. | |
1680 alpha*-dec-osf* ) | |
1681 machine=alpha opsys=osf1 | |
1682 # This is needed to find X11R6.1 libraries for certain tests. | |
1683 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
1684 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
34446 | 1685 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
1686 # due to non-traditional preprocessing with the current compiler | |
1687 # defaults. OSF 4 can also have that compiler version, and there | |
1688 # seems always to have been a usable /usr/bin/cpp. | |
1689 NON_GNU_CPP=/usr/bin/cpp | |
27883 | 1690 case "${canonical}" in |
31994 | 1691 alpha*-dec-osf[5-9]*) |
31229 | 1692 opsys=osf5-0 ;; |
27883 | 1693 esac |
25897 | 1694 ;; |
1695 | |
1696 alpha*-*-linux-gnu* ) | |
1697 machine=alpha opsys=gnu-linux | |
1698 ;; | |
1699 | |
27205 | 1700 arm*-*-linux-gnu* ) |
1701 machine=arm opsys=gnu-linux | |
1702 ;; | |
1703 | |
1704 ppc-*-linux | \ | |
1705 powerpc-*-linux* ) | |
33740 | 1706 machine=macppc opsys=gnu-linux |
27205 | 1707 ;; |
1708 | |
25897 | 1709 ## Altos 3068 |
1710 m68*-altos-sysv* ) | |
1711 machine=altos opsys=usg5-2 | |
1712 ;; | |
1713 | |
1714 ## Amdahl UTS | |
1715 580-amdahl-sysv* ) | |
1716 machine=amdahl opsys=usg5-2-2 | |
1717 ;; | |
1718 | |
1719 ## Apollo, Domain/OS | |
1720 m68*-apollo-* ) | |
1721 machine=apollo opsys=bsd4-3 | |
1722 ;; | |
1723 | |
1724 ## AT&T 3b2, 3b5, 3b15, 3b20 | |
1725 we32k-att-sysv* ) | |
1726 machine=att3b opsys=usg5-2-2 | |
1727 ;; | |
1728 | |
1729 ## AT&T 3b1 - The Mighty Unix PC! | |
1730 m68*-att-sysv* ) | |
1731 machine=7300 opsys=usg5-2-2 | |
1732 ;; | |
1733 | |
1734 ## Bull dpx20 | |
1735 rs6000-bull-bosx* ) | |
1736 machine=ibmrs6000 opsys=aix3-2 | |
1737 ;; | |
1738 | |
1739 ## Bull dpx2 | |
1740 m68*-bull-sysv3* ) | |
1741 machine=dpx2 opsys=usg5-3 | |
1742 ;; | |
1743 | |
1744 ## Bull sps7 | |
1745 m68*-bull-sysv2* ) | |
1746 machine=sps7 opsys=usg5-2 | |
1747 ;; | |
1748 | |
1749 ## CCI 5/32, 6/32 -- see "Tahoe". | |
1750 | |
1751 ## Celerity | |
1752 ## I don't know what configuration name to use for this; config.sub | |
1753 ## doesn't seem to know anything about it. Hey, Celerity users, get | |
1754 ## in touch with us! | |
1755 celerity-celerity-bsd* ) | |
1756 machine=celerity opsys=bsd4-2 | |
1757 ;; | |
1758 | |
1759 ## Clipper | |
1760 ## What operating systems does this chip run that Emacs has been | |
1761 ## tested on? | |
1762 clipper-* ) | |
1763 machine=clipper | |
1764 ## We'll use the catch-all code at the bottom to guess the | |
1765 ## operating system. | |
1766 ;; | |
1767 | |
43721 | 1768 ## Compaq Nonstop |
1769 mips-compaq-nonstopux* ) | |
1770 machine=nonstopux opsys=nonstopux | |
1771 ;; | |
1772 | |
25897 | 1773 ## Convex |
1774 *-convex-bsd* | *-convex-convexos* ) | |
1775 machine=convex opsys=bsd4-3 | |
1776 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
1777 NON_GNU_CPP="cc -E -P" | |
1778 ;; | |
1779 | |
1780 ## Cubix QBx/386 | |
1781 i[3456]86-cubix-sysv* ) | |
1782 machine=intel386 opsys=usg5-3 | |
1783 ;; | |
1784 | |
1785 ## Cydra 5 | |
1786 cydra*-cydrome-sysv* ) | |
1787 machine=cydra5 opsys=usg5-3 | |
1788 ;; | |
1789 | |
1790 ## Data General AViiON Machines | |
1791 ## DG changed naming conventions with the release of 5.4.4.10, they | |
1792 ## dropped the initial 5.4 but left the intervening R. Because of the | |
1793 ## R this shouldn't conflict with older versions of the OS (which I | |
1794 ## think were named like dgux4.*). In addition, DG new AViiONs series | |
1795 ## uses either Motorola M88k or Intel Pentium CPUs. | |
1796 m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
1797 machine=aviion opsys=dgux4 | |
1798 ;; | |
1799 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
1800 ## This name is dgux5-4-3 instead of dgux5-4r3 | |
1801 ## to avoid a file name conflict on MSDOS. | |
1802 machine=aviion opsys=dgux5-4-3 | |
1803 ;; | |
1804 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
1805 machine=aviion opsys=dgux5-4r2 | |
1806 ;; | |
1807 m88k-dg-dgux* ) | |
1808 machine=aviion opsys=dgux | |
1809 ;; | |
1810 | |
1811 ## Data General AViiON Intel (x86) Machines | |
1812 ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
1813 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
1814 i[345]86-dg-dguxR4* ) | |
1815 machine=aviion-intel opsys=dgux4 | |
1816 ;; | |
1817 | |
1818 ## DECstations | |
1819 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
1820 machine=pmax opsys=bsd4-2 | |
1821 ;; | |
1822 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
1823 machine=pmax opsys=bsd4-3 | |
1824 ;; | |
1825 mips-dec-ultrix* ) | |
1826 machine=pmax opsys=ultrix4-3 | |
1827 ;; | |
1828 mips-dec-osf* ) | |
1829 machine=pmax opsys=osf1 | |
1830 ;; | |
1831 mips-dec-mach_bsd4.3* ) | |
1832 machine=pmax opsys=mach-bsd4-3 | |
1833 ;; | |
1834 | |
1835 ## Motorola Delta machines | |
1836 m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
1837 machine=delta opsys=usg5-3 | |
1838 if test -z "`type gnucc | grep 'not found'`" | |
1839 then | |
1840 if test -s /etc/167config | |
1841 then CC="gnucc -m68040" | |
1842 else CC="gnucc -m68881" | |
1843 fi | |
1844 else | |
1845 if test -z "`type gcc | grep 'not found'`" | |
1846 then CC=gcc | |
1847 else CC=cc | |
1848 fi | |
1849 fi | |
1850 ;; | |
1851 m88k-motorola-sysv4* ) | |
1852 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
1853 # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
1854 # I hope there are not other 4.0 versions for this machine | |
1855 # which really need usg5-4 instead. | |
1856 machine=delta88k opsys=usg5-4-2 | |
1857 ;; | |
1858 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
1859 machine=delta88k opsys=usg5-3 | |
1860 ;; | |
1861 | |
1862 ## Dual machines | |
1863 m68*-dual-sysv* ) | |
1864 machine=dual opsys=usg5-2 | |
1865 ;; | |
1866 m68*-dual-uniplus* ) | |
1867 machine=dual opsys=unipl5-2 | |
1868 ;; | |
1869 | |
1870 ## Elxsi 6400 | |
1871 elxsi-elxsi-sysv* ) | |
1872 machine=elxsi opsys=usg5-2 | |
1873 ;; | |
1874 | |
1875 ## Encore machines | |
1876 ns16k-encore-bsd* ) | |
1877 machine=ns16000 opsys=umax | |
1878 ;; | |
1879 | |
30069 | 1880 ## The GEC 63 - apparently, this port isn't really finished yet. |
1881 # I'm sure we finished off the last of the machines, though. -- fx | |
25897 | 1882 |
1883 ## Gould Power Node and NP1 | |
1884 pn-gould-bsd4.2* ) | |
1885 machine=gould opsys=bsd4-2 | |
1886 ;; | |
1887 pn-gould-bsd4.3* ) | |
1888 machine=gould opsys=bsd4-3 | |
1889 ;; | |
1890 np1-gould-bsd* ) | |
1891 machine=gould-np1 opsys=bsd4-3 | |
1892 ;; | |
1893 | |
1894 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
1895 ## as far as Emacs is concerned). | |
1896 m88k-harris-cxux* ) | |
1897 # Build needs to be different on 7.0 and later releases | |
1898 case "`uname -r`" in | |
1899 [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
1900 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
1901 esac | |
1902 NON_GNU_CPP="/lib/cpp" | |
1903 ;; | |
1904 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
1905 m68k-harris-cxux* ) | |
1906 machine=nh3000 opsys=cxux | |
1907 ;; | |
1908 ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
1909 powerpc-harris-powerunix ) | |
1910 machine=nh6000 opsys=powerunix | |
1911 NON_GNU_CPP="cc -Xo -E -P" | |
1912 ;; | |
1913 ## SR2001/SR2201 running HI-UX/MPP | |
1914 hppa1.1-hitachi-hiuxmpp* ) | |
1915 machine=sr2k opsys=hiuxmpp | |
1916 ;; | |
38811 | 1917 hppa1.1-hitachi-hiuxwe2* ) |
1918 machine=sr2k opsys=hiuxwe2 | |
1919 ;; | |
25897 | 1920 ## Honeywell XPS100 |
1921 xps*-honeywell-sysv* ) | |
1922 machine=xps100 opsys=usg5-2 | |
1923 ;; | |
1924 | |
1925 ## HP 9000 series 200 or 300 | |
1926 m68*-hp-bsd* ) | |
1927 machine=hp9000s300 opsys=bsd4-3 | |
1928 ;; | |
1929 ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
1930 m68*-hp-hpux* ) | |
1931 case "`uname -r`" in | |
1932 ## Someone's system reports A.B8.05 for this. | |
1933 ## I wonder what other possibilities there are. | |
1934 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1935 *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
1936 *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
1937 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
1938 *) machine=hp9000s300 opsys=hpux ;; | |
1939 esac | |
1940 ;; | |
1941 | |
1942 ## HP 9000 series 700 and 800, running HP/UX | |
1943 hppa*-hp-hpux7* ) | |
1944 machine=hp800 opsys=hpux | |
1945 ;; | |
1946 hppa*-hp-hpux8* ) | |
1947 machine=hp800 opsys=hpux8 | |
1948 ;; | |
1949 hppa*-hp-hpux9shr* ) | |
1950 machine=hp800 opsys=hpux9shr | |
1951 ;; | |
1952 hppa*-hp-hpux9* ) | |
1953 machine=hp800 opsys=hpux9 | |
1954 ;; | |
40632 | 1955 hppa*-hp-hpux10* ) |
25897 | 1956 machine=hp800 opsys=hpux10 |
1957 ;; | |
40632 | 1958 hppa*-hp-hpux1[1-9]* ) |
1959 machine=hp800 opsys=hpux11 | |
1960 ;; | |
25897 | 1961 |
41960 | 1962 hppa*-*-linux-gnu* ) |
1963 machine=hp800 opsys=gnu-linux | |
1964 ;; | |
1965 | |
25897 | 1966 ## HP 9000 series 700 and 800, running HP/UX |
1967 hppa*-hp-hpux* ) | |
1968 ## Cross-compilation? Nah! | |
1969 case "`uname -r`" in | |
1970 ## Someone's system reports A.B8.05 for this. | |
1971 ## I wonder what other possibilities there are. | |
1972 *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
1973 *.08.* ) machine=hp800 opsys=hpux8 ;; | |
1974 *.09.* ) machine=hp800 opsys=hpux9 ;; | |
1975 *) machine=hp800 opsys=hpux10 ;; | |
1976 esac | |
1977 ;; | |
1978 hppa*-*-nextstep* ) | |
1979 machine=hp800 opsys=nextstep | |
1980 ;; | |
1981 | |
1982 ## Orion machines | |
1983 orion-orion-bsd* ) | |
1984 machine=orion opsys=bsd4-2 | |
1985 ;; | |
1986 clipper-orion-bsd* ) | |
1987 machine=orion105 opsys=bsd4-2 | |
1988 ;; | |
1989 | |
1990 ## IBM machines | |
1991 i[3456]86-ibm-aix1.1* ) | |
1992 machine=ibmps2-aix opsys=usg5-2-2 | |
1993 ;; | |
1994 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
1995 machine=ibmps2-aix opsys=usg5-3 | |
1996 ;; | |
1997 i370-ibm-aix*) | |
1998 machine=ibm370aix opsys=usg5-3 | |
1999 ;; | |
40426 | 2000 s390-*-linux-gnu) |
2001 machine=ibms390 opsys=gnu-linux | |
2002 ;; | |
25897 | 2003 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
2004 machine=ibmrs6000 opsys=aix3-1 | |
2005 ;; | |
2006 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
2007 machine=ibmrs6000 opsys=aix3-2-5 | |
2008 ;; | |
2009 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
2010 machine=ibmrs6000 opsys=aix4-1 | |
2011 ;; | |
2012 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
2013 machine=ibmrs6000 opsys=aix4-2 | |
2014 ;; | |
43924 | 2015 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* ) |
2016 machine=ibmrs6000 opsys=aix4-2 | |
2017 ;; | |
25897 | 2018 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
2019 machine=ibmrs6000 opsys=aix4 | |
2020 ;; | |
2021 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
2022 machine=ibmrs6000 opsys=aix4-1 | |
2023 ;; | |
2024 rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
2025 machine=ibmrs6000 opsys=aix3-2 | |
2026 ;; | |
2027 romp-ibm-bsd4.3* ) | |
2028 machine=ibmrt opsys=bsd4-3 | |
2029 ;; | |
2030 romp-ibm-bsd4.2* ) | |
2031 machine=ibmrt opsys=bsd4-2 | |
2032 ;; | |
2033 romp-ibm-aos4.3* ) | |
2034 machine=ibmrt opsys=bsd4-3 | |
2035 ;; | |
2036 romp-ibm-aos4.2* ) | |
2037 machine=ibmrt opsys=bsd4-2 | |
2038 ;; | |
2039 romp-ibm-aos* ) | |
2040 machine=ibmrt opsys=bsd4-3 | |
2041 ;; | |
2042 romp-ibm-bsd* ) | |
2043 machine=ibmrt opsys=bsd4-3 | |
2044 ;; | |
2045 romp-ibm-aix* ) | |
2046 machine=ibmrt-aix opsys=usg5-2-2 | |
2047 ;; | |
2048 | |
2049 ## Integrated Solutions `Optimum V' | |
2050 m68*-isi-bsd4.2* ) | |
2051 machine=isi-ov opsys=bsd4-2 | |
2052 ;; | |
2053 m68*-isi-bsd4.3* ) | |
2054 machine=isi-ov opsys=bsd4-3 | |
2055 ;; | |
2056 | |
2057 ## Intel 386 machines where we do care about the manufacturer | |
2058 i[3456]86-intsys-sysv* ) | |
2059 machine=is386 opsys=usg5-2-2 | |
2060 ;; | |
2061 | |
2062 ## Prime EXL | |
2063 i[3456]86-prime-sysv* ) | |
2064 machine=i386 opsys=usg5-3 | |
2065 ;; | |
2066 | |
2067 ## Sequent Symmetry running Dynix | |
2068 i[3456]86-sequent-bsd* ) | |
2069 machine=symmetry opsys=bsd4-3 | |
2070 ;; | |
2071 | |
2072 ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
2073 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
2074 machine=sequent-ptx opsys=ptx4 | |
2075 NON_GNU_CPP=/lib/cpp | |
2076 ;; | |
2077 | |
2078 ## Sequent Symmetry running DYNIX/ptx | |
2079 ## Use the old cpp rather than the newer ANSI one. | |
2080 i[3456]86-sequent-ptx* ) | |
2081 machine=sequent-ptx opsys=ptx | |
2082 NON_GNU_CPP="/lib/cpp" | |
2083 ;; | |
2084 | |
2085 ## ncr machine running svr4.3. | |
2086 i[3456]86-ncr-sysv4.3 ) | |
2087 machine=ncr386 opsys=usg5-4-3 | |
2088 ;; | |
2089 | |
2090 ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
2091 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
2092 i[3456]86-ncr-sysv* ) | |
2093 machine=ncr386 opsys=usg5-4-2 | |
2094 ;; | |
2095 | |
2096 ## Intel Paragon OSF/1 | |
2097 i860-intel-osf1* ) | |
2098 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
2099 ;; | |
2100 | |
2101 ## Intel 860 | |
2102 i860-*-sysv4* ) | |
2103 machine=i860 opsys=usg5-4 | |
2104 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
2105 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
2106 ;; | |
2107 | |
28748 | 2108 ## Macintosh PowerPC |
2109 powerpc*-*-linux-gnu* ) | |
2110 machine=macppc opsys=gnu-linux | |
2111 ;; | |
2112 | |
25897 | 2113 ## Masscomp machines |
2114 m68*-masscomp-rtu* ) | |
2115 machine=masscomp opsys=rtu | |
2116 ;; | |
2117 | |
2118 ## Megatest machines | |
2119 m68*-megatest-bsd* ) | |
2120 machine=mega68 opsys=bsd4-2 | |
2121 ;; | |
2122 | |
2123 ## Workstations sold by MIPS | |
2124 ## This is not necessarily all workstations using the MIPS processor - | |
2125 ## Irises are produced by SGI, and DECstations by DEC. | |
2126 | |
2127 ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
2128 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
2129 ## it gives for choosing between the alternatives seems to be "Use | |
2130 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
2131 ## the BSD world." I'll assume that these are instructions for | |
2132 ## handling two odd situations, and that every other situation | |
2133 ## should use mips.h and usg5-2-2, they being listed first. | |
2134 mips-mips-usg* ) | |
2135 machine=mips4 | |
2136 ## Fall through to the general code at the bottom to decide on the OS. | |
2137 ;; | |
2138 mips-mips-riscos4* ) | |
2139 machine=mips4 opsys=bsd4-3 | |
2140 NON_GNU_CC="cc -systype bsd43" | |
2141 NON_GNU_CPP="cc -systype bsd43 -E" | |
2142 ;; | |
2143 mips-mips-riscos5* ) | |
2144 machine=mips4 opsys=riscos5 | |
2145 NON_GNU_CC="cc -systype bsd43" | |
2146 NON_GNU_CPP="cc -systype bsd43 -E" | |
2147 ;; | |
2148 mips-mips-bsd* ) | |
2149 machine=mips opsys=bsd4-3 | |
2150 ;; | |
2151 mips-mips-* ) | |
2152 machine=mips opsys=usg5-2-2 | |
2153 ;; | |
2154 | |
2155 ## NeXT | |
2156 m68*-next-* | m68k-*-nextstep* ) | |
2157 machine=m68k opsys=nextstep | |
2158 ;; | |
2159 | |
2160 ## The complete machine from National Semiconductor | |
2161 ns32k-ns-genix* ) | |
2162 machine=ns32000 opsys=usg5-2 | |
2163 ;; | |
2164 | |
2165 ## NCR machines | |
2166 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
2167 machine=tower32 opsys=usg5-2-2 | |
2168 ;; | |
2169 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
2170 machine=tower32v3 opsys=usg5-3 | |
2171 ;; | |
2172 | |
2173 ## NEC EWS4800 | |
2174 mips-nec-sysv4*) | |
2175 machine=ews4800 opsys=ux4800 | |
2176 ;; | |
2177 | |
2178 ## Nixdorf Targon 31 | |
2179 m68*-nixdorf-sysv* ) | |
2180 machine=targon31 opsys=usg5-2-2 | |
2181 ;; | |
2182 | |
2183 ## Nu (TI or LMI) | |
2184 m68*-nu-sysv* ) | |
2185 machine=nu opsys=usg5-2 | |
2186 ;; | |
2187 | |
2188 ## Plexus | |
2189 m68*-plexus-sysv* ) | |
2190 machine=plexus opsys=usg5-2 | |
2191 ;; | |
2192 | |
2193 ## PowerPC reference platform | |
2194 powerpcle-*-solaris2* ) | |
2195 machine=prep | |
2196 opsys=sol2-5 | |
2197 ;; | |
2198 | |
2199 ## Pyramid machines | |
2200 ## I don't really have any idea what sort of processor the Pyramid has, | |
2201 ## so I'm assuming it is its own architecture. | |
2202 pyramid-pyramid-bsd* ) | |
2203 machine=pyramid opsys=bsd4-2 | |
2204 ;; | |
2205 | |
2206 ## Sequent Balance | |
2207 ns32k-sequent-bsd4.2* ) | |
2208 machine=sequent opsys=bsd4-2 | |
2209 ;; | |
2210 ns32k-sequent-bsd4.3* ) | |
2211 machine=sequent opsys=bsd4-3 | |
2212 ;; | |
2213 | |
2214 ## Siemens Nixdorf | |
2215 mips-siemens-sysv* | mips-sni-sysv*) | |
2216 machine=mips-siemens opsys=usg5-4 | |
2217 NON_GNU_CC=/usr/ccs/bin/cc | |
2218 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2219 ;; | |
2220 | |
2221 ## Silicon Graphics machines | |
2222 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
2223 m68*-sgi-iris3.5* ) | |
2224 machine=irist opsys=iris3-5 | |
2225 ;; | |
2226 m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
2227 machine=irist opsys=iris3-6 | |
2228 ;; | |
2229 ## Iris 4D | |
2230 mips-sgi-irix3* ) | |
2231 machine=iris4d opsys=irix3-3 | |
2232 ;; | |
2233 mips-sgi-irix4* ) | |
2234 machine=iris4d opsys=irix4-0 | |
2235 ;; | |
2236 mips-sgi-irix6.5 ) | |
2237 machine=iris4d opsys=irix6-5 | |
26502 | 2238 # Without defining _LANGUAGE_C, things get masked out in the headers |
2239 # so that, for instance, grepping for `free' in stdlib.h fails and | |
2240 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
2241 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 2242 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
25897 | 2243 ;; |
2244 mips-sgi-irix6* ) | |
2245 machine=iris4d opsys=irix6-0 | |
27205 | 2246 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
26502 | 2247 # but presumably it does no harm. |
2248 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
29388 | 2249 # -32 probably isn't necessary in later v.6s -- anyone know which? |
25897 | 2250 NON_GCC_TEST_OPTIONS=-32 |
2251 ;; | |
2252 mips-sgi-irix5.[01]* ) | |
2253 machine=iris4d opsys=irix5-0 | |
2254 ;; | |
2255 mips-sgi-irix5* | mips-sgi-irix* ) | |
2256 machine=iris4d opsys=irix5-2 | |
2257 ;; | |
2258 | |
2259 ## SONY machines | |
2260 m68*-sony-bsd4.2* ) | |
2261 machine=news opsys=bsd4-2 | |
2262 ;; | |
2263 m68*-sony-bsd4.3* ) | |
2264 machine=news opsys=bsd4-3 | |
2265 ;; | |
2266 m68*-sony-newsos3* | m68*-sony-news3*) | |
2267 machine=news opsys=bsd4-3 | |
2268 ;; | |
2269 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
2270 machine=news-risc opsys=bsd4-3 | |
2271 ;; | |
2272 mips-sony-newsos6* ) | |
2273 machine=news-r6 opsys=newsos6 | |
2274 ;; | |
2275 mips-sony-news* ) | |
2276 machine=news-risc opsys=newsos5 | |
2277 ;; | |
2278 | |
2279 ## Stride | |
2280 m68*-stride-sysv* ) | |
2281 machine=stride opsys=usg5-2 | |
2282 ;; | |
2283 | |
2284 ## Suns | |
2285 sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
2286 machine=sparc opsys=gnu-linux | |
2287 ;; | |
2288 | |
27949 | 2289 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
25897 | 2290 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
2291 | rs6000-*-solaris2*) | |
2292 case "${canonical}" in | |
2293 m68*-sunos1* ) machine=sun1 ;; | |
2294 m68*-sunos2* ) machine=sun2 ;; | |
2295 m68* ) machine=sun3 ;; | |
2296 i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
2297 i[3456]86-*-* ) machine=intel386 ;; | |
2298 powerpcle* ) machine=powerpcle ;; | |
2299 powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
2300 sparc* ) machine=sparc ;; | |
2301 * ) unported=yes ;; | |
2302 esac | |
2303 case "${canonical}" in | |
2304 ## The Sun386 didn't get past 4.0. | |
2305 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
2306 *-sunos4.0* ) opsys=sunos4-0 ;; | |
2307 *-sunos4.1.[3-9]*noshare ) | |
2308 ## This name is sunos413 instead of sunos4-1-3 | |
2309 ## to avoid a file name conflict on MSDOS. | |
2310 opsys=sunos413 | |
2311 NON_GNU_CPP=/usr/lib/cpp | |
2312 NON_GCC_TEST_OPTIONS=-Bstatic | |
2313 GCC_TEST_OPTIONS=-static | |
2314 ;; | |
2315 *-sunos4.1.[3-9]* | *-sunos4shr*) | |
2316 opsys=sunos4shr | |
2317 NON_GNU_CPP=/usr/lib/cpp | |
2318 ;; | |
2319 *-sunos4* | *-sunos ) | |
2320 opsys=sunos4-1 | |
2321 NON_GCC_TEST_OPTIONS=-Bstatic | |
2322 GCC_TEST_OPTIONS=-static | |
2323 ;; | |
2324 *-sunos5.3* | *-solaris2.3* ) | |
2325 opsys=sol2-3 | |
2326 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2327 ;; | |
2328 *-sunos5.4* | *-solaris2.4* ) | |
2329 opsys=sol2-4 | |
2330 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2331 RANLIB="ar -ts" | |
2332 ;; | |
2333 *-sunos5.5* | *-solaris2.5* ) | |
2334 opsys=sol2-5 | |
2335 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2336 RANLIB="ar -ts" | |
2337 ;; | |
2338 *-sunos5* | *-solaris* ) | |
2339 opsys=sol2-5 | |
2340 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2341 ;; | |
2342 * ) opsys=bsd4-2 ;; | |
2343 esac | |
2344 ## Watch out for a compiler that we know will not work. | |
2345 case "${canonical}" in | |
2346 *-solaris* | *-sunos5* ) | |
2347 if [ "x$CC" = x/usr/ucb/cc ]; then | |
2348 ## /usr/ucb/cc doesn't work; | |
2349 ## we should find some other compiler that does work. | |
2350 unset CC | |
2351 fi | |
2352 ;; | |
2353 *) ;; | |
2354 esac | |
2355 ;; | |
2356 sparc-*-nextstep* ) | |
2357 machine=sparc opsys=nextstep | |
2358 ;; | |
2359 | |
2360 ## Tadpole 68k | |
2361 m68*-tadpole-sysv* ) | |
2362 machine=tad68k opsys=usg5-3 | |
2363 ;; | |
2364 | |
2365 ## Tahoe machines | |
2366 tahoe-tahoe-bsd4.2* ) | |
2367 machine=tahoe opsys=bsd4-2 | |
2368 ;; | |
2369 tahoe-tahoe-bsd4.3* ) | |
2370 machine=tahoe opsys=bsd4-3 | |
2371 ;; | |
2372 | |
2373 ## Tandem Integrity S2 | |
2374 mips-tandem-sysv* ) | |
2375 machine=tandem-s2 opsys=usg5-3 | |
2376 ;; | |
2377 | |
2378 ## Tektronix XD88 | |
2379 m88k-tektronix-sysv3* ) | |
2380 machine=tekxd88 opsys=usg5-3 | |
2381 ;; | |
2382 | |
2383 ## Tektronix 16000 box (6130?) | |
2384 ns16k-tektronix-bsd* ) | |
2385 machine=ns16000 opsys=bsd4-2 | |
2386 ;; | |
2387 ## Tektronix 4300 | |
2388 ## src/m/tek4300.h hints that this is a m68k machine. | |
2389 m68*-tektronix-bsd* ) | |
2390 machine=tek4300 opsys=bsd4-3 | |
2391 ;; | |
2392 | |
2393 ## Titan P2 or P3 | |
2394 ## We seem to have lost the machine-description file titan.h! | |
2395 titan-titan-sysv* ) | |
2396 machine=titan opsys=usg5-3 | |
2397 ;; | |
2398 | |
2399 ## Ustation E30 (SS5E) | |
2400 m68*-unisys-uniplus* ) | |
2401 machine=ustation opsystem=unipl5-2 | |
2402 ;; | |
2403 | |
2404 ## Vaxen. | |
2405 vax-dec-* ) | |
2406 machine=vax | |
2407 case "${canonical}" in | |
2408 *-bsd4.1* ) opsys=bsd4-1 ;; | |
2409 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
2410 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
2411 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
2412 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
2413 *-vms* ) opsys=vms ;; | |
2414 * ) unported=yes | |
2415 esac | |
2416 ;; | |
2417 | |
2418 ## Whitechapel MG1 | |
2419 ns16k-whitechapel-* ) | |
2420 machine=mg1 | |
2421 ## We don't know what sort of OS runs on these; we'll let the | |
2422 ## operating system guessing code below try. | |
2423 ;; | |
2424 | |
2425 ## Wicat | |
2426 m68*-wicat-sysv* ) | |
2427 machine=wicat opsys=usg5-2 | |
2428 ;; | |
2429 | |
30576 | 2430 ## IA-64 |
2431 ia64*-*-linux* ) | |
2432 machine=ia64 opsys=gnu-linux | |
2433 ;; | |
2434 | |
25897 | 2435 ## Intel 386 machines where we don't care about the manufacturer |
2436 i[3456]86-*-* ) | |
2437 machine=intel386 | |
2438 case "${canonical}" in | |
29654 | 2439 *-lynxos* ) opsys=lynxos ;; |
25897 | 2440 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
2441 *-isc2.2* ) opsys=isc2-2 ;; | |
2442 *-isc4.0* ) opsys=isc4-0 ;; | |
2443 *-isc4.* ) opsys=isc4-1 | |
2444 GCC_TEST_OPTIONS=-posix | |
2445 NON_GCC_TEST_OPTIONS=-Xp | |
2446 ;; | |
2447 *-isc* ) opsys=isc3-0 ;; | |
2448 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
2449 *-esix* ) opsys=esix ;; | |
2450 *-xenix* ) opsys=xenix ;; | |
2451 *-linux-gnu* ) opsys=gnu-linux ;; | |
2452 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
40056 | 2453 *-sco3.2v5* ) opsys=sco5 |
25897 | 2454 NON_GNU_CPP=/lib/cpp |
2455 # Prevent -belf from being passed to $CPP. | |
2456 # /lib/cpp does not accept it. | |
2457 OVERRIDE_CPPFLAGS=" " | |
2458 ;; | |
2459 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
2460 *-386bsd* ) opsys=386bsd ;; | |
2461 *-nextstep* ) opsys=nextstep ;; | |
2462 ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
2463 esac | |
2464 ;; | |
2465 | |
2466 ## m68k Linux-based GNU system | |
2467 m68k-*-linux-gnu* ) | |
2468 machine=m68k opsys=gnu-linux | |
2469 ;; | |
2470 | |
2471 ## Mips Linux-based GNU system | |
2472 mips-*-linux-gnu* ) | |
2473 machine=mips opsys=gnu-linux | |
2474 ;; | |
2475 | |
2476 ## UXP/DS | |
2477 sparc-fujitsu-sysv4* ) | |
2478 machine=sparc opsys=uxpds | |
2479 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2480 RANLIB="ar -ts" | |
2481 ;; | |
2482 | |
2483 ## UXP/V | |
2484 f301-fujitsu-uxpv4.1) | |
2485 machine=f301 opsys=uxpv | |
2486 ;; | |
2487 | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2488 ## Darwin / Mac OS X |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2489 powerpc-apple-darwin* ) |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2490 machine=powermac opsys=darwin |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2491 # Define CPP as follows to make autoconf work correctly. |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2492 CPP="cc -E -traditional-cpp" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2493 ;; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2494 |
25897 | 2495 * ) |
2496 unported=yes | |
2497 ;; | |
2498 esac | |
2499 | |
2500 ### If the code above didn't choose an operating system, just choose | |
2501 ### an operating system based on the configuration name. You really | |
2502 ### only want to use this when you have no idea what the right | |
2503 ### operating system is; if you know what operating systems a machine | |
2504 ### runs, it's cleaner to make it explicit in the case statement | |
2505 ### above. | |
2506 if test x"${opsys}" = x; then | |
2507 case "${canonical}" in | |
2508 *-gnu* ) opsys=gnu ;; | |
2509 *-bsd4.[01] ) opsys=bsd4-1 ;; | |
2510 *-bsd4.2 ) opsys=bsd4-2 ;; | |
2511 *-bsd4.3 ) opsys=bsd4-3 ;; | |
2512 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
2513 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
2514 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
2515 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
2516 *-sysv4.2uw* ) opsys=unixware ;; | |
2517 *-sysv4.1* | *-sysvr4.1* ) | |
2518 NON_GNU_CPP=/usr/lib/cpp | |
2519 opsys=usg5-4 ;; | |
2520 *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
2521 if [ x$NON_GNU_CPP = x ]; then | |
2522 if [ -f /usr/ccs/lib/cpp ]; then | |
2523 NON_GNU_CPP=/usr/ccs/lib/cpp | |
2524 else | |
2525 NON_GNU_CPP=/lib/cpp | |
2526 fi | |
2527 fi | |
2528 opsys=usg5-4-2 ;; | |
2529 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
2530 * ) | |
2531 unported=yes | |
2532 ;; | |
2533 esac | |
2534 fi | |
2535 | |
44493 | 2536 |
25897 | 2537 if test $unported = yes; then |
44493 | 2538 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. |
40056 | 2539 Check \`etc/MACHINES' for recognized configuration names." >&5 |
2540 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
2541 Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
2542 { (exit 1); exit 1; }; } | |
25897 | 2543 fi |
2544 | |
2545 machfile="m/${machine}.h" | |
2546 opsysfile="s/${opsys}.h" | |
2547 | |
44493 | 2548 |
25897 | 2549 #### Choose a compiler. |
2550 test -n "$CC" && cc_specified=yes | |
2551 | |
2552 # Save the value of CFLAGS that the user specified. | |
2553 SPECIFIED_CFLAGS="$CFLAGS" | |
2554 | |
2555 case ${with_gcc} in | |
2556 "yes" ) CC="gcc" GCC=yes ;; | |
2557 "no" ) : ${CC=cc} ;; | |
40056 | 2558 * ) |
2559 esac | |
2560 ac_ext=c | |
2561 ac_cpp='$CPP $CPPFLAGS' | |
2562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2564 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2565 if test -n "$ac_tool_prefix"; then | |
2566 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2567 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
44493 | 2568 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 2569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2570 if test "${ac_cv_prog_CC+set}" = set; then | |
2571 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2572 else | |
2573 if test -n "$CC"; then | |
2574 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2575 else | |
44493 | 2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2577 for as_dir in $PATH | |
2578 do | |
2579 IFS=$as_save_IFS | |
2580 test -z "$as_dir" && as_dir=. | |
2581 for ac_exec_ext in '' $ac_executable_extensions; do | |
2582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2583 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2585 break 2 | |
2586 fi | |
2587 done | |
40056 | 2588 done |
2589 | |
2590 fi | |
2591 fi | |
2592 CC=$ac_cv_prog_CC | |
2593 if test -n "$CC"; then | |
44493 | 2594 echo "$as_me:$LINENO: result: $CC" >&5 |
40056 | 2595 echo "${ECHO_T}$CC" >&6 |
2596 else | |
44493 | 2597 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 2598 echo "${ECHO_T}no" >&6 |
2599 fi | |
2600 | |
2601 fi | |
2602 if test -z "$ac_cv_prog_CC"; then | |
2603 ac_ct_CC=$CC | |
2604 # Extract the first word of "gcc", so it can be a program name with args. | |
25897 | 2605 set dummy gcc; ac_word=$2 |
44493 | 2606 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 2607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2609 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2610 else | |
2611 if test -n "$ac_ct_CC"; then | |
2612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2613 else | |
44493 | 2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2615 for as_dir in $PATH | |
2616 do | |
2617 IFS=$as_save_IFS | |
2618 test -z "$as_dir" && as_dir=. | |
2619 for ac_exec_ext in '' $ac_executable_extensions; do | |
2620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2621 ac_cv_prog_ac_ct_CC="gcc" | |
2622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2623 break 2 | |
2624 fi | |
2625 done | |
40056 | 2626 done |
2627 | |
2628 fi | |
2629 fi | |
2630 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2631 if test -n "$ac_ct_CC"; then | |
44493 | 2632 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
40056 | 2633 echo "${ECHO_T}$ac_ct_CC" >&6 |
2634 else | |
44493 | 2635 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 2636 echo "${ECHO_T}no" >&6 |
2637 fi | |
2638 | |
2639 CC=$ac_ct_CC | |
2640 else | |
2641 CC="$ac_cv_prog_CC" | |
2642 fi | |
2643 | |
2644 if test -z "$CC"; then | |
2645 if test -n "$ac_tool_prefix"; then | |
2646 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2647 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
44493 | 2648 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2650 if test "${ac_cv_prog_CC+set}" = set; then | |
2651 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 2652 else |
2653 if test -n "$CC"; then | |
2654 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2655 else | |
44493 | 2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2657 for as_dir in $PATH | |
2658 do | |
2659 IFS=$as_save_IFS | |
2660 test -z "$as_dir" && as_dir=. | |
2661 for ac_exec_ext in '' $ac_executable_extensions; do | |
2662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2663 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2665 break 2 | |
2666 fi | |
2667 done | |
40056 | 2668 done |
2669 | |
2670 fi | |
2671 fi | |
2672 CC=$ac_cv_prog_CC | |
25897 | 2673 if test -n "$CC"; then |
44493 | 2674 echo "$as_me:$LINENO: result: $CC" >&5 |
40056 | 2675 echo "${ECHO_T}$CC" >&6 |
2676 else | |
44493 | 2677 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 2678 echo "${ECHO_T}no" >&6 |
2679 fi | |
2680 | |
2681 fi | |
2682 if test -z "$ac_cv_prog_CC"; then | |
2683 ac_ct_CC=$CC | |
2684 # Extract the first word of "cc", so it can be a program name with args. | |
2685 set dummy cc; ac_word=$2 | |
44493 | 2686 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 2687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2689 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2690 else | |
2691 if test -n "$ac_ct_CC"; then | |
2692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2693 else | |
44493 | 2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2695 for as_dir in $PATH | |
2696 do | |
2697 IFS=$as_save_IFS | |
2698 test -z "$as_dir" && as_dir=. | |
2699 for ac_exec_ext in '' $ac_executable_extensions; do | |
2700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2701 ac_cv_prog_ac_ct_CC="cc" | |
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2703 break 2 | |
2704 fi | |
2705 done | |
40056 | 2706 done |
2707 | |
2708 fi | |
2709 fi | |
2710 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2711 if test -n "$ac_ct_CC"; then | |
44493 | 2712 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
40056 | 2713 echo "${ECHO_T}$ac_ct_CC" >&6 |
2714 else | |
44493 | 2715 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 2716 echo "${ECHO_T}no" >&6 |
2717 fi | |
2718 | |
2719 CC=$ac_ct_CC | |
2720 else | |
2721 CC="$ac_cv_prog_CC" | |
2722 fi | |
2723 | |
2724 fi | |
25897 | 2725 if test -z "$CC"; then |
2726 # Extract the first word of "cc", so it can be a program name with args. | |
2727 set dummy cc; ac_word=$2 | |
44493 | 2728 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 2729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2730 if test "${ac_cv_prog_CC+set}" = set; then | |
2731 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 2732 else |
2733 if test -n "$CC"; then | |
2734 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2735 else | |
2736 ac_prog_rejected=no | |
44493 | 2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2738 for as_dir in $PATH | |
2739 do | |
2740 IFS=$as_save_IFS | |
2741 test -z "$as_dir" && as_dir=. | |
2742 for ac_exec_ext in '' $ac_executable_extensions; do | |
2743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2744 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2745 ac_prog_rejected=yes | |
2746 continue | |
2747 fi | |
2748 ac_cv_prog_CC="cc" | |
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2750 break 2 | |
2751 fi | |
2752 done | |
40056 | 2753 done |
2754 | |
25897 | 2755 if test $ac_prog_rejected = yes; then |
2756 # We found a bogon in the path, so make sure we never use it. | |
2757 set dummy $ac_cv_prog_CC | |
2758 shift | |
40056 | 2759 if test $# != 0; then |
25897 | 2760 # We chose a different compiler from the bogus one. |
2761 # However, it has the same basename, so the bogon will be chosen | |
2762 # first if we set CC to just the basename; use the full file name. | |
2763 shift | |
44493 | 2764 set dummy "$as_dir/$ac_word" ${1+"$@"} |
25897 | 2765 shift |
2766 ac_cv_prog_CC="$@" | |
2767 fi | |
2768 fi | |
2769 fi | |
2770 fi | |
40056 | 2771 CC=$ac_cv_prog_CC |
25897 | 2772 if test -n "$CC"; then |
44493 | 2773 echo "$as_me:$LINENO: result: $CC" >&5 |
40056 | 2774 echo "${ECHO_T}$CC" >&6 |
2775 else | |
44493 | 2776 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 2777 echo "${ECHO_T}no" >&6 |
2778 fi | |
2779 | |
2780 fi | |
2781 if test -z "$CC"; then | |
2782 if test -n "$ac_tool_prefix"; then | |
2783 for ac_prog in cl | |
2784 do | |
2785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
44493 | 2787 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2789 if test "${ac_cv_prog_CC+set}" = set; then | |
2790 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27205 | 2791 else |
2792 if test -n "$CC"; then | |
2793 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2794 else | |
44493 | 2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2796 for as_dir in $PATH | |
2797 do | |
2798 IFS=$as_save_IFS | |
2799 test -z "$as_dir" && as_dir=. | |
2800 for ac_exec_ext in '' $ac_executable_extensions; do | |
2801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2802 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2804 break 2 | |
2805 fi | |
2806 done | |
40056 | 2807 done |
2808 | |
2809 fi | |
2810 fi | |
2811 CC=$ac_cv_prog_CC | |
27205 | 2812 if test -n "$CC"; then |
44493 | 2813 echo "$as_me:$LINENO: result: $CC" >&5 |
40056 | 2814 echo "${ECHO_T}$CC" >&6 |
2815 else | |
44493 | 2816 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 2817 echo "${ECHO_T}no" >&6 |
2818 fi | |
2819 | |
2820 test -n "$CC" && break | |
2821 done | |
2822 fi | |
2823 if test -z "$CC"; then | |
2824 ac_ct_CC=$CC | |
2825 for ac_prog in cl | |
2826 do | |
2827 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2828 set dummy $ac_prog; ac_word=$2 | |
44493 | 2829 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2831 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2832 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2833 else | |
2834 if test -n "$ac_ct_CC"; then | |
2835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2836 else | |
44493 | 2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2838 for as_dir in $PATH | |
2839 do | |
2840 IFS=$as_save_IFS | |
2841 test -z "$as_dir" && as_dir=. | |
2842 for ac_exec_ext in '' $ac_executable_extensions; do | |
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2844 ac_cv_prog_ac_ct_CC="$ac_prog" | |
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2846 break 2 | |
2847 fi | |
2848 done | |
40056 | 2849 done |
2850 | |
2851 fi | |
2852 fi | |
2853 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2854 if test -n "$ac_ct_CC"; then | |
44493 | 2855 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
40056 | 2856 echo "${ECHO_T}$ac_ct_CC" >&6 |
2857 else | |
44493 | 2858 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 2859 echo "${ECHO_T}no" >&6 |
2860 fi | |
2861 | |
2862 test -n "$ac_ct_CC" && break | |
2863 done | |
2864 | |
2865 CC=$ac_ct_CC | |
2866 fi | |
2867 | |
2868 fi | |
2869 | |
44493 | 2870 |
2871 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 | |
2872 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} | |
40056 | 2873 { (exit 1); exit 1; }; } |
2874 | |
2875 # Provide some information about the compiler. | |
44493 | 2876 echo "$as_me:$LINENO:" \ |
40056 | 2877 "checking for C compiler version" >&5 |
2878 ac_compiler=`set X $ac_compile; echo $2` | |
44493 | 2879 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
40056 | 2880 (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2881 ac_status=$? | |
44493 | 2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 2883 (exit $ac_status); } |
44493 | 2884 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
40056 | 2885 (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2886 ac_status=$? | |
44493 | 2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 2888 (exit $ac_status); } |
44493 | 2889 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
40056 | 2890 (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2891 ac_status=$? | |
44493 | 2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 2893 (exit $ac_status); } |
2894 | |
2895 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 2896 #line $LINENO "configure" |
2897 #include "confdefs.h" | |
2898 | |
2899 #ifdef F77_DUMMY_MAIN | |
2900 # ifdef __cplusplus | |
2901 extern "C" | |
2902 # endif | |
2903 int F77_DUMMY_MAIN() { return 1; } | |
2904 #endif | |
40056 | 2905 int |
2906 main () | |
2907 { | |
2908 | |
2909 ; | |
2910 return 0; | |
2911 } | |
2912 _ACEOF | |
2913 ac_clean_files_save=$ac_clean_files | |
2914 ac_clean_files="$ac_clean_files a.out a.exe" | |
2915 # Try to create an executable without -o first, disregard a.out. | |
2916 # It will help us diagnose broken compilers, and finding out an intuition | |
2917 # of exeext. | |
44493 | 2918 echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
40056 | 2919 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
2920 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
44493 | 2921 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
40056 | 2922 (eval $ac_link_default) 2>&5 |
2923 ac_status=$? | |
44493 | 2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 2925 (exit $ac_status); }; then |
2926 # Find the output, starting from the most likely. This scheme is | |
2927 # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2928 # resort. | |
44493 | 2929 |
2930 # Be careful to initialize this variable, since it used to be cached. | |
2931 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2932 ac_cv_exeext= | |
2933 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; | |
40056 | 2934 ls a.out conftest 2>/dev/null; |
2935 ls a.* conftest.* 2>/dev/null`; do | |
2936 case $ac_file in | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
40056 | 2938 a.out ) # We found the default executable, but exeext='' is most |
2939 # certainly right. | |
2940 break;; | |
2941 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2942 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
2943 export ac_cv_exeext | |
2944 break;; | |
2945 * ) break;; | |
2946 esac | |
2947 done | |
2948 else | |
2949 echo "$as_me: failed program was:" >&5 | |
2950 cat conftest.$ac_ext >&5 | |
44493 | 2951 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
40056 | 2952 echo "$as_me: error: C compiler cannot create executables" >&2;} |
2953 { (exit 77); exit 77; }; } | |
2954 fi | |
2955 | |
2956 ac_exeext=$ac_cv_exeext | |
44493 | 2957 echo "$as_me:$LINENO: result: $ac_file" >&5 |
40056 | 2958 echo "${ECHO_T}$ac_file" >&6 |
2959 | |
2960 # Check the compiler produces executables we can run. If not, either | |
2961 # the compiler is broken, or we cross compile. | |
44493 | 2962 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
40056 | 2963 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2964 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2965 # If not cross compiling, check that we can run a simple program. | |
2966 if test "$cross_compiling" != yes; then | |
2967 if { ac_try='./$ac_file' | |
44493 | 2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2969 (eval $ac_try) 2>&5 | |
2970 ac_status=$? | |
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 2972 (exit $ac_status); }; }; then |
2973 cross_compiling=no | |
25897 | 2974 else |
40056 | 2975 if test "$cross_compiling" = maybe; then |
2976 cross_compiling=yes | |
2977 else | |
44493 | 2978 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
40056 | 2979 If you meant to cross compile, use \`--host'." >&5 |
2980 echo "$as_me: error: cannot run C compiled programs. | |
2981 If you meant to cross compile, use \`--host'." >&2;} | |
2982 { (exit 1); exit 1; }; } | |
2983 fi | |
2984 fi | |
2985 fi | |
44493 | 2986 echo "$as_me:$LINENO: result: yes" >&5 |
40056 | 2987 echo "${ECHO_T}yes" >&6 |
2988 | |
2989 rm -f a.out a.exe conftest$ac_cv_exeext | |
2990 ac_clean_files=$ac_clean_files_save | |
2991 # Check the compiler produces executables we can run. If not, either | |
2992 # the compiler is broken, or we cross compile. | |
44493 | 2993 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
40056 | 2994 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
44493 | 2995 echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
40056 | 2996 echo "${ECHO_T}$cross_compiling" >&6 |
2997 | |
44493 | 2998 echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2999 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
3000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3001 (eval $ac_link) 2>&5 | |
3002 ac_status=$? | |
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 3004 (exit $ac_status); }; then |
3005 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3006 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3007 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3008 # `rm'. | |
3009 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
3010 case $ac_file in | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
40056 | 3012 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3013 export ac_cv_exeext | |
3014 break;; | |
3015 * ) break;; | |
3016 esac | |
3017 done | |
3018 else | |
44493 | 3019 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
3020 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} | |
40056 | 3021 { (exit 1); exit 1; }; } |
3022 fi | |
3023 | |
3024 rm -f conftest$ac_cv_exeext | |
44493 | 3025 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
40056 | 3026 echo "${ECHO_T}$ac_cv_exeext" >&6 |
3027 | |
3028 rm -f conftest.$ac_ext | |
3029 EXEEXT=$ac_cv_exeext | |
3030 ac_exeext=$EXEEXT | |
44493 | 3031 echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3032 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
40056 | 3033 if test "${ac_cv_objext+set}" = set; then |
3034 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3035 else | |
3036 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3037 #line $LINENO "configure" |
3038 #include "confdefs.h" | |
3039 | |
3040 #ifdef F77_DUMMY_MAIN | |
3041 # ifdef __cplusplus | |
3042 extern "C" | |
3043 # endif | |
3044 int F77_DUMMY_MAIN() { return 1; } | |
3045 #endif | |
40056 | 3046 int |
3047 main () | |
3048 { | |
3049 | |
3050 ; | |
3051 return 0; | |
3052 } | |
3053 _ACEOF | |
3054 rm -f conftest.o conftest.obj | |
44493 | 3055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3056 (eval $ac_compile) 2>&5 | |
3057 ac_status=$? | |
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 3059 (exit $ac_status); }; then |
3060 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
3061 case $ac_file in | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
40056 | 3063 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3064 break;; | |
3065 esac | |
3066 done | |
3067 else | |
3068 echo "$as_me: failed program was:" >&5 | |
3069 cat conftest.$ac_ext >&5 | |
44493 | 3070 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
3071 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} | |
40056 | 3072 { (exit 1); exit 1; }; } |
3073 fi | |
3074 | |
3075 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3076 fi | |
44493 | 3077 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
40056 | 3078 echo "${ECHO_T}$ac_cv_objext" >&6 |
3079 OBJEXT=$ac_cv_objext | |
3080 ac_objext=$OBJEXT | |
44493 | 3081 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
40056 | 3082 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
3083 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3084 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3085 else | |
3086 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3087 #line $LINENO "configure" |
3088 #include "confdefs.h" | |
3089 | |
3090 #ifdef F77_DUMMY_MAIN | |
3091 # ifdef __cplusplus | |
3092 extern "C" | |
3093 # endif | |
3094 int F77_DUMMY_MAIN() { return 1; } | |
3095 #endif | |
40056 | 3096 int |
3097 main () | |
3098 { | |
3099 #ifndef __GNUC__ | |
3100 choke me | |
3101 #endif | |
3102 | |
3103 ; | |
3104 return 0; | |
3105 } | |
3106 _ACEOF | |
3107 rm -f conftest.$ac_objext | |
44493 | 3108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3109 (eval $ac_compile) 2>&5 | |
3110 ac_status=$? | |
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3112 (exit $ac_status); } && | |
3113 { ac_try='test -s conftest.$ac_objext' | |
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3115 (eval $ac_try) 2>&5 | |
3116 ac_status=$? | |
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 3118 (exit $ac_status); }; }; then |
3119 ac_compiler_gnu=yes | |
3120 else | |
3121 echo "$as_me: failed program was:" >&5 | |
3122 cat conftest.$ac_ext >&5 | |
3123 ac_compiler_gnu=no | |
3124 fi | |
3125 rm -f conftest.$ac_objext conftest.$ac_ext | |
3126 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3127 | |
3128 fi | |
44493 | 3129 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
40056 | 3130 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
3131 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3132 ac_test_CFLAGS=${CFLAGS+set} | |
3133 ac_save_CFLAGS=$CFLAGS | |
3134 CFLAGS="-g" | |
44493 | 3135 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
40056 | 3136 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
3137 if test "${ac_cv_prog_cc_g+set}" = set; then | |
3138 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3139 else | |
3140 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3141 #line $LINENO "configure" |
3142 #include "confdefs.h" | |
3143 | |
3144 #ifdef F77_DUMMY_MAIN | |
3145 # ifdef __cplusplus | |
3146 extern "C" | |
3147 # endif | |
3148 int F77_DUMMY_MAIN() { return 1; } | |
3149 #endif | |
3150 int | |
3151 main () | |
3152 { | |
3153 | |
3154 ; | |
3155 return 0; | |
3156 } | |
3157 _ACEOF | |
3158 rm -f conftest.$ac_objext | |
3159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3160 (eval $ac_compile) 2>&5 | |
3161 ac_status=$? | |
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3163 (exit $ac_status); } && | |
3164 { ac_try='test -s conftest.$ac_objext' | |
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3166 (eval $ac_try) 2>&5 | |
3167 ac_status=$? | |
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 3169 (exit $ac_status); }; }; then |
25897 | 3170 ac_cv_prog_cc_g=yes |
3171 else | |
40056 | 3172 echo "$as_me: failed program was:" >&5 |
3173 cat conftest.$ac_ext >&5 | |
3174 ac_cv_prog_cc_g=no | |
3175 fi | |
3176 rm -f conftest.$ac_objext conftest.$ac_ext | |
3177 fi | |
44493 | 3178 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
40056 | 3179 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
27205 | 3180 if test "$ac_test_CFLAGS" = set; then |
40056 | 3181 CFLAGS=$ac_save_CFLAGS |
27205 | 3182 elif test $ac_cv_prog_cc_g = yes; then |
3183 if test "$GCC" = yes; then | |
25897 | 3184 CFLAGS="-g -O2" |
3185 else | |
27205 | 3186 CFLAGS="-g" |
25897 | 3187 fi |
3188 else | |
27205 | 3189 if test "$GCC" = yes; then |
3190 CFLAGS="-O2" | |
3191 else | |
3192 CFLAGS= | |
3193 fi | |
25897 | 3194 fi |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3195 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3196 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3197 if test "${ac_cv_prog_cc_stdc+set}" = set; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3198 echo $ECHO_N "(cached) $ECHO_C" >&6 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3199 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3200 ac_cv_prog_cc_stdc=no |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3201 ac_save_CC=$CC |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3202 cat >conftest.$ac_ext <<_ACEOF |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3203 #line $LINENO "configure" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3204 #include "confdefs.h" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3205 #include <stdarg.h> |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3206 #include <stdio.h> |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3207 #include <sys/types.h> |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3208 #include <sys/stat.h> |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3209 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3210 struct buf { int x; }; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3211 FILE * (*rcsopen) (struct buf *, struct stat *, int); |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3212 static char *e (p, i) |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3213 char **p; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3214 int i; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3215 { |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3216 return p[i]; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3217 } |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3218 static char *f (char * (*g) (char **, int), char **p, ...) |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3219 { |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3220 char *s; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3221 va_list v; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3222 va_start (v,p); |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3223 s = g (p, va_arg (v,int)); |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3224 va_end (v); |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3225 return s; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3226 } |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3227 int test (int i, double x); |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3228 struct s1 {int (*f) (int a);}; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3229 struct s2 {int (*f) (double a);}; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3231 int argc; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3232 char **argv; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3233 #ifdef F77_DUMMY_MAIN |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3234 # ifdef __cplusplus |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3235 extern "C" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3236 # endif |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3237 int F77_DUMMY_MAIN() { return 1; } |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3238 #endif |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3239 int |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3240 main () |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3241 { |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3242 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3243 ; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3244 return 0; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3245 } |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3246 _ACEOF |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3247 # Don't try gcc -ansi; that turns off useful extensions and |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3248 # breaks some systems' header files. |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3249 # AIX -qlanglvl=ansi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3250 # Ultrix and OSF/1 -std1 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3251 # HP-UX 10.20 and later -Ae |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3252 # HP-UX older versions -Aa -D_HPUX_SOURCE |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3253 # SVR4 -Xc -D__EXTENSIONS__ |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3254 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3255 do |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3256 CC="$ac_save_CC $ac_arg" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3257 rm -f conftest.$ac_objext |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3259 (eval $ac_compile) 2>&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3260 ac_status=$? |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3262 (exit $ac_status); } && |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3263 { ac_try='test -s conftest.$ac_objext' |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3265 (eval $ac_try) 2>&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3266 ac_status=$? |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3268 (exit $ac_status); }; }; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3269 ac_cv_prog_cc_stdc=$ac_arg |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3270 break |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3271 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3272 echo "$as_me: failed program was:" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3273 cat conftest.$ac_ext >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3274 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3275 rm -f conftest.$ac_objext |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3276 done |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3277 rm -f conftest.$ac_ext conftest.$ac_objext |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3278 CC=$ac_save_CC |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3279 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3280 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3281 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3282 case "x$ac_cv_prog_cc_stdc" in |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3283 x|xno) |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3284 echo "$as_me:$LINENO: result: none needed" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3285 echo "${ECHO_T}none needed" >&6 ;; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3286 *) |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3287 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3288 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3289 CC="$CC $ac_cv_prog_cc_stdc" ;; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3290 esac |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
3291 |
40056 | 3292 # Some people use a C++ compiler to compile C. Since we use `exit', |
3293 # in C++ we need to declare it. In case someone uses the same compiler | |
3294 # for both compiling C and C++ we need to have the C++ compiler decide | |
3295 # the declaration of exit, since it's the most demanding environment. | |
3296 cat >conftest.$ac_ext <<_ACEOF | |
3297 #ifndef __cplusplus | |
3298 choke me | |
3299 #endif | |
3300 _ACEOF | |
3301 rm -f conftest.$ac_objext | |
44493 | 3302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3303 (eval $ac_compile) 2>&5 | |
3304 ac_status=$? | |
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3306 (exit $ac_status); } && | |
3307 { ac_try='test -s conftest.$ac_objext' | |
3308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3309 (eval $ac_try) 2>&5 | |
3310 ac_status=$? | |
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 3312 (exit $ac_status); }; }; then |
3313 for ac_declaration in \ | |
3314 ''\ | |
3315 '#include <stdlib.h>' \ | |
3316 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3317 'extern "C" void std::exit (int); using std::exit;' \ | |
3318 'extern "C" void exit (int) throw ();' \ | |
3319 'extern "C" void exit (int);' \ | |
3320 'void exit (int);' | |
3321 do | |
3322 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3323 #line $LINENO "configure" |
40056 | 3324 #include "confdefs.h" |
3325 #include <stdlib.h> | |
3326 $ac_declaration | |
44493 | 3327 #ifdef F77_DUMMY_MAIN |
3328 # ifdef __cplusplus | |
3329 extern "C" | |
3330 # endif | |
3331 int F77_DUMMY_MAIN() { return 1; } | |
3332 #endif | |
40056 | 3333 int |
3334 main () | |
3335 { | |
3336 exit (42); | |
3337 ; | |
3338 return 0; | |
3339 } | |
3340 _ACEOF | |
3341 rm -f conftest.$ac_objext | |
44493 | 3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3343 (eval $ac_compile) 2>&5 | |
3344 ac_status=$? | |
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3346 (exit $ac_status); } && | |
3347 { ac_try='test -s conftest.$ac_objext' | |
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3349 (eval $ac_try) 2>&5 | |
3350 ac_status=$? | |
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 3352 (exit $ac_status); }; }; then |
3353 : | |
3354 else | |
3355 echo "$as_me: failed program was:" >&5 | |
3356 cat conftest.$ac_ext >&5 | |
3357 continue | |
3358 fi | |
3359 rm -f conftest.$ac_objext conftest.$ac_ext | |
3360 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3361 #line $LINENO "configure" |
40056 | 3362 #include "confdefs.h" |
3363 $ac_declaration | |
44493 | 3364 #ifdef F77_DUMMY_MAIN |
3365 # ifdef __cplusplus | |
3366 extern "C" | |
3367 # endif | |
3368 int F77_DUMMY_MAIN() { return 1; } | |
3369 #endif | |
40056 | 3370 int |
3371 main () | |
3372 { | |
3373 exit (42); | |
3374 ; | |
3375 return 0; | |
3376 } | |
3377 _ACEOF | |
3378 rm -f conftest.$ac_objext | |
44493 | 3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3380 (eval $ac_compile) 2>&5 | |
3381 ac_status=$? | |
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3383 (exit $ac_status); } && | |
3384 { ac_try='test -s conftest.$ac_objext' | |
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3386 (eval $ac_try) 2>&5 | |
3387 ac_status=$? | |
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 3389 (exit $ac_status); }; }; then |
3390 break | |
3391 else | |
3392 echo "$as_me: failed program was:" >&5 | |
3393 cat conftest.$ac_ext >&5 | |
3394 fi | |
3395 rm -f conftest.$ac_objext conftest.$ac_ext | |
3396 done | |
3397 rm -f conftest* | |
3398 if test -n "$ac_declaration"; then | |
3399 echo '#ifdef __cplusplus' >>confdefs.h | |
3400 echo $ac_declaration >>confdefs.h | |
3401 echo '#endif' >>confdefs.h | |
3402 fi | |
3403 | |
3404 else | |
3405 echo "$as_me: failed program was:" >&5 | |
3406 cat conftest.$ac_ext >&5 | |
3407 fi | |
3408 rm -f conftest.$ac_objext conftest.$ac_ext | |
3409 ac_ext=c | |
3410 ac_cpp='$CPP $CPPFLAGS' | |
3411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3413 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25897 | 3414 |
44493 | 3415 |
25897 | 3416 # On Suns, sometimes $CPP names a directory. |
3417 if test -n "$CPP" && test -d "$CPP"; then | |
3418 CPP= | |
3419 fi | |
3420 | |
3421 #### Some systems specify a CPP to use unless we are using GCC. | |
3422 #### Now that we know whether we are using GCC, we can decide whether | |
3423 #### to use that one. | |
3424 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
3425 then | |
3426 CPP="$NON_GNU_CPP" | |
3427 fi | |
3428 | |
3429 #### Some systems specify a CC to use unless we are using GCC. | |
3430 #### Now that we know whether we are using GCC, we can decide whether | |
3431 #### to use that one. | |
3432 if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
3433 test x$cc_specified != xyes | |
3434 then | |
3435 CC="$NON_GNU_CC" | |
3436 fi | |
3437 | |
3438 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
3439 then | |
3440 CC="$CC $GCC_TEST_OPTIONS" | |
3441 fi | |
3442 | |
3443 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
3444 then | |
3445 CC="$CC $NON_GCC_TEST_OPTIONS" | |
3446 fi | |
3447 | |
3448 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x | |
3449 then | |
3450 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
3451 fi | |
3452 | |
3453 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
3454 then | |
3455 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
3456 fi | |
3457 | |
3458 #### Some other nice autoconf tests. If you add a test here which | |
3459 #### should make an entry in src/config.h, don't forget to add an | |
3460 #### #undef clause to src/config.h.in for autoconf to modify. | |
3461 | |
44493 | 3462 echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
40056 | 3463 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3464 LN_S=$as_ln_s | |
3465 if test "$LN_S" = "ln -s"; then | |
44493 | 3466 echo "$as_me:$LINENO: result: yes" >&5 |
40056 | 3467 echo "${ECHO_T}yes" >&6 |
3468 else | |
44493 | 3469 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
40056 | 3470 echo "${ECHO_T}no, using $LN_S" >&6 |
3471 fi | |
3472 | |
3473 ac_ext=c | |
3474 ac_cpp='$CPP $CPPFLAGS' | |
3475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3477 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
44493 | 3478 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
40056 | 3479 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
25897 | 3480 # On Suns, sometimes $CPP names a directory. |
3481 if test -n "$CPP" && test -d "$CPP"; then | |
3482 CPP= | |
3483 fi | |
3484 if test -z "$CPP"; then | |
40056 | 3485 if test "${ac_cv_prog_CPP+set}" = set; then |
3486 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3487 else | |
3488 # Double quotes because CPP needs to be expanded | |
3489 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3490 do | |
3491 ac_preproc_ok=false | |
3492 for ac_c_preproc_warn_flag in '' yes | |
3493 do | |
3494 # Use a header file that comes with gcc, so configuring glibc | |
3495 # with a fresh cross-compiler works. | |
25897 | 3496 # On the NeXT, cc -E runs the code through the compiler's parser, |
40056 | 3497 # not just through cpp. "Syntax error" is here to catch this case. |
3498 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3499 #line $LINENO "configure" |
25897 | 3500 #include "confdefs.h" |
3501 #include <assert.h> | |
40056 | 3502 Syntax error |
3503 _ACEOF | |
44493 | 3504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3506 ac_status=$? | |
3507 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3508 rm -f conftest.er1 | |
3509 cat conftest.err >&5 | |
44493 | 3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 3511 (exit $ac_status); } >/dev/null; then |
3512 if test -s conftest.err; then | |
3513 ac_cpp_err=$ac_c_preproc_warn_flag | |
3514 else | |
3515 ac_cpp_err= | |
3516 fi | |
3517 else | |
3518 ac_cpp_err=yes | |
3519 fi | |
3520 if test -z "$ac_cpp_err"; then | |
27205 | 3521 : |
3522 else | |
40056 | 3523 echo "$as_me: failed program was:" >&5 |
27205 | 3524 cat conftest.$ac_ext >&5 |
40056 | 3525 # Broken: fails on valid input. |
3526 continue | |
3527 fi | |
3528 rm -f conftest.err conftest.$ac_ext | |
3529 | |
3530 # OK, works on sane cases. Now check whether non-existent headers | |
3531 # can be detected and how. | |
3532 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3533 #line $LINENO "configure" |
40056 | 3534 #include "confdefs.h" |
3535 #include <ac_nonexistent.h> | |
3536 _ACEOF | |
44493 | 3537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3539 ac_status=$? | |
3540 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3541 rm -f conftest.er1 | |
3542 cat conftest.err >&5 | |
44493 | 3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 3544 (exit $ac_status); } >/dev/null; then |
3545 if test -s conftest.err; then | |
3546 ac_cpp_err=$ac_c_preproc_warn_flag | |
3547 else | |
3548 ac_cpp_err= | |
3549 fi | |
3550 else | |
3551 ac_cpp_err=yes | |
3552 fi | |
3553 if test -z "$ac_cpp_err"; then | |
3554 # Broken: success on invalid input. | |
3555 continue | |
3556 else | |
3557 echo "$as_me: failed program was:" >&5 | |
3558 cat conftest.$ac_ext >&5 | |
3559 # Passes both tests. | |
3560 ac_preproc_ok=: | |
3561 break | |
3562 fi | |
3563 rm -f conftest.err conftest.$ac_ext | |
3564 | |
3565 done | |
3566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3567 rm -f conftest.err conftest.$ac_ext | |
3568 if $ac_preproc_ok; then | |
3569 break | |
3570 fi | |
3571 | |
3572 done | |
3573 ac_cv_prog_CPP=$CPP | |
3574 | |
3575 fi | |
3576 CPP=$ac_cv_prog_CPP | |
3577 else | |
3578 ac_cv_prog_CPP=$CPP | |
3579 fi | |
44493 | 3580 echo "$as_me:$LINENO: result: $CPP" >&5 |
40056 | 3581 echo "${ECHO_T}$CPP" >&6 |
3582 ac_preproc_ok=false | |
3583 for ac_c_preproc_warn_flag in '' yes | |
3584 do | |
3585 # Use a header file that comes with gcc, so configuring glibc | |
3586 # with a fresh cross-compiler works. | |
3587 # On the NeXT, cc -E runs the code through the compiler's parser, | |
3588 # not just through cpp. "Syntax error" is here to catch this case. | |
3589 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3590 #line $LINENO "configure" |
27205 | 3591 #include "confdefs.h" |
3592 #include <assert.h> | |
40056 | 3593 Syntax error |
3594 _ACEOF | |
44493 | 3595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3597 ac_status=$? | |
3598 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3599 rm -f conftest.er1 | |
3600 cat conftest.err >&5 | |
44493 | 3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 3602 (exit $ac_status); } >/dev/null; then |
3603 if test -s conftest.err; then | |
3604 ac_cpp_err=$ac_c_preproc_warn_flag | |
3605 else | |
3606 ac_cpp_err= | |
3607 fi | |
3608 else | |
3609 ac_cpp_err=yes | |
3610 fi | |
3611 if test -z "$ac_cpp_err"; then | |
25897 | 3612 : |
3613 else | |
40056 | 3614 echo "$as_me: failed program was:" >&5 |
25897 | 3615 cat conftest.$ac_ext >&5 |
40056 | 3616 # Broken: fails on valid input. |
3617 continue | |
3618 fi | |
3619 rm -f conftest.err conftest.$ac_ext | |
3620 | |
3621 # OK, works on sane cases. Now check whether non-existent headers | |
3622 # can be detected and how. | |
3623 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3624 #line $LINENO "configure" |
40056 | 3625 #include "confdefs.h" |
3626 #include <ac_nonexistent.h> | |
3627 _ACEOF | |
44493 | 3628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 3629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3630 ac_status=$? | |
3631 egrep -v '^ *\+' conftest.er1 >conftest.err | |
3632 rm -f conftest.er1 | |
3633 cat conftest.err >&5 | |
44493 | 3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 3635 (exit $ac_status); } >/dev/null; then |
3636 if test -s conftest.err; then | |
3637 ac_cpp_err=$ac_c_preproc_warn_flag | |
3638 else | |
3639 ac_cpp_err= | |
3640 fi | |
3641 else | |
3642 ac_cpp_err=yes | |
3643 fi | |
3644 if test -z "$ac_cpp_err"; then | |
3645 # Broken: success on invalid input. | |
3646 continue | |
3647 else | |
3648 echo "$as_me: failed program was:" >&5 | |
3649 cat conftest.$ac_ext >&5 | |
3650 # Passes both tests. | |
3651 ac_preproc_ok=: | |
3652 break | |
3653 fi | |
3654 rm -f conftest.err conftest.$ac_ext | |
3655 | |
3656 done | |
3657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3658 rm -f conftest.err conftest.$ac_ext | |
3659 if $ac_preproc_ok; then | |
3660 : | |
3661 else | |
44493 | 3662 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
40056 | 3663 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
3664 { (exit 1); exit 1; }; } | |
3665 fi | |
3666 | |
3667 ac_ext=c | |
3668 ac_cpp='$CPP $CPPFLAGS' | |
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25897 | 3672 |
3673 # Find a good install program. We prefer a C program (faster), | |
3674 # so one script is as good as another. But avoid the broken or | |
3675 # incompatible versions: | |
3676 # SysV /etc/install, /usr/sbin/install | |
3677 # SunOS /usr/etc/install | |
3678 # IRIX /sbin/install | |
3679 # AIX /bin/install | |
40056 | 3680 # AmigaOS /C/install, which installs bootblocks on floppy discs |
27205 | 3681 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
25897 | 3682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3684 # ./install, which can be erroneously created by make from ./install.sh. | |
44493 | 3685 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3686 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
25897 | 3687 if test -z "$INSTALL"; then |
40056 | 3688 if test "${ac_cv_path_install+set}" = set; then |
3689 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3690 else | |
44493 | 3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3692 for as_dir in $PATH | |
3693 do | |
3694 IFS=$as_save_IFS | |
3695 test -z "$as_dir" && as_dir=. | |
3696 # Account for people who put trailing slashes in PATH elements. | |
3697 case $as_dir/ in | |
3698 ./ | .// | /cC/* | \ | |
3699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3700 /usr/ucb/* ) ;; | |
3701 *) | |
3702 # OSF1 and SCO ODT 3.0 have their own names for install. | |
3703 # Don't use installbsd from OSF since it installs stuff as root | |
3704 # by default. | |
3705 for ac_prog in ginstall scoinst install; do | |
3706 for ac_exec_ext in '' $ac_executable_extensions; do | |
3707 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3708 if test $ac_prog = install && | |
3709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3710 # AIX install. It has an incompatible calling convention. | |
3711 : | |
3712 elif test $ac_prog = install && | |
3713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3714 # program-specific install script used by HP pwplus--don't use. | |
3715 : | |
3716 else | |
3717 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3718 break 3 | |
3719 fi | |
3720 fi | |
25897 | 3721 done |
44493 | 3722 done |
3723 ;; | |
3724 esac | |
3725 done | |
3726 | |
25897 | 3727 |
3728 fi | |
3729 if test "${ac_cv_path_install+set}" = set; then | |
40056 | 3730 INSTALL=$ac_cv_path_install |
25897 | 3731 else |
3732 # As a last resort, use the slow shell script. We don't cache a | |
3733 # path for INSTALL within a source directory, because that will | |
3734 # break other packages using the cache if that directory is | |
3735 # removed, or if the path is relative. | |
40056 | 3736 INSTALL=$ac_install_sh |
3737 fi | |
3738 fi | |
44493 | 3739 echo "$as_me:$LINENO: result: $INSTALL" >&5 |
40056 | 3740 echo "${ECHO_T}$INSTALL" >&6 |
25897 | 3741 |
3742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3743 # It thinks the first close brace ends the variable substitution. | |
3744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3745 | |
40056 | 3746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
27205 | 3747 |
25897 | 3748 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3749 | |
3750 for ac_prog in 'bison -y' byacc | |
3751 do | |
40056 | 3752 # Extract the first word of "$ac_prog", so it can be a program name with args. |
25897 | 3753 set dummy $ac_prog; ac_word=$2 |
44493 | 3754 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 3755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3756 if test "${ac_cv_prog_YACC+set}" = set; then | |
3757 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 3758 else |
3759 if test -n "$YACC"; then | |
3760 ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
3761 else | |
44493 | 3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3763 for as_dir in $PATH | |
3764 do | |
3765 IFS=$as_save_IFS | |
3766 test -z "$as_dir" && as_dir=. | |
3767 for ac_exec_ext in '' $ac_executable_extensions; do | |
3768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3769 ac_cv_prog_YACC="$ac_prog" | |
3770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3771 break 2 | |
3772 fi | |
3773 done | |
40056 | 3774 done |
3775 | |
3776 fi | |
3777 fi | |
3778 YACC=$ac_cv_prog_YACC | |
25897 | 3779 if test -n "$YACC"; then |
44493 | 3780 echo "$as_me:$LINENO: result: $YACC" >&5 |
40056 | 3781 echo "${ECHO_T}$YACC" >&6 |
3782 else | |
44493 | 3783 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 3784 echo "${ECHO_T}no" >&6 |
3785 fi | |
3786 | |
3787 test -n "$YACC" && break | |
25897 | 3788 done |
3789 test -n "$YACC" || YACC="yacc" | |
3790 | |
28060 | 3791 if test "x$RANLIB" = x; then |
40056 | 3792 if test -n "$ac_tool_prefix"; then |
3793 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3794 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
44493 | 3795 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 3796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3797 if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3798 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28060 | 3799 else |
3800 if test -n "$RANLIB"; then | |
3801 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3802 else | |
44493 | 3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3804 for as_dir in $PATH | |
3805 do | |
3806 IFS=$as_save_IFS | |
3807 test -z "$as_dir" && as_dir=. | |
3808 for ac_exec_ext in '' $ac_executable_extensions; do | |
3809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3810 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3812 break 2 | |
3813 fi | |
3814 done | |
40056 | 3815 done |
3816 | |
3817 fi | |
3818 fi | |
3819 RANLIB=$ac_cv_prog_RANLIB | |
28060 | 3820 if test -n "$RANLIB"; then |
44493 | 3821 echo "$as_me:$LINENO: result: $RANLIB" >&5 |
40056 | 3822 echo "${ECHO_T}$RANLIB" >&6 |
3823 else | |
44493 | 3824 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 3825 echo "${ECHO_T}no" >&6 |
3826 fi | |
3827 | |
3828 fi | |
3829 if test -z "$ac_cv_prog_RANLIB"; then | |
3830 ac_ct_RANLIB=$RANLIB | |
3831 # Extract the first word of "ranlib", so it can be a program name with args. | |
3832 set dummy ranlib; ac_word=$2 | |
44493 | 3833 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 3834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3835 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3836 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3837 else | |
3838 if test -n "$ac_ct_RANLIB"; then | |
3839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3840 else | |
44493 | 3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3842 for as_dir in $PATH | |
3843 do | |
3844 IFS=$as_save_IFS | |
3845 test -z "$as_dir" && as_dir=. | |
3846 for ac_exec_ext in '' $ac_executable_extensions; do | |
3847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3848 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3850 break 2 | |
3851 fi | |
3852 done | |
40056 | 3853 done |
3854 | |
3855 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3856 fi | |
3857 fi | |
3858 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3859 if test -n "$ac_ct_RANLIB"; then | |
44493 | 3860 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
40056 | 3861 echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
3862 else | |
44493 | 3863 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 3864 echo "${ECHO_T}no" >&6 |
3865 fi | |
3866 | |
3867 RANLIB=$ac_ct_RANLIB | |
3868 else | |
3869 RANLIB="$ac_cv_prog_RANLIB" | |
3870 fi | |
3871 | |
3872 fi | |
3873 | |
44493 | 3874 |
3875 | |
3876 | |
3877 echo "$as_me:$LINENO: checking for AIX" >&5 | |
40056 | 3878 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
3879 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 3880 #line $LINENO "configure" |
25897 | 3881 #include "confdefs.h" |
3882 #ifdef _AIX | |
3883 yes | |
3884 #endif | |
3885 | |
40056 | 3886 _ACEOF |
25897 | 3887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3888 egrep "yes" >/dev/null 2>&1; then | |
44493 | 3889 echo "$as_me:$LINENO: result: yes" >&5 |
40056 | 3890 echo "${ECHO_T}yes" >&6 |
44493 | 3891 cat >>confdefs.h <<\_ACEOF |
25897 | 3892 #define _ALL_SOURCE 1 |
44493 | 3893 _ACEOF |
3894 | |
3895 else | |
3896 echo "$as_me:$LINENO: result: no" >&5 | |
40056 | 3897 echo "${ECHO_T}no" >&6 |
25897 | 3898 fi |
3899 rm -f conftest* | |
3900 | |
44493 | 3901 |
3902 | |
30311 | 3903 #### Extract some information from the operating system and machine files. |
3904 | |
44493 | 3905 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out |
30311 | 3906 - which libraries the lib-src programs will want, and |
40056 | 3907 - whether the GNU malloc routines are usable..." >&5 |
3908 echo "$as_me: checking the machine- and system-dependent files to find out | |
30311 | 3909 - which libraries the lib-src programs will want, and |
40056 | 3910 - whether the GNU malloc routines are usable..." >&6;} |
30311 | 3911 |
3912 ### First figure out CFLAGS (which we use for running the compiler here) | |
3913 ### and REAL_CFLAGS (which we use for real compilation). | |
3914 ### The two are the same except on a few systems, where they are made | |
3915 ### different to work around various lossages. For example, | |
3916 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
3917 ### as implying static linking. | |
3918 | |
3919 ### If the CFLAGS env var is specified, we use that value | |
3920 ### instead of the default. | |
3921 | |
3922 ### It's not important that this name contain the PID; you can't run | |
3923 ### two configures in the same directory and have anything work | |
3924 ### anyway. | |
3925 tempcname="conftest.c" | |
3926 | |
3927 echo ' | |
3928 #include "'${srcdir}'/src/'${opsysfile}'" | |
3929 #include "'${srcdir}'/src/'${machfile}'" | |
3930 #ifndef LIBS_MACHINE | |
3931 #define LIBS_MACHINE | |
3932 #endif | |
3933 #ifndef LIBS_SYSTEM | |
3934 #define LIBS_SYSTEM | |
3935 #endif | |
3936 #ifndef C_SWITCH_SYSTEM | |
3937 #define C_SWITCH_SYSTEM | |
3938 #endif | |
3939 #ifndef C_SWITCH_MACHINE | |
3940 #define C_SWITCH_MACHINE | |
3941 #endif | |
3942 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
3943 configure___ c_switch_system=C_SWITCH_SYSTEM | |
3944 configure___ c_switch_machine=C_SWITCH_MACHINE | |
3945 | |
3946 #ifndef LIB_X11_LIB | |
3947 #define LIB_X11_LIB -lX11 | |
3948 #endif | |
3949 | |
3950 #ifndef LIBX11_MACHINE | |
3951 #define LIBX11_MACHINE | |
3952 #endif | |
3953 | |
3954 #ifndef LIBX11_SYSTEM | |
3955 #define LIBX11_SYSTEM | |
3956 #endif | |
3957 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
3958 | |
3959 #ifdef UNEXEC | |
3960 configure___ unexec=UNEXEC | |
3961 #else | |
3962 configure___ unexec=unexec.o | |
3963 #endif | |
3964 | |
3965 #ifdef SYSTEM_MALLOC | |
3966 configure___ system_malloc=yes | |
3967 #else | |
3968 configure___ system_malloc=no | |
3969 #endif | |
3970 | |
31607 | 3971 #ifdef USE_MMAP_FOR_BUFFERS |
3972 configure___ use_mmap_for_buffers=yes | |
31417 | 3973 #else |
31607 | 3974 configure___ use_mmap_for_buffers=no |
31417 | 3975 #endif |
3976 | |
30311 | 3977 #ifndef C_DEBUG_SWITCH |
3978 #define C_DEBUG_SWITCH -g | |
3979 #endif | |
3980 | |
3981 #ifndef C_OPTIMIZE_SWITCH | |
3982 #ifdef __GNUC__ | |
3983 #define C_OPTIMIZE_SWITCH -O2 | |
3984 #else | |
3985 #define C_OPTIMIZE_SWITCH -O | |
3986 #endif | |
3987 #endif | |
3988 | |
3989 #ifndef LD_SWITCH_MACHINE | |
3990 #define LD_SWITCH_MACHINE | |
3991 #endif | |
3992 | |
3993 #ifndef LD_SWITCH_SYSTEM | |
3994 #define LD_SWITCH_SYSTEM | |
3995 #endif | |
3996 | |
3997 #ifndef LD_SWITCH_X_SITE_AUX | |
3998 #define LD_SWITCH_X_SITE_AUX | |
40056 | 3999 #endif |
30311 | 4000 |
4001 configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
4002 configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
4003 | |
4004 #ifdef THIS_IS_CONFIGURE | |
4005 | |
4006 /* Get the CFLAGS for tests in configure. */ | |
4007 #ifdef __GNUC__ | |
4008 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
4009 #else | |
4010 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
4011 #endif | |
4012 | |
4013 #else /* not THIS_IS_CONFIGURE */ | |
4014 | |
4015 /* Get the CFLAGS for real compilation. */ | |
4016 #ifdef __GNUC__ | |
4017 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
4018 #else | |
4019 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
4020 #endif | |
4021 | |
4022 #endif /* not THIS_IS_CONFIGURE */ | |
4023 ' > ${tempcname} | |
4024 | |
4025 # The value of CPP is a quoted variable reference, so we need to do this | |
4026 # to get its actual value... | |
4027 CPP=`eval "echo $CPP"` | |
4028 eval `${CPP} -Isrc ${tempcname} \ | |
4029 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
4030 if test "x$SPECIFIED_CFLAGS" = x; then | |
4031 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
4032 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
4033 else | |
4034 REAL_CFLAGS="$CFLAGS" | |
4035 fi | |
4036 rm ${tempcname} | |
4037 | |
4038 ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
4039 | |
4040 ### Make sure subsequent tests use flags consistent with the build flags. | |
4041 | |
4042 if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
4043 CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
4044 else | |
4045 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
4046 fi | |
4047 | |
40056 | 4048 # Check whether --enable-largefile or --disable-largefile was given. |
30576 | 4049 if test "${enable_largefile+set}" = set; then |
4050 enableval="$enable_largefile" | |
40056 | 4051 |
4052 fi; | |
4053 if test "$enable_largefile" != no; then | |
4054 | |
44493 | 4055 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
40056 | 4056 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
4057 if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
4058 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30576 | 4059 else |
4060 ac_cv_sys_largefile_CC=no | |
40056 | 4061 if test "$GCC" != yes; then |
4062 ac_save_CC=$CC | |
4063 while :; do | |
4064 # IRIX 6.2 and later do not support large files by default, | |
4065 # so use the C compiler's -n32 option if that helps. | |
4066 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 4067 #line $LINENO "configure" |
30576 | 4068 #include "confdefs.h" |
4069 #include <sys/types.h> | |
40056 | 4070 /* Check that off_t can represent 2**63 - 1 correctly. |
4071 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4072 since some C++ compilers masquerading as C compilers | |
4073 incorrectly reject 9223372036854775807. */ | |
4074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4076 && LARGE_OFF_T % 2147483647 == 1) | |
4077 ? 1 : -1]; | |
44493 | 4078 #ifdef F77_DUMMY_MAIN |
4079 # ifdef __cplusplus | |
4080 extern "C" | |
4081 # endif | |
4082 int F77_DUMMY_MAIN() { return 1; } | |
4083 #endif | |
40056 | 4084 int |
4085 main () | |
4086 { | |
4087 | |
4088 ; | |
4089 return 0; | |
4090 } | |
4091 _ACEOF | |
4092 rm -f conftest.$ac_objext | |
44493 | 4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4094 (eval $ac_compile) 2>&5 | |
4095 ac_status=$? | |
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4097 (exit $ac_status); } && | |
4098 { ac_try='test -s conftest.$ac_objext' | |
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4100 (eval $ac_try) 2>&5 | |
4101 ac_status=$? | |
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 4103 (exit $ac_status); }; }; then |
4104 break | |
4105 else | |
4106 echo "$as_me: failed program was:" >&5 | |
4107 cat conftest.$ac_ext >&5 | |
4108 fi | |
4109 rm -f conftest.$ac_objext | |
4110 CC="$CC -n32" | |
4111 rm -f conftest.$ac_objext | |
44493 | 4112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4113 (eval $ac_compile) 2>&5 | |
4114 ac_status=$? | |
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4116 (exit $ac_status); } && | |
4117 { ac_try='test -s conftest.$ac_objext' | |
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4119 (eval $ac_try) 2>&5 | |
4120 ac_status=$? | |
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 4122 (exit $ac_status); }; }; then |
4123 ac_cv_sys_largefile_CC=' -n32'; break | |
4124 else | |
4125 echo "$as_me: failed program was:" >&5 | |
4126 cat conftest.$ac_ext >&5 | |
4127 fi | |
4128 rm -f conftest.$ac_objext | |
4129 break | |
4130 done | |
4131 CC=$ac_save_CC | |
4132 rm -f conftest.$ac_ext | |
4133 fi | |
4134 fi | |
44493 | 4135 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
40056 | 4136 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
4137 if test "$ac_cv_sys_largefile_CC" != no; then | |
4138 CC=$CC$ac_cv_sys_largefile_CC | |
4139 fi | |
4140 | |
44493 | 4141 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
40056 | 4142 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
4143 if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
4144 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4145 else | |
4146 while :; do | |
30576 | 4147 ac_cv_sys_file_offset_bits=no |
40056 | 4148 cat >conftest.$ac_ext <<_ACEOF |
44493 | 4149 #line $LINENO "configure" |
30576 | 4150 #include "confdefs.h" |
4151 #include <sys/types.h> | |
40056 | 4152 /* Check that off_t can represent 2**63 - 1 correctly. |
4153 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4154 since some C++ compilers masquerading as C compilers | |
4155 incorrectly reject 9223372036854775807. */ | |
4156 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4157 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4158 && LARGE_OFF_T % 2147483647 == 1) | |
4159 ? 1 : -1]; | |
44493 | 4160 #ifdef F77_DUMMY_MAIN |
4161 # ifdef __cplusplus | |
4162 extern "C" | |
4163 # endif | |
4164 int F77_DUMMY_MAIN() { return 1; } | |
4165 #endif | |
4166 int | |
4167 main () | |
4168 { | |
4169 | |
4170 ; | |
4171 return 0; | |
4172 } | |
4173 _ACEOF | |
4174 rm -f conftest.$ac_objext | |
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4176 (eval $ac_compile) 2>&5 | |
4177 ac_status=$? | |
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4179 (exit $ac_status); } && | |
4180 { ac_try='test -s conftest.$ac_objext' | |
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4182 (eval $ac_try) 2>&5 | |
4183 ac_status=$? | |
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 4185 (exit $ac_status); }; }; then |
4186 break | |
4187 else | |
4188 echo "$as_me: failed program was:" >&5 | |
4189 cat conftest.$ac_ext >&5 | |
4190 fi | |
4191 rm -f conftest.$ac_objext conftest.$ac_ext | |
4192 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 4193 #line $LINENO "configure" |
30576 | 4194 #include "confdefs.h" |
4195 #define _FILE_OFFSET_BITS 64 | |
4196 #include <sys/types.h> | |
40056 | 4197 /* Check that off_t can represent 2**63 - 1 correctly. |
4198 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4199 since some C++ compilers masquerading as C compilers | |
4200 incorrectly reject 9223372036854775807. */ | |
4201 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4202 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4203 && LARGE_OFF_T % 2147483647 == 1) | |
4204 ? 1 : -1]; | |
44493 | 4205 #ifdef F77_DUMMY_MAIN |
4206 # ifdef __cplusplus | |
4207 extern "C" | |
4208 # endif | |
4209 int F77_DUMMY_MAIN() { return 1; } | |
4210 #endif | |
4211 int | |
4212 main () | |
4213 { | |
4214 | |
4215 ; | |
4216 return 0; | |
4217 } | |
4218 _ACEOF | |
4219 rm -f conftest.$ac_objext | |
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4221 (eval $ac_compile) 2>&5 | |
4222 ac_status=$? | |
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4224 (exit $ac_status); } && | |
4225 { ac_try='test -s conftest.$ac_objext' | |
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4227 (eval $ac_try) 2>&5 | |
4228 ac_status=$? | |
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 4230 (exit $ac_status); }; }; then |
4231 ac_cv_sys_file_offset_bits=64; break | |
4232 else | |
4233 echo "$as_me: failed program was:" >&5 | |
4234 cat conftest.$ac_ext >&5 | |
4235 fi | |
4236 rm -f conftest.$ac_objext conftest.$ac_ext | |
4237 break | |
4238 done | |
4239 fi | |
44493 | 4240 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
40056 | 4241 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
4242 if test "$ac_cv_sys_file_offset_bits" != no; then | |
4243 | |
44493 | 4244 cat >>confdefs.h <<_ACEOF |
40056 | 4245 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
44493 | 4246 _ACEOF |
40056 | 4247 |
30576 | 4248 fi |
4249 rm -f conftest* | |
44493 | 4250 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
40056 | 4251 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
4252 if test "${ac_cv_sys_large_files+set}" = set; then | |
4253 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4254 else | |
4255 while :; do | |
34431 | 4256 ac_cv_sys_large_files=no |
40056 | 4257 cat >conftest.$ac_ext <<_ACEOF |
44493 | 4258 #line $LINENO "configure" |
40056 | 4259 #include "confdefs.h" |
4260 #include <sys/types.h> | |
4261 /* Check that off_t can represent 2**63 - 1 correctly. | |
4262 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4263 since some C++ compilers masquerading as C compilers | |
4264 incorrectly reject 9223372036854775807. */ | |
4265 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4267 && LARGE_OFF_T % 2147483647 == 1) | |
4268 ? 1 : -1]; | |
44493 | 4269 #ifdef F77_DUMMY_MAIN |
4270 # ifdef __cplusplus | |
4271 extern "C" | |
4272 # endif | |
4273 int F77_DUMMY_MAIN() { return 1; } | |
4274 #endif | |
4275 int | |
4276 main () | |
4277 { | |
4278 | |
4279 ; | |
4280 return 0; | |
4281 } | |
4282 _ACEOF | |
4283 rm -f conftest.$ac_objext | |
4284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4285 (eval $ac_compile) 2>&5 | |
4286 ac_status=$? | |
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4288 (exit $ac_status); } && | |
4289 { ac_try='test -s conftest.$ac_objext' | |
4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4291 (eval $ac_try) 2>&5 | |
4292 ac_status=$? | |
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 4294 (exit $ac_status); }; }; then |
4295 break | |
4296 else | |
4297 echo "$as_me: failed program was:" >&5 | |
4298 cat conftest.$ac_ext >&5 | |
4299 fi | |
4300 rm -f conftest.$ac_objext conftest.$ac_ext | |
4301 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 4302 #line $LINENO "configure" |
30576 | 4303 #include "confdefs.h" |
4304 #define _LARGE_FILES 1 | |
40056 | 4305 #include <sys/types.h> |
4306 /* Check that off_t can represent 2**63 - 1 correctly. | |
4307 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4308 since some C++ compilers masquerading as C compilers | |
4309 incorrectly reject 9223372036854775807. */ | |
4310 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4311 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4312 && LARGE_OFF_T % 2147483647 == 1) | |
4313 ? 1 : -1]; | |
44493 | 4314 #ifdef F77_DUMMY_MAIN |
4315 # ifdef __cplusplus | |
4316 extern "C" | |
4317 # endif | |
4318 int F77_DUMMY_MAIN() { return 1; } | |
4319 #endif | |
4320 int | |
4321 main () | |
4322 { | |
4323 | |
4324 ; | |
4325 return 0; | |
4326 } | |
4327 _ACEOF | |
4328 rm -f conftest.$ac_objext | |
4329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4330 (eval $ac_compile) 2>&5 | |
4331 ac_status=$? | |
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4333 (exit $ac_status); } && | |
4334 { ac_try='test -s conftest.$ac_objext' | |
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4336 (eval $ac_try) 2>&5 | |
4337 ac_status=$? | |
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 4339 (exit $ac_status); }; }; then |
4340 ac_cv_sys_large_files=1; break | |
4341 else | |
4342 echo "$as_me: failed program was:" >&5 | |
4343 cat conftest.$ac_ext >&5 | |
4344 fi | |
4345 rm -f conftest.$ac_objext conftest.$ac_ext | |
4346 break | |
4347 done | |
4348 fi | |
44493 | 4349 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
40056 | 4350 echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
4351 if test "$ac_cv_sys_large_files" != no; then | |
4352 | |
44493 | 4353 cat >>confdefs.h <<_ACEOF |
40056 | 4354 #define _LARGE_FILES $ac_cv_sys_large_files |
44493 | 4355 _ACEOF |
40056 | 4356 |
30576 | 4357 fi |
4358 rm -f conftest* | |
4359 fi | |
4360 | |
44493 | 4361 |
44435 | 4362 if test "${with_sound}" != "no"; then |
4363 # Sound support for GNU/Linux and the free BSDs. | |
44493 | 4364 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4365 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4366 if test "${ac_cv_header_stdc+set}" = set; then | |
4367 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4368 else | |
4369 cat >conftest.$ac_ext <<_ACEOF | |
4370 #line $LINENO "configure" | |
4371 #include "confdefs.h" | |
4372 #include <stdlib.h> | |
4373 #include <stdarg.h> | |
4374 #include <string.h> | |
4375 #include <float.h> | |
4376 | |
4377 _ACEOF | |
4378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
40056 | 4379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4380 ac_status=$? | |
4381 egrep -v '^ *\+' conftest.er1 >conftest.err | |
4382 rm -f conftest.er1 | |
4383 cat conftest.err >&5 | |
44493 | 4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 4385 (exit $ac_status); } >/dev/null; then |
4386 if test -s conftest.err; then | |
4387 ac_cpp_err=$ac_c_preproc_warn_flag | |
4388 else | |
4389 ac_cpp_err= | |
4390 fi | |
4391 else | |
4392 ac_cpp_err=yes | |
4393 fi | |
4394 if test -z "$ac_cpp_err"; then | |
25897 | 4395 ac_cv_header_stdc=yes |
4396 else | |
40056 | 4397 echo "$as_me: failed program was:" >&5 |
25897 | 4398 cat conftest.$ac_ext >&5 |
4399 ac_cv_header_stdc=no | |
4400 fi | |
40056 | 4401 rm -f conftest.err conftest.$ac_ext |
25897 | 4402 |
4403 if test $ac_cv_header_stdc = yes; then | |
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
40056 | 4405 cat >conftest.$ac_ext <<_ACEOF |
44493 | 4406 #line $LINENO "configure" |
25897 | 4407 #include "confdefs.h" |
4408 #include <string.h> | |
40056 | 4409 |
4410 _ACEOF | |
25897 | 4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4412 egrep "memchr" >/dev/null 2>&1; then | |
4413 : | |
4414 else | |
4415 ac_cv_header_stdc=no | |
4416 fi | |
4417 rm -f conftest* | |
4418 | |
4419 fi | |
4420 | |
4421 if test $ac_cv_header_stdc = yes; then | |
4422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
40056 | 4423 cat >conftest.$ac_ext <<_ACEOF |
44493 | 4424 #line $LINENO "configure" |
25897 | 4425 #include "confdefs.h" |
4426 #include <stdlib.h> | |
40056 | 4427 |
4428 _ACEOF | |
25897 | 4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4430 egrep "free" >/dev/null 2>&1; then | |
4431 : | |
4432 else | |
4433 ac_cv_header_stdc=no | |
4434 fi | |
4435 rm -f conftest* | |
4436 | |
4437 fi | |
4438 | |
4439 if test $ac_cv_header_stdc = yes; then | |
4440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
40056 | 4441 if test "$cross_compiling" = yes; then |
25897 | 4442 : |
4443 else | |
40056 | 4444 cat >conftest.$ac_ext <<_ACEOF |
44493 | 4445 #line $LINENO "configure" |
25897 | 4446 #include "confdefs.h" |
4447 #include <ctype.h> | |
40056 | 4448 #if ((' ' & 0x0FF) == 0x020) |
4449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4451 #else | |
4452 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4453 || ('j' <= (c) && (c) <= 'r') \ | |
4454 || ('s' <= (c) && (c) <= 'z')) | |
4455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4456 #endif | |
4457 | |
25897 | 4458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
40056 | 4459 int |
4460 main () | |
4461 { | |
4462 int i; | |
4463 for (i = 0; i < 256; i++) | |
4464 if (XOR (islower (i), ISLOWER (i)) | |
4465 || toupper (i) != TOUPPER (i)) | |
4466 exit(2); | |
4467 exit (0); | |
4468 } | |
4469 _ACEOF | |
4470 rm -f conftest$ac_exeext | |
44493 | 4471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4472 (eval $ac_link) 2>&5 | |
4473 ac_status=$? | |
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 4475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
44493 | 4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4477 (eval $ac_try) 2>&5 | |
4478 ac_status=$? | |
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 4480 (exit $ac_status); }; }; then |
25897 | 4481 : |
4482 else | |
40056 | 4483 echo "$as_me: program exited with status $ac_status" >&5 |
4484 echo "$as_me: failed program was:" >&5 | |
4485 cat conftest.$ac_ext >&5 | |
44493 | 4486 ( exit $ac_status ) |
40056 | 4487 ac_cv_header_stdc=no |
4488 fi | |
4489 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4490 fi | |
4491 fi | |
4492 fi | |
44493 | 4493 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
40056 | 4494 echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
25897 | 4495 if test $ac_cv_header_stdc = yes; then |
40056 | 4496 |
44493 | 4497 cat >>confdefs.h <<\_ACEOF |
25897 | 4498 #define STDC_HEADERS 1 |
44493 | 4499 _ACEOF |
4500 | |
4501 fi | |
4502 | |
4503 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4504 | |
4505 | |
4506 | |
4507 | |
4508 | |
4509 | |
4510 | |
4511 | |
4512 | |
4513 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4514 inttypes.h stdint.h unistd.h | |
4515 do | |
4516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4517 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4519 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4520 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4521 else | |
4522 cat >conftest.$ac_ext <<_ACEOF | |
4523 #line $LINENO "configure" | |
4524 #include "confdefs.h" | |
4525 $ac_includes_default | |
4526 | |
4527 #include <$ac_header> | |
4528 _ACEOF | |
4529 rm -f conftest.$ac_objext | |
4530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4531 (eval $ac_compile) 2>&5 | |
4532 ac_status=$? | |
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4534 (exit $ac_status); } && | |
4535 { ac_try='test -s conftest.$ac_objext' | |
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4537 (eval $ac_try) 2>&5 | |
4538 ac_status=$? | |
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4540 (exit $ac_status); }; }; then | |
4541 eval "$as_ac_Header=yes" | |
4542 else | |
4543 echo "$as_me: failed program was:" >&5 | |
4544 cat conftest.$ac_ext >&5 | |
4545 eval "$as_ac_Header=no" | |
4546 fi | |
4547 rm -f conftest.$ac_objext conftest.$ac_ext | |
4548 fi | |
4549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4551 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4552 cat >>confdefs.h <<_ACEOF | |
4553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4554 _ACEOF | |
4555 | |
4556 fi | |
4557 | |
4558 done | |
4559 | |
4560 | |
4561 | |
4562 | |
4563 | |
4564 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
4565 do | |
4566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4567 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4568 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4570 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4571 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4572 fi | |
4573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4575 else | |
4576 # Is the header compilable? | |
4577 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4579 cat >conftest.$ac_ext <<_ACEOF | |
4580 #line $LINENO "configure" | |
4581 #include "confdefs.h" | |
4582 $ac_includes_default | |
4583 #include <$ac_header> | |
4584 _ACEOF | |
4585 rm -f conftest.$ac_objext | |
4586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4587 (eval $ac_compile) 2>&5 | |
4588 ac_status=$? | |
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4590 (exit $ac_status); } && | |
4591 { ac_try='test -s conftest.$ac_objext' | |
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4593 (eval $ac_try) 2>&5 | |
4594 ac_status=$? | |
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4596 (exit $ac_status); }; }; then | |
4597 ac_header_compiler=yes | |
4598 else | |
4599 echo "$as_me: failed program was:" >&5 | |
4600 cat conftest.$ac_ext >&5 | |
4601 ac_header_compiler=no | |
4602 fi | |
4603 rm -f conftest.$ac_objext conftest.$ac_ext | |
4604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4605 echo "${ECHO_T}$ac_header_compiler" >&6 | |
4606 | |
4607 # Is the header present? | |
4608 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4610 cat >conftest.$ac_ext <<_ACEOF | |
4611 #line $LINENO "configure" | |
4612 #include "confdefs.h" | |
4613 #include <$ac_header> | |
4614 _ACEOF | |
4615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4617 ac_status=$? | |
4618 egrep -v '^ *\+' conftest.er1 >conftest.err | |
4619 rm -f conftest.er1 | |
4620 cat conftest.err >&5 | |
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4622 (exit $ac_status); } >/dev/null; then | |
4623 if test -s conftest.err; then | |
4624 ac_cpp_err=$ac_c_preproc_warn_flag | |
4625 else | |
4626 ac_cpp_err= | |
4627 fi | |
4628 else | |
4629 ac_cpp_err=yes | |
4630 fi | |
4631 if test -z "$ac_cpp_err"; then | |
4632 ac_header_preproc=yes | |
4633 else | |
4634 echo "$as_me: failed program was:" >&5 | |
4635 cat conftest.$ac_ext >&5 | |
4636 ac_header_preproc=no | |
4637 fi | |
4638 rm -f conftest.err conftest.$ac_ext | |
4639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4640 echo "${ECHO_T}$ac_header_preproc" >&6 | |
4641 | |
4642 # So? What about this header? | |
4643 case $ac_header_compiler:$ac_header_preproc in | |
4644 yes:no ) | |
4645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4649 no:yes ) | |
4650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4656 esac | |
4657 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4659 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4660 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4661 else | |
4662 eval "$as_ac_Header=$ac_header_preproc" | |
4663 fi | |
4664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4666 | |
4667 fi | |
4668 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4669 cat >>confdefs.h <<_ACEOF | |
4670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4671 _ACEOF | |
4672 | |
4673 fi | |
4674 | |
4675 done | |
4676 | |
4677 # Emulation library used on NetBSD. | |
4678 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 | |
4679 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 | |
4680 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | |
4681 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4682 else | |
4683 ac_check_lib_save_LIBS=$LIBS | |
4684 LIBS="-lossaudio $LIBS" | |
4685 cat >conftest.$ac_ext <<_ACEOF | |
4686 #line $LINENO "configure" | |
4687 #include "confdefs.h" | |
4688 | |
4689 /* Override any gcc2 internal prototype to avoid an error. */ | |
4690 #ifdef __cplusplus | |
4691 extern "C" | |
4692 #endif | |
4693 /* We use char because int might match the return type of a gcc2 | |
4694 builtin and then its argument prototype would still apply. */ | |
4695 char _oss_ioctl (); | |
4696 #ifdef F77_DUMMY_MAIN | |
4697 # ifdef __cplusplus | |
4698 extern "C" | |
4699 # endif | |
4700 int F77_DUMMY_MAIN() { return 1; } | |
4701 #endif | |
4702 int | |
4703 main () | |
4704 { | |
4705 _oss_ioctl (); | |
4706 ; | |
4707 return 0; | |
4708 } | |
4709 _ACEOF | |
4710 rm -f conftest.$ac_objext conftest$ac_exeext | |
4711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4712 (eval $ac_link) 2>&5 | |
4713 ac_status=$? | |
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4715 (exit $ac_status); } && | |
4716 { ac_try='test -s conftest$ac_exeext' | |
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4718 (eval $ac_try) 2>&5 | |
4719 ac_status=$? | |
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4721 (exit $ac_status); }; }; then | |
4722 ac_cv_lib_ossaudio__oss_ioctl=yes | |
4723 else | |
4724 echo "$as_me: failed program was:" >&5 | |
4725 cat conftest.$ac_ext >&5 | |
4726 ac_cv_lib_ossaudio__oss_ioctl=no | |
4727 fi | |
4728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4729 LIBS=$ac_check_lib_save_LIBS | |
4730 fi | |
4731 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 | |
4732 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 | |
4733 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | |
4734 LIBSOUND=-lossaudio | |
4735 else | |
4736 LIBSOUND= | |
4737 fi | |
4738 | |
4739 | |
4740 fi | |
4741 | |
4742 | |
4743 | |
4744 | |
4745 | |
4746 | |
4747 | |
4748 | |
4749 | |
4750 | |
4751 | |
4752 | |
4753 | |
4754 | |
4755 | |
4756 | |
4757 | |
4758 | |
4759 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | |
4760 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | |
4761 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h | |
4762 do | |
4763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4764 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4765 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4767 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4768 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4769 fi | |
4770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4772 else | |
4773 # Is the header compilable? | |
4774 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4776 cat >conftest.$ac_ext <<_ACEOF | |
4777 #line $LINENO "configure" | |
4778 #include "confdefs.h" | |
4779 $ac_includes_default | |
4780 #include <$ac_header> | |
4781 _ACEOF | |
4782 rm -f conftest.$ac_objext | |
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4784 (eval $ac_compile) 2>&5 | |
4785 ac_status=$? | |
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4787 (exit $ac_status); } && | |
4788 { ac_try='test -s conftest.$ac_objext' | |
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4790 (eval $ac_try) 2>&5 | |
4791 ac_status=$? | |
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4793 (exit $ac_status); }; }; then | |
4794 ac_header_compiler=yes | |
4795 else | |
4796 echo "$as_me: failed program was:" >&5 | |
4797 cat conftest.$ac_ext >&5 | |
4798 ac_header_compiler=no | |
4799 fi | |
4800 rm -f conftest.$ac_objext conftest.$ac_ext | |
4801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4802 echo "${ECHO_T}$ac_header_compiler" >&6 | |
4803 | |
4804 # Is the header present? | |
4805 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4807 cat >conftest.$ac_ext <<_ACEOF | |
4808 #line $LINENO "configure" | |
4809 #include "confdefs.h" | |
4810 #include <$ac_header> | |
4811 _ACEOF | |
4812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4814 ac_status=$? | |
4815 egrep -v '^ *\+' conftest.er1 >conftest.err | |
4816 rm -f conftest.er1 | |
4817 cat conftest.err >&5 | |
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4819 (exit $ac_status); } >/dev/null; then | |
4820 if test -s conftest.err; then | |
4821 ac_cpp_err=$ac_c_preproc_warn_flag | |
4822 else | |
4823 ac_cpp_err= | |
4824 fi | |
4825 else | |
4826 ac_cpp_err=yes | |
4827 fi | |
4828 if test -z "$ac_cpp_err"; then | |
4829 ac_header_preproc=yes | |
4830 else | |
4831 echo "$as_me: failed program was:" >&5 | |
4832 cat conftest.$ac_ext >&5 | |
4833 ac_header_preproc=no | |
4834 fi | |
4835 rm -f conftest.err conftest.$ac_ext | |
4836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4837 echo "${ECHO_T}$ac_header_preproc" >&6 | |
4838 | |
4839 # So? What about this header? | |
4840 case $ac_header_compiler:$ac_header_preproc in | |
4841 yes:no ) | |
4842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4846 no:yes ) | |
4847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
4853 esac | |
4854 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4856 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4857 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4858 else | |
4859 eval "$as_ac_Header=$ac_header_preproc" | |
4860 fi | |
4861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4863 | |
4864 fi | |
4865 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4866 cat >>confdefs.h <<_ACEOF | |
4867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4868 _ACEOF | |
4869 | |
4870 fi | |
4871 | |
4872 done | |
4873 | |
4874 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4875 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4876 if test "${ac_cv_header_stdc+set}" = set; then | |
4877 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4878 else | |
4879 cat >conftest.$ac_ext <<_ACEOF | |
4880 #line $LINENO "configure" | |
4881 #include "confdefs.h" | |
4882 #include <stdlib.h> | |
4883 #include <stdarg.h> | |
4884 #include <string.h> | |
4885 #include <float.h> | |
4886 | |
4887 _ACEOF | |
4888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4890 ac_status=$? | |
4891 egrep -v '^ *\+' conftest.er1 >conftest.err | |
4892 rm -f conftest.er1 | |
4893 cat conftest.err >&5 | |
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4895 (exit $ac_status); } >/dev/null; then | |
4896 if test -s conftest.err; then | |
4897 ac_cpp_err=$ac_c_preproc_warn_flag | |
4898 else | |
4899 ac_cpp_err= | |
4900 fi | |
4901 else | |
4902 ac_cpp_err=yes | |
4903 fi | |
4904 if test -z "$ac_cpp_err"; then | |
4905 ac_cv_header_stdc=yes | |
4906 else | |
4907 echo "$as_me: failed program was:" >&5 | |
4908 cat conftest.$ac_ext >&5 | |
4909 ac_cv_header_stdc=no | |
4910 fi | |
4911 rm -f conftest.err conftest.$ac_ext | |
4912 | |
4913 if test $ac_cv_header_stdc = yes; then | |
4914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4915 cat >conftest.$ac_ext <<_ACEOF | |
4916 #line $LINENO "configure" | |
4917 #include "confdefs.h" | |
4918 #include <string.h> | |
4919 | |
4920 _ACEOF | |
4921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4922 egrep "memchr" >/dev/null 2>&1; then | |
4923 : | |
4924 else | |
4925 ac_cv_header_stdc=no | |
4926 fi | |
4927 rm -f conftest* | |
4928 | |
4929 fi | |
4930 | |
4931 if test $ac_cv_header_stdc = yes; then | |
4932 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4933 cat >conftest.$ac_ext <<_ACEOF | |
4934 #line $LINENO "configure" | |
4935 #include "confdefs.h" | |
4936 #include <stdlib.h> | |
4937 | |
4938 _ACEOF | |
4939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4940 egrep "free" >/dev/null 2>&1; then | |
4941 : | |
4942 else | |
4943 ac_cv_header_stdc=no | |
4944 fi | |
4945 rm -f conftest* | |
4946 | |
4947 fi | |
4948 | |
4949 if test $ac_cv_header_stdc = yes; then | |
4950 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4951 if test "$cross_compiling" = yes; then | |
4952 : | |
4953 else | |
4954 cat >conftest.$ac_ext <<_ACEOF | |
4955 #line $LINENO "configure" | |
4956 #include "confdefs.h" | |
4957 #include <ctype.h> | |
4958 #if ((' ' & 0x0FF) == 0x020) | |
4959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4961 #else | |
4962 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4963 || ('j' <= (c) && (c) <= 'r') \ | |
4964 || ('s' <= (c) && (c) <= 'z')) | |
4965 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4966 #endif | |
4967 | |
4968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4969 int | |
4970 main () | |
4971 { | |
4972 int i; | |
4973 for (i = 0; i < 256; i++) | |
4974 if (XOR (islower (i), ISLOWER (i)) | |
4975 || toupper (i) != TOUPPER (i)) | |
4976 exit(2); | |
4977 exit (0); | |
4978 } | |
4979 _ACEOF | |
4980 rm -f conftest$ac_exeext | |
4981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4982 (eval $ac_link) 2>&5 | |
4983 ac_status=$? | |
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4987 (eval $ac_try) 2>&5 | |
4988 ac_status=$? | |
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4990 (exit $ac_status); }; }; then | |
4991 : | |
4992 else | |
4993 echo "$as_me: program exited with status $ac_status" >&5 | |
4994 echo "$as_me: failed program was:" >&5 | |
4995 cat conftest.$ac_ext >&5 | |
4996 ( exit $ac_status ) | |
4997 ac_cv_header_stdc=no | |
4998 fi | |
4999 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5000 fi | |
5001 fi | |
5002 fi | |
5003 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5004 echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5005 if test $ac_cv_header_stdc = yes; then | |
5006 | |
5007 cat >>confdefs.h <<\_ACEOF | |
5008 #define STDC_HEADERS 1 | |
5009 _ACEOF | |
5010 | |
5011 fi | |
5012 | |
5013 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
40056 | 5014 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
5015 if test "${ac_cv_header_time+set}" = set; then | |
5016 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5017 else | |
5018 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5019 #line $LINENO "configure" |
25897 | 5020 #include "confdefs.h" |
5021 #include <sys/types.h> | |
5022 #include <sys/time.h> | |
5023 #include <time.h> | |
40056 | 5024 |
44493 | 5025 #ifdef F77_DUMMY_MAIN |
5026 # ifdef __cplusplus | |
5027 extern "C" | |
5028 # endif | |
5029 int F77_DUMMY_MAIN() { return 1; } | |
5030 #endif | |
40056 | 5031 int |
5032 main () | |
5033 { | |
5034 if ((struct tm *) 0) | |
5035 return 0; | |
5036 ; | |
5037 return 0; | |
5038 } | |
5039 _ACEOF | |
5040 rm -f conftest.$ac_objext | |
44493 | 5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5042 (eval $ac_compile) 2>&5 | |
5043 ac_status=$? | |
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5045 (exit $ac_status); } && | |
5046 { ac_try='test -s conftest.$ac_objext' | |
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5048 (eval $ac_try) 2>&5 | |
5049 ac_status=$? | |
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5051 (exit $ac_status); }; }; then |
25897 | 5052 ac_cv_header_time=yes |
5053 else | |
40056 | 5054 echo "$as_me: failed program was:" >&5 |
5055 cat conftest.$ac_ext >&5 | |
5056 ac_cv_header_time=no | |
5057 fi | |
5058 rm -f conftest.$ac_objext conftest.$ac_ext | |
5059 fi | |
44493 | 5060 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
40056 | 5061 echo "${ECHO_T}$ac_cv_header_time" >&6 |
25897 | 5062 if test $ac_cv_header_time = yes; then |
40056 | 5063 |
44493 | 5064 cat >>confdefs.h <<\_ACEOF |
25897 | 5065 #define TIME_WITH_SYS_TIME 1 |
44493 | 5066 _ACEOF |
5067 | |
5068 fi | |
5069 | |
5070 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5 | |
40056 | 5071 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6 |
5072 if test "${ac_cv_decl_sys_siglist+set}" = set; then | |
5073 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5074 else | |
5075 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5076 #line $LINENO "configure" |
25897 | 5077 #include "confdefs.h" |
5078 #include <sys/types.h> | |
5079 #include <signal.h> | |
5080 /* NetBSD declares sys_siglist in unistd.h. */ | |
40056 | 5081 #if HAVE_UNISTD_H |
5082 # include <unistd.h> | |
5083 #endif | |
5084 | |
44493 | 5085 #ifdef F77_DUMMY_MAIN |
5086 # ifdef __cplusplus | |
5087 extern "C" | |
5088 # endif | |
5089 int F77_DUMMY_MAIN() { return 1; } | |
5090 #endif | |
40056 | 5091 int |
5092 main () | |
5093 { | |
25897 | 5094 char *msg = *(sys_siglist + 1); |
40056 | 5095 ; |
5096 return 0; | |
5097 } | |
5098 _ACEOF | |
5099 rm -f conftest.$ac_objext | |
44493 | 5100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5101 (eval $ac_compile) 2>&5 | |
5102 ac_status=$? | |
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5104 (exit $ac_status); } && | |
5105 { ac_try='test -s conftest.$ac_objext' | |
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5107 (eval $ac_try) 2>&5 | |
5108 ac_status=$? | |
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5110 (exit $ac_status); }; }; then |
25897 | 5111 ac_cv_decl_sys_siglist=yes |
5112 else | |
40056 | 5113 echo "$as_me: failed program was:" >&5 |
5114 cat conftest.$ac_ext >&5 | |
5115 ac_cv_decl_sys_siglist=no | |
5116 fi | |
5117 rm -f conftest.$ac_objext conftest.$ac_ext | |
5118 fi | |
44493 | 5119 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5 |
40056 | 5120 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6 |
25897 | 5121 if test $ac_cv_decl_sys_siglist = yes; then |
40056 | 5122 |
44493 | 5123 cat >>confdefs.h <<\_ACEOF |
25897 | 5124 #define SYS_SIGLIST_DECLARED 1 |
44493 | 5125 _ACEOF |
5126 | |
5127 fi | |
5128 | |
5129 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
40056 | 5130 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
5131 if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
5132 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5133 else | |
5134 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5135 #line $LINENO "configure" |
30069 | 5136 #include "confdefs.h" |
5137 #include <sys/types.h> | |
5138 #include <sys/wait.h> | |
5139 #ifndef WEXITSTATUS | |
40056 | 5140 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
30069 | 5141 #endif |
5142 #ifndef WIFEXITED | |
40056 | 5143 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
5144 #endif | |
5145 | |
44493 | 5146 #ifdef F77_DUMMY_MAIN |
5147 # ifdef __cplusplus | |
5148 extern "C" | |
5149 # endif | |
5150 int F77_DUMMY_MAIN() { return 1; } | |
5151 #endif | |
40056 | 5152 int |
5153 main () | |
5154 { | |
5155 int s; | |
5156 wait (&s); | |
5157 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
5158 ; | |
5159 return 0; | |
5160 } | |
5161 _ACEOF | |
5162 rm -f conftest.$ac_objext | |
44493 | 5163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5164 (eval $ac_compile) 2>&5 | |
5165 ac_status=$? | |
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5167 (exit $ac_status); } && | |
5168 { ac_try='test -s conftest.$ac_objext' | |
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5170 (eval $ac_try) 2>&5 | |
5171 ac_status=$? | |
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5173 (exit $ac_status); }; }; then |
30069 | 5174 ac_cv_header_sys_wait_h=yes |
5175 else | |
40056 | 5176 echo "$as_me: failed program was:" >&5 |
5177 cat conftest.$ac_ext >&5 | |
5178 ac_cv_header_sys_wait_h=no | |
5179 fi | |
5180 rm -f conftest.$ac_objext conftest.$ac_ext | |
5181 fi | |
44493 | 5182 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
40056 | 5183 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
30069 | 5184 if test $ac_cv_header_sys_wait_h = yes; then |
40056 | 5185 |
44493 | 5186 cat >>confdefs.h <<\_ACEOF |
30069 | 5187 #define HAVE_SYS_WAIT_H 1 |
44493 | 5188 _ACEOF |
5189 | |
5190 fi | |
5191 | |
5192 | |
5193 echo "$as_me:$LINENO: checking for struct utimbuf" >&5 | |
40056 | 5194 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 |
5195 if test "${emacs_cv_struct_utimbuf+set}" = set; then | |
5196 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5197 else | |
5198 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5199 #line $LINENO "configure" |
25897 | 5200 #include "confdefs.h" |
5201 #ifdef TIME_WITH_SYS_TIME | |
5202 #include <sys/time.h> | |
5203 #include <time.h> | |
5204 #else | |
5205 #ifdef HAVE_SYS_TIME_H | |
5206 #include <sys/time.h> | |
5207 #else | |
5208 #include <time.h> | |
5209 #endif | |
5210 #endif | |
5211 #ifdef HAVE_UTIME_H | |
5212 #include <utime.h> | |
5213 #endif | |
44493 | 5214 #ifdef F77_DUMMY_MAIN |
5215 # ifdef __cplusplus | |
5216 extern "C" | |
5217 # endif | |
5218 int F77_DUMMY_MAIN() { return 1; } | |
5219 #endif | |
40056 | 5220 int |
5221 main () | |
5222 { | |
25897 | 5223 static struct utimbuf x; x.actime = x.modtime; |
40056 | 5224 ; |
5225 return 0; | |
5226 } | |
5227 _ACEOF | |
5228 rm -f conftest.$ac_objext | |
44493 | 5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5230 (eval $ac_compile) 2>&5 | |
5231 ac_status=$? | |
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5233 (exit $ac_status); } && | |
5234 { ac_try='test -s conftest.$ac_objext' | |
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5236 (eval $ac_try) 2>&5 | |
5237 ac_status=$? | |
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5239 (exit $ac_status); }; }; then |
25897 | 5240 emacs_cv_struct_utimbuf=yes |
5241 else | |
40056 | 5242 echo "$as_me: failed program was:" >&5 |
5243 cat conftest.$ac_ext >&5 | |
5244 emacs_cv_struct_utimbuf=no | |
5245 fi | |
5246 rm -f conftest.$ac_objext conftest.$ac_ext | |
5247 fi | |
44493 | 5248 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 |
40056 | 5249 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 |
25897 | 5250 if test $emacs_cv_struct_utimbuf = yes; then |
44569 | 5251 |
5252 cat >>confdefs.h <<\_ACEOF | |
25897 | 5253 #define HAVE_STRUCT_UTIMBUF 1 |
44493 | 5254 _ACEOF |
5255 | |
5256 fi | |
5257 | |
5258 echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
40056 | 5259 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
5260 if test "${ac_cv_type_signal+set}" = set; then | |
5261 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5262 else | |
5263 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5264 #line $LINENO "configure" |
25897 | 5265 #include "confdefs.h" |
5266 #include <sys/types.h> | |
5267 #include <signal.h> | |
5268 #ifdef signal | |
40056 | 5269 # undef signal |
25897 | 5270 #endif |
5271 #ifdef __cplusplus | |
5272 extern "C" void (*signal (int, void (*)(int)))(int); | |
5273 #else | |
5274 void (*signal ()) (); | |
5275 #endif | |
5276 | |
44493 | 5277 #ifdef F77_DUMMY_MAIN |
5278 # ifdef __cplusplus | |
5279 extern "C" | |
5280 # endif | |
5281 int F77_DUMMY_MAIN() { return 1; } | |
5282 #endif | |
40056 | 5283 int |
5284 main () | |
5285 { | |
25897 | 5286 int i; |
40056 | 5287 ; |
5288 return 0; | |
5289 } | |
5290 _ACEOF | |
5291 rm -f conftest.$ac_objext | |
44493 | 5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5293 (eval $ac_compile) 2>&5 | |
5294 ac_status=$? | |
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5296 (exit $ac_status); } && | |
5297 { ac_try='test -s conftest.$ac_objext' | |
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5299 (eval $ac_try) 2>&5 | |
5300 ac_status=$? | |
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5302 (exit $ac_status); }; }; then |
25897 | 5303 ac_cv_type_signal=void |
5304 else | |
40056 | 5305 echo "$as_me: failed program was:" >&5 |
5306 cat conftest.$ac_ext >&5 | |
5307 ac_cv_type_signal=int | |
5308 fi | |
5309 rm -f conftest.$ac_objext conftest.$ac_ext | |
5310 fi | |
44493 | 5311 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
40056 | 5312 echo "${ECHO_T}$ac_cv_type_signal" >&6 |
5313 | |
44493 | 5314 cat >>confdefs.h <<_ACEOF |
25897 | 5315 #define RETSIGTYPE $ac_cv_type_signal |
44493 | 5316 _ACEOF |
5317 | |
5318 | |
5319 | |
5320 echo "$as_me:$LINENO: checking for speed_t" >&5 | |
40056 | 5321 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 |
5322 if test "${emacs_cv_speed_t+set}" = set; then | |
5323 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5324 else | |
5325 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5326 #line $LINENO "configure" |
29254 | 5327 #include "confdefs.h" |
5328 #include <termios.h> | |
44493 | 5329 #ifdef F77_DUMMY_MAIN |
5330 # ifdef __cplusplus | |
5331 extern "C" | |
5332 # endif | |
5333 int F77_DUMMY_MAIN() { return 1; } | |
5334 #endif | |
40056 | 5335 int |
5336 main () | |
5337 { | |
29254 | 5338 speed_t x = 1; |
40056 | 5339 ; |
5340 return 0; | |
5341 } | |
5342 _ACEOF | |
5343 rm -f conftest.$ac_objext | |
44493 | 5344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5345 (eval $ac_compile) 2>&5 | |
5346 ac_status=$? | |
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5348 (exit $ac_status); } && | |
5349 { ac_try='test -s conftest.$ac_objext' | |
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5351 (eval $ac_try) 2>&5 | |
5352 ac_status=$? | |
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5354 (exit $ac_status); }; }; then |
29254 | 5355 emacs_cv_speed_t=yes |
5356 else | |
40056 | 5357 echo "$as_me: failed program was:" >&5 |
5358 cat conftest.$ac_ext >&5 | |
5359 emacs_cv_speed_t=no | |
5360 fi | |
5361 rm -f conftest.$ac_objext conftest.$ac_ext | |
5362 fi | |
44493 | 5363 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 |
40056 | 5364 echo "${ECHO_T}$emacs_cv_speed_t" >&6 |
29254 | 5365 if test $emacs_cv_speed_t = yes; then |
44569 | 5366 |
5367 cat >>confdefs.h <<\_ACEOF | |
29254 | 5368 #define HAVE_SPEED_T 1 |
44493 | 5369 _ACEOF |
5370 | |
5371 fi | |
5372 | |
5373 echo "$as_me:$LINENO: checking for struct timeval" >&5 | |
40056 | 5374 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 |
5375 if test "${emacs_cv_struct_timeval+set}" = set; then | |
5376 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5377 else | |
5378 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5379 #line $LINENO "configure" |
25897 | 5380 #include "confdefs.h" |
5381 #ifdef TIME_WITH_SYS_TIME | |
5382 #include <sys/time.h> | |
5383 #include <time.h> | |
5384 #else | |
5385 #ifdef HAVE_SYS_TIME_H | |
5386 #include <sys/time.h> | |
5387 #else | |
5388 #include <time.h> | |
5389 #endif | |
5390 #endif | |
44493 | 5391 #ifdef F77_DUMMY_MAIN |
5392 # ifdef __cplusplus | |
5393 extern "C" | |
5394 # endif | |
5395 int F77_DUMMY_MAIN() { return 1; } | |
5396 #endif | |
40056 | 5397 int |
5398 main () | |
5399 { | |
25897 | 5400 static struct timeval x; x.tv_sec = x.tv_usec; |
40056 | 5401 ; |
5402 return 0; | |
5403 } | |
5404 _ACEOF | |
5405 rm -f conftest.$ac_objext | |
44493 | 5406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5407 (eval $ac_compile) 2>&5 | |
5408 ac_status=$? | |
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5410 (exit $ac_status); } && | |
5411 { ac_try='test -s conftest.$ac_objext' | |
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5413 (eval $ac_try) 2>&5 | |
5414 ac_status=$? | |
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5416 (exit $ac_status); }; }; then |
25897 | 5417 emacs_cv_struct_timeval=yes |
5418 else | |
40056 | 5419 echo "$as_me: failed program was:" >&5 |
5420 cat conftest.$ac_ext >&5 | |
5421 emacs_cv_struct_timeval=no | |
5422 fi | |
5423 rm -f conftest.$ac_objext conftest.$ac_ext | |
5424 fi | |
44493 | 5425 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 |
40056 | 5426 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 |
25897 | 5427 HAVE_TIMEVAL=$emacs_cv_struct_timeval |
5428 if test $emacs_cv_struct_timeval = yes; then | |
44569 | 5429 |
5430 cat >>confdefs.h <<\_ACEOF | |
25897 | 5431 #define HAVE_TIMEVAL 1 |
44493 | 5432 _ACEOF |
5433 | |
5434 fi | |
5435 | |
5436 echo "$as_me:$LINENO: checking for struct exception" >&5 | |
40056 | 5437 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 |
5438 if test "${emacs_cv_struct_exception+set}" = set; then | |
5439 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5440 else | |
5441 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5442 #line $LINENO "configure" |
29388 | 5443 #include "confdefs.h" |
5444 #include <math.h> | |
44493 | 5445 #ifdef F77_DUMMY_MAIN |
5446 # ifdef __cplusplus | |
5447 extern "C" | |
5448 # endif | |
5449 int F77_DUMMY_MAIN() { return 1; } | |
5450 #endif | |
40056 | 5451 int |
5452 main () | |
5453 { | |
29388 | 5454 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
40056 | 5455 ; |
5456 return 0; | |
5457 } | |
5458 _ACEOF | |
5459 rm -f conftest.$ac_objext | |
44493 | 5460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5461 (eval $ac_compile) 2>&5 | |
5462 ac_status=$? | |
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5464 (exit $ac_status); } && | |
5465 { ac_try='test -s conftest.$ac_objext' | |
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5467 (eval $ac_try) 2>&5 | |
5468 ac_status=$? | |
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5470 (exit $ac_status); }; }; then |
29388 | 5471 emacs_cv_struct_exception=yes |
5472 else | |
40056 | 5473 echo "$as_me: failed program was:" >&5 |
5474 cat conftest.$ac_ext >&5 | |
5475 emacs_cv_struct_exception=no | |
5476 fi | |
5477 rm -f conftest.$ac_objext conftest.$ac_ext | |
5478 fi | |
44493 | 5479 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 |
40056 | 5480 echo "${ECHO_T}$emacs_cv_struct_exception" >&6 |
29388 | 5481 HAVE_EXCEPTION=$emacs_cv_struct_exception |
5482 if test $emacs_cv_struct_exception != yes; then | |
44569 | 5483 |
5484 cat >>confdefs.h <<\_ACEOF | |
29388 | 5485 #define NO_MATHERR 1 |
44493 | 5486 _ACEOF |
5487 | |
5488 fi | |
5489 | |
5490 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | |
40056 | 5491 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
5492 if test "${ac_cv_struct_tm+set}" = set; then | |
5493 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5494 else | |
5495 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5496 #line $LINENO "configure" |
25897 | 5497 #include "confdefs.h" |
5498 #include <sys/types.h> | |
5499 #include <time.h> | |
40056 | 5500 |
44493 | 5501 #ifdef F77_DUMMY_MAIN |
5502 # ifdef __cplusplus | |
5503 extern "C" | |
5504 # endif | |
5505 int F77_DUMMY_MAIN() { return 1; } | |
5506 #endif | |
40056 | 5507 int |
5508 main () | |
5509 { | |
25897 | 5510 struct tm *tp; tp->tm_sec; |
40056 | 5511 ; |
5512 return 0; | |
5513 } | |
5514 _ACEOF | |
5515 rm -f conftest.$ac_objext | |
44493 | 5516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5517 (eval $ac_compile) 2>&5 | |
5518 ac_status=$? | |
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5520 (exit $ac_status); } && | |
5521 { ac_try='test -s conftest.$ac_objext' | |
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5523 (eval $ac_try) 2>&5 | |
5524 ac_status=$? | |
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5526 (exit $ac_status); }; }; then |
25897 | 5527 ac_cv_struct_tm=time.h |
5528 else | |
40056 | 5529 echo "$as_me: failed program was:" >&5 |
5530 cat conftest.$ac_ext >&5 | |
5531 ac_cv_struct_tm=sys/time.h | |
5532 fi | |
5533 rm -f conftest.$ac_objext conftest.$ac_ext | |
5534 fi | |
44493 | 5535 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
40056 | 5536 echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
25897 | 5537 if test $ac_cv_struct_tm = sys/time.h; then |
40056 | 5538 |
44493 | 5539 cat >>confdefs.h <<\_ACEOF |
25897 | 5540 #define TM_IN_SYS_TIME 1 |
44493 | 5541 _ACEOF |
5542 | |
5543 fi | |
5544 | |
5545 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 | |
40056 | 5546 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
5547 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
5548 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5549 else | |
5550 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5551 #line $LINENO "configure" |
25897 | 5552 #include "confdefs.h" |
5553 #include <sys/types.h> | |
5554 #include <$ac_cv_struct_tm> | |
40056 | 5555 |
44493 | 5556 |
5557 #ifdef F77_DUMMY_MAIN | |
5558 # ifdef __cplusplus | |
5559 extern "C" | |
5560 # endif | |
5561 int F77_DUMMY_MAIN() { return 1; } | |
5562 #endif | |
40056 | 5563 int |
5564 main () | |
5565 { | |
5566 static struct tm ac_aggr; | |
5567 if (ac_aggr.tm_zone) | |
5568 return 0; | |
5569 ; | |
5570 return 0; | |
5571 } | |
5572 _ACEOF | |
5573 rm -f conftest.$ac_objext | |
44493 | 5574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5575 (eval $ac_compile) 2>&5 | |
5576 ac_status=$? | |
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5578 (exit $ac_status); } && | |
5579 { ac_try='test -s conftest.$ac_objext' | |
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5581 (eval $ac_try) 2>&5 | |
5582 ac_status=$? | |
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5584 (exit $ac_status); }; }; then |
5585 ac_cv_member_struct_tm_tm_zone=yes | |
5586 else | |
5587 echo "$as_me: failed program was:" >&5 | |
5588 cat conftest.$ac_ext >&5 | |
5589 ac_cv_member_struct_tm_tm_zone=no | |
5590 fi | |
5591 rm -f conftest.$ac_objext conftest.$ac_ext | |
5592 fi | |
44493 | 5593 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
40056 | 5594 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
5595 if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
5596 | |
44493 | 5597 cat >>confdefs.h <<_ACEOF |
40056 | 5598 #define HAVE_STRUCT_TM_TM_ZONE 1 |
44493 | 5599 _ACEOF |
5600 | |
40056 | 5601 |
5602 fi | |
5603 | |
5604 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
5605 | |
44493 | 5606 cat >>confdefs.h <<\_ACEOF |
25897 | 5607 #define HAVE_TM_ZONE 1 |
44493 | 5608 _ACEOF |
5609 | |
5610 else | |
5611 echo "$as_me:$LINENO: checking for tzname" >&5 | |
40056 | 5612 echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
5613 if test "${ac_cv_var_tzname+set}" = set; then | |
5614 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5615 else | |
5616 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5617 #line $LINENO "configure" |
25897 | 5618 #include "confdefs.h" |
5619 #include <time.h> | |
5620 #ifndef tzname /* For SGI. */ | |
5621 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
5622 #endif | |
40056 | 5623 |
44493 | 5624 #ifdef F77_DUMMY_MAIN |
5625 # ifdef __cplusplus | |
5626 extern "C" | |
5627 # endif | |
5628 int F77_DUMMY_MAIN() { return 1; } | |
5629 #endif | |
40056 | 5630 int |
5631 main () | |
5632 { | |
25897 | 5633 atoi(*tzname); |
40056 | 5634 ; |
5635 return 0; | |
5636 } | |
5637 _ACEOF | |
5638 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 5639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5640 (eval $ac_link) 2>&5 | |
5641 ac_status=$? | |
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5643 (exit $ac_status); } && | |
5644 { ac_try='test -s conftest$ac_exeext' | |
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5646 (eval $ac_try) 2>&5 | |
5647 ac_status=$? | |
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5649 (exit $ac_status); }; }; then |
25897 | 5650 ac_cv_var_tzname=yes |
5651 else | |
40056 | 5652 echo "$as_me: failed program was:" >&5 |
5653 cat conftest.$ac_ext >&5 | |
5654 ac_cv_var_tzname=no | |
5655 fi | |
5656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5657 fi | |
44493 | 5658 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
40056 | 5659 echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
25897 | 5660 if test $ac_cv_var_tzname = yes; then |
40056 | 5661 |
44493 | 5662 cat >>confdefs.h <<\_ACEOF |
25897 | 5663 #define HAVE_TZNAME 1 |
44493 | 5664 _ACEOF |
5665 | |
5666 fi | |
5667 fi | |
5668 | |
44569 | 5669 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 |
5670 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6 | |
5671 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then | |
40056 | 5672 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5673 else | |
5674 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5675 #line $LINENO "configure" |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5676 #include "confdefs.h" |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
5677 #include <time.h> |
44569 | 5678 |
5679 #ifdef F77_DUMMY_MAIN | |
5680 # ifdef __cplusplus | |
5681 extern "C" | |
5682 # endif | |
5683 int F77_DUMMY_MAIN() { return 1; } | |
5684 #endif | |
5685 int | |
5686 main () | |
5687 { | |
5688 static struct tm ac_aggr; | |
5689 if (ac_aggr.tm_gmtoff) | |
5690 return 0; | |
5691 ; | |
5692 return 0; | |
5693 } | |
5694 _ACEOF | |
5695 rm -f conftest.$ac_objext | |
5696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5697 (eval $ac_compile) 2>&5 | |
5698 ac_status=$? | |
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5700 (exit $ac_status); } && | |
5701 { ac_try='test -s conftest.$ac_objext' | |
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5703 (eval $ac_try) 2>&5 | |
5704 ac_status=$? | |
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5706 (exit $ac_status); }; }; then | |
5707 ac_cv_member_struct_tm_tm_gmtoff=yes | |
5708 else | |
5709 echo "$as_me: failed program was:" >&5 | |
5710 cat conftest.$ac_ext >&5 | |
5711 ac_cv_member_struct_tm_tm_gmtoff=no | |
5712 fi | |
5713 rm -f conftest.$ac_objext conftest.$ac_ext | |
5714 fi | |
5715 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 | |
5716 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6 | |
5717 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then | |
5718 | |
5719 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
|
5720 #define HAVE_TM_GMTOFF 1 |
44493 | 5721 _ACEOF |
5722 | |
5723 fi | |
5724 | |
5725 | |
44569 | 5726 |
44493 | 5727 echo "$as_me:$LINENO: checking for function prototypes" >&5 |
40056 | 5728 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
28060 | 5729 if test "$ac_cv_prog_cc_stdc" != no; then |
44493 | 5730 echo "$as_me:$LINENO: result: yes" >&5 |
40056 | 5731 echo "${ECHO_T}yes" >&6 |
5732 | |
44493 | 5733 cat >>confdefs.h <<\_ACEOF |
28060 | 5734 #define PROTOTYPES 1 |
44493 | 5735 _ACEOF |
5736 | |
5737 | |
5738 cat >>confdefs.h <<\_ACEOF | |
5739 #define __PROTOTYPES 1 | |
5740 _ACEOF | |
5741 | |
5742 else | |
5743 echo "$as_me:$LINENO: result: no" >&5 | |
40056 | 5744 echo "${ECHO_T}no" >&6 |
5745 fi | |
5746 | |
44493 | 5747 echo "$as_me:$LINENO: checking for working volatile" >&5 |
40056 | 5748 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
5749 if test "${ac_cv_c_volatile+set}" = set; then | |
5750 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5751 else | |
5752 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5753 #line $LINENO "configure" |
5754 #include "confdefs.h" | |
5755 | |
5756 #ifdef F77_DUMMY_MAIN | |
5757 # ifdef __cplusplus | |
5758 extern "C" | |
5759 # endif | |
5760 int F77_DUMMY_MAIN() { return 1; } | |
5761 #endif | |
40056 | 5762 int |
5763 main () | |
5764 { | |
28060 | 5765 |
5766 volatile int x; | |
5767 int * volatile y; | |
40056 | 5768 ; |
5769 return 0; | |
5770 } | |
5771 _ACEOF | |
5772 rm -f conftest.$ac_objext | |
44493 | 5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5774 (eval $ac_compile) 2>&5 | |
5775 ac_status=$? | |
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5777 (exit $ac_status); } && | |
5778 { ac_try='test -s conftest.$ac_objext' | |
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5780 (eval $ac_try) 2>&5 | |
5781 ac_status=$? | |
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5783 (exit $ac_status); }; }; then |
28060 | 5784 ac_cv_c_volatile=yes |
5785 else | |
40056 | 5786 echo "$as_me: failed program was:" >&5 |
5787 cat conftest.$ac_ext >&5 | |
5788 ac_cv_c_volatile=no | |
5789 fi | |
5790 rm -f conftest.$ac_objext conftest.$ac_ext | |
5791 fi | |
44493 | 5792 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
40056 | 5793 echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
28060 | 5794 if test $ac_cv_c_volatile = no; then |
40056 | 5795 |
44493 | 5796 cat >>confdefs.h <<\_ACEOF |
40056 | 5797 #define volatile |
44493 | 5798 _ACEOF |
5799 | |
5800 fi | |
5801 | |
5802 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
40056 | 5803 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
5804 if test "${ac_cv_c_const+set}" = set; then | |
5805 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5806 else | |
5807 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5808 #line $LINENO "configure" |
5809 #include "confdefs.h" | |
5810 | |
5811 #ifdef F77_DUMMY_MAIN | |
5812 # ifdef __cplusplus | |
5813 extern "C" | |
5814 # endif | |
5815 int F77_DUMMY_MAIN() { return 1; } | |
5816 #endif | |
40056 | 5817 int |
5818 main () | |
5819 { | |
5820 /* FIXME: Include the comments suggested by Paul. */ | |
5821 #ifndef __cplusplus | |
5822 /* Ultrix mips cc rejects this. */ | |
5823 typedef int charset[2]; | |
5824 const charset x; | |
5825 /* SunOS 4.1.1 cc rejects this. */ | |
5826 char const *const *ccp; | |
5827 char **p; | |
5828 /* NEC SVR4.0.2 mips cc rejects this. */ | |
5829 struct point {int x, y;}; | |
5830 static struct point const zero = {0,0}; | |
5831 /* AIX XL C 1.02.0.0 rejects this. | |
5832 It does not let you subtract one const X* pointer from another in | |
5833 an arm of an if-expression whose if-part is not a constant | |
5834 expression */ | |
5835 const char *g = "string"; | |
5836 ccp = &g + (g ? g-g : 0); | |
5837 /* HPUX 7.0 cc rejects these. */ | |
5838 ++ccp; | |
5839 p = (char**) ccp; | |
5840 ccp = (char const *const *) p; | |
5841 { /* SCO 3.2v4 cc rejects this. */ | |
5842 char *t; | |
5843 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5844 | |
5845 *t++ = 0; | |
5846 } | |
5847 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5848 int x[] = {25, 17}; | |
5849 const int *foo = &x[0]; | |
5850 ++foo; | |
5851 } | |
5852 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5853 typedef const int *iptr; | |
5854 iptr p = 0; | |
5855 ++p; | |
5856 } | |
5857 { /* AIX XL C 1.02.0.0 rejects this saying | |
5858 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5859 struct s { int j; const int *ap[3]; }; | |
5860 struct s *b; b->j = 5; | |
5861 } | |
5862 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5863 const int foo = 10; | |
5864 } | |
5865 #endif | |
5866 | |
5867 ; | |
5868 return 0; | |
5869 } | |
5870 _ACEOF | |
5871 rm -f conftest.$ac_objext | |
44493 | 5872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5873 (eval $ac_compile) 2>&5 | |
5874 ac_status=$? | |
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5876 (exit $ac_status); } && | |
5877 { ac_try='test -s conftest.$ac_objext' | |
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5879 (eval $ac_try) 2>&5 | |
5880 ac_status=$? | |
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5882 (exit $ac_status); }; }; then |
25897 | 5883 ac_cv_c_const=yes |
5884 else | |
40056 | 5885 echo "$as_me: failed program was:" >&5 |
5886 cat conftest.$ac_ext >&5 | |
5887 ac_cv_c_const=no | |
5888 fi | |
5889 rm -f conftest.$ac_objext conftest.$ac_ext | |
5890 fi | |
44493 | 5891 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
40056 | 5892 echo "${ECHO_T}$ac_cv_c_const" >&6 |
25897 | 5893 if test $ac_cv_c_const = no; then |
40056 | 5894 |
44493 | 5895 cat >>confdefs.h <<\_ACEOF |
40056 | 5896 #define const |
44493 | 5897 _ACEOF |
5898 | |
5899 fi | |
5900 | |
5901 echo "$as_me:$LINENO: checking for void * support" >&5 | |
40056 | 5902 echo $ECHO_N "checking for void * support... $ECHO_C" >&6 |
5903 if test "${emacs_cv_void_star+set}" = set; then | |
5904 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5905 else | |
5906 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 5907 #line $LINENO "configure" |
5908 #include "confdefs.h" | |
5909 | |
5910 #ifdef F77_DUMMY_MAIN | |
5911 # ifdef __cplusplus | |
5912 extern "C" | |
5913 # endif | |
5914 int F77_DUMMY_MAIN() { return 1; } | |
5915 #endif | |
40056 | 5916 int |
5917 main () | |
5918 { | |
28060 | 5919 void * foo; |
40056 | 5920 ; |
5921 return 0; | |
5922 } | |
5923 _ACEOF | |
5924 rm -f conftest.$ac_objext | |
44493 | 5925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5926 (eval $ac_compile) 2>&5 | |
5927 ac_status=$? | |
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5929 (exit $ac_status); } && | |
5930 { ac_try='test -s conftest.$ac_objext' | |
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5932 (eval $ac_try) 2>&5 | |
5933 ac_status=$? | |
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 5935 (exit $ac_status); }; }; then |
28060 | 5936 emacs_cv_void_star=yes |
5937 else | |
40056 | 5938 echo "$as_me: failed program was:" >&5 |
5939 cat conftest.$ac_ext >&5 | |
5940 emacs_cv_void_star=no | |
5941 fi | |
5942 rm -f conftest.$ac_objext conftest.$ac_ext | |
5943 fi | |
44493 | 5944 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 |
40056 | 5945 echo "${ECHO_T}$emacs_cv_void_star" >&6 |
28060 | 5946 if test $emacs_cv_void_star = yes; then |
44493 | 5947 cat >>confdefs.h <<\_ACEOF |
28060 | 5948 #define POINTER_TYPE void |
44493 | 5949 _ACEOF |
5950 | |
5951 else | |
5952 cat >>confdefs.h <<\_ACEOF | |
28060 | 5953 #define POINTER_TYPE char |
44493 | 5954 _ACEOF |
5955 | |
5956 fi | |
5957 | |
44569 | 5958 |
44493 | 5959 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
40056 | 5960 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
5961 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
5962 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
5963 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5964 else | |
44493 | 5965 cat >conftest.make <<\_ACEOF |
25897 | 5966 all: |
5967 @echo 'ac_maketemp="${MAKE}"' | |
44493 | 5968 _ACEOF |
25897 | 5969 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
40056 | 5970 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
25897 | 5971 if test -n "$ac_maketemp"; then |
5972 eval ac_cv_prog_make_${ac_make}_set=yes | |
5973 else | |
5974 eval ac_cv_prog_make_${ac_make}_set=no | |
5975 fi | |
40056 | 5976 rm -f conftest.make |
25897 | 5977 fi |
5978 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
44493 | 5979 echo "$as_me:$LINENO: result: yes" >&5 |
40056 | 5980 echo "${ECHO_T}yes" >&6 |
25897 | 5981 SET_MAKE= |
5982 else | |
44493 | 5983 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 5984 echo "${ECHO_T}no" >&6 |
25897 | 5985 SET_MAKE="MAKE=${MAKE-make}" |
5986 fi | |
5987 | |
44493 | 5988 |
5989 echo "$as_me:$LINENO: checking for long file names" >&5 | |
40056 | 5990 echo $ECHO_N "checking for long file names... $ECHO_C" >&6 |
5991 if test "${ac_cv_sys_long_file_names+set}" = set; then | |
5992 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 5993 else |
5994 ac_cv_sys_long_file_names=yes | |
5995 # Test for long file names in all the places we know might matter: | |
5996 # . the current directory, where building will happen | |
5997 # $prefix/lib where we will be installing things | |
5998 # $exec_prefix/lib likewise | |
5999 # eval it to expand exec_prefix. | |
6000 # $TMPDIR if set, where it might want to write temporary files | |
6001 # if $TMPDIR is not set: | |
6002 # /tmp where it might want to write temporary files | |
6003 # /var/tmp likewise | |
6004 # /usr/tmp likewise | |
6005 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
40056 | 6006 ac_tmpdirs=$TMPDIR |
25897 | 6007 else |
6008 ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
6009 fi | |
6010 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
6011 test -d $ac_dir || continue | |
6012 test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
40056 | 6013 ac_xdir=$ac_dir/cf$$ |
6014 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue | |
6015 ac_tf1=$ac_xdir/conftest9012345 | |
6016 ac_tf2=$ac_xdir/conftest9012346 | |
6017 (echo 1 >$ac_tf1) 2>/dev/null | |
6018 (echo 2 >$ac_tf2) 2>/dev/null | |
6019 ac_val=`cat $ac_tf1 2>/dev/null` | |
6020 if test ! -f $ac_tf1 || test "$ac_val" != 1; then | |
25897 | 6021 ac_cv_sys_long_file_names=no |
40056 | 6022 rm -rf $ac_xdir 2>/dev/null |
25897 | 6023 break |
6024 fi | |
40056 | 6025 rm -rf $ac_xdir 2>/dev/null |
25897 | 6026 done |
6027 fi | |
44493 | 6028 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 |
40056 | 6029 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 |
25897 | 6030 if test $ac_cv_sys_long_file_names = yes; then |
40056 | 6031 |
44493 | 6032 cat >>confdefs.h <<\_ACEOF |
25897 | 6033 #define HAVE_LONG_FILE_NAMES 1 |
44493 | 6034 _ACEOF |
6035 | |
6036 fi | |
6037 | |
6038 | |
6039 if test "$gamedir" = no; then : | |
6040 else | |
6041 echo "$as_me:$LINENO: checking for access to game group \"$gameuser\"" >&5 | |
6042 echo $ECHO_N "checking for access to game group \"$gameuser\"... $ECHO_C" >&6 | |
6043 rm -f conf$$chown.file | |
6044 touch conf$$chown.file | |
6045 if chown "$gameuser" conf$$chown.file 1>/dev/null 2>&1; then | |
6046 echo "$as_me:$LINENO: result: yes" >&5 | |
6047 echo "${ECHO_T}yes" >&6 | |
6048 if test "$gamedir" = "yes"; then | |
6049 gamedir="${localstatedir}/games/emacs" | |
6050 fi | |
44569 | 6051 eval tgamedir=\"$gamedir\" |
6052 | |
6053 cat >>confdefs.h <<_ACEOF | |
44493 | 6054 #define HAVE_SHARED_GAME_DIR "$tgamedir" |
6055 _ACEOF | |
6056 | |
6057 else | |
6058 echo "$as_me:$LINENO: result: no" >&5 | |
6059 echo "${ECHO_T}no" >&6 | |
6060 gamedir=no | |
6061 fi | |
6062 fi | |
25897 | 6063 #### Choose a window system. |
6064 | |
44493 | 6065 echo "$as_me:$LINENO: checking for X" >&5 |
40056 | 6066 echo $ECHO_N "checking for X... $ECHO_C" >&6 |
25897 | 6067 |
44493 | 6068 |
25897 | 6069 # Check whether --with-x or --without-x was given. |
6070 if test "${with_x+set}" = set; then | |
6071 withval="$with_x" | |
40056 | 6072 |
6073 fi; | |
25897 | 6074 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
6075 if test "x$with_x" = xno; then | |
6076 # The user explicitly disabled X. | |
6077 have_x=disabled | |
6078 else | |
6079 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
6080 # Both variables are already set. | |
6081 have_x=yes | |
6082 else | |
40056 | 6083 if test "${ac_cv_have_x+set}" = set; then |
6084 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 6085 else |
6086 # One or both of the vars are not set, and there is no cached value. | |
40056 | 6087 ac_x_includes=no ac_x_libraries=no |
6088 rm -fr conftest.dir | |
6089 if mkdir conftest.dir; then | |
6090 cd conftest.dir | |
25897 | 6091 # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
44493 | 6092 cat >Imakefile <<'_ACEOF' |
25897 | 6093 acfindx: |
6094 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
44493 | 6095 _ACEOF |
25897 | 6096 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
6097 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
6098 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
6099 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
6100 for ac_extension in a so sl; do | |
6101 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
40056 | 6102 test -f $ac_im_libdir/libX11.$ac_extension; then |
25897 | 6103 ac_im_usrlibdir=$ac_im_libdir; break |
6104 fi | |
6105 done | |
6106 # Screen out bogus values from the imake configuration. They are | |
6107 # bogus both because they are the default anyway, and because | |
6108 # using them would break gcc on systems where it needs fixed includes. | |
40056 | 6109 case $ac_im_incroot in |
25897 | 6110 /usr/include) ;; |
40056 | 6111 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
25897 | 6112 esac |
40056 | 6113 case $ac_im_usrlibdir in |
25897 | 6114 /usr/lib | /lib) ;; |
40056 | 6115 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
25897 | 6116 esac |
6117 fi | |
6118 cd .. | |
40056 | 6119 rm -fr conftest.dir |
6120 fi | |
6121 | |
6122 # Standard set of common directories for X headers. | |
6123 # Check X11 before X11Rn because it is often a symlink to the current release. | |
6124 ac_x_header_dirs=' | |
6125 /usr/X11/include | |
6126 /usr/X11R6/include | |
6127 /usr/X11R5/include | |
6128 /usr/X11R4/include | |
6129 | |
6130 /usr/include/X11 | |
6131 /usr/include/X11R6 | |
6132 /usr/include/X11R5 | |
6133 /usr/include/X11R4 | |
6134 | |
6135 /usr/local/X11/include | |
6136 /usr/local/X11R6/include | |
6137 /usr/local/X11R5/include | |
6138 /usr/local/X11R4/include | |
6139 | |
6140 /usr/local/include/X11 | |
6141 /usr/local/include/X11R6 | |
6142 /usr/local/include/X11R5 | |
6143 /usr/local/include/X11R4 | |
6144 | |
6145 /usr/X386/include | |
6146 /usr/x386/include | |
6147 /usr/XFree86/include/X11 | |
6148 | |
6149 /usr/include | |
6150 /usr/local/include | |
6151 /usr/unsupported/include | |
6152 /usr/athena/include | |
6153 /usr/local/x11r5/include | |
6154 /usr/lpp/Xamples/include | |
6155 | |
6156 /usr/openwin/include | |
6157 /usr/openwin/share/include' | |
6158 | |
6159 if test "$ac_x_includes" = no; then | |
6160 # Guess where to find include files, by looking for Intrinsic.h. | |
25897 | 6161 # First, try using that file with no special directory specified. |
40056 | 6162 cat >conftest.$ac_ext <<_ACEOF |
44493 | 6163 #line $LINENO "configure" |
40056 | 6164 #include "confdefs.h" |
6165 #include <X11/Intrinsic.h> | |
6166 _ACEOF | |
44493 | 6167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 6168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6169 ac_status=$? | |
6170 egrep -v '^ *\+' conftest.er1 >conftest.err | |
6171 rm -f conftest.er1 | |
6172 cat conftest.err >&5 | |
44493 | 6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 6174 (exit $ac_status); } >/dev/null; then |
6175 if test -s conftest.err; then | |
6176 ac_cpp_err=$ac_c_preproc_warn_flag | |
6177 else | |
6178 ac_cpp_err= | |
6179 fi | |
6180 else | |
6181 ac_cpp_err=yes | |
6182 fi | |
6183 if test -z "$ac_cpp_err"; then | |
25897 | 6184 # We can compile using X headers with no special include directory. |
6185 ac_x_includes= | |
6186 else | |
40056 | 6187 echo "$as_me: failed program was:" >&5 |
25897 | 6188 cat conftest.$ac_ext >&5 |
40056 | 6189 for ac_dir in $ac_x_header_dirs; do |
6190 if test -r "$ac_dir/X11/Intrinsic.h"; then | |
6191 ac_x_includes=$ac_dir | |
6192 break | |
6193 fi | |
6194 done | |
6195 fi | |
6196 rm -f conftest.err conftest.$ac_ext | |
6197 fi # $ac_x_includes = no | |
6198 | |
6199 if test "$ac_x_libraries" = no; then | |
25897 | 6200 # Check for the libraries. |
6201 # See if we find them without any special options. | |
6202 # Don't add to $LIBS permanently. | |
40056 | 6203 ac_save_LIBS=$LIBS |
6204 LIBS="-lXt $LIBS" | |
6205 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 6206 #line $LINENO "configure" |
40056 | 6207 #include "confdefs.h" |
6208 #include <X11/Intrinsic.h> | |
44493 | 6209 #ifdef F77_DUMMY_MAIN |
6210 # ifdef __cplusplus | |
6211 extern "C" | |
6212 # endif | |
6213 int F77_DUMMY_MAIN() { return 1; } | |
6214 #endif | |
40056 | 6215 int |
6216 main () | |
6217 { | |
6218 XtMalloc (0) | |
6219 ; | |
6220 return 0; | |
6221 } | |
6222 _ACEOF | |
6223 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 6224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6225 (eval $ac_link) 2>&5 | |
6226 ac_status=$? | |
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6228 (exit $ac_status); } && | |
6229 { ac_try='test -s conftest$ac_exeext' | |
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6231 (eval $ac_try) 2>&5 | |
6232 ac_status=$? | |
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 6234 (exit $ac_status); }; }; then |
6235 LIBS=$ac_save_LIBS | |
25897 | 6236 # We can link X programs with no special library path. |
6237 ac_x_libraries= | |
6238 else | |
40056 | 6239 echo "$as_me: failed program was:" >&5 |
6240 cat conftest.$ac_ext >&5 | |
6241 LIBS=$ac_save_LIBS | |
6242 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
25897 | 6243 do |
40056 | 6244 # Don't even attempt the hair of trying to link an X program! |
25897 | 6245 for ac_extension in a so sl; do |
40056 | 6246 if test -r $ac_dir/libXt.$ac_extension; then |
25897 | 6247 ac_x_libraries=$ac_dir |
6248 break 2 | |
6249 fi | |
6250 done | |
6251 done | |
6252 fi | |
40056 | 6253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6254 fi # $ac_x_libraries = no | |
6255 | |
6256 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
25897 | 6257 # Didn't find X anywhere. Cache the known absence of X. |
6258 ac_cv_have_x="have_x=no" | |
6259 else | |
6260 # Record where we found X for the cache. | |
6261 ac_cv_have_x="have_x=yes \ | |
6262 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
6263 fi | |
6264 fi | |
40056 | 6265 |
25897 | 6266 fi |
6267 eval "$ac_cv_have_x" | |
6268 fi # $with_x != no | |
6269 | |
6270 if test "$have_x" != yes; then | |
44493 | 6271 echo "$as_me:$LINENO: result: $have_x" >&5 |
40056 | 6272 echo "${ECHO_T}$have_x" >&6 |
25897 | 6273 no_x=yes |
6274 else | |
6275 # If each of the values was on the command line, it overrides each guess. | |
6276 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
6277 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
6278 # Update the cache value to reflect the command line values. | |
6279 ac_cv_have_x="have_x=yes \ | |
6280 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
44493 | 6281 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
40056 | 6282 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
25897 | 6283 fi |
6284 | |
6285 if test "$no_x" = yes; then | |
6286 window_system=none | |
6287 else | |
6288 window_system=x11 | |
6289 fi | |
6290 | |
6291 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
6292 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
6293 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
6294 x_default_search_path="" | |
6295 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
35666 | 6296 x_search_path="\ |
6297 ${x_library}/X11/%L/%T/%N%C%S:\ | |
6298 ${x_library}/X11/%l/%T/%N%C%S:\ | |
6299 ${x_library}/X11/%T/%N%C%S:\ | |
6300 ${x_library}/X11/%L/%T/%N%S:\ | |
6301 ${x_library}/X11/%l/%T/%N%S:\ | |
6302 ${x_library}/X11/%T/%N%S" | |
25897 | 6303 if test x"${x_default_search_path}" = x; then |
6304 x_default_search_path=${x_search_path} | |
6305 else | |
6306 x_default_search_path="${x_search_path}:${x_default_search_path}" | |
6307 fi | |
6308 done | |
6309 fi | |
6310 if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
6311 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
6312 fi | |
6313 | |
6314 if test x"${x_includes}" = x; then | |
6315 bitmapdir=/usr/include/X11/bitmaps | |
6316 else | |
6317 # accumulate include directories that have X11 bitmap subdirectories | |
6318 bmd_acc="dummyval" | |
6319 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
6320 if test -d "${bmd}/X11/bitmaps"; then | |
6321 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
26502 | 6322 fi |
6323 if test -d "${bmd}/bitmaps"; then | |
25897 | 6324 bmd_acc="${bmd_acc}:${bmd}/bitmaps" |
6325 fi | |
6326 done | |
6327 if test ${bmd_acc} != "dummyval"; then | |
6328 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
6329 fi | |
6330 fi | |
6331 | |
6332 case "${window_system}" in | |
6333 x11 ) | |
6334 HAVE_X_WINDOWS=yes | |
6335 HAVE_X11=yes | |
6336 case "${with_x_toolkit}" in | |
6337 athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
6338 motif ) USE_X_TOOLKIT=MOTIF ;; | |
6339 no ) USE_X_TOOLKIT=none ;; | |
6340 * ) USE_X_TOOLKIT=maybe ;; | |
6341 esac | |
6342 ;; | |
6343 none ) | |
6344 HAVE_X_WINDOWS=no | |
6345 HAVE_X11=no | |
6346 USE_X_TOOLKIT=none | |
6347 ;; | |
6348 esac | |
6349 | |
6350 ### If we're using X11, we should use the X menu package. | |
6351 HAVE_MENUS=no | |
6352 case ${HAVE_X11} in | |
6353 yes ) HAVE_MENUS=yes ;; | |
6354 esac | |
40056 | 6355 |
25897 | 6356 if test "${opsys}" = "hpux9"; then |
6357 case "${x_libraries}" in | |
6358 *X11R4* ) | |
6359 opsysfile="s/hpux9-x11r4.h" | |
6360 ;; | |
6361 esac | |
6362 fi | |
6363 | |
6364 if test "${opsys}" = "hpux9shr"; then | |
6365 case "${x_libraries}" in | |
6366 *X11R4* ) | |
6367 opsysfile="s/hpux9shxr4.h" | |
6368 ;; | |
6369 esac | |
6370 fi | |
6371 | |
6372 ### Compute the unexec source name from the object name. | |
6373 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
6374 | |
6375 # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
6376 # Assume not, until told otherwise. | |
6377 GNU_MALLOC=yes | |
6378 doug_lea_malloc=yes | |
44493 | 6379 echo "$as_me:$LINENO: checking for malloc_get_state" >&5 |
40056 | 6380 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 |
6381 if test "${ac_cv_func_malloc_get_state+set}" = set; then | |
6382 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6383 else | |
6384 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 6385 #line $LINENO "configure" |
25897 | 6386 #include "confdefs.h" |
6387 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 6388 which can conflict with char malloc_get_state (); below. */ |
25897 | 6389 #include <assert.h> |
6390 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 6391 #ifdef __cplusplus |
6392 extern "C" | |
6393 #endif | |
25897 | 6394 /* We use char because int might match the return type of a gcc2 |
40056 | 6395 builtin and then its argument prototype would still apply. */ |
6396 char malloc_get_state (); | |
6397 char (*f) (); | |
6398 | |
44493 | 6399 #ifdef F77_DUMMY_MAIN |
6400 # ifdef __cplusplus | |
6401 extern "C" | |
6402 # endif | |
6403 int F77_DUMMY_MAIN() { return 1; } | |
6404 #endif | |
40056 | 6405 int |
6406 main () | |
6407 { | |
25897 | 6408 /* The GNU C library defines this for functions which it implements |
6409 to always fail with ENOSYS. Some functions are actually named | |
6410 something starting with __ and the normal name is an alias. */ | |
6411 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
6412 choke me | |
6413 #else | |
40056 | 6414 f = malloc_get_state; |
6415 #endif | |
6416 | |
6417 ; | |
6418 return 0; | |
6419 } | |
6420 _ACEOF | |
6421 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 6422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6423 (eval $ac_link) 2>&5 | |
6424 ac_status=$? | |
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6426 (exit $ac_status); } && | |
6427 { ac_try='test -s conftest$ac_exeext' | |
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6429 (eval $ac_try) 2>&5 | |
6430 ac_status=$? | |
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 6432 (exit $ac_status); }; }; then |
6433 ac_cv_func_malloc_get_state=yes | |
6434 else | |
6435 echo "$as_me: failed program was:" >&5 | |
6436 cat conftest.$ac_ext >&5 | |
6437 ac_cv_func_malloc_get_state=no | |
6438 fi | |
6439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6440 fi | |
44493 | 6441 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5 |
40056 | 6442 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 |
6443 if test $ac_cv_func_malloc_get_state = yes; then | |
25897 | 6444 : |
6445 else | |
40056 | 6446 doug_lea_malloc=no |
6447 fi | |
6448 | |
44493 | 6449 echo "$as_me:$LINENO: checking for malloc_set_state" >&5 |
40056 | 6450 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 |
6451 if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
6452 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6453 else | |
6454 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 6455 #line $LINENO "configure" |
25897 | 6456 #include "confdefs.h" |
6457 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 6458 which can conflict with char malloc_set_state (); below. */ |
25897 | 6459 #include <assert.h> |
6460 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 6461 #ifdef __cplusplus |
6462 extern "C" | |
6463 #endif | |
25897 | 6464 /* We use char because int might match the return type of a gcc2 |
40056 | 6465 builtin and then its argument prototype would still apply. */ |
6466 char malloc_set_state (); | |
6467 char (*f) (); | |
6468 | |
44493 | 6469 #ifdef F77_DUMMY_MAIN |
6470 # ifdef __cplusplus | |
6471 extern "C" | |
6472 # endif | |
6473 int F77_DUMMY_MAIN() { return 1; } | |
6474 #endif | |
40056 | 6475 int |
6476 main () | |
6477 { | |
25897 | 6478 /* The GNU C library defines this for functions which it implements |
6479 to always fail with ENOSYS. Some functions are actually named | |
6480 something starting with __ and the normal name is an alias. */ | |
6481 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
6482 choke me | |
6483 #else | |
40056 | 6484 f = malloc_set_state; |
6485 #endif | |
6486 | |
6487 ; | |
6488 return 0; | |
6489 } | |
6490 _ACEOF | |
6491 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 6492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6493 (eval $ac_link) 2>&5 | |
6494 ac_status=$? | |
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6496 (exit $ac_status); } && | |
6497 { ac_try='test -s conftest$ac_exeext' | |
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6499 (eval $ac_try) 2>&5 | |
6500 ac_status=$? | |
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 6502 (exit $ac_status); }; }; then |
6503 ac_cv_func_malloc_set_state=yes | |
6504 else | |
6505 echo "$as_me: failed program was:" >&5 | |
6506 cat conftest.$ac_ext >&5 | |
6507 ac_cv_func_malloc_set_state=no | |
6508 fi | |
6509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6510 fi | |
44493 | 6511 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5 |
40056 | 6512 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 |
6513 if test $ac_cv_func_malloc_set_state = yes; then | |
25897 | 6514 : |
6515 else | |
40056 | 6516 doug_lea_malloc=no |
6517 fi | |
6518 | |
44493 | 6519 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5 |
40056 | 6520 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 |
6521 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
6522 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6523 else | |
6524 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 6525 #line $LINENO "configure" |
25897 | 6526 #include "confdefs.h" |
6527 extern void (* __after_morecore_hook)(); | |
44493 | 6528 #ifdef F77_DUMMY_MAIN |
6529 # ifdef __cplusplus | |
6530 extern "C" | |
6531 # endif | |
6532 int F77_DUMMY_MAIN() { return 1; } | |
6533 #endif | |
40056 | 6534 int |
6535 main () | |
6536 { | |
25897 | 6537 __after_morecore_hook = 0 |
40056 | 6538 ; |
6539 return 0; | |
6540 } | |
6541 _ACEOF | |
6542 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 6543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6544 (eval $ac_link) 2>&5 | |
6545 ac_status=$? | |
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6547 (exit $ac_status); } && | |
6548 { ac_try='test -s conftest$ac_exeext' | |
6549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6550 (eval $ac_try) 2>&5 | |
6551 ac_status=$? | |
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 6553 (exit $ac_status); }; }; then |
25897 | 6554 emacs_cv_var___after_morecore_hook=yes |
6555 else | |
40056 | 6556 echo "$as_me: failed program was:" >&5 |
6557 cat conftest.$ac_ext >&5 | |
6558 emacs_cv_var___after_morecore_hook=no | |
6559 fi | |
6560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6561 fi | |
44493 | 6562 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 |
40056 | 6563 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 |
25897 | 6564 if test $emacs_cv_var___after_morecore_hook = no; then |
6565 doug_lea_malloc=no | |
6566 fi | |
6567 if test "${system_malloc}" = "yes"; then | |
6568 GNU_MALLOC=no | |
6569 GNU_MALLOC_reason=" | |
6570 (The GNU allocators don't work with this system configuration.)" | |
6571 fi | |
6572 if test "$doug_lea_malloc" = "yes" ; then | |
6573 if test "$GNU_MALLOC" = yes ; then | |
6574 GNU_MALLOC_reason=" | |
6575 (Using Doug Lea's new malloc from the GNU C Library.)" | |
6576 fi | |
44569 | 6577 |
6578 cat >>confdefs.h <<\_ACEOF | |
25897 | 6579 #define DOUG_LEA_MALLOC 1 |
44493 | 6580 _ACEOF |
25897 | 6581 |
6582 fi | |
6583 | |
6584 if test x"${REL_ALLOC}" = x; then | |
6585 REL_ALLOC=${GNU_MALLOC} | |
6586 fi | |
6587 | |
44493 | 6588 |
6589 | |
40056 | 6590 |
6591 for ac_header in stdlib.h unistd.h | |
6592 do | |
6593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
44493 | 6594 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6595 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 6596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6597 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6598 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 6599 fi |
6600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6602 else | |
6603 # Is the header compilable? | |
6604 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6606 cat >conftest.$ac_ext <<_ACEOF | |
6607 #line $LINENO "configure" | |
6608 #include "confdefs.h" | |
6609 $ac_includes_default | |
6610 #include <$ac_header> | |
6611 _ACEOF | |
6612 rm -f conftest.$ac_objext | |
6613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6614 (eval $ac_compile) 2>&5 | |
6615 ac_status=$? | |
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6617 (exit $ac_status); } && | |
6618 { ac_try='test -s conftest.$ac_objext' | |
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6620 (eval $ac_try) 2>&5 | |
6621 ac_status=$? | |
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6623 (exit $ac_status); }; }; then | |
6624 ac_header_compiler=yes | |
6625 else | |
6626 echo "$as_me: failed program was:" >&5 | |
6627 cat conftest.$ac_ext >&5 | |
6628 ac_header_compiler=no | |
6629 fi | |
6630 rm -f conftest.$ac_objext conftest.$ac_ext | |
6631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6632 echo "${ECHO_T}$ac_header_compiler" >&6 | |
6633 | |
6634 # Is the header present? | |
6635 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6637 cat >conftest.$ac_ext <<_ACEOF | |
6638 #line $LINENO "configure" | |
40056 | 6639 #include "confdefs.h" |
6640 #include <$ac_header> | |
6641 _ACEOF | |
44493 | 6642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 6643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6644 ac_status=$? | |
6645 egrep -v '^ *\+' conftest.er1 >conftest.err | |
6646 rm -f conftest.er1 | |
6647 cat conftest.err >&5 | |
44493 | 6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 6649 (exit $ac_status); } >/dev/null; then |
6650 if test -s conftest.err; then | |
6651 ac_cpp_err=$ac_c_preproc_warn_flag | |
6652 else | |
6653 ac_cpp_err= | |
6654 fi | |
6655 else | |
6656 ac_cpp_err=yes | |
6657 fi | |
6658 if test -z "$ac_cpp_err"; then | |
44493 | 6659 ac_header_preproc=yes |
40056 | 6660 else |
6661 echo "$as_me: failed program was:" >&5 | |
31417 | 6662 cat conftest.$ac_ext >&5 |
44493 | 6663 ac_header_preproc=no |
40056 | 6664 fi |
6665 rm -f conftest.err conftest.$ac_ext | |
44493 | 6666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6667 echo "${ECHO_T}$ac_header_preproc" >&6 | |
6668 | |
6669 # So? What about this header? | |
6670 case $ac_header_compiler:$ac_header_preproc in | |
6671 yes:no ) | |
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
6676 no:yes ) | |
6677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
6683 esac | |
6684 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6686 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6687 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6688 else | |
6689 eval "$as_ac_Header=$ac_header_preproc" | |
6690 fi | |
6691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 6692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 6693 |
6694 fi | |
40056 | 6695 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 6696 cat >>confdefs.h <<_ACEOF |
40056 | 6697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 6698 _ACEOF |
6699 | |
6700 fi | |
6701 | |
6702 done | |
6703 | |
31417 | 6704 |
6705 for ac_func in getpagesize | |
6706 do | |
40056 | 6707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44493 | 6708 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 6709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
6710 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6711 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6712 else | |
6713 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 6714 #line $LINENO "configure" |
31417 | 6715 #include "confdefs.h" |
6716 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 6717 which can conflict with char $ac_func (); below. */ |
31417 | 6718 #include <assert.h> |
6719 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 6720 #ifdef __cplusplus |
6721 extern "C" | |
6722 #endif | |
31417 | 6723 /* We use char because int might match the return type of a gcc2 |
40056 | 6724 builtin and then its argument prototype would still apply. */ |
6725 char $ac_func (); | |
6726 char (*f) (); | |
6727 | |
44493 | 6728 #ifdef F77_DUMMY_MAIN |
6729 # ifdef __cplusplus | |
6730 extern "C" | |
6731 # endif | |
6732 int F77_DUMMY_MAIN() { return 1; } | |
6733 #endif | |
40056 | 6734 int |
6735 main () | |
6736 { | |
31417 | 6737 /* The GNU C library defines this for functions which it implements |
6738 to always fail with ENOSYS. Some functions are actually named | |
6739 something starting with __ and the normal name is an alias. */ | |
6740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6741 choke me | |
6742 #else | |
40056 | 6743 f = $ac_func; |
6744 #endif | |
6745 | |
6746 ; | |
6747 return 0; | |
6748 } | |
6749 _ACEOF | |
6750 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 6751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6752 (eval $ac_link) 2>&5 | |
6753 ac_status=$? | |
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6755 (exit $ac_status); } && | |
6756 { ac_try='test -s conftest$ac_exeext' | |
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6758 (eval $ac_try) 2>&5 | |
6759 ac_status=$? | |
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 6761 (exit $ac_status); }; }; then |
6762 eval "$as_ac_var=yes" | |
6763 else | |
6764 echo "$as_me: failed program was:" >&5 | |
6765 cat conftest.$ac_ext >&5 | |
6766 eval "$as_ac_var=no" | |
6767 fi | |
6768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6769 fi | |
44493 | 6770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 6771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
6772 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 6773 cat >>confdefs.h <<_ACEOF |
40056 | 6774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 6775 _ACEOF |
6776 | |
6777 fi | |
6778 done | |
6779 | |
6780 echo "$as_me:$LINENO: checking for working mmap" >&5 | |
40056 | 6781 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
6782 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6783 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31417 | 6784 else |
6785 if test "$cross_compiling" = yes; then | |
6786 ac_cv_func_mmap_fixed_mapped=no | |
6787 else | |
40056 | 6788 cat >conftest.$ac_ext <<_ACEOF |
44493 | 6789 #line $LINENO "configure" |
40056 | 6790 #include "confdefs.h" |
6791 $ac_includes_default | |
44493 | 6792 /* malloc might have been renamed as rpl_malloc. */ |
6793 #undef malloc | |
6794 | |
31417 | 6795 /* Thanks to Mike Haertel and Jim Avera for this test. |
6796 Here is a matrix of mmap possibilities: | |
6797 mmap private not fixed | |
6798 mmap private fixed at somewhere currently unmapped | |
6799 mmap private fixed at somewhere already mapped | |
6800 mmap shared not fixed | |
6801 mmap shared fixed at somewhere currently unmapped | |
6802 mmap shared fixed at somewhere already mapped | |
6803 For private mappings, we should verify that changes cannot be read() | |
6804 back from the file, nor mmap's back from the file at a different | |
6805 address. (There have been systems where private was not correctly | |
6806 implemented like the infamous i386 svr4.0, and systems where the | |
31512 | 6807 VM page cache was not coherent with the file system buffer cache |
31417 | 6808 like early versions of FreeBSD and possibly contemporary NetBSD.) |
6809 For shared mappings, we should conversely verify that changes get | |
44493 | 6810 propagated back to all the places they're supposed to be. |
31417 | 6811 |
6812 Grep wants private fixed already mapped. | |
6813 The main things grep needs to know about mmap are: | |
6814 * does it exist and is it safe to write into the mmap'd area | |
6815 * how to use it (BSD variants) */ | |
40056 | 6816 |
31417 | 6817 #include <fcntl.h> |
6818 #include <sys/mman.h> | |
6819 | |
40056 | 6820 #if !STDC_HEADERS && !HAVE_STDLIB_H |
31512 | 6821 char *malloc (); |
6822 #endif | |
6823 | |
31417 | 6824 /* This mess was copied from the GNU getpagesize.h. */ |
31512 | 6825 #if !HAVE_GETPAGESIZE |
31417 | 6826 /* Assume that all systems that can run configure have sys/param.h. */ |
31512 | 6827 # if !HAVE_SYS_PARAM_H |
31417 | 6828 # define HAVE_SYS_PARAM_H 1 |
6829 # endif | |
6830 | |
6831 # ifdef _SC_PAGESIZE | |
6832 # define getpagesize() sysconf(_SC_PAGESIZE) | |
6833 # else /* no _SC_PAGESIZE */ | |
31512 | 6834 # if HAVE_SYS_PARAM_H |
31417 | 6835 # include <sys/param.h> |
6836 # ifdef EXEC_PAGESIZE | |
6837 # define getpagesize() EXEC_PAGESIZE | |
6838 # else /* no EXEC_PAGESIZE */ | |
6839 # ifdef NBPG | |
6840 # define getpagesize() NBPG * CLSIZE | |
6841 # ifndef CLSIZE | |
6842 # define CLSIZE 1 | |
6843 # endif /* no CLSIZE */ | |
6844 # else /* no NBPG */ | |
6845 # ifdef NBPC | |
6846 # define getpagesize() NBPC | |
6847 # else /* no NBPC */ | |
6848 # ifdef PAGESIZE | |
6849 # define getpagesize() PAGESIZE | |
6850 # endif /* PAGESIZE */ | |
6851 # endif /* no NBPC */ | |
6852 # endif /* no NBPG */ | |
6853 # endif /* no EXEC_PAGESIZE */ | |
6854 # else /* no HAVE_SYS_PARAM_H */ | |
6855 # define getpagesize() 8192 /* punt totally */ | |
6856 # endif /* no HAVE_SYS_PARAM_H */ | |
6857 # endif /* no _SC_PAGESIZE */ | |
6858 | |
6859 #endif /* no HAVE_GETPAGESIZE */ | |
6860 | |
6861 int | |
31512 | 6862 main () |
31417 | 6863 { |
31512 | 6864 char *data, *data2, *data3; |
6865 int i, pagesize; | |
6866 int fd; | |
6867 | |
6868 pagesize = getpagesize (); | |
6869 | |
6870 /* First, make a file with some known garbage in it. */ | |
6871 data = (char *) malloc (pagesize); | |
6872 if (!data) | |
6873 exit (1); | |
6874 for (i = 0; i < pagesize; ++i) | |
6875 *(data + i) = rand (); | |
6876 umask (0); | |
40056 | 6877 fd = creat ("conftest.mmap", 0600); |
31512 | 6878 if (fd < 0) |
6879 exit (1); | |
6880 if (write (fd, data, pagesize) != pagesize) | |
6881 exit (1); | |
6882 close (fd); | |
6883 | |
6884 /* Next, try to mmap the file at a fixed address which already has | |
6885 something else allocated at it. If we can, also make sure that | |
6886 we see the same garbage. */ | |
40056 | 6887 fd = open ("conftest.mmap", O_RDWR); |
31512 | 6888 if (fd < 0) |
6889 exit (1); | |
6890 data2 = (char *) malloc (2 * pagesize); | |
6891 if (!data2) | |
6892 exit (1); | |
6893 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
6894 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6895 MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6896 exit (1); | |
6897 for (i = 0; i < pagesize; ++i) | |
6898 if (*(data + i) != *(data2 + i)) | |
6899 exit (1); | |
6900 | |
6901 /* Finally, make sure that changes to the mapped area do not | |
6902 percolate back to the file as seen by read(). (This is a bug on | |
6903 some variants of i386 svr4.0.) */ | |
6904 for (i = 0; i < pagesize; ++i) | |
6905 *(data2 + i) = *(data2 + i) + 1; | |
6906 data3 = (char *) malloc (pagesize); | |
6907 if (!data3) | |
6908 exit (1); | |
6909 if (read (fd, data3, pagesize) != pagesize) | |
6910 exit (1); | |
6911 for (i = 0; i < pagesize; ++i) | |
6912 if (*(data + i) != *(data3 + i)) | |
6913 exit (1); | |
6914 close (fd); | |
6915 exit (0); | |
31417 | 6916 } |
40056 | 6917 _ACEOF |
6918 rm -f conftest$ac_exeext | |
44493 | 6919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6920 (eval $ac_link) 2>&5 | |
6921 ac_status=$? | |
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 6923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
44493 | 6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6925 (eval $ac_try) 2>&5 | |
6926 ac_status=$? | |
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 6928 (exit $ac_status); }; }; then |
31417 | 6929 ac_cv_func_mmap_fixed_mapped=yes |
6930 else | |
40056 | 6931 echo "$as_me: program exited with status $ac_status" >&5 |
6932 echo "$as_me: failed program was:" >&5 | |
6933 cat conftest.$ac_ext >&5 | |
44493 | 6934 ( exit $ac_status ) |
40056 | 6935 ac_cv_func_mmap_fixed_mapped=no |
6936 fi | |
6937 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6938 fi | |
6939 fi | |
44493 | 6940 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
40056 | 6941 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
31417 | 6942 if test $ac_cv_func_mmap_fixed_mapped = yes; then |
40056 | 6943 |
44493 | 6944 cat >>confdefs.h <<\_ACEOF |
31417 | 6945 #define HAVE_MMAP 1 |
44493 | 6946 _ACEOF |
31417 | 6947 |
6948 fi | |
40056 | 6949 rm -f conftest.mmap |
31417 | 6950 |
31607 | 6951 if test $use_mmap_for_buffers = yes; then |
6952 REL_ALLOC=no | |
31417 | 6953 fi |
6954 | |
25897 | 6955 LIBS="$libsrc_libs $LIBS" |
6956 | |
44493 | 6957 |
6958 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
40056 | 6959 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
6960 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
6961 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6962 else | |
6963 ac_check_lib_save_LIBS=$LIBS | |
25897 | 6964 LIBS="-ldnet $LIBS" |
40056 | 6965 cat >conftest.$ac_ext <<_ACEOF |
44493 | 6966 #line $LINENO "configure" |
40056 | 6967 #include "confdefs.h" |
6968 | |
25897 | 6969 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 6970 #ifdef __cplusplus |
6971 extern "C" | |
6972 #endif | |
25897 | 6973 /* We use char because int might match the return type of a gcc2 |
40056 | 6974 builtin and then its argument prototype would still apply. */ |
6975 char dnet_ntoa (); | |
44493 | 6976 #ifdef F77_DUMMY_MAIN |
6977 # ifdef __cplusplus | |
6978 extern "C" | |
6979 # endif | |
6980 int F77_DUMMY_MAIN() { return 1; } | |
6981 #endif | |
40056 | 6982 int |
6983 main () | |
6984 { | |
6985 dnet_ntoa (); | |
6986 ; | |
6987 return 0; | |
6988 } | |
6989 _ACEOF | |
6990 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 6991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6992 (eval $ac_link) 2>&5 | |
6993 ac_status=$? | |
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6995 (exit $ac_status); } && | |
6996 { ac_try='test -s conftest$ac_exeext' | |
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6998 (eval $ac_try) 2>&5 | |
6999 ac_status=$? | |
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7001 (exit $ac_status); }; }; then |
7002 ac_cv_lib_dnet_dnet_ntoa=yes | |
7003 else | |
7004 echo "$as_me: failed program was:" >&5 | |
7005 cat conftest.$ac_ext >&5 | |
7006 ac_cv_lib_dnet_dnet_ntoa=no | |
7007 fi | |
7008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7009 LIBS=$ac_check_lib_save_LIBS | |
7010 fi | |
44493 | 7011 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
40056 | 7012 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
7013 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
44493 | 7014 cat >>confdefs.h <<_ACEOF |
40056 | 7015 #define HAVE_LIBDNET 1 |
44493 | 7016 _ACEOF |
25897 | 7017 |
7018 LIBS="-ldnet $LIBS" | |
7019 | |
40056 | 7020 fi |
7021 | |
44493 | 7022 |
7023 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 | |
40056 | 7024 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 |
7025 if test "${ac_cv_lib_Xbsd_main+set}" = set; then | |
7026 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7027 else | |
7028 ac_check_lib_save_LIBS=$LIBS | |
25897 | 7029 LIBS="-lXbsd $LIBS" |
40056 | 7030 cat >conftest.$ac_ext <<_ACEOF |
44493 | 7031 #line $LINENO "configure" |
7032 #include "confdefs.h" | |
7033 | |
7034 | |
7035 #ifdef F77_DUMMY_MAIN | |
7036 # ifdef __cplusplus | |
7037 extern "C" | |
7038 # endif | |
7039 int F77_DUMMY_MAIN() { return 1; } | |
7040 #endif | |
40056 | 7041 int |
7042 main () | |
7043 { | |
7044 main (); | |
7045 ; | |
7046 return 0; | |
7047 } | |
7048 _ACEOF | |
7049 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7051 (eval $ac_link) 2>&5 | |
7052 ac_status=$? | |
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7054 (exit $ac_status); } && | |
7055 { ac_try='test -s conftest$ac_exeext' | |
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7057 (eval $ac_try) 2>&5 | |
7058 ac_status=$? | |
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7060 (exit $ac_status); }; }; then |
7061 ac_cv_lib_Xbsd_main=yes | |
7062 else | |
7063 echo "$as_me: failed program was:" >&5 | |
7064 cat conftest.$ac_ext >&5 | |
7065 ac_cv_lib_Xbsd_main=no | |
7066 fi | |
7067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7068 LIBS=$ac_check_lib_save_LIBS | |
7069 fi | |
44493 | 7070 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 |
40056 | 7071 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 |
7072 if test $ac_cv_lib_Xbsd_main = yes; then | |
25897 | 7073 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" |
40056 | 7074 fi |
7075 | |
44493 | 7076 |
7077 | |
7078 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5 | |
40056 | 7079 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 |
7080 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | |
7081 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7082 else | |
7083 ac_check_lib_save_LIBS=$LIBS | |
25897 | 7084 LIBS="-lpthreads $LIBS" |
40056 | 7085 cat >conftest.$ac_ext <<_ACEOF |
44493 | 7086 #line $LINENO "configure" |
40056 | 7087 #include "confdefs.h" |
7088 | |
25897 | 7089 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7090 #ifdef __cplusplus |
7091 extern "C" | |
7092 #endif | |
25897 | 7093 /* We use char because int might match the return type of a gcc2 |
40056 | 7094 builtin and then its argument prototype would still apply. */ |
7095 char cma_open (); | |
44493 | 7096 #ifdef F77_DUMMY_MAIN |
7097 # ifdef __cplusplus | |
7098 extern "C" | |
7099 # endif | |
7100 int F77_DUMMY_MAIN() { return 1; } | |
7101 #endif | |
40056 | 7102 int |
7103 main () | |
7104 { | |
7105 cma_open (); | |
7106 ; | |
7107 return 0; | |
7108 } | |
7109 _ACEOF | |
7110 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7112 (eval $ac_link) 2>&5 | |
7113 ac_status=$? | |
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7115 (exit $ac_status); } && | |
7116 { ac_try='test -s conftest$ac_exeext' | |
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7118 (eval $ac_try) 2>&5 | |
7119 ac_status=$? | |
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7121 (exit $ac_status); }; }; then |
7122 ac_cv_lib_pthreads_cma_open=yes | |
7123 else | |
7124 echo "$as_me: failed program was:" >&5 | |
7125 cat conftest.$ac_ext >&5 | |
7126 ac_cv_lib_pthreads_cma_open=no | |
7127 fi | |
7128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7129 LIBS=$ac_check_lib_save_LIBS | |
7130 fi | |
44493 | 7131 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 |
40056 | 7132 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 |
7133 if test $ac_cv_lib_pthreads_cma_open = yes; then | |
44493 | 7134 cat >>confdefs.h <<_ACEOF |
40056 | 7135 #define HAVE_LIBPTHREADS 1 |
44493 | 7136 _ACEOF |
25897 | 7137 |
7138 LIBS="-lpthreads $LIBS" | |
7139 | |
40056 | 7140 fi |
7141 | |
44493 | 7142 |
7143 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5 | |
40056 | 7144 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 |
25897 | 7145 if test -d /usr/X386/include; then |
7146 HAVE_XFREE386=yes | |
7147 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
7148 else | |
7149 HAVE_XFREE386=no | |
7150 fi | |
44493 | 7151 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5 |
40056 | 7152 echo "${ECHO_T}$HAVE_XFREE386" >&6 |
25897 | 7153 |
7154 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | |
7155 # for the tests that follow. We set it back to REAL_CFLAGS later on. | |
7156 | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7157 REAL_CPPFLAGS="$CPPFLAGS" |
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
7158 |
25897 | 7159 if test "${HAVE_X11}" = "yes"; then |
7160 DEFS="$C_SWITCH_X_SITE $DEFS" | |
7161 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
7162 LIBS="$LIBX $LIBS" | |
7163 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
|
7164 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" |
25897 | 7165 |
7166 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
7167 # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
7168 # but it's more convenient here to set LD_RUN_PATH | |
7169 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
7170 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
7171 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
7172 export LD_RUN_PATH | |
7173 fi | |
7174 | |
7175 if test "${opsys}" = "gnu-linux"; then | |
44493 | 7176 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 |
40056 | 7177 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 |
7178 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 7179 #line $LINENO "configure" |
7180 #include "confdefs.h" | |
7181 | |
7182 #ifdef F77_DUMMY_MAIN | |
7183 # ifdef __cplusplus | |
7184 extern "C" | |
7185 # endif | |
7186 int F77_DUMMY_MAIN() { return 1; } | |
7187 #endif | |
40056 | 7188 int |
7189 main () | |
7190 { | |
25897 | 7191 XOpenDisplay ("foo"); |
40056 | 7192 ; |
7193 return 0; | |
7194 } | |
7195 _ACEOF | |
7196 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7198 (eval $ac_link) 2>&5 | |
7199 ac_status=$? | |
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7201 (exit $ac_status); } && | |
7202 { ac_try='test -s conftest$ac_exeext' | |
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7204 (eval $ac_try) 2>&5 | |
7205 ac_status=$? | |
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7207 (exit $ac_status); }; }; then |
25897 | 7208 xlinux_first_failure=no |
7209 else | |
40056 | 7210 echo "$as_me: failed program was:" >&5 |
7211 cat conftest.$ac_ext >&5 | |
7212 xlinux_first_failure=yes | |
7213 fi | |
7214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 7215 if test "${xlinux_first_failure}" = "yes"; then |
7216 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
7217 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
7218 OLD_CPPFLAGS="$CPPFLAGS" | |
7219 OLD_LIBS="$LIBS" | |
7220 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
7221 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
7222 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
7223 LIBS="$LIBS -b i486-linuxaout" | |
40056 | 7224 cat >conftest.$ac_ext <<_ACEOF |
44493 | 7225 #line $LINENO "configure" |
7226 #include "confdefs.h" | |
7227 | |
7228 #ifdef F77_DUMMY_MAIN | |
7229 # ifdef __cplusplus | |
7230 extern "C" | |
7231 # endif | |
7232 int F77_DUMMY_MAIN() { return 1; } | |
7233 #endif | |
40056 | 7234 int |
7235 main () | |
7236 { | |
25897 | 7237 XOpenDisplay ("foo"); |
40056 | 7238 ; |
7239 return 0; | |
7240 } | |
7241 _ACEOF | |
7242 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7244 (eval $ac_link) 2>&5 | |
7245 ac_status=$? | |
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7247 (exit $ac_status); } && | |
7248 { ac_try='test -s conftest$ac_exeext' | |
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7250 (eval $ac_try) 2>&5 | |
7251 ac_status=$? | |
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7253 (exit $ac_status); }; }; then |
25897 | 7254 xlinux_second_failure=no |
7255 else | |
40056 | 7256 echo "$as_me: failed program was:" >&5 |
7257 cat conftest.$ac_ext >&5 | |
7258 xlinux_second_failure=yes | |
7259 fi | |
7260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 7261 if test "${xlinux_second_failure}" = "yes"; then |
7262 # If we get the same failure with -b, there is no use adding -b. | |
7263 # So take it out. This plays safe. | |
7264 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
7265 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
7266 CPPFLAGS="$OLD_CPPFLAGS" | |
7267 LIBS="$OLD_LIBS" | |
44493 | 7268 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 7269 echo "${ECHO_T}no" >&6 |
25897 | 7270 else |
44493 | 7271 echo "$as_me:$LINENO: result: yes" >&5 |
40056 | 7272 echo "${ECHO_T}yes" >&6 |
25897 | 7273 fi |
7274 else | |
44493 | 7275 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 7276 echo "${ECHO_T}no" >&6 |
25897 | 7277 fi |
7278 fi | |
7279 | |
35196 | 7280 # Reportedly, some broken Solaris systems have XKBlib.h but are missing |
7281 # header files included from there. | |
44493 | 7282 echo "$as_me:$LINENO: checking for Xkb" >&5 |
40056 | 7283 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 |
7284 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 7285 #line $LINENO "configure" |
35196 | 7286 #include "confdefs.h" |
7287 #include <X11/Xlib.h> | |
7288 #include <X11/XKBlib.h> | |
44493 | 7289 #ifdef F77_DUMMY_MAIN |
7290 # ifdef __cplusplus | |
7291 extern "C" | |
7292 # endif | |
7293 int F77_DUMMY_MAIN() { return 1; } | |
7294 #endif | |
40056 | 7295 int |
7296 main () | |
7297 { | |
35196 | 7298 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); |
40056 | 7299 ; |
7300 return 0; | |
7301 } | |
7302 _ACEOF | |
7303 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7305 (eval $ac_link) 2>&5 | |
7306 ac_status=$? | |
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7308 (exit $ac_status); } && | |
7309 { ac_try='test -s conftest$ac_exeext' | |
7310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7311 (eval $ac_try) 2>&5 | |
7312 ac_status=$? | |
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7314 (exit $ac_status); }; }; then |
35196 | 7315 emacs_xkb=yes |
7316 else | |
40056 | 7317 echo "$as_me: failed program was:" >&5 |
7318 cat conftest.$ac_ext >&5 | |
7319 emacs_xkb=no | |
7320 fi | |
7321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
44493 | 7322 echo "$as_me:$LINENO: result: $emacs_xkb" >&5 |
40056 | 7323 echo "${ECHO_T}$emacs_xkb" >&6 |
35196 | 7324 if test $emacs_xkb = yes; then |
44569 | 7325 |
7326 cat >>confdefs.h <<\_ACEOF | |
35196 | 7327 #define HAVE_XKBGETKEYBOARD 1 |
44493 | 7328 _ACEOF |
7329 | |
7330 fi | |
7331 | |
7332 | |
7333 | |
7334 | |
35196 | 7335 |
40056 | 7336 for ac_func in XrmSetDatabase XScreenResourceString \ |
25897 | 7337 XScreenNumberOfScreen XSetWMProtocols |
7338 do | |
40056 | 7339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44493 | 7340 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 7341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
7342 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7343 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7344 else | |
7345 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 7346 #line $LINENO "configure" |
25897 | 7347 #include "confdefs.h" |
7348 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 7349 which can conflict with char $ac_func (); below. */ |
25897 | 7350 #include <assert.h> |
7351 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 7352 #ifdef __cplusplus |
7353 extern "C" | |
7354 #endif | |
25897 | 7355 /* We use char because int might match the return type of a gcc2 |
40056 | 7356 builtin and then its argument prototype would still apply. */ |
7357 char $ac_func (); | |
7358 char (*f) (); | |
7359 | |
44493 | 7360 #ifdef F77_DUMMY_MAIN |
7361 # ifdef __cplusplus | |
7362 extern "C" | |
7363 # endif | |
7364 int F77_DUMMY_MAIN() { return 1; } | |
7365 #endif | |
40056 | 7366 int |
7367 main () | |
7368 { | |
25897 | 7369 /* The GNU C library defines this for functions which it implements |
7370 to always fail with ENOSYS. Some functions are actually named | |
7371 something starting with __ and the normal name is an alias. */ | |
7372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7373 choke me | |
7374 #else | |
40056 | 7375 f = $ac_func; |
7376 #endif | |
7377 | |
7378 ; | |
7379 return 0; | |
7380 } | |
7381 _ACEOF | |
7382 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7384 (eval $ac_link) 2>&5 | |
7385 ac_status=$? | |
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7387 (exit $ac_status); } && | |
7388 { ac_try='test -s conftest$ac_exeext' | |
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7390 (eval $ac_try) 2>&5 | |
7391 ac_status=$? | |
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7393 (exit $ac_status); }; }; then |
7394 eval "$as_ac_var=yes" | |
7395 else | |
7396 echo "$as_me: failed program was:" >&5 | |
7397 cat conftest.$ac_ext >&5 | |
7398 eval "$as_ac_var=no" | |
7399 fi | |
7400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7401 fi | |
44493 | 7402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 7403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
7404 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 7405 cat >>confdefs.h <<_ACEOF |
40056 | 7406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 7407 _ACEOF |
40056 | 7408 |
25897 | 7409 fi |
7410 done | |
7411 | |
7412 fi | |
7413 | |
7414 if test "${window_system}" = "x11"; then | |
44493 | 7415 echo "$as_me:$LINENO: checking X11 version 6" >&5 |
40056 | 7416 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 |
7417 if test "${emacs_cv_x11_version_6+set}" = set; then | |
7418 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7419 else | |
7420 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 7421 #line $LINENO "configure" |
25897 | 7422 #include "confdefs.h" |
7423 #include <X11/Xlib.h> | |
44493 | 7424 #ifdef F77_DUMMY_MAIN |
7425 # ifdef __cplusplus | |
7426 extern "C" | |
7427 # endif | |
7428 int F77_DUMMY_MAIN() { return 1; } | |
7429 #endif | |
40056 | 7430 int |
7431 main () | |
7432 { | |
25897 | 7433 #if XlibSpecificationRelease < 6 |
7434 fail; | |
7435 #endif | |
7436 | |
40056 | 7437 ; |
7438 return 0; | |
7439 } | |
7440 _ACEOF | |
7441 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7443 (eval $ac_link) 2>&5 | |
7444 ac_status=$? | |
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7446 (exit $ac_status); } && | |
7447 { ac_try='test -s conftest$ac_exeext' | |
7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7449 (eval $ac_try) 2>&5 | |
7450 ac_status=$? | |
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7452 (exit $ac_status); }; }; then |
25897 | 7453 emacs_cv_x11_version_6=yes |
7454 else | |
40056 | 7455 echo "$as_me: failed program was:" >&5 |
7456 cat conftest.$ac_ext >&5 | |
7457 emacs_cv_x11_version_6=no | |
7458 fi | |
7459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 7460 fi |
7461 | |
7462 if test $emacs_cv_x11_version_6 = yes; then | |
44493 | 7463 echo "$as_me:$LINENO: result: 6 or newer" >&5 |
40056 | 7464 echo "${ECHO_T}6 or newer" >&6 |
44569 | 7465 |
7466 cat >>confdefs.h <<\_ACEOF | |
25897 | 7467 #define HAVE_X11R6 1 |
44493 | 7468 _ACEOF |
7469 | |
7470 else | |
7471 echo "$as_me:$LINENO: result: before 6" >&5 | |
40056 | 7472 echo "${ECHO_T}before 6" >&6 |
25897 | 7473 fi |
7474 fi | |
7475 | |
7476 if test "${window_system}" = "x11"; then | |
44493 | 7477 echo "$as_me:$LINENO: checking X11 version 5" >&5 |
40056 | 7478 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 |
7479 if test "${emacs_cv_x11_version_5+set}" = set; then | |
7480 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7481 else | |
7482 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 7483 #line $LINENO "configure" |
25897 | 7484 #include "confdefs.h" |
7485 #include <X11/Xlib.h> | |
44493 | 7486 #ifdef F77_DUMMY_MAIN |
7487 # ifdef __cplusplus | |
7488 extern "C" | |
7489 # endif | |
7490 int F77_DUMMY_MAIN() { return 1; } | |
7491 #endif | |
40056 | 7492 int |
7493 main () | |
7494 { | |
25897 | 7495 #if XlibSpecificationRelease < 5 |
7496 fail; | |
7497 #endif | |
7498 | |
40056 | 7499 ; |
7500 return 0; | |
7501 } | |
7502 _ACEOF | |
7503 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7505 (eval $ac_link) 2>&5 | |
7506 ac_status=$? | |
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7508 (exit $ac_status); } && | |
7509 { ac_try='test -s conftest$ac_exeext' | |
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7511 (eval $ac_try) 2>&5 | |
7512 ac_status=$? | |
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7514 (exit $ac_status); }; }; then |
25897 | 7515 emacs_cv_x11_version_5=yes |
7516 else | |
40056 | 7517 echo "$as_me: failed program was:" >&5 |
7518 cat conftest.$ac_ext >&5 | |
7519 emacs_cv_x11_version_5=no | |
7520 fi | |
7521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 7522 fi |
7523 | |
7524 if test $emacs_cv_x11_version_5 = yes; then | |
44493 | 7525 echo "$as_me:$LINENO: result: 5 or newer" >&5 |
40056 | 7526 echo "${ECHO_T}5 or newer" >&6 |
25897 | 7527 HAVE_X11R5=yes |
44569 | 7528 |
7529 cat >>confdefs.h <<\_ACEOF | |
25897 | 7530 #define HAVE_X11R5 1 |
44493 | 7531 _ACEOF |
25897 | 7532 |
7533 else | |
7534 HAVE_X11R5=no | |
44493 | 7535 echo "$as_me:$LINENO: result: before 5" >&5 |
40056 | 7536 echo "${ECHO_T}before 5" >&6 |
25897 | 7537 fi |
7538 fi | |
7539 | |
7540 if test x"${USE_X_TOOLKIT}" = xmaybe; then | |
7541 if test x"${HAVE_X11R5}" = xyes; then | |
44493 | 7542 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5 |
40056 | 7543 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 |
7544 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then | |
7545 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7546 else | |
7547 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 7548 #line $LINENO "configure" |
25897 | 7549 #include "confdefs.h" |
7550 | |
7551 #include <X11/Intrinsic.h> | |
7552 #include <X11/Xaw/Simple.h> | |
44493 | 7553 #ifdef F77_DUMMY_MAIN |
7554 # ifdef __cplusplus | |
7555 extern "C" | |
7556 # endif | |
7557 int F77_DUMMY_MAIN() { return 1; } | |
7558 #endif | |
7559 int | |
7560 main () | |
7561 { | |
7562 | |
7563 ; | |
7564 return 0; | |
7565 } | |
7566 _ACEOF | |
7567 rm -f conftest.$ac_objext conftest$ac_exeext | |
7568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7569 (eval $ac_link) 2>&5 | |
7570 ac_status=$? | |
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7572 (exit $ac_status); } && | |
7573 { ac_try='test -s conftest$ac_exeext' | |
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7575 (eval $ac_try) 2>&5 | |
7576 ac_status=$? | |
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7578 (exit $ac_status); }; }; then |
25897 | 7579 emacs_cv_x11_version_5_with_xaw=yes |
7580 else | |
40056 | 7581 echo "$as_me: failed program was:" >&5 |
7582 cat conftest.$ac_ext >&5 | |
7583 emacs_cv_x11_version_5_with_xaw=no | |
7584 fi | |
7585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 7586 fi |
7587 | |
7588 if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
44493 | 7589 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
40056 | 7590 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 |
25897 | 7591 USE_X_TOOLKIT=LUCID |
7592 else | |
44493 | 7593 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5 |
40056 | 7594 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 |
25897 | 7595 USE_X_TOOLKIT=none |
7596 fi | |
7597 else | |
7598 USE_X_TOOLKIT=none | |
7599 fi | |
7600 fi | |
7601 | |
7602 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
7603 | |
7604 if test "${USE_X_TOOLKIT}" != "none"; then | |
44493 | 7605 echo "$as_me:$LINENO: checking X11 toolkit version" >&5 |
40056 | 7606 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 |
7607 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | |
7608 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7609 else | |
7610 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 7611 #line $LINENO "configure" |
25897 | 7612 #include "confdefs.h" |
7613 #include <X11/Intrinsic.h> | |
44493 | 7614 #ifdef F77_DUMMY_MAIN |
7615 # ifdef __cplusplus | |
7616 extern "C" | |
7617 # endif | |
7618 int F77_DUMMY_MAIN() { return 1; } | |
7619 #endif | |
40056 | 7620 int |
7621 main () | |
7622 { | |
25897 | 7623 #if XtSpecificationRelease < 6 |
7624 fail; | |
7625 #endif | |
7626 | |
40056 | 7627 ; |
7628 return 0; | |
7629 } | |
7630 _ACEOF | |
7631 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7633 (eval $ac_link) 2>&5 | |
7634 ac_status=$? | |
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7636 (exit $ac_status); } && | |
7637 { ac_try='test -s conftest$ac_exeext' | |
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7639 (eval $ac_try) 2>&5 | |
7640 ac_status=$? | |
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7642 (exit $ac_status); }; }; then |
25897 | 7643 emacs_cv_x11_toolkit_version_6=yes |
7644 else | |
40056 | 7645 echo "$as_me: failed program was:" >&5 |
7646 cat conftest.$ac_ext >&5 | |
7647 emacs_cv_x11_toolkit_version_6=no | |
7648 fi | |
7649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25897 | 7650 fi |
7651 | |
7652 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
7653 if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
44493 | 7654 echo "$as_me:$LINENO: result: 6 or newer" >&5 |
40056 | 7655 echo "${ECHO_T}6 or newer" >&6 |
44569 | 7656 |
7657 cat >>confdefs.h <<\_ACEOF | |
25897 | 7658 #define HAVE_X11XTR6 1 |
44493 | 7659 _ACEOF |
7660 | |
7661 else | |
7662 echo "$as_me:$LINENO: result: before 6" >&5 | |
40056 | 7663 echo "${ECHO_T}before 6" >&6 |
25897 | 7664 fi |
7665 | |
7666 OLDLIBS="$LIBS" | |
7667 if test x$HAVE_X11XTR6 = xyes; then | |
7668 LIBS="-lXt -lSM -lICE $LIBS" | |
7669 else | |
7670 LIBS="-lXt $LIBS" | |
7671 fi | |
40056 | 7672 |
44493 | 7673 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5 |
40056 | 7674 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 |
7675 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | |
7676 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7677 else | |
7678 ac_check_lib_save_LIBS=$LIBS | |
25897 | 7679 LIBS="-lXmu $LIBS" |
40056 | 7680 cat >conftest.$ac_ext <<_ACEOF |
44493 | 7681 #line $LINENO "configure" |
40056 | 7682 #include "confdefs.h" |
7683 | |
25897 | 7684 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7685 #ifdef __cplusplus |
7686 extern "C" | |
7687 #endif | |
25897 | 7688 /* We use char because int might match the return type of a gcc2 |
40056 | 7689 builtin and then its argument prototype would still apply. */ |
7690 char XmuConvertStandardSelection (); | |
44493 | 7691 #ifdef F77_DUMMY_MAIN |
7692 # ifdef __cplusplus | |
7693 extern "C" | |
7694 # endif | |
7695 int F77_DUMMY_MAIN() { return 1; } | |
7696 #endif | |
40056 | 7697 int |
7698 main () | |
7699 { | |
7700 XmuConvertStandardSelection (); | |
7701 ; | |
7702 return 0; | |
7703 } | |
7704 _ACEOF | |
7705 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7707 (eval $ac_link) 2>&5 | |
7708 ac_status=$? | |
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7710 (exit $ac_status); } && | |
7711 { ac_try='test -s conftest$ac_exeext' | |
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7713 (eval $ac_try) 2>&5 | |
7714 ac_status=$? | |
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7716 (exit $ac_status); }; }; then |
7717 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | |
7718 else | |
7719 echo "$as_me: failed program was:" >&5 | |
7720 cat conftest.$ac_ext >&5 | |
7721 ac_cv_lib_Xmu_XmuConvertStandardSelection=no | |
7722 fi | |
7723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7724 LIBS=$ac_check_lib_save_LIBS | |
7725 fi | |
44493 | 7726 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
40056 | 7727 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 |
7728 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | |
44493 | 7729 cat >>confdefs.h <<_ACEOF |
40056 | 7730 #define HAVE_LIBXMU 1 |
44493 | 7731 _ACEOF |
25897 | 7732 |
7733 LIBS="-lXmu $LIBS" | |
7734 | |
7735 fi | |
7736 | |
35206 | 7737 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" |
7738 fi | |
7739 | |
7740 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
7741 if test "${HAVE_X11}" = "yes"; then | |
7742 if test "${USE_X_TOOLKIT}" != "none"; then | |
40056 | 7743 |
44493 | 7744 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
40056 | 7745 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
7746 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
7747 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7748 else | |
7749 ac_check_lib_save_LIBS=$LIBS | |
35206 | 7750 LIBS="-lXext $LIBS" |
40056 | 7751 cat >conftest.$ac_ext <<_ACEOF |
44493 | 7752 #line $LINENO "configure" |
40056 | 7753 #include "confdefs.h" |
7754 | |
35206 | 7755 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7756 #ifdef __cplusplus |
7757 extern "C" | |
7758 #endif | |
35206 | 7759 /* We use char because int might match the return type of a gcc2 |
40056 | 7760 builtin and then its argument prototype would still apply. */ |
7761 char XShapeQueryExtension (); | |
44493 | 7762 #ifdef F77_DUMMY_MAIN |
7763 # ifdef __cplusplus | |
7764 extern "C" | |
7765 # endif | |
7766 int F77_DUMMY_MAIN() { return 1; } | |
7767 #endif | |
40056 | 7768 int |
7769 main () | |
7770 { | |
7771 XShapeQueryExtension (); | |
7772 ; | |
7773 return 0; | |
7774 } | |
7775 _ACEOF | |
7776 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7778 (eval $ac_link) 2>&5 | |
7779 ac_status=$? | |
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7781 (exit $ac_status); } && | |
7782 { ac_try='test -s conftest$ac_exeext' | |
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7784 (eval $ac_try) 2>&5 | |
7785 ac_status=$? | |
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7787 (exit $ac_status); }; }; then |
7788 ac_cv_lib_Xext_XShapeQueryExtension=yes | |
7789 else | |
7790 echo "$as_me: failed program was:" >&5 | |
7791 cat conftest.$ac_ext >&5 | |
7792 ac_cv_lib_Xext_XShapeQueryExtension=no | |
7793 fi | |
7794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7795 LIBS=$ac_check_lib_save_LIBS | |
7796 fi | |
44493 | 7797 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
40056 | 7798 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
7799 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
44493 | 7800 cat >>confdefs.h <<_ACEOF |
40056 | 7801 #define HAVE_LIBXEXT 1 |
44493 | 7802 _ACEOF |
35206 | 7803 |
7804 LIBS="-lXext $LIBS" | |
7805 | |
7806 fi | |
7807 | |
7808 fi | |
25897 | 7809 fi |
7810 | |
7811 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
44493 | 7812 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 |
40056 | 7813 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 |
7814 if test "${emacs_cv_motif_version_2_1+set}" = set; then | |
7815 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7816 else | |
7817 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 7818 #line $LINENO "configure" |
25897 | 7819 #include "confdefs.h" |
7820 #include <Xm/Xm.h> | |
44493 | 7821 #ifdef F77_DUMMY_MAIN |
7822 # ifdef __cplusplus | |
7823 extern "C" | |
7824 # endif | |
7825 int F77_DUMMY_MAIN() { return 1; } | |
7826 #endif | |
40056 | 7827 int |
7828 main () | |
7829 { | |
25897 | 7830 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
7831 int x = 5; | |
7832 #else | |
7833 Motif version prior to 2.1. | |
7834 #endif | |
40056 | 7835 ; |
7836 return 0; | |
7837 } | |
7838 _ACEOF | |
7839 rm -f conftest.$ac_objext | |
44493 | 7840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7841 (eval $ac_compile) 2>&5 | |
7842 ac_status=$? | |
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7844 (exit $ac_status); } && | |
7845 { ac_try='test -s conftest.$ac_objext' | |
7846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7847 (eval $ac_try) 2>&5 | |
7848 ac_status=$? | |
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7850 (exit $ac_status); }; }; then |
25897 | 7851 emacs_cv_motif_version_2_1=yes |
7852 else | |
40056 | 7853 echo "$as_me: failed program was:" >&5 |
7854 cat conftest.$ac_ext >&5 | |
7855 emacs_cv_motif_version_2_1=no | |
7856 fi | |
7857 rm -f conftest.$ac_objext conftest.$ac_ext | |
7858 fi | |
44493 | 7859 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 |
40056 | 7860 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 |
25897 | 7861 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 |
7862 if test $emacs_cv_motif_version_2_1 = yes; then | |
34431 | 7863 HAVE_LIBXP=no |
44569 | 7864 |
7865 cat >>confdefs.h <<\_ACEOF | |
25897 | 7866 #define HAVE_MOTIF_2_1 1 |
44493 | 7867 _ACEOF |
7868 | |
7869 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 | |
40056 | 7870 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 |
7871 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | |
7872 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7873 else | |
7874 ac_check_lib_save_LIBS=$LIBS | |
35206 | 7875 LIBS="-lXp $LIBS" |
40056 | 7876 cat >conftest.$ac_ext <<_ACEOF |
44493 | 7877 #line $LINENO "configure" |
40056 | 7878 #include "confdefs.h" |
7879 | |
25897 | 7880 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 7881 #ifdef __cplusplus |
7882 extern "C" | |
7883 #endif | |
25897 | 7884 /* We use char because int might match the return type of a gcc2 |
40056 | 7885 builtin and then its argument prototype would still apply. */ |
7886 char XpCreateContext (); | |
44493 | 7887 #ifdef F77_DUMMY_MAIN |
7888 # ifdef __cplusplus | |
7889 extern "C" | |
7890 # endif | |
7891 int F77_DUMMY_MAIN() { return 1; } | |
7892 #endif | |
40056 | 7893 int |
7894 main () | |
7895 { | |
7896 XpCreateContext (); | |
7897 ; | |
7898 return 0; | |
7899 } | |
7900 _ACEOF | |
7901 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7903 (eval $ac_link) 2>&5 | |
7904 ac_status=$? | |
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7906 (exit $ac_status); } && | |
7907 { ac_try='test -s conftest$ac_exeext' | |
7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7909 (eval $ac_try) 2>&5 | |
7910 ac_status=$? | |
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 7912 (exit $ac_status); }; }; then |
7913 ac_cv_lib_Xp_XpCreateContext=yes | |
7914 else | |
7915 echo "$as_me: failed program was:" >&5 | |
7916 cat conftest.$ac_ext >&5 | |
7917 ac_cv_lib_Xp_XpCreateContext=no | |
7918 fi | |
7919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7920 LIBS=$ac_check_lib_save_LIBS | |
7921 fi | |
44493 | 7922 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
40056 | 7923 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 |
7924 if test $ac_cv_lib_Xp_XpCreateContext = yes; then | |
29906 | 7925 HAVE_LIBXP=yes |
25897 | 7926 fi |
7927 | |
29906 | 7928 if test ${HAVE_LIBXP} = yes; then |
44569 | 7929 |
7930 cat >>confdefs.h <<\_ACEOF | |
29906 | 7931 #define HAVE_LIBXP 1 |
44493 | 7932 _ACEOF |
29906 | 7933 |
40056 | 7934 fi |
25897 | 7935 fi |
7936 fi | |
7937 | |
7938 ### Is -lXaw3d available? | |
7939 HAVE_XAW3D=no | |
7940 if test "${HAVE_X11}" = "yes"; then | |
7941 if test "${USE_X_TOOLKIT}" != "none"; then | |
44493 | 7942 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then |
7943 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5 | |
40056 | 7944 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 |
7945 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then | |
7946 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 7947 fi |
7948 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 | |
7949 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 | |
7950 else | |
7951 # Is the header compilable? | |
7952 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5 | |
7953 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6 | |
7954 cat >conftest.$ac_ext <<_ACEOF | |
7955 #line $LINENO "configure" | |
7956 #include "confdefs.h" | |
7957 $ac_includes_default | |
7958 #include <X11/Xaw3d/Scrollbar.h> | |
7959 _ACEOF | |
7960 rm -f conftest.$ac_objext | |
7961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7962 (eval $ac_compile) 2>&5 | |
7963 ac_status=$? | |
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7965 (exit $ac_status); } && | |
7966 { ac_try='test -s conftest.$ac_objext' | |
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7968 (eval $ac_try) 2>&5 | |
7969 ac_status=$? | |
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7971 (exit $ac_status); }; }; then | |
7972 ac_header_compiler=yes | |
7973 else | |
7974 echo "$as_me: failed program was:" >&5 | |
7975 cat conftest.$ac_ext >&5 | |
7976 ac_header_compiler=no | |
7977 fi | |
7978 rm -f conftest.$ac_objext conftest.$ac_ext | |
7979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7980 echo "${ECHO_T}$ac_header_compiler" >&6 | |
7981 | |
7982 # Is the header present? | |
7983 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5 | |
7984 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6 | |
7985 cat >conftest.$ac_ext <<_ACEOF | |
7986 #line $LINENO "configure" | |
25897 | 7987 #include "confdefs.h" |
7988 #include <X11/Xaw3d/Scrollbar.h> | |
40056 | 7989 _ACEOF |
44493 | 7990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 7991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7992 ac_status=$? | |
7993 egrep -v '^ *\+' conftest.er1 >conftest.err | |
7994 rm -f conftest.er1 | |
7995 cat conftest.err >&5 | |
44493 | 7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 7997 (exit $ac_status); } >/dev/null; then |
7998 if test -s conftest.err; then | |
7999 ac_cpp_err=$ac_c_preproc_warn_flag | |
8000 else | |
8001 ac_cpp_err= | |
8002 fi | |
8003 else | |
8004 ac_cpp_err=yes | |
8005 fi | |
8006 if test -z "$ac_cpp_err"; then | |
44493 | 8007 ac_header_preproc=yes |
40056 | 8008 else |
8009 echo "$as_me: failed program was:" >&5 | |
25897 | 8010 cat conftest.$ac_ext >&5 |
44493 | 8011 ac_header_preproc=no |
40056 | 8012 fi |
8013 rm -f conftest.err conftest.$ac_ext | |
44493 | 8014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8015 echo "${ECHO_T}$ac_header_preproc" >&6 | |
8016 | |
8017 # So? What about this header? | |
8018 case $ac_header_compiler:$ac_header_preproc in | |
8019 yes:no ) | |
8020 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8021 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8022 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5 | |
8023 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};; | |
8024 no:yes ) | |
8025 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5 | |
8026 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;} | |
8027 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5 | |
8028 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;} | |
8029 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5 | |
8030 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};; | |
8031 esac | |
8032 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5 | |
8033 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 | |
8034 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then | |
8035 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8036 else | |
8037 ac_cv_header_X11_Xaw3d_Scrollbar_h=$ac_header_preproc | |
8038 fi | |
8039 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 | |
40056 | 8040 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 |
44493 | 8041 |
8042 fi | |
40056 | 8043 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then |
44493 | 8044 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
40056 | 8045 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 |
8046 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then | |
8047 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8048 else | |
8049 ac_check_lib_save_LIBS=$LIBS | |
35206 | 8050 LIBS="-lXaw3d $LIBS" |
40056 | 8051 cat >conftest.$ac_ext <<_ACEOF |
44493 | 8052 #line $LINENO "configure" |
40056 | 8053 #include "confdefs.h" |
8054 | |
25897 | 8055 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8056 #ifdef __cplusplus |
8057 extern "C" | |
8058 #endif | |
25897 | 8059 /* We use char because int might match the return type of a gcc2 |
40056 | 8060 builtin and then its argument prototype would still apply. */ |
8061 char XawScrollbarSetThumb (); | |
44493 | 8062 #ifdef F77_DUMMY_MAIN |
8063 # ifdef __cplusplus | |
8064 extern "C" | |
8065 # endif | |
8066 int F77_DUMMY_MAIN() { return 1; } | |
8067 #endif | |
40056 | 8068 int |
8069 main () | |
8070 { | |
8071 XawScrollbarSetThumb (); | |
8072 ; | |
8073 return 0; | |
8074 } | |
8075 _ACEOF | |
8076 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8078 (eval $ac_link) 2>&5 | |
8079 ac_status=$? | |
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8081 (exit $ac_status); } && | |
8082 { ac_try='test -s conftest$ac_exeext' | |
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8084 (eval $ac_try) 2>&5 | |
8085 ac_status=$? | |
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 8087 (exit $ac_status); }; }; then |
8088 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes | |
8089 else | |
8090 echo "$as_me: failed program was:" >&5 | |
8091 cat conftest.$ac_ext >&5 | |
8092 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no | |
8093 fi | |
8094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8095 LIBS=$ac_check_lib_save_LIBS | |
8096 fi | |
44493 | 8097 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
40056 | 8098 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 |
8099 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then | |
25897 | 8100 HAVE_XAW3D=yes |
40056 | 8101 fi |
8102 | |
25897 | 8103 fi |
8104 | |
44493 | 8105 |
25897 | 8106 if test "${HAVE_XAW3D}" = "yes"; then |
44569 | 8107 |
8108 cat >>confdefs.h <<\_ACEOF | |
25897 | 8109 #define HAVE_XAW3D 1 |
44493 | 8110 _ACEOF |
25897 | 8111 |
8112 fi | |
8113 fi | |
8114 fi | |
8115 | |
44493 | 8116 |
44569 | 8117 |
25897 | 8118 USE_TOOLKIT_SCROLL_BARS=no |
8119 if test "${with_toolkit_scroll_bars}" != "no"; then | |
8120 if test "${USE_X_TOOLKIT}" != "none"; then | |
8121 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
44493 | 8122 cat >>confdefs.h <<\_ACEOF |
25897 | 8123 #define USE_TOOLKIT_SCROLL_BARS 1 |
44493 | 8124 _ACEOF |
25897 | 8125 |
8126 HAVE_XAW3D=no | |
8127 USE_TOOLKIT_SCROLL_BARS=yes | |
8128 elif test "${HAVE_XAW3D}" = "yes"; then | |
44493 | 8129 cat >>confdefs.h <<\_ACEOF |
25897 | 8130 #define USE_TOOLKIT_SCROLL_BARS 1 |
44493 | 8131 _ACEOF |
25897 | 8132 |
8133 USE_TOOLKIT_SCROLL_BARS=yes | |
8134 fi | |
8135 fi | |
8136 fi | |
8137 | |
44493 | 8138 |
29949 | 8139 if test "${with_xim}" != "no"; then |
44569 | 8140 |
8141 cat >>confdefs.h <<\_ACEOF | |
29949 | 8142 #define USE_XIM 1 |
44493 | 8143 _ACEOF |
29949 | 8144 |
8145 fi | |
8146 | |
25897 | 8147 ### Use -lXpm if available, unless `--with-xpm=no'. |
8148 HAVE_XPM=no | |
8149 if test "${HAVE_X11}" = "yes"; then | |
8150 if test "${with_xpm}" != "no"; then | |
44493 | 8151 if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
8152 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
40056 | 8153 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 |
8154 if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
8155 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 8156 fi |
8157 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 | |
8158 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 | |
8159 else | |
8160 # Is the header compilable? | |
8161 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 | |
8162 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6 | |
8163 cat >conftest.$ac_ext <<_ACEOF | |
8164 #line $LINENO "configure" | |
8165 #include "confdefs.h" | |
8166 $ac_includes_default | |
8167 #include <X11/xpm.h> | |
8168 _ACEOF | |
8169 rm -f conftest.$ac_objext | |
8170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8171 (eval $ac_compile) 2>&5 | |
8172 ac_status=$? | |
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8174 (exit $ac_status); } && | |
8175 { ac_try='test -s conftest.$ac_objext' | |
8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8177 (eval $ac_try) 2>&5 | |
8178 ac_status=$? | |
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8180 (exit $ac_status); }; }; then | |
8181 ac_header_compiler=yes | |
8182 else | |
8183 echo "$as_me: failed program was:" >&5 | |
8184 cat conftest.$ac_ext >&5 | |
8185 ac_header_compiler=no | |
8186 fi | |
8187 rm -f conftest.$ac_objext conftest.$ac_ext | |
8188 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8189 echo "${ECHO_T}$ac_header_compiler" >&6 | |
8190 | |
8191 # Is the header present? | |
8192 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 | |
8193 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6 | |
8194 cat >conftest.$ac_ext <<_ACEOF | |
8195 #line $LINENO "configure" | |
25897 | 8196 #include "confdefs.h" |
8197 #include <X11/xpm.h> | |
40056 | 8198 _ACEOF |
44493 | 8199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 8200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8201 ac_status=$? | |
8202 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8203 rm -f conftest.er1 | |
8204 cat conftest.err >&5 | |
44493 | 8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 8206 (exit $ac_status); } >/dev/null; then |
8207 if test -s conftest.err; then | |
8208 ac_cpp_err=$ac_c_preproc_warn_flag | |
8209 else | |
8210 ac_cpp_err= | |
8211 fi | |
8212 else | |
8213 ac_cpp_err=yes | |
8214 fi | |
8215 if test -z "$ac_cpp_err"; then | |
44493 | 8216 ac_header_preproc=yes |
40056 | 8217 else |
8218 echo "$as_me: failed program was:" >&5 | |
25897 | 8219 cat conftest.$ac_ext >&5 |
44493 | 8220 ac_header_preproc=no |
40056 | 8221 fi |
8222 rm -f conftest.err conftest.$ac_ext | |
44493 | 8223 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8224 echo "${ECHO_T}$ac_header_preproc" >&6 | |
8225 | |
8226 # So? What about this header? | |
8227 case $ac_header_compiler:$ac_header_preproc in | |
8228 yes:no ) | |
8229 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8230 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8231 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 | |
8232 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};; | |
8233 no:yes ) | |
8234 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 | |
8235 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} | |
8236 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 | |
8237 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} | |
8238 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 | |
8239 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};; | |
8240 esac | |
8241 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
8242 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
8243 if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
8244 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8245 else | |
8246 ac_cv_header_X11_xpm_h=$ac_header_preproc | |
8247 fi | |
8248 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 | |
40056 | 8249 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 |
44493 | 8250 |
8251 fi | |
40056 | 8252 if test $ac_cv_header_X11_xpm_h = yes; then |
44493 | 8253 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5 |
40056 | 8254 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 |
8255 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | |
8256 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8257 else | |
8258 ac_check_lib_save_LIBS=$LIBS | |
25897 | 8259 LIBS="-lXpm -lX11 $LIBS" |
40056 | 8260 cat >conftest.$ac_ext <<_ACEOF |
44493 | 8261 #line $LINENO "configure" |
40056 | 8262 #include "confdefs.h" |
8263 | |
25897 | 8264 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8265 #ifdef __cplusplus |
8266 extern "C" | |
8267 #endif | |
25897 | 8268 /* We use char because int might match the return type of a gcc2 |
40056 | 8269 builtin and then its argument prototype would still apply. */ |
8270 char XpmReadFileToPixmap (); | |
44493 | 8271 #ifdef F77_DUMMY_MAIN |
8272 # ifdef __cplusplus | |
8273 extern "C" | |
8274 # endif | |
8275 int F77_DUMMY_MAIN() { return 1; } | |
8276 #endif | |
40056 | 8277 int |
8278 main () | |
8279 { | |
8280 XpmReadFileToPixmap (); | |
8281 ; | |
8282 return 0; | |
8283 } | |
8284 _ACEOF | |
8285 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 8286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8287 (eval $ac_link) 2>&5 | |
8288 ac_status=$? | |
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8290 (exit $ac_status); } && | |
8291 { ac_try='test -s conftest$ac_exeext' | |
8292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8293 (eval $ac_try) 2>&5 | |
8294 ac_status=$? | |
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 8296 (exit $ac_status); }; }; then |
8297 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes | |
8298 else | |
8299 echo "$as_me: failed program was:" >&5 | |
8300 cat conftest.$ac_ext >&5 | |
8301 ac_cv_lib_Xpm_XpmReadFileToPixmap=no | |
8302 fi | |
8303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8304 LIBS=$ac_check_lib_save_LIBS | |
8305 fi | |
44493 | 8306 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
40056 | 8307 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 |
8308 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | |
25897 | 8309 HAVE_XPM=yes |
40056 | 8310 fi |
8311 | |
25897 | 8312 fi |
8313 | |
44493 | 8314 |
30140 | 8315 if test "${HAVE_XPM}" = "yes"; then |
44493 | 8316 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 |
40056 | 8317 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 |
8318 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 8319 #line $LINENO "configure" |
30140 | 8320 #include "confdefs.h" |
8321 #include "X11/xpm.h" | |
8322 #ifndef XpmReturnAllocPixels | |
8323 no_return_alloc_pixels | |
8324 #endif | |
40056 | 8325 |
8326 _ACEOF | |
30140 | 8327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8328 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then | |
8329 HAVE_XPM=no | |
8330 else | |
8331 HAVE_XPM=yes | |
8332 fi | |
8333 rm -f conftest* | |
8334 | |
44493 | 8335 |
36903 | 8336 if test "${HAVE_XPM}" = "yes"; then |
44493 | 8337 echo "$as_me:$LINENO: result: yes" >&5 |
40056 | 8338 echo "${ECHO_T}yes" >&6 |
36903 | 8339 else |
44493 | 8340 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 8341 echo "${ECHO_T}no" >&6 |
36903 | 8342 fi |
31320 | 8343 fi |
25897 | 8344 fi |
8345 | |
8346 if test "${HAVE_XPM}" = "yes"; then | |
44569 | 8347 |
8348 cat >>confdefs.h <<\_ACEOF | |
25897 | 8349 #define HAVE_XPM 1 |
44493 | 8350 _ACEOF |
25897 | 8351 |
8352 fi | |
8353 fi | |
40056 | 8354 |
25897 | 8355 ### Use -ljpeg if available, unless `--with-jpeg=no'. |
8356 HAVE_JPEG=no | |
8357 if test "${HAVE_X11}" = "yes"; then | |
8358 if test "${with_jpeg}" != "no"; then | |
44493 | 8359 if test "${ac_cv_header_jerror_h+set}" = set; then |
8360 echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
40056 | 8361 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 |
8362 if test "${ac_cv_header_jerror_h+set}" = set; then | |
8363 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 8364 fi |
8365 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 | |
8366 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 | |
8367 else | |
8368 # Is the header compilable? | |
8369 echo "$as_me:$LINENO: checking jerror.h usability" >&5 | |
8370 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6 | |
8371 cat >conftest.$ac_ext <<_ACEOF | |
8372 #line $LINENO "configure" | |
8373 #include "confdefs.h" | |
8374 $ac_includes_default | |
8375 #include <jerror.h> | |
8376 _ACEOF | |
8377 rm -f conftest.$ac_objext | |
8378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8379 (eval $ac_compile) 2>&5 | |
8380 ac_status=$? | |
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8382 (exit $ac_status); } && | |
8383 { ac_try='test -s conftest.$ac_objext' | |
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8385 (eval $ac_try) 2>&5 | |
8386 ac_status=$? | |
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8388 (exit $ac_status); }; }; then | |
8389 ac_header_compiler=yes | |
8390 else | |
8391 echo "$as_me: failed program was:" >&5 | |
8392 cat conftest.$ac_ext >&5 | |
8393 ac_header_compiler=no | |
8394 fi | |
8395 rm -f conftest.$ac_objext conftest.$ac_ext | |
8396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8397 echo "${ECHO_T}$ac_header_compiler" >&6 | |
8398 | |
8399 # Is the header present? | |
8400 echo "$as_me:$LINENO: checking jerror.h presence" >&5 | |
8401 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6 | |
8402 cat >conftest.$ac_ext <<_ACEOF | |
8403 #line $LINENO "configure" | |
27356 | 8404 #include "confdefs.h" |
8405 #include <jerror.h> | |
40056 | 8406 _ACEOF |
44493 | 8407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 8408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8409 ac_status=$? | |
8410 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8411 rm -f conftest.er1 | |
8412 cat conftest.err >&5 | |
44493 | 8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 8414 (exit $ac_status); } >/dev/null; then |
8415 if test -s conftest.err; then | |
8416 ac_cpp_err=$ac_c_preproc_warn_flag | |
8417 else | |
8418 ac_cpp_err= | |
8419 fi | |
8420 else | |
8421 ac_cpp_err=yes | |
8422 fi | |
8423 if test -z "$ac_cpp_err"; then | |
44493 | 8424 ac_header_preproc=yes |
40056 | 8425 else |
8426 echo "$as_me: failed program was:" >&5 | |
27356 | 8427 cat conftest.$ac_ext >&5 |
44493 | 8428 ac_header_preproc=no |
40056 | 8429 fi |
8430 rm -f conftest.err conftest.$ac_ext | |
44493 | 8431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8432 echo "${ECHO_T}$ac_header_preproc" >&6 | |
8433 | |
8434 # So? What about this header? | |
8435 case $ac_header_compiler:$ac_header_preproc in | |
8436 yes:no ) | |
8437 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8438 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8439 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 | |
8440 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};; | |
8441 no:yes ) | |
8442 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 | |
8443 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} | |
8444 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 | |
8445 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} | |
8446 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 | |
8447 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};; | |
8448 esac | |
8449 echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
8450 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 | |
8451 if test "${ac_cv_header_jerror_h+set}" = set; then | |
8452 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8453 else | |
8454 ac_cv_header_jerror_h=$ac_header_preproc | |
8455 fi | |
8456 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 | |
40056 | 8457 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 |
44493 | 8458 |
8459 fi | |
40056 | 8460 if test $ac_cv_header_jerror_h = yes; then |
44493 | 8461 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5 |
40056 | 8462 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 |
8463 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | |
8464 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8465 else | |
8466 ac_check_lib_save_LIBS=$LIBS | |
35206 | 8467 LIBS="-ljpeg $LIBS" |
40056 | 8468 cat >conftest.$ac_ext <<_ACEOF |
44493 | 8469 #line $LINENO "configure" |
40056 | 8470 #include "confdefs.h" |
8471 | |
25897 | 8472 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8473 #ifdef __cplusplus |
8474 extern "C" | |
8475 #endif | |
25897 | 8476 /* We use char because int might match the return type of a gcc2 |
40056 | 8477 builtin and then its argument prototype would still apply. */ |
8478 char jpeg_destroy_compress (); | |
44493 | 8479 #ifdef F77_DUMMY_MAIN |
8480 # ifdef __cplusplus | |
8481 extern "C" | |
8482 # endif | |
8483 int F77_DUMMY_MAIN() { return 1; } | |
8484 #endif | |
40056 | 8485 int |
8486 main () | |
8487 { | |
8488 jpeg_destroy_compress (); | |
8489 ; | |
8490 return 0; | |
8491 } | |
8492 _ACEOF | |
8493 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 8494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8495 (eval $ac_link) 2>&5 | |
8496 ac_status=$? | |
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8498 (exit $ac_status); } && | |
8499 { ac_try='test -s conftest$ac_exeext' | |
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8501 (eval $ac_try) 2>&5 | |
8502 ac_status=$? | |
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 8504 (exit $ac_status); }; }; then |
8505 ac_cv_lib_jpeg_jpeg_destroy_compress=yes | |
8506 else | |
8507 echo "$as_me: failed program was:" >&5 | |
8508 cat conftest.$ac_ext >&5 | |
8509 ac_cv_lib_jpeg_jpeg_destroy_compress=no | |
8510 fi | |
8511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8512 LIBS=$ac_check_lib_save_LIBS | |
8513 fi | |
44493 | 8514 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
40056 | 8515 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 |
8516 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | |
25897 | 8517 HAVE_JPEG=yes |
40056 | 8518 fi |
8519 | |
27356 | 8520 fi |
8521 | |
44493 | 8522 |
25897 | 8523 fi |
8524 | |
44569 | 8525 |
25897 | 8526 if test "${HAVE_JPEG}" = "yes"; then |
44493 | 8527 cat >>confdefs.h <<\_ACEOF |
25897 | 8528 #define HAVE_JPEG 1 |
44493 | 8529 _ACEOF |
25897 | 8530 |
43721 | 8531 cat >conftest.$ac_ext <<_ACEOF |
44493 | 8532 #line $LINENO "configure" |
43721 | 8533 #include "confdefs.h" |
8534 #include <jpeglib.h> | |
8535 version=JPEG_LIB_VERSION | |
8536 | |
8537 _ACEOF | |
8538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8539 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then | |
44493 | 8540 cat >>confdefs.h <<\_ACEOF |
43721 | 8541 #define HAVE_JPEG 1 |
44493 | 8542 _ACEOF |
8543 | |
8544 else | |
8545 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5 | |
43721 | 8546 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
8547 HAVE_JPEG=no | |
8548 fi | |
8549 rm -f conftest* | |
8550 | |
25897 | 8551 fi |
8552 fi | |
40056 | 8553 |
25897 | 8554 ### Use -lpng if available, unless `--with-png=no'. |
8555 HAVE_PNG=no | |
8556 if test "${HAVE_X11}" = "yes"; then | |
8557 if test "${with_png}" != "no"; then | |
44493 | 8558 if test "${ac_cv_header_png_h+set}" = set; then |
8559 echo "$as_me:$LINENO: checking for png.h" >&5 | |
40056 | 8560 echo $ECHO_N "checking for png.h... $ECHO_C" >&6 |
8561 if test "${ac_cv_header_png_h+set}" = set; then | |
8562 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 8563 fi |
8564 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
8565 echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
8566 else | |
8567 # Is the header compilable? | |
8568 echo "$as_me:$LINENO: checking png.h usability" >&5 | |
8569 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
8570 cat >conftest.$ac_ext <<_ACEOF | |
8571 #line $LINENO "configure" | |
8572 #include "confdefs.h" | |
8573 $ac_includes_default | |
8574 #include <png.h> | |
8575 _ACEOF | |
8576 rm -f conftest.$ac_objext | |
8577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8578 (eval $ac_compile) 2>&5 | |
8579 ac_status=$? | |
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8581 (exit $ac_status); } && | |
8582 { ac_try='test -s conftest.$ac_objext' | |
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8584 (eval $ac_try) 2>&5 | |
8585 ac_status=$? | |
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8587 (exit $ac_status); }; }; then | |
8588 ac_header_compiler=yes | |
8589 else | |
8590 echo "$as_me: failed program was:" >&5 | |
8591 cat conftest.$ac_ext >&5 | |
8592 ac_header_compiler=no | |
8593 fi | |
8594 rm -f conftest.$ac_objext conftest.$ac_ext | |
8595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8596 echo "${ECHO_T}$ac_header_compiler" >&6 | |
8597 | |
8598 # Is the header present? | |
8599 echo "$as_me:$LINENO: checking png.h presence" >&5 | |
8600 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
8601 cat >conftest.$ac_ext <<_ACEOF | |
8602 #line $LINENO "configure" | |
25897 | 8603 #include "confdefs.h" |
8604 #include <png.h> | |
40056 | 8605 _ACEOF |
44493 | 8606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 8607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8608 ac_status=$? | |
8609 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8610 rm -f conftest.er1 | |
8611 cat conftest.err >&5 | |
44493 | 8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 8613 (exit $ac_status); } >/dev/null; then |
8614 if test -s conftest.err; then | |
8615 ac_cpp_err=$ac_c_preproc_warn_flag | |
8616 else | |
8617 ac_cpp_err= | |
8618 fi | |
8619 else | |
8620 ac_cpp_err=yes | |
8621 fi | |
8622 if test -z "$ac_cpp_err"; then | |
44493 | 8623 ac_header_preproc=yes |
40056 | 8624 else |
8625 echo "$as_me: failed program was:" >&5 | |
25897 | 8626 cat conftest.$ac_ext >&5 |
44493 | 8627 ac_header_preproc=no |
40056 | 8628 fi |
8629 rm -f conftest.err conftest.$ac_ext | |
44493 | 8630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8631 echo "${ECHO_T}$ac_header_preproc" >&6 | |
8632 | |
8633 # So? What about this header? | |
8634 case $ac_header_compiler:$ac_header_preproc in | |
8635 yes:no ) | |
8636 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8637 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8638 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
8639 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};; | |
8640 no:yes ) | |
8641 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 | |
8642 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
8643 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 | |
8644 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
8645 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
8646 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};; | |
8647 esac | |
8648 echo "$as_me:$LINENO: checking for png.h" >&5 | |
8649 echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
8650 if test "${ac_cv_header_png_h+set}" = set; then | |
8651 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8652 else | |
8653 ac_cv_header_png_h=$ac_header_preproc | |
8654 fi | |
8655 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
40056 | 8656 echo "${ECHO_T}$ac_cv_header_png_h" >&6 |
44493 | 8657 |
8658 fi | |
40056 | 8659 if test $ac_cv_header_png_h = yes; then |
44493 | 8660 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 |
40056 | 8661 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 |
8662 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | |
8663 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8664 else | |
8665 ac_check_lib_save_LIBS=$LIBS | |
35206 | 8666 LIBS="-lpng -lz -lm $LIBS" |
40056 | 8667 cat >conftest.$ac_ext <<_ACEOF |
44493 | 8668 #line $LINENO "configure" |
40056 | 8669 #include "confdefs.h" |
8670 | |
25897 | 8671 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 8672 #ifdef __cplusplus |
8673 extern "C" | |
8674 #endif | |
25897 | 8675 /* We use char because int might match the return type of a gcc2 |
40056 | 8676 builtin and then its argument prototype would still apply. */ |
8677 char png_get_channels (); | |
44493 | 8678 #ifdef F77_DUMMY_MAIN |
8679 # ifdef __cplusplus | |
8680 extern "C" | |
8681 # endif | |
8682 int F77_DUMMY_MAIN() { return 1; } | |
8683 #endif | |
40056 | 8684 int |
8685 main () | |
8686 { | |
8687 png_get_channels (); | |
8688 ; | |
8689 return 0; | |
8690 } | |
8691 _ACEOF | |
8692 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 8693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8694 (eval $ac_link) 2>&5 | |
8695 ac_status=$? | |
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8697 (exit $ac_status); } && | |
8698 { ac_try='test -s conftest$ac_exeext' | |
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8700 (eval $ac_try) 2>&5 | |
8701 ac_status=$? | |
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 8703 (exit $ac_status); }; }; then |
8704 ac_cv_lib_png_png_get_channels=yes | |
8705 else | |
8706 echo "$as_me: failed program was:" >&5 | |
8707 cat conftest.$ac_ext >&5 | |
8708 ac_cv_lib_png_png_get_channels=no | |
8709 fi | |
8710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8711 LIBS=$ac_check_lib_save_LIBS | |
8712 fi | |
44493 | 8713 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 |
40056 | 8714 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 |
8715 if test $ac_cv_lib_png_png_get_channels = yes; then | |
25897 | 8716 HAVE_PNG=yes |
40056 | 8717 fi |
8718 | |
25897 | 8719 fi |
8720 | |
44493 | 8721 |
25897 | 8722 fi |
8723 | |
8724 if test "${HAVE_PNG}" = "yes"; then | |
44569 | 8725 |
8726 cat >>confdefs.h <<\_ACEOF | |
25897 | 8727 #define HAVE_PNG 1 |
44493 | 8728 _ACEOF |
25897 | 8729 |
8730 fi | |
8731 fi | |
40056 | 8732 |
25897 | 8733 ### Use -ltiff if available, unless `--with-tiff=no'. |
8734 HAVE_TIFF=no | |
8735 if test "${HAVE_X11}" = "yes"; then | |
8736 if test "${with_tiff}" != "no"; then | |
44493 | 8737 if test "${ac_cv_header_tiffio_h+set}" = set; then |
8738 echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
40056 | 8739 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
8740 if test "${ac_cv_header_tiffio_h+set}" = set; then | |
8741 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 8742 fi |
8743 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
8744 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
8745 else | |
8746 # Is the header compilable? | |
8747 echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
8748 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
8749 cat >conftest.$ac_ext <<_ACEOF | |
8750 #line $LINENO "configure" | |
8751 #include "confdefs.h" | |
8752 $ac_includes_default | |
8753 #include <tiffio.h> | |
8754 _ACEOF | |
8755 rm -f conftest.$ac_objext | |
8756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8757 (eval $ac_compile) 2>&5 | |
8758 ac_status=$? | |
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8760 (exit $ac_status); } && | |
8761 { ac_try='test -s conftest.$ac_objext' | |
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8763 (eval $ac_try) 2>&5 | |
8764 ac_status=$? | |
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8766 (exit $ac_status); }; }; then | |
8767 ac_header_compiler=yes | |
8768 else | |
8769 echo "$as_me: failed program was:" >&5 | |
8770 cat conftest.$ac_ext >&5 | |
8771 ac_header_compiler=no | |
8772 fi | |
8773 rm -f conftest.$ac_objext conftest.$ac_ext | |
8774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8775 echo "${ECHO_T}$ac_header_compiler" >&6 | |
8776 | |
8777 # Is the header present? | |
8778 echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
8779 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
8780 cat >conftest.$ac_ext <<_ACEOF | |
8781 #line $LINENO "configure" | |
25897 | 8782 #include "confdefs.h" |
8783 #include <tiffio.h> | |
40056 | 8784 _ACEOF |
44493 | 8785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 8786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8787 ac_status=$? | |
8788 egrep -v '^ *\+' conftest.er1 >conftest.err | |
8789 rm -f conftest.er1 | |
8790 cat conftest.err >&5 | |
44493 | 8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 8792 (exit $ac_status); } >/dev/null; then |
8793 if test -s conftest.err; then | |
8794 ac_cpp_err=$ac_c_preproc_warn_flag | |
8795 else | |
8796 ac_cpp_err= | |
8797 fi | |
8798 else | |
8799 ac_cpp_err=yes | |
8800 fi | |
8801 if test -z "$ac_cpp_err"; then | |
44493 | 8802 ac_header_preproc=yes |
40056 | 8803 else |
8804 echo "$as_me: failed program was:" >&5 | |
25897 | 8805 cat conftest.$ac_ext >&5 |
44493 | 8806 ac_header_preproc=no |
40056 | 8807 fi |
8808 rm -f conftest.err conftest.$ac_ext | |
44493 | 8809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8810 echo "${ECHO_T}$ac_header_preproc" >&6 | |
8811 | |
8812 # So? What about this header? | |
8813 case $ac_header_compiler:$ac_header_preproc in | |
8814 yes:no ) | |
8815 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8816 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8817 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
8818 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};; | |
8819 no:yes ) | |
8820 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 | |
8821 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
8822 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 | |
8823 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
8824 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
8825 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};; | |
8826 esac | |
8827 echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
8828 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
8829 if test "${ac_cv_header_tiffio_h+set}" = set; then | |
8830 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8831 else | |
8832 ac_cv_header_tiffio_h=$ac_header_preproc | |
8833 fi | |
8834 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
8835 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
8836 | |
8837 fi | |
8838 if test $ac_cv_header_tiffio_h = yes; then | |
8839 tifflibs="-lz -lm" | |
8840 # At least one tiff package requires the jpeg library. | |
8841 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
8842 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 | |
8843 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 | |
8844 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | |
40056 | 8845 echo $ECHO_N "(cached) $ECHO_C" >&6 |
8846 else | |
8847 ac_check_lib_save_LIBS=$LIBS | |
44493 | 8848 LIBS="-ltiff $tifflibs $LIBS" |
8849 cat >conftest.$ac_ext <<_ACEOF | |
8850 #line $LINENO "configure" | |
8851 #include "confdefs.h" | |
8852 | |
8853 /* Override any gcc2 internal prototype to avoid an error. */ | |
8854 #ifdef __cplusplus | |
8855 extern "C" | |
8856 #endif | |
8857 /* We use char because int might match the return type of a gcc2 | |
8858 builtin and then its argument prototype would still apply. */ | |
8859 char TIFFGetVersion (); | |
8860 #ifdef F77_DUMMY_MAIN | |
8861 # ifdef __cplusplus | |
8862 extern "C" | |
8863 # endif | |
8864 int F77_DUMMY_MAIN() { return 1; } | |
8865 #endif | |
8866 int | |
8867 main () | |
8868 { | |
8869 TIFFGetVersion (); | |
8870 ; | |
8871 return 0; | |
8872 } | |
8873 _ACEOF | |
8874 rm -f conftest.$ac_objext conftest$ac_exeext | |
8875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8876 (eval $ac_link) 2>&5 | |
8877 ac_status=$? | |
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8879 (exit $ac_status); } && | |
8880 { ac_try='test -s conftest$ac_exeext' | |
8881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8882 (eval $ac_try) 2>&5 | |
8883 ac_status=$? | |
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8885 (exit $ac_status); }; }; then | |
8886 ac_cv_lib_tiff_TIFFGetVersion=yes | |
8887 else | |
8888 echo "$as_me: failed program was:" >&5 | |
8889 cat conftest.$ac_ext >&5 | |
8890 ac_cv_lib_tiff_TIFFGetVersion=no | |
40056 | 8891 fi |
8892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8893 LIBS=$ac_check_lib_save_LIBS | |
8894 fi | |
44493 | 8895 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
8896 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 | |
8897 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | |
8898 HAVE_TIFF=yes | |
8899 fi | |
8900 | |
8901 fi | |
8902 | |
8903 | |
8904 fi | |
8905 | |
8906 if test "${HAVE_TIFF}" = "yes"; then | |
44569 | 8907 |
8908 cat >>confdefs.h <<\_ACEOF | |
44493 | 8909 #define HAVE_TIFF 1 |
8910 _ACEOF | |
8911 | |
8912 fi | |
8913 fi | |
8914 | |
8915 ### Use -lgif if available, unless `--with-gif=no'. | |
8916 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
|
8917 if test "${HAVE_X11}" = "yes"; then |
44493 | 8918 if test "${with_gif}" != "no"; then |
8919 if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
8920 echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
8921 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 | |
8922 if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
8923 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8924 fi | |
8925 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 | |
8926 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 | |
8927 else | |
8928 # Is the header compilable? | |
8929 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5 | |
8930 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6 | |
8931 cat >conftest.$ac_ext <<_ACEOF | |
8932 #line $LINENO "configure" | |
8933 #include "confdefs.h" | |
8934 $ac_includes_default | |
8935 #include <gif_lib.h> | |
8936 _ACEOF | |
8937 rm -f conftest.$ac_objext | |
8938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8939 (eval $ac_compile) 2>&5 | |
8940 ac_status=$? | |
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8942 (exit $ac_status); } && | |
8943 { ac_try='test -s conftest.$ac_objext' | |
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8945 (eval $ac_try) 2>&5 | |
8946 ac_status=$? | |
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8948 (exit $ac_status); }; }; then | |
8949 ac_header_compiler=yes | |
8950 else | |
8951 echo "$as_me: failed program was:" >&5 | |
8952 cat conftest.$ac_ext >&5 | |
8953 ac_header_compiler=no | |
8954 fi | |
8955 rm -f conftest.$ac_objext conftest.$ac_ext | |
8956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8957 echo "${ECHO_T}$ac_header_compiler" >&6 | |
8958 | |
8959 # Is the header present? | |
8960 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5 | |
8961 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6 | |
8962 cat >conftest.$ac_ext <<_ACEOF | |
8963 #line $LINENO "configure" | |
8964 #include "confdefs.h" | |
8965 #include <gif_lib.h> | |
8966 _ACEOF | |
8967 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
|
8968 (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
|
8969 ac_status=$? |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8970 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
|
8971 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
|
8972 cat conftest.err >&5 |
44493 | 8973 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
|
8974 (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
|
8975 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
|
8976 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
|
8977 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8978 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
|
8979 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8980 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8981 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
|
8982 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8983 if test -z "$ac_cpp_err"; then |
44493 | 8984 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
|
8985 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8986 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
|
8987 cat conftest.$ac_ext >&5 |
44493 | 8988 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
|
8989 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
8990 rm -f conftest.err conftest.$ac_ext |
44493 | 8991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8992 echo "${ECHO_T}$ac_header_preproc" >&6 | |
8993 | |
8994 # So? What about this header? | |
8995 case $ac_header_compiler:$ac_header_preproc in | |
8996 yes:no ) | |
8997 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8998 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8999 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 | |
9000 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};; | |
9001 no:yes ) | |
9002 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5 | |
9003 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;} | |
9004 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5 | |
9005 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;} | |
9006 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 | |
9007 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};; | |
9008 esac | |
9009 echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
9010 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 | |
9011 if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
9012 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9013 else | |
9014 ac_cv_header_gif_lib_h=$ac_header_preproc | |
9015 fi | |
9016 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 | |
9017 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 | |
9018 | |
9019 fi | |
9020 if test $ac_cv_header_gif_lib_h = yes; then | |
9021 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | |
9022 # Earlier versions can crash Emacs. | |
9023 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 | |
9024 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6 | |
9025 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | |
9026 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9027 else | |
9028 ac_check_lib_save_LIBS=$LIBS | |
9029 LIBS="-lungif $LIBS" | |
9030 cat >conftest.$ac_ext <<_ACEOF | |
9031 #line $LINENO "configure" | |
9032 #include "confdefs.h" | |
9033 | |
9034 /* Override any gcc2 internal prototype to avoid an error. */ | |
9035 #ifdef __cplusplus | |
9036 extern "C" | |
9037 #endif | |
9038 /* We use char because int might match the return type of a gcc2 | |
9039 builtin and then its argument prototype would still apply. */ | |
9040 char EGifPutExtensionLast (); | |
9041 #ifdef F77_DUMMY_MAIN | |
9042 # ifdef __cplusplus | |
9043 extern "C" | |
9044 # endif | |
9045 int F77_DUMMY_MAIN() { return 1; } | |
9046 #endif | |
9047 int | |
9048 main () | |
9049 { | |
9050 EGifPutExtensionLast (); | |
9051 ; | |
9052 return 0; | |
9053 } | |
9054 _ACEOF | |
9055 rm -f conftest.$ac_objext conftest$ac_exeext | |
9056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9057 (eval $ac_link) 2>&5 | |
9058 ac_status=$? | |
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9060 (exit $ac_status); } && | |
9061 { ac_try='test -s conftest$ac_exeext' | |
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9063 (eval $ac_try) 2>&5 | |
9064 ac_status=$? | |
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9066 (exit $ac_status); }; }; then | |
9067 ac_cv_lib_ungif_EGifPutExtensionLast=yes | |
9068 else | |
9069 echo "$as_me: failed program was:" >&5 | |
9070 cat conftest.$ac_ext >&5 | |
9071 ac_cv_lib_ungif_EGifPutExtensionLast=no | |
9072 fi | |
9073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9074 LIBS=$ac_check_lib_save_LIBS | |
9075 fi | |
9076 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 | |
9077 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6 | |
9078 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | |
9079 HAVE_GIF=yes | |
9080 fi | |
9081 | |
9082 fi | |
9083 | |
9084 | |
9085 fi | |
9086 | |
9087 if test "${HAVE_GIF}" = "yes"; then | |
44569 | 9088 |
9089 cat >>confdefs.h <<\_ACEOF | |
44493 | 9090 #define HAVE_GIF 1 |
9091 _ACEOF | |
9092 | |
9093 fi | |
9094 fi | |
9095 | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9096 ### Use Mac OS X Carbon API to implement GUI. |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9097 HAVE_CARBON=no |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9098 if test "${with_carbon}" != "no"; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9099 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9100 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9101 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9102 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9103 echo $ECHO_N "(cached) $ECHO_C" >&6 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9104 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9105 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9106 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9107 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9108 # Is the header compilable? |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9109 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9110 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9111 cat >conftest.$ac_ext <<_ACEOF |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9112 #line $LINENO "configure" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9113 #include "confdefs.h" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9114 $ac_includes_default |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9115 #include <Carbon/Carbon.h> |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9116 _ACEOF |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9117 rm -f conftest.$ac_objext |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9119 (eval $ac_compile) 2>&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9120 ac_status=$? |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9122 (exit $ac_status); } && |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9123 { ac_try='test -s conftest.$ac_objext' |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9125 (eval $ac_try) 2>&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9126 ac_status=$? |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9128 (exit $ac_status); }; }; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9129 ac_header_compiler=yes |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9130 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9131 echo "$as_me: failed program was:" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9132 cat conftest.$ac_ext >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9133 ac_header_compiler=no |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9134 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9135 rm -f conftest.$ac_objext conftest.$ac_ext |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9137 echo "${ECHO_T}$ac_header_compiler" >&6 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9138 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9139 # Is the header present? |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9140 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9141 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9142 cat >conftest.$ac_ext <<_ACEOF |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9143 #line $LINENO "configure" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9144 #include "confdefs.h" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9145 #include <Carbon/Carbon.h> |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9146 _ACEOF |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9149 ac_status=$? |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9150 egrep -v '^ *\+' conftest.er1 >conftest.err |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9151 rm -f conftest.er1 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9152 cat conftest.err >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9154 (exit $ac_status); } >/dev/null; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9155 if test -s conftest.err; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9156 ac_cpp_err=$ac_c_preproc_warn_flag |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9157 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9158 ac_cpp_err= |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9159 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9160 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9161 ac_cpp_err=yes |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9162 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9163 if test -z "$ac_cpp_err"; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9164 ac_header_preproc=yes |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9165 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9166 echo "$as_me: failed program was:" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9167 cat conftest.$ac_ext >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9168 ac_header_preproc=no |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9169 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9170 rm -f conftest.err conftest.$ac_ext |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9172 echo "${ECHO_T}$ac_header_preproc" >&6 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9173 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9174 # So? What about this header? |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9175 case $ac_header_compiler:$ac_header_preproc in |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9176 yes:no ) |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9177 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9178 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9179 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9180 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9181 no:yes ) |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9182 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9183 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9184 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9185 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9186 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9187 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9188 esac |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9189 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9190 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9191 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9192 echo $ECHO_N "(cached) $ECHO_C" >&6 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9193 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9194 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9195 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9196 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9197 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9198 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9199 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9200 if test $ac_cv_header_Carbon_Carbon_h = yes; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9201 HAVE_CARBON=yes |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9202 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9203 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9204 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9205 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9206 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9207 if test "${HAVE_CARBON}" = "yes"; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9208 cat >>confdefs.h <<\_ACEOF |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9209 #define HAVE_CARBON 1 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9210 _ACEOF |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9211 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9212 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
9213 |
44493 | 9214 ### Use session management (-lSM -lICE) if available |
9215 HAVE_X_SM=no | |
9216 if test "${HAVE_X11}" = "yes"; then | |
9217 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
9218 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
9219 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 | |
9220 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
9221 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9222 fi | |
9223 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
|
9224 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 |
44493 | 9225 else |
9226 # Is the header compilable? | |
9227 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5 | |
9228 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6 | |
9229 cat >conftest.$ac_ext <<_ACEOF | |
9230 #line $LINENO "configure" | |
9231 #include "confdefs.h" | |
9232 $ac_includes_default | |
9233 #include <X11/SM/SMlib.h> | |
9234 _ACEOF | |
9235 rm -f conftest.$ac_objext | |
9236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9237 (eval $ac_compile) 2>&5 | |
9238 ac_status=$? | |
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9240 (exit $ac_status); } && | |
9241 { ac_try='test -s conftest.$ac_objext' | |
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9243 (eval $ac_try) 2>&5 | |
9244 ac_status=$? | |
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9246 (exit $ac_status); }; }; then | |
9247 ac_header_compiler=yes | |
9248 else | |
9249 echo "$as_me: failed program was:" >&5 | |
9250 cat conftest.$ac_ext >&5 | |
9251 ac_header_compiler=no | |
9252 fi | |
9253 rm -f conftest.$ac_objext conftest.$ac_ext | |
9254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9255 echo "${ECHO_T}$ac_header_compiler" >&6 | |
9256 | |
9257 # Is the header present? | |
9258 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5 | |
9259 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6 | |
9260 cat >conftest.$ac_ext <<_ACEOF | |
9261 #line $LINENO "configure" | |
9262 #include "confdefs.h" | |
9263 #include <X11/SM/SMlib.h> | |
9264 _ACEOF | |
9265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9267 ac_status=$? | |
9268 egrep -v '^ *\+' conftest.er1 >conftest.err | |
9269 rm -f conftest.er1 | |
9270 cat conftest.err >&5 | |
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9272 (exit $ac_status); } >/dev/null; then | |
9273 if test -s conftest.err; then | |
9274 ac_cpp_err=$ac_c_preproc_warn_flag | |
9275 else | |
9276 ac_cpp_err= | |
9277 fi | |
9278 else | |
9279 ac_cpp_err=yes | |
9280 fi | |
9281 if test -z "$ac_cpp_err"; then | |
9282 ac_header_preproc=yes | |
9283 else | |
9284 echo "$as_me: failed program was:" >&5 | |
9285 cat conftest.$ac_ext >&5 | |
9286 ac_header_preproc=no | |
9287 fi | |
9288 rm -f conftest.err conftest.$ac_ext | |
9289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9290 echo "${ECHO_T}$ac_header_preproc" >&6 | |
9291 | |
9292 # So? What about this header? | |
9293 case $ac_header_compiler:$ac_header_preproc in | |
9294 yes:no ) | |
9295 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9296 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9297 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 | |
9298 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};; | |
9299 no:yes ) | |
9300 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5 | |
9301 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;} | |
9302 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5 | |
9303 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;} | |
9304 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 | |
9305 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};; | |
9306 esac | |
9307 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
9308 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6 | |
9309 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
9310 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9311 else | |
9312 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc | |
9313 fi | |
9314 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 | |
9315 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6 | |
9316 | |
9317 fi | |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9318 if test $ac_cv_header_X11_SM_SMlib_h = yes; then |
44493 | 9319 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
|
9320 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
|
9321 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
|
9322 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
|
9323 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9324 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
|
9325 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
|
9326 cat >conftest.$ac_ext <<_ACEOF |
44493 | 9327 #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
|
9328 #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
|
9329 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9330 /* 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
|
9331 #ifdef __cplusplus |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9332 extern "C" |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9333 #endif |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9334 /* 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
|
9335 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
|
9336 char SmcOpenConnection (); |
44493 | 9337 #ifdef F77_DUMMY_MAIN |
9338 # ifdef __cplusplus | |
9339 extern "C" | |
9340 # endif | |
9341 int F77_DUMMY_MAIN() { return 1; } | |
9342 #endif | |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9343 int |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9344 main () |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9345 { |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9346 SmcOpenConnection (); |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9347 ; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9348 return 0; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9349 } |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9350 _ACEOF |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9351 rm -f conftest.$ac_objext conftest$ac_exeext |
44493 | 9352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9353 (eval $ac_link) 2>&5 | |
9354 ac_status=$? | |
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9356 (exit $ac_status); } && | |
9357 { ac_try='test -s conftest$ac_exeext' | |
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9359 (eval $ac_try) 2>&5 | |
9360 ac_status=$? | |
9361 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
|
9362 (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
|
9363 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
|
9364 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9365 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
|
9366 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
|
9367 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
|
9368 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9369 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
|
9370 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
|
9371 fi |
44493 | 9372 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
|
9373 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
|
9374 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
|
9375 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
|
9376 else |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9377 -lICE |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9378 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9379 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9380 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9381 |
44493 | 9382 |
9383 | |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9384 if test "${HAVE_X_SM}" = "yes"; then |
44569 | 9385 |
9386 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
|
9387 #define HAVE_X_SM 1 |
44493 | 9388 _ACEOF |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9389 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9390 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
|
9391 *-lSM*) ;; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9392 *) 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
|
9393 esac |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9394 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9395 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43721
diff
changeset
|
9396 |
25897 | 9397 # If netdb.h doesn't declare h_errno, we must declare it by hand. |
44493 | 9398 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 |
40056 | 9399 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 |
9400 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | |
9401 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9402 else | |
9403 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 9404 #line $LINENO "configure" |
25897 | 9405 #include "confdefs.h" |
9406 #include <netdb.h> | |
44493 | 9407 #ifdef F77_DUMMY_MAIN |
9408 # ifdef __cplusplus | |
9409 extern "C" | |
9410 # endif | |
9411 int F77_DUMMY_MAIN() { return 1; } | |
9412 #endif | |
40056 | 9413 int |
9414 main () | |
9415 { | |
25897 | 9416 return h_errno; |
40056 | 9417 ; |
9418 return 0; | |
9419 } | |
9420 _ACEOF | |
9421 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 9422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9423 (eval $ac_link) 2>&5 | |
9424 ac_status=$? | |
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9426 (exit $ac_status); } && | |
9427 { ac_try='test -s conftest$ac_exeext' | |
9428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9429 (eval $ac_try) 2>&5 | |
9430 ac_status=$? | |
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9432 (exit $ac_status); }; }; then |
25897 | 9433 emacs_cv_netdb_declares_h_errno=yes |
9434 else | |
40056 | 9435 echo "$as_me: failed program was:" >&5 |
9436 cat conftest.$ac_ext >&5 | |
9437 emacs_cv_netdb_declares_h_errno=no | |
9438 fi | |
9439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9440 fi | |
44493 | 9441 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 |
40056 | 9442 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 |
25897 | 9443 if test $emacs_cv_netdb_declares_h_errno = yes; then |
44569 | 9444 |
9445 cat >>confdefs.h <<\_ACEOF | |
25897 | 9446 #define HAVE_H_ERRNO 1 |
44493 | 9447 _ACEOF |
25897 | 9448 |
9449 fi | |
9450 | |
9451 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
9452 # for constant arguments. Useless! | |
44493 | 9453 echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
40056 | 9454 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
9455 if test "${ac_cv_working_alloca_h+set}" = set; then | |
9456 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9457 else | |
9458 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 9459 #line $LINENO "configure" |
25897 | 9460 #include "confdefs.h" |
9461 #include <alloca.h> | |
44493 | 9462 #ifdef F77_DUMMY_MAIN |
9463 # ifdef __cplusplus | |
9464 extern "C" | |
9465 # endif | |
9466 int F77_DUMMY_MAIN() { return 1; } | |
9467 #endif | |
40056 | 9468 int |
9469 main () | |
9470 { | |
9471 char *p = (char *) alloca (2 * sizeof (int)); | |
9472 ; | |
9473 return 0; | |
9474 } | |
9475 _ACEOF | |
9476 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 9477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9478 (eval $ac_link) 2>&5 | |
9479 ac_status=$? | |
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9481 (exit $ac_status); } && | |
9482 { ac_try='test -s conftest$ac_exeext' | |
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9484 (eval $ac_try) 2>&5 | |
9485 ac_status=$? | |
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9487 (exit $ac_status); }; }; then |
9488 ac_cv_working_alloca_h=yes | |
9489 else | |
9490 echo "$as_me: failed program was:" >&5 | |
9491 cat conftest.$ac_ext >&5 | |
9492 ac_cv_working_alloca_h=no | |
9493 fi | |
9494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9495 fi | |
44493 | 9496 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
40056 | 9497 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
9498 if test $ac_cv_working_alloca_h = yes; then | |
9499 | |
44493 | 9500 cat >>confdefs.h <<\_ACEOF |
25897 | 9501 #define HAVE_ALLOCA_H 1 |
44493 | 9502 _ACEOF |
9503 | |
9504 fi | |
9505 | |
9506 echo "$as_me:$LINENO: checking for alloca" >&5 | |
40056 | 9507 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
9508 if test "${ac_cv_func_alloca_works+set}" = set; then | |
9509 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9510 else | |
9511 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 9512 #line $LINENO "configure" |
40056 | 9513 #include "confdefs.h" |
25897 | 9514 #ifdef __GNUC__ |
9515 # define alloca __builtin_alloca | |
9516 #else | |
27205 | 9517 # ifdef _MSC_VER |
9518 # include <malloc.h> | |
9519 # define alloca _alloca | |
25897 | 9520 # else |
27205 | 9521 # if HAVE_ALLOCA_H |
9522 # include <alloca.h> | |
25897 | 9523 # else |
27205 | 9524 # ifdef _AIX |
9525 #pragma alloca | |
9526 # else | |
9527 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
25897 | 9528 char *alloca (); |
27205 | 9529 # endif |
25897 | 9530 # endif |
9531 # endif | |
9532 # endif | |
9533 #endif | |
9534 | |
44493 | 9535 #ifdef F77_DUMMY_MAIN |
9536 # ifdef __cplusplus | |
9537 extern "C" | |
9538 # endif | |
9539 int F77_DUMMY_MAIN() { return 1; } | |
9540 #endif | |
40056 | 9541 int |
9542 main () | |
9543 { | |
9544 char *p = (char *) alloca (1); | |
9545 ; | |
9546 return 0; | |
9547 } | |
9548 _ACEOF | |
9549 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 9550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9551 (eval $ac_link) 2>&5 | |
9552 ac_status=$? | |
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9554 (exit $ac_status); } && | |
9555 { ac_try='test -s conftest$ac_exeext' | |
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9557 (eval $ac_try) 2>&5 | |
9558 ac_status=$? | |
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9560 (exit $ac_status); }; }; then |
25897 | 9561 ac_cv_func_alloca_works=yes |
9562 else | |
40056 | 9563 echo "$as_me: failed program was:" >&5 |
9564 cat conftest.$ac_ext >&5 | |
9565 ac_cv_func_alloca_works=no | |
9566 fi | |
9567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9568 fi | |
44493 | 9569 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
40056 | 9570 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
9571 | |
25897 | 9572 if test $ac_cv_func_alloca_works = yes; then |
40056 | 9573 |
44493 | 9574 cat >>confdefs.h <<\_ACEOF |
25897 | 9575 #define HAVE_ALLOCA 1 |
44493 | 9576 _ACEOF |
25897 | 9577 |
40056 | 9578 else |
25897 | 9579 # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
40056 | 9580 # that cause trouble. Some versions do not even contain alloca or |
9581 # contain a buggy version. If you still want to use their alloca, | |
9582 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
9583 | |
9584 ALLOCA=alloca.$ac_objext | |
9585 | |
44493 | 9586 cat >>confdefs.h <<\_ACEOF |
25897 | 9587 #define C_ALLOCA 1 |
44493 | 9588 _ACEOF |
9589 | |
9590 | |
9591 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
40056 | 9592 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
9593 if test "${ac_cv_os_cray+set}" = set; then | |
9594 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9595 else | |
9596 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 9597 #line $LINENO "configure" |
25897 | 9598 #include "confdefs.h" |
9599 #if defined(CRAY) && ! defined(CRAY2) | |
9600 webecray | |
9601 #else | |
9602 wenotbecray | |
9603 #endif | |
9604 | |
40056 | 9605 _ACEOF |
25897 | 9606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9607 egrep "webecray" >/dev/null 2>&1; then | |
9608 ac_cv_os_cray=yes | |
9609 else | |
9610 ac_cv_os_cray=no | |
9611 fi | |
9612 rm -f conftest* | |
9613 | |
9614 fi | |
44493 | 9615 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
40056 | 9616 echo "${ECHO_T}$ac_cv_os_cray" >&6 |
25897 | 9617 if test $ac_cv_os_cray = yes; then |
40056 | 9618 for ac_func in _getb67 GETB67 getb67; do |
9619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44493 | 9620 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 9621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9622 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9623 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9624 else | |
9625 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 9626 #line $LINENO "configure" |
25897 | 9627 #include "confdefs.h" |
9628 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 9629 which can conflict with char $ac_func (); below. */ |
25897 | 9630 #include <assert.h> |
9631 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 9632 #ifdef __cplusplus |
9633 extern "C" | |
9634 #endif | |
25897 | 9635 /* We use char because int might match the return type of a gcc2 |
40056 | 9636 builtin and then its argument prototype would still apply. */ |
9637 char $ac_func (); | |
9638 char (*f) (); | |
9639 | |
44493 | 9640 #ifdef F77_DUMMY_MAIN |
9641 # ifdef __cplusplus | |
9642 extern "C" | |
9643 # endif | |
9644 int F77_DUMMY_MAIN() { return 1; } | |
9645 #endif | |
40056 | 9646 int |
9647 main () | |
9648 { | |
25897 | 9649 /* The GNU C library defines this for functions which it implements |
9650 to always fail with ENOSYS. Some functions are actually named | |
9651 something starting with __ and the normal name is an alias. */ | |
9652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9653 choke me | |
9654 #else | |
40056 | 9655 f = $ac_func; |
9656 #endif | |
9657 | |
9658 ; | |
9659 return 0; | |
9660 } | |
9661 _ACEOF | |
9662 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 9663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9664 (eval $ac_link) 2>&5 | |
9665 ac_status=$? | |
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9667 (exit $ac_status); } && | |
9668 { ac_try='test -s conftest$ac_exeext' | |
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9670 (eval $ac_try) 2>&5 | |
9671 ac_status=$? | |
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9673 (exit $ac_status); }; }; then |
9674 eval "$as_ac_var=yes" | |
9675 else | |
9676 echo "$as_me: failed program was:" >&5 | |
9677 cat conftest.$ac_ext >&5 | |
9678 eval "$as_ac_var=no" | |
9679 fi | |
9680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9681 fi | |
44493 | 9682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 9683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
9684 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9685 | |
44493 | 9686 cat >>confdefs.h <<_ACEOF |
25897 | 9687 #define CRAY_STACKSEG_END $ac_func |
44493 | 9688 _ACEOF |
25897 | 9689 |
40056 | 9690 break |
9691 fi | |
9692 | |
9693 done | |
9694 fi | |
9695 | |
44493 | 9696 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
40056 | 9697 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
9698 if test "${ac_cv_c_stack_direction+set}" = set; then | |
9699 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 9700 else |
9701 if test "$cross_compiling" = yes; then | |
9702 ac_cv_c_stack_direction=0 | |
9703 else | |
40056 | 9704 cat >conftest.$ac_ext <<_ACEOF |
44493 | 9705 #line $LINENO "configure" |
40056 | 9706 #include "confdefs.h" |
9707 int | |
25897 | 9708 find_stack_direction () |
9709 { | |
9710 static char *addr = 0; | |
9711 auto char dummy; | |
9712 if (addr == 0) | |
9713 { | |
9714 addr = &dummy; | |
9715 return find_stack_direction (); | |
9716 } | |
9717 else | |
9718 return (&dummy > addr) ? 1 : -1; | |
9719 } | |
40056 | 9720 |
9721 int | |
9722 main () | |
9723 { | |
9724 exit (find_stack_direction () < 0); | |
9725 } | |
9726 _ACEOF | |
9727 rm -f conftest$ac_exeext | |
44493 | 9728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9729 (eval $ac_link) 2>&5 | |
9730 ac_status=$? | |
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
44493 | 9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9734 (eval $ac_try) 2>&5 | |
9735 ac_status=$? | |
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9737 (exit $ac_status); }; }; then |
25897 | 9738 ac_cv_c_stack_direction=1 |
9739 else | |
40056 | 9740 echo "$as_me: program exited with status $ac_status" >&5 |
9741 echo "$as_me: failed program was:" >&5 | |
9742 cat conftest.$ac_ext >&5 | |
44493 | 9743 ( exit $ac_status ) |
40056 | 9744 ac_cv_c_stack_direction=-1 |
9745 fi | |
9746 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
9747 fi | |
9748 fi | |
44493 | 9749 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
40056 | 9750 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
9751 | |
44493 | 9752 cat >>confdefs.h <<_ACEOF |
25897 | 9753 #define STACK_DIRECTION $ac_cv_c_stack_direction |
44493 | 9754 _ACEOF |
9755 | |
9756 | |
9757 fi | |
9758 | |
25897 | 9759 |
9760 # fmod, logb, and frexp are found in -lm on most systems. | |
9761 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
40056 | 9762 |
44493 | 9763 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
40056 | 9764 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
9765 if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
9766 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9767 else | |
9768 ac_check_lib_save_LIBS=$LIBS | |
25897 | 9769 LIBS="-lm $LIBS" |
40056 | 9770 cat >conftest.$ac_ext <<_ACEOF |
44493 | 9771 #line $LINENO "configure" |
40056 | 9772 #include "confdefs.h" |
9773 | |
25897 | 9774 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9775 #ifdef __cplusplus |
9776 extern "C" | |
9777 #endif | |
25897 | 9778 /* We use char because int might match the return type of a gcc2 |
40056 | 9779 builtin and then its argument prototype would still apply. */ |
9780 char sqrt (); | |
44493 | 9781 #ifdef F77_DUMMY_MAIN |
9782 # ifdef __cplusplus | |
9783 extern "C" | |
9784 # endif | |
9785 int F77_DUMMY_MAIN() { return 1; } | |
9786 #endif | |
40056 | 9787 int |
9788 main () | |
9789 { | |
9790 sqrt (); | |
9791 ; | |
9792 return 0; | |
9793 } | |
9794 _ACEOF | |
9795 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 9796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9797 (eval $ac_link) 2>&5 | |
9798 ac_status=$? | |
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9800 (exit $ac_status); } && | |
9801 { ac_try='test -s conftest$ac_exeext' | |
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9803 (eval $ac_try) 2>&5 | |
9804 ac_status=$? | |
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9806 (exit $ac_status); }; }; then |
9807 ac_cv_lib_m_sqrt=yes | |
9808 else | |
9809 echo "$as_me: failed program was:" >&5 | |
9810 cat conftest.$ac_ext >&5 | |
9811 ac_cv_lib_m_sqrt=no | |
9812 fi | |
9813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9814 LIBS=$ac_check_lib_save_LIBS | |
9815 fi | |
44493 | 9816 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
40056 | 9817 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
9818 if test $ac_cv_lib_m_sqrt = yes; then | |
44493 | 9819 cat >>confdefs.h <<_ACEOF |
40056 | 9820 #define HAVE_LIBM 1 |
44493 | 9821 _ACEOF |
25897 | 9822 |
9823 LIBS="-lm $LIBS" | |
9824 | |
40056 | 9825 fi |
25897 | 9826 |
44493 | 9827 |
25897 | 9828 # Check for mail-locking functions in a "mail" library |
40056 | 9829 |
44493 | 9830 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 |
40056 | 9831 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 |
9832 if test "${ac_cv_lib_mail_maillock+set}" = set; then | |
9833 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9834 else | |
9835 ac_check_lib_save_LIBS=$LIBS | |
25897 | 9836 LIBS="-lmail $LIBS" |
40056 | 9837 cat >conftest.$ac_ext <<_ACEOF |
44493 | 9838 #line $LINENO "configure" |
40056 | 9839 #include "confdefs.h" |
9840 | |
25897 | 9841 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9842 #ifdef __cplusplus |
9843 extern "C" | |
9844 #endif | |
25897 | 9845 /* We use char because int might match the return type of a gcc2 |
40056 | 9846 builtin and then its argument prototype would still apply. */ |
9847 char maillock (); | |
44493 | 9848 #ifdef F77_DUMMY_MAIN |
9849 # ifdef __cplusplus | |
9850 extern "C" | |
9851 # endif | |
9852 int F77_DUMMY_MAIN() { return 1; } | |
9853 #endif | |
40056 | 9854 int |
9855 main () | |
9856 { | |
9857 maillock (); | |
9858 ; | |
9859 return 0; | |
9860 } | |
9861 _ACEOF | |
9862 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 9863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9864 (eval $ac_link) 2>&5 | |
9865 ac_status=$? | |
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9867 (exit $ac_status); } && | |
9868 { ac_try='test -s conftest$ac_exeext' | |
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9870 (eval $ac_try) 2>&5 | |
9871 ac_status=$? | |
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9873 (exit $ac_status); }; }; then |
9874 ac_cv_lib_mail_maillock=yes | |
9875 else | |
9876 echo "$as_me: failed program was:" >&5 | |
9877 cat conftest.$ac_ext >&5 | |
9878 ac_cv_lib_mail_maillock=no | |
9879 fi | |
9880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9881 LIBS=$ac_check_lib_save_LIBS | |
9882 fi | |
44493 | 9883 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 |
40056 | 9884 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 |
9885 if test $ac_cv_lib_mail_maillock = yes; then | |
44493 | 9886 cat >>confdefs.h <<_ACEOF |
40056 | 9887 #define HAVE_LIBMAIL 1 |
44493 | 9888 _ACEOF |
25897 | 9889 |
9890 LIBS="-lmail $LIBS" | |
9891 | |
40056 | 9892 fi |
9893 | |
44493 | 9894 |
9895 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 | |
40056 | 9896 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 |
9897 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | |
9898 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9899 else | |
9900 ac_check_lib_save_LIBS=$LIBS | |
25897 | 9901 LIBS="-llockfile $LIBS" |
40056 | 9902 cat >conftest.$ac_ext <<_ACEOF |
44493 | 9903 #line $LINENO "configure" |
40056 | 9904 #include "confdefs.h" |
9905 | |
25897 | 9906 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 9907 #ifdef __cplusplus |
9908 extern "C" | |
9909 #endif | |
25897 | 9910 /* We use char because int might match the return type of a gcc2 |
40056 | 9911 builtin and then its argument prototype would still apply. */ |
9912 char maillock (); | |
44493 | 9913 #ifdef F77_DUMMY_MAIN |
9914 # ifdef __cplusplus | |
9915 extern "C" | |
9916 # endif | |
9917 int F77_DUMMY_MAIN() { return 1; } | |
9918 #endif | |
40056 | 9919 int |
9920 main () | |
9921 { | |
9922 maillock (); | |
9923 ; | |
9924 return 0; | |
9925 } | |
9926 _ACEOF | |
9927 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 9928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9929 (eval $ac_link) 2>&5 | |
9930 ac_status=$? | |
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9932 (exit $ac_status); } && | |
9933 { ac_try='test -s conftest$ac_exeext' | |
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9935 (eval $ac_try) 2>&5 | |
9936 ac_status=$? | |
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 9938 (exit $ac_status); }; }; then |
9939 ac_cv_lib_lockfile_maillock=yes | |
9940 else | |
9941 echo "$as_me: failed program was:" >&5 | |
9942 cat conftest.$ac_ext >&5 | |
9943 ac_cv_lib_lockfile_maillock=no | |
9944 fi | |
9945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
9946 LIBS=$ac_check_lib_save_LIBS | |
9947 fi | |
44493 | 9948 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 |
40056 | 9949 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 |
9950 if test $ac_cv_lib_lockfile_maillock = yes; then | |
44493 | 9951 cat >>confdefs.h <<_ACEOF |
40056 | 9952 #define HAVE_LIBLOCKFILE 1 |
44493 | 9953 _ACEOF |
25897 | 9954 |
9955 LIBS="-llockfile $LIBS" | |
9956 | |
9957 fi | |
9958 | |
9959 # If we have the shared liblockfile, assume we must use it for mail | |
9960 # locking (e.g. Debian). If we couldn't link against liblockfile | |
9961 # (no liblockfile.a installed), ensure that we don't need to. | |
9962 if test "$ac_cv_lib_lockfile_maillock" = no; then | |
9963 # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
9964 set dummy liblockfile.so; ac_word=$2 | |
44493 | 9965 echo "$as_me:$LINENO: checking for $ac_word" >&5 |
40056 | 9966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
9967 if test "${ac_cv_prog_liblockfile+set}" = set; then | |
9968 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 9969 else |
9970 if test -n "$liblockfile"; then | |
9971 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
9972 else | |
44493 | 9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
44569 | 9974 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
9975 for as_dir in $as_dummy | |
44493 | 9976 do |
9977 IFS=$as_save_IFS | |
9978 test -z "$as_dir" && as_dir=. | |
9979 for ac_exec_ext in '' $ac_executable_extensions; do | |
9980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9981 ac_cv_prog_liblockfile="yes" | |
9982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9983 break 2 | |
9984 fi | |
9985 done | |
40056 | 9986 done |
9987 | |
25897 | 9988 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" |
9989 fi | |
9990 fi | |
40056 | 9991 liblockfile=$ac_cv_prog_liblockfile |
25897 | 9992 if test -n "$liblockfile"; then |
44493 | 9993 echo "$as_me:$LINENO: result: $liblockfile" >&5 |
40056 | 9994 echo "${ECHO_T}$liblockfile" >&6 |
9995 else | |
44493 | 9996 echo "$as_me:$LINENO: result: no" >&5 |
40056 | 9997 echo "${ECHO_T}no" >&6 |
25897 | 9998 fi |
9999 | |
10000 if test $ac_cv_prog_liblockfile = yes; then | |
44493 | 10001 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. |
25897 | 10002 This probably means that movemail could lose mail. |
40056 | 10003 There may be a \`development' package to install containing liblockfile." >&5 |
10004 echo "$as_me: error: Shared liblockfile found but can't link against it. | |
10005 This probably means that movemail could lose mail. | |
10006 There may be a \`development' package to install containing liblockfile." >&2;} | |
10007 { (exit 1); exit 1; }; } | |
44569 | 10008 else |
10009 cat >>confdefs.h <<\_ACEOF | |
25897 | 10010 #define LIBMAIL -llockfile |
44493 | 10011 _ACEOF |
25897 | 10012 |
10013 fi | |
10014 else : | |
10015 fi | |
40056 | 10016 |
25897 | 10017 for ac_func in touchlock |
10018 do | |
40056 | 10019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44493 | 10020 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 10021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10022 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10023 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10024 else | |
10025 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 10026 #line $LINENO "configure" |
25897 | 10027 #include "confdefs.h" |
10028 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 10029 which can conflict with char $ac_func (); below. */ |
25897 | 10030 #include <assert.h> |
10031 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 10032 #ifdef __cplusplus |
10033 extern "C" | |
10034 #endif | |
25897 | 10035 /* We use char because int might match the return type of a gcc2 |
40056 | 10036 builtin and then its argument prototype would still apply. */ |
10037 char $ac_func (); | |
10038 char (*f) (); | |
10039 | |
44493 | 10040 #ifdef F77_DUMMY_MAIN |
10041 # ifdef __cplusplus | |
10042 extern "C" | |
10043 # endif | |
10044 int F77_DUMMY_MAIN() { return 1; } | |
10045 #endif | |
40056 | 10046 int |
10047 main () | |
10048 { | |
25897 | 10049 /* The GNU C library defines this for functions which it implements |
10050 to always fail with ENOSYS. Some functions are actually named | |
10051 something starting with __ and the normal name is an alias. */ | |
10052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10053 choke me | |
10054 #else | |
40056 | 10055 f = $ac_func; |
10056 #endif | |
10057 | |
10058 ; | |
10059 return 0; | |
10060 } | |
10061 _ACEOF | |
10062 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 10063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10064 (eval $ac_link) 2>&5 | |
10065 ac_status=$? | |
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10067 (exit $ac_status); } && | |
10068 { ac_try='test -s conftest$ac_exeext' | |
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10070 (eval $ac_try) 2>&5 | |
10071 ac_status=$? | |
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 10073 (exit $ac_status); }; }; then |
10074 eval "$as_ac_var=yes" | |
10075 else | |
10076 echo "$as_me: failed program was:" >&5 | |
10077 cat conftest.$ac_ext >&5 | |
10078 eval "$as_ac_var=no" | |
10079 fi | |
10080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10081 fi | |
44493 | 10082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 10083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10084 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 10085 cat >>confdefs.h <<_ACEOF |
40056 | 10086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 10087 _ACEOF |
10088 | |
10089 fi | |
10090 done | |
10091 | |
25897 | 10092 |
44435 | 10093 for ac_header in maillock.h |
25897 | 10094 do |
40056 | 10095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 10096 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10097 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 10098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10099 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10100 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 10101 fi |
10102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10104 else | |
10105 # Is the header compilable? | |
10106 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10108 cat >conftest.$ac_ext <<_ACEOF | |
10109 #line $LINENO "configure" | |
10110 #include "confdefs.h" | |
10111 $ac_includes_default | |
10112 #include <$ac_header> | |
10113 _ACEOF | |
10114 rm -f conftest.$ac_objext | |
10115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10116 (eval $ac_compile) 2>&5 | |
10117 ac_status=$? | |
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10119 (exit $ac_status); } && | |
10120 { ac_try='test -s conftest.$ac_objext' | |
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10122 (eval $ac_try) 2>&5 | |
10123 ac_status=$? | |
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10125 (exit $ac_status); }; }; then | |
10126 ac_header_compiler=yes | |
10127 else | |
10128 echo "$as_me: failed program was:" >&5 | |
10129 cat conftest.$ac_ext >&5 | |
10130 ac_header_compiler=no | |
10131 fi | |
10132 rm -f conftest.$ac_objext conftest.$ac_ext | |
10133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10134 echo "${ECHO_T}$ac_header_compiler" >&6 | |
10135 | |
10136 # Is the header present? | |
10137 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10139 cat >conftest.$ac_ext <<_ACEOF | |
10140 #line $LINENO "configure" | |
40056 | 10141 #include "confdefs.h" |
10142 #include <$ac_header> | |
10143 _ACEOF | |
44493 | 10144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 10145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10146 ac_status=$? | |
10147 egrep -v '^ *\+' conftest.er1 >conftest.err | |
10148 rm -f conftest.er1 | |
10149 cat conftest.err >&5 | |
44493 | 10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 10151 (exit $ac_status); } >/dev/null; then |
10152 if test -s conftest.err; then | |
10153 ac_cpp_err=$ac_c_preproc_warn_flag | |
10154 else | |
10155 ac_cpp_err= | |
10156 fi | |
10157 else | |
10158 ac_cpp_err=yes | |
10159 fi | |
10160 if test -z "$ac_cpp_err"; then | |
44493 | 10161 ac_header_preproc=yes |
40056 | 10162 else |
10163 echo "$as_me: failed program was:" >&5 | |
25897 | 10164 cat conftest.$ac_ext >&5 |
44493 | 10165 ac_header_preproc=no |
40056 | 10166 fi |
10167 rm -f conftest.err conftest.$ac_ext | |
44493 | 10168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10169 echo "${ECHO_T}$ac_header_preproc" >&6 | |
10170 | |
10171 # So? What about this header? | |
10172 case $ac_header_compiler:$ac_header_preproc in | |
10173 yes:no ) | |
10174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
10178 no:yes ) | |
10179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
10185 esac | |
10186 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10188 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10189 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10190 else | |
10191 eval "$as_ac_Header=$ac_header_preproc" | |
10192 fi | |
10193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 10194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 10195 |
10196 fi | |
40056 | 10197 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 10198 cat >>confdefs.h <<_ACEOF |
40056 | 10199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 10200 _ACEOF |
10201 | |
10202 fi | |
10203 | |
10204 done | |
10205 | |
10206 | |
10207 | |
10208 | |
10209 | |
10210 | |
10211 | |
10212 | |
10213 | |
10214 | |
10215 | |
10216 | |
10217 | |
10218 | |
10219 | |
10220 | |
10221 | |
10222 | |
10223 | |
10224 | |
10225 | |
10226 | |
10227 | |
10228 | |
10229 | |
10230 | |
10231 | |
10232 | |
10233 | |
10234 | |
10235 | |
10236 | |
10237 | |
10238 | |
10239 | |
10240 | |
10241 | |
10242 | |
10243 | |
10244 | |
10245 | |
10246 | |
10247 | |
10248 | |
10249 | |
10250 | |
10251 | |
10252 | |
10253 | |
10254 | |
10255 | |
10256 | |
10257 | |
10258 | |
10259 | |
10260 | |
25897 | 10261 |
44001
54ecf0606394
Manually edited to add checks for sendto, recvfrom, getsockopt, setsockopt,
Kim F. Storm <storm@cua.dk>
parents:
43924
diff
changeset
|
10262 for ac_func in gethostname getdomainname dup2 \ |
25897 | 10263 rename closedir mkdir rmdir sysinfo \ |
10264 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
10265 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
29733 | 10266 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
42401 | 10267 __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
|
10268 sendto recvfrom getsockopt setsockopt getsockname getpeername \ |
44493 | 10269 gai_strerror mkstemp getline getdelim |
25897 | 10270 do |
40056 | 10271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44493 | 10272 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 10273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10274 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10275 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10276 else | |
10277 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 10278 #line $LINENO "configure" |
25897 | 10279 #include "confdefs.h" |
10280 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 10281 which can conflict with char $ac_func (); below. */ |
25897 | 10282 #include <assert.h> |
10283 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 10284 #ifdef __cplusplus |
10285 extern "C" | |
10286 #endif | |
25897 | 10287 /* We use char because int might match the return type of a gcc2 |
40056 | 10288 builtin and then its argument prototype would still apply. */ |
10289 char $ac_func (); | |
10290 char (*f) (); | |
10291 | |
44493 | 10292 #ifdef F77_DUMMY_MAIN |
10293 # ifdef __cplusplus | |
10294 extern "C" | |
10295 # endif | |
10296 int F77_DUMMY_MAIN() { return 1; } | |
10297 #endif | |
40056 | 10298 int |
10299 main () | |
10300 { | |
25897 | 10301 /* The GNU C library defines this for functions which it implements |
10302 to always fail with ENOSYS. Some functions are actually named | |
10303 something starting with __ and the normal name is an alias. */ | |
10304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10305 choke me | |
10306 #else | |
40056 | 10307 f = $ac_func; |
10308 #endif | |
10309 | |
10310 ; | |
10311 return 0; | |
10312 } | |
10313 _ACEOF | |
10314 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 10315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10316 (eval $ac_link) 2>&5 | |
10317 ac_status=$? | |
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10319 (exit $ac_status); } && | |
10320 { ac_try='test -s conftest$ac_exeext' | |
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10322 (eval $ac_try) 2>&5 | |
10323 ac_status=$? | |
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 10325 (exit $ac_status); }; }; then |
10326 eval "$as_ac_var=yes" | |
10327 else | |
10328 echo "$as_me: failed program was:" >&5 | |
10329 cat conftest.$ac_ext >&5 | |
10330 eval "$as_ac_var=no" | |
10331 fi | |
10332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10333 fi | |
44493 | 10334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 10335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10336 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 10337 cat >>confdefs.h <<_ACEOF |
40056 | 10338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 10339 _ACEOF |
10340 | |
10341 fi | |
10342 done | |
10343 | |
10344 | |
25897 | 10345 |
44435 | 10346 for ac_header in sys/un.h |
28607 | 10347 do |
40056 | 10348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 10349 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10350 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 10351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10352 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10353 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 10354 fi |
10355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10357 else | |
10358 # Is the header compilable? | |
10359 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10361 cat >conftest.$ac_ext <<_ACEOF | |
10362 #line $LINENO "configure" | |
10363 #include "confdefs.h" | |
10364 $ac_includes_default | |
10365 #include <$ac_header> | |
10366 _ACEOF | |
10367 rm -f conftest.$ac_objext | |
10368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10369 (eval $ac_compile) 2>&5 | |
10370 ac_status=$? | |
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10372 (exit $ac_status); } && | |
10373 { ac_try='test -s conftest.$ac_objext' | |
10374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10375 (eval $ac_try) 2>&5 | |
10376 ac_status=$? | |
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10378 (exit $ac_status); }; }; then | |
10379 ac_header_compiler=yes | |
10380 else | |
10381 echo "$as_me: failed program was:" >&5 | |
10382 cat conftest.$ac_ext >&5 | |
10383 ac_header_compiler=no | |
10384 fi | |
10385 rm -f conftest.$ac_objext conftest.$ac_ext | |
10386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10387 echo "${ECHO_T}$ac_header_compiler" >&6 | |
10388 | |
10389 # Is the header present? | |
10390 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10392 cat >conftest.$ac_ext <<_ACEOF | |
10393 #line $LINENO "configure" | |
40056 | 10394 #include "confdefs.h" |
10395 #include <$ac_header> | |
10396 _ACEOF | |
44493 | 10397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 10398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10399 ac_status=$? | |
10400 egrep -v '^ *\+' conftest.er1 >conftest.err | |
10401 rm -f conftest.er1 | |
10402 cat conftest.err >&5 | |
44493 | 10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 10404 (exit $ac_status); } >/dev/null; then |
10405 if test -s conftest.err; then | |
10406 ac_cpp_err=$ac_c_preproc_warn_flag | |
10407 else | |
10408 ac_cpp_err= | |
10409 fi | |
10410 else | |
10411 ac_cpp_err=yes | |
10412 fi | |
10413 if test -z "$ac_cpp_err"; then | |
44493 | 10414 ac_header_preproc=yes |
40056 | 10415 else |
10416 echo "$as_me: failed program was:" >&5 | |
28607 | 10417 cat conftest.$ac_ext >&5 |
44493 | 10418 ac_header_preproc=no |
40056 | 10419 fi |
10420 rm -f conftest.err conftest.$ac_ext | |
44493 | 10421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10422 echo "${ECHO_T}$ac_header_preproc" >&6 | |
10423 | |
10424 # So? What about this header? | |
10425 case $ac_header_compiler:$ac_header_preproc in | |
10426 yes:no ) | |
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
10431 no:yes ) | |
10432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
10438 esac | |
10439 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10441 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10442 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10443 else | |
10444 eval "$as_ac_Header=$ac_header_preproc" | |
10445 fi | |
10446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
44435 | 10447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 10448 |
10449 fi | |
44435 | 10450 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 10451 cat >>confdefs.h <<_ACEOF |
44435 | 10452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 10453 _ACEOF |
10454 | |
10455 fi | |
10456 | |
10457 done | |
10458 | |
10459 | |
10460 | |
44435 | 10461 |
10462 for ac_header in sys/time.h unistd.h | |
10463 do | |
10464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
44493 | 10465 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10466 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
44435 | 10467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10468 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10469 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 10470 fi |
10471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10473 else | |
10474 # Is the header compilable? | |
10475 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10477 cat >conftest.$ac_ext <<_ACEOF | |
10478 #line $LINENO "configure" | |
10479 #include "confdefs.h" | |
10480 $ac_includes_default | |
10481 #include <$ac_header> | |
10482 _ACEOF | |
10483 rm -f conftest.$ac_objext | |
10484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10485 (eval $ac_compile) 2>&5 | |
10486 ac_status=$? | |
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10488 (exit $ac_status); } && | |
10489 { ac_try='test -s conftest.$ac_objext' | |
10490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10491 (eval $ac_try) 2>&5 | |
10492 ac_status=$? | |
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10494 (exit $ac_status); }; }; then | |
10495 ac_header_compiler=yes | |
10496 else | |
10497 echo "$as_me: failed program was:" >&5 | |
10498 cat conftest.$ac_ext >&5 | |
10499 ac_header_compiler=no | |
10500 fi | |
10501 rm -f conftest.$ac_objext conftest.$ac_ext | |
10502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10503 echo "${ECHO_T}$ac_header_compiler" >&6 | |
10504 | |
10505 # Is the header present? | |
10506 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10508 cat >conftest.$ac_ext <<_ACEOF | |
10509 #line $LINENO "configure" | |
44435 | 10510 #include "confdefs.h" |
10511 #include <$ac_header> | |
10512 _ACEOF | |
44493 | 10513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
44435 | 10514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10515 ac_status=$? | |
10516 egrep -v '^ *\+' conftest.er1 >conftest.err | |
10517 rm -f conftest.er1 | |
10518 cat conftest.err >&5 | |
44493 | 10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44435 | 10520 (exit $ac_status); } >/dev/null; then |
10521 if test -s conftest.err; then | |
10522 ac_cpp_err=$ac_c_preproc_warn_flag | |
10523 else | |
10524 ac_cpp_err= | |
10525 fi | |
10526 else | |
10527 ac_cpp_err=yes | |
10528 fi | |
10529 if test -z "$ac_cpp_err"; then | |
44493 | 10530 ac_header_preproc=yes |
44435 | 10531 else |
10532 echo "$as_me: failed program was:" >&5 | |
10533 cat conftest.$ac_ext >&5 | |
44493 | 10534 ac_header_preproc=no |
44435 | 10535 fi |
10536 rm -f conftest.err conftest.$ac_ext | |
44493 | 10537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10538 echo "${ECHO_T}$ac_header_preproc" >&6 | |
10539 | |
10540 # So? What about this header? | |
10541 case $ac_header_compiler:$ac_header_preproc in | |
10542 yes:no ) | |
10543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
10547 no:yes ) | |
10548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
10554 esac | |
10555 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10557 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10558 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10559 else | |
10560 eval "$as_ac_Header=$ac_header_preproc" | |
10561 fi | |
10562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 10563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 10564 |
10565 fi | |
40056 | 10566 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 10567 cat >>confdefs.h <<_ACEOF |
40056 | 10568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 10569 _ACEOF |
10570 | |
10571 fi | |
10572 | |
10573 done | |
10574 | |
28607 | 10575 |
10576 for ac_func in alarm | |
10577 do | |
40056 | 10578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44493 | 10579 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 10580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10581 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10582 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10583 else | |
10584 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 10585 #line $LINENO "configure" |
28607 | 10586 #include "confdefs.h" |
10587 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 10588 which can conflict with char $ac_func (); below. */ |
28607 | 10589 #include <assert.h> |
10590 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 10591 #ifdef __cplusplus |
10592 extern "C" | |
10593 #endif | |
28607 | 10594 /* We use char because int might match the return type of a gcc2 |
40056 | 10595 builtin and then its argument prototype would still apply. */ |
10596 char $ac_func (); | |
10597 char (*f) (); | |
10598 | |
44493 | 10599 #ifdef F77_DUMMY_MAIN |
10600 # ifdef __cplusplus | |
10601 extern "C" | |
10602 # endif | |
10603 int F77_DUMMY_MAIN() { return 1; } | |
10604 #endif | |
40056 | 10605 int |
10606 main () | |
10607 { | |
28607 | 10608 /* The GNU C library defines this for functions which it implements |
10609 to always fail with ENOSYS. Some functions are actually named | |
10610 something starting with __ and the normal name is an alias. */ | |
10611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10612 choke me | |
10613 #else | |
40056 | 10614 f = $ac_func; |
10615 #endif | |
10616 | |
10617 ; | |
10618 return 0; | |
10619 } | |
10620 _ACEOF | |
10621 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 10622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10623 (eval $ac_link) 2>&5 | |
10624 ac_status=$? | |
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10626 (exit $ac_status); } && | |
10627 { ac_try='test -s conftest$ac_exeext' | |
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10629 (eval $ac_try) 2>&5 | |
10630 ac_status=$? | |
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 10632 (exit $ac_status); }; }; then |
10633 eval "$as_ac_var=yes" | |
10634 else | |
10635 echo "$as_me: failed program was:" >&5 | |
10636 cat conftest.$ac_ext >&5 | |
10637 eval "$as_ac_var=no" | |
10638 fi | |
10639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10640 fi | |
44493 | 10641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 10642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10643 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 10644 cat >>confdefs.h <<_ACEOF |
40056 | 10645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 10646 _ACEOF |
10647 | |
10648 fi | |
10649 done | |
10650 | |
10651 echo "$as_me:$LINENO: checking for working mktime" >&5 | |
40056 | 10652 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 |
10653 if test "${ac_cv_func_working_mktime+set}" = set; then | |
10654 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28607 | 10655 else |
10656 if test "$cross_compiling" = yes; then | |
10657 ac_cv_func_working_mktime=no | |
10658 else | |
40056 | 10659 cat >conftest.$ac_ext <<_ACEOF |
44493 | 10660 #line $LINENO "configure" |
40056 | 10661 #include "confdefs.h" |
10662 /* Test program from Paul Eggert and Tony Leneis. */ | |
28607 | 10663 #if TIME_WITH_SYS_TIME |
10664 # include <sys/time.h> | |
10665 # include <time.h> | |
10666 #else | |
10667 # if HAVE_SYS_TIME_H | |
10668 # include <sys/time.h> | |
10669 # else | |
10670 # include <time.h> | |
10671 # endif | |
10672 #endif | |
10673 | |
10674 #if HAVE_UNISTD_H | |
10675 # include <unistd.h> | |
10676 #endif | |
10677 | |
10678 #if !HAVE_ALARM | |
10679 # define alarm(X) /* empty */ | |
10680 #endif | |
10681 | |
10682 /* Work around redefinition to rpl_putenv by other config tests. */ | |
10683 #undef putenv | |
10684 | |
10685 static time_t time_t_max; | |
10686 | |
10687 /* Values we'll use to set the TZ environment variable. */ | |
10688 static const char *const tz_strings[] = { | |
10689 (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
10690 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
10691 }; | |
10692 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
10693 | |
10694 /* Fail if mktime fails to convert a date in the spring-forward gap. | |
10695 Based on a problem report from Andreas Jaeger. */ | |
10696 static void | |
10697 spring_forward_gap () | |
10698 { | |
40056 | 10699 /* glibc (up to about 1998-10-07) failed this test. */ |
28607 | 10700 struct tm tm; |
10701 | |
10702 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
10703 instead of "TZ=America/Vancouver" in order to detect the bug even | |
10704 on systems that don't support the Olson extension, or don't have the | |
10705 full zoneinfo tables installed. */ | |
10706 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
10707 | |
10708 tm.tm_year = 98; | |
10709 tm.tm_mon = 3; | |
10710 tm.tm_mday = 5; | |
10711 tm.tm_hour = 2; | |
10712 tm.tm_min = 0; | |
10713 tm.tm_sec = 0; | |
10714 tm.tm_isdst = -1; | |
10715 if (mktime (&tm) == (time_t)-1) | |
10716 exit (1); | |
10717 } | |
10718 | |
10719 static void | |
10720 mktime_test (now) | |
10721 time_t now; | |
10722 { | |
10723 struct tm *lt; | |
10724 if ((lt = localtime (&now)) && mktime (lt) != now) | |
10725 exit (1); | |
10726 now = time_t_max - now; | |
10727 if ((lt = localtime (&now)) && mktime (lt) != now) | |
10728 exit (1); | |
10729 } | |
10730 | |
10731 static void | |
10732 irix_6_4_bug () | |
10733 { | |
10734 /* Based on code from Ariel Faigon. */ | |
10735 struct tm tm; | |
10736 tm.tm_year = 96; | |
10737 tm.tm_mon = 3; | |
10738 tm.tm_mday = 0; | |
10739 tm.tm_hour = 0; | |
10740 tm.tm_min = 0; | |
10741 tm.tm_sec = 0; | |
10742 tm.tm_isdst = -1; | |
10743 mktime (&tm); | |
10744 if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
10745 exit (1); | |
10746 } | |
10747 | |
10748 static void | |
10749 bigtime_test (j) | |
10750 int j; | |
10751 { | |
10752 struct tm tm; | |
10753 time_t now; | |
10754 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
10755 now = mktime (&tm); | |
10756 if (now != (time_t) -1) | |
10757 { | |
10758 struct tm *lt = localtime (&now); | |
10759 if (! (lt | |
10760 && lt->tm_year == tm.tm_year | |
10761 && lt->tm_mon == tm.tm_mon | |
10762 && lt->tm_mday == tm.tm_mday | |
10763 && lt->tm_hour == tm.tm_hour | |
10764 && lt->tm_min == tm.tm_min | |
10765 && lt->tm_sec == tm.tm_sec | |
10766 && lt->tm_yday == tm.tm_yday | |
10767 && lt->tm_wday == tm.tm_wday | |
10768 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
10769 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
10770 exit (1); | |
10771 } | |
10772 } | |
10773 | |
10774 int | |
10775 main () | |
10776 { | |
10777 time_t t, delta; | |
10778 int i, j; | |
10779 | |
10780 /* This test makes some buggy mktime implementations loop. | |
10781 Give up after 60 seconds; a mktime slower than that | |
10782 isn't worth using anyway. */ | |
10783 alarm (60); | |
10784 | |
10785 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
10786 continue; | |
10787 time_t_max--; | |
10788 delta = time_t_max / 997; /* a suitable prime number */ | |
10789 for (i = 0; i < N_STRINGS; i++) | |
10790 { | |
10791 if (tz_strings[i]) | |
10792 putenv (tz_strings[i]); | |
10793 | |
10794 for (t = 0; t <= time_t_max - delta; t += delta) | |
10795 mktime_test (t); | |
10796 mktime_test ((time_t) 60 * 60); | |
10797 mktime_test ((time_t) 60 * 60 * 24); | |
10798 | |
10799 for (j = 1; 0 < j; j *= 2) | |
10800 bigtime_test (j); | |
10801 bigtime_test (j - 1); | |
10802 } | |
10803 irix_6_4_bug (); | |
10804 spring_forward_gap (); | |
10805 exit (0); | |
10806 } | |
40056 | 10807 _ACEOF |
10808 rm -f conftest$ac_exeext | |
44493 | 10809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10810 (eval $ac_link) 2>&5 | |
10811 ac_status=$? | |
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 10813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
44493 | 10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10815 (eval $ac_try) 2>&5 | |
10816 ac_status=$? | |
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 10818 (exit $ac_status); }; }; then |
28607 | 10819 ac_cv_func_working_mktime=yes |
10820 else | |
40056 | 10821 echo "$as_me: program exited with status $ac_status" >&5 |
10822 echo "$as_me: failed program was:" >&5 | |
10823 cat conftest.$ac_ext >&5 | |
44493 | 10824 ( exit $ac_status ) |
40056 | 10825 ac_cv_func_working_mktime=no |
10826 fi | |
10827 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10828 fi | |
10829 fi | |
44493 | 10830 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
40056 | 10831 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 |
28607 | 10832 if test $ac_cv_func_working_mktime = no; then |
40056 | 10833 LIBOBJS="$LIBOBJS mktime.$ac_objext" |
28607 | 10834 fi |
10835 | |
10836 if test "$ac_cv_func_working_mktime" = no; then | |
44569 | 10837 |
10838 cat >>confdefs.h <<\_ACEOF | |
28607 | 10839 #define BROKEN_MKTIME 1 |
44493 | 10840 _ACEOF |
28607 | 10841 |
10842 fi | |
10843 | |
29834 | 10844 ac_have_func=no # yes means we've found a way to get the load average. |
10845 | |
40056 | 10846 ac_save_LIBS=$LIBS |
10847 | |
10848 # Check for getloadavg, but be sure not to touch the cache variable. | |
44493 | 10849 (echo "$as_me:$LINENO: checking for getloadavg" >&5 |
40056 | 10850 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 |
10851 if test "${ac_cv_func_getloadavg+set}" = set; then | |
10852 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10853 else | |
10854 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 10855 #line $LINENO "configure" |
40056 | 10856 #include "confdefs.h" |
10857 /* System header to define __stub macros and hopefully few prototypes, | |
10858 which can conflict with char getloadavg (); below. */ | |
10859 #include <assert.h> | |
10860 /* Override any gcc2 internal prototype to avoid an error. */ | |
10861 #ifdef __cplusplus | |
10862 extern "C" | |
10863 #endif | |
10864 /* We use char because int might match the return type of a gcc2 | |
10865 builtin and then its argument prototype would still apply. */ | |
10866 char getloadavg (); | |
10867 char (*f) (); | |
10868 | |
44493 | 10869 #ifdef F77_DUMMY_MAIN |
10870 # ifdef __cplusplus | |
10871 extern "C" | |
10872 # endif | |
10873 int F77_DUMMY_MAIN() { return 1; } | |
10874 #endif | |
40056 | 10875 int |
10876 main () | |
10877 { | |
10878 /* The GNU C library defines this for functions which it implements | |
10879 to always fail with ENOSYS. Some functions are actually named | |
10880 something starting with __ and the normal name is an alias. */ | |
10881 #if defined (__stub_getloadavg) || defined (__stub___getloadavg) | |
10882 choke me | |
10883 #else | |
10884 f = getloadavg; | |
10885 #endif | |
10886 | |
10887 ; | |
10888 return 0; | |
10889 } | |
10890 _ACEOF | |
10891 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 10892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10893 (eval $ac_link) 2>&5 | |
10894 ac_status=$? | |
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10896 (exit $ac_status); } && | |
10897 { ac_try='test -s conftest$ac_exeext' | |
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10899 (eval $ac_try) 2>&5 | |
10900 ac_status=$? | |
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 10902 (exit $ac_status); }; }; then |
10903 ac_cv_func_getloadavg=yes | |
10904 else | |
10905 echo "$as_me: failed program was:" >&5 | |
10906 cat conftest.$ac_ext >&5 | |
10907 ac_cv_func_getloadavg=no | |
10908 fi | |
10909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10910 fi | |
44493 | 10911 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 |
40056 | 10912 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 |
10913 if test $ac_cv_func_getloadavg = yes; then | |
10914 exit 0 | |
10915 else | |
10916 exit 1 | |
10917 fi | |
10918 ) && ac_have_func=yes | |
10919 | |
10920 # On HPUX9, an unprivileged user can get load averages through this function. | |
10921 | |
10922 for ac_func in pstat_getdynamic | |
10923 do | |
10924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44493 | 10925 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 10926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10927 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10928 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10929 else | |
10930 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 10931 #line $LINENO "configure" |
40056 | 10932 #include "confdefs.h" |
10933 /* System header to define __stub macros and hopefully few prototypes, | |
10934 which can conflict with char $ac_func (); below. */ | |
10935 #include <assert.h> | |
10936 /* Override any gcc2 internal prototype to avoid an error. */ | |
10937 #ifdef __cplusplus | |
10938 extern "C" | |
10939 #endif | |
10940 /* We use char because int might match the return type of a gcc2 | |
10941 builtin and then its argument prototype would still apply. */ | |
10942 char $ac_func (); | |
10943 char (*f) (); | |
10944 | |
44493 | 10945 #ifdef F77_DUMMY_MAIN |
10946 # ifdef __cplusplus | |
10947 extern "C" | |
10948 # endif | |
10949 int F77_DUMMY_MAIN() { return 1; } | |
10950 #endif | |
40056 | 10951 int |
10952 main () | |
10953 { | |
10954 /* The GNU C library defines this for functions which it implements | |
10955 to always fail with ENOSYS. Some functions are actually named | |
10956 something starting with __ and the normal name is an alias. */ | |
10957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10958 choke me | |
10959 #else | |
10960 f = $ac_func; | |
10961 #endif | |
10962 | |
10963 ; | |
10964 return 0; | |
10965 } | |
10966 _ACEOF | |
10967 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10969 (eval $ac_link) 2>&5 | |
10970 ac_status=$? | |
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10972 (exit $ac_status); } && | |
10973 { ac_try='test -s conftest$ac_exeext' | |
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10975 (eval $ac_try) 2>&5 | |
10976 ac_status=$? | |
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 10978 (exit $ac_status); }; }; then |
10979 eval "$as_ac_var=yes" | |
10980 else | |
10981 echo "$as_me: failed program was:" >&5 | |
10982 cat conftest.$ac_ext >&5 | |
10983 eval "$as_ac_var=no" | |
10984 fi | |
10985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10986 fi | |
44493 | 10987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 10988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10989 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 10990 cat >>confdefs.h <<_ACEOF |
40056 | 10991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 10992 _ACEOF |
10993 | |
10994 fi | |
10995 done | |
10996 | |
40056 | 10997 |
10998 # Solaris has libkstat which does not require root. | |
10999 | |
44493 | 11000 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 |
40056 | 11001 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 |
11002 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
11003 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11004 else | |
11005 ac_check_lib_save_LIBS=$LIBS | |
11006 LIBS="-lkstat $LIBS" | |
11007 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 11008 #line $LINENO "configure" |
40056 | 11009 #include "confdefs.h" |
11010 | |
11011 /* Override any gcc2 internal prototype to avoid an error. */ | |
11012 #ifdef __cplusplus | |
11013 extern "C" | |
11014 #endif | |
11015 /* We use char because int might match the return type of a gcc2 | |
11016 builtin and then its argument prototype would still apply. */ | |
11017 char kstat_open (); | |
44493 | 11018 #ifdef F77_DUMMY_MAIN |
11019 # ifdef __cplusplus | |
11020 extern "C" | |
11021 # endif | |
11022 int F77_DUMMY_MAIN() { return 1; } | |
11023 #endif | |
40056 | 11024 int |
11025 main () | |
11026 { | |
11027 kstat_open (); | |
11028 ; | |
11029 return 0; | |
11030 } | |
11031 _ACEOF | |
11032 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 11033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11034 (eval $ac_link) 2>&5 | |
11035 ac_status=$? | |
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11037 (exit $ac_status); } && | |
11038 { ac_try='test -s conftest$ac_exeext' | |
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11040 (eval $ac_try) 2>&5 | |
11041 ac_status=$? | |
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 11043 (exit $ac_status); }; }; then |
11044 ac_cv_lib_kstat_kstat_open=yes | |
11045 else | |
11046 echo "$as_me: failed program was:" >&5 | |
11047 cat conftest.$ac_ext >&5 | |
11048 ac_cv_lib_kstat_kstat_open=no | |
11049 fi | |
11050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11051 LIBS=$ac_check_lib_save_LIBS | |
11052 fi | |
44493 | 11053 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 |
40056 | 11054 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 |
11055 if test $ac_cv_lib_kstat_kstat_open = yes; then | |
44493 | 11056 cat >>confdefs.h <<_ACEOF |
40056 | 11057 #define HAVE_LIBKSTAT 1 |
44493 | 11058 _ACEOF |
40056 | 11059 |
11060 LIBS="-lkstat $LIBS" | |
11061 | |
11062 fi | |
11063 | |
11064 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes | |
11065 | |
29834 | 11066 # Some systems with -lutil have (and need) -lkvm as well, some do not. |
11067 # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
11068 # to get the right answer into the cache. | |
40056 | 11069 # For kstat on solaris, we need libelf to force the definition of SVR4 below. |
11070 if test $ac_have_func = no; then | |
44493 | 11071 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
40056 | 11072 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
11073 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
11074 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11075 else | |
11076 ac_check_lib_save_LIBS=$LIBS | |
29834 | 11077 LIBS="-lelf $LIBS" |
40056 | 11078 cat >conftest.$ac_ext <<_ACEOF |
44493 | 11079 #line $LINENO "configure" |
40056 | 11080 #include "confdefs.h" |
11081 | |
29834 | 11082 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 11083 #ifdef __cplusplus |
11084 extern "C" | |
11085 #endif | |
29834 | 11086 /* We use char because int might match the return type of a gcc2 |
40056 | 11087 builtin and then its argument prototype would still apply. */ |
11088 char elf_begin (); | |
44493 | 11089 #ifdef F77_DUMMY_MAIN |
11090 # ifdef __cplusplus | |
11091 extern "C" | |
11092 # endif | |
11093 int F77_DUMMY_MAIN() { return 1; } | |
11094 #endif | |
40056 | 11095 int |
11096 main () | |
11097 { | |
11098 elf_begin (); | |
11099 ; | |
11100 return 0; | |
11101 } | |
11102 _ACEOF | |
11103 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 11104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11105 (eval $ac_link) 2>&5 | |
11106 ac_status=$? | |
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11108 (exit $ac_status); } && | |
11109 { ac_try='test -s conftest$ac_exeext' | |
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11111 (eval $ac_try) 2>&5 | |
11112 ac_status=$? | |
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 11114 (exit $ac_status); }; }; then |
11115 ac_cv_lib_elf_elf_begin=yes | |
11116 else | |
11117 echo "$as_me: failed program was:" >&5 | |
11118 cat conftest.$ac_ext >&5 | |
11119 ac_cv_lib_elf_elf_begin=no | |
11120 fi | |
11121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11122 LIBS=$ac_check_lib_save_LIBS | |
11123 fi | |
44493 | 11124 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
40056 | 11125 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
11126 if test $ac_cv_lib_elf_elf_begin = yes; then | |
29834 | 11127 LIBS="-lelf $LIBS" |
40056 | 11128 fi |
11129 | |
11130 fi | |
11131 if test $ac_have_func = no; then | |
44493 | 11132 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 |
40056 | 11133 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 |
11134 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
11135 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11136 else | |
11137 ac_check_lib_save_LIBS=$LIBS | |
29834 | 11138 LIBS="-lkvm $LIBS" |
40056 | 11139 cat >conftest.$ac_ext <<_ACEOF |
44493 | 11140 #line $LINENO "configure" |
40056 | 11141 #include "confdefs.h" |
11142 | |
29834 | 11143 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 11144 #ifdef __cplusplus |
11145 extern "C" | |
11146 #endif | |
29834 | 11147 /* We use char because int might match the return type of a gcc2 |
40056 | 11148 builtin and then its argument prototype would still apply. */ |
11149 char kvm_open (); | |
44493 | 11150 #ifdef F77_DUMMY_MAIN |
11151 # ifdef __cplusplus | |
11152 extern "C" | |
11153 # endif | |
11154 int F77_DUMMY_MAIN() { return 1; } | |
11155 #endif | |
40056 | 11156 int |
11157 main () | |
11158 { | |
11159 kvm_open (); | |
11160 ; | |
11161 return 0; | |
11162 } | |
11163 _ACEOF | |
11164 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 11165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11166 (eval $ac_link) 2>&5 | |
11167 ac_status=$? | |
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11169 (exit $ac_status); } && | |
11170 { ac_try='test -s conftest$ac_exeext' | |
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11172 (eval $ac_try) 2>&5 | |
11173 ac_status=$? | |
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 11175 (exit $ac_status); }; }; then |
11176 ac_cv_lib_kvm_kvm_open=yes | |
11177 else | |
11178 echo "$as_me: failed program was:" >&5 | |
11179 cat conftest.$ac_ext >&5 | |
11180 ac_cv_lib_kvm_kvm_open=no | |
11181 fi | |
11182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11183 LIBS=$ac_check_lib_save_LIBS | |
11184 fi | |
44493 | 11185 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 |
40056 | 11186 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 |
11187 if test $ac_cv_lib_kvm_kvm_open = yes; then | |
29834 | 11188 LIBS="-lkvm $LIBS" |
40056 | 11189 fi |
11190 | |
11191 # Check for the 4.4BSD definition of getloadavg. | |
44493 | 11192 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 |
40056 | 11193 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 |
11194 if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
11195 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11196 else | |
11197 ac_check_lib_save_LIBS=$LIBS | |
29834 | 11198 LIBS="-lutil $LIBS" |
40056 | 11199 cat >conftest.$ac_ext <<_ACEOF |
44493 | 11200 #line $LINENO "configure" |
40056 | 11201 #include "confdefs.h" |
11202 | |
29834 | 11203 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 11204 #ifdef __cplusplus |
11205 extern "C" | |
11206 #endif | |
29834 | 11207 /* We use char because int might match the return type of a gcc2 |
40056 | 11208 builtin and then its argument prototype would still apply. */ |
11209 char getloadavg (); | |
44493 | 11210 #ifdef F77_DUMMY_MAIN |
11211 # ifdef __cplusplus | |
11212 extern "C" | |
11213 # endif | |
11214 int F77_DUMMY_MAIN() { return 1; } | |
11215 #endif | |
40056 | 11216 int |
11217 main () | |
11218 { | |
11219 getloadavg (); | |
11220 ; | |
11221 return 0; | |
11222 } | |
11223 _ACEOF | |
11224 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 11225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11226 (eval $ac_link) 2>&5 | |
11227 ac_status=$? | |
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11229 (exit $ac_status); } && | |
11230 { ac_try='test -s conftest$ac_exeext' | |
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11232 (eval $ac_try) 2>&5 | |
11233 ac_status=$? | |
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 11235 (exit $ac_status); }; }; then |
11236 ac_cv_lib_util_getloadavg=yes | |
11237 else | |
11238 echo "$as_me: failed program was:" >&5 | |
11239 cat conftest.$ac_ext >&5 | |
11240 ac_cv_lib_util_getloadavg=no | |
11241 fi | |
11242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11243 LIBS=$ac_check_lib_save_LIBS | |
11244 fi | |
44493 | 11245 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 |
40056 | 11246 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 |
11247 if test $ac_cv_lib_util_getloadavg = yes; then | |
29834 | 11248 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes |
40056 | 11249 fi |
11250 | |
11251 fi | |
29834 | 11252 |
11253 if test $ac_have_func = no; then | |
11254 # There is a commonly available library for RS/6000 AIX. | |
11255 # Since it is not a standard part of AIX, it might be installed locally. | |
40056 | 11256 ac_getloadavg_LIBS=$LIBS |
11257 LIBS="-L/usr/local/lib $LIBS" | |
44493 | 11258 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 |
40056 | 11259 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 |
11260 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
11261 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11262 else | |
11263 ac_check_lib_save_LIBS=$LIBS | |
29834 | 11264 LIBS="-lgetloadavg $LIBS" |
40056 | 11265 cat >conftest.$ac_ext <<_ACEOF |
44493 | 11266 #line $LINENO "configure" |
40056 | 11267 #include "confdefs.h" |
11268 | |
29834 | 11269 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 11270 #ifdef __cplusplus |
11271 extern "C" | |
11272 #endif | |
29834 | 11273 /* We use char because int might match the return type of a gcc2 |
40056 | 11274 builtin and then its argument prototype would still apply. */ |
11275 char getloadavg (); | |
44493 | 11276 #ifdef F77_DUMMY_MAIN |
11277 # ifdef __cplusplus | |
11278 extern "C" | |
11279 # endif | |
11280 int F77_DUMMY_MAIN() { return 1; } | |
11281 #endif | |
40056 | 11282 int |
11283 main () | |
11284 { | |
11285 getloadavg (); | |
11286 ; | |
11287 return 0; | |
11288 } | |
11289 _ACEOF | |
11290 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 11291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
11292 (eval $ac_link) 2>&5 | |
11293 ac_status=$? | |
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11295 (exit $ac_status); } && | |
11296 { ac_try='test -s conftest$ac_exeext' | |
11297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11298 (eval $ac_try) 2>&5 | |
11299 ac_status=$? | |
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 11301 (exit $ac_status); }; }; then |
11302 ac_cv_lib_getloadavg_getloadavg=yes | |
11303 else | |
11304 echo "$as_me: failed program was:" >&5 | |
11305 cat conftest.$ac_ext >&5 | |
11306 ac_cv_lib_getloadavg_getloadavg=no | |
11307 fi | |
11308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11309 LIBS=$ac_check_lib_save_LIBS | |
11310 fi | |
44493 | 11311 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
11312 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 | |
11313 if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
11314 LIBS="-lgetloadavg $LIBS" | |
11315 else | |
11316 LIBS=$ac_getloadavg_LIBS | |
11317 fi | |
11318 | |
11319 fi | |
11320 | |
11321 # Make sure it is really in the library, if we think we found it, | |
11322 # otherwise set up the replacement function. | |
11323 | |
11324 for ac_func in getloadavg | |
11325 do | |
11326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11327 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11329 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11330 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11331 else | |
11332 cat >conftest.$ac_ext <<_ACEOF | |
11333 #line $LINENO "configure" | |
11334 #include "confdefs.h" | |
11335 /* System header to define __stub macros and hopefully few prototypes, | |
11336 which can conflict with char $ac_func (); below. */ | |
11337 #include <assert.h> | |
11338 /* Override any gcc2 internal prototype to avoid an error. */ | |
11339 #ifdef __cplusplus | |
11340 extern "C" | |
11341 #endif | |
11342 /* We use char because int might match the return type of a gcc2 | |
11343 builtin and then its argument prototype would still apply. */ | |
11344 char $ac_func (); | |
11345 char (*f) (); | |
11346 | |
11347 #ifdef F77_DUMMY_MAIN | |
11348 # ifdef __cplusplus | |
11349 extern "C" | |
11350 # endif | |
11351 int F77_DUMMY_MAIN() { return 1; } | |
11352 #endif | |
11353 int | |
11354 main () | |
11355 { | |
11356 /* The GNU C library defines this for functions which it implements | |
11357 to always fail with ENOSYS. Some functions are actually named | |
11358 something starting with __ and the normal name is an alias. */ | |
11359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11360 choke me | |
11361 #else | |
11362 f = $ac_func; | |
11363 #endif | |
11364 | |
11365 ; | |
11366 return 0; | |
11367 } | |
11368 _ACEOF | |
11369 rm -f conftest.$ac_objext conftest$ac_exeext | |
11370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11371 (eval $ac_link) 2>&5 | |
11372 ac_status=$? | |
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11374 (exit $ac_status); } && | |
11375 { ac_try='test -s conftest$ac_exeext' | |
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11377 (eval $ac_try) 2>&5 | |
11378 ac_status=$? | |
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11380 (exit $ac_status); }; }; then | |
11381 eval "$as_ac_var=yes" | |
11382 else | |
11383 echo "$as_me: failed program was:" >&5 | |
11384 cat conftest.$ac_ext >&5 | |
11385 eval "$as_ac_var=no" | |
11386 fi | |
11387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11388 fi | |
11389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
11390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
11391 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11392 cat >>confdefs.h <<_ACEOF | |
11393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11394 _ACEOF | |
11395 | |
11396 else | |
11397 LIBOBJS="$LIBOBJS getloadavg.$ac_objext" | |
11398 | |
11399 cat >>confdefs.h <<\_ACEOF | |
11400 #define C_GETLOADAVG 1 | |
11401 _ACEOF | |
11402 | |
11403 # Figure out what our getloadavg.c needs. | |
11404 ac_have_func=no | |
11405 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
11406 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
11407 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 | |
11408 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
11409 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11410 fi | |
11411 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
11412 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 | |
11413 else | |
11414 # Is the header compilable? | |
11415 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 | |
11416 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6 | |
11417 cat >conftest.$ac_ext <<_ACEOF | |
11418 #line $LINENO "configure" | |
11419 #include "confdefs.h" | |
11420 $ac_includes_default | |
11421 #include <sys/dg_sys_info.h> | |
11422 _ACEOF | |
11423 rm -f conftest.$ac_objext | |
11424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11425 (eval $ac_compile) 2>&5 | |
11426 ac_status=$? | |
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11428 (exit $ac_status); } && | |
11429 { ac_try='test -s conftest.$ac_objext' | |
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11431 (eval $ac_try) 2>&5 | |
11432 ac_status=$? | |
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11434 (exit $ac_status); }; }; then | |
11435 ac_header_compiler=yes | |
11436 else | |
11437 echo "$as_me: failed program was:" >&5 | |
11438 cat conftest.$ac_ext >&5 | |
11439 ac_header_compiler=no | |
11440 fi | |
11441 rm -f conftest.$ac_objext conftest.$ac_ext | |
11442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11443 echo "${ECHO_T}$ac_header_compiler" >&6 | |
11444 | |
11445 # Is the header present? | |
11446 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 | |
11447 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6 | |
11448 cat >conftest.$ac_ext <<_ACEOF | |
11449 #line $LINENO "configure" | |
11450 #include "confdefs.h" | |
11451 #include <sys/dg_sys_info.h> | |
11452 _ACEOF | |
11453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11455 ac_status=$? | |
11456 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11457 rm -f conftest.er1 | |
11458 cat conftest.err >&5 | |
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11460 (exit $ac_status); } >/dev/null; then | |
11461 if test -s conftest.err; then | |
11462 ac_cpp_err=$ac_c_preproc_warn_flag | |
11463 else | |
11464 ac_cpp_err= | |
11465 fi | |
11466 else | |
11467 ac_cpp_err=yes | |
11468 fi | |
11469 if test -z "$ac_cpp_err"; then | |
11470 ac_header_preproc=yes | |
11471 else | |
11472 echo "$as_me: failed program was:" >&5 | |
11473 cat conftest.$ac_ext >&5 | |
11474 ac_header_preproc=no | |
11475 fi | |
11476 rm -f conftest.err conftest.$ac_ext | |
11477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11478 echo "${ECHO_T}$ac_header_preproc" >&6 | |
11479 | |
11480 # So? What about this header? | |
11481 case $ac_header_compiler:$ac_header_preproc in | |
11482 yes:no ) | |
11483 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11484 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11485 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 | |
11486 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};; | |
11487 no:yes ) | |
11488 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 | |
11489 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
11490 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 | |
11491 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
11492 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 | |
11493 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};; | |
11494 esac | |
11495 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
11496 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 | |
11497 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
11498 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11499 else | |
11500 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
11501 fi | |
11502 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
11503 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 | |
11504 | |
11505 fi | |
11506 if test $ac_cv_header_sys_dg_sys_info_h = yes; then | |
11507 ac_have_func=yes | |
11508 | |
11509 cat >>confdefs.h <<\_ACEOF | |
11510 #define DGUX 1 | |
11511 _ACEOF | |
11512 | |
11513 | |
11514 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 | |
11515 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 | |
11516 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
11517 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11518 else | |
11519 ac_check_lib_save_LIBS=$LIBS | |
11520 LIBS="-ldgc $LIBS" | |
11521 cat >conftest.$ac_ext <<_ACEOF | |
11522 #line $LINENO "configure" | |
11523 #include "confdefs.h" | |
11524 | |
11525 /* Override any gcc2 internal prototype to avoid an error. */ | |
11526 #ifdef __cplusplus | |
11527 extern "C" | |
11528 #endif | |
11529 /* We use char because int might match the return type of a gcc2 | |
11530 builtin and then its argument prototype would still apply. */ | |
11531 char dg_sys_info (); | |
11532 #ifdef F77_DUMMY_MAIN | |
11533 # ifdef __cplusplus | |
11534 extern "C" | |
11535 # endif | |
11536 int F77_DUMMY_MAIN() { return 1; } | |
11537 #endif | |
11538 int | |
11539 main () | |
11540 { | |
11541 dg_sys_info (); | |
11542 ; | |
11543 return 0; | |
11544 } | |
11545 _ACEOF | |
11546 rm -f conftest.$ac_objext conftest$ac_exeext | |
11547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11548 (eval $ac_link) 2>&5 | |
11549 ac_status=$? | |
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11551 (exit $ac_status); } && | |
11552 { ac_try='test -s conftest$ac_exeext' | |
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11554 (eval $ac_try) 2>&5 | |
11555 ac_status=$? | |
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11557 (exit $ac_status); }; }; then | |
11558 ac_cv_lib_dgc_dg_sys_info=yes | |
11559 else | |
11560 echo "$as_me: failed program was:" >&5 | |
11561 cat conftest.$ac_ext >&5 | |
11562 ac_cv_lib_dgc_dg_sys_info=no | |
11563 fi | |
11564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11565 LIBS=$ac_check_lib_save_LIBS | |
11566 fi | |
11567 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 | |
11568 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 | |
11569 if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
11570 cat >>confdefs.h <<_ACEOF | |
11571 #define HAVE_LIBDGC 1 | |
11572 _ACEOF | |
11573 | |
11574 LIBS="-ldgc $LIBS" | |
11575 | |
11576 fi | |
11577 | |
11578 fi | |
11579 | |
11580 | |
11581 | |
11582 if test "${ac_cv_header_locale_h+set}" = set; then | |
11583 echo "$as_me:$LINENO: checking for locale.h" >&5 | |
11584 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 | |
11585 if test "${ac_cv_header_locale_h+set}" = set; then | |
11586 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11587 fi | |
11588 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
11589 echo "${ECHO_T}$ac_cv_header_locale_h" >&6 | |
11590 else | |
11591 # Is the header compilable? | |
11592 echo "$as_me:$LINENO: checking locale.h usability" >&5 | |
11593 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6 | |
11594 cat >conftest.$ac_ext <<_ACEOF | |
11595 #line $LINENO "configure" | |
11596 #include "confdefs.h" | |
11597 $ac_includes_default | |
11598 #include <locale.h> | |
11599 _ACEOF | |
11600 rm -f conftest.$ac_objext | |
11601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11602 (eval $ac_compile) 2>&5 | |
11603 ac_status=$? | |
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11605 (exit $ac_status); } && | |
11606 { ac_try='test -s conftest.$ac_objext' | |
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11608 (eval $ac_try) 2>&5 | |
11609 ac_status=$? | |
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11611 (exit $ac_status); }; }; then | |
11612 ac_header_compiler=yes | |
11613 else | |
11614 echo "$as_me: failed program was:" >&5 | |
11615 cat conftest.$ac_ext >&5 | |
11616 ac_header_compiler=no | |
11617 fi | |
11618 rm -f conftest.$ac_objext conftest.$ac_ext | |
11619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11620 echo "${ECHO_T}$ac_header_compiler" >&6 | |
11621 | |
11622 # Is the header present? | |
11623 echo "$as_me:$LINENO: checking locale.h presence" >&5 | |
11624 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6 | |
11625 cat >conftest.$ac_ext <<_ACEOF | |
11626 #line $LINENO "configure" | |
11627 #include "confdefs.h" | |
11628 #include <locale.h> | |
11629 _ACEOF | |
11630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11632 ac_status=$? | |
11633 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11634 rm -f conftest.er1 | |
11635 cat conftest.err >&5 | |
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11637 (exit $ac_status); } >/dev/null; then | |
11638 if test -s conftest.err; then | |
11639 ac_cpp_err=$ac_c_preproc_warn_flag | |
11640 else | |
11641 ac_cpp_err= | |
11642 fi | |
11643 else | |
11644 ac_cpp_err=yes | |
11645 fi | |
11646 if test -z "$ac_cpp_err"; then | |
11647 ac_header_preproc=yes | |
11648 else | |
11649 echo "$as_me: failed program was:" >&5 | |
11650 cat conftest.$ac_ext >&5 | |
11651 ac_header_preproc=no | |
11652 fi | |
11653 rm -f conftest.err conftest.$ac_ext | |
11654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11655 echo "${ECHO_T}$ac_header_preproc" >&6 | |
11656 | |
11657 # So? What about this header? | |
11658 case $ac_header_compiler:$ac_header_preproc in | |
11659 yes:no ) | |
11660 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11661 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11662 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 | |
11663 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};; | |
11664 no:yes ) | |
11665 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 | |
11666 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} | |
11667 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 | |
11668 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} | |
11669 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 | |
11670 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};; | |
11671 esac | |
11672 echo "$as_me:$LINENO: checking for locale.h" >&5 | |
11673 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 | |
11674 if test "${ac_cv_header_locale_h+set}" = set; then | |
11675 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11676 else | |
11677 ac_cv_header_locale_h=$ac_header_preproc | |
11678 fi | |
11679 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
11680 echo "${ECHO_T}$ac_cv_header_locale_h" >&6 | |
11681 | |
11682 fi | |
11683 | |
11684 | |
11685 | |
11686 for ac_func in setlocale | |
11687 do | |
11688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11689 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11691 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11692 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11693 else | |
11694 cat >conftest.$ac_ext <<_ACEOF | |
11695 #line $LINENO "configure" | |
11696 #include "confdefs.h" | |
11697 /* System header to define __stub macros and hopefully few prototypes, | |
11698 which can conflict with char $ac_func (); below. */ | |
11699 #include <assert.h> | |
11700 /* Override any gcc2 internal prototype to avoid an error. */ | |
11701 #ifdef __cplusplus | |
11702 extern "C" | |
11703 #endif | |
11704 /* We use char because int might match the return type of a gcc2 | |
11705 builtin and then its argument prototype would still apply. */ | |
11706 char $ac_func (); | |
11707 char (*f) (); | |
11708 | |
11709 #ifdef F77_DUMMY_MAIN | |
11710 # ifdef __cplusplus | |
11711 extern "C" | |
11712 # endif | |
11713 int F77_DUMMY_MAIN() { return 1; } | |
11714 #endif | |
11715 int | |
11716 main () | |
11717 { | |
11718 /* The GNU C library defines this for functions which it implements | |
11719 to always fail with ENOSYS. Some functions are actually named | |
11720 something starting with __ and the normal name is an alias. */ | |
11721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11722 choke me | |
11723 #else | |
11724 f = $ac_func; | |
11725 #endif | |
11726 | |
11727 ; | |
11728 return 0; | |
11729 } | |
11730 _ACEOF | |
11731 rm -f conftest.$ac_objext conftest$ac_exeext | |
11732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11733 (eval $ac_link) 2>&5 | |
11734 ac_status=$? | |
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11736 (exit $ac_status); } && | |
11737 { ac_try='test -s conftest$ac_exeext' | |
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11739 (eval $ac_try) 2>&5 | |
11740 ac_status=$? | |
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11742 (exit $ac_status); }; }; then | |
11743 eval "$as_ac_var=yes" | |
11744 else | |
11745 echo "$as_me: failed program was:" >&5 | |
11746 cat conftest.$ac_ext >&5 | |
11747 eval "$as_ac_var=no" | |
11748 fi | |
11749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11750 fi | |
11751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
11752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
11753 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11754 cat >>confdefs.h <<_ACEOF | |
11755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11756 _ACEOF | |
11757 | |
11758 fi | |
11759 done | |
11760 | |
11761 | |
11762 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | |
11763 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
11764 # Irix 4.0.5F has the header but not the library. | |
11765 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
11766 ac_have_func=yes | |
11767 | |
11768 cat >>confdefs.h <<\_ACEOF | |
11769 #define SVR4 1 | |
11770 _ACEOF | |
11771 | |
11772 fi | |
11773 | |
11774 if test $ac_have_func = no; then | |
11775 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
11776 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
11777 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 | |
11778 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
11779 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11780 fi | |
11781 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
11782 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 | |
11783 else | |
11784 # Is the header compilable? | |
11785 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 | |
11786 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6 | |
11787 cat >conftest.$ac_ext <<_ACEOF | |
11788 #line $LINENO "configure" | |
11789 #include "confdefs.h" | |
11790 $ac_includes_default | |
11791 #include <inq_stats/cpustats.h> | |
11792 _ACEOF | |
11793 rm -f conftest.$ac_objext | |
11794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11795 (eval $ac_compile) 2>&5 | |
11796 ac_status=$? | |
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11798 (exit $ac_status); } && | |
11799 { ac_try='test -s conftest.$ac_objext' | |
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11801 (eval $ac_try) 2>&5 | |
11802 ac_status=$? | |
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11804 (exit $ac_status); }; }; then | |
11805 ac_header_compiler=yes | |
11806 else | |
11807 echo "$as_me: failed program was:" >&5 | |
11808 cat conftest.$ac_ext >&5 | |
11809 ac_header_compiler=no | |
11810 fi | |
11811 rm -f conftest.$ac_objext conftest.$ac_ext | |
11812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11813 echo "${ECHO_T}$ac_header_compiler" >&6 | |
11814 | |
11815 # Is the header present? | |
11816 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 | |
11817 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6 | |
11818 cat >conftest.$ac_ext <<_ACEOF | |
11819 #line $LINENO "configure" | |
11820 #include "confdefs.h" | |
11821 #include <inq_stats/cpustats.h> | |
11822 _ACEOF | |
11823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11825 ac_status=$? | |
11826 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11827 rm -f conftest.er1 | |
11828 cat conftest.err >&5 | |
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11830 (exit $ac_status); } >/dev/null; then | |
11831 if test -s conftest.err; then | |
11832 ac_cpp_err=$ac_c_preproc_warn_flag | |
11833 else | |
11834 ac_cpp_err= | |
11835 fi | |
11836 else | |
11837 ac_cpp_err=yes | |
11838 fi | |
11839 if test -z "$ac_cpp_err"; then | |
11840 ac_header_preproc=yes | |
11841 else | |
11842 echo "$as_me: failed program was:" >&5 | |
11843 cat conftest.$ac_ext >&5 | |
11844 ac_header_preproc=no | |
11845 fi | |
11846 rm -f conftest.err conftest.$ac_ext | |
11847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11848 echo "${ECHO_T}$ac_header_preproc" >&6 | |
11849 | |
11850 # So? What about this header? | |
11851 case $ac_header_compiler:$ac_header_preproc in | |
11852 yes:no ) | |
11853 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11854 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11855 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 | |
11856 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};; | |
11857 no:yes ) | |
11858 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 | |
11859 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} | |
11860 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 | |
11861 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} | |
11862 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 | |
11863 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};; | |
11864 esac | |
11865 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
11866 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 | |
11867 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
11868 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11869 else | |
11870 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc | |
11871 fi | |
11872 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
11873 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 | |
11874 | |
11875 fi | |
11876 if test $ac_cv_header_inq_stats_cpustats_h = yes; then | |
11877 ac_have_func=yes | |
11878 | |
11879 cat >>confdefs.h <<\_ACEOF | |
11880 #define UMAX 1 | |
11881 _ACEOF | |
11882 | |
11883 | |
11884 cat >>confdefs.h <<\_ACEOF | |
11885 #define UMAX4_3 1 | |
11886 _ACEOF | |
11887 | |
11888 fi | |
11889 | |
11890 | |
11891 fi | |
11892 | |
11893 if test $ac_have_func = no; then | |
11894 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
11895 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
11896 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 | |
11897 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
11898 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11899 fi | |
11900 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
11901 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 | |
11902 else | |
11903 # Is the header compilable? | |
11904 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 | |
11905 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6 | |
11906 cat >conftest.$ac_ext <<_ACEOF | |
11907 #line $LINENO "configure" | |
11908 #include "confdefs.h" | |
11909 $ac_includes_default | |
11910 #include <sys/cpustats.h> | |
11911 _ACEOF | |
11912 rm -f conftest.$ac_objext | |
11913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11914 (eval $ac_compile) 2>&5 | |
11915 ac_status=$? | |
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11917 (exit $ac_status); } && | |
11918 { ac_try='test -s conftest.$ac_objext' | |
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11920 (eval $ac_try) 2>&5 | |
11921 ac_status=$? | |
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11923 (exit $ac_status); }; }; then | |
11924 ac_header_compiler=yes | |
11925 else | |
11926 echo "$as_me: failed program was:" >&5 | |
11927 cat conftest.$ac_ext >&5 | |
11928 ac_header_compiler=no | |
11929 fi | |
11930 rm -f conftest.$ac_objext conftest.$ac_ext | |
11931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11932 echo "${ECHO_T}$ac_header_compiler" >&6 | |
11933 | |
11934 # Is the header present? | |
11935 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 | |
11936 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6 | |
11937 cat >conftest.$ac_ext <<_ACEOF | |
11938 #line $LINENO "configure" | |
11939 #include "confdefs.h" | |
11940 #include <sys/cpustats.h> | |
11941 _ACEOF | |
11942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11944 ac_status=$? | |
11945 egrep -v '^ *\+' conftest.er1 >conftest.err | |
11946 rm -f conftest.er1 | |
11947 cat conftest.err >&5 | |
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11949 (exit $ac_status); } >/dev/null; then | |
11950 if test -s conftest.err; then | |
11951 ac_cpp_err=$ac_c_preproc_warn_flag | |
11952 else | |
11953 ac_cpp_err= | |
11954 fi | |
11955 else | |
11956 ac_cpp_err=yes | |
11957 fi | |
11958 if test -z "$ac_cpp_err"; then | |
11959 ac_header_preproc=yes | |
11960 else | |
11961 echo "$as_me: failed program was:" >&5 | |
11962 cat conftest.$ac_ext >&5 | |
11963 ac_header_preproc=no | |
11964 fi | |
11965 rm -f conftest.err conftest.$ac_ext | |
11966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11967 echo "${ECHO_T}$ac_header_preproc" >&6 | |
11968 | |
11969 # So? What about this header? | |
11970 case $ac_header_compiler:$ac_header_preproc in | |
11971 yes:no ) | |
11972 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11973 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11974 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 | |
11975 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};; | |
11976 no:yes ) | |
11977 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 | |
11978 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} | |
11979 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 | |
11980 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} | |
11981 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 | |
11982 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};; | |
11983 esac | |
11984 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
11985 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 | |
11986 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
11987 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11988 else | |
11989 ac_cv_header_sys_cpustats_h=$ac_header_preproc | |
11990 fi | |
11991 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
11992 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 | |
11993 | |
11994 fi | |
11995 if test $ac_cv_header_sys_cpustats_h = yes; then | |
11996 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF | |
11997 #define UMAX 1 | |
11998 _ACEOF | |
11999 | |
12000 fi | |
12001 | |
12002 | |
12003 fi | |
12004 | |
12005 if test $ac_have_func = no; then | |
12006 | |
12007 for ac_header in mach/mach.h | |
12008 do | |
12009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12010 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12011 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12013 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12014 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12015 fi | |
12016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12018 else | |
12019 # Is the header compilable? | |
12020 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12022 cat >conftest.$ac_ext <<_ACEOF | |
12023 #line $LINENO "configure" | |
12024 #include "confdefs.h" | |
12025 $ac_includes_default | |
12026 #include <$ac_header> | |
12027 _ACEOF | |
12028 rm -f conftest.$ac_objext | |
12029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12030 (eval $ac_compile) 2>&5 | |
12031 ac_status=$? | |
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12033 (exit $ac_status); } && | |
12034 { ac_try='test -s conftest.$ac_objext' | |
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12036 (eval $ac_try) 2>&5 | |
12037 ac_status=$? | |
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12039 (exit $ac_status); }; }; then | |
12040 ac_header_compiler=yes | |
12041 else | |
12042 echo "$as_me: failed program was:" >&5 | |
12043 cat conftest.$ac_ext >&5 | |
12044 ac_header_compiler=no | |
12045 fi | |
12046 rm -f conftest.$ac_objext conftest.$ac_ext | |
12047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12048 echo "${ECHO_T}$ac_header_compiler" >&6 | |
12049 | |
12050 # Is the header present? | |
12051 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12053 cat >conftest.$ac_ext <<_ACEOF | |
12054 #line $LINENO "configure" | |
12055 #include "confdefs.h" | |
12056 #include <$ac_header> | |
12057 _ACEOF | |
12058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12060 ac_status=$? | |
12061 egrep -v '^ *\+' conftest.er1 >conftest.err | |
12062 rm -f conftest.er1 | |
12063 cat conftest.err >&5 | |
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12065 (exit $ac_status); } >/dev/null; then | |
12066 if test -s conftest.err; then | |
12067 ac_cpp_err=$ac_c_preproc_warn_flag | |
12068 else | |
12069 ac_cpp_err= | |
12070 fi | |
12071 else | |
12072 ac_cpp_err=yes | |
12073 fi | |
12074 if test -z "$ac_cpp_err"; then | |
12075 ac_header_preproc=yes | |
12076 else | |
12077 echo "$as_me: failed program was:" >&5 | |
12078 cat conftest.$ac_ext >&5 | |
12079 ac_header_preproc=no | |
12080 fi | |
12081 rm -f conftest.err conftest.$ac_ext | |
12082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12083 echo "${ECHO_T}$ac_header_preproc" >&6 | |
12084 | |
12085 # So? What about this header? | |
12086 case $ac_header_compiler:$ac_header_preproc in | |
12087 yes:no ) | |
12088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
12092 no:yes ) | |
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
12099 esac | |
12100 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12102 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12103 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12104 else | |
12105 eval "$as_ac_Header=$ac_header_preproc" | |
12106 fi | |
12107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12109 | |
12110 fi | |
12111 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12112 cat >>confdefs.h <<_ACEOF | |
12113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12114 _ACEOF | |
12115 | |
12116 fi | |
12117 | |
12118 done | |
12119 | |
12120 fi | |
12121 | |
12122 | |
12123 for ac_header in nlist.h | |
12124 do | |
12125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12126 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12127 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12129 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12130 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12131 fi | |
12132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12134 else | |
12135 # Is the header compilable? | |
12136 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12138 cat >conftest.$ac_ext <<_ACEOF | |
12139 #line $LINENO "configure" | |
12140 #include "confdefs.h" | |
12141 $ac_includes_default | |
12142 #include <$ac_header> | |
12143 _ACEOF | |
12144 rm -f conftest.$ac_objext | |
12145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12146 (eval $ac_compile) 2>&5 | |
12147 ac_status=$? | |
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12149 (exit $ac_status); } && | |
12150 { ac_try='test -s conftest.$ac_objext' | |
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12152 (eval $ac_try) 2>&5 | |
12153 ac_status=$? | |
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12155 (exit $ac_status); }; }; then | |
12156 ac_header_compiler=yes | |
12157 else | |
12158 echo "$as_me: failed program was:" >&5 | |
12159 cat conftest.$ac_ext >&5 | |
12160 ac_header_compiler=no | |
12161 fi | |
12162 rm -f conftest.$ac_objext conftest.$ac_ext | |
12163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12164 echo "${ECHO_T}$ac_header_compiler" >&6 | |
12165 | |
12166 # Is the header present? | |
12167 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12169 cat >conftest.$ac_ext <<_ACEOF | |
12170 #line $LINENO "configure" | |
12171 #include "confdefs.h" | |
12172 #include <$ac_header> | |
12173 _ACEOF | |
12174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12176 ac_status=$? | |
12177 egrep -v '^ *\+' conftest.er1 >conftest.err | |
12178 rm -f conftest.er1 | |
12179 cat conftest.err >&5 | |
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12181 (exit $ac_status); } >/dev/null; then | |
12182 if test -s conftest.err; then | |
12183 ac_cpp_err=$ac_c_preproc_warn_flag | |
12184 else | |
12185 ac_cpp_err= | |
12186 fi | |
12187 else | |
12188 ac_cpp_err=yes | |
12189 fi | |
12190 if test -z "$ac_cpp_err"; then | |
12191 ac_header_preproc=yes | |
12192 else | |
12193 echo "$as_me: failed program was:" >&5 | |
12194 cat conftest.$ac_ext >&5 | |
12195 ac_header_preproc=no | |
12196 fi | |
12197 rm -f conftest.err conftest.$ac_ext | |
12198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12199 echo "${ECHO_T}$ac_header_preproc" >&6 | |
12200 | |
12201 # So? What about this header? | |
12202 case $ac_header_compiler:$ac_header_preproc in | |
12203 yes:no ) | |
12204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
12208 no:yes ) | |
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
12215 esac | |
12216 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12218 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12219 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12220 else | |
12221 eval "$as_ac_Header=$ac_header_preproc" | |
12222 fi | |
12223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12225 | |
12226 fi | |
12227 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12228 cat >>confdefs.h <<_ACEOF | |
12229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12230 _ACEOF | |
12231 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 | |
12232 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 | |
12233 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
12234 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12235 else | |
12236 cat >conftest.$ac_ext <<_ACEOF | |
12237 #line $LINENO "configure" | |
12238 #include "confdefs.h" | |
12239 #include <nlist.h> | |
12240 | |
12241 #ifdef F77_DUMMY_MAIN | |
12242 # ifdef __cplusplus | |
12243 extern "C" | |
12244 # endif | |
12245 int F77_DUMMY_MAIN() { return 1; } | |
12246 #endif | |
12247 int | |
12248 main () | |
12249 { | |
12250 static struct nlist ac_aggr; | |
12251 if (ac_aggr.n_un.n_name) | |
12252 return 0; | |
12253 ; | |
12254 return 0; | |
12255 } | |
12256 _ACEOF | |
12257 rm -f conftest.$ac_objext | |
12258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12259 (eval $ac_compile) 2>&5 | |
12260 ac_status=$? | |
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12262 (exit $ac_status); } && | |
12263 { ac_try='test -s conftest.$ac_objext' | |
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12265 (eval $ac_try) 2>&5 | |
12266 ac_status=$? | |
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12268 (exit $ac_status); }; }; then | |
12269 ac_cv_member_struct_nlist_n_un_n_name=yes | |
12270 else | |
12271 echo "$as_me: failed program was:" >&5 | |
12272 cat conftest.$ac_ext >&5 | |
12273 ac_cv_member_struct_nlist_n_un_n_name=no | |
12274 fi | |
12275 rm -f conftest.$ac_objext conftest.$ac_ext | |
12276 fi | |
12277 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 | |
12278 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 | |
12279 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
12280 | |
12281 cat >>confdefs.h <<_ACEOF | |
12282 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 | |
12283 _ACEOF | |
12284 | |
12285 | |
12286 cat >>confdefs.h <<\_ACEOF | |
12287 #define NLIST_NAME_UNION 1 | |
12288 _ACEOF | |
12289 | |
12290 fi | |
12291 | |
12292 | |
12293 fi | |
12294 | |
12295 done | |
12296 | |
12297 fi | |
12298 done | |
12299 | |
12300 | |
12301 # Some definitions of getloadavg require that the program be installed setgid. | |
12302 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 | |
12303 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 | |
12304 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
12305 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12306 else | |
12307 cat >conftest.$ac_ext <<_ACEOF | |
12308 #line $LINENO "configure" | |
12309 #include "confdefs.h" | |
12310 #include "$srcdir/getloadavg.c" | |
12311 #ifdef LDAV_PRIVILEGED | |
12312 Yowza Am I SETGID yet | |
12313 #endif | |
12314 _ACEOF | |
12315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12316 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then | |
12317 ac_cv_func_getloadavg_setgid=yes | |
12318 else | |
12319 ac_cv_func_getloadavg_setgid=no | |
12320 fi | |
12321 rm -f conftest* | |
12322 | |
12323 fi | |
12324 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 | |
12325 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 | |
12326 if test $ac_cv_func_getloadavg_setgid = yes; then | |
12327 NEED_SETGID=true | |
12328 | |
12329 cat >>confdefs.h <<\_ACEOF | |
12330 #define GETLOADAVG_PRIVILEGED 1 | |
12331 _ACEOF | |
12332 | |
12333 else | |
12334 NEED_SETGID=false | |
12335 fi | |
12336 | |
12337 if test $ac_cv_func_getloadavg_setgid = yes; then | |
12338 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 | |
12339 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 | |
12340 if test "${ac_cv_group_kmem+set}" = set; then | |
12341 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12342 else | |
12343 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
12344 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
12345 # If we got an error (system does not support symlinks), try without -L. | |
12346 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
12347 ac_cv_group_kmem=`echo $ac_ls_output \ | |
12348 | sed -ne 's/[ ][ ]*/ /g; | |
12349 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
12350 / /s/.* //;p;'` | |
12351 | |
12352 fi | |
12353 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 | |
12354 echo "${ECHO_T}$ac_cv_group_kmem" >&6 | |
12355 KMEM_GROUP=$ac_cv_group_kmem | |
12356 fi | |
12357 if test "x$ac_save_LIBS" = x; then | |
12358 GETLOADAVG_LIBS=$LIBS | |
12359 else | |
12360 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
12361 fi | |
12362 LIBS=$ac_save_LIBS | |
12363 | |
12364 | |
12365 | |
12366 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
40056 | 12367 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
12368 if test "${ac_cv_sys_largefile_source+set}" = set; then | |
12369 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12370 else | |
12371 while :; do | |
34431 | 12372 ac_cv_sys_largefile_source=no |
40056 | 12373 cat >conftest.$ac_ext <<_ACEOF |
44493 | 12374 #line $LINENO "configure" |
34431 | 12375 #include "confdefs.h" |
12376 #include <stdio.h> | |
44493 | 12377 #ifdef F77_DUMMY_MAIN |
12378 # ifdef __cplusplus | |
12379 extern "C" | |
12380 # endif | |
12381 int F77_DUMMY_MAIN() { return 1; } | |
12382 #endif | |
40056 | 12383 int |
12384 main () | |
12385 { | |
34431 | 12386 return !fseeko; |
40056 | 12387 ; |
12388 return 0; | |
12389 } | |
12390 _ACEOF | |
12391 rm -f conftest.$ac_objext | |
44493 | 12392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12393 (eval $ac_compile) 2>&5 | |
12394 ac_status=$? | |
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12396 (exit $ac_status); } && | |
12397 { ac_try='test -s conftest.$ac_objext' | |
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12399 (eval $ac_try) 2>&5 | |
12400 ac_status=$? | |
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 12402 (exit $ac_status); }; }; then |
12403 break | |
12404 else | |
12405 echo "$as_me: failed program was:" >&5 | |
12406 cat conftest.$ac_ext >&5 | |
12407 fi | |
12408 rm -f conftest.$ac_objext conftest.$ac_ext | |
12409 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 12410 #line $LINENO "configure" |
34431 | 12411 #include "confdefs.h" |
12412 #define _LARGEFILE_SOURCE 1 | |
12413 #include <stdio.h> | |
44493 | 12414 #ifdef F77_DUMMY_MAIN |
12415 # ifdef __cplusplus | |
12416 extern "C" | |
12417 # endif | |
12418 int F77_DUMMY_MAIN() { return 1; } | |
12419 #endif | |
40056 | 12420 int |
12421 main () | |
12422 { | |
34431 | 12423 return !fseeko; |
40056 | 12424 ; |
12425 return 0; | |
12426 } | |
12427 _ACEOF | |
12428 rm -f conftest.$ac_objext | |
44493 | 12429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12430 (eval $ac_compile) 2>&5 | |
12431 ac_status=$? | |
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12433 (exit $ac_status); } && | |
12434 { ac_try='test -s conftest.$ac_objext' | |
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12436 (eval $ac_try) 2>&5 | |
12437 ac_status=$? | |
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 12439 (exit $ac_status); }; }; then |
12440 ac_cv_sys_largefile_source=1; break | |
12441 else | |
12442 echo "$as_me: failed program was:" >&5 | |
12443 cat conftest.$ac_ext >&5 | |
12444 fi | |
12445 rm -f conftest.$ac_objext conftest.$ac_ext | |
12446 break | |
12447 done | |
12448 fi | |
44493 | 12449 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
40056 | 12450 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 |
12451 if test "$ac_cv_sys_largefile_source" != no; then | |
12452 | |
44493 | 12453 cat >>confdefs.h <<_ACEOF |
40056 | 12454 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
44493 | 12455 _ACEOF |
40056 | 12456 |
34431 | 12457 fi |
12458 rm -f conftest* | |
40056 | 12459 |
12460 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
12461 # in glibc 2.1.3, but that breaks too many other things. | |
12462 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
44493 | 12463 echo "$as_me:$LINENO: checking for fseeko" >&5 |
40056 | 12464 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 |
12465 if test "${ac_cv_func_fseeko+set}" = set; then | |
12466 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12467 else | |
12468 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 12469 #line $LINENO "configure" |
34431 | 12470 #include "confdefs.h" |
12471 #include <stdio.h> | |
44493 | 12472 #ifdef F77_DUMMY_MAIN |
12473 # ifdef __cplusplus | |
12474 extern "C" | |
12475 # endif | |
12476 int F77_DUMMY_MAIN() { return 1; } | |
12477 #endif | |
40056 | 12478 int |
12479 main () | |
12480 { | |
34431 | 12481 return fseeko && fseeko (stdin, 0, 0); |
40056 | 12482 ; |
12483 return 0; | |
12484 } | |
12485 _ACEOF | |
12486 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 12487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12488 (eval $ac_link) 2>&5 | |
12489 ac_status=$? | |
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12491 (exit $ac_status); } && | |
12492 { ac_try='test -s conftest$ac_exeext' | |
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12494 (eval $ac_try) 2>&5 | |
12495 ac_status=$? | |
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 12497 (exit $ac_status); }; }; then |
34431 | 12498 ac_cv_func_fseeko=yes |
12499 else | |
40056 | 12500 echo "$as_me: failed program was:" >&5 |
12501 cat conftest.$ac_ext >&5 | |
12502 ac_cv_func_fseeko=no | |
12503 fi | |
12504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12505 fi | |
44493 | 12506 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 |
40056 | 12507 echo "${ECHO_T}$ac_cv_func_fseeko" >&6 |
12508 if test $ac_cv_func_fseeko = yes; then | |
12509 | |
44493 | 12510 cat >>confdefs.h <<\_ACEOF |
34431 | 12511 #define HAVE_FSEEKO 1 |
44493 | 12512 _ACEOF |
12513 | |
12514 fi | |
12515 | |
34431 | 12516 |
12517 # UNIX98 PTYs. | |
40056 | 12518 |
34431 | 12519 for ac_func in grantpt |
29036 | 12520 do |
40056 | 12521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44493 | 12522 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 12523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12524 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12525 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12526 else | |
12527 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 12528 #line $LINENO "configure" |
29036 | 12529 #include "confdefs.h" |
12530 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 12531 which can conflict with char $ac_func (); below. */ |
29036 | 12532 #include <assert.h> |
12533 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 12534 #ifdef __cplusplus |
12535 extern "C" | |
12536 #endif | |
29036 | 12537 /* We use char because int might match the return type of a gcc2 |
40056 | 12538 builtin and then its argument prototype would still apply. */ |
12539 char $ac_func (); | |
12540 char (*f) (); | |
12541 | |
44493 | 12542 #ifdef F77_DUMMY_MAIN |
12543 # ifdef __cplusplus | |
12544 extern "C" | |
12545 # endif | |
12546 int F77_DUMMY_MAIN() { return 1; } | |
12547 #endif | |
40056 | 12548 int |
12549 main () | |
12550 { | |
29036 | 12551 /* The GNU C library defines this for functions which it implements |
12552 to always fail with ENOSYS. Some functions are actually named | |
12553 something starting with __ and the normal name is an alias. */ | |
12554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12555 choke me | |
12556 #else | |
40056 | 12557 f = $ac_func; |
12558 #endif | |
12559 | |
12560 ; | |
12561 return 0; | |
12562 } | |
12563 _ACEOF | |
12564 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 12565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12566 (eval $ac_link) 2>&5 | |
12567 ac_status=$? | |
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12569 (exit $ac_status); } && | |
12570 { ac_try='test -s conftest$ac_exeext' | |
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12572 (eval $ac_try) 2>&5 | |
12573 ac_status=$? | |
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 12575 (exit $ac_status); }; }; then |
12576 eval "$as_ac_var=yes" | |
12577 else | |
12578 echo "$as_me: failed program was:" >&5 | |
12579 cat conftest.$ac_ext >&5 | |
12580 eval "$as_ac_var=no" | |
12581 fi | |
12582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12583 fi | |
44493 | 12584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 12585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12586 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 12587 cat >>confdefs.h <<_ACEOF |
40056 | 12588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 12589 _ACEOF |
12590 | |
12591 fi | |
12592 done | |
12593 | |
29036 | 12594 |
12595 # PTY-related GNU extensions. | |
40056 | 12596 |
29036 | 12597 for ac_func in getpt |
12598 do | |
40056 | 12599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44493 | 12600 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 12601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12602 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12603 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12604 else | |
12605 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 12606 #line $LINENO "configure" |
29036 | 12607 #include "confdefs.h" |
12608 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 12609 which can conflict with char $ac_func (); below. */ |
29036 | 12610 #include <assert.h> |
12611 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 12612 #ifdef __cplusplus |
12613 extern "C" | |
12614 #endif | |
29036 | 12615 /* We use char because int might match the return type of a gcc2 |
40056 | 12616 builtin and then its argument prototype would still apply. */ |
12617 char $ac_func (); | |
12618 char (*f) (); | |
12619 | |
44493 | 12620 #ifdef F77_DUMMY_MAIN |
12621 # ifdef __cplusplus | |
12622 extern "C" | |
12623 # endif | |
12624 int F77_DUMMY_MAIN() { return 1; } | |
12625 #endif | |
40056 | 12626 int |
12627 main () | |
12628 { | |
29036 | 12629 /* The GNU C library defines this for functions which it implements |
12630 to always fail with ENOSYS. Some functions are actually named | |
12631 something starting with __ and the normal name is an alias. */ | |
12632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12633 choke me | |
12634 #else | |
40056 | 12635 f = $ac_func; |
12636 #endif | |
12637 | |
12638 ; | |
12639 return 0; | |
12640 } | |
12641 _ACEOF | |
12642 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 12643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12644 (eval $ac_link) 2>&5 | |
12645 ac_status=$? | |
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12647 (exit $ac_status); } && | |
12648 { ac_try='test -s conftest$ac_exeext' | |
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12650 (eval $ac_try) 2>&5 | |
12651 ac_status=$? | |
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 12653 (exit $ac_status); }; }; then |
12654 eval "$as_ac_var=yes" | |
12655 else | |
12656 echo "$as_me: failed program was:" >&5 | |
12657 cat conftest.$ac_ext >&5 | |
12658 eval "$as_ac_var=no" | |
12659 fi | |
12660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12661 fi | |
44493 | 12662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 12663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
12664 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 12665 cat >>confdefs.h <<_ACEOF |
40056 | 12666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 12667 _ACEOF |
12668 | |
12669 fi | |
12670 done | |
12671 | |
29036 | 12672 |
25897 | 12673 # Check this now, so that we will NOT find the above functions in ncurses. |
12674 # That is because we have not set up to link ncurses in lib-src. | |
12675 # It's better to believe a function is not available | |
12676 # than to expect to find it in ncurses. | |
40056 | 12677 |
44493 | 12678 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5 |
40056 | 12679 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 |
12680 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then | |
12681 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12682 else | |
12683 ac_check_lib_save_LIBS=$LIBS | |
25897 | 12684 LIBS="-lncurses $LIBS" |
40056 | 12685 cat >conftest.$ac_ext <<_ACEOF |
44493 | 12686 #line $LINENO "configure" |
40056 | 12687 #include "confdefs.h" |
12688 | |
25897 | 12689 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 12690 #ifdef __cplusplus |
12691 extern "C" | |
12692 #endif | |
25897 | 12693 /* We use char because int might match the return type of a gcc2 |
40056 | 12694 builtin and then its argument prototype would still apply. */ |
12695 char tparm (); | |
44493 | 12696 #ifdef F77_DUMMY_MAIN |
12697 # ifdef __cplusplus | |
12698 extern "C" | |
12699 # endif | |
12700 int F77_DUMMY_MAIN() { return 1; } | |
12701 #endif | |
40056 | 12702 int |
12703 main () | |
12704 { | |
12705 tparm (); | |
12706 ; | |
12707 return 0; | |
12708 } | |
12709 _ACEOF | |
12710 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 12711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12712 (eval $ac_link) 2>&5 | |
12713 ac_status=$? | |
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12715 (exit $ac_status); } && | |
12716 { ac_try='test -s conftest$ac_exeext' | |
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12718 (eval $ac_try) 2>&5 | |
12719 ac_status=$? | |
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 12721 (exit $ac_status); }; }; then |
12722 ac_cv_lib_ncurses_tparm=yes | |
12723 else | |
12724 echo "$as_me: failed program was:" >&5 | |
12725 cat conftest.$ac_ext >&5 | |
12726 ac_cv_lib_ncurses_tparm=no | |
12727 fi | |
12728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12729 LIBS=$ac_check_lib_save_LIBS | |
12730 fi | |
44493 | 12731 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5 |
40056 | 12732 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 |
12733 if test $ac_cv_lib_ncurses_tparm = yes; then | |
44493 | 12734 cat >>confdefs.h <<_ACEOF |
40056 | 12735 #define HAVE_LIBNCURSES 1 |
44493 | 12736 _ACEOF |
25897 | 12737 |
12738 LIBS="-lncurses $LIBS" | |
12739 | |
40056 | 12740 fi |
25897 | 12741 |
44493 | 12742 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12743 # 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
|
12744 if test "$with_hesiod" = yes ; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12745 # 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
|
12746 resolv=no |
44493 | 12747 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
|
12748 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
|
12749 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
|
12750 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
|
12751 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12752 cat >conftest.$ac_ext <<_ACEOF |
44493 | 12753 #line $LINENO "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12754 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12755 /* 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
|
12756 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
|
12757 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12758 /* 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
|
12759 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12760 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12761 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12762 /* 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
|
12763 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
|
12764 char res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12765 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12766 |
44493 | 12767 #ifdef F77_DUMMY_MAIN |
12768 # ifdef __cplusplus | |
12769 extern "C" | |
12770 # endif | |
12771 int F77_DUMMY_MAIN() { return 1; } | |
12772 #endif | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12773 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12774 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12775 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12776 /* 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
|
12777 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
|
12778 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
|
12779 #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
|
12780 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12781 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12782 f = res_send; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12783 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12784 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12785 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12786 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12787 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12788 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12789 rm -f conftest.$ac_objext conftest$ac_exeext |
44493 | 12790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12791 (eval $ac_link) 2>&5 | |
12792 ac_status=$? | |
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12794 (exit $ac_status); } && | |
12795 { ac_try='test -s conftest$ac_exeext' | |
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12797 (eval $ac_try) 2>&5 | |
12798 ac_status=$? | |
12799 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
|
12800 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12801 ac_cv_func_res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12802 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12803 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
|
12804 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12805 ac_cv_func_res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12806 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12807 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
|
12808 fi |
44493 | 12809 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
|
12810 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
|
12811 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
|
12812 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12813 else |
44493 | 12814 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
|
12815 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
|
12816 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
|
12817 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
|
12818 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12819 cat >conftest.$ac_ext <<_ACEOF |
44493 | 12820 #line $LINENO "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12821 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12822 /* 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
|
12823 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
|
12824 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12825 /* 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
|
12826 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12827 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12828 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12829 /* 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
|
12830 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
|
12831 char __res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12832 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12833 |
44493 | 12834 #ifdef F77_DUMMY_MAIN |
12835 # ifdef __cplusplus | |
12836 extern "C" | |
12837 # endif | |
12838 int F77_DUMMY_MAIN() { return 1; } | |
12839 #endif | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12840 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12841 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12842 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12843 /* 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
|
12844 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
|
12845 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
|
12846 #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
|
12847 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12848 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12849 f = __res_send; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12850 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12851 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12852 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12853 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12854 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12855 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12856 rm -f conftest.$ac_objext conftest$ac_exeext |
44493 | 12857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12858 (eval $ac_link) 2>&5 | |
12859 ac_status=$? | |
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12861 (exit $ac_status); } && | |
12862 { ac_try='test -s conftest$ac_exeext' | |
12863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12864 (eval $ac_try) 2>&5 | |
12865 ac_status=$? | |
12866 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
|
12867 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12868 ac_cv_func___res_send=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12869 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12870 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
|
12871 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12872 ac_cv_func___res_send=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12873 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12874 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
|
12875 fi |
44493 | 12876 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
|
12877 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
|
12878 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
|
12879 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12880 else |
44493 | 12881 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
|
12882 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
|
12883 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
|
12884 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
|
12885 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12886 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12887 LIBS="-lresolv $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12888 cat >conftest.$ac_ext <<_ACEOF |
44493 | 12889 #line $LINENO "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12890 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12891 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12892 /* 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
|
12893 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12894 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12895 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12896 /* 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
|
12897 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
|
12898 char res_send (); |
44493 | 12899 #ifdef F77_DUMMY_MAIN |
12900 # ifdef __cplusplus | |
12901 extern "C" | |
12902 # endif | |
12903 int F77_DUMMY_MAIN() { return 1; } | |
12904 #endif | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12905 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12906 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12907 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12908 res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12909 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12910 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12911 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12912 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12913 rm -f conftest.$ac_objext conftest$ac_exeext |
44493 | 12914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12915 (eval $ac_link) 2>&5 | |
12916 ac_status=$? | |
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12918 (exit $ac_status); } && | |
12919 { ac_try='test -s conftest$ac_exeext' | |
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12921 (eval $ac_try) 2>&5 | |
12922 ac_status=$? | |
12923 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
|
12924 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12925 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
|
12926 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12927 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
|
12928 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12929 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
|
12930 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12931 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
|
12932 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12933 fi |
44493 | 12934 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
|
12935 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
|
12936 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
|
12937 resolv=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12938 else |
44493 | 12939 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
|
12940 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
|
12941 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
|
12942 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
|
12943 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12944 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12945 LIBS="-lresolv $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12946 cat >conftest.$ac_ext <<_ACEOF |
44493 | 12947 #line $LINENO "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12948 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12949 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12950 /* 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
|
12951 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12952 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12953 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12954 /* 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
|
12955 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
|
12956 char __res_send (); |
44493 | 12957 #ifdef F77_DUMMY_MAIN |
12958 # ifdef __cplusplus | |
12959 extern "C" | |
12960 # endif | |
12961 int F77_DUMMY_MAIN() { return 1; } | |
12962 #endif | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12963 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12964 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12965 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12966 __res_send (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12967 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12968 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12969 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12970 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12971 rm -f conftest.$ac_objext conftest$ac_exeext |
44493 | 12972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12973 (eval $ac_link) 2>&5 | |
12974 ac_status=$? | |
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12976 (exit $ac_status); } && | |
12977 { ac_try='test -s conftest$ac_exeext' | |
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12979 (eval $ac_try) 2>&5 | |
12980 ac_status=$? | |
12981 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
|
12982 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12983 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
|
12984 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12985 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
|
12986 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12987 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
|
12988 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12989 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
|
12990 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12991 fi |
44493 | 12992 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
|
12993 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
|
12994 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
|
12995 resolv=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12996 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12997 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12998 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
12999 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13000 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13001 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13002 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13003 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13004 if test "$resolv" = yes ; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13005 RESOLVLIB=-lresolv |
44569 | 13006 |
13007 cat >>confdefs.h <<\_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13008 #define HAVE_LIBRESOLV 1 |
44493 | 13009 _ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13010 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13011 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13012 RESOLVLIB= |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13013 fi |
44493 | 13014 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
|
13015 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
|
13016 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
|
13017 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
|
13018 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13019 cat >conftest.$ac_ext <<_ACEOF |
44493 | 13020 #line $LINENO "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13021 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13022 /* 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
|
13023 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
|
13024 #include <assert.h> |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13025 /* 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
|
13026 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13027 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13028 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13029 /* 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
|
13030 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
|
13031 char hes_getmailhost (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13032 char (*f) (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13033 |
44493 | 13034 #ifdef F77_DUMMY_MAIN |
13035 # ifdef __cplusplus | |
13036 extern "C" | |
13037 # endif | |
13038 int F77_DUMMY_MAIN() { return 1; } | |
13039 #endif | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13040 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13041 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13042 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13043 /* 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
|
13044 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
|
13045 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
|
13046 #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
|
13047 choke me |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13048 #else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13049 f = hes_getmailhost; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13050 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13051 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13052 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13053 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13054 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13055 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13056 rm -f conftest.$ac_objext conftest$ac_exeext |
44493 | 13057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13058 (eval $ac_link) 2>&5 | |
13059 ac_status=$? | |
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13061 (exit $ac_status); } && | |
13062 { ac_try='test -s conftest$ac_exeext' | |
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13064 (eval $ac_try) 2>&5 | |
13065 ac_status=$? | |
13066 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
|
13067 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13068 ac_cv_func_hes_getmailhost=yes |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13069 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13070 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
|
13071 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13072 ac_cv_func_hes_getmailhost=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13073 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13074 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
|
13075 fi |
44493 | 13076 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
|
13077 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
|
13078 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
|
13079 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13080 else |
44493 | 13081 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
|
13082 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
|
13083 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
|
13084 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
|
13085 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13086 ac_check_lib_save_LIBS=$LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13087 LIBS="-lhesiod $RESOLVLIB $LIBS" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13088 cat >conftest.$ac_ext <<_ACEOF |
44493 | 13089 #line $LINENO "configure" |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13090 #include "confdefs.h" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13091 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13092 /* 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
|
13093 #ifdef __cplusplus |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13094 extern "C" |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13095 #endif |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13096 /* 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
|
13097 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
|
13098 char hes_getmailhost (); |
44493 | 13099 #ifdef F77_DUMMY_MAIN |
13100 # ifdef __cplusplus | |
13101 extern "C" | |
13102 # endif | |
13103 int F77_DUMMY_MAIN() { return 1; } | |
13104 #endif | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13105 int |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13106 main () |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13107 { |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13108 hes_getmailhost (); |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13109 ; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13110 return 0; |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13111 } |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13112 _ACEOF |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13113 rm -f conftest.$ac_objext conftest$ac_exeext |
44493 | 13114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13115 (eval $ac_link) 2>&5 | |
13116 ac_status=$? | |
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13118 (exit $ac_status); } && | |
13119 { ac_try='test -s conftest$ac_exeext' | |
13120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13121 (eval $ac_try) 2>&5 | |
13122 ac_status=$? | |
13123 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
|
13124 (exit $ac_status); }; }; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13125 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
|
13126 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13127 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
|
13128 cat conftest.$ac_ext >&5 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13129 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
|
13130 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13131 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
|
13132 LIBS=$ac_check_lib_save_LIBS |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13133 fi |
44493 | 13134 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
|
13135 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
|
13136 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then |
44569 | 13137 |
13138 cat >>confdefs.h <<\_ACEOF | |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13139 #define HAVE_LIBHESIOD 1 |
44493 | 13140 _ACEOF |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13141 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13142 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13143 : |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13144 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13145 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13146 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13147 |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13148 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
13149 |
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
|
13150 # 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
|
13151 if test "${with_kerberos+set}" = set; then |
40056 | 13152 |
44493 | 13153 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 |
40056 | 13154 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 |
13155 if test "${ac_cv_lib_com_err_com_err+set}" = set; then | |
13156 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13157 else | |
13158 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
|
13159 LIBS="-lcom_err $LIBS" |
40056 | 13160 cat >conftest.$ac_ext <<_ACEOF |
44493 | 13161 #line $LINENO "configure" |
40056 | 13162 #include "confdefs.h" |
13163 | |
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
|
13164 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 13165 #ifdef __cplusplus |
13166 extern "C" | |
13167 #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
|
13168 /* We use char because int might match the return type of a gcc2 |
40056 | 13169 builtin and then its argument prototype would still apply. */ |
13170 char com_err (); | |
44493 | 13171 #ifdef F77_DUMMY_MAIN |
13172 # ifdef __cplusplus | |
13173 extern "C" | |
13174 # endif | |
13175 int F77_DUMMY_MAIN() { return 1; } | |
13176 #endif | |
40056 | 13177 int |
13178 main () | |
13179 { | |
13180 com_err (); | |
13181 ; | |
13182 return 0; | |
13183 } | |
13184 _ACEOF | |
13185 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 13186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13187 (eval $ac_link) 2>&5 | |
13188 ac_status=$? | |
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13190 (exit $ac_status); } && | |
13191 { ac_try='test -s conftest$ac_exeext' | |
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13193 (eval $ac_try) 2>&5 | |
13194 ac_status=$? | |
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 13196 (exit $ac_status); }; }; then |
13197 ac_cv_lib_com_err_com_err=yes | |
13198 else | |
13199 echo "$as_me: failed program was:" >&5 | |
13200 cat conftest.$ac_ext >&5 | |
13201 ac_cv_lib_com_err_com_err=no | |
13202 fi | |
13203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13204 LIBS=$ac_check_lib_save_LIBS | |
13205 fi | |
44493 | 13206 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 |
40056 | 13207 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 |
13208 if test $ac_cv_lib_com_err_com_err = yes; then | |
44493 | 13209 cat >>confdefs.h <<_ACEOF |
40056 | 13210 #define HAVE_LIBCOM_ERR 1 |
44493 | 13211 _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
|
13212 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
13213 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
|
13214 |
40056 | 13215 fi |
13216 | |
44493 | 13217 |
13218 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | |
40056 | 13219 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 |
13220 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | |
13221 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13222 else | |
13223 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
|
13224 LIBS="-lk5crypto $LIBS" |
40056 | 13225 cat >conftest.$ac_ext <<_ACEOF |
44493 | 13226 #line $LINENO "configure" |
40056 | 13227 #include "confdefs.h" |
13228 | |
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
|
13229 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 13230 #ifdef __cplusplus |
13231 extern "C" | |
13232 #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
|
13233 /* We use char because int might match the return type of a gcc2 |
40056 | 13234 builtin and then its argument prototype would still apply. */ |
13235 char mit_des_cbc_encrypt (); | |
44493 | 13236 #ifdef F77_DUMMY_MAIN |
13237 # ifdef __cplusplus | |
13238 extern "C" | |
13239 # endif | |
13240 int F77_DUMMY_MAIN() { return 1; } | |
13241 #endif | |
40056 | 13242 int |
13243 main () | |
13244 { | |
13245 mit_des_cbc_encrypt (); | |
13246 ; | |
13247 return 0; | |
13248 } | |
13249 _ACEOF | |
13250 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 13251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13252 (eval $ac_link) 2>&5 | |
13253 ac_status=$? | |
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13255 (exit $ac_status); } && | |
13256 { ac_try='test -s conftest$ac_exeext' | |
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13258 (eval $ac_try) 2>&5 | |
13259 ac_status=$? | |
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 13261 (exit $ac_status); }; }; then |
13262 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | |
13263 else | |
13264 echo "$as_me: failed program was:" >&5 | |
13265 cat conftest.$ac_ext >&5 | |
13266 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no | |
13267 fi | |
13268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13269 LIBS=$ac_check_lib_save_LIBS | |
13270 fi | |
44493 | 13271 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
40056 | 13272 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 |
13273 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | |
44493 | 13274 cat >>confdefs.h <<_ACEOF |
40056 | 13275 #define HAVE_LIBK5CRYPTO 1 |
44493 | 13276 _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
|
13277 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
13278 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
|
13279 |
40056 | 13280 fi |
13281 | |
44493 | 13282 |
13283 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | |
40056 | 13284 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 |
13285 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | |
13286 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13287 else | |
13288 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
|
13289 LIBS="-lcrypto $LIBS" |
40056 | 13290 cat >conftest.$ac_ext <<_ACEOF |
44493 | 13291 #line $LINENO "configure" |
40056 | 13292 #include "confdefs.h" |
13293 | |
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
|
13294 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 13295 #ifdef __cplusplus |
13296 extern "C" | |
13297 #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
|
13298 /* We use char because int might match the return type of a gcc2 |
40056 | 13299 builtin and then its argument prototype would still apply. */ |
13300 char mit_des_cbc_encrypt (); | |
44493 | 13301 #ifdef F77_DUMMY_MAIN |
13302 # ifdef __cplusplus | |
13303 extern "C" | |
13304 # endif | |
13305 int F77_DUMMY_MAIN() { return 1; } | |
13306 #endif | |
40056 | 13307 int |
13308 main () | |
13309 { | |
13310 mit_des_cbc_encrypt (); | |
13311 ; | |
13312 return 0; | |
13313 } | |
13314 _ACEOF | |
13315 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 13316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13317 (eval $ac_link) 2>&5 | |
13318 ac_status=$? | |
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13320 (exit $ac_status); } && | |
13321 { ac_try='test -s conftest$ac_exeext' | |
13322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13323 (eval $ac_try) 2>&5 | |
13324 ac_status=$? | |
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 13326 (exit $ac_status); }; }; then |
13327 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | |
13328 else | |
13329 echo "$as_me: failed program was:" >&5 | |
13330 cat conftest.$ac_ext >&5 | |
13331 ac_cv_lib_crypto_mit_des_cbc_encrypt=no | |
13332 fi | |
13333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13334 LIBS=$ac_check_lib_save_LIBS | |
13335 fi | |
44493 | 13336 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
40056 | 13337 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 |
13338 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | |
44493 | 13339 cat >>confdefs.h <<_ACEOF |
40056 | 13340 #define HAVE_LIBCRYPTO 1 |
44493 | 13341 _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
|
13342 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
13343 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
|
13344 |
40056 | 13345 fi |
13346 | |
44493 | 13347 |
13348 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 | |
40056 | 13349 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 |
13350 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | |
13351 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13352 else | |
13353 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
|
13354 LIBS="-lkrb5 $LIBS" |
40056 | 13355 cat >conftest.$ac_ext <<_ACEOF |
44493 | 13356 #line $LINENO "configure" |
40056 | 13357 #include "confdefs.h" |
13358 | |
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
|
13359 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 13360 #ifdef __cplusplus |
13361 extern "C" | |
13362 #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
|
13363 /* We use char because int might match the return type of a gcc2 |
40056 | 13364 builtin and then its argument prototype would still apply. */ |
13365 char krb5_init_context (); | |
44493 | 13366 #ifdef F77_DUMMY_MAIN |
13367 # ifdef __cplusplus | |
13368 extern "C" | |
13369 # endif | |
13370 int F77_DUMMY_MAIN() { return 1; } | |
13371 #endif | |
40056 | 13372 int |
13373 main () | |
13374 { | |
13375 krb5_init_context (); | |
13376 ; | |
13377 return 0; | |
13378 } | |
13379 _ACEOF | |
13380 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 13381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13382 (eval $ac_link) 2>&5 | |
13383 ac_status=$? | |
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13385 (exit $ac_status); } && | |
13386 { ac_try='test -s conftest$ac_exeext' | |
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13388 (eval $ac_try) 2>&5 | |
13389 ac_status=$? | |
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 13391 (exit $ac_status); }; }; then |
13392 ac_cv_lib_krb5_krb5_init_context=yes | |
13393 else | |
13394 echo "$as_me: failed program was:" >&5 | |
13395 cat conftest.$ac_ext >&5 | |
13396 ac_cv_lib_krb5_krb5_init_context=no | |
13397 fi | |
13398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13399 LIBS=$ac_check_lib_save_LIBS | |
13400 fi | |
44493 | 13401 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
40056 | 13402 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 |
13403 if test $ac_cv_lib_krb5_krb5_init_context = yes; then | |
44493 | 13404 cat >>confdefs.h <<_ACEOF |
40056 | 13405 #define HAVE_LIBKRB5 1 |
44493 | 13406 _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
|
13407 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
13408 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
|
13409 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
13410 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
|
13411 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
13412 if test "${with_kerberos5+set}" != set; then |
40056 | 13413 |
44493 | 13414 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 |
40056 | 13415 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 |
13416 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | |
13417 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13418 else | |
13419 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
|
13420 LIBS="-ldes425 $LIBS" |
40056 | 13421 cat >conftest.$ac_ext <<_ACEOF |
44493 | 13422 #line $LINENO "configure" |
40056 | 13423 #include "confdefs.h" |
13424 | |
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
|
13425 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 13426 #ifdef __cplusplus |
13427 extern "C" | |
13428 #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
|
13429 /* We use char because int might match the return type of a gcc2 |
40056 | 13430 builtin and then its argument prototype would still apply. */ |
13431 char des_cbc_encrypt (); | |
44493 | 13432 #ifdef F77_DUMMY_MAIN |
13433 # ifdef __cplusplus | |
13434 extern "C" | |
13435 # endif | |
13436 int F77_DUMMY_MAIN() { return 1; } | |
13437 #endif | |
40056 | 13438 int |
13439 main () | |
13440 { | |
13441 des_cbc_encrypt (); | |
13442 ; | |
13443 return 0; | |
13444 } | |
13445 _ACEOF | |
13446 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 13447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13448 (eval $ac_link) 2>&5 | |
13449 ac_status=$? | |
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13451 (exit $ac_status); } && | |
13452 { ac_try='test -s conftest$ac_exeext' | |
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13454 (eval $ac_try) 2>&5 | |
13455 ac_status=$? | |
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 13457 (exit $ac_status); }; }; then |
13458 ac_cv_lib_des425_des_cbc_encrypt=yes | |
13459 else | |
13460 echo "$as_me: failed program was:" >&5 | |
13461 cat conftest.$ac_ext >&5 | |
13462 ac_cv_lib_des425_des_cbc_encrypt=no | |
13463 fi | |
13464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13465 LIBS=$ac_check_lib_save_LIBS | |
13466 fi | |
44493 | 13467 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
40056 | 13468 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 |
13469 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | |
44493 | 13470 cat >>confdefs.h <<_ACEOF |
40056 | 13471 #define HAVE_LIBDES425 1 |
44493 | 13472 _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
|
13473 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
13474 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
|
13475 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
13476 else |
40056 | 13477 |
44493 | 13478 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 |
40056 | 13479 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 |
13480 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | |
13481 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13482 else | |
13483 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
|
13484 LIBS="-ldes $LIBS" |
40056 | 13485 cat >conftest.$ac_ext <<_ACEOF |
44493 | 13486 #line $LINENO "configure" |
40056 | 13487 #include "confdefs.h" |
13488 | |
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
|
13489 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 13490 #ifdef __cplusplus |
13491 extern "C" | |
13492 #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
|
13493 /* We use char because int might match the return type of a gcc2 |
40056 | 13494 builtin and then its argument prototype would still apply. */ |
13495 char des_cbc_encrypt (); | |
44493 | 13496 #ifdef F77_DUMMY_MAIN |
13497 # ifdef __cplusplus | |
13498 extern "C" | |
13499 # endif | |
13500 int F77_DUMMY_MAIN() { return 1; } | |
13501 #endif | |
40056 | 13502 int |
13503 main () | |
13504 { | |
13505 des_cbc_encrypt (); | |
13506 ; | |
13507 return 0; | |
13508 } | |
13509 _ACEOF | |
13510 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 13511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13512 (eval $ac_link) 2>&5 | |
13513 ac_status=$? | |
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13515 (exit $ac_status); } && | |
13516 { ac_try='test -s conftest$ac_exeext' | |
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13518 (eval $ac_try) 2>&5 | |
13519 ac_status=$? | |
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 13521 (exit $ac_status); }; }; then |
13522 ac_cv_lib_des_des_cbc_encrypt=yes | |
13523 else | |
13524 echo "$as_me: failed program was:" >&5 | |
13525 cat conftest.$ac_ext >&5 | |
13526 ac_cv_lib_des_des_cbc_encrypt=no | |
13527 fi | |
13528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13529 LIBS=$ac_check_lib_save_LIBS | |
13530 fi | |
44493 | 13531 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
40056 | 13532 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 |
13533 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | |
44493 | 13534 cat >>confdefs.h <<_ACEOF |
40056 | 13535 #define HAVE_LIBDES 1 |
44493 | 13536 _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
|
13537 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
13538 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
|
13539 |
40056 | 13540 fi |
13541 | |
13542 fi | |
13543 | |
44493 | 13544 |
13545 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 | |
40056 | 13546 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 |
13547 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | |
13548 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13549 else | |
13550 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
|
13551 LIBS="-lkrb4 $LIBS" |
40056 | 13552 cat >conftest.$ac_ext <<_ACEOF |
44493 | 13553 #line $LINENO "configure" |
40056 | 13554 #include "confdefs.h" |
13555 | |
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
|
13556 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 13557 #ifdef __cplusplus |
13558 extern "C" | |
13559 #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
|
13560 /* We use char because int might match the return type of a gcc2 |
40056 | 13561 builtin and then its argument prototype would still apply. */ |
13562 char krb_get_cred (); | |
44493 | 13563 #ifdef F77_DUMMY_MAIN |
13564 # ifdef __cplusplus | |
13565 extern "C" | |
13566 # endif | |
13567 int F77_DUMMY_MAIN() { return 1; } | |
13568 #endif | |
40056 | 13569 int |
13570 main () | |
13571 { | |
13572 krb_get_cred (); | |
13573 ; | |
13574 return 0; | |
13575 } | |
13576 _ACEOF | |
13577 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 13578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13579 (eval $ac_link) 2>&5 | |
13580 ac_status=$? | |
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13582 (exit $ac_status); } && | |
13583 { ac_try='test -s conftest$ac_exeext' | |
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13585 (eval $ac_try) 2>&5 | |
13586 ac_status=$? | |
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 13588 (exit $ac_status); }; }; then |
13589 ac_cv_lib_krb4_krb_get_cred=yes | |
13590 else | |
13591 echo "$as_me: failed program was:" >&5 | |
13592 cat conftest.$ac_ext >&5 | |
13593 ac_cv_lib_krb4_krb_get_cred=no | |
13594 fi | |
13595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13596 LIBS=$ac_check_lib_save_LIBS | |
13597 fi | |
44493 | 13598 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
40056 | 13599 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 |
13600 if test $ac_cv_lib_krb4_krb_get_cred = yes; then | |
44493 | 13601 cat >>confdefs.h <<_ACEOF |
40056 | 13602 #define HAVE_LIBKRB4 1 |
44493 | 13603 _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
|
13604 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
13605 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
|
13606 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
13607 else |
40056 | 13608 |
44493 | 13609 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 |
40056 | 13610 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 |
13611 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | |
13612 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13613 else | |
13614 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
|
13615 LIBS="-lkrb $LIBS" |
40056 | 13616 cat >conftest.$ac_ext <<_ACEOF |
44493 | 13617 #line $LINENO "configure" |
40056 | 13618 #include "confdefs.h" |
13619 | |
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
|
13620 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 13621 #ifdef __cplusplus |
13622 extern "C" | |
13623 #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
|
13624 /* We use char because int might match the return type of a gcc2 |
40056 | 13625 builtin and then its argument prototype would still apply. */ |
13626 char krb_get_cred (); | |
44493 | 13627 #ifdef F77_DUMMY_MAIN |
13628 # ifdef __cplusplus | |
13629 extern "C" | |
13630 # endif | |
13631 int F77_DUMMY_MAIN() { return 1; } | |
13632 #endif | |
40056 | 13633 int |
13634 main () | |
13635 { | |
13636 krb_get_cred (); | |
13637 ; | |
13638 return 0; | |
13639 } | |
13640 _ACEOF | |
13641 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 13642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13643 (eval $ac_link) 2>&5 | |
13644 ac_status=$? | |
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13646 (exit $ac_status); } && | |
13647 { ac_try='test -s conftest$ac_exeext' | |
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13649 (eval $ac_try) 2>&5 | |
13650 ac_status=$? | |
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 13652 (exit $ac_status); }; }; then |
13653 ac_cv_lib_krb_krb_get_cred=yes | |
13654 else | |
13655 echo "$as_me: failed program was:" >&5 | |
13656 cat conftest.$ac_ext >&5 | |
13657 ac_cv_lib_krb_krb_get_cred=no | |
13658 fi | |
13659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13660 LIBS=$ac_check_lib_save_LIBS | |
13661 fi | |
44493 | 13662 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
40056 | 13663 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 |
13664 if test $ac_cv_lib_krb_krb_get_cred = yes; then | |
44493 | 13665 cat >>confdefs.h <<_ACEOF |
40056 | 13666 #define HAVE_LIBKRB 1 |
44493 | 13667 _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
|
13668 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
13669 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
|
13670 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
13671 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
|
13672 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
13673 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
|
13674 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
13675 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
|
13676 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
13677 if test "${with_kerberos5+set}" = set; then |
40056 | 13678 |
13679 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
|
13680 do |
40056 | 13681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 13682 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13683 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 13684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13685 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13686 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 13687 fi |
13688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13690 else | |
13691 # Is the header compilable? | |
13692 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13694 cat >conftest.$ac_ext <<_ACEOF | |
13695 #line $LINENO "configure" | |
13696 #include "confdefs.h" | |
13697 $ac_includes_default | |
13698 #include <$ac_header> | |
13699 _ACEOF | |
13700 rm -f conftest.$ac_objext | |
13701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13702 (eval $ac_compile) 2>&5 | |
13703 ac_status=$? | |
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13705 (exit $ac_status); } && | |
13706 { ac_try='test -s conftest.$ac_objext' | |
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13708 (eval $ac_try) 2>&5 | |
13709 ac_status=$? | |
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13711 (exit $ac_status); }; }; then | |
13712 ac_header_compiler=yes | |
13713 else | |
13714 echo "$as_me: failed program was:" >&5 | |
13715 cat conftest.$ac_ext >&5 | |
13716 ac_header_compiler=no | |
13717 fi | |
13718 rm -f conftest.$ac_objext conftest.$ac_ext | |
13719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13720 echo "${ECHO_T}$ac_header_compiler" >&6 | |
13721 | |
13722 # Is the header present? | |
13723 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13725 cat >conftest.$ac_ext <<_ACEOF | |
13726 #line $LINENO "configure" | |
40056 | 13727 #include "confdefs.h" |
13728 #include <$ac_header> | |
13729 _ACEOF | |
44493 | 13730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 13731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13732 ac_status=$? | |
13733 egrep -v '^ *\+' conftest.er1 >conftest.err | |
13734 rm -f conftest.er1 | |
13735 cat conftest.err >&5 | |
44493 | 13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 13737 (exit $ac_status); } >/dev/null; then |
13738 if test -s conftest.err; then | |
13739 ac_cpp_err=$ac_c_preproc_warn_flag | |
13740 else | |
13741 ac_cpp_err= | |
13742 fi | |
13743 else | |
13744 ac_cpp_err=yes | |
13745 fi | |
13746 if test -z "$ac_cpp_err"; then | |
44493 | 13747 ac_header_preproc=yes |
40056 | 13748 else |
13749 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
|
13750 cat conftest.$ac_ext >&5 |
44493 | 13751 ac_header_preproc=no |
40056 | 13752 fi |
13753 rm -f conftest.err conftest.$ac_ext | |
44493 | 13754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13755 echo "${ECHO_T}$ac_header_preproc" >&6 | |
13756 | |
13757 # So? What about this header? | |
13758 case $ac_header_compiler:$ac_header_preproc in | |
13759 yes:no ) | |
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
13764 no:yes ) | |
13765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
13771 esac | |
13772 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13774 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13775 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13776 else | |
13777 eval "$as_ac_Header=$ac_header_preproc" | |
13778 fi | |
13779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 13780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 13781 |
13782 fi | |
40056 | 13783 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 13784 cat >>confdefs.h <<_ACEOF |
40056 | 13785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 13786 _ACEOF |
13787 | |
13788 fi | |
13789 | |
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
|
13790 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
|
13791 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
13792 else |
40056 | 13793 |
13794 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
|
13795 do |
40056 | 13796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 13797 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13798 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 13799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13800 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13801 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 13802 fi |
13803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13805 else | |
13806 # Is the header compilable? | |
13807 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13809 cat >conftest.$ac_ext <<_ACEOF | |
13810 #line $LINENO "configure" | |
13811 #include "confdefs.h" | |
13812 $ac_includes_default | |
13813 #include <$ac_header> | |
13814 _ACEOF | |
13815 rm -f conftest.$ac_objext | |
13816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13817 (eval $ac_compile) 2>&5 | |
13818 ac_status=$? | |
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13820 (exit $ac_status); } && | |
13821 { ac_try='test -s conftest.$ac_objext' | |
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13823 (eval $ac_try) 2>&5 | |
13824 ac_status=$? | |
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13826 (exit $ac_status); }; }; then | |
13827 ac_header_compiler=yes | |
13828 else | |
13829 echo "$as_me: failed program was:" >&5 | |
13830 cat conftest.$ac_ext >&5 | |
13831 ac_header_compiler=no | |
13832 fi | |
13833 rm -f conftest.$ac_objext conftest.$ac_ext | |
13834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13835 echo "${ECHO_T}$ac_header_compiler" >&6 | |
13836 | |
13837 # Is the header present? | |
13838 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13840 cat >conftest.$ac_ext <<_ACEOF | |
13841 #line $LINENO "configure" | |
40056 | 13842 #include "confdefs.h" |
13843 #include <$ac_header> | |
13844 _ACEOF | |
44493 | 13845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 13846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13847 ac_status=$? | |
13848 egrep -v '^ *\+' conftest.er1 >conftest.err | |
13849 rm -f conftest.er1 | |
13850 cat conftest.err >&5 | |
44493 | 13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 13852 (exit $ac_status); } >/dev/null; then |
13853 if test -s conftest.err; then | |
13854 ac_cpp_err=$ac_c_preproc_warn_flag | |
13855 else | |
13856 ac_cpp_err= | |
13857 fi | |
13858 else | |
13859 ac_cpp_err=yes | |
13860 fi | |
13861 if test -z "$ac_cpp_err"; then | |
44493 | 13862 ac_header_preproc=yes |
40056 | 13863 else |
13864 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
|
13865 cat conftest.$ac_ext >&5 |
44493 | 13866 ac_header_preproc=no |
40056 | 13867 fi |
13868 rm -f conftest.err conftest.$ac_ext | |
44493 | 13869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13870 echo "${ECHO_T}$ac_header_preproc" >&6 | |
13871 | |
13872 # So? What about this header? | |
13873 case $ac_header_compiler:$ac_header_preproc in | |
13874 yes:no ) | |
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
13879 no:yes ) | |
13880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
13886 esac | |
13887 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13889 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13890 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13891 else | |
13892 eval "$as_ac_Header=$ac_header_preproc" | |
13893 fi | |
13894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 13895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 13896 |
13897 fi | |
40056 | 13898 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 13899 cat >>confdefs.h <<_ACEOF |
40056 | 13900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 13901 _ACEOF |
40056 | 13902 |
13903 else | |
13904 | |
13905 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
|
13906 do |
40056 | 13907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 13908 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
13909 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 13910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
13911 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13912 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 13913 fi |
13914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13916 else | |
13917 # Is the header compilable? | |
13918 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13920 cat >conftest.$ac_ext <<_ACEOF | |
13921 #line $LINENO "configure" | |
13922 #include "confdefs.h" | |
13923 $ac_includes_default | |
13924 #include <$ac_header> | |
13925 _ACEOF | |
13926 rm -f conftest.$ac_objext | |
13927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13928 (eval $ac_compile) 2>&5 | |
13929 ac_status=$? | |
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13931 (exit $ac_status); } && | |
13932 { ac_try='test -s conftest.$ac_objext' | |
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13934 (eval $ac_try) 2>&5 | |
13935 ac_status=$? | |
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13937 (exit $ac_status); }; }; then | |
13938 ac_header_compiler=yes | |
13939 else | |
13940 echo "$as_me: failed program was:" >&5 | |
13941 cat conftest.$ac_ext >&5 | |
13942 ac_header_compiler=no | |
13943 fi | |
13944 rm -f conftest.$ac_objext conftest.$ac_ext | |
13945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13946 echo "${ECHO_T}$ac_header_compiler" >&6 | |
13947 | |
13948 # Is the header present? | |
13949 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13951 cat >conftest.$ac_ext <<_ACEOF | |
13952 #line $LINENO "configure" | |
40056 | 13953 #include "confdefs.h" |
13954 #include <$ac_header> | |
13955 _ACEOF | |
44493 | 13956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 13957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
13958 ac_status=$? | |
13959 egrep -v '^ *\+' conftest.er1 >conftest.err | |
13960 rm -f conftest.er1 | |
13961 cat conftest.err >&5 | |
44493 | 13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 13963 (exit $ac_status); } >/dev/null; then |
13964 if test -s conftest.err; then | |
13965 ac_cpp_err=$ac_c_preproc_warn_flag | |
13966 else | |
13967 ac_cpp_err= | |
13968 fi | |
13969 else | |
13970 ac_cpp_err=yes | |
13971 fi | |
13972 if test -z "$ac_cpp_err"; then | |
44493 | 13973 ac_header_preproc=yes |
40056 | 13974 else |
13975 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
|
13976 cat conftest.$ac_ext >&5 |
44493 | 13977 ac_header_preproc=no |
40056 | 13978 fi |
13979 rm -f conftest.err conftest.$ac_ext | |
44493 | 13980 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13981 echo "${ECHO_T}$ac_header_preproc" >&6 | |
13982 | |
13983 # So? What about this header? | |
13984 case $ac_header_compiler:$ac_header_preproc in | |
13985 yes:no ) | |
13986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
13990 no:yes ) | |
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
13997 esac | |
13998 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14000 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14001 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14002 else | |
14003 eval "$as_ac_Header=$ac_header_preproc" | |
14004 fi | |
14005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 14006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 14007 |
14008 fi | |
40056 | 14009 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 14010 cat >>confdefs.h <<_ACEOF |
40056 | 14011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 14012 _ACEOF |
40056 | 14013 |
14014 else | |
14015 | |
14016 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
|
14017 do |
40056 | 14018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 14019 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14020 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 14021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
14022 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14023 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 14024 fi |
14025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14027 else | |
14028 # Is the header compilable? | |
14029 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14031 cat >conftest.$ac_ext <<_ACEOF | |
14032 #line $LINENO "configure" | |
14033 #include "confdefs.h" | |
14034 $ac_includes_default | |
14035 #include <$ac_header> | |
14036 _ACEOF | |
14037 rm -f conftest.$ac_objext | |
14038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14039 (eval $ac_compile) 2>&5 | |
14040 ac_status=$? | |
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14042 (exit $ac_status); } && | |
14043 { ac_try='test -s conftest.$ac_objext' | |
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14045 (eval $ac_try) 2>&5 | |
14046 ac_status=$? | |
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14048 (exit $ac_status); }; }; then | |
14049 ac_header_compiler=yes | |
14050 else | |
14051 echo "$as_me: failed program was:" >&5 | |
14052 cat conftest.$ac_ext >&5 | |
14053 ac_header_compiler=no | |
14054 fi | |
14055 rm -f conftest.$ac_objext conftest.$ac_ext | |
14056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14057 echo "${ECHO_T}$ac_header_compiler" >&6 | |
14058 | |
14059 # Is the header present? | |
14060 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14062 cat >conftest.$ac_ext <<_ACEOF | |
14063 #line $LINENO "configure" | |
40056 | 14064 #include "confdefs.h" |
14065 #include <$ac_header> | |
14066 _ACEOF | |
44493 | 14067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 14068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
14069 ac_status=$? | |
14070 egrep -v '^ *\+' conftest.er1 >conftest.err | |
14071 rm -f conftest.er1 | |
14072 cat conftest.err >&5 | |
44493 | 14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 14074 (exit $ac_status); } >/dev/null; then |
14075 if test -s conftest.err; then | |
14076 ac_cpp_err=$ac_c_preproc_warn_flag | |
14077 else | |
14078 ac_cpp_err= | |
14079 fi | |
14080 else | |
14081 ac_cpp_err=yes | |
14082 fi | |
14083 if test -z "$ac_cpp_err"; then | |
44493 | 14084 ac_header_preproc=yes |
40056 | 14085 else |
14086 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
|
14087 cat conftest.$ac_ext >&5 |
44493 | 14088 ac_header_preproc=no |
40056 | 14089 fi |
14090 rm -f conftest.err conftest.$ac_ext | |
44493 | 14091 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14092 echo "${ECHO_T}$ac_header_preproc" >&6 | |
14093 | |
14094 # So? What about this header? | |
14095 case $ac_header_compiler:$ac_header_preproc in | |
14096 yes:no ) | |
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
14101 no:yes ) | |
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
14108 esac | |
14109 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14111 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14112 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14113 else | |
14114 eval "$as_ac_Header=$ac_header_preproc" | |
14115 fi | |
14116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 14117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 14118 |
14119 fi | |
40056 | 14120 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 14121 cat >>confdefs.h <<_ACEOF |
40056 | 14122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 14123 _ACEOF |
14124 | |
14125 fi | |
14126 | |
14127 done | |
14128 | |
14129 fi | |
14130 | |
14131 done | |
14132 | |
14133 fi | |
14134 | |
14135 done | |
14136 | |
14137 | |
14138 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
|
14139 do |
40056 | 14140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 14141 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14142 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 14143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
14144 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14145 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 14146 fi |
14147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14149 else | |
14150 # Is the header compilable? | |
14151 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14153 cat >conftest.$ac_ext <<_ACEOF | |
14154 #line $LINENO "configure" | |
14155 #include "confdefs.h" | |
14156 $ac_includes_default | |
14157 #include <$ac_header> | |
14158 _ACEOF | |
14159 rm -f conftest.$ac_objext | |
14160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14161 (eval $ac_compile) 2>&5 | |
14162 ac_status=$? | |
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14164 (exit $ac_status); } && | |
14165 { ac_try='test -s conftest.$ac_objext' | |
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14167 (eval $ac_try) 2>&5 | |
14168 ac_status=$? | |
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14170 (exit $ac_status); }; }; then | |
14171 ac_header_compiler=yes | |
14172 else | |
14173 echo "$as_me: failed program was:" >&5 | |
14174 cat conftest.$ac_ext >&5 | |
14175 ac_header_compiler=no | |
14176 fi | |
14177 rm -f conftest.$ac_objext conftest.$ac_ext | |
14178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14179 echo "${ECHO_T}$ac_header_compiler" >&6 | |
14180 | |
14181 # Is the header present? | |
14182 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14184 cat >conftest.$ac_ext <<_ACEOF | |
14185 #line $LINENO "configure" | |
40056 | 14186 #include "confdefs.h" |
14187 #include <$ac_header> | |
14188 _ACEOF | |
44493 | 14189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 14190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
14191 ac_status=$? | |
14192 egrep -v '^ *\+' conftest.er1 >conftest.err | |
14193 rm -f conftest.er1 | |
14194 cat conftest.err >&5 | |
44493 | 14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 14196 (exit $ac_status); } >/dev/null; then |
14197 if test -s conftest.err; then | |
14198 ac_cpp_err=$ac_c_preproc_warn_flag | |
14199 else | |
14200 ac_cpp_err= | |
14201 fi | |
14202 else | |
14203 ac_cpp_err=yes | |
14204 fi | |
14205 if test -z "$ac_cpp_err"; then | |
44493 | 14206 ac_header_preproc=yes |
40056 | 14207 else |
14208 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
|
14209 cat conftest.$ac_ext >&5 |
44493 | 14210 ac_header_preproc=no |
40056 | 14211 fi |
14212 rm -f conftest.err conftest.$ac_ext | |
44493 | 14213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14214 echo "${ECHO_T}$ac_header_preproc" >&6 | |
14215 | |
14216 # So? What about this header? | |
14217 case $ac_header_compiler:$ac_header_preproc in | |
14218 yes:no ) | |
14219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
14223 no:yes ) | |
14224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14227 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
14230 esac | |
14231 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14233 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14234 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14235 else | |
14236 eval "$as_ac_Header=$ac_header_preproc" | |
14237 fi | |
14238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 14239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 14240 |
14241 fi | |
40056 | 14242 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 14243 cat >>confdefs.h <<_ACEOF |
40056 | 14244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 14245 _ACEOF |
14246 | |
14247 else | |
14248 | |
14249 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
|
14250 do |
40056 | 14251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 14252 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14253 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 14254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
14255 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14256 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 14257 fi |
14258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14260 else | |
14261 # Is the header compilable? | |
14262 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14264 cat >conftest.$ac_ext <<_ACEOF | |
14265 #line $LINENO "configure" | |
14266 #include "confdefs.h" | |
14267 $ac_includes_default | |
14268 #include <$ac_header> | |
14269 _ACEOF | |
14270 rm -f conftest.$ac_objext | |
14271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14272 (eval $ac_compile) 2>&5 | |
14273 ac_status=$? | |
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14275 (exit $ac_status); } && | |
14276 { ac_try='test -s conftest.$ac_objext' | |
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14278 (eval $ac_try) 2>&5 | |
14279 ac_status=$? | |
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14281 (exit $ac_status); }; }; then | |
14282 ac_header_compiler=yes | |
14283 else | |
14284 echo "$as_me: failed program was:" >&5 | |
14285 cat conftest.$ac_ext >&5 | |
14286 ac_header_compiler=no | |
14287 fi | |
14288 rm -f conftest.$ac_objext conftest.$ac_ext | |
14289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14290 echo "${ECHO_T}$ac_header_compiler" >&6 | |
14291 | |
14292 # Is the header present? | |
14293 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14295 cat >conftest.$ac_ext <<_ACEOF | |
14296 #line $LINENO "configure" | |
40056 | 14297 #include "confdefs.h" |
14298 #include <$ac_header> | |
14299 _ACEOF | |
44493 | 14300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 14301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
14302 ac_status=$? | |
14303 egrep -v '^ *\+' conftest.er1 >conftest.err | |
14304 rm -f conftest.er1 | |
14305 cat conftest.err >&5 | |
44493 | 14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 14307 (exit $ac_status); } >/dev/null; then |
14308 if test -s conftest.err; then | |
14309 ac_cpp_err=$ac_c_preproc_warn_flag | |
14310 else | |
14311 ac_cpp_err= | |
14312 fi | |
14313 else | |
14314 ac_cpp_err=yes | |
14315 fi | |
14316 if test -z "$ac_cpp_err"; then | |
44493 | 14317 ac_header_preproc=yes |
40056 | 14318 else |
14319 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
|
14320 cat conftest.$ac_ext >&5 |
44493 | 14321 ac_header_preproc=no |
40056 | 14322 fi |
14323 rm -f conftest.err conftest.$ac_ext | |
44493 | 14324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14325 echo "${ECHO_T}$ac_header_preproc" >&6 | |
14326 | |
14327 # So? What about this header? | |
14328 case $ac_header_compiler:$ac_header_preproc in | |
14329 yes:no ) | |
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
14334 no:yes ) | |
14335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
14341 esac | |
14342 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14344 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14345 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14346 else | |
14347 eval "$as_ac_Header=$ac_header_preproc" | |
14348 fi | |
14349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 14350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 14351 |
14352 fi | |
40056 | 14353 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 14354 cat >>confdefs.h <<_ACEOF |
40056 | 14355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 14356 _ACEOF |
14357 | |
14358 else | |
14359 | |
14360 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
|
14361 do |
40056 | 14362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
44493 | 14363 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
14364 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 14365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
14366 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14367 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 14368 fi |
14369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14371 else | |
14372 # Is the header compilable? | |
14373 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14375 cat >conftest.$ac_ext <<_ACEOF | |
14376 #line $LINENO "configure" | |
14377 #include "confdefs.h" | |
14378 $ac_includes_default | |
14379 #include <$ac_header> | |
14380 _ACEOF | |
14381 rm -f conftest.$ac_objext | |
14382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14383 (eval $ac_compile) 2>&5 | |
14384 ac_status=$? | |
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14386 (exit $ac_status); } && | |
14387 { ac_try='test -s conftest.$ac_objext' | |
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14389 (eval $ac_try) 2>&5 | |
14390 ac_status=$? | |
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14392 (exit $ac_status); }; }; then | |
14393 ac_header_compiler=yes | |
14394 else | |
14395 echo "$as_me: failed program was:" >&5 | |
14396 cat conftest.$ac_ext >&5 | |
14397 ac_header_compiler=no | |
14398 fi | |
14399 rm -f conftest.$ac_objext conftest.$ac_ext | |
14400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14401 echo "${ECHO_T}$ac_header_compiler" >&6 | |
14402 | |
14403 # Is the header present? | |
14404 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14406 cat >conftest.$ac_ext <<_ACEOF | |
14407 #line $LINENO "configure" | |
40056 | 14408 #include "confdefs.h" |
14409 #include <$ac_header> | |
14410 _ACEOF | |
44493 | 14411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 14412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
14413 ac_status=$? | |
14414 egrep -v '^ *\+' conftest.er1 >conftest.err | |
14415 rm -f conftest.er1 | |
14416 cat conftest.err >&5 | |
44493 | 14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 14418 (exit $ac_status); } >/dev/null; then |
14419 if test -s conftest.err; then | |
14420 ac_cpp_err=$ac_c_preproc_warn_flag | |
14421 else | |
14422 ac_cpp_err= | |
14423 fi | |
14424 else | |
14425 ac_cpp_err=yes | |
14426 fi | |
14427 if test -z "$ac_cpp_err"; then | |
44493 | 14428 ac_header_preproc=yes |
40056 | 14429 else |
14430 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
|
14431 cat conftest.$ac_ext >&5 |
44493 | 14432 ac_header_preproc=no |
40056 | 14433 fi |
14434 rm -f conftest.err conftest.$ac_ext | |
44493 | 14435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14436 echo "${ECHO_T}$ac_header_preproc" >&6 | |
14437 | |
14438 # So? What about this header? | |
14439 case $ac_header_compiler:$ac_header_preproc in | |
14440 yes:no ) | |
14441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
14445 no:yes ) | |
14446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
14452 esac | |
14453 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14455 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14456 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14457 else | |
14458 eval "$as_ac_Header=$ac_header_preproc" | |
14459 fi | |
14460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 14461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 14462 |
14463 fi | |
40056 | 14464 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 14465 cat >>confdefs.h <<_ACEOF |
40056 | 14466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 14467 _ACEOF |
14468 | |
14469 fi | |
14470 | |
14471 done | |
14472 | |
14473 fi | |
14474 | |
14475 done | |
14476 | |
14477 fi | |
14478 | |
14479 done | |
14480 | |
14481 fi | |
14482 | |
14483 for ac_header in com_err.h | |
14484 do | |
14485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14486 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14487 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14489 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14490 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14491 fi | |
14492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14494 else | |
14495 # Is the header compilable? | |
14496 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14498 cat >conftest.$ac_ext <<_ACEOF | |
14499 #line $LINENO "configure" | |
14500 #include "confdefs.h" | |
14501 $ac_includes_default | |
14502 #include <$ac_header> | |
14503 _ACEOF | |
14504 rm -f conftest.$ac_objext | |
14505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14506 (eval $ac_compile) 2>&5 | |
14507 ac_status=$? | |
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14509 (exit $ac_status); } && | |
14510 { ac_try='test -s conftest.$ac_objext' | |
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14512 (eval $ac_try) 2>&5 | |
14513 ac_status=$? | |
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14515 (exit $ac_status); }; }; then | |
14516 ac_header_compiler=yes | |
14517 else | |
14518 echo "$as_me: failed program was:" >&5 | |
14519 cat conftest.$ac_ext >&5 | |
14520 ac_header_compiler=no | |
14521 fi | |
14522 rm -f conftest.$ac_objext conftest.$ac_ext | |
14523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14524 echo "${ECHO_T}$ac_header_compiler" >&6 | |
14525 | |
14526 # Is the header present? | |
14527 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14529 cat >conftest.$ac_ext <<_ACEOF | |
14530 #line $LINENO "configure" | |
14531 #include "confdefs.h" | |
14532 #include <$ac_header> | |
14533 _ACEOF | |
14534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14536 ac_status=$? | |
14537 egrep -v '^ *\+' conftest.er1 >conftest.err | |
14538 rm -f conftest.er1 | |
14539 cat conftest.err >&5 | |
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14541 (exit $ac_status); } >/dev/null; then | |
14542 if test -s conftest.err; then | |
14543 ac_cpp_err=$ac_c_preproc_warn_flag | |
14544 else | |
14545 ac_cpp_err= | |
14546 fi | |
14547 else | |
14548 ac_cpp_err=yes | |
14549 fi | |
14550 if test -z "$ac_cpp_err"; then | |
14551 ac_header_preproc=yes | |
14552 else | |
14553 echo "$as_me: failed program was:" >&5 | |
14554 cat conftest.$ac_ext >&5 | |
14555 ac_header_preproc=no | |
14556 fi | |
14557 rm -f conftest.err conftest.$ac_ext | |
14558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14559 echo "${ECHO_T}$ac_header_preproc" >&6 | |
14560 | |
14561 # So? What about this header? | |
14562 case $ac_header_compiler:$ac_header_preproc in | |
14563 yes:no ) | |
14564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
14568 no:yes ) | |
14569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
14575 esac | |
14576 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14578 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14579 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14580 else | |
14581 eval "$as_ac_Header=$ac_header_preproc" | |
14582 fi | |
14583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14585 | |
14586 fi | |
14587 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14588 cat >>confdefs.h <<_ACEOF | |
14589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14590 _ACEOF | |
14591 | |
14592 fi | |
14593 | |
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
|
14594 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
|
14595 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
14596 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
|
14597 |
25897 | 14598 # Solaris requires -lintl if you want strerror (which calls dgettext) |
14599 # to return localized messages. | |
40056 | 14600 |
44493 | 14601 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 |
40056 | 14602 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
14603 if test "${ac_cv_lib_intl_dgettext+set}" = set; then | |
14604 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14605 else | |
14606 ac_check_lib_save_LIBS=$LIBS | |
25897 | 14607 LIBS="-lintl $LIBS" |
40056 | 14608 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14609 #line $LINENO "configure" |
40056 | 14610 #include "confdefs.h" |
14611 | |
25897 | 14612 /* Override any gcc2 internal prototype to avoid an error. */ |
40056 | 14613 #ifdef __cplusplus |
14614 extern "C" | |
14615 #endif | |
25897 | 14616 /* We use char because int might match the return type of a gcc2 |
40056 | 14617 builtin and then its argument prototype would still apply. */ |
14618 char dgettext (); | |
44493 | 14619 #ifdef F77_DUMMY_MAIN |
14620 # ifdef __cplusplus | |
14621 extern "C" | |
14622 # endif | |
14623 int F77_DUMMY_MAIN() { return 1; } | |
14624 #endif | |
40056 | 14625 int |
14626 main () | |
14627 { | |
14628 dgettext (); | |
14629 ; | |
14630 return 0; | |
14631 } | |
14632 _ACEOF | |
14633 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 14634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14635 (eval $ac_link) 2>&5 | |
14636 ac_status=$? | |
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14638 (exit $ac_status); } && | |
14639 { ac_try='test -s conftest$ac_exeext' | |
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14641 (eval $ac_try) 2>&5 | |
14642 ac_status=$? | |
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 14644 (exit $ac_status); }; }; then |
14645 ac_cv_lib_intl_dgettext=yes | |
14646 else | |
14647 echo "$as_me: failed program was:" >&5 | |
14648 cat conftest.$ac_ext >&5 | |
14649 ac_cv_lib_intl_dgettext=no | |
14650 fi | |
14651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14652 LIBS=$ac_check_lib_save_LIBS | |
14653 fi | |
44493 | 14654 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 |
40056 | 14655 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
14656 if test $ac_cv_lib_intl_dgettext = yes; then | |
44493 | 14657 cat >>confdefs.h <<_ACEOF |
40056 | 14658 #define HAVE_LIBINTL 1 |
44493 | 14659 _ACEOF |
25897 | 14660 |
14661 LIBS="-lintl $LIBS" | |
14662 | |
40056 | 14663 fi |
14664 | |
44493 | 14665 |
14666 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 | |
40056 | 14667 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 |
14668 if test "${emacs_cv_localtime_cache+set}" = set; then | |
14669 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25897 | 14670 else |
14671 if test x$ac_cv_func_tzset = xyes; then | |
14672 if test "$cross_compiling" = yes; then | |
14673 # If we have tzset, assume the worst when cross-compiling. | |
14674 emacs_cv_localtime_cache=yes | |
14675 else | |
40056 | 14676 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14677 #line $LINENO "configure" |
25897 | 14678 #include "confdefs.h" |
14679 #include <time.h> | |
14680 extern char **environ; | |
14681 unset_TZ () | |
14682 { | |
14683 char **from, **to; | |
14684 for (to = from = environ; (*to = *from); from++) | |
14685 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
14686 to++; | |
14687 } | |
14688 char TZ_GMT0[] = "TZ=GMT0"; | |
14689 char TZ_PST8[] = "TZ=PST8"; | |
14690 main() | |
14691 { | |
14692 time_t now = time ((time_t *) 0); | |
14693 int hour_GMT0, hour_unset; | |
14694 if (putenv (TZ_GMT0) != 0) | |
14695 exit (1); | |
14696 hour_GMT0 = localtime (&now)->tm_hour; | |
14697 unset_TZ (); | |
14698 hour_unset = localtime (&now)->tm_hour; | |
14699 if (putenv (TZ_PST8) != 0) | |
14700 exit (1); | |
14701 if (localtime (&now)->tm_hour == hour_GMT0) | |
14702 exit (1); | |
14703 unset_TZ (); | |
14704 if (localtime (&now)->tm_hour != hour_unset) | |
14705 exit (1); | |
14706 exit (0); | |
14707 } | |
40056 | 14708 _ACEOF |
14709 rm -f conftest$ac_exeext | |
44493 | 14710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14711 (eval $ac_link) 2>&5 | |
14712 ac_status=$? | |
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 14714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
44493 | 14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14716 (eval $ac_try) 2>&5 | |
14717 ac_status=$? | |
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 14719 (exit $ac_status); }; }; then |
25897 | 14720 emacs_cv_localtime_cache=no |
14721 else | |
40056 | 14722 echo "$as_me: program exited with status $ac_status" >&5 |
14723 echo "$as_me: failed program was:" >&5 | |
14724 cat conftest.$ac_ext >&5 | |
44493 | 14725 ( exit $ac_status ) |
40056 | 14726 emacs_cv_localtime_cache=yes |
14727 fi | |
14728 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14729 fi | |
25897 | 14730 else |
14731 # If we lack tzset, report that localtime does not cache TZ, | |
14732 # since we can't invalidate the cache if we don't have tzset. | |
14733 emacs_cv_localtime_cache=no | |
14734 fi | |
14735 fi | |
44493 | 14736 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 |
40056 | 14737 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 |
25897 | 14738 if test $emacs_cv_localtime_cache = yes; then |
44569 | 14739 |
14740 cat >>confdefs.h <<\_ACEOF | |
25897 | 14741 #define LOCALTIME_CACHE 1 |
44493 | 14742 _ACEOF |
25897 | 14743 |
14744 fi | |
14745 | |
14746 if test "x$HAVE_TIMEVAL" = xyes; then | |
40056 | 14747 |
14748 for ac_func in gettimeofday | |
29906 | 14749 do |
40056 | 14750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
44493 | 14751 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 14752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
14753 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14754 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14755 else | |
14756 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 14757 #line $LINENO "configure" |
29906 | 14758 #include "confdefs.h" |
14759 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 14760 which can conflict with char $ac_func (); below. */ |
29906 | 14761 #include <assert.h> |
14762 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 14763 #ifdef __cplusplus |
14764 extern "C" | |
14765 #endif | |
29906 | 14766 /* We use char because int might match the return type of a gcc2 |
40056 | 14767 builtin and then its argument prototype would still apply. */ |
14768 char $ac_func (); | |
14769 char (*f) (); | |
14770 | |
44493 | 14771 #ifdef F77_DUMMY_MAIN |
14772 # ifdef __cplusplus | |
14773 extern "C" | |
14774 # endif | |
14775 int F77_DUMMY_MAIN() { return 1; } | |
14776 #endif | |
40056 | 14777 int |
14778 main () | |
14779 { | |
29906 | 14780 /* The GNU C library defines this for functions which it implements |
14781 to always fail with ENOSYS. Some functions are actually named | |
14782 something starting with __ and the normal name is an alias. */ | |
14783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14784 choke me | |
14785 #else | |
40056 | 14786 f = $ac_func; |
14787 #endif | |
14788 | |
14789 ; | |
14790 return 0; | |
14791 } | |
14792 _ACEOF | |
14793 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 14794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14795 (eval $ac_link) 2>&5 | |
14796 ac_status=$? | |
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14798 (exit $ac_status); } && | |
14799 { ac_try='test -s conftest$ac_exeext' | |
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14801 (eval $ac_try) 2>&5 | |
14802 ac_status=$? | |
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 14804 (exit $ac_status); }; }; then |
14805 eval "$as_ac_var=yes" | |
14806 else | |
14807 echo "$as_me: failed program was:" >&5 | |
14808 cat conftest.$ac_ext >&5 | |
14809 eval "$as_ac_var=no" | |
14810 fi | |
14811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
14812 fi | |
44493 | 14813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 14814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
14815 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 14816 cat >>confdefs.h <<_ACEOF |
40056 | 14817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 14818 _ACEOF |
14819 | |
14820 fi | |
14821 done | |
14822 | |
44569 | 14823 if test $ac_cv_func_gettimeofday = yes; then |
14824 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 | |
40056 | 14825 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
14826 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
14827 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14828 else | |
14829 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 14830 #line $LINENO "configure" |
25897 | 14831 #include "confdefs.h" |
14832 | |
14833 #ifdef TIME_WITH_SYS_TIME | |
14834 #include <sys/time.h> | |
14835 #include <time.h> | |
14836 #else | |
14837 #ifdef HAVE_SYS_TIME_H | |
14838 #include <sys/time.h> | |
14839 #else | |
14840 #include <time.h> | |
14841 #endif | |
14842 #endif | |
44493 | 14843 #ifdef F77_DUMMY_MAIN |
14844 # ifdef __cplusplus | |
14845 extern "C" | |
14846 # endif | |
14847 int F77_DUMMY_MAIN() { return 1; } | |
14848 #endif | |
40056 | 14849 int |
14850 main () | |
14851 { | |
29733 | 14852 struct timeval time; |
44569 | 14853 gettimeofday (&time, 0); |
40056 | 14854 ; |
14855 return 0; | |
14856 } | |
14857 _ACEOF | |
14858 rm -f conftest.$ac_objext | |
44493 | 14859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14860 (eval $ac_compile) 2>&5 | |
14861 ac_status=$? | |
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14863 (exit $ac_status); } && | |
14864 { ac_try='test -s conftest.$ac_objext' | |
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14866 (eval $ac_try) 2>&5 | |
14867 ac_status=$? | |
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 14869 (exit $ac_status); }; }; then |
25897 | 14870 emacs_cv_gettimeofday_two_arguments=yes |
14871 else | |
40056 | 14872 echo "$as_me: failed program was:" >&5 |
14873 cat conftest.$ac_ext >&5 | |
14874 emacs_cv_gettimeofday_two_arguments=no | |
14875 fi | |
14876 rm -f conftest.$ac_objext conftest.$ac_ext | |
14877 fi | |
44493 | 14878 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
40056 | 14879 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
44569 | 14880 if test $emacs_cv_gettimeofday_two_arguments = no; then |
14881 | |
14882 cat >>confdefs.h <<\_ACEOF | |
25897 | 14883 #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
44493 | 14884 _ACEOF |
25897 | 14885 |
44569 | 14886 fi |
25897 | 14887 fi |
14888 fi | |
14889 | |
29906 | 14890 if test "$ac_cv_func_gettimeofday" = yes; then |
44493 | 14891 echo "$as_me:$LINENO: checking for struct timezone" >&5 |
40056 | 14892 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 |
14893 if test "${emacs_cv_struct_timezone+set}" = set; then | |
14894 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14895 else | |
14896 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 14897 #line $LINENO "configure" |
29906 | 14898 #include "confdefs.h" |
14899 #include <sys/time.h> | |
44493 | 14900 #ifdef F77_DUMMY_MAIN |
14901 # ifdef __cplusplus | |
14902 extern "C" | |
14903 # endif | |
14904 int F77_DUMMY_MAIN() { return 1; } | |
14905 #endif | |
40056 | 14906 int |
14907 main () | |
14908 { | |
29906 | 14909 struct timezone tz; |
40056 | 14910 ; |
14911 return 0; | |
14912 } | |
14913 _ACEOF | |
14914 rm -f conftest.$ac_objext | |
44493 | 14915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14916 (eval $ac_compile) 2>&5 | |
14917 ac_status=$? | |
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14919 (exit $ac_status); } && | |
14920 { ac_try='test -s conftest.$ac_objext' | |
14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14922 (eval $ac_try) 2>&5 | |
14923 ac_status=$? | |
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 14925 (exit $ac_status); }; }; then |
29906 | 14926 if test "$cross_compiling" = yes; then |
14927 emacs_cv_struct_timezone=yes | |
14928 else | |
40056 | 14929 cat >conftest.$ac_ext <<_ACEOF |
44493 | 14930 #line $LINENO "configure" |
29906 | 14931 #include "confdefs.h" |
14932 | |
14933 #ifdef TIME_WITH_SYS_TIME | |
14934 #include <sys/time.h> | |
14935 #include <time.h> | |
14936 #else | |
14937 #ifdef HAVE_SYS_TIME_H | |
14938 #include <sys/time.h> | |
14939 #else | |
14940 #include <time.h> | |
14941 #endif | |
14942 #endif | |
14943 main () { | |
14944 struct timeval time; | |
14945 struct timezone dummy; | |
14946 exit (gettimeofday (&time, &dummy)); | |
14947 } | |
40056 | 14948 _ACEOF |
14949 rm -f conftest$ac_exeext | |
44493 | 14950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14951 (eval $ac_link) 2>&5 | |
14952 ac_status=$? | |
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 14954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
44493 | 14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14956 (eval $ac_try) 2>&5 | |
14957 ac_status=$? | |
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 14959 (exit $ac_status); }; }; then |
29906 | 14960 emacs_cv_struct_timezone=yes |
14961 else | |
40056 | 14962 echo "$as_me: program exited with status $ac_status" >&5 |
14963 echo "$as_me: failed program was:" >&5 | |
14964 cat conftest.$ac_ext >&5 | |
44493 | 14965 ( exit $ac_status ) |
40056 | 14966 emacs_cv_struct_timezone=no |
14967 fi | |
14968 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14969 fi | |
14970 else | |
14971 echo "$as_me: failed program was:" >&5 | |
14972 cat conftest.$ac_ext >&5 | |
14973 emacs_cv_struct_timezone=no | |
14974 fi | |
14975 rm -f conftest.$ac_objext conftest.$ac_ext | |
14976 fi | |
44493 | 14977 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5 |
40056 | 14978 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 |
29906 | 14979 fi |
14980 | |
25897 | 14981 ok_so_far=yes |
44493 | 14982 echo "$as_me:$LINENO: checking for socket" >&5 |
40056 | 14983 echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
14984 if test "${ac_cv_func_socket+set}" = set; then | |
14985 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14986 else | |
14987 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 14988 #line $LINENO "configure" |
25897 | 14989 #include "confdefs.h" |
14990 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 14991 which can conflict with char socket (); below. */ |
25897 | 14992 #include <assert.h> |
14993 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 14994 #ifdef __cplusplus |
14995 extern "C" | |
14996 #endif | |
25897 | 14997 /* We use char because int might match the return type of a gcc2 |
40056 | 14998 builtin and then its argument prototype would still apply. */ |
14999 char socket (); | |
15000 char (*f) (); | |
15001 | |
44493 | 15002 #ifdef F77_DUMMY_MAIN |
15003 # ifdef __cplusplus | |
15004 extern "C" | |
15005 # endif | |
15006 int F77_DUMMY_MAIN() { return 1; } | |
15007 #endif | |
40056 | 15008 int |
15009 main () | |
15010 { | |
25897 | 15011 /* The GNU C library defines this for functions which it implements |
15012 to always fail with ENOSYS. Some functions are actually named | |
15013 something starting with __ and the normal name is an alias. */ | |
15014 #if defined (__stub_socket) || defined (__stub___socket) | |
15015 choke me | |
15016 #else | |
40056 | 15017 f = socket; |
15018 #endif | |
15019 | |
15020 ; | |
15021 return 0; | |
15022 } | |
15023 _ACEOF | |
15024 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 15025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15026 (eval $ac_link) 2>&5 | |
15027 ac_status=$? | |
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15029 (exit $ac_status); } && | |
15030 { ac_try='test -s conftest$ac_exeext' | |
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15032 (eval $ac_try) 2>&5 | |
15033 ac_status=$? | |
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 15035 (exit $ac_status); }; }; then |
15036 ac_cv_func_socket=yes | |
15037 else | |
15038 echo "$as_me: failed program was:" >&5 | |
15039 cat conftest.$ac_ext >&5 | |
15040 ac_cv_func_socket=no | |
15041 fi | |
15042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15043 fi | |
44493 | 15044 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
40056 | 15045 echo "${ECHO_T}$ac_cv_func_socket" >&6 |
15046 if test $ac_cv_func_socket = yes; then | |
25897 | 15047 : |
15048 else | |
40056 | 15049 ok_so_far=no |
25897 | 15050 fi |
15051 | |
15052 if test $ok_so_far = yes; then | |
44493 | 15053 if test "${ac_cv_header_netinet_in_h+set}" = set; then |
15054 echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
40056 | 15055 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
15056 if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
15057 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 15058 fi |
15059 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 | |
15060 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 | |
15061 else | |
15062 # Is the header compilable? | |
15063 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 | |
15064 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6 | |
15065 cat >conftest.$ac_ext <<_ACEOF | |
15066 #line $LINENO "configure" | |
15067 #include "confdefs.h" | |
15068 $ac_includes_default | |
15069 #include <netinet/in.h> | |
15070 _ACEOF | |
15071 rm -f conftest.$ac_objext | |
15072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15073 (eval $ac_compile) 2>&5 | |
15074 ac_status=$? | |
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15076 (exit $ac_status); } && | |
15077 { ac_try='test -s conftest.$ac_objext' | |
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15079 (eval $ac_try) 2>&5 | |
15080 ac_status=$? | |
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15082 (exit $ac_status); }; }; then | |
15083 ac_header_compiler=yes | |
15084 else | |
15085 echo "$as_me: failed program was:" >&5 | |
15086 cat conftest.$ac_ext >&5 | |
15087 ac_header_compiler=no | |
15088 fi | |
15089 rm -f conftest.$ac_objext conftest.$ac_ext | |
15090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15091 echo "${ECHO_T}$ac_header_compiler" >&6 | |
15092 | |
15093 # Is the header present? | |
15094 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 | |
15095 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6 | |
15096 cat >conftest.$ac_ext <<_ACEOF | |
15097 #line $LINENO "configure" | |
25897 | 15098 #include "confdefs.h" |
15099 #include <netinet/in.h> | |
40056 | 15100 _ACEOF |
44493 | 15101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 15102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15103 ac_status=$? | |
15104 egrep -v '^ *\+' conftest.er1 >conftest.err | |
15105 rm -f conftest.er1 | |
15106 cat conftest.err >&5 | |
44493 | 15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 15108 (exit $ac_status); } >/dev/null; then |
15109 if test -s conftest.err; then | |
15110 ac_cpp_err=$ac_c_preproc_warn_flag | |
15111 else | |
15112 ac_cpp_err= | |
15113 fi | |
15114 else | |
15115 ac_cpp_err=yes | |
15116 fi | |
15117 if test -z "$ac_cpp_err"; then | |
44493 | 15118 ac_header_preproc=yes |
40056 | 15119 else |
15120 echo "$as_me: failed program was:" >&5 | |
25897 | 15121 cat conftest.$ac_ext >&5 |
44493 | 15122 ac_header_preproc=no |
40056 | 15123 fi |
15124 rm -f conftest.err conftest.$ac_ext | |
44493 | 15125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15126 echo "${ECHO_T}$ac_header_preproc" >&6 | |
15127 | |
15128 # So? What about this header? | |
15129 case $ac_header_compiler:$ac_header_preproc in | |
15130 yes:no ) | |
15131 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15132 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15133 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 | |
15134 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};; | |
15135 no:yes ) | |
15136 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 | |
15137 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} | |
15138 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 | |
15139 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} | |
15140 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 | |
15141 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};; | |
15142 esac | |
15143 echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
15144 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 | |
15145 if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
15146 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15147 else | |
15148 ac_cv_header_netinet_in_h=$ac_header_preproc | |
15149 fi | |
15150 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 | |
40056 | 15151 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
44493 | 15152 |
15153 fi | |
40056 | 15154 if test $ac_cv_header_netinet_in_h = yes; then |
25897 | 15155 : |
15156 else | |
40056 | 15157 ok_so_far=no |
25897 | 15158 fi |
15159 | |
44493 | 15160 |
25897 | 15161 fi |
15162 if test $ok_so_far = yes; then | |
44493 | 15163 if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
15164 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
40056 | 15165 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
15166 if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
15167 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 15168 fi |
15169 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 | |
15170 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 | |
15171 else | |
15172 # Is the header compilable? | |
15173 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 | |
15174 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 | |
15175 cat >conftest.$ac_ext <<_ACEOF | |
15176 #line $LINENO "configure" | |
15177 #include "confdefs.h" | |
15178 $ac_includes_default | |
15179 #include <arpa/inet.h> | |
15180 _ACEOF | |
15181 rm -f conftest.$ac_objext | |
15182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15183 (eval $ac_compile) 2>&5 | |
15184 ac_status=$? | |
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15186 (exit $ac_status); } && | |
15187 { ac_try='test -s conftest.$ac_objext' | |
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15189 (eval $ac_try) 2>&5 | |
15190 ac_status=$? | |
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15192 (exit $ac_status); }; }; then | |
15193 ac_header_compiler=yes | |
15194 else | |
15195 echo "$as_me: failed program was:" >&5 | |
15196 cat conftest.$ac_ext >&5 | |
15197 ac_header_compiler=no | |
15198 fi | |
15199 rm -f conftest.$ac_objext conftest.$ac_ext | |
15200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15201 echo "${ECHO_T}$ac_header_compiler" >&6 | |
15202 | |
15203 # Is the header present? | |
15204 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 | |
15205 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 | |
15206 cat >conftest.$ac_ext <<_ACEOF | |
15207 #line $LINENO "configure" | |
25897 | 15208 #include "confdefs.h" |
15209 #include <arpa/inet.h> | |
40056 | 15210 _ACEOF |
44493 | 15211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 15212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15213 ac_status=$? | |
15214 egrep -v '^ *\+' conftest.er1 >conftest.err | |
15215 rm -f conftest.er1 | |
15216 cat conftest.err >&5 | |
44493 | 15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 15218 (exit $ac_status); } >/dev/null; then |
15219 if test -s conftest.err; then | |
15220 ac_cpp_err=$ac_c_preproc_warn_flag | |
15221 else | |
15222 ac_cpp_err= | |
15223 fi | |
15224 else | |
15225 ac_cpp_err=yes | |
15226 fi | |
15227 if test -z "$ac_cpp_err"; then | |
44493 | 15228 ac_header_preproc=yes |
40056 | 15229 else |
15230 echo "$as_me: failed program was:" >&5 | |
25897 | 15231 cat conftest.$ac_ext >&5 |
44493 | 15232 ac_header_preproc=no |
40056 | 15233 fi |
15234 rm -f conftest.err conftest.$ac_ext | |
44493 | 15235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15236 echo "${ECHO_T}$ac_header_preproc" >&6 | |
15237 | |
15238 # So? What about this header? | |
15239 case $ac_header_compiler:$ac_header_preproc in | |
15240 yes:no ) | |
15241 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15242 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15243 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 | |
15244 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};; | |
15245 no:yes ) | |
15246 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 | |
15247 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} | |
15248 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 | |
15249 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} | |
15250 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 | |
15251 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};; | |
15252 esac | |
15253 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
15254 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 | |
15255 if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
15256 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15257 else | |
15258 ac_cv_header_arpa_inet_h=$ac_header_preproc | |
15259 fi | |
15260 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 | |
40056 | 15261 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
44493 | 15262 |
15263 fi | |
40056 | 15264 if test $ac_cv_header_arpa_inet_h = yes; then |
25897 | 15265 : |
15266 else | |
40056 | 15267 ok_so_far=no |
25897 | 15268 fi |
15269 | |
44493 | 15270 |
25897 | 15271 fi |
15272 if test $ok_so_far = yes; then | |
44569 | 15273 |
15274 cat >>confdefs.h <<\_ACEOF | |
25897 | 15275 #define HAVE_INET_SOCKETS 1 |
44493 | 15276 _ACEOF |
25897 | 15277 |
15278 fi | |
15279 | |
15280 if test -f /usr/lpp/X11/bin/smt.exp; then | |
44569 | 15281 |
15282 cat >>confdefs.h <<\_ACEOF | |
25897 | 15283 #define HAVE_AIX_SMT_EXP 1 |
44493 | 15284 _ACEOF |
15285 | |
15286 fi | |
15287 | |
15288 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 | |
40056 | 15289 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
|
15290 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
44493 | 15291 echo "$as_me:$LINENO: result: yes" >&5 |
40056 | 15292 echo "${ECHO_T}yes" >&6 |
44569 | 15293 |
15294 cat >>confdefs.h <<\_ACEOF | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
15295 #define HAVE_DEV_PTMX 1 |
44493 | 15296 _ACEOF |
15297 | |
15298 else | |
15299 echo "$as_me:$LINENO: result: no" >&5 | |
40056 | 15300 echo "${ECHO_T}no" >&6 |
15301 fi | |
15302 | |
44493 | 15303 echo "$as_me:$LINENO: checking for pid_t" >&5 |
40056 | 15304 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
15305 if test "${ac_cv_type_pid_t+set}" = set; then | |
15306 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15307 else | |
15308 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 15309 #line $LINENO "configure" |
40056 | 15310 #include "confdefs.h" |
15311 $ac_includes_default | |
44493 | 15312 #ifdef F77_DUMMY_MAIN |
15313 # ifdef __cplusplus | |
15314 extern "C" | |
15315 # endif | |
15316 int F77_DUMMY_MAIN() { return 1; } | |
15317 #endif | |
40056 | 15318 int |
15319 main () | |
15320 { | |
15321 if ((pid_t *) 0) | |
15322 return 0; | |
15323 if (sizeof (pid_t)) | |
15324 return 0; | |
15325 ; | |
15326 return 0; | |
15327 } | |
15328 _ACEOF | |
15329 rm -f conftest.$ac_objext | |
44493 | 15330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15331 (eval $ac_compile) 2>&5 | |
15332 ac_status=$? | |
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15334 (exit $ac_status); } && | |
15335 { ac_try='test -s conftest.$ac_objext' | |
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15337 (eval $ac_try) 2>&5 | |
15338 ac_status=$? | |
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 15340 (exit $ac_status); }; }; then |
27675 | 15341 ac_cv_type_pid_t=yes |
15342 else | |
40056 | 15343 echo "$as_me: failed program was:" >&5 |
15344 cat conftest.$ac_ext >&5 | |
15345 ac_cv_type_pid_t=no | |
15346 fi | |
15347 rm -f conftest.$ac_objext conftest.$ac_ext | |
15348 fi | |
44493 | 15349 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
40056 | 15350 echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
15351 if test $ac_cv_type_pid_t = yes; then | |
15352 : | |
15353 else | |
15354 | |
44493 | 15355 cat >>confdefs.h <<_ACEOF |
27675 | 15356 #define pid_t int |
44493 | 15357 _ACEOF |
15358 | |
15359 fi | |
15360 | |
15361 | |
27675 | 15362 |
40056 | 15363 for ac_header in unistd.h vfork.h |
15364 do | |
15365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
44493 | 15366 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15367 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40056 | 15368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15369 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15370 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 15371 fi |
15372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15374 else | |
15375 # Is the header compilable? | |
15376 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15378 cat >conftest.$ac_ext <<_ACEOF | |
15379 #line $LINENO "configure" | |
15380 #include "confdefs.h" | |
15381 $ac_includes_default | |
15382 #include <$ac_header> | |
15383 _ACEOF | |
15384 rm -f conftest.$ac_objext | |
15385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15386 (eval $ac_compile) 2>&5 | |
15387 ac_status=$? | |
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15389 (exit $ac_status); } && | |
15390 { ac_try='test -s conftest.$ac_objext' | |
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15392 (eval $ac_try) 2>&5 | |
15393 ac_status=$? | |
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15395 (exit $ac_status); }; }; then | |
15396 ac_header_compiler=yes | |
15397 else | |
15398 echo "$as_me: failed program was:" >&5 | |
15399 cat conftest.$ac_ext >&5 | |
15400 ac_header_compiler=no | |
15401 fi | |
15402 rm -f conftest.$ac_objext conftest.$ac_ext | |
15403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15404 echo "${ECHO_T}$ac_header_compiler" >&6 | |
15405 | |
15406 # Is the header present? | |
15407 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15409 cat >conftest.$ac_ext <<_ACEOF | |
15410 #line $LINENO "configure" | |
40056 | 15411 #include "confdefs.h" |
15412 #include <$ac_header> | |
15413 _ACEOF | |
44493 | 15414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40056 | 15415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
15416 ac_status=$? | |
15417 egrep -v '^ *\+' conftest.er1 >conftest.err | |
15418 rm -f conftest.er1 | |
15419 cat conftest.err >&5 | |
44493 | 15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40056 | 15421 (exit $ac_status); } >/dev/null; then |
15422 if test -s conftest.err; then | |
15423 ac_cpp_err=$ac_c_preproc_warn_flag | |
15424 else | |
15425 ac_cpp_err= | |
15426 fi | |
15427 else | |
15428 ac_cpp_err=yes | |
15429 fi | |
15430 if test -z "$ac_cpp_err"; then | |
44493 | 15431 ac_header_preproc=yes |
40056 | 15432 else |
15433 echo "$as_me: failed program was:" >&5 | |
27675 | 15434 cat conftest.$ac_ext >&5 |
44493 | 15435 ac_header_preproc=no |
40056 | 15436 fi |
15437 rm -f conftest.err conftest.$ac_ext | |
44493 | 15438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15439 echo "${ECHO_T}$ac_header_preproc" >&6 | |
15440 | |
15441 # So? What about this header? | |
15442 case $ac_header_compiler:$ac_header_preproc in | |
15443 yes:no ) | |
15444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15448 no:yes ) | |
15449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
15455 esac | |
15456 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15458 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15459 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15460 else | |
15461 eval "$as_ac_Header=$ac_header_preproc" | |
15462 fi | |
15463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40056 | 15464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 15465 |
15466 fi | |
40056 | 15467 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 15468 cat >>confdefs.h <<_ACEOF |
40056 | 15469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 15470 _ACEOF |
15471 | |
15472 fi | |
15473 | |
15474 done | |
15475 | |
15476 | |
40056 | 15477 |
15478 for ac_func in fork vfork | |
15479 do | |
15480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44493 | 15481 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
40056 | 15482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
15483 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15484 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15485 else | |
15486 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 15487 #line $LINENO "configure" |
27675 | 15488 #include "confdefs.h" |
15489 /* System header to define __stub macros and hopefully few prototypes, | |
40056 | 15490 which can conflict with char $ac_func (); below. */ |
27675 | 15491 #include <assert.h> |
15492 /* Override any gcc2 internal prototype to avoid an error. */ | |
40056 | 15493 #ifdef __cplusplus |
15494 extern "C" | |
15495 #endif | |
27675 | 15496 /* We use char because int might match the return type of a gcc2 |
40056 | 15497 builtin and then its argument prototype would still apply. */ |
15498 char $ac_func (); | |
15499 char (*f) (); | |
15500 | |
44493 | 15501 #ifdef F77_DUMMY_MAIN |
15502 # ifdef __cplusplus | |
15503 extern "C" | |
15504 # endif | |
15505 int F77_DUMMY_MAIN() { return 1; } | |
15506 #endif | |
40056 | 15507 int |
15508 main () | |
15509 { | |
27675 | 15510 /* The GNU C library defines this for functions which it implements |
15511 to always fail with ENOSYS. Some functions are actually named | |
15512 something starting with __ and the normal name is an alias. */ | |
40056 | 15513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
27675 | 15514 choke me |
15515 #else | |
40056 | 15516 f = $ac_func; |
15517 #endif | |
15518 | |
15519 ; | |
15520 return 0; | |
15521 } | |
15522 _ACEOF | |
15523 rm -f conftest.$ac_objext conftest$ac_exeext | |
44493 | 15524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15525 (eval $ac_link) 2>&5 | |
15526 ac_status=$? | |
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15528 (exit $ac_status); } && | |
15529 { ac_try='test -s conftest$ac_exeext' | |
15530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15531 (eval $ac_try) 2>&5 | |
15532 ac_status=$? | |
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 15534 (exit $ac_status); }; }; then |
15535 eval "$as_ac_var=yes" | |
15536 else | |
15537 echo "$as_me: failed program was:" >&5 | |
15538 cat conftest.$ac_ext >&5 | |
15539 eval "$as_ac_var=no" | |
15540 fi | |
15541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15542 fi | |
44493 | 15543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
40056 | 15544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
15545 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44493 | 15546 cat >>confdefs.h <<_ACEOF |
40056 | 15547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
44493 | 15548 _ACEOF |
40056 | 15549 |
15550 fi | |
15551 done | |
15552 | |
15553 ac_cv_func_fork_works=$ac_cv_func_fork | |
15554 if test "x$ac_cv_func_fork" = xyes; then | |
44493 | 15555 echo "$as_me:$LINENO: checking for working fork" >&5 |
40056 | 15556 echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
15557 if test "${ac_cv_func_fork_works+set}" = set; then | |
15558 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15559 else | |
15560 if test "$cross_compiling" = yes; then | |
15561 ac_cv_func_fork_works=cross | |
15562 else | |
15563 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 15564 /* By Ruediger Kuhlmann. */ |
40056 | 15565 #include <sys/types.h> |
15566 #if HAVE_UNISTD_H | |
15567 # include <unistd.h> | |
15568 #endif | |
15569 /* Some systems only have a dummy stub for fork() */ | |
15570 int main () | |
15571 { | |
15572 if (fork() < 0) | |
15573 exit (1); | |
15574 exit (0); | |
15575 } | |
15576 _ACEOF | |
15577 rm -f conftest$ac_exeext | |
44493 | 15578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15579 (eval $ac_link) 2>&5 | |
15580 ac_status=$? | |
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 15582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
44493 | 15583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15584 (eval $ac_try) 2>&5 | |
15585 ac_status=$? | |
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 15587 (exit $ac_status); }; }; then |
15588 ac_cv_func_fork_works=yes | |
15589 else | |
15590 echo "$as_me: program exited with status $ac_status" >&5 | |
15591 echo "$as_me: failed program was:" >&5 | |
15592 cat conftest.$ac_ext >&5 | |
44493 | 15593 ( exit $ac_status ) |
40056 | 15594 ac_cv_func_fork_works=no |
15595 fi | |
15596 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15597 fi | |
15598 fi | |
44493 | 15599 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
40056 | 15600 echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
15601 | |
15602 fi | |
15603 if test "x$ac_cv_func_fork_works" = xcross; then | |
15604 case $host in | |
15605 *-*-amigaos* | *-*-msdosdjgpp*) | |
15606 # Override, as these systems have only a dummy fork() stub | |
15607 ac_cv_func_fork_works=no | |
15608 ;; | |
15609 *) | |
15610 ac_cv_func_fork_works=yes | |
15611 ;; | |
15612 esac | |
44493 | 15613 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
15614 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
40056 | 15615 fi |
27675 | 15616 ac_cv_func_vfork_works=$ac_cv_func_vfork |
40056 | 15617 if test "x$ac_cv_func_vfork" = xyes; then |
44493 | 15618 echo "$as_me:$LINENO: checking for working vfork" >&5 |
40056 | 15619 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
15620 if test "${ac_cv_func_vfork_works+set}" = set; then | |
15621 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15622 else | |
15623 if test "$cross_compiling" = yes; then | |
15624 ac_cv_func_vfork_works=cross | |
15625 else | |
15626 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 15627 #line $LINENO "configure" |
27675 | 15628 #include "confdefs.h" |
15629 /* Thanks to Paul Eggert for this test. */ | |
15630 #include <stdio.h> | |
15631 #include <sys/types.h> | |
15632 #include <sys/stat.h> | |
40056 | 15633 #if HAVE_UNISTD_H |
15634 # include <unistd.h> | |
15635 #endif | |
15636 #if HAVE_VFORK_H | |
15637 # include <vfork.h> | |
27675 | 15638 #endif |
15639 /* On some sparc systems, changes by the child to local and incoming | |
40056 | 15640 argument registers are propagated back to the parent. The compiler |
15641 is told about this with #include <vfork.h>, but some compilers | |
15642 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
15643 static variable whose address is put into a register that is | |
15644 clobbered by the vfork. */ | |
27675 | 15645 static |
15646 #ifdef __cplusplus | |
15647 sparc_address_test (int arg) | |
40056 | 15648 # else |
27675 | 15649 sparc_address_test (arg) int arg; |
15650 #endif | |
15651 { | |
15652 static pid_t child; | |
15653 if (!child) { | |
15654 child = vfork (); | |
15655 if (child < 0) { | |
15656 perror ("vfork"); | |
15657 _exit(2); | |
15658 } | |
15659 if (!child) { | |
15660 arg = getpid(); | |
15661 write(-1, "", 0); | |
15662 _exit (arg); | |
15663 } | |
15664 } | |
15665 } | |
40056 | 15666 |
15667 int | |
15668 main () | |
15669 { | |
27675 | 15670 pid_t parent = getpid (); |
15671 pid_t child; | |
15672 | |
15673 sparc_address_test (); | |
15674 | |
15675 child = vfork (); | |
15676 | |
15677 if (child == 0) { | |
40056 | 15678 /* Here is another test for sparc vfork register problems. This |
15679 test uses lots of local variables, at least as many local | |
15680 variables as main has allocated so far including compiler | |
15681 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
15682 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
15683 reuse the register of parent for one of the local variables, | |
15684 since it will think that parent can't possibly be used any more | |
15685 in this routine. Assigning to the local variable will thus | |
15686 munge parent in the parent process. */ | |
27675 | 15687 pid_t |
15688 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
15689 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
15690 /* Convince the compiler that p..p7 are live; otherwise, it might | |
15691 use the same hardware register for all 8 local variables. */ | |
15692 if (p != p1 || p != p2 || p != p3 || p != p4 | |
15693 || p != p5 || p != p6 || p != p7) | |
15694 _exit(1); | |
15695 | |
40056 | 15696 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
15697 from child file descriptors. If the child closes a descriptor | |
15698 before it execs or exits, this munges the parent's descriptor | |
15699 as well. Test for this by closing stdout in the child. */ | |
27675 | 15700 _exit(close(fileno(stdout)) != 0); |
15701 } else { | |
15702 int status; | |
15703 struct stat st; | |
15704 | |
15705 while (wait(&status) != child) | |
15706 ; | |
15707 exit( | |
15708 /* Was there some problem with vforking? */ | |
15709 child < 0 | |
15710 | |
15711 /* Did the child fail? (This shouldn't happen.) */ | |
15712 || status | |
15713 | |
15714 /* Did the vfork/compiler bug occur? */ | |
15715 || parent != getpid() | |
15716 | |
15717 /* Did the file descriptor bug occur? */ | |
15718 || fstat(fileno(stdout), &st) != 0 | |
15719 ); | |
15720 } | |
15721 } | |
40056 | 15722 _ACEOF |
15723 rm -f conftest$ac_exeext | |
44493 | 15724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
15725 (eval $ac_link) 2>&5 | |
15726 ac_status=$? | |
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 15728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
44493 | 15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15730 (eval $ac_try) 2>&5 | |
15731 ac_status=$? | |
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 15733 (exit $ac_status); }; }; then |
27675 | 15734 ac_cv_func_vfork_works=yes |
15735 else | |
40056 | 15736 echo "$as_me: program exited with status $ac_status" >&5 |
15737 echo "$as_me: failed program was:" >&5 | |
15738 cat conftest.$ac_ext >&5 | |
44493 | 15739 ( exit $ac_status ) |
40056 | 15740 ac_cv_func_vfork_works=no |
15741 fi | |
15742 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15743 fi | |
15744 fi | |
44493 | 15745 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
40056 | 15746 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
15747 | |
15748 fi; | |
15749 if test "x$ac_cv_func_fork_works" = xcross; then | |
15750 ac_cv_func_vfork_works=ac_cv_func_vfork | |
44493 | 15751 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
15752 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
40056 | 15753 fi |
15754 | |
15755 if test "x$ac_cv_func_vfork_works" = xyes; then | |
15756 | |
44493 | 15757 cat >>confdefs.h <<\_ACEOF |
40056 | 15758 #define HAVE_WORKING_VFORK 1 |
44493 | 15759 _ACEOF |
15760 | |
15761 else | |
15762 | |
15763 cat >>confdefs.h <<\_ACEOF | |
27675 | 15764 #define vfork fork |
44493 | 15765 _ACEOF |
27675 | 15766 |
15767 fi | |
40056 | 15768 if test "x$ac_cv_func_fork_works" = xyes; then |
15769 | |
44493 | 15770 cat >>confdefs.h <<\_ACEOF |
40056 | 15771 #define HAVE_WORKING_FORK 1 |
44493 | 15772 _ACEOF |
15773 | |
15774 fi | |
15775 | |
27675 | 15776 |
30395 | 15777 # Fixme: This should be replaced when we have autoconf 2.14. |
44493 | 15778 echo "$as_me:$LINENO: checking for size_t" >&5 |
40056 | 15779 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
15780 if test "${ac_cv_type_size_t+set}" = set; then | |
15781 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15782 else | |
15783 cat >conftest.$ac_ext <<_ACEOF | |
44493 | 15784 #line $LINENO "configure" |
40056 | 15785 #include "confdefs.h" |
15786 $ac_includes_default | |
44493 | 15787 #ifdef F77_DUMMY_MAIN |
15788 # ifdef __cplusplus | |
15789 extern "C" | |
15790 # endif | |
15791 int F77_DUMMY_MAIN() { return 1; } | |
15792 #endif | |
40056 | 15793 int |
15794 main () | |
15795 { | |
15796 if ((size_t *) 0) | |
15797 return 0; | |
15798 if (sizeof (size_t)) | |
15799 return 0; | |
15800 ; | |
15801 return 0; | |
15802 } | |
15803 _ACEOF | |
15804 rm -f conftest.$ac_objext | |
44493 | 15805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15806 (eval $ac_compile) 2>&5 | |
15807 ac_status=$? | |
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15809 (exit $ac_status); } && | |
15810 { ac_try='test -s conftest.$ac_objext' | |
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15812 (eval $ac_try) 2>&5 | |
15813 ac_status=$? | |
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40056 | 15815 (exit $ac_status); }; }; then |
30395 | 15816 ac_cv_type_size_t=yes |
15817 else | |
40056 | 15818 echo "$as_me: failed program was:" >&5 |
15819 cat conftest.$ac_ext >&5 | |
15820 ac_cv_type_size_t=no | |
15821 fi | |
15822 rm -f conftest.$ac_objext conftest.$ac_ext | |
15823 fi | |
44493 | 15824 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
40056 | 15825 echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
15826 if test $ac_cv_type_size_t = yes; then | |
15827 : | |
15828 else | |
15829 | |
44493 | 15830 cat >>confdefs.h <<_ACEOF |
30395 | 15831 #define size_t unsigned |
44493 | 15832 _ACEOF |
15833 | |
15834 fi | |
15835 | |
30395 | 15836 |
25897 | 15837 # Set up the CFLAGS for real compilation, so we can substitute it. |
15838 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
|
15839 CPPFLAGS="$REAL_CPPFLAGS" |
25897 | 15840 |
15841 #### Find out which version of Emacs this is. | |
15842 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
15843 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
15844 if test x"${version}" = x; then | |
44493 | 15845 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 |
40056 | 15846 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} |
15847 { (exit 1); exit 1; }; } | |
25897 | 15848 fi |
15849 | |
15850 ### Specify what sort of things we'll be editing into Makefile and config.h. | |
15851 ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
15852 | |
44493 | 15853 |
15854 | |
15855 | |
15856 | |
15857 | |
15858 | |
15859 | |
15860 | |
15861 | |
15862 | |
15863 | |
15864 | |
15865 | |
15866 | |
15867 | |
15868 | |
15869 | |
15870 | |
15871 | |
15872 | |
15873 | |
15874 | |
15875 | |
15876 | |
15877 | |
15878 | |
15879 | |
15880 | |
15881 | |
15882 | |
15883 | |
15884 | |
44569 | 15885 |
44493 | 15886 cat >>confdefs.h <<_ACEOF |
25897 | 15887 #define EMACS_CONFIGURATION "${canonical}" |
44493 | 15888 _ACEOF |
15889 | |
44569 | 15890 |
44493 | 15891 cat >>confdefs.h <<_ACEOF |
25897 | 15892 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" |
44493 | 15893 _ACEOF |
15894 | |
44569 | 15895 |
44493 | 15896 cat >>confdefs.h <<_ACEOF |
25897 | 15897 #define config_machfile "${machfile}" |
44493 | 15898 _ACEOF |
15899 | |
44569 | 15900 |
44493 | 15901 cat >>confdefs.h <<_ACEOF |
25897 | 15902 #define config_opsysfile "${opsysfile}" |
44493 | 15903 _ACEOF |
15904 | |
44569 | 15905 |
44493 | 15906 cat >>confdefs.h <<_ACEOF |
25897 | 15907 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} |
44493 | 15908 _ACEOF |
15909 | |
44569 | 15910 |
44493 | 15911 cat >>confdefs.h <<_ACEOF |
25897 | 15912 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} |
44493 | 15913 _ACEOF |
15914 | |
44569 | 15915 |
44493 | 15916 cat >>confdefs.h <<_ACEOF |
25897 | 15917 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} |
44493 | 15918 _ACEOF |
15919 | |
44569 | 15920 |
44493 | 15921 cat >>confdefs.h <<_ACEOF |
25897 | 15922 #define UNEXEC_SRC ${UNEXEC_SRC} |
44493 | 15923 _ACEOF |
15924 | |
25897 | 15925 |
15926 if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
44569 | 15927 |
15928 cat >>confdefs.h <<\_ACEOF | |
25897 | 15929 #define HAVE_X_WINDOWS 1 |
44493 | 15930 _ACEOF |
25897 | 15931 |
15932 fi | |
15933 if test "${USE_X_TOOLKIT}" != "none" ; then | |
44569 | 15934 |
15935 cat >>confdefs.h <<\_ACEOF | |
25897 | 15936 #define USE_X_TOOLKIT 1 |
44493 | 15937 _ACEOF |
25897 | 15938 |
15939 fi | |
15940 if test "${HAVE_X11}" = "yes" ; then | |
44569 | 15941 |
15942 cat >>confdefs.h <<\_ACEOF | |
25897 | 15943 #define HAVE_X11 1 |
44493 | 15944 _ACEOF |
25897 | 15945 |
15946 fi | |
15947 if test "${HAVE_XFREE386}" = "yes" ; then | |
44569 | 15948 |
15949 cat >>confdefs.h <<\_ACEOF | |
25897 | 15950 #define HAVE_XFREE386 1 |
44493 | 15951 _ACEOF |
25897 | 15952 |
15953 fi | |
15954 if test "${HAVE_MENUS}" = "yes" ; then | |
44569 | 15955 |
15956 cat >>confdefs.h <<\_ACEOF | |
25897 | 15957 #define HAVE_MENUS 1 |
44493 | 15958 _ACEOF |
25897 | 15959 |
15960 fi | |
15961 if test "${GNU_MALLOC}" = "yes" ; then | |
44569 | 15962 |
15963 cat >>confdefs.h <<\_ACEOF | |
25897 | 15964 #define GNU_MALLOC 1 |
44493 | 15965 _ACEOF |
25897 | 15966 |
15967 fi | |
15968 if test "${REL_ALLOC}" = "yes" ; then | |
44569 | 15969 |
15970 cat >>confdefs.h <<\_ACEOF | |
25897 | 15971 #define REL_ALLOC 1 |
44493 | 15972 _ACEOF |
15973 | |
15974 fi | |
15975 | |
25897 | 15976 |
40777 | 15977 for ac_header in nlist.h |
15978 do | |
15979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
44493 | 15980 if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15981 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
40777 | 15982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
15983 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15984 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44493 | 15985 fi |
15986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15988 else | |
15989 # Is the header compilable? | |
15990 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15992 cat >conftest.$ac_ext <<_ACEOF | |
15993 #line $LINENO "configure" | |
15994 #include "confdefs.h" | |
15995 $ac_includes_default | |
15996 #include <$ac_header> | |
15997 _ACEOF | |
15998 rm -f conftest.$ac_objext | |
15999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16000 (eval $ac_compile) 2>&5 | |
16001 ac_status=$? | |
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16003 (exit $ac_status); } && | |
16004 { ac_try='test -s conftest.$ac_objext' | |
16005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16006 (eval $ac_try) 2>&5 | |
16007 ac_status=$? | |
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16009 (exit $ac_status); }; }; then | |
16010 ac_header_compiler=yes | |
16011 else | |
16012 echo "$as_me: failed program was:" >&5 | |
16013 cat conftest.$ac_ext >&5 | |
16014 ac_header_compiler=no | |
16015 fi | |
16016 rm -f conftest.$ac_objext conftest.$ac_ext | |
16017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16018 echo "${ECHO_T}$ac_header_compiler" >&6 | |
16019 | |
16020 # Is the header present? | |
16021 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16023 cat >conftest.$ac_ext <<_ACEOF | |
16024 #line $LINENO "configure" | |
40777 | 16025 #include "confdefs.h" |
16026 #include <$ac_header> | |
16027 _ACEOF | |
44493 | 16028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
40777 | 16029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
16030 ac_status=$? | |
16031 egrep -v '^ *\+' conftest.er1 >conftest.err | |
16032 rm -f conftest.er1 | |
16033 cat conftest.err >&5 | |
44493 | 16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40777 | 16035 (exit $ac_status); } >/dev/null; then |
16036 if test -s conftest.err; then | |
16037 ac_cpp_err=$ac_c_preproc_warn_flag | |
16038 else | |
16039 ac_cpp_err= | |
16040 fi | |
16041 else | |
16042 ac_cpp_err=yes | |
16043 fi | |
16044 if test -z "$ac_cpp_err"; then | |
44493 | 16045 ac_header_preproc=yes |
40777 | 16046 else |
16047 echo "$as_me: failed program was:" >&5 | |
16048 cat conftest.$ac_ext >&5 | |
44493 | 16049 ac_header_preproc=no |
40777 | 16050 fi |
16051 rm -f conftest.err conftest.$ac_ext | |
44493 | 16052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16053 echo "${ECHO_T}$ac_header_preproc" >&6 | |
16054 | |
16055 # So? What about this header? | |
16056 case $ac_header_compiler:$ac_header_preproc in | |
16057 yes:no ) | |
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
16062 no:yes ) | |
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
16069 esac | |
16070 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16072 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16073 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16074 else | |
16075 eval "$as_ac_Header=$ac_header_preproc" | |
16076 fi | |
16077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
40777 | 16078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
44493 | 16079 |
16080 fi | |
40777 | 16081 if test `eval echo '${'$as_ac_Header'}'` = yes; then |
44493 | 16082 cat >>confdefs.h <<_ACEOF |
40777 | 16083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
44493 | 16084 _ACEOF |
16085 | |
16086 cat >>confdefs.h <<\_ACEOF | |
40777 | 16087 #define NLIST_STRUCT 1 |
44493 | 16088 _ACEOF |
16089 | |
16090 fi | |
16091 | |
16092 done | |
16093 | |
40777 | 16094 |
44569 | 16095 |
16096 | |
16097 | |
16098 | |
25897 | 16099 #### Report on what we decided to do. |
16100 echo " | |
16101 Configured for \`${canonical}'. | |
16102 | |
16103 Where should the build process find the source code? ${srcdir} | |
16104 What operating system and machine description files should Emacs use? | |
16105 \`${opsysfile}' and \`${machfile}' | |
16106 What compiler should emacs be built with? ${CC} ${CFLAGS} | |
16107 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
31417 | 16108 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
31607 | 16109 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
25897 | 16110 What window system should Emacs use? ${window_system} |
44493 | 16111 What toolkit should Emacs use? ${USE_X_TOOLKIT} |
16112 Should Emacs use a shared game state directory? ${gamedir}" | |
25897 | 16113 |
16114 if test -n "${x_includes}"; then | |
16115 echo " Where do we find X Windows header files? ${x_includes}" | |
16116 else | |
16117 echo " Where do we find X Windows header files? Standard dirs" | |
16118 fi | |
16119 if test -n "${x_libraries}"; then | |
16120 echo " Where do we find X Windows libraries? ${x_libraries}" | |
16121 else | |
16122 echo " Where do we find X Windows libraries? Standard dirs" | |
16123 fi | |
16124 | |
16125 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
16126 echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
16127 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
16128 echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
16129 echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
16130 echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
16131 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
16132 echo | |
16133 | |
16134 # Remove any trailing slashes in these variables. | |
16135 test "${prefix}" != NONE && | |
16136 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
16137 test "${exec_prefix}" != NONE && | |
16138 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
16139 | |
36354 | 16140 ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
16141 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
16142 ## from Makefile.c can correctly provide the arg `-traditional' to the | |
16143 ## C preprocessor. | |
16144 | |
40056 | 16145 cat >conftest.$ac_ext <<_ACEOF |
44493 | 16146 #line $LINENO "configure" |
36354 | 16147 #include "confdefs.h" |
16148 yes..yes | |
40056 | 16149 _ACEOF |
36354 | 16150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
16151 egrep "yes..yes" >/dev/null 2>&1; then | |
16152 CPP_NEED_TRADITIONAL=no | |
16153 else | |
16154 CPP_NEED_TRADITIONAL=yes | |
16155 fi | |
16156 rm -f conftest* | |
16157 | |
44493 | 16158 |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16159 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" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16160 ac_config_commands="$ac_config_commands default" |
40056 | 16161 cat >confcache <<\_ACEOF |
25897 | 16162 # This file is a shell script that caches the results of configure |
16163 # tests run on this system so they can be shared between configure | |
40056 | 16164 # scripts and configure runs, see configure's option --config-cache. |
16165 # It is not useful on other systems. If it contains results you don't | |
16166 # want to keep, you may remove or edit it. | |
16167 # | |
16168 # config.status only pays attention to the cache file if you give it | |
16169 # the --recheck option to rerun configure. | |
25897 | 16170 # |
40056 | 16171 # `ac_cv_env_foo' variables (set or unset) will be overriden when |
16172 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16173 # following values. | |
16174 | |
16175 _ACEOF | |
16176 | |
25897 | 16177 # The following way of writing the cache mishandles newlines in values, |
16178 # but we know of no workaround that is simple, portable, and efficient. | |
16179 # So, don't put newlines in cache variables' values. | |
16180 # Ultrix sh set writes to stderr and can't be redirected directly, | |
16181 # and sets the high bit in the cache file unless we assign to the vars. | |
40056 | 16182 { |
16183 (set) 2>&1 | | |
16184 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
16185 *ac_space=\ *) | |
16186 # `set' does not quote correctly, so add quotes (double-quote | |
16187 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
16188 sed -n \ | |
16189 "s/'/'\\\\''/g; | |
16190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
16191 ;; | |
16192 *) | |
16193 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16194 sed -n \ | |
16195 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
16196 ;; | |
16197 esac; | |
16198 } | | |
16199 sed ' | |
16200 t clear | |
16201 : clear | |
16202 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
16203 t end | |
16204 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16205 : end' >>confcache | |
16206 if cmp -s $cache_file confcache; then :; else | |
25897 | 16207 if test -w $cache_file; then |
40056 | 16208 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
16209 cat confcache >$cache_file | |
25897 | 16210 else |
16211 echo "not updating unwritable cache $cache_file" | |
16212 fi | |
16213 fi | |
16214 rm -f confcache | |
16215 | |
16216 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
16217 # Let make expand exec_prefix. | |
16218 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16219 | |
40056 | 16220 # VPATH may cause trouble with some makes, so we remove $(srcdir), |
16221 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
16222 # trailing colons and then remove the whole line if VPATH becomes empty | |
16223 # (actually we leave an empty line to preserve line numbers). | |
25897 | 16224 if test "x$srcdir" = x.; then |
40056 | 16225 ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
16226 s/:*\$(srcdir):*/:/; | |
16227 s/:*\${srcdir}:*/:/; | |
16228 s/:*@srcdir@:*/:/; | |
16229 s/^\([^=]*=[ ]*\):*/\1/; | |
16230 s/:*$//; | |
16231 s/^[^=]*=[ ]*$//; | |
16232 }' | |
16233 fi | |
25897 | 16234 |
16235 DEFS=-DHAVE_CONFIG_H | |
16236 | |
44493 | 16237 |
25897 | 16238 : ${CONFIG_STATUS=./config.status} |
40056 | 16239 ac_clean_files_save=$ac_clean_files |
16240 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
44493 | 16241 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
40056 | 16242 echo "$as_me: creating $CONFIG_STATUS" >&6;} |
16243 cat >$CONFIG_STATUS <<_ACEOF | |
16244 #! $SHELL | |
44493 | 16245 # Generated by $as_me. |
25897 | 16246 # Run this file to recreate the current configuration. |
16247 # Compiler output produced by configure, useful for debugging | |
40056 | 16248 # configure, is in config.log if it exists. |
16249 | |
16250 debug=false | |
16251 SHELL=\${CONFIG_SHELL-$SHELL} | |
16252 _ACEOF | |
16253 | |
16254 cat >>$CONFIG_STATUS <<\_ACEOF | |
44493 | 16255 ## --------------------- ## |
16256 ## M4sh Initialization. ## | |
16257 ## --------------------- ## | |
16258 | |
40056 | 16259 # Be Bourne compatible |
16260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
16261 emulate sh | |
16262 NULLCMD=: | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16264 # is contrary to our usage. Disable this feature. |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16265 alias -g '${1+"$@"}'='"$@"' |
40056 | 16266 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
16267 set -o posix | |
16268 fi | |
16269 | |
44493 | 16270 # NLS nuisances. |
16271 # Support unset when possible. | |
16272 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
16273 as_unset=unset | |
16274 else | |
16275 as_unset=false | |
16276 fi | |
16277 | |
16278 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
16279 { $as_unset LANG || test "${LANG+set}" != set; } || | |
16280 { LANG=C; export LANG; } | |
16281 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
16282 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
16283 { LC_ALL=C; export LC_ALL; } | |
16284 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
16285 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
16286 { LC_TIME=C; export LC_TIME; } | |
16287 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
16288 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
16289 { LC_CTYPE=C; export LC_CTYPE; } | |
16290 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
16291 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
16292 { LANGUAGE=C; export LANGUAGE; } | |
16293 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
16294 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
16295 { LC_COLLATE=C; export LC_COLLATE; } | |
16296 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
16297 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
16298 { LC_NUMERIC=C; export LC_NUMERIC; } | |
16299 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
16300 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
16301 { LC_MESSAGES=C; export LC_MESSAGES; } | |
16302 | |
16303 | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16304 # Required to use basename. |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16305 if expr a : '\(a\)' >/dev/null 2>&1; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16306 as_expr=expr |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16307 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16308 as_expr=false |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16309 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16310 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16311 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16312 as_basename=basename |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16313 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16314 as_basename=false |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16315 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16316 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16317 |
40056 | 16318 # Name of the executable. |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16319 as_me=`$as_basename "$0" || |
44493 | 16320 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
16321 X"$0" : 'X\(//\)$' \| \ | |
16322 X"$0" : 'X\(/\)$' \| \ | |
16323 . : '\(.\)' 2>/dev/null || | |
16324 echo X/"$0" | | |
16325 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
16326 /^X\/\(\/\/\)$/{ s//\1/; q; } | |
16327 /^X\/\(\/\).*/{ s//\1/; q; } | |
16328 s/.*/./; q'` | |
16329 | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16330 |
44493 | 16331 # PATH needs CR, and LINENO needs CR and PATH. |
16332 # Avoid depending upon Character Ranges. | |
16333 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16334 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16335 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16336 as_cr_digits='0123456789' | |
16337 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16338 | |
16339 # The user is always right. | |
16340 if test "${PATH_SEPARATOR+set}" != set; then | |
16341 echo "#! /bin/sh" >conftest.sh | |
16342 echo "exit 0" >>conftest.sh | |
16343 chmod +x conftest.sh | |
16344 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
16345 PATH_SEPARATOR=';' | |
16346 else | |
16347 PATH_SEPARATOR=: | |
16348 fi | |
16349 rm -f conftest.sh | |
16350 fi | |
16351 | |
16352 | |
16353 as_lineno_1=$LINENO | |
16354 as_lineno_2=$LINENO | |
16355 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
16356 test "x$as_lineno_1" != "x$as_lineno_2" && | |
16357 test "x$as_lineno_3" = "x$as_lineno_2" || { | |
16358 # Find who we are. Look in the path if we contain no path at all | |
16359 # relative or not. | |
16360 case $0 in | |
16361 *[\\/]* ) as_myself=$0 ;; | |
16362 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16363 for as_dir in $PATH | |
16364 do | |
16365 IFS=$as_save_IFS | |
16366 test -z "$as_dir" && as_dir=. | |
16367 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16368 done | |
16369 | |
16370 ;; | |
16371 esac | |
16372 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16373 # in which case we are not to be found in the path. | |
16374 if test "x$as_myself" = x; then | |
16375 as_myself=$0 | |
16376 fi | |
16377 if test ! -f "$as_myself"; then | |
16378 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
16379 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
16380 { (exit 1); exit 1; }; } | |
16381 fi | |
16382 case $CONFIG_SHELL in | |
16383 '') | |
16384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16385 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
16386 do | |
16387 IFS=$as_save_IFS | |
16388 test -z "$as_dir" && as_dir=. | |
16389 for as_base in sh bash ksh sh5; do | |
16390 case $as_dir in | |
16391 /*) | |
16392 if ("$as_dir/$as_base" -c ' | |
16393 as_lineno_1=$LINENO | |
16394 as_lineno_2=$LINENO | |
16395 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
16396 test "x$as_lineno_1" != "x$as_lineno_2" && | |
16397 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16398 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16399 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
44493 | 16400 CONFIG_SHELL=$as_dir/$as_base |
16401 export CONFIG_SHELL | |
16402 exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
16403 fi;; | |
16404 esac | |
16405 done | |
16406 done | |
16407 ;; | |
16408 esac | |
16409 | |
16410 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
16411 # uniformly replaced by the line number. The first 'sed' inserts a | |
16412 # line-number line before each line; the second 'sed' does the real | |
16413 # work. The second script uses 'N' to pair each line-number line | |
16414 # with the numbered line, and appends trailing '-' during | |
16415 # substitution so that $LINENO is not a special case at line end. | |
16416 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
16417 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
16418 sed '=' <$as_myself | | |
16419 sed ' | |
16420 N | |
16421 s,$,-, | |
16422 : loop | |
16423 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
16424 t loop | |
16425 s,-$,, | |
16426 s,^['$as_cr_digits']*\n,, | |
16427 ' >$as_me.lineno && | |
16428 chmod +x $as_me.lineno || | |
16429 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
16430 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
16431 { (exit 1); exit 1; }; } | |
16432 | |
16433 # Don't try to exec as it changes $[0], causing all sort of problems | |
16434 # (the dirname of $[0] is not the place where we might find the | |
16435 # original and so on. Autoconf is especially sensible to this). | |
16436 . ./$as_me.lineno | |
16437 # Exit status is that of the last command. | |
16438 exit | |
16439 } | |
16440 | |
16441 | |
16442 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
16443 *c*,-n*) ECHO_N= ECHO_C=' | |
16444 ' ECHO_T=' ' ;; | |
16445 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
16446 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
16447 esac | |
40056 | 16448 |
16449 if expr a : '\(a\)' >/dev/null 2>&1; then | |
16450 as_expr=expr | |
16451 else | |
16452 as_expr=false | |
16453 fi | |
16454 | |
16455 rm -f conf$$ conf$$.exe conf$$.file | |
16456 echo >conf$$.file | |
16457 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16458 # We could just check for DJGPP; but this test a) works b) is more generic | |
16459 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
16460 if test -f conf$$.exe; then | |
16461 # Don't use ln at all; we don't have any links | |
16462 as_ln_s='cp -p' | |
16463 else | |
16464 as_ln_s='ln -s' | |
16465 fi | |
16466 elif ln conf$$.file conf$$ 2>/dev/null; then | |
16467 as_ln_s=ln | |
16468 else | |
16469 as_ln_s='cp -p' | |
16470 fi | |
16471 rm -f conf$$ conf$$.exe conf$$.file | |
16472 | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16473 if mkdir -p . 2>/dev/null; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16474 as_mkdir_p=: |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16475 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16476 as_mkdir_p=false |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16477 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16478 |
40056 | 16479 as_executable_p="test -f" |
16480 | |
44493 | 16481 # Sed expression to map a string onto a valid CPP name. |
16482 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
16483 | |
16484 # Sed expression to map a string onto a valid variable name. | |
16485 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
16486 | |
40056 | 16487 |
16488 # IFS | |
16489 # We need space, tab and new line, in precisely that order. | |
16490 as_nl=' | |
16491 ' | |
16492 IFS=" $as_nl" | |
16493 | |
16494 # CDPATH. | |
44493 | 16495 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
40056 | 16496 |
16497 exec 6>&1 | |
16498 | |
44493 | 16499 # Open the log real soon, to keep \$[0] and so on meaningful, and to |
16500 # report actual input values of CONFIG_FILES etc. instead of their | |
16501 # values after options handling. Logging --version etc. is OK. | |
16502 exec 5>>config.log | |
16503 { | |
16504 echo | |
16505 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16506 ## Running $as_me. ## | |
16507 _ASBOX | |
16508 } >&5 | |
16509 cat >&5 <<_CSEOF | |
16510 | |
16511 This file was extended by $as_me, which was | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16512 generated by GNU Autoconf 2.53a. Invocation command line was |
44493 | 16513 |
16514 CONFIG_FILES = $CONFIG_FILES | |
16515 CONFIG_HEADERS = $CONFIG_HEADERS | |
16516 CONFIG_LINKS = $CONFIG_LINKS | |
16517 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16518 $ $0 $@ | |
16519 | |
16520 _CSEOF | |
16521 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
16522 echo >&5 | |
40056 | 16523 _ACEOF |
16524 | |
16525 # Files that config.status was made for. | |
16526 if test -n "$ac_config_files"; then | |
16527 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
16528 fi | |
16529 | |
16530 if test -n "$ac_config_headers"; then | |
16531 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
16532 fi | |
16533 | |
16534 if test -n "$ac_config_links"; then | |
16535 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
16536 fi | |
16537 | |
16538 if test -n "$ac_config_commands"; then | |
16539 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
16540 fi | |
16541 | |
44493 | 16542 cat >>$CONFIG_STATUS <<\_ACEOF |
40056 | 16543 |
16544 ac_cs_usage="\ | |
16545 \`$as_me' instantiates files from templates according to the | |
16546 current configuration. | |
16547 | |
16548 Usage: $0 [OPTIONS] [FILE]... | |
16549 | |
16550 -h, --help print this help, then exit | |
16551 -V, --version print version number, then exit | |
16552 -d, --debug don't remove temporary files | |
16553 --recheck update $as_me by reconfiguring in the same conditions | |
16554 --file=FILE[:TEMPLATE] | |
16555 instantiate the configuration file FILE | |
16556 --header=FILE[:TEMPLATE] | |
16557 instantiate the configuration header FILE | |
16558 | |
16559 Configuration files: | |
16560 $config_files | |
16561 | |
16562 Configuration headers: | |
16563 $config_headers | |
16564 | |
16565 Configuration commands: | |
16566 $config_commands | |
16567 | |
16568 Report bugs to <bug-autoconf@gnu.org>." | |
44493 | 16569 _ACEOF |
16570 | |
16571 cat >>$CONFIG_STATUS <<_ACEOF | |
40056 | 16572 ac_cs_version="\\ |
16573 config.status | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16574 configured by $0, generated by GNU Autoconf 2.53a, |
40056 | 16575 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
16576 | |
16577 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
16578 Free Software Foundation, Inc. | |
16579 This config.status script is free software; the Free Software Foundation | |
16580 gives unlimited permission to copy, distribute and modify it." | |
16581 srcdir=$srcdir | |
16582 INSTALL="$INSTALL" | |
44493 | 16583 _ACEOF |
16584 | |
16585 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 16586 # If no file are specified by the user, then we need to provide default |
16587 # value. By we need to know if files were specified by the user. | |
16588 ac_need_defaults=: | |
16589 while test $# != 0 | |
25897 | 16590 do |
40056 | 16591 case $1 in |
16592 --*=*) | |
16593 ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
16594 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
16595 shift | |
16596 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
16597 shift | |
16598 ;; | |
16599 -*);; | |
16600 *) # This is not an option, so the user has probably given explicit | |
16601 # arguments. | |
16602 ac_need_defaults=false;; | |
16603 esac | |
16604 | |
16605 case $1 in | |
16606 # Handling of the options. | |
44493 | 16607 _ACEOF |
16608 cat >>$CONFIG_STATUS <<_ACEOF | |
25897 | 16609 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
40056 | 16610 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
16611 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
44493 | 16612 _ACEOF |
16613 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 16614 --version | --vers* | -V ) |
16615 echo "$ac_cs_version"; exit 0 ;; | |
16616 --he | --h) | |
16617 # Conflict between --help and --header | |
44493 | 16618 { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
40056 | 16619 Try \`$0 --help' for more information." >&5 |
16620 echo "$as_me: error: ambiguous option: $1 | |
16621 Try \`$0 --help' for more information." >&2;} | |
16622 { (exit 1); exit 1; }; };; | |
16623 --help | --hel | -h ) | |
16624 echo "$ac_cs_usage"; exit 0 ;; | |
16625 --debug | --d* | -d ) | |
16626 debug=: ;; | |
16627 --file | --fil | --fi | --f ) | |
16628 shift | |
16629 CONFIG_FILES="$CONFIG_FILES $1" | |
16630 ac_need_defaults=false;; | |
16631 --header | --heade | --head | --hea ) | |
16632 shift | |
16633 CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
16634 ac_need_defaults=false;; | |
16635 | |
16636 # This is an error. | |
44493 | 16637 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
40056 | 16638 Try \`$0 --help' for more information." >&5 |
16639 echo "$as_me: error: unrecognized option: $1 | |
16640 Try \`$0 --help' for more information." >&2;} | |
16641 { (exit 1); exit 1; }; } ;; | |
16642 | |
16643 *) ac_config_targets="$ac_config_targets $1" ;; | |
16644 | |
16645 esac | |
16646 shift | |
16647 done | |
16648 | |
44493 | 16649 _ACEOF |
16650 | |
16651 cat >>$CONFIG_STATUS <<_ACEOF | |
40056 | 16652 # |
16653 # INIT-COMMANDS section. | |
16654 # | |
16655 | |
16656 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" | |
16657 | |
44493 | 16658 _ACEOF |
16659 | |
16660 | |
16661 | |
16662 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 16663 for ac_config_target in $ac_config_targets |
16664 do | |
16665 case "$ac_config_target" in | |
16666 # Handling of arguments. | |
16667 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16668 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
16669 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
16670 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
16671 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | |
16672 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; | |
16673 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | |
40893 | 16674 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;; |
41431 | 16675 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;; |
40056 | 16676 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
16677 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
16678 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
44493 | 16679 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
40056 | 16680 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
16681 { (exit 1); exit 1; }; };; | |
25897 | 16682 esac |
16683 done | |
16684 | |
40056 | 16685 # If the user did not use the arguments to specify the items to instantiate, |
16686 # then the envvar interface is used. Set only those that are not. | |
16687 # We use the long form for the default assignment because of an extremely | |
16688 # bizarre bug on SunOS 4.1.3. | |
16689 if $ac_need_defaults; then | |
16690 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16691 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
16692 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
16693 fi | |
16694 | |
16695 # Create a temporary directory, and hook for its removal unless debugging. | |
16696 $debug || | |
16697 { | |
16698 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
16699 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
16700 } | |
16701 | |
16702 # Create a (secure) tmp directory for tmp files. | |
16703 : ${TMPDIR=/tmp} | |
16704 { | |
16705 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
16706 test -n "$tmp" && test -d "$tmp" | |
16707 } || | |
16708 { | |
16709 tmp=$TMPDIR/cs$$-$RANDOM | |
16710 (umask 077 && mkdir $tmp) | |
16711 } || | |
16712 { | |
16713 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
16714 { (exit 1); exit 1; } | |
16715 } | |
16716 | |
44493 | 16717 _ACEOF |
16718 | |
16719 cat >>$CONFIG_STATUS <<_ACEOF | |
40056 | 16720 |
16721 # | |
16722 # CONFIG_FILES section. | |
16723 # | |
16724 | |
16725 # No need to generate the scripts if there are no CONFIG_FILES. | |
16726 # This happens for instance when ./config.status config.h | |
16727 if test -n "\$CONFIG_FILES"; then | |
16728 # Protect against being on the right side of a sed subst in config.status. | |
16729 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
16730 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
16731 s,@SHELL@,$SHELL,;t t | |
44493 | 16732 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
16733 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
16734 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
16735 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
16736 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
16737 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
40056 | 16738 s,@exec_prefix@,$exec_prefix,;t t |
16739 s,@prefix@,$prefix,;t t | |
16740 s,@program_transform_name@,$program_transform_name,;t t | |
16741 s,@bindir@,$bindir,;t t | |
16742 s,@sbindir@,$sbindir,;t t | |
16743 s,@libexecdir@,$libexecdir,;t t | |
16744 s,@datadir@,$datadir,;t t | |
16745 s,@sysconfdir@,$sysconfdir,;t t | |
16746 s,@sharedstatedir@,$sharedstatedir,;t t | |
16747 s,@localstatedir@,$localstatedir,;t t | |
16748 s,@libdir@,$libdir,;t t | |
16749 s,@includedir@,$includedir,;t t | |
16750 s,@oldincludedir@,$oldincludedir,;t t | |
16751 s,@infodir@,$infodir,;t t | |
16752 s,@mandir@,$mandir,;t t | |
16753 s,@build_alias@,$build_alias,;t t | |
16754 s,@host_alias@,$host_alias,;t t | |
16755 s,@target_alias@,$target_alias,;t t | |
44493 | 16756 s,@DEFS@,$DEFS,;t t |
40056 | 16757 s,@ECHO_C@,$ECHO_C,;t t |
16758 s,@ECHO_N@,$ECHO_N,;t t | |
16759 s,@ECHO_T@,$ECHO_T,;t t | |
16760 s,@LIBS@,$LIBS,;t t | |
16761 s,@build@,$build,;t t | |
16762 s,@build_cpu@,$build_cpu,;t t | |
16763 s,@build_vendor@,$build_vendor,;t t | |
16764 s,@build_os@,$build_os,;t t | |
16765 s,@host@,$host,;t t | |
16766 s,@host_cpu@,$host_cpu,;t t | |
16767 s,@host_vendor@,$host_vendor,;t t | |
16768 s,@host_os@,$host_os,;t t | |
16769 s,@CC@,$CC,;t t | |
16770 s,@CFLAGS@,$CFLAGS,;t t | |
16771 s,@LDFLAGS@,$LDFLAGS,;t t | |
16772 s,@CPPFLAGS@,$CPPFLAGS,;t t | |
16773 s,@ac_ct_CC@,$ac_ct_CC,;t t | |
16774 s,@EXEEXT@,$EXEEXT,;t t | |
16775 s,@OBJEXT@,$OBJEXT,;t t | |
16776 s,@LN_S@,$LN_S,;t t | |
16777 s,@CPP@,$CPP,;t t | |
16778 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
16779 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
16780 s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
16781 s,@YACC@,$YACC,;t t | |
16782 s,@RANLIB@,$RANLIB,;t t | |
16783 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
16784 s,@LIBSOUND@,$LIBSOUND,;t t | |
16785 s,@SET_MAKE@,$SET_MAKE,;t t | |
16786 s,@ALLOCA@,$ALLOCA,;t t | |
16787 s,@liblockfile@,$liblockfile,;t t | |
16788 s,@LIBOBJS@,$LIBOBJS,;t t | |
16789 s,@NEED_SETGID@,$NEED_SETGID,;t t | |
16790 s,@KMEM_GROUP@,$KMEM_GROUP,;t t | |
16791 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t | |
16792 s,@version@,$version,;t t | |
16793 s,@configuration@,$configuration,;t t | |
16794 s,@canonical@,$canonical,;t t | |
16795 s,@srcdir@,$srcdir,;t t | |
16796 s,@lispdir@,$lispdir,;t t | |
16797 s,@locallisppath@,$locallisppath,;t t | |
16798 s,@lisppath@,$lisppath,;t t | |
16799 s,@x_default_search_path@,$x_default_search_path,;t t | |
16800 s,@etcdir@,$etcdir,;t t | |
16801 s,@archlibdir@,$archlibdir,;t t | |
16802 s,@docdir@,$docdir,;t t | |
16803 s,@bitmapdir@,$bitmapdir,;t t | |
44493 | 16804 s,@gamedir@,$gamedir,;t t |
16805 s,@gameuser@,$gameuser,;t t | |
40056 | 16806 s,@c_switch_system@,$c_switch_system,;t t |
16807 s,@c_switch_machine@,$c_switch_machine,;t t | |
16808 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t | |
16809 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t | |
16810 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t | |
16811 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t | |
16812 s,@machfile@,$machfile,;t t | |
16813 s,@opsysfile@,$opsysfile,;t t | |
25897 | 16814 CEOF |
40056 | 16815 |
44493 | 16816 _ACEOF |
16817 | |
16818 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 16819 # Split the substitutions into bite-sized pieces for seds with |
16820 # small command number limits, like on Digital OSF/1 and HP-UX. | |
16821 ac_max_sed_lines=48 | |
16822 ac_sed_frag=1 # Number of current file. | |
16823 ac_beg=1 # First line for current file. | |
16824 ac_end=$ac_max_sed_lines # Line after last line for current file. | |
16825 ac_more_lines=: | |
16826 ac_sed_cmds= | |
16827 while $ac_more_lines; do | |
16828 if test $ac_beg -gt 1; then | |
16829 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
25897 | 16830 else |
40056 | 16831 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
16832 fi | |
16833 if test ! -s $tmp/subs.frag; then | |
16834 ac_more_lines=false | |
16835 else | |
16836 # The purpose of the label and of the branching condition is to | |
16837 # speed up the sed processing (if there are no `@' at all, there | |
16838 # is no need to browse any of the substitutions). | |
16839 # These are the two extra sed commands mentioned above. | |
16840 (echo ':t | |
16841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
16842 if test -z "$ac_sed_cmds"; then | |
16843 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
16844 else | |
16845 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
16846 fi | |
16847 ac_sed_frag=`expr $ac_sed_frag + 1` | |
16848 ac_beg=$ac_end | |
16849 ac_end=`expr $ac_end + $ac_max_sed_lines` | |
25897 | 16850 fi |
40056 | 16851 done |
16852 if test -z "$ac_sed_cmds"; then | |
16853 ac_sed_cmds=cat | |
16854 fi | |
16855 fi # test -n "$CONFIG_FILES" | |
16856 | |
44493 | 16857 _ACEOF |
16858 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 16859 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
25897 | 16860 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
40056 | 16861 case $ac_file in |
16862 - | *:- | *:-:* ) # input from stdin | |
16863 cat >$tmp/stdin | |
16864 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
16865 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
16866 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
16867 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
16868 * ) ac_file_in=$ac_file.in ;; | |
25897 | 16869 esac |
16870 | |
40056 | 16871 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
44493 | 16872 ac_dir=`(dirname "$ac_file") 2>/dev/null || |
16873 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
40056 | 16874 X"$ac_file" : 'X\(//\)[^/]' \| \ |
16875 X"$ac_file" : 'X\(//\)$' \| \ | |
16876 X"$ac_file" : 'X\(/\)' \| \ | |
16877 . : '\(.\)' 2>/dev/null || | |
16878 echo X"$ac_file" | | |
16879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
16880 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
16881 /^X\(\/\/\)$/{ s//\1/; q; } | |
16882 /^X\(\/\).*/{ s//\1/; q; } | |
16883 s/.*/./; q'` | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16884 { if $as_mkdir_p; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16885 mkdir -p "$ac_dir" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16886 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16887 as_dir="$ac_dir" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16888 as_dirs= |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16889 while test ! -d "$as_dir"; do |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16890 as_dirs="$as_dir $as_dirs" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16891 as_dir=`(dirname "$as_dir") 2>/dev/null || |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16893 X"$as_dir" : 'X\(//\)[^/]' \| \ |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16894 X"$as_dir" : 'X\(//\)$' \| \ |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16895 X"$as_dir" : 'X\(/\)' \| \ |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16896 . : '\(.\)' 2>/dev/null || |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16897 echo X"$as_dir" | |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16899 /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16900 /^X\(\/\/\)$/{ s//\1/; q; } |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16901 /^X\(\/\).*/{ s//\1/; q; } |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16902 s/.*/./; q'` |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16903 done |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16904 test ! -n "$as_dirs" || mkdir $as_dirs |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16905 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16906 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
16907 { (exit 1); exit 1; }; }; } |
40056 | 16908 |
44493 | 16909 ac_builddir=. |
16910 | |
16911 if test "$ac_dir" != .; then | |
16912 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
16913 # A "../" for each directory in $ac_dir_suffix. | |
16914 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
16915 else | |
16916 ac_dir_suffix= ac_top_builddir= | |
16917 fi | |
16918 | |
16919 case $srcdir in | |
16920 .) # No --srcdir option. We are building in place. | |
16921 ac_srcdir=. | |
16922 if test -z "$ac_top_builddir"; then | |
16923 ac_top_srcdir=. | |
16924 else | |
16925 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
16926 fi ;; | |
16927 [\\/]* | ?:[\\/]* ) # Absolute path. | |
16928 ac_srcdir=$srcdir$ac_dir_suffix; | |
16929 ac_top_srcdir=$srcdir ;; | |
25897 | 16930 *) # Relative path. |
44493 | 16931 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
16932 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
16933 esac | |
16934 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
16935 # absolute. | |
16936 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
44569 | 16937 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
44493 | 16938 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
16939 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
16940 | |
25897 | 16941 |
40056 | 16942 case $INSTALL in |
16943 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
44493 | 16944 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
25897 | 16945 esac |
16946 | |
40056 | 16947 if test x"$ac_file" != x-; then |
44493 | 16948 { echo "$as_me:$LINENO: creating $ac_file" >&5 |
40056 | 16949 echo "$as_me: creating $ac_file" >&6;} |
16950 rm -f "$ac_file" | |
16951 fi | |
16952 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16953 # use $as_me), people would be surprised to read: | |
44493 | 16954 # /* config.h. Generated by config.status. */ |
16955 if test x"$ac_file" = x-; then | |
16956 configure_input= | |
16957 else | |
16958 configure_input="$ac_file. " | |
16959 fi | |
16960 configure_input=$configure_input"Generated from `echo $ac_file_in | | |
16961 sed 's,.*/,,'` by configure." | |
40056 | 16962 |
16963 # First look for the input files in the build tree, otherwise in the | |
16964 # src tree. | |
16965 ac_file_inputs=`IFS=: | |
16966 for f in $ac_file_in; do | |
16967 case $f in | |
16968 -) echo $tmp/stdin ;; | |
16969 [\\/$]*) | |
16970 # Absolute (can't be DOS-style, as IFS=:) | |
44493 | 16971 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
40056 | 16972 echo "$as_me: error: cannot find input file: $f" >&2;} |
16973 { (exit 1); exit 1; }; } | |
16974 echo $f;; | |
16975 *) # Relative | |
16976 if test -f "$f"; then | |
16977 # Build tree | |
16978 echo $f | |
16979 elif test -f "$srcdir/$f"; then | |
16980 # Source tree | |
16981 echo $srcdir/$f | |
16982 else | |
16983 # /dev/null tree | |
44493 | 16984 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
40056 | 16985 echo "$as_me: error: cannot find input file: $f" >&2;} |
16986 { (exit 1); exit 1; }; } | |
16987 fi;; | |
16988 esac | |
16989 done` || { (exit 1); exit 1; } | |
44493 | 16990 _ACEOF |
16991 cat >>$CONFIG_STATUS <<_ACEOF | |
40056 | 16992 sed "$ac_vpsub |
16993 $extrasub | |
44493 | 16994 _ACEOF |
16995 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 16996 :t |
16997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
16998 s,@configure_input@,$configure_input,;t t | |
16999 s,@srcdir@,$ac_srcdir,;t t | |
44493 | 17000 s,@abs_srcdir@,$ac_abs_srcdir,;t t |
40056 | 17001 s,@top_srcdir@,$ac_top_srcdir,;t t |
44493 | 17002 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
17003 s,@builddir@,$ac_builddir,;t t | |
17004 s,@abs_builddir@,$ac_abs_builddir,;t t | |
17005 s,@top_builddir@,$ac_top_builddir,;t t | |
17006 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
40056 | 17007 s,@INSTALL@,$ac_INSTALL,;t t |
17008 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
17009 rm -f $tmp/stdin | |
17010 if test x"$ac_file" != x-; then | |
17011 mv $tmp/out $ac_file | |
17012 else | |
17013 cat $tmp/out | |
17014 rm -f $tmp/out | |
17015 fi | |
17016 | |
17017 done | |
44493 | 17018 _ACEOF |
17019 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 17020 |
17021 # | |
17022 # CONFIG_HEADER section. | |
17023 # | |
25897 | 17024 |
17025 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
17026 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
17027 # | |
17028 # ac_d sets the value in "#define NAME VALUE" lines. | |
40056 | 17029 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
17030 ac_dB='[ ].*$,\1#\2' | |
17031 ac_dC=' ' | |
17032 ac_dD=',;t' | |
17033 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
17034 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17035 ac_uB='$,\1#\2define\3' | |
25897 | 17036 ac_uC=' ' |
40056 | 17037 ac_uD=',;t' |
17038 | |
17039 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
25897 | 17040 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
40056 | 17041 case $ac_file in |
17042 - | *:- | *:-:* ) # input from stdin | |
17043 cat >$tmp/stdin | |
17044 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
17045 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
17046 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
17047 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
17048 * ) ac_file_in=$ac_file.in ;; | |
25897 | 17049 esac |
17050 | |
44493 | 17051 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
40056 | 17052 echo "$as_me: creating $ac_file" >&6;} |
17053 | |
17054 # First look for the input files in the build tree, otherwise in the | |
17055 # src tree. | |
17056 ac_file_inputs=`IFS=: | |
17057 for f in $ac_file_in; do | |
17058 case $f in | |
17059 -) echo $tmp/stdin ;; | |
17060 [\\/$]*) | |
17061 # Absolute (can't be DOS-style, as IFS=:) | |
44493 | 17062 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
40056 | 17063 echo "$as_me: error: cannot find input file: $f" >&2;} |
17064 { (exit 1); exit 1; }; } | |
17065 echo $f;; | |
17066 *) # Relative | |
17067 if test -f "$f"; then | |
17068 # Build tree | |
17069 echo $f | |
17070 elif test -f "$srcdir/$f"; then | |
17071 # Source tree | |
17072 echo $srcdir/$f | |
17073 else | |
17074 # /dev/null tree | |
44493 | 17075 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
40056 | 17076 echo "$as_me: error: cannot find input file: $f" >&2;} |
17077 { (exit 1); exit 1; }; } | |
17078 fi;; | |
17079 esac | |
17080 done` || { (exit 1); exit 1; } | |
17081 # Remove the trailing spaces. | |
17082 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
17083 | |
44493 | 17084 _ACEOF |
40056 | 17085 |
17086 # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
17087 # `conftest.undefs', that substitutes the proper values into | |
17088 # config.h.in to produce config.h. The first handles `#define' | |
17089 # templates, and the second `#undef' templates. | |
17090 # And first: Protect against being on the right side of a sed subst in | |
17091 # config.status. Protect against being in an unquoted here document | |
17092 # in config.status. | |
17093 rm -f conftest.defines conftest.undefs | |
17094 # Using a here document instead of a string reduces the quoting nightmare. | |
17095 # Putting comments in sed scripts is not portable. | |
17096 # | |
17097 # `end' is used to avoid that the second main sed command (meant for | |
17098 # 0-ary CPP macros) applies to n-ary macro definitions. | |
17099 # See the Autoconf documentation for `clear'. | |
44493 | 17100 cat >confdef2sed.sed <<\_ACEOF |
40056 | 17101 s/[\\&,]/\\&/g |
17102 s,[\\$`],\\&,g | |
17103 t clear | |
17104 : clear | |
44493 | 17105 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
40056 | 17106 t end |
17107 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
17108 : end | |
44493 | 17109 _ACEOF |
40056 | 17110 # If some macros were called several times there might be several times |
17111 # the same #defines, which is useless. Nevertheless, we may not want to | |
17112 # sort them, since we want the *last* AC-DEFINE to be honored. | |
17113 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
17114 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
17115 rm -f confdef2sed.sed | |
25897 | 17116 |
17117 # This sed command replaces #undef with comments. This is necessary, for | |
17118 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
17119 # on some systems where configure will not decide to define it. | |
44493 | 17120 cat >>conftest.undefs <<\_ACEOF |
40056 | 17121 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
44493 | 17122 _ACEOF |
40056 | 17123 |
17124 # Break up conftest.defines because some shells have a limit on the size | |
17125 # of here documents, and old seds have small limits too (100 cmds). | |
17126 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
17127 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
17128 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
17129 echo ' :' >>$CONFIG_STATUS | |
25897 | 17130 rm -f conftest.tail |
40056 | 17131 while grep . conftest.defines >/dev/null |
25897 | 17132 do |
40056 | 17133 # Write a limited-size here document to $tmp/defines.sed. |
17134 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
17135 # Speed up: don't consider the non `#define' lines. | |
17136 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
17137 # Work around the forget-to-reset-the-flag bug. | |
17138 echo 't clr' >>$CONFIG_STATUS | |
17139 echo ': clr' >>$CONFIG_STATUS | |
17140 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
25897 | 17141 echo 'CEOF |
40056 | 17142 sed -f $tmp/defines.sed $tmp/in >$tmp/out |
17143 rm -f $tmp/in | |
17144 mv $tmp/out $tmp/in | |
17145 ' >>$CONFIG_STATUS | |
17146 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
17147 rm -f conftest.defines | |
17148 mv conftest.tail conftest.defines | |
17149 done | |
17150 rm -f conftest.defines | |
17151 echo ' fi # egrep' >>$CONFIG_STATUS | |
17152 echo >>$CONFIG_STATUS | |
17153 | |
17154 # Break up conftest.undefs because some shells have a limit on the size | |
17155 # of here documents, and old seds have small limits too (100 cmds). | |
17156 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
17157 rm -f conftest.tail | |
17158 while grep . conftest.undefs >/dev/null | |
17159 do | |
17160 # Write a limited-size here document to $tmp/undefs.sed. | |
17161 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
17162 # Speed up: don't consider the non `#undef' | |
17163 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
17164 # Work around the forget-to-reset-the-flag bug. | |
17165 echo 't clr' >>$CONFIG_STATUS | |
17166 echo ': clr' >>$CONFIG_STATUS | |
17167 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
17168 echo 'CEOF | |
17169 sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
17170 rm -f $tmp/in | |
17171 mv $tmp/out $tmp/in | |
17172 ' >>$CONFIG_STATUS | |
17173 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
17174 rm -f conftest.undefs | |
17175 mv conftest.tail conftest.undefs | |
25897 | 17176 done |
40056 | 17177 rm -f conftest.undefs |
17178 | |
44493 | 17179 cat >>$CONFIG_STATUS <<\_ACEOF |
40056 | 17180 # Let's still pretend it is `configure' which instantiates (i.e., don't |
17181 # use $as_me), people would be surprised to read: | |
44493 | 17182 # /* config.h. Generated by config.status. */ |
40056 | 17183 if test x"$ac_file" = x-; then |
44493 | 17184 echo "/* Generated by configure. */" >$tmp/config.h |
17185 else | |
17186 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
40056 | 17187 fi |
17188 cat $tmp/in >>$tmp/config.h | |
17189 rm -f $tmp/in | |
17190 if test x"$ac_file" != x-; then | |
17191 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
44493 | 17192 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
40056 | 17193 echo "$as_me: $ac_file is unchanged" >&6;} |
17194 else | |
44493 | 17195 ac_dir=`(dirname "$ac_file") 2>/dev/null || |
17196 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
40056 | 17197 X"$ac_file" : 'X\(//\)[^/]' \| \ |
17198 X"$ac_file" : 'X\(//\)$' \| \ | |
17199 X"$ac_file" : 'X\(/\)' \| \ | |
17200 . : '\(.\)' 2>/dev/null || | |
17201 echo X"$ac_file" | | |
17202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
17203 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
17204 /^X\(\/\/\)$/{ s//\1/; q; } | |
17205 /^X\(\/\).*/{ s//\1/; q; } | |
17206 s/.*/./; q'` | |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17207 { if $as_mkdir_p; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17208 mkdir -p "$ac_dir" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17209 else |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17210 as_dir="$ac_dir" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17211 as_dirs= |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17212 while test ! -d "$as_dir"; do |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17213 as_dirs="$as_dir $as_dirs" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17214 as_dir=`(dirname "$as_dir") 2>/dev/null || |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17216 X"$as_dir" : 'X\(//\)[^/]' \| \ |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17217 X"$as_dir" : 'X\(//\)$' \| \ |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17218 X"$as_dir" : 'X\(/\)' \| \ |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17219 . : '\(.\)' 2>/dev/null || |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17220 echo X"$as_dir" | |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17222 /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17223 /^X\(\/\/\)$/{ s//\1/; q; } |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17224 /^X\(\/\).*/{ s//\1/; q; } |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17225 s/.*/./; q'` |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17226 done |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17227 test ! -n "$as_dirs" || mkdir $as_dirs |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17228 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17229 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
17230 { (exit 1); exit 1; }; }; } |
40056 | 17231 |
17232 rm -f $ac_file | |
17233 mv $tmp/config.h $ac_file | |
25897 | 17234 fi |
40056 | 17235 else |
17236 cat $tmp/config.h | |
17237 rm -f $tmp/config.h | |
17238 fi | |
17239 done | |
44493 | 17240 _ACEOF |
17241 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 17242 |
17243 # | |
17244 # CONFIG_COMMANDS section. | |
17245 # | |
17246 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
17247 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
17248 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
44493 | 17249 ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
17250 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17251 X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
17252 X"$ac_dest" : 'X\(//\)$' \| \ | |
17253 X"$ac_dest" : 'X\(/\)' \| \ | |
17254 . : '\(.\)' 2>/dev/null || | |
17255 echo X"$ac_dest" | | |
17256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
17257 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
17258 /^X\(\/\/\)$/{ s//\1/; q; } | |
17259 /^X\(\/\).*/{ s//\1/; q; } | |
17260 s/.*/./; q'` | |
17261 ac_builddir=. | |
17262 | |
17263 if test "$ac_dir" != .; then | |
17264 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
17265 # A "../" for each directory in $ac_dir_suffix. | |
17266 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
17267 else | |
17268 ac_dir_suffix= ac_top_builddir= | |
17269 fi | |
17270 | |
17271 case $srcdir in | |
17272 .) # No --srcdir option. We are building in place. | |
17273 ac_srcdir=. | |
17274 if test -z "$ac_top_builddir"; then | |
17275 ac_top_srcdir=. | |
17276 else | |
17277 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
17278 fi ;; | |
17279 [\\/]* | ?:[\\/]* ) # Absolute path. | |
17280 ac_srcdir=$srcdir$ac_dir_suffix; | |
17281 ac_top_srcdir=$srcdir ;; | |
17282 *) # Relative path. | |
17283 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
17284 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
17285 esac | |
17286 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
17287 # absolute. | |
17288 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
44569 | 17289 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
44493 | 17290 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
17291 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
17292 | |
17293 | |
17294 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
17295 echo "$as_me: executing $ac_dest commands" >&6;} | |
40056 | 17296 case $ac_dest in |
17297 default ) | |
25897 | 17298 |
17299 ### Make the necessary directories, if they don't exist. | |
17300 for dir in etc lisp ; do | |
17301 test -d ${dir} || mkdir ${dir} | |
17302 done | |
17303 | |
17304 # Build src/Makefile from ${srcdir}/src/Makefile.c | |
17305 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
17306 # This must be done after src/config.h is built, since we rely on that file. | |
17307 | |
17308 # Now get this: Some word that is part of the ${srcdir} directory name | |
17309 # or the ${configuration} value might, just might, happen to be an | |
17310 # identifier like `sun4' or `i386' or something, and be predefined by | |
17311 # the C preprocessor to some helpful value like 1, or maybe the empty | |
17312 # string. Needless to say consequent macro substitutions are less | |
17313 # than conducive to the makefile finding the correct directory. | |
17314 undefs="`echo $top_srcdir $configuration $canonical | | |
17315 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
17316 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
17317 `" | |
17318 | |
17319 echo creating src/epaths.h | |
40256 | 17320 ${MAKE-make} epaths-force |
25897 | 17321 |
33652 | 17322 # As of 2000-11-19, newest development versions of GNU cpp preprocess |
17323 # `..' to `. .' unless invoked with -traditional | |
17324 | |
36354 | 17325 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
33652 | 17326 CPPFLAGS="$CPPFLAGS -traditional" |
17327 fi | |
17328 | |
25897 | 17329 echo creating lib-src/Makefile |
17330 ( cd lib-src | |
17331 rm -f junk.c junk1.c junk2.c | |
17332 sed -e '/start of cpp stuff/q' \ | |
17333 < Makefile.c > junk1.c | |
17334 sed -e '1,/start of cpp stuff/d'\ | |
39239 | 17335 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
25897 | 17336 < Makefile.c > junk.c |
40056 | 17337 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
25897 | 17338 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
17339 cat junk1.c junk2.c > Makefile.new | |
17340 rm -f junk.c junk1.c junk2.c | |
17341 chmod 444 Makefile.new | |
17342 mv -f Makefile.new Makefile | |
17343 ) | |
17344 | |
17345 echo creating src/Makefile | |
17346 ( cd src | |
17347 rm -f junk.c junk1.c junk2.c | |
17348 sed -e '/start of cpp stuff/q' \ | |
17349 < Makefile.c > junk1.c | |
17350 sed -e '1,/start of cpp stuff/d'\ | |
39239 | 17351 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
25897 | 17352 < Makefile.c > junk.c |
40056 | 17353 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
25897 | 17354 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
17355 cat junk1.c junk2.c > Makefile.new | |
17356 rm -f junk.c junk1.c junk2.c | |
17357 chmod 444 Makefile.new | |
17358 mv -f Makefile.new Makefile | |
17359 ) | |
17360 | |
40056 | 17361 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
25897 | 17362 echo creating src/.gdbinit |
40056 | 17363 echo source $srcdir/src/.gdbinit > src/.gdbinit |
25897 | 17364 fi |
17365 | |
17366 # This is how we know whether to re-run configure in certain cases. | |
17367 touch src/config.stamp | |
17368 | |
40056 | 17369 ;; |
17370 esac | |
17371 done | |
44493 | 17372 _ACEOF |
17373 | |
17374 cat >>$CONFIG_STATUS <<\_ACEOF | |
40056 | 17375 |
17376 { (exit 0); exit 0; } | |
44493 | 17377 _ACEOF |
25897 | 17378 chmod +x $CONFIG_STATUS |
40056 | 17379 ac_clean_files=$ac_clean_files_save |
17380 | |
44493 | 17381 |
40056 | 17382 # configure is writing to config.log, and then calls config.status. |
17383 # config.status does its own redirection, appending to config.log. | |
17384 # Unfortunately, on DOS this fails, as config.log is still kept open | |
17385 # by configure, so config.status won't be able to write to it; its | |
17386 # output is simply discarded. So we exec the FD to /dev/null, | |
17387 # effectively closing config.log, so it can be properly (re)opened and | |
17388 # appended to by config.status. When coming back to configure, we | |
17389 # need to make the FD available again. | |
17390 if test "$no_create" != yes; then | |
17391 ac_cs_success=: | |
17392 exec 5>/dev/null | |
17393 $SHELL $CONFIG_STATUS || ac_cs_success=false | |
17394 exec 5>>config.log | |
17395 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17396 # would make configure fail if this is the last instruction. | |
17397 $ac_cs_success || { (exit 1); exit 1; } | |
17398 fi | |
17399 | |
44493 | 17400 |